@creit.tech/stellar-wallets-kit
Version:
A kit to handle all Stellar Wallets at once
1 lines • 2.51 kB
Source Map (JSON)
{"version":3,"file":"hotwallet.module.cjs","sources":["../../src/modules/hotwallet.module.ts"],"sourcesContent":["import { HOT } from '@hot-wallet/sdk';\nimport { ModuleInterface, ModuleType, WalletNetwork } from '../types';\n\nexport const HOTWALLET_ID = 'hot-wallet';\n\nexport class HotWalletModule implements ModuleInterface {\n moduleType: ModuleType;\n productId: string;\n productName: string;\n productUrl: string;\n productIcon: string;\n\n constructor() {\n this.moduleType = ModuleType.HOT_WALLET;\n this.productId = HOTWALLET_ID;\n this.productName = 'HOT Wallet';\n this.productUrl = 'https://hot-labs.org/wallet';\n this.productIcon = 'https://storage.herewallet.app/logo.png';\n }\n\n async isAvailable() {\n return true;\n }\n\n async getAddress() {\n return await HOT.request('stellar:getAddress', {});\n }\n\n async signTransaction(xdr: string, opts?: { address?: string }) {\n return await HOT.request('stellar:signTransaction', { xdr, accountToSign: opts?.address });\n }\n\n async signAuthEntry(authEntry: string, opts?: { address?: string }) {\n return await HOT.request('stellar:signAuthEntry', { authEntry, accountToSign: opts?.address });\n }\n\n async signMessage(message: string, opts?: { address?: string }) {\n return await HOT.request('stellar:signMessage', { message, accountToSign: opts?.address });\n }\n\n async getNetwork() {\n return { network: 'mainnet', networkPassphrase: WalletNetwork.PUBLIC };\n }\n}\n"],"names":["ModuleType","HOT","WalletNetwork"],"mappings":";;;;;AAGO,MAAM,YAAY,GAAG;MAEf,eAAe,CAAA;AAO1B,IAAA,WAAA,GAAA;AACE,QAAA,IAAI,CAAC,UAAU,GAAGA,gBAAU,CAAC,UAAU;AACvC,QAAA,IAAI,CAAC,SAAS,GAAG,YAAY;AAC7B,QAAA,IAAI,CAAC,WAAW,GAAG,YAAY;AAC/B,QAAA,IAAI,CAAC,UAAU,GAAG,6BAA6B;AAC/C,QAAA,IAAI,CAAC,WAAW,GAAG,yCAAyC;;AAG9D,IAAA,MAAM,WAAW,GAAA;AACf,QA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