@crossmint/wallets-sdk 1.16.0 → 1.18.0
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 +17 -15
- package/dist/api/__tests__/constants.d.cts +1 -1
- package/dist/api/__tests__/constants.d.ts +1 -1
- package/dist/api/__tests__/test-utils.cjs +1 -1
- package/dist/api/__tests__/test-utils.d.cts +1 -1
- package/dist/api/__tests__/test-utils.d.ts +1 -1
- package/dist/api/__tests__/test-utils.js +1 -1
- package/dist/api/client.cjs +1 -1
- package/dist/api/client.d.cts +3 -1
- package/dist/api/client.d.ts +3 -1
- package/dist/api/client.js +1 -1
- package/dist/api/gen/index.cjs +1 -1
- package/dist/api/gen/index.d.cts +2 -2
- package/dist/api/gen/index.d.ts +2 -2
- package/dist/api/gen/index.js +1 -1
- package/dist/api/gen/sdk.gen.cjs +1 -1
- package/dist/api/gen/sdk.gen.d.cts +22 -2
- package/dist/api/gen/sdk.gen.d.ts +22 -2
- package/dist/api/gen/sdk.gen.js +1 -1
- package/dist/api/gen/types.gen.d.cts +4201 -710
- package/dist/api/gen/types.gen.d.ts +4201 -710
- package/dist/api/index.cjs +1 -1
- package/dist/api/index.d.cts +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +1 -1
- package/dist/api/types.d.cts +1 -1
- package/dist/api/types.d.ts +1 -1
- package/dist/chains/adapters/evm.cjs +1 -1
- package/dist/chains/adapters/evm.d.cts +1 -1
- package/dist/chains/adapters/evm.d.ts +1 -1
- package/dist/chains/adapters/evm.js +1 -1
- package/dist/chains/adapters/solana.cjs +1 -1
- package/dist/chains/adapters/solana.d.cts +1 -1
- package/dist/chains/adapters/solana.d.ts +1 -1
- package/dist/chains/adapters/solana.js +1 -1
- package/dist/chains/adapters/stellar.cjs +1 -1
- package/dist/chains/adapters/stellar.d.cts +1 -1
- package/dist/chains/adapters/stellar.d.ts +1 -1
- package/dist/chains/adapters/stellar.js +1 -1
- package/dist/chains/chain-adapter.cjs +1 -1
- package/dist/chains/chain-adapter.d.cts +4 -2
- package/dist/chains/chain-adapter.d.ts +4 -2
- package/dist/chains/chain-adapter.js +1 -1
- package/dist/chains/chains.cjs +1 -1
- package/dist/chains/chains.d.cts +2 -2
- package/dist/chains/chains.d.ts +2 -2
- package/dist/chains/chains.js +1 -1
- package/dist/chunk-5V2RGAOS.js +1 -0
- package/dist/chunk-6PNYLGI4.js +1 -0
- package/dist/{chunk-UX2FEVDY.cjs → chunk-7FIAYQ4O.cjs} +1 -1
- package/dist/chunk-7PRP6CYJ.cjs +1 -0
- package/dist/chunk-7SDHPRH6.js +1 -0
- package/dist/{chunk-XFCHACH7.cjs → chunk-AIAYUJJG.cjs} +1 -1
- package/dist/chunk-AXFHMPWT.cjs +1 -0
- package/dist/chunk-BHLJZVGK.js +1 -0
- package/dist/{chunk-HJH2S644.cjs → chunk-BIL7GVBL.cjs} +1 -1
- package/dist/chunk-BVFMFBOG.js +1 -0
- package/dist/chunk-BZYYVTXK.js +1 -0
- package/dist/{chunk-Q6UT242Q.cjs → chunk-DVLQXFLW.cjs} +1 -1
- package/dist/{chunk-IU7J7IPE.cjs → chunk-F7DCMK3I.cjs} +1 -1
- package/dist/{chunk-5IC6BHP5.js → chunk-FN4NQTKS.js} +1 -1
- package/dist/chunk-FYWSZVID.cjs +1 -0
- package/dist/{chunk-BHSOWQOR.js → chunk-GC55YCPK.js} +1 -1
- package/dist/chunk-GPE7YQZ2.js +1 -0
- package/dist/chunk-HCV4M7X2.cjs +1 -0
- package/dist/chunk-HUGHRNQ3.js +1 -0
- package/dist/{chunk-V3LZ3MNU.js → chunk-IGO2ME4H.js} +1 -1
- package/dist/chunk-IN5ZETZE.cjs +1 -0
- package/dist/chunk-INPOGMPS.js +1 -0
- package/dist/{chunk-24CGMAY3.js → chunk-IQARABFX.js} +1 -1
- package/dist/chunk-JAXFDUNN.js +1 -0
- package/dist/{chunk-Z4ZDZYZ3.js → chunk-JQIKTIVR.js} +1 -1
- package/dist/chunk-JY4KRKZ6.js +1 -0
- package/dist/chunk-KSPUJL3Z.js +1 -0
- package/dist/{chunk-BJC5DQQ3.cjs → chunk-LVSOX532.cjs} +1 -1
- package/dist/chunk-M76VM347.cjs +1 -0
- package/dist/chunk-MUOGCO7D.cjs +1 -0
- package/dist/{chunk-MJZZHBC2.cjs → chunk-NDYXTEUL.cjs} +1 -1
- package/dist/chunk-O673G7YH.cjs +1 -0
- package/dist/chunk-OIBCJAF2.cjs +1 -0
- package/dist/{chunk-SDXHKREB.cjs → chunk-OMTRYUKH.cjs} +1 -1
- package/dist/chunk-OS5IMZ5L.cjs +1 -0
- package/dist/chunk-P3P5Q5XX.js +1 -0
- package/dist/{chunk-OQFOUCTW.js → chunk-PCRZWMYM.js} +1 -1
- package/dist/{chunk-YFNCXOVW.js → chunk-PJAMNLC2.js} +1 -1
- package/dist/{chunk-66IZJXGV.js → chunk-PU3WUUJ6.js} +1 -1
- package/dist/{chunk-2G4Y25AJ.cjs → chunk-QQDUYSLH.cjs} +1 -1
- package/dist/chunk-RE6GCFXZ.js +1 -0
- package/dist/chunk-RFBVYUAZ.cjs +1 -0
- package/dist/chunk-SH6HXAB2.js +1 -0
- package/dist/chunk-SIBFVGGQ.cjs +1 -0
- package/dist/chunk-STB2VIIK.cjs +1 -0
- package/dist/{chunk-62EHAJRH.js → chunk-T4RCLJ5G.js} +1 -1
- package/dist/{chunk-SP5DQZ6D.cjs → chunk-T5EOJ3ZF.cjs} +1 -1
- package/dist/{chunk-4R2UUYLC.cjs → chunk-TFAJDUF3.cjs} +1 -1
- package/dist/chunk-V37HIVBA.cjs +1 -0
- package/dist/{chunk-KVMPBMNG.cjs → chunk-VIOAYLVZ.cjs} +1 -1
- package/dist/{chunk-NQ3PROUV.js → chunk-VNFATNQJ.js} +1 -1
- package/dist/{chunk-AZAIXRGS.js → chunk-VOFCBB2P.js} +1 -1
- package/dist/chunk-VPUAUWI4.js +1 -0
- package/dist/chunk-WX6KBOP5.js +1 -0
- package/dist/{chunk-U5DLRN5U.cjs → chunk-WY5KEIIJ.cjs} +1 -1
- package/dist/chunk-X4GV76CR.js +1 -0
- package/dist/chunk-X56YW5CL.js +1 -0
- package/dist/{chunk-VHSQUXJK.js → chunk-X7V2C53V.js} +1 -1
- package/dist/{chunk-T7DD437D.cjs → chunk-XFUCYR24.cjs} +2 -2
- package/dist/chunk-XUWIECBY.cjs +1 -0
- package/dist/chunk-YQ4GAIPZ.js +1 -0
- package/dist/{chunk-5SREMYFJ.cjs → chunk-ZAIKHHRP.cjs} +1 -1
- package/dist/{chunk-62XSK3ZX.cjs → chunk-ZDKIEL5N.cjs} +1 -1
- package/dist/chunk-ZHI5V3DM.cjs +1 -0
- package/dist/{chunk-53VKI7FJ.cjs → chunk-ZRIMMPXR.cjs} +1 -1
- package/dist/{chunk-BL7A7ROX.js → chunk-ZV2UOOBX.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/logger/index.cjs +1 -1
- package/dist/logger/index.js +1 -1
- package/dist/logger/init.cjs +1 -1
- package/dist/logger/init.js +1 -1
- package/dist/sdk.cjs +1 -1
- package/dist/sdk.d.cts +3 -3
- package/dist/sdk.d.ts +3 -3
- package/dist/sdk.js +1 -1
- package/dist/signers/descriptors/api-key.d.cts +1 -1
- package/dist/signers/descriptors/api-key.d.ts +1 -1
- package/dist/signers/descriptors/device.d.cts +1 -1
- package/dist/signers/descriptors/device.d.ts +1 -1
- package/dist/signers/descriptors/email.d.cts +1 -1
- package/dist/signers/descriptors/email.d.ts +1 -1
- package/dist/signers/descriptors/external-wallet.d.cts +1 -1
- package/dist/signers/descriptors/external-wallet.d.ts +1 -1
- package/dist/signers/descriptors/index.cjs +1 -1
- package/dist/signers/descriptors/index.d.cts +1 -1
- package/dist/signers/descriptors/index.d.ts +1 -1
- package/dist/signers/descriptors/index.js +1 -1
- package/dist/signers/descriptors/passkey.d.cts +1 -1
- package/dist/signers/descriptors/passkey.d.ts +1 -1
- package/dist/signers/descriptors/phone.d.cts +1 -1
- package/dist/signers/descriptors/phone.d.ts +1 -1
- package/dist/signers/descriptors/server.cjs +1 -1
- package/dist/signers/descriptors/server.d.cts +1 -1
- package/dist/signers/descriptors/server.d.ts +1 -1
- package/dist/signers/descriptors/server.js +1 -1
- package/dist/signers/descriptors/types.d.cts +1 -1
- package/dist/signers/descriptors/types.d.ts +1 -1
- package/dist/signers/device.d.cts +1 -1
- package/dist/signers/device.d.ts +1 -1
- package/dist/signers/evm-api-key.d.cts +1 -1
- package/dist/signers/evm-api-key.d.ts +1 -1
- package/dist/signers/evm-external-wallet.d.cts +1 -1
- package/dist/signers/evm-external-wallet.d.ts +1 -1
- package/dist/signers/external-wallet-signer.d.cts +1 -1
- package/dist/signers/external-wallet-signer.d.ts +1 -1
- package/dist/signers/index.cjs +1 -1
- package/dist/signers/index.d.cts +1 -1
- package/dist/signers/index.d.ts +1 -1
- package/dist/signers/index.js +1 -1
- package/dist/signers/non-custodial/index.cjs +1 -1
- package/dist/signers/non-custodial/index.d.cts +2 -2
- package/dist/signers/non-custodial/index.d.ts +2 -2
- package/dist/signers/non-custodial/index.js +1 -1
- package/dist/signers/non-custodial/ncs-evm-signer.cjs +1 -1
- package/dist/signers/non-custodial/ncs-evm-signer.d.cts +1 -1
- package/dist/signers/non-custodial/ncs-evm-signer.d.ts +1 -1
- package/dist/signers/non-custodial/ncs-evm-signer.js +1 -1
- package/dist/signers/non-custodial/ncs-signer.cjs +1 -1
- package/dist/signers/non-custodial/ncs-signer.d.cts +6 -3
- package/dist/signers/non-custodial/ncs-signer.d.ts +6 -3
- package/dist/signers/non-custodial/ncs-signer.js +1 -1
- package/dist/signers/non-custodial/ncs-solana-signer.cjs +1 -1
- package/dist/signers/non-custodial/ncs-solana-signer.d.cts +2 -2
- package/dist/signers/non-custodial/ncs-solana-signer.d.ts +2 -2
- package/dist/signers/non-custodial/ncs-solana-signer.js +1 -1
- package/dist/signers/non-custodial/ncs-stellar-signer.cjs +1 -1
- package/dist/signers/non-custodial/ncs-stellar-signer.d.cts +1 -1
- package/dist/signers/non-custodial/ncs-stellar-signer.d.ts +1 -1
- package/dist/signers/non-custodial/ncs-stellar-signer.js +1 -1
- package/dist/signers/passkey.d.cts +1 -1
- package/dist/signers/passkey.d.ts +1 -1
- package/dist/signers/server/assemble-server-signer.cjs +1 -1
- package/dist/signers/server/assemble-server-signer.d.cts +1 -1
- package/dist/signers/server/assemble-server-signer.d.ts +1 -1
- package/dist/signers/server/assemble-server-signer.js +1 -1
- package/dist/signers/server/evm-server-signer.d.cts +1 -1
- package/dist/signers/server/evm-server-signer.d.ts +1 -1
- package/dist/signers/server/helpers/derive-server-signer.d.cts +1 -1
- package/dist/signers/server/helpers/derive-server-signer.d.ts +1 -1
- package/dist/signers/server/helpers/index.d.cts +1 -1
- package/dist/signers/server/helpers/index.d.ts +1 -1
- package/dist/signers/server/index.cjs +1 -1
- package/dist/signers/server/index.d.cts +1 -1
- package/dist/signers/server/index.d.ts +1 -1
- package/dist/signers/server/index.js +1 -1
- package/dist/signers/server/resolver.cjs +1 -1
- package/dist/signers/server/resolver.d.cts +1 -1
- package/dist/signers/server/resolver.d.ts +1 -1
- package/dist/signers/server/resolver.js +1 -1
- package/dist/signers/server/solana-server-signer.cjs +1 -1
- package/dist/signers/server/solana-server-signer.d.cts +2 -2
- package/dist/signers/server/solana-server-signer.d.ts +2 -2
- package/dist/signers/server/solana-server-signer.js +1 -1
- package/dist/signers/server/stellar-server-signer.d.cts +1 -1
- package/dist/signers/server/stellar-server-signer.d.ts +1 -1
- package/dist/signers/solana-api-key.d.cts +1 -1
- package/dist/signers/solana-api-key.d.ts +1 -1
- package/dist/signers/solana-external-wallet.cjs +1 -1
- package/dist/signers/solana-external-wallet.d.cts +5 -2
- package/dist/signers/solana-external-wallet.d.ts +5 -2
- package/dist/signers/solana-external-wallet.js +1 -1
- package/dist/signers/solana-version-1.fixture.cjs +1 -0
- package/dist/signers/solana-version-1.fixture.d.cts +4 -0
- package/dist/signers/solana-version-1.fixture.d.ts +4 -0
- package/dist/signers/solana-version-1.fixture.js +1 -0
- package/dist/signers/stellar-external-wallet.d.cts +1 -1
- package/dist/signers/stellar-external-wallet.d.ts +1 -1
- package/dist/signers/types.cjs +1 -1
- package/dist/signers/types.d.cts +1 -1
- package/dist/signers/types.d.ts +1 -1
- package/dist/signers/types.js +1 -1
- package/dist/{types-D2ugRtLo.d.ts → types-BzTdj2KC.d.ts} +42 -10
- package/dist/{types-r_5ltlhH.d.cts → types-PtseJnku.d.cts} +42 -10
- package/dist/utils/constants.cjs +1 -1
- package/dist/utils/constants.js +1 -1
- package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.cjs +1 -1
- package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.js +1 -1
- package/dist/utils/device-signers/createDeviceSigner.d.cts +1 -1
- package/dist/utils/device-signers/createDeviceSigner.d.ts +1 -1
- package/dist/utils/device-signers/index.cjs +1 -1
- package/dist/utils/device-signers/index.d.cts +1 -1
- package/dist/utils/device-signers/index.d.ts +1 -1
- package/dist/utils/device-signers/index.js +1 -1
- package/dist/utils/locators.d.cts +1 -1
- package/dist/utils/locators.d.ts +1 -1
- package/dist/utils/recovery.cjs +1 -1
- package/dist/utils/recovery.d.cts +11 -4
- package/dist/utils/recovery.d.ts +11 -4
- package/dist/utils/recovery.js +1 -1
- package/dist/utils/signer-locator.d.cts +1 -1
- package/dist/utils/signer-locator.d.ts +1 -1
- package/dist/utils/signer-mapping.d.cts +1 -1
- package/dist/utils/signer-mapping.d.ts +1 -1
- package/dist/wallets/__tests__/test-helpers.cjs +1 -1
- package/dist/wallets/__tests__/test-helpers.d.cts +3 -1
- package/dist/wallets/__tests__/test-helpers.d.ts +3 -1
- package/dist/wallets/__tests__/test-helpers.js +1 -1
- package/dist/wallets/evm.cjs +1 -1
- package/dist/wallets/evm.d.cts +1 -1
- package/dist/wallets/evm.d.ts +1 -1
- package/dist/wallets/evm.js +1 -1
- package/dist/wallets/services/balance-formatter.cjs +1 -1
- package/dist/wallets/services/balance-formatter.d.cts +1 -1
- package/dist/wallets/services/balance-formatter.d.ts +1 -1
- package/dist/wallets/services/balance-formatter.js +1 -1
- package/dist/wallets/services/device-recovery-service.cjs +1 -1
- package/dist/wallets/services/device-recovery-service.d.cts +1 -1
- package/dist/wallets/services/device-recovery-service.d.ts +1 -1
- package/dist/wallets/services/device-recovery-service.js +1 -1
- package/dist/wallets/services/operation-poller.cjs +1 -1
- package/dist/wallets/services/operation-poller.d.cts +1 -1
- package/dist/wallets/services/operation-poller.d.ts +1 -1
- package/dist/wallets/services/operation-poller.js +1 -1
- package/dist/wallets/services/signer-manager.cjs +1 -1
- package/dist/wallets/services/signer-manager.d.cts +19 -4
- package/dist/wallets/services/signer-manager.d.ts +19 -4
- package/dist/wallets/services/signer-manager.js +1 -1
- package/dist/wallets/solana.cjs +1 -1
- package/dist/wallets/solana.d.cts +1 -1
- package/dist/wallets/solana.d.ts +1 -1
- package/dist/wallets/solana.js +1 -1
- package/dist/wallets/stellar.cjs +1 -1
- package/dist/wallets/stellar.d.cts +1 -1
- package/dist/wallets/stellar.d.ts +1 -1
- package/dist/wallets/stellar.js +1 -1
- package/dist/wallets/types.d.cts +1 -1
- package/dist/wallets/types.d.ts +1 -1
- package/dist/wallets/wallet-factory.cjs +1 -1
- package/dist/wallets/wallet-factory.d.cts +2 -5
- package/dist/wallets/wallet-factory.d.ts +2 -5
- package/dist/wallets/wallet-factory.js +1 -1
- package/dist/wallets/wallet.cjs +1 -1
- package/dist/wallets/wallet.d.cts +40 -4
- package/dist/wallets/wallet.d.ts +40 -4
- package/dist/wallets/wallet.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-3DK46BDI.cjs +0 -1
- package/dist/chunk-3KAXLLXJ.js +0 -1
- package/dist/chunk-4KOHNUNP.js +0 -1
- package/dist/chunk-5L5MJAFS.cjs +0 -1
- package/dist/chunk-63VNTHGQ.cjs +0 -1
- package/dist/chunk-6T4GBLXY.js +0 -1
- package/dist/chunk-7CUHY3S4.js +0 -1
- package/dist/chunk-7HOXBHKP.cjs +0 -1
- package/dist/chunk-7KKHT5PF.js +0 -1
- package/dist/chunk-A7DA5DSE.js +0 -1
- package/dist/chunk-BHHXVRU6.cjs +0 -1
- package/dist/chunk-BKN5HSDC.js +0 -1
- package/dist/chunk-CXWFJGKI.js +0 -1
- package/dist/chunk-D2QNNQ26.cjs +0 -1
- package/dist/chunk-D5IIHIEW.cjs +0 -1
- package/dist/chunk-DB3TFNM2.cjs +0 -1
- package/dist/chunk-DCKFFFPG.js +0 -1
- package/dist/chunk-FBOM4U3X.js +0 -1
- package/dist/chunk-FUZ2TPGD.js +0 -1
- package/dist/chunk-IQ3QQ4M6.js +0 -1
- package/dist/chunk-JAWHGOGP.cjs +0 -1
- package/dist/chunk-KQFRFHM4.cjs +0 -1
- package/dist/chunk-LUUUKDHQ.js +0 -1
- package/dist/chunk-LXAEBSEY.cjs +0 -1
- package/dist/chunk-NMUHOXYI.js +0 -1
- package/dist/chunk-QNM7BGTP.js +0 -1
- package/dist/chunk-QPCZFIUV.cjs +0 -1
- package/dist/chunk-QV4LLMZM.js +0 -1
- package/dist/chunk-QYNWUGXV.js +0 -1
- package/dist/chunk-UP6VFZQH.js +0 -1
- package/dist/chunk-WJDR3MG5.js +0 -1
- package/dist/chunk-Y7P2T5BP.cjs +0 -1
- package/dist/chunk-YWN6HKW7.cjs +0 -1
- package/dist/chunk-ZHGXG7JM.cjs +0 -1
- package/dist/chunk-ZSFPKH2C.js +0 -1
- package/dist/chunk-ZUG5ROPF.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chain } from '../../chains/chains.js';
|
|
2
|
-
import {
|
|
2
|
+
import { x as ServerSignerConfig, Z as DerivedServerSigner, ar as ApiSourcedServerSignerConfig, at as ServerSignerLocator } from '../../types-BzTdj2KC.js';
|
|
3
3
|
import '@crossmint/common-sdk-base';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import '../../api/gen/types.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-PCRZWMYM.js";import"../../chunk-L52GDMSH.js";import"../../chunk-IQARABFX.js";import"../../chunk-QM3BB4E2.js";import"../../chunk-TSJUK3ED.js";import"../../chunk-JY4KRKZ6.js";import"../../chunk-GXUPHO44.js";import"../../chunk-277G6KNG.js";import"../../chunk-FJPAMX7L.js";import"../../chunk-E3H6RZHM.js";import"../../chunk-EM3D5Q3A.js";import"../../chunk-P3P5Q5XX.js";import"../../chunk-OQZTL6ZG.js";import"../../chunk-NU7VF7MC.js";export{a as ServerSignerResolver};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBIL7GVBLcjs = require('../../chunk-BIL7GVBL.cjs');require('../../chunk-LWA3SX6Z.cjs');require('../../chunk-DSIFRRBS.cjs');exports.SolanaServerSigner = _chunkBIL7GVBLcjs.a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as SignerAdapter, aE as ServerInternalSignerConfig } from '../../types-PtseJnku.cjs';
|
|
2
2
|
import 'viem';
|
|
3
3
|
import '../../api/gen/types.gen.cjs';
|
|
4
4
|
import 'ox';
|
|
@@ -21,7 +21,7 @@ declare class SolanaServerSigner implements SignerAdapter<"server"> {
|
|
|
21
21
|
signMessage(message: string): Promise<{
|
|
22
22
|
signature: string;
|
|
23
23
|
}>;
|
|
24
|
-
signTransaction(
|
|
24
|
+
signTransaction(message: string): Promise<{
|
|
25
25
|
signature: string;
|
|
26
26
|
}>;
|
|
27
27
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as SignerAdapter, aE as ServerInternalSignerConfig } from '../../types-BzTdj2KC.js';
|
|
2
2
|
import 'viem';
|
|
3
3
|
import '../../api/gen/types.gen.js';
|
|
4
4
|
import 'ox';
|
|
@@ -21,7 +21,7 @@ declare class SolanaServerSigner implements SignerAdapter<"server"> {
|
|
|
21
21
|
signMessage(message: string): Promise<{
|
|
22
22
|
signature: string;
|
|
23
23
|
}>;
|
|
24
|
-
signTransaction(
|
|
24
|
+
signTransaction(message: string): Promise<{
|
|
25
25
|
signature: string;
|
|
26
26
|
}>;
|
|
27
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-JY4KRKZ6.js";import"../../chunk-FJPAMX7L.js";import"../../chunk-NU7VF7MC.js";export{a as SolanaServerSigner};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as SignerAdapter, a0 as ApiKeyInternalSignerConfig, c as ApiKeySignerLocator } from '../types-PtseJnku.cjs';
|
|
2
2
|
import 'viem';
|
|
3
3
|
import '../api/gen/types.gen.cjs';
|
|
4
4
|
import 'ox';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as SignerAdapter, a0 as ApiKeyInternalSignerConfig, c as ApiKeySignerLocator } from '../types-BzTdj2KC.js';
|
|
2
2
|
import 'viem';
|
|
3
3
|
import '../api/gen/types.gen.js';
|
|
4
4
|
import 'ox';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSTB2VIIKcjs = require('../chunk-STB2VIIK.cjs');require('../chunk-SCEPJO4Q.cjs');require('../chunk-VS6I4S7X.cjs');require('../chunk-DSIFRRBS.cjs');exports.SolanaExternalWalletSigner = _chunkSTB2VIIKcjs.a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a1 as ExternalWalletInternalSignerConfig } from '../types-PtseJnku.cjs';
|
|
2
2
|
import { SolanaChain } from '../chains/chains.cjs';
|
|
3
3
|
import { ExternalWalletSigner } from './external-wallet-signer.cjs';
|
|
4
4
|
import 'viem';
|
|
@@ -13,8 +13,11 @@ import '../utils/device-signers/DeviceSignerKeyStorage.cjs';
|
|
|
13
13
|
|
|
14
14
|
declare class SolanaExternalWalletSigner extends ExternalWalletSigner<SolanaChain> {
|
|
15
15
|
private onSign?;
|
|
16
|
+
private onSignBytes?;
|
|
16
17
|
constructor(config: ExternalWalletInternalSignerConfig<SolanaChain>);
|
|
17
|
-
signMessage(): Promise<
|
|
18
|
+
signMessage(message: string): Promise<{
|
|
19
|
+
signature: string;
|
|
20
|
+
}>;
|
|
18
21
|
signTransaction(transaction: string): Promise<{
|
|
19
22
|
signature: string;
|
|
20
23
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a1 as ExternalWalletInternalSignerConfig } from '../types-BzTdj2KC.js';
|
|
2
2
|
import { SolanaChain } from '../chains/chains.js';
|
|
3
3
|
import { ExternalWalletSigner } from './external-wallet-signer.js';
|
|
4
4
|
import 'viem';
|
|
@@ -13,8 +13,11 @@ import '../utils/device-signers/DeviceSignerKeyStorage.js';
|
|
|
13
13
|
|
|
14
14
|
declare class SolanaExternalWalletSigner extends ExternalWalletSigner<SolanaChain> {
|
|
15
15
|
private onSign?;
|
|
16
|
+
private onSignBytes?;
|
|
16
17
|
constructor(config: ExternalWalletInternalSignerConfig<SolanaChain>);
|
|
17
|
-
signMessage(): Promise<
|
|
18
|
+
signMessage(message: string): Promise<{
|
|
19
|
+
signature: string;
|
|
20
|
+
}>;
|
|
18
21
|
signTransaction(transaction: string): Promise<{
|
|
19
22
|
signature: string;
|
|
20
23
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-JAXFDUNN.js";import"../chunk-2YLRFJ66.js";import"../chunk-KOHPRJDP.js";import"../chunk-NU7VF7MC.js";export{a as SolanaExternalWalletSigner};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-DSIFRRBS.cjs');var u="SfLpKWvLbWyWadgKR9DqWd5MUujMg9jw59zoubdiwjFcnbXn2n23vQophPSKwcwbArNgocjyc1uVu9f35qPtR4jqBwUJu2o4vbhDMHp7FCyEUaQ7mMsH3FuSUGSZ5nkBMoaXh3Tu6zFuNzy42w5hEytYwpT6h6oXCUzdD8DP2rie8gSz7gHM9zKHTZCev7opza73P5mbsRrDXC8HuMNtPiUSi2qRounF",S= exports.VERSION_1_PREFIX =129;exports.VERSION_1_MESSAGE = u; exports.VERSION_1_PREFIX = S;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const VERSION_1_MESSAGE = "SfLpKWvLbWyWadgKR9DqWd5MUujMg9jw59zoubdiwjFcnbXn2n23vQophPSKwcwbArNgocjyc1uVu9f35qPtR4jqBwUJu2o4vbhDMHp7FCyEUaQ7mMsH3FuSUGSZ5nkBMoaXh3Tu6zFuNzy42w5hEytYwpT6h6oXCUzdD8DP2rie8gSz7gHM9zKHTZCev7opza73P5mbsRrDXC8HuMNtPiUSi2qRounF";
|
|
2
|
+
declare const VERSION_1_PREFIX = 129;
|
|
3
|
+
|
|
4
|
+
export { VERSION_1_MESSAGE, VERSION_1_PREFIX };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const VERSION_1_MESSAGE = "SfLpKWvLbWyWadgKR9DqWd5MUujMg9jw59zoubdiwjFcnbXn2n23vQophPSKwcwbArNgocjyc1uVu9f35qPtR4jqBwUJu2o4vbhDMHp7FCyEUaQ7mMsH3FuSUGSZ5nkBMoaXh3Tu6zFuNzy42w5hEytYwpT6h6oXCUzdD8DP2rie8gSz7gHM9zKHTZCev7opza73P5mbsRrDXC8HuMNtPiUSi2qRounF";
|
|
2
|
+
declare const VERSION_1_PREFIX = 129;
|
|
3
|
+
|
|
4
|
+
export { VERSION_1_MESSAGE, VERSION_1_PREFIX };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../chunk-NU7VF7MC.js";var S="SfLpKWvLbWyWadgKR9DqWd5MUujMg9jw59zoubdiwjFcnbXn2n23vQophPSKwcwbArNgocjyc1uVu9f35qPtR4jqBwUJu2o4vbhDMHp7FCyEUaQ7mMsH3FuSUGSZ5nkBMoaXh3Tu6zFuNzy42w5hEytYwpT6h6oXCUzdD8DP2rie8gSz7gHM9zKHTZCev7opza73P5mbsRrDXC8HuMNtPiUSi2qRounF",M=129;export{S as VERSION_1_MESSAGE,M as VERSION_1_PREFIX};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a1 as ExternalWalletInternalSignerConfig } from '../types-PtseJnku.cjs';
|
|
2
2
|
import { StellarChain } from '../chains/chains.cjs';
|
|
3
3
|
import { ExternalWalletSigner } from './external-wallet-signer.cjs';
|
|
4
4
|
import 'viem';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a1 as ExternalWalletInternalSignerConfig } from '../types-BzTdj2KC.js';
|
|
2
2
|
import { StellarChain } from '../chains/chains.js';
|
|
3
3
|
import { ExternalWalletSigner } from './external-wallet-signer.js';
|
|
4
4
|
import 'viem';
|
package/dist/signers/types.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkHCV4M7X2cjs = require('../chunk-HCV4M7X2.cjs');require('../chunk-DSIFRRBS.cjs');exports.AuthRejectedError = _chunkHCV4M7X2cjs.a; exports.KeyExportError = _chunkHCV4M7X2cjs.e; exports.OnboardingSessionExpiredError = _chunkHCV4M7X2cjs.f; exports.OtpValidationError = _chunkHCV4M7X2cjs.b; exports.SignerAuthenticationError = _chunkHCV4M7X2cjs.c; exports.SignerStatusError = _chunkHCV4M7X2cjs.d; exports.isApiSourcedServerSignerConfig = _chunkHCV4M7X2cjs.g; exports.isExportableSignerAdapter = _chunkHCV4M7X2cjs.h;
|
package/dist/signers/types.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import '@crossmint/client-sdk-window';
|
|
|
3
3
|
import '@crossmint/client-signers';
|
|
4
4
|
export { EvmExternalWalletSignerConfig, ExternalWalletSignerConfig, SolanaExternalWalletSignerConfig, StellarExternalWalletSignerConfig } from '@crossmint/common-sdk-base';
|
|
5
5
|
import '../chains/chains.cjs';
|
|
6
|
-
export {
|
|
6
|
+
export { a0 as ApiKeyInternalSignerConfig, b9 as ApiKeySignerConfig, c as ApiKeySignerLocator, ar as ApiSourcedServerSignerConfig, f as AuthRejectedError, aD as BaseSignResult, ba as BaseSignerConfig, Z as DerivedServerSigner, _ as DeviceInternalSignerConfig, $ as DeviceSignResult, D as DeviceSignerConfig, i as DeviceSignerLocator, aB as EmailInternalSignerConfig, j as EmailSignerConfig, k as EmailSignerLocator, l as ExportSignerTEEConnection, m as ExportableSignerAdapter, a1 as ExternalWalletInternalSignerConfig, n as ExternalWalletRegistrationConfig, o as ExternalWalletSignerConfigForChain, p as ExternalWalletSignerLocator, a2 as InternalSignerConfig, K as KeyExportError, bb as NonCustodialSignerType, O as OnboardingSessionExpiredError, q as OtpValidationError, a3 as PasskeyInternalSignerConfig, a4 as PasskeySignResult, a7 as PasskeySignerConfig, P as PasskeySignerLocator, aC as PhoneInternalSignerConfig, r as PhoneSignerConfig, s as PhoneSignerLocator, R as RecoverySignerConfigForChain, aE as ServerInternalSignerConfig, x as ServerSignerConfig, at as ServerSignerLocator, F as SignerAdapter, G as SignerAuthenticationError, H as SignerConfigForChain, I as SignerLocator, L as SignerStatusError, bc as isApiSourcedServerSignerConfig, Y as isExportableSignerAdapter } from '../types-PtseJnku.cjs';
|
|
7
7
|
import 'viem';
|
|
8
8
|
import '../api/gen/types.gen.cjs';
|
|
9
9
|
import '@solana/web3.js';
|
package/dist/signers/types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import '@crossmint/client-sdk-window';
|
|
|
3
3
|
import '@crossmint/client-signers';
|
|
4
4
|
export { EvmExternalWalletSignerConfig, ExternalWalletSignerConfig, SolanaExternalWalletSignerConfig, StellarExternalWalletSignerConfig } from '@crossmint/common-sdk-base';
|
|
5
5
|
import '../chains/chains.js';
|
|
6
|
-
export {
|
|
6
|
+
export { a0 as ApiKeyInternalSignerConfig, b9 as ApiKeySignerConfig, c as ApiKeySignerLocator, ar as ApiSourcedServerSignerConfig, f as AuthRejectedError, aD as BaseSignResult, ba as BaseSignerConfig, Z as DerivedServerSigner, _ as DeviceInternalSignerConfig, $ as DeviceSignResult, D as DeviceSignerConfig, i as DeviceSignerLocator, aB as EmailInternalSignerConfig, j as EmailSignerConfig, k as EmailSignerLocator, l as ExportSignerTEEConnection, m as ExportableSignerAdapter, a1 as ExternalWalletInternalSignerConfig, n as ExternalWalletRegistrationConfig, o as ExternalWalletSignerConfigForChain, p as ExternalWalletSignerLocator, a2 as InternalSignerConfig, K as KeyExportError, bb as NonCustodialSignerType, O as OnboardingSessionExpiredError, q as OtpValidationError, a3 as PasskeyInternalSignerConfig, a4 as PasskeySignResult, a7 as PasskeySignerConfig, P as PasskeySignerLocator, aC as PhoneInternalSignerConfig, r as PhoneSignerConfig, s as PhoneSignerLocator, R as RecoverySignerConfigForChain, aE as ServerInternalSignerConfig, x as ServerSignerConfig, at as ServerSignerLocator, F as SignerAdapter, G as SignerAuthenticationError, H as SignerConfigForChain, I as SignerLocator, L as SignerStatusError, bc as isApiSourcedServerSignerConfig, Y as isExportableSignerAdapter } from '../types-BzTdj2KC.js';
|
|
7
7
|
import 'viem';
|
|
8
8
|
import '../api/gen/types.gen.js';
|
|
9
9
|
import '@solana/web3.js';
|
package/dist/signers/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h}from"../chunk-P3P5Q5XX.js";import"../chunk-NU7VF7MC.js";export{a as AuthRejectedError,e as KeyExportError,f as OnboardingSessionExpiredError,b as OtpValidationError,c as SignerAuthenticationError,d as SignerStatusError,g as isApiSourcedServerSignerConfig,h as isExportableSignerAdapter};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TypedDataDefinition, TypedData, Address } from 'viem';
|
|
2
|
-
import { WalletBalanceV20250609ResponseDto, CreateWalletV2025DtoClass, WalletV2025ResponseDtoClass, WalletV1Alpha2ErrorDto, CreateTransactionV2025DtoClass, WalletsTransactionV2025ResponseDtoClass, WalletV1Alpha2TransactionErrorDto, SubmitApprovalV2025Dto, WalletsV2025ControllerSubmitApprovals2Error, WalletsV2025ControllerGetTransaction2Error, CreateSignatureV2025Dto, WalletsSignatureV2025ResponseDto, WalletsV2025ControllerCreateSignatureRequest2Error, WalletsV2025ControllerSubmitSignatureApprovals2Error, WalletsV2025ControllerGetSignature2Error, WalletsMultipleTransactionV2025ResponseDto, WalletsV2025ControllerGetTransactionsWithoutChain2Error, WalletsActivityResponseUnstableDto, BalanceV20250609ControllerGetBalanceForLocator2Error, FundWalletAmountDto, BalanceControllerFundWallet4Responses, BalanceControllerFundWallet4Error, CreateSignerV2025InputDtoClass, DelegatedSignerV2025DtoClass, WalletsV2025ControllerCreateDelegatedSigner2Error, WalletsV2025ControllerGetDelegatedSigner2Error, SendTokenDto, WalletsSendTokenControllerSendToken2Response } from './api/gen/types.gen.js';
|
|
2
|
+
import { WalletBalanceV20250609ResponseDto, CreateWalletV2025DtoClass, WalletV2025ResponseDtoClass, WalletV1Alpha2ErrorDto, CreateTransactionV2025DtoClass, WalletsTransactionV2025ResponseDtoClass, WalletV1Alpha2TransactionErrorDto, SubmitApprovalV2025Dto, WalletsV2025ControllerSubmitApprovals2Error, WalletsV2025ControllerGetTransaction2Error, CreateSignatureV2025Dto, WalletsSignatureV2025ResponseDto, WalletsV2025ControllerCreateSignatureRequest2Error, WalletsV2025ControllerSubmitSignatureApprovals2Error, WalletsV2025ControllerGetSignature2Error, WalletsMultipleTransactionV2025ResponseDto, WalletsV2025ControllerGetTransactionsWithoutChain2Error, WalletsActivityResponseUnstableDto, BalanceV20250609ControllerGetBalanceForLocator2Error, FundWalletAmountDto, BalanceControllerFundWallet4Responses, BalanceControllerFundWallet4Error, CreateSignerV2025InputDtoClass, DelegatedSignerV2025DtoClass, WalletsV2025ControllerCreateDelegatedSigner2Error, AddRecoveryMethodsV2025DtoClass, AddRecoveryMethodsResponseV2025DtoClass, WalletsV2025ControllerGetDelegatedSigner2Error, SendTokenDto, WalletsSendTokenControllerSendToken2Response } from './api/gen/types.gen.js';
|
|
3
3
|
import { WebAuthnP256 } from 'ox';
|
|
4
4
|
import { HandshakeParent } from '@crossmint/client-sdk-window';
|
|
5
5
|
import { signerOutboundEvents, signerInboundEvents, exportSignerOutboundEvents, exportSignerInboundEvents } from '@crossmint/client-signers';
|
|
6
6
|
import { SolanaExternalWalletSignerConfig, StellarExternalWalletSignerConfig, EvmExternalWalletSignerConfig, Crossmint } from '@crossmint/common-sdk-base';
|
|
7
|
-
import { Chain, StellarChain,
|
|
7
|
+
import { Chain, StellarChain, EVMSmartWalletChain, SolanaChain } from './chains/chains.js';
|
|
8
8
|
import { VersionedTransaction, Keypair } from '@solana/web3.js';
|
|
9
9
|
import { Abi } from 'abitype';
|
|
10
10
|
import { DeviceSignerKeyStorage } from './utils/device-signers/DeviceSignerKeyStorage.js';
|
|
@@ -41,6 +41,16 @@ type RemoveSignerReturnType = {
|
|
|
41
41
|
transactionId: string;
|
|
42
42
|
status?: "success";
|
|
43
43
|
};
|
|
44
|
+
type AddRecoveryMethodOptions = PrepareOnly;
|
|
45
|
+
type RemoveRecoveryMethodOptions = PrepareOnly;
|
|
46
|
+
type AddRecoveryMethodReturnType = {
|
|
47
|
+
transactionId: string;
|
|
48
|
+
status?: "success";
|
|
49
|
+
};
|
|
50
|
+
type RemoveRecoveryMethodReturnType = {
|
|
51
|
+
transactionId: string;
|
|
52
|
+
status?: "success";
|
|
53
|
+
};
|
|
44
54
|
type SignMessageInput = {
|
|
45
55
|
message: string;
|
|
46
56
|
options?: SignatureInputOptions;
|
|
@@ -183,14 +193,17 @@ type WalletArgsFor<C extends Chain> = {
|
|
|
183
193
|
};
|
|
184
194
|
/** A signer that can be used as a recovery signer. Device signers cannot be recovery signers. */
|
|
185
195
|
type RecoverySignerConfigFor<C extends Chain> = Exclude<SignerConfigForChain<C>, DeviceSignerConfig>;
|
|
186
|
-
/**
|
|
187
|
-
* Solana and Stellar accept a list of recovery signers, each able to authorize on its own.
|
|
188
|
-
* Other chains accept a single recovery signer until their backend DTO supports a list.
|
|
189
|
-
*/
|
|
190
|
-
type RecoveryCreateArg<C extends Chain> = C extends SolanaChain | StellarChain ? RecoverySignerConfigFor<C> | Array<RecoverySignerConfigFor<C>> : RecoverySignerConfigFor<C>;
|
|
191
196
|
type WalletCreateArgs<C extends Chain> = WalletArgsFor<C> & {
|
|
192
|
-
/**
|
|
193
|
-
|
|
197
|
+
/**
|
|
198
|
+
* @deprecated Use `recoveryMethods`. Still accepted: a single recovery method, or a list, which is treated
|
|
199
|
+
* exactly like `recoveryMethods`. Pass either `recovery` or `recoveryMethods`, not both.
|
|
200
|
+
*/
|
|
201
|
+
recovery?: RecoverySignerConfigFor<C> | Array<RecoverySignerConfigFor<C>>;
|
|
202
|
+
/**
|
|
203
|
+
* Recovery methods, each able to authorize on its own. Only Solana and Stellar accept more than one.
|
|
204
|
+
* Required unless the deprecated `recovery` is passed.
|
|
205
|
+
*/
|
|
206
|
+
recoveryMethods?: Array<RecoverySignerConfigFor<C>>;
|
|
194
207
|
/** Signers to register on the wallet during creation. */
|
|
195
208
|
signers?: Array<SignerConfigForChain<C> | ExternalWalletRegistrationConfig>;
|
|
196
209
|
alias?: string;
|
|
@@ -285,6 +298,14 @@ declare class OtpValidationError extends Error {
|
|
|
285
298
|
readonly code: string | undefined;
|
|
286
299
|
constructor(message: string, code?: string);
|
|
287
300
|
}
|
|
301
|
+
/**
|
|
302
|
+
* Thrown when the signer backend rejects the request's credentials (missing, empty or expired JWT).
|
|
303
|
+
* Distinct from `OtpValidationError`: the OTP flow never ran, the user must re-authenticate with the app first.
|
|
304
|
+
*/
|
|
305
|
+
declare class SignerAuthenticationError extends Error {
|
|
306
|
+
readonly code: string | undefined;
|
|
307
|
+
constructor(message: string, code?: string);
|
|
308
|
+
}
|
|
288
309
|
declare class SignerStatusError extends Error {
|
|
289
310
|
readonly code: string | undefined;
|
|
290
311
|
constructor(message: string, code?: string);
|
|
@@ -503,6 +524,17 @@ type RemoveSignerParams = {
|
|
|
503
524
|
};
|
|
504
525
|
type RemoveSignerResponse = WalletsTransactionV2025ResponseDtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
505
526
|
type GetSignerResponse = DelegatedSignerV2025DtoClass | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
527
|
+
type RegisterRecoveryMethodParams = {
|
|
528
|
+
recoveryMethods: AddRecoveryMethodsV2025DtoClass["recoveryMethods"];
|
|
529
|
+
approver: AddRecoveryMethodsV2025DtoClass["approver"];
|
|
530
|
+
chain?: RegisterSignerChain;
|
|
531
|
+
};
|
|
532
|
+
type RegisterRecoveryMethodResponse = AddRecoveryMethodsResponseV2025DtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
533
|
+
type RemoveRecoveryMethodParams = {
|
|
534
|
+
approver: AddRecoveryMethodsV2025DtoClass["approver"];
|
|
535
|
+
chain?: RegisterSignerChain;
|
|
536
|
+
};
|
|
537
|
+
type RemoveRecoveryMethodResponse = WalletsTransactionV2025ResponseDtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
506
538
|
type GetSignersResponse = Array<DelegatedSignerV2025DtoClass> | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
507
539
|
type Signer = DelegatedSignerV2025DtoClass;
|
|
508
540
|
type SendParams = SendTokenDto;
|
|
@@ -513,4 +545,4 @@ type EvmWalletLocator = `me:evm:${WalletType}` | Address;
|
|
|
513
545
|
type SolanaWalletLocator = `me:solana:${WalletType}` | SolanaAddress;
|
|
514
546
|
type WalletLocator = EvmWalletLocator | SolanaWalletLocator;
|
|
515
547
|
|
|
516
|
-
export { type
|
|
548
|
+
export { type DeviceSignResult as $, type AddRecoveryMethodOptions as A, type Balances as B, type Callbacks as C, type DeviceSignerConfig as D, type EVMTransactionInput as E, type SignerAdapter as F, SignerAuthenticationError as G, type SignerConfigForChain as H, type SignerLocator as I, type SignerStatus as J, KeyExportError as K, SignerStatusError as L, type SolanaTransactionInput as M, type TransferScope as N, OnboardingSessionExpiredError as O, type PasskeySignerLocator as P, type Transfers as Q, type RecoverySignerConfigForChain as R, type Scope as S, type Transaction as T, type WalletCreateArgs as U, type WalletOptions as V, type WalletArgsFor as W, type WalletPlugin as X, isExportableSignerAdapter as Y, type DerivedServerSigner as Z, type DeviceInternalSignerConfig as _, type AddRecoveryMethodReturnType as a, type GetWalletSuccessResponse as a$, type ApiKeyInternalSignerConfig as a0, type ExternalWalletInternalSignerConfig as a1, type InternalSignerConfig as a2, type PasskeyInternalSignerConfig as a3, type PasskeySignResult as a4, type UserLocator as a5, type RecoverySignerConfigFor as a6, type PasskeySignerConfig as a7, type Signer as a8, type PendingSignerOperation as a9, type CreateWalletParams as aA, type EmailInternalSignerConfig as aB, type PhoneInternalSignerConfig as aC, type BaseSignResult as aD, type ServerInternalSignerConfig as aE, type GetBalanceSuccessResponse as aF, type GetWalletResponse as aG, type CreateTransactionParams as aH, type CreateTransactionResponse as aI, type ApproveTransactionParams as aJ, type ApproveTransactionResponse as aK, type CreateSignatureParams as aL, type CreateSignatureResponse as aM, type ApproveSignatureParams as aN, type GetSignatureResponse as aO, type GetTransfersResponse as aP, type GetBalanceResponse as aQ, type FundWalletParams as aR, type RemoveSignerParams as aS, type RemoveSignerResponse as aT, type RegisterRecoveryMethodParams as aU, type RegisterRecoveryMethodResponse as aV, type RemoveRecoveryMethodParams as aW, type RemoveRecoveryMethodResponse as aX, type SendParams as aY, type CreateTransactionSuccessResponse as aZ, type GetSignersResponse as a_, type PrepareOnly as aa, type SignMessageInput as ab, type SignTypedDataInput as ac, type FundWalletResponse as ad, type GetTransactionsResponse as ae, type GetTransactionSuccessResponse as af, type SendTokenTransactionOptions as ag, type ApproveResult as ah, type AddSignerReturnType as ai, type RemoveSignerReturnType as aj, type WalletLocator as ak, type ApproveSignatureResponse as al, type TransactionInputOptions as am, type StellarTransactionInput as an, type UpgradeOptions as ao, type MigrateOptions as ap, type GetSignerResponse as aq, type ApiSourcedServerSignerConfig as ar, type RegisterSignerParams as as, type ServerSignerLocator as at, type RegisterSignerChain as au, type RegisterSignerResponse as av, type TokenBalance as aw, type GetTransactionResponse as ax, type SendResponse as ay, type CreateWalletResponse as az, type AddSignerOptions as b, type RecoverySignerConfig as b0, type Approval as b1, type DeviceSignerDescriptor as b2, type FormattedEVMTransaction as b3, type PendingApproval as b4, type SendTokenTransactionType as b5, type SignatureInputOptions as b6, type SignerInput as b7, type StellarWalletPlugin as b8, type ApiKeySignerConfig as b9, type BaseSignerConfig as ba, type NonCustodialSignerType as bb, isApiSourcedServerSignerConfig as bc, type ApiKeySignerLocator as c, type ApproveOptions as d, type ApproveParams as e, AuthRejectedError as f, type ClientSideWalletArgsFor as g, type ClientSideWalletCreateArgs as h, type DeviceSignerLocator as i, type EmailSignerConfig as j, type EmailSignerLocator as k, type ExportSignerTEEConnection as l, type ExportableSignerAdapter as m, type ExternalWalletRegistrationConfig as n, type ExternalWalletSignerConfigForChain as o, type ExternalWalletSignerLocator as p, OtpValidationError as q, type PhoneSignerConfig as r, type PhoneSignerLocator as s, type RegisterSignerPasskeyParams as t, type RemoveRecoveryMethodOptions as u, type RemoveRecoveryMethodReturnType as v, type RemoveSignerOptions as w, type ServerSignerConfig as x, type Signature as y, type Signer$1 as z };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TypedDataDefinition, TypedData, Address } from 'viem';
|
|
2
|
-
import { WalletBalanceV20250609ResponseDto, CreateWalletV2025DtoClass, WalletV2025ResponseDtoClass, WalletV1Alpha2ErrorDto, CreateTransactionV2025DtoClass, WalletsTransactionV2025ResponseDtoClass, WalletV1Alpha2TransactionErrorDto, SubmitApprovalV2025Dto, WalletsV2025ControllerSubmitApprovals2Error, WalletsV2025ControllerGetTransaction2Error, CreateSignatureV2025Dto, WalletsSignatureV2025ResponseDto, WalletsV2025ControllerCreateSignatureRequest2Error, WalletsV2025ControllerSubmitSignatureApprovals2Error, WalletsV2025ControllerGetSignature2Error, WalletsMultipleTransactionV2025ResponseDto, WalletsV2025ControllerGetTransactionsWithoutChain2Error, WalletsActivityResponseUnstableDto, BalanceV20250609ControllerGetBalanceForLocator2Error, FundWalletAmountDto, BalanceControllerFundWallet4Responses, BalanceControllerFundWallet4Error, CreateSignerV2025InputDtoClass, DelegatedSignerV2025DtoClass, WalletsV2025ControllerCreateDelegatedSigner2Error, WalletsV2025ControllerGetDelegatedSigner2Error, SendTokenDto, WalletsSendTokenControllerSendToken2Response } from './api/gen/types.gen.cjs';
|
|
2
|
+
import { WalletBalanceV20250609ResponseDto, CreateWalletV2025DtoClass, WalletV2025ResponseDtoClass, WalletV1Alpha2ErrorDto, CreateTransactionV2025DtoClass, WalletsTransactionV2025ResponseDtoClass, WalletV1Alpha2TransactionErrorDto, SubmitApprovalV2025Dto, WalletsV2025ControllerSubmitApprovals2Error, WalletsV2025ControllerGetTransaction2Error, CreateSignatureV2025Dto, WalletsSignatureV2025ResponseDto, WalletsV2025ControllerCreateSignatureRequest2Error, WalletsV2025ControllerSubmitSignatureApprovals2Error, WalletsV2025ControllerGetSignature2Error, WalletsMultipleTransactionV2025ResponseDto, WalletsV2025ControllerGetTransactionsWithoutChain2Error, WalletsActivityResponseUnstableDto, BalanceV20250609ControllerGetBalanceForLocator2Error, FundWalletAmountDto, BalanceControllerFundWallet4Responses, BalanceControllerFundWallet4Error, CreateSignerV2025InputDtoClass, DelegatedSignerV2025DtoClass, WalletsV2025ControllerCreateDelegatedSigner2Error, AddRecoveryMethodsV2025DtoClass, AddRecoveryMethodsResponseV2025DtoClass, WalletsV2025ControllerGetDelegatedSigner2Error, SendTokenDto, WalletsSendTokenControllerSendToken2Response } from './api/gen/types.gen.cjs';
|
|
3
3
|
import { WebAuthnP256 } from 'ox';
|
|
4
4
|
import { HandshakeParent } from '@crossmint/client-sdk-window';
|
|
5
5
|
import { signerOutboundEvents, signerInboundEvents, exportSignerOutboundEvents, exportSignerInboundEvents } from '@crossmint/client-signers';
|
|
6
6
|
import { SolanaExternalWalletSignerConfig, StellarExternalWalletSignerConfig, EvmExternalWalletSignerConfig, Crossmint } from '@crossmint/common-sdk-base';
|
|
7
|
-
import { Chain, StellarChain,
|
|
7
|
+
import { Chain, StellarChain, EVMSmartWalletChain, SolanaChain } from './chains/chains.cjs';
|
|
8
8
|
import { VersionedTransaction, Keypair } from '@solana/web3.js';
|
|
9
9
|
import { Abi } from 'abitype';
|
|
10
10
|
import { DeviceSignerKeyStorage } from './utils/device-signers/DeviceSignerKeyStorage.cjs';
|
|
@@ -41,6 +41,16 @@ type RemoveSignerReturnType = {
|
|
|
41
41
|
transactionId: string;
|
|
42
42
|
status?: "success";
|
|
43
43
|
};
|
|
44
|
+
type AddRecoveryMethodOptions = PrepareOnly;
|
|
45
|
+
type RemoveRecoveryMethodOptions = PrepareOnly;
|
|
46
|
+
type AddRecoveryMethodReturnType = {
|
|
47
|
+
transactionId: string;
|
|
48
|
+
status?: "success";
|
|
49
|
+
};
|
|
50
|
+
type RemoveRecoveryMethodReturnType = {
|
|
51
|
+
transactionId: string;
|
|
52
|
+
status?: "success";
|
|
53
|
+
};
|
|
44
54
|
type SignMessageInput = {
|
|
45
55
|
message: string;
|
|
46
56
|
options?: SignatureInputOptions;
|
|
@@ -183,14 +193,17 @@ type WalletArgsFor<C extends Chain> = {
|
|
|
183
193
|
};
|
|
184
194
|
/** A signer that can be used as a recovery signer. Device signers cannot be recovery signers. */
|
|
185
195
|
type RecoverySignerConfigFor<C extends Chain> = Exclude<SignerConfigForChain<C>, DeviceSignerConfig>;
|
|
186
|
-
/**
|
|
187
|
-
* Solana and Stellar accept a list of recovery signers, each able to authorize on its own.
|
|
188
|
-
* Other chains accept a single recovery signer until their backend DTO supports a list.
|
|
189
|
-
*/
|
|
190
|
-
type RecoveryCreateArg<C extends Chain> = C extends SolanaChain | StellarChain ? RecoverySignerConfigFor<C> | Array<RecoverySignerConfigFor<C>> : RecoverySignerConfigFor<C>;
|
|
191
196
|
type WalletCreateArgs<C extends Chain> = WalletArgsFor<C> & {
|
|
192
|
-
/**
|
|
193
|
-
|
|
197
|
+
/**
|
|
198
|
+
* @deprecated Use `recoveryMethods`. Still accepted: a single recovery method, or a list, which is treated
|
|
199
|
+
* exactly like `recoveryMethods`. Pass either `recovery` or `recoveryMethods`, not both.
|
|
200
|
+
*/
|
|
201
|
+
recovery?: RecoverySignerConfigFor<C> | Array<RecoverySignerConfigFor<C>>;
|
|
202
|
+
/**
|
|
203
|
+
* Recovery methods, each able to authorize on its own. Only Solana and Stellar accept more than one.
|
|
204
|
+
* Required unless the deprecated `recovery` is passed.
|
|
205
|
+
*/
|
|
206
|
+
recoveryMethods?: Array<RecoverySignerConfigFor<C>>;
|
|
194
207
|
/** Signers to register on the wallet during creation. */
|
|
195
208
|
signers?: Array<SignerConfigForChain<C> | ExternalWalletRegistrationConfig>;
|
|
196
209
|
alias?: string;
|
|
@@ -285,6 +298,14 @@ declare class OtpValidationError extends Error {
|
|
|
285
298
|
readonly code: string | undefined;
|
|
286
299
|
constructor(message: string, code?: string);
|
|
287
300
|
}
|
|
301
|
+
/**
|
|
302
|
+
* Thrown when the signer backend rejects the request's credentials (missing, empty or expired JWT).
|
|
303
|
+
* Distinct from `OtpValidationError`: the OTP flow never ran, the user must re-authenticate with the app first.
|
|
304
|
+
*/
|
|
305
|
+
declare class SignerAuthenticationError extends Error {
|
|
306
|
+
readonly code: string | undefined;
|
|
307
|
+
constructor(message: string, code?: string);
|
|
308
|
+
}
|
|
288
309
|
declare class SignerStatusError extends Error {
|
|
289
310
|
readonly code: string | undefined;
|
|
290
311
|
constructor(message: string, code?: string);
|
|
@@ -503,6 +524,17 @@ type RemoveSignerParams = {
|
|
|
503
524
|
};
|
|
504
525
|
type RemoveSignerResponse = WalletsTransactionV2025ResponseDtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
505
526
|
type GetSignerResponse = DelegatedSignerV2025DtoClass | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
527
|
+
type RegisterRecoveryMethodParams = {
|
|
528
|
+
recoveryMethods: AddRecoveryMethodsV2025DtoClass["recoveryMethods"];
|
|
529
|
+
approver: AddRecoveryMethodsV2025DtoClass["approver"];
|
|
530
|
+
chain?: RegisterSignerChain;
|
|
531
|
+
};
|
|
532
|
+
type RegisterRecoveryMethodResponse = AddRecoveryMethodsResponseV2025DtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
533
|
+
type RemoveRecoveryMethodParams = {
|
|
534
|
+
approver: AddRecoveryMethodsV2025DtoClass["approver"];
|
|
535
|
+
chain?: RegisterSignerChain;
|
|
536
|
+
};
|
|
537
|
+
type RemoveRecoveryMethodResponse = WalletsTransactionV2025ResponseDtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
506
538
|
type GetSignersResponse = Array<DelegatedSignerV2025DtoClass> | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
507
539
|
type Signer = DelegatedSignerV2025DtoClass;
|
|
508
540
|
type SendParams = SendTokenDto;
|
|
@@ -513,4 +545,4 @@ type EvmWalletLocator = `me:evm:${WalletType}` | Address;
|
|
|
513
545
|
type SolanaWalletLocator = `me:solana:${WalletType}` | SolanaAddress;
|
|
514
546
|
type WalletLocator = EvmWalletLocator | SolanaWalletLocator;
|
|
515
547
|
|
|
516
|
-
export { type
|
|
548
|
+
export { type DeviceSignResult as $, type AddRecoveryMethodOptions as A, type Balances as B, type Callbacks as C, type DeviceSignerConfig as D, type EVMTransactionInput as E, type SignerAdapter as F, SignerAuthenticationError as G, type SignerConfigForChain as H, type SignerLocator as I, type SignerStatus as J, KeyExportError as K, SignerStatusError as L, type SolanaTransactionInput as M, type TransferScope as N, OnboardingSessionExpiredError as O, type PasskeySignerLocator as P, type Transfers as Q, type RecoverySignerConfigForChain as R, type Scope as S, type Transaction as T, type WalletCreateArgs as U, type WalletOptions as V, type WalletArgsFor as W, type WalletPlugin as X, isExportableSignerAdapter as Y, type DerivedServerSigner as Z, type DeviceInternalSignerConfig as _, type AddRecoveryMethodReturnType as a, type GetWalletSuccessResponse as a$, type ApiKeyInternalSignerConfig as a0, type ExternalWalletInternalSignerConfig as a1, type InternalSignerConfig as a2, type PasskeyInternalSignerConfig as a3, type PasskeySignResult as a4, type UserLocator as a5, type RecoverySignerConfigFor as a6, type PasskeySignerConfig as a7, type Signer as a8, type PendingSignerOperation as a9, type CreateWalletParams as aA, type EmailInternalSignerConfig as aB, type PhoneInternalSignerConfig as aC, type BaseSignResult as aD, type ServerInternalSignerConfig as aE, type GetBalanceSuccessResponse as aF, type GetWalletResponse as aG, type CreateTransactionParams as aH, type CreateTransactionResponse as aI, type ApproveTransactionParams as aJ, type ApproveTransactionResponse as aK, type CreateSignatureParams as aL, type CreateSignatureResponse as aM, type ApproveSignatureParams as aN, type GetSignatureResponse as aO, type GetTransfersResponse as aP, type GetBalanceResponse as aQ, type FundWalletParams as aR, type RemoveSignerParams as aS, type RemoveSignerResponse as aT, type RegisterRecoveryMethodParams as aU, type RegisterRecoveryMethodResponse as aV, type RemoveRecoveryMethodParams as aW, type RemoveRecoveryMethodResponse as aX, type SendParams as aY, type CreateTransactionSuccessResponse as aZ, type GetSignersResponse as a_, type PrepareOnly as aa, type SignMessageInput as ab, type SignTypedDataInput as ac, type FundWalletResponse as ad, type GetTransactionsResponse as ae, type GetTransactionSuccessResponse as af, type SendTokenTransactionOptions as ag, type ApproveResult as ah, type AddSignerReturnType as ai, type RemoveSignerReturnType as aj, type WalletLocator as ak, type ApproveSignatureResponse as al, type TransactionInputOptions as am, type StellarTransactionInput as an, type UpgradeOptions as ao, type MigrateOptions as ap, type GetSignerResponse as aq, type ApiSourcedServerSignerConfig as ar, type RegisterSignerParams as as, type ServerSignerLocator as at, type RegisterSignerChain as au, type RegisterSignerResponse as av, type TokenBalance as aw, type GetTransactionResponse as ax, type SendResponse as ay, type CreateWalletResponse as az, type AddSignerOptions as b, type RecoverySignerConfig as b0, type Approval as b1, type DeviceSignerDescriptor as b2, type FormattedEVMTransaction as b3, type PendingApproval as b4, type SendTokenTransactionType as b5, type SignatureInputOptions as b6, type SignerInput as b7, type StellarWalletPlugin as b8, type ApiKeySignerConfig as b9, type BaseSignerConfig as ba, type NonCustodialSignerType as bb, isApiSourcedServerSignerConfig as bc, type ApiKeySignerLocator as c, type ApproveOptions as d, type ApproveParams as e, AuthRejectedError as f, type ClientSideWalletArgsFor as g, type ClientSideWalletCreateArgs as h, type DeviceSignerLocator as i, type EmailSignerConfig as j, type EmailSignerLocator as k, type ExportSignerTEEConnection as l, type ExportableSignerAdapter as m, type ExternalWalletRegistrationConfig as n, type ExternalWalletSignerConfigForChain as o, type ExternalWalletSignerLocator as p, OtpValidationError as q, type PhoneSignerConfig as r, type PhoneSignerLocator as s, type RegisterSignerPasskeyParams as t, type RemoveRecoveryMethodOptions as u, type RemoveRecoveryMethodReturnType as v, type RemoveSignerOptions as w, type ServerSignerConfig as x, type Signature as y, type Signer$1 as z };
|
package/dist/utils/constants.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkAIAYUJJGcjs = require('../chunk-AIAYUJJG.cjs');require('../chunk-DSIFRRBS.cjs');exports.SDK_NAME = _chunkAIAYUJJGcjs.c; exports.SDK_VERSION = _chunkAIAYUJJGcjs.b; exports.STATUS_POLLING_INTERVAL_MS = _chunkAIAYUJJGcjs.d; exports.WALLETS_SERVICE = _chunkAIAYUJJGcjs.a;
|
package/dist/utils/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d}from"../chunk-
|
|
1
|
+
import{a,b,c,d}from"../chunk-BVFMFBOG.js";import"../chunk-NU7VF7MC.js";export{c as SDK_NAME,b as SDK_VERSION,d as STATUS_POLLING_INTERVAL_MS,a as WALLETS_SERVICE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOMTRYUKHcjs = require('../../chunk-OMTRYUKH.cjs');require('../../chunk-GSNFNRH2.cjs');require('../../chunk-3VYGTPRF.cjs');require('../../chunk-VS6I4S7X.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-T5EOJ3ZF.cjs');require('../../chunk-AIAYUJJG.cjs');require('../../chunk-DSIFRRBS.cjs');exports.IframeDeviceSignerKeyStorage = _chunkOMTRYUKHcjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-IGO2ME4H.js";import"../../chunk-NZXYWQE5.js";import"../../chunk-IOSADDL5.js";import"../../chunk-KOHPRJDP.js";import"../../chunk-455NK5LB.js";import"../../chunk-VOFCBB2P.js";import"../../chunk-BVFMFBOG.js";import"../../chunk-NU7VF7MC.js";export{a as IframeDeviceSignerKeyStorage};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeviceSignerKeyStorage } from './DeviceSignerKeyStorage.cjs';
|
|
2
|
-
import { D as DeviceSignerConfig } from '../../types-
|
|
2
|
+
import { D as DeviceSignerConfig } from '../../types-PtseJnku.cjs';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../../api/gen/types.gen.cjs';
|
|
5
5
|
import 'ox';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeviceSignerKeyStorage } from './DeviceSignerKeyStorage.js';
|
|
2
|
-
import { D as DeviceSignerConfig } from '../../types-
|
|
2
|
+
import { D as DeviceSignerConfig } from '../../types-BzTdj2KC.js';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../../api/gen/types.gen.js';
|
|
5
5
|
import 'ox';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-CUHDOBKN.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-CUHDOBKN.cjs');var _chunkOMTRYUKHcjs = require('../../chunk-OMTRYUKH.cjs');require('../../chunk-GSNFNRH2.cjs');var _chunk3VYGTPRFcjs = require('../../chunk-3VYGTPRF.cjs');var _chunkGMU3ZYLScjs = require('../../chunk-GMU3ZYLS.cjs');require('../../chunk-VS6I4S7X.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-T5EOJ3ZF.cjs');require('../../chunk-AIAYUJJG.cjs');require('../../chunk-DSIFRRBS.cjs');exports.DeviceSignerKeyStorage = _chunk3VYGTPRFcjs.a; exports.IframeDeviceSignerKeyStorage = _chunkOMTRYUKHcjs.a; exports.createDeviceSigner = _chunkGMU3ZYLScjs.a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { BiometricPolicy, DeviceSignerKeyStorage } from './DeviceSignerKeyStorage.cjs';
|
|
2
2
|
export { BiometricRequestHandler, IframeDeviceSignerKeyStorage } from './IframeDeviceSignerKeyStorage.cjs';
|
|
3
3
|
export { createDeviceSigner } from './createDeviceSigner.cjs';
|
|
4
|
-
import '../../types-
|
|
4
|
+
import '../../types-PtseJnku.cjs';
|
|
5
5
|
import 'viem';
|
|
6
6
|
import '../../api/gen/types.gen.cjs';
|
|
7
7
|
import 'ox';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { BiometricPolicy, DeviceSignerKeyStorage } from './DeviceSignerKeyStorage.js';
|
|
2
2
|
export { BiometricRequestHandler, IframeDeviceSignerKeyStorage } from './IframeDeviceSignerKeyStorage.js';
|
|
3
3
|
export { createDeviceSigner } from './createDeviceSigner.js';
|
|
4
|
-
import '../../types-
|
|
4
|
+
import '../../types-BzTdj2KC.js';
|
|
5
5
|
import 'viem';
|
|
6
6
|
import '../../api/gen/types.gen.js';
|
|
7
7
|
import 'ox';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../chunk-TOAFCAVT.js";import{a as b}from"../../chunk-
|
|
1
|
+
import"../../chunk-TOAFCAVT.js";import{a as b}from"../../chunk-IGO2ME4H.js";import"../../chunk-NZXYWQE5.js";import{a}from"../../chunk-IOSADDL5.js";import{a as c}from"../../chunk-5LNDUSMZ.js";import"../../chunk-KOHPRJDP.js";import"../../chunk-455NK5LB.js";import"../../chunk-VOFCBB2P.js";import"../../chunk-BVFMFBOG.js";import"../../chunk-NU7VF7MC.js";export{a as DeviceSignerKeyStorage,b as IframeDeviceSignerKeyStorage,c as createDeviceSigner};
|
package/dist/utils/locators.d.ts
CHANGED
package/dist/utils/recovery.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkMUOGCO7Dcjs = require('../chunk-MUOGCO7D.cjs');require('../chunk-VS6I4S7X.cjs');require('../chunk-CCIGWTAO.cjs');require('../chunk-T5EOJ3ZF.cjs');require('../chunk-AIAYUJJG.cjs');require('../chunk-DSIFRRBS.cjs');exports.hasRecoveryMethodList = _chunkMUOGCO7Dcjs.b; exports.recoveryMethodsFromCreateArgs = _chunkMUOGCO7Dcjs.a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chain } from '../chains/chains.cjs';
|
|
2
|
-
import {
|
|
2
|
+
import { U as WalletCreateArgs, a6 as RecoverySignerConfigFor } from '../types-PtseJnku.cjs';
|
|
3
3
|
import '@crossmint/common-sdk-base';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import '../api/gen/types.gen.cjs';
|
|
@@ -10,7 +10,14 @@ import '@solana/web3.js';
|
|
|
10
10
|
import 'abitype';
|
|
11
11
|
import './device-signers/DeviceSignerKeyStorage.cjs';
|
|
12
12
|
|
|
13
|
-
/**
|
|
14
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Reads and normalizes the recovery methods from creation args.
|
|
15
|
+
*
|
|
16
|
+
* `recoveryMethods` is the source of truth. The deprecated `recovery` is routed to it: a single method becomes a
|
|
17
|
+
* one-entry list, and a list is used as is, so pre-1.17 callers keep working.
|
|
18
|
+
*/
|
|
19
|
+
declare function recoveryMethodsFromCreateArgs<C extends Chain>(args: Pick<WalletCreateArgs<C>, "recovery" | "recoveryMethods">): Array<RecoverySignerConfigFor<C>>;
|
|
20
|
+
/** True when the caller supplied a list of recovery methods, through `recoveryMethods` or a list under the deprecated `recovery`. */
|
|
21
|
+
declare function hasRecoveryMethodList<C extends Chain>(args: Pick<WalletCreateArgs<C>, "recovery" | "recoveryMethods">): boolean;
|
|
15
22
|
|
|
16
|
-
export {
|
|
23
|
+
export { hasRecoveryMethodList, recoveryMethodsFromCreateArgs };
|
package/dist/utils/recovery.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chain } from '../chains/chains.js';
|
|
2
|
-
import {
|
|
2
|
+
import { U as WalletCreateArgs, a6 as RecoverySignerConfigFor } from '../types-BzTdj2KC.js';
|
|
3
3
|
import '@crossmint/common-sdk-base';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import '../api/gen/types.gen.js';
|
|
@@ -10,7 +10,14 @@ import '@solana/web3.js';
|
|
|
10
10
|
import 'abitype';
|
|
11
11
|
import './device-signers/DeviceSignerKeyStorage.js';
|
|
12
12
|
|
|
13
|
-
/**
|
|
14
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Reads and normalizes the recovery methods from creation args.
|
|
15
|
+
*
|
|
16
|
+
* `recoveryMethods` is the source of truth. The deprecated `recovery` is routed to it: a single method becomes a
|
|
17
|
+
* one-entry list, and a list is used as is, so pre-1.17 callers keep working.
|
|
18
|
+
*/
|
|
19
|
+
declare function recoveryMethodsFromCreateArgs<C extends Chain>(args: Pick<WalletCreateArgs<C>, "recovery" | "recoveryMethods">): Array<RecoverySignerConfigFor<C>>;
|
|
20
|
+
/** True when the caller supplied a list of recovery methods, through `recoveryMethods` or a list under the deprecated `recovery`. */
|
|
21
|
+
declare function hasRecoveryMethodList<C extends Chain>(args: Pick<WalletCreateArgs<C>, "recovery" | "recoveryMethods">): boolean;
|
|
15
22
|
|
|
16
|
-
export {
|
|
23
|
+
export { hasRecoveryMethodList, recoveryMethodsFromCreateArgs };
|