@crossmint/wallets-sdk 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +221 -0
- package/dist/api/__tests__/constants.cjs +1 -0
- package/dist/api/__tests__/constants.d.cts +104 -0
- package/dist/api/__tests__/constants.d.ts +104 -0
- package/dist/api/__tests__/constants.js +1 -0
- package/dist/api/__tests__/test-utils.cjs +1 -0
- package/dist/api/__tests__/test-utils.d.cts +105 -0
- package/dist/api/__tests__/test-utils.d.ts +105 -0
- package/dist/api/__tests__/test-utils.js +1 -0
- package/dist/api/client.cjs +1 -1
- package/dist/api/client.d.cts +42 -40
- package/dist/api/client.d.ts +42 -40
- package/dist/api/client.js +1 -1
- package/dist/api/gen/client.gen.cjs +1 -1
- package/dist/api/gen/client.gen.js +1 -1
- package/dist/api/gen/index.cjs +1 -1
- package/dist/api/gen/index.d.cts +2 -2
- package/dist/api/gen/index.d.ts +2 -2
- package/dist/api/gen/index.js +1 -1
- package/dist/api/gen/sdk.gen.cjs +1 -1
- package/dist/api/gen/sdk.gen.d.cts +123 -48
- package/dist/api/gen/sdk.gen.d.ts +123 -48
- package/dist/api/gen/sdk.gen.js +1 -1
- package/dist/api/gen/types.gen.d.cts +9810 -2353
- package/dist/api/gen/types.gen.d.ts +9810 -2353
- package/dist/api/index.cjs +1 -1
- package/dist/api/index.d.cts +10 -1
- package/dist/api/index.d.ts +10 -1
- package/dist/api/index.js +1 -1
- package/dist/api/types.cjs +1 -0
- package/dist/api/types.d.cts +11 -0
- package/dist/api/types.d.ts +11 -0
- package/dist/api/types.js +1 -0
- package/dist/chains/chains.cjs +1 -0
- package/dist/chains/chains.d.cts +29 -0
- package/dist/chains/chains.d.ts +29 -0
- package/dist/chains/chains.js +1 -0
- package/dist/chains/definitions/arcTestnet.cjs +1 -0
- package/dist/chains/definitions/arcTestnet.d.cts +43 -0
- package/dist/chains/definitions/arcTestnet.d.ts +43 -0
- package/dist/chains/definitions/arcTestnet.js +1 -0
- package/dist/chains/definitions/story.cjs +1 -0
- package/dist/chains/definitions/story.d.cts +49 -0
- package/dist/chains/definitions/story.d.ts +49 -0
- package/dist/chains/definitions/story.js +1 -0
- package/dist/chains/definitions/storyTestnet.cjs +1 -0
- package/dist/chains/definitions/storyTestnet.d.cts +43 -0
- package/dist/chains/definitions/storyTestnet.d.ts +43 -0
- package/dist/chains/definitions/storyTestnet.js +1 -0
- package/dist/chains/definitions/tempo.cjs +1 -0
- package/dist/chains/definitions/tempo.d.cts +39 -0
- package/dist/chains/definitions/tempo.d.ts +39 -0
- package/dist/chains/definitions/tempo.js +1 -0
- package/dist/chains/definitions/tempoTestnet.cjs +1 -0
- package/dist/chains/definitions/tempoTestnet.d.cts +39 -0
- package/dist/chains/definitions/tempoTestnet.d.ts +39 -0
- package/dist/chains/definitions/tempoTestnet.js +1 -0
- package/dist/chunk-2DANZH3R.js +1 -0
- package/dist/chunk-2GKPWQBQ.cjs +1 -0
- package/dist/chunk-2YLRFJ66.js +1 -0
- package/dist/chunk-3FY5QWEA.cjs +1 -0
- package/dist/chunk-3SVXPFSP.cjs +1 -0
- package/dist/chunk-3TRQCN5N.cjs +1 -0
- package/dist/chunk-3VRN3GKQ.js +1 -0
- package/dist/chunk-3VSFHDFH.cjs +1 -0
- package/dist/chunk-3VYGTPRF.cjs +1 -0
- package/dist/chunk-4DJWSV7I.cjs +1 -0
- package/dist/chunk-4GEI6CKB.js +1 -0
- package/dist/chunk-4KN3NJMT.cjs +1 -0
- package/dist/chunk-4YR5EP32.cjs +1 -0
- package/dist/chunk-5FH7WFWL.cjs +1 -0
- package/dist/chunk-5IFDVB4Y.js +0 -0
- package/dist/chunk-5LWJMR24.js +1 -0
- package/dist/chunk-5QIW67NU.cjs +1 -0
- package/dist/chunk-5X4EOJFG.cjs +1 -0
- package/dist/chunk-6EZCCLTK.cjs +1 -0
- package/dist/chunk-6HXIZLEQ.cjs +1 -0
- package/dist/chunk-6X5JEJD7.js +1 -0
- package/dist/chunk-A33BEWR7.cjs +1 -0
- package/dist/chunk-B5TANOHX.cjs +1 -0
- package/dist/chunk-B6GZ3H2H.js +1 -0
- package/dist/chunk-BITOMWYZ.js +1 -0
- package/dist/chunk-CAZWAHBL.cjs +1 -0
- package/dist/chunk-CBKN4SEV.js +1 -0
- package/dist/chunk-CCIGWTAO.cjs +1 -0
- package/dist/chunk-CEV4NP5X.cjs +1 -0
- package/dist/chunk-CKZYSQOK.js +1 -0
- package/dist/chunk-CUHDOBKN.cjs +1 -0
- package/dist/chunk-D6SLJ5C2.cjs +1 -0
- package/dist/chunk-DIGDDKSF.js +1 -0
- package/dist/chunk-ECAM5KTH.cjs +1 -0
- package/dist/chunk-EE4ITUGS.js +1 -0
- package/dist/chunk-EM3D5Q3A.js +1 -0
- package/dist/chunk-ENU3EKBG.cjs +1 -0
- package/dist/chunk-EXC7TCGL.js +1 -0
- package/dist/chunk-FT5EVMLB.js +1 -0
- package/dist/chunk-GEY3BU62.cjs +1 -0
- package/dist/chunk-GEY574TH.cjs +1 -0
- package/dist/chunk-GOXB2RBF.js +1 -0
- package/dist/chunk-GZP2JQ6P.cjs +1 -0
- package/dist/chunk-HRUMWG2F.cjs +1 -0
- package/dist/chunk-IA6LDKX6.cjs +1 -0
- package/dist/chunk-ICFT4GH4.cjs +3 -0
- package/dist/chunk-IFTHOW6I.js +1 -0
- package/dist/chunk-IGRPHTXZ.cjs +1 -0
- package/dist/chunk-IJ632UXD.cjs +1 -0
- package/dist/chunk-IOSADDL5.js +1 -0
- package/dist/chunk-IR5WN6FQ.cjs +1 -0
- package/dist/chunk-J33QM2ID.cjs +1 -0
- package/dist/chunk-J3R36SGJ.js +1 -0
- package/dist/chunk-JBP52JOH.cjs +1 -0
- package/dist/chunk-JINIR3YK.cjs +1 -0
- package/dist/chunk-K5TQ4QU3.cjs +1 -0
- package/dist/chunk-KBJA7JDT.js +0 -0
- package/dist/chunk-KKQBZXFE.js +1 -0
- package/dist/chunk-KUP7H7X2.js +1 -0
- package/dist/chunk-KY7JXYJT.js +1 -0
- package/dist/chunk-KYHZI332.js +1 -0
- package/dist/chunk-L2HE5GZQ.cjs +1 -0
- package/dist/chunk-L52GDMSH.js +0 -0
- package/dist/chunk-L756WM7L.cjs +1 -0
- package/dist/chunk-LKQYA27B.cjs +1 -0
- package/dist/chunk-LSMX26JP.js +1 -0
- package/dist/chunk-M335XCYO.js +1 -0
- package/dist/chunk-MXHHXA2U.cjs +1 -0
- package/dist/chunk-N355UETO.js +1 -0
- package/dist/chunk-N4IWDL6M.js +1 -0
- package/dist/chunk-N5622OKA.js +1 -0
- package/dist/chunk-NX256LAH.cjs +1 -0
- package/dist/chunk-O6VBO7KG.js +1 -0
- package/dist/chunk-OBCMEKEL.js +1 -0
- package/dist/chunk-ODOCGZQN.cjs +1 -0
- package/dist/chunk-OGP7B5O3.cjs +1 -0
- package/dist/chunk-OQZTL6ZG.js +1 -0
- package/dist/chunk-PDHWPAGW.js +1 -0
- package/dist/chunk-PHPBBEXU.cjs +1 -0
- package/dist/chunk-PO6S7UR3.cjs +1 -0
- package/dist/chunk-Q7CG36OB.js +3 -0
- package/dist/chunk-QM3BB4E2.js +0 -0
- package/dist/chunk-QVTKTDED.js +1 -0
- package/dist/chunk-RBSMBO4T.js +1 -0
- package/dist/chunk-RWV3P3EG.js +1 -0
- package/dist/chunk-S3DYQVRD.js +1 -0
- package/dist/chunk-SCEPJO4Q.cjs +1 -0
- package/dist/chunk-SLXO6E5S.js +1 -0
- package/dist/chunk-SPTXAOFR.cjs +1 -0
- package/dist/chunk-SVIKBM3S.js +1 -0
- package/dist/chunk-T3U46LK3.cjs +1 -0
- package/dist/chunk-TOAFCAVT.js +0 -0
- package/dist/chunk-U64C57PB.cjs +1 -0
- package/dist/chunk-UE3WVHTM.cjs +1 -0
- package/dist/chunk-VADIEIDS.js +1 -0
- package/dist/chunk-W7LJS32A.js +1 -0
- package/dist/chunk-WCGUGIGJ.js +1 -0
- package/dist/chunk-XLOZ34NX.js +1 -0
- package/dist/chunk-XNZLCUTY.js +1 -0
- package/dist/chunk-XS5B3TUE.js +1 -0
- package/dist/chunk-XVNQOEEA.js +1 -0
- package/dist/chunk-YDZRBHS3.js +0 -0
- package/dist/chunk-YF5G4U6L.cjs +1 -0
- package/dist/chunk-YGL4ITFK.cjs +1 -0
- package/dist/chunk-YH7G2U6V.js +1 -0
- package/dist/chunk-YHV3672R.cjs +1 -0
- package/dist/chunk-YIO5XXQ4.js +1 -0
- package/dist/chunk-ZKOHOVGT.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +21 -2
- package/dist/index.d.ts +21 -2
- package/dist/index.js +1 -1
- package/dist/logger/index.cjs +1 -0
- package/dist/logger/index.d.cts +2 -0
- package/dist/logger/index.d.ts +2 -0
- package/dist/logger/index.js +1 -0
- package/dist/logger/init.cjs +1 -0
- package/dist/logger/init.d.cts +15 -0
- package/dist/logger/init.d.ts +15 -0
- package/dist/logger/init.js +1 -0
- package/dist/sdk.cjs +1 -1
- package/dist/sdk.d.cts +42 -28
- package/dist/sdk.d.ts +42 -28
- package/dist/sdk.js +1 -1
- package/dist/signers/device.cjs +1 -0
- package/dist/signers/device.d.cts +23 -0
- package/dist/signers/device.d.ts +23 -0
- package/dist/signers/device.js +1 -0
- package/dist/signers/evm-api-key.cjs +1 -0
- package/dist/signers/evm-api-key.d.cts +22 -0
- package/dist/signers/evm-api-key.d.ts +22 -0
- package/dist/signers/evm-api-key.js +1 -0
- package/dist/signers/evm-external-wallet.cjs +1 -0
- package/dist/signers/evm-external-wallet.d.cts +25 -0
- package/dist/signers/evm-external-wallet.d.ts +25 -0
- package/dist/signers/evm-external-wallet.js +1 -0
- package/dist/signers/external-wallet-signer.cjs +1 -0
- package/dist/signers/external-wallet-signer.d.cts +28 -0
- package/dist/signers/external-wallet-signer.d.ts +28 -0
- package/dist/signers/external-wallet-signer.js +1 -0
- package/dist/signers/index.cjs +1 -0
- package/dist/signers/index.d.cts +15 -0
- package/dist/signers/index.d.ts +15 -0
- package/dist/signers/index.js +1 -0
- package/dist/signers/non-custodial/index.cjs +1 -0
- package/dist/signers/non-custodial/index.d.cts +15 -0
- package/dist/signers/non-custodial/index.d.ts +15 -0
- package/dist/signers/non-custodial/index.js +1 -0
- package/dist/signers/non-custodial/ncs-evm-signer.cjs +1 -0
- package/dist/signers/non-custodial/ncs-evm-signer.d.cts +34 -0
- package/dist/signers/non-custodial/ncs-evm-signer.d.ts +34 -0
- package/dist/signers/non-custodial/ncs-evm-signer.js +1 -0
- package/dist/signers/non-custodial/ncs-iframe-manager.cjs +1 -0
- package/dist/signers/non-custodial/ncs-iframe-manager.d.cts +16 -0
- package/dist/signers/non-custodial/ncs-iframe-manager.d.ts +16 -0
- package/dist/signers/non-custodial/ncs-iframe-manager.js +1 -0
- package/dist/signers/non-custodial/ncs-signer.cjs +1 -0
- package/dist/signers/non-custodial/ncs-signer.d.cts +54 -0
- package/dist/signers/non-custodial/ncs-signer.d.ts +54 -0
- package/dist/signers/non-custodial/ncs-signer.js +1 -0
- package/dist/signers/non-custodial/ncs-solana-signer.cjs +1 -0
- package/dist/signers/non-custodial/ncs-solana-signer.d.cts +31 -0
- package/dist/signers/non-custodial/ncs-solana-signer.d.ts +31 -0
- package/dist/signers/non-custodial/ncs-solana-signer.js +1 -0
- package/dist/signers/non-custodial/ncs-stellar-signer.cjs +1 -0
- package/dist/signers/non-custodial/ncs-stellar-signer.d.cts +31 -0
- package/dist/signers/non-custodial/ncs-stellar-signer.d.ts +31 -0
- package/dist/signers/non-custodial/ncs-stellar-signer.js +1 -0
- package/dist/signers/passkey.cjs +1 -0
- package/dist/signers/passkey.d.cts +23 -0
- package/dist/signers/passkey.d.ts +23 -0
- package/dist/signers/passkey.js +1 -0
- package/dist/signers/server/assemble-server-signer.cjs +1 -0
- package/dist/signers/server/assemble-server-signer.d.cts +15 -0
- package/dist/signers/server/assemble-server-signer.d.ts +15 -0
- package/dist/signers/server/assemble-server-signer.js +1 -0
- package/dist/signers/server/evm-server-signer.cjs +1 -0
- package/dist/signers/server/evm-server-signer.d.cts +29 -0
- package/dist/signers/server/evm-server-signer.d.ts +29 -0
- package/dist/signers/server/evm-server-signer.js +1 -0
- package/dist/signers/server/helpers/derive-server-signer.cjs +1 -0
- package/dist/signers/server/helpers/derive-server-signer.d.cts +19 -0
- package/dist/signers/server/helpers/derive-server-signer.d.ts +19 -0
- package/dist/signers/server/helpers/derive-server-signer.js +1 -0
- package/dist/signers/server/helpers/get-chain-type.cjs +1 -0
- package/dist/signers/server/helpers/get-chain-type.d.cts +7 -0
- package/dist/signers/server/helpers/get-chain-type.d.ts +7 -0
- package/dist/signers/server/helpers/get-chain-type.js +1 -0
- package/dist/signers/server/helpers/index.cjs +1 -0
- package/dist/signers/server/helpers/index.d.cts +13 -0
- package/dist/signers/server/helpers/index.d.ts +13 -0
- package/dist/signers/server/helpers/index.js +1 -0
- package/dist/signers/server/index.cjs +1 -0
- package/dist/signers/server/index.d.cts +16 -0
- package/dist/signers/server/index.d.ts +16 -0
- package/dist/signers/server/index.js +1 -0
- package/dist/signers/server/solana-server-signer.cjs +1 -0
- package/dist/signers/server/solana-server-signer.d.cts +29 -0
- package/dist/signers/server/solana-server-signer.d.ts +29 -0
- package/dist/signers/server/solana-server-signer.js +1 -0
- package/dist/signers/server/stellar-server-signer.cjs +1 -0
- package/dist/signers/server/stellar-server-signer.d.cts +29 -0
- package/dist/signers/server/stellar-server-signer.d.ts +29 -0
- package/dist/signers/server/stellar-server-signer.js +1 -0
- package/dist/signers/solana-api-key.cjs +1 -0
- package/dist/signers/solana-api-key.d.cts +22 -0
- package/dist/signers/solana-api-key.d.ts +22 -0
- package/dist/signers/solana-api-key.js +1 -0
- package/dist/signers/solana-external-wallet.cjs +1 -0
- package/dist/signers/solana-external-wallet.d.cts +23 -0
- package/dist/signers/solana-external-wallet.d.ts +23 -0
- package/dist/signers/solana-external-wallet.js +1 -0
- package/dist/signers/stellar-external-wallet.cjs +1 -0
- package/dist/signers/stellar-external-wallet.d.cts +23 -0
- package/dist/signers/stellar-external-wallet.d.ts +23 -0
- package/dist/signers/stellar-external-wallet.js +1 -0
- package/dist/signers/types.cjs +1 -0
- package/dist/signers/types.d.cts +11 -0
- package/dist/signers/types.d.ts +11 -0
- package/dist/signers/types.js +1 -0
- package/dist/types/base32.js.d.cjs +1 -0
- package/dist/types/base32.js.d.d.cts +4 -0
- package/dist/types/base32.js.d.d.ts +4 -0
- package/dist/types/base32.js.d.js +0 -0
- package/dist/types-DfT-EHk3.d.cts +428 -0
- package/dist/types-vcGYTcL0.d.ts +428 -0
- package/dist/utils/constants.cjs +1 -1
- package/dist/utils/constants.d.cts +2 -1
- package/dist/utils/constants.d.ts +2 -1
- package/dist/utils/constants.js +1 -1
- package/dist/utils/device-signers/DeviceSignerKeyStorage.cjs +1 -0
- package/dist/utils/device-signers/DeviceSignerKeyStorage.d.cts +72 -0
- package/dist/utils/device-signers/DeviceSignerKeyStorage.d.ts +72 -0
- package/dist/utils/device-signers/DeviceSignerKeyStorage.js +1 -0
- package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.cjs +1 -0
- package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.d.cts +51 -0
- package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.d.ts +51 -0
- package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.js +1 -0
- package/dist/utils/device-signers/createDeviceSigner.cjs +1 -0
- package/dist/utils/device-signers/createDeviceSigner.d.cts +28 -0
- package/dist/utils/device-signers/createDeviceSigner.d.ts +28 -0
- package/dist/utils/device-signers/createDeviceSigner.js +1 -0
- package/dist/utils/device-signers/index.cjs +1 -0
- package/dist/utils/device-signers/index.d.cts +13 -0
- package/dist/utils/device-signers/index.d.ts +13 -0
- package/dist/utils/device-signers/index.js +1 -0
- package/dist/utils/errors.cjs +1 -0
- package/dist/utils/errors.d.cts +89 -0
- package/dist/utils/errors.d.ts +89 -0
- package/dist/utils/errors.js +1 -0
- package/dist/utils/server-key-derivation.cjs +1 -0
- package/dist/utils/server-key-derivation.d.cts +20 -0
- package/dist/utils/server-key-derivation.d.ts +20 -0
- package/dist/utils/server-key-derivation.js +1 -0
- package/dist/utils/signer-locator.cjs +1 -0
- package/dist/utils/signer-locator.d.cts +26 -0
- package/dist/utils/signer-locator.d.ts +26 -0
- package/dist/utils/signer-locator.js +1 -0
- package/dist/utils/signer-mapping.cjs +1 -0
- package/dist/utils/signer-mapping.d.cts +36 -0
- package/dist/utils/signer-mapping.d.ts +36 -0
- package/dist/utils/signer-mapping.js +1 -0
- package/dist/utils/signer-validation.cjs +1 -0
- package/dist/utils/signer-validation.d.cts +11 -0
- package/dist/utils/signer-validation.d.ts +11 -0
- package/dist/utils/signer-validation.js +1 -0
- package/dist/utils/stellar.cjs +1 -0
- package/dist/utils/stellar.d.cts +18 -0
- package/dist/utils/stellar.d.ts +18 -0
- package/dist/utils/stellar.js +1 -0
- package/dist/wallets/__tests__/setup.cjs +1 -0
- package/dist/wallets/__tests__/setup.d.cts +2 -0
- package/dist/wallets/__tests__/setup.d.ts +2 -0
- package/dist/wallets/__tests__/setup.js +1 -0
- package/dist/wallets/__tests__/test-helpers.cjs +1 -0
- package/dist/wallets/__tests__/test-helpers.d.cts +36 -0
- package/dist/wallets/__tests__/test-helpers.d.ts +36 -0
- package/dist/wallets/__tests__/test-helpers.js +1 -0
- package/dist/wallets/evm.cjs +1 -0
- package/dist/wallets/evm.d.cts +154 -0
- package/dist/wallets/evm.d.ts +154 -0
- package/dist/wallets/evm.js +1 -0
- package/dist/wallets/solana.cjs +1 -0
- package/dist/wallets/solana.d.cts +29 -0
- package/dist/wallets/solana.d.ts +29 -0
- package/dist/wallets/solana.js +1 -0
- package/dist/wallets/stellar.cjs +1 -0
- package/dist/wallets/stellar.d.cts +29 -0
- package/dist/wallets/stellar.d.ts +29 -0
- package/dist/wallets/stellar.js +1 -0
- package/dist/wallets/types.cjs +1 -0
- package/dist/wallets/types.d.cts +11 -0
- package/dist/wallets/types.d.ts +11 -0
- package/dist/wallets/types.js +0 -0
- package/dist/wallets/wallet-factory.cjs +1 -0
- package/dist/wallets/wallet-factory.d.cts +37 -0
- package/dist/wallets/wallet-factory.d.ts +37 -0
- package/dist/wallets/wallet-factory.js +1 -0
- package/dist/wallets/wallet.cjs +1 -0
- package/dist/wallets/wallet.d.cts +274 -0
- package/dist/wallets/wallet.d.ts +274 -0
- package/dist/wallets/wallet.js +1 -0
- package/package.json +30 -12
- package/dist/chunk-22GIA4MK.js +0 -1
- package/dist/chunk-3ENSZP74.cjs +0 -1
- package/dist/chunk-6TDMYZSP.js +0 -1
- package/dist/chunk-APYZEG33.js +0 -1
- package/dist/chunk-CK4JCQY6.cjs +0 -1
- package/dist/chunk-DBOB7H6W.cjs +0 -1
- package/dist/chunk-EY4BQMWT.js +0 -1
- package/dist/chunk-ICE64YWF.js +0 -1
- package/dist/chunk-MSK53SDP.js +0 -1
- package/dist/chunk-O5UBTDCJ.cjs +0 -1
- package/dist/chunk-OOKBOMFJ.cjs +0 -1
- package/dist/chunk-U2WTEWN7.cjs +0 -1
- package/dist/chunk-WVCL7F3L.js +0 -1
- package/dist/chunk-Z4FSGH26.js +0 -1
- package/dist/chunk-Z4XNQ4N5.cjs +0 -1
- package/dist/chunk-Z6JFF3HR.cjs +0 -1
- package/dist/evm/chains.cjs +0 -1
- package/dist/evm/chains.d.cts +0 -9
- package/dist/evm/chains.d.ts +0 -9
- package/dist/evm/chains.js +0 -1
- package/dist/evm/index.cjs +0 -1
- package/dist/evm/index.d.cts +0 -6
- package/dist/evm/index.d.ts +0 -6
- package/dist/evm/index.js +0 -1
- package/dist/evm/wallet.cjs +0 -1
- package/dist/evm/wallet.d.cts +0 -48
- package/dist/evm/wallet.d.ts +0 -48
- package/dist/evm/wallet.js +0 -1
- package/dist/solana/index.cjs +0 -1
- package/dist/solana/index.d.cts +0 -5
- package/dist/solana/index.d.ts +0 -5
- package/dist/solana/index.js +0 -1
- package/dist/solana/wallet.cjs +0 -1
- package/dist/solana/wallet.d.cts +0 -33
- package/dist/solana/wallet.d.ts +0 -33
- package/dist/solana/wallet.js +0 -1
- /package/dist/{chunk-A7F5DWC7.js → chunk-455NK5LB.js} +0 -0
- /package/dist/{chunk-RUIBT3JV.cjs → chunk-5IC7UWND.cjs} +0 -0
package/dist/api/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-6HXIZLEQ.cjs');var _chunkIA6LDKX6cjs = require('../chunk-IA6LDKX6.cjs');require('../chunk-ECAM5KTH.cjs');require('../chunk-T3U46LK3.cjs');require('../chunk-3TRQCN5N.cjs');require('../chunk-LKQYA27B.cjs');require('../chunk-2GKPWQBQ.cjs');exports.ApiClient = _chunkIA6LDKX6cjs.a;
|
package/dist/api/index.d.cts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
export { ApiClient
|
|
1
|
+
export { ApiClient } from './client.cjs';
|
|
2
|
+
export { ak as ApproveSignatureParams, a4 as ApproveSignatureResponse, ag as ApproveTransactionParams, ah as ApproveTransactionResponse, ai as CreateSignatureParams, aj as CreateSignatureResponse, ae as CreateTransactionParams, af as CreateTransactionResponse, av as CreateTransactionSuccessResponse, a7 as CreateWalletParams, a5 as CreateWalletResponse, ao as FundWalletParams, Y as FundWalletResponse, an as GetBalanceResponse, aw as GetBalanceSuccessResponse, al as GetSignatureResponse, ar as GetSignerResponse, ay as GetSignersResponse, a8 as GetTransactionResponse, _ as GetTransactionSuccessResponse, Z as GetTransactionsResponse, am as GetTransfersResponse, ad as GetWalletResponse, at as GetWalletSuccessResponse, au as RecoverySignerConfig, ax as RegisterSignerChain, ap as RegisterSignerParams, R as RegisterSignerPasskeyParams, aq as RegisterSignerResponse, as as SendParams, a6 as SendResponse, N as Signer, T as Transfers, a3 as WalletLocator } from '../types-DfT-EHk3.cjs';
|
|
2
3
|
import '@crossmint/common-sdk-base';
|
|
4
|
+
import '../chains/chains.cjs';
|
|
5
|
+
import 'viem';
|
|
3
6
|
import './gen/types.gen.cjs';
|
|
7
|
+
import 'ox';
|
|
8
|
+
import '@crossmint/client-sdk-window';
|
|
9
|
+
import '@crossmint/client-signers';
|
|
10
|
+
import '@solana/web3.js';
|
|
11
|
+
import 'abitype';
|
|
12
|
+
import '../utils/device-signers/DeviceSignerKeyStorage.cjs';
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
export { ApiClient
|
|
1
|
+
export { ApiClient } from './client.js';
|
|
2
|
+
export { ak as ApproveSignatureParams, a4 as ApproveSignatureResponse, ag as ApproveTransactionParams, ah as ApproveTransactionResponse, ai as CreateSignatureParams, aj as CreateSignatureResponse, ae as CreateTransactionParams, af as CreateTransactionResponse, av as CreateTransactionSuccessResponse, a7 as CreateWalletParams, a5 as CreateWalletResponse, ao as FundWalletParams, Y as FundWalletResponse, an as GetBalanceResponse, aw as GetBalanceSuccessResponse, al as GetSignatureResponse, ar as GetSignerResponse, ay as GetSignersResponse, a8 as GetTransactionResponse, _ as GetTransactionSuccessResponse, Z as GetTransactionsResponse, am as GetTransfersResponse, ad as GetWalletResponse, at as GetWalletSuccessResponse, au as RecoverySignerConfig, ax as RegisterSignerChain, ap as RegisterSignerParams, R as RegisterSignerPasskeyParams, aq as RegisterSignerResponse, as as SendParams, a6 as SendResponse, N as Signer, T as Transfers, a3 as WalletLocator } from '../types-vcGYTcL0.js';
|
|
2
3
|
import '@crossmint/common-sdk-base';
|
|
4
|
+
import '../chains/chains.js';
|
|
5
|
+
import 'viem';
|
|
3
6
|
import './gen/types.gen.js';
|
|
7
|
+
import 'ox';
|
|
8
|
+
import '@crossmint/client-sdk-window';
|
|
9
|
+
import '@crossmint/client-signers';
|
|
10
|
+
import '@solana/web3.js';
|
|
11
|
+
import 'abitype';
|
|
12
|
+
import '../utils/device-signers/DeviceSignerKeyStorage.js';
|
package/dist/api/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunk-
|
|
1
|
+
import"../chunk-5IFDVB4Y.js";import{a}from"../chunk-IFTHOW6I.js";import"../chunk-KBJA7JDT.js";import"../chunk-EXC7TCGL.js";import"../chunk-B6GZ3H2H.js";import"../chunk-XLOZ34NX.js";import"../chunk-J3R36SGJ.js";export{a as ApiClient};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('../chunk-ECAM5KTH.cjs');
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import 'viem';
|
|
2
|
+
import './gen/types.gen.cjs';
|
|
3
|
+
export { ak as ApproveSignatureParams, a4 as ApproveSignatureResponse, ag as ApproveTransactionParams, ah as ApproveTransactionResponse, ai as CreateSignatureParams, aj as CreateSignatureResponse, ae as CreateTransactionParams, af as CreateTransactionResponse, av as CreateTransactionSuccessResponse, a7 as CreateWalletParams, a5 as CreateWalletResponse, ao as FundWalletParams, Y as FundWalletResponse, an as GetBalanceResponse, aw as GetBalanceSuccessResponse, al as GetSignatureResponse, ar as GetSignerResponse, ay as GetSignersResponse, a8 as GetTransactionResponse, _ as GetTransactionSuccessResponse, Z as GetTransactionsResponse, am as GetTransfersResponse, ad as GetWalletResponse, at as GetWalletSuccessResponse, au as RecoverySignerConfig, ax as RegisterSignerChain, ap as RegisterSignerParams, R as RegisterSignerPasskeyParams, aq as RegisterSignerResponse, as as SendParams, a6 as SendResponse, N as Signer, T as Transfers, a3 as WalletLocator } from '../types-DfT-EHk3.cjs';
|
|
4
|
+
import '../chains/chains.cjs';
|
|
5
|
+
import 'ox';
|
|
6
|
+
import '@crossmint/client-sdk-window';
|
|
7
|
+
import '@crossmint/client-signers';
|
|
8
|
+
import '@crossmint/common-sdk-base';
|
|
9
|
+
import '@solana/web3.js';
|
|
10
|
+
import 'abitype';
|
|
11
|
+
import '../utils/device-signers/DeviceSignerKeyStorage.cjs';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import 'viem';
|
|
2
|
+
import './gen/types.gen.js';
|
|
3
|
+
export { ak as ApproveSignatureParams, a4 as ApproveSignatureResponse, ag as ApproveTransactionParams, ah as ApproveTransactionResponse, ai as CreateSignatureParams, aj as CreateSignatureResponse, ae as CreateTransactionParams, af as CreateTransactionResponse, av as CreateTransactionSuccessResponse, a7 as CreateWalletParams, a5 as CreateWalletResponse, ao as FundWalletParams, Y as FundWalletResponse, an as GetBalanceResponse, aw as GetBalanceSuccessResponse, al as GetSignatureResponse, ar as GetSignerResponse, ay as GetSignersResponse, a8 as GetTransactionResponse, _ as GetTransactionSuccessResponse, Z as GetTransactionsResponse, am as GetTransfersResponse, ad as GetWalletResponse, at as GetWalletSuccessResponse, au as RecoverySignerConfig, ax as RegisterSignerChain, ap as RegisterSignerParams, R as RegisterSignerPasskeyParams, aq as RegisterSignerResponse, as as SendParams, a6 as SendResponse, N as Signer, T as Transfers, a3 as WalletLocator } from '../types-vcGYTcL0.js';
|
|
4
|
+
import '../chains/chains.js';
|
|
5
|
+
import 'ox';
|
|
6
|
+
import '@crossmint/client-sdk-window';
|
|
7
|
+
import '@crossmint/client-signers';
|
|
8
|
+
import '@crossmint/common-sdk-base';
|
|
9
|
+
import '@solana/web3.js';
|
|
10
|
+
import 'abitype';
|
|
11
|
+
import '../utils/device-signers/DeviceSignerKeyStorage.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../chunk-KBJA7JDT.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkCEV4NP5Xcjs = require('../chunk-CEV4NP5X.cjs');require('../chunk-GEY574TH.cjs');require('../chunk-UE3WVHTM.cjs');require('../chunk-5X4EOJFG.cjs');require('../chunk-HRUMWG2F.cjs');require('../chunk-IR5WN6FQ.cjs');require('../chunk-T3U46LK3.cjs');require('../chunk-CCIGWTAO.cjs');require('../chunk-3TRQCN5N.cjs');require('../chunk-LKQYA27B.cjs');require('../chunk-2GKPWQBQ.cjs');exports.isMainnetChain = _chunkCEV4NP5Xcjs.c; exports.isTestnetChain = _chunkCEV4NP5Xcjs.b; exports.isValidChain = _chunkCEV4NP5Xcjs.e; exports.mainnetToTestnet = _chunkCEV4NP5Xcjs.d; exports.toViemChain = _chunkCEV4NP5Xcjs.a; exports.validateChainForEnvironment = _chunkCEV4NP5Xcjs.f;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { APIKeyEnvironmentPrefix } from '@crossmint/common-sdk-base';
|
|
2
|
+
import { Chain as Chain$1 } from 'viem';
|
|
3
|
+
|
|
4
|
+
declare const TESTNET_AA_CHAINS: readonly ["abstract-testnet", "arbitrum-sepolia", "base-sepolia", "curtis", "ethereum-sepolia", "flow-testnet", "mantle-sepolia", "mode-sepolia", "optimism-sepolia", "plume-testnet", "polygon-amoy", "scroll-sepolia", "sei-atlantic-2-testnet", "story-testnet", "world-chain-sepolia", "zora-sepolia", "arc-testnet", "tempo-testnet"];
|
|
5
|
+
declare const PRODUCTION_AA_CHAINS: readonly ["abstract", "apechain", "arbitrum", "arbitrumnova", "base", "bsc", "flow", "mantle", "mode", "optimism", "plume", "polygon", "scroll", "sei-pacific-1", "shape", "story", "tempo", "world-chain", "zora"];
|
|
6
|
+
type EVMSmartWalletTestnet = (typeof TESTNET_AA_CHAINS)[number];
|
|
7
|
+
type EVMSmartWalletMainnet = (typeof PRODUCTION_AA_CHAINS)[number];
|
|
8
|
+
type EVMSmartWalletChain = EVMSmartWalletTestnet | EVMSmartWalletMainnet;
|
|
9
|
+
declare function toViemChain(chain: EVMSmartWalletChain): Chain$1;
|
|
10
|
+
type SolanaChain = "solana";
|
|
11
|
+
type StellarChain = "stellar";
|
|
12
|
+
type EVMChain = EVMSmartWalletChain;
|
|
13
|
+
type Chain = SolanaChain | EVMChain | StellarChain;
|
|
14
|
+
declare function isTestnetChain(chain: EVMSmartWalletChain): chain is EVMSmartWalletTestnet;
|
|
15
|
+
declare function isMainnetChain(chain: EVMSmartWalletChain): chain is EVMSmartWalletMainnet;
|
|
16
|
+
declare function mainnetToTestnet(chain: EVMSmartWalletMainnet): EVMSmartWalletTestnet | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Validates that a chain is appropriate for the given environment.
|
|
19
|
+
* In production, only mainnet chains are allowed - throws if a testnet chain is used.
|
|
20
|
+
* In non-production environments, mainnet chains are automatically converted to their testnet equivalent.
|
|
21
|
+
*
|
|
22
|
+
* @param chain - The chain to validate
|
|
23
|
+
* @param environment - The API key environment prefix
|
|
24
|
+
* @returns The validated (and potentially converted) chain
|
|
25
|
+
*/
|
|
26
|
+
declare function isValidChain(chain: string): chain is Chain;
|
|
27
|
+
declare function validateChainForEnvironment<C extends Chain>(chain: C, environment: APIKeyEnvironmentPrefix): C;
|
|
28
|
+
|
|
29
|
+
export { type Chain, type EVMChain, type EVMSmartWalletChain, type EVMSmartWalletMainnet, type EVMSmartWalletTestnet, type SolanaChain, type StellarChain, isMainnetChain, isTestnetChain, isValidChain, mainnetToTestnet, toViemChain, validateChainForEnvironment };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { APIKeyEnvironmentPrefix } from '@crossmint/common-sdk-base';
|
|
2
|
+
import { Chain as Chain$1 } from 'viem';
|
|
3
|
+
|
|
4
|
+
declare const TESTNET_AA_CHAINS: readonly ["abstract-testnet", "arbitrum-sepolia", "base-sepolia", "curtis", "ethereum-sepolia", "flow-testnet", "mantle-sepolia", "mode-sepolia", "optimism-sepolia", "plume-testnet", "polygon-amoy", "scroll-sepolia", "sei-atlantic-2-testnet", "story-testnet", "world-chain-sepolia", "zora-sepolia", "arc-testnet", "tempo-testnet"];
|
|
5
|
+
declare const PRODUCTION_AA_CHAINS: readonly ["abstract", "apechain", "arbitrum", "arbitrumnova", "base", "bsc", "flow", "mantle", "mode", "optimism", "plume", "polygon", "scroll", "sei-pacific-1", "shape", "story", "tempo", "world-chain", "zora"];
|
|
6
|
+
type EVMSmartWalletTestnet = (typeof TESTNET_AA_CHAINS)[number];
|
|
7
|
+
type EVMSmartWalletMainnet = (typeof PRODUCTION_AA_CHAINS)[number];
|
|
8
|
+
type EVMSmartWalletChain = EVMSmartWalletTestnet | EVMSmartWalletMainnet;
|
|
9
|
+
declare function toViemChain(chain: EVMSmartWalletChain): Chain$1;
|
|
10
|
+
type SolanaChain = "solana";
|
|
11
|
+
type StellarChain = "stellar";
|
|
12
|
+
type EVMChain = EVMSmartWalletChain;
|
|
13
|
+
type Chain = SolanaChain | EVMChain | StellarChain;
|
|
14
|
+
declare function isTestnetChain(chain: EVMSmartWalletChain): chain is EVMSmartWalletTestnet;
|
|
15
|
+
declare function isMainnetChain(chain: EVMSmartWalletChain): chain is EVMSmartWalletMainnet;
|
|
16
|
+
declare function mainnetToTestnet(chain: EVMSmartWalletMainnet): EVMSmartWalletTestnet | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Validates that a chain is appropriate for the given environment.
|
|
19
|
+
* In production, only mainnet chains are allowed - throws if a testnet chain is used.
|
|
20
|
+
* In non-production environments, mainnet chains are automatically converted to their testnet equivalent.
|
|
21
|
+
*
|
|
22
|
+
* @param chain - The chain to validate
|
|
23
|
+
* @param environment - The API key environment prefix
|
|
24
|
+
* @returns The validated (and potentially converted) chain
|
|
25
|
+
*/
|
|
26
|
+
declare function isValidChain(chain: string): chain is Chain;
|
|
27
|
+
declare function validateChainForEnvironment<C extends Chain>(chain: C, environment: APIKeyEnvironmentPrefix): C;
|
|
28
|
+
|
|
29
|
+
export { type Chain, type EVMChain, type EVMSmartWalletChain, type EVMSmartWalletMainnet, type EVMSmartWalletTestnet, type SolanaChain, type StellarChain, isMainnetChain, isTestnetChain, isValidChain, mainnetToTestnet, toViemChain, validateChainForEnvironment };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d,e,f}from"../chunk-KY7JXYJT.js";import"../chunk-S3DYQVRD.js";import"../chunk-KUP7H7X2.js";import"../chunk-FT5EVMLB.js";import"../chunk-SVIKBM3S.js";import"../chunk-KKQBZXFE.js";import"../chunk-EXC7TCGL.js";import"../chunk-455NK5LB.js";import"../chunk-B6GZ3H2H.js";import"../chunk-XLOZ34NX.js";import"../chunk-J3R36SGJ.js";export{c as isMainnetChain,b as isTestnetChain,e as isValidChain,d as mainnetToTestnet,a as toViemChain,f as validateChainForEnvironment};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkHRUMWG2Fcjs = require('../../chunk-HRUMWG2F.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.arcTestnet = _chunkHRUMWG2Fcjs.a;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as viem from 'viem';
|
|
2
|
+
|
|
3
|
+
declare const arcTestnet: {
|
|
4
|
+
blockExplorers: {
|
|
5
|
+
readonly default: {
|
|
6
|
+
readonly name: "Arc Testnet Explorer";
|
|
7
|
+
readonly url: "https://testnet.arcscan.app";
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
blockTime?: number | undefined;
|
|
11
|
+
contracts?: viem.Prettify<{
|
|
12
|
+
[key: string]: viem.ChainContract | {
|
|
13
|
+
[sourceId: number]: viem.ChainContract | undefined;
|
|
14
|
+
} | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
ensRegistry?: viem.ChainContract | undefined;
|
|
17
|
+
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
18
|
+
multicall3?: viem.ChainContract | undefined;
|
|
19
|
+
universalSignatureVerifier?: viem.ChainContract | undefined;
|
|
20
|
+
}> | undefined;
|
|
21
|
+
ensTlds?: readonly string[] | undefined;
|
|
22
|
+
id: 5042002;
|
|
23
|
+
name: "Arc Testnet";
|
|
24
|
+
nativeCurrency: {
|
|
25
|
+
readonly decimals: 6;
|
|
26
|
+
readonly name: "USDC";
|
|
27
|
+
readonly symbol: "USDC";
|
|
28
|
+
};
|
|
29
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
30
|
+
rpcUrls: {
|
|
31
|
+
readonly default: {
|
|
32
|
+
readonly http: readonly ["https://rpc.testnet.arc.network"];
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
sourceId?: number | undefined;
|
|
36
|
+
testnet: true;
|
|
37
|
+
custom?: Record<string, unknown> | undefined;
|
|
38
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
39
|
+
formatters?: undefined;
|
|
40
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export { arcTestnet };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as viem from 'viem';
|
|
2
|
+
|
|
3
|
+
declare const arcTestnet: {
|
|
4
|
+
blockExplorers: {
|
|
5
|
+
readonly default: {
|
|
6
|
+
readonly name: "Arc Testnet Explorer";
|
|
7
|
+
readonly url: "https://testnet.arcscan.app";
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
blockTime?: number | undefined;
|
|
11
|
+
contracts?: viem.Prettify<{
|
|
12
|
+
[key: string]: viem.ChainContract | {
|
|
13
|
+
[sourceId: number]: viem.ChainContract | undefined;
|
|
14
|
+
} | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
ensRegistry?: viem.ChainContract | undefined;
|
|
17
|
+
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
18
|
+
multicall3?: viem.ChainContract | undefined;
|
|
19
|
+
universalSignatureVerifier?: viem.ChainContract | undefined;
|
|
20
|
+
}> | undefined;
|
|
21
|
+
ensTlds?: readonly string[] | undefined;
|
|
22
|
+
id: 5042002;
|
|
23
|
+
name: "Arc Testnet";
|
|
24
|
+
nativeCurrency: {
|
|
25
|
+
readonly decimals: 6;
|
|
26
|
+
readonly name: "USDC";
|
|
27
|
+
readonly symbol: "USDC";
|
|
28
|
+
};
|
|
29
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
30
|
+
rpcUrls: {
|
|
31
|
+
readonly default: {
|
|
32
|
+
readonly http: readonly ["https://rpc.testnet.arc.network"];
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
sourceId?: number | undefined;
|
|
36
|
+
testnet: true;
|
|
37
|
+
custom?: Record<string, unknown> | undefined;
|
|
38
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
39
|
+
formatters?: undefined;
|
|
40
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export { arcTestnet };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../chunk-SVIKBM3S.js";import"../../chunk-J3R36SGJ.js";export{a as arcTestnet};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkIR5WN6FQcjs = require('../../chunk-IR5WN6FQ.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.story = _chunkIR5WN6FQcjs.a;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as viem from 'viem';
|
|
2
|
+
|
|
3
|
+
declare const story: {
|
|
4
|
+
blockExplorers?: {
|
|
5
|
+
[key: string]: {
|
|
6
|
+
name: string;
|
|
7
|
+
url: string;
|
|
8
|
+
apiUrl?: string | undefined;
|
|
9
|
+
};
|
|
10
|
+
default: {
|
|
11
|
+
name: string;
|
|
12
|
+
url: string;
|
|
13
|
+
apiUrl?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
} | undefined;
|
|
16
|
+
blockTime?: number | undefined;
|
|
17
|
+
contracts?: viem.Prettify<{
|
|
18
|
+
[key: string]: viem.ChainContract | {
|
|
19
|
+
[sourceId: number]: viem.ChainContract | undefined;
|
|
20
|
+
} | undefined;
|
|
21
|
+
} & {
|
|
22
|
+
ensRegistry?: viem.ChainContract | undefined;
|
|
23
|
+
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
24
|
+
multicall3?: viem.ChainContract | undefined;
|
|
25
|
+
universalSignatureVerifier?: viem.ChainContract | undefined;
|
|
26
|
+
}> | undefined;
|
|
27
|
+
ensTlds?: readonly string[] | undefined;
|
|
28
|
+
id: 1514;
|
|
29
|
+
name: "Story";
|
|
30
|
+
nativeCurrency: {
|
|
31
|
+
readonly decimals: 18;
|
|
32
|
+
readonly name: "IP Token";
|
|
33
|
+
readonly symbol: "IP";
|
|
34
|
+
};
|
|
35
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
36
|
+
rpcUrls: {
|
|
37
|
+
readonly default: {
|
|
38
|
+
readonly http: readonly ["https://mainnet.storyrpc.io"];
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
sourceId?: number | undefined;
|
|
42
|
+
testnet: false;
|
|
43
|
+
custom?: Record<string, unknown> | undefined;
|
|
44
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
45
|
+
formatters?: undefined;
|
|
46
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export { story };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as viem from 'viem';
|
|
2
|
+
|
|
3
|
+
declare const story: {
|
|
4
|
+
blockExplorers?: {
|
|
5
|
+
[key: string]: {
|
|
6
|
+
name: string;
|
|
7
|
+
url: string;
|
|
8
|
+
apiUrl?: string | undefined;
|
|
9
|
+
};
|
|
10
|
+
default: {
|
|
11
|
+
name: string;
|
|
12
|
+
url: string;
|
|
13
|
+
apiUrl?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
} | undefined;
|
|
16
|
+
blockTime?: number | undefined;
|
|
17
|
+
contracts?: viem.Prettify<{
|
|
18
|
+
[key: string]: viem.ChainContract | {
|
|
19
|
+
[sourceId: number]: viem.ChainContract | undefined;
|
|
20
|
+
} | undefined;
|
|
21
|
+
} & {
|
|
22
|
+
ensRegistry?: viem.ChainContract | undefined;
|
|
23
|
+
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
24
|
+
multicall3?: viem.ChainContract | undefined;
|
|
25
|
+
universalSignatureVerifier?: viem.ChainContract | undefined;
|
|
26
|
+
}> | undefined;
|
|
27
|
+
ensTlds?: readonly string[] | undefined;
|
|
28
|
+
id: 1514;
|
|
29
|
+
name: "Story";
|
|
30
|
+
nativeCurrency: {
|
|
31
|
+
readonly decimals: 18;
|
|
32
|
+
readonly name: "IP Token";
|
|
33
|
+
readonly symbol: "IP";
|
|
34
|
+
};
|
|
35
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
36
|
+
rpcUrls: {
|
|
37
|
+
readonly default: {
|
|
38
|
+
readonly http: readonly ["https://mainnet.storyrpc.io"];
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
sourceId?: number | undefined;
|
|
42
|
+
testnet: false;
|
|
43
|
+
custom?: Record<string, unknown> | undefined;
|
|
44
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
45
|
+
formatters?: undefined;
|
|
46
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export { story };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../chunk-KKQBZXFE.js";import"../../chunk-J3R36SGJ.js";export{a as story};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGEY574THcjs = require('../../chunk-GEY574TH.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.storyTestnet = _chunkGEY574THcjs.a;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as viem from 'viem';
|
|
2
|
+
|
|
3
|
+
declare const storyTestnet: {
|
|
4
|
+
blockExplorers: {
|
|
5
|
+
readonly default: {
|
|
6
|
+
readonly name: "Story Testnet Explorer";
|
|
7
|
+
readonly url: "https://testnet.storyscan.xyz";
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
blockTime?: number | undefined;
|
|
11
|
+
contracts?: viem.Prettify<{
|
|
12
|
+
[key: string]: viem.ChainContract | {
|
|
13
|
+
[sourceId: number]: viem.ChainContract | undefined;
|
|
14
|
+
} | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
ensRegistry?: viem.ChainContract | undefined;
|
|
17
|
+
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
18
|
+
multicall3?: viem.ChainContract | undefined;
|
|
19
|
+
universalSignatureVerifier?: viem.ChainContract | undefined;
|
|
20
|
+
}> | undefined;
|
|
21
|
+
ensTlds?: readonly string[] | undefined;
|
|
22
|
+
id: 1513;
|
|
23
|
+
name: "Story Testnet";
|
|
24
|
+
nativeCurrency: {
|
|
25
|
+
readonly decimals: 18;
|
|
26
|
+
readonly name: "IP";
|
|
27
|
+
readonly symbol: "IP";
|
|
28
|
+
};
|
|
29
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
30
|
+
rpcUrls: {
|
|
31
|
+
readonly default: {
|
|
32
|
+
readonly http: readonly ["https://testnet.storyrpc.io"];
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
sourceId?: number | undefined;
|
|
36
|
+
testnet: true;
|
|
37
|
+
custom?: Record<string, unknown> | undefined;
|
|
38
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
39
|
+
formatters?: undefined;
|
|
40
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export { storyTestnet };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as viem from 'viem';
|
|
2
|
+
|
|
3
|
+
declare const storyTestnet: {
|
|
4
|
+
blockExplorers: {
|
|
5
|
+
readonly default: {
|
|
6
|
+
readonly name: "Story Testnet Explorer";
|
|
7
|
+
readonly url: "https://testnet.storyscan.xyz";
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
blockTime?: number | undefined;
|
|
11
|
+
contracts?: viem.Prettify<{
|
|
12
|
+
[key: string]: viem.ChainContract | {
|
|
13
|
+
[sourceId: number]: viem.ChainContract | undefined;
|
|
14
|
+
} | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
ensRegistry?: viem.ChainContract | undefined;
|
|
17
|
+
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
18
|
+
multicall3?: viem.ChainContract | undefined;
|
|
19
|
+
universalSignatureVerifier?: viem.ChainContract | undefined;
|
|
20
|
+
}> | undefined;
|
|
21
|
+
ensTlds?: readonly string[] | undefined;
|
|
22
|
+
id: 1513;
|
|
23
|
+
name: "Story Testnet";
|
|
24
|
+
nativeCurrency: {
|
|
25
|
+
readonly decimals: 18;
|
|
26
|
+
readonly name: "IP";
|
|
27
|
+
readonly symbol: "IP";
|
|
28
|
+
};
|
|
29
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
30
|
+
rpcUrls: {
|
|
31
|
+
readonly default: {
|
|
32
|
+
readonly http: readonly ["https://testnet.storyrpc.io"];
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
sourceId?: number | undefined;
|
|
36
|
+
testnet: true;
|
|
37
|
+
custom?: Record<string, unknown> | undefined;
|
|
38
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
39
|
+
formatters?: undefined;
|
|
40
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export { storyTestnet };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../chunk-S3DYQVRD.js";import"../../chunk-J3R36SGJ.js";export{a as storyTestnet};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkUE3WVHTMcjs = require('../../chunk-UE3WVHTM.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.tempo = _chunkUE3WVHTMcjs.a;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as viem from 'viem';
|
|
2
|
+
|
|
3
|
+
declare const tempo: {
|
|
4
|
+
blockExplorers: {
|
|
5
|
+
readonly default: {
|
|
6
|
+
readonly name: "Tempo Explorer";
|
|
7
|
+
readonly url: "https://explore.mainnet.tempo.xyz";
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
blockTime?: number | undefined;
|
|
11
|
+
contracts?: viem.Prettify<{
|
|
12
|
+
[key: string]: viem.ChainContract | {
|
|
13
|
+
[sourceId: number]: viem.ChainContract | undefined;
|
|
14
|
+
} | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
ensRegistry?: viem.ChainContract | undefined;
|
|
17
|
+
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
18
|
+
multicall3?: viem.ChainContract | undefined;
|
|
19
|
+
universalSignatureVerifier?: viem.ChainContract | undefined;
|
|
20
|
+
}> | undefined;
|
|
21
|
+
ensTlds?: readonly string[] | undefined;
|
|
22
|
+
id: 4217;
|
|
23
|
+
name: "Tempo";
|
|
24
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
25
|
+
rpcUrls: {
|
|
26
|
+
readonly default: {
|
|
27
|
+
readonly http: readonly ["https://rpc.tempo.xyz"];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
sourceId?: number | undefined;
|
|
31
|
+
testnet: false;
|
|
32
|
+
custom?: Record<string, unknown> | undefined;
|
|
33
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
34
|
+
formatters?: undefined;
|
|
35
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
36
|
+
readonly nativeCurrency: never;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export { tempo };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as viem from 'viem';
|
|
2
|
+
|
|
3
|
+
declare const tempo: {
|
|
4
|
+
blockExplorers: {
|
|
5
|
+
readonly default: {
|
|
6
|
+
readonly name: "Tempo Explorer";
|
|
7
|
+
readonly url: "https://explore.mainnet.tempo.xyz";
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
blockTime?: number | undefined;
|
|
11
|
+
contracts?: viem.Prettify<{
|
|
12
|
+
[key: string]: viem.ChainContract | {
|
|
13
|
+
[sourceId: number]: viem.ChainContract | undefined;
|
|
14
|
+
} | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
ensRegistry?: viem.ChainContract | undefined;
|
|
17
|
+
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
18
|
+
multicall3?: viem.ChainContract | undefined;
|
|
19
|
+
universalSignatureVerifier?: viem.ChainContract | undefined;
|
|
20
|
+
}> | undefined;
|
|
21
|
+
ensTlds?: readonly string[] | undefined;
|
|
22
|
+
id: 4217;
|
|
23
|
+
name: "Tempo";
|
|
24
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
25
|
+
rpcUrls: {
|
|
26
|
+
readonly default: {
|
|
27
|
+
readonly http: readonly ["https://rpc.tempo.xyz"];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
sourceId?: number | undefined;
|
|
31
|
+
testnet: false;
|
|
32
|
+
custom?: Record<string, unknown> | undefined;
|
|
33
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
34
|
+
formatters?: undefined;
|
|
35
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
36
|
+
readonly nativeCurrency: never;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export { tempo };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../chunk-KUP7H7X2.js";import"../../chunk-J3R36SGJ.js";export{a as tempo};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5X4EOJFGcjs = require('../../chunk-5X4EOJFG.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.tempoTestnet = _chunk5X4EOJFGcjs.a;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as viem from 'viem';
|
|
2
|
+
|
|
3
|
+
declare const tempoTestnet: {
|
|
4
|
+
blockExplorers: {
|
|
5
|
+
readonly default: {
|
|
6
|
+
readonly name: "Tempo Explorer";
|
|
7
|
+
readonly url: "https://explore.tempo.xyz";
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
blockTime?: number | undefined;
|
|
11
|
+
contracts?: viem.Prettify<{
|
|
12
|
+
[key: string]: viem.ChainContract | {
|
|
13
|
+
[sourceId: number]: viem.ChainContract | undefined;
|
|
14
|
+
} | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
ensRegistry?: viem.ChainContract | undefined;
|
|
17
|
+
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
18
|
+
multicall3?: viem.ChainContract | undefined;
|
|
19
|
+
universalSignatureVerifier?: viem.ChainContract | undefined;
|
|
20
|
+
}> | undefined;
|
|
21
|
+
ensTlds?: readonly string[] | undefined;
|
|
22
|
+
id: 42431;
|
|
23
|
+
name: "Tempo Testnet";
|
|
24
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
25
|
+
rpcUrls: {
|
|
26
|
+
readonly default: {
|
|
27
|
+
readonly http: readonly ["https://rpc.moderato.tempo.xyz"];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
sourceId?: number | undefined;
|
|
31
|
+
testnet: true;
|
|
32
|
+
custom?: Record<string, unknown> | undefined;
|
|
33
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
34
|
+
formatters?: undefined;
|
|
35
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
36
|
+
readonly nativeCurrency: never;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export { tempoTestnet };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as viem from 'viem';
|
|
2
|
+
|
|
3
|
+
declare const tempoTestnet: {
|
|
4
|
+
blockExplorers: {
|
|
5
|
+
readonly default: {
|
|
6
|
+
readonly name: "Tempo Explorer";
|
|
7
|
+
readonly url: "https://explore.tempo.xyz";
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
blockTime?: number | undefined;
|
|
11
|
+
contracts?: viem.Prettify<{
|
|
12
|
+
[key: string]: viem.ChainContract | {
|
|
13
|
+
[sourceId: number]: viem.ChainContract | undefined;
|
|
14
|
+
} | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
ensRegistry?: viem.ChainContract | undefined;
|
|
17
|
+
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
18
|
+
multicall3?: viem.ChainContract | undefined;
|
|
19
|
+
universalSignatureVerifier?: viem.ChainContract | undefined;
|
|
20
|
+
}> | undefined;
|
|
21
|
+
ensTlds?: readonly string[] | undefined;
|
|
22
|
+
id: 42431;
|
|
23
|
+
name: "Tempo Testnet";
|
|
24
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
25
|
+
rpcUrls: {
|
|
26
|
+
readonly default: {
|
|
27
|
+
readonly http: readonly ["https://rpc.moderato.tempo.xyz"];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
sourceId?: number | undefined;
|
|
31
|
+
testnet: true;
|
|
32
|
+
custom?: Record<string, unknown> | undefined;
|
|
33
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
34
|
+
formatters?: undefined;
|
|
35
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
36
|
+
readonly nativeCurrency: never;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export { tempoTestnet };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../chunk-FT5EVMLB.js";import"../../chunk-J3R36SGJ.js";export{a as tempoTestnet};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as v}from"./chunk-IOSADDL5.js";import{a as l}from"./chunk-B6GZ3H2H.js";import{c as d,g as n}from"./chunk-J3R36SGJ.js";import{getEnvironmentForKey as E,APIKeyEnvironmentPrefix as h,WithLoggerContext as u}from"@crossmint/common-sdk-base";import{WebAuthnP256 as w}from"ox";var b={[h.DEVELOPMENT]:"https://development.devicekey.store",[h.STAGING]:"https://staging.devicekey.store",[h.PRODUCTION]:"https://devicekey.store"},P=6e4,K="indexeddb-fatal",c=class extends v{constructor(e){super(e);this.iframePromise=null;this.reloading=null;this.biometricRequestHandler=null;this.biometricListener=null;let r=E(e);if(r==null)throw new Error("Unable to determine environment from API key");this.iframeUrl=b[r]}setBiometricRequestHandler(e){this.biometricRequestHandler=e}generateKey(){return n(this,arguments,function*(e={biometricPolicy:"none"}){return(yield this.rpc("generateKey",e)).publicKeyBase64})}mapAddressToKey(e,r){return n(this,null,function*(){yield this.rpc("mapAddressToKey",{address:e,publicKeyBase64:r})})}getKey(e){return n(this,null,function*(){return(yield this.rpc("getKey",{address:e})).publicKeyBase64})}hasKey(e){return n(this,null,function*(){return(yield this.rpc("hasKey",{publicKeyBase64:e})).hasKey})}signMessage(e,r){return n(this,null,function*(){return yield this.rpc("signMessage",{address:e,message:r})})}deleteKey(e){return n(this,null,function*(){yield this.rpc("deleteKey",{address:e})})}destroy(){this.biometricListener!=null&&(window.removeEventListener("message",this.biometricListener),this.biometricListener=null),this.iframePromise!=null&&(this.iframePromise.then(e=>e.remove()).catch(()=>{}),this.iframePromise=null)}rpc(e,r){return n(this,null,function*(){let i=yield this.sendRpc(e,r);if(i.fatal){l.warn(`[IframeDeviceSignerKeyStorage] Recoverable IDB error on "${e}", reloading iframe and retrying`),yield this.reloadIframe();let t=yield this.sendRpc(e,r);if(t.fatal)throw new Error(`Device signer IDB fatal error on "${e}" persisted after iframe reload`);return t.value}return i.value})}sendRpc(e,r){return n(this,null,function*(){let t=(yield this.getIframe()).contentWindow;if(t==null)throw new Error("Device signer iframe has no contentWindow");let g=crypto.randomUUID(),a=new URL(this.iframeUrl).origin;return new Promise((s,o)=>{let f=setTimeout(()=>{window.removeEventListener("message",p),o(new Error(`Device signer RPC "${e}" timed out after ${P}ms`))},P);function p(y){let m=y.data;m==null||m.id!==g||y.origin===a&&(clearTimeout(f),window.removeEventListener("message",p),m.type==="error"&&m.code===K?s({fatal:!0}):m.type==="error"?o(new Error(m.error)):s({value:m.result,fatal:!1}))}window.addEventListener("message",p),t.postMessage({type:e,id:g,payload:r},this.iframeUrl)})})}reloadIframe(){return n(this,null,function*(){if(this.reloading!=null)return this.reloading;let e=n(this,null,function*(){try{this.destroy(),yield this.getIframe()}finally{this.reloading=null}});return this.reloading=e,e})}setupBiometricListener(e){let r=new URL(this.iframeUrl).origin;this.biometricListener=i=>n(this,null,function*(){if(i.origin!==r)return;let t=i.data;if((t==null?void 0:t.type)!=="biometric-request")return;let g=e.contentWindow;if(g!=null)try{this.biometricRequestHandler!=null&&(yield this.biometricRequestHandler(t.action));let a=null;if(t.action==="createCredential"){let s=t.payload,o=yield w.createCredential({name:s.name});a={id:o.id,publicKey:{x:`0x${o.publicKey.x.toString(16)}`,y:`0x${o.publicKey.y.toString(16)}`}}}else if(t.action==="sign"){let s=t.payload,{signature:o,metadata:f}=yield w.sign({credentialId:s.credentialId,challenge:s.challenge});a={signature:{r:`0x${o.r.toString(16)}`,s:`0x${o.s.toString(16)}`},metadata:f}}g.postMessage({type:"biometric-response",id:t.id,result:a},this.iframeUrl)}catch(a){let s=a instanceof Error?a.message:"Unknown biometric error";g.postMessage({type:"biometric-response",id:t.id,error:s},this.iframeUrl)}}),window.addEventListener("message",this.biometricListener)}getIframe(){return this.iframePromise==null&&(this.iframePromise=this.createIframe().catch(e=>{throw this.iframePromise=null,e})),this.iframePromise}createIframe(){let e=document.createElement("iframe");return e.src=this.iframeUrl,Object.assign(e.style,{position:"absolute",opacity:"0",pointerEvents:"none",width:"0",height:"0",border:"none",top:"-9999px",left:"-9999px"}),new Promise((r,i)=>{e.onload=()=>{this.setupBiometricListener(e),r(e)},e.onerror=()=>i(new Error("Failed to load device signer iframe")),document.body.appendChild(e)})}getDeviceName(){var t;if(typeof navigator=="undefined")return"Unknown Device";let e=navigator.userAgent,r=this.parseDevice(e),i=this.parseBrowser(e);return r!=null&&i!=null?`${i} on ${r}`:(t=r!=null?r:i)!=null?t:"Unknown Device"}parseDevice(e){return/iPad/.test(e)?"iPad":/iPhone/.test(e)?"iPhone":/Macintosh|Mac OS X/.test(e)?"Mac":/Windows/.test(e)?"Windows":/Android/.test(e)?"Android":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"ChromeOS":null}parseBrowser(e){return/Edg\//.test(e)?"Edge":/OPR\/|Opera/.test(e)?"Opera":typeof navigator!="undefined"&&"brave"in navigator?"Brave":/Chrome\//.test(e)?"Chrome":/Safari\//.test(e)&&!/Chrome\//.test(e)?"Safari":/Firefox\//.test(e)?"Firefox":null}};d([u({logger:l,methodName:"deviceSignerKeyStorage.generateKey"})],c.prototype,"generateKey",1),d([u({logger:l,methodName:"deviceSignerKeyStorage.mapAddressToKey"})],c.prototype,"mapAddressToKey",1),d([u({logger:l,methodName:"deviceSignerKeyStorage.getKey"})],c.prototype,"getKey",1),d([u({logger:l,methodName:"deviceSignerKeyStorage.hasKey"})],c.prototype,"hasKey",1),d([u({logger:l,methodName:"deviceSignerKeyStorage.signMessage"})],c.prototype,"signMessage",1),d([u({logger:l,methodName:"deviceSignerKeyStorage.deleteKey"})],c.prototype,"deleteKey",1);export{c as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var m=Object.defineProperty,p=Object.defineProperties,q=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var s=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;var n=b=>{throw TypeError(b)};var l=(b,a,c)=>a in b?m(b,a,{enumerable:!0,configurable:!0,writable:!0,value:c}):b[a]=c,u= exports.a =(b,a)=>{for(var c in a||(a={}))s.call(a,c)&&l(b,c,a[c]);if(k)for(var c of k(a))t.call(a,c)&&l(b,c,a[c]);return b},v= exports.b =(b,a)=>p(b,r(a));var w=(b,a,c,e)=>{for(var d=e>1?void 0:e?q(a,c):a,g=b.length-1,h;g>=0;g--)(h=b[g])&&(d=(e?h(a,c,d):h(d))||d);return e&&d&&m(a,c,d),d};var o=(b,a,c)=>a.has(b)||n("Cannot "+c);var x=(b,a,c)=>(o(b,a,"read from private field"),c?c.call(b):a.get(b)),y= exports.e =(b,a,c)=>a.has(b)?n("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(b):a.set(b,c),z= exports.f =(b,a,c,e)=>(o(b,a,"write to private field"),e?e.call(b,c):a.set(b,c),c);var A=(b,a,c)=>new Promise((e,d)=>{var g=f=>{try{i(c.next(f))}catch(j){d(j)}},h=f=>{try{i(c.throw(f))}catch(j){d(j)}},i=f=>f.done?e(f.value):Promise.resolve(f.value).then(g,h);i((c=c.apply(b,a)).next())});exports.a = u; exports.b = v; exports.c = w; exports.d = x; exports.e = y; exports.f = z; exports.g = A;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t=class{constructor(r){this.config=r;this.type="external-wallet";this._address=r.address}address(){return this._address}locator(){return this.config.locator}};export{t as a};
|