@gardenfi/core 2.1.10 → 2.1.11

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.
@@ -570,7 +570,7 @@ function Xh(e, t = {}) {
570
570
  const r = kh(e);
571
571
  if (!r)
572
572
  throw new xn({ signature: e, type: "function" });
573
- const n = mt(r.parameters), i = [], s = n.length;
573
+ const n = bt(r.parameters), i = [], s = n.length;
574
574
  for (let a = 0; a < s; a++)
575
575
  i.push(Lr(n[a], {
576
576
  modifiers: ua,
@@ -579,7 +579,7 @@ function Xh(e, t = {}) {
579
579
  }));
580
580
  const o = [];
581
581
  if (r.returns) {
582
- const a = mt(r.returns), c = a.length;
582
+ const a = bt(r.returns), c = a.length;
583
583
  for (let f = 0; f < c; f++)
584
584
  o.push(Lr(a[f], {
585
585
  modifiers: ua,
@@ -599,7 +599,7 @@ function Jh(e, t = {}) {
599
599
  const r = Ph(e);
600
600
  if (!r)
601
601
  throw new xn({ signature: e, type: "event" });
602
- const n = mt(r.parameters), i = [], s = n.length;
602
+ const n = bt(r.parameters), i = [], s = n.length;
603
603
  for (let o = 0; o < s; o++)
604
604
  i.push(Lr(n[o], {
605
605
  modifiers: Uh,
@@ -612,7 +612,7 @@ function Qh(e, t = {}) {
612
612
  const r = Ah(e);
613
613
  if (!r)
614
614
  throw new xn({ signature: e, type: "error" });
615
- const n = mt(r.parameters), i = [], s = n.length;
615
+ const n = bt(r.parameters), i = [], s = n.length;
616
616
  for (let o = 0; o < s; o++)
617
617
  i.push(Lr(n[o], { structs: t, type: "error" }));
618
618
  return { name: r.name, type: "error", inputs: i };
@@ -621,7 +621,7 @@ function Zh(e, t = {}) {
621
621
  const r = Ch(e);
622
622
  if (!r)
623
623
  throw new xn({ signature: e, type: "constructor" });
624
- const n = mt(r.parameters), i = [], s = n.length;
624
+ const n = bt(r.parameters), i = [], s = n.length;
625
625
  for (let o = 0; o < s; o++)
626
626
  i.push(Lr(n[o], { structs: t, type: "constructor" }));
627
627
  return {
@@ -654,7 +654,7 @@ function Lr(e, t) {
654
654
  let c, f = {};
655
655
  if (n) {
656
656
  c = "tuple";
657
- const p = mt(i.type), g = [], _ = p.length;
657
+ const p = bt(i.type), g = [], _ = p.length;
658
658
  for (let x = 0; x < _; x++)
659
659
  g.push(Lr(p[x], { structs: a }));
660
660
  f = { components: g };
@@ -686,19 +686,19 @@ function Lr(e, t) {
686
686
  };
687
687
  return wo.set(r, l), l;
688
688
  }
689
- function mt(e, t = [], r = "", n = 0) {
689
+ function bt(e, t = [], r = "", n = 0) {
690
690
  const i = e.trim().length;
691
691
  for (let s = 0; s < i; s++) {
692
692
  const o = e[s], a = e.slice(s + 1);
693
693
  switch (o) {
694
694
  case ",":
695
- return n === 0 ? mt(a, [...t, r.trim()]) : mt(a, t, `${r}${o}`, n);
695
+ return n === 0 ? bt(a, [...t, r.trim()]) : bt(a, t, `${r}${o}`, n);
696
696
  case "(":
697
- return mt(a, t, `${r}${o}`, n + 1);
697
+ return bt(a, t, `${r}${o}`, n + 1);
698
698
  case ")":
699
- return mt(a, t, `${r}${o}`, n - 1);
699
+ return bt(a, t, `${r}${o}`, n - 1);
700
700
  default:
701
- return mt(a, t, `${r}${o}`, n);
701
+ return bt(a, t, `${r}${o}`, n);
702
702
  }
703
703
  }
704
704
  if (r === "")
@@ -949,7 +949,7 @@ class h0 extends N {
949
949
  `), { name: "AbiEncodingLengthMismatchError" });
950
950
  }
951
951
  }
952
- class q_ extends N {
952
+ class W_ extends N {
953
953
  constructor(t, { docsPath: r }) {
954
954
  super([
955
955
  `Arguments (\`args\`) were provided to "${t}", but "${t}" on the ABI does not contain any parameters (\`inputs\`).`,
@@ -962,7 +962,7 @@ class q_ extends N {
962
962
  });
963
963
  }
964
964
  }
965
- class V_ extends N {
965
+ class K_ extends N {
966
966
  constructor(t, { docsPath: r } = {}) {
967
967
  super([
968
968
  `Error ${t ? `"${t}" ` : ""}not found on ABI.`,
@@ -1050,7 +1050,7 @@ class y0 extends N {
1050
1050
  });
1051
1051
  }
1052
1052
  }
1053
- class W_ extends N {
1053
+ class Y_ extends N {
1054
1054
  constructor(t, { docsPath: r }) {
1055
1055
  super([
1056
1056
  `Encoded function signature "${t}" not found on ABI.`,
@@ -1358,7 +1358,7 @@ function Us(e, ...t) {
1358
1358
  if (t.length > 0 && !t.includes(e.length))
1359
1359
  throw new Error("Uint8Array expected of length " + t + ", got length=" + e.length);
1360
1360
  }
1361
- function K_(e) {
1361
+ function X_(e) {
1362
1362
  if (typeof e != "function" || typeof e.create != "function")
1363
1363
  throw new Error("Hash should be wrapped by utils.wrapConstructor");
1364
1364
  Es(e.outputLen), Es(e.blockLen);
@@ -1415,7 +1415,7 @@ function H0(e) {
1415
1415
  function Da(e) {
1416
1416
  return typeof e == "string" && (e = H0(e)), Us(e), e;
1417
1417
  }
1418
- function Y_(...e) {
1418
+ function J_(...e) {
1419
1419
  let t = 0;
1420
1420
  for (let n = 0; n < e.length; n++) {
1421
1421
  const i = e[n];
@@ -1438,7 +1438,7 @@ function Vf(e) {
1438
1438
  const t = (n) => e().update(Da(n)).digest(), r = e();
1439
1439
  return t.outputLen = r.outputLen, t.blockLen = r.blockLen, t.create = () => e(), t;
1440
1440
  }
1441
- function J_(e = 32) {
1441
+ function Z_(e = 32) {
1442
1442
  if (Kr && typeof Kr.getRandomValues == "function")
1443
1443
  return Kr.getRandomValues(new Uint8Array(e));
1444
1444
  if (Kr && typeof Kr.randomBytes == "function")
@@ -3231,7 +3231,7 @@ function Jp(e) {
3231
3231
  return Ii(`0x${t}`);
3232
3232
  }
3233
3233
  async function Qp({ hash: e, signature: t }) {
3234
- const r = yr(e) ? e : X(e), { secp256k1: n } = await import("./secp256k1-DEhoKs3r.js");
3234
+ const r = yr(e) ? e : X(e), { secp256k1: n } = await import("./secp256k1-Czn-Wlxn.js");
3235
3235
  return `0x${(() => {
3236
3236
  if (typeof t == "object" && "r" in t && "s" in t) {
3237
3237
  const { r: f, s: l, v: h, yParity: y } = t, p = Number(y ?? h), g = tu(p);
@@ -4583,7 +4583,7 @@ const cu = [
4583
4583
  stateMutability: "view",
4584
4584
  type: "function"
4585
4585
  }
4586
- ], ev = [
4586
+ ], rv = [
4587
4587
  {
4588
4588
  name: "query",
4589
4589
  type: "function",
@@ -4817,7 +4817,7 @@ async function Cd(e, t) {
4817
4817
  });
4818
4818
  return ue === "0x" ? { data: void 0 } : { data: ue };
4819
4819
  } catch (Y) {
4820
- const re = Gy(Y), { offchainLookup: le, offchainLookupSignature: be } = await import("./ccip-DPvl3VnX.js");
4820
+ const re = Gy(Y), { offchainLookup: le, offchainLookupSignature: be } = await import("./ccip-uYl7ps4Z.js");
4821
4821
  if (e.ccipRead !== !1 && (re == null ? void 0 : re.slice(0, 10)) === be && T)
4822
4822
  return { data: await le(e, { data: re, to: T }) };
4823
4823
  throw B && (re == null ? void 0 : re.slice(0, 10)) === "0x101bb98d" ? new Wp({ factory: l }) : My(Y, {
@@ -5927,7 +5927,7 @@ function ym(e, t = {}) {
5927
5927
  });
5928
5928
  };
5929
5929
  }
5930
- function bt(e) {
5930
+ function pt(e) {
5931
5931
  return {
5932
5932
  formatters: void 0,
5933
5933
  fees: void 0,
@@ -7050,7 +7050,7 @@ const Tr = (e) => e.length === 64 ? e : e.slice(2), bb = (e) => {
7050
7050
  return !1;
7051
7051
  }
7052
7052
  }, yu = (e, t, r, n) => e + ":" + t.toLowerCase() + "::" + r + ":" + n.toLowerCase();
7053
- function rv(e, t) {
7053
+ function iv(e, t) {
7054
7054
  if (!e) return !1;
7055
7055
  const r = t === pr.MAINNET ? ae.networks.bitcoin : t === pr.TESTNET ? ae.networks.testnet : ae.networks.regtest;
7056
7056
  if (!r) return !1;
@@ -7118,7 +7118,7 @@ const Wd = (e, t, r) => {
7118
7118
  if (t > r) return ve.Expired;
7119
7119
  }
7120
7120
  return e.initiate_tx_hash ? Number(e.initiate_block_number) ? ve.Initiated : ve.InitiateDetected : ve.Idle;
7121
- }, nv = (e, t, r) => {
7121
+ }, sv = (e, t, r) => {
7122
7122
  const n = Wd(
7123
7123
  e,
7124
7124
  t,
@@ -7141,7 +7141,7 @@ const Wd = (e, t, r) => {
7141
7141
  }, Ps = (e, t = 0) => {
7142
7142
  const r = Date.now(), n = e * 1e3 + t * 36e5;
7143
7143
  return r >= n;
7144
- }, iv = (e) => e.filter((t) => !Yd(t)), Yd = (e) => {
7144
+ }, ov = (e) => e.filter((t) => !Yd(t)), Yd = (e) => {
7145
7145
  const { source_swap: t, create_order: r } = e, { initiate_tx_hash: n, initiate_block_number: i } = t, { deadline: s } = r.additional_data;
7146
7146
  return n && Number(i) ? !1 : n && !Number(i) ? Ps(Number(s), 12) : n ? !1 : Ps(Number(s), 1);
7147
7147
  }, vb = Buffer.from(
@@ -10334,17 +10334,17 @@ Ys.p2ms = ug;
10334
10334
  var Xs = {};
10335
10335
  Object.defineProperty(Xs, "__esModule", { value: !0 });
10336
10336
  Xs.p2pk = void 0;
10337
- const fg = Ge, tn = at(), yt = ze, Xr = st, Tu = tn.OPS;
10337
+ const fg = Ge, tn = at(), mt = ze, Xr = st, Tu = tn.OPS;
10338
10338
  function dg(e, t) {
10339
10339
  if (!e.input && !e.output && !e.pubkey && !e.input && !e.signature)
10340
10340
  throw new TypeError("Not enough data");
10341
- t = Object.assign({ validate: !0 }, t || {}), (0, yt.typeforce)(
10341
+ t = Object.assign({ validate: !0 }, t || {}), (0, mt.typeforce)(
10342
10342
  {
10343
- network: yt.typeforce.maybe(yt.typeforce.Object),
10344
- output: yt.typeforce.maybe(yt.typeforce.Buffer),
10345
- pubkey: yt.typeforce.maybe(yt.isPoint),
10346
- signature: yt.typeforce.maybe(tn.isCanonicalScriptSignature),
10347
- input: yt.typeforce.maybe(yt.typeforce.Buffer)
10343
+ network: mt.typeforce.maybe(mt.typeforce.Object),
10344
+ output: mt.typeforce.maybe(mt.typeforce.Buffer),
10345
+ pubkey: mt.typeforce.maybe(mt.isPoint),
10346
+ signature: mt.typeforce.maybe(tn.isCanonicalScriptSignature),
10347
+ input: mt.typeforce.maybe(mt.typeforce.Buffer)
10348
10348
  },
10349
10349
  e
10350
10350
  );
@@ -10368,7 +10368,7 @@ function dg(e, t) {
10368
10368
  if (e.output) {
10369
10369
  if (e.output[e.output.length - 1] !== Tu.OP_CHECKSIG)
10370
10370
  throw new TypeError("Output is invalid");
10371
- if (!(0, yt.isPoint)(i.pubkey))
10371
+ if (!(0, mt.isPoint)(i.pubkey))
10372
10372
  throw new TypeError("Output pubkey is invalid");
10373
10373
  if (e.pubkey && !e.pubkey.equals(i.pubkey))
10374
10374
  throw new TypeError("Pubkey mismatch");
@@ -13136,7 +13136,7 @@ function F1(e, t) {
13136
13136
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t;
13137
13137
  }
13138
13138
  var Il = {};
13139
- function pt(e, t, r) {
13139
+ function yt(e, t, r) {
13140
13140
  r || (r = Error);
13141
13141
  function n(s, o, a) {
13142
13142
  return typeof t == "string" ? t : t(s, o, a);
@@ -13168,10 +13168,10 @@ function N1(e, t, r) {
13168
13168
  function M1(e, t, r) {
13169
13169
  return typeof r != "number" && (r = 0), r + t.length > e.length ? !1 : e.indexOf(t, r) !== -1;
13170
13170
  }
13171
- pt("ERR_INVALID_OPT_VALUE", function(e, t) {
13171
+ yt("ERR_INVALID_OPT_VALUE", function(e, t) {
13172
13172
  return 'The value "' + t + '" is invalid for option "' + e + '"';
13173
13173
  }, TypeError);
13174
- pt("ERR_INVALID_ARG_TYPE", function(e, t, r) {
13174
+ yt("ERR_INVALID_ARG_TYPE", function(e, t, r) {
13175
13175
  var n;
13176
13176
  typeof t == "string" && U1(t, "not ") ? (n = "must not be", t = t.replace(/^not /, "")) : n = "must be";
13177
13177
  var i;
@@ -13183,22 +13183,22 @@ pt("ERR_INVALID_ARG_TYPE", function(e, t, r) {
13183
13183
  }
13184
13184
  return i += ". Received type ".concat(typeof r), i;
13185
13185
  }, TypeError);
13186
- pt("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF");
13187
- pt("ERR_METHOD_NOT_IMPLEMENTED", function(e) {
13186
+ yt("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF");
13187
+ yt("ERR_METHOD_NOT_IMPLEMENTED", function(e) {
13188
13188
  return "The " + e + " method is not implemented";
13189
13189
  });
13190
- pt("ERR_STREAM_PREMATURE_CLOSE", "Premature close");
13191
- pt("ERR_STREAM_DESTROYED", function(e) {
13190
+ yt("ERR_STREAM_PREMATURE_CLOSE", "Premature close");
13191
+ yt("ERR_STREAM_DESTROYED", function(e) {
13192
13192
  return "Cannot call " + e + " after a stream was destroyed";
13193
13193
  });
13194
- pt("ERR_MULTIPLE_CALLBACK", "Callback called multiple times");
13195
- pt("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable");
13196
- pt("ERR_STREAM_WRITE_AFTER_END", "write after end");
13197
- pt("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError);
13198
- pt("ERR_UNKNOWN_ENCODING", function(e) {
13194
+ yt("ERR_MULTIPLE_CALLBACK", "Callback called multiple times");
13195
+ yt("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable");
13196
+ yt("ERR_STREAM_WRITE_AFTER_END", "write after end");
13197
+ yt("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError);
13198
+ yt("ERR_UNKNOWN_ENCODING", function(e) {
13199
13199
  return "Unknown encoding: " + e;
13200
13200
  }, TypeError);
13201
- pt("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event");
13201
+ yt("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event");
13202
13202
  Gr.codes = Il;
13203
13203
  var $1 = Gr.codes.ERR_INVALID_OPT_VALUE;
13204
13204
  function H1(e, t, r) {
@@ -16409,7 +16409,7 @@ const En = {
16409
16409
  contracts: o_,
16410
16410
  formatters: a_,
16411
16411
  serializers: u_
16412
- }, h_ = /* @__PURE__ */ bt({
16412
+ }, h_ = /* @__PURE__ */ pt({
16413
16413
  id: 42161,
16414
16414
  name: "Arbitrum One",
16415
16415
  nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
@@ -16431,7 +16431,7 @@ const En = {
16431
16431
  blockCreated: 7654707
16432
16432
  }
16433
16433
  }
16434
- }), p_ = /* @__PURE__ */ bt({
16434
+ }), p_ = /* @__PURE__ */ pt({
16435
16435
  id: 421614,
16436
16436
  name: "Arbitrum Sepolia",
16437
16437
  nativeCurrency: {
@@ -16458,7 +16458,7 @@ const En = {
16458
16458
  }
16459
16459
  },
16460
16460
  testnet: !0
16461
- }), zn = 1, y_ = /* @__PURE__ */ bt({
16461
+ }), zn = 1, y_ = /* @__PURE__ */ pt({
16462
16462
  ...En,
16463
16463
  id: 8453,
16464
16464
  name: "Base",
@@ -16505,7 +16505,7 @@ const En = {
16505
16505
  }
16506
16506
  },
16507
16507
  sourceId: zn
16508
- }), qn = 11155111, m_ = /* @__PURE__ */ bt({
16508
+ }), qn = 11155111, m_ = /* @__PURE__ */ pt({
16509
16509
  ...En,
16510
16510
  id: 84532,
16511
16511
  network: "base-sepolia",
@@ -16554,7 +16554,7 @@ const En = {
16554
16554
  },
16555
16555
  testnet: !0,
16556
16556
  sourceId: qn
16557
- }), b_ = /* @__PURE__ */ bt({
16557
+ }), b_ = /* @__PURE__ */ pt({
16558
16558
  id: 80094,
16559
16559
  name: "Berachain",
16560
16560
  nativeCurrency: {
@@ -16587,7 +16587,7 @@ const En = {
16587
16587
  },
16588
16588
  ensTlds: [".bera"],
16589
16589
  testnet: !1
16590
- }), g_ = /* @__PURE__ */ bt({
16590
+ }), g_ = /* @__PURE__ */ pt({
16591
16591
  id: 80084,
16592
16592
  name: "Berachain bArtio",
16593
16593
  nativeCurrency: {
@@ -16620,7 +16620,7 @@ const En = {
16620
16620
  }
16621
16621
  },
16622
16622
  testnet: !0
16623
- }), w_ = /* @__PURE__ */ bt({
16623
+ }), w_ = /* @__PURE__ */ pt({
16624
16624
  id: 5115,
16625
16625
  name: "Citrea Testnet",
16626
16626
  nativeCurrency: { name: "cBTC", symbol: "cBTC", decimals: 18 },
@@ -16637,7 +16637,32 @@ const En = {
16637
16637
  }
16638
16638
  },
16639
16639
  testnet: !0
16640
- }), __ = /* @__PURE__ */ bt({
16640
+ }), __ = 1, v_ = /* @__PURE__ */ pt({
16641
+ id: 21e6,
16642
+ name: "Corn",
16643
+ nativeCurrency: {
16644
+ decimals: 18,
16645
+ name: "Bitcorn",
16646
+ symbol: "BTCN"
16647
+ },
16648
+ rpcUrls: {
16649
+ default: { http: ["https://21000000.rpc.thirdweb.com"] }
16650
+ },
16651
+ blockExplorers: {
16652
+ default: {
16653
+ name: "Corn Explorer",
16654
+ url: "https://cornscan.io",
16655
+ apiUrl: "https://api.routescan.io/v2/network/mainnet/evm/21000000/etherscan/api"
16656
+ }
16657
+ },
16658
+ contracts: {
16659
+ multicall3: {
16660
+ address: "0xcA11bde05977b3631167028862bE2a173976CA11",
16661
+ blockCreated: 3228
16662
+ }
16663
+ },
16664
+ sourceId: __
16665
+ }), E_ = /* @__PURE__ */ pt({
16641
16666
  id: 1,
16642
16667
  name: "Ethereum",
16643
16668
  nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
@@ -16666,7 +16691,7 @@ const En = {
16666
16691
  blockCreated: 14353601
16667
16692
  }
16668
16693
  }
16669
- }), v_ = /* @__PURE__ */ bt({
16694
+ }), x_ = /* @__PURE__ */ pt({
16670
16695
  id: 10143,
16671
16696
  name: "Monad Testnet",
16672
16697
  nativeCurrency: {
@@ -16692,7 +16717,7 @@ const En = {
16692
16717
  }
16693
16718
  },
16694
16719
  testnet: !0
16695
- }), E_ = /* @__PURE__ */ bt({
16720
+ }), A_ = /* @__PURE__ */ pt({
16696
16721
  id: 11155111,
16697
16722
  name: "Sepolia",
16698
16723
  nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 },
@@ -16720,7 +16745,7 @@ const En = {
16720
16745
  }
16721
16746
  },
16722
16747
  testnet: !0
16723
- }), ss = 1, x_ = /* @__PURE__ */ bt({
16748
+ }), ss = 1, S_ = /* @__PURE__ */ pt({
16724
16749
  ...En,
16725
16750
  id: 130,
16726
16751
  name: "Unichain",
@@ -16760,14 +16785,14 @@ const En = {
16760
16785
  }
16761
16786
  },
16762
16787
  sourceId: ss
16763
- }), A_ = {
16764
- ...E_,
16788
+ }), P_ = {
16789
+ ...A_,
16765
16790
  rpcUrls: {
16766
16791
  default: {
16767
16792
  http: ["https://ethereum-sepolia-rpc.publicnode.com"]
16768
16793
  }
16769
16794
  }
16770
- }, S_ = {
16795
+ }, T_ = {
16771
16796
  id: 998,
16772
16797
  name: "Hyperliquid EVM Testnet",
16773
16798
  nativeCurrency: {
@@ -16786,7 +16811,7 @@ const En = {
16786
16811
  http: ["https://rpc.hyperliquid-testnet.xyz/evm"]
16787
16812
  }
16788
16813
  }
16789
- }, P_ = {
16814
+ }, k_ = {
16790
16815
  id: 999,
16791
16816
  name: "HyperEVM",
16792
16817
  nativeCurrency: {
@@ -16805,10 +16830,10 @@ const En = {
16805
16830
  http: ["https://rpc.hyperliquid.xyz/evm"]
16806
16831
  }
16807
16832
  }
16808
- }, T_ = {
16809
- ethereum: __,
16833
+ }, I_ = {
16834
+ ethereum: E_,
16810
16835
  arbitrum: h_,
16811
- ethereum_sepolia: A_,
16836
+ ethereum_sepolia: P_,
16812
16837
  arbitrum_sepolia: p_,
16813
16838
  ethereum_localnet: sh,
16814
16839
  arbitrum_localnet: ih,
@@ -16817,13 +16842,14 @@ const En = {
16817
16842
  bera_testnet: g_,
16818
16843
  citrea_testnet: w_,
16819
16844
  bera: b_,
16820
- monad_testnet: v_,
16821
- hyperliquid_testnet: S_,
16822
- hyperliquid: P_,
16823
- unichain: x_
16824
- }, k_ = async (e, t) => {
16845
+ monad_testnet: x_,
16846
+ hyperliquid_testnet: T_,
16847
+ hyperliquid: k_,
16848
+ unichain: S_,
16849
+ corn: v_
16850
+ }, B_ = async (e, t) => {
16825
16851
  var i, s, o;
16826
- const r = T_[e], n = await t.getChainId();
16852
+ const r = I_[e], n = await t.getChainId();
16827
16853
  if (r)
16828
16854
  try {
16829
16855
  if (r.id === n)
@@ -16839,7 +16865,7 @@ const En = {
16839
16865
  walletClient: a
16840
16866
  });
16841
16867
  } catch (a) {
16842
- if (I_(a))
16868
+ if (C_(a))
16843
16869
  if (a.code === 4902)
16844
16870
  try {
16845
16871
  await t.addChain({ chain: r });
@@ -16872,7 +16898,7 @@ const En = {
16872
16898
  }
16873
16899
  else
16874
16900
  return G("Chain not supported");
16875
- }, I_ = (e) => typeof e == "object" && e != null && ("code" in e || "message" in e || "body" in e), B_ = [
16901
+ }, C_ = (e) => typeof e == "object" && e != null && ("code" in e || "message" in e || "body" in e), O_ = [
16876
16902
  {
16877
16903
  inputs: [
16878
16904
  {
@@ -17269,7 +17295,7 @@ const En = {
17269
17295
  type: "function"
17270
17296
  }
17271
17297
  ];
17272
- class C_ {
17298
+ class R_ {
17273
17299
  constructor(t, r, n) {
17274
17300
  this.url = new Tt("/relayer", t), this.auth = n, this.wallet = r;
17275
17301
  }
@@ -17283,7 +17309,7 @@ class C_ {
17283
17309
  return Se("Account address and order initiator mismatch");
17284
17310
  if (!oh(t.source_swap.chain))
17285
17311
  return Se("Source chain is not an EVM chain");
17286
- const r = await k_(
17312
+ const r = await B_(
17287
17313
  t.source_swap.chain,
17288
17314
  this.wallet
17289
17315
  );
@@ -17326,7 +17352,7 @@ class C_ {
17326
17352
  try {
17327
17353
  const a = await ko({
17328
17354
  address: Qr(s),
17329
- abi: B_,
17355
+ abi: O_,
17330
17356
  client: this.wallet
17331
17357
  }).write.initiate(
17332
17358
  [i, r, n, t],
@@ -18547,7 +18573,7 @@ const Zl = [
18547
18573
  }
18548
18574
  ]
18549
18575
  }
18550
- ], O_ = async (e, t, r, n, i) => {
18576
+ ], L_ = async (e, t, r, n, i) => {
18551
18577
  try {
18552
18578
  const s = await Na(
18553
18579
  e.address,
@@ -18609,7 +18635,7 @@ const Zl = [
18609
18635
  `Failed to check allowance: ${i instanceof Error ? i.message : String(i)}`
18610
18636
  );
18611
18637
  }
18612
- }, R_ = async (e, t, r, n, i) => {
18638
+ }, F_ = async (e, t, r, n, i) => {
18613
18639
  const s = await Na(
18614
18640
  e,
18615
18641
  t,
@@ -18870,7 +18896,7 @@ const Zl = [
18870
18896
  }
18871
18897
  ]
18872
18898
  }
18873
- ], L_ = {
18899
+ ], U_ = {
18874
18900
  StarknetDomain: [
18875
18901
  { name: "name", type: "shortstring" },
18876
18902
  { name: "version", type: "shortstring" },
@@ -18884,7 +18910,7 @@ const Zl = [
18884
18910
  { name: "secretHash", type: "u128*" }
18885
18911
  ]
18886
18912
  };
18887
- class F_ {
18913
+ class N_ {
18888
18914
  constructor(t, r, n, i) {
18889
18915
  this.url = t instanceof Tt ? t : new Tt(t), this.account = r, this.starknetProvider = new gf({
18890
18916
  nodeUrl: i || Ss[n].nodeUrl
@@ -18904,7 +18930,7 @@ class F_ {
18904
18930
  eh,
18905
18931
  t.source_swap.asset,
18906
18932
  this.account
18907
- ), a = await (o == null ? void 0 : o.token()), c = wf.toHex(a), f = await R_(
18933
+ ), a = await (o == null ? void 0 : o.token()), c = wf.toHex(a), f = await F_(
18908
18934
  this.account.address,
18909
18935
  c,
18910
18936
  n.asset,
@@ -18951,7 +18977,7 @@ class F_ {
18951
18977
  revision: mh.ACTIVE
18952
18978
  },
18953
18979
  primaryType: "Initiate",
18954
- types: L_,
18980
+ types: U_,
18955
18981
  message: {
18956
18982
  redeemer: i,
18957
18983
  amount: Xn.uint256(s),
@@ -19040,12 +19066,12 @@ class th extends yf {
19040
19066
  "API not found, invalid environment " + t.environment
19041
19067
  );
19042
19068
  const i = {
19043
- evm: t.wallets.evm ? new C_(
19069
+ evm: t.wallets.evm ? new R_(
19044
19070
  n.evmRelay,
19045
19071
  t.wallets.evm,
19046
19072
  Oc.fromDigestKey(new Tt(n.auth), r)
19047
19073
  ) : void 0,
19048
- starknet: t.wallets.starknet ? new F_(
19074
+ starknet: t.wallets.starknet ? new N_(
19049
19075
  n.starknetRelay,
19050
19076
  t.wallets.starknet,
19051
19077
  t.environment === pr.MAINNET ? gs.MAINNET : gs.TESTNET
@@ -19535,7 +19561,7 @@ class th extends yf {
19535
19561
  }
19536
19562
  }
19537
19563
  }
19538
- class ov {
19564
+ class cv {
19539
19565
  constructor(t, r, n) {
19540
19566
  this.callData = new Uc(Zl), this.account = t, this.starknetProvider = new gf({
19541
19567
  nodeUrl: r || (n ? Ss[n].nodeUrl : Ss.mainnet.nodeUrl)
@@ -19560,7 +19586,7 @@ class ov {
19560
19586
  throw new Error("Token address retrieval failed");
19561
19587
  const i = wf.toHex(n), s = Xn.uint256(BigInt(t.source_swap.amount));
19562
19588
  try {
19563
- const a = await O_(
19589
+ const a = await L_(
19564
19590
  this.account,
19565
19591
  i,
19566
19592
  t.source_swap.asset,
@@ -19633,40 +19659,40 @@ class ov {
19633
19659
  }
19634
19660
  }
19635
19661
  export {
19636
- k_ as $,
19637
- W_ as A,
19662
+ B_ as $,
19663
+ Y_ as A,
19638
19664
  N as B,
19639
- Y_ as C,
19665
+ J_ as C,
19640
19666
  vy as D,
19641
- C_ as E,
19642
- ov as F,
19667
+ R_ as E,
19668
+ cv as F,
19643
19669
  th as G,
19644
19670
  Jn as H,
19645
19671
  _0 as I,
19646
19672
  m1 as J,
19647
19673
  _e as K,
19648
19674
  ve as L,
19649
- nv as M,
19675
+ sv as M,
19650
19676
  mu as N,
19651
19677
  Ce as O,
19652
19678
  Wd as P,
19653
19679
  Ps as Q,
19654
- iv as R,
19655
- F_ as S,
19680
+ ov as R,
19681
+ N_ as S,
19656
19682
  Kd as T,
19657
19683
  Rs as U,
19658
19684
  b1 as V,
19659
19685
  yu as W,
19660
- rv as X,
19686
+ iv as X,
19661
19687
  Tr as Y,
19662
19688
  pu as Z,
19663
- T_ as _,
19664
- V_ as a,
19665
- S_ as a0,
19666
- P_ as a1,
19689
+ I_ as _,
19690
+ K_ as a,
19691
+ T_ as a0,
19692
+ k_ as a1,
19667
19693
  Ro as a2,
19668
19694
  Ss as a3,
19669
- q_ as b,
19695
+ W_ as b,
19670
19696
  Xt as c,
19671
19697
  $s as d,
19672
19698
  Ga as e,
@@ -19674,7 +19700,7 @@ export {
19674
19700
  Bi as g,
19675
19701
  _s as h,
19676
19702
  y0 as i,
19677
- ev as j,
19703
+ rv as j,
19678
19704
  bp as k,
19679
19705
  Ja as l,
19680
19706
  it as m,
@@ -19686,9 +19712,9 @@ export {
19686
19712
  ti as s,
19687
19713
  Wa as t,
19688
19714
  qf as u,
19689
- K_ as v,
19715
+ X_ as v,
19690
19716
  Da as w,
19691
19717
  xs as x,
19692
19718
  Us as y,
19693
- J_ as z
19719
+ Z_ as z
19694
19720
  };