@crossmint/wallets-sdk 1.0.0 → 1.0.1
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-2GKPWQBQ.cjs +1 -0
- package/dist/chunk-2IMANHYJ.js +1 -0
- package/dist/chunk-2O4B6RLQ.cjs +1 -0
- package/dist/chunk-2YLRFJ66.js +1 -0
- package/dist/chunk-3SVXPFSP.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-3ZJ2NA6W.cjs +1 -0
- package/dist/chunk-4D662ZGC.js +1 -0
- package/dist/chunk-4DJWSV7I.cjs +1 -0
- package/dist/chunk-4NS5CXOG.cjs +3 -0
- package/dist/chunk-5FH7WFWL.cjs +1 -0
- package/dist/chunk-5IFDVB4Y.js +0 -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-6S3ILDIR.cjs +1 -0
- package/dist/chunk-6X5JEJD7.js +1 -0
- package/dist/chunk-A33BEWR7.cjs +1 -0
- package/dist/chunk-BITOMWYZ.js +1 -0
- package/dist/chunk-CCIGWTAO.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-DK7IEP4I.cjs +1 -0
- package/dist/chunk-E65D5XWN.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-EXS5WGZO.cjs +1 -0
- package/dist/chunk-FT5EVMLB.js +1 -0
- package/dist/chunk-FWTYIH3S.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-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-JYIA4X2R.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-L4VOHSRP.cjs +1 -0
- package/dist/chunk-L52GDMSH.js +0 -0
- package/dist/chunk-LXLDXNTT.js +3 -0
- package/dist/chunk-M335XCYO.js +1 -0
- package/dist/chunk-M5JPPZKX.cjs +1 -0
- package/dist/chunk-MDHY42QE.js +1 -0
- package/dist/chunk-MKQDODKI.js +1 -0
- package/dist/chunk-MMWM4VZB.js +1 -0
- package/dist/chunk-MO5OIRRN.js +1 -0
- package/dist/chunk-MWA2XXJM.cjs +1 -0
- package/dist/chunk-N355UETO.js +1 -0
- package/dist/chunk-N4IWDL6M.js +1 -0
- package/dist/chunk-N7TIQVRW.js +1 -0
- package/dist/chunk-NX256LAH.cjs +1 -0
- package/dist/chunk-O6VBO7KG.js +1 -0
- package/dist/chunk-OGP7B5O3.cjs +1 -0
- package/dist/chunk-OJNZEJKP.cjs +1 -0
- package/dist/chunk-OJUTGJJV.js +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-PQTGZOIH.cjs +1 -0
- package/dist/chunk-PXUDJFUQ.cjs +1 -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-S3DYQVRD.js +1 -0
- package/dist/chunk-SCEPJO4Q.cjs +1 -0
- package/dist/chunk-SPTXAOFR.cjs +1 -0
- package/dist/chunk-SSCPHOS2.js +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-UE3WVHTM.cjs +1 -0
- package/dist/chunk-UNTAJ7NG.cjs +1 -0
- package/dist/chunk-UQLQFGZH.js +1 -0
- package/dist/chunk-VADIEIDS.js +1 -0
- package/dist/chunk-VIWV4DQC.cjs +1 -0
- package/dist/chunk-W7LJS32A.js +1 -0
- package/dist/chunk-WCGUGIGJ.js +1 -0
- package/dist/chunk-WEV53SFU.js +1 -0
- package/dist/chunk-XNZLCUTY.js +1 -0
- package/dist/chunk-XS5B3TUE.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-YKULFPTG.js +1 -0
- package/dist/chunk-ZLITPB7O.cjs +1 -0
- package/dist/chunk-ZXF23FGY.js +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 _chunkDK7IEP4Icjs = require('../chunk-DK7IEP4I.cjs');require('../chunk-ECAM5KTH.cjs');require('../chunk-T3U46LK3.cjs');require('../chunk-6S3ILDIR.cjs');require('../chunk-VIWV4DQC.cjs');require('../chunk-2GKPWQBQ.cjs');exports.ApiClient = _chunkDK7IEP4Icjs.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-2IMANHYJ.js";import"../chunk-KBJA7JDT.js";import"../chunk-EXC7TCGL.js";import"../chunk-SSCPHOS2.js";import"../chunk-E65D5XWN.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 _chunk2O4B6RLQcjs = require('../chunk-2O4B6RLQ.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-6S3ILDIR.cjs');require('../chunk-VIWV4DQC.cjs');require('../chunk-2GKPWQBQ.cjs');exports.isMainnetChain = _chunk2O4B6RLQcjs.c; exports.isTestnetChain = _chunk2O4B6RLQcjs.b; exports.isValidChain = _chunk2O4B6RLQcjs.e; exports.mainnetToTestnet = _chunk2O4B6RLQcjs.d; exports.toViemChain = _chunk2O4B6RLQcjs.a; exports.validateChainForEnvironment = _chunk2O4B6RLQcjs.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-WEV53SFU.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-SSCPHOS2.js";import"../chunk-E65D5XWN.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
|
+
"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
|
+
import{a as o}from"./chunk-EXC7TCGL.js";import{a as n}from"./chunk-SSCPHOS2.js";import{b as p,c as l}from"./chunk-E65D5XWN.js";import{g as t}from"./chunk-J3R36SGJ.js";import{APIKeyEnvironmentPrefix as h,APIKeyUsageOrigin as d,CrossmintApiClient as g}from"@crossmint/common-sdk-base";var c=class extends g{constructor(e){super(e,{internalConfig:{sdkMetadata:{name:l,version:p}}});this.apiPrefix="api/2025-06-09/wallets";this.unstableApiPrefix="api/unstable/wallets"}createWallet(e){return t(this,null,function*(){let s=this.isServerSide?`${this.apiPrefix}`:`${this.apiPrefix}/me`;n.info("wallets.api.createWallet",{chainType:e.chainType,walletType:e.type});let a=yield(yield this.post(s,{body:JSON.stringify(e),headers:this.headers})).json();return"error"in a?n.error("wallets.api.createWallet.error",{error:a.error,chainType:e.chainType}):"address"in a&&n.info("wallets.api.createWallet.success",{address:a.address,chainType:e.chainType}),a})}getWallet(e){return t(this,null,function*(){n.info("wallets.api.getWallet",{locator:e});let r=yield(yield this.get(`${this.apiPrefix}/${e}`,{headers:this.headers})).json();return"error"in r?n.warn("wallets.api.getWallet.error",{locator:e,error:r.error}):"address"in r&&n.info("wallets.api.getWallet.success",{address:r.address,locator:e}),r})}createTransaction(e,s){return t(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/transactions`,{body:JSON.stringify(s),headers:this.headers})).json()})}approveTransaction(e,s,r){return t(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/transactions/${s}/approvals`,{body:JSON.stringify(r),headers:this.headers})).json()})}getTransaction(e,s){return t(this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/transactions/${s}`,{headers:this.headers})).json()})}createSignature(e,s){return t(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/signatures`,{body:JSON.stringify(s),headers:this.headers})).json()})}approveSignature(e,s,r){return t(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/signatures/${s}/approvals`,{body:JSON.stringify(r),headers:this.headers})).json()})}getSignature(e,s){return t(this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/signatures/${s}`,{headers:this.headers})).json()})}getTransactions(e){return t(this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/transactions`,{headers:this.headers})).json()})}getNfts(e){return t(this,null,function*(){let s=new URLSearchParams;s.append("page",e.page.toString()),s.append("perPage",e.perPage.toString());let r=`${e.chain}:${e.address}`;return(yield this.get(`${this.apiPrefix}/${r}/nfts?${s.toString()}`,{headers:this.headers})).json()})}getTransfers(e,s){return t(this,null,function*(){let r=new URLSearchParams;return r.append("chain",s.chain.toString()),s.tokens!=null&&r.append("tokens",s.tokens),s.status!=null&&r.append("status",s.status),(yield this.get(`${this.unstableApiPrefix}/${e}/transfers?${r.toString()}`,{headers:this.headers})).json()})}getBalance(e,s){return t(this,null,function*(){let r=new URLSearchParams;return r.append("tokens",s.tokens.join(",")),r.append("chains",s.chains.join(",")),(yield this.get(`${this.apiPrefix}/${e}/balances?${r.toString()}`,{headers:this.headers})).json()})}fundWallet(e,s){return t(this,null,function*(){if(this.environment===h.PRODUCTION)throw new Error("Funding wallets is only supported in staging environment");return(yield this.post(`api/v1-alpha2/wallets/${e}/balances`,{body:JSON.stringify(s),headers:this.headers})).json()})}registerSigner(e,s){return t(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/signers`,{body:JSON.stringify(s),headers:this.headers})).json()})}getSigner(e,s){return t(this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/signers/${s}`,{headers:this.headers})).json()})}send(e,s,r){return t(this,null,function*(){n.info("wallets.api.send",{walletLocator:e,tokenLocator:s,recipient:r.recipient});let i=yield(yield this.post(`${this.apiPrefix}/${e}/tokens/${s}/transfers`,{body:JSON.stringify(r),headers:this.headers})).json();return"error"in i?n.error("wallets.api.send.error",{walletLocator:e,tokenLocator:s,error:i.error}):"id"in i&&n.info("wallets.api.send.success",{walletLocator:e,transactionId:i.id}),i})}get isServerSide(){return this.parsedAPIKey.usageOrigin===d.SERVER}get environment(){if(!this.parsedAPIKey.isValid)throw new o("Invalid API key");return this.parsedAPIKey.environment}get projectId(){if(!this.parsedAPIKey.isValid)throw new o("Invalid API key");return this.parsedAPIKey.projectId}get headers(){return{"Content-Type":"application/json"}}};export{c as a};
|