@imtbl/checkout-sdk 2.4.15-alpha.0 → 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.
@@ -224,7 +224,7 @@ var Po = /* @__PURE__ */ ((t) => {
224
224
  })(Po || {});
225
225
 
226
226
  // src/sdk.ts
227
- import { Environment as Qa } from "@imtbl/config";
227
+ import { Environment as Ka } from "@imtbl/config";
228
228
 
229
229
  // src/api/http/httpClient.ts
230
230
  import So from "axios";
@@ -409,22 +409,22 @@ var we = /* @__PURE__ */ ((a) => {
409
409
 
410
410
  // src/env/constants.ts
411
411
  var J = "development";
412
- var j = 18;
412
+ var q = 18;
413
413
  var Mt = 6;
414
414
  var O = "native";
415
415
  var ke = {
416
416
  name: "IMX",
417
417
  symbol: "IMX",
418
- decimals: j,
418
+ decimals: q,
419
419
  address: O
420
420
  };
421
421
  var No = {
422
422
  name: "tIMX",
423
423
  symbol: "tIMX",
424
- decimals: j,
424
+ decimals: q,
425
425
  address: O
426
426
  };
427
- var W = {
427
+ var H = {
428
428
  [J]: "https://api.dev.immutable.com",
429
429
  [re.SANDBOX]: "https://api.sandbox.immutable.com",
430
430
  [re.PRODUCTION]: "https://api.immutable.com"
@@ -536,7 +536,7 @@ var oe = {
536
536
  nativeToken: Pe.get(1).nativeCurrency
537
537
  }
538
538
  };
539
- var F = [
539
+ var W = [
540
540
  {
541
541
  constant: true,
542
542
  inputs: [],
@@ -803,15 +803,15 @@ var it = {
803
803
  };
804
804
 
805
805
  // src/env/env.ts
806
- var _o = "2.4.15-alpha.0";
806
+ var _o = "2.4.15-alpha.2";
807
807
  var me = () => _o;
808
808
 
809
809
  // src/availability/availability.ts
810
810
  var Ne = (r, e) => {
811
811
  const t = () => {
812
- if (r) return W[J];
813
- if (e) return W[Ut.PRODUCTION];
814
- return W[Ut.SANDBOX];
812
+ if (r) return H[J];
813
+ if (e) return H[Ut.PRODUCTION];
814
+ return H[Ut.SANDBOX];
815
815
  };
816
816
  const o = async () => {
817
817
  let n;
@@ -1305,9 +1305,9 @@ var Do = (r, e) => {
1305
1305
  return Se;
1306
1306
  };
1307
1307
  var Wo = (r, e) => {
1308
- if (e) return W[J];
1309
- if (r) return W[ie.PRODUCTION];
1310
- return W[ie.SANDBOX];
1308
+ if (e) return H[J];
1309
+ if (r) return H[ie.PRODUCTION];
1310
+ return H[ie.SANDBOX];
1311
1311
  };
1312
1312
  var Fo = (r, e) => {
1313
1313
  if (e) return "imtbl-zkevm-devnet";
@@ -1436,7 +1436,7 @@ var B = (r) => !r || h(r, O);
1436
1436
  async function Be(r, e) {
1437
1437
  return await L(
1438
1438
  async () => {
1439
- const t = new jo(e, JSON.stringify(F), r);
1439
+ const t = new jo(e, JSON.stringify(W), r);
1440
1440
  const [o, n, a] = await Promise.all([
1441
1441
  t.name(),
1442
1442
  t.symbol(),
@@ -1619,7 +1619,7 @@ async function Et(r, e, t) {
1619
1619
  async () => {
1620
1620
  const o = new zo(
1621
1621
  t,
1622
- JSON.stringify(F),
1622
+ JSON.stringify(W),
1623
1623
  r
1624
1624
  );
1625
1625
  return Promise.all([
@@ -1706,7 +1706,7 @@ var Qo = async (r, e, t, o) => {
1706
1706
  if (f.value == null) return;
1707
1707
  const E = BigInt(f.value);
1708
1708
  let T = parseInt(C.decimals, 10);
1709
- if (Number.isNaN(T)) T = j;
1709
+ if (Number.isNaN(T)) T = q;
1710
1710
  const A = C.icon_url ?? R.icon;
1711
1711
  const I = {
1712
1712
  ...C,
@@ -1757,7 +1757,7 @@ var $t = async (r, e, t, o, n) => {
1757
1757
  Zo(r, e, a, n)
1758
1758
  );
1759
1759
  };
1760
- var V = async (r, e, t, o, n = false) => {
1760
+ var j = async (r, e, t, o, n = false) => {
1761
1761
  if (!t && !e) {
1762
1762
  throw new m(
1763
1763
  "both walletAddress and provider are missing. At least one must be provided.",
@@ -2195,7 +2195,7 @@ function It() {
2195
2195
  }
2196
2196
 
2197
2197
  // src/provider/injectedProvidersManager.ts
2198
- var U = class r {
2198
+ var F = class r {
2199
2199
  static instance;
2200
2200
  store;
2201
2201
  resetTimeout;
@@ -2286,7 +2286,7 @@ async function cr(r, e) {
2286
2286
  let o;
2287
2287
  switch (r) {
2288
2288
  case "passport": {
2289
- o = U.getInstance().findProvider({ rdns: We.rdns });
2289
+ o = F.getInstance().findProvider({ rdns: We.rdns });
2290
2290
  if (!o) {
2291
2291
  if (e) {
2292
2292
  t = new D(
@@ -2305,14 +2305,14 @@ async function cr(r, e) {
2305
2305
  break;
2306
2306
  }
2307
2307
  case "metamask": {
2308
- o = U.getInstance().findProvider({ rdns: De.rdns });
2308
+ o = F.getInstance().findProvider({ rdns: De.rdns });
2309
2309
  if (!o) {
2310
2310
  t = await Rn();
2311
2311
  }
2312
2312
  break;
2313
2313
  }
2314
2314
  default:
2315
- o = U.getInstance().findProvider({ rdns: r });
2315
+ o = F.getInstance().findProvider({ rdns: r });
2316
2316
  if (!o) {
2317
2317
  console.error(
2318
2318
  "The WalletProviderName that was provided is not supported"
@@ -2529,7 +2529,7 @@ var wn = async (r, e, t, o) => {
2529
2529
  try {
2530
2530
  const n = new pr(
2531
2531
  t,
2532
- JSON.stringify(F),
2532
+ JSON.stringify(W),
2533
2533
  r
2534
2534
  );
2535
2535
  return await n.allowance(e, o);
@@ -2545,7 +2545,7 @@ var Pn = async (r, e, t, o, n) => {
2545
2545
  try {
2546
2546
  const a = new pr(
2547
2547
  t,
2548
- JSON.stringify(F),
2548
+ JSON.stringify(W),
2549
2549
  r
2550
2550
  );
2551
2551
  const i = await a.approve.populateTransaction(o, n);
@@ -3036,7 +3036,7 @@ var hr = async (r, e, t) => {
3036
3036
  let i = a?.token.address ?? "";
3037
3037
  let s = a?.token.name ?? "";
3038
3038
  let c = a?.token.symbol ?? "";
3039
- let p = a?.token.decimals ?? j;
3039
+ let p = a?.token.decimals ?? q;
3040
3040
  if (!a && n.type === "ERC20") {
3041
3041
  i = n.tokenAddress;
3042
3042
  if (i.toLowerCase() in o) {
@@ -3045,7 +3045,7 @@ var hr = async (r, e, t) => {
3045
3045
  try {
3046
3046
  const u = new bn(
3047
3047
  n.tokenAddress,
3048
- JSON.stringify(F),
3048
+ JSON.stringify(W),
3049
3049
  t
3050
3050
  );
3051
3051
  const [g, f, R] = await Promise.all([
@@ -3148,7 +3148,7 @@ var Wn = async (r, e, t, o, n = false) => {
3148
3148
  a.set(s.address.toLocaleLowerCase(), s);
3149
3149
  }
3150
3150
  );
3151
- const { balances: i } = await V(r, e, t, w(r), n);
3151
+ const { balances: i } = await j(r, e, t, w(r), n);
3152
3152
  return i.filter(
3153
3153
  (s) => a.get((s.token.address || O).toLocaleLowerCase())
3154
3154
  );
@@ -3379,7 +3379,7 @@ var Nr = async (r, e, t, o) => {
3379
3379
  if (o.bridge) {
3380
3380
  const s = _(r);
3381
3381
  if (e.has(s)) {
3382
- a.set(s, V(
3382
+ a.set(s, j(
3383
3383
  r,
3384
3384
  e.get(s),
3385
3385
  t,
@@ -3395,7 +3395,7 @@ var Nr = async (r, e, t, o) => {
3395
3395
  }
3396
3396
  const i = w(r);
3397
3397
  if (e.has(i)) {
3398
- a.set(i, V(
3398
+ a.set(i, j(
3399
3399
  r,
3400
3400
  e.get(i),
3401
3401
  t,
@@ -3875,7 +3875,7 @@ var $n = (r, e) => {
3875
3875
  return t >= e;
3876
3876
  };
3877
3877
  var Mr = (r, e, t, o, n) => {
3878
- const a = n?.decimals ?? j;
3878
+ const a = n?.decimals ?? q;
3879
3879
  const i = [];
3880
3880
  if (e > 0) {
3881
3881
  i.push({
@@ -3897,13 +3897,13 @@ var Mr = (r, e, t, o, n) => {
3897
3897
  approvalGasFee: {
3898
3898
  type: "GAS",
3899
3899
  amount: o,
3900
- formattedAmount: Ke(o, j),
3900
+ formattedAmount: Ke(o, q),
3901
3901
  token: n
3902
3902
  },
3903
3903
  bridgeGasFee: {
3904
3904
  type: "GAS",
3905
3905
  amount: r,
3906
- formattedAmount: Ke(r, j),
3906
+ formattedAmount: Ke(r, q),
3907
3907
  token: n
3908
3908
  },
3909
3909
  bridgeFees: i
@@ -4275,32 +4275,32 @@ var Ur = async (r, e, t, o, n, a, i, s, c) => {
4275
4275
  const T = /* @__PURE__ */ new Map();
4276
4276
  const A = /* @__PURE__ */ new Map();
4277
4277
  const I = [];
4278
- for (const q of E) {
4279
- if (!q.l2address) continue;
4278
+ for (const G of E) {
4279
+ if (!G.l2address) continue;
4280
4280
  T.set(
4281
- q.l2address,
4281
+ G.l2address,
4282
4282
  He(
4283
4283
  r,
4284
4284
  e,
4285
4285
  t,
4286
- q,
4286
+ G,
4287
4287
  a
4288
4288
  )
4289
4289
  );
4290
- A.set(q.l2address, {
4291
- amount: q.amount,
4292
- formattedAmount: q.formattedAmount,
4293
- l2address: q.l2address
4290
+ A.set(G.l2address, {
4291
+ amount: G.amount,
4292
+ formattedAmount: G.formattedAmount,
4293
+ l2address: G.l2address
4294
4294
  });
4295
4295
  }
4296
4296
  const P = await Promise.all(T.values());
4297
4297
  const v = Array.from(T.keys());
4298
4298
  const x = [];
4299
- P.forEach((q, rt) => {
4300
- const K = v[rt];
4301
- if (q === void 0) return;
4302
- x.push(K);
4303
- const N = A.get(K);
4299
+ P.forEach((G, rt) => {
4300
+ const V = v[rt];
4301
+ if (G === void 0) return;
4302
+ x.push(V);
4303
+ const N = A.get(V);
4304
4304
  if (!N) return;
4305
4305
  I.push({
4306
4306
  amount: N.amount,
@@ -4808,7 +4808,7 @@ var kt = (r) => {
4808
4808
  { error: r }
4809
4809
  );
4810
4810
  };
4811
- var G = async (r, e) => {
4811
+ var U = async (r, e) => {
4812
4812
  try {
4813
4813
  const t = await r.getSigner();
4814
4814
  const o = await Ca(r, e);
@@ -4826,7 +4826,7 @@ var Ze = async (r, e) => {
4826
4826
  let t = [];
4827
4827
  try {
4828
4828
  const o = await Promise.all(
4829
- e.map((n) => G(r, n))
4829
+ e.map((n) => U(r, n))
4830
4830
  );
4831
4831
  t = await Promise.all(o.map((n) => n.transactionResponse.wait()));
4832
4832
  } catch (o) {
@@ -4853,7 +4853,7 @@ var Ye = async (r, e) => {
4853
4853
  let t = [];
4854
4854
  try {
4855
4855
  const o = await Promise.all(e.map(
4856
- (n) => G(r, n)
4856
+ (n) => U(r, n)
4857
4857
  ));
4858
4858
  t = await Promise.all(o.map((n) => n.transactionResponse.wait()));
4859
4859
  } catch (o) {
@@ -5075,8 +5075,8 @@ var Zr = async (r, e, t, o = {
5075
5075
  (await e.getSigner()).getAddress()
5076
5076
  );
5077
5077
  Rt();
5078
- V(r, e, u, _(r));
5079
- V(r, e, u, w(r));
5078
+ j(r, e, u, _(r));
5079
+ j(r, e, u, w(r));
5080
5080
  const { id: g, takerFees: f, fillAmount: R } = t[0];
5081
5081
  let C;
5082
5082
  try {
@@ -5191,8 +5191,8 @@ var Zr = async (r, e, t, o = {
5191
5191
  x += BigInt(N.amount);
5192
5192
  }
5193
5193
  });
5194
- const q = n.result.fees;
5195
- q.forEach((N) => {
5194
+ const G = n.result.fees;
5195
+ G.forEach((N) => {
5196
5196
  x += BigInt(N.amount);
5197
5197
  });
5198
5198
  if (n.result.sell[0].type === "ERC1155" && R) {
@@ -5201,7 +5201,7 @@ var Zr = async (r, e, t, o = {
5201
5201
  const rt = [
5202
5202
  ka(Q, pe, x, a)
5203
5203
  ];
5204
- const K = await k(
5204
+ const V = await k(
5205
5205
  r,
5206
5206
  "Total time running smart checkout",
5207
5207
  le(
@@ -5214,66 +5214,66 @@ var Zr = async (r, e, t, o = {
5214
5214
  )
5215
5215
  )
5216
5216
  );
5217
- if (K.sufficient) {
5217
+ if (V.sufficient) {
5218
5218
  const N = await Ze(e, A);
5219
5219
  if (N.type === "FAILED") {
5220
5220
  return {
5221
5221
  status: "FAILED",
5222
5222
  transactionHash: N.transactionHash,
5223
5223
  reason: N.reason,
5224
- smartCheckoutResult: K
5224
+ smartCheckoutResult: V
5225
5225
  };
5226
5226
  }
5227
5227
  try {
5228
5228
  if (I.length === 0) {
5229
5229
  I = await Nt(P);
5230
5230
  }
5231
- } catch (H) {
5231
+ } catch (K) {
5232
5232
  throw new m(
5233
5233
  "Error fetching fulfillment transaction",
5234
5234
  "FULFILL_ORDER_LISTING_ERROR",
5235
- { error: H }
5235
+ { error: K }
5236
5236
  );
5237
5237
  }
5238
5238
  if (o.waitFulfillmentSettlements) {
5239
- const H = await Ye(e, I);
5240
- if (H.type === "FAILED") {
5239
+ const K = await Ye(e, I);
5240
+ if (K.type === "FAILED") {
5241
5241
  return {
5242
5242
  status: "FAILED",
5243
- transactionHash: H.transactionHash,
5244
- reason: H.reason,
5245
- smartCheckoutResult: K
5243
+ transactionHash: K.transactionHash,
5244
+ reason: K.reason,
5245
+ smartCheckoutResult: V
5246
5246
  };
5247
5247
  }
5248
5248
  return {
5249
5249
  status: "SUCCESS",
5250
- smartCheckoutResult: K
5250
+ smartCheckoutResult: V
5251
5251
  };
5252
5252
  }
5253
5253
  let te;
5254
5254
  try {
5255
- const H = await Promise.all(I.map(
5256
- (ot) => G(e, ot)
5255
+ const K = await Promise.all(I.map(
5256
+ (ot) => U(e, ot)
5257
5257
  ));
5258
- te = H.map((ot) => ot.transactionResponse);
5259
- } catch (H) {
5258
+ te = K.map((ot) => ot.transactionResponse);
5259
+ } catch (K) {
5260
5260
  throw new m(
5261
5261
  "An error occurred while executing the fulfillment transaction",
5262
5262
  "EXECUTE_FULFILLMENT_TRANSACTION_ERROR",
5263
5263
  {
5264
- message: H.message
5264
+ message: K.message
5265
5265
  }
5266
5266
  );
5267
5267
  }
5268
5268
  return {
5269
5269
  status: "FULFILLMENTS_UNSETTLED",
5270
- smartCheckoutResult: K,
5270
+ smartCheckoutResult: V,
5271
5271
  transactions: te
5272
5272
  };
5273
5273
  }
5274
5274
  return {
5275
5275
  status: "INSUFFICIENT_FUNDS",
5276
- smartCheckoutResult: K
5276
+ smartCheckoutResult: V
5277
5277
  };
5278
5278
  };
5279
5279
 
@@ -5328,7 +5328,7 @@ var _a = async (r, e, t, o, n) => {
5328
5328
  let s;
5329
5329
  try {
5330
5330
  const c = await Promise.all([a].map(
5331
- (p) => G(t, p)
5331
+ (p) => U(t, p)
5332
5332
  ));
5333
5333
  s = c.map((p) => p.transactionResponse);
5334
5334
  } catch (c) {
@@ -5415,7 +5415,7 @@ async function $r(r, e) {
5415
5415
  e.forEach((a) => {
5416
5416
  if (a.type === "ERC20") {
5417
5417
  const { tokenAddress: i } = a;
5418
- t.push(ar(i, F, r).decimals());
5418
+ t.push(ar(i, W, r).decimals());
5419
5419
  }
5420
5420
  });
5421
5421
  const o = await Promise.all(t);
@@ -5491,7 +5491,7 @@ var Xr = async (r, e, t) => {
5491
5491
  if (i.type === "ERC20") {
5492
5492
  const E = new Ba(
5493
5493
  i.tokenAddress,
5494
- JSON.stringify(F),
5494
+ JSON.stringify(W),
5495
5495
  e
5496
5496
  );
5497
5497
  u = await k(
@@ -5715,7 +5715,7 @@ var to = async (r, e, t, o, n, a, i, s, c) => {
5715
5715
  c
5716
5716
  );
5717
5717
  if (p.approval) {
5718
- const f = await G(e, p.approval.transaction);
5718
+ const f = await U(e, p.approval.transaction);
5719
5719
  const R = await f.transactionResponse.wait();
5720
5720
  if (R?.status === 0) {
5721
5721
  throw new m(
@@ -5724,7 +5724,7 @@ var to = async (r, e, t, o, n, a, i, s, c) => {
5724
5724
  );
5725
5725
  }
5726
5726
  }
5727
- const u = await G(e, p.swap.transaction);
5727
+ const u = await U(e, p.swap.transaction);
5728
5728
  const g = await u.transactionResponse.wait();
5729
5729
  if (g?.status === 0) {
5730
5730
  throw new m(
@@ -5758,82 +5758,19 @@ async function ro(r) {
5758
5758
  }
5759
5759
 
5760
5760
  // src/riskAssessment/riskAssessment.ts
5761
- import ja from "axios";
5762
- var xt = async (r, e) => {
5763
- const t = Object.fromEntries(
5764
- r.map((n) => [n.toLowerCase(), { sanctioned: false }])
5765
- );
5766
- const o = await e.remote.getConfig("riskAssessment");
5767
- if (!o?.enabled) {
5768
- return t;
5769
- }
5770
- try {
5771
- const n = o?.levels.map((i) => i.toLowerCase()) ?? [];
5772
- const a = await ja.post(
5773
- `${W[e.environment]}/v1/sanctions/check`,
5774
- {
5775
- addresses: r
5776
- }
5777
- );
5778
- for (const i of a.data) {
5779
- t[i.address.toLowerCase()].sanctioned = n.includes(
5780
- i.risk.toLowerCase()
5781
- );
5782
- }
5783
- return t;
5784
- } catch (n) {
5785
- console.error("Error fetching risk assessment", n);
5786
- return t;
5787
- }
5788
- };
5789
-
5790
- // src/riskAssessment/riskAssessmentV2.ts
5791
- import Va from "axios";
5792
- var Ka = async (r, e) => {
5793
- const t = Object.fromEntries(
5794
- r.map((n) => [n.address.toLowerCase(), { sanctioned: false }])
5795
- );
5796
- const o = await e.remote.getConfig("riskAssessment");
5797
- if (!o?.enabled) {
5798
- return t;
5799
- }
5800
- try {
5801
- const n = o?.levels.map((s) => s.toLowerCase()) ?? [];
5802
- const a = r.map((s) => ({
5803
- address: s.address,
5804
- token_addr: s.tokenAddr,
5805
- amount: s.amount.toString()
5806
- }));
5807
- const i = await Va.post(
5808
- `${W[e.environment]}/v2/sanctions/check`,
5809
- a
5810
- );
5811
- for (const s of i.data) {
5812
- t[s.address.toLowerCase()].sanctioned = n.includes(
5813
- s.risk.toLowerCase()
5814
- );
5815
- }
5816
- return t;
5817
- } catch (n) {
5818
- console.error("Error fetching risk assessment", n);
5819
- return t;
5820
- }
5821
- };
5761
+ var xt = async (r, e) => Object.fromEntries(
5762
+ r.map((t) => [t.toLowerCase(), { sanctioned: false }])
5763
+ );
5822
5764
 
5823
5765
  // src/riskAssessment/common.ts
5824
- var Ot = (r, e) => {
5825
- if (e) {
5826
- return r[e.toLowerCase()].sanctioned;
5827
- }
5828
- return Object.values(r).some((t) => t.sanctioned);
5829
- };
5830
- var Ha = (r, e) => r[e.toLowerCase()].sanctioned;
5831
- var za = (r) => Object.values(r).some((e) => e.sanctioned);
5766
+ var Ot = (r, e) => false;
5767
+ var ja = (r, e) => false;
5768
+ var Va = (r) => false;
5832
5769
 
5833
5770
  // src/sdk.ts
5834
- var Za = {
5771
+ var Ha = {
5835
5772
  baseConfig: {
5836
- environment: Qa.SANDBOX
5773
+ environment: Ka.SANDBOX
5837
5774
  },
5838
5775
  passport: void 0
5839
5776
  };
@@ -5848,7 +5785,7 @@ var Bt = 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 = Za) {
5788
+ constructor(e = Ha) {
5852
5789
  this.httpClient = new ue(e);
5853
5790
  this.config = new Ae(e, this.httpClient);
5854
5791
  this.fiatRampService = new Me(this.config);
@@ -5858,7 +5795,7 @@ var Bt = class {
5858
5795
  this.config.isProduction
5859
5796
  );
5860
5797
  this.passport = e.passport;
5861
- U.getInstance().initialise();
5798
+ F.getInstance().initialise();
5862
5799
  }
5863
5800
  /**
5864
5801
  * Loads the widgets bundle and initiates the widgets factory.
@@ -5904,7 +5841,7 @@ var Bt = class {
5904
5841
  * @returns {readonly EIP6963ProviderDetail[]} A readonly array of injected providers and their metadata.
5905
5842
  */
5906
5843
  getInjectedProviders() {
5907
- return U.getInstance().getProviders();
5844
+ return F.getInstance().getProviders();
5908
5845
  }
5909
5846
  /**
5910
5847
  * Finds an injected provider by its RDNS.
@@ -5912,7 +5849,7 @@ var Bt = class {
5912
5849
  * @returns {EIP6963ProviderDetail | undefined} - The found provider and metadata or undefined.
5913
5850
  */
5914
5851
  findInjectedProvider(e) {
5915
- return U.getInstance().findProvider(e);
5852
+ return F.getInstance().findProvider(e);
5916
5853
  }
5917
5854
  /**
5918
5855
  * Subscribes to changes in the injected providers.
@@ -5920,14 +5857,14 @@ var Bt = class {
5920
5857
  * @returns {() => void} - A function to unsubscribe the listener.
5921
5858
  */
5922
5859
  onInjectedProvidersChange(e) {
5923
- return U.getInstance().subscribe(e);
5860
+ return F.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 U.getInstance().clear();
5867
+ return F.getInstance().clear();
5931
5868
  }
5932
5869
  /**
5933
5870
  * Checks if a wallet is connected to the specified provider.
@@ -5947,6 +5884,7 @@ var Bt = 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 Bt = 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 Bt = class {
6066
6005
  */
6067
6006
  async getAllBalances(e) {
6068
6007
  const t = !e.provider || "ethereumProvider" in e.provider ? e.provider : new D(e.provider);
6069
- return V(
6008
+ return j(
6070
6009
  this.config,
6071
6010
  t,
6072
6011
  e.walletAddress,
@@ -6111,7 +6050,7 @@ var Bt = class {
6111
6050
  allowMistmatchedChainId: true
6112
6051
  }
6113
6052
  );
6114
- return await G(t, e.transaction);
6053
+ return await U(t, e.transaction);
6115
6054
  }
6116
6055
  /**
6117
6056
  * Wraps a WrappedBrowserProvider call to validate the provider and handle errors.
@@ -6414,7 +6353,7 @@ export {
6414
6353
  Te as FundingStepType,
6415
6354
  st as GasEstimateType,
6416
6355
  Ce as GasTokenType,
6417
- W as IMMUTABLE_API_BASE_URL,
6356
+ H as IMMUTABLE_API_BASE_URL,
6418
6357
  oo as IMTBLWidgetEvents,
6419
6358
  M as ItemType,
6420
6359
  ge as NetworkFilterTypes,
@@ -6438,15 +6377,14 @@ export {
6438
6377
  ho as WidgetType,
6439
6378
  D as WrappedBrowserProvider,
6440
6379
  xt as fetchRiskAssessment,
6441
- Ka as fetchRiskAssessmentV2,
6442
6380
  Ct as getGasPriceInWei,
6443
6381
  fn as getMetaMaskProviderDetail,
6444
6382
  gn as getPassportProviderDetail,
6445
6383
  Ie as getUnderlyingChainId,
6446
6384
  Ot as isAddressSanctioned,
6447
- Ha as isSingleAddressSanctioned,
6385
+ ja as isSingleAddressSanctioned,
6448
6386
  De as metaMaskProviderInfo,
6449
6387
  We as passportProviderInfo,
6450
- za as resultHasSanctionedWallets,
6388
+ Va as resultHasSanctionedWallets,
6451
6389
  b as validateProvider
6452
6390
  };