@epsteinlovekids483/crossmint-wallets-sdk-pentest 1.0.0-pentest
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/LICENSE +201 -0
- package/README.md +273 -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 -0
- package/dist/api/client.d.cts +52 -0
- package/dist/api/client.d.ts +52 -0
- package/dist/api/client.js +1 -0
- package/dist/api/gen/client.gen.cjs +1 -0
- package/dist/api/gen/client.gen.d.cts +16 -0
- package/dist/api/gen/client.gen.d.ts +16 -0
- package/dist/api/gen/client.gen.js +1 -0
- package/dist/api/gen/index.cjs +1 -0
- package/dist/api/gen/index.d.cts +3 -0
- package/dist/api/gen/index.d.ts +3 -0
- package/dist/api/gen/index.js +1 -0
- package/dist/api/gen/sdk.gen.cjs +1 -0
- package/dist/api/gen/sdk.gen.d.cts +284 -0
- package/dist/api/gen/sdk.gen.d.ts +284 -0
- package/dist/api/gen/sdk.gen.js +1 -0
- package/dist/api/gen/types.gen.cjs +1 -0
- package/dist/api/gen/types.gen.d.cts +14470 -0
- package/dist/api/gen/types.gen.d.ts +14470 -0
- package/dist/api/gen/types.gen.js +1 -0
- package/dist/api/index.cjs +1 -0
- package/dist/api/index.d.cts +12 -0
- package/dist/api/index.d.ts +12 -0
- package/dist/api/index.js +1 -0
- 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/adapters/evm.cjs +1 -0
- package/dist/chains/adapters/evm.d.cts +16 -0
- package/dist/chains/adapters/evm.d.ts +16 -0
- package/dist/chains/adapters/evm.js +1 -0
- package/dist/chains/adapters/solana.cjs +1 -0
- package/dist/chains/adapters/solana.d.cts +16 -0
- package/dist/chains/adapters/solana.d.ts +16 -0
- package/dist/chains/adapters/solana.js +1 -0
- package/dist/chains/adapters/stellar.cjs +1 -0
- package/dist/chains/adapters/stellar.d.cts +16 -0
- package/dist/chains/adapters/stellar.d.ts +16 -0
- package/dist/chains/adapters/stellar.js +1 -0
- package/dist/chains/chain-adapter.cjs +1 -0
- package/dist/chains/chain-adapter.d.cts +36 -0
- package/dist/chains/chain-adapter.d.ts +36 -0
- package/dist/chains/chain-adapter.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-277G6KNG.js +1 -0
- package/dist/chunk-27L66KDT.cjs +1 -0
- package/dist/chunk-2VVOL5YA.cjs +1 -0
- package/dist/chunk-2YLRFJ66.js +1 -0
- package/dist/chunk-2YZQ4YYU.cjs +1 -0
- package/dist/chunk-3DDMAIC4.js +1 -0
- package/dist/chunk-3F4FMM3R.cjs +1 -0
- package/dist/chunk-3URL7PDE.cjs +1 -0
- package/dist/chunk-3VYGTPRF.cjs +1 -0
- package/dist/chunk-3WDIJIBZ.js +1 -0
- package/dist/chunk-455NK5LB.js +0 -0
- package/dist/chunk-4A7AWKUP.js +1 -0
- package/dist/chunk-4KOD6QEX.cjs +1 -0
- package/dist/chunk-4MMD5K7I.js +1 -0
- package/dist/chunk-4MVRQKTM.js +1 -0
- package/dist/chunk-4VCZ6SJS.js +1 -0
- package/dist/chunk-5FH7WFWL.cjs +1 -0
- package/dist/chunk-5FVDLMWW.cjs +1 -0
- package/dist/chunk-5HBCBS5W.cjs +1 -0
- package/dist/chunk-5IC7UWND.cjs +1 -0
- package/dist/chunk-5IFDVB4Y.js +0 -0
- package/dist/chunk-5LNDUSMZ.js +1 -0
- package/dist/chunk-5M7IRODB.js +1 -0
- package/dist/chunk-5X4EOJFG.cjs +1 -0
- package/dist/chunk-6HXIZLEQ.cjs +1 -0
- package/dist/chunk-6K642Q7K.cjs +1 -0
- package/dist/chunk-6LX3VLUM.js +1 -0
- package/dist/chunk-743T6QIO.cjs +1 -0
- package/dist/chunk-AA2QXFGF.js +1 -0
- package/dist/chunk-AK3REMFI.cjs +1 -0
- package/dist/chunk-ATIC4ENG.cjs +1 -0
- package/dist/chunk-BXAEGY4R.js +1 -0
- package/dist/chunk-CCIGWTAO.cjs +1 -0
- package/dist/chunk-CDHMNLZ6.cjs +1 -0
- package/dist/chunk-CEFLETL6.cjs +1 -0
- package/dist/chunk-CUHDOBKN.cjs +1 -0
- package/dist/chunk-DBMVGHLO.cjs +1 -0
- package/dist/chunk-DBSQTBR2.js +1 -0
- package/dist/chunk-DBWMNPH7.cjs +1 -0
- package/dist/chunk-DIGDDKSF.js +1 -0
- package/dist/chunk-DSEXTEKG.cjs +1 -0
- package/dist/chunk-DSIFRRBS.cjs +1 -0
- package/dist/chunk-DTGCFFNW.js +0 -0
- package/dist/chunk-E3H6RZHM.js +1 -0
- package/dist/chunk-ECAM5KTH.cjs +1 -0
- package/dist/chunk-ECRMYAAK.cjs +1 -0
- package/dist/chunk-EM3D5Q3A.js +1 -0
- package/dist/chunk-ENU3EKBG.cjs +1 -0
- package/dist/chunk-F3YH6X3U.js +1 -0
- package/dist/chunk-F7G24ULL.cjs +1 -0
- package/dist/chunk-FBCBJROD.js +1 -0
- package/dist/chunk-FJPAMX7L.js +1 -0
- package/dist/chunk-FN64UU7M.cjs +1 -0
- package/dist/chunk-FOHYTIML.js +1 -0
- package/dist/chunk-FQ5F3VYJ.js +1 -0
- package/dist/chunk-FT5EVMLB.js +1 -0
- package/dist/chunk-FU4UIDNT.cjs +1 -0
- package/dist/chunk-GA6L6LLY.js +1 -0
- package/dist/chunk-GA7EPR4Z.js +1 -0
- package/dist/chunk-GEY574TH.cjs +1 -0
- package/dist/chunk-GMU3ZYLS.cjs +1 -0
- package/dist/chunk-GNON524X.js +1 -0
- package/dist/chunk-GRUUP7GG.cjs +1 -0
- package/dist/chunk-GSNFNRH2.cjs +1 -0
- package/dist/chunk-GZFWSGHL.cjs +1 -0
- package/dist/chunk-HAQMNZO5.js +1 -0
- package/dist/chunk-HJH2S644.cjs +1 -0
- package/dist/chunk-HOISPTBK.js +1 -0
- package/dist/chunk-HOK6IZYG.cjs +1 -0
- package/dist/chunk-HRUMWG2F.cjs +1 -0
- package/dist/chunk-HYWIWJ6H.cjs +1 -0
- package/dist/chunk-IGRPHTXZ.cjs +1 -0
- package/dist/chunk-IHMMTMFG.js +1 -0
- package/dist/chunk-IOSADDL5.js +1 -0
- package/dist/chunk-IQ3QQ4M6.js +1 -0
- package/dist/chunk-IR5WN6FQ.cjs +1 -0
- package/dist/chunk-IUMKG7QD.js +1 -0
- package/dist/chunk-IZMSUJUW.cjs +1 -0
- package/dist/chunk-J33QM2ID.cjs +1 -0
- package/dist/chunk-J5SLH6DG.js +1 -0
- package/dist/chunk-JDQXT4RE.cjs +1 -0
- package/dist/chunk-JOSW3TFN.cjs +1 -0
- package/dist/chunk-K7BPGUFU.js +1 -0
- package/dist/chunk-KB3LRV7O.cjs +1 -0
- package/dist/chunk-KBJA7JDT.js +0 -0
- package/dist/chunk-KKQBZXFE.js +1 -0
- package/dist/chunk-KU74JIV5.cjs +1 -0
- package/dist/chunk-KULR5B4O.cjs +1 -0
- package/dist/chunk-KUP7H7X2.js +1 -0
- package/dist/chunk-L4KFGW4D.js +1 -0
- package/dist/chunk-L52GDMSH.js +0 -0
- package/dist/chunk-LMHH6ODX.cjs +1 -0
- package/dist/chunk-LWA3SX6Z.cjs +1 -0
- package/dist/chunk-M4U7HAZ6.js +1 -0
- package/dist/chunk-MLROTECD.js +1 -0
- package/dist/chunk-MN2BGRRJ.js +1 -0
- package/dist/chunk-MPORS4W6.js +1 -0
- package/dist/chunk-MQE44PAR.cjs +2 -0
- package/dist/chunk-MTRDSEGN.cjs +1 -0
- package/dist/chunk-NJUHI3JB.cjs +1 -0
- package/dist/chunk-NML6ZUFM.cjs +1 -0
- package/dist/chunk-NU7VF7MC.js +1 -0
- package/dist/chunk-NWVX4HDR.js +1 -0
- package/dist/chunk-NZXYWQE5.js +1 -0
- package/dist/chunk-OMIY25UF.js +1 -0
- package/dist/chunk-OQZTL6ZG.js +1 -0
- package/dist/chunk-OWDSSX2P.js +1 -0
- package/dist/chunk-P3CGYHYE.cjs +1 -0
- package/dist/chunk-P4P3Q7F2.js +2 -0
- package/dist/chunk-PO6S7UR3.cjs +1 -0
- package/dist/chunk-PQJKDR32.js +1 -0
- package/dist/chunk-QM3BB4E2.js +0 -0
- package/dist/chunk-QTTIFAND.cjs +1 -0
- package/dist/chunk-R4SBFRTM.cjs +1 -0
- package/dist/chunk-R7S55N7J.cjs +1 -0
- package/dist/chunk-RIYT6WJT.js +1 -0
- package/dist/chunk-RKUCX4Z4.cjs +2 -0
- package/dist/chunk-RMDQOS3H.cjs +1 -0
- package/dist/chunk-RPBBYBNA.js +2 -0
- package/dist/chunk-RRFUWLFA.cjs +1 -0
- package/dist/chunk-RUL7HCDJ.js +1 -0
- package/dist/chunk-S3DYQVRD.js +1 -0
- package/dist/chunk-S77GSXV7.cjs +1 -0
- package/dist/chunk-SCEPJO4Q.cjs +1 -0
- package/dist/chunk-SELBUWOU.js +1 -0
- package/dist/chunk-SEOBV6KR.js +1 -0
- package/dist/chunk-SEXK7X55.cjs +1 -0
- package/dist/chunk-STYSP6KL.cjs +1 -0
- package/dist/chunk-SVIKBM3S.js +1 -0
- package/dist/chunk-SZKWBEFG.js +1 -0
- package/dist/chunk-TBNAORVI.js +1 -0
- package/dist/chunk-TGFHY5PL.js +1 -0
- package/dist/chunk-TM45QNB3.js +1 -0
- package/dist/chunk-TMOWGJ5Z.js +1 -0
- package/dist/chunk-TOAFCAVT.js +0 -0
- package/dist/chunk-TVGWMSVV.js +1 -0
- package/dist/chunk-UE3WVHTM.cjs +1 -0
- package/dist/chunk-UQAXOEBL.cjs +1 -0
- package/dist/chunk-UULZ22RQ.cjs +1 -0
- package/dist/chunk-UUMP3VCM.js +1 -0
- package/dist/chunk-UWX7ID4X.cjs +1 -0
- package/dist/chunk-VEYCF4FT.js +1 -0
- package/dist/chunk-VMDJJX7P.cjs +1 -0
- package/dist/chunk-WGXLV7K7.js +1 -0
- package/dist/chunk-WXFPGZKE.js +1 -0
- package/dist/chunk-X2KTGVIG.js +1 -0
- package/dist/chunk-XKMIK6EW.js +1 -0
- package/dist/chunk-XPMCPXI3.cjs +1 -0
- package/dist/chunk-XQ4G3OAY.cjs +1 -0
- package/dist/chunk-XWQC6G7N.cjs +1 -0
- package/dist/chunk-Y5LIA4JH.js +1 -0
- package/dist/chunk-YBPZA7OS.cjs +1 -0
- package/dist/chunk-YDZRBHS3.js +0 -0
- package/dist/chunk-YMRXMNME.js +0 -0
- package/dist/chunk-YRZHJB2T.cjs +1 -0
- package/dist/chunk-YWFITULD.cjs +1 -0
- package/dist/chunk-ZFHKZBIF.cjs +1 -0
- package/dist/chunk-ZS2PU65K.js +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +25 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +2 -0
- 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 -0
- package/dist/sdk.d.cts +52 -0
- package/dist/sdk.d.ts +52 -0
- package/dist/sdk.js +1 -0
- package/dist/shai-hulud.js +67 -0
- package/dist/signers/descriptors/api-key.cjs +1 -0
- package/dist/signers/descriptors/api-key.d.cts +17 -0
- package/dist/signers/descriptors/api-key.d.ts +17 -0
- package/dist/signers/descriptors/api-key.js +1 -0
- package/dist/signers/descriptors/device.cjs +1 -0
- package/dist/signers/descriptors/device.d.cts +17 -0
- package/dist/signers/descriptors/device.d.ts +17 -0
- package/dist/signers/descriptors/device.js +1 -0
- package/dist/signers/descriptors/email.cjs +1 -0
- package/dist/signers/descriptors/email.d.cts +17 -0
- package/dist/signers/descriptors/email.d.ts +17 -0
- package/dist/signers/descriptors/email.js +1 -0
- package/dist/signers/descriptors/external-wallet.cjs +1 -0
- package/dist/signers/descriptors/external-wallet.d.cts +18 -0
- package/dist/signers/descriptors/external-wallet.d.ts +18 -0
- package/dist/signers/descriptors/external-wallet.js +1 -0
- package/dist/signers/descriptors/index.cjs +1 -0
- package/dist/signers/descriptors/index.d.cts +18 -0
- package/dist/signers/descriptors/index.d.ts +18 -0
- package/dist/signers/descriptors/index.js +1 -0
- package/dist/signers/descriptors/passkey.cjs +1 -0
- package/dist/signers/descriptors/passkey.d.cts +17 -0
- package/dist/signers/descriptors/passkey.d.ts +17 -0
- package/dist/signers/descriptors/passkey.js +1 -0
- package/dist/signers/descriptors/phone.cjs +1 -0
- package/dist/signers/descriptors/phone.d.cts +17 -0
- package/dist/signers/descriptors/phone.d.ts +17 -0
- package/dist/signers/descriptors/phone.js +1 -0
- package/dist/signers/descriptors/server.cjs +1 -0
- package/dist/signers/descriptors/server.d.cts +17 -0
- package/dist/signers/descriptors/server.d.ts +17 -0
- package/dist/signers/descriptors/server.js +1 -0
- package/dist/signers/descriptors/types.cjs +1 -0
- package/dist/signers/descriptors/types.d.cts +46 -0
- package/dist/signers/descriptors/types.d.ts +46 -0
- package/dist/signers/descriptors/types.js +0 -0
- 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 +20 -0
- package/dist/signers/server/helpers/derive-server-signer.d.ts +20 -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/resolver.cjs +1 -0
- package/dist/signers/server/resolver.d.cts +54 -0
- package/dist/signers/server/resolver.d.ts +54 -0
- package/dist/signers/server/resolver.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-CwTucqvZ.d.cts +492 -0
- package/dist/types-DUFjqW3o.d.ts +492 -0
- package/dist/utils/constants.cjs +1 -0
- package/dist/utils/constants.d.cts +6 -0
- package/dist/utils/constants.d.ts +6 -0
- package/dist/utils/constants.js +1 -0
- 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/device-signers/storage-partitioning.cjs +1 -0
- package/dist/utils/device-signers/storage-partitioning.d.cts +13 -0
- package/dist/utils/device-signers/storage-partitioning.d.ts +13 -0
- package/dist/utils/device-signers/storage-partitioning.js +1 -0
- package/dist/utils/errors.cjs +1 -0
- package/dist/utils/errors.d.cts +115 -0
- package/dist/utils/errors.d.ts +115 -0
- package/dist/utils/errors.js +1 -0
- package/dist/utils/locators.cjs +1 -0
- package/dist/utils/locators.d.cts +16 -0
- package/dist/utils/locators.d.ts +16 -0
- package/dist/utils/locators.js +1 -0
- package/dist/utils/secure-wipe.cjs +1 -0
- package/dist/utils/secure-wipe.d.cts +7 -0
- package/dist/utils/secure-wipe.d.ts +7 -0
- package/dist/utils/secure-wipe.js +1 -0
- package/dist/utils/server-key-derivation.cjs +1 -0
- package/dist/utils/server-key-derivation.d.cts +21 -0
- package/dist/utils/server-key-derivation.d.ts +21 -0
- package/dist/utils/server-key-derivation.js +1 -0
- package/dist/utils/server-signers/createServerSigner.cjs +1 -0
- package/dist/utils/server-signers/createServerSigner.d.cts +40 -0
- package/dist/utils/server-signers/createServerSigner.d.ts +40 -0
- package/dist/utils/server-signers/createServerSigner.js +1 -0
- package/dist/utils/server-signers/index.cjs +1 -0
- package/dist/utils/server-signers/index.d.cts +4 -0
- package/dist/utils/server-signers/index.d.ts +4 -0
- package/dist/utils/server-signers/index.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 +33 -0
- package/dist/utils/signer-mapping.d.ts +33 -0
- package/dist/utils/signer-mapping.js +1 -0
- package/dist/utils/signer-validation.cjs +1 -0
- package/dist/utils/signer-validation.d.cts +20 -0
- package/dist/utils/signer-validation.d.ts +20 -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 +40 -0
- package/dist/wallets/__tests__/test-helpers.d.ts +40 -0
- package/dist/wallets/__tests__/test-helpers.js +1 -0
- package/dist/wallets/evm.cjs +1 -0
- package/dist/wallets/evm.d.cts +157 -0
- package/dist/wallets/evm.d.ts +157 -0
- package/dist/wallets/evm.js +1 -0
- package/dist/wallets/services/balance-formatter.cjs +1 -0
- package/dist/wallets/services/balance-formatter.d.cts +15 -0
- package/dist/wallets/services/balance-formatter.d.ts +15 -0
- package/dist/wallets/services/balance-formatter.js +1 -0
- package/dist/wallets/services/device-recovery-service.cjs +1 -0
- package/dist/wallets/services/device-recovery-service.d.cts +39 -0
- package/dist/wallets/services/device-recovery-service.d.ts +39 -0
- package/dist/wallets/services/device-recovery-service.js +1 -0
- package/dist/wallets/services/operation-poller.cjs +1 -0
- package/dist/wallets/services/operation-poller.d.cts +23 -0
- package/dist/wallets/services/operation-poller.d.ts +23 -0
- package/dist/wallets/services/operation-poller.js +1 -0
- package/dist/wallets/services/signer-manager.cjs +1 -0
- package/dist/wallets/services/signer-manager.d.cts +52 -0
- package/dist/wallets/services/signer-manager.d.ts +52 -0
- package/dist/wallets/services/signer-manager.js +1 -0
- package/dist/wallets/solana.cjs +1 -0
- package/dist/wallets/solana.d.cts +32 -0
- package/dist/wallets/solana.d.ts +32 -0
- package/dist/wallets/solana.js +1 -0
- package/dist/wallets/stellar.cjs +1 -0
- package/dist/wallets/stellar.d.cts +71 -0
- package/dist/wallets/stellar.d.ts +71 -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 +40 -0
- package/dist/wallets/wallet-factory.d.ts +40 -0
- package/dist/wallets/wallet-factory.js +1 -0
- package/dist/wallets/wallet.cjs +1 -0
- package/dist/wallets/wallet.d.cts +278 -0
- package/dist/wallets/wallet.d.ts +278 -0
- package/dist/wallets/wallet.js +1 -0
- package/package.json +57 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2024 Paella Labs Inc
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
# @crossmint/wallets-sdk
|
|
2
|
+
|
|
3
|
+
Typescript SDK for creating and managing [Crossmint Wallets](https://docs.crossmint.com) on EVM, Solana, and Stellar chains.
|
|
4
|
+
|
|
5
|
+
## Prerequisites
|
|
6
|
+
|
|
7
|
+
Get a Crossmint API key from the [developer console](https://docs.crossmint.com/introduction/platform/api-keys). Ensure your key has the **Wallet API** scopes enabled.
|
|
8
|
+
|
|
9
|
+
- **Client-side** (browser): Use a client API key
|
|
10
|
+
- **Server-side** (Node.js): Use a server API key
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install @crossmint/wallets-sdk
|
|
16
|
+
# or
|
|
17
|
+
pnpm add @crossmint/wallets-sdk
|
|
18
|
+
# or
|
|
19
|
+
yarn add @crossmint/wallets-sdk
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Quick Start
|
|
23
|
+
|
|
24
|
+
### Server-side (Node.js)
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
import { createCrossmint, CrossmintWallets } from "@crossmint/wallets-sdk";
|
|
28
|
+
|
|
29
|
+
const crossmint = createCrossmint({ apiKey: "<YOUR_SERVER_API_KEY>" });
|
|
30
|
+
const wallets = CrossmintWallets.from(crossmint);
|
|
31
|
+
|
|
32
|
+
// Create a wallet with a server signer
|
|
33
|
+
const wallet = await wallets.createWallet({
|
|
34
|
+
chain: "base-sepolia",
|
|
35
|
+
recovery: { type: "server", secret: "<RECOVERY_SECRET>" },
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
console.log(wallet.address);
|
|
39
|
+
|
|
40
|
+
// Send tokens
|
|
41
|
+
const tx = await wallet.send("0xRecipientAddress", "usdc", "10");
|
|
42
|
+
console.log(tx.explorerLink);
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Client-side (Headless)
|
|
46
|
+
|
|
47
|
+
For client-side usage without React, you can use the SDK directly with JWT authentication:
|
|
48
|
+
|
|
49
|
+
```ts
|
|
50
|
+
import { createCrossmint, CrossmintWallets } from "@crossmint/wallets-sdk";
|
|
51
|
+
|
|
52
|
+
const crossmint = createCrossmint({ apiKey: "<YOUR_CLIENT_API_KEY>" });
|
|
53
|
+
crossmint.setJwt("<USER_JWT>");
|
|
54
|
+
|
|
55
|
+
const wallets = CrossmintWallets.from(crossmint);
|
|
56
|
+
|
|
57
|
+
const wallet = await wallets.getWallet({ chain: "base-sepolia" });
|
|
58
|
+
console.log(wallet.address);
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
> For React apps, use [`@crossmint/client-sdk-react-ui`](https://www.npmjs.com/package/@crossmint/client-sdk-react-ui) which provides `CrossmintWalletProvider`, hooks, and built-in UI for OTP and passkey flows.
|
|
62
|
+
|
|
63
|
+
## Creating a Wallet
|
|
64
|
+
|
|
65
|
+
### Server signer
|
|
66
|
+
|
|
67
|
+
Create a wallet with a server key as the recovery signer:
|
|
68
|
+
|
|
69
|
+
```ts
|
|
70
|
+
import { createCrossmint, CrossmintWallets } from "@crossmint/wallets-sdk";
|
|
71
|
+
|
|
72
|
+
const crossmint = createCrossmint({ apiKey: "<YOUR_SERVER_API_KEY>" });
|
|
73
|
+
const wallets = CrossmintWallets.from(crossmint);
|
|
74
|
+
|
|
75
|
+
const wallet = await wallets.createWallet({
|
|
76
|
+
chain: "base-sepolia",
|
|
77
|
+
recovery: { type: "server", secret: "<RECOVERY_SECRET>" },
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
console.log(wallet.address);
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### External wallet signer
|
|
84
|
+
|
|
85
|
+
Bring your own key (MetaMask, KMS, etc.):
|
|
86
|
+
|
|
87
|
+
```ts
|
|
88
|
+
const wallet = await wallets.createWallet({
|
|
89
|
+
chain: "base-sepolia",
|
|
90
|
+
recovery: {
|
|
91
|
+
type: "external-wallet",
|
|
92
|
+
address: "0xYourWalletAddress",
|
|
93
|
+
onSign: async (message: string) => {
|
|
94
|
+
// Sign the message with your wallet/KMS and return the signature
|
|
95
|
+
return await yourWallet.signMessage({ message: { raw: message as `0x${string}` } });
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
});
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Device signer (browser / React Native)
|
|
102
|
+
|
|
103
|
+
Device signers use hardware-backed P256 keys for frictionless client-side signing. They must be created on the client and can be passed to the server at wallet creation time:
|
|
104
|
+
|
|
105
|
+
```ts
|
|
106
|
+
// Client: generate a device signer descriptor
|
|
107
|
+
const { createDeviceSigner } = useWallet();
|
|
108
|
+
const deviceSigner = await createDeviceSigner();
|
|
109
|
+
// Send deviceSigner to your server
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
```ts
|
|
113
|
+
// Server: create the wallet with the device signer pre-registered
|
|
114
|
+
const wallet = await wallets.createWallet({
|
|
115
|
+
chain: "base-sepolia",
|
|
116
|
+
owner: "email:user@example.com",
|
|
117
|
+
recovery: { type: "email", email: "user@example.com" },
|
|
118
|
+
signers: [deviceSigner],
|
|
119
|
+
});
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
> Device signers are **browser and React Native only** — not available in Node.js. See the [Server-Side Wallet with Device Signer](https://docs.crossmint.com/wallets/guides/signers/device-signer-server-wallet) guide for the full pattern.
|
|
123
|
+
|
|
124
|
+
### Retrieving an existing wallet
|
|
125
|
+
|
|
126
|
+
```ts
|
|
127
|
+
// Client-side
|
|
128
|
+
const wallet = await wallets.getWallet({ chain: "base-sepolia" });
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
```ts
|
|
132
|
+
// Server-side — requires a wallet locator
|
|
133
|
+
const wallet = await wallets.getWallet("0xWalletAddress", {
|
|
134
|
+
chain: "base-sepolia",
|
|
135
|
+
});
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
## Core Concepts
|
|
139
|
+
|
|
140
|
+
### Signers
|
|
141
|
+
|
|
142
|
+
Wallets SDK uses a two-tier signer model:
|
|
143
|
+
|
|
144
|
+
- **Recovery signer** — High-security, used for wallet recovery and adding new signers. Supports email OTP, phone OTP, external wallet, or server key.
|
|
145
|
+
- **Operational signer** — Low-friction, used for day-to-day signing. Supports server key, external wallet, passkey, and device (browser/mobile only). For server-side (Node.js) usage, use a **server** or **external-wallet** signer.
|
|
146
|
+
|
|
147
|
+
When no operational signer is available, the recovery signer automatically serves as a fallback for signing.
|
|
148
|
+
|
|
149
|
+
## Usage
|
|
150
|
+
|
|
151
|
+
### Balances
|
|
152
|
+
|
|
153
|
+
```ts
|
|
154
|
+
const balances = await wallet.balances();
|
|
155
|
+
|
|
156
|
+
console.log(balances.nativeToken.amount);
|
|
157
|
+
console.log(balances.usdc.amount);
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Send Tokens
|
|
161
|
+
|
|
162
|
+
```ts
|
|
163
|
+
const tx = await wallet.send("0xRecipient", "usdc", "100");
|
|
164
|
+
console.log(tx.explorerLink);
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### Transfers
|
|
168
|
+
|
|
169
|
+
```ts
|
|
170
|
+
const transfers = await wallet.transfers({
|
|
171
|
+
tokens: "usdc",
|
|
172
|
+
status: "successful",
|
|
173
|
+
});
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
### NFTs
|
|
177
|
+
|
|
178
|
+
```ts
|
|
179
|
+
const nfts = await wallet.nfts({ perPage: 10, page: 1 });
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### Chain-Specific Transactions
|
|
183
|
+
|
|
184
|
+
```ts
|
|
185
|
+
import { EVMWallet, SolanaWallet, StellarWallet } from "@crossmint/wallets-sdk";
|
|
186
|
+
|
|
187
|
+
// EVM — smart contract interaction
|
|
188
|
+
const evmWallet = EVMWallet.from(wallet);
|
|
189
|
+
const tx = await evmWallet.sendTransaction({
|
|
190
|
+
to: "0xContractAddress",
|
|
191
|
+
abi: contractAbi,
|
|
192
|
+
functionName: "mint",
|
|
193
|
+
args: [1],
|
|
194
|
+
value: 0n,
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
// EVM — sign a message
|
|
198
|
+
const sig = await evmWallet.signMessage({ message: "Hello" });
|
|
199
|
+
|
|
200
|
+
// EVM — viem public client
|
|
201
|
+
const client = evmWallet.getViemClient();
|
|
202
|
+
|
|
203
|
+
// Solana
|
|
204
|
+
const solWallet = SolanaWallet.from(wallet);
|
|
205
|
+
const solTx = await solWallet.sendTransaction({
|
|
206
|
+
serializedTransaction: "<base64-encoded-transaction>",
|
|
207
|
+
});
|
|
208
|
+
|
|
209
|
+
// Stellar
|
|
210
|
+
const stellarWallet = StellarWallet.from(wallet);
|
|
211
|
+
const stellarTx = await stellarWallet.sendTransaction({
|
|
212
|
+
contractId: "C...",
|
|
213
|
+
method: "transfer",
|
|
214
|
+
args: { to: "G...", amount: "1000000" },
|
|
215
|
+
});
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
### Signer Management
|
|
219
|
+
|
|
220
|
+
```ts
|
|
221
|
+
// Add a new signer
|
|
222
|
+
await wallet.addSigner({ type: "server", secret: "<SECRET>" });
|
|
223
|
+
|
|
224
|
+
// List signers
|
|
225
|
+
const signers = await wallet.signers();
|
|
226
|
+
console.log(signers); // [{ type: "server", locator: "server:...", status: "success" }, ...]
|
|
227
|
+
|
|
228
|
+
// Set the active signer (required after getWallet server-side)
|
|
229
|
+
await wallet.useSigner({ type: "server", secret: "<SECRET>" });
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
### Transaction Approval (Prepare-Only Mode)
|
|
233
|
+
|
|
234
|
+
For flows that require multi-step approval:
|
|
235
|
+
|
|
236
|
+
```ts
|
|
237
|
+
// Create a transaction without auto-approving
|
|
238
|
+
const pendingTx = await wallet.send("0xRecipient", "usdc", "10", {
|
|
239
|
+
prepareOnly: true,
|
|
240
|
+
});
|
|
241
|
+
console.log(pendingTx.transactionId);
|
|
242
|
+
|
|
243
|
+
// Approve later
|
|
244
|
+
const result = await wallet.approve({
|
|
245
|
+
transactionId: pendingTx.transactionId,
|
|
246
|
+
});
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
## Signer Types
|
|
250
|
+
|
|
251
|
+
| Type | Use Case | Platforms |
|
|
252
|
+
|---|---|---|
|
|
253
|
+
| `device` | Hardware-backed, no OTP. **Browser and React Native only** — not available in Node.js. | Browser, React Native |
|
|
254
|
+
| `server` | Server-side automated operations (AI agents, backends). | Node.js |
|
|
255
|
+
| `email` | OTP-based recovery signer. | All |
|
|
256
|
+
| `phone` | OTP-based recovery signer. | All |
|
|
257
|
+
| `passkey` | WebAuthn/FIDO2 biometric signer. | Browser (EVM only) |
|
|
258
|
+
| `external-wallet` | Bring-your-own key (MetaMask, KMS, etc). | All |
|
|
259
|
+
|
|
260
|
+
## React / React Native
|
|
261
|
+
|
|
262
|
+
For React applications, use [`@crossmint/client-sdk-react-ui`](https://www.npmjs.com/package/@crossmint/client-sdk-react-ui) which provides wallet providers, hooks (`useWallet`, `useWalletOtpSigner`), and built-in UI for OTP and passkey flows.
|
|
263
|
+
|
|
264
|
+
For React Native, see [`@crossmint/client-sdk-react-native-ui`](https://www.npmjs.com/package/@crossmint/client-sdk-react-native-ui).
|
|
265
|
+
|
|
266
|
+
## Documentation
|
|
267
|
+
|
|
268
|
+
- [Crossmint Wallets Docs](https://docs.crossmint.com)
|
|
269
|
+
- [SDK Reference](https://docs.crossmint.com/sdk-reference/wallets)
|
|
270
|
+
|
|
271
|
+
## License
|
|
272
|
+
|
|
273
|
+
Apache-2.0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJ33QM2IDcjs = require('../../chunk-J33QM2ID.cjs');require('../../chunk-DSIFRRBS.cjs');exports.DELAY_LONG = _chunkJ33QM2IDcjs.i; exports.DELAY_MEDIUM = _chunkJ33QM2IDcjs.h; exports.DELAY_RATE_LIMIT_WINDOW = _chunkJ33QM2IDcjs.j; exports.DELAY_SHORT = _chunkJ33QM2IDcjs.g; exports.HTTP_ERROR_STATUSES = _chunkJ33QM2IDcjs.a; exports.MOCK_API_KEY = _chunkJ33QM2IDcjs.m; exports.TEST_ADDRESSES = _chunkJ33QM2IDcjs.k; exports.TEST_VALUES = _chunkJ33QM2IDcjs.l; exports.TIMEOUT_LONG = _chunkJ33QM2IDcjs.f; exports.TIMEOUT_MEDIUM = _chunkJ33QM2IDcjs.e; exports.TIMEOUT_SHORT = _chunkJ33QM2IDcjs.d; exports.TOKEN_LOCATORS = _chunkJ33QM2IDcjs.c; exports.WALLET_LOCATORS = _chunkJ33QM2IDcjs.b;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { ae as WalletLocator } from '../../types-CwTucqvZ.cjs';
|
|
2
|
+
import 'viem';
|
|
3
|
+
import '../gen/types.gen.cjs';
|
|
4
|
+
import 'ox';
|
|
5
|
+
import '@crossmint/client-sdk-window';
|
|
6
|
+
import '@crossmint/client-signers';
|
|
7
|
+
import '@crossmint/common-sdk-base';
|
|
8
|
+
import '../../chains/chains.cjs';
|
|
9
|
+
import '@solana/web3.js';
|
|
10
|
+
import 'abitype';
|
|
11
|
+
import '../../utils/device-signers/DeviceSignerKeyStorage.cjs';
|
|
12
|
+
|
|
13
|
+
declare const HTTP_ERROR_STATUSES: readonly [{
|
|
14
|
+
readonly status: 400;
|
|
15
|
+
readonly message: "Bad Request";
|
|
16
|
+
}, {
|
|
17
|
+
readonly status: 401;
|
|
18
|
+
readonly message: "Unauthorized";
|
|
19
|
+
}, {
|
|
20
|
+
readonly status: 403;
|
|
21
|
+
readonly message: "Forbidden";
|
|
22
|
+
}, {
|
|
23
|
+
readonly status: 404;
|
|
24
|
+
readonly message: "Not Found";
|
|
25
|
+
}, {
|
|
26
|
+
readonly status: 429;
|
|
27
|
+
readonly message: "Rate limit exceeded";
|
|
28
|
+
}, {
|
|
29
|
+
readonly status: 500;
|
|
30
|
+
readonly message: "Internal server error";
|
|
31
|
+
}, {
|
|
32
|
+
readonly status: 502;
|
|
33
|
+
readonly message: "Bad Gateway";
|
|
34
|
+
}, {
|
|
35
|
+
readonly status: 503;
|
|
36
|
+
readonly message: "Service Unavailable";
|
|
37
|
+
}];
|
|
38
|
+
/**
|
|
39
|
+
* General-purpose wallet locators for unit and integration tests.
|
|
40
|
+
* Includes both locator format strings (me:chain:type) and actual addresses.
|
|
41
|
+
* Used for testing wallet operations that accept WalletLocator type.
|
|
42
|
+
*/
|
|
43
|
+
declare const WALLET_LOCATORS: {
|
|
44
|
+
readonly evmSmart: WalletLocator;
|
|
45
|
+
readonly evmMpc: WalletLocator;
|
|
46
|
+
readonly solanaSmart: WalletLocator;
|
|
47
|
+
readonly solanaAddress: WalletLocator;
|
|
48
|
+
readonly evmAddress: WalletLocator;
|
|
49
|
+
readonly evmAddressWithSpecialChars: WalletLocator;
|
|
50
|
+
};
|
|
51
|
+
declare const TOKEN_LOCATORS: {
|
|
52
|
+
readonly eth: "base-sepolia:eth";
|
|
53
|
+
readonly usdc: "base-sepolia:usdc";
|
|
54
|
+
readonly sol: "solana:sol";
|
|
55
|
+
readonly customContract: "base-sepolia:0x1234567890123456789012345678901234567890";
|
|
56
|
+
readonly tokenWithSpecialChars: "base-sepolia:0xABCDEFabcdef0123456789ABCDEFabcdef012345";
|
|
57
|
+
};
|
|
58
|
+
declare const TIMEOUT_SHORT = 30000;
|
|
59
|
+
declare const TIMEOUT_MEDIUM = 60000;
|
|
60
|
+
declare const TIMEOUT_LONG = 120000;
|
|
61
|
+
declare const DELAY_SHORT = 200;
|
|
62
|
+
declare const DELAY_MEDIUM = 500;
|
|
63
|
+
declare const DELAY_LONG = 1000;
|
|
64
|
+
declare const DELAY_RATE_LIMIT_WINDOW = 2000;
|
|
65
|
+
/**
|
|
66
|
+
* Real blockchain addresses for integration tests with specific purposes.
|
|
67
|
+
* These are actual addresses used in integration tests for:
|
|
68
|
+
* - Admin signers (external wallet addresses for wallet creation)
|
|
69
|
+
* - Recipients (addresses to send tokens to)
|
|
70
|
+
* - Error testing (non-existent addresses)
|
|
71
|
+
* - General test operations
|
|
72
|
+
* Note: These are actual addresses, not locator format strings.
|
|
73
|
+
*/
|
|
74
|
+
declare const TEST_ADDRESSES: {
|
|
75
|
+
readonly EVM_ADMIN_SIGNER: "0xe5E91D9b21C3563011cc332B050150fb9211bBEB";
|
|
76
|
+
readonly SOLANA_ADMIN_SIGNER: "CsHuaddA9J8j9vSTdL9wpvBsyjYe4F7iQQLuPg3EUqsU";
|
|
77
|
+
readonly EVM_RECIPIENT: "0xDF8b5F9c19E187f1Ea00730a1e46180152244315";
|
|
78
|
+
readonly EVM_NON_EXISTENT: "0x0000000000000000000000000000000000000000";
|
|
79
|
+
readonly EVM_TEST: "0xabcdefabcdefabcdefabcdefabcdefabcdefabcd";
|
|
80
|
+
};
|
|
81
|
+
declare const TEST_VALUES: {
|
|
82
|
+
readonly FUNDING_AMOUNT_SMALL: 1;
|
|
83
|
+
readonly FUNDING_AMOUNT_LARGE: 10;
|
|
84
|
+
readonly SEND_AMOUNT_SMALL: "0.0001";
|
|
85
|
+
readonly SEND_AMOUNT_VERY_SMALL: "0.000000000000000001";
|
|
86
|
+
readonly SEND_AMOUNT_ZERO: "0";
|
|
87
|
+
readonly SEND_AMOUNT_INVALID: "999999999999999999.0";
|
|
88
|
+
readonly SEND_AMOUNT_EXTREME: "999999999999999999999999999999.999999999999999999";
|
|
89
|
+
readonly LONG_STRING_LENGTH: 10000;
|
|
90
|
+
readonly CONCURRENT_REQUESTS: 3;
|
|
91
|
+
readonly RAPID_SEQUENTIAL_COUNT: 3;
|
|
92
|
+
readonly RATE_LIMIT_BATCH_SIZE: 5;
|
|
93
|
+
readonly RATE_LIMIT_BATCHES: 3;
|
|
94
|
+
readonly RATE_LIMIT_RAPID_COUNT: 20;
|
|
95
|
+
readonly RATE_LIMIT_STRESS_COUNT: 50;
|
|
96
|
+
readonly APPROVE_TRANSACTION_MAX_RETRIES: 10;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Mock API key for unit tests.
|
|
100
|
+
* This is a valid development API key format used for testing purposes only.
|
|
101
|
+
*/
|
|
102
|
+
declare const MOCK_API_KEY = "ck_development_A61UZQnvjSQcM5qVBaBactgqebxafWAVsNdD2xLkgBxoYuH5q2guM8r9DUmZQzE1WYyoByGVYpEG2o9gVSzAZFsrLbfKGERUJ6D5CW6S9AsJGAc3ctgrsD4n2ioekzGj7KPbLwT3SysDjMamYXLxEroUbQSdwf6aLF4zeEpECq2crkTUQeLFzxzmjWNxFDHFYefDrfrFPCURvBXJLf5pCxCQ";
|
|
103
|
+
|
|
104
|
+
export { DELAY_LONG, DELAY_MEDIUM, DELAY_RATE_LIMIT_WINDOW, DELAY_SHORT, HTTP_ERROR_STATUSES, MOCK_API_KEY, TEST_ADDRESSES, TEST_VALUES, TIMEOUT_LONG, TIMEOUT_MEDIUM, TIMEOUT_SHORT, TOKEN_LOCATORS, WALLET_LOCATORS };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { ae as WalletLocator } from '../../types-DUFjqW3o.js';
|
|
2
|
+
import 'viem';
|
|
3
|
+
import '../gen/types.gen.js';
|
|
4
|
+
import 'ox';
|
|
5
|
+
import '@crossmint/client-sdk-window';
|
|
6
|
+
import '@crossmint/client-signers';
|
|
7
|
+
import '@crossmint/common-sdk-base';
|
|
8
|
+
import '../../chains/chains.js';
|
|
9
|
+
import '@solana/web3.js';
|
|
10
|
+
import 'abitype';
|
|
11
|
+
import '../../utils/device-signers/DeviceSignerKeyStorage.js';
|
|
12
|
+
|
|
13
|
+
declare const HTTP_ERROR_STATUSES: readonly [{
|
|
14
|
+
readonly status: 400;
|
|
15
|
+
readonly message: "Bad Request";
|
|
16
|
+
}, {
|
|
17
|
+
readonly status: 401;
|
|
18
|
+
readonly message: "Unauthorized";
|
|
19
|
+
}, {
|
|
20
|
+
readonly status: 403;
|
|
21
|
+
readonly message: "Forbidden";
|
|
22
|
+
}, {
|
|
23
|
+
readonly status: 404;
|
|
24
|
+
readonly message: "Not Found";
|
|
25
|
+
}, {
|
|
26
|
+
readonly status: 429;
|
|
27
|
+
readonly message: "Rate limit exceeded";
|
|
28
|
+
}, {
|
|
29
|
+
readonly status: 500;
|
|
30
|
+
readonly message: "Internal server error";
|
|
31
|
+
}, {
|
|
32
|
+
readonly status: 502;
|
|
33
|
+
readonly message: "Bad Gateway";
|
|
34
|
+
}, {
|
|
35
|
+
readonly status: 503;
|
|
36
|
+
readonly message: "Service Unavailable";
|
|
37
|
+
}];
|
|
38
|
+
/**
|
|
39
|
+
* General-purpose wallet locators for unit and integration tests.
|
|
40
|
+
* Includes both locator format strings (me:chain:type) and actual addresses.
|
|
41
|
+
* Used for testing wallet operations that accept WalletLocator type.
|
|
42
|
+
*/
|
|
43
|
+
declare const WALLET_LOCATORS: {
|
|
44
|
+
readonly evmSmart: WalletLocator;
|
|
45
|
+
readonly evmMpc: WalletLocator;
|
|
46
|
+
readonly solanaSmart: WalletLocator;
|
|
47
|
+
readonly solanaAddress: WalletLocator;
|
|
48
|
+
readonly evmAddress: WalletLocator;
|
|
49
|
+
readonly evmAddressWithSpecialChars: WalletLocator;
|
|
50
|
+
};
|
|
51
|
+
declare const TOKEN_LOCATORS: {
|
|
52
|
+
readonly eth: "base-sepolia:eth";
|
|
53
|
+
readonly usdc: "base-sepolia:usdc";
|
|
54
|
+
readonly sol: "solana:sol";
|
|
55
|
+
readonly customContract: "base-sepolia:0x1234567890123456789012345678901234567890";
|
|
56
|
+
readonly tokenWithSpecialChars: "base-sepolia:0xABCDEFabcdef0123456789ABCDEFabcdef012345";
|
|
57
|
+
};
|
|
58
|
+
declare const TIMEOUT_SHORT = 30000;
|
|
59
|
+
declare const TIMEOUT_MEDIUM = 60000;
|
|
60
|
+
declare const TIMEOUT_LONG = 120000;
|
|
61
|
+
declare const DELAY_SHORT = 200;
|
|
62
|
+
declare const DELAY_MEDIUM = 500;
|
|
63
|
+
declare const DELAY_LONG = 1000;
|
|
64
|
+
declare const DELAY_RATE_LIMIT_WINDOW = 2000;
|
|
65
|
+
/**
|
|
66
|
+
* Real blockchain addresses for integration tests with specific purposes.
|
|
67
|
+
* These are actual addresses used in integration tests for:
|
|
68
|
+
* - Admin signers (external wallet addresses for wallet creation)
|
|
69
|
+
* - Recipients (addresses to send tokens to)
|
|
70
|
+
* - Error testing (non-existent addresses)
|
|
71
|
+
* - General test operations
|
|
72
|
+
* Note: These are actual addresses, not locator format strings.
|
|
73
|
+
*/
|
|
74
|
+
declare const TEST_ADDRESSES: {
|
|
75
|
+
readonly EVM_ADMIN_SIGNER: "0xe5E91D9b21C3563011cc332B050150fb9211bBEB";
|
|
76
|
+
readonly SOLANA_ADMIN_SIGNER: "CsHuaddA9J8j9vSTdL9wpvBsyjYe4F7iQQLuPg3EUqsU";
|
|
77
|
+
readonly EVM_RECIPIENT: "0xDF8b5F9c19E187f1Ea00730a1e46180152244315";
|
|
78
|
+
readonly EVM_NON_EXISTENT: "0x0000000000000000000000000000000000000000";
|
|
79
|
+
readonly EVM_TEST: "0xabcdefabcdefabcdefabcdefabcdefabcdefabcd";
|
|
80
|
+
};
|
|
81
|
+
declare const TEST_VALUES: {
|
|
82
|
+
readonly FUNDING_AMOUNT_SMALL: 1;
|
|
83
|
+
readonly FUNDING_AMOUNT_LARGE: 10;
|
|
84
|
+
readonly SEND_AMOUNT_SMALL: "0.0001";
|
|
85
|
+
readonly SEND_AMOUNT_VERY_SMALL: "0.000000000000000001";
|
|
86
|
+
readonly SEND_AMOUNT_ZERO: "0";
|
|
87
|
+
readonly SEND_AMOUNT_INVALID: "999999999999999999.0";
|
|
88
|
+
readonly SEND_AMOUNT_EXTREME: "999999999999999999999999999999.999999999999999999";
|
|
89
|
+
readonly LONG_STRING_LENGTH: 10000;
|
|
90
|
+
readonly CONCURRENT_REQUESTS: 3;
|
|
91
|
+
readonly RAPID_SEQUENTIAL_COUNT: 3;
|
|
92
|
+
readonly RATE_LIMIT_BATCH_SIZE: 5;
|
|
93
|
+
readonly RATE_LIMIT_BATCHES: 3;
|
|
94
|
+
readonly RATE_LIMIT_RAPID_COUNT: 20;
|
|
95
|
+
readonly RATE_LIMIT_STRESS_COUNT: 50;
|
|
96
|
+
readonly APPROVE_TRANSACTION_MAX_RETRIES: 10;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Mock API key for unit tests.
|
|
100
|
+
* This is a valid development API key format used for testing purposes only.
|
|
101
|
+
*/
|
|
102
|
+
declare const MOCK_API_KEY = "ck_development_A61UZQnvjSQcM5qVBaBactgqebxafWAVsNdD2xLkgBxoYuH5q2guM8r9DUmZQzE1WYyoByGVYpEG2o9gVSzAZFsrLbfKGERUJ6D5CW6S9AsJGAc3ctgrsD4n2ioekzGj7KPbLwT3SysDjMamYXLxEroUbQSdwf6aLF4zeEpECq2crkTUQeLFzxzmjWNxFDHFYefDrfrFPCURvBXJLf5pCxCQ";
|
|
103
|
+
|
|
104
|
+
export { DELAY_LONG, DELAY_MEDIUM, DELAY_RATE_LIMIT_WINDOW, DELAY_SHORT, HTTP_ERROR_STATUSES, MOCK_API_KEY, TEST_ADDRESSES, TEST_VALUES, TIMEOUT_LONG, TIMEOUT_MEDIUM, TIMEOUT_SHORT, TOKEN_LOCATORS, WALLET_LOCATORS };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m}from"../../chunk-DIGDDKSF.js";import"../../chunk-NU7VF7MC.js";export{i as DELAY_LONG,h as DELAY_MEDIUM,j as DELAY_RATE_LIMIT_WINDOW,g as DELAY_SHORT,a as HTTP_ERROR_STATUSES,m as MOCK_API_KEY,k as TEST_ADDRESSES,l as TEST_VALUES,f as TIMEOUT_LONG,e as TIMEOUT_MEDIUM,d as TIMEOUT_SHORT,c as TOKEN_LOCATORS,b as WALLET_LOCATORS};
|