@crossmint/wallets-sdk 0.18.7 → 0.18.9

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 (134) hide show
  1. package/dist/api/client.cjs +5 -5
  2. package/dist/api/client.js +4 -4
  3. package/dist/api/gen/client.gen.cjs +1 -1
  4. package/dist/api/gen/client.gen.js +1 -1
  5. package/dist/api/gen/index.cjs +3 -3
  6. package/dist/api/gen/index.js +2 -2
  7. package/dist/api/gen/sdk.gen.cjs +3 -3
  8. package/dist/api/gen/sdk.gen.js +2 -2
  9. package/dist/api/gen/types.gen.d.cts +35 -35
  10. package/dist/api/gen/types.gen.d.ts +35 -35
  11. package/dist/api/index.cjs +5 -5
  12. package/dist/api/index.js +4 -4
  13. package/dist/chains/chains.cjs +5 -3
  14. package/dist/chains/chains.d.cts +1 -1
  15. package/dist/chains/chains.d.ts +1 -1
  16. package/dist/chains/chains.js +4 -2
  17. package/dist/chains/definitions/arcTestnet.cjs +7 -0
  18. package/dist/chains/definitions/arcTestnet.d.cts +43 -0
  19. package/dist/chains/definitions/arcTestnet.d.ts +43 -0
  20. package/dist/chains/definitions/arcTestnet.js +7 -0
  21. package/dist/chains/definitions/story.cjs +1 -1
  22. package/dist/chains/definitions/story.js +1 -1
  23. package/dist/chains/definitions/storyTestnet.cjs +1 -1
  24. package/dist/chains/definitions/storyTestnet.js +1 -1
  25. package/dist/chains/definitions/tempoTestnet.cjs +7 -0
  26. package/dist/chains/definitions/tempoTestnet.d.cts +43 -0
  27. package/dist/chains/definitions/tempoTestnet.d.ts +43 -0
  28. package/dist/chains/definitions/tempoTestnet.js +7 -0
  29. package/dist/{chunk-XTXWNKEW.cjs → chunk-223GEFZO.cjs} +3 -3
  30. package/dist/{chunk-ZTGRDOOH.js → chunk-2I2OFGNL.js} +1 -1
  31. package/dist/{chunk-JDZCRHTY.cjs → chunk-2ZSKJAOT.cjs} +60 -37
  32. package/dist/{chunk-ZOANONUJ.js → chunk-3RSZDA3X.js} +2 -2
  33. package/dist/{chunk-MZBFXUHT.js → chunk-47WKYTRN.js} +1 -1
  34. package/dist/{chunk-6FVQPO66.cjs → chunk-4GFSUI2I.cjs} +4 -4
  35. package/dist/{chunk-SD6JISMO.js → chunk-4QK4L5VF.js} +30 -7
  36. package/dist/{chunk-CN2GVFBU.cjs → chunk-5KDA2N2A.cjs} +13 -1
  37. package/dist/{chunk-5YQOFAXT.cjs → chunk-5M7F5ACW.cjs} +33 -10
  38. package/dist/{chunk-F4IOVQGC.js → chunk-5W4XWZHO.js} +1 -1
  39. package/dist/chunk-6Z5QSTIS.cjs +58 -0
  40. package/dist/{chunk-AL77JANE.js → chunk-7GOUUPS4.js} +1 -1
  41. package/dist/{chunk-KMJLRX2U.cjs → chunk-AN7MHABM.cjs} +6 -6
  42. package/dist/{chunk-FPMW7Q5O.js → chunk-ASE2FXWP.js} +10 -0
  43. package/dist/{chunk-57XM4JCJ.js → chunk-BILOL2NR.js} +66 -9
  44. package/dist/{chunk-RTRDZB52.js → chunk-BMMZIPXT.js} +1 -1
  45. package/dist/{chunk-V3QJQUT7.cjs → chunk-COR3CNRW.cjs} +128 -128
  46. package/dist/{chunk-3RMFEHPA.cjs → chunk-DLPFZLN7.cjs} +71 -14
  47. package/dist/{chunk-DPGKYBPQ.js → chunk-FOOISYCJ.js} +2 -2
  48. package/dist/{chunk-HGX4JKQO.js → chunk-FQUH37WQ.js} +1 -1
  49. package/dist/{chunk-C6XOBHAK.js → chunk-G2CYEQE2.js} +116 -50
  50. package/dist/{chunk-IW7ZXEEH.cjs → chunk-HMAWUNLS.cjs} +11 -11
  51. package/dist/chunk-HTSQPZHW.cjs +25 -0
  52. package/dist/{chunk-V4BXPC4K.cjs → chunk-IIGQSNJW.cjs} +1 -1
  53. package/dist/{chunk-YBA7WO32.cjs → chunk-IOMKHF6R.cjs} +3 -3
  54. package/dist/{chunk-EYJQSDDI.js → chunk-IPO25BCU.js} +1 -1
  55. package/dist/{chunk-KS63YEQ4.js → chunk-IZBTRZ6H.js} +13 -1
  56. package/dist/chunk-J5XAUV2V.cjs +25 -0
  57. package/dist/{chunk-CHGPNMRL.cjs → chunk-JSWTGW46.cjs} +3 -3
  58. package/dist/{chunk-SUEZ3ZZI.js → chunk-K4RPCL5B.js} +3 -3
  59. package/dist/{chunk-J34BVUZE.js → chunk-LOYQBZ5U.js} +29 -6
  60. package/dist/{chunk-BXKSBJGR.cjs → chunk-LQLIK47F.cjs} +29 -29
  61. package/dist/{chunk-2DXHWIAK.cjs → chunk-MNJA5EPY.cjs} +6 -6
  62. package/dist/{chunk-D5RIZNPL.js → chunk-NIVHH42N.js} +52 -29
  63. package/dist/{chunk-DQCXGBZM.js → chunk-PIFD6KNH.js} +1 -1
  64. package/dist/{chunk-WC7T2CR4.js → chunk-PK7J3Y3L.js} +1 -1
  65. package/dist/{chunk-6Q7KXVOM.cjs → chunk-PNCAKT7I.cjs} +166 -100
  66. package/dist/{chunk-R2OY54EJ.cjs → chunk-Q5KNPVYI.cjs} +3 -3
  67. package/dist/{chunk-XSZFANJU.js → chunk-RCK3ZEP7.js} +2 -2
  68. package/dist/{chunk-B42QPEM7.js → chunk-SYZKDDGK.js} +2 -2
  69. package/dist/chunk-T5QUCHZJ.js +25 -0
  70. package/dist/{chunk-XHHRPN7K.cjs → chunk-TEQYWMHS.cjs} +13 -13
  71. package/dist/{chunk-G5NYLGM5.cjs → chunk-UO2J2ZB2.cjs} +11 -1
  72. package/dist/{chunk-4YY7QG2J.js → chunk-UPS2UQJO.js} +2 -2
  73. package/dist/{chunk-OH2AXAJO.js → chunk-UZN67GMO.js} +9 -9
  74. package/dist/{chunk-ZTX2DZ6I.cjs → chunk-WCT4BKO2.cjs} +31 -8
  75. package/dist/{chunk-LULVNCZY.cjs → chunk-WFGKVGZ2.cjs} +7 -7
  76. package/dist/{chunk-LLFD22UQ.cjs → chunk-XOCC3MPK.cjs} +3 -3
  77. package/dist/{chunk-MXIFTAQ7.js → chunk-Z46X5PNX.js} +4 -4
  78. package/dist/chunk-ZBLW42YE.js +25 -0
  79. package/dist/{chunk-BSC55MYK.cjs → chunk-ZNAGDENG.cjs} +3 -3
  80. package/dist/{chunk-7ECQJFYM.cjs → chunk-ZTEMOYS2.cjs} +3 -3
  81. package/dist/index.cjs +26 -24
  82. package/dist/index.js +25 -23
  83. package/dist/logger/index.cjs +4 -4
  84. package/dist/logger/index.js +3 -3
  85. package/dist/logger/init.cjs +4 -4
  86. package/dist/logger/init.js +3 -3
  87. package/dist/sdk.cjs +20 -20
  88. package/dist/sdk.js +19 -19
  89. package/dist/signers/evm-api-key.cjs +3 -3
  90. package/dist/signers/evm-api-key.js +2 -2
  91. package/dist/signers/evm-external-wallet.cjs +3 -3
  92. package/dist/signers/evm-external-wallet.js +2 -2
  93. package/dist/signers/index.cjs +14 -14
  94. package/dist/signers/index.js +13 -13
  95. package/dist/signers/non-custodial/index.cjs +7 -7
  96. package/dist/signers/non-custodial/index.js +6 -6
  97. package/dist/signers/non-custodial/ncs-evm-signer.cjs +5 -5
  98. package/dist/signers/non-custodial/ncs-evm-signer.js +4 -4
  99. package/dist/signers/non-custodial/ncs-iframe-manager.cjs +3 -3
  100. package/dist/signers/non-custodial/ncs-iframe-manager.js +2 -2
  101. package/dist/signers/non-custodial/ncs-signer.cjs +4 -4
  102. package/dist/signers/non-custodial/ncs-signer.js +3 -3
  103. package/dist/signers/non-custodial/ncs-solana-signer.cjs +5 -5
  104. package/dist/signers/non-custodial/ncs-solana-signer.js +4 -4
  105. package/dist/signers/non-custodial/ncs-stellar-signer.cjs +5 -5
  106. package/dist/signers/non-custodial/ncs-stellar-signer.js +4 -4
  107. package/dist/signers/passkey.cjs +3 -3
  108. package/dist/signers/passkey.js +2 -2
  109. package/dist/signers/solana-api-key.cjs +3 -3
  110. package/dist/signers/solana-api-key.js +2 -2
  111. package/dist/signers/solana-external-wallet.cjs +3 -3
  112. package/dist/signers/solana-external-wallet.js +2 -2
  113. package/dist/signers/stellar-external-wallet.cjs +3 -3
  114. package/dist/signers/stellar-external-wallet.js +2 -2
  115. package/dist/signers/types.cjs +1 -1
  116. package/dist/signers/types.js +1 -1
  117. package/dist/utils/constants.cjs +3 -3
  118. package/dist/utils/constants.js +2 -2
  119. package/dist/utils/errors.cjs +1 -1
  120. package/dist/utils/errors.js +1 -1
  121. package/dist/utils/signer-validation.cjs +1 -1
  122. package/dist/utils/signer-validation.js +1 -1
  123. package/dist/wallets/evm.cjs +15 -11
  124. package/dist/wallets/evm.js +14 -10
  125. package/dist/wallets/solana.cjs +13 -11
  126. package/dist/wallets/solana.js +12 -10
  127. package/dist/wallets/stellar.cjs +12 -10
  128. package/dist/wallets/stellar.js +11 -9
  129. package/dist/wallets/wallet-factory.cjs +18 -18
  130. package/dist/wallets/wallet-factory.js +17 -17
  131. package/dist/wallets/wallet.cjs +11 -9
  132. package/dist/wallets/wallet.js +10 -8
  133. package/package.json +3 -3
  134. package/dist/chunk-T4C3VL7H.cjs +0 -58
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk6FVQPO66cjs = require('./chunk-6FVQPO66.cjs');
3
+ var _chunk4GFSUI2Icjs = require('./chunk-4GFSUI2I.cjs');
4
4
 
5
5
 
6
6
  var _chunkRHR6P2KPcjs = require('./chunk-RHR6P2KP.cjs');
7
7
 
8
8
 
9
- var _chunkG5NYLGM5cjs = require('./chunk-G5NYLGM5.cjs');
9
+ var _chunkUO2J2ZB2cjs = require('./chunk-UO2J2ZB2.cjs');
10
10
 
11
11
  // src/signers/non-custodial/ncs-signer.ts
12
12
  var _commonsdkbase = require('@crossmint/common-sdk-base');
@@ -28,13 +28,13 @@ var NonCustodialSigner = class {
28
28
  return this.config.address;
29
29
  }
30
30
  initialize() {
31
- return _chunkG5NYLGM5cjs.__async.call(void 0, this, null, function* () {
31
+ return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
32
32
  if (this.config.clientTEEConnection == null) {
33
33
  const parsedAPIKey = _commonsdkbase.validateAPIKey.call(void 0, this.config.crossmint.apiKey);
34
34
  if (!parsedAPIKey.isValid) {
35
35
  throw new Error("Invalid API key");
36
36
  }
37
- const iframeManager = new (0, _chunk6FVQPO66cjs.NcsIframeManager)({
37
+ const iframeManager = new (0, _chunk4GFSUI2Icjs.NcsIframeManager)({
38
38
  environment: parsedAPIKey.environment
39
39
  });
40
40
  this.config.clientTEEConnection = yield iframeManager.initialize();
@@ -42,7 +42,7 @@ var NonCustodialSigner = class {
42
42
  });
43
43
  }
44
44
  getTEEConnection() {
45
- return _chunkG5NYLGM5cjs.__async.call(void 0, this, null, function* () {
45
+ return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
46
46
  if (this.config.clientTEEConnection == null) {
47
47
  if (this._initializationPromise) {
48
48
  yield this._initializationPromise;
@@ -59,13 +59,13 @@ var NonCustodialSigner = class {
59
59
  });
60
60
  }
61
61
  initializeTEEConnection() {
62
- return _chunkG5NYLGM5cjs.__async.call(void 0, this, null, function* () {
62
+ return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
63
63
  console.warn("TEE connection is not initialized, initializing now...");
64
64
  const parsedAPIKey = _commonsdkbase.validateAPIKey.call(void 0, this.config.crossmint.apiKey);
65
65
  if (!parsedAPIKey.isValid) {
66
66
  throw new Error("Invalid API key");
67
67
  }
68
- const iframeManager = new (0, _chunk6FVQPO66cjs.NcsIframeManager)({
68
+ const iframeManager = new (0, _chunk4GFSUI2Icjs.NcsIframeManager)({
69
69
  environment: parsedAPIKey.environment
70
70
  });
71
71
  this.config.clientTEEConnection = yield iframeManager.initialize();
@@ -76,7 +76,7 @@ var NonCustodialSigner = class {
76
76
  });
77
77
  }
78
78
  handleAuthRequired() {
79
- return _chunkG5NYLGM5cjs.__async.call(void 0, this, null, function* () {
79
+ return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
80
80
  var _a, _b;
81
81
  const clientTEEConnection = yield this.getTEEConnection();
82
82
  if (this.config.onAuthRequired == null) {
@@ -112,7 +112,7 @@ var NonCustodialSigner = class {
112
112
  this._needsAuth,
113
113
  () => this.sendMessageWithOtp(),
114
114
  (otp) => this.verifyOtp(otp),
115
- () => _chunkG5NYLGM5cjs.__async.call(void 0, this, null, function* () {
115
+ () => _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
116
116
  this._needsAuth = false;
117
117
  if (this.config.onAuthRequired != null) {
118
118
  yield this.config.onAuthRequired(
@@ -140,7 +140,7 @@ var NonCustodialSigner = class {
140
140
  });
141
141
  }
142
142
  ensureAuthenticated() {
143
- return _chunkG5NYLGM5cjs.__async.call(void 0, this, null, function* () {
143
+ return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
144
144
  yield this.handleAuthRequired();
145
145
  });
146
146
  }
@@ -162,7 +162,7 @@ var NonCustodialSigner = class {
162
162
  return { promise, resolve: resolvePromise, reject: rejectPromise };
163
163
  }
164
164
  sendMessageWithOtp() {
165
- return _chunkG5NYLGM5cjs.__async.call(void 0, this, null, function* () {
165
+ return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
166
166
  var _a, _b, _c;
167
167
  const handshakeParent = yield this.getTEEConnection();
168
168
  const authId = this.getAuthId();
@@ -195,7 +195,7 @@ var NonCustodialSigner = class {
195
195
  return `phone:${this.config.phone}`;
196
196
  }
197
197
  verifyOtp(encryptedOtp) {
198
- return _chunkG5NYLGM5cjs.__async.call(void 0, this, null, function* () {
198
+ return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
199
199
  var _a, _b, _c, _d, _e;
200
200
  let response;
201
201
  try {
@@ -249,7 +249,7 @@ var NonCustodialSigner = class {
249
249
  * @throws {Error} If signer is not authenticated
250
250
  */
251
251
  _exportPrivateKey(exportTEEConnection) {
252
- return _chunkG5NYLGM5cjs.__async.call(void 0, this, null, function* () {
252
+ return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
253
253
  yield this.handleAuthRequired();
254
254
  const jwt = this.getJwtOrThrow();
255
255
  const { scheme, encoding } = this.getChainKeyParams();
@@ -1,5 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});var __defProp = Object.defineProperty;
2
2
  var __defProps = Object.defineProperties;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
5
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
@@ -20,6 +21,14 @@ var __spreadValues = (a, b) => {
20
21
  return a;
21
22
  };
22
23
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
+ var __decorateClass = (decorators, target, key, kind) => {
25
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
26
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
27
+ if (decorator = decorators[i])
28
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
29
+ if (kind && result) __defProp(target, key, result);
30
+ return result;
31
+ };
23
32
  var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
24
33
  var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
25
34
  var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
@@ -52,4 +61,5 @@ var __async = (__this, __arguments, generator) => {
52
61
 
53
62
 
54
63
 
55
- exports.__spreadValues = __spreadValues; exports.__spreadProps = __spreadProps; exports.__privateGet = __privateGet; exports.__privateAdd = __privateAdd; exports.__privateSet = __privateSet; exports.__async = __async;
64
+
65
+ exports.__spreadValues = __spreadValues; exports.__spreadProps = __spreadProps; exports.__decorateClass = __decorateClass; exports.__privateGet = __privateGet; exports.__privateAdd = __privateAdd; exports.__privateSet = __privateSet; exports.__async = __async;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DEFAULT_EVENT_OPTIONS,
3
3
  NonCustodialSigner
4
- } from "./chunk-XSZFANJU.js";
4
+ } from "./chunk-RCK3ZEP7.js";
5
5
  import {
6
6
  __async
7
- } from "./chunk-FPMW7Q5O.js";
7
+ } from "./chunk-ASE2FXWP.js";
8
8
 
9
9
  // src/signers/non-custodial/ncs-evm-signer.ts
10
10
  import { PersonalMessage } from "ox";
@@ -1,30 +1,30 @@
1
1
  import {
2
2
  EVMNonCustodialSigner
3
- } from "./chunk-4YY7QG2J.js";
3
+ } from "./chunk-UPS2UQJO.js";
4
4
  import {
5
5
  SolanaNonCustodialSigner
6
- } from "./chunk-ZOANONUJ.js";
6
+ } from "./chunk-3RSZDA3X.js";
7
7
  import {
8
8
  StellarNonCustodialSigner
9
- } from "./chunk-B42QPEM7.js";
9
+ } from "./chunk-SYZKDDGK.js";
10
10
  import {
11
11
  EVMApiKeySigner
12
- } from "./chunk-AL77JANE.js";
12
+ } from "./chunk-7GOUUPS4.js";
13
13
  import {
14
14
  EVMExternalWalletSigner
15
- } from "./chunk-MZBFXUHT.js";
15
+ } from "./chunk-47WKYTRN.js";
16
16
  import {
17
17
  PasskeySigner
18
- } from "./chunk-EYJQSDDI.js";
18
+ } from "./chunk-IPO25BCU.js";
19
19
  import {
20
20
  SolanaApiKeySigner
21
- } from "./chunk-ZTGRDOOH.js";
21
+ } from "./chunk-2I2OFGNL.js";
22
22
  import {
23
23
  SolanaExternalWalletSigner
24
- } from "./chunk-DQCXGBZM.js";
24
+ } from "./chunk-PIFD6KNH.js";
25
25
  import {
26
26
  StellarExternalWalletSigner
27
- } from "./chunk-WC7T2CR4.js";
27
+ } from "./chunk-PK7J3Y3L.js";
28
28
 
29
29
  // src/signers/index.ts
30
30
  function assembleSigner(chain, config) {
@@ -1,16 +1,20 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk6Q7KXVOMcjs = require('./chunk-6Q7KXVOM.cjs');
3
+ var _chunkPNCAKT7Icjs = require('./chunk-PNCAKT7I.cjs');
4
4
 
5
5
 
6
6
  var _chunkXC2V34TScjs = require('./chunk-XC2V34TS.cjs');
7
7
 
8
8
 
9
- var _chunkG5NYLGM5cjs = require('./chunk-G5NYLGM5.cjs');
9
+ var _chunk223GEFZOcjs = require('./chunk-223GEFZO.cjs');
10
+
11
+
12
+
13
+ var _chunkUO2J2ZB2cjs = require('./chunk-UO2J2ZB2.cjs');
10
14
 
11
15
  // src/wallets/stellar.ts
12
16
  var _commonsdkbase = require('@crossmint/common-sdk-base');
13
- var StellarWallet = class _StellarWallet extends _chunk6Q7KXVOMcjs.Wallet {
17
+ var _StellarWallet = class _StellarWallet extends _chunkPNCAKT7Icjs.Wallet {
14
18
  constructor(wallet) {
15
19
  super(
16
20
  {
@@ -18,10 +22,10 @@ var StellarWallet = class _StellarWallet extends _chunk6Q7KXVOMcjs.Wallet {
18
22
  address: wallet.address,
19
23
  owner: wallet.owner,
20
24
  signer: wallet.signer,
21
- options: _chunk6Q7KXVOMcjs.Wallet.getOptions(wallet),
25
+ options: _chunkPNCAKT7Icjs.Wallet.getOptions(wallet),
22
26
  alias: wallet.alias
23
27
  },
24
- _chunk6Q7KXVOMcjs.Wallet.getApiClient(wallet)
28
+ _chunkPNCAKT7Icjs.Wallet.getApiClient(wallet)
25
29
  );
26
30
  }
27
31
  static from(wallet) {
@@ -31,11 +35,15 @@ var StellarWallet = class _StellarWallet extends _chunk6Q7KXVOMcjs.Wallet {
31
35
  return new _StellarWallet(wallet);
32
36
  }
33
37
  sendTransaction(params) {
34
- return _chunkG5NYLGM5cjs.__async.call(void 0, this, null, function* () {
38
+ return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
35
39
  var _a;
40
+ _chunk223GEFZOcjs.walletsLogger.info("stellarWallet.sendTransaction.start");
36
41
  yield this.preAuthIfNeeded();
37
42
  const createdTransaction = yield this.createTransaction(params);
38
43
  if ((_a = params.options) == null ? void 0 : _a.experimental_prepareOnly) {
44
+ _chunk223GEFZOcjs.walletsLogger.info("stellarWallet.sendTransaction.prepared", {
45
+ transactionId: createdTransaction.id
46
+ });
39
47
  return {
40
48
  hash: void 0,
41
49
  explorerLink: void 0,
@@ -43,11 +51,16 @@ var StellarWallet = class _StellarWallet extends _chunk6Q7KXVOMcjs.Wallet {
43
51
  };
44
52
  }
45
53
  const options = {};
46
- return yield this.approveTransactionAndWait(createdTransaction.id, options);
54
+ const result = yield this.approveTransactionAndWait(createdTransaction.id, options);
55
+ _chunk223GEFZOcjs.walletsLogger.info("stellarWallet.sendTransaction.success", {
56
+ transactionId: createdTransaction.id,
57
+ hash: result.hash
58
+ });
59
+ return result;
47
60
  });
48
61
  }
49
62
  createTransaction(params) {
50
- return _chunkG5NYLGM5cjs.__async.call(void 0, this, null, function* () {
63
+ return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
51
64
  var _a;
52
65
  const { contractId, options } = params;
53
66
  const signer = (_a = options == null ? void 0 : options.experimental_signer) != null ? _a : this.signer.locator();
@@ -81,6 +94,16 @@ var StellarWallet = class _StellarWallet extends _chunk6Q7KXVOMcjs.Wallet {
81
94
  });
82
95
  }
83
96
  };
97
+ _chunkUO2J2ZB2cjs.__decorateClass.call(void 0, [
98
+ _commonsdkbase.WithLoggerContext.call(void 0, {
99
+ logger: _chunk223GEFZOcjs.walletsLogger,
100
+ methodName: "stellarWallet.sendTransaction",
101
+ buildContext(thisArg) {
102
+ return { chain: thisArg.chain, address: thisArg.address };
103
+ }
104
+ })
105
+ ], _StellarWallet.prototype, "sendTransaction", 1);
106
+ var StellarWallet = _StellarWallet;
84
107
 
85
108
 
86
109
 
@@ -1,32 +1,32 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkXHHRPN7Kcjs = require('./chunk-XHHRPN7K.cjs');
4
+ var _chunkTEQYWMHScjs = require('./chunk-TEQYWMHS.cjs');
5
5
 
6
6
 
7
- var _chunkG5NYLGM5cjs = require('./chunk-G5NYLGM5.cjs');
7
+ var _chunkUO2J2ZB2cjs = require('./chunk-UO2J2ZB2.cjs');
8
8
 
9
9
  // src/signers/non-custodial/ncs-evm-signer.ts
10
10
  var _ox = require('ox');
11
11
  var _viem = require('viem');
12
- var EVMNonCustodialSigner = class _EVMNonCustodialSigner extends _chunkXHHRPN7Kcjs.NonCustodialSigner {
12
+ var EVMNonCustodialSigner = class _EVMNonCustodialSigner extends _chunkTEQYWMHScjs.NonCustodialSigner {
13
13
  constructor(config) {
14
14
  super(config);
15
15
  }
16
16
  signMessage(message) {
17
- return _chunkG5NYLGM5cjs.__async.call(void 0, this, null, function* () {
17
+ return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
18
18
  const messageRaw = _viem.isHex.call(void 0, message) ? message : _viem.toHex.call(void 0, message);
19
19
  const messageToSign = _ox.PersonalMessage.getSignPayload(messageRaw);
20
20
  return yield this.sign(messageToSign);
21
21
  });
22
22
  }
23
23
  signTransaction(transaction) {
24
- return _chunkG5NYLGM5cjs.__async.call(void 0, this, null, function* () {
24
+ return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
25
25
  return yield this.sign(transaction);
26
26
  });
27
27
  }
28
28
  sign(raw) {
29
- return _chunkG5NYLGM5cjs.__async.call(void 0, this, null, function* () {
29
+ return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
30
30
  var _a;
31
31
  yield this.handleAuthRequired();
32
32
  const jwt = this.getJwtOrThrow();
@@ -45,7 +45,7 @@ var EVMNonCustodialSigner = class _EVMNonCustodialSigner extends _chunkXHHRPN7Kc
45
45
  encoding: "hex"
46
46
  }
47
47
  },
48
- options: _chunkXHHRPN7Kcjs.DEFAULT_EVENT_OPTIONS
48
+ options: _chunkTEQYWMHScjs.DEFAULT_EVENT_OPTIONS
49
49
  });
50
50
  if ((res == null ? void 0 : res.status) === "error") {
51
51
  throw new Error(res.error);
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkG5NYLGM5cjs = require('./chunk-G5NYLGM5.cjs');
3
+ var _chunkUO2J2ZB2cjs = require('./chunk-UO2J2ZB2.cjs');
4
4
 
5
5
  // src/signers/solana-api-key.ts
6
6
  var SolanaApiKeySigner = class {
@@ -12,7 +12,7 @@ var SolanaApiKeySigner = class {
12
12
  return this.config.locator;
13
13
  }
14
14
  signMessage() {
15
- return _chunkG5NYLGM5cjs.__async.call(void 0, this, null, function* () {
15
+ return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
16
16
  return yield Promise.reject(
17
17
  new Error(
18
18
  "API key signers do not support direct message signing - signatures are handled automatically by the backend"
@@ -21,7 +21,7 @@ var SolanaApiKeySigner = class {
21
21
  });
22
22
  }
23
23
  signTransaction() {
24
- return _chunkG5NYLGM5cjs.__async.call(void 0, this, null, function* () {
24
+ return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
25
25
  return yield Promise.reject(
26
26
  new Error(
27
27
  "API key signers do not support direct transaction signing - transaction are handled automatically by the backend"
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  WalletFactory
3
- } from "./chunk-D5RIZNPL.js";
3
+ } from "./chunk-NIVHH42N.js";
4
4
  import {
5
5
  ApiClient
6
- } from "./chunk-SUEZ3ZZI.js";
6
+ } from "./chunk-K4RPCL5B.js";
7
7
  import {
8
8
  initWalletsLogger,
9
9
  walletsLogger
10
- } from "./chunk-HGX4JKQO.js";
10
+ } from "./chunk-FQUH37WQ.js";
11
11
  import {
12
12
  __async
13
- } from "./chunk-FPMW7Q5O.js";
13
+ } from "./chunk-ASE2FXWP.js";
14
14
 
15
15
  // src/sdk.ts
16
16
  import { createCrossmint } from "@crossmint/common-sdk-base";
@@ -0,0 +1,25 @@
1
+ // src/chains/definitions/arcTestnet.ts
2
+ import { defineChain } from "viem";
3
+ var arcTestnet = defineChain({
4
+ id: 5042002,
5
+ name: "Arc Testnet",
6
+ nativeCurrency: {
7
+ decimals: 6,
8
+ name: "USDC",
9
+ symbol: "USDC"
10
+ },
11
+ rpcUrls: {
12
+ default: { http: ["https://rpc.testnet.arc.network"] }
13
+ },
14
+ blockExplorers: {
15
+ default: {
16
+ name: "Arc Testnet Explorer",
17
+ url: "https://testnet.arcscan.app"
18
+ }
19
+ },
20
+ testnet: true
21
+ });
22
+
23
+ export {
24
+ arcTestnet
25
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkG5NYLGM5cjs = require('./chunk-G5NYLGM5.cjs');
3
+ var _chunkUO2J2ZB2cjs = require('./chunk-UO2J2ZB2.cjs');
4
4
 
5
5
  // src/signers/passkey.ts
6
6
  var _ox = require('ox');
@@ -14,7 +14,7 @@ var PasskeySigner = class {
14
14
  return this.config.locator;
15
15
  }
16
16
  signMessage(message) {
17
- return _chunkG5NYLGM5cjs.__async.call(void 0, this, null, function* () {
17
+ return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
18
18
  if (this.config.onSignWithPasskey) {
19
19
  return yield this.config.onSignWithPasskey(message);
20
20
  }
@@ -32,7 +32,7 @@ var PasskeySigner = class {
32
32
  });
33
33
  }
34
34
  signTransaction(transaction) {
35
- return _chunkG5NYLGM5cjs.__async.call(void 0, this, null, function* () {
35
+ return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
36
36
  return yield this.signMessage(transaction);
37
37
  });
38
38
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkG5NYLGM5cjs = require('./chunk-G5NYLGM5.cjs');
3
+ var _chunkUO2J2ZB2cjs = require('./chunk-UO2J2ZB2.cjs');
4
4
 
5
5
  // src/signers/evm-external-wallet.ts
6
6
  var EVMExternalWalletSigner = class {
@@ -21,7 +21,7 @@ var EVMExternalWalletSigner = class {
21
21
  return this.config.locator;
22
22
  }
23
23
  signMessage(message) {
24
- return _chunkG5NYLGM5cjs.__async.call(void 0, this, null, function* () {
24
+ return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
25
25
  var _a;
26
26
  if (this.provider != null) {
27
27
  const signature = yield this.provider.request({
@@ -52,7 +52,7 @@ var EVMExternalWalletSigner = class {
52
52
  });
53
53
  }
54
54
  signTransaction(transaction) {
55
- return _chunkG5NYLGM5cjs.__async.call(void 0, this, null, function* () {
55
+ return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
56
56
  return yield this.signMessage(transaction);
57
57
  });
58
58
  }
package/dist/index.cjs CHANGED
@@ -1,50 +1,52 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk3RMFEHPAcjs = require('./chunk-3RMFEHPA.cjs');
3
+ var _chunkDLPFZLN7cjs = require('./chunk-DLPFZLN7.cjs');
4
4
 
5
5
 
6
- var _chunk5YQOFAXTcjs = require('./chunk-5YQOFAXT.cjs');
6
+ var _chunk5M7F5ACWcjs = require('./chunk-5M7F5ACW.cjs');
7
7
 
8
8
 
9
- var _chunkZTX2DZ6Icjs = require('./chunk-ZTX2DZ6I.cjs');
9
+ var _chunkWCT4BKO2cjs = require('./chunk-WCT4BKO2.cjs');
10
10
 
11
11
 
12
12
 
13
- var _chunkIW7ZXEEHcjs = require('./chunk-IW7ZXEEH.cjs');
14
- require('./chunk-JDZCRHTY.cjs');
13
+ var _chunkHMAWUNLScjs = require('./chunk-HMAWUNLS.cjs');
14
+ require('./chunk-2ZSKJAOT.cjs');
15
15
  require('./chunk-RBHGZDDX.cjs');
16
16
 
17
17
 
18
- var _chunk6Q7KXVOMcjs = require('./chunk-6Q7KXVOM.cjs');
19
- require('./chunk-T4C3VL7H.cjs');
18
+ var _chunkPNCAKT7Icjs = require('./chunk-PNCAKT7I.cjs');
19
+ require('./chunk-6Z5QSTIS.cjs');
20
20
  require('./chunk-PO6S7UR3.cjs');
21
- require('./chunk-LULVNCZY.cjs');
22
- require('./chunk-KMJLRX2U.cjs');
23
- require('./chunk-2DXHWIAK.cjs');
24
- require('./chunk-XHHRPN7K.cjs');
25
- require('./chunk-6FVQPO66.cjs');
26
- require('./chunk-CHGPNMRL.cjs');
27
- require('./chunk-7ECQJFYM.cjs');
28
- require('./chunk-BSC55MYK.cjs');
29
- require('./chunk-LLFD22UQ.cjs');
30
- require('./chunk-R2OY54EJ.cjs');
31
- require('./chunk-YBA7WO32.cjs');
21
+ require('./chunk-WFGKVGZ2.cjs');
22
+ require('./chunk-AN7MHABM.cjs');
23
+ require('./chunk-MNJA5EPY.cjs');
24
+ require('./chunk-TEQYWMHS.cjs');
25
+ require('./chunk-4GFSUI2I.cjs');
26
+ require('./chunk-JSWTGW46.cjs');
27
+ require('./chunk-ZTEMOYS2.cjs');
28
+ require('./chunk-ZNAGDENG.cjs');
29
+ require('./chunk-XOCC3MPK.cjs');
30
+ require('./chunk-Q5KNPVYI.cjs');
31
+ require('./chunk-IOMKHF6R.cjs');
32
32
 
33
33
 
34
34
  var _chunkRHR6P2KPcjs = require('./chunk-RHR6P2KP.cjs');
35
35
  require('./chunk-6HXIZLEQ.cjs');
36
36
 
37
37
 
38
- var _chunkBXKSBJGRcjs = require('./chunk-BXKSBJGR.cjs');
38
+ var _chunkLQLIK47Fcjs = require('./chunk-LQLIK47F.cjs');
39
39
  require('./chunk-XC2V34TS.cjs');
40
40
  require('./chunk-ECAM5KTH.cjs');
41
- require('./chunk-CN2GVFBU.cjs');
41
+ require('./chunk-5KDA2N2A.cjs');
42
+ require('./chunk-J5XAUV2V.cjs');
43
+ require('./chunk-HTSQPZHW.cjs');
42
44
  require('./chunk-NIBKCMQ2.cjs');
43
45
  require('./chunk-55V4VMTX.cjs');
44
46
  require('./chunk-CCIGWTAO.cjs');
45
- require('./chunk-XTXWNKEW.cjs');
46
- require('./chunk-V4BXPC4K.cjs');
47
- require('./chunk-G5NYLGM5.cjs');
47
+ require('./chunk-223GEFZO.cjs');
48
+ require('./chunk-IIGQSNJW.cjs');
49
+ require('./chunk-UO2J2ZB2.cjs');
48
50
 
49
51
 
50
52
 
@@ -54,4 +56,4 @@ require('./chunk-G5NYLGM5.cjs');
54
56
 
55
57
 
56
58
 
57
- exports.CrossmintWallets = _chunkIW7ZXEEHcjs.CrossmintWallets; exports.EVMWallet = _chunk3RMFEHPAcjs.EVMWallet; exports.SolanaWallet = _chunk5YQOFAXTcjs.SolanaWallet; exports.StellarWallet = _chunkZTX2DZ6Icjs.StellarWallet; exports.Wallet = _chunk6Q7KXVOMcjs.Wallet; exports.WalletsApiClient = _chunkBXKSBJGRcjs.ApiClient; exports.createCrossmint = _chunkIW7ZXEEHcjs.createCrossmint; exports.isExportableSigner = _chunkRHR6P2KPcjs.isExportableSigner;
59
+ exports.CrossmintWallets = _chunkHMAWUNLScjs.CrossmintWallets; exports.EVMWallet = _chunkDLPFZLN7cjs.EVMWallet; exports.SolanaWallet = _chunk5M7F5ACWcjs.SolanaWallet; exports.StellarWallet = _chunkWCT4BKO2cjs.StellarWallet; exports.Wallet = _chunkPNCAKT7Icjs.Wallet; exports.WalletsApiClient = _chunkLQLIK47Fcjs.ApiClient; exports.createCrossmint = _chunkHMAWUNLScjs.createCrossmint; exports.isExportableSigner = _chunkRHR6P2KPcjs.isExportableSigner;
package/dist/index.js CHANGED
@@ -1,50 +1,52 @@
1
1
  import {
2
2
  EVMWallet
3
- } from "./chunk-57XM4JCJ.js";
3
+ } from "./chunk-BILOL2NR.js";
4
4
  import {
5
5
  SolanaWallet
6
- } from "./chunk-SD6JISMO.js";
6
+ } from "./chunk-4QK4L5VF.js";
7
7
  import {
8
8
  StellarWallet
9
- } from "./chunk-J34BVUZE.js";
9
+ } from "./chunk-LOYQBZ5U.js";
10
10
  import {
11
11
  CrossmintWallets,
12
12
  createCrossmint
13
- } from "./chunk-MXIFTAQ7.js";
14
- import "./chunk-D5RIZNPL.js";
13
+ } from "./chunk-Z46X5PNX.js";
14
+ import "./chunk-NIVHH42N.js";
15
15
  import "./chunk-ZP4ZZCIE.js";
16
16
  import {
17
17
  Wallet
18
- } from "./chunk-C6XOBHAK.js";
19
- import "./chunk-OH2AXAJO.js";
18
+ } from "./chunk-G2CYEQE2.js";
19
+ import "./chunk-UZN67GMO.js";
20
20
  import "./chunk-YDZRBHS3.js";
21
- import "./chunk-4YY7QG2J.js";
22
- import "./chunk-ZOANONUJ.js";
23
- import "./chunk-B42QPEM7.js";
24
- import "./chunk-XSZFANJU.js";
25
- import "./chunk-DPGKYBPQ.js";
26
- import "./chunk-AL77JANE.js";
27
- import "./chunk-MZBFXUHT.js";
28
- import "./chunk-EYJQSDDI.js";
29
- import "./chunk-ZTGRDOOH.js";
30
- import "./chunk-DQCXGBZM.js";
31
- import "./chunk-WC7T2CR4.js";
21
+ import "./chunk-UPS2UQJO.js";
22
+ import "./chunk-3RSZDA3X.js";
23
+ import "./chunk-SYZKDDGK.js";
24
+ import "./chunk-RCK3ZEP7.js";
25
+ import "./chunk-FOOISYCJ.js";
26
+ import "./chunk-7GOUUPS4.js";
27
+ import "./chunk-47WKYTRN.js";
28
+ import "./chunk-IPO25BCU.js";
29
+ import "./chunk-2I2OFGNL.js";
30
+ import "./chunk-PIFD6KNH.js";
31
+ import "./chunk-PK7J3Y3L.js";
32
32
  import {
33
33
  isExportableSigner
34
34
  } from "./chunk-WJUPOCKJ.js";
35
35
  import "./chunk-5IFDVB4Y.js";
36
36
  import {
37
37
  ApiClient
38
- } from "./chunk-SUEZ3ZZI.js";
38
+ } from "./chunk-K4RPCL5B.js";
39
39
  import "./chunk-SGINWAB6.js";
40
40
  import "./chunk-KBJA7JDT.js";
41
- import "./chunk-KS63YEQ4.js";
41
+ import "./chunk-IZBTRZ6H.js";
42
+ import "./chunk-T5QUCHZJ.js";
43
+ import "./chunk-ZBLW42YE.js";
42
44
  import "./chunk-2T5HHKUI.js";
43
45
  import "./chunk-3U6UAYOV.js";
44
46
  import "./chunk-455NK5LB.js";
45
- import "./chunk-HGX4JKQO.js";
46
- import "./chunk-F4IOVQGC.js";
47
- import "./chunk-FPMW7Q5O.js";
47
+ import "./chunk-FQUH37WQ.js";
48
+ import "./chunk-5W4XWZHO.js";
49
+ import "./chunk-ASE2FXWP.js";
48
50
  export {
49
51
  CrossmintWallets,
50
52
  EVMWallet,
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkXTXWNKEWcjs = require('../chunk-XTXWNKEW.cjs');
6
- require('../chunk-V4BXPC4K.cjs');
7
- require('../chunk-G5NYLGM5.cjs');
5
+ var _chunk223GEFZOcjs = require('../chunk-223GEFZO.cjs');
6
+ require('../chunk-IIGQSNJW.cjs');
7
+ require('../chunk-UO2J2ZB2.cjs');
8
8
 
9
9
 
10
10
 
11
- exports.initWalletsLogger = _chunkXTXWNKEWcjs.initWalletsLogger; exports.walletsLogger = _chunkXTXWNKEWcjs.walletsLogger;
11
+ exports.initWalletsLogger = _chunk223GEFZOcjs.initWalletsLogger; exports.walletsLogger = _chunk223GEFZOcjs.walletsLogger;
@@ -2,9 +2,9 @@ import "../chunk-455NK5LB.js";
2
2
  import {
3
3
  initWalletsLogger,
4
4
  walletsLogger
5
- } from "../chunk-HGX4JKQO.js";
6
- import "../chunk-F4IOVQGC.js";
7
- import "../chunk-FPMW7Q5O.js";
5
+ } from "../chunk-FQUH37WQ.js";
6
+ import "../chunk-5W4XWZHO.js";
7
+ import "../chunk-ASE2FXWP.js";
8
8
  export {
9
9
  initWalletsLogger,
10
10
  walletsLogger
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkXTXWNKEWcjs = require('../chunk-XTXWNKEW.cjs');
5
- require('../chunk-V4BXPC4K.cjs');
6
- require('../chunk-G5NYLGM5.cjs');
4
+ var _chunk223GEFZOcjs = require('../chunk-223GEFZO.cjs');
5
+ require('../chunk-IIGQSNJW.cjs');
6
+ require('../chunk-UO2J2ZB2.cjs');
7
7
 
8
8
 
9
9
 
10
- exports.initWalletsLogger = _chunkXTXWNKEWcjs.initWalletsLogger; exports.walletsLogger = _chunkXTXWNKEWcjs.walletsLogger;
10
+ exports.initWalletsLogger = _chunk223GEFZOcjs.initWalletsLogger; exports.walletsLogger = _chunk223GEFZOcjs.walletsLogger;