@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,58 +1,40 @@
1
1
  import { CrossmintSDKError, SmartWalletErrorCode } from '@crossmint/client-sdk-base';
2
- import { a as SignerDisplay, P as PasskeyDisplay } from '../service-Ir-Qho-9.cjs';
3
- import 'zod';
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 '../types/schema.cjs';
13
- import '@zerodev/passkey-validator';
14
- import '../utils/constants.cjs';
15
- import '../types/params.cjs';
16
2
 
17
3
  declare class SmartWalletError extends CrossmintSDKError {
18
4
  constructor(message: string, details?: string, code?: SmartWalletErrorCode);
19
5
  }
20
- declare class AdminMismatchError extends SmartWalletError {
21
- readonly required: SignerDisplay;
22
- readonly used?: SignerDisplay;
23
- constructor(message: string, required: SignerDisplay, used?: SignerDisplay);
6
+ declare class InvalidApiKeyError extends CrossmintSDKError {
7
+ constructor(message: string, details?: string, code?: SmartWalletErrorCode);
24
8
  }
25
- declare class PasskeyMismatchError extends SmartWalletError {
26
- readonly required: PasskeyDisplay;
27
- readonly used?: PasskeyDisplay;
28
- constructor(message: string, required: PasskeyDisplay, used?: PasskeyDisplay);
9
+ declare class WalletCreationError extends CrossmintSDKError {
10
+ constructor(message: string, details?: string, code?: SmartWalletErrorCode);
29
11
  }
30
- declare class UserWalletAlreadyCreatedError extends SmartWalletError {
31
- readonly code: "smart-wallet:user-wallet-already-created";
32
- constructor(userId: string);
12
+ declare class InvalidChainError extends CrossmintSDKError {
13
+ constructor(message: string, details?: string, code?: SmartWalletErrorCode);
33
14
  }
34
- declare class PasskeyPromptError extends SmartWalletError {
35
- passkeyName: string;
36
- constructor(passkeyName: string);
15
+ declare class InvalidTransferChainError extends CrossmintSDKError {
16
+ constructor(message: string, details?: string, code?: SmartWalletErrorCode);
37
17
  }
38
- declare class PasskeyRegistrationError extends SmartWalletError {
39
- passkeyName: string;
40
- constructor(passkeyName: string);
18
+ declare class InvalidMessageFormatError extends CrossmintSDKError {
19
+ constructor(message: string, details?: string, code?: SmartWalletErrorCode);
41
20
  }
42
- declare class PasskeyIncompatibleAuthenticatorError extends SmartWalletError {
43
- passkeyName: string;
44
- constructor(passkeyName: string);
21
+ declare class MessageSigningError extends CrossmintSDKError {
22
+ constructor(message: string, details?: string, code?: SmartWalletErrorCode);
45
23
  }
46
- declare class ConfigError extends SmartWalletError {
47
- constructor(message: string);
24
+ declare class InvalidTypedDataError extends CrossmintSDKError {
25
+ constructor(message: string, details?: string, code?: SmartWalletErrorCode);
48
26
  }
49
- declare class AdminAlreadyUsedError extends ConfigError {
50
- readonly code: "smart-wallet:config.admin-signer-already-used";
51
- constructor();
27
+ declare class TypedDataSigningError extends CrossmintSDKError {
28
+ constructor(message: string, details?: string, code?: SmartWalletErrorCode);
29
+ }
30
+ declare class TransactionApprovalError extends CrossmintSDKError {
31
+ constructor(message: string, details?: string, code?: SmartWalletErrorCode);
52
32
  }
53
- declare class SmartWalletsNotEnabledError extends ConfigError {
54
- readonly code: "smart-wallet:not-enabled";
55
- constructor();
33
+ declare class TransactionFailedError extends CrossmintSDKError {
34
+ constructor(message: string, details?: string, code?: SmartWalletErrorCode);
35
+ }
36
+ declare class TransactionNotFoundError extends CrossmintSDKError {
37
+ constructor(message: string, details?: string, code?: SmartWalletErrorCode);
56
38
  }
57
39
 
58
- export { AdminAlreadyUsedError, AdminMismatchError, ConfigError, PasskeyIncompatibleAuthenticatorError, PasskeyMismatchError, PasskeyPromptError, PasskeyRegistrationError, SmartWalletError, SmartWalletsNotEnabledError, UserWalletAlreadyCreatedError };
40
+ export { InvalidApiKeyError, InvalidChainError, InvalidMessageFormatError, InvalidTransferChainError, InvalidTypedDataError, MessageSigningError, SmartWalletError, TransactionApprovalError, TransactionFailedError, TransactionNotFoundError, TypedDataSigningError, WalletCreationError };
@@ -1,58 +1,40 @@
1
1
  import { CrossmintSDKError, SmartWalletErrorCode } from '@crossmint/client-sdk-base';
2
- import { a as SignerDisplay, P as PasskeyDisplay } from '../service-DqYCir8s.js';
3
- import 'zod';
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 '../types/schema.js';
13
- import '@zerodev/passkey-validator';
14
- import '../utils/constants.js';
15
- import '../types/params.js';
16
2
 
17
3
  declare class SmartWalletError extends CrossmintSDKError {
18
4
  constructor(message: string, details?: string, code?: SmartWalletErrorCode);
19
5
  }
20
- declare class AdminMismatchError extends SmartWalletError {
21
- readonly required: SignerDisplay;
22
- readonly used?: SignerDisplay;
23
- constructor(message: string, required: SignerDisplay, used?: SignerDisplay);
6
+ declare class InvalidApiKeyError extends CrossmintSDKError {
7
+ constructor(message: string, details?: string, code?: SmartWalletErrorCode);
24
8
  }
25
- declare class PasskeyMismatchError extends SmartWalletError {
26
- readonly required: PasskeyDisplay;
27
- readonly used?: PasskeyDisplay;
28
- constructor(message: string, required: PasskeyDisplay, used?: PasskeyDisplay);
9
+ declare class WalletCreationError extends CrossmintSDKError {
10
+ constructor(message: string, details?: string, code?: SmartWalletErrorCode);
29
11
  }
30
- declare class UserWalletAlreadyCreatedError extends SmartWalletError {
31
- readonly code: "smart-wallet:user-wallet-already-created";
32
- constructor(userId: string);
12
+ declare class InvalidChainError extends CrossmintSDKError {
13
+ constructor(message: string, details?: string, code?: SmartWalletErrorCode);
33
14
  }
34
- declare class PasskeyPromptError extends SmartWalletError {
35
- passkeyName: string;
36
- constructor(passkeyName: string);
15
+ declare class InvalidTransferChainError extends CrossmintSDKError {
16
+ constructor(message: string, details?: string, code?: SmartWalletErrorCode);
37
17
  }
38
- declare class PasskeyRegistrationError extends SmartWalletError {
39
- passkeyName: string;
40
- constructor(passkeyName: string);
18
+ declare class InvalidMessageFormatError extends CrossmintSDKError {
19
+ constructor(message: string, details?: string, code?: SmartWalletErrorCode);
41
20
  }
42
- declare class PasskeyIncompatibleAuthenticatorError extends SmartWalletError {
43
- passkeyName: string;
44
- constructor(passkeyName: string);
21
+ declare class MessageSigningError extends CrossmintSDKError {
22
+ constructor(message: string, details?: string, code?: SmartWalletErrorCode);
45
23
  }
46
- declare class ConfigError extends SmartWalletError {
47
- constructor(message: string);
24
+ declare class InvalidTypedDataError extends CrossmintSDKError {
25
+ constructor(message: string, details?: string, code?: SmartWalletErrorCode);
48
26
  }
49
- declare class AdminAlreadyUsedError extends ConfigError {
50
- readonly code: "smart-wallet:config.admin-signer-already-used";
51
- constructor();
27
+ declare class TypedDataSigningError extends CrossmintSDKError {
28
+ constructor(message: string, details?: string, code?: SmartWalletErrorCode);
29
+ }
30
+ declare class TransactionApprovalError extends CrossmintSDKError {
31
+ constructor(message: string, details?: string, code?: SmartWalletErrorCode);
52
32
  }
53
- declare class SmartWalletsNotEnabledError extends ConfigError {
54
- readonly code: "smart-wallet:not-enabled";
55
- constructor();
33
+ declare class TransactionFailedError extends CrossmintSDKError {
34
+ constructor(message: string, details?: string, code?: SmartWalletErrorCode);
35
+ }
36
+ declare class TransactionNotFoundError extends CrossmintSDKError {
37
+ constructor(message: string, details?: string, code?: SmartWalletErrorCode);
56
38
  }
57
39
 
58
- export { AdminAlreadyUsedError, AdminMismatchError, ConfigError, PasskeyIncompatibleAuthenticatorError, PasskeyMismatchError, PasskeyPromptError, PasskeyRegistrationError, SmartWalletError, SmartWalletsNotEnabledError, UserWalletAlreadyCreatedError };
40
+ export { InvalidApiKeyError, InvalidChainError, InvalidMessageFormatError, InvalidTransferChainError, InvalidTypedDataError, MessageSigningError, SmartWalletError, TransactionApprovalError, TransactionFailedError, TransactionNotFoundError, TypedDataSigningError, WalletCreationError };
@@ -1 +1 @@
1
- import{a,b,c,d,e,f,g,h,i,j}from"../chunk-UPURFW46.js";export{i as AdminAlreadyUsedError,b as AdminMismatchError,h as ConfigError,g as PasskeyIncompatibleAuthenticatorError,c as PasskeyMismatchError,e as PasskeyPromptError,f as PasskeyRegistrationError,a as SmartWalletError,j as SmartWalletsNotEnabledError,d as UserWalletAlreadyCreatedError};
1
+ import{a,b,c,d,e,f,g,h,i,j,k,l}from"../chunk-UBRUUSMF.js";export{b as InvalidApiKeyError,d as InvalidChainError,f as InvalidMessageFormatError,e as InvalidTransferChainError,h as InvalidTypedDataError,g as MessageSigningError,a as SmartWalletError,j as TransactionApprovalError,k as TransactionFailedError,l as TransactionNotFoundError,i as TypedDataSigningError,c as WalletCreationError};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2TPNP5FLcjs = require('../chunk-2TPNP5FL.cjs');require('../chunk-BII7Y2A3.cjs');require('../chunk-M4K3IZTT.cjs');exports.ErrorProcessor = _chunk2TPNP5FLcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkD33JIUOQcjs = require('../chunk-D33JIUOQ.cjs');require('../chunk-73LUJQGU.cjs');require('../chunk-EMZ5NAG2.cjs');exports.ErrorProcessor = _chunkD33JIUOQcjs.a;
@@ -1,19 +1,6 @@
1
1
  import { BaseError } from 'viem';
2
2
  import { SDKLogger } from '@crossmint/client-sdk-base';
3
3
  import { SmartWalletError } from './index.cjs';
4
- import '../service-Ir-Qho-9.cjs';
5
- import 'zod';
6
- import '@zerodev/sdk';
7
- import 'permissionless';
8
- import 'permissionless/accounts';
9
- import 'permissionless/types/entrypoint';
10
- import '../blockchain/chains.cjs';
11
- import 'viem/chains';
12
- import '@crossmint/common-sdk-base';
13
- import '../types/schema.cjs';
14
- import '@zerodev/passkey-validator';
15
- import '../utils/constants.cjs';
16
- import '../types/params.cjs';
17
4
 
18
5
  declare class ErrorProcessor {
19
6
  private readonly logger;
@@ -1,19 +1,6 @@
1
1
  import { BaseError } from 'viem';
2
2
  import { SDKLogger } from '@crossmint/client-sdk-base';
3
3
  import { SmartWalletError } from './index.js';
4
- import '../service-DqYCir8s.js';
5
- import 'zod';
6
- import '@zerodev/sdk';
7
- import 'permissionless';
8
- import 'permissionless/accounts';
9
- import 'permissionless/types/entrypoint';
10
- import '../blockchain/chains.js';
11
- import 'viem/chains';
12
- import '@crossmint/common-sdk-base';
13
- import '../types/schema.js';
14
- import '@zerodev/passkey-validator';
15
- import '../utils/constants.js';
16
- import '../types/params.js';
17
4
 
18
5
  declare class ErrorProcessor {
19
6
  private readonly logger;
@@ -1 +1 @@
1
- import{a}from"../chunk-ZQM4FEXV.js";import"../chunk-4YV6KMFQ.js";import"../chunk-UPURFW46.js";export{a as ErrorProcessor};
1
+ import{a}from"../chunk-5T3HB4Y6.js";import"../chunk-UBRUUSMF.js";import"../chunk-T5PL4ATW.js";export{a as ErrorProcessor};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5URY3C2Tcjs = require('../../../chunk-5URY3C2T.cjs');exports.storyTestnet = _chunk5URY3C2Tcjs.a;
@@ -0,0 +1 @@
1
+ import{a}from"../../../chunk-XLACPZJJ.js";export{a as storyTestnet};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkMFUN74KHcjs = require('../../../chunk-MFUN74KH.cjs');exports.story = _chunkMFUN74KHcjs.a;
@@ -0,0 +1 @@
1
+ import{a}from"../../../chunk-KVFFSUF4.js";export{a as story};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkMLTT5BGDcjs = require('../../chunk-MLTT5BGD.cjs');require('../../chunk-5URY3C2T.cjs');require('../../chunk-MFUN74KH.cjs');exports.isMainnetChain = _chunkMLTT5BGDcjs.b; exports.isTestnetChain = _chunkMLTT5BGDcjs.a; exports.viemNetworks = _chunkMLTT5BGDcjs.c;
@@ -1,5 +1,5 @@
1
- import { Chain } from 'viem/chains';
2
1
  import { ObjectValues } from '@crossmint/common-sdk-base';
2
+ import { Chain } from 'viem';
3
3
 
4
4
  declare const SmartWalletTestnet: {
5
5
  readonly BASE_SEPOLIA: "base-sepolia";
@@ -9,7 +9,6 @@ declare const SmartWalletTestnet: {
9
9
  readonly STORY_TESTNET: "story-testnet";
10
10
  };
11
11
  type SmartWalletTestnet = ObjectValues<typeof SmartWalletTestnet>;
12
- declare const SMART_WALLET_TESTNETS: readonly ("base-sepolia" | "polygon-amoy" | "optimism-sepolia" | "arbitrum-sepolia" | "story-testnet")[];
13
12
  declare const SmartWalletMainnet: {
14
13
  readonly BASE: "base";
15
14
  readonly POLYGON: "polygon";
@@ -18,7 +17,8 @@ declare const SmartWalletMainnet: {
18
17
  readonly STORY: "story";
19
18
  };
20
19
  type SmartWalletMainnet = ObjectValues<typeof SmartWalletMainnet>;
21
- declare const SMART_WALLET_MAINNETS: readonly ("base" | "polygon" | "optimism" | "arbitrum" | "story")[];
20
+ declare function isTestnetChain(chain: SmartWalletChain): chain is SmartWalletTestnet;
21
+ declare function isMainnetChain(chain: SmartWalletChain): chain is SmartWalletMainnet;
22
22
  declare const SmartWalletChain: {
23
23
  readonly BASE: "base";
24
24
  readonly POLYGON: "polygon";
@@ -32,9 +32,6 @@ declare const SmartWalletChain: {
32
32
  readonly STORY_TESTNET: "story-testnet";
33
33
  };
34
34
  type SmartWalletChain = ObjectValues<typeof SmartWalletChain>;
35
- declare const SMART_WALLET_CHAINS: readonly ("base-sepolia" | "polygon-amoy" | "optimism-sepolia" | "arbitrum-sepolia" | "story-testnet" | "base" | "polygon" | "optimism" | "arbitrum" | "story")[];
36
- declare function isTestnetChain(chain: SmartWalletChain): chain is SmartWalletTestnet;
37
- declare function isMainnetChain(chain: SmartWalletChain): chain is SmartWalletMainnet;
38
35
  declare const viemNetworks: Record<SmartWalletChain, Chain>;
39
36
 
40
- export { SMART_WALLET_CHAINS, SMART_WALLET_MAINNETS, SMART_WALLET_TESTNETS, SmartWalletChain, SmartWalletMainnet, SmartWalletTestnet, isMainnetChain, isTestnetChain, viemNetworks };
37
+ export { SmartWalletChain, isMainnetChain, isTestnetChain, viemNetworks };
@@ -1,5 +1,5 @@
1
- import { Chain } from 'viem/chains';
2
1
  import { ObjectValues } from '@crossmint/common-sdk-base';
2
+ import { Chain } from 'viem';
3
3
 
4
4
  declare const SmartWalletTestnet: {
5
5
  readonly BASE_SEPOLIA: "base-sepolia";
@@ -9,7 +9,6 @@ declare const SmartWalletTestnet: {
9
9
  readonly STORY_TESTNET: "story-testnet";
10
10
  };
11
11
  type SmartWalletTestnet = ObjectValues<typeof SmartWalletTestnet>;
12
- declare const SMART_WALLET_TESTNETS: readonly ("base-sepolia" | "polygon-amoy" | "optimism-sepolia" | "arbitrum-sepolia" | "story-testnet")[];
13
12
  declare const SmartWalletMainnet: {
14
13
  readonly BASE: "base";
15
14
  readonly POLYGON: "polygon";
@@ -18,7 +17,8 @@ declare const SmartWalletMainnet: {
18
17
  readonly STORY: "story";
19
18
  };
20
19
  type SmartWalletMainnet = ObjectValues<typeof SmartWalletMainnet>;
21
- declare const SMART_WALLET_MAINNETS: readonly ("base" | "polygon" | "optimism" | "arbitrum" | "story")[];
20
+ declare function isTestnetChain(chain: SmartWalletChain): chain is SmartWalletTestnet;
21
+ declare function isMainnetChain(chain: SmartWalletChain): chain is SmartWalletMainnet;
22
22
  declare const SmartWalletChain: {
23
23
  readonly BASE: "base";
24
24
  readonly POLYGON: "polygon";
@@ -32,9 +32,6 @@ declare const SmartWalletChain: {
32
32
  readonly STORY_TESTNET: "story-testnet";
33
33
  };
34
34
  type SmartWalletChain = ObjectValues<typeof SmartWalletChain>;
35
- declare const SMART_WALLET_CHAINS: readonly ("base-sepolia" | "polygon-amoy" | "optimism-sepolia" | "arbitrum-sepolia" | "story-testnet" | "base" | "polygon" | "optimism" | "arbitrum" | "story")[];
36
- declare function isTestnetChain(chain: SmartWalletChain): chain is SmartWalletTestnet;
37
- declare function isMainnetChain(chain: SmartWalletChain): chain is SmartWalletMainnet;
38
35
  declare const viemNetworks: Record<SmartWalletChain, Chain>;
39
36
 
40
- export { SMART_WALLET_CHAINS, SMART_WALLET_MAINNETS, SMART_WALLET_TESTNETS, SmartWalletChain, SmartWalletMainnet, SmartWalletTestnet, isMainnetChain, isTestnetChain, viemNetworks };
37
+ export { SmartWalletChain, isMainnetChain, isTestnetChain, viemNetworks };
@@ -0,0 +1 @@
1
+ import{a,b,c}from"../../chunk-VEZ3PQGX.js";import"../../chunk-XLACPZJJ.js";import"../../chunk-KVFFSUF4.js";export{b as isMainnetChain,a as isTestnetChain,c as viemNetworks};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk23IWY6XVcjs = require('../chunk-23IWY6XV.cjs');require('../chunk-MLTT5BGD.cjs');require('../chunk-5URY3C2T.cjs');require('../chunk-MFUN74KH.cjs');exports.ALCHEMY_RPC_SUBDOMAIN = _chunk23IWY6XVcjs.a; exports.getAlchemyRPC = _chunk23IWY6XVcjs.b; exports.getPimlicoBundlerRPC = _chunk23IWY6XVcjs.d; exports.getRPC = _chunk23IWY6XVcjs.c;
@@ -1,9 +1,10 @@
1
- import { SmartWalletChain } from './chains.cjs';
2
- import 'viem/chains';
1
+ import { SmartWalletChain } from './chains/index.cjs';
3
2
  import '@crossmint/common-sdk-base';
3
+ import 'viem';
4
4
 
5
5
  declare const ALCHEMY_RPC_SUBDOMAIN: Partial<Record<SmartWalletChain, string>>;
6
+ declare function getAlchemyRPC(chain: SmartWalletChain): string;
6
7
  declare function getRPC(chain: SmartWalletChain): string;
7
8
  declare function getPimlicoBundlerRPC(chain: SmartWalletChain): string;
8
9
 
9
- export { ALCHEMY_RPC_SUBDOMAIN, getPimlicoBundlerRPC, getRPC };
10
+ export { ALCHEMY_RPC_SUBDOMAIN, getAlchemyRPC, getPimlicoBundlerRPC, getRPC };
@@ -1,9 +1,10 @@
1
- import { SmartWalletChain } from './chains.js';
2
- import 'viem/chains';
1
+ import { SmartWalletChain } from './chains/index.js';
3
2
  import '@crossmint/common-sdk-base';
3
+ import 'viem';
4
4
 
5
5
  declare const ALCHEMY_RPC_SUBDOMAIN: Partial<Record<SmartWalletChain, string>>;
6
+ declare function getAlchemyRPC(chain: SmartWalletChain): string;
6
7
  declare function getRPC(chain: SmartWalletChain): string;
7
8
  declare function getPimlicoBundlerRPC(chain: SmartWalletChain): string;
8
9
 
9
- export { ALCHEMY_RPC_SUBDOMAIN, getPimlicoBundlerRPC, getRPC };
10
+ export { ALCHEMY_RPC_SUBDOMAIN, getAlchemyRPC, getPimlicoBundlerRPC, getRPC };
@@ -0,0 +1 @@
1
+ import{a,b,c,d}from"../chunk-75JNTS3U.js";import"../chunk-VEZ3PQGX.js";import"../chunk-XLACPZJJ.js";import"../chunk-KVFFSUF4.js";export{a as ALCHEMY_RPC_SUBDOMAIN,b as getAlchemyRPC,d as getPimlicoBundlerRPC,c as getRPC};
@@ -0,0 +1,59 @@
1
+ import { Address, SignableMessage, Hex, TypedData, TypedDataDefinition, Abi, ContractFunctionName, ContractFunctionArgs, WriteContractParameters } from 'viem';
2
+
3
+ interface SmartWalletClient {
4
+ /**
5
+ * Retrieves the address of the smart wallet.
6
+ * @returns The address of the smart wallet.
7
+ */
8
+ getAddress: () => Address;
9
+ /**
10
+ * Retrieves the nonce of the smart wallet.
11
+ * @param parameters - The parameters.
12
+ * @returns The nonce of the smart wallet.
13
+ */
14
+ getNonce?: ((parameters?: {
15
+ key?: bigint | undefined;
16
+ } | undefined) => Promise<bigint>) | undefined;
17
+ /**
18
+ * Signs a message.
19
+ * @param parameters - The parameters.
20
+ * @returns The message signature
21
+ * @throws {InvalidMessageFormatError} if the message is not a string.
22
+ * @throws {MessageSigningError} if the message signing fails.
23
+ */
24
+ signMessage: (parameters: {
25
+ message: SignableMessage;
26
+ }) => Promise<Hex>;
27
+ /**
28
+ * Signs typed data message.
29
+ * @param parameters - The parameters.
30
+ * @returns The message signature
31
+ * @throws {InvalidTypedDataError} if the typed data is invalid.
32
+ * @throws {TypedDataSigningError} if the typed data signing fails.
33
+ */
34
+ signTypedData: <const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(parameters: TypedDataDefinition<typedData, primaryType>) => Promise<Hex>;
35
+ /**
36
+ * Sends a transaction.
37
+ * @param parameters - The parameters.
38
+ * @returns The transaction hash
39
+ * @throws {TransactionApprovalError} if the transaction is not approved.
40
+ * @throws {TransactionFailedError} if the transaction fails.
41
+ * @throws {TransactionNotFoundError} if the transaction is not found.
42
+ */
43
+ sendTransaction: (parameters: {
44
+ to: Address;
45
+ data?: Hex;
46
+ value?: bigint;
47
+ }) => Promise<Hex>;
48
+ /**
49
+ * Writes to a contract.
50
+ * @param parameters - The parameters.
51
+ * @returns The transaction hash
52
+ * @throws {TransactionApprovalError} if the transaction is not approved.
53
+ * @throws {TransactionFailedError} if the transaction fails.
54
+ * @throws {TransactionNotFoundError} if the transaction is not found.
55
+ */
56
+ writeContract<const TAbi extends Abi | readonly unknown[], TFunctionName extends ContractFunctionName<TAbi, "nonpayable" | "payable"> = ContractFunctionName<TAbi, "nonpayable" | "payable">, TArgs extends ContractFunctionArgs<TAbi, "nonpayable" | "payable", TFunctionName> = ContractFunctionArgs<TAbi, "nonpayable" | "payable", TFunctionName>>({ address, abi, functionName, args, value, }: Omit<WriteContractParameters<TAbi, TFunctionName, TArgs>, "chain" | "account">): Promise<Hex>;
57
+ }
58
+
59
+ export type { SmartWalletClient };
@@ -0,0 +1,59 @@
1
+ import { Address, SignableMessage, Hex, TypedData, TypedDataDefinition, Abi, ContractFunctionName, ContractFunctionArgs, WriteContractParameters } from 'viem';
2
+
3
+ interface SmartWalletClient {
4
+ /**
5
+ * Retrieves the address of the smart wallet.
6
+ * @returns The address of the smart wallet.
7
+ */
8
+ getAddress: () => Address;
9
+ /**
10
+ * Retrieves the nonce of the smart wallet.
11
+ * @param parameters - The parameters.
12
+ * @returns The nonce of the smart wallet.
13
+ */
14
+ getNonce?: ((parameters?: {
15
+ key?: bigint | undefined;
16
+ } | undefined) => Promise<bigint>) | undefined;
17
+ /**
18
+ * Signs a message.
19
+ * @param parameters - The parameters.
20
+ * @returns The message signature
21
+ * @throws {InvalidMessageFormatError} if the message is not a string.
22
+ * @throws {MessageSigningError} if the message signing fails.
23
+ */
24
+ signMessage: (parameters: {
25
+ message: SignableMessage;
26
+ }) => Promise<Hex>;
27
+ /**
28
+ * Signs typed data message.
29
+ * @param parameters - The parameters.
30
+ * @returns The message signature
31
+ * @throws {InvalidTypedDataError} if the typed data is invalid.
32
+ * @throws {TypedDataSigningError} if the typed data signing fails.
33
+ */
34
+ signTypedData: <const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(parameters: TypedDataDefinition<typedData, primaryType>) => Promise<Hex>;
35
+ /**
36
+ * Sends a transaction.
37
+ * @param parameters - The parameters.
38
+ * @returns The transaction hash
39
+ * @throws {TransactionApprovalError} if the transaction is not approved.
40
+ * @throws {TransactionFailedError} if the transaction fails.
41
+ * @throws {TransactionNotFoundError} if the transaction is not found.
42
+ */
43
+ sendTransaction: (parameters: {
44
+ to: Address;
45
+ data?: Hex;
46
+ value?: bigint;
47
+ }) => Promise<Hex>;
48
+ /**
49
+ * Writes to a contract.
50
+ * @param parameters - The parameters.
51
+ * @returns The transaction hash
52
+ * @throws {TransactionApprovalError} if the transaction is not approved.
53
+ * @throws {TransactionFailedError} if the transaction fails.
54
+ * @throws {TransactionNotFoundError} if the transaction is not found.
55
+ */
56
+ writeContract<const TAbi extends Abi | readonly unknown[], TFunctionName extends ContractFunctionName<TAbi, "nonpayable" | "payable"> = ContractFunctionName<TAbi, "nonpayable" | "payable">, TArgs extends ContractFunctionArgs<TAbi, "nonpayable" | "payable", TFunctionName> = ContractFunctionArgs<TAbi, "nonpayable" | "payable", TFunctionName>>({ address, abi, functionName, args, value, }: Omit<WriteContractParameters<TAbi, TFunctionName, TArgs>, "chain" | "account">): Promise<Hex>;
57
+ }
58
+
59
+ export type { SmartWalletClient };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk4PMBBA3Ocjs = require('../chunk-4PMBBA3O.cjs');require('../chunk-J5SRLI35.cjs');exports.transferParams = _chunk4PMBBA3Ocjs.a;
@@ -0,0 +1,8 @@
1
+ import { TransferInputParams, TransferSimulationParams } from '../types/transfer.cjs';
2
+ import 'viem';
3
+ import './chains/index.cjs';
4
+ import '@crossmint/common-sdk-base';
5
+
6
+ declare function transferParams({ contract, config, from, to }: TransferInputParams): TransferSimulationParams;
7
+
8
+ export { transferParams };
@@ -0,0 +1,8 @@
1
+ import { TransferInputParams, TransferSimulationParams } from '../types/transfer.js';
2
+ import 'viem';
3
+ import './chains/index.js';
4
+ import '@crossmint/common-sdk-base';
5
+
6
+ declare function transferParams({ contract, config, from, to }: TransferInputParams): TransferSimulationParams;
7
+
8
+ export { transferParams };
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-NXTHA2ZL.js";import"../chunk-I5RZI2HB.js";export{a as transferParams};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLPLLPZFUcjs = require('../chunk-LPLLPZFU.cjs');require('../chunk-73LUJQGU.cjs');require('../chunk-4PMBBA3O.cjs');require('../chunk-J5SRLI35.cjs');exports.EVMSmartWallet = _chunkLPLLPZFUcjs.a;
@@ -0,0 +1,9 @@
1
+ import '../types/api.cjs';
2
+ import 'viem';
3
+ export { a as EVMSmartWallet } from '../apiService-Dum8A8_6.cjs';
4
+ import '../types/transfer.cjs';
5
+ import './chains/index.cjs';
6
+ import './smartWalletClient.cjs';
7
+ import '@crossmint/common-sdk-base';
8
+ import '@crossmint/client-sdk-base';
9
+ import 'ox';
@@ -0,0 +1,9 @@
1
+ import '../types/api.js';
2
+ import 'viem';
3
+ export { a as EVMSmartWallet } from '../apiService-D4DIxjMr.js';
4
+ import '../types/transfer.js';
5
+ import './chains/index.js';
6
+ import './smartWalletClient.js';
7
+ import '@crossmint/common-sdk-base';
8
+ import '@crossmint/client-sdk-base';
9
+ import 'ox';
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-DB2QM3HB.js";import"../chunk-UBRUUSMF.js";import"../chunk-NXTHA2ZL.js";import"../chunk-I5RZI2HB.js";export{a as EVMSmartWallet};
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYVFO5W3Rcjs = require('./chunk-YVFO5W3R.cjs');require('./chunk-SCXFZMLR.cjs');require('./chunk-KROX2DDP.cjs');require('./chunk-NOTF3PP3.cjs');require('./chunk-IQTGPM2U.cjs');require('./chunk-KCVR32TQ.cjs');require('./chunk-O2ACORII.cjs');require('./chunk-EVNFELF3.cjs');require('./chunk-2R6HK64N.cjs');require('./chunk-GB35YMN4.cjs');require('./chunk-WJ6XJMRD.cjs');require('./chunk-STH2LE35.cjs');require('./chunk-XJGFG3RT.cjs');require('./chunk-DIDKPOO2.cjs');var _chunkSWWOVT47cjs = require('./chunk-SWWOVT47.cjs');var _chunk7AVDZZGDcjs = require('./chunk-7AVDZZGD.cjs');require('./chunk-6ODPWORJ.cjs');require('./chunk-S4V7TF5V.cjs');require('./chunk-ODAUWGUU.cjs');require('./chunk-7G7GOR7X.cjs');require('./chunk-Z7AZOEVX.cjs');require('./chunk-XQ2K2K23.cjs');require('./chunk-IUIBQFWY.cjs');require('./chunk-NQUKI27M.cjs');require('./chunk-HQXF6VHP.cjs');require('./chunk-GPZ7PHS6.cjs');require('./chunk-KYPTGHC6.cjs');require('./chunk-2TPNP5FL.cjs');require('./chunk-BII7Y2A3.cjs');var _chunkM4K3IZTTcjs = require('./chunk-M4K3IZTT.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');var _clientsdkbase = require('@crossmint/client-sdk-base');exports.AdminAlreadyUsedError = _chunkM4K3IZTTcjs.i; exports.AdminMismatchError = _chunkM4K3IZTTcjs.b; exports.Chain = _commonsdkbase.EVMBlockchainIncludingTestnet; exports.ConfigError = _chunkM4K3IZTTcjs.h; exports.CrossmintSDKError = _clientsdkbase.CrossmintSDKError; exports.CrossmintServiceError = _clientsdkbase.CrossmintServiceError; exports.EVMSendTransactionError = _chunk7AVDZZGDcjs.a; exports.EVMSendTransactionExecutionRevertedError = _chunk7AVDZZGDcjs.b; exports.EVMSmartWallet = _chunkSWWOVT47cjs.a; exports.JWTDecryptionError = _clientsdkbase.JWTDecryptionError; exports.JWTExpiredError = _clientsdkbase.JWTExpiredError; exports.JWTIdentifierError = _clientsdkbase.JWTIdentifierError; exports.JWTInvalidError = _clientsdkbase.JWTInvalidError; exports.NotAuthorizedError = _clientsdkbase.NotAuthorizedError; exports.PasskeyIncompatibleAuthenticatorError = _chunkM4K3IZTTcjs.g; exports.PasskeyMismatchError = _chunkM4K3IZTTcjs.c; exports.PasskeyPromptError = _chunkM4K3IZTTcjs.e; exports.PasskeyRegistrationError = _chunkM4K3IZTTcjs.f; exports.SmartWalletError = _chunkM4K3IZTTcjs.a; exports.SmartWalletErrorCode = _clientsdkbase.SmartWalletErrorCode; exports.SmartWalletSDK = _chunkYVFO5W3Rcjs.a; exports.SmartWalletsNotEnabledError = _chunkM4K3IZTTcjs.j; exports.UserWalletAlreadyCreatedError = _chunkM4K3IZTTcjs.d; exports.blockchainToChainId = _commonsdkbase.blockchainToChainId;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQ6YGAHDRcjs = require('./chunk-Q6YGAHDR.cjs');require('./chunk-D33JIUOQ.cjs');require('./chunk-ODAUWGUU.cjs');require('./chunk-Q23CHZRT.cjs');require('./chunk-SVGKSKZD.cjs');require('./chunk-U2JMKBCC.cjs');require('./chunk-AS5VIM5V.cjs');require('./chunk-23IWY6XV.cjs');require('./chunk-MLTT5BGD.cjs');require('./chunk-5URY3C2T.cjs');require('./chunk-MFUN74KH.cjs');var _chunkLPLLPZFUcjs = require('./chunk-LPLLPZFU.cjs');var _chunk73LUJQGUcjs = require('./chunk-73LUJQGU.cjs');require('./chunk-4PMBBA3O.cjs');require('./chunk-EMZ5NAG2.cjs');require('./chunk-KXYDJTZS.cjs');require('./chunk-J5SRLI35.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');exports.Chain = _commonsdkbase.EVMBlockchainIncludingTestnet; exports.EVMSmartWallet = _chunkLPLLPZFUcjs.a; exports.InvalidApiKeyError = _chunk73LUJQGUcjs.b; exports.InvalidChainError = _chunk73LUJQGUcjs.d; exports.InvalidMessageFormatError = _chunk73LUJQGUcjs.f; exports.InvalidTransferChainError = _chunk73LUJQGUcjs.e; exports.InvalidTypedDataError = _chunk73LUJQGUcjs.h; exports.MessageSigningError = _chunk73LUJQGUcjs.g; exports.SmartWalletError = _chunk73LUJQGUcjs.a; exports.SmartWalletSDK = _chunkQ6YGAHDRcjs.a; exports.TransactionApprovalError = _chunk73LUJQGUcjs.j; exports.TransactionFailedError = _chunk73LUJQGUcjs.k; exports.TransactionNotFoundError = _chunk73LUJQGUcjs.l; exports.TypedDataSigningError = _chunk73LUJQGUcjs.i; exports.WalletCreationError = _chunk73LUJQGUcjs.c; exports.blockchainToChainId = _commonsdkbase.blockchainToChainId;
package/dist/index.d.cts CHANGED
@@ -1,22 +1,11 @@
1
1
  export { EVMBlockchainIncludingTestnet as Chain, blockchainToChainId } from '@crossmint/common-sdk-base';
2
- export { EVMSmartWallet } from './blockchain/wallets/EVMSmartWallet.cjs';
3
- export { ExternalSigner, PasskeySigner, SmartWalletSDKInitParams, UserParams, ViemAccount, WalletParams } from './types/params.cjs';
4
- export { SmartWalletChain as EVMSmartWalletChain } from './blockchain/chains.cjs';
5
- export { ERC20TransferType, NFTTransferType, SFTTransferType, TransferType } from './types/token.cjs';
6
- export { AdminAlreadyUsedError, AdminMismatchError, ConfigError, PasskeyIncompatibleAuthenticatorError, PasskeyMismatchError, PasskeyPromptError, PasskeyRegistrationError, SmartWalletError, SmartWalletsNotEnabledError, UserWalletAlreadyCreatedError } from './error/index.cjs';
7
- export { EVMSendTransactionError, EVMSendTransactionExecutionRevertedError } from './blockchain/wallets/SendTransactionService.cjs';
8
- export { CrossmintSDKError, CrossmintServiceError, JWTDecryptionError, JWTExpiredError, JWTIdentifierError, JWTInvalidError, NotAuthorizedError, SmartWalletErrorCode } from '@crossmint/client-sdk-base';
9
- export { SmartWalletSDK } from './SmartWalletSDK.cjs';
2
+ export { a as EVMSmartWallet, E as ExternalSigner, P as PasskeySigner, U as UserParams, V as ViemAccount, W as WalletParams } from './apiService-Dum8A8_6.cjs';
3
+ export { SmartWalletChain as EVMSmartWalletChain } from './evm/chains/index.cjs';
4
+ export { ERC20TransferType, NFTTransferType, SFTTransferType, TransferType } from './types/transfer.cjs';
5
+ export { SmartWalletSDK, SmartWalletSDKInitParams } from './sdk.cjs';
6
+ export { InvalidApiKeyError, InvalidChainError, InvalidMessageFormatError, InvalidTransferChainError, InvalidTypedDataError, MessageSigningError, SmartWalletError, TransactionApprovalError, TransactionFailedError, TransactionNotFoundError, TypedDataSigningError, WalletCreationError } from './error/index.cjs';
7
+ import '@crossmint/client-sdk-base';
10
8
  import 'viem';
11
- import './api/CrossmintWalletService.cjs';
12
- import 'permissionless';
13
- import 'permissionless/types/entrypoint';
14
- import './service-Ir-Qho-9.cjs';
15
- import 'zod';
16
- import '@zerodev/sdk';
17
- import 'permissionless/accounts';
18
- import './types/schema.cjs';
19
- import '@zerodev/passkey-validator';
20
- import './utils/constants.cjs';
21
- import 'viem/chains';
22
- import 'permissionless/_types/types';
9
+ import 'ox';
10
+ import './types/api.cjs';
11
+ import './evm/smartWalletClient.cjs';
package/dist/index.d.ts CHANGED
@@ -1,22 +1,11 @@
1
1
  export { EVMBlockchainIncludingTestnet as Chain, blockchainToChainId } from '@crossmint/common-sdk-base';
2
- export { EVMSmartWallet } from './blockchain/wallets/EVMSmartWallet.js';
3
- export { ExternalSigner, PasskeySigner, SmartWalletSDKInitParams, UserParams, ViemAccount, WalletParams } from './types/params.js';
4
- export { SmartWalletChain as EVMSmartWalletChain } from './blockchain/chains.js';
5
- export { ERC20TransferType, NFTTransferType, SFTTransferType, TransferType } from './types/token.js';
6
- export { AdminAlreadyUsedError, AdminMismatchError, ConfigError, PasskeyIncompatibleAuthenticatorError, PasskeyMismatchError, PasskeyPromptError, PasskeyRegistrationError, SmartWalletError, SmartWalletsNotEnabledError, UserWalletAlreadyCreatedError } from './error/index.js';
7
- export { EVMSendTransactionError, EVMSendTransactionExecutionRevertedError } from './blockchain/wallets/SendTransactionService.js';
8
- export { CrossmintSDKError, CrossmintServiceError, JWTDecryptionError, JWTExpiredError, JWTIdentifierError, JWTInvalidError, NotAuthorizedError, SmartWalletErrorCode } from '@crossmint/client-sdk-base';
9
- export { SmartWalletSDK } from './SmartWalletSDK.js';
2
+ export { a as EVMSmartWallet, E as ExternalSigner, P as PasskeySigner, U as UserParams, V as ViemAccount, W as WalletParams } from './apiService-D4DIxjMr.js';
3
+ export { SmartWalletChain as EVMSmartWalletChain } from './evm/chains/index.js';
4
+ export { ERC20TransferType, NFTTransferType, SFTTransferType, TransferType } from './types/transfer.js';
5
+ export { SmartWalletSDK, SmartWalletSDKInitParams } from './sdk.js';
6
+ export { InvalidApiKeyError, InvalidChainError, InvalidMessageFormatError, InvalidTransferChainError, InvalidTypedDataError, MessageSigningError, SmartWalletError, TransactionApprovalError, TransactionFailedError, TransactionNotFoundError, TypedDataSigningError, WalletCreationError } from './error/index.js';
7
+ import '@crossmint/client-sdk-base';
10
8
  import 'viem';
11
- import './api/CrossmintWalletService.js';
12
- import 'permissionless';
13
- import 'permissionless/types/entrypoint';
14
- import './service-DqYCir8s.js';
15
- import 'zod';
16
- import '@zerodev/sdk';
17
- import 'permissionless/accounts';
18
- import './types/schema.js';
19
- import '@zerodev/passkey-validator';
20
- import './utils/constants.js';
21
- import 'viem/chains';
22
- import 'permissionless/_types/types';
9
+ import 'ox';
10
+ import './types/api.js';
11
+ import './evm/smartWalletClient.js';