@crossmint/wallets-sdk 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -18
- package/dist/api/client.cjs +1 -1
- package/dist/api/client.d.cts +3 -3
- package/dist/api/client.d.ts +3 -3
- package/dist/api/client.js +1 -1
- package/dist/api/gen/index.cjs +1 -1
- 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 +1 -1
- package/dist/api/gen/sdk.gen.d.ts +1 -1
- package/dist/api/gen/sdk.gen.js +1 -1
- package/dist/api/gen/types.gen.d.cts +84 -37
- package/dist/api/gen/types.gen.d.ts +84 -37
- 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 +5 -3
- package/dist/api/types.d.ts +5 -3
- package/dist/chains/chains.cjs +1 -0
- package/dist/{evm/chains/index.d.cts → chains/chains.d.cts} +6 -6
- package/dist/{evm/chains/index.d.ts → chains/chains.d.ts} +6 -6
- package/dist/chains/chains.js +1 -0
- package/dist/chains/definitions/story.cjs +1 -0
- package/dist/chains/definitions/story.js +1 -0
- package/dist/chains/definitions/storyTestnet.cjs +1 -0
- package/dist/chains/definitions/storyTestnet.js +1 -0
- package/dist/chunk-2WI3SDNA.cjs +1 -0
- package/dist/chunk-3J7G6OXZ.cjs +1 -0
- package/dist/chunk-3V3TVDQL.cjs +1 -0
- package/dist/chunk-5HYE5LK5.cjs +1 -0
- package/dist/chunk-6BN4ICHP.cjs +1 -0
- package/dist/chunk-6EFZZZFC.js +1 -0
- package/dist/chunk-6VJEBYPN.cjs +1 -0
- package/dist/chunk-7DPGK746.cjs +1 -0
- package/dist/chunk-AN25LSQB.js +1 -0
- package/dist/chunk-BJDS5BJG.js +1 -0
- package/dist/chunk-BQJLKREV.cjs +1 -0
- package/dist/chunk-E5GSFWJV.js +1 -0
- package/dist/chunk-EBPF52SZ.cjs +1 -0
- package/dist/{chunk-MV7LJCAB.cjs → chunk-EHGCJCNZ.cjs} +1 -1
- package/dist/chunk-EOCGMBYW.js +1 -0
- package/dist/chunk-FHE35PRI.js +1 -0
- package/dist/chunk-FI42UB34.js +1 -0
- package/dist/chunk-FO5JCAOP.js +1 -0
- package/dist/chunk-ICJBF526.cjs +1 -0
- package/dist/chunk-ICWGBL27.js +1 -0
- package/dist/chunk-IVDTXN3O.js +1 -0
- package/dist/chunk-LBJIX2VH.cjs +1 -0
- package/dist/chunk-LG7WZW3Q.js +1 -0
- package/dist/chunk-M4ELAV7U.js +1 -0
- package/dist/chunk-N3Q3MSAS.cjs +1 -0
- package/dist/chunk-NFQHDB4C.cjs +1 -0
- package/dist/chunk-NSZEPQXP.cjs +1 -0
- package/dist/chunk-O4X74PTP.cjs +1 -0
- package/dist/chunk-Q3ZJOXAP.js +1 -0
- package/dist/chunk-Q4WJ7QNP.js +1 -0
- package/dist/chunk-QIHAACUW.js +1 -0
- package/dist/chunk-QPG5RPLB.js +1 -0
- package/dist/chunk-RCGA5LLF.cjs +1 -0
- package/dist/{chunk-3J4NDFR5.js → chunk-SCSTKTGR.js} +1 -1
- package/dist/chunk-VNNOPP7M.cjs +1 -0
- package/dist/chunk-WO3S2YII.js +1 -0
- package/dist/chunk-YE5N5ADW.js +1 -0
- package/dist/chunk-ZSWIQU3U.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +16 -12
- package/dist/index.d.ts +16 -12
- package/dist/index.js +1 -1
- package/dist/sdk.cjs +1 -1
- package/dist/sdk.d.cts +21 -21
- package/dist/sdk.d.ts +21 -21
- package/dist/sdk.js +1 -1
- package/dist/signers/email-iframe-manager.cjs +1 -0
- package/dist/signers/email-iframe-manager.d.cts +15 -0
- package/dist/signers/email-iframe-manager.d.ts +15 -0
- package/dist/signers/email-iframe-manager.js +1 -0
- package/dist/signers/email-signer-api-client.cjs +1 -0
- package/dist/signers/email-signer-api-client.d.cts +13 -0
- package/dist/signers/email-signer-api-client.d.ts +13 -0
- package/dist/signers/email-signer-api-client.js +1 -0
- package/dist/signers/email.cjs +1 -0
- package/dist/signers/email.d.cts +29 -0
- package/dist/signers/email.d.ts +29 -0
- package/dist/signers/email.js +1 -0
- package/dist/signers/evm-api-key.cjs +1 -0
- package/dist/signers/evm-api-key.d.cts +19 -0
- package/dist/signers/evm-api-key.d.ts +19 -0
- package/dist/signers/evm-api-key.js +1 -0
- package/dist/signers/evm-external-wallet.cjs +1 -0
- package/dist/signers/evm-external-wallet.d.cts +25 -0
- package/dist/signers/evm-external-wallet.d.ts +25 -0
- package/dist/signers/evm-external-wallet.js +1 -0
- package/dist/signers/index.cjs +1 -0
- package/dist/signers/index.d.cts +12 -0
- package/dist/signers/index.d.ts +12 -0
- package/dist/signers/index.js +1 -0
- package/dist/signers/passkey.cjs +1 -0
- package/dist/signers/passkey.d.cts +20 -0
- package/dist/signers/passkey.d.ts +20 -0
- package/dist/signers/passkey.js +1 -0
- package/dist/signers/solana-api-key.cjs +1 -0
- package/dist/signers/solana-api-key.d.cts +19 -0
- package/dist/signers/solana-api-key.d.ts +19 -0
- package/dist/signers/solana-api-key.js +1 -0
- package/dist/{solana/utils.cjs → signers/solana-external-wallet.cjs} +1 -1
- package/dist/signers/solana-external-wallet.d.cts +22 -0
- package/dist/signers/solana-external-wallet.d.ts +22 -0
- package/dist/signers/solana-external-wallet.js +1 -0
- package/dist/signers/types.cjs +1 -0
- package/dist/signers/types.d.cts +91 -0
- package/dist/signers/types.d.ts +91 -0
- package/dist/signers/types.js +1 -0
- package/dist/utils/constants.cjs +1 -1
- package/dist/utils/constants.d.cts +2 -3
- package/dist/utils/constants.d.ts +2 -3
- package/dist/utils/constants.js +1 -1
- package/dist/wallets/evm.cjs +1 -0
- package/dist/wallets/evm.d.cts +134 -0
- package/dist/wallets/evm.d.ts +134 -0
- package/dist/wallets/evm.js +1 -0
- package/dist/wallets/solana.cjs +1 -0
- package/dist/wallets/solana.d.cts +21 -0
- package/dist/wallets/solana.d.ts +21 -0
- package/dist/wallets/solana.js +1 -0
- package/dist/wallets/types.cjs +1 -0
- package/dist/wallets/types.d.cts +30 -0
- package/dist/wallets/types.d.ts +30 -0
- package/dist/wallets/types.js +1 -0
- package/dist/wallets/wallet-factory.cjs +1 -0
- package/dist/wallets/wallet-factory.d.cts +32 -0
- package/dist/wallets/wallet-factory.d.ts +32 -0
- package/dist/wallets/wallet-factory.js +1 -0
- package/dist/wallets/wallet.cjs +1 -0
- package/dist/wallets/wallet.d.cts +98 -0
- package/dist/wallets/wallet.d.ts +98 -0
- package/dist/wallets/wallet.js +1 -0
- package/package.json +6 -4
- package/dist/chunk-3YDBLQ73.cjs +0 -1
- package/dist/chunk-53ZDAWYY.js +0 -1
- package/dist/chunk-5CX3CGJS.cjs +0 -1
- package/dist/chunk-6ARPMYUZ.js +0 -1
- package/dist/chunk-6DTBGTSS.cjs +0 -1
- package/dist/chunk-6W35AARC.js +0 -1
- package/dist/chunk-6XOH62PV.cjs +0 -1
- package/dist/chunk-7WRWCJJ6.js +0 -1
- package/dist/chunk-DANM4IBF.cjs +0 -1
- package/dist/chunk-DLYUSTHS.js +0 -1
- package/dist/chunk-DNWDTJR6.cjs +0 -1
- package/dist/chunk-EFRCLQXM.js +0 -1
- package/dist/chunk-ER6A2LAJ.cjs +0 -1
- package/dist/chunk-EZ7PEO5P.cjs +0 -1
- package/dist/chunk-F7GTDFYC.cjs +0 -1
- package/dist/chunk-HKY6CBZC.js +0 -1
- package/dist/chunk-LWGUOI5G.js +0 -1
- package/dist/chunk-LX6WD7J6.js +0 -1
- package/dist/chunk-MCMCLRNB.js +0 -1
- package/dist/chunk-MTWDHWDY.js +0 -1
- package/dist/chunk-OKXV3IAA.js +0 -1
- package/dist/chunk-PBD5HUCH.cjs +0 -1
- package/dist/chunk-PQH5C2OM.cjs +0 -1
- package/dist/chunk-QYX3J3RZ.js +0 -1
- package/dist/chunk-SDH5CVH7.js +0 -0
- package/dist/chunk-TCIZIST7.js +0 -1
- package/dist/chunk-UWWXOC7Y.cjs +0 -1
- package/dist/chunk-V445PZHL.cjs +0 -1
- package/dist/chunk-VDYYOSPR.cjs +0 -1
- package/dist/chunk-VEJMHFK7.cjs +0 -1
- package/dist/chunk-WNXCWDJQ.cjs +0 -1
- package/dist/chunk-WZAT3LML.js +0 -0
- package/dist/chunk-XKXW2FNY.cjs +0 -1
- package/dist/chunk-XP4DDN2K.cjs +0 -1
- package/dist/chunk-YLMKJ56K.js +0 -1
- package/dist/chunk-ZXV5SOXM.js +0 -1
- package/dist/evm/abi/entryPoint.cjs +0 -1
- package/dist/evm/abi/entryPoint.d.cts +0 -777
- package/dist/evm/abi/entryPoint.d.ts +0 -777
- package/dist/evm/abi/entryPoint.js +0 -1
- package/dist/evm/chains/definitions/story.cjs +0 -1
- package/dist/evm/chains/definitions/story.js +0 -1
- package/dist/evm/chains/definitions/storyTestnet.cjs +0 -1
- package/dist/evm/chains/definitions/storyTestnet.js +0 -1
- package/dist/evm/chains/index.cjs +0 -1
- package/dist/evm/chains/index.js +0 -1
- package/dist/evm/index.cjs +0 -1
- package/dist/evm/index.d.cts +0 -16
- package/dist/evm/index.d.ts +0 -16
- package/dist/evm/index.js +0 -1
- package/dist/evm/services/delegated-signers-service.cjs +0 -1
- package/dist/evm/services/delegated-signers-service.d.cts +0 -154
- package/dist/evm/services/delegated-signers-service.d.ts +0 -154
- package/dist/evm/services/delegated-signers-service.js +0 -1
- package/dist/evm/types/signers.cjs +0 -1
- package/dist/evm/types/signers.d.cts +0 -40
- package/dist/evm/types/signers.d.ts +0 -40
- package/dist/evm/types/signers.js +0 -0
- package/dist/evm/types/wallet.cjs +0 -1
- package/dist/evm/types/wallet.d.cts +0 -48
- package/dist/evm/types/wallet.d.ts +0 -48
- package/dist/evm/types/wallet.js +0 -0
- package/dist/evm/utils.cjs +0 -1
- package/dist/evm/utils.d.cts +0 -20
- package/dist/evm/utils.d.ts +0 -20
- package/dist/evm/utils.js +0 -1
- package/dist/evm/wallet.cjs +0 -1
- package/dist/evm/wallet.d.cts +0 -16
- package/dist/evm/wallet.d.ts +0 -16
- package/dist/evm/wallet.js +0 -1
- package/dist/options-DQUNKXxn.d.ts +0 -109
- package/dist/options-IchphkHW.d.cts +0 -109
- package/dist/services/types.cjs +0 -1
- package/dist/services/types.d.cts +0 -35
- package/dist/services/types.d.ts +0 -35
- package/dist/services/types.js +0 -0
- package/dist/services/wallet-factory.cjs +0 -1
- package/dist/services/wallet-factory.d.cts +0 -37
- package/dist/services/wallet-factory.d.ts +0 -37
- package/dist/services/wallet-factory.js +0 -1
- package/dist/solana/index.cjs +0 -1
- package/dist/solana/index.d.cts +0 -13
- package/dist/solana/index.d.ts +0 -13
- package/dist/solana/index.js +0 -1
- package/dist/solana/services/approvals-service.cjs +0 -1
- package/dist/solana/services/approvals-service.d.cts +0 -18
- package/dist/solana/services/approvals-service.d.ts +0 -18
- package/dist/solana/services/approvals-service.js +0 -1
- package/dist/solana/services/delegated-signers-service.cjs +0 -1
- package/dist/solana/services/delegated-signers-service.d.cts +0 -13
- package/dist/solana/services/delegated-signers-service.d.ts +0 -13
- package/dist/solana/services/delegated-signers-service.js +0 -1
- package/dist/solana/services/transactions-service.cjs +0 -1
- package/dist/solana/services/transactions-service.d.cts +0 -13
- package/dist/solana/services/transactions-service.d.ts +0 -13
- package/dist/solana/services/transactions-service.js +0 -1
- package/dist/solana/tokens.cjs +0 -1
- package/dist/solana/tokens.d.cts +0 -3
- package/dist/solana/tokens.d.ts +0 -3
- package/dist/solana/tokens.js +0 -1
- package/dist/solana/types/signers.cjs +0 -1
- package/dist/solana/types/signers.d.cts +0 -38
- package/dist/solana/types/signers.d.ts +0 -38
- package/dist/solana/types/signers.js +0 -1
- package/dist/solana/types/wallet.cjs +0 -1
- package/dist/solana/types/wallet.d.cts +0 -62
- package/dist/solana/types/wallet.d.ts +0 -62
- package/dist/solana/types/wallet.js +0 -0
- package/dist/solana/utils.d.cts +0 -6
- package/dist/solana/utils.d.ts +0 -6
- package/dist/solana/utils.js +0 -1
- package/dist/solana/wallet.cjs +0 -1
- package/dist/solana/wallet.d.cts +0 -13
- package/dist/solana/wallet.d.ts +0 -13
- package/dist/solana/wallet.js +0 -1
- package/dist/utils/index.cjs +0 -1
- package/dist/utils/index.d.cts +0 -3
- package/dist/utils/index.d.ts +0 -3
- package/dist/utils/index.js +0 -1
- package/dist/utils/options.cjs +0 -1
- package/dist/utils/options.d.cts +0 -13
- package/dist/utils/options.d.ts +0 -13
- package/dist/utils/options.js +0 -0
- /package/dist/{evm/chains → chains}/definitions/story.d.cts +0 -0
- /package/dist/{evm/chains → chains}/definitions/story.d.ts +0 -0
- /package/dist/{evm/chains → chains}/definitions/storyTestnet.d.cts +0 -0
- /package/dist/{evm/chains → chains}/definitions/storyTestnet.d.ts +0 -0
- /package/dist/{chunk-F2XDGZCB.cjs → chunk-GEY574TH.cjs} +0 -0
- /package/dist/{chunk-MFUN74KH.cjs → chunk-IR5WN6FQ.cjs} +0 -0
- /package/dist/{chunk-KVFFSUF4.js → chunk-KKQBZXFE.js} +0 -0
- /package/dist/{chunk-3TTYXSH3.cjs → chunk-MHKWLGN5.cjs} +0 -0
- /package/dist/{chunk-ITCP6W2T.js → chunk-PJUVPRKB.js} +0 -0
- /package/dist/{chunk-SILEK5O4.js → chunk-S3DYQVRD.js} +0 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { WebAuthnP256 } from 'ox';
|
|
2
|
+
import { VersionedTransaction } from '@solana/web3.js';
|
|
3
|
+
import { EIP1193Provider, Account } from 'viem';
|
|
4
|
+
import { HandshakeParent } from '@crossmint/client-sdk-window';
|
|
5
|
+
import { signerOutboundEvents, signerInboundEvents } from '@crossmint/client-signers';
|
|
6
|
+
import { Crossmint } from '@crossmint/common-sdk-base';
|
|
7
|
+
import { Chain, SolanaChain } from '../chains/chains.js';
|
|
8
|
+
|
|
9
|
+
declare class AuthRejectedError extends Error {
|
|
10
|
+
constructor();
|
|
11
|
+
}
|
|
12
|
+
type EmailSignerConfig = {
|
|
13
|
+
type: "email";
|
|
14
|
+
email?: string;
|
|
15
|
+
onAuthRequired?: (needsAuth: boolean, sendEmailWithOtp: (email: string) => Promise<void>, verifyOtp: (otp: string) => Promise<void>, reject: () => void) => Promise<void>;
|
|
16
|
+
_handshakeParent?: HandshakeParent<typeof signerOutboundEvents, typeof signerInboundEvents>;
|
|
17
|
+
};
|
|
18
|
+
type BaseExternalWalletSignerConfig = {
|
|
19
|
+
type: "external-wallet";
|
|
20
|
+
address: string;
|
|
21
|
+
};
|
|
22
|
+
type EvmExternalWalletSignerConfig = BaseExternalWalletSignerConfig & {
|
|
23
|
+
provider?: GenericEIP1193Provider | EIP1193Provider;
|
|
24
|
+
viemAccount?: Account;
|
|
25
|
+
};
|
|
26
|
+
type SolanaExternalWalletSignerConfig = BaseExternalWalletSignerConfig & {
|
|
27
|
+
onSignTransaction: (transaction: VersionedTransaction) => Promise<VersionedTransaction>;
|
|
28
|
+
};
|
|
29
|
+
type ExternalWalletSignerConfigForChain<C extends Chain> = C extends SolanaChain ? SolanaExternalWalletSignerConfig : EvmExternalWalletSignerConfig;
|
|
30
|
+
interface GenericEIP1193Provider {
|
|
31
|
+
request(args: {
|
|
32
|
+
method: string;
|
|
33
|
+
params?: any[];
|
|
34
|
+
}): Promise<any>;
|
|
35
|
+
on(event: string, listener: (...args: any[]) => void): void;
|
|
36
|
+
removeListener(event: string, listener: (...args: any[]) => void): void;
|
|
37
|
+
}
|
|
38
|
+
type ApiKeySignerConfig = {
|
|
39
|
+
type: "api-key";
|
|
40
|
+
};
|
|
41
|
+
type BaseSignerConfig<C extends Chain> = ExternalWalletSignerConfigForChain<C> | ApiKeySignerConfig;
|
|
42
|
+
type PasskeySignerConfig = {
|
|
43
|
+
type: "passkey";
|
|
44
|
+
name?: string;
|
|
45
|
+
onCreatePasskey?: (name: string) => Promise<{
|
|
46
|
+
id: string;
|
|
47
|
+
publicKey: {
|
|
48
|
+
x: string;
|
|
49
|
+
y: string;
|
|
50
|
+
};
|
|
51
|
+
}>;
|
|
52
|
+
onSignWithPasskey?: (message: string) => Promise<PasskeySignResult>;
|
|
53
|
+
};
|
|
54
|
+
type EmailInternalSignerConfig = EmailSignerConfig & {
|
|
55
|
+
signerAddress: string;
|
|
56
|
+
crossmint: Crossmint;
|
|
57
|
+
_handshakeParent?: HandshakeParent<typeof signerOutboundEvents, typeof signerInboundEvents>;
|
|
58
|
+
};
|
|
59
|
+
type PasskeyInternalSignerConfig = PasskeySignerConfig & {
|
|
60
|
+
id: string;
|
|
61
|
+
};
|
|
62
|
+
type ApiKeyInternalSignerConfig = ApiKeySignerConfig & {
|
|
63
|
+
address: string;
|
|
64
|
+
};
|
|
65
|
+
type ExternalWalletInternalSignerConfig<C extends Chain> = ExternalWalletSignerConfigForChain<C>;
|
|
66
|
+
type InternalSignerConfig<C extends Chain> = EmailInternalSignerConfig | PasskeyInternalSignerConfig | ApiKeyInternalSignerConfig | ExternalWalletInternalSignerConfig<C>;
|
|
67
|
+
type BaseSignResult = {
|
|
68
|
+
signature: string;
|
|
69
|
+
};
|
|
70
|
+
type PasskeySignResult = {
|
|
71
|
+
signature: {
|
|
72
|
+
r: string;
|
|
73
|
+
s: string;
|
|
74
|
+
};
|
|
75
|
+
metadata: WebAuthnP256.SignMetadata;
|
|
76
|
+
};
|
|
77
|
+
type SignerConfigForChain<C extends Chain> = C extends SolanaChain ? EmailSignerConfig | BaseSignerConfig<C> : PasskeySignerConfig | BaseSignerConfig<C>;
|
|
78
|
+
type SignResultMap = {
|
|
79
|
+
email: BaseSignResult;
|
|
80
|
+
"api-key": BaseSignResult;
|
|
81
|
+
"external-wallet": BaseSignResult;
|
|
82
|
+
passkey: PasskeySignResult;
|
|
83
|
+
};
|
|
84
|
+
interface Signer<T extends keyof SignResultMap = keyof SignResultMap> {
|
|
85
|
+
type: T;
|
|
86
|
+
locator(): string;
|
|
87
|
+
signMessage(message: string): Promise<SignResultMap[T]>;
|
|
88
|
+
signTransaction(transaction: string): Promise<SignResultMap[T]>;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export { type ApiKeyInternalSignerConfig, type ApiKeySignerConfig, AuthRejectedError, type BaseExternalWalletSignerConfig, type BaseSignResult, type BaseSignerConfig, type EmailInternalSignerConfig, type EmailSignerConfig, type EvmExternalWalletSignerConfig, type ExternalWalletInternalSignerConfig, type ExternalWalletSignerConfigForChain, type GenericEIP1193Provider, type InternalSignerConfig, type PasskeyInternalSignerConfig, type PasskeySignResult, type PasskeySignerConfig, type Signer, type SignerConfigForChain, type SolanaExternalWalletSignerConfig };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-M4ELAV7U.js";import"../chunk-22GIA4MK.js";export{a as AuthRejectedError};
|
package/dist/utils/constants.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNFQHDB4Ccjs = require('../chunk-NFQHDB4C.cjs');require('../chunk-CK4JCQY6.cjs');exports.SDK_NAME = _chunkNFQHDB4Ccjs.c; exports.SDK_VERSION = _chunkNFQHDB4Ccjs.b; exports.STATUS_POLLING_INTERVAL_MS = _chunkNFQHDB4Ccjs.d; exports.WALLETS_SERVICE = _chunkNFQHDB4Ccjs.a;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
declare const WALLETS_SERVICE = "WALLETS_SDK";
|
|
2
2
|
declare const SDK_VERSION: string;
|
|
3
3
|
declare const SDK_NAME: string;
|
|
4
|
-
declare const
|
|
5
|
-
declare const STATUS_POLLING_INTERVAL_MS = 1000;
|
|
4
|
+
declare const STATUS_POLLING_INTERVAL_MS = 500;
|
|
6
5
|
|
|
7
|
-
export {
|
|
6
|
+
export { SDK_NAME, SDK_VERSION, STATUS_POLLING_INTERVAL_MS, WALLETS_SERVICE };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
declare const WALLETS_SERVICE = "WALLETS_SDK";
|
|
2
2
|
declare const SDK_VERSION: string;
|
|
3
3
|
declare const SDK_NAME: string;
|
|
4
|
-
declare const
|
|
5
|
-
declare const STATUS_POLLING_INTERVAL_MS = 1000;
|
|
4
|
+
declare const STATUS_POLLING_INTERVAL_MS = 500;
|
|
6
5
|
|
|
7
|
-
export {
|
|
6
|
+
export { SDK_NAME, SDK_VERSION, STATUS_POLLING_INTERVAL_MS, WALLETS_SERVICE };
|
package/dist/utils/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d
|
|
1
|
+
import{a,b,c,d}from"../chunk-EOCGMBYW.js";import"../chunk-22GIA4MK.js";export{c as SDK_NAME,b as SDK_VERSION,d as STATUS_POLLING_INTERVAL_MS,a as WALLETS_SERVICE};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkN3Q3MSAScjs = require('../chunk-N3Q3MSAS.cjs');require('../chunk-6BN4ICHP.cjs');require('../chunk-6VJEBYPN.cjs');require('../chunk-IR5WN6FQ.cjs');require('../chunk-GEY574TH.cjs');require('../chunk-NFQHDB4C.cjs');require('../chunk-CT2UGJEL.cjs');require('../chunk-CK4JCQY6.cjs');exports.EVMWallet = _chunkN3Q3MSAScjs.a;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import * as viem__types_actions_siwe_verifySiweMessage from 'viem/_types/actions/siwe/verifySiweMessage';
|
|
2
|
+
import * as viem__types_actions_public_simulateCalls from 'viem/_types/actions/public/simulateCalls';
|
|
3
|
+
import * as viem__types_actions_public_simulateBlocks from 'viem/_types/actions/public/simulateBlocks';
|
|
4
|
+
import * as viem__types_actions_public_createAccessList from 'viem/_types/actions/public/createAccessList';
|
|
5
|
+
import * as viem from 'viem';
|
|
6
|
+
import { TypedData, TypedDataDefinition, HttpTransport } from 'viem';
|
|
7
|
+
import { EVMTransactionInput } from './types.cjs';
|
|
8
|
+
import { EVMChain, EVMSmartWalletChain } from '../chains/chains.cjs';
|
|
9
|
+
import { Wallet } from './wallet.cjs';
|
|
10
|
+
import '@solana/web3.js';
|
|
11
|
+
import '../api/types.cjs';
|
|
12
|
+
import '../api/gen/types.gen.cjs';
|
|
13
|
+
import '../signers/types.cjs';
|
|
14
|
+
import 'ox';
|
|
15
|
+
import '@crossmint/client-sdk-window';
|
|
16
|
+
import '@crossmint/client-signers';
|
|
17
|
+
import '@crossmint/common-sdk-base';
|
|
18
|
+
import '../api/client.cjs';
|
|
19
|
+
|
|
20
|
+
declare class EVMWallet extends Wallet<EVMChain> {
|
|
21
|
+
constructor(wallet: Wallet<EVMChain>);
|
|
22
|
+
static from(wallet: Wallet<EVMChain>): EVMWallet;
|
|
23
|
+
sendTransaction(params: EVMTransactionInput): Promise<string>;
|
|
24
|
+
signMessage(message: string): Promise<string>;
|
|
25
|
+
createTypedDataSignature<const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(params: TypedDataDefinition<typedData, primaryType> & {
|
|
26
|
+
chain: EVMSmartWalletChain;
|
|
27
|
+
}): Promise<string>;
|
|
28
|
+
getViemClient(params?: {
|
|
29
|
+
transport?: HttpTransport;
|
|
30
|
+
}): {
|
|
31
|
+
account: undefined;
|
|
32
|
+
batch?: viem.ClientConfig["batch"] | undefined;
|
|
33
|
+
cacheTime: number;
|
|
34
|
+
ccipRead?: viem.ClientConfig["ccipRead"] | undefined;
|
|
35
|
+
chain: viem.Chain;
|
|
36
|
+
key: string;
|
|
37
|
+
name: string;
|
|
38
|
+
pollingInterval: number;
|
|
39
|
+
request: viem.EIP1193RequestFn<viem.PublicRpcSchema>;
|
|
40
|
+
transport: viem.TransportConfig<"http", viem.EIP1193RequestFn> & {
|
|
41
|
+
fetchOptions?: viem.HttpTransportConfig["fetchOptions"] | undefined;
|
|
42
|
+
url?: string | undefined;
|
|
43
|
+
};
|
|
44
|
+
type: string;
|
|
45
|
+
uid: string;
|
|
46
|
+
call: (parameters: viem.CallParameters<viem.Chain>) => Promise<viem.CallReturnType>;
|
|
47
|
+
createAccessList: (parameters: viem__types_actions_public_createAccessList.CreateAccessListParameters<viem.Chain>) => Promise<viem__types_actions_public_createAccessList.CreateAccessListReturnType>;
|
|
48
|
+
createBlockFilter: () => Promise<viem.CreateBlockFilterReturnType>;
|
|
49
|
+
createContractEventFilter: <const abi extends viem.Abi | readonly unknown[], eventName extends viem.ContractEventName<abi> | undefined, args extends viem.MaybeExtractEventArgsFromAbi<abi, eventName> | undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args: viem.CreateContractEventFilterParameters<abi, eventName, args, strict, fromBlock, toBlock>) => Promise<viem.CreateContractEventFilterReturnType<abi, eventName, args, strict, fromBlock, toBlock>>;
|
|
50
|
+
createEventFilter: <const abiEvent extends viem.AbiEvent | undefined = undefined, const abiEvents extends readonly viem.AbiEvent[] | readonly unknown[] | undefined = abiEvent extends viem.AbiEvent ? [abiEvent] : undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, _EventName extends string | undefined = viem.MaybeAbiEventName<abiEvent>, _Args extends viem.MaybeExtractEventArgsFromAbi<abiEvents, _EventName> | undefined = undefined>(args?: viem.CreateEventFilterParameters<abiEvent, abiEvents, strict, fromBlock, toBlock, _EventName, _Args> | undefined) => Promise<viem.CreateEventFilterReturnType<abiEvent, abiEvents, strict, fromBlock, toBlock, _EventName, _Args>>;
|
|
51
|
+
createPendingTransactionFilter: () => Promise<viem.CreatePendingTransactionFilterReturnType>;
|
|
52
|
+
estimateContractGas: <chain extends viem.Chain | undefined, const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "nonpayable" | "payable">, args extends viem.ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>>(args: viem.EstimateContractGasParameters<abi, functionName, args, chain>) => Promise<viem.EstimateContractGasReturnType>;
|
|
53
|
+
estimateGas: (args: viem.EstimateGasParameters<viem.Chain>) => Promise<viem.EstimateGasReturnType>;
|
|
54
|
+
getBalance: (args: viem.GetBalanceParameters) => Promise<viem.GetBalanceReturnType>;
|
|
55
|
+
getBlobBaseFee: () => Promise<viem.GetBlobBaseFeeReturnType>;
|
|
56
|
+
getBlock: <includeTransactions extends boolean = false, blockTag extends viem.BlockTag = "latest">(args?: viem.GetBlockParameters<includeTransactions, blockTag> | undefined) => Promise<viem.GetBlockReturnType<viem.Chain, includeTransactions, blockTag>>;
|
|
57
|
+
getBlockNumber: (args?: viem.GetBlockNumberParameters | undefined) => Promise<viem.GetBlockNumberReturnType>;
|
|
58
|
+
getBlockTransactionCount: (args?: viem.GetBlockTransactionCountParameters | undefined) => Promise<viem.GetBlockTransactionCountReturnType>;
|
|
59
|
+
getBytecode: (args: viem.GetBytecodeParameters) => Promise<viem.GetBytecodeReturnType>;
|
|
60
|
+
getChainId: () => Promise<viem.GetChainIdReturnType>;
|
|
61
|
+
getCode: (args: viem.GetBytecodeParameters) => Promise<viem.GetBytecodeReturnType>;
|
|
62
|
+
getContractEvents: <const abi extends viem.Abi | readonly unknown[], eventName extends viem.ContractEventName<abi> | undefined = undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args: viem.GetContractEventsParameters<abi, eventName, strict, fromBlock, toBlock>) => Promise<viem.GetContractEventsReturnType<abi, eventName, strict, fromBlock, toBlock>>;
|
|
63
|
+
getEip712Domain: (args: viem.GetEip712DomainParameters) => Promise<viem.GetEip712DomainReturnType>;
|
|
64
|
+
getEnsAddress: (args: viem.GetEnsAddressParameters) => Promise<viem.GetEnsAddressReturnType>;
|
|
65
|
+
getEnsAvatar: (args: viem.GetEnsAvatarParameters) => Promise<viem.GetEnsAvatarReturnType>;
|
|
66
|
+
getEnsName: (args: viem.GetEnsNameParameters) => Promise<viem.GetEnsNameReturnType>;
|
|
67
|
+
getEnsResolver: (args: viem.GetEnsResolverParameters) => Promise<viem.GetEnsResolverReturnType>;
|
|
68
|
+
getEnsText: (args: viem.GetEnsTextParameters) => Promise<viem.GetEnsTextReturnType>;
|
|
69
|
+
getFeeHistory: (args: viem.GetFeeHistoryParameters) => Promise<viem.GetFeeHistoryReturnType>;
|
|
70
|
+
estimateFeesPerGas: <chainOverride extends viem.Chain | undefined = undefined, type extends viem.FeeValuesType = "eip1559">(args?: viem.EstimateFeesPerGasParameters<viem.Chain, chainOverride, type> | undefined) => Promise<viem.EstimateFeesPerGasReturnType<type>>;
|
|
71
|
+
getFilterChanges: <filterType extends viem.FilterType, const abi extends viem.Abi | readonly unknown[] | undefined, eventName extends string | undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args: viem.GetFilterChangesParameters<filterType, abi, eventName, strict, fromBlock, toBlock>) => Promise<viem.GetFilterChangesReturnType<filterType, abi, eventName, strict, fromBlock, toBlock>>;
|
|
72
|
+
getFilterLogs: <const abi extends viem.Abi | readonly unknown[] | undefined, eventName extends string | undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args: viem.GetFilterLogsParameters<abi, eventName, strict, fromBlock, toBlock>) => Promise<viem.GetFilterLogsReturnType<abi, eventName, strict, fromBlock, toBlock>>;
|
|
73
|
+
getGasPrice: () => Promise<viem.GetGasPriceReturnType>;
|
|
74
|
+
getLogs: <const abiEvent extends viem.AbiEvent | undefined = undefined, const abiEvents extends readonly viem.AbiEvent[] | readonly unknown[] | undefined = abiEvent extends viem.AbiEvent ? [abiEvent] : undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args?: viem.GetLogsParameters<abiEvent, abiEvents, strict, fromBlock, toBlock> | undefined) => Promise<viem.GetLogsReturnType<abiEvent, abiEvents, strict, fromBlock, toBlock>>;
|
|
75
|
+
getProof: (args: viem.GetProofParameters) => Promise<viem.GetProofReturnType>;
|
|
76
|
+
estimateMaxPriorityFeePerGas: <chainOverride extends viem.Chain | undefined = undefined>(args?: {
|
|
77
|
+
chain?: chainOverride | null | undefined;
|
|
78
|
+
} | undefined) => Promise<viem.EstimateMaxPriorityFeePerGasReturnType>;
|
|
79
|
+
getStorageAt: (args: viem.GetStorageAtParameters) => Promise<viem.GetStorageAtReturnType>;
|
|
80
|
+
getTransaction: <blockTag extends viem.BlockTag = "latest">(args: viem.GetTransactionParameters<blockTag>) => Promise<viem.GetTransactionReturnType<viem.Chain, blockTag>>;
|
|
81
|
+
getTransactionConfirmations: (args: viem.GetTransactionConfirmationsParameters<viem.Chain>) => Promise<viem.GetTransactionConfirmationsReturnType>;
|
|
82
|
+
getTransactionCount: (args: viem.GetTransactionCountParameters) => Promise<viem.GetTransactionCountReturnType>;
|
|
83
|
+
getTransactionReceipt: (args: viem.GetTransactionReceiptParameters) => Promise<viem.GetTransactionReceiptReturnType<viem.Chain>>;
|
|
84
|
+
multicall: <const contracts extends readonly unknown[], allowFailure extends boolean = true>(args: viem.MulticallParameters<contracts, allowFailure>) => Promise<viem.MulticallReturnType<contracts, allowFailure>>;
|
|
85
|
+
prepareTransactionRequest: <const request extends viem.PrepareTransactionRequestRequest<viem.Chain, chainOverride>, chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | viem.Address | undefined = undefined>(args: viem.PrepareTransactionRequestParameters<viem.Chain, viem.Account | undefined, chainOverride, accountOverride, request>) => Promise<viem.PrepareTransactionRequestReturnType<viem.Chain, viem.Account | undefined, chainOverride, accountOverride, request>>;
|
|
86
|
+
readContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "pure" | "view">, const args extends viem.ContractFunctionArgs<abi, "pure" | "view", functionName>>(args: viem.ReadContractParameters<abi, functionName, args>) => Promise<viem.ReadContractReturnType<abi, functionName, args>>;
|
|
87
|
+
sendRawTransaction: (args: viem.SendRawTransactionParameters) => Promise<viem.SendRawTransactionReturnType>;
|
|
88
|
+
simulate: <const calls extends readonly unknown[]>(args: viem__types_actions_public_simulateBlocks.SimulateBlocksParameters<calls>) => Promise<viem__types_actions_public_simulateBlocks.SimulateBlocksReturnType<calls>>;
|
|
89
|
+
simulateBlocks: <const calls extends readonly unknown[]>(args: viem__types_actions_public_simulateBlocks.SimulateBlocksParameters<calls>) => Promise<viem__types_actions_public_simulateBlocks.SimulateBlocksReturnType<calls>>;
|
|
90
|
+
simulateCalls: <const calls extends readonly unknown[]>(args: viem__types_actions_public_simulateCalls.SimulateCallsParameters<calls>) => Promise<viem__types_actions_public_simulateCalls.SimulateCallsReturnType<calls>>;
|
|
91
|
+
simulateContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "nonpayable" | "payable">, const args_1 extends viem.ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends viem.Chain | undefined, accountOverride extends viem.Account | viem.Address | undefined = undefined>(args: viem.SimulateContractParameters<abi, functionName, args_1, viem.Chain, chainOverride, accountOverride>) => Promise<viem.SimulateContractReturnType<abi, functionName, args_1, viem.Chain, viem.Account | undefined, chainOverride, accountOverride>>;
|
|
92
|
+
verifyMessage: (args: viem.VerifyMessageActionParameters) => Promise<viem.VerifyMessageActionReturnType>;
|
|
93
|
+
verifySiweMessage: (args: viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageParameters) => Promise<viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageReturnType>;
|
|
94
|
+
verifyTypedData: (args: viem.VerifyTypedDataActionParameters) => Promise<viem.VerifyTypedDataActionReturnType>;
|
|
95
|
+
uninstallFilter: (args: viem.UninstallFilterParameters) => Promise<viem.UninstallFilterReturnType>;
|
|
96
|
+
waitForTransactionReceipt: (args: viem.WaitForTransactionReceiptParameters<viem.Chain>) => Promise<viem.WaitForTransactionReceiptReturnType<viem.Chain>>;
|
|
97
|
+
watchBlockNumber: (args: viem.WatchBlockNumberParameters) => viem.WatchBlockNumberReturnType;
|
|
98
|
+
watchBlocks: <includeTransactions extends boolean = false, blockTag extends viem.BlockTag = "latest">(args: viem.WatchBlocksParameters<HttpTransport, viem.Chain, includeTransactions, blockTag>) => viem.WatchBlocksReturnType;
|
|
99
|
+
watchContractEvent: <const abi extends viem.Abi | readonly unknown[], eventName extends viem.ContractEventName<abi>, strict extends boolean | undefined = undefined>(args: viem.WatchContractEventParameters<abi, eventName, strict, HttpTransport>) => viem.WatchContractEventReturnType;
|
|
100
|
+
watchEvent: <const abiEvent extends viem.AbiEvent | undefined = undefined, const abiEvents extends readonly viem.AbiEvent[] | readonly unknown[] | undefined = abiEvent extends viem.AbiEvent ? [abiEvent] : undefined, strict extends boolean | undefined = undefined>(args: viem.WatchEventParameters<abiEvent, abiEvents, strict, HttpTransport>) => viem.WatchEventReturnType;
|
|
101
|
+
watchPendingTransactions: (args: viem.WatchPendingTransactionsParameters<HttpTransport>) => viem.WatchPendingTransactionsReturnType;
|
|
102
|
+
extend: <const client extends {
|
|
103
|
+
[x: string]: unknown;
|
|
104
|
+
account?: undefined;
|
|
105
|
+
batch?: undefined;
|
|
106
|
+
cacheTime?: undefined;
|
|
107
|
+
ccipRead?: undefined;
|
|
108
|
+
chain?: undefined;
|
|
109
|
+
key?: undefined;
|
|
110
|
+
name?: undefined;
|
|
111
|
+
pollingInterval?: undefined;
|
|
112
|
+
request?: undefined;
|
|
113
|
+
transport?: undefined;
|
|
114
|
+
type?: undefined;
|
|
115
|
+
uid?: undefined;
|
|
116
|
+
} & viem.ExactPartial<Pick<viem.PublicActions<HttpTransport, viem.Chain, undefined>, "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getChainId" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "prepareTransactionRequest" | "readContract" | "sendRawTransaction" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<viem.WalletActions<viem.Chain, undefined>, "sendTransaction" | "writeContract">>>(fn: (client: viem.Client<HttpTransport, viem.Chain, undefined, viem.PublicRpcSchema, viem.PublicActions<HttpTransport, viem.Chain>>) => client) => viem.Client<HttpTransport, viem.Chain, undefined, viem.PublicRpcSchema, viem.Prettify<client> & (viem.PublicActions<HttpTransport, viem.Chain> extends {
|
|
117
|
+
[x: string]: unknown;
|
|
118
|
+
account?: undefined;
|
|
119
|
+
batch?: undefined;
|
|
120
|
+
cacheTime?: undefined;
|
|
121
|
+
ccipRead?: undefined;
|
|
122
|
+
chain?: undefined;
|
|
123
|
+
key?: undefined;
|
|
124
|
+
name?: undefined;
|
|
125
|
+
pollingInterval?: undefined;
|
|
126
|
+
request?: undefined;
|
|
127
|
+
transport?: undefined;
|
|
128
|
+
type?: undefined;
|
|
129
|
+
uid?: undefined;
|
|
130
|
+
} ? viem.PublicActions<HttpTransport, viem.Chain> : unknown)>;
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export { EVMWallet };
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import * as viem__types_actions_siwe_verifySiweMessage from 'viem/_types/actions/siwe/verifySiweMessage';
|
|
2
|
+
import * as viem__types_actions_public_simulateCalls from 'viem/_types/actions/public/simulateCalls';
|
|
3
|
+
import * as viem__types_actions_public_simulateBlocks from 'viem/_types/actions/public/simulateBlocks';
|
|
4
|
+
import * as viem__types_actions_public_createAccessList from 'viem/_types/actions/public/createAccessList';
|
|
5
|
+
import * as viem from 'viem';
|
|
6
|
+
import { TypedData, TypedDataDefinition, HttpTransport } from 'viem';
|
|
7
|
+
import { EVMTransactionInput } from './types.js';
|
|
8
|
+
import { EVMChain, EVMSmartWalletChain } from '../chains/chains.js';
|
|
9
|
+
import { Wallet } from './wallet.js';
|
|
10
|
+
import '@solana/web3.js';
|
|
11
|
+
import '../api/types.js';
|
|
12
|
+
import '../api/gen/types.gen.js';
|
|
13
|
+
import '../signers/types.js';
|
|
14
|
+
import 'ox';
|
|
15
|
+
import '@crossmint/client-sdk-window';
|
|
16
|
+
import '@crossmint/client-signers';
|
|
17
|
+
import '@crossmint/common-sdk-base';
|
|
18
|
+
import '../api/client.js';
|
|
19
|
+
|
|
20
|
+
declare class EVMWallet extends Wallet<EVMChain> {
|
|
21
|
+
constructor(wallet: Wallet<EVMChain>);
|
|
22
|
+
static from(wallet: Wallet<EVMChain>): EVMWallet;
|
|
23
|
+
sendTransaction(params: EVMTransactionInput): Promise<string>;
|
|
24
|
+
signMessage(message: string): Promise<string>;
|
|
25
|
+
createTypedDataSignature<const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(params: TypedDataDefinition<typedData, primaryType> & {
|
|
26
|
+
chain: EVMSmartWalletChain;
|
|
27
|
+
}): Promise<string>;
|
|
28
|
+
getViemClient(params?: {
|
|
29
|
+
transport?: HttpTransport;
|
|
30
|
+
}): {
|
|
31
|
+
account: undefined;
|
|
32
|
+
batch?: viem.ClientConfig["batch"] | undefined;
|
|
33
|
+
cacheTime: number;
|
|
34
|
+
ccipRead?: viem.ClientConfig["ccipRead"] | undefined;
|
|
35
|
+
chain: viem.Chain;
|
|
36
|
+
key: string;
|
|
37
|
+
name: string;
|
|
38
|
+
pollingInterval: number;
|
|
39
|
+
request: viem.EIP1193RequestFn<viem.PublicRpcSchema>;
|
|
40
|
+
transport: viem.TransportConfig<"http", viem.EIP1193RequestFn> & {
|
|
41
|
+
fetchOptions?: viem.HttpTransportConfig["fetchOptions"] | undefined;
|
|
42
|
+
url?: string | undefined;
|
|
43
|
+
};
|
|
44
|
+
type: string;
|
|
45
|
+
uid: string;
|
|
46
|
+
call: (parameters: viem.CallParameters<viem.Chain>) => Promise<viem.CallReturnType>;
|
|
47
|
+
createAccessList: (parameters: viem__types_actions_public_createAccessList.CreateAccessListParameters<viem.Chain>) => Promise<viem__types_actions_public_createAccessList.CreateAccessListReturnType>;
|
|
48
|
+
createBlockFilter: () => Promise<viem.CreateBlockFilterReturnType>;
|
|
49
|
+
createContractEventFilter: <const abi extends viem.Abi | readonly unknown[], eventName extends viem.ContractEventName<abi> | undefined, args extends viem.MaybeExtractEventArgsFromAbi<abi, eventName> | undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args: viem.CreateContractEventFilterParameters<abi, eventName, args, strict, fromBlock, toBlock>) => Promise<viem.CreateContractEventFilterReturnType<abi, eventName, args, strict, fromBlock, toBlock>>;
|
|
50
|
+
createEventFilter: <const abiEvent extends viem.AbiEvent | undefined = undefined, const abiEvents extends readonly viem.AbiEvent[] | readonly unknown[] | undefined = abiEvent extends viem.AbiEvent ? [abiEvent] : undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, _EventName extends string | undefined = viem.MaybeAbiEventName<abiEvent>, _Args extends viem.MaybeExtractEventArgsFromAbi<abiEvents, _EventName> | undefined = undefined>(args?: viem.CreateEventFilterParameters<abiEvent, abiEvents, strict, fromBlock, toBlock, _EventName, _Args> | undefined) => Promise<viem.CreateEventFilterReturnType<abiEvent, abiEvents, strict, fromBlock, toBlock, _EventName, _Args>>;
|
|
51
|
+
createPendingTransactionFilter: () => Promise<viem.CreatePendingTransactionFilterReturnType>;
|
|
52
|
+
estimateContractGas: <chain extends viem.Chain | undefined, const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "nonpayable" | "payable">, args extends viem.ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>>(args: viem.EstimateContractGasParameters<abi, functionName, args, chain>) => Promise<viem.EstimateContractGasReturnType>;
|
|
53
|
+
estimateGas: (args: viem.EstimateGasParameters<viem.Chain>) => Promise<viem.EstimateGasReturnType>;
|
|
54
|
+
getBalance: (args: viem.GetBalanceParameters) => Promise<viem.GetBalanceReturnType>;
|
|
55
|
+
getBlobBaseFee: () => Promise<viem.GetBlobBaseFeeReturnType>;
|
|
56
|
+
getBlock: <includeTransactions extends boolean = false, blockTag extends viem.BlockTag = "latest">(args?: viem.GetBlockParameters<includeTransactions, blockTag> | undefined) => Promise<viem.GetBlockReturnType<viem.Chain, includeTransactions, blockTag>>;
|
|
57
|
+
getBlockNumber: (args?: viem.GetBlockNumberParameters | undefined) => Promise<viem.GetBlockNumberReturnType>;
|
|
58
|
+
getBlockTransactionCount: (args?: viem.GetBlockTransactionCountParameters | undefined) => Promise<viem.GetBlockTransactionCountReturnType>;
|
|
59
|
+
getBytecode: (args: viem.GetBytecodeParameters) => Promise<viem.GetBytecodeReturnType>;
|
|
60
|
+
getChainId: () => Promise<viem.GetChainIdReturnType>;
|
|
61
|
+
getCode: (args: viem.GetBytecodeParameters) => Promise<viem.GetBytecodeReturnType>;
|
|
62
|
+
getContractEvents: <const abi extends viem.Abi | readonly unknown[], eventName extends viem.ContractEventName<abi> | undefined = undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args: viem.GetContractEventsParameters<abi, eventName, strict, fromBlock, toBlock>) => Promise<viem.GetContractEventsReturnType<abi, eventName, strict, fromBlock, toBlock>>;
|
|
63
|
+
getEip712Domain: (args: viem.GetEip712DomainParameters) => Promise<viem.GetEip712DomainReturnType>;
|
|
64
|
+
getEnsAddress: (args: viem.GetEnsAddressParameters) => Promise<viem.GetEnsAddressReturnType>;
|
|
65
|
+
getEnsAvatar: (args: viem.GetEnsAvatarParameters) => Promise<viem.GetEnsAvatarReturnType>;
|
|
66
|
+
getEnsName: (args: viem.GetEnsNameParameters) => Promise<viem.GetEnsNameReturnType>;
|
|
67
|
+
getEnsResolver: (args: viem.GetEnsResolverParameters) => Promise<viem.GetEnsResolverReturnType>;
|
|
68
|
+
getEnsText: (args: viem.GetEnsTextParameters) => Promise<viem.GetEnsTextReturnType>;
|
|
69
|
+
getFeeHistory: (args: viem.GetFeeHistoryParameters) => Promise<viem.GetFeeHistoryReturnType>;
|
|
70
|
+
estimateFeesPerGas: <chainOverride extends viem.Chain | undefined = undefined, type extends viem.FeeValuesType = "eip1559">(args?: viem.EstimateFeesPerGasParameters<viem.Chain, chainOverride, type> | undefined) => Promise<viem.EstimateFeesPerGasReturnType<type>>;
|
|
71
|
+
getFilterChanges: <filterType extends viem.FilterType, const abi extends viem.Abi | readonly unknown[] | undefined, eventName extends string | undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args: viem.GetFilterChangesParameters<filterType, abi, eventName, strict, fromBlock, toBlock>) => Promise<viem.GetFilterChangesReturnType<filterType, abi, eventName, strict, fromBlock, toBlock>>;
|
|
72
|
+
getFilterLogs: <const abi extends viem.Abi | readonly unknown[] | undefined, eventName extends string | undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args: viem.GetFilterLogsParameters<abi, eventName, strict, fromBlock, toBlock>) => Promise<viem.GetFilterLogsReturnType<abi, eventName, strict, fromBlock, toBlock>>;
|
|
73
|
+
getGasPrice: () => Promise<viem.GetGasPriceReturnType>;
|
|
74
|
+
getLogs: <const abiEvent extends viem.AbiEvent | undefined = undefined, const abiEvents extends readonly viem.AbiEvent[] | readonly unknown[] | undefined = abiEvent extends viem.AbiEvent ? [abiEvent] : undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args?: viem.GetLogsParameters<abiEvent, abiEvents, strict, fromBlock, toBlock> | undefined) => Promise<viem.GetLogsReturnType<abiEvent, abiEvents, strict, fromBlock, toBlock>>;
|
|
75
|
+
getProof: (args: viem.GetProofParameters) => Promise<viem.GetProofReturnType>;
|
|
76
|
+
estimateMaxPriorityFeePerGas: <chainOverride extends viem.Chain | undefined = undefined>(args?: {
|
|
77
|
+
chain?: chainOverride | null | undefined;
|
|
78
|
+
} | undefined) => Promise<viem.EstimateMaxPriorityFeePerGasReturnType>;
|
|
79
|
+
getStorageAt: (args: viem.GetStorageAtParameters) => Promise<viem.GetStorageAtReturnType>;
|
|
80
|
+
getTransaction: <blockTag extends viem.BlockTag = "latest">(args: viem.GetTransactionParameters<blockTag>) => Promise<viem.GetTransactionReturnType<viem.Chain, blockTag>>;
|
|
81
|
+
getTransactionConfirmations: (args: viem.GetTransactionConfirmationsParameters<viem.Chain>) => Promise<viem.GetTransactionConfirmationsReturnType>;
|
|
82
|
+
getTransactionCount: (args: viem.GetTransactionCountParameters) => Promise<viem.GetTransactionCountReturnType>;
|
|
83
|
+
getTransactionReceipt: (args: viem.GetTransactionReceiptParameters) => Promise<viem.GetTransactionReceiptReturnType<viem.Chain>>;
|
|
84
|
+
multicall: <const contracts extends readonly unknown[], allowFailure extends boolean = true>(args: viem.MulticallParameters<contracts, allowFailure>) => Promise<viem.MulticallReturnType<contracts, allowFailure>>;
|
|
85
|
+
prepareTransactionRequest: <const request extends viem.PrepareTransactionRequestRequest<viem.Chain, chainOverride>, chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | viem.Address | undefined = undefined>(args: viem.PrepareTransactionRequestParameters<viem.Chain, viem.Account | undefined, chainOverride, accountOverride, request>) => Promise<viem.PrepareTransactionRequestReturnType<viem.Chain, viem.Account | undefined, chainOverride, accountOverride, request>>;
|
|
86
|
+
readContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "pure" | "view">, const args extends viem.ContractFunctionArgs<abi, "pure" | "view", functionName>>(args: viem.ReadContractParameters<abi, functionName, args>) => Promise<viem.ReadContractReturnType<abi, functionName, args>>;
|
|
87
|
+
sendRawTransaction: (args: viem.SendRawTransactionParameters) => Promise<viem.SendRawTransactionReturnType>;
|
|
88
|
+
simulate: <const calls extends readonly unknown[]>(args: viem__types_actions_public_simulateBlocks.SimulateBlocksParameters<calls>) => Promise<viem__types_actions_public_simulateBlocks.SimulateBlocksReturnType<calls>>;
|
|
89
|
+
simulateBlocks: <const calls extends readonly unknown[]>(args: viem__types_actions_public_simulateBlocks.SimulateBlocksParameters<calls>) => Promise<viem__types_actions_public_simulateBlocks.SimulateBlocksReturnType<calls>>;
|
|
90
|
+
simulateCalls: <const calls extends readonly unknown[]>(args: viem__types_actions_public_simulateCalls.SimulateCallsParameters<calls>) => Promise<viem__types_actions_public_simulateCalls.SimulateCallsReturnType<calls>>;
|
|
91
|
+
simulateContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "nonpayable" | "payable">, const args_1 extends viem.ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends viem.Chain | undefined, accountOverride extends viem.Account | viem.Address | undefined = undefined>(args: viem.SimulateContractParameters<abi, functionName, args_1, viem.Chain, chainOverride, accountOverride>) => Promise<viem.SimulateContractReturnType<abi, functionName, args_1, viem.Chain, viem.Account | undefined, chainOverride, accountOverride>>;
|
|
92
|
+
verifyMessage: (args: viem.VerifyMessageActionParameters) => Promise<viem.VerifyMessageActionReturnType>;
|
|
93
|
+
verifySiweMessage: (args: viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageParameters) => Promise<viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageReturnType>;
|
|
94
|
+
verifyTypedData: (args: viem.VerifyTypedDataActionParameters) => Promise<viem.VerifyTypedDataActionReturnType>;
|
|
95
|
+
uninstallFilter: (args: viem.UninstallFilterParameters) => Promise<viem.UninstallFilterReturnType>;
|
|
96
|
+
waitForTransactionReceipt: (args: viem.WaitForTransactionReceiptParameters<viem.Chain>) => Promise<viem.WaitForTransactionReceiptReturnType<viem.Chain>>;
|
|
97
|
+
watchBlockNumber: (args: viem.WatchBlockNumberParameters) => viem.WatchBlockNumberReturnType;
|
|
98
|
+
watchBlocks: <includeTransactions extends boolean = false, blockTag extends viem.BlockTag = "latest">(args: viem.WatchBlocksParameters<HttpTransport, viem.Chain, includeTransactions, blockTag>) => viem.WatchBlocksReturnType;
|
|
99
|
+
watchContractEvent: <const abi extends viem.Abi | readonly unknown[], eventName extends viem.ContractEventName<abi>, strict extends boolean | undefined = undefined>(args: viem.WatchContractEventParameters<abi, eventName, strict, HttpTransport>) => viem.WatchContractEventReturnType;
|
|
100
|
+
watchEvent: <const abiEvent extends viem.AbiEvent | undefined = undefined, const abiEvents extends readonly viem.AbiEvent[] | readonly unknown[] | undefined = abiEvent extends viem.AbiEvent ? [abiEvent] : undefined, strict extends boolean | undefined = undefined>(args: viem.WatchEventParameters<abiEvent, abiEvents, strict, HttpTransport>) => viem.WatchEventReturnType;
|
|
101
|
+
watchPendingTransactions: (args: viem.WatchPendingTransactionsParameters<HttpTransport>) => viem.WatchPendingTransactionsReturnType;
|
|
102
|
+
extend: <const client extends {
|
|
103
|
+
[x: string]: unknown;
|
|
104
|
+
account?: undefined;
|
|
105
|
+
batch?: undefined;
|
|
106
|
+
cacheTime?: undefined;
|
|
107
|
+
ccipRead?: undefined;
|
|
108
|
+
chain?: undefined;
|
|
109
|
+
key?: undefined;
|
|
110
|
+
name?: undefined;
|
|
111
|
+
pollingInterval?: undefined;
|
|
112
|
+
request?: undefined;
|
|
113
|
+
transport?: undefined;
|
|
114
|
+
type?: undefined;
|
|
115
|
+
uid?: undefined;
|
|
116
|
+
} & viem.ExactPartial<Pick<viem.PublicActions<HttpTransport, viem.Chain, undefined>, "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getChainId" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "prepareTransactionRequest" | "readContract" | "sendRawTransaction" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<viem.WalletActions<viem.Chain, undefined>, "sendTransaction" | "writeContract">>>(fn: (client: viem.Client<HttpTransport, viem.Chain, undefined, viem.PublicRpcSchema, viem.PublicActions<HttpTransport, viem.Chain>>) => client) => viem.Client<HttpTransport, viem.Chain, undefined, viem.PublicRpcSchema, viem.Prettify<client> & (viem.PublicActions<HttpTransport, viem.Chain> extends {
|
|
117
|
+
[x: string]: unknown;
|
|
118
|
+
account?: undefined;
|
|
119
|
+
batch?: undefined;
|
|
120
|
+
cacheTime?: undefined;
|
|
121
|
+
ccipRead?: undefined;
|
|
122
|
+
chain?: undefined;
|
|
123
|
+
key?: undefined;
|
|
124
|
+
name?: undefined;
|
|
125
|
+
pollingInterval?: undefined;
|
|
126
|
+
request?: undefined;
|
|
127
|
+
transport?: undefined;
|
|
128
|
+
type?: undefined;
|
|
129
|
+
uid?: undefined;
|
|
130
|
+
} ? viem.PublicActions<HttpTransport, viem.Chain> : unknown)>;
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export { EVMWallet };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-E5GSFWJV.js";import"../chunk-IVDTXN3O.js";import"../chunk-BJDS5BJG.js";import"../chunk-KKQBZXFE.js";import"../chunk-S3DYQVRD.js";import"../chunk-EOCGMBYW.js";import"../chunk-7ENJXL4H.js";import"../chunk-22GIA4MK.js";export{a as EVMWallet};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkEBPF52SZcjs = require('../chunk-EBPF52SZ.cjs');require('../chunk-6BN4ICHP.cjs');require('../chunk-5HYE5LK5.cjs');require('../chunk-NFQHDB4C.cjs');require('../chunk-CT2UGJEL.cjs');require('../chunk-CK4JCQY6.cjs');exports.SolanaWallet = _chunkEBPF52SZcjs.a;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SolanaChain } from '../chains/chains.cjs';
|
|
2
|
+
import { SolanaTransactionInput } from './types.cjs';
|
|
3
|
+
import { Wallet } from './wallet.cjs';
|
|
4
|
+
import 'viem';
|
|
5
|
+
import '@solana/web3.js';
|
|
6
|
+
import '../api/types.cjs';
|
|
7
|
+
import '../api/gen/types.gen.cjs';
|
|
8
|
+
import '../signers/types.cjs';
|
|
9
|
+
import 'ox';
|
|
10
|
+
import '@crossmint/client-sdk-window';
|
|
11
|
+
import '@crossmint/client-signers';
|
|
12
|
+
import '@crossmint/common-sdk-base';
|
|
13
|
+
import '../api/client.cjs';
|
|
14
|
+
|
|
15
|
+
declare class SolanaWallet extends Wallet<SolanaChain> {
|
|
16
|
+
constructor(wallet: Wallet<SolanaChain>);
|
|
17
|
+
static from(wallet: Wallet<SolanaChain>): SolanaWallet;
|
|
18
|
+
sendTransaction({ transaction, additionalSigners }: SolanaTransactionInput): Promise<string>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { SolanaWallet };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SolanaChain } from '../chains/chains.js';
|
|
2
|
+
import { SolanaTransactionInput } from './types.js';
|
|
3
|
+
import { Wallet } from './wallet.js';
|
|
4
|
+
import 'viem';
|
|
5
|
+
import '@solana/web3.js';
|
|
6
|
+
import '../api/types.js';
|
|
7
|
+
import '../api/gen/types.gen.js';
|
|
8
|
+
import '../signers/types.js';
|
|
9
|
+
import 'ox';
|
|
10
|
+
import '@crossmint/client-sdk-window';
|
|
11
|
+
import '@crossmint/client-signers';
|
|
12
|
+
import '@crossmint/common-sdk-base';
|
|
13
|
+
import '../api/client.js';
|
|
14
|
+
|
|
15
|
+
declare class SolanaWallet extends Wallet<SolanaChain> {
|
|
16
|
+
constructor(wallet: Wallet<SolanaChain>);
|
|
17
|
+
static from(wallet: Wallet<SolanaChain>): SolanaWallet;
|
|
18
|
+
sendTransaction({ transaction, additionalSigners }: SolanaTransactionInput): Promise<string>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { SolanaWallet };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-WO3S2YII.js";import"../chunk-IVDTXN3O.js";import"../chunk-AN25LSQB.js";import"../chunk-EOCGMBYW.js";import"../chunk-7ENJXL4H.js";import"../chunk-22GIA4MK.js";export{a as SolanaWallet};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('../chunk-MHKWLGN5.cjs');
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { VersionedTransaction, Keypair } from '@solana/web3.js';
|
|
2
|
+
import { CreateTransactionSuccessResponse } from '../api/types.cjs';
|
|
3
|
+
export { Balances } from '../api/types.cjs';
|
|
4
|
+
import { EVMSmartWalletChain } from '../chains/chains.cjs';
|
|
5
|
+
import 'viem';
|
|
6
|
+
import '../api/gen/types.gen.cjs';
|
|
7
|
+
|
|
8
|
+
interface EVMTransactionInput {
|
|
9
|
+
to: string;
|
|
10
|
+
chain: EVMSmartWalletChain;
|
|
11
|
+
data?: string;
|
|
12
|
+
value?: bigint;
|
|
13
|
+
}
|
|
14
|
+
interface SolanaTransactionInput {
|
|
15
|
+
transaction: VersionedTransaction;
|
|
16
|
+
additionalSigners?: Keypair[];
|
|
17
|
+
}
|
|
18
|
+
type Permission = {
|
|
19
|
+
signer: string;
|
|
20
|
+
};
|
|
21
|
+
type PendingApproval = NonNullable<NonNullable<CreateTransactionSuccessResponse["approvals"]>["pending"]>[number];
|
|
22
|
+
type Callbacks = {
|
|
23
|
+
onWalletCreationStart?: () => Promise<void>;
|
|
24
|
+
onTransactionStart?: () => Promise<void>;
|
|
25
|
+
};
|
|
26
|
+
type WalletOptions = {
|
|
27
|
+
experimental_callbacks?: Callbacks;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type { Callbacks, EVMTransactionInput, PendingApproval, Permission, SolanaTransactionInput, WalletOptions };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { VersionedTransaction, Keypair } from '@solana/web3.js';
|
|
2
|
+
import { CreateTransactionSuccessResponse } from '../api/types.js';
|
|
3
|
+
export { Balances } from '../api/types.js';
|
|
4
|
+
import { EVMSmartWalletChain } from '../chains/chains.js';
|
|
5
|
+
import 'viem';
|
|
6
|
+
import '../api/gen/types.gen.js';
|
|
7
|
+
|
|
8
|
+
interface EVMTransactionInput {
|
|
9
|
+
to: string;
|
|
10
|
+
chain: EVMSmartWalletChain;
|
|
11
|
+
data?: string;
|
|
12
|
+
value?: bigint;
|
|
13
|
+
}
|
|
14
|
+
interface SolanaTransactionInput {
|
|
15
|
+
transaction: VersionedTransaction;
|
|
16
|
+
additionalSigners?: Keypair[];
|
|
17
|
+
}
|
|
18
|
+
type Permission = {
|
|
19
|
+
signer: string;
|
|
20
|
+
};
|
|
21
|
+
type PendingApproval = NonNullable<NonNullable<CreateTransactionSuccessResponse["approvals"]>["pending"]>[number];
|
|
22
|
+
type Callbacks = {
|
|
23
|
+
onWalletCreationStart?: () => Promise<void>;
|
|
24
|
+
onTransactionStart?: () => Promise<void>;
|
|
25
|
+
};
|
|
26
|
+
type WalletOptions = {
|
|
27
|
+
experimental_callbacks?: Callbacks;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type { Callbacks, EVMTransactionInput, PendingApproval, Permission, SolanaTransactionInput, WalletOptions };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../chunk-PJUVPRKB.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3V3TVDQLcjs = require('../chunk-3V3TVDQL.cjs');require('../chunk-6BN4ICHP.cjs');require('../chunk-VNNOPP7M.cjs');require('../chunk-ICJBF526.cjs');require('../chunk-BQJLKREV.cjs');require('../chunk-NSZEPQXP.cjs');require('../chunk-7DPGK746.cjs');require('../chunk-RCGA5LLF.cjs');require('../chunk-5HYE5LK5.cjs');require('../chunk-ZSWIQU3U.cjs');require('../chunk-O4X74PTP.cjs');require('../chunk-LBJIX2VH.cjs');require('../chunk-NFQHDB4C.cjs');require('../chunk-CT2UGJEL.cjs');require('../chunk-CK4JCQY6.cjs');exports.WalletFactory = _chunk3V3TVDQLcjs.a;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ApiClient } from '../api/client.cjs';
|
|
2
|
+
import { Chain } from '../chains/chains.cjs';
|
|
3
|
+
import { SignerConfigForChain } from '../signers/types.cjs';
|
|
4
|
+
import { Wallet } from './wallet.cjs';
|
|
5
|
+
import { WalletOptions } from './types.cjs';
|
|
6
|
+
import '@crossmint/common-sdk-base';
|
|
7
|
+
import '../api/types.cjs';
|
|
8
|
+
import 'viem';
|
|
9
|
+
import '../api/gen/types.gen.cjs';
|
|
10
|
+
import 'ox';
|
|
11
|
+
import '@solana/web3.js';
|
|
12
|
+
import '@crossmint/client-sdk-window';
|
|
13
|
+
import '@crossmint/client-signers';
|
|
14
|
+
|
|
15
|
+
type WalletArgsFor<C extends Chain> = {
|
|
16
|
+
chain: C;
|
|
17
|
+
signer?: SignerConfigForChain<C>;
|
|
18
|
+
owner?: string;
|
|
19
|
+
options?: WalletOptions;
|
|
20
|
+
};
|
|
21
|
+
declare class WalletFactory {
|
|
22
|
+
private readonly apiClient;
|
|
23
|
+
constructor(apiClient: ApiClient);
|
|
24
|
+
getOrCreateWallet<C extends Chain>(args: WalletArgsFor<C>): Promise<Wallet<C>>;
|
|
25
|
+
getWallet<C extends Chain>(walletLocator: string, args: WalletArgsFor<C>): Promise<Wallet<C>>;
|
|
26
|
+
createWallet<C extends Chain>(args: WalletArgsFor<C>): Promise<Wallet<C>>;
|
|
27
|
+
private createWalletInstance;
|
|
28
|
+
private toInternalSignerConfig;
|
|
29
|
+
private configureSigner;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { type WalletArgsFor, WalletFactory };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ApiClient } from '../api/client.js';
|
|
2
|
+
import { Chain } from '../chains/chains.js';
|
|
3
|
+
import { SignerConfigForChain } from '../signers/types.js';
|
|
4
|
+
import { Wallet } from './wallet.js';
|
|
5
|
+
import { WalletOptions } from './types.js';
|
|
6
|
+
import '@crossmint/common-sdk-base';
|
|
7
|
+
import '../api/types.js';
|
|
8
|
+
import 'viem';
|
|
9
|
+
import '../api/gen/types.gen.js';
|
|
10
|
+
import 'ox';
|
|
11
|
+
import '@solana/web3.js';
|
|
12
|
+
import '@crossmint/client-sdk-window';
|
|
13
|
+
import '@crossmint/client-signers';
|
|
14
|
+
|
|
15
|
+
type WalletArgsFor<C extends Chain> = {
|
|
16
|
+
chain: C;
|
|
17
|
+
signer?: SignerConfigForChain<C>;
|
|
18
|
+
owner?: string;
|
|
19
|
+
options?: WalletOptions;
|
|
20
|
+
};
|
|
21
|
+
declare class WalletFactory {
|
|
22
|
+
private readonly apiClient;
|
|
23
|
+
constructor(apiClient: ApiClient);
|
|
24
|
+
getOrCreateWallet<C extends Chain>(args: WalletArgsFor<C>): Promise<Wallet<C>>;
|
|
25
|
+
getWallet<C extends Chain>(walletLocator: string, args: WalletArgsFor<C>): Promise<Wallet<C>>;
|
|
26
|
+
createWallet<C extends Chain>(args: WalletArgsFor<C>): Promise<Wallet<C>>;
|
|
27
|
+
private createWalletInstance;
|
|
28
|
+
private toInternalSignerConfig;
|
|
29
|
+
private configureSigner;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { type WalletArgsFor, WalletFactory };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-FHE35PRI.js";import"../chunk-IVDTXN3O.js";import"../chunk-QPG5RPLB.js";import"../chunk-LG7WZW3Q.js";import"../chunk-FI42UB34.js";import"../chunk-ICWGBL27.js";import"../chunk-YE5N5ADW.js";import"../chunk-FO5JCAOP.js";import"../chunk-AN25LSQB.js";import"../chunk-M4ELAV7U.js";import"../chunk-Q4WJ7QNP.js";import"../chunk-Q3ZJOXAP.js";import"../chunk-EOCGMBYW.js";import"../chunk-7ENJXL4H.js";import"../chunk-22GIA4MK.js";export{a as WalletFactory};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk6BN4ICHPcjs = require('../chunk-6BN4ICHP.cjs');require('../chunk-NFQHDB4C.cjs');require('../chunk-CT2UGJEL.cjs');require('../chunk-CK4JCQY6.cjs');exports.Wallet = _chunk6BN4ICHPcjs.a;
|