@fuel-ts/account 0.0.0-rc-2143-20240514195947 → 0.0.0-rc-2143-20240514211533

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.

Potentially problematic release.


This version of @fuel-ts/account might be problematic. Click here for more details.

@@ -64,7 +64,7 @@
64
64
  "../../node_modules/.pnpm/bn.js@5.2.1/node_modules/bn.js/lib/bn.js"(exports, module) {
65
65
  (function(module2, exports2) {
66
66
  "use strict";
67
- function assert2(val, msg) {
67
+ function assert(val, msg) {
68
68
  if (!val)
69
69
  throw new Error(msg || "Assertion failed");
70
70
  }
@@ -134,7 +134,7 @@
134
134
  if (base === "hex") {
135
135
  base = 16;
136
136
  }
137
- assert2(base === (base | 0) && base >= 2 && base <= 36);
137
+ assert(base === (base | 0) && base >= 2 && base <= 36);
138
138
  number2 = number2.toString().replace(/\s+/g, "");
139
139
  var start = 0;
140
140
  if (number2[0] === "-") {
@@ -167,7 +167,7 @@
167
167
  ];
168
168
  this.length = 2;
169
169
  } else {
170
- assert2(number2 < 9007199254740992);
170
+ assert(number2 < 9007199254740992);
171
171
  this.words = [
172
172
  number2 & 67108863,
173
173
  number2 / 67108864 & 67108863,
@@ -180,7 +180,7 @@
180
180
  this._initArray(this.toArray(), base, endian);
181
181
  };
182
182
  BN2.prototype._initArray = function _initArray(number2, base, endian) {
183
- assert2(typeof number2.length === "number");
183
+ assert(typeof number2.length === "number");
184
184
  if (number2.length <= 0) {
185
185
  this.words = [0];
186
186
  this.length = 1;
@@ -227,7 +227,7 @@
227
227
  } else if (c >= 97 && c <= 102) {
228
228
  return c - 87;
229
229
  } else {
230
- assert2(false, "Invalid character in " + string);
230
+ assert(false, "Invalid character in " + string);
231
231
  }
232
232
  }
233
233
  function parseHexByte(string, lowerBound, index) {
@@ -288,7 +288,7 @@
288
288
  } else {
289
289
  b = c;
290
290
  }
291
- assert2(c >= 0 && b < mul, "Invalid character");
291
+ assert(c >= 0 && b < mul, "Invalid character");
292
292
  r += b;
293
293
  }
294
294
  return r;
@@ -548,16 +548,16 @@
548
548
  }
549
549
  return out;
550
550
  }
551
- assert2(false, "Base should be between 2 and 36");
551
+ assert(false, "Base should be between 2 and 36");
552
552
  };
553
- BN2.prototype.toNumber = function toNumber3() {
553
+ BN2.prototype.toNumber = function toNumber2() {
554
554
  var ret2 = this.words[0];
555
555
  if (this.length === 2) {
556
556
  ret2 += this.words[1] * 67108864;
557
557
  } else if (this.length === 3 && this.words[2] === 1) {
558
558
  ret2 += 4503599627370496 + this.words[1] * 67108864;
559
559
  } else if (this.length > 2) {
560
- assert2(false, "Number can only safely store up to 53 bits");
560
+ assert(false, "Number can only safely store up to 53 bits");
561
561
  }
562
562
  return this.negative !== 0 ? -ret2 : ret2;
563
563
  };
@@ -582,8 +582,8 @@
582
582
  this._strip();
583
583
  var byteLength = this.byteLength();
584
584
  var reqLength = length || Math.max(1, byteLength);
585
- assert2(byteLength <= reqLength, "byte array longer than desired length");
586
- assert2(reqLength > 0, "Requested array length <= 0");
585
+ assert(byteLength <= reqLength, "byte array longer than desired length");
586
+ assert(reqLength > 0, "Requested array length <= 0");
587
587
  var res = allocate(ArrayType, reqLength);
588
588
  var postfix = endian === "le" ? "LE" : "BE";
589
589
  this["_toArrayLike" + postfix](res, byteLength);
@@ -731,13 +731,13 @@
731
731
  BN2.prototype.byteLength = function byteLength() {
732
732
  return Math.ceil(this.bitLength() / 8);
733
733
  };
734
- BN2.prototype.toTwos = function toTwos2(width) {
734
+ BN2.prototype.toTwos = function toTwos(width) {
735
735
  if (this.negative !== 0) {
736
736
  return this.abs().inotn(width).iaddn(1);
737
737
  }
738
738
  return this.clone();
739
739
  };
740
- BN2.prototype.fromTwos = function fromTwos2(width) {
740
+ BN2.prototype.fromTwos = function fromTwos(width) {
741
741
  if (this.testn(width - 1)) {
742
742
  return this.notn(width).iaddn(1).ineg();
743
743
  }
@@ -765,7 +765,7 @@
765
765
  return this._strip();
766
766
  };
767
767
  BN2.prototype.ior = function ior(num) {
768
- assert2((this.negative | num.negative) === 0);
768
+ assert((this.negative | num.negative) === 0);
769
769
  return this.iuor(num);
770
770
  };
771
771
  BN2.prototype.or = function or(num) {
@@ -792,7 +792,7 @@
792
792
  return this._strip();
793
793
  };
794
794
  BN2.prototype.iand = function iand(num) {
795
- assert2((this.negative | num.negative) === 0);
795
+ assert((this.negative | num.negative) === 0);
796
796
  return this.iuand(num);
797
797
  };
798
798
  BN2.prototype.and = function and(num) {
@@ -827,7 +827,7 @@
827
827
  return this._strip();
828
828
  };
829
829
  BN2.prototype.ixor = function ixor(num) {
830
- assert2((this.negative | num.negative) === 0);
830
+ assert((this.negative | num.negative) === 0);
831
831
  return this.iuxor(num);
832
832
  };
833
833
  BN2.prototype.xor = function xor(num) {
@@ -841,7 +841,7 @@
841
841
  return num.clone().iuxor(this);
842
842
  };
843
843
  BN2.prototype.inotn = function inotn(width) {
844
- assert2(typeof width === "number" && width >= 0);
844
+ assert(typeof width === "number" && width >= 0);
845
845
  var bytesNeeded = Math.ceil(width / 26) | 0;
846
846
  var bitsLeft = width % 26;
847
847
  this._expand(bytesNeeded);
@@ -860,7 +860,7 @@
860
860
  return this.clone().inotn(width);
861
861
  };
862
862
  BN2.prototype.setn = function setn(bit, val) {
863
- assert2(typeof bit === "number" && bit >= 0);
863
+ assert(typeof bit === "number" && bit >= 0);
864
864
  var off = bit / 26 | 0;
865
865
  var wbit = bit % 26;
866
866
  this._expand(off + 1);
@@ -1726,8 +1726,8 @@
1726
1726
  for (i = 2 * len; i < N; ++i) {
1727
1727
  rws[i] = 0;
1728
1728
  }
1729
- assert2(carry === 0);
1730
- assert2((carry & ~8191) === 0);
1729
+ assert(carry === 0);
1730
+ assert((carry & ~8191) === 0);
1731
1731
  };
1732
1732
  FFTM.prototype.stub = function stub(N) {
1733
1733
  var ph = new Array(N);
@@ -1782,8 +1782,8 @@
1782
1782
  var isNegNum = num < 0;
1783
1783
  if (isNegNum)
1784
1784
  num = -num;
1785
- assert2(typeof num === "number");
1786
- assert2(num < 67108864);
1785
+ assert(typeof num === "number");
1786
+ assert(num < 67108864);
1787
1787
  var carry = 0;
1788
1788
  for (var i = 0; i < this.length; i++) {
1789
1789
  var w = (this.words[i] | 0) * num;
@@ -1827,7 +1827,7 @@
1827
1827
  return res;
1828
1828
  };
1829
1829
  BN2.prototype.iushln = function iushln(bits) {
1830
- assert2(typeof bits === "number" && bits >= 0);
1830
+ assert(typeof bits === "number" && bits >= 0);
1831
1831
  var r = bits % 26;
1832
1832
  var s = (bits - r) / 26;
1833
1833
  var carryMask = 67108863 >>> 26 - r << 26 - r;
@@ -1857,11 +1857,11 @@
1857
1857
  return this._strip();
1858
1858
  };
1859
1859
  BN2.prototype.ishln = function ishln(bits) {
1860
- assert2(this.negative === 0);
1860
+ assert(this.negative === 0);
1861
1861
  return this.iushln(bits);
1862
1862
  };
1863
1863
  BN2.prototype.iushrn = function iushrn(bits, hint, extended) {
1864
- assert2(typeof bits === "number" && bits >= 0);
1864
+ assert(typeof bits === "number" && bits >= 0);
1865
1865
  var h;
1866
1866
  if (hint) {
1867
1867
  h = (hint - hint % 26) / 26;
@@ -1870,7 +1870,7 @@
1870
1870
  }
1871
1871
  var r = bits % 26;
1872
1872
  var s = Math.min((bits - r) / 26, this.length);
1873
- var mask2 = 67108863 ^ 67108863 >>> r << r;
1873
+ var mask = 67108863 ^ 67108863 >>> r << r;
1874
1874
  var maskedWords = extended;
1875
1875
  h -= s;
1876
1876
  h = Math.max(0, h);
@@ -1894,7 +1894,7 @@
1894
1894
  for (i = this.length - 1; i >= 0 && (carry !== 0 || i >= h); i--) {
1895
1895
  var word = this.words[i] | 0;
1896
1896
  this.words[i] = carry << 26 - r | word >>> r;
1897
- carry = word & mask2;
1897
+ carry = word & mask;
1898
1898
  }
1899
1899
  if (maskedWords && carry !== 0) {
1900
1900
  maskedWords.words[maskedWords.length++] = carry;
@@ -1906,7 +1906,7 @@
1906
1906
  return this._strip();
1907
1907
  };
1908
1908
  BN2.prototype.ishrn = function ishrn(bits, hint, extended) {
1909
- assert2(this.negative === 0);
1909
+ assert(this.negative === 0);
1910
1910
  return this.iushrn(bits, hint, extended);
1911
1911
  };
1912
1912
  BN2.prototype.shln = function shln(bits) {
@@ -1922,7 +1922,7 @@
1922
1922
  return this.clone().iushrn(bits);
1923
1923
  };
1924
1924
  BN2.prototype.testn = function testn(bit) {
1925
- assert2(typeof bit === "number" && bit >= 0);
1925
+ assert(typeof bit === "number" && bit >= 0);
1926
1926
  var r = bit % 26;
1927
1927
  var s = (bit - r) / 26;
1928
1928
  var q = 1 << r;
@@ -1932,10 +1932,10 @@
1932
1932
  return !!(w & q);
1933
1933
  };
1934
1934
  BN2.prototype.imaskn = function imaskn(bits) {
1935
- assert2(typeof bits === "number" && bits >= 0);
1935
+ assert(typeof bits === "number" && bits >= 0);
1936
1936
  var r = bits % 26;
1937
1937
  var s = (bits - r) / 26;
1938
- assert2(this.negative === 0, "imaskn works only with positive numbers");
1938
+ assert(this.negative === 0, "imaskn works only with positive numbers");
1939
1939
  if (this.length <= s) {
1940
1940
  return this;
1941
1941
  }
@@ -1944,8 +1944,8 @@
1944
1944
  }
1945
1945
  this.length = Math.min(s, this.length);
1946
1946
  if (r !== 0) {
1947
- var mask2 = 67108863 ^ 67108863 >>> r << r;
1948
- this.words[this.length - 1] &= mask2;
1947
+ var mask = 67108863 ^ 67108863 >>> r << r;
1948
+ this.words[this.length - 1] &= mask;
1949
1949
  }
1950
1950
  return this._strip();
1951
1951
  };
@@ -1953,8 +1953,8 @@
1953
1953
  return this.clone().imaskn(bits);
1954
1954
  };
1955
1955
  BN2.prototype.iaddn = function iaddn(num) {
1956
- assert2(typeof num === "number");
1957
- assert2(num < 67108864);
1956
+ assert(typeof num === "number");
1957
+ assert(num < 67108864);
1958
1958
  if (num < 0)
1959
1959
  return this.isubn(-num);
1960
1960
  if (this.negative !== 0) {
@@ -1984,8 +1984,8 @@
1984
1984
  return this;
1985
1985
  };
1986
1986
  BN2.prototype.isubn = function isubn(num) {
1987
- assert2(typeof num === "number");
1988
- assert2(num < 67108864);
1987
+ assert(typeof num === "number");
1988
+ assert(num < 67108864);
1989
1989
  if (num < 0)
1990
1990
  return this.iaddn(-num);
1991
1991
  if (this.negative !== 0) {
@@ -2039,7 +2039,7 @@
2039
2039
  }
2040
2040
  if (carry === 0)
2041
2041
  return this._strip();
2042
- assert2(carry === -1);
2042
+ assert(carry === -1);
2043
2043
  carry = 0;
2044
2044
  for (i = 0; i < this.length; i++) {
2045
2045
  w = -(this.words[i] | 0) + carry;
@@ -2107,7 +2107,7 @@
2107
2107
  };
2108
2108
  };
2109
2109
  BN2.prototype.divmod = function divmod(num, mode, positive) {
2110
- assert2(!num.isZero());
2110
+ assert(!num.isZero());
2111
2111
  if (this.isZero()) {
2112
2112
  return {
2113
2113
  div: new BN2(0),
@@ -2205,7 +2205,7 @@
2205
2205
  var isNegNum = num < 0;
2206
2206
  if (isNegNum)
2207
2207
  num = -num;
2208
- assert2(num <= 67108863);
2208
+ assert(num <= 67108863);
2209
2209
  var p = (1 << 26) % num;
2210
2210
  var acc = 0;
2211
2211
  for (var i = this.length - 1; i >= 0; i--) {
@@ -2220,7 +2220,7 @@
2220
2220
  var isNegNum = num < 0;
2221
2221
  if (isNegNum)
2222
2222
  num = -num;
2223
- assert2(num <= 67108863);
2223
+ assert(num <= 67108863);
2224
2224
  var carry = 0;
2225
2225
  for (var i = this.length - 1; i >= 0; i--) {
2226
2226
  var w = (this.words[i] | 0) + carry * 67108864;
@@ -2234,8 +2234,8 @@
2234
2234
  return this.clone().idivn(num);
2235
2235
  };
2236
2236
  BN2.prototype.egcd = function egcd(p) {
2237
- assert2(p.negative === 0);
2238
- assert2(!p.isZero());
2237
+ assert(p.negative === 0);
2238
+ assert(!p.isZero());
2239
2239
  var x = this;
2240
2240
  var y = p.clone();
2241
2241
  if (x.negative !== 0) {
@@ -2299,8 +2299,8 @@
2299
2299
  };
2300
2300
  };
2301
2301
  BN2.prototype._invmp = function _invmp(p) {
2302
- assert2(p.negative === 0);
2303
- assert2(!p.isZero());
2302
+ assert(p.negative === 0);
2303
+ assert(!p.isZero());
2304
2304
  var a = this;
2305
2305
  var b = p.clone();
2306
2306
  if (a.negative !== 0) {
@@ -2398,7 +2398,7 @@
2398
2398
  return this.words[0] & num;
2399
2399
  };
2400
2400
  BN2.prototype.bincn = function bincn(bit) {
2401
- assert2(typeof bit === "number");
2401
+ assert(typeof bit === "number");
2402
2402
  var r = bit % 26;
2403
2403
  var s = (bit - r) / 26;
2404
2404
  var q = 1 << r;
@@ -2438,7 +2438,7 @@
2438
2438
  if (negative) {
2439
2439
  num = -num;
2440
2440
  }
2441
- assert2(num <= 67108863, "Number is too big");
2441
+ assert(num <= 67108863, "Number is too big");
2442
2442
  var w = this.words[0] | 0;
2443
2443
  res = w === num ? 0 : w < num ? -1 : 1;
2444
2444
  }
@@ -2510,12 +2510,12 @@
2510
2510
  return new Red(num);
2511
2511
  };
2512
2512
  BN2.prototype.toRed = function toRed(ctx) {
2513
- assert2(!this.red, "Already a number in reduction context");
2514
- assert2(this.negative === 0, "red works only with positives");
2513
+ assert(!this.red, "Already a number in reduction context");
2514
+ assert(this.negative === 0, "red works only with positives");
2515
2515
  return ctx.convertTo(this)._forceRed(ctx);
2516
2516
  };
2517
2517
  BN2.prototype.fromRed = function fromRed() {
2518
- assert2(this.red, "fromRed works only with numbers in reduction context");
2518
+ assert(this.red, "fromRed works only with numbers in reduction context");
2519
2519
  return this.red.convertFrom(this);
2520
2520
  };
2521
2521
  BN2.prototype._forceRed = function _forceRed(ctx) {
@@ -2523,66 +2523,66 @@
2523
2523
  return this;
2524
2524
  };
2525
2525
  BN2.prototype.forceRed = function forceRed(ctx) {
2526
- assert2(!this.red, "Already a number in reduction context");
2526
+ assert(!this.red, "Already a number in reduction context");
2527
2527
  return this._forceRed(ctx);
2528
2528
  };
2529
2529
  BN2.prototype.redAdd = function redAdd(num) {
2530
- assert2(this.red, "redAdd works only with red numbers");
2530
+ assert(this.red, "redAdd works only with red numbers");
2531
2531
  return this.red.add(this, num);
2532
2532
  };
2533
2533
  BN2.prototype.redIAdd = function redIAdd(num) {
2534
- assert2(this.red, "redIAdd works only with red numbers");
2534
+ assert(this.red, "redIAdd works only with red numbers");
2535
2535
  return this.red.iadd(this, num);
2536
2536
  };
2537
2537
  BN2.prototype.redSub = function redSub(num) {
2538
- assert2(this.red, "redSub works only with red numbers");
2538
+ assert(this.red, "redSub works only with red numbers");
2539
2539
  return this.red.sub(this, num);
2540
2540
  };
2541
2541
  BN2.prototype.redISub = function redISub(num) {
2542
- assert2(this.red, "redISub works only with red numbers");
2542
+ assert(this.red, "redISub works only with red numbers");
2543
2543
  return this.red.isub(this, num);
2544
2544
  };
2545
2545
  BN2.prototype.redShl = function redShl(num) {
2546
- assert2(this.red, "redShl works only with red numbers");
2546
+ assert(this.red, "redShl works only with red numbers");
2547
2547
  return this.red.shl(this, num);
2548
2548
  };
2549
2549
  BN2.prototype.redMul = function redMul(num) {
2550
- assert2(this.red, "redMul works only with red numbers");
2550
+ assert(this.red, "redMul works only with red numbers");
2551
2551
  this.red._verify2(this, num);
2552
2552
  return this.red.mul(this, num);
2553
2553
  };
2554
2554
  BN2.prototype.redIMul = function redIMul(num) {
2555
- assert2(this.red, "redMul works only with red numbers");
2555
+ assert(this.red, "redMul works only with red numbers");
2556
2556
  this.red._verify2(this, num);
2557
2557
  return this.red.imul(this, num);
2558
2558
  };
2559
2559
  BN2.prototype.redSqr = function redSqr() {
2560
- assert2(this.red, "redSqr works only with red numbers");
2560
+ assert(this.red, "redSqr works only with red numbers");
2561
2561
  this.red._verify1(this);
2562
2562
  return this.red.sqr(this);
2563
2563
  };
2564
2564
  BN2.prototype.redISqr = function redISqr() {
2565
- assert2(this.red, "redISqr works only with red numbers");
2565
+ assert(this.red, "redISqr works only with red numbers");
2566
2566
  this.red._verify1(this);
2567
2567
  return this.red.isqr(this);
2568
2568
  };
2569
2569
  BN2.prototype.redSqrt = function redSqrt() {
2570
- assert2(this.red, "redSqrt works only with red numbers");
2570
+ assert(this.red, "redSqrt works only with red numbers");
2571
2571
  this.red._verify1(this);
2572
2572
  return this.red.sqrt(this);
2573
2573
  };
2574
2574
  BN2.prototype.redInvm = function redInvm() {
2575
- assert2(this.red, "redInvm works only with red numbers");
2575
+ assert(this.red, "redInvm works only with red numbers");
2576
2576
  this.red._verify1(this);
2577
2577
  return this.red.invm(this);
2578
2578
  };
2579
2579
  BN2.prototype.redNeg = function redNeg() {
2580
- assert2(this.red, "redNeg works only with red numbers");
2580
+ assert(this.red, "redNeg works only with red numbers");
2581
2581
  this.red._verify1(this);
2582
2582
  return this.red.neg(this);
2583
2583
  };
2584
2584
  BN2.prototype.redPow = function redPow(num) {
2585
- assert2(this.red && !num.red, "redPow(normalNum)");
2585
+ assert(this.red && !num.red, "redPow(normalNum)");
2586
2586
  this.red._verify1(this);
2587
2587
  return this.red.pow(this, num);
2588
2588
  };
@@ -2643,7 +2643,7 @@
2643
2643
  }
2644
2644
  inherits(K256, MPrime);
2645
2645
  K256.prototype.split = function split2(input, output2) {
2646
- var mask2 = 4194303;
2646
+ var mask = 4194303;
2647
2647
  var outLen = Math.min(input.length, 9);
2648
2648
  for (var i = 0; i < outLen; i++) {
2649
2649
  output2.words[i] = input.words[i];
@@ -2655,10 +2655,10 @@
2655
2655
  return;
2656
2656
  }
2657
2657
  var prev = input.words[9];
2658
- output2.words[output2.length++] = prev & mask2;
2658
+ output2.words[output2.length++] = prev & mask;
2659
2659
  for (i = 10; i < input.length; i++) {
2660
2660
  var next = input.words[i] | 0;
2661
- input.words[i - 10] = (next & mask2) << 4 | prev >>> 22;
2661
+ input.words[i - 10] = (next & mask) << 4 | prev >>> 22;
2662
2662
  prev = next;
2663
2663
  }
2664
2664
  prev >>>= 22;
@@ -2750,18 +2750,18 @@
2750
2750
  this.m = prime.p;
2751
2751
  this.prime = prime;
2752
2752
  } else {
2753
- assert2(m.gtn(1), "modulus must be greater than 1");
2753
+ assert(m.gtn(1), "modulus must be greater than 1");
2754
2754
  this.m = m;
2755
2755
  this.prime = null;
2756
2756
  }
2757
2757
  }
2758
2758
  Red.prototype._verify1 = function _verify1(a) {
2759
- assert2(a.negative === 0, "red works only with positives");
2760
- assert2(a.red, "red works only with red numbers");
2759
+ assert(a.negative === 0, "red works only with positives");
2760
+ assert(a.red, "red works only with red numbers");
2761
2761
  };
2762
2762
  Red.prototype._verify2 = function _verify2(a, b) {
2763
- assert2((a.negative | b.negative) === 0, "red works only with positives");
2764
- assert2(
2763
+ assert((a.negative | b.negative) === 0, "red works only with positives");
2764
+ assert(
2765
2765
  a.red && a.red === b.red,
2766
2766
  "red works only with red numbers"
2767
2767
  );
@@ -2832,7 +2832,7 @@
2832
2832
  if (a.isZero())
2833
2833
  return a.clone();
2834
2834
  var mod3 = this.m.andln(3);
2835
- assert2(mod3 % 2 === 1);
2835
+ assert(mod3 % 2 === 1);
2836
2836
  if (mod3 === 3) {
2837
2837
  var pow3 = this.m.add(new BN2(1)).iushrn(2);
2838
2838
  return this.pow(a, pow3);
@@ -2843,7 +2843,7 @@
2843
2843
  s++;
2844
2844
  q.iushrn(1);
2845
2845
  }
2846
- assert2(!q.isZero());
2846
+ assert(!q.isZero());
2847
2847
  var one = new BN2(1).toRed(this);
2848
2848
  var nOne = one.redNeg();
2849
2849
  var lpow = this.m.subn(1).iushrn(1);
@@ -2861,7 +2861,7 @@
2861
2861
  for (var i = 0; tmp.cmp(one) !== 0; i++) {
2862
2862
  tmp = tmp.redSqr();
2863
2863
  }
2864
- assert2(i < m);
2864
+ assert(i < m);
2865
2865
  var b = this.pow(c, new BN2(1).iushln(m - i - 1));
2866
2866
  r = r.redMul(b);
2867
2867
  c = b.redSqr();
@@ -29814,10 +29814,10 @@ spurious results.`);
29814
29814
  return 3;
29815
29815
  }
29816
29816
  if ("TERM_PROGRAM" in env) {
29817
- const version2 = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
29817
+ const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
29818
29818
  switch (env.TERM_PROGRAM) {
29819
29819
  case "iTerm.app":
29820
- return version2 >= 3 ? 3 : 2;
29820
+ return version >= 3 ? 3 : 2;
29821
29821
  case "Apple_Terminal":
29822
29822
  return 2;
29823
29823
  }
@@ -32062,7 +32062,7 @@ spurious results.`);
32062
32062
  return callback(err, result);
32063
32063
  });
32064
32064
  };
32065
- var concat3 = doLimit(concatLimit, Infinity);
32065
+ var concat2 = doLimit(concatLimit, Infinity);
32066
32066
  var concatSeries = doLimit(concatLimit, 1);
32067
32067
  var constant = function() {
32068
32068
  var values = slice(arguments);
@@ -32706,7 +32706,7 @@ spurious results.`);
32706
32706
  autoInject,
32707
32707
  cargo,
32708
32708
  compose: compose2,
32709
- concat: concat3,
32709
+ concat: concat2,
32710
32710
  concatLimit,
32711
32711
  concatSeries,
32712
32712
  constant,
@@ -32808,7 +32808,7 @@ spurious results.`);
32808
32808
  exports2.autoInject = autoInject;
32809
32809
  exports2.cargo = cargo;
32810
32810
  exports2.compose = compose2;
32811
- exports2.concat = concat3;
32811
+ exports2.concat = concat2;
32812
32812
  exports2.concatLimit = concatLimit;
32813
32813
  exports2.concatSeries = concatSeries;
32814
32814
  exports2.constant = constant;
@@ -33489,11 +33489,11 @@ spurious results.`);
33489
33489
  debugTestPort("entered testPort(): trying", options.host, "port", options.port);
33490
33490
  function onListen() {
33491
33491
  debugTestPort("done w/ testPort(): OK", options.host, "port", options.port);
33492
- options.server.removeListener("error", onError);
33492
+ options.server.removeListener("error", onError2);
33493
33493
  options.server.close();
33494
33494
  callback(null, options.port);
33495
33495
  }
33496
- function onError(err) {
33496
+ function onError2(err) {
33497
33497
  debugTestPort("done w/ testPort(): failed", options.host, "w/ port", options.port, "with error", err.code);
33498
33498
  options.server.removeListener("listening", onListen);
33499
33499
  if (!(err.code == "EADDRINUSE" || err.code == "EACCES")) {
@@ -33509,7 +33509,7 @@ spurious results.`);
33509
33509
  server: options.server
33510
33510
  }, callback);
33511
33511
  }
33512
- options.server.once("error", onError);
33512
+ options.server.once("error", onError2);
33513
33513
  options.server.once("listening", onListen);
33514
33514
  if (options.host) {
33515
33515
  options.server.listen(options.port, options.host);
@@ -34655,8 +34655,8 @@ spurious results.`);
34655
34655
  FUELS: "0.85.0"
34656
34656
  };
34657
34657
  }
34658
- function parseVersion(version2) {
34659
- const [major, minor, patch] = version2.split(".").map((v) => parseInt(v, 10));
34658
+ function parseVersion(version) {
34659
+ const [major, minor, patch] = version.split(".").map((v) => parseInt(v, 10));
34660
34660
  return { major, minor, patch };
34661
34661
  }
34662
34662
  function versionDiffs(version1, version2) {
@@ -35961,6 +35961,123 @@ This unreleased fuel-core build may include features and updates not yet support
35961
35961
  }
35962
35962
  return hexlify(bytes2.slice(start == null ? 0 : start, end == null ? bytes2.length : end));
35963
35963
  }
35964
+ function toUtf8Bytes(stri, form = true) {
35965
+ let str = stri;
35966
+ if (form) {
35967
+ str = stri.normalize("NFC");
35968
+ }
35969
+ const result = [];
35970
+ for (let i = 0; i < str.length; i += 1) {
35971
+ const c = str.charCodeAt(i);
35972
+ if (c < 128) {
35973
+ result.push(c);
35974
+ } else if (c < 2048) {
35975
+ result.push(c >> 6 | 192);
35976
+ result.push(c & 63 | 128);
35977
+ } else if ((c & 64512) === 55296) {
35978
+ i += 1;
35979
+ const c2 = str.charCodeAt(i);
35980
+ if (i >= str.length || (c2 & 64512) !== 56320) {
35981
+ throw new FuelError(
35982
+ ErrorCode.INVALID_INPUT_PARAMETERS,
35983
+ "Invalid UTF-8 in the input string."
35984
+ );
35985
+ }
35986
+ const pair = 65536 + ((c & 1023) << 10) + (c2 & 1023);
35987
+ result.push(pair >> 18 | 240);
35988
+ result.push(pair >> 12 & 63 | 128);
35989
+ result.push(pair >> 6 & 63 | 128);
35990
+ result.push(pair & 63 | 128);
35991
+ } else {
35992
+ result.push(c >> 12 | 224);
35993
+ result.push(c >> 6 & 63 | 128);
35994
+ result.push(c & 63 | 128);
35995
+ }
35996
+ }
35997
+ return new Uint8Array(result);
35998
+ }
35999
+ function onError(reason, offset, bytes2, output2, badCodepoint) {
36000
+ console.log(`invalid codepoint at offset ${offset}; ${reason}, bytes: ${bytes2}`);
36001
+ return offset;
36002
+ }
36003
+ function helper(codePoints) {
36004
+ return codePoints.map((codePoint) => {
36005
+ if (codePoint <= 65535) {
36006
+ return String.fromCharCode(codePoint);
36007
+ }
36008
+ codePoint -= 65536;
36009
+ return String.fromCharCode(
36010
+ (codePoint >> 10 & 1023) + 55296,
36011
+ (codePoint & 1023) + 56320
36012
+ );
36013
+ }).join("");
36014
+ }
36015
+ function getUtf8CodePoints(_bytes) {
36016
+ const bytes2 = arrayify(_bytes, "bytes");
36017
+ const result = [];
36018
+ let i = 0;
36019
+ while (i < bytes2.length) {
36020
+ const c = bytes2[i++];
36021
+ if (c >> 7 === 0) {
36022
+ result.push(c);
36023
+ continue;
36024
+ }
36025
+ let extraLength = null;
36026
+ let overlongMask = null;
36027
+ if ((c & 224) === 192) {
36028
+ extraLength = 1;
36029
+ overlongMask = 127;
36030
+ } else if ((c & 240) === 224) {
36031
+ extraLength = 2;
36032
+ overlongMask = 2047;
36033
+ } else if ((c & 248) === 240) {
36034
+ extraLength = 3;
36035
+ overlongMask = 65535;
36036
+ } else {
36037
+ if ((c & 192) === 128) {
36038
+ i += onError("UNEXPECTED_CONTINUE", i - 1, bytes2, result);
36039
+ } else {
36040
+ i += onError("BAD_PREFIX", i - 1, bytes2, result);
36041
+ }
36042
+ continue;
36043
+ }
36044
+ if (i - 1 + extraLength >= bytes2.length) {
36045
+ i += onError("OVERRUN", i - 1, bytes2, result);
36046
+ continue;
36047
+ }
36048
+ let res = c & (1 << 8 - extraLength - 1) - 1;
36049
+ for (let j = 0; j < extraLength; j++) {
36050
+ const nextChar = bytes2[i];
36051
+ if ((nextChar & 192) !== 128) {
36052
+ i += onError("MISSING_CONTINUE", i, bytes2, result);
36053
+ res = null;
36054
+ break;
36055
+ }
36056
+ res = res << 6 | nextChar & 63;
36057
+ i++;
36058
+ }
36059
+ if (res === null) {
36060
+ continue;
36061
+ }
36062
+ if (res > 1114111) {
36063
+ i += onError("OUT_OF_RANGE", i - 1 - extraLength, bytes2, result, res);
36064
+ continue;
36065
+ }
36066
+ if (res >= 55296 && res <= 57343) {
36067
+ i += onError("UTF16_SURROGATE", i - 1 - extraLength, bytes2, result, res);
36068
+ continue;
36069
+ }
36070
+ if (res <= overlongMask) {
36071
+ i += onError("OVERLONG", i - 1 - extraLength, bytes2, result, res);
36072
+ continue;
36073
+ }
36074
+ result.push(res);
36075
+ }
36076
+ return result;
36077
+ }
36078
+ function toUtf8String(bytes2) {
36079
+ return helper(getUtf8CodePoints(bytes2));
36080
+ }
35964
36081
 
35965
36082
  // ../../node_modules/.pnpm/@noble+hashes@1.3.3/node_modules/@noble/hashes/esm/ripemd160.js
35966
36083
  var Rho = /* @__PURE__ */ new Uint8Array([7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8]);
@@ -36072,13 +36189,13 @@ This unreleased fuel-core build may include features and updates not yet support
36072
36189
  };
36073
36190
  var keccak256 = (data) => keccak_256(data);
36074
36191
  var locked = false;
36075
- var helper = (data) => ripemd160(data);
36076
- var ripemd = helper;
36192
+ var helper2 = (data) => ripemd160(data);
36193
+ var ripemd = helper2;
36077
36194
  function ripemd1602(_data) {
36078
36195
  const data = arrayify(_data, "data");
36079
36196
  return ripemd(data);
36080
36197
  }
36081
- ripemd1602._ = helper;
36198
+ ripemd1602._ = helper2;
36082
36199
  ripemd1602.lock = () => {
36083
36200
  locked = true;
36084
36201
  };
@@ -36700,316 +36817,6 @@ This unreleased fuel-core build may include features and updates not yet support
36700
36817
  return coinQuantities;
36701
36818
  };
36702
36819
 
36703
- // ../../node_modules/.pnpm/ethers@6.7.1/node_modules/ethers/lib.esm/_version.js
36704
- var version = "6.7.1";
36705
-
36706
- // ../../node_modules/.pnpm/ethers@6.7.1/node_modules/ethers/lib.esm/utils/properties.js
36707
- function checkType(value, type3, name) {
36708
- const types = type3.split("|").map((t) => t.trim());
36709
- for (let i = 0; i < types.length; i++) {
36710
- switch (type3) {
36711
- case "any":
36712
- return;
36713
- case "bigint":
36714
- case "boolean":
36715
- case "number":
36716
- case "string":
36717
- if (typeof value === type3) {
36718
- return;
36719
- }
36720
- }
36721
- }
36722
- const error = new Error(`invalid value for type ${type3}`);
36723
- error.code = "INVALID_ARGUMENT";
36724
- error.argument = `value.${name}`;
36725
- error.value = value;
36726
- throw error;
36727
- }
36728
- function defineProperties(target, values, types) {
36729
- for (let key in values) {
36730
- let value = values[key];
36731
- const type3 = types ? types[key] : null;
36732
- if (type3) {
36733
- checkType(value, type3, key);
36734
- }
36735
- Object.defineProperty(target, key, { enumerable: true, value, writable: false });
36736
- }
36737
- }
36738
-
36739
- // ../../node_modules/.pnpm/ethers@6.7.1/node_modules/ethers/lib.esm/utils/errors.js
36740
- function stringify(value) {
36741
- if (value == null) {
36742
- return "null";
36743
- }
36744
- if (Array.isArray(value)) {
36745
- return "[ " + value.map(stringify).join(", ") + " ]";
36746
- }
36747
- if (value instanceof Uint8Array) {
36748
- const HEX = "0123456789abcdef";
36749
- let result = "0x";
36750
- for (let i = 0; i < value.length; i++) {
36751
- result += HEX[value[i] >> 4];
36752
- result += HEX[value[i] & 15];
36753
- }
36754
- return result;
36755
- }
36756
- if (typeof value === "object" && typeof value.toJSON === "function") {
36757
- return stringify(value.toJSON());
36758
- }
36759
- switch (typeof value) {
36760
- case "boolean":
36761
- case "symbol":
36762
- return value.toString();
36763
- case "bigint":
36764
- return BigInt(value).toString();
36765
- case "number":
36766
- return value.toString();
36767
- case "string":
36768
- return JSON.stringify(value);
36769
- case "object": {
36770
- const keys = Object.keys(value);
36771
- keys.sort();
36772
- return "{ " + keys.map((k) => `${stringify(k)}: ${stringify(value[k])}`).join(", ") + " }";
36773
- }
36774
- }
36775
- return `[ COULD NOT SERIALIZE ]`;
36776
- }
36777
- function makeError(message, code, info) {
36778
- {
36779
- const details = [];
36780
- if (info) {
36781
- if ("message" in info || "code" in info || "name" in info) {
36782
- throw new Error(`value will overwrite populated values: ${stringify(info)}`);
36783
- }
36784
- for (const key in info) {
36785
- const value = info[key];
36786
- details.push(key + "=" + stringify(value));
36787
- }
36788
- }
36789
- details.push(`code=${code}`);
36790
- details.push(`version=${version}`);
36791
- if (details.length) {
36792
- message += " (" + details.join(", ") + ")";
36793
- }
36794
- }
36795
- let error;
36796
- switch (code) {
36797
- case "INVALID_ARGUMENT":
36798
- error = new TypeError(message);
36799
- break;
36800
- case "NUMERIC_FAULT":
36801
- case "BUFFER_OVERRUN":
36802
- error = new RangeError(message);
36803
- break;
36804
- default:
36805
- error = new Error(message);
36806
- }
36807
- defineProperties(error, { code });
36808
- if (info) {
36809
- Object.assign(error, info);
36810
- }
36811
- return error;
36812
- }
36813
- function assert(check, message, code, info) {
36814
- if (!check) {
36815
- throw makeError(message, code, info);
36816
- }
36817
- }
36818
- function assertArgument(check, message, name, value) {
36819
- assert(check, message, "INVALID_ARGUMENT", { argument: name, value });
36820
- }
36821
- var _normalizeForms = ["NFD", "NFC", "NFKD", "NFKC"].reduce((accum, form) => {
36822
- try {
36823
- if ("test".normalize(form) !== "test") {
36824
- throw new Error("bad");
36825
- }
36826
- ;
36827
- if (form === "NFD") {
36828
- const check = String.fromCharCode(233).normalize("NFD");
36829
- const expected = String.fromCharCode(101, 769);
36830
- if (check !== expected) {
36831
- throw new Error("broken");
36832
- }
36833
- }
36834
- accum.push(form);
36835
- } catch (error) {
36836
- }
36837
- return accum;
36838
- }, []);
36839
- function assertNormalize(form) {
36840
- assert(_normalizeForms.indexOf(form) >= 0, "platform missing String.prototype.normalize", "UNSUPPORTED_OPERATION", {
36841
- operation: "String.prototype.normalize",
36842
- info: { form }
36843
- });
36844
- }
36845
-
36846
- // ../../node_modules/.pnpm/ethers@6.7.1/node_modules/ethers/lib.esm/utils/data.js
36847
- function _getBytes(value, name, copy) {
36848
- if (value instanceof Uint8Array) {
36849
- if (copy) {
36850
- return new Uint8Array(value);
36851
- }
36852
- return value;
36853
- }
36854
- if (typeof value === "string" && value.match(/^0x([0-9a-f][0-9a-f])*$/i)) {
36855
- const result = new Uint8Array((value.length - 2) / 2);
36856
- let offset = 2;
36857
- for (let i = 0; i < result.length; i++) {
36858
- result[i] = parseInt(value.substring(offset, offset + 2), 16);
36859
- offset += 2;
36860
- }
36861
- return result;
36862
- }
36863
- assertArgument(false, "invalid BytesLike value", name || "value", value);
36864
- }
36865
- function getBytes(value, name) {
36866
- return _getBytes(value, name, false);
36867
- }
36868
-
36869
- // ../../node_modules/.pnpm/ethers@6.7.1/node_modules/ethers/lib.esm/utils/utf8.js
36870
- function errorFunc(reason, offset, bytes2, output2, badCodepoint) {
36871
- assertArgument(false, `invalid codepoint at offset ${offset}; ${reason}`, "bytes", bytes2);
36872
- }
36873
- function ignoreFunc(reason, offset, bytes2, output2, badCodepoint) {
36874
- if (reason === "BAD_PREFIX" || reason === "UNEXPECTED_CONTINUE") {
36875
- let i = 0;
36876
- for (let o = offset + 1; o < bytes2.length; o++) {
36877
- if (bytes2[o] >> 6 !== 2) {
36878
- break;
36879
- }
36880
- i++;
36881
- }
36882
- return i;
36883
- }
36884
- if (reason === "OVERRUN") {
36885
- return bytes2.length - offset - 1;
36886
- }
36887
- return 0;
36888
- }
36889
- function replaceFunc(reason, offset, bytes2, output2, badCodepoint) {
36890
- if (reason === "OVERLONG") {
36891
- assertArgument(typeof badCodepoint === "number", "invalid bad code point for replacement", "badCodepoint", badCodepoint);
36892
- output2.push(badCodepoint);
36893
- return 0;
36894
- }
36895
- output2.push(65533);
36896
- return ignoreFunc(reason, offset, bytes2, output2, badCodepoint);
36897
- }
36898
- var Utf8ErrorFuncs = Object.freeze({
36899
- error: errorFunc,
36900
- ignore: ignoreFunc,
36901
- replace: replaceFunc
36902
- });
36903
- function getUtf8CodePoints(_bytes, onError) {
36904
- if (onError == null) {
36905
- onError = Utf8ErrorFuncs.error;
36906
- }
36907
- const bytes2 = getBytes(_bytes, "bytes");
36908
- const result = [];
36909
- let i = 0;
36910
- while (i < bytes2.length) {
36911
- const c = bytes2[i++];
36912
- if (c >> 7 === 0) {
36913
- result.push(c);
36914
- continue;
36915
- }
36916
- let extraLength = null;
36917
- let overlongMask = null;
36918
- if ((c & 224) === 192) {
36919
- extraLength = 1;
36920
- overlongMask = 127;
36921
- } else if ((c & 240) === 224) {
36922
- extraLength = 2;
36923
- overlongMask = 2047;
36924
- } else if ((c & 248) === 240) {
36925
- extraLength = 3;
36926
- overlongMask = 65535;
36927
- } else {
36928
- if ((c & 192) === 128) {
36929
- i += onError("UNEXPECTED_CONTINUE", i - 1, bytes2, result);
36930
- } else {
36931
- i += onError("BAD_PREFIX", i - 1, bytes2, result);
36932
- }
36933
- continue;
36934
- }
36935
- if (i - 1 + extraLength >= bytes2.length) {
36936
- i += onError("OVERRUN", i - 1, bytes2, result);
36937
- continue;
36938
- }
36939
- let res = c & (1 << 8 - extraLength - 1) - 1;
36940
- for (let j = 0; j < extraLength; j++) {
36941
- let nextChar = bytes2[i];
36942
- if ((nextChar & 192) != 128) {
36943
- i += onError("MISSING_CONTINUE", i, bytes2, result);
36944
- res = null;
36945
- break;
36946
- }
36947
- ;
36948
- res = res << 6 | nextChar & 63;
36949
- i++;
36950
- }
36951
- if (res === null) {
36952
- continue;
36953
- }
36954
- if (res > 1114111) {
36955
- i += onError("OUT_OF_RANGE", i - 1 - extraLength, bytes2, result, res);
36956
- continue;
36957
- }
36958
- if (res >= 55296 && res <= 57343) {
36959
- i += onError("UTF16_SURROGATE", i - 1 - extraLength, bytes2, result, res);
36960
- continue;
36961
- }
36962
- if (res <= overlongMask) {
36963
- i += onError("OVERLONG", i - 1 - extraLength, bytes2, result, res);
36964
- continue;
36965
- }
36966
- result.push(res);
36967
- }
36968
- return result;
36969
- }
36970
- function toUtf8Bytes(str, form) {
36971
- if (form != null) {
36972
- assertNormalize(form);
36973
- str = str.normalize(form);
36974
- }
36975
- let result = [];
36976
- for (let i = 0; i < str.length; i++) {
36977
- const c = str.charCodeAt(i);
36978
- if (c < 128) {
36979
- result.push(c);
36980
- } else if (c < 2048) {
36981
- result.push(c >> 6 | 192);
36982
- result.push(c & 63 | 128);
36983
- } else if ((c & 64512) == 55296) {
36984
- i++;
36985
- const c2 = str.charCodeAt(i);
36986
- assertArgument(i < str.length && (c2 & 64512) === 56320, "invalid surrogate pair", "str", str);
36987
- const pair = 65536 + ((c & 1023) << 10) + (c2 & 1023);
36988
- result.push(pair >> 18 | 240);
36989
- result.push(pair >> 12 & 63 | 128);
36990
- result.push(pair >> 6 & 63 | 128);
36991
- result.push(pair & 63 | 128);
36992
- } else {
36993
- result.push(c >> 12 | 224);
36994
- result.push(c >> 6 & 63 | 128);
36995
- result.push(c & 63 | 128);
36996
- }
36997
- }
36998
- return new Uint8Array(result);
36999
- }
37000
- function _toUtf8String(codePoints) {
37001
- return codePoints.map((codePoint) => {
37002
- if (codePoint <= 65535) {
37003
- return String.fromCharCode(codePoint);
37004
- }
37005
- codePoint -= 65536;
37006
- return String.fromCharCode((codePoint >> 10 & 1023) + 55296, (codePoint & 1023) + 56320);
37007
- }).join("");
37008
- }
37009
- function toUtf8String(bytes2, onError) {
37010
- return _toUtf8String(getUtf8CodePoints(bytes2, onError));
37011
- }
37012
-
37013
36820
  // ../abi-coder/dist/index.mjs
37014
36821
  var __defProp4 = Object.defineProperty;
37015
36822
  var __defNormalProp4 = (obj, key, value) => key in obj ? __defProp4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -38451,9 +38258,9 @@ This unreleased fuel-core build may include features and updates not yet support
38451
38258
  const offsetAndLength = offset + WORD_SIZE;
38452
38259
  const lengthBytes = data.slice(offset, offsetAndLength);
38453
38260
  const length = bn(new BigNumberCoder("u64").decode(lengthBytes, 0)[0]).toNumber();
38454
- const dataLength2 = length * this.coder.encodedLength;
38455
- const dataBytes = data.slice(offsetAndLength, offsetAndLength + dataLength2);
38456
- if (!this.#isOptionVec && dataBytes.length !== dataLength2) {
38261
+ const dataLength = length * this.coder.encodedLength;
38262
+ const dataBytes = data.slice(offsetAndLength, offsetAndLength + dataLength);
38263
+ if (!this.#isOptionVec && dataBytes.length !== dataLength) {
38457
38264
  throw new FuelError(ErrorCode.DECODE_ERROR, `Invalid vec byte data size.`);
38458
38265
  }
38459
38266
  let newOffset = offsetAndLength;
@@ -38977,8 +38784,8 @@ This unreleased fuel-core build may include features and updates not yet support
38977
38784
  }
38978
38785
  static encodeData(messageData) {
38979
38786
  const bytes2 = arrayify(messageData || "0x");
38980
- const dataLength2 = bytes2.length;
38981
- return new ByteArrayCoder(dataLength2).encode(bytes2);
38787
+ const dataLength = bytes2.length;
38788
+ return new ByteArrayCoder(dataLength).encode(bytes2);
38982
38789
  }
38983
38790
  encode(value) {
38984
38791
  const parts = [];
@@ -39001,8 +38808,8 @@ This unreleased fuel-core build may include features and updates not yet support
39001
38808
  }
39002
38809
  static decodeData(messageData) {
39003
38810
  const bytes2 = arrayify(messageData);
39004
- const dataLength2 = bytes2.length;
39005
- const [data] = new ByteArrayCoder(dataLength2).decode(bytes2, 0);
38811
+ const dataLength = bytes2.length;
38812
+ const [data] = new ByteArrayCoder(dataLength).decode(bytes2, 0);
39006
38813
  return arrayify(data);
39007
38814
  }
39008
38815
  decode(data, offset) {
@@ -39021,12 +38828,12 @@ This unreleased fuel-core build may include features and updates not yet support
39021
38828
  [decoded, o] = new BigNumberCoder("u64").decode(data, o);
39022
38829
  const predicateGasUsed = decoded;
39023
38830
  [decoded, o] = new NumberCoder("u32").decode(data, o);
39024
- const dataLength2 = decoded;
38831
+ const dataLength = decoded;
39025
38832
  [decoded, o] = new BigNumberCoder("u64").decode(data, o);
39026
38833
  const predicateLength = decoded;
39027
38834
  [decoded, o] = new BigNumberCoder("u64").decode(data, o);
39028
38835
  const predicateDataLength = decoded;
39029
- [decoded, o] = new ByteArrayCoder(dataLength2).decode(data, o);
38836
+ [decoded, o] = new ByteArrayCoder(dataLength).decode(data, o);
39030
38837
  const messageData = decoded;
39031
38838
  [decoded, o] = new ByteArrayCoder(predicateLength.toNumber()).decode(data, o);
39032
38839
  const predicate = decoded;
@@ -39041,7 +38848,7 @@ This unreleased fuel-core build may include features and updates not yet support
39041
38848
  witnessIndex,
39042
38849
  nonce,
39043
38850
  predicateGasUsed,
39044
- dataLength: dataLength2,
38851
+ dataLength,
39045
38852
  predicateLength,
39046
38853
  predicateDataLength,
39047
38854
  data: messageData,
@@ -39655,12 +39462,12 @@ This unreleased fuel-core build may include features and updates not yet support
39655
39462
  let decoded;
39656
39463
  let o = offset;
39657
39464
  [decoded, o] = new NumberCoder("u32").decode(data, o);
39658
- const dataLength2 = decoded;
39659
- [decoded, o] = new ByteArrayCoder(dataLength2).decode(data, o);
39465
+ const dataLength = decoded;
39466
+ [decoded, o] = new ByteArrayCoder(dataLength).decode(data, o);
39660
39467
  const witnessData = decoded;
39661
39468
  return [
39662
39469
  {
39663
- dataLength: dataLength2,
39470
+ dataLength,
39664
39471
  data: witnessData
39665
39472
  },
39666
39473
  o
@@ -45081,7 +44888,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
45081
44888
  }
45082
44889
  return { errorMessage, reason };
45083
44890
  };
45084
- var stringify2 = (obj) => JSON.stringify(obj, null, 2);
44891
+ var stringify = (obj) => JSON.stringify(obj, null, 2);
45085
44892
  var assembleRevertError = (receipts, logs) => {
45086
44893
  let errorMessage = "The transaction reverted with an unknown reason.";
45087
44894
  const revertReceipt = receipts.find(({ type: type3 }) => type3 === ReceiptType.Revert);
@@ -45091,17 +44898,17 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
45091
44898
  switch (reasonHex) {
45092
44899
  case FAILED_REQUIRE_SIGNAL: {
45093
44900
  reason = "require";
45094
- errorMessage = `The transaction reverted because a "require" statement has thrown ${logs.length ? stringify2(logs[0]) : "an error."}.`;
44901
+ errorMessage = `The transaction reverted because a "require" statement has thrown ${logs.length ? stringify(logs[0]) : "an error."}.`;
45095
44902
  break;
45096
44903
  }
45097
44904
  case FAILED_ASSERT_EQ_SIGNAL: {
45098
- const sufix = logs.length >= 2 ? ` comparing ${stringify2(logs[1])} and ${stringify2(logs[0])}.` : ".";
44905
+ const sufix = logs.length >= 2 ? ` comparing ${stringify(logs[1])} and ${stringify(logs[0])}.` : ".";
45099
44906
  reason = "assert_eq";
45100
44907
  errorMessage = `The transaction reverted because of an "assert_eq" statement${sufix}`;
45101
44908
  break;
45102
44909
  }
45103
44910
  case FAILED_ASSERT_NE_SIGNAL: {
45104
- const sufix = logs.length >= 2 ? ` comparing ${stringify2(logs[1])} and ${stringify2(logs[0])}.` : ".";
44911
+ const sufix = logs.length >= 2 ? ` comparing ${stringify(logs[1])} and ${stringify(logs[0])}.` : ".";
45105
44912
  reason = "assert_ne";
45106
44913
  errorMessage = `The transaction reverted because of an "assert_ne" statement${sufix}`;
45107
44914
  break;
@@ -47032,13 +46839,13 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
47032
46839
  gasCosts,
47033
46840
  baseAssetId,
47034
46841
  chainId,
47035
- version: version2
46842
+ version
47036
46843
  } = consensusParameters;
47037
46844
  return {
47038
46845
  name,
47039
46846
  baseChainHeight: bn(daHeight),
47040
46847
  consensusParameters: {
47041
- version: version2,
46848
+ version,
47042
46849
  chainId: bn(chainId),
47043
46850
  baseAssetId,
47044
46851
  feeParameters: {
@@ -49043,12 +48850,12 @@ Supported fuel-core version: ${supportedVersion}.`
49043
48850
  const { windows, windowSize } = opts(W);
49044
48851
  let p = c.ZERO;
49045
48852
  let f2 = c.BASE;
49046
- const mask2 = BigInt(2 ** W - 1);
48853
+ const mask = BigInt(2 ** W - 1);
49047
48854
  const maxNumber = 2 ** W;
49048
48855
  const shiftBy = BigInt(W);
49049
48856
  for (let window2 = 0; window2 < windows; window2++) {
49050
48857
  const offset = window2 * windowSize;
49051
- let wbits = Number(n & mask2);
48858
+ let wbits = Number(n & mask);
49052
48859
  n >>= shiftBy;
49053
48860
  if (wbits > windowSize) {
49054
48861
  wbits -= maxNumber;
@@ -52383,38 +52190,6 @@ Supported fuel-core version: ${supportedVersion}.`
52383
52190
  ];
52384
52191
 
52385
52192
  // src/mnemonic/utils.ts
52386
- function toUtf8Bytes2(stri) {
52387
- const str = stri.normalize("NFKD");
52388
- const result = [];
52389
- for (let i = 0; i < str.length; i += 1) {
52390
- const c = str.charCodeAt(i);
52391
- if (c < 128) {
52392
- result.push(c);
52393
- } else if (c < 2048) {
52394
- result.push(c >> 6 | 192);
52395
- result.push(c & 63 | 128);
52396
- } else if ((c & 64512) === 55296) {
52397
- i += 1;
52398
- const c2 = str.charCodeAt(i);
52399
- if (i >= str.length || (c2 & 64512) !== 56320) {
52400
- throw new FuelError(
52401
- ErrorCode.INVALID_INPUT_PARAMETERS,
52402
- "Invalid UTF-8 in the input string."
52403
- );
52404
- }
52405
- const pair = 65536 + ((c & 1023) << 10) + (c2 & 1023);
52406
- result.push(pair >> 18 | 240);
52407
- result.push(pair >> 12 & 63 | 128);
52408
- result.push(pair >> 6 & 63 | 128);
52409
- result.push(pair & 63 | 128);
52410
- } else {
52411
- result.push(c >> 12 | 224);
52412
- result.push(c >> 6 & 63 | 128);
52413
- result.push(c & 63 | 128);
52414
- }
52415
- }
52416
- return Uint8Array.from(result);
52417
- }
52418
52193
  function getLowerMask(bits) {
52419
52194
  return (1 << bits) - 1;
52420
52195
  }
@@ -52487,7 +52262,7 @@ Supported fuel-core version: ${supportedVersion}.`
52487
52262
  }
52488
52263
 
52489
52264
  // src/mnemonic/mnemonic.ts
52490
- var MasterSecret = toUtf8Bytes2("Bitcoin seed");
52265
+ var MasterSecret = toUtf8Bytes("Bitcoin seed");
52491
52266
  var MainnetPRV = "0x0488ade4";
52492
52267
  var TestnetPRV = "0x04358394";
52493
52268
  var MNEMONIC_SIZES = [12, 15, 18, 21, 24];
@@ -52571,8 +52346,8 @@ Supported fuel-core version: ${supportedVersion}.`
52571
52346
  */
52572
52347
  static mnemonicToSeed(phrase, passphrase = "") {
52573
52348
  assertMnemonic(getWords(phrase));
52574
- const phraseBytes = toUtf8Bytes2(getPhrase(phrase));
52575
- const salt = toUtf8Bytes2(`mnemonic${passphrase}`);
52349
+ const phraseBytes = toUtf8Bytes(getPhrase(phrase));
52350
+ const salt = toUtf8Bytes(`mnemonic${passphrase}`);
52576
52351
  return pbkdf222(phraseBytes, salt, 2048, 64, "sha512");
52577
52352
  }
52578
52353
  /**