@crossmint/client-sdk-smart-wallet 0.1.19 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SmartWalletSDK.cjs +1 -0
- package/dist/SmartWalletSDK.d.cts +47 -0
- package/dist/SmartWalletSDK.d.ts +47 -0
- package/dist/SmartWalletSDK.js +1 -0
- package/dist/api/CrossmintWalletService.cjs +1 -0
- package/dist/api/CrossmintWalletService.d.cts +31 -0
- package/dist/api/CrossmintWalletService.d.ts +31 -0
- package/dist/api/CrossmintWalletService.js +1 -0
- package/dist/blockchain/chains.cjs +1 -0
- package/dist/blockchain/chains.d.cts +36 -0
- package/dist/blockchain/chains.d.ts +36 -0
- package/dist/blockchain/chains.js +1 -0
- package/dist/blockchain/rpc.cjs +1 -0
- package/dist/blockchain/rpc.d.cts +9 -0
- package/dist/blockchain/rpc.d.ts +9 -0
- package/dist/blockchain/rpc.js +1 -0
- package/dist/blockchain/transfer.cjs +1 -0
- package/dist/blockchain/transfer.d.cts +23 -0
- package/dist/blockchain/transfer.d.ts +23 -0
- package/dist/blockchain/transfer.js +1 -0
- package/dist/blockchain/wallets/EVMSmartWallet.cjs +1 -0
- package/dist/blockchain/wallets/EVMSmartWallet.d.cts +102 -0
- package/dist/blockchain/wallets/EVMSmartWallet.d.ts +102 -0
- package/dist/blockchain/wallets/EVMSmartWallet.js +1 -0
- package/dist/blockchain/wallets/SendTransactionService.cjs +1 -0
- package/dist/blockchain/wallets/SendTransactionService.d.cts +84 -0
- package/dist/blockchain/wallets/SendTransactionService.d.ts +84 -0
- package/dist/blockchain/wallets/SendTransactionService.js +1 -0
- package/dist/blockchain/wallets/account/cache.cjs +1 -0
- package/dist/blockchain/wallets/account/cache.d.cts +25 -0
- package/dist/blockchain/wallets/account/cache.d.ts +25 -0
- package/dist/blockchain/wallets/account/cache.js +1 -0
- package/dist/blockchain/wallets/account/config.cjs +1 -0
- package/dist/blockchain/wallets/account/config.d.cts +47 -0
- package/dist/blockchain/wallets/account/config.d.ts +47 -0
- package/dist/blockchain/wallets/account/config.js +1 -0
- package/dist/blockchain/wallets/account/creator.cjs +1 -0
- package/dist/blockchain/wallets/account/creator.d.cts +26 -0
- package/dist/blockchain/wallets/account/creator.d.ts +26 -0
- package/dist/blockchain/wallets/account/creator.js +1 -0
- package/dist/blockchain/wallets/account/eoa.cjs +1 -0
- package/dist/blockchain/wallets/account/eoa.d.cts +21 -0
- package/dist/blockchain/wallets/account/eoa.d.ts +21 -0
- package/dist/blockchain/wallets/account/eoa.js +1 -0
- package/dist/blockchain/wallets/account/passkey.cjs +1 -0
- package/dist/blockchain/wallets/account/passkey.d.cts +29 -0
- package/dist/blockchain/wallets/account/passkey.d.ts +29 -0
- package/dist/blockchain/wallets/account/passkey.js +1 -0
- package/dist/blockchain/wallets/account/signer.cjs +1 -0
- package/dist/blockchain/wallets/account/signer.d.cts +14 -0
- package/dist/blockchain/wallets/account/signer.d.ts +14 -0
- package/dist/blockchain/wallets/account/signer.js +1 -0
- package/dist/blockchain/wallets/account/strategy.cjs +1 -0
- package/dist/blockchain/wallets/account/strategy.d.cts +20 -0
- package/dist/blockchain/wallets/account/strategy.d.ts +20 -0
- package/dist/blockchain/wallets/account/strategy.js +0 -0
- package/dist/blockchain/wallets/clientDecorator.cjs +1 -0
- package/dist/blockchain/wallets/clientDecorator.d.cts +38 -0
- package/dist/blockchain/wallets/clientDecorator.d.ts +38 -0
- package/dist/blockchain/wallets/clientDecorator.js +1 -0
- package/dist/blockchain/wallets/index.cjs +1 -0
- package/dist/blockchain/wallets/index.d.cts +20 -0
- package/dist/blockchain/wallets/index.d.ts +20 -0
- package/dist/blockchain/wallets/index.js +1 -0
- package/dist/blockchain/wallets/paymaster.cjs +1 -0
- package/dist/blockchain/wallets/paymaster.d.cts +29 -0
- package/dist/blockchain/wallets/paymaster.d.ts +29 -0
- package/dist/blockchain/wallets/paymaster.js +1 -0
- package/dist/blockchain/wallets/service.cjs +1 -0
- package/dist/blockchain/wallets/service.d.cts +41 -0
- package/dist/blockchain/wallets/service.d.ts +41 -0
- package/dist/blockchain/wallets/service.js +1 -0
- package/dist/chunk-27US7ZBX.js +1 -0
- package/dist/chunk-2GS5TXEY.cjs +1 -0
- package/dist/chunk-2R6HK64N.cjs +1 -0
- package/dist/chunk-3F6P4HUZ.js +1 -0
- package/dist/chunk-4SPA557P.js +0 -0
- package/dist/chunk-5M3MSPHK.cjs +1 -0
- package/dist/chunk-6DE5YEO5.cjs +1 -0
- package/dist/chunk-7AVDZZGD.cjs +1 -0
- package/dist/chunk-7FXFOOQU.cjs +1 -0
- package/dist/chunk-7JAT6GQU.js +1 -0
- package/dist/chunk-ATQ4WGCW.js +1 -0
- package/dist/chunk-B3LJJZXD.cjs +2 -0
- package/dist/chunk-BJZQA5VC.js +1 -0
- package/dist/chunk-BXXREMNR.cjs +1 -0
- package/dist/chunk-C3VZY7VJ.js +1 -0
- package/dist/chunk-CPYNP4XI.js +1 -0
- package/dist/chunk-CUTQYF3F.js +1 -0
- package/dist/chunk-D4NDUT36.js +1 -0
- package/dist/chunk-DIDKPOO2.cjs +1 -0
- package/dist/chunk-ETVJGLNY.js +1 -0
- package/dist/chunk-FHNNZVNU.js +1 -0
- package/dist/chunk-FIJ3CBJ4.js +3 -0
- package/dist/chunk-G57LROTD.js +1 -0
- package/dist/chunk-GB35YMN4.cjs +1 -0
- package/dist/chunk-H4CMXNVK.js +1 -0
- package/dist/chunk-IQTGPM2U.cjs +1 -0
- package/dist/chunk-KYPTGHC6.cjs +1 -0
- package/dist/chunk-LMVY4C4Y.js +1 -0
- package/dist/chunk-M4K3IZTT.cjs +1 -0
- package/dist/chunk-NLGILHJS.js +1 -0
- package/dist/chunk-O2ACORII.cjs +1 -0
- package/dist/chunk-OCJYX5QF.cjs +1 -0
- package/dist/chunk-ODAUWGUU.cjs +1 -0
- package/dist/chunk-PBUJXVQT.js +1 -0
- package/dist/chunk-PLRQBDYS.cjs +1 -0
- package/dist/chunk-PPTSNCSQ.cjs +1 -0
- package/dist/chunk-PZ6Q22YJ.js +1 -0
- package/dist/chunk-Q44P7MO7.cjs +1 -0
- package/dist/chunk-QVB3HE6Q.js +2 -0
- package/dist/chunk-S2XBSAGM.js +1 -0
- package/dist/chunk-SCXFZMLR.cjs +1 -0
- package/dist/chunk-STH2LE35.cjs +1 -0
- package/dist/chunk-SWWOVT47.cjs +1 -0
- package/dist/chunk-TZG6MROQ.js +1 -0
- package/dist/chunk-UG47CBKR.js +1 -0
- package/dist/chunk-UPURFW46.js +1 -0
- package/dist/chunk-WDM7PN4O.js +1 -0
- package/dist/chunk-WJ6XJMRD.cjs +1 -0
- package/dist/chunk-WTPE2I2Q.cjs +1 -0
- package/dist/chunk-XHSA4YTO.cjs +3 -0
- package/dist/chunk-XJGFG3RT.cjs +1 -0
- package/dist/chunk-XP6ESWVJ.js +1 -0
- package/dist/chunk-XQ2K2K23.cjs +1 -0
- package/dist/chunk-YBHSEZMB.js +1 -0
- package/dist/chunk-YZQJV2KA.cjs +1 -0
- package/dist/chunk-Z22H3MJS.js +1 -0
- package/dist/error/index.cjs +1 -0
- package/dist/error/index.d.cts +58 -0
- package/dist/error/index.d.ts +58 -0
- package/dist/error/index.js +1 -0
- package/dist/error/processor.cjs +1 -0
- package/dist/error/processor.d.cts +25 -0
- package/dist/error/processor.d.ts +25 -0
- package/dist/error/processor.js +1 -0
- package/dist/index.cjs +1 -5
- package/dist/index.d.cts +20 -559
- package/dist/index.d.ts +20 -559
- package/dist/index.js +1 -5
- package/dist/service-DqYCir8s.d.ts +103 -0
- package/dist/service-Ir-Qho-9.d.cts +103 -0
- package/dist/services/index.cjs +1 -0
- package/dist/services/index.d.cts +2 -0
- package/dist/services/index.d.ts +2 -0
- package/dist/services/index.js +1 -0
- package/dist/services/logger.cjs +1 -0
- package/dist/services/logger.d.cts +6 -0
- package/dist/services/logger.d.ts +6 -0
- package/dist/services/logger.js +1 -0
- package/dist/types/internal.cjs +1 -0
- package/dist/types/internal.d.cts +14 -0
- package/dist/types/internal.d.ts +14 -0
- package/dist/types/internal.js +1 -0
- package/dist/types/params.cjs +1 -0
- package/dist/types/params.d.cts +33 -0
- package/dist/types/params.d.ts +33 -0
- package/dist/types/params.js +0 -0
- package/dist/types/schema.cjs +1 -0
- package/dist/types/schema.d.cts +241 -0
- package/dist/types/schema.d.ts +241 -0
- package/dist/types/schema.js +1 -0
- package/dist/types/service.cjs +1 -0
- package/dist/types/service.d.cts +14 -0
- package/dist/types/service.d.ts +14 -0
- package/dist/types/service.js +0 -0
- package/dist/types/token.cjs +1 -0
- package/dist/types/token.d.cts +35 -0
- package/dist/types/token.d.ts +35 -0
- package/dist/types/token.js +0 -0
- package/dist/utils/api.cjs +1 -0
- package/dist/utils/api.d.cts +4 -0
- package/dist/utils/api.d.ts +4 -0
- package/dist/utils/api.js +1 -0
- package/dist/utils/blockchain.cjs +1 -0
- package/dist/utils/blockchain.d.cts +7 -0
- package/dist/utils/blockchain.d.ts +7 -0
- package/dist/utils/blockchain.js +1 -0
- package/dist/utils/constants.cjs +1 -0
- package/dist/utils/constants.d.cts +9 -0
- package/dist/utils/constants.d.ts +9 -0
- package/dist/utils/constants.js +1 -0
- package/dist/utils/environment.cjs +1 -0
- package/dist/utils/environment.d.cts +3 -0
- package/dist/utils/environment.d.ts +3 -0
- package/dist/utils/environment.js +1 -0
- package/dist/utils/helpers.cjs +1 -0
- package/dist/utils/helpers.d.cts +4 -0
- package/dist/utils/helpers.d.ts +4 -0
- package/dist/utils/helpers.js +1 -0
- package/dist/utils/signer.cjs +1 -0
- package/dist/utils/signer.d.cts +15 -0
- package/dist/utils/signer.d.ts +15 -0
- package/dist/utils/signer.js +1 -0
- package/dist/utils/test.cjs +1 -0
- package/dist/utils/test.d.cts +18 -0
- package/dist/utils/test.d.ts +18 -0
- package/dist/utils/test.js +1 -0
- package/package.json +4 -5
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,241 @@
|
|
|
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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d,e}from"../chunk-CPYNP4XI.js";import"../chunk-WDM7PN4O.js";export{a as EOASignerDataSchema,c as PasskeySignerDataSchema,b as PasskeyValidatorSerializedDataSchema,d as SignerDataSchema,e as SmartWalletConfigSchema};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import 'zod';
|
|
2
|
+
export { q as EOASignerData, P as PasskeyDisplay, s as PasskeySignerData, r as PasskeyValidatorSerializedData, t as SignerData, a as SignerDisplay, S as SmartWalletConfig, e as StoreSmartWalletParams } from '../service-Ir-Qho-9.cjs';
|
|
3
|
+
import './schema.cjs';
|
|
4
|
+
import '@zerodev/sdk';
|
|
5
|
+
import 'permissionless';
|
|
6
|
+
import 'permissionless/accounts';
|
|
7
|
+
import 'permissionless/types/entrypoint';
|
|
8
|
+
import 'viem';
|
|
9
|
+
import '../blockchain/chains.cjs';
|
|
10
|
+
import 'viem/chains';
|
|
11
|
+
import '@crossmint/common-sdk-base';
|
|
12
|
+
import '../utils/constants.cjs';
|
|
13
|
+
import './params.cjs';
|
|
14
|
+
import '@zerodev/passkey-validator';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import 'zod';
|
|
2
|
+
export { q as EOASignerData, P as PasskeyDisplay, s as PasskeySignerData, r as PasskeyValidatorSerializedData, t as SignerData, a as SignerDisplay, S as SmartWalletConfig, e as StoreSmartWalletParams } from '../service-DqYCir8s.js';
|
|
3
|
+
import './schema.js';
|
|
4
|
+
import '@zerodev/sdk';
|
|
5
|
+
import 'permissionless';
|
|
6
|
+
import 'permissionless/accounts';
|
|
7
|
+
import 'permissionless/types/entrypoint';
|
|
8
|
+
import 'viem';
|
|
9
|
+
import '../blockchain/chains.js';
|
|
10
|
+
import 'viem/chains';
|
|
11
|
+
import '@crossmint/common-sdk-base';
|
|
12
|
+
import '../utils/constants.js';
|
|
13
|
+
import './params.js';
|
|
14
|
+
import '@zerodev/passkey-validator';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Address } from 'viem';
|
|
2
|
+
import { SmartWalletChain } from '../blockchain/chains.cjs';
|
|
3
|
+
import 'viem/chains';
|
|
4
|
+
import '@crossmint/common-sdk-base';
|
|
5
|
+
|
|
6
|
+
interface EVMToken {
|
|
7
|
+
chain: SmartWalletChain;
|
|
8
|
+
contractAddress: Address;
|
|
9
|
+
}
|
|
10
|
+
interface NFTEVMToken extends EVMToken {
|
|
11
|
+
tokenId: string;
|
|
12
|
+
type: "nft";
|
|
13
|
+
}
|
|
14
|
+
interface SFTEVMToken extends EVMToken {
|
|
15
|
+
tokenId: string;
|
|
16
|
+
type: "sft";
|
|
17
|
+
}
|
|
18
|
+
interface ERC2OEVMToken extends EVMToken {
|
|
19
|
+
type: "ft";
|
|
20
|
+
}
|
|
21
|
+
type TokenType = "nft" | "sft" | "ft";
|
|
22
|
+
type ERC20TransferType = {
|
|
23
|
+
token: ERC2OEVMToken;
|
|
24
|
+
amount: bigint;
|
|
25
|
+
};
|
|
26
|
+
type SFTTransferType = {
|
|
27
|
+
token: SFTEVMToken;
|
|
28
|
+
quantity: number;
|
|
29
|
+
};
|
|
30
|
+
type NFTTransferType = {
|
|
31
|
+
token: NFTEVMToken;
|
|
32
|
+
};
|
|
33
|
+
type TransferType = ERC20TransferType | SFTTransferType | NFTTransferType;
|
|
34
|
+
|
|
35
|
+
export type { ERC20TransferType, ERC2OEVMToken, EVMToken, NFTEVMToken, NFTTransferType, SFTEVMToken, SFTTransferType, TokenType, TransferType };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Address } from 'viem';
|
|
2
|
+
import { SmartWalletChain } from '../blockchain/chains.js';
|
|
3
|
+
import 'viem/chains';
|
|
4
|
+
import '@crossmint/common-sdk-base';
|
|
5
|
+
|
|
6
|
+
interface EVMToken {
|
|
7
|
+
chain: SmartWalletChain;
|
|
8
|
+
contractAddress: Address;
|
|
9
|
+
}
|
|
10
|
+
interface NFTEVMToken extends EVMToken {
|
|
11
|
+
tokenId: string;
|
|
12
|
+
type: "nft";
|
|
13
|
+
}
|
|
14
|
+
interface SFTEVMToken extends EVMToken {
|
|
15
|
+
tokenId: string;
|
|
16
|
+
type: "sft";
|
|
17
|
+
}
|
|
18
|
+
interface ERC2OEVMToken extends EVMToken {
|
|
19
|
+
type: "ft";
|
|
20
|
+
}
|
|
21
|
+
type TokenType = "nft" | "sft" | "ft";
|
|
22
|
+
type ERC20TransferType = {
|
|
23
|
+
token: ERC2OEVMToken;
|
|
24
|
+
amount: bigint;
|
|
25
|
+
};
|
|
26
|
+
type SFTTransferType = {
|
|
27
|
+
token: SFTEVMToken;
|
|
28
|
+
quantity: number;
|
|
29
|
+
};
|
|
30
|
+
type NFTTransferType = {
|
|
31
|
+
token: NFTEVMToken;
|
|
32
|
+
};
|
|
33
|
+
type TransferType = ERC20TransferType | SFTTransferType | NFTTransferType;
|
|
34
|
+
|
|
35
|
+
export type { ERC20TransferType, ERC2OEVMToken, EVMToken, NFTEVMToken, NFTTransferType, SFTEVMToken, SFTTransferType, TokenType, TransferType };
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXQ2K2K23cjs = require('../chunk-XQ2K2K23.cjs');exports.bigintsToHex = _chunkXQ2K2K23cjs.a; exports.parseBigintAPIResponse = _chunkXQ2K2K23cjs.b;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"../chunk-PZ6Q22YJ.js";export{a as bigintsToHex,b as parseBigintAPIResponse};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWJ6XJMRDcjs = require('../chunk-WJ6XJMRD.cjs');exports.usesGelatoBundler = _chunkWJ6XJMRDcjs.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-C3VZY7VJ.js";export{a as usesGelatoBundler};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5M3MSPHKcjs = require('../chunk-5M3MSPHK.cjs');exports.API_VERSION = _chunk5M3MSPHKcjs.e; exports.CURRENT_VERSION = _chunk5M3MSPHKcjs.b; exports.SCW_SERVICE = _chunk5M3MSPHKcjs.c; exports.SDK_VERSION = _chunk5M3MSPHKcjs.d; exports.SUPPORTED_ENTRYPOINT_VERSIONS = _chunk5M3MSPHKcjs.g; exports.SUPPORTED_KERNEL_VERSIONS = _chunk5M3MSPHKcjs.f; exports.ZERO_DEV_TYPE = _chunk5M3MSPHKcjs.a;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const ZERO_DEV_TYPE = "ZeroDev";
|
|
2
|
+
declare const CURRENT_VERSION = 0;
|
|
3
|
+
declare const SCW_SERVICE = "SCW_SDK";
|
|
4
|
+
declare const SDK_VERSION: string;
|
|
5
|
+
declare const API_VERSION = "2024-06-09";
|
|
6
|
+
declare const SUPPORTED_KERNEL_VERSIONS: readonly ["0.3.1", "0.3.0", "0.2.4"];
|
|
7
|
+
declare const SUPPORTED_ENTRYPOINT_VERSIONS: readonly ["v0.6", "v0.7"];
|
|
8
|
+
|
|
9
|
+
export { API_VERSION, CURRENT_VERSION, SCW_SERVICE, SDK_VERSION, SUPPORTED_ENTRYPOINT_VERSIONS, SUPPORTED_KERNEL_VERSIONS, ZERO_DEV_TYPE };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const ZERO_DEV_TYPE = "ZeroDev";
|
|
2
|
+
declare const CURRENT_VERSION = 0;
|
|
3
|
+
declare const SCW_SERVICE = "SCW_SDK";
|
|
4
|
+
declare const SDK_VERSION: string;
|
|
5
|
+
declare const API_VERSION = "2024-06-09";
|
|
6
|
+
declare const SUPPORTED_KERNEL_VERSIONS: readonly ["0.3.1", "0.3.0", "0.2.4"];
|
|
7
|
+
declare const SUPPORTED_ENTRYPOINT_VERSIONS: readonly ["v0.6", "v0.7"];
|
|
8
|
+
|
|
9
|
+
export { API_VERSION, CURRENT_VERSION, SCW_SERVICE, SDK_VERSION, SUPPORTED_ENTRYPOINT_VERSIONS, SUPPORTED_KERNEL_VERSIONS, ZERO_DEV_TYPE };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d,e,f,g}from"../chunk-WDM7PN4O.js";export{e as API_VERSION,b as CURRENT_VERSION,c as SCW_SERVICE,d as SDK_VERSION,g as SUPPORTED_ENTRYPOINT_VERSIONS,f as SUPPORTED_KERNEL_VERSIONS,a as ZERO_DEV_TYPE};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSTH2LE35cjs = require('../chunk-STH2LE35.cjs');exports.isClient = _chunkSTH2LE35cjs.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-D4NDUT36.js";export{a as isClient};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXJGFG3RTcjs = require('../chunk-XJGFG3RT.cjs');exports.equalsIgnoreCase = _chunkXJGFG3RTcjs.b; exports.isEmpty = _chunkXJGFG3RTcjs.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"../chunk-CUTQYF3F.js";export{b as equalsIgnoreCase,a as isEmpty};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkDIDKPOO2cjs = require('../chunk-DIDKPOO2.cjs');require('../chunk-M4K3IZTT.cjs');exports.createOwnerSigner = _chunkDIDKPOO2cjs.a; exports.isAccount = _chunkDIDKPOO2cjs.b;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SmartAccountSigner } from 'permissionless/accounts';
|
|
2
|
+
import { Address } from 'viem';
|
|
3
|
+
import { SmartWalletChain } from '../blockchain/chains.cjs';
|
|
4
|
+
import { ViemAccount, WalletParams } from '../types/params.cjs';
|
|
5
|
+
import 'viem/chains';
|
|
6
|
+
import '@crossmint/common-sdk-base';
|
|
7
|
+
|
|
8
|
+
type CreateOwnerSignerInput = {
|
|
9
|
+
chain: SmartWalletChain;
|
|
10
|
+
walletParams: WalletParams;
|
|
11
|
+
};
|
|
12
|
+
declare function createOwnerSigner({ walletParams, }: CreateOwnerSignerInput): Promise<SmartAccountSigner<"custom", Address>>;
|
|
13
|
+
declare function isAccount(signer: any): signer is ViemAccount;
|
|
14
|
+
|
|
15
|
+
export { createOwnerSigner, isAccount };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SmartAccountSigner } from 'permissionless/accounts';
|
|
2
|
+
import { Address } from 'viem';
|
|
3
|
+
import { SmartWalletChain } from '../blockchain/chains.js';
|
|
4
|
+
import { ViemAccount, WalletParams } from '../types/params.js';
|
|
5
|
+
import 'viem/chains';
|
|
6
|
+
import '@crossmint/common-sdk-base';
|
|
7
|
+
|
|
8
|
+
type CreateOwnerSignerInput = {
|
|
9
|
+
chain: SmartWalletChain;
|
|
10
|
+
walletParams: WalletParams;
|
|
11
|
+
};
|
|
12
|
+
declare function createOwnerSigner({ walletParams, }: CreateOwnerSignerInput): Promise<SmartAccountSigner<"custom", Address>>;
|
|
13
|
+
declare function isAccount(signer: any): signer is ViemAccount;
|
|
14
|
+
|
|
15
|
+
export { createOwnerSigner, isAccount };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"../chunk-FHNNZVNU.js";import"../chunk-UPURFW46.js";export{a as createOwnerSigner,b as isAccount};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var a={kernelVersion:"0.3.1",entryPointVersion:"v0.7",userId:"devlyn@paella.dev",signers:[{signerData:{entryPoint:"0x0000000071727De22E5E9d8BAf0edAc6f37da032",validatorAddress:"0xbA45a2BFb8De3D24cA9D7F1B551E14dFF5d690Fd",pubKeyX:"110311240024954100085667226472791468894960420468782293097673057837941382345525",pubKeyY:"55639753423913323920634804373610812340711881298092778447611544058799129775494",authenticatorIdHash:"0xb7f951026ad956257e41c16f5e6c1c8969968356c9a8a8df916fcceda53f5c6a",authenticatorId:"u76dDdMEjTBgm68gbqfbaAlSoqE",passkeyName:"devlyn@paella.dev",validatorContractVersion:"0.0.2",domain:"localhost",type:"passkeys"}}],smartContractWalletAddress:"0x7EAf93269C06Af4236E08d16d5220Df5f964eD87"};exports.mockConfig = a;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { S as SmartWalletConfig } from '../service-Ir-Qho-9.cjs';
|
|
2
|
+
import 'zod';
|
|
3
|
+
import '@zerodev/sdk';
|
|
4
|
+
import 'permissionless';
|
|
5
|
+
import 'permissionless/accounts';
|
|
6
|
+
import 'permissionless/types/entrypoint';
|
|
7
|
+
import 'viem';
|
|
8
|
+
import '../blockchain/chains.cjs';
|
|
9
|
+
import 'viem/chains';
|
|
10
|
+
import '@crossmint/common-sdk-base';
|
|
11
|
+
import '../types/schema.cjs';
|
|
12
|
+
import '@zerodev/passkey-validator';
|
|
13
|
+
import './constants.cjs';
|
|
14
|
+
import '../types/params.cjs';
|
|
15
|
+
|
|
16
|
+
declare const mockConfig: SmartWalletConfig;
|
|
17
|
+
|
|
18
|
+
export { mockConfig };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { S as SmartWalletConfig } from '../service-DqYCir8s.js';
|
|
2
|
+
import 'zod';
|
|
3
|
+
import '@zerodev/sdk';
|
|
4
|
+
import 'permissionless';
|
|
5
|
+
import 'permissionless/accounts';
|
|
6
|
+
import 'permissionless/types/entrypoint';
|
|
7
|
+
import 'viem';
|
|
8
|
+
import '../blockchain/chains.js';
|
|
9
|
+
import 'viem/chains';
|
|
10
|
+
import '@crossmint/common-sdk-base';
|
|
11
|
+
import '../types/schema.js';
|
|
12
|
+
import '@zerodev/passkey-validator';
|
|
13
|
+
import './constants.js';
|
|
14
|
+
import '../types/params.js';
|
|
15
|
+
|
|
16
|
+
declare const mockConfig: SmartWalletConfig;
|
|
17
|
+
|
|
18
|
+
export { mockConfig };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t={kernelVersion:"0.3.1",entryPointVersion:"v0.7",userId:"devlyn@paella.dev",signers:[{signerData:{entryPoint:"0x0000000071727De22E5E9d8BAf0edAc6f37da032",validatorAddress:"0xbA45a2BFb8De3D24cA9D7F1B551E14dFF5d690Fd",pubKeyX:"110311240024954100085667226472791468894960420468782293097673057837941382345525",pubKeyY:"55639753423913323920634804373610812340711881298092778447611544058799129775494",authenticatorIdHash:"0xb7f951026ad956257e41c16f5e6c1c8969968356c9a8a8df916fcceda53f5c6a",authenticatorId:"u76dDdMEjTBgm68gbqfbaAlSoqE",passkeyName:"devlyn@paella.dev",validatorContractVersion:"0.0.2",domain:"localhost",type:"passkeys"}}],smartContractWalletAddress:"0x7EAf93269C06Af4236E08d16d5220Df5f964eD87"};export{t as mockConfig};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossmint/client-sdk-smart-wallet",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"repository": "https://github.com/Crossmint/crossmint-sdk",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Paella Labs Inc",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"permissionless": "0.1.36",
|
|
27
27
|
"viem": "2.17.5",
|
|
28
28
|
"zod": "3.22.4",
|
|
29
|
-
"@crossmint/client-sdk-base": "1.
|
|
29
|
+
"@crossmint/client-sdk-base": "1.3.1",
|
|
30
30
|
"@crossmint/common-sdk-base": "0.2.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -35,9 +35,8 @@
|
|
|
35
35
|
"typedoc-plugin-markdown": "4.2.3"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
|
-
"build": "tsup
|
|
39
|
-
"
|
|
40
|
-
"dev": "tsup src/index.ts --clean --format esm,cjs --outDir ./dist --dts --sourcemap --watch",
|
|
38
|
+
"build": "tsup",
|
|
39
|
+
"dev": "tsup --watch",
|
|
41
40
|
"test": "vitest run"
|
|
42
41
|
}
|
|
43
42
|
}
|