@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 { ApiClient } from '../../api/client.js';
|
|
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-BzTdj2KC.js';
|
|
3
3
|
import { Chain } from '../../chains/chains.js';
|
|
4
4
|
import { SignerDescriptorContext } from '../../signers/descriptors/types.js';
|
|
5
5
|
import { ServerSignerResolver } from '../../signers/server/resolver.js';
|
|
@@ -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}).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-KSPUJL3Z.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-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 SignerManager};
|
package/dist/wallets/solana.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSIBFVGGQcjs = require('../chunk-SIBFVGGQ.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.SolanaWallet = _chunkSIBFVGGQcjs.a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SolanaChain, Chain } from '../chains/chains.cjs';
|
|
2
|
-
import {
|
|
2
|
+
import { am as TransactionInputOptions, M as SolanaTransactionInput, T as Transaction, aa as PrepareOnly } from '../types-PtseJnku.cjs';
|
|
3
3
|
import { Wallet } from './wallet.cjs';
|
|
4
4
|
import '@crossmint/common-sdk-base';
|
|
5
5
|
import 'viem';
|
package/dist/wallets/solana.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SolanaChain, Chain } from '../chains/chains.js';
|
|
2
|
-
import {
|
|
2
|
+
import { am as TransactionInputOptions, M as SolanaTransactionInput, T as Transaction, aa as PrepareOnly } from '../types-BzTdj2KC.js';
|
|
3
3
|
import { Wallet } from './wallet.js';
|
|
4
4
|
import '@crossmint/common-sdk-base';
|
|
5
5
|
import 'viem';
|
package/dist/wallets/solana.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-RE6GCFXZ.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 SolanaWallet};
|
package/dist/wallets/stellar.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZDKIEL5Ncjs = require('../chunk-ZDKIEL5N.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.StellarWallet = _chunkZDKIEL5Ncjs.a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StellarChain, Chain } from '../chains/chains.cjs';
|
|
2
|
-
import {
|
|
2
|
+
import { am as TransactionInputOptions, an as StellarTransactionInput, T as Transaction, aa as PrepareOnly, ao as UpgradeOptions, ap as MigrateOptions } from '../types-PtseJnku.cjs';
|
|
3
3
|
import { Wallet } from './wallet.cjs';
|
|
4
4
|
import '@crossmint/common-sdk-base';
|
|
5
5
|
import 'viem';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StellarChain, Chain } from '../chains/chains.js';
|
|
2
|
-
import {
|
|
2
|
+
import { am as TransactionInputOptions, an as StellarTransactionInput, T as Transaction, aa as PrepareOnly, ao as UpgradeOptions, ap as MigrateOptions } from '../types-BzTdj2KC.js';
|
|
3
3
|
import { Wallet } from './wallet.js';
|
|
4
4
|
import '@crossmint/common-sdk-base';
|
|
5
5
|
import 'viem';
|
package/dist/wallets/stellar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-JQIKTIVR.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 StellarWallet};
|
package/dist/wallets/types.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import '@crossmint/client-sdk-window';
|
|
|
3
3
|
import '@crossmint/client-signers';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import 'abitype';
|
|
6
|
-
export { A as AddSignerOptions,
|
|
6
|
+
export { A as AddRecoveryMethodOptions, a as AddRecoveryMethodReturnType, b as AddSignerOptions, ai as AddSignerReturnType, b1 as Approval, d as ApproveOptions, e as ApproveParams, ah as ApproveResult, B as Balances, C as Callbacks, g as ClientSideWalletArgsFor, h as ClientSideWalletCreateArgs, b2 as DeviceSignerDescriptor, E as EVMTransactionInput, b3 as FormattedEVMTransaction, ap as MigrateOptions, b4 as PendingApproval, a9 as PendingSignerOperation, aa as PrepareOnly, a6 as RecoverySignerConfigFor, u as RemoveRecoveryMethodOptions, v as RemoveRecoveryMethodReturnType, w as RemoveSignerOptions, aj as RemoveSignerReturnType, S as Scope, ag as SendTokenTransactionOptions, b5 as SendTokenTransactionType, ab as SignMessageInput, ac as SignTypedDataInput, y as Signature, b6 as SignatureInputOptions, z as Signer, b7 as SignerInput, J as SignerStatus, M as SolanaTransactionInput, an as StellarTransactionInput, b8 as StellarWalletPlugin, aw as TokenBalance, T as Transaction, am as TransactionInputOptions, N as TransferScope, Q as Transfers, ao as UpgradeOptions, a5 as UserLocator, W as WalletArgsFor, U as WalletCreateArgs, V as WalletOptions, X as WalletPlugin } from '../types-PtseJnku.cjs';
|
|
7
7
|
import '../chains/chains.cjs';
|
|
8
8
|
import '../utils/device-signers/DeviceSignerKeyStorage.cjs';
|
|
9
9
|
import '../api/gen/types.gen.cjs';
|
package/dist/wallets/types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import '@crossmint/client-sdk-window';
|
|
|
3
3
|
import '@crossmint/client-signers';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import 'abitype';
|
|
6
|
-
export { A as AddSignerOptions,
|
|
6
|
+
export { A as AddRecoveryMethodOptions, a as AddRecoveryMethodReturnType, b as AddSignerOptions, ai as AddSignerReturnType, b1 as Approval, d as ApproveOptions, e as ApproveParams, ah as ApproveResult, B as Balances, C as Callbacks, g as ClientSideWalletArgsFor, h as ClientSideWalletCreateArgs, b2 as DeviceSignerDescriptor, E as EVMTransactionInput, b3 as FormattedEVMTransaction, ap as MigrateOptions, b4 as PendingApproval, a9 as PendingSignerOperation, aa as PrepareOnly, a6 as RecoverySignerConfigFor, u as RemoveRecoveryMethodOptions, v as RemoveRecoveryMethodReturnType, w as RemoveSignerOptions, aj as RemoveSignerReturnType, S as Scope, ag as SendTokenTransactionOptions, b5 as SendTokenTransactionType, ab as SignMessageInput, ac as SignTypedDataInput, y as Signature, b6 as SignatureInputOptions, z as Signer, b7 as SignerInput, J as SignerStatus, M as SolanaTransactionInput, an as StellarTransactionInput, b8 as StellarWalletPlugin, aw as TokenBalance, T as Transaction, am as TransactionInputOptions, N as TransferScope, Q as Transfers, ao as UpgradeOptions, a5 as UserLocator, W as WalletArgsFor, U as WalletCreateArgs, V as WalletOptions, X as WalletPlugin } from '../types-BzTdj2KC.js';
|
|
7
7
|
import '../chains/chains.js';
|
|
8
8
|
import '../utils/device-signers/DeviceSignerKeyStorage.js';
|
|
9
9
|
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 _chunkO673G7YHcjs = require('../chunk-O673G7YH.cjs');require('../chunk-MUOGCO7D.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.WalletFactory = _chunkO673G7YHcjs.a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApiClient } from '../api/client.cjs';
|
|
2
2
|
import { Chain } from '../chains/chains.cjs';
|
|
3
|
-
import { W as WalletArgsFor,
|
|
3
|
+
import { W as WalletArgsFor, U as WalletCreateArgs } from '../types-PtseJnku.cjs';
|
|
4
4
|
import { Wallet } from './wallet.cjs';
|
|
5
5
|
import '@crossmint/common-sdk-base';
|
|
6
6
|
import 'viem';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApiClient } from '../api/client.js';
|
|
2
2
|
import { Chain } from '../chains/chains.js';
|
|
3
|
-
import { W as WalletArgsFor,
|
|
3
|
+
import { W as WalletArgsFor, U as WalletCreateArgs } from '../types-BzTdj2KC.js';
|
|
4
4
|
import { Wallet } from './wallet.js';
|
|
5
5
|
import '@crossmint/common-sdk-base';
|
|
6
6
|
import 'viem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-7SDHPRH6.js";import"../chunk-6PNYLGI4.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 WalletFactory};
|
package/dist/wallets/wallet.cjs
CHANGED
|
@@ -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');require('../chunk-DSIFRRBS.cjs');exports.Wallet = _chunkRFBVYUAZcjs.a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WalletsTransactionV2025ResponseDtoClass } from '../api/gen/types.gen.cjs';
|
|
2
2
|
import { ApiClient } from '../api/client.cjs';
|
|
3
|
-
import {
|
|
3
|
+
import { V as WalletOptions, R as RecoverySignerConfigForChain, H as SignerConfigForChain, F as SignerAdapter, x as ServerSignerConfig, B as Balances, ad as FundWalletResponse, ae as GetTransactionsResponse, af as GetTransactionSuccessResponse, Q as Transfers, ag as SendTokenTransactionOptions, a5 as UserLocator, T as Transaction, aa as PrepareOnly, e as ApproveParams, ah as ApproveResult, b as AddSignerOptions, n as ExternalWalletRegistrationConfig, ai as AddSignerReturnType, z as Signer, w as RemoveSignerOptions, aj as RemoveSignerReturnType, A as AddRecoveryMethodOptions, a as AddRecoveryMethodReturnType, u as RemoveRecoveryMethodOptions, v as RemoveRecoveryMethodReturnType, I as SignerLocator, ak as WalletLocator, d as ApproveOptions, al as ApproveSignatureResponse, y as Signature } from '../types-PtseJnku.cjs';
|
|
4
4
|
import { Chain } from '../chains/chains.cjs';
|
|
5
5
|
import { SignerManager } from './services/signer-manager.cjs';
|
|
6
6
|
import { PollingOptions } from './services/operation-poller.cjs';
|
|
@@ -165,9 +165,10 @@ declare class Wallet<C extends Chain> {
|
|
|
165
165
|
approve<T extends ApproveParams>(params: T): Promise<ApproveResult<T>>;
|
|
166
166
|
/**
|
|
167
167
|
* Add a signer to the wallet.
|
|
168
|
-
* Always uses a recovery method internally to approve the registration: the
|
|
169
|
-
*
|
|
170
|
-
*
|
|
168
|
+
* Always uses a recovery method internally to approve the registration: the one selected via
|
|
169
|
+
* {@link useRecoveryMethod}, else the active signer when it is one of the recovery methods, else the wallet's
|
|
170
|
+
* single recovery method. Wallets with several recovery methods must select one first; an operational signer
|
|
171
|
+
* cannot authorize this.
|
|
171
172
|
* If the signer being added is the current operational signer, it will be reassembled with the new locator.
|
|
172
173
|
* Otherwise, the original signer is restored after the operation.
|
|
173
174
|
* @param signer - The signer configuration object
|
|
@@ -188,6 +189,29 @@ declare class Wallet<C extends Chain> {
|
|
|
188
189
|
* @param options.prepareOnly - If true, returns the operation ID without auto-approving
|
|
189
190
|
*/
|
|
190
191
|
removeSigner<T extends RemoveSignerOptions | undefined = undefined>(signer: SignerConfigForChain<C> | ExternalWalletRegistrationConfig, options?: T): Promise<RemoveSignerReturnType>;
|
|
192
|
+
/**
|
|
193
|
+
* Add a recovery method to the wallet. Supported on Solana and Stellar only.
|
|
194
|
+
* Always uses one of the existing recovery methods to approve the change, selected as in {@link addSigner}.
|
|
195
|
+
* @param recoveryMethod - The recovery method configuration object
|
|
196
|
+
* @param options - The options for the operation
|
|
197
|
+
* @param options.prepareOnly - If true, returns the transaction ID without auto-approving
|
|
198
|
+
*/
|
|
199
|
+
addRecoveryMethod<T extends AddRecoveryMethodOptions | undefined = undefined>(recoveryMethod: SignerConfigForChain<C> | ServerSignerConfig | ExternalWalletRegistrationConfig, options?: T): Promise<AddRecoveryMethodReturnType>;
|
|
200
|
+
/**
|
|
201
|
+
* Remove a recovery method from the wallet. Supported on Solana and Stellar only.
|
|
202
|
+
* Always uses one of the remaining recovery methods to approve the change, selected as in {@link addSigner}.
|
|
203
|
+
* @param recoveryMethod - The recovery method to remove, provided as a signer config object
|
|
204
|
+
* @param options - The options for the operation
|
|
205
|
+
* @param options.prepareOnly - If true, returns the transaction ID without auto-approving
|
|
206
|
+
*/
|
|
207
|
+
removeRecoveryMethod<T extends RemoveRecoveryMethodOptions | undefined = undefined>(recoveryMethod: SignerConfigForChain<C> | ExternalWalletRegistrationConfig, options?: T): Promise<RemoveRecoveryMethodReturnType>;
|
|
208
|
+
private assertRecoveryMethodManagementSupported;
|
|
209
|
+
/**
|
|
210
|
+
* The recovery-methods API always needs the approving recovery method, while `withRecoverySigner` only
|
|
211
|
+
* names it when the wallet has several. On single-recovery wallets the assembled recovery method is the
|
|
212
|
+
* active signer for the duration of the operation, so its locator is used.
|
|
213
|
+
*/
|
|
214
|
+
private resolveRecoveryApprover;
|
|
191
215
|
/**
|
|
192
216
|
* Set the active signer for this wallet.
|
|
193
217
|
* Accepts a signer config object. The locator is inferred internally.
|
|
@@ -205,6 +229,18 @@ declare class Wallet<C extends Chain> {
|
|
|
205
229
|
* @param signer - The signer config object to use
|
|
206
230
|
*/
|
|
207
231
|
useSigner(signer: SignerConfigForChain<C>): Promise<void>;
|
|
232
|
+
/**
|
|
233
|
+
* Select which of the wallet's recovery methods authorizes admin operations ({@link addSigner},
|
|
234
|
+
* {@link removeSigner}, {@link addRecoveryMethod}, {@link removeRecoveryMethod}). Unlike {@link useSigner},
|
|
235
|
+
* this does not change the active signer used for transactions and signatures.
|
|
236
|
+
*
|
|
237
|
+
* The config must refer to one of {@link recoveryMethods}; pass the fuller form when the method needs it to
|
|
238
|
+
* operate (an `onSign` callback for external wallets, the `secret` for server signers).
|
|
239
|
+
*
|
|
240
|
+
* @param recoveryMethod - The recovery method config object to authorize with
|
|
241
|
+
* @experimental This API is experimental and may change in the future
|
|
242
|
+
*/
|
|
243
|
+
useRecoveryMethod(recoveryMethod: SignerConfigForChain<C>): Promise<void>;
|
|
208
244
|
/**
|
|
209
245
|
* Resolve a non-device signer: check registration first, then fall back to recovery.
|
|
210
246
|
* For passkeys without an explicit credential id, auto-selects from registered signers.
|
package/dist/wallets/wallet.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WalletsTransactionV2025ResponseDtoClass } from '../api/gen/types.gen.js';
|
|
2
2
|
import { ApiClient } from '../api/client.js';
|
|
3
|
-
import {
|
|
3
|
+
import { V as WalletOptions, R as RecoverySignerConfigForChain, H as SignerConfigForChain, F as SignerAdapter, x as ServerSignerConfig, B as Balances, ad as FundWalletResponse, ae as GetTransactionsResponse, af as GetTransactionSuccessResponse, Q as Transfers, ag as SendTokenTransactionOptions, a5 as UserLocator, T as Transaction, aa as PrepareOnly, e as ApproveParams, ah as ApproveResult, b as AddSignerOptions, n as ExternalWalletRegistrationConfig, ai as AddSignerReturnType, z as Signer, w as RemoveSignerOptions, aj as RemoveSignerReturnType, A as AddRecoveryMethodOptions, a as AddRecoveryMethodReturnType, u as RemoveRecoveryMethodOptions, v as RemoveRecoveryMethodReturnType, I as SignerLocator, ak as WalletLocator, d as ApproveOptions, al as ApproveSignatureResponse, y as Signature } from '../types-BzTdj2KC.js';
|
|
4
4
|
import { Chain } from '../chains/chains.js';
|
|
5
5
|
import { SignerManager } from './services/signer-manager.js';
|
|
6
6
|
import { PollingOptions } from './services/operation-poller.js';
|
|
@@ -165,9 +165,10 @@ declare class Wallet<C extends Chain> {
|
|
|
165
165
|
approve<T extends ApproveParams>(params: T): Promise<ApproveResult<T>>;
|
|
166
166
|
/**
|
|
167
167
|
* Add a signer to the wallet.
|
|
168
|
-
* Always uses a recovery method internally to approve the registration: the
|
|
169
|
-
*
|
|
170
|
-
*
|
|
168
|
+
* Always uses a recovery method internally to approve the registration: the one selected via
|
|
169
|
+
* {@link useRecoveryMethod}, else the active signer when it is one of the recovery methods, else the wallet's
|
|
170
|
+
* single recovery method. Wallets with several recovery methods must select one first; an operational signer
|
|
171
|
+
* cannot authorize this.
|
|
171
172
|
* If the signer being added is the current operational signer, it will be reassembled with the new locator.
|
|
172
173
|
* Otherwise, the original signer is restored after the operation.
|
|
173
174
|
* @param signer - The signer configuration object
|
|
@@ -188,6 +189,29 @@ declare class Wallet<C extends Chain> {
|
|
|
188
189
|
* @param options.prepareOnly - If true, returns the operation ID without auto-approving
|
|
189
190
|
*/
|
|
190
191
|
removeSigner<T extends RemoveSignerOptions | undefined = undefined>(signer: SignerConfigForChain<C> | ExternalWalletRegistrationConfig, options?: T): Promise<RemoveSignerReturnType>;
|
|
192
|
+
/**
|
|
193
|
+
* Add a recovery method to the wallet. Supported on Solana and Stellar only.
|
|
194
|
+
* Always uses one of the existing recovery methods to approve the change, selected as in {@link addSigner}.
|
|
195
|
+
* @param recoveryMethod - The recovery method configuration object
|
|
196
|
+
* @param options - The options for the operation
|
|
197
|
+
* @param options.prepareOnly - If true, returns the transaction ID without auto-approving
|
|
198
|
+
*/
|
|
199
|
+
addRecoveryMethod<T extends AddRecoveryMethodOptions | undefined = undefined>(recoveryMethod: SignerConfigForChain<C> | ServerSignerConfig | ExternalWalletRegistrationConfig, options?: T): Promise<AddRecoveryMethodReturnType>;
|
|
200
|
+
/**
|
|
201
|
+
* Remove a recovery method from the wallet. Supported on Solana and Stellar only.
|
|
202
|
+
* Always uses one of the remaining recovery methods to approve the change, selected as in {@link addSigner}.
|
|
203
|
+
* @param recoveryMethod - The recovery method to remove, provided as a signer config object
|
|
204
|
+
* @param options - The options for the operation
|
|
205
|
+
* @param options.prepareOnly - If true, returns the transaction ID without auto-approving
|
|
206
|
+
*/
|
|
207
|
+
removeRecoveryMethod<T extends RemoveRecoveryMethodOptions | undefined = undefined>(recoveryMethod: SignerConfigForChain<C> | ExternalWalletRegistrationConfig, options?: T): Promise<RemoveRecoveryMethodReturnType>;
|
|
208
|
+
private assertRecoveryMethodManagementSupported;
|
|
209
|
+
/**
|
|
210
|
+
* The recovery-methods API always needs the approving recovery method, while `withRecoverySigner` only
|
|
211
|
+
* names it when the wallet has several. On single-recovery wallets the assembled recovery method is the
|
|
212
|
+
* active signer for the duration of the operation, so its locator is used.
|
|
213
|
+
*/
|
|
214
|
+
private resolveRecoveryApprover;
|
|
191
215
|
/**
|
|
192
216
|
* Set the active signer for this wallet.
|
|
193
217
|
* Accepts a signer config object. The locator is inferred internally.
|
|
@@ -205,6 +229,18 @@ declare class Wallet<C extends Chain> {
|
|
|
205
229
|
* @param signer - The signer config object to use
|
|
206
230
|
*/
|
|
207
231
|
useSigner(signer: SignerConfigForChain<C>): Promise<void>;
|
|
232
|
+
/**
|
|
233
|
+
* Select which of the wallet's recovery methods authorizes admin operations ({@link addSigner},
|
|
234
|
+
* {@link removeSigner}, {@link addRecoveryMethod}, {@link removeRecoveryMethod}). Unlike {@link useSigner},
|
|
235
|
+
* this does not change the active signer used for transactions and signatures.
|
|
236
|
+
*
|
|
237
|
+
* The config must refer to one of {@link recoveryMethods}; pass the fuller form when the method needs it to
|
|
238
|
+
* operate (an `onSign` callback for external wallets, the `secret` for server signers).
|
|
239
|
+
*
|
|
240
|
+
* @param recoveryMethod - The recovery method config object to authorize with
|
|
241
|
+
* @experimental This API is experimental and may change in the future
|
|
242
|
+
*/
|
|
243
|
+
useRecoveryMethod(recoveryMethod: SignerConfigForChain<C>): Promise<void>;
|
|
208
244
|
/**
|
|
209
245
|
* Resolve a non-device signer: check registration first, then fall back to recovery.
|
|
210
246
|
* For passkeys without an explicit credential id, auto-selects from registered signers.
|
package/dist/wallets/wallet.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}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"../chunk-NU7VF7MC.js";export{a as Wallet};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossmint/wallets-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.0",
|
|
4
4
|
"repository": "https://github.com/Crossmint/crossmint-sdk",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Paella Labs Inc",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"tweetnacl": "1.0.3",
|
|
32
32
|
"viem": "2.33.1",
|
|
33
33
|
"@crossmint/client-sdk-window": "1.1.1",
|
|
34
|
-
"@crossmint/client-signers": "0.3.
|
|
34
|
+
"@crossmint/client-signers": "0.3.1",
|
|
35
35
|
"@crossmint/client-signers-cryptography": "0.0.5",
|
|
36
|
-
"@crossmint/common-sdk-
|
|
37
|
-
"@crossmint/common-sdk-
|
|
36
|
+
"@crossmint/common-sdk-auth": "1.1.22",
|
|
37
|
+
"@crossmint/common-sdk-base": "0.12.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@hey-api/openapi-ts": "0.69.2",
|
package/dist/chunk-3NAV25KH.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as pe}from"./chunk-YKRLB374.js";import{a as de}from"./chunk-V5D6CUMS.js";import{a as he}from"./chunk-WP4GRRR2.js";import{a as ue,b as Se}from"./chunk-ZMU6KU3L.js";import{a as oe}from"./chunk-PCRZWMYM.js";import{a as L}from"./chunk-BZYYVTXK.js";import{a as le,b as M}from"./chunk-BV6IQIQK.js";import{a as ce,b as ge}from"./chunk-FTUJ5XHD.js";import{a as ae}from"./chunk-K4KSI3GM.js";import{g as $}from"./chunk-P3P5Q5XX.js";import{a as ie,b as ne,c as se}from"./chunk-C2QJ3WKC.js";import{b as te}from"./chunk-B4GYB3XY.js";import{f as re}from"./chunk-JGLNAY5C.js";import{D as Q,E as K,G as X,H as Y,I as Z,N as ee,Q as k,d as H,e as j,j as q,l as B,m as V,n as z}from"./chunk-KOHPRJDP.js";import{a as s}from"./chunk-INUEMQPG.js";import{a as v,b as D,c as P,d as i,e as A,f as T,g as F,h as o}from"./chunk-NU7VF7MC.js";import{WithLoggerContext as E}from"@crossmint/common-sdk-base";var N,d,b,x,l,f,I,O,W,m,ve,fe,G,U,R=class{constructor(e,r){A(this,m);A(this,N);A(this,d);A(this,b);A(this,x);A(this,l);A(this,f);A(this,I,[]);A(this,O);A(this,W,null);let{chain:t,address:n,owner:a,options:c,alias:h,recovery:u,apiRecoveryServerSignerAddresses:S,apiDelegatedServerSignerAddresses:g,signers:w,signer:y}=e;T(this,d,r),this.chain=t,this.address=n,this.owner=a,T(this,N,c),this.alias=h;let C=Array.isArray(u)?u:[u],_=S!=null?S:C.filter(p=>p.type==="server"&&$(p)).map(p=>p.address);T(this,I,g!=null?g:[]),T(this,b,w!=null?w:[]),T(this,x,new oe({chain:t,projectId:i(this,d).projectId,environment:i(this,d).environment,apiRecoveryAddresses:_,apiDelegatedAddresses:i(this,I),knownOnChainAddresses:()=>[...i(this,b).filter(p=>p.type==="server"&&$(p)).map(p=>p.address),...i(this,I)]})),T(this,l,new pe({apiClient:r,options:c,chain:t,walletAddress:this.address,walletLocator:()=>this.walletLocator,serverSignerResolver:i(this,x),recoverySigners:C,initialSigners:i(this,b),signers:()=>this.signers(),signer:y})),C.forEach((p,ye)=>{p.type==="server"&&!$(p)&&i(this,l).stripSecretFromRecovery(ye,i(this,x).resolveRecovery(p))}),T(this,f,new he({chain:t,walletAddress:this.address,options:c,signerManager:i(this,l),serverSignerResolver:i(this,x),signers:()=>this.signers(),addSigner:p=>this.addSigner(p),removeSigner:p=>this.removeSigner({type:"device",locator:p}),approveSignature:p=>this.approveSignatureAndWait(p),approveTransaction:p=>this.approveTransactionAndWait(p)})),T(this,O,this.initDefaultSigner())}get signer(){return i(this,l).activeSigner}waitForInit(){return o(this,null,function*(){yield i(this,O)})}initDefaultSigner(){return o(this,null,function*(){if(i(this,l).activeSigner!=null||(yield i(this,f).initDeviceSigner(),i(this,l).activeSigner!=null||i(this,f).needsRecovery))return;let e=i(this,b).length===0?i(this,l).recovery:i(this,b).length===1?i(this,b)[0]:null;if(e==null)return;let r=L(e.type),t=i(this,l).descriptorContext();if(!r.canAutoAssemble(e,t))return;let n=e===i(this,l).recovery;try{let a=r.buildInternalConfig(e,t);i(this,l).setActiveSigner(yield i(this,l).assemble(a,{isAdminSigner:n}))}catch(a){s.warn("wallet.initDefaultSigner.autoAssemblyFailed",{recoveryType:i(this,l).recovery.type,signerCount:i(this,b).length,error:a})}})}static getApiClient(e){return e.apiClient}static getOptions(e){return e.options}static getRecoverySigners(e){return e.recoveryMethods}static getInitialSigners(e){return i(e,b)}static getApiRecoveryServerSignerAddresses(e){return i(e,x).apiRecoveryAddresses}static getApiDelegatedServerSignerAddresses(e){return i(e,I)}get apiClient(){return i(this,d)}get options(){return i(this,N)}get chainAdapter(){return ie(this.chain)}resolveServerSignerApiLocator(e){return i(this,x).apiLocator(e)}get recovery(){return i(this,l).recovery}get recoveryMethods(){return i(this,l).recoverySigners}balances(e){return o(this,null,function*(){s.info("wallet.balances.start");let r=this.resolveChainForEnvironment(),t=this.chainAdapter.nativeToken,n=[t,"usdc",...e!=null?e:[]],a=yield i(this,d).getBalance(this.address,{chains:[r],tokens:n});if("error"in a)throw s.error("wallet.balances.error",{error:a}),new Error(`Failed to get balances for wallet: ${JSON.stringify(a.message)}`);return s.info("wallet.balances.success"),de(a,this.chain,t,e)})}stagingFund(e,r){return o(this,null,function*(){s.info("wallet.stagingFund.start",{amount:e,chain:r!=null?r:this.chain});let t=yield this.apiClient.fundWallet(this.address,{amount:e,token:"usdxm",chain:r!=null?r:this.chain});if("error"in t)throw s.error("wallet.stagingFund.error",{error:t}),new Error(`Failed to fund wallet: ${JSON.stringify(t.message)}`);return s.info("wallet.stagingFund.success"),t})}nfts(e){return o(this,null,function*(){let r=this.resolveChainForEnvironment(),t=yield i(this,d).getNfts(D(v({},e),{chain:r,address:this.address}));if(t!=null&&typeof t=="object"&&"error"in t)throw s.error("wallet.nfts.error",{error:t}),new Error(`Failed to get nfts: ${JSON.stringify(t.message)}`);return t})}transactions(){return o(this,null,function*(){let e=yield i(this,d).getTransactions(this.walletLocator);if("error"in e)throw new Error(`Failed to get transactions: ${JSON.stringify(e.message)}`);return e})}transaction(e){return o(this,null,function*(){let r=yield i(this,d).getTransaction(this.walletLocator,e);if("error"in r)throw new Error(`Failed to get transaction: ${JSON.stringify(r.message)}`);return r})}transfers(e){return o(this,null,function*(){let r=this.resolveChainForEnvironment(),t=yield this.apiClient.getTransfers(this.walletLocator,{chain:r,tokens:e.tokens,status:e.status});if("error"in t)throw new Error(`Failed to get transfers: ${JSON.stringify(t.message)}`);return t})}send(e,r,t,n){return o(this,null,function*(){let a=Number(t);if(Number.isNaN(a)||!Number.isFinite(a)||a<=0)throw new X(`Invalid transfer amount: "${t}". Amount must be a positive number greater than zero.`);let c=ce(e),h=this.resolveChainForEnvironment(),u=ge(r,h);s.info("wallet.send.start",v({recipient:c,token:u,amount:t},(n==null?void 0:n.transactionType)!=null?{transactionType:n.transactionType}:{})),yield this.preAuthIfNeeded();let S=i(this,l).require(),g;(n==null?void 0:n.signer)==null?g=S.locator():typeof n.signer=="string"?g=n.signer:g=this.resolveServerSignerApiLocator(n.signer);let w=v({recipient:c,amount:t,signer:g},(n==null?void 0:n.transactionType)!=null?{transactionType:n.transactionType}:{}),y=yield i(this,d).send(this.walletLocator,u,w);if("message"in y)throw s.error("wallet.send.error",{error:y}),new Y(`Failed to send token: ${JSON.stringify(y.message)}`);if((n==null?void 0:n.prepareOnly)===!0)return s.info("wallet.send.prepared",{transactionId:y.id}),{hash:void 0,explorerLink:void 0,transactionId:y.id};let C=yield this.approveTransactionAndWait(y.id);return s.info("wallet.send.success",{transactionId:y.id,hash:C.hash}),C})}approveTransaction(e){return o(this,null,function*(){return console.warn("approveTransaction is deprecated. Use approve instead. This method will be removed in the next major version."),yield this.approve(e)})}approve(e){return o(this,null,function*(){if(s.info("wallet.approve.start",{transactionId:e.transactionId,signatureId:e.signatureId}),yield this.preAuthIfNeeded(),e.transactionId!=null){let r=yield this.approveTransactionAndWait(e.transactionId,e.options);return s.info("wallet.approve.success",{transactionId:e.transactionId}),r}if(e.signatureId!=null){let r=yield this.approveSignatureAndWait(e.signatureId,e.options);return s.info("wallet.approve.success",{signatureId:e.signatureId}),r}throw s.error("wallet.approve.error",{error:"Either transactionId or signatureId must be provided"}),new Error("Either transactionId or signatureId must be provided")})}addSigner(e,r){return o(this,null,function*(){s.info("wallet.addSigner.start");let t=typeof e=="object"&&"type"in e&&e.type==="server"?this.resolveServerSignerApiLocator(e):e;return i(this,l).withRecoverySigner(n=>o(this,null,function*(){var C;let a=typeof t=="string"?t:M(t),c=yield i(this,l).getSignerState(a);if(c.signer!=null){if(i(this,l).isApprovedSignerStatus(c.signer.status))return(r==null?void 0:r.scopes)!=null&&s.warn("wallet.addSigner.scopesIgnored",{reason:"signer already approved",signerLocator:a}),s.info("wallet.addSigner.alreadyApproved"),this.completeSignerRegistration(c.signer,null,r);if(c.pendingOperation!=null){if((r==null?void 0:r.scopes)!=null)throw new Error("Cannot apply scopes when resuming a pending signer registration. Remove the pending signer and register it again with the desired scopes.");return s.info("wallet.addSigner.resuming",{operationType:c.pendingOperation.type,operationId:c.pendingOperation.id}),this.completeSignerRegistration(c.signer,c.pendingOperation,r)}}let h=typeof t=="string"?t:L(t.type).addSignerPayload(t,i(this,l).descriptorContext()),S=this.chain!=="solana"&&this.chain!=="stellar"?(C=r==null?void 0:r.deployImmediately)!=null?C:!0:void 0,g=yield i(this,d).registerSigner(this.walletLocator,v(v(v({signer:h,chain:this.chainAdapter.addSignerChain(this.chain)},(r==null?void 0:r.scopes)!=null&&{scopes:r.scopes}),S!=null&&{deployImmediately:S}),n!=null&&{approver:n}));if("error"in g)throw s.error("wallet.addSigner.error",{error:g}),g.code===B?new V(g.message):new q(`Failed to register signer: ${JSON.stringify(g.message)}`);let w=te(g,this.chain);if(w==null)throw new Error(`No approval found for chain ${this.chain} in register signer response`);let y=this.chainAdapter.extractAddSignerOperation(g,this.chain,{locator:a,type:e.type});return this.completeSignerRegistration(w,y,r)}))})}completeSignerRegistration(e,r,t){return o(this,null,function*(){if(t!=null&&t.prepareOnly){if(r==null)return v({},e);switch(r.type){case"transaction":{let n={transactionId:r.id};return s.info("wallet.addSigner.prepared",n),v(v({},e),n)}case"signature":{let n={signatureId:r.id};return s.info("wallet.addSigner.prepared",n),v(v({},e),n)}default:{let n=r.type;throw new Error(`Unknown pending operation type: ${n}`)}}}if(r!=null)switch(r.type){case"transaction":yield this.approveTransactionAndWait(r.id),s.info("wallet.addSigner.success",{transactionId:r.id});break;case"signature":yield this.approveSignatureAndWait(r.id),s.info("wallet.addSigner.success",{signatureId:r.id});break;default:{let n=r.type;throw new Error(`Unknown pending operation type: ${n}`)}}else s.info("wallet.addSigner.success");return D(v({},e),{status:"success"})})}removeSigner(e,r){return o(this,null,function*(){let t=this.resolveSignerLocator(e);return s.info("wallet.removeSigner.start",{signerLocator:t}),i(this,l).withRecoverySigner(n=>o(this,null,function*(){let a=yield i(this,d).removeSigner(this.walletLocator,t,v({chain:this.chainAdapter.addSignerChain(this.chain)},n!=null&&{approver:n}));if("error"in a)throw s.error("wallet.removeSigner.error",{error:a}),new Error(`Failed to remove signer: ${JSON.stringify(a)}`);let c=a.id;return r!=null&&r.prepareOnly?(s.info("wallet.removeSigner.prepared",{transactionId:c}),{transactionId:c,status:void 0}):(yield this.approveTransactionAndWait(c),s.info("wallet.removeSigner.success",{transactionId:c}),{transactionId:c,status:"success"})}))})}useSigner(e){return o(this,null,function*(){s.info("wallet.useSigner.start"),e.type==="server"&&i(this,x).resetDelegatedCache(),L(e.type).validateConfig(e);let r=!1;e.type==="device"?yield i(this,f).resolveAvailability(e):r=yield this.resolveNonDeviceSigner(e);let t=L(e.type).buildInternalConfig(e,i(this,l).descriptorContext()),n=M(e);i(this,l).setActiveSigner(yield i(this,l).assemble(t,{isAdminSigner:r})),s.info("wallet.useSigner.success",{signerLocator:n})})}resolveNonDeviceSigner(e){return o(this,null,function*(){if(e.type!=="passkey"&&e.type!=="server"&&this.isRecoverySigner(e))return i(this,f).onSignerSelected(),!0;if(e.type==="passkey"&&this.isPasskeyMissingId(e)&&!(yield this.tryAutoSelectPasskey(e))){if(this.isRecoverySigner(e))return i(this,f).onSignerSelected(),!0;throw new Error("No passkey signer is registered on this wallet.")}if(e.type==="server")return this.resolveServerSigner(e);let r=this.resolveSignerLocator(e);if(yield this.signerIsRegistered(r))return i(this,f).onSignerSelected(),!1;if(this.isRecoverySigner(e))return i(this,f).onSignerSelected(),!0;throw new Error(`Signer "${r}" is not registered in this wallet.`)})}resolveServerSigner(e){return o(this,null,function*(){let t=(yield this.signers()).map(c=>c.locator),n={recoveryIndex:null},a=i(this,x).resolveForUseSigner(e,t,()=>(n.recoveryIndex=this.matchRecoverySigner(e),n.recoveryIndex!=null));switch(a.kind){case"delegated":return i(this,f).onSignerSelected(),!1;case"recovery":return n.recoveryIndex!=null&&i(this,l).stripSecretFromRecovery(n.recoveryIndex,a.address),i(this,f).onSignerSelected(),!0;case"unregistered":throw new Error(a.message)}})}tryAutoSelectPasskey(e){return o(this,null,function*(){let t=(yield this.signers()).filter(n=>n.type==="passkey");if(t.length===0)return!1;if(t.length>1)throw new Error('Multiple passkey signers are registered on this wallet. Please specify the credential id: wallet.useSigner({ type: "passkey", id: "<credential-id>" })');return e.id=t[0].locator.replace("passkey:",""),!0})}resolveSignerLocator(e){return e.type==="server"?this.resolveServerSignerApiLocator(e):M(e)}isPasskeyMissingId(e){return le(e)==null}signerIsRegistered(e){return o(this,null,function*(){return i(this,l).signerIsRegistered(e)})}isSignerApproved(e){return o(this,null,function*(){return i(this,l).isSignerApproved(e)})}needsRecovery(){return i(this,f).needsRecovery}recover(){return o(this,null,function*(){yield i(this,f).recover()})}signers(){return o(this,null,function*(){var a,c;s.info("wallet.signers.start");let e=yield i(this,d).getWallet(this.walletLocator);if("error"in e)throw s.error("wallet.signers.error",{error:e}),new j(JSON.stringify(e));if(!we(e)){let h=e.type!=="smart"?`Wallet type ${e.type} not supported`:`Wallet chain type ${e.chainType} not supported`;throw s.error("wallet.signers.error",{error:h}),new H(h)}let r=(c=(a=e==null?void 0:e.config)==null?void 0:a.delegatedSigners)!=null?c:[],n=(yield Promise.all(r.map(h=>o(this,null,function*(){try{return(yield i(this,l).getSignerState(h.locator)).signer}catch(u){return s.warn("wallet.signers.mapSigner.failed",{locator:h.locator,error:u}),null}})))).filter(h=>h!=null);return s.info("wallet.signers.success",{count:n.length}),n})}get walletLocator(){if(i(this,d).isServerSide)return this.address;{let e=this.chainAdapter.walletLocatorPrefix,r=this.alias!=null?`:alias:${this.alias}`:"";return e+r}}get signerManager(){return i(this,l)}preAuthIfNeeded(){return o(this,null,function*(){yield i(this,O),i(this,W)==null&&T(this,W,this.recover());try{yield i(this,W)}finally{T(this,W,null)}let e=i(this,l).require();e instanceof ae&&(yield e.ensureAuthenticated())})}isRecoverySigner(e){return this.matchRecoverySigner(e)!=null}matchRecoverySigner(e){let r=L(e.type),t=i(this,l).descriptorContext(),n=this.recoveryMethods.findIndex(a=>a.type===e.type&&r.matchesRecovery(e,a,t));return n===-1?null:(r.adoptsRecoveryConfigOnMatch&&i(this,l).adoptRecoveryConfig(n,e),n)}resolveChainForEnvironment(){let e=re(this.chain,i(this,d).environment);return e!==this.chain&&(this.chain=e),this.chain}approveTransactionAndWait(e,r){return o(this,null,function*(){return yield this.approveTransactionInternal(e,r),yield this.sleep(1e3),yield this.waitForTransaction(e)})}approveSignatureAndWait(e,r){return o(this,null,function*(){let t=yield this.approveSignatureInternal(e,r);return!("error"in t)&&t.status==="success"&&t.outputSignature!=null?{signature:t.outputSignature,signatureId:e}:(yield this.sleep(1e3),yield this.waitForSignature(e))})}approveSignatureInternal(e,r){return o(this,null,function*(){var u,S;if(!this.chainAdapter.supportsSignatures)throw new Error("Approving signatures is only supported for EVM smart wallets");let t=i(this,l).require(),n=yield i(this,d).getSignature(this.walletLocator,e);if("error"in n)throw k(n),new Q(JSON.stringify(n));if(t.type==="api-key")return n;if((r==null?void 0:r.approval)!=null){let g=[r.approval];return yield this.executeApproveSignatureWithErrorHandling(e,g)}let a=(u=n.approvals)==null?void 0:u.pending;if(a==null||a.length===0)return n;let c=[...(S=r==null?void 0:r.additionalSigners)!=null?S:[],t],h=yield F(this,m,U).call(this,F(this,m,G).call(this,a),c,(g,w)=>g.signMessage(w.message));return yield this.executeApproveSignatureWithErrorHandling(e,h)})}approveTransactionInternal(e,r){return o(this,null,function*(){var u,S,g,w,y;let t=yield i(this,d).getTransaction(this.walletLocator,e);if("error"in t)throw k(t),new Z(JSON.stringify(t));yield(g=(S=(u=i(this,N))==null?void 0:u.callbacks)==null?void 0:S.onTransactionStart)==null?void 0:g.call(S);let n=i(this,l).require();if(n.type==="api-key")return t;if((r==null?void 0:r.approval)!=null){let C=[r.approval];return yield this.executeApproveTransactionWithErrorHandling(e,C)}let a=(w=t.approvals)==null?void 0:w.pending;if(a==null||a.length===0)return t;let c=[...(y=r==null?void 0:r.additionalSigners)!=null?y:[],n],h=yield F(this,m,U).call(this,F(this,m,G).call(this,a),c,(C,_)=>se(t.chainType,this.chainAdapter).signApproval(C,t,_.message));return yield this.executeApproveTransactionWithErrorHandling(e,h)})}executeApproveTransactionWithErrorHandling(e,r){return o(this,null,function*(){s.info("wallet.approve: submitting approval to API",{transactionId:e});let t=yield i(this,d).approveTransaction(this.walletLocator,e,{approvals:r});if(t.error)throw k(t),new ee(JSON.stringify(t));return t})}executeApproveSignatureWithErrorHandling(e,r){return o(this,null,function*(){let t=yield i(this,d).approveSignature(this.walletLocator,e,{approvals:r});if(t.error)throw k(t),new K(JSON.stringify(t));return t})}waitForSignature(e){return o(this,null,function*(){return yield Se(i(this,d),this.walletLocator,e)})}waitForTransaction(n){return o(this,arguments,function*(e,r=6e4,t={}){return yield ue(i(this,d),this.walletLocator,e,v({timeoutMs:r},t))})}sleep(e){return o(this,null,function*(){return new Promise(r=>setTimeout(r,e))})}};N=new WeakMap,d=new WeakMap,b=new WeakMap,x=new WeakMap,l=new WeakMap,f=new WeakMap,I=new WeakMap,O=new WeakMap,W=new WeakMap,m=new WeakSet,ve=function(e){return o(this,null,function*(){let r=yield i(this,f).tryResolveLocallyAvailableSigner(e);return r!=null&&s.info("wallet.approve.deviceSignerRecoveredViaFallback",{signerLocator:e}),r})},fe=function(e,r){return o(this,null,function*(){var n;let t=e.find(a=>a.locator()===r);if(t==null&&(t=(n=yield F(this,m,ve).call(this,r))!=null?n:void 0),t==null)throw new q(`Signer ${r} not found in pending approvals`);return t})},G=function(e){return e.map(r=>{if(r.signer.type==="quorum")throw new z(`This wallet requires approval from a quorum signer (${r.signer.locator}), which is not yet supported by this SDK version`);return r})},U=function(e,r,t){return o(this,null,function*(){return yield Promise.all(e.map(n=>o(this,null,function*(){let a=yield F(this,m,fe).call(this,r,n.signer.locator),c=yield t(a,n);return D(v({},c),{signer:a.locator()})})))})},P([E({logger:s,methodName:"wallet.balances",buildContext(e){return{chain:e.chain,address:e.address}}})],R.prototype,"balances",1),P([E({logger:s,methodName:"wallet.stagingFund",buildContext(e){return{chain:e.chain,address:e.address}}})],R.prototype,"stagingFund",1),P([E({logger:s,methodName:"wallet.send",buildContext(e){return{chain:e.chain,address:e.address}}})],R.prototype,"send",1),P([E({logger:s,methodName:"wallet.approve",buildContext(e){return{chain:e.chain,address:e.address}}})],R.prototype,"approve",1),P([E({logger:s,methodName:"wallet.addSigner",buildContext(e){return{chain:e.chain,address:e.address}}})],R.prototype,"addSigner",1),P([E({logger:s,methodName:"wallet.removeSigner",buildContext(e){return{chain:e.chain,address:e.address}}})],R.prototype,"removeSigner",1),P([E({logger:s,methodName:"wallet.useSigner",buildContext(e){return{chain:e.chain,address:e.address}}})],R.prototype,"useSigner",1),P([E({logger:s,methodName:"wallet.recover",buildContext(e){return{chain:e.chain,address:e.address}}})],R.prototype,"recover",1),P([E({logger:s,methodName:"wallet.signers",buildContext(e){return{chain:e.chain,address:e.address}}})],R.prototype,"signers",1);function we(J){return J.type==="smart"&&ne(J.chainType)}export{R as a};
|
package/dist/chunk-5X66U2JL.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOQFZL5LIcjs = require('./chunk-OQFZL5LI.cjs');var _chunkAUO6R32Hcjs = require('./chunk-AUO6R32H.cjs');var _chunkZPO3XSWUcjs = require('./chunk-ZPO3XSWU.cjs');var _chunkIR5WN6FQcjs = require('./chunk-IR5WN6FQ.cjs');var _chunkGEY574THcjs = require('./chunk-GEY574TH.cjs');var _chunkUE3WVHTMcjs = require('./chunk-UE3WVHTM.cjs');var _chunk5X4EOJFGcjs = require('./chunk-5X4EOJFG.cjs');var _chunkTCDH5Q6Qcjs = require('./chunk-TCDH5Q6Q.cjs');var _chunkHRUMWG2Fcjs = require('./chunk-HRUMWG2F.cjs');var _chunkVS6I4S7Xcjs = require('./chunk-VS6I4S7X.cjs');var _chunkW3BYSI7Fcjs = require('./chunk-W3BYSI7F.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');var _chains = require('viem/chains');var Z=[_commonsdkbase.BlockchainIncludingTestnet.ABSTRACT_TESTNET,_commonsdkbase.BlockchainIncludingTestnet.ARBITRUM_SEPOLIA,_commonsdkbase.BlockchainIncludingTestnet.AVALANCHE_FUJI,_commonsdkbase.BlockchainIncludingTestnet.BASE_SEPOLIA,_commonsdkbase.BlockchainIncludingTestnet.CELO_SEPOLIA,_commonsdkbase.BlockchainIncludingTestnet.CURTIS,_commonsdkbase.BlockchainIncludingTestnet.ETHEREUM_SEPOLIA,_commonsdkbase.BlockchainIncludingTestnet.FLOW_TESTNET,_commonsdkbase.BlockchainIncludingTestnet.MANTLE_SEPOLIA,_commonsdkbase.BlockchainIncludingTestnet.MODE_SEPOLIA,_commonsdkbase.BlockchainIncludingTestnet.OPTIMISM_SEPOLIA,_commonsdkbase.BlockchainIncludingTestnet.PLUME_TESTNET,_commonsdkbase.BlockchainIncludingTestnet.POLYGON_AMOY,_commonsdkbase.BlockchainIncludingTestnet.ROBINHOOD_CHAIN_TESTNET,_commonsdkbase.BlockchainIncludingTestnet.SCROLL_SEPOLIA,_commonsdkbase.BlockchainIncludingTestnet.SEI_ATLANTIC_2_TESTNET,_commonsdkbase.BlockchainIncludingTestnet.STORY_TESTNET,_commonsdkbase.BlockchainIncludingTestnet.WORLD_CHAIN_SEPOLIA,_commonsdkbase.BlockchainIncludingTestnet.ZORA_SEPOLIA,_commonsdkbase.BlockchainIncludingTestnet.ARC_TESTNET,_commonsdkbase.BlockchainIncludingTestnet.TEMPO_TESTNET],k=[_commonsdkbase.BlockchainIncludingTestnet.ABSTRACT,_commonsdkbase.BlockchainIncludingTestnet.APECHAIN,_commonsdkbase.BlockchainIncludingTestnet.ARBITRUM,_commonsdkbase.BlockchainIncludingTestnet.ARBITRUMNOVA,_commonsdkbase.BlockchainIncludingTestnet.ARC,_commonsdkbase.BlockchainIncludingTestnet.AVALANCHE,_commonsdkbase.BlockchainIncludingTestnet.BASE,_commonsdkbase.BlockchainIncludingTestnet.BSC,_commonsdkbase.BlockchainIncludingTestnet.CELO,_commonsdkbase.BlockchainIncludingTestnet.ETHEREUM,_commonsdkbase.BlockchainIncludingTestnet.FLOW,_commonsdkbase.BlockchainIncludingTestnet.MANTLE,_commonsdkbase.BlockchainIncludingTestnet.MODE,_commonsdkbase.BlockchainIncludingTestnet.OPTIMISM,_commonsdkbase.BlockchainIncludingTestnet.PLUME,_commonsdkbase.BlockchainIncludingTestnet.POLYGON,_commonsdkbase.BlockchainIncludingTestnet.ROBINHOOD_CHAIN,_commonsdkbase.BlockchainIncludingTestnet.SCROLL,_commonsdkbase.BlockchainIncludingTestnet.SEI_PACIFIC_1,_commonsdkbase.BlockchainIncludingTestnet.SHAPE,_commonsdkbase.BlockchainIncludingTestnet.STORY,_commonsdkbase.BlockchainIncludingTestnet.TEMPO,_commonsdkbase.BlockchainIncludingTestnet.WORLDCHAIN,_commonsdkbase.BlockchainIncludingTestnet.ZORA];function se(t){switch(t){case _commonsdkbase.BlockchainIncludingTestnet.BASE_SEPOLIA:return _chains.baseSepolia;case _commonsdkbase.BlockchainIncludingTestnet.BASE:return _chains.base;case _commonsdkbase.BlockchainIncludingTestnet.POLYGON_AMOY:return _chains.polygonAmoy;case _commonsdkbase.BlockchainIncludingTestnet.POLYGON:return _chains.polygon;case _commonsdkbase.BlockchainIncludingTestnet.OPTIMISM_SEPOLIA:return _chains.optimismSepolia;case _commonsdkbase.BlockchainIncludingTestnet.OPTIMISM:return _chains.optimism;case _commonsdkbase.BlockchainIncludingTestnet.ARBITRUM_SEPOLIA:return _chains.arbitrumSepolia;case _commonsdkbase.BlockchainIncludingTestnet.ARBITRUM:return _chains.arbitrum;case _commonsdkbase.BlockchainIncludingTestnet.ARBITRUMNOVA:return _chains.arbitrumNova;case _commonsdkbase.BlockchainIncludingTestnet.AVALANCHE:return _chains.avalanche;case _commonsdkbase.BlockchainIncludingTestnet.AVALANCHE_FUJI:return _chains.avalancheFuji;case _commonsdkbase.BlockchainIncludingTestnet.CELO:return _chains.celo;case _commonsdkbase.BlockchainIncludingTestnet.CELO_SEPOLIA:return _chunkOQFZL5LIcjs.a;case _commonsdkbase.BlockchainIncludingTestnet.ROBINHOOD_CHAIN:return _chunkAUO6R32Hcjs.a;case _commonsdkbase.BlockchainIncludingTestnet.ROBINHOOD_CHAIN_TESTNET:return _chunkZPO3XSWUcjs.a;case _commonsdkbase.BlockchainIncludingTestnet.STORY_TESTNET:return _chunkGEY574THcjs.a;case _commonsdkbase.BlockchainIncludingTestnet.STORY:return _chunkIR5WN6FQcjs.a;case _commonsdkbase.BlockchainIncludingTestnet.MODE_SEPOLIA:return _chains.modeTestnet;case _commonsdkbase.BlockchainIncludingTestnet.MODE:return _chains.mode;case _commonsdkbase.BlockchainIncludingTestnet.BSC:return _chains.bsc;case _commonsdkbase.BlockchainIncludingTestnet.SHAPE:return _chains.shape;case _commonsdkbase.BlockchainIncludingTestnet.ZORA:return _chains.zora;case _commonsdkbase.BlockchainIncludingTestnet.ZORA_SEPOLIA:return _chains.zoraSepolia;case _commonsdkbase.BlockchainIncludingTestnet.ETHEREUM_SEPOLIA:return _chains.sepolia;case _commonsdkbase.BlockchainIncludingTestnet.ETHEREUM:return _chains.mainnet;case _commonsdkbase.BlockchainIncludingTestnet.FLOW:return _chains.flowMainnet;case _commonsdkbase.BlockchainIncludingTestnet.FLOW_TESTNET:return _chains.flowTestnet;case _commonsdkbase.BlockchainIncludingTestnet.PLUME_TESTNET:return _chains.plumeTestnet;case _commonsdkbase.BlockchainIncludingTestnet.PLUME:return _chains.plume;case _commonsdkbase.BlockchainIncludingTestnet.ARC:return _chunkTCDH5Q6Qcjs.a;case _commonsdkbase.BlockchainIncludingTestnet.ARC_TESTNET:return _chunkHRUMWG2Fcjs.a;case _commonsdkbase.BlockchainIncludingTestnet.TEMPO:return _chunkUE3WVHTMcjs.a;case _commonsdkbase.BlockchainIncludingTestnet.TEMPO_TESTNET:return _chunk5X4EOJFGcjs.a;case _commonsdkbase.BlockchainIncludingTestnet.ABSTRACT:case _commonsdkbase.BlockchainIncludingTestnet.ABSTRACT_TESTNET:case _commonsdkbase.BlockchainIncludingTestnet.APECHAIN:case _commonsdkbase.BlockchainIncludingTestnet.MANTLE:case _commonsdkbase.BlockchainIncludingTestnet.MANTLE_SEPOLIA:case _commonsdkbase.BlockchainIncludingTestnet.SCROLL:case _commonsdkbase.BlockchainIncludingTestnet.SCROLL_SEPOLIA:case _commonsdkbase.BlockchainIncludingTestnet.SEI_PACIFIC_1:case _commonsdkbase.BlockchainIncludingTestnet.SEI_ATLANTIC_2_TESTNET:case _commonsdkbase.BlockchainIncludingTestnet.CURTIS:case _commonsdkbase.BlockchainIncludingTestnet.WORLDCHAIN:case _commonsdkbase.BlockchainIncludingTestnet.WORLD_CHAIN_SEPOLIA:throw new Error(`Chain ${t} is not yet supported in toViemChain function. Please add the appropriate viem chain definition.`);default:throw new Error(`Unknown chain: ${t}`)}}function m(t){return Z.includes(t)}function M(t){return k.includes(t)}var J={[_commonsdkbase.BlockchainIncludingTestnet.ABSTRACT]:_commonsdkbase.BlockchainIncludingTestnet.ABSTRACT_TESTNET,[_commonsdkbase.BlockchainIncludingTestnet.APECHAIN]:_commonsdkbase.BlockchainIncludingTestnet.CURTIS,[_commonsdkbase.BlockchainIncludingTestnet.ARBITRUM]:_commonsdkbase.BlockchainIncludingTestnet.ARBITRUM_SEPOLIA,[_commonsdkbase.BlockchainIncludingTestnet.AVALANCHE]:_commonsdkbase.BlockchainIncludingTestnet.AVALANCHE_FUJI,[_commonsdkbase.BlockchainIncludingTestnet.BASE]:_commonsdkbase.BlockchainIncludingTestnet.BASE_SEPOLIA,[_commonsdkbase.BlockchainIncludingTestnet.CELO]:_commonsdkbase.BlockchainIncludingTestnet.CELO_SEPOLIA,[_commonsdkbase.BlockchainIncludingTestnet.ETHEREUM]:_commonsdkbase.BlockchainIncludingTestnet.ETHEREUM_SEPOLIA,[_commonsdkbase.BlockchainIncludingTestnet.FLOW]:_commonsdkbase.BlockchainIncludingTestnet.FLOW_TESTNET,[_commonsdkbase.BlockchainIncludingTestnet.MANTLE]:_commonsdkbase.BlockchainIncludingTestnet.MANTLE_SEPOLIA,[_commonsdkbase.BlockchainIncludingTestnet.MODE]:_commonsdkbase.BlockchainIncludingTestnet.MODE_SEPOLIA,[_commonsdkbase.BlockchainIncludingTestnet.OPTIMISM]:_commonsdkbase.BlockchainIncludingTestnet.OPTIMISM_SEPOLIA,[_commonsdkbase.BlockchainIncludingTestnet.PLUME]:_commonsdkbase.BlockchainIncludingTestnet.PLUME_TESTNET,[_commonsdkbase.BlockchainIncludingTestnet.POLYGON]:_commonsdkbase.BlockchainIncludingTestnet.POLYGON_AMOY,[_commonsdkbase.BlockchainIncludingTestnet.ROBINHOOD_CHAIN]:_commonsdkbase.BlockchainIncludingTestnet.ROBINHOOD_CHAIN_TESTNET,[_commonsdkbase.BlockchainIncludingTestnet.SCROLL]:_commonsdkbase.BlockchainIncludingTestnet.SCROLL_SEPOLIA,[_commonsdkbase.BlockchainIncludingTestnet.SEI_PACIFIC_1]:_commonsdkbase.BlockchainIncludingTestnet.SEI_ATLANTIC_2_TESTNET,[_commonsdkbase.BlockchainIncludingTestnet.STORY]:_commonsdkbase.BlockchainIncludingTestnet.STORY_TESTNET,[_commonsdkbase.BlockchainIncludingTestnet.WORLDCHAIN]:_commonsdkbase.BlockchainIncludingTestnet.WORLD_CHAIN_SEPOLIA,[_commonsdkbase.BlockchainIncludingTestnet.ZORA]:_commonsdkbase.BlockchainIncludingTestnet.ZORA_SEPOLIA,[_commonsdkbase.BlockchainIncludingTestnet.TEMPO]:_commonsdkbase.BlockchainIncludingTestnet.TEMPO_TESTNET,[_commonsdkbase.BlockchainIncludingTestnet.ARC]:_commonsdkbase.BlockchainIncludingTestnet.ARC_TESTNET};function q(t){return J[t]}function z(t){return t==="solana"||t==="stellar"||m(t)||M(t)}function Se(t,a){if(!z(t))throw new (0, _chunkVS6I4S7Xcjs.c)(`Unknown chain "${t}". Please use a supported chain name (e.g. "base-sepolia", "polygon", "solana", "stellar").`);if(t==="solana"||t==="stellar")return t;let r=t,T=a===_commonsdkbase.APIKeyEnvironmentPrefix.PRODUCTION;if(T&&m(r))throw new (0, _chunkVS6I4S7Xcjs.b)(`Chain "${t}" is a testnet chain and cannot be used in production. Please use a mainnet chain instead.`);if(!T&&M(r)){let n=q(r);if(n!=null)return _chunkW3BYSI7Fcjs.a.debug("validateChainForEnvironment.autoConverted",{chain:t,convertedTo:n,environment:a,message:`Chain "${t}" is a mainnet chain and cannot be used in ${a} environment. Automatically converted to "${n}".`}),n;_chunkW3BYSI7Fcjs.a.debug("validateChainForEnvironment.mismatch",{chain:t,environment:a,message:`Chain "${t}" is a mainnet chain and should not be used in ${a} environment. No testnet equivalent is available. Please use a testnet chain instead.`})}return t}exports.a = se; exports.b = m; exports.c = M; exports.d = q; exports.e = z; exports.f = Se;
|
package/dist/chunk-6BNGRRNH.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBK4RGDMJcjs = require('./chunk-BK4RGDMJ.cjs');var _chunkW3BYSI7Fcjs = require('./chunk-W3BYSI7F.cjs');var _chunkDSIFRRBScjs = require('./chunk-DSIFRRBS.cjs');var a=class g extends _chunkBK4RGDMJcjs.a{constructor(n){super(n)}signMessage(){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){return yield Promise.reject(new Error("signMessage method not implemented for stellar signer"))})}signTransaction(n){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){var i;yield this.handleAuthRequired();let c=this.getJwtOrThrow();_chunkW3BYSI7Fcjs.a.info("sign: sending request",{keyType:"ed25519"});let d=Date.now(),e=yield(i=this.config.clientTEEConnection)==null?void 0:i.sendAction({event:"request:sign",responseEvent:"response:sign",data:{authData:{jwt:c,apiKey:this.config.crossmint.apiKey},data:{keyType:"ed25519",bytes:n,encoding:"base64"}},options:_chunkBK4RGDMJcjs.b});if(_chunkW3BYSI7Fcjs.a.info("sign: response received",{status:e==null?void 0:e.status,durationMs:Date.now()-d}),(e==null?void 0:e.status)==="error")throw new Error(e.error);if((e==null?void 0:e.signature)==null)throw new Error("Failed to sign transaction");if(g.verifyPublicKeyFormat(e.publicKey),e.signature.encoding!=="base64")throw new Error("Wrong encoding for signature. Expected base64, got "+e.signature.encoding);return{signature:e.signature.bytes}})}static verifyPublicKeyFormat(n){if(n==null)throw new Error("No public key found");if(n.encoding!=="base64"||n.keyType!=="ed25519"||n.bytes==null)throw new Error("Not supported. Expected public key to be in base64 encoding and ed25519 key type. Got: "+JSON.stringify(n))}getChainKeyParams(){return{scheme:"ed25519",encoding:"strkey"}}};exports.a = a;
|
package/dist/chunk-7ER4XMKQ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b as g}from"./chunk-K4KSI3GM.js";import{a as s}from"./chunk-INUEMQPG.js";import{h as t}from"./chunk-NU7VF7MC.js";import{PersonalMessage as u}from"ox";import{isHex as h,toHex as l}from"viem";var c=class p extends a{constructor(e){super(e)}signMessage(e){return t(this,null,function*(){let i=h(e)?e:l(e),r=u.getSignPayload(i);return yield this.sign(r)})}signTransaction(e){return t(this,null,function*(){return yield this.sign(e)})}sign(e){return t(this,null,function*(){var o;yield this.handleAuthRequired();let i=this.getJwtOrThrow(),r=e.replace("0x","");s.info("sign: sending request",{keyType:"secp256k1"});let y=Date.now(),n=yield(o=this.config.clientTEEConnection)==null?void 0:o.sendAction({event:"request:sign",responseEvent:"response:sign",data:{authData:{jwt:i,apiKey:this.config.crossmint.apiKey},data:{keyType:"secp256k1",bytes:r,encoding:"hex"}},options:g});if(s.info("sign: response received",{status:n==null?void 0:n.status,durationMs:Date.now()-y}),(n==null?void 0:n.status)==="error")throw new Error(n.error);if((n==null?void 0:n.signature)==null)throw new Error("Failed to sign transaction");return p.verifyPublicKeyFormat(n.publicKey),{signature:n.signature.bytes}})}static verifyPublicKeyFormat(e){if(e==null)throw new Error("No public key found");if(e.encoding!=="hex"||e.keyType!=="secp256k1"||e.bytes==null)throw new Error("Not supported. Expected public key to be in hex encoding and secp256k1 key type. Got: "+JSON.stringify(e))}getChainKeyParams(){return{scheme:"secp256k1",encoding:"hex"}}};export{c as a};
|
package/dist/chunk-7SRQ77HY.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBK4RGDMJcjs = require('./chunk-BK4RGDMJ.cjs');var _chunkW3BYSI7Fcjs = require('./chunk-W3BYSI7F.cjs');var _chunkDSIFRRBScjs = require('./chunk-DSIFRRBS.cjs');var _ox = require('ox');var _viem = require('viem');var c=class p extends _chunkBK4RGDMJcjs.a{constructor(e){super(e)}signMessage(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){let i=_viem.isHex.call(void 0, e)?e:_viem.toHex.call(void 0, e),r=_ox.PersonalMessage.getSignPayload(i);return yield this.sign(r)})}signTransaction(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){return yield this.sign(e)})}sign(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){var o;yield this.handleAuthRequired();let i=this.getJwtOrThrow(),r=e.replace("0x","");_chunkW3BYSI7Fcjs.a.info("sign: sending request",{keyType:"secp256k1"});let y=Date.now(),n=yield(o=this.config.clientTEEConnection)==null?void 0:o.sendAction({event:"request:sign",responseEvent:"response:sign",data:{authData:{jwt:i,apiKey:this.config.crossmint.apiKey},data:{keyType:"secp256k1",bytes:r,encoding:"hex"}},options:_chunkBK4RGDMJcjs.b});if(_chunkW3BYSI7Fcjs.a.info("sign: response received",{status:n==null?void 0:n.status,durationMs:Date.now()-y}),(n==null?void 0:n.status)==="error")throw new Error(n.error);if((n==null?void 0:n.signature)==null)throw new Error("Failed to sign transaction");return p.verifyPublicKeyFormat(n.publicKey),{signature:n.signature.bytes}})}static verifyPublicKeyFormat(e){if(e==null)throw new Error("No public key found");if(e.encoding!=="hex"||e.keyType!=="secp256k1"||e.bytes==null)throw new Error("Not supported. Expected public key to be in hex encoding and secp256k1 key type. Got: "+JSON.stringify(e))}getChainKeyParams(){return{scheme:"secp256k1",encoding:"hex"}}};exports.a = c;
|