@crossmint/wallets-sdk 0.20.1 → 0.20.2

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 (73) hide show
  1. package/dist/api/__tests__/test-utils.cjs +5 -5
  2. package/dist/api/__tests__/test-utils.js +3 -3
  3. package/dist/api/client.cjs +4 -4
  4. package/dist/api/client.js +3 -3
  5. package/dist/api/index.cjs +4 -4
  6. package/dist/api/index.js +3 -3
  7. package/dist/chains/chains.cjs +4 -4
  8. package/dist/chains/chains.js +3 -3
  9. package/dist/{chunk-FGGGBNUF.js → chunk-2WBSPOWU.js} +1 -1
  10. package/dist/{chunk-LONKAMXJ.cjs → chunk-47R3UV3J.cjs} +6 -6
  11. package/dist/{chunk-Y35UJFTB.cjs → chunk-66UY53KP.cjs} +23 -23
  12. package/dist/{chunk-ZZLEVK2P.cjs → chunk-6FG5QXII.cjs} +9 -9
  13. package/dist/{chunk-3G4P2NHM.js → chunk-6UMJYMAY.js} +2 -2
  14. package/dist/{chunk-KN3AKBVY.cjs → chunk-7TT3VUDF.cjs} +6 -6
  15. package/dist/{chunk-IBV7DELQ.js → chunk-A6E67ZZP.js} +3 -3
  16. package/dist/{chunk-DZ6MCPD3.js → chunk-ABMZ3ZVN.js} +1 -1
  17. package/dist/{chunk-DENEF27X.js → chunk-CMBFV325.js} +3 -3
  18. package/dist/{chunk-DPZIHSN7.js → chunk-FHMKNG62.js} +4 -4
  19. package/dist/{chunk-TPW2OJIB.js → chunk-FICVKSXZ.js} +2 -2
  20. package/dist/{chunk-TYRXXYHP.js → chunk-HXJ3YPAN.js} +2 -2
  21. package/dist/{chunk-O42BRSEX.cjs → chunk-IDKGJO2G.cjs} +9 -9
  22. package/dist/{chunk-TC6ITDWV.cjs → chunk-JREZWZ2S.cjs} +3 -3
  23. package/dist/{chunk-AYE7XUR2.js → chunk-KQH5ZXJ4.js} +4 -4
  24. package/dist/{chunk-LPR7BODP.cjs → chunk-MRZXYVQO.cjs} +6 -6
  25. package/dist/{chunk-3WF7K4KF.cjs → chunk-PM7BGATN.cjs} +23 -23
  26. package/dist/{chunk-SJSXTTSY.cjs → chunk-POG76HDD.cjs} +44 -44
  27. package/dist/{chunk-XTKNO44C.js → chunk-PUO4QNXH.js} +2 -2
  28. package/dist/{chunk-HH3MM7IJ.cjs → chunk-R4AW5ADG.cjs} +1 -1
  29. package/dist/{chunk-XMVAZ7EW.cjs → chunk-R6DH4V7S.cjs} +7 -7
  30. package/dist/{chunk-NFV5K2D2.cjs → chunk-RYQI3RXL.cjs} +12 -12
  31. package/dist/{chunk-3SYMIYEW.js → chunk-T2XUADHW.js} +3 -3
  32. package/dist/{chunk-NPTNXK47.js → chunk-TYQ4YIP7.js} +1 -1
  33. package/dist/{chunk-3KEY2NLC.js → chunk-U3NV7UY7.js} +1 -1
  34. package/dist/{chunk-KD6N62YZ.js → chunk-W7K5E64Q.js} +2 -2
  35. package/dist/{chunk-H3XAAMD3.cjs → chunk-WDZY4PP4.cjs} +3 -3
  36. package/dist/{chunk-AEGU53OM.cjs → chunk-WHTECI7J.cjs} +6 -6
  37. package/dist/{chunk-J45OIOTF.js → chunk-WWW6IGZ7.js} +2 -2
  38. package/dist/{chunk-3ASKCQJN.cjs → chunk-ZAX22GSI.cjs} +18 -18
  39. package/dist/index.cjs +16 -16
  40. package/dist/index.js +15 -15
  41. package/dist/logger/index.cjs +3 -3
  42. package/dist/logger/index.js +2 -2
  43. package/dist/logger/init.cjs +3 -3
  44. package/dist/logger/init.js +2 -2
  45. package/dist/sdk.cjs +13 -13
  46. package/dist/sdk.js +12 -12
  47. package/dist/signers/index.cjs +8 -8
  48. package/dist/signers/index.js +7 -7
  49. package/dist/signers/non-custodial/index.cjs +7 -7
  50. package/dist/signers/non-custodial/index.js +6 -6
  51. package/dist/signers/non-custodial/ncs-evm-signer.cjs +5 -5
  52. package/dist/signers/non-custodial/ncs-evm-signer.js +4 -4
  53. package/dist/signers/non-custodial/ncs-signer.cjs +4 -4
  54. package/dist/signers/non-custodial/ncs-signer.js +3 -3
  55. package/dist/signers/non-custodial/ncs-solana-signer.cjs +5 -5
  56. package/dist/signers/non-custodial/ncs-solana-signer.js +4 -4
  57. package/dist/signers/non-custodial/ncs-stellar-signer.cjs +5 -5
  58. package/dist/signers/non-custodial/ncs-stellar-signer.js +4 -4
  59. package/dist/utils/constants.cjs +2 -2
  60. package/dist/utils/constants.js +1 -1
  61. package/dist/wallets/__tests__/test-helpers.cjs +9 -9
  62. package/dist/wallets/__tests__/test-helpers.js +8 -8
  63. package/dist/wallets/evm.cjs +10 -10
  64. package/dist/wallets/evm.js +9 -9
  65. package/dist/wallets/solana.cjs +10 -10
  66. package/dist/wallets/solana.js +9 -9
  67. package/dist/wallets/stellar.cjs +10 -10
  68. package/dist/wallets/stellar.js +9 -9
  69. package/dist/wallets/wallet-factory.cjs +11 -11
  70. package/dist/wallets/wallet-factory.js +10 -10
  71. package/dist/wallets/wallet.cjs +9 -9
  72. package/dist/wallets/wallet.js +8 -8
  73. package/package.json +4 -4
@@ -9,10 +9,10 @@
9
9
  var _chunkG6QJHFSYcjs = require('../../chunk-G6QJHFSY.cjs');
10
10
 
11
11
 
12
- var _chunkNFV5K2D2cjs = require('../../chunk-NFV5K2D2.cjs');
12
+ var _chunkRYQI3RXLcjs = require('../../chunk-RYQI3RXL.cjs');
13
13
  require('../../chunk-XC2V34TS.cjs');
14
- require('../../chunk-TC6ITDWV.cjs');
15
- require('../../chunk-HH3MM7IJ.cjs');
14
+ require('../../chunk-JREZWZ2S.cjs');
15
+ require('../../chunk-R4AW5ADG.cjs');
16
16
 
17
17
 
18
18
 
@@ -46,7 +46,7 @@ var createMockCrossmint = (overrides = {}) => {
46
46
  });
47
47
  };
48
48
  var createTestApiClient = (crossmint) => {
49
- return new (0, _chunkNFV5K2D2cjs.ApiClient)(crossmint || createMockCrossmint());
49
+ return new (0, _chunkRYQI3RXLcjs.ApiClient)(crossmint || createMockCrossmint());
50
50
  };
51
51
  var createServerSideApiClient = () => {
52
52
  const apiClient = createTestApiClient();
@@ -186,7 +186,7 @@ var createIntegrationApiClient = (apiKey, baseUrl, overrides = {}) => {
186
186
  setJwt: () => crossmint,
187
187
  experimental_setCustomAuth: () => crossmint
188
188
  });
189
- return new (0, _chunkNFV5K2D2cjs.ApiClient)(crossmint);
189
+ return new (0, _chunkRYQI3RXLcjs.ApiClient)(crossmint);
190
190
  };
191
191
  var TestDataFactory = class {
192
192
  constructor() {
@@ -9,10 +9,10 @@ import {
9
9
  } from "../../chunk-PJOJIRTY.js";
10
10
  import {
11
11
  ApiClient
12
- } from "../../chunk-KD6N62YZ.js";
12
+ } from "../../chunk-W7K5E64Q.js";
13
13
  import "../../chunk-SGINWAB6.js";
14
- import "../../chunk-DZ6MCPD3.js";
15
- import "../../chunk-NPTNXK47.js";
14
+ import "../../chunk-ABMZ3ZVN.js";
15
+ import "../../chunk-TYQ4YIP7.js";
16
16
  import {
17
17
  __async,
18
18
  __spreadProps,
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkNFV5K2D2cjs = require('../chunk-NFV5K2D2.cjs');
3
+ var _chunkRYQI3RXLcjs = require('../chunk-RYQI3RXL.cjs');
4
4
  require('../chunk-XC2V34TS.cjs');
5
- require('../chunk-TC6ITDWV.cjs');
6
- require('../chunk-HH3MM7IJ.cjs');
5
+ require('../chunk-JREZWZ2S.cjs');
6
+ require('../chunk-R4AW5ADG.cjs');
7
7
  require('../chunk-UO2J2ZB2.cjs');
8
8
 
9
9
 
10
- exports.ApiClient = _chunkNFV5K2D2cjs.ApiClient;
10
+ exports.ApiClient = _chunkRYQI3RXLcjs.ApiClient;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ApiClient
3
- } from "../chunk-KD6N62YZ.js";
3
+ } from "../chunk-W7K5E64Q.js";
4
4
  import "../chunk-SGINWAB6.js";
5
- import "../chunk-DZ6MCPD3.js";
6
- import "../chunk-NPTNXK47.js";
5
+ import "../chunk-ABMZ3ZVN.js";
6
+ import "../chunk-TYQ4YIP7.js";
7
7
  import "../chunk-ASE2FXWP.js";
8
8
  export {
9
9
  ApiClient
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-6HXIZLEQ.cjs');
2
2
 
3
3
 
4
- var _chunkNFV5K2D2cjs = require('../chunk-NFV5K2D2.cjs');
4
+ var _chunkRYQI3RXLcjs = require('../chunk-RYQI3RXL.cjs');
5
5
  require('../chunk-ECAM5KTH.cjs');
6
6
  require('../chunk-XC2V34TS.cjs');
7
- require('../chunk-TC6ITDWV.cjs');
8
- require('../chunk-HH3MM7IJ.cjs');
7
+ require('../chunk-JREZWZ2S.cjs');
8
+ require('../chunk-R4AW5ADG.cjs');
9
9
  require('../chunk-UO2J2ZB2.cjs');
10
10
 
11
11
 
12
- exports.ApiClient = _chunkNFV5K2D2cjs.ApiClient;
12
+ exports.ApiClient = _chunkRYQI3RXLcjs.ApiClient;
package/dist/api/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import "../chunk-5IFDVB4Y.js";
2
2
  import {
3
3
  ApiClient
4
- } from "../chunk-KD6N62YZ.js";
4
+ } from "../chunk-W7K5E64Q.js";
5
5
  import "../chunk-KBJA7JDT.js";
6
6
  import "../chunk-SGINWAB6.js";
7
- import "../chunk-DZ6MCPD3.js";
8
- import "../chunk-NPTNXK47.js";
7
+ import "../chunk-ABMZ3ZVN.js";
8
+ import "../chunk-TYQ4YIP7.js";
9
9
  import "../chunk-ASE2FXWP.js";
10
10
  export {
11
11
  ApiClient
@@ -4,7 +4,7 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkH3XAAMD3cjs = require('../chunk-H3XAAMD3.cjs');
7
+ var _chunkWDZY4PP4cjs = require('../chunk-WDZY4PP4.cjs');
8
8
  require('../chunk-NIBKCMQ2.cjs');
9
9
  require('../chunk-55V4VMTX.cjs');
10
10
  require('../chunk-7USEVMTW.cjs');
@@ -12,8 +12,8 @@ require('../chunk-F7L2TZ3I.cjs');
12
12
  require('../chunk-HTSQPZHW.cjs');
13
13
  require('../chunk-XC2V34TS.cjs');
14
14
  require('../chunk-CCIGWTAO.cjs');
15
- require('../chunk-TC6ITDWV.cjs');
16
- require('../chunk-HH3MM7IJ.cjs');
15
+ require('../chunk-JREZWZ2S.cjs');
16
+ require('../chunk-R4AW5ADG.cjs');
17
17
  require('../chunk-UO2J2ZB2.cjs');
18
18
 
19
19
 
@@ -21,4 +21,4 @@ require('../chunk-UO2J2ZB2.cjs');
21
21
 
22
22
 
23
23
 
24
- exports.isMainnetChain = _chunkH3XAAMD3cjs.isMainnetChain; exports.isTestnetChain = _chunkH3XAAMD3cjs.isTestnetChain; exports.mainnetToTestnet = _chunkH3XAAMD3cjs.mainnetToTestnet; exports.toViemChain = _chunkH3XAAMD3cjs.toViemChain; exports.validateChainForEnvironment = _chunkH3XAAMD3cjs.validateChainForEnvironment;
24
+ exports.isMainnetChain = _chunkWDZY4PP4cjs.isMainnetChain; exports.isTestnetChain = _chunkWDZY4PP4cjs.isTestnetChain; exports.mainnetToTestnet = _chunkWDZY4PP4cjs.mainnetToTestnet; exports.toViemChain = _chunkWDZY4PP4cjs.toViemChain; exports.validateChainForEnvironment = _chunkWDZY4PP4cjs.validateChainForEnvironment;
@@ -4,7 +4,7 @@ import {
4
4
  mainnetToTestnet,
5
5
  toViemChain,
6
6
  validateChainForEnvironment
7
- } from "../chunk-FGGGBNUF.js";
7
+ } from "../chunk-2WBSPOWU.js";
8
8
  import "../chunk-2T5HHKUI.js";
9
9
  import "../chunk-3U6UAYOV.js";
10
10
  import "../chunk-MMISP35W.js";
@@ -12,8 +12,8 @@ import "../chunk-JWMQALLN.js";
12
12
  import "../chunk-ZBLW42YE.js";
13
13
  import "../chunk-SGINWAB6.js";
14
14
  import "../chunk-455NK5LB.js";
15
- import "../chunk-DZ6MCPD3.js";
16
- import "../chunk-NPTNXK47.js";
15
+ import "../chunk-ABMZ3ZVN.js";
16
+ import "../chunk-TYQ4YIP7.js";
17
17
  import "../chunk-ASE2FXWP.js";
18
18
  export {
19
19
  isMainnetChain,
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-SGINWAB6.js";
19
19
  import {
20
20
  walletsLogger
21
- } from "./chunk-DZ6MCPD3.js";
21
+ } from "./chunk-ABMZ3ZVN.js";
22
22
 
23
23
  // src/chains/chains.ts
24
24
  import { APIKeyEnvironmentPrefix, BlockchainIncludingTestnet as Blockchain } from "@crossmint/common-sdk-base";
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkKN3AKBVYcjs = require('./chunk-KN3AKBVY.cjs');
3
+ var _chunk7TT3VUDFcjs = require('./chunk-7TT3VUDF.cjs');
4
4
 
5
5
 
6
- var _chunkLPR7BODPcjs = require('./chunk-LPR7BODP.cjs');
6
+ var _chunkMRZXYVQOcjs = require('./chunk-MRZXYVQO.cjs');
7
7
 
8
8
 
9
- var _chunkAEGU53OMcjs = require('./chunk-AEGU53OM.cjs');
9
+ var _chunkWHTECI7Jcjs = require('./chunk-WHTECI7J.cjs');
10
10
 
11
11
 
12
12
  var _chunkJSWTGW46cjs = require('./chunk-JSWTGW46.cjs');
@@ -32,12 +32,12 @@ function assembleSigner(chain, config) {
32
32
  case "email":
33
33
  case "phone":
34
34
  if (chain === "solana") {
35
- return new (0, _chunkKN3AKBVYcjs.SolanaNonCustodialSigner)(config);
35
+ return new (0, _chunk7TT3VUDFcjs.SolanaNonCustodialSigner)(config);
36
36
  }
37
37
  if (chain === "stellar") {
38
- return new (0, _chunkLPR7BODPcjs.StellarNonCustodialSigner)(config);
38
+ return new (0, _chunkMRZXYVQOcjs.StellarNonCustodialSigner)(config);
39
39
  }
40
- return new (0, _chunkAEGU53OMcjs.EVMNonCustodialSigner)(config);
40
+ return new (0, _chunkWHTECI7Jcjs.EVMNonCustodialSigner)(config);
41
41
  case "api-key":
42
42
  return chain === "solana" ? new (0, _chunkXOCC3MPKcjs.SolanaApiKeySigner)(config) : new (0, _chunkJSWTGW46cjs.EVMApiKeySigner)(config);
43
43
  case "external-wallet":
@@ -4,20 +4,20 @@
4
4
  var _chunkRBHGZDDXcjs = require('./chunk-RBHGZDDX.cjs');
5
5
 
6
6
 
7
- var _chunkSJSXTTSYcjs = require('./chunk-SJSXTTSY.cjs');
7
+ var _chunkPOG76HDDcjs = require('./chunk-POG76HDD.cjs');
8
8
 
9
9
 
10
- var _chunkLONKAMXJcjs = require('./chunk-LONKAMXJ.cjs');
10
+ var _chunk47R3UV3Jcjs = require('./chunk-47R3UV3J.cjs');
11
11
 
12
12
 
13
- var _chunkH3XAAMD3cjs = require('./chunk-H3XAAMD3.cjs');
13
+ var _chunkWDZY4PP4cjs = require('./chunk-WDZY4PP4.cjs');
14
14
 
15
15
 
16
16
 
17
17
  var _chunkXC2V34TScjs = require('./chunk-XC2V34TS.cjs');
18
18
 
19
19
 
20
- var _chunkTC6ITDWVcjs = require('./chunk-TC6ITDWV.cjs');
20
+ var _chunkJREZWZ2Scjs = require('./chunk-JREZWZ2S.cjs');
21
21
 
22
22
 
23
23
 
@@ -36,45 +36,45 @@ var WalletFactory = class {
36
36
  getOrCreateWallet(args) {
37
37
  return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
38
38
  if (this.apiClient.isServerSide) {
39
- _chunkTC6ITDWVcjs.walletsLogger.error("walletFactory.getOrCreateWallet.error", {
39
+ _chunkJREZWZ2Scjs.walletsLogger.error("walletFactory.getOrCreateWallet.error", {
40
40
  error: "getOrCreateWallet can only be called from client-side code"
41
41
  });
42
42
  throw new (0, _chunkXC2V34TScjs.WalletCreationError)(
43
43
  "getOrCreateWallet can only be called from client-side code.\n- Make sure you're running this in the browser (or another client environment), not on your server.\n- Use your Crossmint Client API Key (not a server key)."
44
44
  );
45
45
  }
46
- args = _chunkUO2J2ZB2cjs.__spreadProps.call(void 0, _chunkUO2J2ZB2cjs.__spreadValues.call(void 0, {}, args), { chain: _chunkH3XAAMD3cjs.validateChainForEnvironment.call(void 0, args.chain, this.apiClient.environment) });
46
+ args = _chunkUO2J2ZB2cjs.__spreadProps.call(void 0, _chunkUO2J2ZB2cjs.__spreadValues.call(void 0, {}, args), { chain: _chunkWDZY4PP4cjs.validateChainForEnvironment.call(void 0, args.chain, this.apiClient.environment) });
47
47
  const locator = this.getWalletLocator(args);
48
- _chunkTC6ITDWVcjs.walletsLogger.info("walletFactory.getOrCreateWallet.start");
48
+ _chunkJREZWZ2Scjs.walletsLogger.info("walletFactory.getOrCreateWallet.start");
49
49
  const existingWallet = yield this.apiClient.getWallet(locator);
50
50
  if (existingWallet != null && !("error" in existingWallet)) {
51
- _chunkTC6ITDWVcjs.walletsLogger.info("walletFactory.getOrCreateWallet.existing", {
51
+ _chunkJREZWZ2Scjs.walletsLogger.info("walletFactory.getOrCreateWallet.existing", {
52
52
  address: existingWallet.address
53
53
  });
54
54
  return this.createWalletInstance(existingWallet, args);
55
55
  }
56
- _chunkTC6ITDWVcjs.walletsLogger.info("walletFactory.getOrCreateWallet.creating");
56
+ _chunkJREZWZ2Scjs.walletsLogger.info("walletFactory.getOrCreateWallet.creating");
57
57
  return this.createWalletInternal(args);
58
58
  });
59
59
  }
60
60
  getWallet(walletLocator, args) {
61
61
  return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
62
62
  if (!this.apiClient.isServerSide) {
63
- _chunkTC6ITDWVcjs.walletsLogger.error("walletFactory.getWallet.error", {
63
+ _chunkJREZWZ2Scjs.walletsLogger.error("walletFactory.getWallet.error", {
64
64
  error: "getWallet is not supported on client side"
65
65
  });
66
66
  throw new (0, _chunkXC2V34TScjs.WalletCreationError)("getWallet is not supported on client side, use getOrCreateWallet instead");
67
67
  }
68
- args = _chunkUO2J2ZB2cjs.__spreadProps.call(void 0, _chunkUO2J2ZB2cjs.__spreadValues.call(void 0, {}, args), { chain: _chunkH3XAAMD3cjs.validateChainForEnvironment.call(void 0, args.chain, this.apiClient.environment) });
69
- _chunkTC6ITDWVcjs.walletsLogger.info("walletFactory.getWallet.start");
68
+ args = _chunkUO2J2ZB2cjs.__spreadProps.call(void 0, _chunkUO2J2ZB2cjs.__spreadValues.call(void 0, {}, args), { chain: _chunkWDZY4PP4cjs.validateChainForEnvironment.call(void 0, args.chain, this.apiClient.environment) });
69
+ _chunkJREZWZ2Scjs.walletsLogger.info("walletFactory.getWallet.start");
70
70
  const existingWallet = yield this.apiClient.getWallet(walletLocator);
71
71
  if ("error" in existingWallet) {
72
- _chunkTC6ITDWVcjs.walletsLogger.warn("walletFactory.getWallet.notFound", {
72
+ _chunkJREZWZ2Scjs.walletsLogger.warn("walletFactory.getWallet.notFound", {
73
73
  error: existingWallet.error
74
74
  });
75
75
  throw new (0, _chunkXC2V34TScjs.WalletNotAvailableError)(JSON.stringify(existingWallet));
76
76
  }
77
- _chunkTC6ITDWVcjs.walletsLogger.info("walletFactory.getWallet.success", {
77
+ _chunkJREZWZ2Scjs.walletsLogger.info("walletFactory.getWallet.success", {
78
78
  address: existingWallet.address
79
79
  });
80
80
  return this.createWalletInstance(existingWallet, args);
@@ -82,7 +82,7 @@ var WalletFactory = class {
82
82
  }
83
83
  createWallet(args) {
84
84
  return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
85
- args = _chunkUO2J2ZB2cjs.__spreadProps.call(void 0, _chunkUO2J2ZB2cjs.__spreadValues.call(void 0, {}, args), { chain: _chunkH3XAAMD3cjs.validateChainForEnvironment.call(void 0, args.chain, this.apiClient.environment) });
85
+ args = _chunkUO2J2ZB2cjs.__spreadProps.call(void 0, _chunkUO2J2ZB2cjs.__spreadValues.call(void 0, {}, args), { chain: _chunkWDZY4PP4cjs.validateChainForEnvironment.call(void 0, args.chain, this.apiClient.environment) });
86
86
  return this.createWalletInternal(args);
87
87
  });
88
88
  }
@@ -90,7 +90,7 @@ var WalletFactory = class {
90
90
  return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
91
91
  var _a, _b, _c, _d, _e;
92
92
  yield (_c = (_b = (_a = args.options) == null ? void 0 : _a.experimental_callbacks) == null ? void 0 : _b.onWalletCreationStart) == null ? void 0 : _c.call(_b);
93
- _chunkTC6ITDWVcjs.walletsLogger.info("walletFactory.createWallet.start");
93
+ _chunkJREZWZ2Scjs.walletsLogger.info("walletFactory.createWallet.start");
94
94
  this.mutateSignerFromCustomAuth(args, true);
95
95
  const adminSigner = args.signer.type === "passkey" ? yield this.createPasskeyAdminSigner(args.signer) : args.signer;
96
96
  const walletResponse = yield this.apiClient.createWallet({
@@ -103,12 +103,12 @@ var WalletFactory = class {
103
103
  alias: (_e = args.alias) != null ? _e : void 0
104
104
  });
105
105
  if ("error" in walletResponse) {
106
- _chunkTC6ITDWVcjs.walletsLogger.error("walletFactory.createWallet.error", {
106
+ _chunkJREZWZ2Scjs.walletsLogger.error("walletFactory.createWallet.error", {
107
107
  error: walletResponse.error
108
108
  });
109
109
  throw new (0, _chunkXC2V34TScjs.WalletCreationError)(JSON.stringify(walletResponse));
110
110
  }
111
- _chunkTC6ITDWVcjs.walletsLogger.info("walletFactory.createWallet.success", {
111
+ _chunkJREZWZ2Scjs.walletsLogger.info("walletFactory.createWallet.success", {
112
112
  address: walletResponse.address
113
113
  });
114
114
  return this.createWalletInstance(walletResponse, args);
@@ -117,12 +117,12 @@ var WalletFactory = class {
117
117
  createWalletInstance(walletResponse, args) {
118
118
  this.validateExistingWalletConfig(walletResponse, args);
119
119
  const signerConfig = this.toInternalSignerConfig(walletResponse, args.signer, args.options);
120
- return new (0, _chunkSJSXTTSYcjs.Wallet)(
120
+ return new (0, _chunkPOG76HDDcjs.Wallet)(
121
121
  {
122
122
  chain: args.chain,
123
123
  address: walletResponse.address,
124
124
  owner: walletResponse.owner,
125
- signer: _chunkLONKAMXJcjs.assembleSigner.call(void 0, args.chain, signerConfig),
125
+ signer: _chunk47R3UV3Jcjs.assembleSigner.call(void 0, args.chain, signerConfig),
126
126
  options: args.options,
127
127
  alias: args.alias
128
128
  },
@@ -301,7 +301,7 @@ var WalletFactory = class {
301
301
  };
302
302
  _chunkUO2J2ZB2cjs.__decorateClass.call(void 0, [
303
303
  _commonsdkbase.WithLoggerContext.call(void 0, {
304
- logger: _chunkTC6ITDWVcjs.walletsLogger,
304
+ logger: _chunkJREZWZ2Scjs.walletsLogger,
305
305
  methodName: "walletFactory.getOrCreateWallet",
306
306
  buildContext(_thisArg, args) {
307
307
  const walletArgs = args[0];
@@ -311,7 +311,7 @@ _chunkUO2J2ZB2cjs.__decorateClass.call(void 0, [
311
311
  ], WalletFactory.prototype, "getOrCreateWallet", 1);
312
312
  _chunkUO2J2ZB2cjs.__decorateClass.call(void 0, [
313
313
  _commonsdkbase.WithLoggerContext.call(void 0, {
314
- logger: _chunkTC6ITDWVcjs.walletsLogger,
314
+ logger: _chunkJREZWZ2Scjs.walletsLogger,
315
315
  methodName: "walletFactory.getWallet",
316
316
  buildContext(_thisArg, args) {
317
317
  const walletLocator = args[0];
@@ -322,7 +322,7 @@ _chunkUO2J2ZB2cjs.__decorateClass.call(void 0, [
322
322
  ], WalletFactory.prototype, "getWallet", 1);
323
323
  _chunkUO2J2ZB2cjs.__decorateClass.call(void 0, [
324
324
  _commonsdkbase.WithLoggerContext.call(void 0, {
325
- logger: _chunkTC6ITDWVcjs.walletsLogger,
325
+ logger: _chunkJREZWZ2Scjs.walletsLogger,
326
326
  methodName: "walletFactory.createWallet",
327
327
  buildContext(_thisArg, args) {
328
328
  const walletArgs = args[0];
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkSJSXTTSYcjs = require('./chunk-SJSXTTSY.cjs');
3
+ var _chunkPOG76HDDcjs = require('./chunk-POG76HDD.cjs');
4
4
 
5
5
 
6
6
  var _chunkXC2V34TScjs = require('./chunk-XC2V34TS.cjs');
7
7
 
8
8
 
9
- var _chunkTC6ITDWVcjs = require('./chunk-TC6ITDWV.cjs');
9
+ var _chunkJREZWZ2Scjs = require('./chunk-JREZWZ2S.cjs');
10
10
 
11
11
 
12
12
 
@@ -14,7 +14,7 @@ var _chunkUO2J2ZB2cjs = require('./chunk-UO2J2ZB2.cjs');
14
14
 
15
15
  // src/wallets/stellar.ts
16
16
  var _commonsdkbase = require('@crossmint/common-sdk-base');
17
- var _StellarWallet = class _StellarWallet extends _chunkSJSXTTSYcjs.Wallet {
17
+ var _StellarWallet = class _StellarWallet extends _chunkPOG76HDDcjs.Wallet {
18
18
  constructor(wallet) {
19
19
  super(
20
20
  {
@@ -22,10 +22,10 @@ var _StellarWallet = class _StellarWallet extends _chunkSJSXTTSYcjs.Wallet {
22
22
  address: wallet.address,
23
23
  owner: wallet.owner,
24
24
  signer: wallet.signer,
25
- options: _chunkSJSXTTSYcjs.Wallet.getOptions(wallet),
25
+ options: _chunkPOG76HDDcjs.Wallet.getOptions(wallet),
26
26
  alias: wallet.alias
27
27
  },
28
- _chunkSJSXTTSYcjs.Wallet.getApiClient(wallet)
28
+ _chunkPOG76HDDcjs.Wallet.getApiClient(wallet)
29
29
  );
30
30
  }
31
31
  static from(wallet) {
@@ -37,11 +37,11 @@ var _StellarWallet = class _StellarWallet extends _chunkSJSXTTSYcjs.Wallet {
37
37
  sendTransaction(params) {
38
38
  return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
39
39
  var _a;
40
- _chunkTC6ITDWVcjs.walletsLogger.info("stellarWallet.sendTransaction.start");
40
+ _chunkJREZWZ2Scjs.walletsLogger.info("stellarWallet.sendTransaction.start");
41
41
  yield this.preAuthIfNeeded();
42
42
  const createdTransaction = yield this.createTransaction(params);
43
43
  if ((_a = params.options) == null ? void 0 : _a.experimental_prepareOnly) {
44
- _chunkTC6ITDWVcjs.walletsLogger.info("stellarWallet.sendTransaction.prepared", {
44
+ _chunkJREZWZ2Scjs.walletsLogger.info("stellarWallet.sendTransaction.prepared", {
45
45
  transactionId: createdTransaction.id
46
46
  });
47
47
  return {
@@ -52,7 +52,7 @@ var _StellarWallet = class _StellarWallet extends _chunkSJSXTTSYcjs.Wallet {
52
52
  }
53
53
  const options = {};
54
54
  const result = yield this.approveTransactionAndWait(createdTransaction.id, options);
55
- _chunkTC6ITDWVcjs.walletsLogger.info("stellarWallet.sendTransaction.success", {
55
+ _chunkJREZWZ2Scjs.walletsLogger.info("stellarWallet.sendTransaction.success", {
56
56
  transactionId: createdTransaction.id,
57
57
  hash: result.hash
58
58
  });
@@ -96,7 +96,7 @@ var _StellarWallet = class _StellarWallet extends _chunkSJSXTTSYcjs.Wallet {
96
96
  };
97
97
  _chunkUO2J2ZB2cjs.__decorateClass.call(void 0, [
98
98
  _commonsdkbase.WithLoggerContext.call(void 0, {
99
- logger: _chunkTC6ITDWVcjs.walletsLogger,
99
+ logger: _chunkJREZWZ2Scjs.walletsLogger,
100
100
  methodName: "stellarWallet.sendTransaction",
101
101
  buildContext(thisArg) {
102
102
  return { chain: thisArg.chain, address: thisArg.address };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DEFAULT_EVENT_OPTIONS,
3
3
  NonCustodialSigner
4
- } from "./chunk-3KEY2NLC.js";
4
+ } from "./chunk-U3NV7UY7.js";
5
5
  import {
6
6
  walletsLogger
7
- } from "./chunk-DZ6MCPD3.js";
7
+ } from "./chunk-ABMZ3ZVN.js";
8
8
  import {
9
9
  __async
10
10
  } from "./chunk-ASE2FXWP.js";
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
2
 
3
3
 
4
- var _chunk3ASKCQJNcjs = require('./chunk-3ASKCQJN.cjs');
4
+ var _chunkZAX22GSIcjs = require('./chunk-ZAX22GSI.cjs');
5
5
 
6
6
 
7
- var _chunkTC6ITDWVcjs = require('./chunk-TC6ITDWV.cjs');
7
+ var _chunkJREZWZ2Scjs = require('./chunk-JREZWZ2S.cjs');
8
8
 
9
9
 
10
10
  var _chunkUO2J2ZB2cjs = require('./chunk-UO2J2ZB2.cjs');
@@ -12,7 +12,7 @@ var _chunkUO2J2ZB2cjs = require('./chunk-UO2J2ZB2.cjs');
12
12
  // src/signers/non-custodial/ncs-solana-signer.ts
13
13
  var _web3js = require('@solana/web3.js');
14
14
  var _bs58 = require('bs58'); var _bs582 = _interopRequireDefault(_bs58);
15
- var SolanaNonCustodialSigner = class _SolanaNonCustodialSigner extends _chunk3ASKCQJNcjs.NonCustodialSigner {
15
+ var SolanaNonCustodialSigner = class _SolanaNonCustodialSigner extends _chunkZAX22GSIcjs.NonCustodialSigner {
16
16
  constructor(config) {
17
17
  super(config);
18
18
  }
@@ -29,7 +29,7 @@ var SolanaNonCustodialSigner = class _SolanaNonCustodialSigner extends _chunk3AS
29
29
  const transactionBytes = _bs582.default.decode(transaction);
30
30
  const deserializedTransaction = _web3js.VersionedTransaction.deserialize(transactionBytes);
31
31
  const messageData = deserializedTransaction.message.serialize();
32
- _chunkTC6ITDWVcjs.walletsLogger.info("sign: sending request", { keyType: "ed25519" });
32
+ _chunkJREZWZ2Scjs.walletsLogger.info("sign: sending request", { keyType: "ed25519" });
33
33
  const startTime = Date.now();
34
34
  const res = yield (_a = this.config.clientTEEConnection) == null ? void 0 : _a.sendAction({
35
35
  event: "request:sign",
@@ -45,9 +45,9 @@ var SolanaNonCustodialSigner = class _SolanaNonCustodialSigner extends _chunk3AS
45
45
  encoding: "base58"
46
46
  }
47
47
  },
48
- options: _chunk3ASKCQJNcjs.DEFAULT_EVENT_OPTIONS
48
+ options: _chunkZAX22GSIcjs.DEFAULT_EVENT_OPTIONS
49
49
  });
50
- _chunkTC6ITDWVcjs.walletsLogger.info("sign: response received", {
50
+ _chunkJREZWZ2Scjs.walletsLogger.info("sign: response received", {
51
51
  status: res == null ? void 0 : res.status,
52
52
  durationMs: Date.now() - startTime
53
53
  });
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Wallet
3
- } from "./chunk-DPZIHSN7.js";
3
+ } from "./chunk-FHMKNG62.js";
4
4
  import {
5
5
  toViemChain
6
- } from "./chunk-FGGGBNUF.js";
6
+ } from "./chunk-2WBSPOWU.js";
7
7
  import {
8
8
  InvalidTypedDataError,
9
9
  SignatureNotCreatedError,
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-SGINWAB6.js";
12
12
  import {
13
13
  walletsLogger
14
- } from "./chunk-DZ6MCPD3.js";
14
+ } from "./chunk-ABMZ3ZVN.js";
15
15
  import {
16
16
  __async,
17
17
  __decorateClass
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  SDK_NAME,
3
3
  SDK_VERSION
4
- } from "./chunk-NPTNXK47.js";
4
+ } from "./chunk-TYQ4YIP7.js";
5
5
 
6
6
  // src/logger/init.ts
7
7
  import {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  WalletFactory
3
- } from "./chunk-AYE7XUR2.js";
3
+ } from "./chunk-KQH5ZXJ4.js";
4
4
  import {
5
5
  ApiClient
6
- } from "./chunk-KD6N62YZ.js";
6
+ } from "./chunk-W7K5E64Q.js";
7
7
  import {
8
8
  initWalletsLogger,
9
9
  walletsLogger
10
- } from "./chunk-DZ6MCPD3.js";
10
+ } from "./chunk-ABMZ3ZVN.js";
11
11
  import {
12
12
  __async
13
13
  } from "./chunk-ASE2FXWP.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  NonCustodialSigner
3
- } from "./chunk-3KEY2NLC.js";
3
+ } from "./chunk-U3NV7UY7.js";
4
4
  import {
5
5
  validateChainForEnvironment
6
- } from "./chunk-FGGGBNUF.js";
6
+ } from "./chunk-2WBSPOWU.js";
7
7
  import {
8
8
  InvalidSignerError,
9
9
  SignatureFailedError,
@@ -21,10 +21,10 @@ import {
21
21
  } from "./chunk-SGINWAB6.js";
22
22
  import {
23
23
  walletsLogger
24
- } from "./chunk-DZ6MCPD3.js";
24
+ } from "./chunk-ABMZ3ZVN.js";
25
25
  import {
26
26
  STATUS_POLLING_INTERVAL_MS
27
- } from "./chunk-NPTNXK47.js";
27
+ } from "./chunk-TYQ4YIP7.js";
28
28
  import {
29
29
  __async,
30
30
  __decorateClass,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DEFAULT_EVENT_OPTIONS,
3
3
  NonCustodialSigner
4
- } from "./chunk-3KEY2NLC.js";
4
+ } from "./chunk-U3NV7UY7.js";
5
5
  import {
6
6
  walletsLogger
7
- } from "./chunk-DZ6MCPD3.js";
7
+ } from "./chunk-ABMZ3ZVN.js";
8
8
  import {
9
9
  __async
10
10
  } from "./chunk-ASE2FXWP.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  Wallet
3
- } from "./chunk-DPZIHSN7.js";
3
+ } from "./chunk-FHMKNG62.js";
4
4
  import {
5
5
  TransactionNotCreatedError
6
6
  } from "./chunk-SGINWAB6.js";
7
7
  import {
8
8
  walletsLogger
9
- } from "./chunk-DZ6MCPD3.js";
9
+ } from "./chunk-ABMZ3ZVN.js";
10
10
  import {
11
11
  __async,
12
12
  __decorateClass
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
2
 
3
- var _chunkSJSXTTSYcjs = require('./chunk-SJSXTTSY.cjs');
3
+ var _chunkPOG76HDDcjs = require('./chunk-POG76HDD.cjs');
4
4
 
5
5
 
6
6
  var _chunkQ5KNPVYIcjs = require('./chunk-Q5KNPVYI.cjs');
@@ -9,7 +9,7 @@ var _chunkQ5KNPVYIcjs = require('./chunk-Q5KNPVYI.cjs');
9
9
  var _chunkXC2V34TScjs = require('./chunk-XC2V34TS.cjs');
10
10
 
11
11
 
12
- var _chunkTC6ITDWVcjs = require('./chunk-TC6ITDWV.cjs');
12
+ var _chunkJREZWZ2Scjs = require('./chunk-JREZWZ2S.cjs');
13
13
 
14
14
 
15
15
 
@@ -18,7 +18,7 @@ var _chunkUO2J2ZB2cjs = require('./chunk-UO2J2ZB2.cjs');
18
18
  // src/wallets/solana.ts
19
19
  var _bs58 = require('bs58'); var _bs582 = _interopRequireDefault(_bs58);
20
20
  var _commonsdkbase = require('@crossmint/common-sdk-base');
21
- var _SolanaWallet = class _SolanaWallet extends _chunkSJSXTTSYcjs.Wallet {
21
+ var _SolanaWallet = class _SolanaWallet extends _chunkPOG76HDDcjs.Wallet {
22
22
  constructor(wallet) {
23
23
  super(
24
24
  {
@@ -26,10 +26,10 @@ var _SolanaWallet = class _SolanaWallet extends _chunkSJSXTTSYcjs.Wallet {
26
26
  address: wallet.address,
27
27
  owner: wallet.owner,
28
28
  signer: wallet.signer,
29
- options: _chunkSJSXTTSYcjs.Wallet.getOptions(wallet),
29
+ options: _chunkPOG76HDDcjs.Wallet.getOptions(wallet),
30
30
  alias: wallet.alias
31
31
  },
32
- _chunkSJSXTTSYcjs.Wallet.getApiClient(wallet)
32
+ _chunkPOG76HDDcjs.Wallet.getApiClient(wallet)
33
33
  );
34
34
  }
35
35
  static from(wallet) {
@@ -41,11 +41,11 @@ var _SolanaWallet = class _SolanaWallet extends _chunkSJSXTTSYcjs.Wallet {
41
41
  sendTransaction(params) {
42
42
  return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
43
43
  var _a, _b;
44
- _chunkTC6ITDWVcjs.walletsLogger.info("solanaWallet.sendTransaction.start");
44
+ _chunkJREZWZ2Scjs.walletsLogger.info("solanaWallet.sendTransaction.start");
45
45
  yield this.preAuthIfNeeded();
46
46
  const createdTransaction = yield this.createTransaction(params);
47
47
  if ((_a = params.options) == null ? void 0 : _a.experimental_prepareOnly) {
48
- _chunkTC6ITDWVcjs.walletsLogger.info("solanaWallet.sendTransaction.prepared", {
48
+ _chunkJREZWZ2Scjs.walletsLogger.info("solanaWallet.sendTransaction.prepared", {
49
49
  transactionId: createdTransaction.id
50
50
  });
51
51
  return {
@@ -69,7 +69,7 @@ var _SolanaWallet = class _SolanaWallet extends _chunkSJSXTTSYcjs.Wallet {
69
69
  additionalSigners: _additionalSigners
70
70
  };
71
71
  const result = yield this.approveTransactionAndWait(createdTransaction.id, options);
72
- _chunkTC6ITDWVcjs.walletsLogger.info("solanaWallet.sendTransaction.success", {
72
+ _chunkJREZWZ2Scjs.walletsLogger.info("solanaWallet.sendTransaction.success", {
73
73
  transactionId: createdTransaction.id,
74
74
  hash: result.hash
75
75
  });
@@ -101,7 +101,7 @@ var _SolanaWallet = class _SolanaWallet extends _chunkSJSXTTSYcjs.Wallet {
101
101
  };
102
102
  _chunkUO2J2ZB2cjs.__decorateClass.call(void 0, [
103
103
  _commonsdkbase.WithLoggerContext.call(void 0, {
104
- logger: _chunkTC6ITDWVcjs.walletsLogger,
104
+ logger: _chunkJREZWZ2Scjs.walletsLogger,
105
105
  methodName: "solanaWallet.sendTransaction",
106
106
  buildContext(thisArg) {
107
107
  return { chain: thisArg.chain, address: thisArg.address };