@crossmint/wallets-sdk 1.17.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/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 +1 -1
- package/dist/chains/chain-adapter.d.ts +1 -1
- 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-NZHMWFOO.js → chunk-6PNYLGI4.js} +1 -1
- package/dist/{chunk-HGH3VTQM.cjs → chunk-7PRP6CYJ.cjs} +1 -1
- package/dist/chunk-7SDHPRH6.js +1 -0
- package/dist/{chunk-M42AKAZK.cjs → chunk-AIAYUJJG.cjs} +1 -1
- package/dist/chunk-BHLJZVGK.js +1 -0
- package/dist/chunk-BVFMFBOG.js +1 -0
- package/dist/{chunk-TLCSIHPP.cjs → chunk-DVLQXFLW.cjs} +1 -1
- package/dist/{chunk-4HOB7SBT.cjs → chunk-F7DCMK3I.cjs} +1 -1
- package/dist/{chunk-2KMXYKU6.js → chunk-FN4NQTKS.js} +1 -1
- package/dist/chunk-FYWSZVID.cjs +1 -0
- package/dist/{chunk-V5D6CUMS.js → chunk-GC55YCPK.js} +1 -1
- package/dist/chunk-GPE7YQZ2.js +1 -0
- package/dist/chunk-HUGHRNQ3.js +1 -0
- package/dist/{chunk-C2LINO2L.js → chunk-IGO2ME4H.js} +1 -1
- package/dist/chunk-IN5ZETZE.cjs +1 -0
- package/dist/chunk-INPOGMPS.js +1 -0
- package/dist/{chunk-F7ERKXXH.js → chunk-JQIKTIVR.js} +1 -1
- package/dist/chunk-KSPUJL3Z.js +1 -0
- package/dist/{chunk-DWUBPIYD.cjs → chunk-LVSOX532.cjs} +1 -1
- package/dist/chunk-M76VM347.cjs +1 -0
- package/dist/{chunk-NWFQRNBN.cjs → chunk-MUOGCO7D.cjs} +1 -1
- package/dist/{chunk-MJZZHBC2.cjs → chunk-NDYXTEUL.cjs} +1 -1
- package/dist/{chunk-NB6EQOHP.cjs → chunk-O673G7YH.cjs} +1 -1
- package/dist/chunk-OIBCJAF2.cjs +1 -0
- package/dist/{chunk-PZRFDTBH.cjs → chunk-OMTRYUKH.cjs} +1 -1
- package/dist/chunk-OS5IMZ5L.cjs +1 -0
- package/dist/{chunk-ZMU6KU3L.js → chunk-PJAMNLC2.js} +1 -1
- package/dist/{chunk-6M2N2ULU.js → chunk-PU3WUUJ6.js} +1 -1
- package/dist/{chunk-52EJ53LP.cjs → chunk-QQDUYSLH.cjs} +1 -1
- package/dist/{chunk-HXNRP6QX.js → chunk-RE6GCFXZ.js} +1 -1
- package/dist/chunk-RFBVYUAZ.cjs +1 -0
- package/dist/chunk-SH6HXAB2.js +1 -0
- package/dist/{chunk-7RC4ESQH.cjs → chunk-SIBFVGGQ.cjs} +1 -1
- package/dist/{chunk-HHIMK2FC.js → chunk-T4RCLJ5G.js} +1 -1
- package/dist/{chunk-W3BYSI7F.cjs → chunk-T5EOJ3ZF.cjs} +1 -1
- package/dist/{chunk-4JR5AF3R.cjs → chunk-TFAJDUF3.cjs} +1 -1
- package/dist/chunk-V37HIVBA.cjs +1 -0
- package/dist/{chunk-2QCYHRPX.cjs → chunk-VIOAYLVZ.cjs} +1 -1
- package/dist/{chunk-L7DGQX3V.js → chunk-VNFATNQJ.js} +1 -1
- package/dist/{chunk-INUEMQPG.js → chunk-VOFCBB2P.js} +1 -1
- package/dist/{chunk-TWYVUVLB.js → chunk-VPUAUWI4.js} +1 -1
- package/dist/chunk-WX6KBOP5.js +1 -0
- package/dist/{chunk-ABOMDBIJ.js → chunk-X4GV76CR.js} +1 -1
- package/dist/{chunk-C2QJ3WKC.js → chunk-X56YW5CL.js} +1 -1
- package/dist/chunk-XUWIECBY.cjs +1 -0
- package/dist/{chunk-WP4GRRR2.js → chunk-YQ4GAIPZ.js} +1 -1
- package/dist/{chunk-TDI66D63.cjs → chunk-ZAIKHHRP.cjs} +1 -1
- package/dist/{chunk-LJRWHLTK.cjs → chunk-ZDKIEL5N.cjs} +1 -1
- package/dist/{chunk-TA5VIPMH.cjs → chunk-ZHI5V3DM.cjs} +1 -1
- package/dist/{chunk-W222P6C6.cjs → chunk-ZRIMMPXR.cjs} +1 -1
- package/dist/{chunk-BTTVP3MP.js → chunk-ZV2UOOBX.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- 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 +1 -1
- package/dist/sdk.d.ts +1 -1
- 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.d.cts +1 -1
- package/dist/signers/descriptors/index.d.ts +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.d.cts +1 -1
- package/dist/signers/descriptors/server.d.ts +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 +1 -1
- package/dist/signers/non-custodial/index.d.ts +1 -1
- 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 +2 -2
- package/dist/signers/non-custodial/ncs-signer.d.ts +2 -2
- 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 +1 -1
- package/dist/signers/non-custodial/ncs-solana-signer.d.ts +1 -1
- 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.d.cts +1 -1
- package/dist/signers/server/assemble-server-signer.d.ts +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.d.cts +1 -1
- package/dist/signers/server/index.d.ts +1 -1
- package/dist/signers/server/resolver.d.cts +1 -1
- package/dist/signers/server/resolver.d.ts +1 -1
- package/dist/signers/server/solana-server-signer.d.cts +1 -1
- package/dist/signers/server/solana-server-signer.d.ts +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.d.cts +1 -1
- package/dist/signers/solana-external-wallet.d.ts +1 -1
- package/dist/signers/stellar-external-wallet.d.cts +1 -1
- package/dist/signers/stellar-external-wallet.d.ts +1 -1
- package/dist/signers/types.d.cts +1 -1
- package/dist/signers/types.d.ts +1 -1
- package/dist/{types-Bxb54lGe.d.ts → types-BzTdj2KC.d.ts} +23 -2
- package/dist/{types-B4kzDRWb.d.cts → types-PtseJnku.d.cts} +23 -2
- 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 +1 -1
- package/dist/utils/recovery.d.ts +1 -1
- 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 +1 -1
- package/dist/wallets/wallet-factory.d.ts +1 -1
- 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-3NAV25KH.js +0 -1
- package/dist/chunk-5X66U2JL.cjs +0 -1
- package/dist/chunk-6BNGRRNH.cjs +0 -1
- package/dist/chunk-7ER4XMKQ.js +0 -1
- package/dist/chunk-7SRQ77HY.cjs +0 -1
- package/dist/chunk-A3NUC7CS.js +0 -1
- package/dist/chunk-AA2XAWEU.cjs +0 -1
- package/dist/chunk-AF6NBGQT.js +0 -1
- package/dist/chunk-BK4RGDMJ.cjs +0 -1
- package/dist/chunk-JGLNAY5C.js +0 -1
- package/dist/chunk-K4KSI3GM.js +0 -1
- package/dist/chunk-MDAPK5FG.js +0 -1
- package/dist/chunk-NUCKXAQL.js +0 -1
- package/dist/chunk-QV4LLMZM.js +0 -1
- package/dist/chunk-UY7L4D4M.cjs +0 -1
- package/dist/chunk-WIKKXJH7.cjs +0 -1
- package/dist/chunk-YKRLB374.js +0 -1
- package/dist/chunk-ZATY4PKV.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
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';
|
|
@@ -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;
|
|
@@ -514,6 +524,17 @@ type RemoveSignerParams = {
|
|
|
514
524
|
};
|
|
515
525
|
type RemoveSignerResponse = WalletsTransactionV2025ResponseDtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
516
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;
|
|
517
538
|
type GetSignersResponse = Array<DelegatedSignerV2025DtoClass> | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
518
539
|
type Signer = DelegatedSignerV2025DtoClass;
|
|
519
540
|
type SendParams = SendTokenDto;
|
|
@@ -524,4 +545,4 @@ type EvmWalletLocator = `me:evm:${WalletType}` | Address;
|
|
|
524
545
|
type SolanaWalletLocator = `me:solana:${WalletType}` | SolanaAddress;
|
|
525
546
|
type WalletLocator = EvmWalletLocator | SolanaWalletLocator;
|
|
526
547
|
|
|
527
|
-
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';
|
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';
|
package/dist/utils/recovery.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../chunk-
|
|
1
|
+
import{a,b}from"../chunk-6PNYLGI4.js";import"../chunk-KOHPRJDP.js";import"../chunk-455NK5LB.js";import"../chunk-VOFCBB2P.js";import"../chunk-BVFMFBOG.js";import"../chunk-NU7VF7MC.js";export{b as hasRecoveryMethodList,a as recoveryMethodsFromCreateArgs};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chain } from '../chains/chains.cjs';
|
|
2
|
-
import {
|
|
2
|
+
import { H as SignerConfigForChain, t as RegisterSignerPasskeyParams, n as ExternalWalletRegistrationConfig, I as SignerLocator, a7 as PasskeySignerConfig } from '../types-PtseJnku.cjs';
|
|
3
3
|
import '@crossmint/common-sdk-base';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import '../api/gen/types.gen.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chain } from '../chains/chains.js';
|
|
2
|
-
import {
|
|
2
|
+
import { H as SignerConfigForChain, t as RegisterSignerPasskeyParams, n as ExternalWalletRegistrationConfig, I as SignerLocator, a7 as PasskeySignerConfig } from '../types-BzTdj2KC.js';
|
|
3
3
|
import '@crossmint/common-sdk-base';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import '../api/gen/types.gen.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a8 as Signer, z as Signer$1, a9 as PendingSignerOperation, J as SignerStatus } from '../types-PtseJnku.cjs';
|
|
2
2
|
import { Chain } from '../chains/chains.cjs';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../api/gen/types.gen.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a8 as Signer, z as Signer$1, a9 as PendingSignerOperation, J as SignerStatus } from '../types-BzTdj2KC.js';
|
|
2
2
|
import { Chain } from '../chains/chains.js';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../api/gen/types.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRFBVYUAZcjs = require('../../chunk-RFBVYUAZ.cjs');require('../../chunk-FYWSZVID.cjs');require('../../chunk-F7DCMK3I.cjs');require('../../chunk-7PRP6CYJ.cjs');require('../../chunk-LVSOX532.cjs');require('../../chunk-WY5KEIIJ.cjs');require('../../chunk-CUHDOBKN.cjs');require('../../chunk-OMTRYUKH.cjs');require('../../chunk-GSNFNRH2.cjs');require('../../chunk-3VYGTPRF.cjs');require('../../chunk-GMU3ZYLS.cjs');require('../../chunk-AXFHMPWT.cjs');require('../../chunk-IQ6EAHDU.cjs');require('../../chunk-P5VJ455G.cjs');require('../../chunk-T5LUBX5J.cjs');require('../../chunk-3RVLLQ4M.cjs');require('../../chunk-D6UK5JAA.cjs');require('../../chunk-XFUCYR24.cjs');require('../../chunk-KQIDRPAB.cjs');require('../../chunk-CZC2MNVK.cjs');require('../../chunk-R2XC4F3M.cjs');require('../../chunk-TFAJDUF3.cjs');require('../../chunk-5IC7UWND.cjs');require('../../chunk-PO6S7UR3.cjs');require('../../chunk-XUWIECBY.cjs');require('../../chunk-IN5ZETZE.cjs');require('../../chunk-V37HIVBA.cjs');require('../../chunk-M76VM347.cjs');require('../../chunk-ATIC4ENG.cjs');require('../../chunk-7FIAYQ4O.cjs');require('../../chunk-IGRPHTXZ.cjs');require('../../chunk-Q66YRLSW.cjs');require('../../chunk-BIL7GVBL.cjs');require('../../chunk-2D6B7AZ6.cjs');require('../../chunk-VMDJJX7P.cjs');require('../../chunk-LWA3SX6Z.cjs');require('../../chunk-2YZQ4YYU.cjs');require('../../chunk-PHIW7FUJ.cjs');require('../../chunk-5FH7WFWL.cjs');require('../../chunk-STB2VIIK.cjs');require('../../chunk-5FVDLMWW.cjs');require('../../chunk-HCV4M7X2.cjs');require('../../chunk-XWQC6G7N.cjs');require('../../chunk-R4SBFRTM.cjs');require('../../chunk-HYWIWJ6H.cjs');require('../../chunk-SCEPJO4Q.cjs');require('../../chunk-PWVGLO7T.cjs');require('../../chunk-CDHMNLZ6.cjs');require('../../chunk-OS5IMZ5L.cjs');require('../../chunk-QQDUYSLH.cjs');require('../../chunk-ZHI5V3DM.cjs');require('../../chunk-VIOAYLVZ.cjs');require('../../chunk-JNKTRQPS.cjs');require('../../chunk-ENU3EKBG.cjs');require('../../chunk-OIBCJAF2.cjs');require('../../chunk-OQFZL5LI.cjs');require('../../chunk-AUO6R32H.cjs');require('../../chunk-ZPO3XSWU.cjs');require('../../chunk-IR5WN6FQ.cjs');require('../../chunk-GEY574TH.cjs');require('../../chunk-UE3WVHTM.cjs');require('../../chunk-5X4EOJFG.cjs');require('../../chunk-TCDH5Q6Q.cjs');require('../../chunk-HRUMWG2F.cjs');require('../../chunk-VS6I4S7X.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-T5EOJ3ZF.cjs');require('../../chunk-AIAYUJJG.cjs');var _chunkDSIFRRBScjs = require('../../chunk-DSIFRRBS.cjs');var _vitest = require('vitest');var _commonsdkbase = require('@crossmint/common-sdk-base');var s=e=>{switch(e){case"solana":return"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM";case"stellar":return"GCKFBEIYTKP6RCZX6LRQW2JVAVLMGGVSNESWKN7L2YGQNI2DCOHVHJVY";default:return"0x1234567890123456789012345678901234567890"}},l=(e,t)=>{if(e==="api-key")return"api-key";switch(t){case"solana":return"external-wallet:ABC123";case"stellar":return"external-wallet:GABC123";default:return"external-wallet:0x123"}},C= exports.createMockSigner =(e="api-key",t="base-sepolia")=>e==="api-key"?{type:e}:{type:e,address:l(e,t).split(":")[1],onSign:_vitest.vi.fn().mockResolvedValue("0xsigned")},f= exports.createMockWallet =(e,t,i="api-key",r)=>_chunkDSIFRRBScjs.h.call(void 0, void 0,null,function*(){let p=C(i,e),a=new (0, _chunkRFBVYUAZcjs.a)({chain:e,address:s(e),recovery:r!=null?r:{type:"api-key"}},t);return _vitest.vi.spyOn(a,"signers").mockImplementation(()=>Promise.resolve([{type:i==="api-key"?"api-key":"external-wallet",address:s(e),locator:l(i,e),status:"success"}])),yield a.useSigner(p),a}),M= exports.createMockApiClient =(e={})=>_chunkDSIFRRBScjs.a.call(void 0, {isServerSide:!1,environment:_commonsdkbase.APIKeyEnvironmentPrefix.STAGING,createTransaction:_vitest.vi.fn(),createSignature:_vitest.vi.fn(),getTransaction:_vitest.vi.fn(),getSignature:_vitest.vi.fn(),approveTransaction:_vitest.vi.fn(),approveSignature:_vitest.vi.fn(),getBalance:_vitest.vi.fn(),send:_vitest.vi.fn(),getWallet:_vitest.vi.fn(),registerSigner:_vitest.vi.fn(),removeSigner:_vitest.vi.fn(),registerRecoveryMethod:_vitest.vi.fn(),removeRecoveryMethod:_vitest.vi.fn(),getSigner:_vitest.vi.fn()},e),m= exports.createMockSolanaSerializedTransaction =()=>"AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAgEDBQrKxEIIPWsDwcGCzLQ7FGIHQ38p0dZq6bG2v2wUAUqMx3jV1jZ0";exports.createMockApiClient = M; exports.createMockSigner = C; exports.createMockSolanaSerializedTransaction = m; exports.createMockWallet = f;
|
|
@@ -2,7 +2,7 @@ import { MockedFunction } from 'vitest';
|
|
|
2
2
|
import { APIKeyEnvironmentPrefix } from '@crossmint/common-sdk-base';
|
|
3
3
|
import { Wallet } from '../wallet.cjs';
|
|
4
4
|
import { ApiClient } from '../../api/client.cjs';
|
|
5
|
-
import {
|
|
5
|
+
import { H as SignerConfigForChain, R as RecoverySignerConfigForChain } from '../../types-PtseJnku.cjs';
|
|
6
6
|
import { Chain } from '../../chains/chains.cjs';
|
|
7
7
|
import '../../api/gen/types.gen.cjs';
|
|
8
8
|
import '../services/signer-manager.cjs';
|
|
@@ -31,6 +31,8 @@ type MockedApiClient = {
|
|
|
31
31
|
getWallet: MockedFunction<ApiClient["getWallet"]>;
|
|
32
32
|
registerSigner: MockedFunction<ApiClient["registerSigner"]>;
|
|
33
33
|
removeSigner: MockedFunction<ApiClient["removeSigner"]>;
|
|
34
|
+
registerRecoveryMethod: MockedFunction<ApiClient["registerRecoveryMethod"]>;
|
|
35
|
+
removeRecoveryMethod: MockedFunction<ApiClient["removeRecoveryMethod"]>;
|
|
34
36
|
getSigner: MockedFunction<ApiClient["getSigner"]>;
|
|
35
37
|
};
|
|
36
38
|
declare const createMockSigner: <C extends Chain>(type?: "api-key" | "external-wallet", chain?: C) => SignerConfigForChain<C>;
|
|
@@ -2,7 +2,7 @@ import { MockedFunction } from 'vitest';
|
|
|
2
2
|
import { APIKeyEnvironmentPrefix } from '@crossmint/common-sdk-base';
|
|
3
3
|
import { Wallet } from '../wallet.js';
|
|
4
4
|
import { ApiClient } from '../../api/client.js';
|
|
5
|
-
import {
|
|
5
|
+
import { H as SignerConfigForChain, R as RecoverySignerConfigForChain } from '../../types-BzTdj2KC.js';
|
|
6
6
|
import { Chain } from '../../chains/chains.js';
|
|
7
7
|
import '../../api/gen/types.gen.js';
|
|
8
8
|
import '../services/signer-manager.js';
|
|
@@ -31,6 +31,8 @@ type MockedApiClient = {
|
|
|
31
31
|
getWallet: MockedFunction<ApiClient["getWallet"]>;
|
|
32
32
|
registerSigner: MockedFunction<ApiClient["registerSigner"]>;
|
|
33
33
|
removeSigner: MockedFunction<ApiClient["removeSigner"]>;
|
|
34
|
+
registerRecoveryMethod: MockedFunction<ApiClient["registerRecoveryMethod"]>;
|
|
35
|
+
removeRecoveryMethod: MockedFunction<ApiClient["removeRecoveryMethod"]>;
|
|
34
36
|
getSigner: MockedFunction<ApiClient["getSigner"]>;
|
|
35
37
|
};
|
|
36
38
|
declare const createMockSigner: <C extends Chain>(type?: "api-key" | "external-wallet", chain?: C) => SignerConfigForChain<C>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c}from"../../chunk-
|
|
1
|
+
import{a as c}from"../../chunk-BHLJZVGK.js";import"../../chunk-KSPUJL3Z.js";import"../../chunk-GC55YCPK.js";import"../../chunk-YQ4GAIPZ.js";import"../../chunk-PJAMNLC2.js";import"../../chunk-PCRZWMYM.js";import"../../chunk-TOAFCAVT.js";import"../../chunk-IGO2ME4H.js";import"../../chunk-NZXYWQE5.js";import"../../chunk-IOSADDL5.js";import"../../chunk-5LNDUSMZ.js";import"../../chunk-BZYYVTXK.js";import"../../chunk-3UROOLIH.js";import"../../chunk-25TINDQ4.js";import"../../chunk-SWQSW2AD.js";import"../../chunk-WVKODEVW.js";import"../../chunk-AEO4REZV.js";import"../../chunk-X7V2C53V.js";import"../../chunk-PKFCOQOM.js";import"../../chunk-BV6IQIQK.js";import"../../chunk-FTUJ5XHD.js";import"../../chunk-T4RCLJ5G.js";import"../../chunk-L52GDMSH.js";import"../../chunk-YDZRBHS3.js";import"../../chunk-WX6KBOP5.js";import"../../chunk-5V2RGAOS.js";import"../../chunk-HUGHRNQ3.js";import"../../chunk-SH6HXAB2.js";import"../../chunk-IHMMTMFG.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-JLWNRQ4S.js";import"../../chunk-EM3D5Q3A.js";import"../../chunk-JAXFDUNN.js";import"../../chunk-K7BPGUFU.js";import"../../chunk-P3P5Q5XX.js";import"../../chunk-MN2BGRRJ.js";import"../../chunk-FQ5F3VYJ.js";import"../../chunk-HAQMNZO5.js";import"../../chunk-2YLRFJ66.js";import"../../chunk-AB2JJTW4.js";import"../../chunk-MLROTECD.js";import"../../chunk-X56YW5CL.js";import"../../chunk-X4GV76CR.js";import"../../chunk-VPUAUWI4.js";import"../../chunk-VNFATNQJ.js";import"../../chunk-B4GYB3XY.js";import"../../chunk-OQZTL6ZG.js";import"../../chunk-INPOGMPS.js";import"../../chunk-C6E6WC4P.js";import"../../chunk-V5NY4W5H.js";import"../../chunk-CGQCRDG7.js";import"../../chunk-KKQBZXFE.js";import"../../chunk-S3DYQVRD.js";import"../../chunk-KUP7H7X2.js";import"../../chunk-FT5EVMLB.js";import"../../chunk-QLOW4D2N.js";import"../../chunk-SVIKBM3S.js";import"../../chunk-KOHPRJDP.js";import"../../chunk-455NK5LB.js";import"../../chunk-VOFCBB2P.js";import"../../chunk-BVFMFBOG.js";import{a as o,h as A}from"../../chunk-NU7VF7MC.js";import{vi as n}from"vitest";import{APIKeyEnvironmentPrefix as g}from"@crossmint/common-sdk-base";var s=e=>{switch(e){case"solana":return"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM";case"stellar":return"GCKFBEIYTKP6RCZX6LRQW2JVAVLMGGVSNESWKN7L2YGQNI2DCOHVHJVY";default:return"0x1234567890123456789012345678901234567890"}},l=(e,t)=>{if(e==="api-key")return"api-key";switch(t){case"solana":return"external-wallet:ABC123";case"stellar":return"external-wallet:GABC123";default:return"external-wallet:0x123"}},C=(e="api-key",t="base-sepolia")=>e==="api-key"?{type:e}:{type:e,address:l(e,t).split(":")[1],onSign:n.fn().mockResolvedValue("0xsigned")},M=(e,t,i="api-key",r)=>A(void 0,null,function*(){let p=C(i,e),a=new c({chain:e,address:s(e),recovery:r!=null?r:{type:"api-key"}},t);return n.spyOn(a,"signers").mockImplementation(()=>Promise.resolve([{type:i==="api-key"?"api-key":"external-wallet",address:s(e),locator:l(i,e),status:"success"}])),yield a.useSigner(p),a}),m=(e={})=>o({isServerSide:!1,environment:g.STAGING,createTransaction:n.fn(),createSignature:n.fn(),getTransaction:n.fn(),getSignature:n.fn(),approveTransaction:n.fn(),approveSignature:n.fn(),getBalance:n.fn(),send:n.fn(),getWallet:n.fn(),registerSigner:n.fn(),removeSigner:n.fn(),registerRecoveryMethod:n.fn(),removeRecoveryMethod:n.fn(),getSigner:n.fn()},e),v=()=>"AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAgEDBQrKxEIIPWsDwcGCzLQ7FGIHQ38p0dZq6bG2v2wUAUqMx3jV1jZ0";export{m as createMockApiClient,C as createMockSigner,v as createMockSolanaSerializedTransaction,M as createMockWallet};
|
package/dist/wallets/evm.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZAIKHHRPcjs = require('../chunk-ZAIKHHRP.cjs');require('../chunk-RFBVYUAZ.cjs');require('../chunk-FYWSZVID.cjs');require('../chunk-F7DCMK3I.cjs');require('../chunk-7PRP6CYJ.cjs');require('../chunk-LVSOX532.cjs');require('../chunk-WY5KEIIJ.cjs');require('../chunk-CUHDOBKN.cjs');require('../chunk-OMTRYUKH.cjs');require('../chunk-GSNFNRH2.cjs');require('../chunk-3VYGTPRF.cjs');require('../chunk-GMU3ZYLS.cjs');require('../chunk-AXFHMPWT.cjs');require('../chunk-IQ6EAHDU.cjs');require('../chunk-P5VJ455G.cjs');require('../chunk-T5LUBX5J.cjs');require('../chunk-3RVLLQ4M.cjs');require('../chunk-D6UK5JAA.cjs');require('../chunk-XFUCYR24.cjs');require('../chunk-KQIDRPAB.cjs');require('../chunk-CZC2MNVK.cjs');require('../chunk-R2XC4F3M.cjs');require('../chunk-TFAJDUF3.cjs');require('../chunk-5IC7UWND.cjs');require('../chunk-PO6S7UR3.cjs');require('../chunk-XUWIECBY.cjs');require('../chunk-IN5ZETZE.cjs');require('../chunk-V37HIVBA.cjs');require('../chunk-M76VM347.cjs');require('../chunk-ATIC4ENG.cjs');require('../chunk-7FIAYQ4O.cjs');require('../chunk-IGRPHTXZ.cjs');require('../chunk-Q66YRLSW.cjs');require('../chunk-BIL7GVBL.cjs');require('../chunk-2D6B7AZ6.cjs');require('../chunk-VMDJJX7P.cjs');require('../chunk-LWA3SX6Z.cjs');require('../chunk-2YZQ4YYU.cjs');require('../chunk-PHIW7FUJ.cjs');require('../chunk-5FH7WFWL.cjs');require('../chunk-STB2VIIK.cjs');require('../chunk-5FVDLMWW.cjs');require('../chunk-HCV4M7X2.cjs');require('../chunk-XWQC6G7N.cjs');require('../chunk-R4SBFRTM.cjs');require('../chunk-HYWIWJ6H.cjs');require('../chunk-SCEPJO4Q.cjs');require('../chunk-PWVGLO7T.cjs');require('../chunk-CDHMNLZ6.cjs');require('../chunk-OS5IMZ5L.cjs');require('../chunk-QQDUYSLH.cjs');require('../chunk-ZHI5V3DM.cjs');require('../chunk-VIOAYLVZ.cjs');require('../chunk-JNKTRQPS.cjs');require('../chunk-ENU3EKBG.cjs');require('../chunk-OIBCJAF2.cjs');require('../chunk-OQFZL5LI.cjs');require('../chunk-AUO6R32H.cjs');require('../chunk-ZPO3XSWU.cjs');require('../chunk-IR5WN6FQ.cjs');require('../chunk-GEY574TH.cjs');require('../chunk-UE3WVHTM.cjs');require('../chunk-5X4EOJFG.cjs');require('../chunk-TCDH5Q6Q.cjs');require('../chunk-HRUMWG2F.cjs');require('../chunk-VS6I4S7X.cjs');require('../chunk-CCIGWTAO.cjs');require('../chunk-T5EOJ3ZF.cjs');require('../chunk-AIAYUJJG.cjs');require('../chunk-DSIFRRBS.cjs');exports.EVMWallet = _chunkZAIKHHRPcjs.a;
|
package/dist/wallets/evm.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as viem__types_actions_siwe_verifySiweMessage from 'viem/_types/actions/siwe/verifySiweMessage';
|
|
2
2
|
import * as viem from 'viem';
|
|
3
3
|
import { HttpTransport } from 'viem';
|
|
4
|
-
import { E as EVMTransactionInput, T as Transaction,
|
|
4
|
+
import { E as EVMTransactionInput, T as Transaction, aa as PrepareOnly, ab as SignMessageInput, y as Signature, ac as SignTypedDataInput } from '../types-PtseJnku.cjs';
|
|
5
5
|
import { Wallet } from './wallet.cjs';
|
|
6
6
|
import { EVMChain, Chain } from '../chains/chains.cjs';
|
|
7
7
|
import '../api/gen/types.gen.cjs';
|
package/dist/wallets/evm.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as viem__types_actions_siwe_verifySiweMessage from 'viem/_types/actions/siwe/verifySiweMessage';
|
|
2
2
|
import * as viem from 'viem';
|
|
3
3
|
import { HttpTransport } from 'viem';
|
|
4
|
-
import { E as EVMTransactionInput, T as Transaction,
|
|
4
|
+
import { E as EVMTransactionInput, T as Transaction, aa as PrepareOnly, ab as SignMessageInput, y as Signature, ac as SignTypedDataInput } from '../types-BzTdj2KC.js';
|
|
5
5
|
import { Wallet } from './wallet.js';
|
|
6
6
|
import { EVMChain, Chain } from '../chains/chains.js';
|
|
7
7
|
import '../api/gen/types.gen.js';
|
package/dist/wallets/evm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-PU3WUUJ6.js";import"../chunk-BHLJZVGK.js";import"../chunk-KSPUJL3Z.js";import"../chunk-GC55YCPK.js";import"../chunk-YQ4GAIPZ.js";import"../chunk-PJAMNLC2.js";import"../chunk-PCRZWMYM.js";import"../chunk-TOAFCAVT.js";import"../chunk-IGO2ME4H.js";import"../chunk-NZXYWQE5.js";import"../chunk-IOSADDL5.js";import"../chunk-5LNDUSMZ.js";import"../chunk-BZYYVTXK.js";import"../chunk-3UROOLIH.js";import"../chunk-25TINDQ4.js";import"../chunk-SWQSW2AD.js";import"../chunk-WVKODEVW.js";import"../chunk-AEO4REZV.js";import"../chunk-X7V2C53V.js";import"../chunk-PKFCOQOM.js";import"../chunk-BV6IQIQK.js";import"../chunk-FTUJ5XHD.js";import"../chunk-T4RCLJ5G.js";import"../chunk-L52GDMSH.js";import"../chunk-YDZRBHS3.js";import"../chunk-WX6KBOP5.js";import"../chunk-5V2RGAOS.js";import"../chunk-HUGHRNQ3.js";import"../chunk-SH6HXAB2.js";import"../chunk-IHMMTMFG.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-JLWNRQ4S.js";import"../chunk-EM3D5Q3A.js";import"../chunk-JAXFDUNN.js";import"../chunk-K7BPGUFU.js";import"../chunk-P3P5Q5XX.js";import"../chunk-MN2BGRRJ.js";import"../chunk-FQ5F3VYJ.js";import"../chunk-HAQMNZO5.js";import"../chunk-2YLRFJ66.js";import"../chunk-AB2JJTW4.js";import"../chunk-MLROTECD.js";import"../chunk-X56YW5CL.js";import"../chunk-X4GV76CR.js";import"../chunk-VPUAUWI4.js";import"../chunk-VNFATNQJ.js";import"../chunk-B4GYB3XY.js";import"../chunk-OQZTL6ZG.js";import"../chunk-INPOGMPS.js";import"../chunk-C6E6WC4P.js";import"../chunk-V5NY4W5H.js";import"../chunk-CGQCRDG7.js";import"../chunk-KKQBZXFE.js";import"../chunk-S3DYQVRD.js";import"../chunk-KUP7H7X2.js";import"../chunk-FT5EVMLB.js";import"../chunk-QLOW4D2N.js";import"../chunk-SVIKBM3S.js";import"../chunk-KOHPRJDP.js";import"../chunk-455NK5LB.js";import"../chunk-VOFCBB2P.js";import"../chunk-BVFMFBOG.js";import"../chunk-NU7VF7MC.js";export{a as EVMWallet};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkF7DCMK3Icjs = require('../../chunk-F7DCMK3I.cjs');require('../../chunk-OS5IMZ5L.cjs');require('../../chunk-QQDUYSLH.cjs');require('../../chunk-ZHI5V3DM.cjs');require('../../chunk-VIOAYLVZ.cjs');require('../../chunk-JNKTRQPS.cjs');require('../../chunk-ENU3EKBG.cjs');require('../../chunk-VS6I4S7X.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-T5EOJ3ZF.cjs');require('../../chunk-AIAYUJJG.cjs');require('../../chunk-DSIFRRBS.cjs');exports.formatBalanceResponse = _chunkF7DCMK3Icjs.a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aF as GetBalanceSuccessResponse, aw as TokenBalance, B as Balances } from '../../types-PtseJnku.cjs';
|
|
2
2
|
import { Chain } from '../../chains/chains.cjs';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../../api/gen/types.gen.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aF as GetBalanceSuccessResponse, aw as TokenBalance, B as Balances } from '../../types-BzTdj2KC.js';
|
|
2
2
|
import { Chain } from '../../chains/chains.js';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../../api/gen/types.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-GC55YCPK.js";import"../../chunk-X56YW5CL.js";import"../../chunk-X4GV76CR.js";import"../../chunk-VPUAUWI4.js";import"../../chunk-VNFATNQJ.js";import"../../chunk-B4GYB3XY.js";import"../../chunk-OQZTL6ZG.js";import"../../chunk-KOHPRJDP.js";import"../../chunk-455NK5LB.js";import"../../chunk-VOFCBB2P.js";import"../../chunk-BVFMFBOG.js";import"../../chunk-NU7VF7MC.js";export{a as formatBalanceResponse};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk7PRP6CYJcjs = require('../../chunk-7PRP6CYJ.cjs');require('../../chunk-CUHDOBKN.cjs');require('../../chunk-OMTRYUKH.cjs');require('../../chunk-GSNFNRH2.cjs');require('../../chunk-3VYGTPRF.cjs');require('../../chunk-GMU3ZYLS.cjs');require('../../chunk-AXFHMPWT.cjs');require('../../chunk-IQ6EAHDU.cjs');require('../../chunk-P5VJ455G.cjs');require('../../chunk-T5LUBX5J.cjs');require('../../chunk-3RVLLQ4M.cjs');require('../../chunk-D6UK5JAA.cjs');require('../../chunk-XFUCYR24.cjs');require('../../chunk-KQIDRPAB.cjs');require('../../chunk-CZC2MNVK.cjs');require('../../chunk-TFAJDUF3.cjs');require('../../chunk-5IC7UWND.cjs');require('../../chunk-PO6S7UR3.cjs');require('../../chunk-XUWIECBY.cjs');require('../../chunk-IN5ZETZE.cjs');require('../../chunk-V37HIVBA.cjs');require('../../chunk-M76VM347.cjs');require('../../chunk-ATIC4ENG.cjs');require('../../chunk-7FIAYQ4O.cjs');require('../../chunk-IGRPHTXZ.cjs');require('../../chunk-Q66YRLSW.cjs');require('../../chunk-BIL7GVBL.cjs');require('../../chunk-2D6B7AZ6.cjs');require('../../chunk-VMDJJX7P.cjs');require('../../chunk-LWA3SX6Z.cjs');require('../../chunk-2YZQ4YYU.cjs');require('../../chunk-PHIW7FUJ.cjs');require('../../chunk-5FH7WFWL.cjs');require('../../chunk-STB2VIIK.cjs');require('../../chunk-5FVDLMWW.cjs');require('../../chunk-HCV4M7X2.cjs');require('../../chunk-XWQC6G7N.cjs');require('../../chunk-R4SBFRTM.cjs');require('../../chunk-HYWIWJ6H.cjs');require('../../chunk-SCEPJO4Q.cjs');require('../../chunk-PWVGLO7T.cjs');require('../../chunk-CDHMNLZ6.cjs');require('../../chunk-ENU3EKBG.cjs');require('../../chunk-VS6I4S7X.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-T5EOJ3ZF.cjs');require('../../chunk-AIAYUJJG.cjs');require('../../chunk-DSIFRRBS.cjs');exports.DeviceRecoveryService = _chunk7PRP6CYJcjs.a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Chain } from '../../chains/chains.cjs';
|
|
2
2
|
import { ServerSignerResolver } from '../../signers/server/resolver.cjs';
|
|
3
|
-
import {
|
|
3
|
+
import { V as WalletOptions, z as Signer, H as SignerConfigForChain, D as DeviceSignerConfig, F as SignerAdapter } from '../../types-PtseJnku.cjs';
|
|
4
4
|
import { DeviceSignerKeyStorage } from '../../utils/device-signers/DeviceSignerKeyStorage.cjs';
|
|
5
5
|
import { SignerManager } from './signer-manager.cjs';
|
|
6
6
|
import '@crossmint/common-sdk-base';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Chain } from '../../chains/chains.js';
|
|
2
2
|
import { ServerSignerResolver } from '../../signers/server/resolver.js';
|
|
3
|
-
import {
|
|
3
|
+
import { V as WalletOptions, z as Signer, H as SignerConfigForChain, D as DeviceSignerConfig, F as SignerAdapter } from '../../types-BzTdj2KC.js';
|
|
4
4
|
import { DeviceSignerKeyStorage } from '../../utils/device-signers/DeviceSignerKeyStorage.js';
|
|
5
5
|
import { SignerManager } from './signer-manager.js';
|
|
6
6
|
import '@crossmint/common-sdk-base';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-YQ4GAIPZ.js";import"../../chunk-TOAFCAVT.js";import"../../chunk-IGO2ME4H.js";import"../../chunk-NZXYWQE5.js";import"../../chunk-IOSADDL5.js";import"../../chunk-5LNDUSMZ.js";import"../../chunk-BZYYVTXK.js";import"../../chunk-3UROOLIH.js";import"../../chunk-25TINDQ4.js";import"../../chunk-SWQSW2AD.js";import"../../chunk-WVKODEVW.js";import"../../chunk-AEO4REZV.js";import"../../chunk-X7V2C53V.js";import"../../chunk-PKFCOQOM.js";import"../../chunk-BV6IQIQK.js";import"../../chunk-T4RCLJ5G.js";import"../../chunk-L52GDMSH.js";import"../../chunk-YDZRBHS3.js";import"../../chunk-WX6KBOP5.js";import"../../chunk-5V2RGAOS.js";import"../../chunk-HUGHRNQ3.js";import"../../chunk-SH6HXAB2.js";import"../../chunk-IHMMTMFG.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-JLWNRQ4S.js";import"../../chunk-EM3D5Q3A.js";import"../../chunk-JAXFDUNN.js";import"../../chunk-K7BPGUFU.js";import"../../chunk-P3P5Q5XX.js";import"../../chunk-MN2BGRRJ.js";import"../../chunk-FQ5F3VYJ.js";import"../../chunk-HAQMNZO5.js";import"../../chunk-2YLRFJ66.js";import"../../chunk-AB2JJTW4.js";import"../../chunk-MLROTECD.js";import"../../chunk-OQZTL6ZG.js";import"../../chunk-KOHPRJDP.js";import"../../chunk-455NK5LB.js";import"../../chunk-VOFCBB2P.js";import"../../chunk-BVFMFBOG.js";import"../../chunk-NU7VF7MC.js";export{a as DeviceRecoveryService};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLVSOX532cjs = require('../../chunk-LVSOX532.cjs');require('../../chunk-VS6I4S7X.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-T5EOJ3ZF.cjs');require('../../chunk-AIAYUJJG.cjs');require('../../chunk-DSIFRRBS.cjs');exports.waitForSignatureCompletion = _chunkLVSOX532cjs.b; exports.waitForTransactionCompletion = _chunkLVSOX532cjs.a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiClient } from '../../api/client.cjs';
|
|
2
|
-
import {
|
|
2
|
+
import { ak as WalletLocator, y as Signature, T as Transaction } from '../../types-PtseJnku.cjs';
|
|
3
3
|
import '@crossmint/common-sdk-base';
|
|
4
4
|
import '../../chains/chains.cjs';
|
|
5
5
|
import 'viem';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiClient } from '../../api/client.js';
|
|
2
|
-
import {
|
|
2
|
+
import { ak as WalletLocator, y as Signature, T as Transaction } from '../../types-BzTdj2KC.js';
|
|
3
3
|
import '@crossmint/common-sdk-base';
|
|
4
4
|
import '../../chains/chains.js';
|
|
5
5
|
import 'viem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-PJAMNLC2.js";import"../../chunk-KOHPRJDP.js";import"../../chunk-455NK5LB.js";import"../../chunk-VOFCBB2P.js";import"../../chunk-BVFMFBOG.js";import"../../chunk-NU7VF7MC.js";export{b as waitForSignatureCompletion,a as waitForTransactionCompletion};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkFYWSZVIDcjs = require('../../chunk-FYWSZVID.cjs');require('../../chunk-AXFHMPWT.cjs');require('../../chunk-IQ6EAHDU.cjs');require('../../chunk-P5VJ455G.cjs');require('../../chunk-T5LUBX5J.cjs');require('../../chunk-3RVLLQ4M.cjs');require('../../chunk-D6UK5JAA.cjs');require('../../chunk-XFUCYR24.cjs');require('../../chunk-KQIDRPAB.cjs');require('../../chunk-CZC2MNVK.cjs');require('../../chunk-TFAJDUF3.cjs');require('../../chunk-5IC7UWND.cjs');require('../../chunk-PO6S7UR3.cjs');require('../../chunk-XUWIECBY.cjs');require('../../chunk-IN5ZETZE.cjs');require('../../chunk-V37HIVBA.cjs');require('../../chunk-M76VM347.cjs');require('../../chunk-ATIC4ENG.cjs');require('../../chunk-7FIAYQ4O.cjs');require('../../chunk-IGRPHTXZ.cjs');require('../../chunk-Q66YRLSW.cjs');require('../../chunk-BIL7GVBL.cjs');require('../../chunk-2D6B7AZ6.cjs');require('../../chunk-VMDJJX7P.cjs');require('../../chunk-LWA3SX6Z.cjs');require('../../chunk-2YZQ4YYU.cjs');require('../../chunk-PHIW7FUJ.cjs');require('../../chunk-5FH7WFWL.cjs');require('../../chunk-STB2VIIK.cjs');require('../../chunk-5FVDLMWW.cjs');require('../../chunk-HCV4M7X2.cjs');require('../../chunk-XWQC6G7N.cjs');require('../../chunk-R4SBFRTM.cjs');require('../../chunk-HYWIWJ6H.cjs');require('../../chunk-SCEPJO4Q.cjs');require('../../chunk-PWVGLO7T.cjs');require('../../chunk-CDHMNLZ6.cjs');require('../../chunk-JNKTRQPS.cjs');require('../../chunk-ENU3EKBG.cjs');require('../../chunk-VS6I4S7X.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-T5EOJ3ZF.cjs');require('../../chunk-AIAYUJJG.cjs');require('../../chunk-DSIFRRBS.cjs');exports.SignerManager = _chunkFYWSZVIDcjs.a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiClient } from '../../api/client.cjs';
|
|
2
|
-
import {
|
|
2
|
+
import { V as WalletOptions, ak as WalletLocator, R as RecoverySignerConfigForChain, H as SignerConfigForChain, z as Signer, F as SignerAdapter, a2 as InternalSignerConfig, I as SignerLocator, aq as GetSignerResponse, a9 as PendingSignerOperation, J as SignerStatus } from '../../types-PtseJnku.cjs';
|
|
3
3
|
import { Chain } from '../../chains/chains.cjs';
|
|
4
4
|
import { SignerDescriptorContext } from '../../signers/descriptors/types.cjs';
|
|
5
5
|
import { ServerSignerResolver } from '../../signers/server/resolver.cjs';
|
|
@@ -34,6 +34,14 @@ declare class SignerManager<C extends Chain> {
|
|
|
34
34
|
/** The primary recovery signer, i.e. `recoverySigners[0]`. */
|
|
35
35
|
get recovery(): SignerConfigForChain<C>;
|
|
36
36
|
get recoverySigners(): Array<RecoverySignerConfigForChain<C>>;
|
|
37
|
+
/** The recovery method explicitly selected via `useRecoveryMethod()`, if any. */
|
|
38
|
+
get selectedRecovery(): RecoverySignerConfigForChain<C> | null;
|
|
39
|
+
/**
|
|
40
|
+
* Select the recovery signer at `index` to authorize admin operations. `config` is the form to assemble it
|
|
41
|
+
* from when the stored one is not usable on its own (a passkey recovery is stored without its credential
|
|
42
|
+
* id, so the caller's id-bearing config is kept for the selection without rewriting the recovery list).
|
|
43
|
+
*/
|
|
44
|
+
selectRecovery(index: number, config?: RecoverySignerConfigForChain<C>): void;
|
|
37
45
|
descriptorContext(): SignerDescriptorContext<C>;
|
|
38
46
|
/** Replace the recovery signer at `index` with the caller's (typically fuller) config for the same signer. */
|
|
39
47
|
adoptRecoveryConfig(index: number, config: SignerConfigForChain<C>): void;
|
|
@@ -42,6 +50,10 @@ declare class SignerManager<C extends Chain> {
|
|
|
42
50
|
* never retained (or exposed through `recoverySigners`) once the derivation has been resolved.
|
|
43
51
|
*/
|
|
44
52
|
stripSecretFromRecovery(index: number, resolvedAddress: string): void;
|
|
53
|
+
/** Record a recovery method once the API has confirmed it was added to the wallet. */
|
|
54
|
+
addRecoverySigner(config: RecoverySignerConfigForChain<C>): void;
|
|
55
|
+
/** Forget a recovery method once the API has confirmed it was removed from the wallet. */
|
|
56
|
+
removeRecoverySigner(locator: string): void;
|
|
45
57
|
assemble(internalConfig: InternalSignerConfig<C>, options?: {
|
|
46
58
|
isAdminSigner?: boolean;
|
|
47
59
|
}): Promise<SignerAdapter>;
|
|
@@ -50,14 +62,17 @@ declare class SignerManager<C extends Chain> {
|
|
|
50
62
|
* The recovery method that authorizes a signer-management operation (add/remove signer), and the
|
|
51
63
|
* `approver` locator to send to the API when the wallet has several recovery methods.
|
|
52
64
|
*
|
|
53
|
-
* A
|
|
54
|
-
*
|
|
55
|
-
* has to know which key will approve, and an
|
|
65
|
+
* A recovery method selected via `useRecoveryMethod()` always wins. Otherwise, a wallet with a single
|
|
66
|
+
* recovery method authorizes with it whatever the active signer is, and a wallet with several needs
|
|
67
|
+
* `useSigner()` to have selected one of them: the API has to know which key will approve, and an
|
|
68
|
+
* operational signer cannot authorize these changes.
|
|
56
69
|
*/
|
|
57
70
|
resolveAuthorizingRecovery(): {
|
|
58
71
|
recovery: RecoverySignerConfigForChain<C>;
|
|
59
72
|
approver: SignerLocator | undefined;
|
|
60
73
|
};
|
|
74
|
+
/** Locator of a recovery method, or null when it cannot be known without deriving a server secret. */
|
|
75
|
+
recoveryLocator(recovery: RecoverySignerConfigForChain<C>): SignerLocator | null;
|
|
61
76
|
/**
|
|
62
77
|
* Run `operation` with the authorizing recovery method temporarily set as the active signer.
|
|
63
78
|
* The operation receives the `approver` locator to forward to the API (see {@link resolveAuthorizingRecovery}).
|