@crossmint/client-sdk-smart-wallet 0.1.33 → 0.1.35

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 (78) hide show
  1. package/dist/SmartWalletSDK.cjs +1 -1
  2. package/dist/SmartWalletSDK.js +1 -1
  3. package/dist/api/CrossmintWalletService.cjs +1 -1
  4. package/dist/api/CrossmintWalletService.js +1 -1
  5. package/dist/blockchain/chains.cjs +1 -1
  6. package/dist/blockchain/chains.d.cts +7 -3
  7. package/dist/blockchain/chains.d.ts +7 -3
  8. package/dist/blockchain/chains.js +1 -1
  9. package/dist/blockchain/rpc.cjs +1 -1
  10. package/dist/blockchain/rpc.d.cts +3 -3
  11. package/dist/blockchain/rpc.d.ts +3 -3
  12. package/dist/blockchain/rpc.js +1 -1
  13. package/dist/blockchain/wallets/account/cache.cjs +1 -1
  14. package/dist/blockchain/wallets/account/cache.js +1 -1
  15. package/dist/blockchain/wallets/account/creator.cjs +1 -1
  16. package/dist/blockchain/wallets/account/creator.js +1 -1
  17. package/dist/blockchain/wallets/clientDecorator.cjs +1 -1
  18. package/dist/blockchain/wallets/clientDecorator.js +1 -1
  19. package/dist/blockchain/wallets/definitions/story-testnet.cjs +1 -0
  20. package/dist/blockchain/wallets/definitions/story-testnet.d.cts +38 -0
  21. package/dist/blockchain/wallets/definitions/story-testnet.d.ts +38 -0
  22. package/dist/blockchain/wallets/definitions/story-testnet.js +1 -0
  23. package/dist/blockchain/wallets/definitions/story.cjs +1 -0
  24. package/dist/blockchain/wallets/definitions/story.d.cts +44 -0
  25. package/dist/blockchain/wallets/definitions/story.d.ts +44 -0
  26. package/dist/blockchain/wallets/definitions/story.js +1 -0
  27. package/dist/blockchain/wallets/service.cjs +1 -1
  28. package/dist/blockchain/wallets/service.js +1 -1
  29. package/dist/{chunk-UJNS26ZK.js → chunk-5FGSZZCU.js} +1 -1
  30. package/dist/{chunk-4AABLN7G.js → chunk-74J3L7KP.js} +1 -1
  31. package/dist/{chunk-32JB5X5L.cjs → chunk-76TIESKQ.cjs} +1 -1
  32. package/dist/{chunk-OU6CP5NL.js → chunk-7COIRB4M.js} +1 -1
  33. package/dist/{chunk-6LAG5WKX.js → chunk-DHZVUAQA.js} +1 -1
  34. package/dist/chunk-DYVHPARQ.js +1 -0
  35. package/dist/{chunk-4MLLGQIU.cjs → chunk-ERDSL6AZ.cjs} +1 -1
  36. package/dist/chunk-GPZ7PHS6.cjs +1 -0
  37. package/dist/{chunk-NAG5TTUK.js → chunk-GVRCHWHG.js} +1 -1
  38. package/dist/{chunk-7E6ETPYP.cjs → chunk-HN42GEK5.cjs} +2 -2
  39. package/dist/chunk-HQXF6VHP.cjs +1 -0
  40. package/dist/{chunk-NAUDBIJK.js → chunk-I22LKNPM.js} +1 -1
  41. package/dist/{chunk-ULB7AXH7.cjs → chunk-ICKMQEHA.cjs} +1 -1
  42. package/dist/chunk-IUIBQFWY.cjs +1 -0
  43. package/dist/chunk-KREX6Z32.js +1 -0
  44. package/dist/{chunk-LLPLUI62.cjs → chunk-MECWQ5TQ.cjs} +1 -1
  45. package/dist/{chunk-KDSNCQVN.js → chunk-MLZJIYAZ.js} +1 -1
  46. package/dist/{chunk-NLANHQA3.cjs → chunk-N64VSC3H.cjs} +1 -1
  47. package/dist/chunk-NQUKI27M.cjs +1 -0
  48. package/dist/chunk-NT7LBRZQ.js +1 -0
  49. package/dist/{chunk-CRXLDLMH.js → chunk-OC3YNPRX.js} +1 -1
  50. package/dist/chunk-OXRLBURF.js +1 -0
  51. package/dist/{chunk-5VZPEH6X.js → chunk-P5PDYDCW.js} +1 -1
  52. package/dist/{chunk-J3B47S4T.cjs → chunk-QBGECKSZ.cjs} +1 -1
  53. package/dist/{chunk-WFVB4TXX.cjs → chunk-QQEJPZKN.cjs} +1 -1
  54. package/dist/chunk-RLVETRLF.cjs +1 -0
  55. package/dist/{chunk-2X24AXEV.cjs → chunk-SODH64MG.cjs} +1 -1
  56. package/dist/{chunk-MYHZYOST.js → chunk-UL4HKRLD.js} +1 -1
  57. package/dist/{chunk-I54AWTU4.cjs → chunk-XI4CDQWT.cjs} +1 -1
  58. package/dist/{chunk-3U4NO4CL.js → chunk-YYGR7VFT.js} +1 -1
  59. package/dist/error/processor.cjs +1 -1
  60. package/dist/error/processor.js +1 -1
  61. package/dist/index.cjs +1 -1
  62. package/dist/index.js +1 -1
  63. package/dist/services/index.cjs +1 -1
  64. package/dist/services/index.js +1 -1
  65. package/dist/services/logger.cjs +1 -1
  66. package/dist/services/logger.js +1 -1
  67. package/dist/types/internal.cjs +1 -1
  68. package/dist/types/internal.js +1 -1
  69. package/dist/types/schema.cjs +1 -1
  70. package/dist/types/schema.js +1 -1
  71. package/dist/utils/constants.cjs +1 -1
  72. package/dist/utils/constants.js +1 -1
  73. package/package.json +2 -2
  74. package/dist/chunk-2GS5TXEY.cjs +0 -1
  75. package/dist/chunk-7FXFOOQU.cjs +0 -1
  76. package/dist/chunk-P667U3QJ.cjs +0 -1
  77. package/dist/chunk-TZG6MROQ.js +0 -1
  78. package/dist/chunk-YBHSEZMB.js +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkI54AWTU4cjs = require('./chunk-I54AWTU4.cjs');require('./chunk-SCXFZMLR.cjs');require('./chunk-ULB7AXH7.cjs');require('./chunk-4MLLGQIU.cjs');require('./chunk-IQTGPM2U.cjs');require('./chunk-WFVB4TXX.cjs');require('./chunk-O2ACORII.cjs');require('./chunk-7E6ETPYP.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');require('./chunk-SWWOVT47.cjs');require('./chunk-7AVDZZGD.cjs');require('./chunk-LLPLUI62.cjs');require('./chunk-32JB5X5L.cjs');require('./chunk-ODAUWGUU.cjs');require('./chunk-P667U3QJ.cjs');require('./chunk-NLANHQA3.cjs');require('./chunk-XQ2K2K23.cjs');require('./chunk-2GS5TXEY.cjs');require('./chunk-7FXFOOQU.cjs');require('./chunk-KYPTGHC6.cjs');require('./chunk-2X24AXEV.cjs');require('./chunk-J3B47S4T.cjs');require('./chunk-M4K3IZTT.cjs');exports.SmartWalletSDK = _chunkI54AWTU4cjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXI4CDQWTcjs = require('./chunk-XI4CDQWT.cjs');require('./chunk-SCXFZMLR.cjs');require('./chunk-ICKMQEHA.cjs');require('./chunk-ERDSL6AZ.cjs');require('./chunk-IQTGPM2U.cjs');require('./chunk-QQEJPZKN.cjs');require('./chunk-O2ACORII.cjs');require('./chunk-HN42GEK5.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');require('./chunk-SWWOVT47.cjs');require('./chunk-7AVDZZGD.cjs');require('./chunk-MECWQ5TQ.cjs');require('./chunk-76TIESKQ.cjs');require('./chunk-ODAUWGUU.cjs');require('./chunk-RLVETRLF.cjs');require('./chunk-N64VSC3H.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-SODH64MG.cjs');require('./chunk-QBGECKSZ.cjs');require('./chunk-M4K3IZTT.cjs');exports.SmartWalletSDK = _chunkXI4CDQWTcjs.a;
@@ -1 +1 @@
1
- import{a}from"./chunk-6LAG5WKX.js";import"./chunk-H4CMXNVK.js";import"./chunk-OU6CP5NL.js";import"./chunk-NAG5TTUK.js";import"./chunk-NLGILHJS.js";import"./chunk-5VZPEH6X.js";import"./chunk-ATQ4WGCW.js";import"./chunk-CRXLDLMH.js";import"./chunk-UG47CBKR.js";import"./chunk-BJZQA5VC.js";import"./chunk-C3VZY7VJ.js";import"./chunk-D4NDUT36.js";import"./chunk-CUTQYF3F.js";import"./chunk-FHNNZVNU.js";import"./chunk-ETVJGLNY.js";import"./chunk-S2XBSAGM.js";import"./chunk-4AABLN7G.js";import"./chunk-3U4NO4CL.js";import"./chunk-4SPA557P.js";import"./chunk-NAUDBIJK.js";import"./chunk-KDSNCQVN.js";import"./chunk-PZ6Q22YJ.js";import"./chunk-YBHSEZMB.js";import"./chunk-TZG6MROQ.js";import"./chunk-3F6P4HUZ.js";import"./chunk-MYHZYOST.js";import"./chunk-UJNS26ZK.js";import"./chunk-UPURFW46.js";export{a as SmartWalletSDK};
1
+ import{a}from"./chunk-DHZVUAQA.js";import"./chunk-H4CMXNVK.js";import"./chunk-7COIRB4M.js";import"./chunk-GVRCHWHG.js";import"./chunk-NLGILHJS.js";import"./chunk-P5PDYDCW.js";import"./chunk-ATQ4WGCW.js";import"./chunk-OC3YNPRX.js";import"./chunk-UG47CBKR.js";import"./chunk-BJZQA5VC.js";import"./chunk-C3VZY7VJ.js";import"./chunk-D4NDUT36.js";import"./chunk-CUTQYF3F.js";import"./chunk-FHNNZVNU.js";import"./chunk-ETVJGLNY.js";import"./chunk-S2XBSAGM.js";import"./chunk-74J3L7KP.js";import"./chunk-YYGR7VFT.js";import"./chunk-4SPA557P.js";import"./chunk-I22LKNPM.js";import"./chunk-MLZJIYAZ.js";import"./chunk-PZ6Q22YJ.js";import"./chunk-OXRLBURF.js";import"./chunk-KREX6Z32.js";import"./chunk-NT7LBRZQ.js";import"./chunk-DYVHPARQ.js";import"./chunk-3F6P4HUZ.js";import"./chunk-UL4HKRLD.js";import"./chunk-5FGSZZCU.js";import"./chunk-UPURFW46.js";export{a as SmartWalletSDK};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk32JB5X5Lcjs = require('../chunk-32JB5X5L.cjs');require('../chunk-ODAUWGUU.cjs');require('../chunk-P667U3QJ.cjs');require('../chunk-NLANHQA3.cjs');require('../chunk-XQ2K2K23.cjs');require('../chunk-J3B47S4T.cjs');require('../chunk-M4K3IZTT.cjs');exports.CrossmintWalletService = _chunk32JB5X5Lcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk76TIESKQcjs = require('../chunk-76TIESKQ.cjs');require('../chunk-ODAUWGUU.cjs');require('../chunk-RLVETRLF.cjs');require('../chunk-N64VSC3H.cjs');require('../chunk-XQ2K2K23.cjs');require('../chunk-QBGECKSZ.cjs');require('../chunk-M4K3IZTT.cjs');exports.CrossmintWalletService = _chunk76TIESKQcjs.a;
@@ -1 +1 @@
1
- import{a}from"../chunk-3U4NO4CL.js";import"../chunk-4SPA557P.js";import"../chunk-NAUDBIJK.js";import"../chunk-KDSNCQVN.js";import"../chunk-PZ6Q22YJ.js";import"../chunk-UJNS26ZK.js";import"../chunk-UPURFW46.js";export{a as CrossmintWalletService};
1
+ import{a}from"../chunk-YYGR7VFT.js";import"../chunk-4SPA557P.js";import"../chunk-I22LKNPM.js";import"../chunk-MLZJIYAZ.js";import"../chunk-PZ6Q22YJ.js";import"../chunk-5FGSZZCU.js";import"../chunk-UPURFW46.js";export{a as CrossmintWalletService};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2GS5TXEYcjs = require('../chunk-2GS5TXEY.cjs');exports.SMART_WALLET_CHAINS = _chunk2GS5TXEYcjs.f; exports.SMART_WALLET_MAINNETS = _chunk2GS5TXEYcjs.d; exports.SMART_WALLET_TESTNETS = _chunk2GS5TXEYcjs.b; exports.SmartWalletChain = _chunk2GS5TXEYcjs.e; exports.SmartWalletMainnet = _chunk2GS5TXEYcjs.c; exports.SmartWalletTestnet = _chunk2GS5TXEYcjs.a; exports.isMainnetChain = _chunk2GS5TXEYcjs.h; exports.isTestnetChain = _chunk2GS5TXEYcjs.g; exports.viemNetworks = _chunk2GS5TXEYcjs.i;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNQUKI27Mcjs = require('../chunk-NQUKI27M.cjs');require('../chunk-HQXF6VHP.cjs');require('../chunk-GPZ7PHS6.cjs');exports.SMART_WALLET_CHAINS = _chunkNQUKI27Mcjs.f; exports.SMART_WALLET_MAINNETS = _chunkNQUKI27Mcjs.d; exports.SMART_WALLET_TESTNETS = _chunkNQUKI27Mcjs.b; exports.SmartWalletChain = _chunkNQUKI27Mcjs.e; exports.SmartWalletMainnet = _chunkNQUKI27Mcjs.c; exports.SmartWalletTestnet = _chunkNQUKI27Mcjs.a; exports.isMainnetChain = _chunkNQUKI27Mcjs.h; exports.isTestnetChain = _chunkNQUKI27Mcjs.g; exports.viemNetworks = _chunkNQUKI27Mcjs.i;
@@ -6,29 +6,33 @@ declare const SmartWalletTestnet: {
6
6
  readonly POLYGON_AMOY: "polygon-amoy";
7
7
  readonly OPTIMISM_SEPOLIA: "optimism-sepolia";
8
8
  readonly ARBITRUM_SEPOLIA: "arbitrum-sepolia";
9
+ readonly STORY_TESTNET: "story-testnet";
9
10
  };
10
11
  type SmartWalletTestnet = ObjectValues<typeof SmartWalletTestnet>;
11
- declare const SMART_WALLET_TESTNETS: readonly ("base-sepolia" | "polygon-amoy" | "optimism-sepolia" | "arbitrum-sepolia")[];
12
+ declare const SMART_WALLET_TESTNETS: readonly ("base-sepolia" | "polygon-amoy" | "optimism-sepolia" | "arbitrum-sepolia" | "story-testnet")[];
12
13
  declare const SmartWalletMainnet: {
13
14
  readonly BASE: "base";
14
15
  readonly POLYGON: "polygon";
15
16
  readonly OPTIMISM: "optimism";
16
17
  readonly ARBITRUM: "arbitrum";
18
+ readonly STORY: "story";
17
19
  };
18
20
  type SmartWalletMainnet = ObjectValues<typeof SmartWalletMainnet>;
19
- declare const SMART_WALLET_MAINNETS: readonly ("base" | "polygon" | "optimism" | "arbitrum")[];
21
+ declare const SMART_WALLET_MAINNETS: readonly ("base" | "polygon" | "optimism" | "arbitrum" | "story")[];
20
22
  declare const SmartWalletChain: {
21
23
  readonly BASE: "base";
22
24
  readonly POLYGON: "polygon";
23
25
  readonly OPTIMISM: "optimism";
24
26
  readonly ARBITRUM: "arbitrum";
27
+ readonly STORY: "story";
25
28
  readonly BASE_SEPOLIA: "base-sepolia";
26
29
  readonly POLYGON_AMOY: "polygon-amoy";
27
30
  readonly OPTIMISM_SEPOLIA: "optimism-sepolia";
28
31
  readonly ARBITRUM_SEPOLIA: "arbitrum-sepolia";
32
+ readonly STORY_TESTNET: "story-testnet";
29
33
  };
30
34
  type SmartWalletChain = ObjectValues<typeof SmartWalletChain>;
31
- declare const SMART_WALLET_CHAINS: readonly ("base-sepolia" | "polygon-amoy" | "optimism-sepolia" | "arbitrum-sepolia" | "base" | "polygon" | "optimism" | "arbitrum")[];
35
+ declare const SMART_WALLET_CHAINS: readonly ("base-sepolia" | "polygon-amoy" | "optimism-sepolia" | "arbitrum-sepolia" | "story-testnet" | "base" | "polygon" | "optimism" | "arbitrum" | "story")[];
32
36
  declare function isTestnetChain(chain: SmartWalletChain): chain is SmartWalletTestnet;
33
37
  declare function isMainnetChain(chain: SmartWalletChain): chain is SmartWalletMainnet;
34
38
  declare const viemNetworks: Record<SmartWalletChain, Chain>;
@@ -6,29 +6,33 @@ declare const SmartWalletTestnet: {
6
6
  readonly POLYGON_AMOY: "polygon-amoy";
7
7
  readonly OPTIMISM_SEPOLIA: "optimism-sepolia";
8
8
  readonly ARBITRUM_SEPOLIA: "arbitrum-sepolia";
9
+ readonly STORY_TESTNET: "story-testnet";
9
10
  };
10
11
  type SmartWalletTestnet = ObjectValues<typeof SmartWalletTestnet>;
11
- declare const SMART_WALLET_TESTNETS: readonly ("base-sepolia" | "polygon-amoy" | "optimism-sepolia" | "arbitrum-sepolia")[];
12
+ declare const SMART_WALLET_TESTNETS: readonly ("base-sepolia" | "polygon-amoy" | "optimism-sepolia" | "arbitrum-sepolia" | "story-testnet")[];
12
13
  declare const SmartWalletMainnet: {
13
14
  readonly BASE: "base";
14
15
  readonly POLYGON: "polygon";
15
16
  readonly OPTIMISM: "optimism";
16
17
  readonly ARBITRUM: "arbitrum";
18
+ readonly STORY: "story";
17
19
  };
18
20
  type SmartWalletMainnet = ObjectValues<typeof SmartWalletMainnet>;
19
- declare const SMART_WALLET_MAINNETS: readonly ("base" | "polygon" | "optimism" | "arbitrum")[];
21
+ declare const SMART_WALLET_MAINNETS: readonly ("base" | "polygon" | "optimism" | "arbitrum" | "story")[];
20
22
  declare const SmartWalletChain: {
21
23
  readonly BASE: "base";
22
24
  readonly POLYGON: "polygon";
23
25
  readonly OPTIMISM: "optimism";
24
26
  readonly ARBITRUM: "arbitrum";
27
+ readonly STORY: "story";
25
28
  readonly BASE_SEPOLIA: "base-sepolia";
26
29
  readonly POLYGON_AMOY: "polygon-amoy";
27
30
  readonly OPTIMISM_SEPOLIA: "optimism-sepolia";
28
31
  readonly ARBITRUM_SEPOLIA: "arbitrum-sepolia";
32
+ readonly STORY_TESTNET: "story-testnet";
29
33
  };
30
34
  type SmartWalletChain = ObjectValues<typeof SmartWalletChain>;
31
- declare const SMART_WALLET_CHAINS: readonly ("base-sepolia" | "polygon-amoy" | "optimism-sepolia" | "arbitrum-sepolia" | "base" | "polygon" | "optimism" | "arbitrum")[];
35
+ declare const SMART_WALLET_CHAINS: readonly ("base-sepolia" | "polygon-amoy" | "optimism-sepolia" | "arbitrum-sepolia" | "story-testnet" | "base" | "polygon" | "optimism" | "arbitrum" | "story")[];
32
36
  declare function isTestnetChain(chain: SmartWalletChain): chain is SmartWalletTestnet;
33
37
  declare function isMainnetChain(chain: SmartWalletChain): chain is SmartWalletMainnet;
34
38
  declare const viemNetworks: Record<SmartWalletChain, Chain>;
@@ -1 +1 @@
1
- import{a,b,c,d,e,f,g,h,i}from"../chunk-YBHSEZMB.js";export{f as SMART_WALLET_CHAINS,d as SMART_WALLET_MAINNETS,b as SMART_WALLET_TESTNETS,e as SmartWalletChain,c as SmartWalletMainnet,a as SmartWalletTestnet,h as isMainnetChain,g as isTestnetChain,i as viemNetworks};
1
+ import{a,b,c,d,e,f,g,h,i}from"../chunk-KREX6Z32.js";import"../chunk-NT7LBRZQ.js";import"../chunk-DYVHPARQ.js";export{f as SMART_WALLET_CHAINS,d as SMART_WALLET_MAINNETS,b as SMART_WALLET_TESTNETS,e as SmartWalletChain,c as SmartWalletMainnet,a as SmartWalletTestnet,h as isMainnetChain,g as isTestnetChain,i as viemNetworks};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk7FXFOOQUcjs = require('../chunk-7FXFOOQU.cjs');exports.ALCHEMY_RPC_SUBDOMAIN = _chunk7FXFOOQUcjs.a; exports.getAlchemyRPC = _chunk7FXFOOQUcjs.b; exports.getPimlicoBundlerRPC = _chunk7FXFOOQUcjs.c;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkIUIBQFWYcjs = require('../chunk-IUIBQFWY.cjs');require('../chunk-NQUKI27M.cjs');require('../chunk-HQXF6VHP.cjs');require('../chunk-GPZ7PHS6.cjs');exports.ALCHEMY_RPC_SUBDOMAIN = _chunkIUIBQFWYcjs.a; exports.getPimlicoBundlerRPC = _chunkIUIBQFWYcjs.c; exports.getRPC = _chunkIUIBQFWYcjs.b;
@@ -2,8 +2,8 @@ import { SmartWalletChain } from './chains.cjs';
2
2
  import 'viem/chains';
3
3
  import '@crossmint/common-sdk-base';
4
4
 
5
- declare const ALCHEMY_RPC_SUBDOMAIN: Record<SmartWalletChain, string>;
6
- declare function getAlchemyRPC(chain: SmartWalletChain): string;
5
+ declare const ALCHEMY_RPC_SUBDOMAIN: Partial<Record<SmartWalletChain, string>>;
6
+ declare function getRPC(chain: SmartWalletChain): string;
7
7
  declare function getPimlicoBundlerRPC(chain: SmartWalletChain): string;
8
8
 
9
- export { ALCHEMY_RPC_SUBDOMAIN, getAlchemyRPC, getPimlicoBundlerRPC };
9
+ export { ALCHEMY_RPC_SUBDOMAIN, getPimlicoBundlerRPC, getRPC };
@@ -2,8 +2,8 @@ import { SmartWalletChain } from './chains.js';
2
2
  import 'viem/chains';
3
3
  import '@crossmint/common-sdk-base';
4
4
 
5
- declare const ALCHEMY_RPC_SUBDOMAIN: Record<SmartWalletChain, string>;
6
- declare function getAlchemyRPC(chain: SmartWalletChain): string;
5
+ declare const ALCHEMY_RPC_SUBDOMAIN: Partial<Record<SmartWalletChain, string>>;
6
+ declare function getRPC(chain: SmartWalletChain): string;
7
7
  declare function getPimlicoBundlerRPC(chain: SmartWalletChain): string;
8
8
 
9
- export { ALCHEMY_RPC_SUBDOMAIN, getAlchemyRPC, getPimlicoBundlerRPC };
9
+ export { ALCHEMY_RPC_SUBDOMAIN, getPimlicoBundlerRPC, getRPC };
@@ -1 +1 @@
1
- import{a,b,c}from"../chunk-TZG6MROQ.js";export{a as ALCHEMY_RPC_SUBDOMAIN,b as getAlchemyRPC,c as getPimlicoBundlerRPC};
1
+ import{a,b,c}from"../chunk-OXRLBURF.js";import"../chunk-KREX6Z32.js";import"../chunk-NT7LBRZQ.js";import"../chunk-DYVHPARQ.js";export{a as ALCHEMY_RPC_SUBDOMAIN,c as getPimlicoBundlerRPC,b as getRPC};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWFVB4TXXcjs = require('../../../chunk-WFVB4TXX.cjs');require('../../../chunk-NLANHQA3.cjs');require('../../../chunk-J3B47S4T.cjs');exports.AccountConfigCache = _chunkWFVB4TXXcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQQEJPZKNcjs = require('../../../chunk-QQEJPZKN.cjs');require('../../../chunk-N64VSC3H.cjs');require('../../../chunk-QBGECKSZ.cjs');exports.AccountConfigCache = _chunkQQEJPZKNcjs.a;
@@ -1 +1 @@
1
- import{a}from"../../../chunk-5VZPEH6X.js";import"../../../chunk-KDSNCQVN.js";import"../../../chunk-UJNS26ZK.js";export{a as AccountConfigCache};
1
+ import{a}from"../../../chunk-P5PDYDCW.js";import"../../../chunk-MLZJIYAZ.js";import"../../../chunk-5FGSZZCU.js";export{a as AccountConfigCache};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk7E6ETPYPcjs = require('../../../chunk-7E6ETPYP.cjs');require('../../../chunk-LLPLUI62.cjs');require('../../../chunk-J3B47S4T.cjs');require('../../../chunk-M4K3IZTT.cjs');exports.AccountCreator = _chunk7E6ETPYPcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkHN42GEK5cjs = require('../../../chunk-HN42GEK5.cjs');require('../../../chunk-MECWQ5TQ.cjs');require('../../../chunk-QBGECKSZ.cjs');require('../../../chunk-M4K3IZTT.cjs');exports.AccountCreator = _chunkHN42GEK5cjs.a;
@@ -1 +1 @@
1
- import{a}from"../../../chunk-CRXLDLMH.js";import"../../../chunk-4AABLN7G.js";import"../../../chunk-UJNS26ZK.js";import"../../../chunk-UPURFW46.js";export{a as AccountCreator};
1
+ import{a}from"../../../chunk-OC3YNPRX.js";import"../../../chunk-74J3L7KP.js";import"../../../chunk-5FGSZZCU.js";import"../../../chunk-UPURFW46.js";export{a as AccountCreator};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkULB7AXH7cjs = require('../../chunk-ULB7AXH7.cjs');require('../../chunk-WJ6XJMRD.cjs');require('../../chunk-ODAUWGUU.cjs');require('../../chunk-P667U3QJ.cjs');require('../../chunk-J3B47S4T.cjs');require('../../chunk-M4K3IZTT.cjs');exports.ClientDecorator = _chunkULB7AXH7cjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkICKMQEHAcjs = require('../../chunk-ICKMQEHA.cjs');require('../../chunk-WJ6XJMRD.cjs');require('../../chunk-ODAUWGUU.cjs');require('../../chunk-RLVETRLF.cjs');require('../../chunk-QBGECKSZ.cjs');require('../../chunk-M4K3IZTT.cjs');exports.ClientDecorator = _chunkICKMQEHAcjs.a;
@@ -1 +1 @@
1
- import{a}from"../../chunk-OU6CP5NL.js";import"../../chunk-C3VZY7VJ.js";import"../../chunk-4SPA557P.js";import"../../chunk-NAUDBIJK.js";import"../../chunk-UJNS26ZK.js";import"../../chunk-UPURFW46.js";export{a as ClientDecorator};
1
+ import{a}from"../../chunk-7COIRB4M.js";import"../../chunk-C3VZY7VJ.js";import"../../chunk-4SPA557P.js";import"../../chunk-I22LKNPM.js";import"../../chunk-5FGSZZCU.js";import"../../chunk-UPURFW46.js";export{a as ClientDecorator};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkHQXF6VHPcjs = require('../../../chunk-HQXF6VHP.cjs');exports.storyTestnet = _chunkHQXF6VHPcjs.a;
@@ -0,0 +1,38 @@
1
+ import * as viem from 'viem';
2
+
3
+ declare const storyTestnet: {
4
+ blockExplorers: {
5
+ readonly default: {
6
+ readonly name: "Story Testnet Explorer";
7
+ readonly url: "https://testnet.storyscan.xyz";
8
+ };
9
+ };
10
+ contracts?: {
11
+ [x: string]: viem.ChainContract | {
12
+ [sourceId: number]: viem.ChainContract | undefined;
13
+ } | undefined;
14
+ ensRegistry?: viem.ChainContract | undefined;
15
+ ensUniversalResolver?: viem.ChainContract | undefined;
16
+ multicall3?: viem.ChainContract | undefined;
17
+ } | undefined;
18
+ id: 1513;
19
+ name: "Story Testnet";
20
+ nativeCurrency: {
21
+ readonly decimals: 18;
22
+ readonly name: "IP";
23
+ readonly symbol: "IP";
24
+ };
25
+ rpcUrls: {
26
+ readonly default: {
27
+ readonly http: readonly ["https://testnet.storyrpc.io"];
28
+ };
29
+ };
30
+ sourceId?: number | undefined;
31
+ testnet: true;
32
+ custom?: Record<string, unknown> | undefined;
33
+ fees?: viem.ChainFees<undefined> | undefined;
34
+ formatters?: undefined;
35
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
36
+ };
37
+
38
+ export { storyTestnet };
@@ -0,0 +1,38 @@
1
+ import * as viem from 'viem';
2
+
3
+ declare const storyTestnet: {
4
+ blockExplorers: {
5
+ readonly default: {
6
+ readonly name: "Story Testnet Explorer";
7
+ readonly url: "https://testnet.storyscan.xyz";
8
+ };
9
+ };
10
+ contracts?: {
11
+ [x: string]: viem.ChainContract | {
12
+ [sourceId: number]: viem.ChainContract | undefined;
13
+ } | undefined;
14
+ ensRegistry?: viem.ChainContract | undefined;
15
+ ensUniversalResolver?: viem.ChainContract | undefined;
16
+ multicall3?: viem.ChainContract | undefined;
17
+ } | undefined;
18
+ id: 1513;
19
+ name: "Story Testnet";
20
+ nativeCurrency: {
21
+ readonly decimals: 18;
22
+ readonly name: "IP";
23
+ readonly symbol: "IP";
24
+ };
25
+ rpcUrls: {
26
+ readonly default: {
27
+ readonly http: readonly ["https://testnet.storyrpc.io"];
28
+ };
29
+ };
30
+ sourceId?: number | undefined;
31
+ testnet: true;
32
+ custom?: Record<string, unknown> | undefined;
33
+ fees?: viem.ChainFees<undefined> | undefined;
34
+ formatters?: undefined;
35
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
36
+ };
37
+
38
+ export { storyTestnet };
@@ -0,0 +1 @@
1
+ import{a}from"../../../chunk-NT7LBRZQ.js";export{a as storyTestnet};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGPZ7PHS6cjs = require('../../../chunk-GPZ7PHS6.cjs');exports.story = _chunkGPZ7PHS6cjs.a;
@@ -0,0 +1,44 @@
1
+ import * as viem from 'viem';
2
+
3
+ declare const story: {
4
+ blockExplorers?: {
5
+ [key: string]: {
6
+ name: string;
7
+ url: string;
8
+ apiUrl?: string | undefined;
9
+ };
10
+ default: {
11
+ name: string;
12
+ url: string;
13
+ apiUrl?: string | undefined;
14
+ };
15
+ } | undefined;
16
+ contracts?: {
17
+ [x: string]: viem.ChainContract | {
18
+ [sourceId: number]: viem.ChainContract | undefined;
19
+ } | undefined;
20
+ ensRegistry?: viem.ChainContract | undefined;
21
+ ensUniversalResolver?: viem.ChainContract | undefined;
22
+ multicall3?: viem.ChainContract | undefined;
23
+ } | undefined;
24
+ id: 1514;
25
+ name: "Story";
26
+ nativeCurrency: {
27
+ readonly decimals: 18;
28
+ readonly name: "IP Token";
29
+ readonly symbol: "IP";
30
+ };
31
+ rpcUrls: {
32
+ readonly default: {
33
+ readonly http: readonly ["https://mainnet.storyrpc.io"];
34
+ };
35
+ };
36
+ sourceId?: number | undefined;
37
+ testnet: false;
38
+ custom?: Record<string, unknown> | undefined;
39
+ fees?: viem.ChainFees<undefined> | undefined;
40
+ formatters?: undefined;
41
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
42
+ };
43
+
44
+ export { story };
@@ -0,0 +1,44 @@
1
+ import * as viem from 'viem';
2
+
3
+ declare const story: {
4
+ blockExplorers?: {
5
+ [key: string]: {
6
+ name: string;
7
+ url: string;
8
+ apiUrl?: string | undefined;
9
+ };
10
+ default: {
11
+ name: string;
12
+ url: string;
13
+ apiUrl?: string | undefined;
14
+ };
15
+ } | undefined;
16
+ contracts?: {
17
+ [x: string]: viem.ChainContract | {
18
+ [sourceId: number]: viem.ChainContract | undefined;
19
+ } | undefined;
20
+ ensRegistry?: viem.ChainContract | undefined;
21
+ ensUniversalResolver?: viem.ChainContract | undefined;
22
+ multicall3?: viem.ChainContract | undefined;
23
+ } | undefined;
24
+ id: 1514;
25
+ name: "Story";
26
+ nativeCurrency: {
27
+ readonly decimals: 18;
28
+ readonly name: "IP Token";
29
+ readonly symbol: "IP";
30
+ };
31
+ rpcUrls: {
32
+ readonly default: {
33
+ readonly http: readonly ["https://mainnet.storyrpc.io"];
34
+ };
35
+ };
36
+ sourceId?: number | undefined;
37
+ testnet: false;
38
+ custom?: Record<string, unknown> | undefined;
39
+ fees?: viem.ChainFees<undefined> | undefined;
40
+ formatters?: undefined;
41
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
42
+ };
43
+
44
+ export { story };
@@ -0,0 +1 @@
1
+ import{a}from"../../../chunk-DYVHPARQ.js";export{a as story};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk4MLLGQIUcjs = require('../../chunk-4MLLGQIU.cjs');require('../../chunk-IQTGPM2U.cjs');require('../../chunk-WJ6XJMRD.cjs');require('../../chunk-SWWOVT47.cjs');require('../../chunk-7AVDZZGD.cjs');require('../../chunk-2GS5TXEY.cjs');require('../../chunk-7FXFOOQU.cjs');require('../../chunk-KYPTGHC6.cjs');require('../../chunk-J3B47S4T.cjs');require('../../chunk-M4K3IZTT.cjs');exports.SmartWalletService = _chunk4MLLGQIUcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkERDSL6AZcjs = require('../../chunk-ERDSL6AZ.cjs');require('../../chunk-IQTGPM2U.cjs');require('../../chunk-WJ6XJMRD.cjs');require('../../chunk-SWWOVT47.cjs');require('../../chunk-7AVDZZGD.cjs');require('../../chunk-IUIBQFWY.cjs');require('../../chunk-NQUKI27M.cjs');require('../../chunk-HQXF6VHP.cjs');require('../../chunk-GPZ7PHS6.cjs');require('../../chunk-KYPTGHC6.cjs');require('../../chunk-QBGECKSZ.cjs');require('../../chunk-M4K3IZTT.cjs');exports.SmartWalletService = _chunkERDSL6AZcjs.a;
@@ -1 +1 @@
1
- import{a}from"../../chunk-NAG5TTUK.js";import"../../chunk-NLGILHJS.js";import"../../chunk-C3VZY7VJ.js";import"../../chunk-ETVJGLNY.js";import"../../chunk-S2XBSAGM.js";import"../../chunk-YBHSEZMB.js";import"../../chunk-TZG6MROQ.js";import"../../chunk-3F6P4HUZ.js";import"../../chunk-UJNS26ZK.js";import"../../chunk-UPURFW46.js";export{a as SmartWalletService};
1
+ import{a}from"../../chunk-GVRCHWHG.js";import"../../chunk-NLGILHJS.js";import"../../chunk-C3VZY7VJ.js";import"../../chunk-ETVJGLNY.js";import"../../chunk-S2XBSAGM.js";import"../../chunk-OXRLBURF.js";import"../../chunk-KREX6Z32.js";import"../../chunk-NT7LBRZQ.js";import"../../chunk-DYVHPARQ.js";import"../../chunk-3F6P4HUZ.js";import"../../chunk-5FGSZZCU.js";import"../../chunk-UPURFW46.js";export{a as SmartWalletService};
@@ -1 +1 @@
1
- var e="0.1.33";var r="ZeroDev",d=0,c="SCW_SDK",p=e,a="2024-06-09",m=["0.3.1","0.3.0","0.2.4"],E=["v0.6","v0.7"];export{r as a,d as b,c,p as d,a as e,m as f,E as g};
1
+ var e="0.1.35";var r="ZeroDev",d=0,c="SCW_SDK",p=e,a="2024-06-09",m=["0.3.1","0.3.0","0.2.4"],E=["v0.6","v0.7"];export{r as a,d as b,c,p as d,a as e,m as f,E as g};
@@ -1 +1 @@
1
- import{f as n,g as r}from"./chunk-UJNS26ZK.js";function p(e){return n.includes(e)}function g(e){return r.includes(e)}function i(e){return"signer"in e&&"type"in e.signer&&e.signer.type==="PASSKEY"}function P(e){let t=e.existing==null||e.existing.signerConfig.type==="passkeys";return i(e.walletParams)&&t}function s(e){return"signer"in e&&("type"in e.signer&&e.signer.type==="VIEM_ACCOUNT"||"request"in e.signer&&typeof e.signer.request=="function")}function C(e){let t=e.existing==null||e.existing.signerConfig.type==="eoa";return s(e.walletParams)&&t}export{p as a,g as b,i as c,P as d,s as e,C as f};
1
+ import{f as n,g as r}from"./chunk-5FGSZZCU.js";function p(e){return n.includes(e)}function g(e){return r.includes(e)}function i(e){return"signer"in e&&"type"in e.signer&&e.signer.type==="PASSKEY"}function P(e){let t=e.existing==null||e.existing.signerConfig.type==="passkeys";return i(e.walletParams)&&t}function s(e){return"signer"in e&&("type"in e.signer&&e.signer.type==="VIEM_ACCOUNT"||"request"in e.signer&&typeof e.signer.request=="function")}function C(e){let t=e.existing==null||e.existing.signerConfig.type==="eoa";return s(e.walletParams)&&t}export{p as a,g as b,i as c,P as d,s as e,C as f};
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkP667U3QJcjs = require('./chunk-P667U3QJ.cjs');var _chunkNLANHQA3cjs = require('./chunk-NLANHQA3.cjs');var _chunkXQ2K2K23cjs = require('./chunk-XQ2K2K23.cjs');var _chunkJ3B47S4Tcjs = require('./chunk-J3B47S4T.cjs');var _chunkM4K3IZTTcjs = require('./chunk-M4K3IZTT.cjs');var _clientsdkbase = require('@crossmint/client-sdk-base');var _commonsdkbase = require('@crossmint/common-sdk-base');var c=class extends _clientsdkbase.BaseCrossmintService{constructor(){super(...arguments);this.logger=_chunkP667U3QJcjs.a;this.apiErrorService=new (0, _clientsdkbase.APIErrorService)({ERROR_USER_WALLET_ALREADY_CREATED:({userId:r})=>new (0, _chunkM4K3IZTTcjs.d)(r),ERROR_ADMIN_SIGNER_ALREADY_USED:()=>new _chunkM4K3IZTTcjs.i,ERROR_PROJECT_NONCUSTODIAL_WALLETS_NOT_ENABLED:()=>new _chunkM4K3IZTTcjs.j})}async idempotentCreateSmartWallet(r,t){await this.fetchCrossmintAPI(`${_chunkJ3B47S4Tcjs.e}/sdk/smart-wallet`,{method:"PUT",body:JSON.stringify(t)},"Error creating abstract wallet. Please contact support",r.jwt)}async sponsorUserOperation(r,t,o,e){let S=_commonsdkbase.blockchainToChainId.call(void 0, e),P=await this.fetchCrossmintAPI(`${_chunkJ3B47S4Tcjs.e}/sdk/paymaster`,{method:"POST",body:JSON.stringify({userOp:_chunkXQ2K2K23cjs.a.call(void 0, t),entryPoint:o,chainId:S})},"Error sponsoring user operation. Please contact support",r.jwt);return _chunkXQ2K2K23cjs.b.call(void 0, P)}async getSmartWalletConfig(r,t){let o=await this.fetchCrossmintAPI(`${_chunkJ3B47S4Tcjs.e}/sdk/smart-wallet/config?chain=${t}`,{method:"GET"},"Error getting smart wallet version configuration. Please contact support",r.jwt),e=_chunkNLANHQA3cjs.e.safeParse(o);if(!e.success)throw new (0, _clientsdkbase.CrossmintServiceError)(`Invalid smart wallet config, please contact support. Details below:
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRLVETRLFcjs = require('./chunk-RLVETRLF.cjs');var _chunkN64VSC3Hcjs = require('./chunk-N64VSC3H.cjs');var _chunkXQ2K2K23cjs = require('./chunk-XQ2K2K23.cjs');var _chunkQBGECKSZcjs = require('./chunk-QBGECKSZ.cjs');var _chunkM4K3IZTTcjs = require('./chunk-M4K3IZTT.cjs');var _clientsdkbase = require('@crossmint/client-sdk-base');var _commonsdkbase = require('@crossmint/common-sdk-base');var c=class extends _clientsdkbase.BaseCrossmintService{constructor(){super(...arguments);this.logger=_chunkRLVETRLFcjs.a;this.apiErrorService=new (0, _clientsdkbase.APIErrorService)({ERROR_USER_WALLET_ALREADY_CREATED:({userId:r})=>new (0, _chunkM4K3IZTTcjs.d)(r),ERROR_ADMIN_SIGNER_ALREADY_USED:()=>new _chunkM4K3IZTTcjs.i,ERROR_PROJECT_NONCUSTODIAL_WALLETS_NOT_ENABLED:()=>new _chunkM4K3IZTTcjs.j})}async idempotentCreateSmartWallet(r,t){await this.fetchCrossmintAPI(`${_chunkQBGECKSZcjs.e}/sdk/smart-wallet`,{method:"PUT",body:JSON.stringify(t)},"Error creating abstract wallet. Please contact support",r.jwt)}async sponsorUserOperation(r,t,o,e){let S=_commonsdkbase.blockchainToChainId.call(void 0, e),P=await this.fetchCrossmintAPI(`${_chunkQBGECKSZcjs.e}/sdk/paymaster`,{method:"POST",body:JSON.stringify({userOp:_chunkXQ2K2K23cjs.a.call(void 0, t),entryPoint:o,chainId:S})},"Error sponsoring user operation. Please contact support",r.jwt);return _chunkXQ2K2K23cjs.b.call(void 0, P)}async getSmartWalletConfig(r,t){let o=await this.fetchCrossmintAPI(`${_chunkQBGECKSZcjs.e}/sdk/smart-wallet/config?chain=${t}`,{method:"GET"},"Error getting smart wallet version configuration. Please contact support",r.jwt),e=_chunkN64VSC3Hcjs.e.safeParse(o);if(!e.success)throw new (0, _clientsdkbase.CrossmintServiceError)(`Invalid smart wallet config, please contact support. Details below:
2
2
  ${e.error.toString()}`);return e.data}async fetchNFTs(r,t){return this.fetchCrossmintAPI(`v1-alpha1/wallets/${t}:${r}/nfts`,{method:"GET"},`Error fetching NFTs for wallet: ${r}`)}getPasskeyServerUrl(){return this.crossmintBaseUrl+"api/internal/passkeys"}};exports.a = c;
@@ -1 +1 @@
1
- import{a as d}from"./chunk-C3VZY7VJ.js";import{a as m}from"./chunk-NAUDBIJK.js";import{a as l}from"./chunk-UPURFW46.js";import{stringify as y}from"viem";var h=["sendTransaction","writeContract","sendUserOperation"],g=["signMessage","signTypedData"];function c(a){return h.includes(a)}function p(a){return g.includes(a)}var u=class{constructor(o,t=m){this.errorProcessor=o;this.logger=t}decorate({crossmintChain:o,smartAccountClient:t}){return new Proxy(t,{get:(n,e,s)=>{let r=Reflect.get(n,e,s);return typeof r!="function"||typeof e!="string"||!(p(e)||c(e))?r:(...i)=>this.logger.logPerformance(`CrossmintSmartWallet.${e}`,()=>this.execute(n,e,r,i,o))}})}async execute(o,t,n,e,s){try{this.logger.log(`[CrossmintSmartWallet.${t}] - params: ${y(e)}`);let r=c(t)?this.processTxnArgs(t,s,e):e;return await n.call(o,...r)}catch(r){let i=c(t)?"signing":"sending transaction";throw this.errorProcessor.map(r,new l(`Error ${i}: ${r.message}`,y(r)))}}processTxnArgs(o,t,n){if(o==="sendUserOperation"){let[{userOperation:s,middleware:r,account:i}]=n;return[{middleware:r,account:i,userOperation:this.addGelatoBundlerProperties(t,s)},...n.slice(1)]}let[e]=n;return[this.addGelatoBundlerProperties(t,e),...n.slice(1)]}addGelatoBundlerProperties(o,t){return d(o)?{...t,maxFeePerGas:"0x0",maxPriorityFeePerGas:"0x0"}:t}};export{u as a};
1
+ import{a as d}from"./chunk-C3VZY7VJ.js";import{a as m}from"./chunk-I22LKNPM.js";import{a as l}from"./chunk-UPURFW46.js";import{stringify as y}from"viem";var h=["sendTransaction","writeContract","sendUserOperation"],g=["signMessage","signTypedData"];function c(a){return h.includes(a)}function p(a){return g.includes(a)}var u=class{constructor(o,t=m){this.errorProcessor=o;this.logger=t}decorate({crossmintChain:o,smartAccountClient:t}){return new Proxy(t,{get:(n,e,s)=>{let r=Reflect.get(n,e,s);return typeof r!="function"||typeof e!="string"||!(p(e)||c(e))?r:(...i)=>this.logger.logPerformance(`CrossmintSmartWallet.${e}`,()=>this.execute(n,e,r,i,o))}})}async execute(o,t,n,e,s){try{this.logger.log(`[CrossmintSmartWallet.${t}] - params: ${y(e)}`);let r=c(t)?this.processTxnArgs(t,s,e):e;return await n.call(o,...r)}catch(r){let i=c(t)?"signing":"sending transaction";throw this.errorProcessor.map(r,new l(`Error ${i}: ${r.message}`,y(r)))}}processTxnArgs(o,t,n){if(o==="sendUserOperation"){let[{userOperation:s,middleware:r,account:i}]=n;return[{middleware:r,account:i,userOperation:this.addGelatoBundlerProperties(t,s)},...n.slice(1)]}let[e]=n;return[this.addGelatoBundlerProperties(t,e),...n.slice(1)]}addGelatoBundlerProperties(o,t){return d(o)?{...t,maxFeePerGas:"0x0",maxPriorityFeePerGas:"0x0"}:t}};export{u as a};
@@ -1 +1 @@
1
- import{a as S}from"./chunk-H4CMXNVK.js";import{a as y}from"./chunk-OU6CP5NL.js";import{a as g}from"./chunk-NAG5TTUK.js";import{a as p}from"./chunk-5VZPEH6X.js";import{a as v}from"./chunk-ATQ4WGCW.js";import{a as f}from"./chunk-CRXLDLMH.js";import{a as h}from"./chunk-UG47CBKR.js";import{a as C}from"./chunk-D4NDUT36.js";import{a as m}from"./chunk-3U4NO4CL.js";import{a as n,b as s}from"./chunk-NAUDBIJK.js";import{g as l,h as c}from"./chunk-YBHSEZMB.js";import{a as w}from"./chunk-MYHZYOST.js";import{d as i}from"./chunk-UJNS26ZK.js";import{a as o}from"./chunk-UPURFW46.js";import{stringify as A}from"viem";import{validateAPIKey as I}from"@crossmint/common-sdk-base";var P=class W{constructor(r,t,a,e=n){this.crossmintEnv=r;this.smartWalletService=t;this.errorProcessor=a;this.logger=e}static init({clientApiKey:r}){let t=I(r);if(!t.isValid)throw new Error("API key invalid");let a=new m(r),e=new w(s),d=new f(new h,new S(a.getPasskeyServerUrl(),r)),E=new p(`smart-wallet-${i}`),u=new g(a,new v(a,E),d,new y(e));return new W(t.environment,u,e)}async getOrCreateWallet(r,t,a={signer:{type:"PASSKEY"}}){if(!C())throw new o("Smart Wallet SDK should only be used client side.");return this.assertValidChain(t),await this.logger.logPerformance("GET_OR_CREATE_WALLET",async()=>{try{return await this.smartWalletService.getOrCreate(r,t,a)}catch(e){throw this.errorProcessor.map(e,new o(`Wallet creation failed: ${e.message}.`,A(e)))}})}assertValidChain(r){if(!this.validChain(r))throw new o(`The selected chain "${r}" is not available in "${this.crossmintEnv}". Either set a valid chain or check you're using an API key for the environment you're trying to target.`)}validChain(r){return this.crossmintEnv==="development"||this.crossmintEnv==="staging"?l(r):c(r)}};export{P as a};
1
+ import{a as S}from"./chunk-H4CMXNVK.js";import{a as y}from"./chunk-7COIRB4M.js";import{a as g}from"./chunk-GVRCHWHG.js";import{a as p}from"./chunk-P5PDYDCW.js";import{a as v}from"./chunk-ATQ4WGCW.js";import{a as f}from"./chunk-OC3YNPRX.js";import{a as h}from"./chunk-UG47CBKR.js";import{a as C}from"./chunk-D4NDUT36.js";import{a as m}from"./chunk-YYGR7VFT.js";import{a as n,b as s}from"./chunk-I22LKNPM.js";import{g as l,h as c}from"./chunk-KREX6Z32.js";import{a as w}from"./chunk-UL4HKRLD.js";import{d as i}from"./chunk-5FGSZZCU.js";import{a as o}from"./chunk-UPURFW46.js";import{stringify as A}from"viem";import{validateAPIKey as I}from"@crossmint/common-sdk-base";var P=class W{constructor(r,t,a,e=n){this.crossmintEnv=r;this.smartWalletService=t;this.errorProcessor=a;this.logger=e}static init({clientApiKey:r}){let t=I(r);if(!t.isValid)throw new Error("API key invalid");let a=new m(r),e=new w(s),d=new f(new h,new S(a.getPasskeyServerUrl(),r)),E=new p(`smart-wallet-${i}`),u=new g(a,new v(a,E),d,new y(e));return new W(t.environment,u,e)}async getOrCreateWallet(r,t,a={signer:{type:"PASSKEY"}}){if(!C())throw new o("Smart Wallet SDK should only be used client side.");return this.assertValidChain(t),await this.logger.logPerformance("GET_OR_CREATE_WALLET",async()=>{try{return await this.smartWalletService.getOrCreate(r,t,a)}catch(e){throw this.errorProcessor.map(e,new o(`Wallet creation failed: ${e.message}.`,A(e)))}})}assertValidChain(r){if(!this.validChain(r))throw new o(`The selected chain "${r}" is not available in "${this.crossmintEnv}". Either set a valid chain or check you're using an API key for the environment you're trying to target.`)}validChain(r){return this.crossmintEnv==="development"||this.crossmintEnv==="staging"?l(r):c(r)}};export{P as a};
@@ -0,0 +1 @@
1
+ import{defineChain as t}from"viem";var o=t({id:1514,name:"Story",nativeCurrency:{decimals:18,name:"IP Token",symbol:"IP"},rpcUrls:{default:{http:["https://mainnet.storyrpc.io"]}},testnet:!1});export{o as a};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkIQTGPM2Ucjs = require('./chunk-IQTGPM2U.cjs');var _chunkSWWOVT47cjs = require('./chunk-SWWOVT47.cjs');var _chunk2GS5TXEYcjs = require('./chunk-2GS5TXEY.cjs');var _chunk7FXFOOQUcjs = require('./chunk-7FXFOOQU.cjs');var _chunkJ3B47S4Tcjs = require('./chunk-J3B47S4T.cjs');var _permissionless = require('permissionless');var _pimlico = require('permissionless/clients/pimlico');var _viem = require('viem');var _commonsdkbase = require('@crossmint/common-sdk-base');var v=class{constructor(r,t,i,e){this.crossmintService=r;this.accountConfigService=t;this.accountCreator=i;this.clientDecorator=e}async getOrCreate(r,t,i){let{config:{entryPointVersion:e,kernelVersion:o,existing:n,userWithId:a},cached:g}=await this.accountConfigService.get(r,t),c=_viem.createPublicClient.call(void 0, {transport:_viem.http.call(void 0, _chunk7FXFOOQUcjs.b.call(void 0, t))}),{account:s,signerConfig:l}=await this.accountCreator.get({chain:t,walletParams:i,publicClient:c,user:a,entryPoint:e==="v0.6"?_permissionless.ENTRYPOINT_ADDRESS_V06:_permissionless.ENTRYPOINT_ADDRESS_V07,kernelVersion:o,existing:n});return n==null&&await this.crossmintService.idempotentCreateSmartWallet(r,{type:_chunkJ3B47S4Tcjs.a,smartContractWalletAddress:s.address,signerData:l.data,version:_chunkJ3B47S4Tcjs.b,baseLayer:"evm",chainId:_commonsdkbase.blockchainToChainId.call(void 0, t),entryPointVersion:e,kernelVersion:o}),g||this.accountConfigService.cache({entryPointVersion:e,kernelVersion:o,user:a,existing:{address:s.address,signerConfig:l}}),new (0, _chunkSWWOVT47cjs.a)({wallet:this.smartAccountClient(t,s,r),public:c},t,this.crossmintService)}smartAccountClient(r,t,i){let e=_viem.http.call(void 0, _chunk7FXFOOQUcjs.c.call(void 0, r)),o={chain:_chunk2GS5TXEYcjs.i[r],entryPoint:t.entryPoint},n=_pimlico.createPimlicoBundlerClient.call(void 0, {...o,transport:e}),a=_permissionless.createSmartAccountClient.call(void 0, {account:t,bundlerTransport:e,...o,..._chunkIQTGPM2Ucjs.a.call(void 0, r)&&_chunkIQTGPM2Ucjs.b.call(void 0, {bundlerClient:n,entryPoint:t.entryPoint,chain:r,walletService:this.crossmintService,user:i})});return this.clientDecorator.decorate({crossmintChain:r,smartAccountClient:a})}};exports.a = v;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkIQTGPM2Ucjs = require('./chunk-IQTGPM2U.cjs');var _chunkSWWOVT47cjs = require('./chunk-SWWOVT47.cjs');var _chunkIUIBQFWYcjs = require('./chunk-IUIBQFWY.cjs');var _chunkNQUKI27Mcjs = require('./chunk-NQUKI27M.cjs');var _chunkQBGECKSZcjs = require('./chunk-QBGECKSZ.cjs');var _permissionless = require('permissionless');var _pimlico = require('permissionless/clients/pimlico');var _viem = require('viem');var _commonsdkbase = require('@crossmint/common-sdk-base');var v=class{constructor(r,t,i,e){this.crossmintService=r;this.accountConfigService=t;this.accountCreator=i;this.clientDecorator=e}async getOrCreate(r,t,i){let{config:{entryPointVersion:e,kernelVersion:o,existing:n,userWithId:a},cached:g}=await this.accountConfigService.get(r,t),c=_viem.createPublicClient.call(void 0, {transport:_viem.http.call(void 0, _chunkIUIBQFWYcjs.b.call(void 0, t))}),{account:s,signerConfig:l}=await this.accountCreator.get({chain:t,walletParams:i,publicClient:c,user:a,entryPoint:e==="v0.6"?_permissionless.ENTRYPOINT_ADDRESS_V06:_permissionless.ENTRYPOINT_ADDRESS_V07,kernelVersion:o,existing:n});return n==null&&await this.crossmintService.idempotentCreateSmartWallet(r,{type:_chunkQBGECKSZcjs.a,smartContractWalletAddress:s.address,signerData:l.data,version:_chunkQBGECKSZcjs.b,baseLayer:"evm",chainId:_commonsdkbase.blockchainToChainId.call(void 0, t),entryPointVersion:e,kernelVersion:o}),g||this.accountConfigService.cache({entryPointVersion:e,kernelVersion:o,user:a,existing:{address:s.address,signerConfig:l}}),new (0, _chunkSWWOVT47cjs.a)({wallet:this.smartAccountClient(t,s,r),public:c},t,this.crossmintService)}smartAccountClient(r,t,i){let e=_viem.http.call(void 0, _chunkIUIBQFWYcjs.c.call(void 0, r)),o={chain:_chunkNQUKI27Mcjs.i[r],entryPoint:t.entryPoint},n=_pimlico.createPimlicoBundlerClient.call(void 0, {...o,transport:e}),a=_permissionless.createSmartAccountClient.call(void 0, {account:t,bundlerTransport:e,...o,..._chunkIQTGPM2Ucjs.a.call(void 0, r)&&_chunkIQTGPM2Ucjs.b.call(void 0, {bundlerClient:n,entryPoint:t.entryPoint,chain:r,walletService:this.crossmintService,user:i})});return this.clientDecorator.decorate({crossmintChain:r,smartAccountClient:a})}};exports.a = v;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _viem = require('viem');var r=_viem.defineChain.call(void 0, {id:1514,name:"Story",nativeCurrency:{decimals:18,name:"IP Token",symbol:"IP"},rpcUrls:{default:{http:["https://mainnet.storyrpc.io"]}},testnet:!1});exports.a = r;
@@ -1 +1 @@
1
- import{a as f,b as S}from"./chunk-NLGILHJS.js";import{a as d}from"./chunk-ETVJGLNY.js";import{i as C}from"./chunk-YBHSEZMB.js";import{b as y,c as u}from"./chunk-TZG6MROQ.js";import{a as m,b as p}from"./chunk-UJNS26ZK.js";import{ENTRYPOINT_ADDRESS_V06 as W,ENTRYPOINT_ADDRESS_V07 as A,createSmartAccountClient as E}from"permissionless";import{createPimlicoBundlerClient as h}from"permissionless/clients/pimlico";import{createPublicClient as D,http as P}from"viem";import{blockchainToChainId as R}from"@crossmint/common-sdk-base";var v=class{constructor(r,t,i,e){this.crossmintService=r;this.accountConfigService=t;this.accountCreator=i;this.clientDecorator=e}async getOrCreate(r,t,i){let{config:{entryPointVersion:e,kernelVersion:o,existing:n,userWithId:a},cached:g}=await this.accountConfigService.get(r,t),c=D({transport:P(y(t))}),{account:s,signerConfig:l}=await this.accountCreator.get({chain:t,walletParams:i,publicClient:c,user:a,entryPoint:e==="v0.6"?W:A,kernelVersion:o,existing:n});return n==null&&await this.crossmintService.idempotentCreateSmartWallet(r,{type:m,smartContractWalletAddress:s.address,signerData:l.data,version:p,baseLayer:"evm",chainId:R(t),entryPointVersion:e,kernelVersion:o}),g||this.accountConfigService.cache({entryPointVersion:e,kernelVersion:o,user:a,existing:{address:s.address,signerConfig:l}}),new d({wallet:this.smartAccountClient(t,s,r),public:c},t,this.crossmintService)}smartAccountClient(r,t,i){let e=P(u(r)),o={chain:C[r],entryPoint:t.entryPoint},n=h({...o,transport:e}),a=E({account:t,bundlerTransport:e,...o,...f(r)&&S({bundlerClient:n,entryPoint:t.entryPoint,chain:r,walletService:this.crossmintService,user:i})});return this.clientDecorator.decorate({crossmintChain:r,smartAccountClient:a})}};export{v as a};
1
+ import{a as f,b as S}from"./chunk-NLGILHJS.js";import{a as d}from"./chunk-ETVJGLNY.js";import{b as u,c as y}from"./chunk-OXRLBURF.js";import{i as C}from"./chunk-KREX6Z32.js";import{a as m,b as p}from"./chunk-5FGSZZCU.js";import{ENTRYPOINT_ADDRESS_V06 as W,ENTRYPOINT_ADDRESS_V07 as A,createSmartAccountClient as E}from"permissionless";import{createPimlicoBundlerClient as h}from"permissionless/clients/pimlico";import{createPublicClient as D,http as P}from"viem";import{blockchainToChainId as R}from"@crossmint/common-sdk-base";var v=class{constructor(r,t,i,e){this.crossmintService=r;this.accountConfigService=t;this.accountCreator=i;this.clientDecorator=e}async getOrCreate(r,t,i){let{config:{entryPointVersion:e,kernelVersion:o,existing:n,userWithId:a},cached:g}=await this.accountConfigService.get(r,t),c=D({transport:P(u(t))}),{account:s,signerConfig:l}=await this.accountCreator.get({chain:t,walletParams:i,publicClient:c,user:a,entryPoint:e==="v0.6"?W:A,kernelVersion:o,existing:n});return n==null&&await this.crossmintService.idempotentCreateSmartWallet(r,{type:m,smartContractWalletAddress:s.address,signerData:l.data,version:p,baseLayer:"evm",chainId:R(t),entryPointVersion:e,kernelVersion:o}),g||this.accountConfigService.cache({entryPointVersion:e,kernelVersion:o,user:a,existing:{address:s.address,signerConfig:l}}),new d({wallet:this.smartAccountClient(t,s,r),public:c},t,this.crossmintService)}smartAccountClient(r,t,i){let e=P(y(r)),o={chain:C[r],entryPoint:t.entryPoint},n=h({...o,transport:e}),a=E({account:t,bundlerTransport:e,...o,...f(r)&&S({bundlerClient:n,entryPoint:t.entryPoint,chain:r,walletService:this.crossmintService,user:i})});return this.clientDecorator.decorate({crossmintChain:r,smartAccountClient:a})}};export{v as a};
@@ -1,3 +1,3 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLLPLUI62cjs = require('./chunk-LLPLUI62.cjs');var _chunkM4K3IZTTcjs = require('./chunk-M4K3IZTT.cjs');var o=class{constructor(e,r){this.eoaStrategy=e;this.passkeyStrategy=r}get(e){if(_chunkLLPLUI62cjs.d.call(void 0, e))return this.passkeyStrategy.create(e);if(_chunkLLPLUI62cjs.f.call(void 0, e))return this.eoaStrategy.create(e);if(e.existing==null)throw new (0, _chunkM4K3IZTTcjs.h)(`Unsupported wallet params:
2
- ${e.walletParams}`);let r=e.existing.signerConfig.display(),y=_chunkLLPLUI62cjs.c.call(void 0, e.walletParams)?"passkey":"eoa";throw new (0, _chunkM4K3IZTTcjs.b)(`Cannot create wallet with ${y} signer for user ${e.user.id}', they already have a wallet with signer:
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkMECWQ5TQcjs = require('./chunk-MECWQ5TQ.cjs');var _chunkM4K3IZTTcjs = require('./chunk-M4K3IZTT.cjs');var o=class{constructor(e,r){this.eoaStrategy=e;this.passkeyStrategy=r}get(e){if(_chunkMECWQ5TQcjs.d.call(void 0, e))return this.passkeyStrategy.create(e);if(_chunkMECWQ5TQcjs.f.call(void 0, e))return this.eoaStrategy.create(e);if(e.existing==null)throw new (0, _chunkM4K3IZTTcjs.h)(`Unsupported wallet params:
2
+ ${e.walletParams}`);let r=e.existing.signerConfig.display(),y=_chunkMECWQ5TQcjs.c.call(void 0, e.walletParams)?"passkey":"eoa";throw new (0, _chunkM4K3IZTTcjs.b)(`Cannot create wallet with ${y} signer for user ${e.user.id}', they already have a wallet with signer:
3
3
  '${JSON.stringify(r,null,2)}'`,r)}};exports.a = o;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _viem = require('viem');var s=_viem.defineChain.call(void 0, {id:1513,name:"Story Testnet",nativeCurrency:{decimals:18,name:"IP",symbol:"IP"},rpcUrls:{default:{http:["https://testnet.storyrpc.io"]}},blockExplorers:{default:{name:"Story Testnet Explorer",url:"https://testnet.storyscan.xyz"}},testnet:!0});exports.a = s;
@@ -1 +1 @@
1
- import{c as o}from"./chunk-UJNS26ZK.js";import{SDKLogger as r,getBrowserLogger as e}from"@crossmint/client-sdk-base";var w=new r(o),a=new r(o,e(o,{onlyDatadog:!0}));export{w as a,a as b};
1
+ import{c as o}from"./chunk-5FGSZZCU.js";import{SDKLogger as r,getBrowserLogger as e}from"@crossmint/client-sdk-base";var w=new r(o),a=new r(o,e(o,{onlyDatadog:!0}));export{w as a,a as b};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWJ6XJMRDcjs = require('./chunk-WJ6XJMRD.cjs');var _chunkP667U3QJcjs = require('./chunk-P667U3QJ.cjs');var _chunkM4K3IZTTcjs = require('./chunk-M4K3IZTT.cjs');var _viem = require('viem');var h=["sendTransaction","writeContract","sendUserOperation"],g=["signMessage","signTypedData"];function c(a){return h.includes(a)}function p(a){return g.includes(a)}var u=class{constructor(o,t=_chunkP667U3QJcjs.a){this.errorProcessor=o;this.logger=t}decorate({crossmintChain:o,smartAccountClient:t}){return new Proxy(t,{get:(n,e,s)=>{let r=Reflect.get(n,e,s);return typeof r!="function"||typeof e!="string"||!(p(e)||c(e))?r:(...i)=>this.logger.logPerformance(`CrossmintSmartWallet.${e}`,()=>this.execute(n,e,r,i,o))}})}async execute(o,t,n,e,s){try{this.logger.log(`[CrossmintSmartWallet.${t}] - params: ${_viem.stringify.call(void 0, e)}`);let r=c(t)?this.processTxnArgs(t,s,e):e;return await n.call(o,...r)}catch(r){let i=c(t)?"signing":"sending transaction";throw this.errorProcessor.map(r,new (0, _chunkM4K3IZTTcjs.a)(`Error ${i}: ${r.message}`,_viem.stringify.call(void 0, r)))}}processTxnArgs(o,t,n){if(o==="sendUserOperation"){let[{userOperation:s,middleware:r,account:i}]=n;return[{middleware:r,account:i,userOperation:this.addGelatoBundlerProperties(t,s)},...n.slice(1)]}let[e]=n;return[this.addGelatoBundlerProperties(t,e),...n.slice(1)]}addGelatoBundlerProperties(o,t){return _chunkWJ6XJMRDcjs.a.call(void 0, o)?{...t,maxFeePerGas:"0x0",maxPriorityFeePerGas:"0x0"}:t}};exports.a = u;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWJ6XJMRDcjs = require('./chunk-WJ6XJMRD.cjs');var _chunkRLVETRLFcjs = require('./chunk-RLVETRLF.cjs');var _chunkM4K3IZTTcjs = require('./chunk-M4K3IZTT.cjs');var _viem = require('viem');var h=["sendTransaction","writeContract","sendUserOperation"],g=["signMessage","signTypedData"];function c(a){return h.includes(a)}function p(a){return g.includes(a)}var u=class{constructor(o,t=_chunkRLVETRLFcjs.a){this.errorProcessor=o;this.logger=t}decorate({crossmintChain:o,smartAccountClient:t}){return new Proxy(t,{get:(n,e,s)=>{let r=Reflect.get(n,e,s);return typeof r!="function"||typeof e!="string"||!(p(e)||c(e))?r:(...i)=>this.logger.logPerformance(`CrossmintSmartWallet.${e}`,()=>this.execute(n,e,r,i,o))}})}async execute(o,t,n,e,s){try{this.logger.log(`[CrossmintSmartWallet.${t}] - params: ${_viem.stringify.call(void 0, e)}`);let r=c(t)?this.processTxnArgs(t,s,e):e;return await n.call(o,...r)}catch(r){let i=c(t)?"signing":"sending transaction";throw this.errorProcessor.map(r,new (0, _chunkM4K3IZTTcjs.a)(`Error ${i}: ${r.message}`,_viem.stringify.call(void 0, r)))}}processTxnArgs(o,t,n){if(o==="sendUserOperation"){let[{userOperation:s,middleware:r,account:i}]=n;return[{middleware:r,account:i,userOperation:this.addGelatoBundlerProperties(t,s)},...n.slice(1)]}let[e]=n;return[this.addGelatoBundlerProperties(t,e),...n.slice(1)]}addGelatoBundlerProperties(o,t){return _chunkWJ6XJMRDcjs.a.call(void 0, o)?{...t,maxFeePerGas:"0x0",maxPriorityFeePerGas:"0x0"}:t}};exports.a = u;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNQUKI27Mcjs = require('./chunk-NQUKI27M.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');var i="-7M6vRDBDknwvMxnqah_jbcieWg0qad9",e="pim_9dKmQPxiTCvtbUNF7XFBbA",r= exports.a ={polygon:"polygon-mainnet","polygon-amoy":"polygon-amoy",base:"base-mainnet","base-sepolia":"base-sepolia",optimism:"opt-mainnet","optimism-sepolia":"opt-sepolia",arbitrum:"arb-mainnet","arbitrum-sepolia":"arb-sepolia"};function n(t){return`https://${r[t]}.g.alchemy.com/v2/${i}`}function s(t){return t==="story-testnet"||t==="story"?_chunkNQUKI27Mcjs.i[t].rpcUrls.default.http[0]:n(t)}function c(t){return`https://api.pimlico.io/v2/${_commonsdkbase.blockchainToChainId.call(void 0, t)}/rpc?apikey=${e}`}exports.a = r; exports.b = s; exports.c = c;
@@ -0,0 +1 @@
1
+ import{a as n}from"./chunk-NT7LBRZQ.js";import{a as o}from"./chunk-DYVHPARQ.js";import{arbitrum as s,arbitrumSepolia as l,base as S,baseSepolia as p,optimism as m,optimismSepolia as T,polygon as O,polygonAmoy as c}from"viem/chains";import{BlockchainIncludingTestnet as t,objectValues as a}from"@crossmint/common-sdk-base";var r={BASE_SEPOLIA:t.BASE_SEPOLIA,POLYGON_AMOY:t.POLYGON_AMOY,OPTIMISM_SEPOLIA:t.OPTIMISM_SEPOLIA,ARBITRUM_SEPOLIA:t.ARBITRUM_SEPOLIA,STORY_TESTNET:t.STORY_TESTNET},A=a(r),i={BASE:t.BASE,POLYGON:t.POLYGON,OPTIMISM:t.OPTIMISM,ARBITRUM:t.ARBITRUM,STORY:t.STORY},M=a(i),I={...r,...i},_=a(I);function h(e){return A.includes(e)}function P(e){return M.includes(e)}var b={polygon:O,"polygon-amoy":c,base:S,"base-sepolia":p,optimism:m,"optimism-sepolia":T,arbitrum:s,"arbitrum-sepolia":l,"story-testnet":n,story:o};export{r as a,A as b,i as c,M as d,I as e,_ as f,h as g,P as h,b as i};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJ3B47S4Tcjs = require('./chunk-J3B47S4T.cjs');function l(e){return _chunkJ3B47S4Tcjs.f.includes(e)}function p(e){return _chunkJ3B47S4Tcjs.g.includes(e)}function i(e){return"signer"in e&&"type"in e.signer&&e.signer.type==="PASSKEY"}function g(e){let t=e.existing==null||e.existing.signerConfig.type==="passkeys";return i(e.walletParams)&&t}function s(e){return"signer"in e&&("type"in e.signer&&e.signer.type==="VIEM_ACCOUNT"||"request"in e.signer&&typeof e.signer.request=="function")}function P(e){let t=e.existing==null||e.existing.signerConfig.type==="eoa";return s(e.walletParams)&&t}exports.a = l; exports.b = p; exports.c = i; exports.d = g; exports.e = s; exports.f = P;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQBGECKSZcjs = require('./chunk-QBGECKSZ.cjs');function l(e){return _chunkQBGECKSZcjs.f.includes(e)}function p(e){return _chunkQBGECKSZcjs.g.includes(e)}function i(e){return"signer"in e&&"type"in e.signer&&e.signer.type==="PASSKEY"}function g(e){let t=e.existing==null||e.existing.signerConfig.type==="passkeys";return i(e.walletParams)&&t}function s(e){return"signer"in e&&("type"in e.signer&&e.signer.type==="VIEM_ACCOUNT"||"request"in e.signer&&typeof e.signer.request=="function")}function P(e){let t=e.existing==null||e.existing.signerConfig.type==="eoa";return s(e.walletParams)&&t}exports.a = l; exports.b = p; exports.c = i; exports.d = g; exports.e = s; exports.f = P;
@@ -1 +1 @@
1
- import{f as a,g as n}from"./chunk-UJNS26ZK.js";import{PasskeyValidatorContractVersion as o}from"@zerodev/passkey-validator";import{isAddress as i,isHex as d}from"viem";import{z as e}from"zod";var m=e.custom(t=>d(t),{message:"Invalid hex string"}),s=e.custom(t=>i(t),{message:"Invalid evm address"}),p=e.object({eoaAddress:s,type:e.literal("eoa")}),c=e.object({entryPoint:s,validatorAddress:s,pubKeyX:e.string(),pubKeyY:e.string(),authenticatorIdHash:m,authenticatorId:e.string()}),l=c.extend({passkeyName:e.string(),validatorContractVersion:e.nativeEnum(o),domain:e.string(),type:e.literal("passkeys")}),g=e.discriminatedUnion("type",[l,p]),h=e.object({kernelVersion:e.enum(a,{errorMap:(t,r)=>({message:`Unsupported kernel version. Supported versions: ${a.join(", ")}. Version used: ${r.data}. Please contact support`})}),entryPointVersion:e.enum(n,{errorMap:(t,r)=>({message:`Unsupported entry point version. Supported versions: ${n.join(", ")}. Version used: ${r.data}. Please contact support`})}),userId:e.string().min(1),signers:e.array(e.object({signerData:g})).min(0).max(1,"Invalid wallet signer configuration. Please contact support"),smartContractWalletAddress:s.optional()});export{p as a,c as b,l as c,g as d,h as e};
1
+ import{f as a,g as n}from"./chunk-5FGSZZCU.js";import{PasskeyValidatorContractVersion as o}from"@zerodev/passkey-validator";import{isAddress as i,isHex as d}from"viem";import{z as e}from"zod";var m=e.custom(t=>d(t),{message:"Invalid hex string"}),s=e.custom(t=>i(t),{message:"Invalid evm address"}),p=e.object({eoaAddress:s,type:e.literal("eoa")}),c=e.object({entryPoint:s,validatorAddress:s,pubKeyX:e.string(),pubKeyY:e.string(),authenticatorIdHash:m,authenticatorId:e.string()}),l=c.extend({passkeyName:e.string(),validatorContractVersion:e.nativeEnum(o),domain:e.string(),type:e.literal("passkeys")}),g=e.discriminatedUnion("type",[l,p]),h=e.object({kernelVersion:e.enum(a,{errorMap:(t,r)=>({message:`Unsupported kernel version. Supported versions: ${a.join(", ")}. Version used: ${r.data}. Please contact support`})}),entryPointVersion:e.enum(n,{errorMap:(t,r)=>({message:`Unsupported entry point version. Supported versions: ${n.join(", ")}. Version used: ${r.data}. Please contact support`})}),userId:e.string().min(1),signers:e.array(e.object({signerData:g})).min(0).max(1,"Invalid wallet signer configuration. Please contact support"),smartContractWalletAddress:s.optional()});export{p as a,c as b,l as c,g as d,h as e};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJ3B47S4Tcjs = require('./chunk-J3B47S4T.cjs');var _passkeyvalidator = require('@zerodev/passkey-validator');var _viem = require('viem');var _zod = require('zod');var m=_zod.z.custom(t=>_viem.isHex.call(void 0, t),{message:"Invalid hex string"}),s=_zod.z.custom(t=>_viem.isAddress.call(void 0, t),{message:"Invalid evm address"}),p= exports.a =_zod.z.object({eoaAddress:s,type:_zod.z.literal("eoa")}),c= exports.b =_zod.z.object({entryPoint:s,validatorAddress:s,pubKeyX:_zod.z.string(),pubKeyY:_zod.z.string(),authenticatorIdHash:m,authenticatorId:_zod.z.string()}),l= exports.c =c.extend({passkeyName:_zod.z.string(),validatorContractVersion:_zod.z.nativeEnum(_passkeyvalidator.PasskeyValidatorContractVersion),domain:_zod.z.string(),type:_zod.z.literal("passkeys")}),g= exports.d =_zod.z.discriminatedUnion("type",[l,p]),P= exports.e =_zod.z.object({kernelVersion:_zod.z.enum(_chunkJ3B47S4Tcjs.f,{errorMap:(t,r)=>({message:`Unsupported kernel version. Supported versions: ${_chunkJ3B47S4Tcjs.f.join(", ")}. Version used: ${r.data}. Please contact support`})}),entryPointVersion:_zod.z.enum(_chunkJ3B47S4Tcjs.g,{errorMap:(t,r)=>({message:`Unsupported entry point version. Supported versions: ${_chunkJ3B47S4Tcjs.g.join(", ")}. Version used: ${r.data}. Please contact support`})}),userId:_zod.z.string().min(1),signers:_zod.z.array(_zod.z.object({signerData:g})).min(0).max(1,"Invalid wallet signer configuration. Please contact support"),smartContractWalletAddress:s.optional()});exports.a = p; exports.b = c; exports.c = l; exports.d = g; exports.e = P;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQBGECKSZcjs = require('./chunk-QBGECKSZ.cjs');var _passkeyvalidator = require('@zerodev/passkey-validator');var _viem = require('viem');var _zod = require('zod');var m=_zod.z.custom(t=>_viem.isHex.call(void 0, t),{message:"Invalid hex string"}),s=_zod.z.custom(t=>_viem.isAddress.call(void 0, t),{message:"Invalid evm address"}),p= exports.a =_zod.z.object({eoaAddress:s,type:_zod.z.literal("eoa")}),c= exports.b =_zod.z.object({entryPoint:s,validatorAddress:s,pubKeyX:_zod.z.string(),pubKeyY:_zod.z.string(),authenticatorIdHash:m,authenticatorId:_zod.z.string()}),l= exports.c =c.extend({passkeyName:_zod.z.string(),validatorContractVersion:_zod.z.nativeEnum(_passkeyvalidator.PasskeyValidatorContractVersion),domain:_zod.z.string(),type:_zod.z.literal("passkeys")}),g= exports.d =_zod.z.discriminatedUnion("type",[l,p]),P= exports.e =_zod.z.object({kernelVersion:_zod.z.enum(_chunkQBGECKSZcjs.f,{errorMap:(t,r)=>({message:`Unsupported kernel version. Supported versions: ${_chunkQBGECKSZcjs.f.join(", ")}. Version used: ${r.data}. Please contact support`})}),entryPointVersion:_zod.z.enum(_chunkQBGECKSZcjs.g,{errorMap:(t,r)=>({message:`Unsupported entry point version. Supported versions: ${_chunkQBGECKSZcjs.g.join(", ")}. Version used: ${r.data}. Please contact support`})}),userId:_zod.z.string().min(1),signers:_zod.z.array(_zod.z.object({signerData:g})).min(0).max(1,"Invalid wallet signer configuration. Please contact support"),smartContractWalletAddress:s.optional()});exports.a = p; exports.b = c; exports.c = l; exports.d = g; exports.e = P;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkHQXF6VHPcjs = require('./chunk-HQXF6VHP.cjs');var _chunkGPZ7PHS6cjs = require('./chunk-GPZ7PHS6.cjs');var _chains = require('viem/chains');var _commonsdkbase = require('@crossmint/common-sdk-base');var r={BASE_SEPOLIA:_commonsdkbase.BlockchainIncludingTestnet.BASE_SEPOLIA,POLYGON_AMOY:_commonsdkbase.BlockchainIncludingTestnet.POLYGON_AMOY,OPTIMISM_SEPOLIA:_commonsdkbase.BlockchainIncludingTestnet.OPTIMISM_SEPOLIA,ARBITRUM_SEPOLIA:_commonsdkbase.BlockchainIncludingTestnet.ARBITRUM_SEPOLIA,STORY_TESTNET:_commonsdkbase.BlockchainIncludingTestnet.STORY_TESTNET},A= exports.b =_commonsdkbase.objectValues.call(void 0, r),i= exports.c ={BASE:_commonsdkbase.BlockchainIncludingTestnet.BASE,POLYGON:_commonsdkbase.BlockchainIncludingTestnet.POLYGON,OPTIMISM:_commonsdkbase.BlockchainIncludingTestnet.OPTIMISM,ARBITRUM:_commonsdkbase.BlockchainIncludingTestnet.ARBITRUM,STORY:_commonsdkbase.BlockchainIncludingTestnet.STORY},M= exports.d =_commonsdkbase.objectValues.call(void 0, i),I= exports.e ={...r,...i},R= exports.f =_commonsdkbase.objectValues.call(void 0, I);function _(e){return A.includes(e)}function h(e){return M.includes(e)}var P={polygon:_chains.polygon,"polygon-amoy":_chains.polygonAmoy,base:_chains.base,"base-sepolia":_chains.baseSepolia,optimism:_chains.optimism,"optimism-sepolia":_chains.optimismSepolia,arbitrum:_chains.arbitrum,"arbitrum-sepolia":_chains.arbitrumSepolia,"story-testnet":_chunkHQXF6VHPcjs.a,story:_chunkGPZ7PHS6cjs.a};exports.a = r; exports.b = A; exports.c = i; exports.d = M; exports.e = I; exports.f = R; exports.g = _; exports.h = h; exports.i = P;
@@ -0,0 +1 @@
1
+ import{defineChain as t}from"viem";var n=t({id:1513,name:"Story Testnet",nativeCurrency:{decimals:18,name:"IP",symbol:"IP"},rpcUrls:{default:{http:["https://testnet.storyrpc.io"]}},blockExplorers:{default:{name:"Story Testnet Explorer",url:"https://testnet.storyscan.xyz"}},testnet:!0});export{n as a};
@@ -1,3 +1,3 @@
1
- import{c as i,d as s,f as n}from"./chunk-4AABLN7G.js";import{b as a,h as t}from"./chunk-UPURFW46.js";var o=class{constructor(e,r){this.eoaStrategy=e;this.passkeyStrategy=r}get(e){if(s(e))return this.passkeyStrategy.create(e);if(n(e))return this.eoaStrategy.create(e);if(e.existing==null)throw new t(`Unsupported wallet params:
1
+ import{c as i,d as s,f as n}from"./chunk-74J3L7KP.js";import{b as a,h as t}from"./chunk-UPURFW46.js";var o=class{constructor(e,r){this.eoaStrategy=e;this.passkeyStrategy=r}get(e){if(s(e))return this.passkeyStrategy.create(e);if(n(e))return this.eoaStrategy.create(e);if(e.existing==null)throw new t(`Unsupported wallet params:
2
2
  ${e.walletParams}`);let r=e.existing.signerConfig.display(),y=i(e.walletParams)?"passkey":"eoa";throw new a(`Cannot create wallet with ${y} signer for user ${e.user.id}', they already have a wallet with signer:
3
3
  '${JSON.stringify(r,null,2)}'`,r)}};export{o as a};
@@ -0,0 +1 @@
1
+ import{i as o}from"./chunk-KREX6Z32.js";import{blockchainToChainId as a}from"@crossmint/common-sdk-base";var i="-7M6vRDBDknwvMxnqah_jbcieWg0qad9",e="pim_9dKmQPxiTCvtbUNF7XFBbA",r={polygon:"polygon-mainnet","polygon-amoy":"polygon-amoy",base:"base-mainnet","base-sepolia":"base-sepolia",optimism:"opt-mainnet","optimism-sepolia":"opt-sepolia",arbitrum:"arb-mainnet","arbitrum-sepolia":"arb-sepolia"};function n(t){return`https://${r[t]}.g.alchemy.com/v2/${i}`}function c(t){return t==="story-testnet"||t==="story"?o[t].rpcUrls.default.http[0]:n(t)}function C(t){return`https://api.pimlico.io/v2/${a(t)}/rpc?apikey=${e}`}export{r as a,c as b,C as c};
@@ -1 +1 @@
1
- import{e as l}from"./chunk-KDSNCQVN.js";import{keccak256 as o,toHex as i}from"viem";var s=class{constructor(e){this.keyPrefix=e}set(e,t){localStorage.setItem(this.key(e),JSON.stringify(t))}get(e){let t=this.key(e),r=localStorage.getItem(t);if(r==null)return null;let a=l.safeParse(JSON.parse(r));return a.success?a.data:(localStorage.removeItem(t),null)}clear(){for(let e=0;e<localStorage.length;e++){let t=localStorage.key(e);t&&t.startsWith(this.keyPrefix)&&(localStorage.removeItem(t),e--)}}key(e){return`${this.keyPrefix}-${o(i(e.jwt))}`}};export{s as a};
1
+ import{e as l}from"./chunk-MLZJIYAZ.js";import{keccak256 as o,toHex as i}from"viem";var s=class{constructor(e){this.keyPrefix=e}set(e,t){localStorage.setItem(this.key(e),JSON.stringify(t))}get(e){let t=this.key(e),r=localStorage.getItem(t);if(r==null)return null;let a=l.safeParse(JSON.parse(r));return a.success?a.data:(localStorage.removeItem(t),null)}clear(){for(let e=0;e<localStorage.length;e++){let t=localStorage.key(e);t&&t.startsWith(this.keyPrefix)&&(localStorage.removeItem(t),e--)}}key(e){return`${this.keyPrefix}-${o(i(e.jwt))}`}};export{s as a};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var e="0.1.33";var n="ZeroDev",r= exports.b =0,d= exports.c ="SCW_SDK",c= exports.d =e,p= exports.e ="2024-06-09",a= exports.f =["0.3.1","0.3.0","0.2.4"],m= exports.g =["v0.6","v0.7"];exports.a = n; exports.b = r; exports.c = d; exports.d = c; exports.e = p; exports.f = a; exports.g = m;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var e="0.1.35";var n="ZeroDev",r= exports.b =0,d= exports.c ="SCW_SDK",c= exports.d =e,p= exports.e ="2024-06-09",a= exports.f =["0.3.1","0.3.0","0.2.4"],m= exports.g =["v0.6","v0.7"];exports.a = n; exports.b = r; exports.c = d; exports.d = c; exports.e = p; exports.f = a; exports.g = m;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNLANHQA3cjs = require('./chunk-NLANHQA3.cjs');var _viem = require('viem');var s=class{constructor(e){this.keyPrefix=e}set(e,t){localStorage.setItem(this.key(e),JSON.stringify(t))}get(e){let t=this.key(e),r=localStorage.getItem(t);if(r==null)return null;let a=_chunkNLANHQA3cjs.e.safeParse(JSON.parse(r));return a.success?a.data:(localStorage.removeItem(t),null)}clear(){for(let e=0;e<localStorage.length;e++){let t=localStorage.key(e);t&&t.startsWith(this.keyPrefix)&&(localStorage.removeItem(t),e--)}}key(e){return`${this.keyPrefix}-${_viem.keccak256.call(void 0, _viem.toHex.call(void 0, e.jwt))}`}};exports.a = s;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkN64VSC3Hcjs = require('./chunk-N64VSC3H.cjs');var _viem = require('viem');var s=class{constructor(e){this.keyPrefix=e}set(e,t){localStorage.setItem(this.key(e),JSON.stringify(t))}get(e){let t=this.key(e),r=localStorage.getItem(t);if(r==null)return null;let a=_chunkN64VSC3Hcjs.e.safeParse(JSON.parse(r));return a.success?a.data:(localStorage.removeItem(t),null)}clear(){for(let e=0;e<localStorage.length;e++){let t=localStorage.key(e);t&&t.startsWith(this.keyPrefix)&&(localStorage.removeItem(t),e--)}}key(e){return`${this.keyPrefix}-${_viem.keccak256.call(void 0, _viem.toHex.call(void 0, e.jwt))}`}};exports.a = s;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQBGECKSZcjs = require('./chunk-QBGECKSZ.cjs');var _clientsdkbase = require('@crossmint/client-sdk-base');var s=new (0, _clientsdkbase.SDKLogger)(_chunkQBGECKSZcjs.c),w= exports.b =new (0, _clientsdkbase.SDKLogger)(_chunkQBGECKSZcjs.c,_clientsdkbase.getBrowserLogger.call(void 0, _chunkQBGECKSZcjs.c,{onlyDatadog:!0}));exports.a = s; exports.b = w;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJ3B47S4Tcjs = require('./chunk-J3B47S4T.cjs');var _chunkM4K3IZTTcjs = require('./chunk-M4K3IZTT.cjs');var _viem = require('viem');var r=class{constructor(n){this.logger=n}map(n,t){return this.record(n),n instanceof _chunkM4K3IZTTcjs.a||n instanceof _viem.BaseError?n:t}record(n){let t=n instanceof Error?n.message:String(n);this.logger.error(`Smart Wallet SDK Error: ${t}`,{stack:n instanceof Error?n.stack:void 0,name:n instanceof Error?n.name:"UnknownError",details:_viem.stringify.call(void 0, n),domain:window.location.hostname,sdk_version:_chunkJ3B47S4Tcjs.d})}};exports.a = r;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQBGECKSZcjs = require('./chunk-QBGECKSZ.cjs');var _chunkM4K3IZTTcjs = require('./chunk-M4K3IZTT.cjs');var _viem = require('viem');var r=class{constructor(n){this.logger=n}map(n,t){return this.record(n),n instanceof _chunkM4K3IZTTcjs.a||n instanceof _viem.BaseError?n:t}record(n){let t=n instanceof Error?n.message:String(n);this.logger.error(`Smart Wallet SDK Error: ${t}`,{stack:n instanceof Error?n.stack:void 0,name:n instanceof Error?n.name:"UnknownError",details:_viem.stringify.call(void 0, n),domain:window.location.hostname,sdk_version:_chunkQBGECKSZcjs.d})}};exports.a = r;
@@ -1 +1 @@
1
- import{d as o}from"./chunk-UJNS26ZK.js";import{a}from"./chunk-UPURFW46.js";import{BaseError as e,stringify as i}from"viem";var r=class{constructor(n){this.logger=n}map(n,t){return this.record(n),n instanceof a||n instanceof e?n:t}record(n){let t=n instanceof Error?n.message:String(n);this.logger.error(`Smart Wallet SDK Error: ${t}`,{stack:n instanceof Error?n.stack:void 0,name:n instanceof Error?n.name:"UnknownError",details:i(n),domain:window.location.hostname,sdk_version:o})}};export{r as a};
1
+ import{d as o}from"./chunk-5FGSZZCU.js";import{a}from"./chunk-UPURFW46.js";import{BaseError as e,stringify as i}from"viem";var r=class{constructor(n){this.logger=n}map(n,t){return this.record(n),n instanceof a||n instanceof e?n:t}record(n){let t=n instanceof Error?n.message:String(n);this.logger.error(`Smart Wallet SDK Error: ${t}`,{stack:n instanceof Error?n.stack:void 0,name:n instanceof Error?n.name:"UnknownError",details:i(n),domain:window.location.hostname,sdk_version:o})}};export{r as a};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSCXFZMLRcjs = require('./chunk-SCXFZMLR.cjs');var _chunkULB7AXH7cjs = require('./chunk-ULB7AXH7.cjs');var _chunk4MLLGQIUcjs = require('./chunk-4MLLGQIU.cjs');var _chunkWFVB4TXXcjs = require('./chunk-WFVB4TXX.cjs');var _chunkO2ACORIIcjs = require('./chunk-O2ACORII.cjs');var _chunk7E6ETPYPcjs = require('./chunk-7E6ETPYP.cjs');var _chunk2R6HK64Ncjs = require('./chunk-2R6HK64N.cjs');var _chunkSTH2LE35cjs = require('./chunk-STH2LE35.cjs');var _chunk32JB5X5Lcjs = require('./chunk-32JB5X5L.cjs');var _chunkP667U3QJcjs = require('./chunk-P667U3QJ.cjs');var _chunk2GS5TXEYcjs = require('./chunk-2GS5TXEY.cjs');var _chunk2X24AXEVcjs = require('./chunk-2X24AXEV.cjs');var _chunkJ3B47S4Tcjs = require('./chunk-J3B47S4T.cjs');var _chunkM4K3IZTTcjs = require('./chunk-M4K3IZTT.cjs');var _viem = require('viem');var _commonsdkbase = require('@crossmint/common-sdk-base');var P=class W{constructor(r,t,a,e=_chunkP667U3QJcjs.a){this.crossmintEnv=r;this.smartWalletService=t;this.errorProcessor=a;this.logger=e}static init({clientApiKey:r}){let t=_commonsdkbase.validateAPIKey.call(void 0, r);if(!t.isValid)throw new Error("API key invalid");let a=new (0, _chunk32JB5X5Lcjs.a)(r),e=new (0, _chunk2X24AXEVcjs.a)(_chunkP667U3QJcjs.b),d=new (0, _chunk7E6ETPYPcjs.a)(new _chunk2R6HK64Ncjs.a,new (0, _chunkSCXFZMLRcjs.a)(a.getPasskeyServerUrl(),r)),E=new (0, _chunkWFVB4TXXcjs.a)(`smart-wallet-${_chunkJ3B47S4Tcjs.d}`),u=new (0, _chunk4MLLGQIUcjs.a)(a,new (0, _chunkO2ACORIIcjs.a)(a,E),d,new (0, _chunkULB7AXH7cjs.a)(e));return new W(t.environment,u,e)}async getOrCreateWallet(r,t,a={signer:{type:"PASSKEY"}}){if(!_chunkSTH2LE35cjs.a.call(void 0, ))throw new (0, _chunkM4K3IZTTcjs.a)("Smart Wallet SDK should only be used client side.");return this.assertValidChain(t),await this.logger.logPerformance("GET_OR_CREATE_WALLET",async()=>{try{return await this.smartWalletService.getOrCreate(r,t,a)}catch(e){throw this.errorProcessor.map(e,new (0, _chunkM4K3IZTTcjs.a)(`Wallet creation failed: ${e.message}.`,_viem.stringify.call(void 0, e)))}})}assertValidChain(r){if(!this.validChain(r))throw new (0, _chunkM4K3IZTTcjs.a)(`The selected chain "${r}" is not available in "${this.crossmintEnv}". Either set a valid chain or check you're using an API key for the environment you're trying to target.`)}validChain(r){return this.crossmintEnv==="development"||this.crossmintEnv==="staging"?_chunk2GS5TXEYcjs.g.call(void 0, r):_chunk2GS5TXEYcjs.h.call(void 0, r)}};exports.a = P;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSCXFZMLRcjs = require('./chunk-SCXFZMLR.cjs');var _chunkICKMQEHAcjs = require('./chunk-ICKMQEHA.cjs');var _chunkERDSL6AZcjs = require('./chunk-ERDSL6AZ.cjs');var _chunkQQEJPZKNcjs = require('./chunk-QQEJPZKN.cjs');var _chunkO2ACORIIcjs = require('./chunk-O2ACORII.cjs');var _chunkHN42GEK5cjs = require('./chunk-HN42GEK5.cjs');var _chunk2R6HK64Ncjs = require('./chunk-2R6HK64N.cjs');var _chunkSTH2LE35cjs = require('./chunk-STH2LE35.cjs');var _chunk76TIESKQcjs = require('./chunk-76TIESKQ.cjs');var _chunkRLVETRLFcjs = require('./chunk-RLVETRLF.cjs');var _chunkNQUKI27Mcjs = require('./chunk-NQUKI27M.cjs');var _chunkSODH64MGcjs = require('./chunk-SODH64MG.cjs');var _chunkQBGECKSZcjs = require('./chunk-QBGECKSZ.cjs');var _chunkM4K3IZTTcjs = require('./chunk-M4K3IZTT.cjs');var _viem = require('viem');var _commonsdkbase = require('@crossmint/common-sdk-base');var P=class W{constructor(r,t,a,e=_chunkRLVETRLFcjs.a){this.crossmintEnv=r;this.smartWalletService=t;this.errorProcessor=a;this.logger=e}static init({clientApiKey:r}){let t=_commonsdkbase.validateAPIKey.call(void 0, r);if(!t.isValid)throw new Error("API key invalid");let a=new (0, _chunk76TIESKQcjs.a)(r),e=new (0, _chunkSODH64MGcjs.a)(_chunkRLVETRLFcjs.b),d=new (0, _chunkHN42GEK5cjs.a)(new _chunk2R6HK64Ncjs.a,new (0, _chunkSCXFZMLRcjs.a)(a.getPasskeyServerUrl(),r)),E=new (0, _chunkQQEJPZKNcjs.a)(`smart-wallet-${_chunkQBGECKSZcjs.d}`),u=new (0, _chunkERDSL6AZcjs.a)(a,new (0, _chunkO2ACORIIcjs.a)(a,E),d,new (0, _chunkICKMQEHAcjs.a)(e));return new W(t.environment,u,e)}async getOrCreateWallet(r,t,a={signer:{type:"PASSKEY"}}){if(!_chunkSTH2LE35cjs.a.call(void 0, ))throw new (0, _chunkM4K3IZTTcjs.a)("Smart Wallet SDK should only be used client side.");return this.assertValidChain(t),await this.logger.logPerformance("GET_OR_CREATE_WALLET",async()=>{try{return await this.smartWalletService.getOrCreate(r,t,a)}catch(e){throw this.errorProcessor.map(e,new (0, _chunkM4K3IZTTcjs.a)(`Wallet creation failed: ${e.message}.`,_viem.stringify.call(void 0, e)))}})}assertValidChain(r){if(!this.validChain(r))throw new (0, _chunkM4K3IZTTcjs.a)(`The selected chain "${r}" is not available in "${this.crossmintEnv}". Either set a valid chain or check you're using an API key for the environment you're trying to target.`)}validChain(r){return this.crossmintEnv==="development"||this.crossmintEnv==="staging"?_chunkNQUKI27Mcjs.g.call(void 0, r):_chunkNQUKI27Mcjs.h.call(void 0, r)}};exports.a = P;
@@ -1,2 +1,2 @@
1
- import{a as m}from"./chunk-NAUDBIJK.js";import{e as l}from"./chunk-KDSNCQVN.js";import{a as p,b as E}from"./chunk-PZ6Q22YJ.js";import{e as s}from"./chunk-UJNS26ZK.js";import{d as a,i as n,j as i}from"./chunk-UPURFW46.js";import{APIErrorService as A,BaseCrossmintService as R,CrossmintServiceError as f}from"@crossmint/client-sdk-base";import{blockchainToChainId as h}from"@crossmint/common-sdk-base";var c=class extends R{constructor(){super(...arguments);this.logger=m;this.apiErrorService=new A({ERROR_USER_WALLET_ALREADY_CREATED:({userId:r})=>new a(r),ERROR_ADMIN_SIGNER_ALREADY_USED:()=>new n,ERROR_PROJECT_NONCUSTODIAL_WALLETS_NOT_ENABLED:()=>new i})}async idempotentCreateSmartWallet(r,t){await this.fetchCrossmintAPI(`${s}/sdk/smart-wallet`,{method:"PUT",body:JSON.stringify(t)},"Error creating abstract wallet. Please contact support",r.jwt)}async sponsorUserOperation(r,t,o,e){let S=h(e),P=await this.fetchCrossmintAPI(`${s}/sdk/paymaster`,{method:"POST",body:JSON.stringify({userOp:p(t),entryPoint:o,chainId:S})},"Error sponsoring user operation. Please contact support",r.jwt);return E(P)}async getSmartWalletConfig(r,t){let o=await this.fetchCrossmintAPI(`${s}/sdk/smart-wallet/config?chain=${t}`,{method:"GET"},"Error getting smart wallet version configuration. Please contact support",r.jwt),e=l.safeParse(o);if(!e.success)throw new f(`Invalid smart wallet config, please contact support. Details below:
1
+ import{a as m}from"./chunk-I22LKNPM.js";import{e as l}from"./chunk-MLZJIYAZ.js";import{a as p,b as E}from"./chunk-PZ6Q22YJ.js";import{e as s}from"./chunk-5FGSZZCU.js";import{d as a,i as n,j as i}from"./chunk-UPURFW46.js";import{APIErrorService as A,BaseCrossmintService as R,CrossmintServiceError as f}from"@crossmint/client-sdk-base";import{blockchainToChainId as h}from"@crossmint/common-sdk-base";var c=class extends R{constructor(){super(...arguments);this.logger=m;this.apiErrorService=new A({ERROR_USER_WALLET_ALREADY_CREATED:({userId:r})=>new a(r),ERROR_ADMIN_SIGNER_ALREADY_USED:()=>new n,ERROR_PROJECT_NONCUSTODIAL_WALLETS_NOT_ENABLED:()=>new i})}async idempotentCreateSmartWallet(r,t){await this.fetchCrossmintAPI(`${s}/sdk/smart-wallet`,{method:"PUT",body:JSON.stringify(t)},"Error creating abstract wallet. Please contact support",r.jwt)}async sponsorUserOperation(r,t,o,e){let S=h(e),P=await this.fetchCrossmintAPI(`${s}/sdk/paymaster`,{method:"POST",body:JSON.stringify({userOp:p(t),entryPoint:o,chainId:S})},"Error sponsoring user operation. Please contact support",r.jwt);return E(P)}async getSmartWalletConfig(r,t){let o=await this.fetchCrossmintAPI(`${s}/sdk/smart-wallet/config?chain=${t}`,{method:"GET"},"Error getting smart wallet version configuration. Please contact support",r.jwt),e=l.safeParse(o);if(!e.success)throw new f(`Invalid smart wallet config, please contact support. Details below:
2
2
  ${e.error.toString()}`);return e.data}async fetchNFTs(r,t){return this.fetchCrossmintAPI(`v1-alpha1/wallets/${t}:${r}/nfts`,{method:"GET"},`Error fetching NFTs for wallet: ${r}`)}getPasskeyServerUrl(){return this.crossmintBaseUrl+"api/internal/passkeys"}};export{c as a};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2X24AXEVcjs = require('../chunk-2X24AXEV.cjs');require('../chunk-J3B47S4T.cjs');require('../chunk-M4K3IZTT.cjs');exports.ErrorProcessor = _chunk2X24AXEVcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSODH64MGcjs = require('../chunk-SODH64MG.cjs');require('../chunk-QBGECKSZ.cjs');require('../chunk-M4K3IZTT.cjs');exports.ErrorProcessor = _chunkSODH64MGcjs.a;
@@ -1 +1 @@
1
- import{a}from"../chunk-MYHZYOST.js";import"../chunk-UJNS26ZK.js";import"../chunk-UPURFW46.js";export{a as ErrorProcessor};
1
+ import{a}from"../chunk-UL4HKRLD.js";import"../chunk-5FGSZZCU.js";import"../chunk-UPURFW46.js";export{a as ErrorProcessor};
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkI54AWTU4cjs = require('./chunk-I54AWTU4.cjs');require('./chunk-SCXFZMLR.cjs');require('./chunk-ULB7AXH7.cjs');require('./chunk-4MLLGQIU.cjs');require('./chunk-IQTGPM2U.cjs');require('./chunk-WFVB4TXX.cjs');require('./chunk-O2ACORII.cjs');require('./chunk-7E6ETPYP.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-LLPLUI62.cjs');require('./chunk-32JB5X5L.cjs');require('./chunk-ODAUWGUU.cjs');require('./chunk-P667U3QJ.cjs');require('./chunk-NLANHQA3.cjs');require('./chunk-XQ2K2K23.cjs');require('./chunk-2GS5TXEY.cjs');require('./chunk-7FXFOOQU.cjs');require('./chunk-KYPTGHC6.cjs');require('./chunk-2X24AXEV.cjs');require('./chunk-J3B47S4T.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 = _chunkI54AWTU4cjs.a; exports.SmartWalletsNotEnabledError = _chunkM4K3IZTTcjs.j; exports.UserWalletAlreadyCreatedError = _chunkM4K3IZTTcjs.d; exports.blockchainToChainId = _commonsdkbase.blockchainToChainId;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXI4CDQWTcjs = require('./chunk-XI4CDQWT.cjs');require('./chunk-SCXFZMLR.cjs');require('./chunk-ICKMQEHA.cjs');require('./chunk-ERDSL6AZ.cjs');require('./chunk-IQTGPM2U.cjs');require('./chunk-QQEJPZKN.cjs');require('./chunk-O2ACORII.cjs');require('./chunk-HN42GEK5.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-MECWQ5TQ.cjs');require('./chunk-76TIESKQ.cjs');require('./chunk-ODAUWGUU.cjs');require('./chunk-RLVETRLF.cjs');require('./chunk-N64VSC3H.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-SODH64MG.cjs');require('./chunk-QBGECKSZ.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 = _chunkXI4CDQWTcjs.a; exports.SmartWalletsNotEnabledError = _chunkM4K3IZTTcjs.j; exports.UserWalletAlreadyCreatedError = _chunkM4K3IZTTcjs.d; exports.blockchainToChainId = _commonsdkbase.blockchainToChainId;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{a as T}from"./chunk-6LAG5WKX.js";import"./chunk-H4CMXNVK.js";import"./chunk-OU6CP5NL.js";import"./chunk-NAG5TTUK.js";import"./chunk-NLGILHJS.js";import"./chunk-5VZPEH6X.js";import"./chunk-ATQ4WGCW.js";import"./chunk-CRXLDLMH.js";import"./chunk-UG47CBKR.js";import"./chunk-BJZQA5VC.js";import"./chunk-C3VZY7VJ.js";import"./chunk-D4NDUT36.js";import"./chunk-CUTQYF3F.js";import"./chunk-FHNNZVNU.js";import{a as c}from"./chunk-ETVJGLNY.js";import{a as E,b as p}from"./chunk-S2XBSAGM.js";import"./chunk-4AABLN7G.js";import"./chunk-3U4NO4CL.js";import"./chunk-4SPA557P.js";import"./chunk-NAUDBIJK.js";import"./chunk-KDSNCQVN.js";import"./chunk-PZ6Q22YJ.js";import"./chunk-YBHSEZMB.js";import"./chunk-TZG6MROQ.js";import"./chunk-3F6P4HUZ.js";import"./chunk-MYHZYOST.js";import"./chunk-UJNS26ZK.js";import{a as r,b as e,c as a,d as o,e as t,f as n,g as s,h as i,i as l,j as m}from"./chunk-UPURFW46.js";import{blockchainToChainId as h,EVMBlockchainIncludingTestnet as x}from"@crossmint/common-sdk-base";import{SmartWalletErrorCode as M,CrossmintSDKError as I,CrossmintServiceError as V,JWTDecryptionError as g,JWTExpiredError as u,JWTIdentifierError as b,JWTInvalidError as D,NotAuthorizedError as J}from"@crossmint/client-sdk-base";export{l as AdminAlreadyUsedError,e as AdminMismatchError,x as Chain,i as ConfigError,I as CrossmintSDKError,V as CrossmintServiceError,E as EVMSendTransactionError,p as EVMSendTransactionExecutionRevertedError,c as EVMSmartWallet,g as JWTDecryptionError,u as JWTExpiredError,b as JWTIdentifierError,D as JWTInvalidError,J as NotAuthorizedError,s as PasskeyIncompatibleAuthenticatorError,a as PasskeyMismatchError,t as PasskeyPromptError,n as PasskeyRegistrationError,r as SmartWalletError,M as SmartWalletErrorCode,T as SmartWalletSDK,m as SmartWalletsNotEnabledError,o as UserWalletAlreadyCreatedError,h as blockchainToChainId};
1
+ import{a as T}from"./chunk-DHZVUAQA.js";import"./chunk-H4CMXNVK.js";import"./chunk-7COIRB4M.js";import"./chunk-GVRCHWHG.js";import"./chunk-NLGILHJS.js";import"./chunk-P5PDYDCW.js";import"./chunk-ATQ4WGCW.js";import"./chunk-OC3YNPRX.js";import"./chunk-UG47CBKR.js";import"./chunk-BJZQA5VC.js";import"./chunk-C3VZY7VJ.js";import"./chunk-D4NDUT36.js";import"./chunk-CUTQYF3F.js";import"./chunk-FHNNZVNU.js";import{a as c}from"./chunk-ETVJGLNY.js";import{a as E,b as p}from"./chunk-S2XBSAGM.js";import"./chunk-74J3L7KP.js";import"./chunk-YYGR7VFT.js";import"./chunk-4SPA557P.js";import"./chunk-I22LKNPM.js";import"./chunk-MLZJIYAZ.js";import"./chunk-PZ6Q22YJ.js";import"./chunk-OXRLBURF.js";import"./chunk-KREX6Z32.js";import"./chunk-NT7LBRZQ.js";import"./chunk-DYVHPARQ.js";import"./chunk-3F6P4HUZ.js";import"./chunk-UL4HKRLD.js";import"./chunk-5FGSZZCU.js";import{a as r,b as e,c as a,d as o,e as t,f as n,g as s,h as i,i as l,j as m}from"./chunk-UPURFW46.js";import{blockchainToChainId as h,EVMBlockchainIncludingTestnet as x}from"@crossmint/common-sdk-base";import{SmartWalletErrorCode as M,CrossmintSDKError as I,CrossmintServiceError as V,JWTDecryptionError as g,JWTExpiredError as u,JWTIdentifierError as b,JWTInvalidError as D,NotAuthorizedError as J}from"@crossmint/client-sdk-base";export{l as AdminAlreadyUsedError,e as AdminMismatchError,x as Chain,i as ConfigError,I as CrossmintSDKError,V as CrossmintServiceError,E as EVMSendTransactionError,p as EVMSendTransactionExecutionRevertedError,c as EVMSmartWallet,g as JWTDecryptionError,u as JWTExpiredError,b as JWTIdentifierError,D as JWTInvalidError,J as NotAuthorizedError,s as PasskeyIncompatibleAuthenticatorError,a as PasskeyMismatchError,t as PasskeyPromptError,n as PasskeyRegistrationError,r as SmartWalletError,M as SmartWalletErrorCode,T as SmartWalletSDK,m as SmartWalletsNotEnabledError,o as UserWalletAlreadyCreatedError,h as blockchainToChainId};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-ODAUWGUU.cjs');var _chunkP667U3QJcjs = require('../chunk-P667U3QJ.cjs');require('../chunk-J3B47S4T.cjs');exports.scwDatadogLogger = _chunkP667U3QJcjs.b; exports.scwLogger = _chunkP667U3QJcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-ODAUWGUU.cjs');var _chunkRLVETRLFcjs = require('../chunk-RLVETRLF.cjs');require('../chunk-QBGECKSZ.cjs');exports.scwDatadogLogger = _chunkRLVETRLFcjs.b; exports.scwLogger = _chunkRLVETRLFcjs.a;
@@ -1 +1 @@
1
- import"../chunk-4SPA557P.js";import{a,b}from"../chunk-NAUDBIJK.js";import"../chunk-UJNS26ZK.js";export{b as scwDatadogLogger,a as scwLogger};
1
+ import"../chunk-4SPA557P.js";import{a,b}from"../chunk-I22LKNPM.js";import"../chunk-5FGSZZCU.js";export{b as scwDatadogLogger,a as scwLogger};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkP667U3QJcjs = require('../chunk-P667U3QJ.cjs');require('../chunk-J3B47S4T.cjs');exports.scwDatadogLogger = _chunkP667U3QJcjs.b; exports.scwLogger = _chunkP667U3QJcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRLVETRLFcjs = require('../chunk-RLVETRLF.cjs');require('../chunk-QBGECKSZ.cjs');exports.scwDatadogLogger = _chunkRLVETRLFcjs.b; exports.scwLogger = _chunkRLVETRLFcjs.a;
@@ -1 +1 @@
1
- import{a,b}from"../chunk-NAUDBIJK.js";import"../chunk-UJNS26ZK.js";export{b as scwDatadogLogger,a as scwLogger};
1
+ import{a,b}from"../chunk-I22LKNPM.js";import"../chunk-5FGSZZCU.js";export{b as scwDatadogLogger,a as scwLogger};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLLPLUI62cjs = require('../chunk-LLPLUI62.cjs');require('../chunk-J3B47S4T.cjs');exports.isEOACreationContext = _chunkLLPLUI62cjs.f; exports.isEOAWalletParams = _chunkLLPLUI62cjs.e; exports.isPasskeyCreationContext = _chunkLLPLUI62cjs.d; exports.isPasskeyWalletParams = _chunkLLPLUI62cjs.c; exports.isSupportedEntryPointVersion = _chunkLLPLUI62cjs.b; exports.isSupportedKernelVersion = _chunkLLPLUI62cjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkMECWQ5TQcjs = require('../chunk-MECWQ5TQ.cjs');require('../chunk-QBGECKSZ.cjs');exports.isEOACreationContext = _chunkMECWQ5TQcjs.f; exports.isEOAWalletParams = _chunkMECWQ5TQcjs.e; exports.isPasskeyCreationContext = _chunkMECWQ5TQcjs.d; exports.isPasskeyWalletParams = _chunkMECWQ5TQcjs.c; exports.isSupportedEntryPointVersion = _chunkMECWQ5TQcjs.b; exports.isSupportedKernelVersion = _chunkMECWQ5TQcjs.a;
@@ -1 +1 @@
1
- import{a,b,c,d,e,f}from"../chunk-4AABLN7G.js";import"../chunk-UJNS26ZK.js";export{f as isEOACreationContext,e as isEOAWalletParams,d as isPasskeyCreationContext,c as isPasskeyWalletParams,b as isSupportedEntryPointVersion,a as isSupportedKernelVersion};
1
+ import{a,b,c,d,e,f}from"../chunk-74J3L7KP.js";import"../chunk-5FGSZZCU.js";export{f as isEOACreationContext,e as isEOAWalletParams,d as isPasskeyCreationContext,c as isPasskeyWalletParams,b as isSupportedEntryPointVersion,a as isSupportedKernelVersion};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNLANHQA3cjs = require('../chunk-NLANHQA3.cjs');require('../chunk-J3B47S4T.cjs');exports.EOASignerDataSchema = _chunkNLANHQA3cjs.a; exports.PasskeySignerDataSchema = _chunkNLANHQA3cjs.c; exports.PasskeyValidatorSerializedDataSchema = _chunkNLANHQA3cjs.b; exports.SignerDataSchema = _chunkNLANHQA3cjs.d; exports.SmartWalletConfigSchema = _chunkNLANHQA3cjs.e;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkN64VSC3Hcjs = require('../chunk-N64VSC3H.cjs');require('../chunk-QBGECKSZ.cjs');exports.EOASignerDataSchema = _chunkN64VSC3Hcjs.a; exports.PasskeySignerDataSchema = _chunkN64VSC3Hcjs.c; exports.PasskeyValidatorSerializedDataSchema = _chunkN64VSC3Hcjs.b; exports.SignerDataSchema = _chunkN64VSC3Hcjs.d; exports.SmartWalletConfigSchema = _chunkN64VSC3Hcjs.e;
@@ -1 +1 @@
1
- import{a,b,c,d,e}from"../chunk-KDSNCQVN.js";import"../chunk-UJNS26ZK.js";export{a as EOASignerDataSchema,c as PasskeySignerDataSchema,b as PasskeyValidatorSerializedDataSchema,d as SignerDataSchema,e as SmartWalletConfigSchema};
1
+ import{a,b,c,d,e}from"../chunk-MLZJIYAZ.js";import"../chunk-5FGSZZCU.js";export{a as EOASignerDataSchema,c as PasskeySignerDataSchema,b as PasskeyValidatorSerializedDataSchema,d as SignerDataSchema,e as SmartWalletConfigSchema};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJ3B47S4Tcjs = require('../chunk-J3B47S4T.cjs');exports.API_VERSION = _chunkJ3B47S4Tcjs.e; exports.CURRENT_VERSION = _chunkJ3B47S4Tcjs.b; exports.SCW_SERVICE = _chunkJ3B47S4Tcjs.c; exports.SDK_VERSION = _chunkJ3B47S4Tcjs.d; exports.SUPPORTED_ENTRYPOINT_VERSIONS = _chunkJ3B47S4Tcjs.g; exports.SUPPORTED_KERNEL_VERSIONS = _chunkJ3B47S4Tcjs.f; exports.ZERO_DEV_TYPE = _chunkJ3B47S4Tcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQBGECKSZcjs = require('../chunk-QBGECKSZ.cjs');exports.API_VERSION = _chunkQBGECKSZcjs.e; exports.CURRENT_VERSION = _chunkQBGECKSZcjs.b; exports.SCW_SERVICE = _chunkQBGECKSZcjs.c; exports.SDK_VERSION = _chunkQBGECKSZcjs.d; exports.SUPPORTED_ENTRYPOINT_VERSIONS = _chunkQBGECKSZcjs.g; exports.SUPPORTED_KERNEL_VERSIONS = _chunkQBGECKSZcjs.f; exports.ZERO_DEV_TYPE = _chunkQBGECKSZcjs.a;
@@ -1 +1 @@
1
- import{a,b,c,d,e,f,g}from"../chunk-UJNS26ZK.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};
1
+ import{a,b,c,d,e,f,g}from"../chunk-5FGSZZCU.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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossmint/client-sdk-smart-wallet",
3
- "version": "0.1.33",
3
+ "version": "0.1.35",
4
4
  "repository": "https://github.com/Crossmint/crossmint-sdk",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Paella Labs Inc",
@@ -25,7 +25,7 @@
25
25
  "permissionless": "0.1.36",
26
26
  "viem": "2.17.5",
27
27
  "zod": "3.22.4",
28
- "@crossmint/client-sdk-base": "1.4.8",
28
+ "@crossmint/client-sdk-base": "1.4.10",
29
29
  "@crossmint/common-sdk-base": "0.3.2"
30
30
  },
31
31
  "devDependencies": {
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chains = require('viem/chains');var _commonsdkbase = require('@crossmint/common-sdk-base');var n={BASE_SEPOLIA:_commonsdkbase.BlockchainIncludingTestnet.BASE_SEPOLIA,POLYGON_AMOY:_commonsdkbase.BlockchainIncludingTestnet.POLYGON_AMOY,OPTIMISM_SEPOLIA:_commonsdkbase.BlockchainIncludingTestnet.OPTIMISM_SEPOLIA,ARBITRUM_SEPOLIA:_commonsdkbase.BlockchainIncludingTestnet.ARBITRUM_SEPOLIA},A= exports.b =_commonsdkbase.objectValues.call(void 0, n),o= exports.c ={BASE:_commonsdkbase.BlockchainIncludingTestnet.BASE,POLYGON:_commonsdkbase.BlockchainIncludingTestnet.POLYGON,OPTIMISM:_commonsdkbase.BlockchainIncludingTestnet.OPTIMISM,ARBITRUM:_commonsdkbase.BlockchainIncludingTestnet.ARBITRUM},O= exports.d =_commonsdkbase.objectValues.call(void 0, o),T= exports.e ={...n,...o},u= exports.f =_commonsdkbase.objectValues.call(void 0, T);function y(e){return A.includes(e)}function E(e){return O.includes(e)}var L={polygon:_chains.polygon,"polygon-amoy":_chains.polygonAmoy,base:_chains.base,"base-sepolia":_chains.baseSepolia,optimism:_chains.optimism,"optimism-sepolia":_chains.optimismSepolia,arbitrum:_chains.arbitrum,"arbitrum-sepolia":_chains.arbitrumSepolia};exports.a = n; exports.b = A; exports.c = o; exports.d = O; exports.e = T; exports.f = u; exports.g = y; exports.h = E; exports.i = L;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _commonsdkbase = require('@crossmint/common-sdk-base');var i="-7M6vRDBDknwvMxnqah_jbcieWg0qad9",o="pim_9dKmQPxiTCvtbUNF7XFBbA",n= exports.a ={polygon:"polygon-mainnet","polygon-amoy":"polygon-amoy",base:"base-mainnet","base-sepolia":"base-sepolia",optimism:"opt-mainnet","optimism-sepolia":"opt-sepolia",arbitrum:"arb-mainnet","arbitrum-sepolia":"arb-sepolia"};function p(t){return`https://${n[t]}.g.alchemy.com/v2/${i}`}function r(t){return`https://api.pimlico.io/v2/${_commonsdkbase.blockchainToChainId.call(void 0, t)}/rpc?apikey=${o}`}exports.a = n; exports.b = p; exports.c = r;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJ3B47S4Tcjs = require('./chunk-J3B47S4T.cjs');var _clientsdkbase = require('@crossmint/client-sdk-base');var s=new (0, _clientsdkbase.SDKLogger)(_chunkJ3B47S4Tcjs.c),w= exports.b =new (0, _clientsdkbase.SDKLogger)(_chunkJ3B47S4Tcjs.c,_clientsdkbase.getBrowserLogger.call(void 0, _chunkJ3B47S4Tcjs.c,{onlyDatadog:!0}));exports.a = s; exports.b = w;
@@ -1 +0,0 @@
1
- import{blockchainToChainId as a}from"@crossmint/common-sdk-base";var i="-7M6vRDBDknwvMxnqah_jbcieWg0qad9",o="pim_9dKmQPxiTCvtbUNF7XFBbA",n={polygon:"polygon-mainnet","polygon-amoy":"polygon-amoy",base:"base-mainnet","base-sepolia":"base-sepolia",optimism:"opt-mainnet","optimism-sepolia":"opt-sepolia",arbitrum:"arb-mainnet","arbitrum-sepolia":"arb-sepolia"};function r(t){return`https://${n[t]}.g.alchemy.com/v2/${i}`}function l(t){return`https://api.pimlico.io/v2/${a(t)}/rpc?apikey=${o}`}export{n as a,r as b,l as c};
@@ -1 +0,0 @@
1
- import{arbitrum as i,arbitrumSepolia as l,base as s,baseSepolia as r,optimism as S,optimismSepolia as p,polygon as m,polygonAmoy as c}from"viem/chains";import{BlockchainIncludingTestnet as t,objectValues as a}from"@crossmint/common-sdk-base";var n={BASE_SEPOLIA:t.BASE_SEPOLIA,POLYGON_AMOY:t.POLYGON_AMOY,OPTIMISM_SEPOLIA:t.OPTIMISM_SEPOLIA,ARBITRUM_SEPOLIA:t.ARBITRUM_SEPOLIA},A=a(n),o={BASE:t.BASE,POLYGON:t.POLYGON,OPTIMISM:t.OPTIMISM,ARBITRUM:t.ARBITRUM},O=a(o),T={...n,...o},y=a(T);function E(e){return A.includes(e)}function L(e){return O.includes(e)}var h={polygon:m,"polygon-amoy":c,base:s,"base-sepolia":r,optimism:S,"optimism-sepolia":p,arbitrum:i,"arbitrum-sepolia":l};export{n as a,A as b,o as c,O as d,T as e,y as f,E as g,L as h,h as i};