@ape.swap/bonds-sdk 3.0.61 → 3.0.62

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.
package/dist/main.js CHANGED
@@ -17971,6 +17971,7 @@ var types = {};
17971
17971
  ChainId[(ChainId['MONAD_TESTNET'] = 10143)] = 'MONAD_TESTNET';
17972
17972
  ChainId[(ChainId['SOL'] = 7565164)] = 'SOL';
17973
17973
  ChainId[(ChainId['BERACHAIN'] = 80094)] = 'BERACHAIN';
17974
+ ChainId[(ChainId['KATANA_TESTNET'] = 129399)] = 'KATANA_TESTNET';
17974
17975
  })((ChainId = exports.ChainId || (exports.ChainId = {})));
17975
17976
  var LiquidityDex
17976
17977
  ;(function (LiquidityDex) {
@@ -18380,6 +18381,7 @@ var types = {};
18380
18381
  ((_p = {}),
18381
18382
  (_p[LiquidityDex.ShadowExchange] = {
18382
18383
  factory: '0x2dA25E7446A70D7be65fd4c053948BEcAA6374c8',
18384
+ router: '0x1D368773735ee1E678950B7A97bcA2CafB330CDc',
18383
18385
  protocol: Protocols.Solidly,
18384
18386
  }),
18385
18387
  // [LiquidityDex.ShadowExchangeV3]: {
@@ -19060,10 +19062,10 @@ const formatNumberSI = (num, digits = 2) => {
19060
19062
  };
19061
19063
 
19062
19064
  /*
19063
- * bignumber.js v9.1.2
19065
+ * bignumber.js v9.3.0
19064
19066
  * A JavaScript library for arbitrary-precision arithmetic.
19065
19067
  * https://github.com/MikeMcl/bignumber.js
19066
- * Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
19068
+ * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
19067
19069
  * MIT Licensed.
19068
19070
  *
19069
19071
  * BigNumber.prototype methods | BigNumber methods
@@ -19964,7 +19966,7 @@ function clone$2(configObject) {
19964
19966
 
19965
19967
  // xc now represents str converted to baseOut.
19966
19968
 
19967
- // THe index of the rounding digit.
19969
+ // The index of the rounding digit.
19968
19970
  d = e + dp + 1;
19969
19971
 
19970
19972
  // The rounding digit: the digit to the right of the digit that may be rounded up.
@@ -24285,6 +24287,7 @@ bn$1.exports;
24285
24287
  this.words[i] = carry;
24286
24288
  this.length++;
24287
24289
  }
24290
+ this.length = num === 0 ? 1 : this.length;
24288
24291
 
24289
24292
  return isNegNum ? this.ineg() : this;
24290
24293
  };
@@ -25823,9 +25826,9 @@ bn$1.exports;
25823
25826
  } (bn$1));
25824
25827
 
25825
25828
  var bnExports = bn$1.exports;
25826
- var BN$1 = /*@__PURE__*/getDefaultExportFromCjs(bnExports);
25829
+ var _BN = /*@__PURE__*/getDefaultExportFromCjs(bnExports);
25827
25830
 
25828
- const version$j = "logger/5.7.0";
25831
+ const version$j = "logger/5.8.0";
25829
25832
 
25830
25833
  let _permanentCensorErrors = false;
25831
25834
  let _censorErrors = false;
@@ -26176,7 +26179,7 @@ class Logger {
26176
26179
  Logger.errors = ErrorCode;
26177
26180
  Logger.levels = LogLevel;
26178
26181
 
26179
- const version$i = "bytes/5.7.0";
26182
+ const version$i = "bytes/5.8.0";
26180
26183
 
26181
26184
  const logger$o = new Logger(version$i);
26182
26185
  ///////////////////////////////
@@ -26576,9 +26579,9 @@ function splitSignature(signature) {
26576
26579
  return result;
26577
26580
  }
26578
26581
 
26579
- const version$h = "bignumber/5.7.0";
26582
+ const version$h = "bignumber/5.8.0";
26580
26583
 
26581
- var BN = BN$1.BN;
26584
+ var BN = _BN.BN;
26582
26585
  const logger$n = new Logger(version$h);
26583
26586
  const _constructorGuard$3 = {};
26584
26587
  const MAX_SAFE = 0x1fffffffffffff;
@@ -27221,7 +27224,7 @@ class FixedNumber {
27221
27224
  const ONE = FixedNumber.from(1);
27222
27225
  const BUMP = FixedNumber.from("0.5");
27223
27226
 
27224
- const version$g = "properties/5.7.0";
27227
+ const version$g = "properties/5.8.0";
27225
27228
 
27226
27229
  var __awaiter$8 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
27227
27230
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
@@ -27346,7 +27349,7 @@ class Description {
27346
27349
  }
27347
27350
  }
27348
27351
 
27349
- const version$f = "abi/5.7.0";
27352
+ const version$f = "abi/5.8.0";
27350
27353
 
27351
27354
  const logger$k = new Logger(version$f);
27352
27355
  const _constructorGuard$1 = {};
@@ -28999,7 +29002,7 @@ function keccak256(data) {
28999
29002
  return '0x' + sha3.keccak_256(arrayify(data));
29000
29003
  }
29001
29004
 
29002
- const version$e = "rlp/5.7.0";
29005
+ const version$e = "rlp/5.8.0";
29003
29006
 
29004
29007
  const logger$i = new Logger(version$e);
29005
29008
  function arrayifyInteger(value) {
@@ -29116,7 +29119,7 @@ function decode$2(data) {
29116
29119
  return decoded.result;
29117
29120
  }
29118
29121
 
29119
- const version$d = "address/5.7.0";
29122
+ const version$d = "address/5.8.0";
29120
29123
 
29121
29124
  const logger$h = new Logger(version$d);
29122
29125
  function getChecksumAddress(address) {
@@ -29591,7 +29594,7 @@ class NumberCoder extends Coder {
29591
29594
  }
29592
29595
  }
29593
29596
 
29594
- const version$c = "strings/5.7.0";
29597
+ const version$c = "strings/5.8.0";
29595
29598
 
29596
29599
  const logger$f = new Logger(version$c);
29597
29600
  ///////////////////////////////
@@ -29959,7 +29962,7 @@ function id(text) {
29959
29962
  return keccak256(toUtf8Bytes(text));
29960
29963
  }
29961
29964
 
29962
- const version$b = "hash/5.7.0";
29965
+ const version$b = "hash/5.8.0";
29963
29966
 
29964
29967
  function decode$1(textData) {
29965
29968
  textData = atob(textData);
@@ -31630,7 +31633,7 @@ var multicallV2Abi = [
31630
31633
  }
31631
31634
  ];
31632
31635
 
31633
- const version$a = "abstract-provider/5.7.0";
31636
+ const version$a = "abstract-provider/5.8.0";
31634
31637
 
31635
31638
  var __awaiter$6 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
31636
31639
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
@@ -31692,7 +31695,7 @@ class Provider {
31692
31695
  }
31693
31696
  }
31694
31697
 
31695
- const version$9 = "abstract-signer/5.7.0";
31698
+ const version$9 = "abstract-signer/5.8.0";
31696
31699
 
31697
31700
  var __awaiter$5 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
31698
31701
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
@@ -33369,12 +33372,15 @@ utils.encode = utils_1.encode;
33369
33372
  // Represent num in a w-NAF form
33370
33373
  function getNAF(num, w, bits) {
33371
33374
  var naf = new Array(Math.max(num.bitLength(), bits) + 1);
33372
- naf.fill(0);
33375
+ var i;
33376
+ for (i = 0; i < naf.length; i += 1) {
33377
+ naf[i] = 0;
33378
+ }
33373
33379
 
33374
33380
  var ws = 1 << (w + 1);
33375
33381
  var k = num.clone();
33376
33382
 
33377
- for (var i = 0; i < naf.length; i++) {
33383
+ for (i = 0; i < naf.length; i++) {
33378
33384
  var z;
33379
33385
  var mod = k.andln(ws - 1);
33380
33386
  if (k.isOdd()) {
@@ -33468,7 +33474,7 @@ function parseBytes(bytes) {
33468
33474
  utils.parseBytes = parseBytes;
33469
33475
 
33470
33476
  function intFromLE(bytes) {
33471
- return new BN$1(bytes, 'hex', 'le');
33477
+ return new _BN(bytes, 'hex', 'le');
33472
33478
  }
33473
33479
  utils.intFromLE = intFromLE;
33474
33480
  });
@@ -33481,18 +33487,18 @@ var assert$1 = utils_1$1.assert;
33481
33487
 
33482
33488
  function BaseCurve(type, conf) {
33483
33489
  this.type = type;
33484
- this.p = new BN$1(conf.p, 16);
33490
+ this.p = new _BN(conf.p, 16);
33485
33491
 
33486
33492
  // Use Montgomery, when there is no fast reduction for the prime
33487
- this.red = conf.prime ? BN$1.red(conf.prime) : BN$1.mont(this.p);
33493
+ this.red = conf.prime ? _BN.red(conf.prime) : _BN.mont(this.p);
33488
33494
 
33489
33495
  // Useful for many curves
33490
- this.zero = new BN$1(0).toRed(this.red);
33491
- this.one = new BN$1(1).toRed(this.red);
33492
- this.two = new BN$1(2).toRed(this.red);
33496
+ this.zero = new _BN(0).toRed(this.red);
33497
+ this.one = new _BN(1).toRed(this.red);
33498
+ this.two = new _BN(2).toRed(this.red);
33493
33499
 
33494
33500
  // Curve configuration, optional
33495
- this.n = conf.n && new BN$1(conf.n, 16);
33501
+ this.n = conf.n && new _BN(conf.n, 16);
33496
33502
  this.g = conf.g && this.pointFromJSON(conf.g, conf.gRed);
33497
33503
 
33498
33504
  // Temporary arrays
@@ -33892,8 +33898,8 @@ var assert$2 = utils_1$1.assert;
33892
33898
  function ShortCurve(conf) {
33893
33899
  base.call(this, 'short', conf);
33894
33900
 
33895
- this.a = new BN$1(conf.a, 16).toRed(this.red);
33896
- this.b = new BN$1(conf.b, 16).toRed(this.red);
33901
+ this.a = new _BN(conf.a, 16).toRed(this.red);
33902
+ this.b = new _BN(conf.b, 16).toRed(this.red);
33897
33903
  this.tinv = this.two.redInvm();
33898
33904
 
33899
33905
  this.zeroA = this.a.fromRed().cmpn(0) === 0;
@@ -33916,7 +33922,7 @@ ShortCurve.prototype._getEndomorphism = function _getEndomorphism(conf) {
33916
33922
  var beta;
33917
33923
  var lambda;
33918
33924
  if (conf.beta) {
33919
- beta = new BN$1(conf.beta, 16).toRed(this.red);
33925
+ beta = new _BN(conf.beta, 16).toRed(this.red);
33920
33926
  } else {
33921
33927
  var betas = this._getEndoRoots(this.p);
33922
33928
  // Choose the smallest beta
@@ -33924,7 +33930,7 @@ ShortCurve.prototype._getEndomorphism = function _getEndomorphism(conf) {
33924
33930
  beta = beta.toRed(this.red);
33925
33931
  }
33926
33932
  if (conf.lambda) {
33927
- lambda = new BN$1(conf.lambda, 16);
33933
+ lambda = new _BN(conf.lambda, 16);
33928
33934
  } else {
33929
33935
  // Choose the lambda that is matching selected beta
33930
33936
  var lambdas = this._getEndoRoots(this.n);
@@ -33941,8 +33947,8 @@ ShortCurve.prototype._getEndomorphism = function _getEndomorphism(conf) {
33941
33947
  if (conf.basis) {
33942
33948
  basis = conf.basis.map(function(vec) {
33943
33949
  return {
33944
- a: new BN$1(vec.a, 16),
33945
- b: new BN$1(vec.b, 16),
33950
+ a: new _BN(vec.a, 16),
33951
+ b: new _BN(vec.b, 16),
33946
33952
  };
33947
33953
  });
33948
33954
  } else {
@@ -33960,11 +33966,11 @@ ShortCurve.prototype._getEndoRoots = function _getEndoRoots(num) {
33960
33966
  // Find roots of for x^2 + x + 1 in F
33961
33967
  // Root = (-1 +- Sqrt(-3)) / 2
33962
33968
  //
33963
- var red = num === this.p ? this.red : BN$1.mont(num);
33964
- var tinv = new BN$1(2).toRed(red).redInvm();
33969
+ var red = num === this.p ? this.red : _BN.mont(num);
33970
+ var tinv = new _BN(2).toRed(red).redInvm();
33965
33971
  var ntinv = tinv.redNeg();
33966
33972
 
33967
- var s = new BN$1(3).toRed(red).redNeg().redSqrt().redMul(tinv);
33973
+ var s = new _BN(3).toRed(red).redNeg().redSqrt().redMul(tinv);
33968
33974
 
33969
33975
  var l1 = ntinv.redAdd(s).fromRed();
33970
33976
  var l2 = ntinv.redSub(s).fromRed();
@@ -33979,10 +33985,10 @@ ShortCurve.prototype._getEndoBasis = function _getEndoBasis(lambda) {
33979
33985
  // Run EGCD, until r(L + 1) < aprxSqrt
33980
33986
  var u = lambda;
33981
33987
  var v = this.n.clone();
33982
- var x1 = new BN$1(1);
33983
- var y1 = new BN$1(0);
33984
- var x2 = new BN$1(0);
33985
- var y2 = new BN$1(1);
33988
+ var x1 = new _BN(1);
33989
+ var y1 = new _BN(0);
33990
+ var x2 = new _BN(0);
33991
+ var y2 = new _BN(1);
33986
33992
 
33987
33993
  // NOTE: all vectors are roots of: a + b * lambda = 0 (mod n)
33988
33994
  var a0;
@@ -34067,7 +34073,7 @@ ShortCurve.prototype._endoSplit = function _endoSplit(k) {
34067
34073
  };
34068
34074
 
34069
34075
  ShortCurve.prototype.pointFromX = function pointFromX(x, odd) {
34070
- x = new BN$1(x, 16);
34076
+ x = new _BN(x, 16);
34071
34077
  if (!x.red)
34072
34078
  x = x.toRed(this.red);
34073
34079
 
@@ -34137,8 +34143,8 @@ function Point(curve, x, y, isRed) {
34137
34143
  this.y = null;
34138
34144
  this.inf = true;
34139
34145
  } else {
34140
- this.x = new BN$1(x, 16);
34141
- this.y = new BN$1(y, 16);
34146
+ this.x = new _BN(x, 16);
34147
+ this.y = new _BN(y, 16);
34142
34148
  // Force redgomery representation when loading from JSON
34143
34149
  if (isRed) {
34144
34150
  this.x.forceRed(this.curve.red);
@@ -34302,7 +34308,7 @@ Point.prototype.getY = function getY() {
34302
34308
  };
34303
34309
 
34304
34310
  Point.prototype.mul = function mul(k) {
34305
- k = new BN$1(k, 16);
34311
+ k = new _BN(k, 16);
34306
34312
  if (this.isInfinity())
34307
34313
  return this;
34308
34314
  else if (this._hasDoubles(k))
@@ -34374,11 +34380,11 @@ function JPoint(curve, x, y, z) {
34374
34380
  if (x === null && y === null && z === null) {
34375
34381
  this.x = this.curve.one;
34376
34382
  this.y = this.curve.one;
34377
- this.z = new BN$1(0);
34383
+ this.z = new _BN(0);
34378
34384
  } else {
34379
- this.x = new BN$1(x, 16);
34380
- this.y = new BN$1(y, 16);
34381
- this.z = new BN$1(z, 16);
34385
+ this.x = new _BN(x, 16);
34386
+ this.y = new _BN(y, 16);
34387
+ this.z = new _BN(z, 16);
34382
34388
  }
34383
34389
  if (!this.x.red)
34384
34390
  this.x = this.x.toRed(this.curve.red);
@@ -34763,7 +34769,7 @@ JPoint.prototype.trpl = function trpl() {
34763
34769
  };
34764
34770
 
34765
34771
  JPoint.prototype.mul = function mul(k, kbase) {
34766
- k = new BN$1(k, kbase);
34772
+ k = new _BN(k, kbase);
34767
34773
 
34768
34774
  return this.curve._wnafMul(this, k);
34769
34775
  };
@@ -35223,7 +35229,7 @@ KeyPair.prototype.getPrivate = function getPrivate(enc) {
35223
35229
  };
35224
35230
 
35225
35231
  KeyPair.prototype._importPrivate = function _importPrivate(key, enc) {
35226
- this.priv = new BN$1(key, enc || 16);
35232
+ this.priv = new _BN(key, enc || 16);
35227
35233
 
35228
35234
  // Ensure that the priv won't be bigger than n, otherwise we may fail
35229
35235
  // in fixed multiplication method
@@ -35260,8 +35266,8 @@ KeyPair.prototype.sign = function sign(msg, enc, options) {
35260
35266
  return this.ec.sign(msg, this, enc, options);
35261
35267
  };
35262
35268
 
35263
- KeyPair.prototype.verify = function verify(msg, signature) {
35264
- return this.ec.verify(msg, signature, this);
35269
+ KeyPair.prototype.verify = function verify(msg, signature, options) {
35270
+ return this.ec.verify(msg, signature, this, undefined, options);
35265
35271
  };
35266
35272
 
35267
35273
  KeyPair.prototype.inspect = function inspect() {
@@ -35282,8 +35288,8 @@ function Signature(options, enc) {
35282
35288
  return;
35283
35289
 
35284
35290
  assert$4(options.r && options.s, 'Signature without r or s');
35285
- this.r = new BN$1(options.r, 16);
35286
- this.s = new BN$1(options.s, 16);
35291
+ this.r = new _BN(options.r, 16);
35292
+ this.s = new _BN(options.s, 16);
35287
35293
  if (options.recoveryParam === undefined)
35288
35294
  this.recoveryParam = null;
35289
35295
  else
@@ -35307,6 +35313,10 @@ function getLength(buf, p) {
35307
35313
  return false;
35308
35314
  }
35309
35315
 
35316
+ if(buf[p.place] === 0x00) {
35317
+ return false;
35318
+ }
35319
+
35310
35320
  var val = 0;
35311
35321
  for (var i = 0, off = p.place; i < octetLen; i++, off++) {
35312
35322
  val <<= 8;
@@ -35355,6 +35365,9 @@ Signature.prototype._importDER = function _importDER(data, enc) {
35355
35365
  if (rlen === false) {
35356
35366
  return false;
35357
35367
  }
35368
+ if ((data[p.place] & 128) !== 0) {
35369
+ return false;
35370
+ }
35358
35371
  var r = data.slice(p.place, rlen + p.place);
35359
35372
  p.place += rlen;
35360
35373
  if (data[p.place++] !== 0x02) {
@@ -35367,6 +35380,9 @@ Signature.prototype._importDER = function _importDER(data, enc) {
35367
35380
  if (data.length !== slen + p.place) {
35368
35381
  return false;
35369
35382
  }
35383
+ if ((data[p.place] & 128) !== 0) {
35384
+ return false;
35385
+ }
35370
35386
  var s = data.slice(p.place, slen + p.place);
35371
35387
  if (r[0] === 0) {
35372
35388
  if (r[1] & 0x80) {
@@ -35385,8 +35401,8 @@ Signature.prototype._importDER = function _importDER(data, enc) {
35385
35401
  }
35386
35402
  }
35387
35403
 
35388
- this.r = new BN$1(r);
35389
- this.s = new BN$1(s);
35404
+ this.r = new _BN(r);
35405
+ this.s = new _BN(s);
35390
35406
  this.recoveryParam = null;
35391
35407
 
35392
35408
  return true;
@@ -35501,9 +35517,9 @@ EC.prototype.genKeyPair = function genKeyPair(options) {
35501
35517
  });
35502
35518
 
35503
35519
  var bytes = this.n.byteLength();
35504
- var ns2 = this.n.sub(new BN$1(2));
35520
+ var ns2 = this.n.sub(new _BN(2));
35505
35521
  for (;;) {
35506
- var priv = new BN$1(drbg.generate(bytes));
35522
+ var priv = new _BN(drbg.generate(bytes));
35507
35523
  if (priv.cmp(ns2) > 0)
35508
35524
  continue;
35509
35525
 
@@ -35512,8 +35528,27 @@ EC.prototype.genKeyPair = function genKeyPair(options) {
35512
35528
  }
35513
35529
  };
35514
35530
 
35515
- EC.prototype._truncateToN = function _truncateToN(msg, truncOnly) {
35516
- var delta = msg.byteLength() * 8 - this.n.bitLength();
35531
+ EC.prototype._truncateToN = function _truncateToN(msg, truncOnly, bitLength) {
35532
+ var byteLength;
35533
+ if (_BN.isBN(msg) || typeof msg === 'number') {
35534
+ msg = new _BN(msg, 16);
35535
+ byteLength = msg.byteLength();
35536
+ } else if (typeof msg === 'object') {
35537
+ // BN assumes an array-like input and asserts length
35538
+ byteLength = msg.length;
35539
+ msg = new _BN(msg, 16);
35540
+ } else {
35541
+ // BN converts the value to string
35542
+ var str = msg.toString();
35543
+ // HEX encoding
35544
+ byteLength = (str.length + 1) >>> 1;
35545
+ msg = new _BN(str, 16);
35546
+ }
35547
+ // Allow overriding
35548
+ if (typeof bitLength !== 'number') {
35549
+ bitLength = byteLength * 8;
35550
+ }
35551
+ var delta = bitLength - this.n.bitLength();
35517
35552
  if (delta > 0)
35518
35553
  msg = msg.ushrn(delta);
35519
35554
  if (!truncOnly && msg.cmp(this.n) >= 0)
@@ -35530,8 +35565,18 @@ EC.prototype.sign = function sign(msg, key, enc, options) {
35530
35565
  if (!options)
35531
35566
  options = {};
35532
35567
 
35568
+ if (typeof msg !== 'string' && typeof msg !== 'number' && !_BN.isBN(msg)) {
35569
+ assert$5(typeof msg === 'object' && msg && typeof msg.length === 'number',
35570
+ 'Expected message to be an array-like, a hex string, or a BN instance');
35571
+ assert$5((msg.length >>> 0) === msg.length); // non-negative 32-bit integer
35572
+ for (var i = 0; i < msg.length; i++) assert$5((msg[i] & 255) === msg[i]);
35573
+ }
35574
+
35533
35575
  key = this.keyFromPrivate(key, enc);
35534
- msg = this._truncateToN(new BN$1(msg, 16));
35576
+ msg = this._truncateToN(msg, false, options.msgBitLength);
35577
+
35578
+ // Would fail further checks, but let's make the error message clear
35579
+ assert$5(!msg.isNeg(), 'Can not sign a negative message');
35535
35580
 
35536
35581
  // Zero-extend key to provide enough entropy
35537
35582
  var bytes = this.n.byteLength();
@@ -35540,6 +35585,9 @@ EC.prototype.sign = function sign(msg, key, enc, options) {
35540
35585
  // Zero-extend nonce to have the same byte size as N
35541
35586
  var nonce = msg.toArray('be', bytes);
35542
35587
 
35588
+ // Recheck nonce to be bijective to msg
35589
+ assert$5((new _BN(nonce)).eq(msg), 'Can not sign message');
35590
+
35543
35591
  // Instantiate Hmac_DRBG
35544
35592
  var drbg = new hmacDrbg({
35545
35593
  hash: this.hash,
@@ -35550,12 +35598,12 @@ EC.prototype.sign = function sign(msg, key, enc, options) {
35550
35598
  });
35551
35599
 
35552
35600
  // Number of bytes to generate
35553
- var ns1 = this.n.sub(new BN$1(1));
35601
+ var ns1 = this.n.sub(new _BN(1));
35554
35602
 
35555
35603
  for (var iter = 0; ; iter++) {
35556
35604
  var k = options.k ?
35557
35605
  options.k(iter) :
35558
- new BN$1(drbg.generate(this.n.byteLength()));
35606
+ new _BN(drbg.generate(this.n.byteLength()));
35559
35607
  k = this._truncateToN(k, true);
35560
35608
  if (k.cmpn(1) <= 0 || k.cmp(ns1) >= 0)
35561
35609
  continue;
@@ -35587,8 +35635,11 @@ EC.prototype.sign = function sign(msg, key, enc, options) {
35587
35635
  }
35588
35636
  };
35589
35637
 
35590
- EC.prototype.verify = function verify(msg, signature$1, key, enc) {
35591
- msg = this._truncateToN(new BN$1(msg, 16));
35638
+ EC.prototype.verify = function verify(msg, signature$1, key, enc, options) {
35639
+ if (!options)
35640
+ options = {};
35641
+
35642
+ msg = this._truncateToN(msg, false, options.msgBitLength);
35592
35643
  key = this.keyFromPublic(key, enc);
35593
35644
  signature$1 = new signature(signature$1, 'hex');
35594
35645
 
@@ -35632,7 +35683,7 @@ EC.prototype.recoverPubKey = function(msg, signature$1, j, enc) {
35632
35683
  signature$1 = new signature(signature$1, enc);
35633
35684
 
35634
35685
  var n = this.n;
35635
- var e = new BN$1(msg);
35686
+ var e = new _BN(msg);
35636
35687
  var r = signature$1.r;
35637
35688
  var s = signature$1.s;
35638
35689
 
@@ -35680,7 +35731,7 @@ var elliptic_1 = createCommonjsModule(function (module, exports) {
35680
35731
 
35681
35732
  var elliptic = exports;
35682
35733
 
35683
- elliptic.version = /*RicMoo:ethers*/{ version: "6.5.4" }.version;
35734
+ elliptic.version = /*RicMoo:ethers*/{ version: "6.6.1" }.version;
35684
35735
  elliptic.utils = utils_1$1;
35685
35736
  elliptic.rand = /*RicMoo:ethers:require(brorand)*/(function() { throw new Error('unsupported'); });
35686
35737
  elliptic.curve = curve_1;
@@ -35693,7 +35744,7 @@ elliptic.eddsa = /*RicMoo:ethers:require(./elliptic/eddsa)*/(null);
35693
35744
 
35694
35745
  var EC$1 = elliptic_1.ec;
35695
35746
 
35696
- const version$8 = "signing-key/5.7.0";
35747
+ const version$8 = "signing-key/5.8.0";
35697
35748
 
35698
35749
  const logger$8 = new Logger(version$8);
35699
35750
  let _curve = null;
@@ -35764,7 +35815,7 @@ function computePublicKey(key, compressed) {
35764
35815
  return logger$8.throwArgumentError("invalid public or private key", "key", "[REDACTED]");
35765
35816
  }
35766
35817
 
35767
- const version$7 = "transactions/5.7.0";
35818
+ const version$7 = "transactions/5.8.0";
35768
35819
 
35769
35820
  const logger$7 = new Logger(version$7);
35770
35821
  var TransactionTypes;
@@ -37036,7 +37087,7 @@ function sha256(data) {
37036
37087
  return "0x" + (hash.sha256().update(arrayify(data)).digest("hex"));
37037
37088
  }
37038
37089
 
37039
- const version$5 = "networks/5.7.1";
37090
+ const version$5 = "networks/5.8.0";
37040
37091
 
37041
37092
  const logger$5 = new Logger(version$5);
37042
37093
  function isRenetworkable(value) {
@@ -37096,6 +37147,12 @@ function ethDefaultProvider(network) {
37096
37147
  }
37097
37148
  catch (error) { }
37098
37149
  }
37150
+ if (providers.QuickNodeProvider && options.quicknode !== "-") {
37151
+ try {
37152
+ providerList.push(new providers.QuickNodeProvider(network, options.quicknode));
37153
+ }
37154
+ catch (error) { }
37155
+ }
37099
37156
  if (providerList.length === 0) {
37100
37157
  return null;
37101
37158
  }
@@ -37173,9 +37230,15 @@ const networks = {
37173
37230
  kintsugi: { chainId: 1337702, name: "kintsugi" },
37174
37231
  sepolia: {
37175
37232
  chainId: 11155111,
37233
+ ensAddress: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",
37176
37234
  name: "sepolia",
37177
37235
  _defaultProvider: ethDefaultProvider("sepolia")
37178
37236
  },
37237
+ holesky: {
37238
+ chainId: 17000,
37239
+ name: "holesky",
37240
+ _defaultProvider: ethDefaultProvider("holesky")
37241
+ },
37179
37242
  // ETC (See: #351)
37180
37243
  classic: {
37181
37244
  chainId: 61,
@@ -37196,7 +37259,11 @@ const networks = {
37196
37259
  name: "matic",
37197
37260
  _defaultProvider: ethDefaultProvider("matic")
37198
37261
  },
37199
- maticmum: { chainId: 80001, name: "maticmum" },
37262
+ maticmum: {
37263
+ chainId: 80001,
37264
+ name: "maticmum",
37265
+ _defaultProvider: ethDefaultProvider("maticmum")
37266
+ },
37200
37267
  optimism: {
37201
37268
  chainId: 10,
37202
37269
  name: "optimism",
@@ -37204,9 +37271,11 @@ const networks = {
37204
37271
  },
37205
37272
  "optimism-kovan": { chainId: 69, name: "optimism-kovan" },
37206
37273
  "optimism-goerli": { chainId: 420, name: "optimism-goerli" },
37274
+ "optimism-sepolia": { chainId: 11155420, name: "optimism-sepolia" },
37207
37275
  arbitrum: { chainId: 42161, name: "arbitrum" },
37208
37276
  "arbitrum-rinkeby": { chainId: 421611, name: "arbitrum-rinkeby" },
37209
37277
  "arbitrum-goerli": { chainId: 421613, name: "arbitrum-goerli" },
37278
+ "arbitrum-sepolia": { chainId: 421614, name: "arbitrum-sepolia" },
37210
37279
  bnb: { chainId: 56, name: "bnb" },
37211
37280
  bnbt: { chainId: 97, name: "bnbt" },
37212
37281
  };
@@ -37282,7 +37351,7 @@ function getNetwork(network) {
37282
37351
  };
37283
37352
  }
37284
37353
 
37285
- const version$4 = "web/5.7.1";
37354
+ const version$4 = "web/5.8.0";
37286
37355
 
37287
37356
  var __awaiter$3 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
37288
37357
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
@@ -77643,7 +77712,7 @@ const useApproval = (amount, currency, spender, account, chainId) => {
77643
77712
  return [approvalState !== null && approvalState !== void 0 ? approvalState : ApprovalState.NOT_APPROVED, handleApprove];
77644
77713
  };
77645
77714
 
77646
- const version$1 = '2.23.6';
77715
+ const version$1 = '2.28.3';
77647
77716
 
77648
77717
  let errorConfig = {
77649
77718
  getDocsUrl: ({ docsBaseUrl, docsPath = '', docsSlug, }) => docsPath
@@ -1,4 +1,3 @@
1
- import { BigNumber } from 'bignumber.js';
2
1
  import { UserBill } from '../types/yourbonds';
3
2
  import { BondsData } from '../types/bonds';
4
3
  import { BillsConfig } from '@ape.swap/apeswap-lists';
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Ape Bond SDK",
4
4
  "author": "Ape Bond",
5
5
  "license": "MIT",
6
- "version": "3.0.61",
6
+ "version": "3.0.62",
7
7
  "module": "dist/main.js",
8
8
  "type": "module",
9
9
  "types": "dist/main.d.ts",
@@ -57,7 +57,7 @@
57
57
  "yalc": "^1.0.0-pre.53"
58
58
  },
59
59
  "dependencies": {
60
- "@ape.swap/apeswap-lists": "4.3.12",
60
+ "@ape.swap/apeswap-lists": "4.3.13",
61
61
  "@emotion/react": "11.11.4",
62
62
  "bignumber.js": "^9.1.2",
63
63
  "chart.js": "4.2.0",