@0xsquid/react-hooks 8.12.1-beta-arc.1 → 8.13.1-beta.0

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.
@@ -1631,7 +1631,7 @@ var _setCacheAdd = setCacheAdd$1;
1631
1631
  * @name has
1632
1632
  * @memberOf SetCache
1633
1633
  * @param {*} value The value to search for.
1634
- * @returns {number} Returns `true` if `value` is found, else `false`.
1634
+ * @returns {boolean} Returns `true` if `value` is found, else `false`.
1635
1635
  */
1636
1636
 
1637
1637
  function setCacheHas$1(value) {
@@ -10351,16 +10351,16 @@ bn.exports;
10351
10351
  var w = this.words[i];
10352
10352
  var word = (((w << off) | carry) & 0xffffff).toString(16);
10353
10353
  carry = (w >>> (24 - off)) & 0xffffff;
10354
- if (carry !== 0 || i !== this.length - 1) {
10355
- out = zeros[6 - word.length] + word + out;
10356
- } else {
10357
- out = word + out;
10358
- }
10359
10354
  off += 2;
10360
10355
  if (off >= 26) {
10361
10356
  off -= 26;
10362
10357
  i--;
10363
10358
  }
10359
+ if (carry !== 0 || i !== this.length - 1) {
10360
+ out = zeros[6 - word.length] + word + out;
10361
+ } else {
10362
+ out = word + out;
10363
+ }
10364
10364
  }
10365
10365
  if (carry !== 0) {
10366
10366
  out = carry.toString(16) + out;
@@ -10727,6 +10727,12 @@ bn.exports;
10727
10727
  // Handle the residue
10728
10728
  if (bitsLeft > 0) {
10729
10729
  this.words[i] = ~this.words[i] & (0x3ffffff >> (26 - bitsLeft));
10730
+ i++;
10731
+ }
10732
+
10733
+ // Clear words above the requested width so the result stays below 2 ** width
10734
+ for (; i < this.length; i++) {
10735
+ this.words[i] = 0;
10730
10736
  }
10731
10737
 
10732
10738
  // And remove leading zeroes
@@ -11820,6 +11826,10 @@ bn.exports;
11820
11826
  this.words[i] = carry;
11821
11827
  this.length++;
11822
11828
  }
11829
+ if (num === 0) {
11830
+ this.length = 1;
11831
+ this._normSign();
11832
+ }
11823
11833
 
11824
11834
  return this;
11825
11835
  };
@@ -12025,6 +12035,11 @@ bn.exports;
12025
12035
  this.words[this.length - 1] &= mask;
12026
12036
  }
12027
12037
 
12038
+ if (this.length === 0) {
12039
+ this.words[0] = 0;
12040
+ this.length = 1;
12041
+ }
12042
+
12028
12043
  return this.strip();
12029
12044
  };
12030
12045
 
@@ -12351,17 +12366,19 @@ bn.exports;
12351
12366
  // Fast case - exact division
12352
12367
  if (dm.mod.isZero()) return dm.div;
12353
12368
 
12354
- var mod = dm.div.negative !== 0 ? dm.mod.isub(num) : dm.mod;
12369
+ var mod = dm.mod.abs();
12355
12370
 
12356
- var half = num.ushrn(1);
12357
- var r2 = num.andln(1);
12371
+ var half = num.abs().iushrn(1);
12372
+ var r2 = num.words[0] & 1;
12358
12373
  var cmp = mod.cmp(half);
12359
12374
 
12360
12375
  // Round down
12361
12376
  if (cmp < 0 || r2 === 1 && cmp === 0) return dm.div;
12362
12377
 
12363
- // Round up
12364
- return dm.div.negative !== 0 ? dm.div.isubn(1) : dm.div.iaddn(1);
12378
+ // Round up, away from zero
12379
+ var up = new BN(1);
12380
+ up.negative = this.negative ^ num.negative;
12381
+ return dm.div.iadd(up);
12365
12382
  };
12366
12383
 
12367
12384
  BN.prototype.modn = function modn (num) {
@@ -23682,7 +23699,7 @@ const filterViewableTokens = (tokens, config, direction) => {
23682
23699
  };
23683
23700
  const getSecretNetworkBalances = async (chainData, cosmosAddress, squidTokens, keplrTypeWallet) => {
23684
23701
  const squidSecretTokens = squidTokens.filter((t) => t.chainId === CHAIN_IDS.SECRET);
23685
- const { fetchAllSecretBalances } = await Promise.resolve().then(function () { return require('./secretService-C6GiPeC8.js'); });
23702
+ const { fetchAllSecretBalances } = await Promise.resolve().then(function () { return require('./secretService-C8zVh8hn.js'); });
23686
23703
  return fetchAllSecretBalances(chainData, cosmosAddress, squidSecretTokens, keplrTypeWallet);
23687
23704
  };
23688
23705
  function getTokenAssetsKey(token) {
@@ -28109,7 +28126,7 @@ function useStellarWallets() {
28109
28126
  try {
28110
28127
  const { allowAllModules: initializeAllModules } = await import('@creit.tech/stellar-wallets-kit');
28111
28128
  const { LedgerModule } = await import('@creit.tech/stellar-wallets-kit/modules/ledger.module.mjs');
28112
- const { formatStellarWallet } = await Promise.resolve().then(function () { return require('./stellarService.client-DkBWS3eX.js'); });
28129
+ const { formatStellarWallet } = await Promise.resolve().then(function () { return require('./stellarService.client-DE2oaaTW.js'); });
28113
28130
  const modules = [...initializeAllModules(), new LedgerModule()];
28114
28131
  const promises = modules.map(async (module) => {
28115
28132
  const isAvailable = await module.isAvailable();
@@ -31556,7 +31573,7 @@ function hederaWalletConnect(parameters) {
31556
31573
  const optionalChains = config.chains.map((x) => x.id);
31557
31574
  if (!optionalChains.length)
31558
31575
  return;
31559
- const { EthereumProvider } = await Promise.resolve().then(function () { return require('./index.es-CnV3EYrQ.js'); });
31576
+ const { EthereumProvider } = await Promise.resolve().then(function () { return require('./index.es-CoocBNVs.js'); });
31560
31577
  const rawProvider = await EthereumProvider.init({
31561
31578
  ...restParameters,
31562
31579
  disableProviderPing: true,
@@ -39516,4 +39533,4 @@ exports.useXrplTrustLine = useXrplTrustLine;
39516
39533
  exports.waitForReceiptWithRetry = waitForReceiptWithRetry;
39517
39534
  exports.walletIconBaseUrl = walletIconBaseUrl;
39518
39535
  exports.walletSupportsChainType = walletSupportsChainType;
39519
- //# sourceMappingURL=index-8RIq6GyB.js.map
39536
+ //# sourceMappingURL=index-OUfYMn5i.js.map