@imtbl/checkout-sdk 2.4.15-alpha.1 → 2.4.15-alpha.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.
@@ -229,7 +229,7 @@ var _config = require('@imtbl/config');
229
229
  // src/api/http/httpClient.ts
230
230
  var _axios = require('axios'); var _axios2 = _interopRequireDefault(_axios);
231
231
  var Sn = "pk_imapik-";
232
- var kn = [
232
+ var Pn = [
233
233
  "https://checkout-api.dev.immutable.com",
234
234
  "https://checkout-api.sandbox.immutable.com",
235
235
  "https://checkout-api.immutable.com"
@@ -244,7 +244,7 @@ var le = class {
244
244
  }
245
245
  // eslint-disable-next-line class-methods-use-this
246
246
  shouldAddPublishableKey(e) {
247
- return kn.some((t) => e.startsWith(t));
247
+ return Pn.some((t) => e.startsWith(t));
248
248
  }
249
249
  setupInterceptors() {
250
250
  this.axiosInstance.interceptors.request.use(
@@ -409,27 +409,27 @@ var Ae = /* @__PURE__ */ ((a) => {
409
409
 
410
410
  // src/env/constants.ts
411
411
  var Z = "development";
412
- var G = 18;
412
+ var U = 18;
413
413
  var Bt = 6;
414
414
  var _ = "native";
415
415
  var Se = {
416
416
  name: "IMX",
417
417
  symbol: "IMX",
418
- decimals: G,
418
+ decimals: U,
419
419
  address: _
420
420
  };
421
- var Pn = {
421
+ var kn = {
422
422
  name: "tIMX",
423
423
  symbol: "tIMX",
424
- decimals: G,
424
+ decimals: U,
425
425
  address: _
426
426
  };
427
- var L = {
427
+ var V = {
428
428
  [Z]: "https://api.dev.immutable.com",
429
429
  [_config.Environment.SANDBOX]: "https://api.sandbox.immutable.com",
430
430
  [_config.Environment.PRODUCTION]: "https://api.immutable.com"
431
431
  };
432
- var ke = {
432
+ var Pe = {
433
433
  [Z]: "https://checkout-api.dev.immutable.com",
434
434
  [_config.Environment.SANDBOX]: "https://checkout-api.sandbox.immutable.com",
435
435
  [_config.Environment.PRODUCTION]: "https://checkout-api.immutable.com"
@@ -489,7 +489,7 @@ var we = /* @__PURE__ */ new Map([
489
489
  chainIdHex: `0x${13473 .toString(16)}`,
490
490
  chainName: "Immutable zkEVM Testnet",
491
491
  rpcUrls: ["https://rpc.testnet.immutable.com"],
492
- nativeCurrency: Pn
492
+ nativeCurrency: kn
493
493
  }
494
494
  ]
495
495
  ]);
@@ -536,7 +536,7 @@ var te = {
536
536
  nativeToken: ye.get(1).nativeCurrency
537
537
  }
538
538
  };
539
- var D = [
539
+ var L = [
540
540
  {
541
541
  constant: true,
542
542
  inputs: [],
@@ -803,15 +803,15 @@ var ot = {
803
803
  };
804
804
 
805
805
  // src/env/env.ts
806
- var vn = "2.4.15-alpha.1";
806
+ var vn = "2.4.15-alpha.2";
807
807
  var pe = () => vn;
808
808
 
809
809
  // src/availability/availability.ts
810
- var Pe = (r, e) => {
810
+ var ke = (r, e) => {
811
811
  const t = () => {
812
- if (r) return L[Z];
813
- if (e) return L[_config.Environment.PRODUCTION];
814
- return L[_config.Environment.SANDBOX];
812
+ if (r) return V[Z];
813
+ if (e) return V[_config.Environment.PRODUCTION];
814
+ return V[_config.Environment.SANDBOX];
815
815
  };
816
816
  const n = async () => {
817
817
  let o;
@@ -1305,9 +1305,9 @@ var bn = (r, e) => {
1305
1305
  return we;
1306
1306
  };
1307
1307
  var Ln = (r, e) => {
1308
- if (e) return L[Z];
1309
- if (r) return L[_config.Environment.PRODUCTION];
1310
- return L[_config.Environment.SANDBOX];
1308
+ if (e) return V[Z];
1309
+ if (r) return V[_config.Environment.PRODUCTION];
1310
+ return V[_config.Environment.SANDBOX];
1311
1311
  };
1312
1312
  var Dn = (r, e) => {
1313
1313
  if (e) return "imtbl-zkevm-devnet";
@@ -1324,9 +1324,9 @@ var A = (r) => {
1324
1324
  return 13473;
1325
1325
  };
1326
1326
  var Fn = (r, e) => {
1327
- if (e) return ke[Z];
1328
- if (r) return ke[_config.Environment.PRODUCTION];
1329
- return ke[_config.Environment.SANDBOX];
1327
+ if (e) return Pe[Z];
1328
+ if (r) return Pe[_config.Environment.PRODUCTION];
1329
+ return Pe[_config.Environment.SANDBOX];
1330
1330
  };
1331
1331
  var Ie = (_class2 = class {
1332
1332
  // This is a hidden feature that is only available
@@ -1436,7 +1436,7 @@ var O = (r) => !r || T(r, _);
1436
1436
  async function Oe(r, e) {
1437
1437
  return await x(
1438
1438
  async () => {
1439
- const t = new (0, _ethers.Contract)(e, JSON.stringify(D), r);
1439
+ const t = new (0, _ethers.Contract)(e, JSON.stringify(L), r);
1440
1440
  const [n, o, a] = await Promise.all([
1441
1441
  t.name(),
1442
1442
  t.symbol(),
@@ -1619,7 +1619,7 @@ async function ft(r, e, t) {
1619
1619
  async () => {
1620
1620
  const n = new (0, _ethers.Contract)(
1621
1621
  t,
1622
- JSON.stringify(D),
1622
+ JSON.stringify(L),
1623
1623
  r
1624
1624
  );
1625
1625
  return Promise.all([
@@ -1706,7 +1706,7 @@ var zn = async (r, e, t, n) => {
1706
1706
  if (m.value == null) return;
1707
1707
  const f = BigInt(m.value);
1708
1708
  let R = parseInt(E.decimals, 10);
1709
- if (Number.isNaN(R)) R = G;
1709
+ if (Number.isNaN(R)) R = U;
1710
1710
  const I = _nullishCoalesce(E.icon_url, () => ( g.icon));
1711
1711
  const C = {
1712
1712
  ...E,
@@ -1757,7 +1757,7 @@ var Yt = async (r, e, t, n, o) => {
1757
1757
  Kn(r, e, a, o)
1758
1758
  );
1759
1759
  };
1760
- var q = async (r, e, t, n, o = false) => {
1760
+ var G = async (r, e, t, n, o = false) => {
1761
1761
  if (!t && !e) {
1762
1762
  throw new p(
1763
1763
  "both walletAddress and provider are missing. At least one must be provided.",
@@ -2195,7 +2195,7 @@ function Ct() {
2195
2195
  }
2196
2196
 
2197
2197
  // src/provider/injectedProvidersManager.ts
2198
- var F = (_class4 = class r {
2198
+ var D = (_class4 = class r {
2199
2199
 
2200
2200
 
2201
2201
 
@@ -2286,7 +2286,7 @@ async function sr(r, e) {
2286
2286
  let n;
2287
2287
  switch (r) {
2288
2288
  case "passport": {
2289
- n = F.getInstance().findProvider({ rdns: Le.rdns });
2289
+ n = D.getInstance().findProvider({ rdns: Le.rdns });
2290
2290
  if (!n) {
2291
2291
  if (e) {
2292
2292
  t = new b(
@@ -2305,14 +2305,14 @@ async function sr(r, e) {
2305
2305
  break;
2306
2306
  }
2307
2307
  case "metamask": {
2308
- n = F.getInstance().findProvider({ rdns: be.rdns });
2308
+ n = D.getInstance().findProvider({ rdns: be.rdns });
2309
2309
  if (!n) {
2310
2310
  t = await go();
2311
2311
  }
2312
2312
  break;
2313
2313
  }
2314
2314
  default:
2315
- n = F.getInstance().findProvider({ rdns: r });
2315
+ n = D.getInstance().findProvider({ rdns: r });
2316
2316
  if (!n) {
2317
2317
  console.error(
2318
2318
  "The WalletProviderName that was provided is not supported"
@@ -2529,7 +2529,7 @@ var Ao = async (r, e, t, n) => {
2529
2529
  try {
2530
2530
  const o = new (0, _ethers.Contract)(
2531
2531
  t,
2532
- JSON.stringify(D),
2532
+ JSON.stringify(L),
2533
2533
  r
2534
2534
  );
2535
2535
  return await o.allowance(e, n);
@@ -2545,7 +2545,7 @@ var yo = async (r, e, t, n, o) => {
2545
2545
  try {
2546
2546
  const a = new (0, _ethers.Contract)(
2547
2547
  t,
2548
- JSON.stringify(D),
2548
+ JSON.stringify(L),
2549
2549
  r
2550
2550
  );
2551
2551
  const s = await a.approve.populateTransaction(n, o);
@@ -2671,7 +2671,7 @@ var So = async (r, e, t, n, o) => {
2671
2671
  );
2672
2672
  }
2673
2673
  };
2674
- var ko = async (r, e, t) => {
2674
+ var Po = async (r, e, t) => {
2675
2675
  try {
2676
2676
  const n = new (0, _ethers.Contract)(
2677
2677
  e,
@@ -2709,7 +2709,7 @@ var pr = (r, e) => {
2709
2709
  );
2710
2710
  }
2711
2711
  };
2712
- var Po = async (r, e, t) => {
2712
+ var ko = async (r, e, t) => {
2713
2713
  const n = /* @__PURE__ */ new Map();
2714
2714
  const o = /* @__PURE__ */ new Map();
2715
2715
  for (const i of e) {
@@ -2739,7 +2739,7 @@ var ur = async (r, e, t) => {
2739
2739
  const s = /* @__PURE__ */ new Map();
2740
2740
  const i = /* @__PURE__ */ new Map();
2741
2741
  const c = /* @__PURE__ */ new Map();
2742
- const d = await Po(
2742
+ const d = await ko(
2743
2743
  r,
2744
2744
  t,
2745
2745
  e
@@ -2756,12 +2756,12 @@ var ur = async (r, e, t) => {
2756
2756
  });
2757
2757
  continue;
2758
2758
  }
2759
- const k = `${f}-${R}`;
2759
+ const P = `${f}-${R}`;
2760
2760
  const N = pr(R, f);
2761
- a.set(k, E);
2761
+ a.set(P, E);
2762
2762
  s.set(
2763
- k,
2764
- ko(r, f, N)
2763
+ P,
2764
+ Po(r, f, N)
2765
2765
  );
2766
2766
  }
2767
2767
  const l = await Promise.all(s.values());
@@ -2779,7 +2779,7 @@ var ur = async (r, e, t) => {
2779
2779
  n = false;
2780
2780
  const { contractAddress: R, id: I, spenderAddress: C } = f;
2781
2781
  const y = `${R}-${I}`;
2782
- const k = pr(I, R);
2782
+ const P = pr(I, R);
2783
2783
  i.set(
2784
2784
  y,
2785
2785
  {
@@ -2796,7 +2796,7 @@ var ur = async (r, e, t) => {
2796
2796
  e,
2797
2797
  R,
2798
2798
  C,
2799
- k
2799
+ P
2800
2800
  )
2801
2801
  );
2802
2802
  }
@@ -3036,7 +3036,7 @@ var Tr = async (r, e, t) => {
3036
3036
  let s = _nullishCoalesce(_optionalChain([a, 'optionalAccess', _120 => _120.token, 'access', _121 => _121.address]), () => ( ""));
3037
3037
  let i = _nullishCoalesce(_optionalChain([a, 'optionalAccess', _122 => _122.token, 'access', _123 => _123.name]), () => ( ""));
3038
3038
  let c = _nullishCoalesce(_optionalChain([a, 'optionalAccess', _124 => _124.token, 'access', _125 => _125.symbol]), () => ( ""));
3039
- let d = _nullishCoalesce(_optionalChain([a, 'optionalAccess', _126 => _126.token, 'access', _127 => _127.decimals]), () => ( G));
3039
+ let d = _nullishCoalesce(_optionalChain([a, 'optionalAccess', _126 => _126.token, 'access', _127 => _127.decimals]), () => ( U));
3040
3040
  if (!a && o.type === "ERC20") {
3041
3041
  s = o.tokenAddress;
3042
3042
  if (s.toLowerCase() in n) {
@@ -3045,7 +3045,7 @@ var Tr = async (r, e, t) => {
3045
3045
  try {
3046
3046
  const l = new (0, _ethers.Contract)(
3047
3047
  o.tokenAddress,
3048
- JSON.stringify(D),
3048
+ JSON.stringify(L),
3049
3049
  t
3050
3050
  );
3051
3051
  const [u, m, g] = await Promise.all([
@@ -3148,7 +3148,7 @@ var Lo = async (r, e, t, n, o = false) => {
3148
3148
  a.set(i.address.toLocaleLowerCase(), i);
3149
3149
  }
3150
3150
  );
3151
- const { balances: s } = await q(r, e, t, A(r), o);
3151
+ const { balances: s } = await G(r, e, t, A(r), o);
3152
3152
  return s.filter(
3153
3153
  (i) => a.get((i.token.address || _).toLocaleLowerCase())
3154
3154
  );
@@ -3248,11 +3248,11 @@ var hr = async (r, e, t, n, o = false) => {
3248
3248
  if (!C) {
3249
3249
  return;
3250
3250
  }
3251
- const k = C.balance - y.required.balance;
3251
+ const P = C.balance - y.required.balance;
3252
3252
  g.set(R, {
3253
3253
  ...C,
3254
- balance: k,
3255
- formattedBalance: _ethers.formatUnits.call(void 0, k, y.required.token.decimals)
3254
+ balance: P,
3255
+ formattedBalance: _ethers.formatUnits.call(void 0, P, y.required.token.decimals)
3256
3256
  });
3257
3257
  });
3258
3258
  }
@@ -3325,7 +3325,7 @@ var yr = async (r, e, t) => {
3325
3325
  // src/smartCheckout/routing/geoBlocking.ts
3326
3326
  var wr = async () => true;
3327
3327
  var Sr = async (r) => {
3328
- const e = Pe(r.isDevelopment, r.isProduction);
3328
+ const e = ke(r.isDevelopment, r.isProduction);
3329
3329
  try {
3330
3330
  return await e.checkDexAvailability();
3331
3331
  } catch (e4) {
@@ -3337,7 +3337,7 @@ var Sr = async (r) => {
3337
3337
  function ht(r) {
3338
3338
  return _optionalChain([r, 'optionalAccess', _134 => _134.ethereumProvider, 'optionalAccess', _135 => _135.isPassport]) === true;
3339
3339
  }
3340
- var kr = async (r, e) => {
3340
+ var Pr = async (r, e) => {
3341
3341
  const t = {
3342
3342
  onRamp: r.isOnRampEnabled,
3343
3343
  swap: r.isSwapEnabled,
@@ -3363,7 +3363,7 @@ var kr = async (r, e) => {
3363
3363
  };
3364
3364
 
3365
3365
  // src/smartCheckout/routing/tokenBalances.ts
3366
- var Pr = async (r, e, t, n) => {
3366
+ var kr = async (r, e, t, n) => {
3367
3367
  const o = /* @__PURE__ */ new Map();
3368
3368
  const a = /* @__PURE__ */ new Map();
3369
3369
  if (e.size === 0) {
@@ -3379,7 +3379,7 @@ var Pr = async (r, e, t, n) => {
3379
3379
  if (n.bridge) {
3380
3380
  const i = v(r);
3381
3381
  if (e.has(i)) {
3382
- a.set(i, q(
3382
+ a.set(i, G(
3383
3383
  r,
3384
3384
  e.get(i),
3385
3385
  t,
@@ -3395,7 +3395,7 @@ var Pr = async (r, e, t, n) => {
3395
3395
  }
3396
3396
  const s = A(r);
3397
3397
  if (e.has(s)) {
3398
- a.set(s, q(
3398
+ a.set(s, G(
3399
3399
  r,
3400
3400
  e.get(s),
3401
3401
  t,
@@ -3697,7 +3697,7 @@ var Ge = async (r, e, t, n, o, a, s) => {
3697
3697
  const f = m.get(E);
3698
3698
  if (!f) continue;
3699
3699
  const R = u.find(
3700
- (k) => T(k.token.address, E)
3700
+ (P) => T(P.token.address, E)
3701
3701
  );
3702
3702
  if (!R) continue;
3703
3703
  const I = f.quote.amountWithMaxSlippage;
@@ -3875,7 +3875,7 @@ var Yo = (r, e) => {
3875
3875
  return t >= e;
3876
3876
  };
3877
3877
  var Br = (r, e, t, n, o) => {
3878
- const a = _nullishCoalesce(_optionalChain([o, 'optionalAccess', _139 => _139.decimals]), () => ( G));
3878
+ const a = _nullishCoalesce(_optionalChain([o, 'optionalAccess', _139 => _139.decimals]), () => ( U));
3879
3879
  const s = [];
3880
3880
  if (e > 0) {
3881
3881
  s.push({
@@ -3897,13 +3897,13 @@ var Br = (r, e, t, n, o) => {
3897
3897
  approvalGasFee: {
3898
3898
  type: "GAS",
3899
3899
  amount: n,
3900
- formattedAmount: _ethers.formatUnits.call(void 0, n, G),
3900
+ formattedAmount: _ethers.formatUnits.call(void 0, n, U),
3901
3901
  token: o
3902
3902
  },
3903
3903
  bridgeGasFee: {
3904
3904
  type: "GAS",
3905
3905
  amount: r,
3906
- formattedAmount: _ethers.formatUnits.call(void 0, r, G),
3906
+ formattedAmount: _ethers.formatUnits.call(void 0, r, U),
3907
3907
  token: o
3908
3908
  },
3909
3909
  bridgeFees: s
@@ -3952,8 +3952,8 @@ var Ve = async (r, e, t, n, o) => {
3952
3952
  if (!u) return void 0;
3953
3953
  const { l1address: m } = u;
3954
3954
  if (O(m)) {
3955
- if (!l.find((k) => O(k.address))) return void 0;
3956
- } else if (!l.find((k) => T(k.address, m))) {
3955
+ if (!l.find((P) => O(P.address))) return void 0;
3956
+ } else if (!l.find((P) => T(P.address, m))) {
3957
3957
  return void 0;
3958
3958
  }
3959
3959
  const g = await Or(
@@ -3971,8 +3971,8 @@ var Ve = async (r, e, t, n, o) => {
3971
3971
  } = g;
3972
3972
  if (!Yo(c, C)) return void 0;
3973
3973
  if (O(m)) {
3974
- const k = c.balances.find((N) => O(N.token.address));
3975
- if (k && k.balance >= n.amount + C) {
3974
+ const P = c.balances.find((N) => O(N.token.address));
3975
+ if (P && P.balance >= n.amount + C) {
3976
3976
  const N = Br(
3977
3977
  E,
3978
3978
  R,
@@ -3980,22 +3980,22 @@ var Ve = async (r, e, t, n, o) => {
3980
3980
  f,
3981
3981
  i
3982
3982
  );
3983
- return Mr(a, k, n, "NATIVE", N);
3983
+ return Mr(a, P, n, "NATIVE", N);
3984
3984
  }
3985
3985
  return void 0;
3986
3986
  }
3987
3987
  const y = c.balances.find(
3988
- (k) => T(k.token.address, m)
3988
+ (P) => T(P.token.address, m)
3989
3989
  );
3990
3990
  if (y && y.balance >= n.amount) {
3991
- const k = Br(
3991
+ const P = Br(
3992
3992
  E,
3993
3993
  R,
3994
3994
  I,
3995
3995
  f,
3996
3996
  i
3997
3997
  );
3998
- return Mr(a, y, n, "ERC20", k);
3998
+ return Mr(a, y, n, "ERC20", P);
3999
3999
  }
4000
4000
  return void 0;
4001
4001
  };
@@ -4275,37 +4275,37 @@ var Fr = async (r, e, t, n, o, a, s, i, c) => {
4275
4275
  const R = /* @__PURE__ */ new Map();
4276
4276
  const I = /* @__PURE__ */ new Map();
4277
4277
  const C = [];
4278
- for (const U of f) {
4279
- if (!U.l2address) continue;
4278
+ for (const W of f) {
4279
+ if (!W.l2address) continue;
4280
4280
  R.set(
4281
- U.l2address,
4281
+ W.l2address,
4282
4282
  Ve(
4283
4283
  r,
4284
4284
  e,
4285
4285
  t,
4286
- U,
4286
+ W,
4287
4287
  a
4288
4288
  )
4289
4289
  );
4290
- I.set(U.l2address, {
4291
- amount: U.amount,
4292
- formattedAmount: U.formattedAmount,
4293
- l2address: U.l2address
4290
+ I.set(W.l2address, {
4291
+ amount: W.amount,
4292
+ formattedAmount: W.formattedAmount,
4293
+ l2address: W.l2address
4294
4294
  });
4295
4295
  }
4296
4296
  const y = await Promise.all(R.values());
4297
- const k = Array.from(R.keys());
4297
+ const P = Array.from(R.keys());
4298
4298
  const N = [];
4299
- y.forEach((U, et) => {
4300
- const j = k[et];
4301
- if (U === void 0) return;
4302
- N.push(j);
4303
- const P = I.get(j);
4304
- if (!P) return;
4299
+ y.forEach((W, et) => {
4300
+ const q = P[et];
4301
+ if (W === void 0) return;
4302
+ N.push(q);
4303
+ const k = I.get(q);
4304
+ if (!k) return;
4305
4305
  C.push({
4306
- amount: P.amount,
4307
- formattedAmount: P.formattedAmount,
4308
- l2address: P.l2address
4306
+ amount: k.amount,
4307
+ formattedAmount: k.formattedAmount,
4308
+ l2address: k.l2address
4309
4309
  });
4310
4310
  });
4311
4311
  if (N.length === 0) return [];
@@ -4505,7 +4505,7 @@ var Ur = async (r, e, t, n, o) => {
4505
4505
  const s = await S(
4506
4506
  r,
4507
4507
  "Time to get token balances inside router",
4508
- Pr(
4508
+ kr(
4509
4509
  r,
4510
4510
  a,
4511
4511
  e,
@@ -4711,7 +4711,7 @@ var ce = async (r, e, t, n, o, a, s, i = false) => {
4711
4711
  const y = await S(
4712
4712
  r,
4713
4713
  "Time to fetch available routing options",
4714
- kr(r, e)
4714
+ Pr(r, e)
4715
4715
  );
4716
4716
  if (_optionalChain([o, 'optionalAccess', _149 => _149.onRamp]) === false) y.onRamp = false;
4717
4717
  if (_optionalChain([o, 'optionalAccess', _150 => _150.swap]) === false) y.swap = false;
@@ -4739,7 +4739,7 @@ var ce = async (r, e, t, n, o, a, s, i = false) => {
4739
4739
  transactionRequirements: C
4740
4740
  };
4741
4741
  }
4742
- const k = await Gr(
4742
+ const P = await Gr(
4743
4743
  r,
4744
4744
  c,
4745
4745
  I,
@@ -4755,7 +4755,7 @@ var ce = async (r, e, t, n, o, a, s, i = false) => {
4755
4755
  transactionRequirements: C,
4756
4756
  router: {
4757
4757
  availableRoutingOptions: y,
4758
- routingOutcome: k
4758
+ routingOutcome: P
4759
4759
  }
4760
4760
  };
4761
4761
  };
@@ -4808,7 +4808,7 @@ var St = (r) => {
4808
4808
  { error: r }
4809
4809
  );
4810
4810
  };
4811
- var W = async (r, e) => {
4811
+ var F = async (r, e) => {
4812
4812
  try {
4813
4813
  const t = await r.getSigner();
4814
4814
  const n = await Ea(r, e);
@@ -4826,7 +4826,7 @@ var Ke = async (r, e) => {
4826
4826
  let t = [];
4827
4827
  try {
4828
4828
  const n = await Promise.all(
4829
- e.map((o) => W(r, o))
4829
+ e.map((o) => F(r, o))
4830
4830
  );
4831
4831
  t = await Promise.all(n.map((o) => o.transactionResponse.wait()));
4832
4832
  } catch (n) {
@@ -4853,7 +4853,7 @@ var Qe = async (r, e) => {
4853
4853
  let t = [];
4854
4854
  try {
4855
4855
  const n = await Promise.all(e.map(
4856
- (o) => W(r, o)
4856
+ (o) => F(r, o)
4857
4857
  ));
4858
4858
  t = await Promise.all(n.map((o) => o.transactionResponse.wait()));
4859
4859
  } catch (n) {
@@ -4936,7 +4936,7 @@ var Vr = async (r) => {
4936
4936
  e = await Promise.all(t);
4937
4937
  return e;
4938
4938
  };
4939
- var Pt = async (r) => {
4939
+ var kt = async (r) => {
4940
4940
  let e = [];
4941
4941
  const t = [];
4942
4942
  for (const n of r) {
@@ -5038,7 +5038,7 @@ var Sa = (r, e, t, n, o = false) => {
5038
5038
  };
5039
5039
  }
5040
5040
  };
5041
- var ka = (r, e) => {
5041
+ var Pa = (r, e) => {
5042
5042
  if (e.length > 0) {
5043
5043
  return {
5044
5044
  type: "TRANSACTION",
@@ -5075,8 +5075,8 @@ var Kr = async (r, e, t, n = {
5075
5075
  (await e.getSigner()).getAddress()
5076
5076
  );
5077
5077
  gt();
5078
- q(r, e, l, v(r));
5079
- q(r, e, l, A(r));
5078
+ G(r, e, l, v(r));
5079
+ G(r, e, l, A(r));
5080
5080
  const { id: u, takerFees: m, fillAmount: g } = t[0];
5081
5081
  let E;
5082
5082
  try {
@@ -5085,15 +5085,15 @@ var Kr = async (r, e, t, n = {
5085
5085
  "Time to fetch the listing from the orderbook",
5086
5086
  c.getListing(u)
5087
5087
  );
5088
- const { seaportContractAddress: P, chainName: X } = c.config();
5088
+ const { seaportContractAddress: k, chainName: X } = c.config();
5089
5089
  E = X;
5090
- a = P;
5091
- } catch (P) {
5090
+ a = k;
5091
+ } catch (k) {
5092
5092
  throw new p(
5093
5093
  "An error occurred while getting the order listing",
5094
5094
  "GET_ORDER_LISTING_ERROR",
5095
5095
  {
5096
- error: P,
5096
+ error: k,
5097
5097
  orderId: u
5098
5098
  }
5099
5099
  );
@@ -5110,47 +5110,47 @@ var Kr = async (r, e, t, n = {
5110
5110
  }
5111
5111
  const f = o.result.buy[0];
5112
5112
  if (f.type === "ERC20") {
5113
- const P = await S(
5113
+ const k = await S(
5114
5114
  r,
5115
5115
  "Time to get decimals of token contract for the buy token",
5116
5116
  d.getToken({ contractAddress: f.contractAddress, chainName: E })
5117
5117
  );
5118
- if (P.result.decimals) s = P.result.decimals;
5118
+ if (k.result.decimals) s = k.result.decimals;
5119
5119
  }
5120
5120
  let R = [];
5121
5121
  if (m && m.length > 0) {
5122
- const P = o.result.sell[0].type === "ERC721" ? BigInt(1) : BigInt(o.result.sell[0].amount);
5123
- R = $e(m, f.amount, s, P);
5122
+ const k = o.result.sell[0].type === "ERC721" ? BigInt(1) : BigInt(o.result.sell[0].amount);
5123
+ R = $e(m, f.amount, s, k);
5124
5124
  }
5125
5125
  let I = [];
5126
5126
  let C = [];
5127
5127
  let y = [];
5128
- const k = performance.now();
5128
+ const P = performance.now();
5129
5129
  try {
5130
- const { actions: P } = await S(
5130
+ const { actions: k } = await S(
5131
5131
  r,
5132
5132
  "Time to call fulfillOrder from the orderbook",
5133
5133
  c.fulfillOrder(u, l, R, g)
5134
5134
  );
5135
- y = P;
5135
+ y = k;
5136
5136
  I = await S(
5137
5137
  r,
5138
5138
  "Time to construct the unsigned approval transactions",
5139
- Vr(P)
5139
+ Vr(k)
5140
5140
  );
5141
- } catch (P) {
5142
- const X = (performance.now() - k) / 1e3;
5141
+ } catch (k) {
5142
+ const X = (performance.now() - P) / 1e3;
5143
5143
  dt(r, "Time to call fulfillOrder from the orderbook", X);
5144
- if (P.message.includes(_orderbook.OrderStatusName.EXPIRED)) {
5144
+ if (k.message.includes(_orderbook.OrderStatusName.EXPIRED)) {
5145
5145
  throw new p("Order is expired", "ORDER_EXPIRED_ERROR", { orderId: u });
5146
5146
  }
5147
- if (!P.message.includes("The fulfiller does not have the balances needed to fulfill")) {
5147
+ if (!k.message.includes("The fulfiller does not have the balances needed to fulfill")) {
5148
5148
  throw new p(
5149
5149
  "Error occurred while trying to fulfill the order",
5150
5150
  "FULFILL_ORDER_LISTING_ERROR",
5151
5151
  {
5152
5152
  orderId: u,
5153
- error: P
5153
+ error: k
5154
5154
  }
5155
5155
  );
5156
5156
  }
@@ -5159,7 +5159,7 @@ var Kr = async (r, e, t, n = {
5159
5159
  C = await S(
5160
5160
  r,
5161
5161
  "Time to construct the unsigned fulfillment transactions",
5162
- Pt(y)
5162
+ kt(y)
5163
5163
  );
5164
5164
  } catch (e6) {
5165
5165
  }
@@ -5186,14 +5186,14 @@ var Kr = async (r, e, t, n = {
5186
5186
  );
5187
5187
  }
5188
5188
  }
5189
- $.forEach((P) => {
5190
- if (P.type !== "ERC721") {
5191
- N += BigInt(P.amount);
5189
+ $.forEach((k) => {
5190
+ if (k.type !== "ERC721") {
5191
+ N += BigInt(k.amount);
5192
5192
  }
5193
5193
  });
5194
- const U = o.result.fees;
5195
- U.forEach((P) => {
5196
- N += BigInt(P.amount);
5194
+ const W = o.result.fees;
5195
+ W.forEach((k) => {
5196
+ N += BigInt(k.amount);
5197
5197
  });
5198
5198
  if (o.result.sell[0].type === "ERC1155" && g) {
5199
5199
  N = N * BigInt(g) / BigInt(o.result.sell[0].amount);
@@ -5201,79 +5201,79 @@ var Kr = async (r, e, t, n = {
5201
5201
  const et = [
5202
5202
  Sa(z, de, N, a)
5203
5203
  ];
5204
- const j = await S(
5204
+ const q = await S(
5205
5205
  r,
5206
5206
  "Total time running smart checkout",
5207
5207
  ce(
5208
5208
  r,
5209
5209
  e,
5210
5210
  et,
5211
- ka(
5211
+ Pa(
5212
5212
  i,
5213
5213
  C
5214
5214
  )
5215
5215
  )
5216
5216
  );
5217
- if (j.sufficient) {
5218
- const P = await Ke(e, I);
5219
- if (P.type === "FAILED") {
5217
+ if (q.sufficient) {
5218
+ const k = await Ke(e, I);
5219
+ if (k.type === "FAILED") {
5220
5220
  return {
5221
5221
  status: "FAILED",
5222
- transactionHash: P.transactionHash,
5223
- reason: P.reason,
5224
- smartCheckoutResult: j
5222
+ transactionHash: k.transactionHash,
5223
+ reason: k.reason,
5224
+ smartCheckoutResult: q
5225
5225
  };
5226
5226
  }
5227
5227
  try {
5228
5228
  if (C.length === 0) {
5229
- C = await Pt(y);
5229
+ C = await kt(y);
5230
5230
  }
5231
- } catch (V) {
5231
+ } catch (j) {
5232
5232
  throw new p(
5233
5233
  "Error fetching fulfillment transaction",
5234
5234
  "FULFILL_ORDER_LISTING_ERROR",
5235
- { error: V }
5235
+ { error: j }
5236
5236
  );
5237
5237
  }
5238
5238
  if (n.waitFulfillmentSettlements) {
5239
- const V = await Qe(e, C);
5240
- if (V.type === "FAILED") {
5239
+ const j = await Qe(e, C);
5240
+ if (j.type === "FAILED") {
5241
5241
  return {
5242
5242
  status: "FAILED",
5243
- transactionHash: V.transactionHash,
5244
- reason: V.reason,
5245
- smartCheckoutResult: j
5243
+ transactionHash: j.transactionHash,
5244
+ reason: j.reason,
5245
+ smartCheckoutResult: q
5246
5246
  };
5247
5247
  }
5248
5248
  return {
5249
5249
  status: "SUCCESS",
5250
- smartCheckoutResult: j
5250
+ smartCheckoutResult: q
5251
5251
  };
5252
5252
  }
5253
5253
  let X;
5254
5254
  try {
5255
- const V = await Promise.all(C.map(
5256
- (tt) => W(e, tt)
5255
+ const j = await Promise.all(C.map(
5256
+ (tt) => F(e, tt)
5257
5257
  ));
5258
- X = V.map((tt) => tt.transactionResponse);
5259
- } catch (V) {
5258
+ X = j.map((tt) => tt.transactionResponse);
5259
+ } catch (j) {
5260
5260
  throw new p(
5261
5261
  "An error occurred while executing the fulfillment transaction",
5262
5262
  "EXECUTE_FULFILLMENT_TRANSACTION_ERROR",
5263
5263
  {
5264
- message: V.message
5264
+ message: j.message
5265
5265
  }
5266
5266
  );
5267
5267
  }
5268
5268
  return {
5269
5269
  status: "FULFILLMENTS_UNSETTLED",
5270
- smartCheckoutResult: j,
5270
+ smartCheckoutResult: q,
5271
5271
  transactions: X
5272
5272
  };
5273
5273
  }
5274
5274
  return {
5275
5275
  status: "INSUFFICIENT_FUNDS",
5276
- smartCheckoutResult: j
5276
+ smartCheckoutResult: q
5277
5277
  };
5278
5278
  };
5279
5279
 
@@ -5328,7 +5328,7 @@ var va = async (r, e, t, n, o) => {
5328
5328
  let i;
5329
5329
  try {
5330
5330
  const c = await Promise.all([a].map(
5331
- (d) => W(t, d)
5331
+ (d) => F(t, d)
5332
5332
  ));
5333
5333
  i = c.map((d) => d.transactionResponse);
5334
5334
  } catch (c) {
@@ -5415,7 +5415,7 @@ async function Yr(r, e) {
5415
5415
  e.forEach((a) => {
5416
5416
  if (a.type === "ERC20") {
5417
5417
  const { tokenAddress: s } = a;
5418
- t.push(nr(s, D, r).decimals());
5418
+ t.push(nr(s, L, r).decimals());
5419
5419
  }
5420
5420
  });
5421
5421
  const n = await Promise.all(t);
@@ -5491,7 +5491,7 @@ var Jr = async (r, e, t) => {
5491
5491
  if (s.type === "ERC20") {
5492
5492
  const f = new (0, _ethers.Contract)(
5493
5493
  s.tokenAddress,
5494
- JSON.stringify(D),
5494
+ JSON.stringify(L),
5495
5495
  e
5496
5496
  );
5497
5497
  l = await S(
@@ -5607,7 +5607,7 @@ var Jr = async (r, e, t) => {
5607
5607
  I
5608
5608
  );
5609
5609
  let y = "";
5610
- const k = {
5610
+ const P = {
5611
5611
  orderComponents: C.orderComponents,
5612
5612
  orderHash: C.orderHash,
5613
5613
  orderSignature: C.signedMessage,
@@ -5623,10 +5623,10 @@ var Jr = async (r, e, t) => {
5623
5623
  "CREATE_ORDER_LISTING_ERROR"
5624
5624
  );
5625
5625
  }
5626
- k.makerFees = z;
5626
+ P.makerFees = z;
5627
5627
  }
5628
5628
  try {
5629
- const N = await n.createListing(k);
5629
+ const N = await n.createListing(P);
5630
5630
  y = N.result.id;
5631
5631
  } catch (N) {
5632
5632
  throw new p(
@@ -5715,7 +5715,7 @@ var Xr = async (r, e, t, n, o, a, s, i, c) => {
5715
5715
  c
5716
5716
  );
5717
5717
  if (d.approval) {
5718
- const m = await W(e, d.approval.transaction);
5718
+ const m = await F(e, d.approval.transaction);
5719
5719
  const g = await m.transactionResponse.wait();
5720
5720
  if (_optionalChain([g, 'optionalAccess', _156 => _156.status]) === 0) {
5721
5721
  throw new p(
@@ -5724,7 +5724,7 @@ var Xr = async (r, e, t, n, o, a, s, i, c) => {
5724
5724
  );
5725
5725
  }
5726
5726
  }
5727
- const l = await W(e, d.swap.transaction);
5727
+ const l = await F(e, d.swap.transaction);
5728
5728
  const u = await l.transactionResponse.wait();
5729
5729
  if (_optionalChain([u, 'optionalAccess', _157 => _157.status]) === 0) {
5730
5730
  throw new p(
@@ -5758,80 +5758,17 @@ async function en(r) {
5758
5758
  }
5759
5759
 
5760
5760
  // src/riskAssessment/riskAssessment.ts
5761
-
5762
- var Nt = async (r, e) => {
5763
- const t = Object.fromEntries(
5764
- r.map((o) => [o.toLowerCase(), { sanctioned: false }])
5765
- );
5766
- const n = await e.remote.getConfig("riskAssessment");
5767
- if (!_optionalChain([n, 'optionalAccess', _161 => _161.enabled])) {
5768
- return t;
5769
- }
5770
- try {
5771
- const o = _nullishCoalesce(_optionalChain([n, 'optionalAccess', _162 => _162.levels, 'access', _163 => _163.map, 'call', _164 => _164((s) => s.toLowerCase())]), () => ( []));
5772
- const a = await _axios2.default.post(
5773
- `${L[e.environment]}/v1/sanctions/check`,
5774
- {
5775
- addresses: r
5776
- }
5777
- );
5778
- for (const s of a.data) {
5779
- t[s.address.toLowerCase()].sanctioned = o.includes(
5780
- s.risk.toLowerCase()
5781
- );
5782
- }
5783
- return t;
5784
- } catch (o) {
5785
- console.error("Error fetching risk assessment", o);
5786
- return t;
5787
- }
5788
- };
5789
-
5790
- // src/riskAssessment/riskAssessmentV2.ts
5791
-
5792
- var ja = async (r, e) => {
5793
- const t = Object.fromEntries(
5794
- r.map((o) => [o.address.toLowerCase(), { sanctioned: false }])
5795
- );
5796
- const n = await e.remote.getConfig("riskAssessment");
5797
- if (!_optionalChain([n, 'optionalAccess', _165 => _165.enabled])) {
5798
- return t;
5799
- }
5800
- try {
5801
- const o = _nullishCoalesce(_optionalChain([n, 'optionalAccess', _166 => _166.levels, 'access', _167 => _167.map, 'call', _168 => _168((i) => i.toLowerCase())]), () => ( []));
5802
- const a = r.map((i) => ({
5803
- address: i.address,
5804
- token_addr: i.tokenAddr,
5805
- amount: i.amount.toString()
5806
- }));
5807
- const s = await _axios2.default.post(
5808
- `${L[e.environment]}/v2/sanctions/check`,
5809
- a
5810
- );
5811
- for (const i of s.data) {
5812
- t[i.address.toLowerCase()].sanctioned = o.includes(
5813
- i.risk.toLowerCase()
5814
- );
5815
- }
5816
- return t;
5817
- } catch (o) {
5818
- console.error("Error fetching risk assessment", o);
5819
- return t;
5820
- }
5821
- };
5761
+ var Nt = async (r, e) => Object.fromEntries(
5762
+ r.map((t) => [t.toLowerCase(), { sanctioned: false }])
5763
+ );
5822
5764
 
5823
5765
  // src/riskAssessment/common.ts
5824
- var _t = (r, e) => {
5825
- if (e) {
5826
- return r[e.toLowerCase()].sanctioned;
5827
- }
5828
- return Object.values(r).some((t) => t.sanctioned);
5829
- };
5830
- var Va = (r, e) => r[e.toLowerCase()].sanctioned;
5831
- var Ha = (r) => Object.values(r).some((e) => e.sanctioned);
5766
+ var _t = (r, e) => false;
5767
+ var Ga = (r, e) => false;
5768
+ var qa = (r) => false;
5832
5769
 
5833
5770
  // src/sdk.ts
5834
- var Ka = {
5771
+ var Va = {
5835
5772
  baseConfig: {
5836
5773
  environment: _config.Environment.SANDBOX
5837
5774
  },
@@ -5848,17 +5785,17 @@ var Ot = class {
5848
5785
  * Constructs a new instance of the CheckoutModule class.
5849
5786
  * @param {CheckoutModuleConfiguration} [config=SANDBOX_CONFIGURATION] - The configuration object for the CheckoutModule.
5850
5787
  */
5851
- constructor(e = Ka) {
5788
+ constructor(e = Va) {
5852
5789
  this.httpClient = new le(e);
5853
5790
  this.config = new Ie(e, this.httpClient);
5854
5791
  this.fiatRampService = new Be(this.config);
5855
5792
  this.readOnlyProviders = /* @__PURE__ */ new Map();
5856
- this.availability = Pe(
5793
+ this.availability = ke(
5857
5794
  this.config.isDevelopment,
5858
5795
  this.config.isProduction
5859
5796
  );
5860
5797
  this.passport = e.passport;
5861
- F.getInstance().initialise();
5798
+ D.getInstance().initialise();
5862
5799
  }
5863
5800
  /**
5864
5801
  * Loads the widgets bundle and initiates the widgets factory.
@@ -5904,7 +5841,7 @@ var Ot = class {
5904
5841
  * @returns {readonly EIP6963ProviderDetail[]} A readonly array of injected providers and their metadata.
5905
5842
  */
5906
5843
  getInjectedProviders() {
5907
- return F.getInstance().getProviders();
5844
+ return D.getInstance().getProviders();
5908
5845
  }
5909
5846
  /**
5910
5847
  * Finds an injected provider by its RDNS.
@@ -5912,7 +5849,7 @@ var Ot = class {
5912
5849
  * @returns {EIP6963ProviderDetail | undefined} - The found provider and metadata or undefined.
5913
5850
  */
5914
5851
  findInjectedProvider(e) {
5915
- return F.getInstance().findProvider(e);
5852
+ return D.getInstance().findProvider(e);
5916
5853
  }
5917
5854
  /**
5918
5855
  * Subscribes to changes in the injected providers.
@@ -5920,14 +5857,14 @@ var Ot = class {
5920
5857
  * @returns {() => void} - A function to unsubscribe the listener.
5921
5858
  */
5922
5859
  onInjectedProvidersChange(e) {
5923
- return F.getInstance().subscribe(e);
5860
+ return D.getInstance().subscribe(e);
5924
5861
  }
5925
5862
  /**
5926
5863
  * Clears all registered injected providers and their subscriptions.
5927
5864
  * @returns {void} This method doesn't return a value
5928
5865
  */
5929
5866
  clearInjectedProviders() {
5930
- return F.getInstance().clear();
5867
+ return D.getInstance().clear();
5931
5868
  }
5932
5869
  /**
5933
5870
  * Checks if a wallet is connected to the specified provider.
@@ -5947,6 +5884,7 @@ var Ot = class {
5947
5884
  }
5948
5885
  /**
5949
5886
  * Fetches the risk assessment for the given addresses.
5887
+ * @deprecated This function is deprecated and will be removed.
5950
5888
  * @param {string[]} addresses - The addresses to assess.
5951
5889
  * @returns {Promise<AssessmentResult>} - A promise that resolves to the risk assessment result.
5952
5890
  */
@@ -5955,6 +5893,7 @@ var Ot = class {
5955
5893
  }
5956
5894
  /**
5957
5895
  * Helper method that checks if given risk assessment results contain sanctioned addresses.
5896
+ * @deprecated This function is deprecated and will be removed.
5958
5897
  * @param {AssessmentResult} assessment - Risk assessment to analyse.
5959
5898
  * @param {string} [address] - If defined, only sanctions for the given address will be checked.
5960
5899
  * @returns {boolean} - Result of the check.
@@ -6066,7 +6005,7 @@ var Ot = class {
6066
6005
  */
6067
6006
  async getAllBalances(e) {
6068
6007
  const t = !e.provider || "ethereumProvider" in e.provider ? e.provider : new b(e.provider);
6069
- return q(
6008
+ return G(
6070
6009
  this.config,
6071
6010
  t,
6072
6011
  e.walletAddress,
@@ -6111,7 +6050,7 @@ var Ot = class {
6111
6050
  allowMistmatchedChainId: true
6112
6051
  }
6113
6052
  );
6114
- return await W(t, e.transaction);
6053
+ return await F(t, e.transaction);
6115
6054
  }
6116
6055
  /**
6117
6056
  * Wraps a WrappedBrowserProvider call to validate the provider and handle errors.
@@ -6292,20 +6231,20 @@ var Ot = class {
6292
6231
  let o;
6293
6232
  const a = "request" in e.browserProvider ? new b(e.browserProvider) : e.browserProvider;
6294
6233
  const s = await (await a.getSigner()).getAddress();
6295
- const i = _optionalChain([a, 'access', _169 => _169.ethereumProvider, 'optionalAccess', _170 => _170.isPassport]) || false;
6234
+ const i = _optionalChain([a, 'access', _161 => _161.ethereumProvider, 'optionalAccess', _162 => _162.isPassport]) || false;
6296
6235
  if (i && e.passport) {
6297
6236
  const u = await e.passport.getUserInfo();
6298
- o = _optionalChain([u, 'optionalAccess', _171 => _171.email]);
6237
+ o = _optionalChain([u, 'optionalAccess', _163 => _163.email]);
6299
6238
  }
6300
6239
  const c = await H(this.config, {
6301
6240
  type: "onramp"
6302
6241
  });
6303
- const d = _optionalChain([c, 'access', _172 => _172.tokens, 'optionalAccess', _173 => _173.find, 'call', _174 => _174((u) => T(u.address, e.tokenAddress))]);
6242
+ const d = _optionalChain([c, 'access', _164 => _164.tokens, 'optionalAccess', _165 => _165.find, 'call', _166 => _166((u) => T(u.address, e.tokenAddress))]);
6304
6243
  if (d) {
6305
6244
  t = e.tokenAmount;
6306
6245
  n = d.symbol;
6307
6246
  }
6308
- const l = _optionalChain([c, 'optionalAccess', _175 => _175.tokens, 'optionalAccess', _176 => _176.filter, 'call', _177 => _177((u) => u.symbol), 'access', _178 => _178.map, 'call', _179 => _179((u) => u.symbol)]);
6247
+ const l = _optionalChain([c, 'optionalAccess', _167 => _167.tokens, 'optionalAccess', _168 => _168.filter, 'call', _169 => _169((u) => u.symbol), 'access', _170 => _170.map, 'call', _171 => _171((u) => u.symbol)]);
6309
6248
  return await this.fiatRampService.createWidgetUrl({
6310
6249
  exchangeType: e.exchangeType,
6311
6250
  isPassport: i,
@@ -6385,7 +6324,7 @@ var Xe = class {
6385
6324
  * @returns {string | undefined} The URL to view the transaction on Blockscout, or undefined if the chain ID or hash is invalid
6386
6325
  */
6387
6326
  static getTransactionLink(e, t) {
6388
- const n = _optionalChain([te, 'optionalAccess', _180 => _180[e], 'optionalAccess', _181 => _181.url]);
6327
+ const n = _optionalChain([te, 'optionalAccess', _172 => _172[e], 'optionalAccess', _173 => _173.url]);
6389
6328
  if (!n || !t) return void 0;
6390
6329
  return `${n}/tx/${t}`;
6391
6330
  }
@@ -6448,5 +6387,4 @@ var Xe = class {
6448
6387
 
6449
6388
 
6450
6389
 
6451
-
6452
- exports.AddTokensEventType = En; exports.BlockExplorerService = Xe; exports.BridgeEventType = dn; exports.ChainId = Q; exports.ChainName = rt; exports.ChainSlug = Ae; exports.Checkout = Ot; exports.CheckoutConfiguration = Ie; exports.CheckoutError = p; exports.CheckoutErrorType = w; exports.CheckoutStatus = fe; exports.CommerceEventType = un; exports.CommerceFailureEventType = fn; exports.CommerceFlowType = An; exports.CommerceSuccessEventType = mn; exports.CommerceUserActionEventType = gn; exports.ConnectEventType = nn; exports.ConnectTargetLayer = In; exports.ExchangeType = qt; exports.FeeType = ve; exports.FundingStepType = Re; exports.GasEstimateType = at; exports.GasTokenType = Ee; exports.IMMUTABLE_API_BASE_URL = L; exports.IMTBLWidgetEvents = tn; exports.ItemType = B; exports.NetworkFilterTypes = ue; exports.OnRampEventType = pn; exports.OrchestrationEventType = ln; exports.ProviderEventType = rn; exports.PurchaseEventType = Rn; exports.RoutingOutcomeType = st; exports.SaleEventType = sn; exports.SalePaymentTypes = cn; exports.SwapDirection = hn; exports.SwapEventType = an; exports.TokenFilterTypes = ne; exports.TransactionOrGasType = ge; exports.TransferEventType = Cn; exports.WalletEventType = on; exports.WalletFilterTypes = Wt; exports.WalletProviderName = me; exports.WalletProviderRdns = Ut; exports.WidgetTheme = yn; exports.WidgetType = Tn; exports.WrappedBrowserProvider = b; exports.fetchRiskAssessment = Nt; exports.fetchRiskAssessmentV2 = ja; exports.getGasPriceInWei = Et; exports.getMetaMaskProviderDetail = mo; exports.getPassportProviderDetail = uo; exports.getUnderlyingChainId = Ce; exports.isAddressSanctioned = _t; exports.isSingleAddressSanctioned = Va; exports.metaMaskProviderInfo = be; exports.passportProviderInfo = Le; exports.resultHasSanctionedWallets = Ha; exports.validateProvider = M;
6390
+ exports.AddTokensEventType = En; exports.BlockExplorerService = Xe; exports.BridgeEventType = dn; exports.ChainId = Q; exports.ChainName = rt; exports.ChainSlug = Ae; exports.Checkout = Ot; exports.CheckoutConfiguration = Ie; exports.CheckoutError = p; exports.CheckoutErrorType = w; exports.CheckoutStatus = fe; exports.CommerceEventType = un; exports.CommerceFailureEventType = fn; exports.CommerceFlowType = An; exports.CommerceSuccessEventType = mn; exports.CommerceUserActionEventType = gn; exports.ConnectEventType = nn; exports.ConnectTargetLayer = In; exports.ExchangeType = qt; exports.FeeType = ve; exports.FundingStepType = Re; exports.GasEstimateType = at; exports.GasTokenType = Ee; exports.IMMUTABLE_API_BASE_URL = V; exports.IMTBLWidgetEvents = tn; exports.ItemType = B; exports.NetworkFilterTypes = ue; exports.OnRampEventType = pn; exports.OrchestrationEventType = ln; exports.ProviderEventType = rn; exports.PurchaseEventType = Rn; exports.RoutingOutcomeType = st; exports.SaleEventType = sn; exports.SalePaymentTypes = cn; exports.SwapDirection = hn; exports.SwapEventType = an; exports.TokenFilterTypes = ne; exports.TransactionOrGasType = ge; exports.TransferEventType = Cn; exports.WalletEventType = on; exports.WalletFilterTypes = Wt; exports.WalletProviderName = me; exports.WalletProviderRdns = Ut; exports.WidgetTheme = yn; exports.WidgetType = Tn; exports.WrappedBrowserProvider = b; exports.fetchRiskAssessment = Nt; exports.getGasPriceInWei = Et; exports.getMetaMaskProviderDetail = mo; exports.getPassportProviderDetail = uo; exports.getUnderlyingChainId = Ce; exports.isAddressSanctioned = _t; exports.isSingleAddressSanctioned = Ga; exports.metaMaskProviderInfo = be; exports.passportProviderInfo = Le; exports.resultHasSanctionedWallets = qa; exports.validateProvider = M;