@crossmint/wallets-sdk 0.20.2 → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/api/__tests__/constants.cjs +1 -31
- package/dist/api/__tests__/constants.d.cts +9 -1
- package/dist/api/__tests__/constants.d.ts +9 -1
- package/dist/api/__tests__/constants.js +1 -31
- package/dist/api/__tests__/test-utils.cjs +1 -372
- package/dist/api/__tests__/test-utils.d.cts +10 -4
- package/dist/api/__tests__/test-utils.d.ts +10 -4
- package/dist/api/__tests__/test-utils.js +1 -372
- package/dist/api/client.cjs +1 -10
- package/dist/api/client.d.cts +15 -6
- package/dist/api/client.d.ts +15 -6
- package/dist/api/client.js +1 -10
- package/dist/api/gen/client.gen.cjs +1 -7
- package/dist/api/gen/client.gen.js +1 -7
- package/dist/api/gen/index.cjs +1 -179
- 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 -179
- package/dist/api/gen/sdk.gen.cjs +1 -178
- package/dist/api/gen/sdk.gen.d.cts +18 -373
- package/dist/api/gen/sdk.gen.d.ts +18 -373
- package/dist/api/gen/sdk.gen.js +1 -178
- package/dist/api/gen/types.gen.d.cts +3125 -5778
- package/dist/api/gen/types.gen.d.ts +3125 -5778
- package/dist/api/gen/types.gen.js +1 -1
- package/dist/api/index.cjs +1 -12
- package/dist/api/index.d.cts +7 -1
- package/dist/api/index.d.ts +7 -1
- package/dist/api/index.js +1 -12
- package/dist/api/types.d.cts +11 -55
- package/dist/api/types.d.ts +11 -55
- package/dist/api/types.js +1 -1
- package/dist/chains/chains.cjs +1 -24
- package/dist/chains/chains.js +1 -24
- package/dist/chains/definitions/arcTestnet.cjs +1 -7
- package/dist/chains/definitions/arcTestnet.js +1 -7
- package/dist/chains/definitions/story.cjs +1 -7
- package/dist/chains/definitions/story.js +1 -7
- package/dist/chains/definitions/storyTestnet.cjs +1 -7
- package/dist/chains/definitions/storyTestnet.js +1 -7
- package/dist/chains/definitions/tempo.cjs +1 -7
- package/dist/chains/definitions/tempo.js +1 -7
- package/dist/chains/definitions/tempoTestnet.cjs +1 -7
- package/dist/chains/definitions/tempoTestnet.js +1 -7
- package/dist/chunk-2GKPWQBQ.cjs +1 -0
- package/dist/chunk-2YLRFJ66.js +1 -0
- package/dist/chunk-3HLCTEWX.js +1 -0
- package/dist/chunk-4ADZVYB5.cjs +1 -0
- package/dist/chunk-576HP23H.cjs +1 -0
- package/dist/chunk-5IC7UWND.cjs +1 -0
- package/dist/chunk-5M7IRODB.js +1 -0
- package/dist/chunk-5QIW67NU.cjs +1 -0
- package/dist/chunk-5X4EOJFG.cjs +1 -0
- package/dist/chunk-5YG5A77Q.js +1 -0
- package/dist/chunk-67Z4SJMH.js +1 -0
- package/dist/chunk-6MGMZ3SI.cjs +1 -0
- package/dist/chunk-6OXELDPD.js +1 -0
- package/dist/chunk-7VUOD7EI.cjs +1 -0
- package/dist/chunk-A33BEWR7.cjs +1 -0
- package/dist/chunk-BEW7JDW6.cjs +1 -0
- package/dist/chunk-BFIHTTMM.cjs +1 -0
- package/dist/chunk-BW27ZG6O.cjs +1 -0
- package/dist/chunk-CUHDOBKN.cjs +1 -0
- package/dist/chunk-D5YDWSO5.cjs +1 -0
- package/dist/chunk-DIGDDKSF.js +1 -0
- package/dist/chunk-EE4ITUGS.js +1 -0
- package/dist/chunk-EIHK5TYE.js +1 -0
- package/dist/chunk-ENU3EKBG.cjs +1 -0
- package/dist/chunk-F6PYIH4E.cjs +1 -0
- package/dist/chunk-FT5EVMLB.js +1 -0
- package/dist/chunk-G5R6VQGJ.js +1 -0
- package/dist/chunk-GDRKG42L.cjs +1 -0
- package/dist/chunk-GEY574TH.cjs +1 -0
- package/dist/chunk-GOXB2RBF.js +1 -0
- package/dist/chunk-HOWDLODW.cjs +1 -0
- package/dist/chunk-HRUMWG2F.cjs +1 -0
- package/dist/chunk-IFD3BVMM.js +1 -0
- package/dist/chunk-IGRPHTXZ.cjs +1 -0
- package/dist/chunk-IR5WN6FQ.cjs +1 -0
- package/dist/chunk-ISXH7QXG.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-JJMKQ5PK.cjs +1 -0
- package/dist/chunk-JLT4EA2Z.js +1 -0
- package/dist/chunk-JUKCHXJ6.cjs +1 -0
- package/dist/chunk-KKQBZXFE.js +1 -0
- package/dist/chunk-KUP7H7X2.js +1 -0
- package/dist/chunk-L52GDMSH.js +0 -0
- package/dist/chunk-LB4V5KKI.js +1 -0
- package/dist/chunk-MCBBBEJT.js +1 -0
- package/dist/chunk-MMFZP54X.js +1 -0
- package/dist/chunk-N5WVT7QE.js +1 -0
- package/dist/chunk-NCXMTHC4.js +1 -0
- package/dist/chunk-NF7KU2ML.cjs +1 -0
- package/dist/chunk-NJWSHT2H.cjs +1 -0
- package/dist/chunk-NKR3UAMA.cjs +1 -0
- package/dist/chunk-NPCKXKQ7.js +1 -0
- package/dist/chunk-NX256LAH.cjs +1 -0
- package/dist/chunk-O4FVTK7X.cjs +1 -0
- package/dist/chunk-O6VBO7KG.js +1 -0
- package/dist/chunk-OQZTL6ZG.js +1 -0
- package/dist/chunk-P6MB5P2F.js +1 -0
- package/dist/chunk-PDHWPAGW.js +1 -0
- package/dist/chunk-PHXT77LR.js +1 -0
- package/dist/chunk-PKYRYRX4.js +1 -0
- package/dist/chunk-PSXRNSOE.js +1 -0
- package/dist/chunk-QM3BB4E2.js +0 -0
- package/dist/chunk-R3EQXI46.js +1 -0
- package/dist/chunk-RC6KDONJ.cjs +1 -0
- package/dist/chunk-RLAW2ERD.js +1 -0
- package/dist/chunk-RN77IYDQ.js +1 -0
- package/dist/chunk-RXRRXB74.cjs +1 -0
- package/dist/chunk-S3DMYMEQ.js +1 -0
- package/dist/chunk-S3DYQVRD.js +1 -0
- package/dist/chunk-S4O54O4C.cjs +1 -0
- package/dist/chunk-S5KDZFZ7.cjs +1 -0
- package/dist/chunk-SCEPJO4Q.cjs +1 -0
- package/dist/chunk-SH7KRBXV.js +1 -0
- package/dist/chunk-SP2YD44M.js +1 -0
- package/dist/chunk-SPTXAOFR.cjs +1 -0
- package/dist/chunk-SPVAZXRY.js +1 -0
- package/dist/chunk-STYSP6KL.cjs +1 -0
- package/dist/chunk-SVIKBM3S.js +1 -0
- package/dist/chunk-TFMNBTFK.cjs +1 -0
- package/dist/chunk-TOAFCAVT.js +0 -0
- package/dist/chunk-TTSJFEM5.cjs +1 -0
- package/dist/chunk-TYFWX53A.js +1 -0
- package/dist/chunk-U7QSF6P7.cjs +1 -0
- package/dist/chunk-UE3WVHTM.cjs +1 -0
- package/dist/chunk-W5EH3HYF.cjs +1 -0
- package/dist/chunk-WBIKVPHW.js +1 -0
- package/dist/chunk-WCGUGIGJ.js +1 -0
- package/dist/chunk-WT5MDUZY.js +1 -0
- package/dist/chunk-WTVI4AL4.js +1 -0
- package/dist/chunk-WYMBO52A.js +1 -0
- package/dist/chunk-XNZLCUTY.js +1 -0
- package/dist/chunk-XS5B3TUE.js +1 -0
- package/dist/chunk-YFAJXQAM.cjs +1 -0
- package/dist/chunk-YGL4ITFK.cjs +1 -0
- package/dist/chunk-YLRD3ANZ.cjs +1 -0
- package/dist/chunk-YQQWKSNT.cjs +1 -0
- package/dist/chunk-ZACCKNGY.cjs +1 -0
- package/dist/chunk-ZE4NT3CJ.js +1 -0
- package/dist/chunk-ZKL4RO4I.cjs +1 -0
- package/dist/index.cjs +1 -60
- package/dist/index.d.cts +9 -7
- package/dist/index.d.ts +9 -7
- package/dist/index.js +1 -60
- package/dist/logger/index.cjs +1 -11
- package/dist/logger/index.js +1 -11
- package/dist/logger/init.cjs +1 -10
- package/dist/logger/init.js +1 -10
- package/dist/sdk.cjs +1 -39
- package/dist/sdk.d.cts +25 -23
- package/dist/sdk.d.ts +25 -23
- package/dist/sdk.js +1 -39
- 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 -7
- package/dist/signers/evm-api-key.d.cts +8 -4
- package/dist/signers/evm-api-key.d.ts +8 -4
- package/dist/signers/evm-api-key.js +1 -7
- package/dist/signers/evm-external-wallet.cjs +1 -7
- package/dist/signers/evm-external-wallet.d.cts +13 -14
- package/dist/signers/evm-external-wallet.d.ts +13 -14
- package/dist/signers/evm-external-wallet.js +1 -7
- 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 -24
- package/dist/signers/index.d.cts +7 -3
- package/dist/signers/index.d.ts +7 -3
- package/dist/signers/index.js +1 -24
- package/dist/signers/non-custodial/index.cjs +1 -27
- package/dist/signers/non-custodial/index.d.cts +7 -3
- package/dist/signers/non-custodial/index.d.ts +7 -3
- package/dist/signers/non-custodial/index.js +1 -27
- package/dist/signers/non-custodial/ncs-evm-signer.cjs +1 -13
- package/dist/signers/non-custodial/ncs-evm-signer.d.cts +7 -3
- package/dist/signers/non-custodial/ncs-evm-signer.d.ts +7 -3
- package/dist/signers/non-custodial/ncs-evm-signer.js +1 -13
- package/dist/signers/non-custodial/ncs-iframe-manager.cjs +1 -7
- package/dist/signers/non-custodial/ncs-iframe-manager.js +1 -7
- package/dist/signers/non-custodial/ncs-signer.cjs +1 -14
- package/dist/signers/non-custodial/ncs-signer.d.cts +8 -4
- package/dist/signers/non-custodial/ncs-signer.d.ts +8 -4
- package/dist/signers/non-custodial/ncs-signer.js +1 -14
- package/dist/signers/non-custodial/ncs-solana-signer.cjs +1 -13
- package/dist/signers/non-custodial/ncs-solana-signer.d.cts +7 -3
- package/dist/signers/non-custodial/ncs-solana-signer.d.ts +7 -3
- package/dist/signers/non-custodial/ncs-solana-signer.js +1 -13
- package/dist/signers/non-custodial/ncs-stellar-signer.cjs +1 -13
- package/dist/signers/non-custodial/ncs-stellar-signer.d.cts +7 -3
- package/dist/signers/non-custodial/ncs-stellar-signer.d.ts +7 -3
- package/dist/signers/non-custodial/ncs-stellar-signer.js +1 -13
- package/dist/signers/passkey.cjs +1 -7
- package/dist/signers/passkey.d.cts +8 -4
- package/dist/signers/passkey.d.ts +8 -4
- package/dist/signers/passkey.js +1 -7
- 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 -7
- package/dist/signers/solana-api-key.d.cts +8 -4
- package/dist/signers/solana-api-key.d.ts +8 -4
- package/dist/signers/solana-api-key.js +1 -7
- package/dist/signers/solana-external-wallet.cjs +1 -8
- package/dist/signers/solana-external-wallet.d.cts +10 -11
- package/dist/signers/solana-external-wallet.d.ts +10 -11
- package/dist/signers/solana-external-wallet.js +1 -8
- package/dist/signers/stellar-external-wallet.cjs +1 -7
- package/dist/signers/stellar-external-wallet.d.cts +10 -10
- package/dist/signers/stellar-external-wallet.d.ts +10 -10
- package/dist/signers/stellar-external-wallet.js +1 -7
- package/dist/signers/types.cjs +1 -9
- package/dist/signers/types.d.cts +10 -90
- package/dist/signers/types.d.ts +10 -90
- package/dist/signers/types.js +1 -9
- 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-BDRS_MOb.d.ts +425 -0
- package/dist/types-D-xASbms.d.cts +425 -0
- package/dist/utils/constants.cjs +1 -13
- package/dist/utils/constants.js +1 -13
- package/dist/utils/device-signers/DeviceSignerKeyStorage.cjs +1 -0
- package/dist/utils/device-signers/DeviceSignerKeyStorage.d.cts +66 -0
- package/dist/utils/device-signers/DeviceSignerKeyStorage.d.ts +66 -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 +48 -0
- package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.d.ts +48 -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 +27 -0
- package/dist/utils/device-signers/createDeviceSigner.d.ts +27 -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 -55
- package/dist/utils/errors.js +1 -55
- 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 +32 -0
- package/dist/utils/signer-mapping.d.ts +32 -0
- package/dist/utils/signer-mapping.js +1 -0
- package/dist/utils/signer-validation.cjs +1 -10
- package/dist/utils/signer-validation.js +1 -10
- package/dist/wallets/__tests__/setup.cjs +1 -36
- package/dist/wallets/__tests__/setup.js +1 -36
- package/dist/wallets/__tests__/test-helpers.cjs +1 -93
- package/dist/wallets/__tests__/test-helpers.d.cts +6 -6
- package/dist/wallets/__tests__/test-helpers.d.ts +6 -6
- package/dist/wallets/__tests__/test-helpers.js +1 -93
- package/dist/wallets/evm.cjs +1 -25
- package/dist/wallets/evm.d.cts +2 -3
- package/dist/wallets/evm.d.ts +2 -3
- package/dist/wallets/evm.js +1 -25
- package/dist/wallets/solana.cjs +1 -26
- package/dist/wallets/solana.d.cts +5 -4
- package/dist/wallets/solana.d.ts +5 -4
- package/dist/wallets/solana.js +1 -26
- package/dist/wallets/stellar.cjs +1 -25
- package/dist/wallets/stellar.d.cts +2 -3
- package/dist/wallets/stellar.d.ts +2 -3
- package/dist/wallets/stellar.js +1 -25
- package/dist/wallets/types.d.cts +9 -168
- package/dist/wallets/types.d.ts +9 -168
- package/dist/wallets/wallet-factory.cjs +1 -33
- package/dist/wallets/wallet-factory.d.cts +17 -13
- package/dist/wallets/wallet-factory.d.ts +17 -13
- package/dist/wallets/wallet-factory.js +1 -33
- package/dist/wallets/wallet.cjs +1 -24
- package/dist/wallets/wallet.d.cts +97 -32
- package/dist/wallets/wallet.d.ts +97 -32
- package/dist/wallets/wallet.js +1 -24
- package/package.json +10 -5
- package/dist/chunk-2I2OFGNL.js +0 -36
- package/dist/chunk-2T5HHKUI.js +0 -19
- package/dist/chunk-2WBSPOWU.js +0 -223
- package/dist/chunk-3U6UAYOV.js +0 -25
- package/dist/chunk-47R3UV3J.cjs +0 -58
- package/dist/chunk-47WKYTRN.js +0 -63
- package/dist/chunk-4GFSUI2I.cjs +0 -66
- package/dist/chunk-55V4VMTX.cjs +0 -25
- package/dist/chunk-66UY53KP.cjs +0 -336
- package/dist/chunk-6FG5QXII.cjs +0 -110
- package/dist/chunk-6UMJYMAY.js +0 -82
- package/dist/chunk-7GOUUPS4.js +0 -36
- package/dist/chunk-7TT3VUDF.cjs +0 -84
- package/dist/chunk-7USEVMTW.cjs +0 -21
- package/dist/chunk-A6E67ZZP.js +0 -237
- package/dist/chunk-ABMZ3ZVN.js +0 -52
- package/dist/chunk-ASE2FXWP.js +0 -65
- package/dist/chunk-BMMZIPXT.js +0 -778
- package/dist/chunk-CMBFV325.js +0 -69
- package/dist/chunk-COR3CNRW.cjs +0 -778
- package/dist/chunk-F7L2TZ3I.cjs +0 -21
- package/dist/chunk-FHMKNG62.js +0 -741
- package/dist/chunk-FICVKSXZ.js +0 -84
- package/dist/chunk-FOOISYCJ.js +0 -66
- package/dist/chunk-G6QJHFSY.cjs +0 -74
- package/dist/chunk-HTSQPZHW.cjs +0 -25
- package/dist/chunk-HXJ3YPAN.js +0 -110
- package/dist/chunk-IDKGJO2G.cjs +0 -115
- package/dist/chunk-IOMKHF6R.cjs +0 -44
- package/dist/chunk-IPO25BCU.js +0 -43
- package/dist/chunk-JREZWZ2S.cjs +0 -52
- package/dist/chunk-JSWTGW46.cjs +0 -36
- package/dist/chunk-JWMQALLN.js +0 -21
- package/dist/chunk-KQH5ZXJ4.js +0 -336
- package/dist/chunk-KT3CVXFG.js +0 -9
- package/dist/chunk-MMISP35W.js +0 -21
- package/dist/chunk-MRZXYVQO.cjs +0 -82
- package/dist/chunk-NIBKCMQ2.cjs +0 -19
- package/dist/chunk-PIFD6KNH.js +0 -59
- package/dist/chunk-PJOJIRTY.js +0 -74
- package/dist/chunk-PK7J3Y3L.js +0 -44
- package/dist/chunk-PM7BGATN.cjs +0 -237
- package/dist/chunk-POG76HDD.cjs +0 -741
- package/dist/chunk-PUO4QNXH.js +0 -89
- package/dist/chunk-Q5KNPVYI.cjs +0 -59
- package/dist/chunk-R4AW5ADG.cjs +0 -16
- package/dist/chunk-R6DH4V7S.cjs +0 -69
- package/dist/chunk-RBHGZDDX.cjs +0 -58
- package/dist/chunk-RHR6P2KP.cjs +0 -15
- package/dist/chunk-RYQI3RXL.cjs +0 -247
- package/dist/chunk-SGINWAB6.js +0 -155
- package/dist/chunk-T2XUADHW.js +0 -58
- package/dist/chunk-TYQ4YIP7.js +0 -16
- package/dist/chunk-U3NV7UY7.js +0 -323
- package/dist/chunk-UO2J2ZB2.cjs +0 -65
- package/dist/chunk-W7K5E64Q.js +0 -247
- package/dist/chunk-WDZY4PP4.cjs +0 -223
- package/dist/chunk-WHTECI7J.cjs +0 -89
- package/dist/chunk-WJUPOCKJ.js +0 -15
- package/dist/chunk-WWW6IGZ7.js +0 -115
- package/dist/chunk-XC2V34TS.cjs +0 -155
- package/dist/chunk-XOCC3MPK.cjs +0 -36
- package/dist/chunk-ZAX22GSI.cjs +0 -323
- package/dist/chunk-ZBLW42YE.js +0 -25
- package/dist/chunk-ZNAGDENG.cjs +0 -43
- package/dist/chunk-ZP4ZZCIE.js +0 -58
- package/dist/chunk-ZT7EGOCI.cjs +0 -9
- package/dist/chunk-ZTEMOYS2.cjs +0 -63
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import { Signer, ApiKeyInternalSignerConfig } from '
|
|
2
|
-
import '
|
|
1
|
+
import { x as Signer, F as ApiKeyInternalSignerConfig, A as ApiKeySignerLocator } from '../types-D-xASbms.cjs';
|
|
2
|
+
import '@solana/web3.js';
|
|
3
3
|
import '@crossmint/client-sdk-window';
|
|
4
4
|
import '@crossmint/client-signers';
|
|
5
|
+
import 'viem';
|
|
6
|
+
import 'abitype';
|
|
7
|
+
import '../api/gen/types.gen.cjs';
|
|
8
|
+
import 'ox';
|
|
5
9
|
import '@crossmint/common-sdk-base';
|
|
6
10
|
import '../chains/chains.cjs';
|
|
7
|
-
import '
|
|
11
|
+
import '../utils/device-signers/DeviceSignerKeyStorage.cjs';
|
|
8
12
|
|
|
9
13
|
declare class SolanaApiKeySigner implements Signer {
|
|
10
14
|
private readonly config;
|
|
11
15
|
type: "api-key";
|
|
12
16
|
constructor(config: ApiKeyInternalSignerConfig);
|
|
13
|
-
locator():
|
|
17
|
+
locator(): ApiKeySignerLocator;
|
|
14
18
|
signMessage(): Promise<never>;
|
|
15
19
|
signTransaction(): Promise<never>;
|
|
16
20
|
}
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import { Signer, ApiKeyInternalSignerConfig } from '
|
|
2
|
-
import '
|
|
1
|
+
import { x as Signer, F as ApiKeyInternalSignerConfig, A as ApiKeySignerLocator } from '../types-BDRS_MOb.js';
|
|
2
|
+
import '@solana/web3.js';
|
|
3
3
|
import '@crossmint/client-sdk-window';
|
|
4
4
|
import '@crossmint/client-signers';
|
|
5
|
+
import 'viem';
|
|
6
|
+
import 'abitype';
|
|
7
|
+
import '../api/gen/types.gen.js';
|
|
8
|
+
import 'ox';
|
|
5
9
|
import '@crossmint/common-sdk-base';
|
|
6
10
|
import '../chains/chains.js';
|
|
7
|
-
import '
|
|
11
|
+
import '../utils/device-signers/DeviceSignerKeyStorage.js';
|
|
8
12
|
|
|
9
13
|
declare class SolanaApiKeySigner implements Signer {
|
|
10
14
|
private readonly config;
|
|
11
15
|
type: "api-key";
|
|
12
16
|
constructor(config: ApiKeyInternalSignerConfig);
|
|
13
|
-
locator():
|
|
17
|
+
locator(): ApiKeySignerLocator;
|
|
14
18
|
signMessage(): Promise<never>;
|
|
15
19
|
signTransaction(): Promise<never>;
|
|
16
20
|
}
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkQ5KNPVYIcjs = require('../chunk-Q5KNPVYI.cjs');
|
|
4
|
-
require('../chunk-XC2V34TS.cjs');
|
|
5
|
-
require('../chunk-UO2J2ZB2.cjs');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
exports.SolanaExternalWalletSigner = _chunkQ5KNPVYIcjs.SolanaExternalWalletSigner;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBFIHTTMMcjs = require('../chunk-BFIHTTMM.cjs');require('../chunk-SCEPJO4Q.cjs');require('../chunk-O4FVTK7X.cjs');require('../chunk-2GKPWQBQ.cjs');exports.SolanaExternalWalletSigner = _chunkBFIHTTMMcjs.a;
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Signer, ExternalWalletInternalSignerConfig } from './types.cjs';
|
|
1
|
+
import { G as ExternalWalletInternalSignerConfig } from '../types-D-xASbms.cjs';
|
|
3
2
|
import { SolanaChain } from '../chains/chains.cjs';
|
|
4
|
-
import '
|
|
3
|
+
import { ExternalWalletSigner } from './external-wallet-signer.cjs';
|
|
4
|
+
import '@solana/web3.js';
|
|
5
5
|
import '@crossmint/client-sdk-window';
|
|
6
6
|
import '@crossmint/client-signers';
|
|
7
|
-
import '@crossmint/common-sdk-base';
|
|
8
7
|
import 'viem';
|
|
8
|
+
import 'abitype';
|
|
9
|
+
import '../api/gen/types.gen.cjs';
|
|
10
|
+
import 'ox';
|
|
11
|
+
import '@crossmint/common-sdk-base';
|
|
12
|
+
import '../utils/device-signers/DeviceSignerKeyStorage.cjs';
|
|
9
13
|
|
|
10
|
-
declare class SolanaExternalWalletSigner
|
|
11
|
-
private
|
|
12
|
-
type: "external-wallet";
|
|
13
|
-
private _address;
|
|
14
|
-
onSignTransaction?: (transaction: VersionedTransaction) => Promise<VersionedTransaction>;
|
|
14
|
+
declare class SolanaExternalWalletSigner extends ExternalWalletSigner<SolanaChain> {
|
|
15
|
+
private onSign?;
|
|
15
16
|
constructor(config: ExternalWalletInternalSignerConfig<SolanaChain>);
|
|
16
|
-
address(): string;
|
|
17
|
-
locator(): string;
|
|
18
17
|
signMessage(): Promise<never>;
|
|
19
18
|
signTransaction(transaction: string): Promise<{
|
|
20
19
|
signature: string;
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Signer, ExternalWalletInternalSignerConfig } from './types.js';
|
|
1
|
+
import { G as ExternalWalletInternalSignerConfig } from '../types-BDRS_MOb.js';
|
|
3
2
|
import { SolanaChain } from '../chains/chains.js';
|
|
4
|
-
import '
|
|
3
|
+
import { ExternalWalletSigner } from './external-wallet-signer.js';
|
|
4
|
+
import '@solana/web3.js';
|
|
5
5
|
import '@crossmint/client-sdk-window';
|
|
6
6
|
import '@crossmint/client-signers';
|
|
7
|
-
import '@crossmint/common-sdk-base';
|
|
8
7
|
import 'viem';
|
|
8
|
+
import 'abitype';
|
|
9
|
+
import '../api/gen/types.gen.js';
|
|
10
|
+
import 'ox';
|
|
11
|
+
import '@crossmint/common-sdk-base';
|
|
12
|
+
import '../utils/device-signers/DeviceSignerKeyStorage.js';
|
|
9
13
|
|
|
10
|
-
declare class SolanaExternalWalletSigner
|
|
11
|
-
private
|
|
12
|
-
type: "external-wallet";
|
|
13
|
-
private _address;
|
|
14
|
-
onSignTransaction?: (transaction: VersionedTransaction) => Promise<VersionedTransaction>;
|
|
14
|
+
declare class SolanaExternalWalletSigner extends ExternalWalletSigner<SolanaChain> {
|
|
15
|
+
private onSign?;
|
|
15
16
|
constructor(config: ExternalWalletInternalSignerConfig<SolanaChain>);
|
|
16
|
-
address(): string;
|
|
17
|
-
locator(): string;
|
|
18
17
|
signMessage(): Promise<never>;
|
|
19
18
|
signTransaction(transaction: string): Promise<{
|
|
20
19
|
signature: string;
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
SolanaExternalWalletSigner
|
|
3
|
-
} from "../chunk-PIFD6KNH.js";
|
|
4
|
-
import "../chunk-SGINWAB6.js";
|
|
5
|
-
import "../chunk-ASE2FXWP.js";
|
|
6
|
-
export {
|
|
7
|
-
SolanaExternalWalletSigner
|
|
8
|
-
};
|
|
1
|
+
import{a}from"../chunk-WYMBO52A.js";import"../chunk-2YLRFJ66.js";import"../chunk-PSXRNSOE.js";import"../chunk-J3R36SGJ.js";export{a as SolanaExternalWalletSigner};
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkIOMKHF6Rcjs = require('../chunk-IOMKHF6R.cjs');
|
|
4
|
-
require('../chunk-UO2J2ZB2.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.StellarExternalWalletSigner = _chunkIOMKHF6Rcjs.StellarExternalWalletSigner;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSPTXAOFRcjs = require('../chunk-SPTXAOFR.cjs');require('../chunk-SCEPJO4Q.cjs');require('../chunk-2GKPWQBQ.cjs');exports.StellarExternalWalletSigner = _chunkSPTXAOFRcjs.a;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { G as ExternalWalletInternalSignerConfig } from '../types-D-xASbms.cjs';
|
|
2
2
|
import { StellarChain } from '../chains/chains.cjs';
|
|
3
|
-
import '
|
|
3
|
+
import { ExternalWalletSigner } from './external-wallet-signer.cjs';
|
|
4
|
+
import '@solana/web3.js';
|
|
4
5
|
import '@crossmint/client-sdk-window';
|
|
5
6
|
import '@crossmint/client-signers';
|
|
6
|
-
import '@crossmint/common-sdk-base';
|
|
7
7
|
import 'viem';
|
|
8
|
+
import 'abitype';
|
|
9
|
+
import '../api/gen/types.gen.cjs';
|
|
10
|
+
import 'ox';
|
|
11
|
+
import '@crossmint/common-sdk-base';
|
|
12
|
+
import '../utils/device-signers/DeviceSignerKeyStorage.cjs';
|
|
8
13
|
|
|
9
|
-
declare class StellarExternalWalletSigner
|
|
10
|
-
private
|
|
11
|
-
type: "external-wallet";
|
|
12
|
-
private _address;
|
|
13
|
-
onSignStellarTransaction?: (payload: string) => Promise<string>;
|
|
14
|
+
declare class StellarExternalWalletSigner extends ExternalWalletSigner<StellarChain> {
|
|
15
|
+
private onSign?;
|
|
14
16
|
constructor(config: ExternalWalletInternalSignerConfig<StellarChain>);
|
|
15
|
-
address(): string;
|
|
16
|
-
locator(): string;
|
|
17
17
|
signMessage(): Promise<never>;
|
|
18
18
|
signTransaction(payload: string): Promise<{
|
|
19
19
|
signature: string;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { G as ExternalWalletInternalSignerConfig } from '../types-BDRS_MOb.js';
|
|
2
2
|
import { StellarChain } from '../chains/chains.js';
|
|
3
|
-
import '
|
|
3
|
+
import { ExternalWalletSigner } from './external-wallet-signer.js';
|
|
4
|
+
import '@solana/web3.js';
|
|
4
5
|
import '@crossmint/client-sdk-window';
|
|
5
6
|
import '@crossmint/client-signers';
|
|
6
|
-
import '@crossmint/common-sdk-base';
|
|
7
7
|
import 'viem';
|
|
8
|
+
import 'abitype';
|
|
9
|
+
import '../api/gen/types.gen.js';
|
|
10
|
+
import 'ox';
|
|
11
|
+
import '@crossmint/common-sdk-base';
|
|
12
|
+
import '../utils/device-signers/DeviceSignerKeyStorage.js';
|
|
8
13
|
|
|
9
|
-
declare class StellarExternalWalletSigner
|
|
10
|
-
private
|
|
11
|
-
type: "external-wallet";
|
|
12
|
-
private _address;
|
|
13
|
-
onSignStellarTransaction?: (payload: string) => Promise<string>;
|
|
14
|
+
declare class StellarExternalWalletSigner extends ExternalWalletSigner<StellarChain> {
|
|
15
|
+
private onSign?;
|
|
14
16
|
constructor(config: ExternalWalletInternalSignerConfig<StellarChain>);
|
|
15
|
-
address(): string;
|
|
16
|
-
locator(): string;
|
|
17
17
|
signMessage(): Promise<never>;
|
|
18
18
|
signTransaction(payload: string): Promise<{
|
|
19
19
|
signature: string;
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
StellarExternalWalletSigner
|
|
3
|
-
} from "../chunk-PK7J3Y3L.js";
|
|
4
|
-
import "../chunk-ASE2FXWP.js";
|
|
5
|
-
export {
|
|
6
|
-
StellarExternalWalletSigner
|
|
7
|
-
};
|
|
1
|
+
import{a}from"../chunk-EE4ITUGS.js";import"../chunk-2YLRFJ66.js";import"../chunk-J3R36SGJ.js";export{a as StellarExternalWalletSigner};
|
package/dist/signers/types.cjs
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _chunkRHR6P2KPcjs = require('../chunk-RHR6P2KP.cjs');
|
|
5
|
-
require('../chunk-UO2J2ZB2.cjs');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.AuthRejectedError = _chunkRHR6P2KPcjs.AuthRejectedError; exports.isExportableSigner = _chunkRHR6P2KPcjs.isExportableSigner;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5QIW67NUcjs = require('../chunk-5QIW67NU.cjs');require('../chunk-2GKPWQBQ.cjs');exports.AuthRejectedError = _chunk5QIW67NUcjs.a; exports.isExportableSigner = _chunk5QIW67NUcjs.b;
|
package/dist/signers/types.d.cts
CHANGED
|
@@ -1,91 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import 'ox';
|
|
2
|
+
import '@crossmint/client-sdk-window';
|
|
3
|
+
import '@crossmint/client-signers';
|
|
4
|
+
export { EvmExternalWalletSignerConfig, ExternalWalletSignerConfig, SolanaExternalWalletSignerConfig, StellarExternalWalletSignerConfig } from '@crossmint/common-sdk-base';
|
|
5
|
+
import '../chains/chains.cjs';
|
|
6
|
+
export { F as ApiKeyInternalSignerConfig, aB as ApiKeySignerConfig, A as ApiKeySignerLocator, az as AuthRejectedError, ab as BaseSignResult, aC as BaseSignerConfig, y as DeviceInternalSignerConfig, z as DeviceSignResult, aE as DeviceSignerConfig, t as DeviceSignerLocator, a9 as EmailInternalSignerConfig, k as EmailSignerConfig, q as EmailSignerLocator, w as ExportSignerTEEConnection, v as ExportableSigner, G as ExternalWalletInternalSignerConfig, l as ExternalWalletRegistrationConfig, m as ExternalWalletSignerConfigForChain, u as ExternalWalletSignerLocator, I as InternalSignerConfig, aA as NonCustodialSignerType, H as PasskeyInternalSignerConfig, J as PasskeySignResult, aD as PasskeySignerConfig, s as PasskeySignerLocator, aa as PhoneInternalSignerConfig, P as PhoneSignerConfig, r as PhoneSignerLocator, ac as ServerInternalSignerConfig, n as ServerSignerConfig, aF as ServerSignerLocator, x as Signer, o as SignerConfigForChain, p as SignerLocator, j as isExportableSigner } from '../types-D-xASbms.cjs';
|
|
7
7
|
import 'viem';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
type EmailSignerConfig = {
|
|
13
|
-
type: "email";
|
|
14
|
-
email?: string;
|
|
15
|
-
onAuthRequired?: (needsAuth: boolean, sendEmailWithOtp: () => Promise<void>, verifyOtp: (otp: string) => Promise<void>, reject: () => void) => Promise<void>;
|
|
16
|
-
};
|
|
17
|
-
type PhoneSignerConfig = {
|
|
18
|
-
type: "phone";
|
|
19
|
-
phone?: string;
|
|
20
|
-
onAuthRequired?: (needsAuth: boolean, sendEmailWithOtp: () => Promise<void>, verifyOtp: (otp: string) => Promise<void>, reject: () => void) => Promise<void>;
|
|
21
|
-
};
|
|
22
|
-
type NonCustodialSignerType = PhoneSignerConfig["type"] | EmailSignerConfig["type"];
|
|
23
|
-
type ExternalWalletSignerConfigForChain<C extends Chain> = C extends SolanaChain ? SolanaExternalWalletSignerConfig : C extends StellarChain ? StellarExternalWalletSignerConfig : EvmExternalWalletSignerConfig;
|
|
24
|
-
type ApiKeySignerConfig = {
|
|
25
|
-
type: "api-key";
|
|
26
|
-
};
|
|
27
|
-
type BaseSignerConfig<C extends Chain> = ExternalWalletSignerConfigForChain<C> | ApiKeySignerConfig;
|
|
28
|
-
type PasskeySignerConfig = {
|
|
29
|
-
type: "passkey";
|
|
30
|
-
name?: string;
|
|
31
|
-
onCreatePasskey?: (name: string) => Promise<{
|
|
32
|
-
id: string;
|
|
33
|
-
publicKey: {
|
|
34
|
-
x: string;
|
|
35
|
-
y: string;
|
|
36
|
-
};
|
|
37
|
-
}>;
|
|
38
|
-
onSignWithPasskey?: (message: string) => Promise<PasskeySignResult>;
|
|
39
|
-
};
|
|
40
|
-
type BaseInternalSignerConfig = {
|
|
41
|
-
locator: string;
|
|
42
|
-
address: string;
|
|
43
|
-
crossmint: Crossmint;
|
|
44
|
-
clientTEEConnection?: HandshakeParent<typeof signerOutboundEvents, typeof signerInboundEvents>;
|
|
45
|
-
};
|
|
46
|
-
type EmailInternalSignerConfig = EmailSignerConfig & BaseInternalSignerConfig;
|
|
47
|
-
type PhoneInternalSignerConfig = PhoneSignerConfig & BaseInternalSignerConfig;
|
|
48
|
-
type PasskeyInternalSignerConfig = PasskeySignerConfig & {
|
|
49
|
-
locator: string;
|
|
50
|
-
id: string;
|
|
51
|
-
};
|
|
52
|
-
type ApiKeyInternalSignerConfig = ApiKeySignerConfig & {
|
|
53
|
-
locator: string;
|
|
54
|
-
address: string;
|
|
55
|
-
};
|
|
56
|
-
type ExternalWalletInternalSignerConfig<C extends Chain> = ExternalWalletSignerConfigForChain<C> & {
|
|
57
|
-
locator: string;
|
|
58
|
-
};
|
|
59
|
-
type InternalSignerConfig<C extends Chain> = EmailInternalSignerConfig | PhoneInternalSignerConfig | PasskeyInternalSignerConfig | ApiKeyInternalSignerConfig | ExternalWalletInternalSignerConfig<C>;
|
|
60
|
-
type BaseSignResult = {
|
|
61
|
-
signature: string;
|
|
62
|
-
};
|
|
63
|
-
type PasskeySignResult = {
|
|
64
|
-
signature: {
|
|
65
|
-
r: string;
|
|
66
|
-
s: string;
|
|
67
|
-
};
|
|
68
|
-
metadata: WebAuthnP256.SignMetadata;
|
|
69
|
-
};
|
|
70
|
-
type SignerConfigForChain<C extends Chain> = C extends SolanaChain ? EmailSignerConfig | PhoneSignerConfig | BaseSignerConfig<C> : C extends StellarChain ? EmailSignerConfig | PhoneSignerConfig | BaseSignerConfig<C> : EmailSignerConfig | PhoneSignerConfig | PasskeySignerConfig | BaseSignerConfig<C>;
|
|
71
|
-
type SignResultMap = {
|
|
72
|
-
email: BaseSignResult;
|
|
73
|
-
phone: BaseSignResult;
|
|
74
|
-
"api-key": BaseSignResult;
|
|
75
|
-
"external-wallet": BaseSignResult;
|
|
76
|
-
passkey: PasskeySignResult;
|
|
77
|
-
};
|
|
78
|
-
interface Signer<T extends keyof SignResultMap = keyof SignResultMap> {
|
|
79
|
-
type: T;
|
|
80
|
-
locator(): string;
|
|
81
|
-
address?(): string;
|
|
82
|
-
signMessage(message: string): Promise<SignResultMap[T]>;
|
|
83
|
-
signTransaction(transaction: string): Promise<SignResultMap[T]>;
|
|
84
|
-
}
|
|
85
|
-
interface ExportableSigner extends Signer {
|
|
86
|
-
_exportPrivateKey: (exportTEEConnection: ExportSignerTEEConnection) => Promise<void>;
|
|
87
|
-
}
|
|
88
|
-
declare function isExportableSigner(signer: Signer): signer is ExportableSigner;
|
|
89
|
-
type ExportSignerTEEConnection = HandshakeParent<typeof exportSignerOutboundEvents, typeof exportSignerInboundEvents>;
|
|
90
|
-
|
|
91
|
-
export { type ApiKeyInternalSignerConfig, type ApiKeySignerConfig, AuthRejectedError, type BaseSignResult, type BaseSignerConfig, type EmailInternalSignerConfig, type EmailSignerConfig, type ExportSignerTEEConnection, type ExportableSigner, type ExternalWalletInternalSignerConfig, type ExternalWalletSignerConfigForChain, type InternalSignerConfig, type NonCustodialSignerType, type PasskeyInternalSignerConfig, type PasskeySignResult, type PasskeySignerConfig, type PhoneInternalSignerConfig, type PhoneSignerConfig, type Signer, type SignerConfigForChain, isExportableSigner };
|
|
8
|
+
import '@solana/web3.js';
|
|
9
|
+
import 'abitype';
|
|
10
|
+
import '../api/gen/types.gen.cjs';
|
|
11
|
+
import '../utils/device-signers/DeviceSignerKeyStorage.cjs';
|
package/dist/signers/types.d.ts
CHANGED
|
@@ -1,91 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import 'ox';
|
|
2
|
+
import '@crossmint/client-sdk-window';
|
|
3
|
+
import '@crossmint/client-signers';
|
|
4
|
+
export { EvmExternalWalletSignerConfig, ExternalWalletSignerConfig, SolanaExternalWalletSignerConfig, StellarExternalWalletSignerConfig } from '@crossmint/common-sdk-base';
|
|
5
|
+
import '../chains/chains.js';
|
|
6
|
+
export { F as ApiKeyInternalSignerConfig, aB as ApiKeySignerConfig, A as ApiKeySignerLocator, az as AuthRejectedError, ab as BaseSignResult, aC as BaseSignerConfig, y as DeviceInternalSignerConfig, z as DeviceSignResult, aE as DeviceSignerConfig, t as DeviceSignerLocator, a9 as EmailInternalSignerConfig, k as EmailSignerConfig, q as EmailSignerLocator, w as ExportSignerTEEConnection, v as ExportableSigner, G as ExternalWalletInternalSignerConfig, l as ExternalWalletRegistrationConfig, m as ExternalWalletSignerConfigForChain, u as ExternalWalletSignerLocator, I as InternalSignerConfig, aA as NonCustodialSignerType, H as PasskeyInternalSignerConfig, J as PasskeySignResult, aD as PasskeySignerConfig, s as PasskeySignerLocator, aa as PhoneInternalSignerConfig, P as PhoneSignerConfig, r as PhoneSignerLocator, ac as ServerInternalSignerConfig, n as ServerSignerConfig, aF as ServerSignerLocator, x as Signer, o as SignerConfigForChain, p as SignerLocator, j as isExportableSigner } from '../types-BDRS_MOb.js';
|
|
7
7
|
import 'viem';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
type EmailSignerConfig = {
|
|
13
|
-
type: "email";
|
|
14
|
-
email?: string;
|
|
15
|
-
onAuthRequired?: (needsAuth: boolean, sendEmailWithOtp: () => Promise<void>, verifyOtp: (otp: string) => Promise<void>, reject: () => void) => Promise<void>;
|
|
16
|
-
};
|
|
17
|
-
type PhoneSignerConfig = {
|
|
18
|
-
type: "phone";
|
|
19
|
-
phone?: string;
|
|
20
|
-
onAuthRequired?: (needsAuth: boolean, sendEmailWithOtp: () => Promise<void>, verifyOtp: (otp: string) => Promise<void>, reject: () => void) => Promise<void>;
|
|
21
|
-
};
|
|
22
|
-
type NonCustodialSignerType = PhoneSignerConfig["type"] | EmailSignerConfig["type"];
|
|
23
|
-
type ExternalWalletSignerConfigForChain<C extends Chain> = C extends SolanaChain ? SolanaExternalWalletSignerConfig : C extends StellarChain ? StellarExternalWalletSignerConfig : EvmExternalWalletSignerConfig;
|
|
24
|
-
type ApiKeySignerConfig = {
|
|
25
|
-
type: "api-key";
|
|
26
|
-
};
|
|
27
|
-
type BaseSignerConfig<C extends Chain> = ExternalWalletSignerConfigForChain<C> | ApiKeySignerConfig;
|
|
28
|
-
type PasskeySignerConfig = {
|
|
29
|
-
type: "passkey";
|
|
30
|
-
name?: string;
|
|
31
|
-
onCreatePasskey?: (name: string) => Promise<{
|
|
32
|
-
id: string;
|
|
33
|
-
publicKey: {
|
|
34
|
-
x: string;
|
|
35
|
-
y: string;
|
|
36
|
-
};
|
|
37
|
-
}>;
|
|
38
|
-
onSignWithPasskey?: (message: string) => Promise<PasskeySignResult>;
|
|
39
|
-
};
|
|
40
|
-
type BaseInternalSignerConfig = {
|
|
41
|
-
locator: string;
|
|
42
|
-
address: string;
|
|
43
|
-
crossmint: Crossmint;
|
|
44
|
-
clientTEEConnection?: HandshakeParent<typeof signerOutboundEvents, typeof signerInboundEvents>;
|
|
45
|
-
};
|
|
46
|
-
type EmailInternalSignerConfig = EmailSignerConfig & BaseInternalSignerConfig;
|
|
47
|
-
type PhoneInternalSignerConfig = PhoneSignerConfig & BaseInternalSignerConfig;
|
|
48
|
-
type PasskeyInternalSignerConfig = PasskeySignerConfig & {
|
|
49
|
-
locator: string;
|
|
50
|
-
id: string;
|
|
51
|
-
};
|
|
52
|
-
type ApiKeyInternalSignerConfig = ApiKeySignerConfig & {
|
|
53
|
-
locator: string;
|
|
54
|
-
address: string;
|
|
55
|
-
};
|
|
56
|
-
type ExternalWalletInternalSignerConfig<C extends Chain> = ExternalWalletSignerConfigForChain<C> & {
|
|
57
|
-
locator: string;
|
|
58
|
-
};
|
|
59
|
-
type InternalSignerConfig<C extends Chain> = EmailInternalSignerConfig | PhoneInternalSignerConfig | PasskeyInternalSignerConfig | ApiKeyInternalSignerConfig | ExternalWalletInternalSignerConfig<C>;
|
|
60
|
-
type BaseSignResult = {
|
|
61
|
-
signature: string;
|
|
62
|
-
};
|
|
63
|
-
type PasskeySignResult = {
|
|
64
|
-
signature: {
|
|
65
|
-
r: string;
|
|
66
|
-
s: string;
|
|
67
|
-
};
|
|
68
|
-
metadata: WebAuthnP256.SignMetadata;
|
|
69
|
-
};
|
|
70
|
-
type SignerConfigForChain<C extends Chain> = C extends SolanaChain ? EmailSignerConfig | PhoneSignerConfig | BaseSignerConfig<C> : C extends StellarChain ? EmailSignerConfig | PhoneSignerConfig | BaseSignerConfig<C> : EmailSignerConfig | PhoneSignerConfig | PasskeySignerConfig | BaseSignerConfig<C>;
|
|
71
|
-
type SignResultMap = {
|
|
72
|
-
email: BaseSignResult;
|
|
73
|
-
phone: BaseSignResult;
|
|
74
|
-
"api-key": BaseSignResult;
|
|
75
|
-
"external-wallet": BaseSignResult;
|
|
76
|
-
passkey: PasskeySignResult;
|
|
77
|
-
};
|
|
78
|
-
interface Signer<T extends keyof SignResultMap = keyof SignResultMap> {
|
|
79
|
-
type: T;
|
|
80
|
-
locator(): string;
|
|
81
|
-
address?(): string;
|
|
82
|
-
signMessage(message: string): Promise<SignResultMap[T]>;
|
|
83
|
-
signTransaction(transaction: string): Promise<SignResultMap[T]>;
|
|
84
|
-
}
|
|
85
|
-
interface ExportableSigner extends Signer {
|
|
86
|
-
_exportPrivateKey: (exportTEEConnection: ExportSignerTEEConnection) => Promise<void>;
|
|
87
|
-
}
|
|
88
|
-
declare function isExportableSigner(signer: Signer): signer is ExportableSigner;
|
|
89
|
-
type ExportSignerTEEConnection = HandshakeParent<typeof exportSignerOutboundEvents, typeof exportSignerInboundEvents>;
|
|
90
|
-
|
|
91
|
-
export { type ApiKeyInternalSignerConfig, type ApiKeySignerConfig, AuthRejectedError, type BaseSignResult, type BaseSignerConfig, type EmailInternalSignerConfig, type EmailSignerConfig, type ExportSignerTEEConnection, type ExportableSigner, type ExternalWalletInternalSignerConfig, type ExternalWalletSignerConfigForChain, type InternalSignerConfig, type NonCustodialSignerType, type PasskeyInternalSignerConfig, type PasskeySignResult, type PasskeySignerConfig, type PhoneInternalSignerConfig, type PhoneSignerConfig, type Signer, type SignerConfigForChain, isExportableSigner };
|
|
8
|
+
import '@solana/web3.js';
|
|
9
|
+
import 'abitype';
|
|
10
|
+
import '../api/gen/types.gen.js';
|
|
11
|
+
import '../utils/device-signers/DeviceSignerKeyStorage.js';
|
package/dist/signers/types.js
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
AuthRejectedError,
|
|
3
|
-
isExportableSigner
|
|
4
|
-
} from "../chunk-WJUPOCKJ.js";
|
|
5
|
-
import "../chunk-ASE2FXWP.js";
|
|
6
|
-
export {
|
|
7
|
-
AuthRejectedError,
|
|
8
|
-
isExportableSigner
|
|
9
|
-
};
|
|
1
|
+
import{a,b}from"../chunk-WCGUGIGJ.js";import"../chunk-J3R36SGJ.js";export{a as AuthRejectedError,b as isExportableSigner};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
File without changes
|