@crossmint/client-sdk-smart-wallet 0.1.36 → 0.2.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 +293 -0
- package/dist/abi/entryPoint.cjs +1 -0
- package/dist/abi/entryPoint.d.cts +777 -0
- package/dist/abi/entryPoint.d.ts +777 -0
- package/dist/abi/entryPoint.js +1 -0
- package/dist/abi/erc1155.cjs +1 -0
- package/dist/abi/erc1155.d.cts +254 -0
- package/dist/abi/erc1155.d.ts +254 -0
- package/dist/abi/erc1155.js +1 -0
- package/dist/abi/erc20.cjs +1 -0
- package/dist/abi/erc20.d.cts +170 -0
- package/dist/abi/erc20.d.ts +170 -0
- package/dist/abi/erc20.js +1 -0
- package/dist/abi/erc721.cjs +1 -0
- package/dist/abi/erc721.d.cts +247 -0
- package/dist/abi/erc721.d.ts +247 -0
- package/dist/abi/erc721.js +1 -0
- package/dist/apiService-D4DIxjMr.d.ts +136 -0
- package/dist/apiService-Dum8A8_6.d.cts +136 -0
- package/dist/apiService.cjs +1 -0
- package/dist/apiService.d.cts +9 -0
- package/dist/apiService.d.ts +9 -0
- package/dist/apiService.js +1 -0
- package/dist/{chunk-IUIBQFWY.cjs → chunk-23IWY6XV.cjs} +1 -1
- package/dist/chunk-2MQHIAJE.js +1 -0
- package/dist/chunk-4PMBBA3O.cjs +1 -0
- package/dist/chunk-5T3HB4Y6.js +1 -0
- package/dist/chunk-73LUJQGU.cjs +1 -0
- package/dist/chunk-75JNTS3U.js +1 -0
- package/dist/chunk-AS5VIM5V.cjs +1 -0
- package/dist/chunk-BCWZIVSQ.js +1 -0
- package/dist/{chunk-2TPNP5FL.cjs → chunk-D33JIUOQ.cjs} +1 -1
- package/dist/chunk-DB2QM3HB.js +1 -0
- package/dist/chunk-EMZ5NAG2.cjs +1 -0
- package/dist/chunk-GGKMZPIA.js +1 -0
- package/dist/chunk-I5RZI2HB.js +1 -0
- package/dist/chunk-J5SRLI35.cjs +1 -0
- package/dist/chunk-KXYDJTZS.cjs +1 -0
- package/dist/{chunk-2RB6U5DY.js → chunk-LJ43A5BN.js} +1 -1
- package/dist/chunk-LPLLPZFU.cjs +1 -0
- package/dist/chunk-MLTT5BGD.cjs +1 -0
- package/dist/chunk-NXTHA2ZL.js +1 -0
- package/dist/chunk-OWZ3LXVG.js +1 -0
- package/dist/chunk-Q23CHZRT.cjs +1 -0
- package/dist/chunk-Q6YGAHDR.cjs +1 -0
- package/dist/chunk-SVGKSKZD.cjs +1 -0
- package/dist/chunk-T5PL4ATW.js +1 -0
- package/dist/chunk-U2JMKBCC.cjs +1 -0
- package/dist/chunk-UBRUUSMF.js +1 -0
- package/dist/chunk-VEZ3PQGX.js +1 -0
- package/dist/chunk-Z3KARJF5.js +1 -0
- package/dist/error/index.cjs +1 -1
- package/dist/error/index.d.cts +25 -43
- package/dist/error/index.d.ts +25 -43
- package/dist/error/index.js +1 -1
- package/dist/error/processor.cjs +1 -1
- package/dist/error/processor.d.cts +0 -13
- package/dist/error/processor.d.ts +0 -13
- package/dist/error/processor.js +1 -1
- package/dist/evm/chains/definitions/story-testnet.cjs +1 -0
- package/dist/evm/chains/definitions/story-testnet.js +1 -0
- package/dist/evm/chains/definitions/story.cjs +1 -0
- package/dist/evm/chains/definitions/story.js +1 -0
- package/dist/evm/chains/index.cjs +1 -0
- package/dist/{blockchain/chains.d.cts → evm/chains/index.d.cts} +4 -7
- package/dist/{blockchain/chains.d.ts → evm/chains/index.d.ts} +4 -7
- package/dist/evm/chains/index.js +1 -0
- package/dist/evm/rpc.cjs +1 -0
- package/dist/{blockchain → evm}/rpc.d.cts +4 -3
- package/dist/{blockchain → evm}/rpc.d.ts +4 -3
- package/dist/evm/rpc.js +1 -0
- package/dist/evm/smartWalletClient.d.cts +59 -0
- package/dist/evm/smartWalletClient.d.ts +59 -0
- package/dist/evm/transfer.cjs +1 -0
- package/dist/evm/transfer.d.cts +8 -0
- package/dist/evm/transfer.d.ts +8 -0
- package/dist/evm/transfer.js +1 -0
- package/dist/evm/wallet.cjs +1 -0
- package/dist/evm/wallet.d.cts +9 -0
- package/dist/evm/wallet.d.ts +9 -0
- package/dist/evm/wallet.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +9 -20
- package/dist/index.d.ts +9 -20
- package/dist/index.js +1 -1
- package/dist/sdk.cjs +1 -0
- package/dist/{SmartWalletSDK.d.ts → sdk.d.cts} +18 -21
- package/dist/{SmartWalletSDK.d.cts → sdk.d.ts} +18 -21
- package/dist/sdk.js +1 -0
- package/dist/services/index.cjs +1 -1
- package/dist/services/index.js +1 -1
- package/dist/services/logger.cjs +1 -1
- package/dist/services/logger.js +1 -1
- package/dist/smartWalletService.cjs +1 -0
- package/dist/smartWalletService.d.cts +9 -0
- package/dist/smartWalletService.d.ts +9 -0
- package/dist/smartWalletService.js +1 -0
- package/dist/types/api.d.cts +195 -0
- package/dist/types/api.d.ts +195 -0
- package/dist/types/transfer.d.cts +46 -0
- package/dist/types/transfer.d.ts +46 -0
- package/dist/utils/constants.cjs +1 -1
- package/dist/utils/constants.d.cts +5 -6
- package/dist/utils/constants.d.ts +5 -6
- package/dist/utils/constants.js +1 -1
- package/dist/utils/index.cjs +1 -0
- package/dist/utils/index.d.cts +3 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +1 -0
- package/package.json +2 -7
- package/dist/SmartWalletSDK.cjs +0 -1
- package/dist/SmartWalletSDK.js +0 -1
- package/dist/api/CrossmintWalletService.cjs +0 -1
- package/dist/api/CrossmintWalletService.d.cts +0 -31
- package/dist/api/CrossmintWalletService.d.ts +0 -31
- package/dist/api/CrossmintWalletService.js +0 -1
- package/dist/blockchain/chains.cjs +0 -1
- package/dist/blockchain/chains.js +0 -1
- package/dist/blockchain/rpc.cjs +0 -1
- package/dist/blockchain/rpc.js +0 -1
- package/dist/blockchain/transfer.cjs +0 -1
- package/dist/blockchain/transfer.d.cts +0 -23
- package/dist/blockchain/transfer.d.ts +0 -23
- package/dist/blockchain/transfer.js +0 -1
- package/dist/blockchain/wallets/EVMSmartWallet.cjs +0 -1
- package/dist/blockchain/wallets/EVMSmartWallet.d.cts +0 -102
- package/dist/blockchain/wallets/EVMSmartWallet.d.ts +0 -102
- package/dist/blockchain/wallets/EVMSmartWallet.js +0 -1
- package/dist/blockchain/wallets/SendTransactionService.cjs +0 -1
- package/dist/blockchain/wallets/SendTransactionService.d.cts +0 -84
- package/dist/blockchain/wallets/SendTransactionService.d.ts +0 -84
- package/dist/blockchain/wallets/SendTransactionService.js +0 -1
- package/dist/blockchain/wallets/account/cache.cjs +0 -1
- package/dist/blockchain/wallets/account/cache.d.cts +0 -25
- package/dist/blockchain/wallets/account/cache.d.ts +0 -25
- package/dist/blockchain/wallets/account/cache.js +0 -1
- package/dist/blockchain/wallets/account/config.cjs +0 -1
- package/dist/blockchain/wallets/account/config.d.cts +0 -47
- package/dist/blockchain/wallets/account/config.d.ts +0 -47
- package/dist/blockchain/wallets/account/config.js +0 -1
- package/dist/blockchain/wallets/account/creator.cjs +0 -1
- package/dist/blockchain/wallets/account/creator.d.cts +0 -26
- package/dist/blockchain/wallets/account/creator.d.ts +0 -26
- package/dist/blockchain/wallets/account/creator.js +0 -1
- package/dist/blockchain/wallets/account/eoa.cjs +0 -1
- package/dist/blockchain/wallets/account/eoa.d.cts +0 -21
- package/dist/blockchain/wallets/account/eoa.d.ts +0 -21
- package/dist/blockchain/wallets/account/eoa.js +0 -1
- package/dist/blockchain/wallets/account/passkey.cjs +0 -1
- package/dist/blockchain/wallets/account/passkey.d.cts +0 -29
- package/dist/blockchain/wallets/account/passkey.d.ts +0 -29
- package/dist/blockchain/wallets/account/passkey.js +0 -1
- package/dist/blockchain/wallets/account/signer.cjs +0 -1
- package/dist/blockchain/wallets/account/signer.d.cts +0 -14
- package/dist/blockchain/wallets/account/signer.d.ts +0 -14
- package/dist/blockchain/wallets/account/signer.js +0 -1
- package/dist/blockchain/wallets/account/strategy.d.cts +0 -20
- package/dist/blockchain/wallets/account/strategy.d.ts +0 -20
- package/dist/blockchain/wallets/clientDecorator.cjs +0 -1
- package/dist/blockchain/wallets/clientDecorator.d.cts +0 -38
- package/dist/blockchain/wallets/clientDecorator.d.ts +0 -38
- package/dist/blockchain/wallets/clientDecorator.js +0 -1
- package/dist/blockchain/wallets/definitions/story-testnet.cjs +0 -1
- package/dist/blockchain/wallets/definitions/story-testnet.js +0 -1
- package/dist/blockchain/wallets/definitions/story.cjs +0 -1
- package/dist/blockchain/wallets/definitions/story.js +0 -1
- package/dist/blockchain/wallets/index.cjs +0 -1
- package/dist/blockchain/wallets/index.d.cts +0 -20
- package/dist/blockchain/wallets/index.d.ts +0 -20
- package/dist/blockchain/wallets/index.js +0 -1
- package/dist/blockchain/wallets/paymaster.cjs +0 -1
- package/dist/blockchain/wallets/paymaster.d.cts +0 -29
- package/dist/blockchain/wallets/paymaster.d.ts +0 -29
- package/dist/blockchain/wallets/paymaster.js +0 -1
- package/dist/blockchain/wallets/service.cjs +0 -1
- package/dist/blockchain/wallets/service.d.cts +0 -41
- package/dist/blockchain/wallets/service.d.ts +0 -41
- package/dist/blockchain/wallets/service.js +0 -1
- package/dist/chunk-2R6HK64N.cjs +0 -1
- package/dist/chunk-2ZFSHKM6.js +0 -1
- package/dist/chunk-3F6P4HUZ.js +0 -1
- package/dist/chunk-4YV6KMFQ.js +0 -1
- package/dist/chunk-6ODPWORJ.cjs +0 -1
- package/dist/chunk-7AVDZZGD.cjs +0 -1
- package/dist/chunk-7G7GOR7X.cjs +0 -1
- package/dist/chunk-ATQ4WGCW.js +0 -1
- package/dist/chunk-BII7Y2A3.cjs +0 -1
- package/dist/chunk-BJZQA5VC.js +0 -1
- package/dist/chunk-C3VZY7VJ.js +0 -1
- package/dist/chunk-CJBR5TGN.js +0 -3
- package/dist/chunk-CUTQYF3F.js +0 -1
- package/dist/chunk-D4NDUT36.js +0 -1
- package/dist/chunk-DIDKPOO2.cjs +0 -1
- package/dist/chunk-EBIEPPSD.js +0 -1
- package/dist/chunk-ETVJGLNY.js +0 -1
- package/dist/chunk-EVNFELF3.cjs +0 -3
- package/dist/chunk-FHNNZVNU.js +0 -1
- package/dist/chunk-FWARYLZ3.js +0 -1
- package/dist/chunk-GB35YMN4.cjs +0 -1
- package/dist/chunk-GGIAHBMC.js +0 -2
- package/dist/chunk-H4CMXNVK.js +0 -1
- package/dist/chunk-IQTGPM2U.cjs +0 -1
- package/dist/chunk-JYW5DCVU.js +0 -1
- package/dist/chunk-KCVR32TQ.cjs +0 -1
- package/dist/chunk-KREX6Z32.js +0 -1
- package/dist/chunk-KROX2DDP.cjs +0 -1
- package/dist/chunk-KYPTGHC6.cjs +0 -1
- package/dist/chunk-M4K3IZTT.cjs +0 -1
- package/dist/chunk-NLGILHJS.js +0 -1
- package/dist/chunk-NOTF3PP3.cjs +0 -1
- package/dist/chunk-NQUKI27M.cjs +0 -1
- package/dist/chunk-O2ACORII.cjs +0 -1
- package/dist/chunk-OXRLBURF.js +0 -1
- package/dist/chunk-PZ6Q22YJ.js +0 -1
- package/dist/chunk-S2XBSAGM.js +0 -1
- package/dist/chunk-S4V7TF5V.cjs +0 -2
- package/dist/chunk-SCXFZMLR.cjs +0 -1
- package/dist/chunk-STH2LE35.cjs +0 -1
- package/dist/chunk-SWWOVT47.cjs +0 -1
- package/dist/chunk-UG47CBKR.js +0 -1
- package/dist/chunk-UPURFW46.js +0 -1
- package/dist/chunk-WDKJ6P7K.js +0 -1
- package/dist/chunk-WJ6XJMRD.cjs +0 -1
- package/dist/chunk-XJGFG3RT.cjs +0 -1
- package/dist/chunk-XQ2K2K23.cjs +0 -1
- package/dist/chunk-XRZ2XPQM.js +0 -1
- package/dist/chunk-YVFO5W3R.cjs +0 -1
- package/dist/chunk-Z7AZOEVX.cjs +0 -1
- package/dist/chunk-ZQM4FEXV.js +0 -1
- package/dist/service-DqYCir8s.d.ts +0 -103
- package/dist/service-Ir-Qho-9.d.cts +0 -103
- package/dist/types/internal.cjs +0 -1
- package/dist/types/internal.d.cts +0 -14
- package/dist/types/internal.d.ts +0 -14
- package/dist/types/internal.js +0 -1
- package/dist/types/params.d.cts +0 -33
- package/dist/types/params.d.ts +0 -33
- package/dist/types/schema.cjs +0 -1
- package/dist/types/schema.d.cts +0 -241
- package/dist/types/schema.d.ts +0 -241
- package/dist/types/schema.js +0 -1
- package/dist/types/service.d.cts +0 -14
- package/dist/types/service.d.ts +0 -14
- package/dist/types/token.cjs +0 -1
- package/dist/types/token.d.cts +0 -35
- package/dist/types/token.d.ts +0 -35
- package/dist/types/token.js +0 -0
- package/dist/utils/api.cjs +0 -1
- package/dist/utils/api.d.cts +0 -4
- package/dist/utils/api.d.ts +0 -4
- package/dist/utils/api.js +0 -1
- package/dist/utils/blockchain.cjs +0 -1
- package/dist/utils/blockchain.d.cts +0 -7
- package/dist/utils/blockchain.d.ts +0 -7
- package/dist/utils/blockchain.js +0 -1
- package/dist/utils/environment.cjs +0 -1
- package/dist/utils/environment.d.cts +0 -3
- package/dist/utils/environment.d.ts +0 -3
- package/dist/utils/environment.js +0 -1
- package/dist/utils/helpers.cjs +0 -1
- package/dist/utils/helpers.d.cts +0 -4
- package/dist/utils/helpers.d.ts +0 -4
- package/dist/utils/helpers.js +0 -1
- package/dist/utils/signer.cjs +0 -1
- package/dist/utils/signer.d.cts +0 -15
- package/dist/utils/signer.d.ts +0 -15
- package/dist/utils/signer.js +0 -1
- package/dist/utils/test.cjs +0 -1
- package/dist/utils/test.d.cts +0 -18
- package/dist/utils/test.d.ts +0 -18
- package/dist/utils/test.js +0 -1
- /package/dist/{chunk-HQXF6VHP.cjs → chunk-5URY3C2T.cjs} +0 -0
- /package/dist/{chunk-DYVHPARQ.js → chunk-KVFFSUF4.js} +0 -0
- /package/dist/{chunk-GPZ7PHS6.cjs → chunk-MFUN74KH.cjs} +0 -0
- /package/dist/{chunk-NT7LBRZQ.js → chunk-XLACPZJJ.js} +0 -0
- /package/dist/{blockchain/wallets → evm/chains}/definitions/story-testnet.d.cts +0 -0
- /package/dist/{blockchain/wallets → evm/chains}/definitions/story-testnet.d.ts +0 -0
- /package/dist/{blockchain/wallets → evm/chains}/definitions/story.d.cts +0 -0
- /package/dist/{blockchain/wallets → evm/chains}/definitions/story.d.ts +0 -0
- /package/dist/{blockchain/wallets/account/strategy.cjs → evm/smartWalletClient.cjs} +0 -0
- /package/dist/{blockchain/wallets/account/strategy.js → evm/smartWalletClient.js} +0 -0
- /package/dist/types/{params.cjs → api.cjs} +0 -0
- /package/dist/types/{params.js → api.js} +0 -0
- /package/dist/types/{service.cjs → transfer.cjs} +0 -0
- /package/dist/types/{service.js → transfer.js} +0 -0
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { KernelSmartAccount } from '@zerodev/sdk';
|
|
3
|
-
import { SmartAccountClient } from 'permissionless';
|
|
4
|
-
import { SmartAccount } from 'permissionless/accounts';
|
|
5
|
-
import { EntryPoint } from 'permissionless/types/entrypoint';
|
|
6
|
-
import { Address, PublicClient, HttpTransport, Chain } from 'viem';
|
|
7
|
-
import { SmartWalletChain } from './blockchain/chains.cjs';
|
|
8
|
-
import { EOASignerDataSchema, PasskeyValidatorSerializedDataSchema, PasskeySignerDataSchema, SmartWalletConfigSchema, SignerDataSchema } from './types/schema.cjs';
|
|
9
|
-
import { SUPPORTED_KERNEL_VERSIONS, SUPPORTED_ENTRYPOINT_VERSIONS } from './utils/constants.cjs';
|
|
10
|
-
import { UserParams, WalletParams, PasskeySigner, ExternalSigner } from './types/params.cjs';
|
|
11
|
-
|
|
12
|
-
interface SignerConfig {
|
|
13
|
-
readonly type: "passkeys" | "eoa";
|
|
14
|
-
display(): SignerDisplay;
|
|
15
|
-
readonly data: SignerData;
|
|
16
|
-
}
|
|
17
|
-
declare class PasskeySignerConfig implements SignerConfig {
|
|
18
|
-
readonly data: PasskeySignerData;
|
|
19
|
-
readonly type = "passkeys";
|
|
20
|
-
constructor(data: PasskeySignerData);
|
|
21
|
-
display(): PasskeyDisplay;
|
|
22
|
-
}
|
|
23
|
-
declare class EOASignerConfig implements SignerConfig {
|
|
24
|
-
readonly data: EOASignerData;
|
|
25
|
-
readonly type = "eoa";
|
|
26
|
-
constructor(data: EOASignerData);
|
|
27
|
-
display(): {
|
|
28
|
-
type: "eoa";
|
|
29
|
-
eoaAddress: `0x${string}`;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
type SupportedKernelVersion = (typeof SUPPORTED_KERNEL_VERSIONS)[number];
|
|
34
|
-
declare function isSupportedKernelVersion(version: string): version is SupportedKernelVersion;
|
|
35
|
-
type SupportedEntryPointVersion = (typeof SUPPORTED_ENTRYPOINT_VERSIONS)[number];
|
|
36
|
-
declare function isSupportedEntryPointVersion(version: string): version is SupportedEntryPointVersion;
|
|
37
|
-
interface PreExistingWalletProperties {
|
|
38
|
-
signerConfig: SignerConfig;
|
|
39
|
-
address: Address;
|
|
40
|
-
}
|
|
41
|
-
interface WalletCreationContext {
|
|
42
|
-
user: UserParams & {
|
|
43
|
-
id: string;
|
|
44
|
-
};
|
|
45
|
-
chain: SmartWalletChain;
|
|
46
|
-
publicClient: PublicClient<HttpTransport>;
|
|
47
|
-
walletParams: WalletParams;
|
|
48
|
-
entryPoint: EntryPoint;
|
|
49
|
-
kernelVersion: SupportedKernelVersion;
|
|
50
|
-
existing?: PreExistingWalletProperties;
|
|
51
|
-
}
|
|
52
|
-
interface PasskeyCreationContext extends WalletCreationContext {
|
|
53
|
-
walletParams: WalletParams & {
|
|
54
|
-
signer: PasskeySigner;
|
|
55
|
-
};
|
|
56
|
-
existing?: {
|
|
57
|
-
signerConfig: PasskeySignerConfig;
|
|
58
|
-
address: Address;
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
interface EOACreationContext extends WalletCreationContext {
|
|
62
|
-
walletParams: WalletParams & {
|
|
63
|
-
signer: ExternalSigner;
|
|
64
|
-
};
|
|
65
|
-
existing?: {
|
|
66
|
-
signerConfig: EOASignerConfig;
|
|
67
|
-
address: Address;
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
declare function isPasskeyWalletParams(params: WalletParams): params is WalletParams & {
|
|
71
|
-
signer: PasskeySigner;
|
|
72
|
-
};
|
|
73
|
-
declare function isPasskeyCreationContext(params: WalletCreationContext): params is PasskeyCreationContext;
|
|
74
|
-
declare function isEOAWalletParams(params: WalletParams): params is WalletParams & {
|
|
75
|
-
signer: ExternalSigner;
|
|
76
|
-
};
|
|
77
|
-
declare function isEOACreationContext(params: WalletCreationContext): params is EOACreationContext;
|
|
78
|
-
interface AccountAndSigner {
|
|
79
|
-
account: KernelSmartAccount<EntryPoint, HttpTransport>;
|
|
80
|
-
signerConfig: SignerConfig;
|
|
81
|
-
}
|
|
82
|
-
type SmartWalletClient = SmartAccountClient<EntryPoint, HttpTransport, Chain, SmartAccount<EntryPoint>>;
|
|
83
|
-
|
|
84
|
-
type EOASignerData = z.infer<typeof EOASignerDataSchema>;
|
|
85
|
-
type PasskeyValidatorSerializedData = z.infer<typeof PasskeyValidatorSerializedDataSchema>;
|
|
86
|
-
type PasskeySignerData = z.infer<typeof PasskeySignerDataSchema>;
|
|
87
|
-
type SmartWalletConfig = z.infer<typeof SmartWalletConfigSchema>;
|
|
88
|
-
type SignerData = z.infer<typeof SignerDataSchema>;
|
|
89
|
-
type PasskeyDisplay = Pick<PasskeySignerData, "type" | "passkeyName" | "pubKeyX" | "pubKeyY">;
|
|
90
|
-
type SignerDisplay = EOASignerData | PasskeyDisplay;
|
|
91
|
-
type StoreSmartWalletParams = {
|
|
92
|
-
type: string;
|
|
93
|
-
smartContractWalletAddress: string;
|
|
94
|
-
signerData: SignerData;
|
|
95
|
-
sessionKeySignerAddress?: string;
|
|
96
|
-
version: number;
|
|
97
|
-
baseLayer: string;
|
|
98
|
-
chainId: number;
|
|
99
|
-
entryPointVersion: SupportedEntryPointVersion;
|
|
100
|
-
kernelVersion: SupportedKernelVersion;
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
export { type AccountAndSigner as A, type EOACreationContext as E, type PasskeyDisplay as P, type SmartWalletConfig as S, type WalletCreationContext as W, type SignerDisplay as a, type SupportedEntryPointVersion as b, type SupportedKernelVersion as c, type PreExistingWalletProperties as d, type StoreSmartWalletParams as e, type PasskeyCreationContext as f, type SmartWalletClient as g, type SignerConfig as h, PasskeySignerConfig as i, EOASignerConfig as j, isSupportedKernelVersion as k, isSupportedEntryPointVersion as l, isPasskeyWalletParams as m, isPasskeyCreationContext as n, isEOAWalletParams as o, isEOACreationContext as p, type EOASignerData as q, type PasskeyValidatorSerializedData as r, type PasskeySignerData as s, type SignerData as t };
|
package/dist/types/internal.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk6ODPWORJcjs = require('../chunk-6ODPWORJ.cjs');require('../chunk-BII7Y2A3.cjs');exports.isEOACreationContext = _chunk6ODPWORJcjs.f; exports.isEOAWalletParams = _chunk6ODPWORJcjs.e; exports.isPasskeyCreationContext = _chunk6ODPWORJcjs.d; exports.isPasskeyWalletParams = _chunk6ODPWORJcjs.c; exports.isSupportedEntryPointVersion = _chunk6ODPWORJcjs.b; exports.isSupportedKernelVersion = _chunk6ODPWORJcjs.a;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import '@zerodev/sdk';
|
|
2
|
-
import 'permissionless';
|
|
3
|
-
import 'permissionless/accounts';
|
|
4
|
-
import 'permissionless/types/entrypoint';
|
|
5
|
-
import 'viem';
|
|
6
|
-
import '../blockchain/chains.cjs';
|
|
7
|
-
export { A as AccountAndSigner, E as EOACreationContext, f as PasskeyCreationContext, d as PreExistingWalletProperties, g as SmartWalletClient, b as SupportedEntryPointVersion, c as SupportedKernelVersion, W as WalletCreationContext, p as isEOACreationContext, o as isEOAWalletParams, n as isPasskeyCreationContext, m as isPasskeyWalletParams, l as isSupportedEntryPointVersion, k as isSupportedKernelVersion } from '../service-Ir-Qho-9.cjs';
|
|
8
|
-
import '../utils/constants.cjs';
|
|
9
|
-
import './params.cjs';
|
|
10
|
-
import 'viem/chains';
|
|
11
|
-
import '@crossmint/common-sdk-base';
|
|
12
|
-
import 'zod';
|
|
13
|
-
import './schema.cjs';
|
|
14
|
-
import '@zerodev/passkey-validator';
|
package/dist/types/internal.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import '@zerodev/sdk';
|
|
2
|
-
import 'permissionless';
|
|
3
|
-
import 'permissionless/accounts';
|
|
4
|
-
import 'permissionless/types/entrypoint';
|
|
5
|
-
import 'viem';
|
|
6
|
-
import '../blockchain/chains.js';
|
|
7
|
-
export { A as AccountAndSigner, E as EOACreationContext, f as PasskeyCreationContext, d as PreExistingWalletProperties, g as SmartWalletClient, b as SupportedEntryPointVersion, c as SupportedKernelVersion, W as WalletCreationContext, p as isEOACreationContext, o as isEOAWalletParams, n as isPasskeyCreationContext, m as isPasskeyWalletParams, l as isSupportedEntryPointVersion, k as isSupportedKernelVersion } from '../service-DqYCir8s.js';
|
|
8
|
-
import '../utils/constants.js';
|
|
9
|
-
import './params.js';
|
|
10
|
-
import 'viem/chains';
|
|
11
|
-
import '@crossmint/common-sdk-base';
|
|
12
|
-
import 'zod';
|
|
13
|
-
import './schema.js';
|
|
14
|
-
import '@zerodev/passkey-validator';
|
package/dist/types/internal.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c,d,e,f}from"../chunk-WDKJ6P7K.js";import"../chunk-4YV6KMFQ.js";export{f as isEOACreationContext,e as isEOAWalletParams,d as isPasskeyCreationContext,c as isPasskeyWalletParams,b as isSupportedEntryPointVersion,a as isSupportedKernelVersion};
|
package/dist/types/params.d.cts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { LocalAccount, EIP1193Provider } from 'viem';
|
|
2
|
-
|
|
3
|
-
type SmartWalletSDKInitParams = {
|
|
4
|
-
clientApiKey: string;
|
|
5
|
-
};
|
|
6
|
-
type UserParams = {
|
|
7
|
-
jwt: string;
|
|
8
|
-
};
|
|
9
|
-
type ViemAccount = {
|
|
10
|
-
type: "VIEM_ACCOUNT";
|
|
11
|
-
account: LocalAccount & {
|
|
12
|
-
source: "custom";
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
type PasskeySigner = {
|
|
16
|
-
type: "PASSKEY";
|
|
17
|
-
/**
|
|
18
|
-
* Displayed to the user during passkey registration or signing prompts.
|
|
19
|
-
* If not provided, a default name identifier within the JWT
|
|
20
|
-
* that is specified in the project settings (typically `sub`) will be used.
|
|
21
|
-
*/
|
|
22
|
-
passkeyName?: string;
|
|
23
|
-
onPrePasskeyRegistration?: () => Promise<void> | void;
|
|
24
|
-
onPasskeyRegistrationError?: (error: unknown) => Promise<void>;
|
|
25
|
-
onFirstTimePasskeySigning?: () => Promise<void> | void;
|
|
26
|
-
onFirstTimePasskeySigningError?: (error: unknown) => Promise<void>;
|
|
27
|
-
};
|
|
28
|
-
type ExternalSigner = EIP1193Provider | ViemAccount;
|
|
29
|
-
interface WalletParams {
|
|
30
|
-
signer: ExternalSigner | PasskeySigner;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export type { ExternalSigner, PasskeySigner, SmartWalletSDKInitParams, UserParams, ViemAccount, WalletParams };
|
package/dist/types/params.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { LocalAccount, EIP1193Provider } from 'viem';
|
|
2
|
-
|
|
3
|
-
type SmartWalletSDKInitParams = {
|
|
4
|
-
clientApiKey: string;
|
|
5
|
-
};
|
|
6
|
-
type UserParams = {
|
|
7
|
-
jwt: string;
|
|
8
|
-
};
|
|
9
|
-
type ViemAccount = {
|
|
10
|
-
type: "VIEM_ACCOUNT";
|
|
11
|
-
account: LocalAccount & {
|
|
12
|
-
source: "custom";
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
type PasskeySigner = {
|
|
16
|
-
type: "PASSKEY";
|
|
17
|
-
/**
|
|
18
|
-
* Displayed to the user during passkey registration or signing prompts.
|
|
19
|
-
* If not provided, a default name identifier within the JWT
|
|
20
|
-
* that is specified in the project settings (typically `sub`) will be used.
|
|
21
|
-
*/
|
|
22
|
-
passkeyName?: string;
|
|
23
|
-
onPrePasskeyRegistration?: () => Promise<void> | void;
|
|
24
|
-
onPasskeyRegistrationError?: (error: unknown) => Promise<void>;
|
|
25
|
-
onFirstTimePasskeySigning?: () => Promise<void> | void;
|
|
26
|
-
onFirstTimePasskeySigningError?: (error: unknown) => Promise<void>;
|
|
27
|
-
};
|
|
28
|
-
type ExternalSigner = EIP1193Provider | ViemAccount;
|
|
29
|
-
interface WalletParams {
|
|
30
|
-
signer: ExternalSigner | PasskeySigner;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export type { ExternalSigner, PasskeySigner, SmartWalletSDKInitParams, UserParams, ViemAccount, WalletParams };
|
package/dist/types/schema.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZ7AZOEVXcjs = require('../chunk-Z7AZOEVX.cjs');require('../chunk-BII7Y2A3.cjs');exports.EOASignerDataSchema = _chunkZ7AZOEVXcjs.a; exports.PasskeySignerDataSchema = _chunkZ7AZOEVXcjs.c; exports.PasskeyValidatorSerializedDataSchema = _chunkZ7AZOEVXcjs.b; exports.SignerDataSchema = _chunkZ7AZOEVXcjs.d; exports.SmartWalletConfigSchema = _chunkZ7AZOEVXcjs.e;
|
package/dist/types/schema.d.cts
DELETED
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
import { PasskeyValidatorContractVersion } from '@zerodev/passkey-validator';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
declare const EOASignerDataSchema: z.ZodObject<{
|
|
5
|
-
eoaAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
6
|
-
type: z.ZodLiteral<"eoa">;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
type: "eoa";
|
|
9
|
-
eoaAddress: `0x${string}`;
|
|
10
|
-
}, {
|
|
11
|
-
type: "eoa";
|
|
12
|
-
eoaAddress: `0x${string}`;
|
|
13
|
-
}>;
|
|
14
|
-
declare const PasskeyValidatorSerializedDataSchema: z.ZodObject<{
|
|
15
|
-
entryPoint: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
16
|
-
validatorAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
17
|
-
pubKeyX: z.ZodString;
|
|
18
|
-
pubKeyY: z.ZodString;
|
|
19
|
-
authenticatorIdHash: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
20
|
-
authenticatorId: z.ZodString;
|
|
21
|
-
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
entryPoint: `0x${string}`;
|
|
23
|
-
validatorAddress: `0x${string}`;
|
|
24
|
-
pubKeyX: string;
|
|
25
|
-
pubKeyY: string;
|
|
26
|
-
authenticatorIdHash: `0x${string}`;
|
|
27
|
-
authenticatorId: string;
|
|
28
|
-
}, {
|
|
29
|
-
entryPoint: `0x${string}`;
|
|
30
|
-
validatorAddress: `0x${string}`;
|
|
31
|
-
pubKeyX: string;
|
|
32
|
-
pubKeyY: string;
|
|
33
|
-
authenticatorIdHash: `0x${string}`;
|
|
34
|
-
authenticatorId: string;
|
|
35
|
-
}>;
|
|
36
|
-
declare const PasskeySignerDataSchema: z.ZodObject<{
|
|
37
|
-
entryPoint: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
38
|
-
validatorAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
39
|
-
pubKeyX: z.ZodString;
|
|
40
|
-
pubKeyY: z.ZodString;
|
|
41
|
-
authenticatorIdHash: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
42
|
-
authenticatorId: z.ZodString;
|
|
43
|
-
passkeyName: z.ZodString;
|
|
44
|
-
validatorContractVersion: z.ZodNativeEnum<typeof PasskeyValidatorContractVersion>;
|
|
45
|
-
domain: z.ZodString;
|
|
46
|
-
type: z.ZodLiteral<"passkeys">;
|
|
47
|
-
}, "strip", z.ZodTypeAny, {
|
|
48
|
-
type: "passkeys";
|
|
49
|
-
entryPoint: `0x${string}`;
|
|
50
|
-
domain: string;
|
|
51
|
-
validatorAddress: `0x${string}`;
|
|
52
|
-
pubKeyX: string;
|
|
53
|
-
pubKeyY: string;
|
|
54
|
-
authenticatorIdHash: `0x${string}`;
|
|
55
|
-
authenticatorId: string;
|
|
56
|
-
passkeyName: string;
|
|
57
|
-
validatorContractVersion: PasskeyValidatorContractVersion;
|
|
58
|
-
}, {
|
|
59
|
-
type: "passkeys";
|
|
60
|
-
entryPoint: `0x${string}`;
|
|
61
|
-
domain: string;
|
|
62
|
-
validatorAddress: `0x${string}`;
|
|
63
|
-
pubKeyX: string;
|
|
64
|
-
pubKeyY: string;
|
|
65
|
-
authenticatorIdHash: `0x${string}`;
|
|
66
|
-
authenticatorId: string;
|
|
67
|
-
passkeyName: string;
|
|
68
|
-
validatorContractVersion: PasskeyValidatorContractVersion;
|
|
69
|
-
}>;
|
|
70
|
-
declare const SignerDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
71
|
-
entryPoint: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
72
|
-
validatorAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
73
|
-
pubKeyX: z.ZodString;
|
|
74
|
-
pubKeyY: z.ZodString;
|
|
75
|
-
authenticatorIdHash: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
76
|
-
authenticatorId: z.ZodString;
|
|
77
|
-
passkeyName: z.ZodString;
|
|
78
|
-
validatorContractVersion: z.ZodNativeEnum<typeof PasskeyValidatorContractVersion>;
|
|
79
|
-
domain: z.ZodString;
|
|
80
|
-
type: z.ZodLiteral<"passkeys">;
|
|
81
|
-
}, "strip", z.ZodTypeAny, {
|
|
82
|
-
type: "passkeys";
|
|
83
|
-
entryPoint: `0x${string}`;
|
|
84
|
-
domain: string;
|
|
85
|
-
validatorAddress: `0x${string}`;
|
|
86
|
-
pubKeyX: string;
|
|
87
|
-
pubKeyY: string;
|
|
88
|
-
authenticatorIdHash: `0x${string}`;
|
|
89
|
-
authenticatorId: string;
|
|
90
|
-
passkeyName: string;
|
|
91
|
-
validatorContractVersion: PasskeyValidatorContractVersion;
|
|
92
|
-
}, {
|
|
93
|
-
type: "passkeys";
|
|
94
|
-
entryPoint: `0x${string}`;
|
|
95
|
-
domain: string;
|
|
96
|
-
validatorAddress: `0x${string}`;
|
|
97
|
-
pubKeyX: string;
|
|
98
|
-
pubKeyY: string;
|
|
99
|
-
authenticatorIdHash: `0x${string}`;
|
|
100
|
-
authenticatorId: string;
|
|
101
|
-
passkeyName: string;
|
|
102
|
-
validatorContractVersion: PasskeyValidatorContractVersion;
|
|
103
|
-
}>, z.ZodObject<{
|
|
104
|
-
eoaAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
105
|
-
type: z.ZodLiteral<"eoa">;
|
|
106
|
-
}, "strip", z.ZodTypeAny, {
|
|
107
|
-
type: "eoa";
|
|
108
|
-
eoaAddress: `0x${string}`;
|
|
109
|
-
}, {
|
|
110
|
-
type: "eoa";
|
|
111
|
-
eoaAddress: `0x${string}`;
|
|
112
|
-
}>]>;
|
|
113
|
-
declare const SmartWalletConfigSchema: z.ZodObject<{
|
|
114
|
-
kernelVersion: z.ZodEnum<["0.3.1", "0.3.0", "0.2.4"]>;
|
|
115
|
-
entryPointVersion: z.ZodEnum<["v0.6", "v0.7"]>;
|
|
116
|
-
userId: z.ZodString;
|
|
117
|
-
signers: z.ZodArray<z.ZodObject<{
|
|
118
|
-
signerData: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
119
|
-
entryPoint: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
120
|
-
validatorAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
121
|
-
pubKeyX: z.ZodString;
|
|
122
|
-
pubKeyY: z.ZodString;
|
|
123
|
-
authenticatorIdHash: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
124
|
-
authenticatorId: z.ZodString;
|
|
125
|
-
passkeyName: z.ZodString;
|
|
126
|
-
validatorContractVersion: z.ZodNativeEnum<typeof PasskeyValidatorContractVersion>;
|
|
127
|
-
domain: z.ZodString;
|
|
128
|
-
type: z.ZodLiteral<"passkeys">;
|
|
129
|
-
}, "strip", z.ZodTypeAny, {
|
|
130
|
-
type: "passkeys";
|
|
131
|
-
entryPoint: `0x${string}`;
|
|
132
|
-
domain: string;
|
|
133
|
-
validatorAddress: `0x${string}`;
|
|
134
|
-
pubKeyX: string;
|
|
135
|
-
pubKeyY: string;
|
|
136
|
-
authenticatorIdHash: `0x${string}`;
|
|
137
|
-
authenticatorId: string;
|
|
138
|
-
passkeyName: string;
|
|
139
|
-
validatorContractVersion: PasskeyValidatorContractVersion;
|
|
140
|
-
}, {
|
|
141
|
-
type: "passkeys";
|
|
142
|
-
entryPoint: `0x${string}`;
|
|
143
|
-
domain: string;
|
|
144
|
-
validatorAddress: `0x${string}`;
|
|
145
|
-
pubKeyX: string;
|
|
146
|
-
pubKeyY: string;
|
|
147
|
-
authenticatorIdHash: `0x${string}`;
|
|
148
|
-
authenticatorId: string;
|
|
149
|
-
passkeyName: string;
|
|
150
|
-
validatorContractVersion: PasskeyValidatorContractVersion;
|
|
151
|
-
}>, z.ZodObject<{
|
|
152
|
-
eoaAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
153
|
-
type: z.ZodLiteral<"eoa">;
|
|
154
|
-
}, "strip", z.ZodTypeAny, {
|
|
155
|
-
type: "eoa";
|
|
156
|
-
eoaAddress: `0x${string}`;
|
|
157
|
-
}, {
|
|
158
|
-
type: "eoa";
|
|
159
|
-
eoaAddress: `0x${string}`;
|
|
160
|
-
}>]>;
|
|
161
|
-
}, "strip", z.ZodTypeAny, {
|
|
162
|
-
signerData: {
|
|
163
|
-
type: "eoa";
|
|
164
|
-
eoaAddress: `0x${string}`;
|
|
165
|
-
} | {
|
|
166
|
-
type: "passkeys";
|
|
167
|
-
entryPoint: `0x${string}`;
|
|
168
|
-
domain: string;
|
|
169
|
-
validatorAddress: `0x${string}`;
|
|
170
|
-
pubKeyX: string;
|
|
171
|
-
pubKeyY: string;
|
|
172
|
-
authenticatorIdHash: `0x${string}`;
|
|
173
|
-
authenticatorId: string;
|
|
174
|
-
passkeyName: string;
|
|
175
|
-
validatorContractVersion: PasskeyValidatorContractVersion;
|
|
176
|
-
};
|
|
177
|
-
}, {
|
|
178
|
-
signerData: {
|
|
179
|
-
type: "eoa";
|
|
180
|
-
eoaAddress: `0x${string}`;
|
|
181
|
-
} | {
|
|
182
|
-
type: "passkeys";
|
|
183
|
-
entryPoint: `0x${string}`;
|
|
184
|
-
domain: string;
|
|
185
|
-
validatorAddress: `0x${string}`;
|
|
186
|
-
pubKeyX: string;
|
|
187
|
-
pubKeyY: string;
|
|
188
|
-
authenticatorIdHash: `0x${string}`;
|
|
189
|
-
authenticatorId: string;
|
|
190
|
-
passkeyName: string;
|
|
191
|
-
validatorContractVersion: PasskeyValidatorContractVersion;
|
|
192
|
-
};
|
|
193
|
-
}>, "many">;
|
|
194
|
-
smartContractWalletAddress: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
195
|
-
}, "strip", z.ZodTypeAny, {
|
|
196
|
-
kernelVersion: "0.2.4" | "0.3.0" | "0.3.1";
|
|
197
|
-
entryPointVersion: "v0.6" | "v0.7";
|
|
198
|
-
userId: string;
|
|
199
|
-
signers: {
|
|
200
|
-
signerData: {
|
|
201
|
-
type: "eoa";
|
|
202
|
-
eoaAddress: `0x${string}`;
|
|
203
|
-
} | {
|
|
204
|
-
type: "passkeys";
|
|
205
|
-
entryPoint: `0x${string}`;
|
|
206
|
-
domain: string;
|
|
207
|
-
validatorAddress: `0x${string}`;
|
|
208
|
-
pubKeyX: string;
|
|
209
|
-
pubKeyY: string;
|
|
210
|
-
authenticatorIdHash: `0x${string}`;
|
|
211
|
-
authenticatorId: string;
|
|
212
|
-
passkeyName: string;
|
|
213
|
-
validatorContractVersion: PasskeyValidatorContractVersion;
|
|
214
|
-
};
|
|
215
|
-
}[];
|
|
216
|
-
smartContractWalletAddress?: `0x${string}` | undefined;
|
|
217
|
-
}, {
|
|
218
|
-
kernelVersion: "0.2.4" | "0.3.0" | "0.3.1";
|
|
219
|
-
entryPointVersion: "v0.6" | "v0.7";
|
|
220
|
-
userId: string;
|
|
221
|
-
signers: {
|
|
222
|
-
signerData: {
|
|
223
|
-
type: "eoa";
|
|
224
|
-
eoaAddress: `0x${string}`;
|
|
225
|
-
} | {
|
|
226
|
-
type: "passkeys";
|
|
227
|
-
entryPoint: `0x${string}`;
|
|
228
|
-
domain: string;
|
|
229
|
-
validatorAddress: `0x${string}`;
|
|
230
|
-
pubKeyX: string;
|
|
231
|
-
pubKeyY: string;
|
|
232
|
-
authenticatorIdHash: `0x${string}`;
|
|
233
|
-
authenticatorId: string;
|
|
234
|
-
passkeyName: string;
|
|
235
|
-
validatorContractVersion: PasskeyValidatorContractVersion;
|
|
236
|
-
};
|
|
237
|
-
}[];
|
|
238
|
-
smartContractWalletAddress?: `0x${string}` | undefined;
|
|
239
|
-
}>;
|
|
240
|
-
|
|
241
|
-
export { EOASignerDataSchema, PasskeySignerDataSchema, PasskeyValidatorSerializedDataSchema, SignerDataSchema, SmartWalletConfigSchema };
|