UNPKG

@thirdweb-dev/wallets

Version:

<p align="center"> <br /> <a href="https://thirdweb.com"><img src="https://github.com/thirdweb-dev/js/blob/main/packages/sdk/logo.svg?raw=true" width="200" alt=""/></a> <br /> </p> <h1 align="center">thirdweb Wallet SDK</h1> <p align="center"> <a href="ht

25 lines (22 loc) 872 B
import { _ as _classPrivateFieldInitSpec, a as _classPrivateFieldSet, b as _classPrivateFieldGet } from '../../../../dist/classPrivateFieldSet-a5db7c83.browser.esm.js'; import { AbstractWallet } from '../../abstract/dist/thirdweb-dev-wallets-evm-wallets-abstract.browser.esm.js'; import { GcpKmsSigner } from 'ethers-gcp-kms-signer'; import '../../../../dist/defineProperty-c8ecdc07.browser.esm.js'; import 'ethers'; import 'eventemitter3'; import '@thirdweb-dev/sdk'; var _options = /*#__PURE__*/new WeakMap(); class GcpKmsWallet extends AbstractWallet { constructor(options) { super(); _classPrivateFieldInitSpec(this, _options, { writable: true, value: void 0 }); _classPrivateFieldSet(this, _options, options); } async getSigner() { return new GcpKmsSigner(_classPrivateFieldGet(this, _options)); } } export { GcpKmsWallet };