@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.
Files changed (285) hide show
  1. package/README.md +293 -0
  2. package/dist/abi/entryPoint.cjs +1 -0
  3. package/dist/abi/entryPoint.d.cts +777 -0
  4. package/dist/abi/entryPoint.d.ts +777 -0
  5. package/dist/abi/entryPoint.js +1 -0
  6. package/dist/abi/erc1155.cjs +1 -0
  7. package/dist/abi/erc1155.d.cts +254 -0
  8. package/dist/abi/erc1155.d.ts +254 -0
  9. package/dist/abi/erc1155.js +1 -0
  10. package/dist/abi/erc20.cjs +1 -0
  11. package/dist/abi/erc20.d.cts +170 -0
  12. package/dist/abi/erc20.d.ts +170 -0
  13. package/dist/abi/erc20.js +1 -0
  14. package/dist/abi/erc721.cjs +1 -0
  15. package/dist/abi/erc721.d.cts +247 -0
  16. package/dist/abi/erc721.d.ts +247 -0
  17. package/dist/abi/erc721.js +1 -0
  18. package/dist/apiService-D4DIxjMr.d.ts +136 -0
  19. package/dist/apiService-Dum8A8_6.d.cts +136 -0
  20. package/dist/apiService.cjs +1 -0
  21. package/dist/apiService.d.cts +9 -0
  22. package/dist/apiService.d.ts +9 -0
  23. package/dist/apiService.js +1 -0
  24. package/dist/{chunk-IUIBQFWY.cjs → chunk-23IWY6XV.cjs} +1 -1
  25. package/dist/chunk-2MQHIAJE.js +1 -0
  26. package/dist/chunk-4PMBBA3O.cjs +1 -0
  27. package/dist/chunk-5T3HB4Y6.js +1 -0
  28. package/dist/chunk-73LUJQGU.cjs +1 -0
  29. package/dist/chunk-75JNTS3U.js +1 -0
  30. package/dist/chunk-AS5VIM5V.cjs +1 -0
  31. package/dist/chunk-BCWZIVSQ.js +1 -0
  32. package/dist/{chunk-2TPNP5FL.cjs → chunk-D33JIUOQ.cjs} +1 -1
  33. package/dist/chunk-DB2QM3HB.js +1 -0
  34. package/dist/chunk-EMZ5NAG2.cjs +1 -0
  35. package/dist/chunk-GGKMZPIA.js +1 -0
  36. package/dist/chunk-I5RZI2HB.js +1 -0
  37. package/dist/chunk-J5SRLI35.cjs +1 -0
  38. package/dist/chunk-KXYDJTZS.cjs +1 -0
  39. package/dist/{chunk-2RB6U5DY.js → chunk-LJ43A5BN.js} +1 -1
  40. package/dist/chunk-LPLLPZFU.cjs +1 -0
  41. package/dist/chunk-MLTT5BGD.cjs +1 -0
  42. package/dist/chunk-NXTHA2ZL.js +1 -0
  43. package/dist/chunk-OWZ3LXVG.js +1 -0
  44. package/dist/chunk-Q23CHZRT.cjs +1 -0
  45. package/dist/chunk-Q6YGAHDR.cjs +1 -0
  46. package/dist/chunk-SVGKSKZD.cjs +1 -0
  47. package/dist/chunk-T5PL4ATW.js +1 -0
  48. package/dist/chunk-U2JMKBCC.cjs +1 -0
  49. package/dist/chunk-UBRUUSMF.js +1 -0
  50. package/dist/chunk-VEZ3PQGX.js +1 -0
  51. package/dist/chunk-Z3KARJF5.js +1 -0
  52. package/dist/error/index.cjs +1 -1
  53. package/dist/error/index.d.cts +25 -43
  54. package/dist/error/index.d.ts +25 -43
  55. package/dist/error/index.js +1 -1
  56. package/dist/error/processor.cjs +1 -1
  57. package/dist/error/processor.d.cts +0 -13
  58. package/dist/error/processor.d.ts +0 -13
  59. package/dist/error/processor.js +1 -1
  60. package/dist/evm/chains/definitions/story-testnet.cjs +1 -0
  61. package/dist/evm/chains/definitions/story-testnet.js +1 -0
  62. package/dist/evm/chains/definitions/story.cjs +1 -0
  63. package/dist/evm/chains/definitions/story.js +1 -0
  64. package/dist/evm/chains/index.cjs +1 -0
  65. package/dist/{blockchain/chains.d.cts → evm/chains/index.d.cts} +4 -7
  66. package/dist/{blockchain/chains.d.ts → evm/chains/index.d.ts} +4 -7
  67. package/dist/evm/chains/index.js +1 -0
  68. package/dist/evm/rpc.cjs +1 -0
  69. package/dist/{blockchain → evm}/rpc.d.cts +4 -3
  70. package/dist/{blockchain → evm}/rpc.d.ts +4 -3
  71. package/dist/evm/rpc.js +1 -0
  72. package/dist/evm/smartWalletClient.d.cts +59 -0
  73. package/dist/evm/smartWalletClient.d.ts +59 -0
  74. package/dist/evm/transfer.cjs +1 -0
  75. package/dist/evm/transfer.d.cts +8 -0
  76. package/dist/evm/transfer.d.ts +8 -0
  77. package/dist/evm/transfer.js +1 -0
  78. package/dist/evm/wallet.cjs +1 -0
  79. package/dist/evm/wallet.d.cts +9 -0
  80. package/dist/evm/wallet.d.ts +9 -0
  81. package/dist/evm/wallet.js +1 -0
  82. package/dist/index.cjs +1 -1
  83. package/dist/index.d.cts +9 -20
  84. package/dist/index.d.ts +9 -20
  85. package/dist/index.js +1 -1
  86. package/dist/sdk.cjs +1 -0
  87. package/dist/{SmartWalletSDK.d.ts → sdk.d.cts} +18 -21
  88. package/dist/{SmartWalletSDK.d.cts → sdk.d.ts} +18 -21
  89. package/dist/sdk.js +1 -0
  90. package/dist/services/index.cjs +1 -1
  91. package/dist/services/index.js +1 -1
  92. package/dist/services/logger.cjs +1 -1
  93. package/dist/services/logger.js +1 -1
  94. package/dist/smartWalletService.cjs +1 -0
  95. package/dist/smartWalletService.d.cts +9 -0
  96. package/dist/smartWalletService.d.ts +9 -0
  97. package/dist/smartWalletService.js +1 -0
  98. package/dist/types/api.d.cts +195 -0
  99. package/dist/types/api.d.ts +195 -0
  100. package/dist/types/transfer.d.cts +46 -0
  101. package/dist/types/transfer.d.ts +46 -0
  102. package/dist/utils/constants.cjs +1 -1
  103. package/dist/utils/constants.d.cts +5 -6
  104. package/dist/utils/constants.d.ts +5 -6
  105. package/dist/utils/constants.js +1 -1
  106. package/dist/utils/index.cjs +1 -0
  107. package/dist/utils/index.d.cts +3 -0
  108. package/dist/utils/index.d.ts +3 -0
  109. package/dist/utils/index.js +1 -0
  110. package/package.json +2 -7
  111. package/dist/SmartWalletSDK.cjs +0 -1
  112. package/dist/SmartWalletSDK.js +0 -1
  113. package/dist/api/CrossmintWalletService.cjs +0 -1
  114. package/dist/api/CrossmintWalletService.d.cts +0 -31
  115. package/dist/api/CrossmintWalletService.d.ts +0 -31
  116. package/dist/api/CrossmintWalletService.js +0 -1
  117. package/dist/blockchain/chains.cjs +0 -1
  118. package/dist/blockchain/chains.js +0 -1
  119. package/dist/blockchain/rpc.cjs +0 -1
  120. package/dist/blockchain/rpc.js +0 -1
  121. package/dist/blockchain/transfer.cjs +0 -1
  122. package/dist/blockchain/transfer.d.cts +0 -23
  123. package/dist/blockchain/transfer.d.ts +0 -23
  124. package/dist/blockchain/transfer.js +0 -1
  125. package/dist/blockchain/wallets/EVMSmartWallet.cjs +0 -1
  126. package/dist/blockchain/wallets/EVMSmartWallet.d.cts +0 -102
  127. package/dist/blockchain/wallets/EVMSmartWallet.d.ts +0 -102
  128. package/dist/blockchain/wallets/EVMSmartWallet.js +0 -1
  129. package/dist/blockchain/wallets/SendTransactionService.cjs +0 -1
  130. package/dist/blockchain/wallets/SendTransactionService.d.cts +0 -84
  131. package/dist/blockchain/wallets/SendTransactionService.d.ts +0 -84
  132. package/dist/blockchain/wallets/SendTransactionService.js +0 -1
  133. package/dist/blockchain/wallets/account/cache.cjs +0 -1
  134. package/dist/blockchain/wallets/account/cache.d.cts +0 -25
  135. package/dist/blockchain/wallets/account/cache.d.ts +0 -25
  136. package/dist/blockchain/wallets/account/cache.js +0 -1
  137. package/dist/blockchain/wallets/account/config.cjs +0 -1
  138. package/dist/blockchain/wallets/account/config.d.cts +0 -47
  139. package/dist/blockchain/wallets/account/config.d.ts +0 -47
  140. package/dist/blockchain/wallets/account/config.js +0 -1
  141. package/dist/blockchain/wallets/account/creator.cjs +0 -1
  142. package/dist/blockchain/wallets/account/creator.d.cts +0 -26
  143. package/dist/blockchain/wallets/account/creator.d.ts +0 -26
  144. package/dist/blockchain/wallets/account/creator.js +0 -1
  145. package/dist/blockchain/wallets/account/eoa.cjs +0 -1
  146. package/dist/blockchain/wallets/account/eoa.d.cts +0 -21
  147. package/dist/blockchain/wallets/account/eoa.d.ts +0 -21
  148. package/dist/blockchain/wallets/account/eoa.js +0 -1
  149. package/dist/blockchain/wallets/account/passkey.cjs +0 -1
  150. package/dist/blockchain/wallets/account/passkey.d.cts +0 -29
  151. package/dist/blockchain/wallets/account/passkey.d.ts +0 -29
  152. package/dist/blockchain/wallets/account/passkey.js +0 -1
  153. package/dist/blockchain/wallets/account/signer.cjs +0 -1
  154. package/dist/blockchain/wallets/account/signer.d.cts +0 -14
  155. package/dist/blockchain/wallets/account/signer.d.ts +0 -14
  156. package/dist/blockchain/wallets/account/signer.js +0 -1
  157. package/dist/blockchain/wallets/account/strategy.d.cts +0 -20
  158. package/dist/blockchain/wallets/account/strategy.d.ts +0 -20
  159. package/dist/blockchain/wallets/clientDecorator.cjs +0 -1
  160. package/dist/blockchain/wallets/clientDecorator.d.cts +0 -38
  161. package/dist/blockchain/wallets/clientDecorator.d.ts +0 -38
  162. package/dist/blockchain/wallets/clientDecorator.js +0 -1
  163. package/dist/blockchain/wallets/definitions/story-testnet.cjs +0 -1
  164. package/dist/blockchain/wallets/definitions/story-testnet.js +0 -1
  165. package/dist/blockchain/wallets/definitions/story.cjs +0 -1
  166. package/dist/blockchain/wallets/definitions/story.js +0 -1
  167. package/dist/blockchain/wallets/index.cjs +0 -1
  168. package/dist/blockchain/wallets/index.d.cts +0 -20
  169. package/dist/blockchain/wallets/index.d.ts +0 -20
  170. package/dist/blockchain/wallets/index.js +0 -1
  171. package/dist/blockchain/wallets/paymaster.cjs +0 -1
  172. package/dist/blockchain/wallets/paymaster.d.cts +0 -29
  173. package/dist/blockchain/wallets/paymaster.d.ts +0 -29
  174. package/dist/blockchain/wallets/paymaster.js +0 -1
  175. package/dist/blockchain/wallets/service.cjs +0 -1
  176. package/dist/blockchain/wallets/service.d.cts +0 -41
  177. package/dist/blockchain/wallets/service.d.ts +0 -41
  178. package/dist/blockchain/wallets/service.js +0 -1
  179. package/dist/chunk-2R6HK64N.cjs +0 -1
  180. package/dist/chunk-2ZFSHKM6.js +0 -1
  181. package/dist/chunk-3F6P4HUZ.js +0 -1
  182. package/dist/chunk-4YV6KMFQ.js +0 -1
  183. package/dist/chunk-6ODPWORJ.cjs +0 -1
  184. package/dist/chunk-7AVDZZGD.cjs +0 -1
  185. package/dist/chunk-7G7GOR7X.cjs +0 -1
  186. package/dist/chunk-ATQ4WGCW.js +0 -1
  187. package/dist/chunk-BII7Y2A3.cjs +0 -1
  188. package/dist/chunk-BJZQA5VC.js +0 -1
  189. package/dist/chunk-C3VZY7VJ.js +0 -1
  190. package/dist/chunk-CJBR5TGN.js +0 -3
  191. package/dist/chunk-CUTQYF3F.js +0 -1
  192. package/dist/chunk-D4NDUT36.js +0 -1
  193. package/dist/chunk-DIDKPOO2.cjs +0 -1
  194. package/dist/chunk-EBIEPPSD.js +0 -1
  195. package/dist/chunk-ETVJGLNY.js +0 -1
  196. package/dist/chunk-EVNFELF3.cjs +0 -3
  197. package/dist/chunk-FHNNZVNU.js +0 -1
  198. package/dist/chunk-FWARYLZ3.js +0 -1
  199. package/dist/chunk-GB35YMN4.cjs +0 -1
  200. package/dist/chunk-GGIAHBMC.js +0 -2
  201. package/dist/chunk-H4CMXNVK.js +0 -1
  202. package/dist/chunk-IQTGPM2U.cjs +0 -1
  203. package/dist/chunk-JYW5DCVU.js +0 -1
  204. package/dist/chunk-KCVR32TQ.cjs +0 -1
  205. package/dist/chunk-KREX6Z32.js +0 -1
  206. package/dist/chunk-KROX2DDP.cjs +0 -1
  207. package/dist/chunk-KYPTGHC6.cjs +0 -1
  208. package/dist/chunk-M4K3IZTT.cjs +0 -1
  209. package/dist/chunk-NLGILHJS.js +0 -1
  210. package/dist/chunk-NOTF3PP3.cjs +0 -1
  211. package/dist/chunk-NQUKI27M.cjs +0 -1
  212. package/dist/chunk-O2ACORII.cjs +0 -1
  213. package/dist/chunk-OXRLBURF.js +0 -1
  214. package/dist/chunk-PZ6Q22YJ.js +0 -1
  215. package/dist/chunk-S2XBSAGM.js +0 -1
  216. package/dist/chunk-S4V7TF5V.cjs +0 -2
  217. package/dist/chunk-SCXFZMLR.cjs +0 -1
  218. package/dist/chunk-STH2LE35.cjs +0 -1
  219. package/dist/chunk-SWWOVT47.cjs +0 -1
  220. package/dist/chunk-UG47CBKR.js +0 -1
  221. package/dist/chunk-UPURFW46.js +0 -1
  222. package/dist/chunk-WDKJ6P7K.js +0 -1
  223. package/dist/chunk-WJ6XJMRD.cjs +0 -1
  224. package/dist/chunk-XJGFG3RT.cjs +0 -1
  225. package/dist/chunk-XQ2K2K23.cjs +0 -1
  226. package/dist/chunk-XRZ2XPQM.js +0 -1
  227. package/dist/chunk-YVFO5W3R.cjs +0 -1
  228. package/dist/chunk-Z7AZOEVX.cjs +0 -1
  229. package/dist/chunk-ZQM4FEXV.js +0 -1
  230. package/dist/service-DqYCir8s.d.ts +0 -103
  231. package/dist/service-Ir-Qho-9.d.cts +0 -103
  232. package/dist/types/internal.cjs +0 -1
  233. package/dist/types/internal.d.cts +0 -14
  234. package/dist/types/internal.d.ts +0 -14
  235. package/dist/types/internal.js +0 -1
  236. package/dist/types/params.d.cts +0 -33
  237. package/dist/types/params.d.ts +0 -33
  238. package/dist/types/schema.cjs +0 -1
  239. package/dist/types/schema.d.cts +0 -241
  240. package/dist/types/schema.d.ts +0 -241
  241. package/dist/types/schema.js +0 -1
  242. package/dist/types/service.d.cts +0 -14
  243. package/dist/types/service.d.ts +0 -14
  244. package/dist/types/token.cjs +0 -1
  245. package/dist/types/token.d.cts +0 -35
  246. package/dist/types/token.d.ts +0 -35
  247. package/dist/types/token.js +0 -0
  248. package/dist/utils/api.cjs +0 -1
  249. package/dist/utils/api.d.cts +0 -4
  250. package/dist/utils/api.d.ts +0 -4
  251. package/dist/utils/api.js +0 -1
  252. package/dist/utils/blockchain.cjs +0 -1
  253. package/dist/utils/blockchain.d.cts +0 -7
  254. package/dist/utils/blockchain.d.ts +0 -7
  255. package/dist/utils/blockchain.js +0 -1
  256. package/dist/utils/environment.cjs +0 -1
  257. package/dist/utils/environment.d.cts +0 -3
  258. package/dist/utils/environment.d.ts +0 -3
  259. package/dist/utils/environment.js +0 -1
  260. package/dist/utils/helpers.cjs +0 -1
  261. package/dist/utils/helpers.d.cts +0 -4
  262. package/dist/utils/helpers.d.ts +0 -4
  263. package/dist/utils/helpers.js +0 -1
  264. package/dist/utils/signer.cjs +0 -1
  265. package/dist/utils/signer.d.cts +0 -15
  266. package/dist/utils/signer.d.ts +0 -15
  267. package/dist/utils/signer.js +0 -1
  268. package/dist/utils/test.cjs +0 -1
  269. package/dist/utils/test.d.cts +0 -18
  270. package/dist/utils/test.d.ts +0 -18
  271. package/dist/utils/test.js +0 -1
  272. /package/dist/{chunk-HQXF6VHP.cjs → chunk-5URY3C2T.cjs} +0 -0
  273. /package/dist/{chunk-DYVHPARQ.js → chunk-KVFFSUF4.js} +0 -0
  274. /package/dist/{chunk-GPZ7PHS6.cjs → chunk-MFUN74KH.cjs} +0 -0
  275. /package/dist/{chunk-NT7LBRZQ.js → chunk-XLACPZJJ.js} +0 -0
  276. /package/dist/{blockchain/wallets → evm/chains}/definitions/story-testnet.d.cts +0 -0
  277. /package/dist/{blockchain/wallets → evm/chains}/definitions/story-testnet.d.ts +0 -0
  278. /package/dist/{blockchain/wallets → evm/chains}/definitions/story.d.cts +0 -0
  279. /package/dist/{blockchain/wallets → evm/chains}/definitions/story.d.ts +0 -0
  280. /package/dist/{blockchain/wallets/account/strategy.cjs → evm/smartWalletClient.cjs} +0 -0
  281. /package/dist/{blockchain/wallets/account/strategy.js → evm/smartWalletClient.js} +0 -0
  282. /package/dist/types/{params.cjs → api.cjs} +0 -0
  283. /package/dist/types/{params.js → api.js} +0 -0
  284. /package/dist/types/{service.cjs → transfer.cjs} +0 -0
  285. /package/dist/types/{service.js → transfer.js} +0 -0
@@ -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 };
@@ -1 +0,0 @@
1
- import{a,b,c,d,e}from"../chunk-EBIEPPSD.js";import"../chunk-4YV6KMFQ.js";export{a as EOASignerDataSchema,c as PasskeySignerDataSchema,b as PasskeyValidatorSerializedDataSchema,d as SignerDataSchema,e as SmartWalletConfigSchema};
@@ -1,14 +0,0 @@
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';
@@ -1,14 +0,0 @@
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';
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,35 +0,0 @@
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 };
@@ -1,35 +0,0 @@
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
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXQ2K2K23cjs = require('../chunk-XQ2K2K23.cjs');exports.bigintsToHex = _chunkXQ2K2K23cjs.a; exports.parseBigintAPIResponse = _chunkXQ2K2K23cjs.b;
@@ -1,4 +0,0 @@
1
- declare function bigintsToHex(data: any): any;
2
- declare function parseBigintAPIResponse(data: any): any;
3
-
4
- export { bigintsToHex, parseBigintAPIResponse };
@@ -1,4 +0,0 @@
1
- declare function bigintsToHex(data: any): any;
2
- declare function parseBigintAPIResponse(data: any): any;
3
-
4
- export { bigintsToHex, parseBigintAPIResponse };
package/dist/utils/api.js DELETED
@@ -1 +0,0 @@
1
- import{a,b}from"../chunk-PZ6Q22YJ.js";export{a as bigintsToHex,b as parseBigintAPIResponse};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWJ6XJMRDcjs = require('../chunk-WJ6XJMRD.cjs');exports.usesGelatoBundler = _chunkWJ6XJMRDcjs.a;
@@ -1,7 +0,0 @@
1
- import { SmartWalletChain } from '../blockchain/chains.cjs';
2
- import 'viem/chains';
3
- import '@crossmint/common-sdk-base';
4
-
5
- declare function usesGelatoBundler(chain: SmartWalletChain): boolean;
6
-
7
- export { usesGelatoBundler };
@@ -1,7 +0,0 @@
1
- import { SmartWalletChain } from '../blockchain/chains.js';
2
- import 'viem/chains';
3
- import '@crossmint/common-sdk-base';
4
-
5
- declare function usesGelatoBundler(chain: SmartWalletChain): boolean;
6
-
7
- export { usesGelatoBundler };
@@ -1 +0,0 @@
1
- import{a}from"../chunk-C3VZY7VJ.js";export{a as usesGelatoBundler};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSTH2LE35cjs = require('../chunk-STH2LE35.cjs');exports.isClient = _chunkSTH2LE35cjs.a;
@@ -1,3 +0,0 @@
1
- declare function isClient(): boolean;
2
-
3
- export { isClient };
@@ -1,3 +0,0 @@
1
- declare function isClient(): boolean;
2
-
3
- export { isClient };
@@ -1 +0,0 @@
1
- import{a}from"../chunk-D4NDUT36.js";export{a as isClient};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXJGFG3RTcjs = require('../chunk-XJGFG3RT.cjs');exports.equalsIgnoreCase = _chunkXJGFG3RTcjs.b; exports.isEmpty = _chunkXJGFG3RTcjs.a;
@@ -1,4 +0,0 @@
1
- declare function isEmpty(str: string | undefined | null): str is undefined | null;
2
- declare function equalsIgnoreCase(a?: string, b?: string): boolean;
3
-
4
- export { equalsIgnoreCase, isEmpty };
@@ -1,4 +0,0 @@
1
- declare function isEmpty(str: string | undefined | null): str is undefined | null;
2
- declare function equalsIgnoreCase(a?: string, b?: string): boolean;
3
-
4
- export { equalsIgnoreCase, isEmpty };
@@ -1 +0,0 @@
1
- import{a,b}from"../chunk-CUTQYF3F.js";export{b as equalsIgnoreCase,a as isEmpty};
@@ -1 +0,0 @@
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;
@@ -1,15 +0,0 @@
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 };
@@ -1,15 +0,0 @@
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 };
@@ -1 +0,0 @@
1
- import{a,b}from"../chunk-FHNNZVNU.js";import"../chunk-UPURFW46.js";export{a as createOwnerSigner,b as isAccount};
@@ -1 +0,0 @@
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;
@@ -1,18 +0,0 @@
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 };
@@ -1,18 +0,0 @@
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 };
@@ -1 +0,0 @@
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};
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes