@gardenfi/core 2.5.0 → 2.5.1-beta.1

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.
@@ -4523,18 +4523,18 @@ const k6 = "0.1.1";
4523
4523
  function I6() {
4524
4524
  return k6;
4525
4525
  }
4526
- class Me extends Error {
4526
+ class Ue extends Error {
4527
4527
  constructor(t, r = {}) {
4528
4528
  const n = (() => {
4529
4529
  var c;
4530
- if (r.cause instanceof Me) {
4530
+ if (r.cause instanceof Ue) {
4531
4531
  if (r.cause.details)
4532
4532
  return r.cause.details;
4533
4533
  if (r.cause.shortMessage)
4534
4534
  return r.cause.shortMessage;
4535
4535
  }
4536
4536
  return r.cause && "details" in r.cause && typeof r.cause.details == "string" ? r.cause.details : (c = r.cause) != null && c.message ? r.cause.message : r.details;
4537
- })(), s = r.cause instanceof Me && r.cause.docsPath || r.docsPath, o = `https://oxlib.sh${s ?? ""}`, a = [
4537
+ })(), s = r.cause instanceof Ue && r.cause.docsPath || r.docsPath, o = `https://oxlib.sh${s ?? ""}`, a = [
4538
4538
  t || "An error occurred.",
4539
4539
  ...r.metaMessages ? ["", ...r.metaMessages] : [],
4540
4540
  ...n || s ? [
@@ -4685,7 +4685,7 @@ function F6(e, t = {}) {
4685
4685
  for (let a = 0, c = 0; a < i; a++) {
4686
4686
  const f = mp(s.charCodeAt(c++)), u = mp(s.charCodeAt(c++));
4687
4687
  if (f === void 0 || u === void 0)
4688
- throw new Me(`Invalid byte sequence ("${s[c - 2]}${s[c - 1]}" in "${s}").`);
4688
+ throw new Ue(`Invalid byte sequence ("${s[c - 2]}${s[c - 1]}" in "${s}").`);
4689
4689
  o[a] = f * 16 + u;
4690
4690
  }
4691
4691
  return o;
@@ -4700,7 +4700,7 @@ function L6(e, t) {
4700
4700
  function gp(e) {
4701
4701
  return e.length;
4702
4702
  }
4703
- let D6 = class extends Me {
4703
+ let D6 = class extends Ue {
4704
4704
  constructor({ givenSize: t, maxSize: r }) {
4705
4705
  super(`Size cannot exceed \`${r}\` bytes. Given size: \`${t}\` bytes.`), Object.defineProperty(this, "name", {
4706
4706
  enumerable: !0,
@@ -4709,7 +4709,7 @@ let D6 = class extends Me {
4709
4709
  value: "Bytes.SizeOverflowError"
4710
4710
  });
4711
4711
  }
4712
- }, H6 = class extends Me {
4712
+ }, H6 = class extends Ue {
4713
4713
  constructor({ size: t, targetSize: r, type: n }) {
4714
4714
  super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${r}\`).`), Object.defineProperty(this, "name", {
4715
4715
  enumerable: !0,
@@ -4789,7 +4789,7 @@ function G6(e, t = {}) {
4789
4789
  return !1;
4790
4790
  }
4791
4791
  }
4792
- class pg extends Me {
4792
+ class pg extends Ue {
4793
4793
  constructor({ max: t, min: r, signed: n, size: s, value: i }) {
4794
4794
  super(`Number \`${i}\` is not in safe${s ? ` ${s * 8}-bit` : ""}${n ? " signed" : " unsigned"} integer range ${t ? `(\`${r}\` to \`${t}\`)` : `(above \`${r}\`)`}`), Object.defineProperty(this, "name", {
4795
4795
  enumerable: !0,
@@ -4799,7 +4799,7 @@ class pg extends Me {
4799
4799
  });
4800
4800
  }
4801
4801
  }
4802
- class bp extends Me {
4802
+ class bp extends Ue {
4803
4803
  constructor(t) {
4804
4804
  super(`Value \`${typeof t == "object" ? O6(t) : t}\` of type \`${typeof t}\` is an invalid hex type.`, {
4805
4805
  metaMessages: ['Hex types must be represented as `"0x${string}"`.']
@@ -4811,7 +4811,7 @@ class bp extends Me {
4811
4811
  });
4812
4812
  }
4813
4813
  }
4814
- class wp extends Me {
4814
+ class wp extends Ue {
4815
4815
  constructor(t) {
4816
4816
  super(`Value \`${t}\` is an invalid hex value.`, {
4817
4817
  metaMessages: [
@@ -4825,7 +4825,7 @@ class wp extends Me {
4825
4825
  });
4826
4826
  }
4827
4827
  }
4828
- class W6 extends Me {
4828
+ class W6 extends Ue {
4829
4829
  constructor({ givenSize: t, maxSize: r }) {
4830
4830
  super(`Size cannot exceed \`${r}\` bytes. Given size: \`${t}\` bytes.`), Object.defineProperty(this, "name", {
4831
4831
  enumerable: !0,
@@ -4835,7 +4835,7 @@ class W6 extends Me {
4835
4835
  });
4836
4836
  }
4837
4837
  }
4838
- class yg extends Me {
4838
+ class yg extends Ue {
4839
4839
  constructor({ offset: t, position: r, size: n }) {
4840
4840
  super(`Slice ${r === "start" ? "starting" : "ending"} at offset \`${t}\` is out-of-bounds (size: \`${n}\`).`), Object.defineProperty(this, "name", {
4841
4841
  enumerable: !0,
@@ -4845,7 +4845,7 @@ class yg extends Me {
4845
4845
  });
4846
4846
  }
4847
4847
  }
4848
- class K6 extends Me {
4848
+ class K6 extends Ue {
4849
4849
  constructor({ size: t, targetSize: r, type: n }) {
4850
4850
  super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${r}\`).`), Object.defineProperty(this, "name", {
4851
4851
  enumerable: !0,
@@ -5346,7 +5346,7 @@ async function Fc(e, t) {
5346
5346
  });
5347
5347
  return J === "0x" ? { data: void 0 } : { data: J };
5348
5348
  } catch (re) {
5349
- const D = oA(re), { offchainLookup: O, offchainLookupSignature: q } = await import("./ccip-DW9K4PmQ.js");
5349
+ const D = oA(re), { offchainLookup: O, offchainLookupSignature: q } = await import("./ccip-B_Z0Fiwz.js");
5350
5350
  if (e.ccipRead !== !1 && (D == null ? void 0 : D.slice(0, 10)) === q && S)
5351
5351
  return { data: await O(e, { data: D, to: S }) };
5352
5352
  throw C && (D == null ? void 0 : D.slice(0, 10)) === "0x101bb98d" ? new VE({ factory: p }) : Eg(re, {
@@ -8118,7 +8118,7 @@ function Fl(e, t = {}) {
8118
8118
  return !1;
8119
8119
  }
8120
8120
  }
8121
- class Op extends Me {
8121
+ class Op extends Ue {
8122
8122
  constructor({ address: t, cause: r }) {
8123
8123
  super(`Address "${t}" is invalid.`, {
8124
8124
  cause: r
@@ -8130,7 +8130,7 @@ class Op extends Me {
8130
8130
  });
8131
8131
  }
8132
8132
  }
8133
- class GS extends Me {
8133
+ class GS extends Ue {
8134
8134
  constructor() {
8135
8135
  super("Address is not a 20 byte (40 hexadecimal character) value."), Object.defineProperty(this, "name", {
8136
8136
  enumerable: !0,
@@ -8140,7 +8140,7 @@ class GS extends Me {
8140
8140
  });
8141
8141
  }
8142
8142
  }
8143
- class WS extends Me {
8143
+ class WS extends Ue {
8144
8144
  constructor() {
8145
8145
  super("Address does not match its checksum counterpart."), Object.defineProperty(this, "name", {
8146
8146
  enumerable: !0,
@@ -8172,7 +8172,7 @@ function jl(e) {
8172
8172
  }
8173
8173
  }
8174
8174
  if (!i)
8175
- throw new Me("Unable to normalize signature.");
8175
+ throw new Ue("Unable to normalize signature.");
8176
8176
  return s;
8177
8177
  }
8178
8178
  function Ll(e, t) {
@@ -8279,7 +8279,7 @@ function XS(e) {
8279
8279
  function hi(e) {
8280
8280
  return typeof e != "string" && "hash" in e && e.hash ? e.hash : sb(qd(XS(e)));
8281
8281
  }
8282
- class YS extends Me {
8282
+ class YS extends Ue {
8283
8283
  constructor(t, r) {
8284
8284
  super("Found ambiguous types in overloaded ABI Items.", {
8285
8285
  metaMessages: [
@@ -8298,7 +8298,7 @@ class YS extends Me {
8298
8298
  });
8299
8299
  }
8300
8300
  }
8301
- class Dl extends Me {
8301
+ class Dl extends Ue {
8302
8302
  constructor({ name: t, data: r, type: n = "item" }) {
8303
8303
  const s = t ? ` with name "${t}"` : r ? ` with data "${r}"` : "";
8304
8304
  super(`ABI ${n}${s} not found.`), Object.defineProperty(this, "name", {
@@ -8433,7 +8433,7 @@ function rx(e, { type: t }) {
8433
8433
  }
8434
8434
  function nx(e) {
8435
8435
  if (typeof e != "boolean")
8436
- throw new Me(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);
8436
+ throw new Ue(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);
8437
8437
  return { dynamic: !1, encoded: Us(dg(e)) };
8438
8438
  }
8439
8439
  function sx(e, { signed: t, size: r }) {
@@ -8557,7 +8557,7 @@ function Hl(e, t) {
8557
8557
  }
8558
8558
  e.encode = t;
8559
8559
  })(Hl || (Hl = {}));
8560
- class cx extends Me {
8560
+ class cx extends Ue {
8561
8561
  constructor({ expectedLength: t, givenLength: r, type: n }) {
8562
8562
  super(`Array length mismatch for type \`${n}\`. Expected: \`${t}\`. Given: \`${r}\`.`), Object.defineProperty(this, "name", {
8563
8563
  enumerable: !0,
@@ -8567,7 +8567,7 @@ class cx extends Me {
8567
8567
  });
8568
8568
  }
8569
8569
  }
8570
- class fb extends Me {
8570
+ class fb extends Ue {
8571
8571
  constructor({ expectedSize: t, value: r }) {
8572
8572
  super(`Size of bytes "${r}" (bytes${hr(r)}) does not match expected size (bytes${t}).`), Object.defineProperty(this, "name", {
8573
8573
  enumerable: !0,
@@ -8577,7 +8577,7 @@ class fb extends Me {
8577
8577
  });
8578
8578
  }
8579
8579
  }
8580
- class lb extends Me {
8580
+ class lb extends Ue {
8581
8581
  constructor({ expectedLength: t, givenLength: r }) {
8582
8582
  super([
8583
8583
  "ABI encoding parameters/values length mismatch.",
@@ -8592,7 +8592,7 @@ class lb extends Me {
8592
8592
  });
8593
8593
  }
8594
8594
  }
8595
- class ux extends Me {
8595
+ class ux extends Ue {
8596
8596
  constructor(t) {
8597
8597
  super(`Value \`${t}\` is not a valid array.`), Object.defineProperty(this, "name", {
8598
8598
  enumerable: !0,
@@ -8602,7 +8602,7 @@ class ux extends Me {
8602
8602
  });
8603
8603
  }
8604
8604
  }
8605
- class db extends Me {
8605
+ class db extends Ue {
8606
8606
  constructor(t) {
8607
8607
  super(`Type \`${t}\` is not a valid ABI Type.`), Object.defineProperty(this, "name", {
8608
8608
  enumerable: !0,
@@ -11095,7 +11095,7 @@ const Lu = async (e, t) => {
11095
11095
  }
11096
11096
  return !1;
11097
11097
  };
11098
- var ge = /* @__PURE__ */ ((e) => (e.Created = "Created", e.Matched = "Matched", e.InitiateDetected = "InitiateDetected", e.Initiated = "Initiated", e.CounterPartyInitiateDetected = "CounterPartyInitiateDetected", e.CounterPartyInitiated = "CounterPartyInitiated", e.RedeemDetected = "RedeemDetected", e.Redeemed = "Redeemed", e.CounterPartyRedeemDetected = "CounterPartyRedeemDetected", e.CounterPartyRedeemed = "CounterPartyRedeemed", e.Completed = "Completed", e.CounterPartySwapExpired = "CounterPartySwapExpired", e.Expired = "Expired", e.RefundDetected = "RefundDetected", e.Refunded = "Refunded", e.CounterPartyRefundDetected = "CounterPartyRefundDetected", e.CounterPartyRefunded = "CounterPartyRefunded", e.Cancelled = "Cancelled", e.DeadLineExceeded = "DeadLineExceeded", e))(ge || {}), Fe = /* @__PURE__ */ ((e) => (e.Idle = "Idle", e.InitiateDetected = "InitiateDetected", e.Initiated = "Initiated", e.RedeemDetected = "RedeemDetected", e.Redeemed = "Redeemed", e.RefundDetected = "RefundDetected", e.Refunded = "Refunded", e.Expired = "Expired", e))(Fe || {});
11098
+ var ge = /* @__PURE__ */ ((e) => (e.Created = "Created", e.Matched = "Matched", e.InitiateDetected = "InitiateDetected", e.Initiated = "Initiated", e.CounterPartyInitiateDetected = "CounterPartyInitiateDetected", e.CounterPartyInitiated = "CounterPartyInitiated", e.RedeemDetected = "RedeemDetected", e.Redeemed = "Redeemed", e.CounterPartyRedeemDetected = "CounterPartyRedeemDetected", e.CounterPartyRedeemed = "CounterPartyRedeemed", e.Completed = "Completed", e.CounterPartySwapExpired = "CounterPartySwapExpired", e.Expired = "Expired", e.RefundDetected = "RefundDetected", e.Refunded = "Refunded", e.CounterPartyRefundDetected = "CounterPartyRefundDetected", e.CounterPartyRefunded = "CounterPartyRefunded", e.Cancelled = "Cancelled", e.DeadLineExceeded = "DeadLineExceeded", e))(ge || {}), Oe = /* @__PURE__ */ ((e) => (e.Idle = "Idle", e.InitiateDetected = "InitiateDetected", e.Initiated = "Initiated", e.RedeemDetected = "RedeemDetected", e.Redeemed = "Redeemed", e.RefundDetected = "RefundDetected", e.Refunded = "Refunded", e.Expired = "Expired", e))(Oe || {});
11099
11099
  const Cb = (e, t, r) => {
11100
11100
  const n = qp(
11101
11101
  e.source_swap,
@@ -11104,33 +11104,33 @@ const Cb = (e, t, r) => {
11104
11104
  e.destination_swap,
11105
11105
  r
11106
11106
  );
11107
- if (s === Fe.RedeemDetected)
11107
+ if (s === Oe.RedeemDetected)
11108
11108
  return ge.RedeemDetected;
11109
- if (s === Fe.Redeemed) return ge.Redeemed;
11110
- if (n === Fe.Refunded) return ge.Refunded;
11111
- if (n === Fe.RefundDetected)
11109
+ if (s === Oe.Redeemed) return ge.Redeemed;
11110
+ if (n === Oe.Refunded) return ge.Refunded;
11111
+ if (n === Oe.RefundDetected)
11112
11112
  return ge.RefundDetected;
11113
- if (s === Fe.Expired)
11113
+ if (s === Oe.Expired)
11114
11114
  return ge.CounterPartySwapExpired;
11115
- if (n === Fe.Expired) return ge.Expired;
11116
- if (s === Fe.Refunded)
11115
+ if (n === Oe.Expired) return ge.Expired;
11116
+ if (s === Oe.Refunded)
11117
11117
  return ge.CounterPartyRefunded;
11118
- if (s === Fe.RefundDetected)
11118
+ if (s === Oe.RefundDetected)
11119
11119
  return ge.CounterPartyRefundDetected;
11120
11120
  const i = Number(
11121
11121
  e.create_order.additional_data.deadline
11122
11122
  );
11123
- return s === Fe.Initiated ? ge.CounterPartyInitiated : s === Fe.InitiateDetected ? ge.CounterPartyInitiateDetected : lc(i, 0) ? ge.DeadLineExceeded : n === Fe.Initiated ? ge.Initiated : lc(i, 0) ? ge.DeadLineExceeded : n === Fe.InitiateDetected ? ge.InitiateDetected : n === Fe.Redeemed ? ge.CounterPartyRedeemed : n === Fe.RedeemDetected ? ge.CounterPartyRedeemDetected : ge.Matched;
11123
+ return (n === Oe.Redeemed || n === Oe.RedeemDetected) && s === Oe.Initiated ? ge.Redeemed : s === Oe.Initiated ? ge.CounterPartyInitiated : s === Oe.InitiateDetected ? ge.CounterPartyInitiateDetected : lc(i, 0) ? ge.DeadLineExceeded : n === Oe.Initiated ? ge.Initiated : lc(i, 0) ? ge.DeadLineExceeded : n === Oe.InitiateDetected ? ge.InitiateDetected : n === Oe.Redeemed ? ge.CounterPartyRedeemed : n === Oe.RedeemDetected ? ge.CounterPartyRedeemDetected : ge.Matched;
11124
11124
  }, qp = (e, t) => {
11125
11125
  if (e.redeem_tx_hash)
11126
- return Number(e.redeem_block_number) ? Fe.Redeemed : Fe.RedeemDetected;
11126
+ return Number(e.redeem_block_number) ? Oe.Redeemed : Oe.RedeemDetected;
11127
11127
  if (e.refund_tx_hash)
11128
- return Number(e.refund_block_number) ? Fe.Refunded : Fe.RefundDetected;
11128
+ return Number(e.refund_block_number) ? Oe.Refunded : Oe.RefundDetected;
11129
11129
  if (Number(e.initiate_block_number)) {
11130
11130
  const r = Number(e.initiate_block_number) + e.timelock;
11131
- if (t > r) return Fe.Expired;
11131
+ if (t > r) return Oe.Expired;
11132
11132
  }
11133
- return e.initiate_tx_hash ? Number(e.initiate_block_number) ? Fe.Initiated : Fe.InitiateDetected : Fe.Idle;
11133
+ return e.initiate_tx_hash ? Number(e.initiate_block_number) ? Oe.Initiated : Oe.InitiateDetected : Oe.Idle;
11134
11134
  }, $O = (e, t, r) => {
11135
11135
  const n = Cb(
11136
11136
  e,
@@ -11597,10 +11597,10 @@ ah.write = function(e, t, r, n, s, i) {
11597
11597
  return 1;
11598
11598
  if (y >>>= 0, A >>>= 0, B >>>= 0, M >>>= 0, this === h) return 0;
11599
11599
  let V = M - B, me = A - y;
11600
- const He = Math.min(V, me), Re = this.slice(B, M), ze = h.slice(y, A);
11600
+ const He = Math.min(V, me), $e = this.slice(B, M), ze = h.slice(y, A);
11601
11601
  for (let _e = 0; _e < He; ++_e)
11602
- if (Re[_e] !== ze[_e]) {
11603
- V = Re[_e], me = ze[_e];
11602
+ if ($e[_e] !== ze[_e]) {
11603
+ V = $e[_e], me = ze[_e];
11604
11604
  break;
11605
11605
  }
11606
11606
  return V < me ? -1 : me < V ? 1 : 0;
@@ -11629,23 +11629,23 @@ ah.write = function(e, t, r, n, s, i) {
11629
11629
  function He(ze, _e) {
11630
11630
  return M === 1 ? ze[_e] : ze.readUInt16BE(_e * M);
11631
11631
  }
11632
- let Re;
11632
+ let $e;
11633
11633
  if (B) {
11634
11634
  let ze = -1;
11635
- for (Re = y; Re < V; Re++)
11636
- if (He(b, Re) === He(h, ze === -1 ? 0 : Re - ze)) {
11637
- if (ze === -1 && (ze = Re), Re - ze + 1 === me) return ze * M;
11635
+ for ($e = y; $e < V; $e++)
11636
+ if (He(b, $e) === He(h, ze === -1 ? 0 : $e - ze)) {
11637
+ if (ze === -1 && (ze = $e), $e - ze + 1 === me) return ze * M;
11638
11638
  } else
11639
- ze !== -1 && (Re -= Re - ze), ze = -1;
11639
+ ze !== -1 && ($e -= $e - ze), ze = -1;
11640
11640
  } else
11641
- for (y + me > V && (y = V - me), Re = y; Re >= 0; Re--) {
11641
+ for (y + me > V && (y = V - me), $e = y; $e >= 0; $e--) {
11642
11642
  let ze = !0;
11643
11643
  for (let _e = 0; _e < me; _e++)
11644
- if (He(b, Re + _e) !== He(h, _e)) {
11644
+ if (He(b, $e + _e) !== He(h, _e)) {
11645
11645
  ze = !1;
11646
11646
  break;
11647
11647
  }
11648
- if (ze) return Re;
11648
+ if (ze) return $e;
11649
11649
  }
11650
11650
  return -1;
11651
11651
  }
@@ -11737,7 +11737,7 @@ ah.write = function(e, t, r, n, s, i) {
11737
11737
  const M = b[B];
11738
11738
  let V = null, me = M > 239 ? 4 : M > 223 ? 3 : M > 191 ? 2 : 1;
11739
11739
  if (B + me <= y) {
11740
- let He, Re, ze, _e;
11740
+ let He, $e, ze, _e;
11741
11741
  switch (me) {
11742
11742
  case 1:
11743
11743
  M < 128 && (V = M);
@@ -11746,10 +11746,10 @@ ah.write = function(e, t, r, n, s, i) {
11746
11746
  He = b[B + 1], (He & 192) === 128 && (_e = (M & 31) << 6 | He & 63, _e > 127 && (V = _e));
11747
11747
  break;
11748
11748
  case 3:
11749
- He = b[B + 1], Re = b[B + 2], (He & 192) === 128 && (Re & 192) === 128 && (_e = (M & 15) << 12 | (He & 63) << 6 | Re & 63, _e > 2047 && (_e < 55296 || _e > 57343) && (V = _e));
11749
+ He = b[B + 1], $e = b[B + 2], (He & 192) === 128 && ($e & 192) === 128 && (_e = (M & 15) << 12 | (He & 63) << 6 | $e & 63, _e > 2047 && (_e < 55296 || _e > 57343) && (V = _e));
11750
11750
  break;
11751
11751
  case 4:
11752
- He = b[B + 1], Re = b[B + 2], ze = b[B + 3], (He & 192) === 128 && (Re & 192) === 128 && (ze & 192) === 128 && (_e = (M & 15) << 18 | (He & 63) << 12 | (Re & 63) << 6 | ze & 63, _e > 65535 && _e < 1114112 && (V = _e));
11752
+ He = b[B + 1], $e = b[B + 2], ze = b[B + 3], (He & 192) === 128 && ($e & 192) === 128 && (ze & 192) === 128 && (_e = (M & 15) << 18 | (He & 63) << 12 | ($e & 63) << 6 | ze & 63, _e > 65535 && _e < 1114112 && (V = _e));
11753
11753
  }
11754
11754
  }
11755
11755
  V === null ? (V = 65533, me = 1) : V > 65535 && (V -= 65536, A.push(V >>> 10 & 1023 | 55296), V = 56320 | V & 1023), A.push(V), B += me;
@@ -11833,13 +11833,13 @@ ah.write = function(e, t, r, n, s, i) {
11833
11833
  }, a.prototype.readBigUInt64LE = Rn(function(h) {
11834
11834
  h = h >>> 0, xe(h, "offset");
11835
11835
  const y = this[h], A = this[h + 7];
11836
- (y === void 0 || A === void 0) && Ue(h, this.length - 8);
11836
+ (y === void 0 || A === void 0) && Fe(h, this.length - 8);
11837
11837
  const B = y + this[++h] * 2 ** 8 + this[++h] * 2 ** 16 + this[++h] * 2 ** 24, M = this[++h] + this[++h] * 2 ** 8 + this[++h] * 2 ** 16 + A * 2 ** 24;
11838
11838
  return BigInt(B) + (BigInt(M) << BigInt(32));
11839
11839
  }), a.prototype.readBigUInt64BE = Rn(function(h) {
11840
11840
  h = h >>> 0, xe(h, "offset");
11841
11841
  const y = this[h], A = this[h + 7];
11842
- (y === void 0 || A === void 0) && Ue(h, this.length - 8);
11842
+ (y === void 0 || A === void 0) && Fe(h, this.length - 8);
11843
11843
  const B = y * 2 ** 24 + this[++h] * 2 ** 16 + this[++h] * 2 ** 8 + this[++h], M = this[++h] * 2 ** 24 + this[++h] * 2 ** 16 + this[++h] * 2 ** 8 + A;
11844
11844
  return (BigInt(B) << BigInt(32)) + BigInt(M);
11845
11845
  }), a.prototype.readIntLE = function(h, y, A) {
@@ -11871,13 +11871,13 @@ ah.write = function(e, t, r, n, s, i) {
11871
11871
  }, a.prototype.readBigInt64LE = Rn(function(h) {
11872
11872
  h = h >>> 0, xe(h, "offset");
11873
11873
  const y = this[h], A = this[h + 7];
11874
- (y === void 0 || A === void 0) && Ue(h, this.length - 8);
11874
+ (y === void 0 || A === void 0) && Fe(h, this.length - 8);
11875
11875
  const B = this[h + 4] + this[h + 5] * 2 ** 8 + this[h + 6] * 2 ** 16 + (A << 24);
11876
11876
  return (BigInt(B) << BigInt(32)) + BigInt(y + this[++h] * 2 ** 8 + this[++h] * 2 ** 16 + this[++h] * 2 ** 24);
11877
11877
  }), a.prototype.readBigInt64BE = Rn(function(h) {
11878
11878
  h = h >>> 0, xe(h, "offset");
11879
11879
  const y = this[h], A = this[h + 7];
11880
- (y === void 0 || A === void 0) && Ue(h, this.length - 8);
11880
+ (y === void 0 || A === void 0) && Fe(h, this.length - 8);
11881
11881
  const B = (y << 24) + // Overflow
11882
11882
  this[++h] * 2 ** 16 + this[++h] * 2 ** 8 + this[++h];
11883
11883
  return (BigInt(B) << BigInt(32)) + BigInt(this[++h] * 2 ** 24 + this[++h] * 2 ** 16 + this[++h] * 2 ** 8 + A);
@@ -12091,7 +12091,7 @@ ah.write = function(e, t, r, n, s, i) {
12091
12091
  return `${b.slice(0, y)}${h}`;
12092
12092
  }
12093
12093
  function pe(b, h, y) {
12094
- xe(h, "offset"), (b[h] === void 0 || b[h + y] === void 0) && Ue(h, b.length - (y + 1));
12094
+ xe(h, "offset"), (b[h] === void 0 || b[h + y] === void 0) && Fe(h, b.length - (y + 1));
12095
12095
  }
12096
12096
  function we(b, h, y, A, B, M) {
12097
12097
  if (b > y || b < h) {
@@ -12105,7 +12105,7 @@ ah.write = function(e, t, r, n, s, i) {
12105
12105
  if (typeof b != "number")
12106
12106
  throw new ce.ERR_INVALID_ARG_TYPE(h, "number", b);
12107
12107
  }
12108
- function Ue(b, h, y) {
12108
+ function Fe(b, h, y) {
12109
12109
  throw Math.floor(b) !== b ? (xe(b, y), new ce.ERR_OUT_OF_RANGE("offset", "an integer", b)) : h < 0 ? new ce.ERR_BUFFER_OUT_OF_BOUNDS() : new ce.ERR_OUT_OF_RANGE(
12110
12110
  "offset",
12111
12111
  `>= 0 and <= ${h}`,
@@ -15039,27 +15039,27 @@ Qc.p2pkh = XT;
15039
15039
  var eu = {};
15040
15040
  Object.defineProperty(eu, "__esModule", { value: !0 });
15041
15041
  eu.p2sh = void 0;
15042
- const oy = as, YT = mt, Hr = Zt(), Be = bt, Fr = Wt, ay = ph, Ki = Hr.OPS;
15042
+ const oy = as, YT = mt, Hr = Zt(), Ce = bt, Fr = Wt, ay = ph, Ki = Hr.OPS;
15043
15043
  function ZT(e, t) {
15044
15044
  if (!e.address && !e.hash && !e.output && !e.redeem && !e.input)
15045
15045
  throw new TypeError("Not enough data");
15046
- t = Object.assign({ validate: !0 }, t || {}), (0, Be.typeforce)(
15046
+ t = Object.assign({ validate: !0 }, t || {}), (0, Ce.typeforce)(
15047
15047
  {
15048
- network: Be.typeforce.maybe(Be.typeforce.Object),
15049
- address: Be.typeforce.maybe(Be.typeforce.String),
15050
- hash: Be.typeforce.maybe(Be.typeforce.BufferN(20)),
15051
- output: Be.typeforce.maybe(Be.typeforce.BufferN(23)),
15052
- redeem: Be.typeforce.maybe({
15053
- network: Be.typeforce.maybe(Be.typeforce.Object),
15054
- output: Be.typeforce.maybe(Be.typeforce.Buffer),
15055
- input: Be.typeforce.maybe(Be.typeforce.Buffer),
15056
- witness: Be.typeforce.maybe(
15057
- Be.typeforce.arrayOf(Be.typeforce.Buffer)
15048
+ network: Ce.typeforce.maybe(Ce.typeforce.Object),
15049
+ address: Ce.typeforce.maybe(Ce.typeforce.String),
15050
+ hash: Ce.typeforce.maybe(Ce.typeforce.BufferN(20)),
15051
+ output: Ce.typeforce.maybe(Ce.typeforce.BufferN(23)),
15052
+ redeem: Ce.typeforce.maybe({
15053
+ network: Ce.typeforce.maybe(Ce.typeforce.Object),
15054
+ output: Ce.typeforce.maybe(Ce.typeforce.Buffer),
15055
+ input: Ce.typeforce.maybe(Ce.typeforce.Buffer),
15056
+ witness: Ce.typeforce.maybe(
15057
+ Ce.typeforce.arrayOf(Ce.typeforce.Buffer)
15058
15058
  )
15059
15059
  }),
15060
- input: Be.typeforce.maybe(Be.typeforce.Buffer),
15061
- witness: Be.typeforce.maybe(
15062
- Be.typeforce.arrayOf(Be.typeforce.Buffer)
15060
+ input: Ce.typeforce.maybe(Ce.typeforce.Buffer),
15061
+ witness: Ce.typeforce.maybe(
15062
+ Ce.typeforce.arrayOf(Ce.typeforce.Buffer)
15063
15063
  )
15064
15064
  },
15065
15065
  e
@@ -15173,7 +15173,7 @@ function ZT(e, t) {
15173
15173
  }
15174
15174
  c(e.redeem);
15175
15175
  }
15176
- if (e.witness && e.redeem && e.redeem.witness && !(0, Be.stacksEqual)(e.redeem.witness, e.witness))
15176
+ if (e.witness && e.redeem && e.redeem.witness && !(0, Ce.stacksEqual)(e.redeem.witness, e.witness))
15177
15177
  throw new TypeError("Witness and redeem.witness mismatch");
15178
15178
  }
15179
15179
  return Object.assign(n, e);
@@ -22707,19 +22707,19 @@ function xw() {
22707
22707
  if (we === "%" && pe !== "%")
22708
22708
  throw new o("invalid intrinsic syntax, expected opening `%`");
22709
22709
  var xe = [];
22710
- return P(ie, J, function(Ue, Dt, Je, Br) {
22711
- xe[xe.length] = Je ? P(Br, ne, "$1") : Dt || Ue;
22710
+ return P(ie, J, function(Fe, Dt, Je, Br) {
22711
+ xe[xe.length] = Je ? P(Br, ne, "$1") : Dt || Fe;
22712
22712
  }), xe;
22713
22713
  }, ce = function(ie, pe) {
22714
22714
  var we = ie, xe;
22715
22715
  if (O(re, we) && (xe = re[we], we = "%" + xe[0] + "%"), O(W, we)) {
22716
- var Ue = W[we];
22717
- if (Ue === N && (Ue = Q(we)), typeof Ue > "u" && !pe)
22716
+ var Fe = W[we];
22717
+ if (Fe === N && (Fe = Q(we)), typeof Fe > "u" && !pe)
22718
22718
  throw new a("intrinsic " + ie + " exists, but is not available. Please file an issue!");
22719
22719
  return {
22720
22720
  alias: xe,
22721
22721
  name: we,
22722
- value: Ue
22722
+ value: Fe
22723
22723
  };
22724
22724
  }
22725
22725
  throw new o("intrinsic " + ie + " does not exist!");
@@ -22731,7 +22731,7 @@ function xw() {
22731
22731
  throw new a('"allowMissing" argument must be a boolean');
22732
22732
  if (L(/^%?[^%]*%?$/, ie) === null)
22733
22733
  throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
22734
- var we = de(ie), xe = we.length > 0 ? we[0] : "", Ue = ce("%" + xe + "%", pe), Dt = Ue.name, Je = Ue.value, Br = !1, cs = Ue.alias;
22734
+ var we = de(ie), xe = we.length > 0 ? we[0] : "", Fe = ce("%" + xe + "%", pe), Dt = Fe.name, Je = Fe.value, Br = !1, cs = Fe.alias;
22735
22735
  cs && (xe = cs[0], K(we, q([0, 1], cs)));
22736
22736
  for (var G = 1, Cr = !0; G < we.length; G += 1) {
22737
22737
  var wt = we[G], vt = $(wt, 0, 1), Cn = $(wt, -1);
@@ -23338,10 +23338,10 @@ function OP() {
23338
23338
  return m(G, u);
23339
23339
  }
23340
23340
  e.isStringObject = xe;
23341
- function Ue(G) {
23341
+ function Fe(G) {
23342
23342
  return m(G, l);
23343
23343
  }
23344
- e.isBooleanObject = Ue;
23344
+ e.isBooleanObject = Fe;
23345
23345
  function Dt(G) {
23346
23346
  return o && m(G, p);
23347
23347
  }
@@ -23351,7 +23351,7 @@ function OP() {
23351
23351
  }
23352
23352
  e.isSymbolObject = Je;
23353
23353
  function Br(G) {
23354
- return we(G) || xe(G) || Ue(G) || Dt(G) || Je(G);
23354
+ return we(G) || xe(G) || Fe(G) || Dt(G) || Je(G);
23355
23355
  }
23356
23356
  e.isBoxedPrimitive = Br;
23357
23357
  function cs(G) {
@@ -23543,10 +23543,10 @@ function Tw() {
23543
23543
  if (L < 0)
23544
23544
  return j($) ? P.stylize(RegExp.prototype.toString.call($), "regexp") : P.stylize("[Object]", "special");
23545
23545
  P.seen.push($);
23546
- var Ue;
23547
- return pe ? Ue = d(P, $, L, ce, de) : Ue = de.map(function(Dt) {
23546
+ var Fe;
23547
+ return pe ? Fe = d(P, $, L, ce, de) : Fe = de.map(function(Dt) {
23548
23548
  return m(P, $, L, ce, Dt, pe);
23549
- }), P.seen.pop(), g(Ue, ie, we);
23549
+ }), P.seen.pop(), g(Fe, ie, we);
23550
23550
  }
23551
23551
  function l(P, $) {
23552
23552
  if (R($))
@@ -24313,12 +24313,12 @@ class JP extends Cw {
24313
24313
  }
24314
24314
  var $w = (e) => {
24315
24315
  throw TypeError(e);
24316
- }, Sh = (e, t, r) => t.has(e) || $w("Cannot " + r), $e = (e, t, r) => (Sh(e, t, "read from private field"), r ? r.call(e) : t.get(e)), ls = (e, t, r) => t.has(e) ? $w("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Ei = (e, t, r, n) => (Sh(e, t, "write to private field"), t.set(e, r), r), Nw = (e, t, r) => (Sh(e, t, "access private method"), r), QP = (e, t, r, n) => ({
24316
+ }, Sh = (e, t, r) => t.has(e) || $w("Cannot " + r), Ne = (e, t, r) => (Sh(e, t, "read from private field"), r ? r.call(e) : t.get(e)), ls = (e, t, r) => t.has(e) ? $w("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Ei = (e, t, r, n) => (Sh(e, t, "write to private field"), t.set(e, r), r), Nw = (e, t, r) => (Sh(e, t, "access private method"), r), QP = (e, t, r, n) => ({
24317
24317
  set _(s) {
24318
24318
  Ei(e, t, s);
24319
24319
  },
24320
24320
  get _() {
24321
- return $e(e, t, n);
24321
+ return Ne(e, t, n);
24322
24322
  }
24323
24323
  }), Vn, vo, mn, ws, Xo, vs, yc, Mw, Uw;
24324
24324
  function e5(e) {
@@ -24341,15 +24341,15 @@ class r5 {
24341
24341
  async makeRequest(t, r, n) {
24342
24342
  const s = await Nw(this, yc, Mw).call(this);
24343
24343
  return new Promise((i, o) => {
24344
- Ei(this, Vn, $e(this, Vn) + 1), $e(this, vs).set($e(this, Vn), {
24344
+ Ei(this, Vn, Ne(this, Vn) + 1), Ne(this, vs).set(Ne(this, Vn), {
24345
24345
  resolve: i,
24346
24346
  reject: o,
24347
24347
  timeout: setTimeout(() => {
24348
- $e(this, vs).delete($e(this, Vn)), o(new Error(`Request timeout: ${t}`));
24348
+ Ne(this, vs).delete(Ne(this, Vn)), o(new Error(`Request timeout: ${t}`));
24349
24349
  }, this.options.callTimeout)
24350
24350
  }), n == null || n.addEventListener("abort", () => {
24351
- $e(this, vs).delete($e(this, Vn)), o(n.reason);
24352
- }), s.send(JSON.stringify({ jsonrpc: "2.0", id: $e(this, Vn), method: t, params: r }));
24351
+ Ne(this, vs).delete(Ne(this, Vn)), o(n.reason);
24352
+ }), s.send(JSON.stringify({ jsonrpc: "2.0", id: Ne(this, Vn), method: t, params: r }));
24353
24353
  }).then(({ error: i, result: o }) => {
24354
24354
  if (i)
24355
24355
  throw new Rw(i.message, i.code);
@@ -24358,7 +24358,7 @@ class r5 {
24358
24358
  }
24359
24359
  async subscribe(t) {
24360
24360
  const r = new n5(t);
24361
- return $e(this, Xo).add(r), await r.subscribe(this), () => r.unsubscribe(this);
24361
+ return Ne(this, Xo).add(r), await r.subscribe(this), () => r.unsubscribe(this);
24362
24362
  }
24363
24363
  }
24364
24364
  Vn = /* @__PURE__ */ new WeakMap();
@@ -24369,15 +24369,15 @@ Xo = /* @__PURE__ */ new WeakMap();
24369
24369
  vs = /* @__PURE__ */ new WeakMap();
24370
24370
  yc = /* @__PURE__ */ new WeakSet();
24371
24371
  Mw = function() {
24372
- return $e(this, ws) ? $e(this, ws) : (Ei(this, ws, new Promise((e) => {
24372
+ return Ne(this, ws) ? Ne(this, ws) : (Ei(this, ws, new Promise((e) => {
24373
24373
  var t;
24374
- (t = $e(this, mn)) == null || t.close(), Ei(this, mn, new this.options.WebSocketConstructor(this.endpoint)), $e(this, mn).addEventListener("open", () => {
24375
- Ei(this, vo, 0), e($e(this, mn));
24376
- }), $e(this, mn).addEventListener("close", () => {
24377
- QP(this, vo)._++, $e(this, vo) <= this.options.maxReconnects && setTimeout(() => {
24374
+ (t = Ne(this, mn)) == null || t.close(), Ei(this, mn, new this.options.WebSocketConstructor(this.endpoint)), Ne(this, mn).addEventListener("open", () => {
24375
+ Ei(this, vo, 0), e(Ne(this, mn));
24376
+ }), Ne(this, mn).addEventListener("close", () => {
24377
+ QP(this, vo)._++, Ne(this, vo) <= this.options.maxReconnects && setTimeout(() => {
24378
24378
  Nw(this, yc, Uw).call(this);
24379
24379
  }, this.options.reconnectTimeout);
24380
- }), $e(this, mn).addEventListener("message", ({ data: r }) => {
24380
+ }), Ne(this, mn).addEventListener("message", ({ data: r }) => {
24381
24381
  let n;
24382
24382
  try {
24383
24383
  n = JSON.parse(r);
@@ -24385,22 +24385,22 @@ Mw = function() {
24385
24385
  console.error(new Error(`Failed to parse RPC message: ${r}`, { cause: s }));
24386
24386
  return;
24387
24387
  }
24388
- if ("id" in n && n.id != null && $e(this, vs).has(n.id)) {
24389
- const { resolve: s, timeout: i } = $e(this, vs).get(n.id);
24388
+ if ("id" in n && n.id != null && Ne(this, vs).has(n.id)) {
24389
+ const { resolve: s, timeout: i } = Ne(this, vs).get(n.id);
24390
24390
  clearTimeout(i), s(n);
24391
24391
  } else if ("params" in n) {
24392
24392
  const { params: s } = n;
24393
- $e(this, Xo).forEach((i) => {
24393
+ Ne(this, Xo).forEach((i) => {
24394
24394
  i.subscriptionId === s.subscription && s.subscription === i.subscriptionId && i.onMessage(s.result);
24395
24395
  });
24396
24396
  }
24397
24397
  });
24398
- })), $e(this, ws));
24398
+ })), Ne(this, ws));
24399
24399
  };
24400
24400
  Uw = async function() {
24401
24401
  var e;
24402
- return (e = $e(this, mn)) == null || e.close(), Ei(this, ws, null), Promise.allSettled(
24403
- [...$e(this, Xo)].map((t) => t.subscribe(this))
24402
+ return (e = Ne(this, mn)) == null || e.close(), Ei(this, ws, null), Promise.allSettled(
24403
+ [...Ne(this, Xo)].map((t) => t.subscribe(this))
24404
24404
  );
24405
24405
  };
24406
24406
  class n5 {
@@ -26045,7 +26045,7 @@ function e3(e) {
26045
26045
  Some: e
26046
26046
  });
26047
26047
  }
26048
- const Ce = x.bytes(hu).transform({
26048
+ const Re = x.bytes(hu).transform({
26049
26049
  validate: (e) => {
26050
26050
  const t = typeof e == "string" ? e : Bi(e);
26051
26051
  if (!t || !wr(Ee(t)))
@@ -26062,11 +26062,11 @@ const Ce = x.bytes(hu).transform({
26062
26062
  throw new Error("ObjectDigest must be 32 bytes");
26063
26063
  }
26064
26064
  }), rr = x.struct("SuiObjectRef", {
26065
- objectId: Ce,
26065
+ objectId: Re,
26066
26066
  version: x.u64(),
26067
26067
  digest: xr
26068
26068
  }), i1 = x.struct("SharedObjectRef", {
26069
- objectId: Ce,
26069
+ objectId: Re,
26070
26070
  initialSharedVersion: x.u64(),
26071
26071
  mutable: x.bool()
26072
26072
  }), o1 = x.enum("ObjectArg", {
@@ -26074,14 +26074,14 @@ const Ce = x.bytes(hu).transform({
26074
26074
  SharedObject: i1,
26075
26075
  Receiving: rr
26076
26076
  }), Es = x.enum("Owner", {
26077
- AddressOwner: Ce,
26078
- ObjectOwner: Ce,
26077
+ AddressOwner: Re,
26078
+ ObjectOwner: Re,
26079
26079
  Shared: x.struct("Shared", {
26080
26080
  initialSharedVersion: x.u64()
26081
26081
  }),
26082
26082
  Immutable: null,
26083
26083
  ConsensusAddressOwner: x.struct("ConsensusAddressOwner", {
26084
- owner: Ce,
26084
+ owner: Re,
26085
26085
  startVersion: x.u64()
26086
26086
  })
26087
26087
  }), a1 = x.enum("CallArg", {
@@ -26113,7 +26113,7 @@ const Ce = x.bytes(hu).transform({
26113
26113
  Result: x.u16(),
26114
26114
  NestedResult: x.tuple([x.u16(), x.u16()])
26115
26115
  }), c1 = x.struct("ProgrammableMoveCall", {
26116
- package: Ce,
26116
+ package: Re,
26117
26117
  module: x.string(),
26118
26118
  function: x.string(),
26119
26119
  typeArguments: x.vector(kh),
@@ -26156,7 +26156,7 @@ const Ce = x.bytes(hu).transform({
26156
26156
  output: (e) => pt(new Uint8Array(e))
26157
26157
  })
26158
26158
  ),
26159
- dependencies: x.vector(Ce)
26159
+ dependencies: x.vector(Re)
26160
26160
  }),
26161
26161
  // /**
26162
26162
  // * Build a vector of objects using the input arguments.
@@ -26181,8 +26181,8 @@ const Ce = x.bytes(hu).transform({
26181
26181
  output: (e) => pt(new Uint8Array(e))
26182
26182
  })
26183
26183
  ),
26184
- dependencies: x.vector(Ce),
26185
- package: Ce,
26184
+ dependencies: x.vector(Re),
26185
+ package: Re,
26186
26186
  ticket: Vr
26187
26187
  })
26188
26188
  }), f1 = x.struct("ProgrammableTransaction", {
@@ -26197,18 +26197,18 @@ const Ce = x.bytes(hu).transform({
26197
26197
  None: null,
26198
26198
  Epoch: Q5()
26199
26199
  }), h1 = x.struct("StructTag", {
26200
- address: Ce,
26200
+ address: Re,
26201
26201
  module: x.string(),
26202
26202
  name: x.string(),
26203
26203
  typeParams: x.vector(Th)
26204
26204
  }), p1 = x.struct("GasData", {
26205
26205
  payment: x.vector(rr),
26206
- owner: Ce,
26206
+ owner: Re,
26207
26207
  price: x.u64(),
26208
26208
  budget: x.u64()
26209
26209
  }), y1 = x.struct("TransactionDataV1", {
26210
26210
  kind: l1,
26211
- sender: Ce,
26211
+ sender: Re,
26212
26212
  gasData: p1,
26213
26213
  expiration: d1
26214
26214
  }), m1 = x.enum("TransactionData", {
@@ -26268,17 +26268,17 @@ const A1 = x.enum("CompressedSignature", {
26268
26268
  clientDataJson: x.string(),
26269
26269
  userSignature: x.vector(x.u8())
26270
26270
  }), i3 = x.enum("PackageUpgradeError", {
26271
- UnableToFetchPackage: x.struct("UnableToFetchPackage", { packageId: Ce }),
26272
- NotAPackage: x.struct("NotAPackage", { objectId: Ce }),
26271
+ UnableToFetchPackage: x.struct("UnableToFetchPackage", { packageId: Re }),
26272
+ NotAPackage: x.struct("NotAPackage", { objectId: Re }),
26273
26273
  IncompatibleUpgrade: null,
26274
26274
  DigestDoesNotMatch: x.struct("DigestDoesNotMatch", { digest: x.vector(x.u8()) }),
26275
26275
  UnknownUpgradePolicy: x.struct("UnknownUpgradePolicy", { policy: x.u8() }),
26276
26276
  PackageIDDoesNotMatch: x.struct("PackageIDDoesNotMatch", {
26277
- packageId: Ce,
26278
- ticketId: Ce
26277
+ packageId: Re,
26278
+ ticketId: Re
26279
26279
  })
26280
26280
  }), o3 = x.struct("ModuleId", {
26281
- address: Ce,
26281
+ address: Re,
26282
26282
  name: x.string()
26283
26283
  }), Tm = x.struct("MoveLocation", {
26284
26284
  module: o3,
@@ -26317,7 +26317,7 @@ const A1 = x.enum("CompressedSignature", {
26317
26317
  objectSize: x.u64(),
26318
26318
  maxObjectSize: x.u64()
26319
26319
  }),
26320
- CircularObjectOwnership: x.struct("CircularObjectOwnership", { object: Ce }),
26320
+ CircularObjectOwnership: x.struct("CircularObjectOwnership", { object: Re }),
26321
26321
  InsufficientCoinBalance: null,
26322
26322
  CoinBalanceOverflow: null,
26323
26323
  PublishErrorNonZeroAddress: null,
@@ -26361,11 +26361,11 @@ const A1 = x.enum("CompressedSignature", {
26361
26361
  ExecutionCancelledDueToSharedObjectCongestion: x.struct(
26362
26362
  "ExecutionCancelledDueToSharedObjectCongestion",
26363
26363
  {
26364
- congestedObjects: x.vector(Ce)
26364
+ congestedObjects: x.vector(Re)
26365
26365
  }
26366
26366
  ),
26367
26367
  AddressDeniedForCoin: x.struct("AddressDeniedForCoin", {
26368
- address: Ce,
26368
+ address: Re,
26369
26369
  coinType: x.string()
26370
26370
  }),
26371
26371
  CoinTypeGlobalPause: x.struct("CoinTypeGlobalPause", { coinType: x.string() }),
@@ -26385,7 +26385,7 @@ const A1 = x.enum("CompressedSignature", {
26385
26385
  status: k1,
26386
26386
  executedEpoch: x.u64(),
26387
26387
  gasUsed: I1,
26388
- modifiedAtVersions: x.vector(x.tuple([Ce, x.u64()])),
26388
+ modifiedAtVersions: x.vector(x.tuple([Re, x.u64()])),
26389
26389
  sharedObjects: x.vector(rr),
26390
26390
  transactionDigest: xr,
26391
26391
  created: x.vector(x.tuple([rr, Es])),
@@ -26428,8 +26428,8 @@ const A1 = x.enum("CompressedSignature", {
26428
26428
  eventsDigest: x.option(xr),
26429
26429
  dependencies: x.vector(xr),
26430
26430
  lamportVersion: x.u64(),
26431
- changedObjects: x.vector(x.tuple([Ce, p3])),
26432
- unchangedSharedObjects: x.vector(x.tuple([Ce, y3])),
26431
+ changedObjects: x.vector(x.tuple([Re, p3])),
26432
+ unchangedSharedObjects: x.vector(x.tuple([Re, y3])),
26433
26433
  auxDataDigest: x.option(xr)
26434
26434
  }), g3 = x.enum("TransactionEffects", {
26435
26435
  V1: f3,
@@ -26455,7 +26455,7 @@ function Ao(e) {
26455
26455
  return x.string();
26456
26456
  case "id":
26457
26457
  case "address":
26458
- return Ce;
26458
+ return Re;
26459
26459
  }
26460
26460
  const t = e.match(/^(vector|option)<(.+)>$/);
26461
26461
  if (t) {
@@ -26475,7 +26475,7 @@ const he = {
26475
26475
  ULEB128: x.uleb128(),
26476
26476
  Bool: x.bool(),
26477
26477
  String: x.string(),
26478
- Address: Ce,
26478
+ Address: Re,
26479
26479
  AppId: w1,
26480
26480
  Argument: Vr,
26481
26481
  CallArg: a1,
@@ -27059,7 +27059,7 @@ const Di = Ie(
27059
27059
  objectId: Di,
27060
27060
  version: jt,
27061
27061
  digest: ye()
27062
- }), Ne = Ie(
27062
+ }), Me = Ie(
27063
27063
  lt([
27064
27064
  ee({ GasCoin: le(!0) }),
27065
27065
  ee({ Input: Ie(Le(), qe()), type: ft(le("pure")) }),
@@ -27105,25 +27105,25 @@ const Di = Ie(
27105
27105
  function: ye(),
27106
27106
  // snake case in rust
27107
27107
  typeArguments: fe(ye()),
27108
- arguments: fe(Ne),
27108
+ arguments: fe(Me),
27109
27109
  _argumentTypes: ft(ve(fe(_3)))
27110
27110
  }), k3 = ee({
27111
27111
  name: ye(),
27112
- inputs: Jo(ye(), lt([Ne, fe(Ne)])),
27112
+ inputs: Jo(ye(), lt([Me, fe(Me)])),
27113
27113
  data: Jo(ye(), zs())
27114
27114
  }), I3 = Js({
27115
27115
  MoveCall: T3,
27116
27116
  TransferObjects: ee({
27117
- objects: fe(Ne),
27118
- address: Ne
27117
+ objects: fe(Me),
27118
+ address: Me
27119
27119
  }),
27120
27120
  SplitCoins: ee({
27121
- coin: Ne,
27122
- amounts: fe(Ne)
27121
+ coin: Me,
27122
+ amounts: fe(Me)
27123
27123
  }),
27124
27124
  MergeCoins: ee({
27125
- destination: Ne,
27126
- sources: fe(Ne)
27125
+ destination: Me,
27126
+ sources: fe(Me)
27127
27127
  }),
27128
27128
  Publish: ee({
27129
27129
  modules: fe(Vs),
@@ -27131,13 +27131,13 @@ const Di = Ie(
27131
27131
  }),
27132
27132
  MakeMoveVec: ee({
27133
27133
  type: ve(ye()),
27134
- elements: fe(Ne)
27134
+ elements: fe(Me)
27135
27135
  }),
27136
27136
  Upgrade: ee({
27137
27137
  modules: fe(Vs),
27138
27138
  dependencies: fe(Gt),
27139
27139
  package: Gt,
27140
- ticket: Ne
27140
+ ticket: Me
27141
27141
  }),
27142
27142
  $Intent: k3
27143
27143
  }), O1 = Js({
@@ -27196,8 +27196,8 @@ const Di = Ie(
27196
27196
  return {
27197
27197
  $kind: "TransferObjects",
27198
27198
  TransferObjects: {
27199
- objects: e.map((r) => Ve(Ne, r)),
27200
- address: Ve(Ne, t)
27199
+ objects: e.map((r) => Ve(Me, r)),
27200
+ address: Ve(Me, t)
27201
27201
  }
27202
27202
  };
27203
27203
  },
@@ -27205,8 +27205,8 @@ const Di = Ie(
27205
27205
  return {
27206
27206
  $kind: "SplitCoins",
27207
27207
  SplitCoins: {
27208
- coin: Ve(Ne, e),
27209
- amounts: t.map((r) => Ve(Ne, r))
27208
+ coin: Ve(Me, e),
27209
+ amounts: t.map((r) => Ve(Me, r))
27210
27210
  }
27211
27211
  };
27212
27212
  },
@@ -27214,8 +27214,8 @@ const Di = Ie(
27214
27214
  return {
27215
27215
  $kind: "MergeCoins",
27216
27216
  MergeCoins: {
27217
- destination: Ve(Ne, e),
27218
- sources: t.map((r) => Ve(Ne, r))
27217
+ destination: Ve(Me, e),
27218
+ sources: t.map((r) => Ve(Me, r))
27219
27219
  }
27220
27220
  };
27221
27221
  },
@@ -27247,7 +27247,7 @@ const Di = Ie(
27247
27247
  ),
27248
27248
  dependencies: t.map((s) => vn(s)),
27249
27249
  package: r,
27250
- ticket: Ve(Ne, n)
27250
+ ticket: Ve(Me, n)
27251
27251
  }
27252
27252
  };
27253
27253
  },
@@ -27259,7 +27259,7 @@ const Di = Ie(
27259
27259
  $kind: "MakeMoveVec",
27260
27260
  MakeMoveVec: {
27261
27261
  type: e ?? null,
27262
- elements: t.map((r) => Ve(Ne, r))
27262
+ elements: t.map((r) => Ve(Me, r))
27263
27263
  }
27264
27264
  };
27265
27265
  },
@@ -27275,7 +27275,7 @@ const Di = Ie(
27275
27275
  inputs: Object.fromEntries(
27276
27276
  Object.entries(t).map(([n, s]) => [
27277
27277
  n,
27278
- Array.isArray(s) ? s.map((i) => Ve(Ne, i)) : Ve(Ne, s)
27278
+ Array.isArray(s) ? s.map((i) => Ve(Me, i)) : Ve(Me, s)
27279
27279
  ])
27280
27280
  ),
27281
27281
  data: r
@@ -29093,7 +29093,7 @@ function z8(e) {
29093
29093
  }
29094
29094
  var D1 = (e) => {
29095
29095
  throw TypeError(e);
29096
- }, Nh = (e, t, r) => t.has(e) || D1("Cannot " + r), Y = (e, t, r) => (Nh(e, t, "read from private field"), r ? r.call(e) : t.get(e)), jr = (e, t, r) => t.has(e) ? D1("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Oe = (e, t, r, n) => (Nh(e, t, "write to private field"), t.set(e, r), r), tt = (e, t, r) => (Nh(e, t, "access private method"), r), As, Os, gn, Yr, ir, or, Ar, Kn, ae, We, H1, tc, rc, nc, Ec, hd, Mh, z1, V1;
29096
+ }, Nh = (e, t, r) => t.has(e) || D1("Cannot " + r), Y = (e, t, r) => (Nh(e, t, "read from private field"), r ? r.call(e) : t.get(e)), jr = (e, t, r) => t.has(e) ? D1("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Be = (e, t, r, n) => (Nh(e, t, "write to private field"), t.set(e, r), r), tt = (e, t, r) => (Nh(e, t, "access private method"), r), As, Os, gn, Yr, ir, or, Ar, Kn, ae, We, H1, tc, rc, nc, Ec, hd, Mh, z1, V1;
29097
29097
  function dl(e, t = 1 / 0) {
29098
29098
  const r = {
29099
29099
  $kind: "Result",
@@ -29154,7 +29154,7 @@ const W1 = class pd {
29154
29154
  var i, o;
29155
29155
  if (typeof r == "function")
29156
29156
  return this.object(this.add(r));
29157
- if (typeof r == "object" && id(Ne, r))
29157
+ if (typeof r == "object" && id(Me, r))
29158
29158
  return r;
29159
29159
  const n = Nm(r), s = Y(this, ae).inputs.find((a) => n === Nm(a));
29160
29160
  return (i = s == null ? void 0 : s.Object) != null && i.SharedObject && typeof r == "object" && ((o = r.Object) != null && o.SharedObject) && (s.Object.SharedObject.mutable = s.Object.SharedObject.mutable || r.Object.SharedObject.mutable), s ? { $kind: "Input", Input: Y(this, ae).inputs.indexOf(s), type: "object" } : tt(this, We, rc).call(this, "object", typeof r == "string" ? {
@@ -29164,7 +29164,7 @@ const W1 = class pd {
29164
29164
  }
29165
29165
  );
29166
29166
  const t = to();
29167
- Oe(this, ae, new $t()), Oe(this, Os, [...t.buildPlugins.values()]), Oe(this, As, [...t.serializationPlugins.values()]);
29167
+ Be(this, ae, new $t()), Be(this, Os, [...t.buildPlugins.values()]), Be(this, As, [...t.serializationPlugins.values()]);
29168
29168
  }
29169
29169
  /**
29170
29170
  * Converts from a serialize transaction kind (built with `build({ onlyTransactionKind: true })`) to a `Transaction` class.
@@ -29172,9 +29172,9 @@ const W1 = class pd {
29172
29172
  */
29173
29173
  static fromKind(t) {
29174
29174
  const r = new pd();
29175
- return Oe(r, ae, $t.fromKindBytes(
29175
+ return Be(r, ae, $t.fromKindBytes(
29176
29176
  typeof t == "string" ? qt(t) : t
29177
- )), Oe(r, Yr, Y(r, ae).inputs.slice()), Oe(r, ir, Y(r, ae).commands.slice()), Oe(r, or, new Set(Y(r, ir).map((n, s) => s))), r;
29177
+ )), Be(r, Yr, Y(r, ae).inputs.slice()), Be(r, ir, Y(r, ae).commands.slice()), Be(r, or, new Set(Y(r, ir).map((n, s) => s))), r;
29178
29178
  }
29179
29179
  /**
29180
29180
  * Converts from a serialized transaction format to a `Transaction` class.
@@ -29184,9 +29184,9 @@ const W1 = class pd {
29184
29184
  */
29185
29185
  static from(t) {
29186
29186
  const r = new pd();
29187
- return G1(t) ? Oe(r, ae, new $t(t.getData())) : typeof t != "string" || !t.startsWith("{") ? Oe(r, ae, $t.fromBytes(
29187
+ return G1(t) ? Be(r, ae, new $t(t.getData())) : typeof t != "string" || !t.startsWith("{") ? Be(r, ae, $t.fromBytes(
29188
29188
  typeof t == "string" ? qt(t) : t
29189
- )) : Oe(r, ae, $t.restore(JSON.parse(t))), Oe(r, Yr, Y(r, ae).inputs.slice()), Oe(r, ir, Y(r, ae).commands.slice()), Oe(r, or, new Set(Y(r, ir).map((n, s) => s))), r;
29189
+ )) : Be(r, ae, $t.restore(JSON.parse(t))), Be(r, Yr, Y(r, ae).inputs.slice()), Be(r, ir, Y(r, ae).commands.slice()), Be(r, or, new Set(Y(r, ir).map((n, s) => s))), r;
29190
29190
  }
29191
29191
  static registerGlobalSerializationPlugin(t, r) {
29192
29192
  to().serializationPlugins.set(
@@ -29301,7 +29301,7 @@ const W1 = class pd {
29301
29301
  return Y(this, Kn).get(t);
29302
29302
  const r = tt(this, We, H1).call(this), n = t(r);
29303
29303
  if (!(n && typeof n == "object" && "then" in n))
29304
- return Oe(this, or, Y(r, or)), Y(this, Kn).set(t, n), n;
29304
+ return Be(this, or, Y(r, or)), Y(this, Kn).set(t, n), n;
29305
29305
  const s = tt(this, We, tc).call(this, {
29306
29306
  $kind: "$Intent",
29307
29307
  $Intent: {
@@ -29474,7 +29474,7 @@ ae = /* @__PURE__ */ new WeakMap();
29474
29474
  We = /* @__PURE__ */ new WeakSet();
29475
29475
  H1 = function() {
29476
29476
  const e = new W1();
29477
- return Oe(e, ae, Y(this, ae)), Oe(e, As, Y(this, As)), Oe(e, Os, Y(this, Os)), Oe(e, gn, Y(this, gn)), Oe(e, Ar, Y(this, Ar)), Oe(e, or, new Set(Y(this, or))), Oe(e, Kn, Y(this, Kn)), Y(this, Yr).push(Y(e, Yr)), Y(this, ir).push(Y(e, ir)), e;
29477
+ return Be(e, ae, Y(this, ae)), Be(e, As, Y(this, As)), Be(e, Os, Y(this, Os)), Be(e, gn, Y(this, gn)), Be(e, Ar, Y(this, Ar)), Be(e, or, new Set(Y(this, or))), Be(e, Kn, Y(this, Kn)), Y(this, Yr).push(Y(e, Yr)), Y(this, ir).push(Y(e, ir)), e;
29478
29478
  };
29479
29479
  tc = function(e) {
29480
29480
  const t = Y(this, ae).commands.length;
@@ -29503,9 +29503,9 @@ nc = function(e) {
29503
29503
  Ec = function(e) {
29504
29504
  if (typeof e == "function") {
29505
29505
  const t = this.add(e);
29506
- return typeof t == "function" ? tt(this, We, Ec).call(this, t) : Ve(Ne, t);
29506
+ return typeof t == "function" ? tt(this, We, Ec).call(this, t) : Ve(Me, t);
29507
29507
  }
29508
- return Ve(Ne, e);
29508
+ return Ve(Me, e);
29509
29509
  };
29510
29510
  hd = async function(e) {
29511
29511
  if (!e.onlyTransactionKind && !Y(this, ae).sender)
@@ -29531,7 +29531,7 @@ Mh = async function(e, t) {
29531
29531
  throw new Error(`next() was not awaited in TransactionPlugin ${n}`);
29532
29532
  };
29533
29533
  };
29534
- await r(0)(), Oe(this, Yr, Y(this, ae).inputs.slice()), Oe(this, ir, Y(this, ae).commands.slice());
29534
+ await r(0)(), Be(this, Yr, Y(this, ae).inputs.slice()), Be(this, ir, Y(this, ae).commands.slice());
29535
29535
  };
29536
29536
  z1 = async function() {
29537
29537
  for (; Y(this, Ar).size > 0; ) {
@@ -29552,7 +29552,7 @@ V1 = function() {
29552
29552
  return ((c = a.$Intent) == null ? void 0 : c.name) !== "AsyncTransactionThunk";
29553
29553
  }
29554
29554
  );
29555
- Y(this, ae).commands = s, Y(this, ae).inputs = n, Oe(this, ir, s), Oe(this, Yr, n), Oe(this, or, new Set(s.map((a, c) => c)));
29555
+ Y(this, ae).commands = s, Y(this, ae).inputs = n, Be(this, ir, s), Be(this, Yr, n), Be(this, or, new Set(s.map((a, c) => c)));
29556
29556
  function i(a) {
29557
29557
  var u;
29558
29558
  const c = e[a];
@@ -31896,7 +31896,7 @@ export {
31896
31896
  Yd as l,
31897
31897
  Vk as m,
31898
31898
  ge as n,
31899
- Fe as o,
31899
+ Oe as o,
31900
31900
  $O as p,
31901
31901
  qp as q,
31902
31902
  lc as r,