@proton/wrap-constants 0.2.182 → 0.2.183

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/index.js CHANGED
@@ -159,6 +159,7 @@ var Chains = /* @__PURE__ */ ((Chains2) => {
159
159
  Chains2["BitcoinTestnet"] = "Bitcoin (Testnet)";
160
160
  Chains2["EthereumMainnet"] = "Ethereum";
161
161
  Chains2["EthereumRopsten"] = "Ethereum (Ropsten)";
162
+ Chains2["EthereumSepolia"] = "Ethereum (Sepolia)";
162
163
  Chains2["LitecoinMainnet"] = "Litecoin";
163
164
  Chains2["LitecoinTestnet"] = "Litecoin (Testnet)";
164
165
  Chains2["BitcoinCashMainnet"] = "Bitcoin Cash";
@@ -200,6 +201,7 @@ var Networks = /* @__PURE__ */ ((Networks2) => {
200
201
  Networks2["AVM"] = "avm";
201
202
  Networks2["EVM"] = "evm";
202
203
  Networks2["METALL2"] = "metall2";
204
+ Networks2["Sepolia"] = "sepolia";
203
205
  return Networks2;
204
206
  })(Networks || {});
205
207
  var similarChains = {
@@ -217,6 +219,7 @@ var explorerLinkByChain = {
217
219
  ["Bitcoin (Testnet)" /* BitcoinTestnet */]: (txid) => `https://blockstream.info/testnet/tx/${txid}`,
218
220
  ["Ethereum" /* EthereumMainnet */]: (txid) => `https://etherscan.io/tx/${txid}`,
219
221
  ["Ethereum (Ropsten)" /* EthereumRopsten */]: (txid) => `https://ropsten.etherscan.io/tx/${txid}`,
222
+ ["Ethereum (Sepolia)" /* EthereumSepolia */]: (txid) => `https://sepolia.etherscan.io/tx/${txid}`,
220
223
  ["Litecoin" /* LitecoinMainnet */]: (txid) => `https://blockchair.com/litecoin/transaction/${txid}`,
221
224
  ["Litecoin (Testnet)" /* LitecoinTestnet */]: (txid) => `https://blockexplorer.one/litecoin/testnet/blockHash/${txid}`,
222
225
  ["Bitcoin Cash" /* BitcoinCashMainnet */]: (txid) => `https://blockchair.com/bitcoin-cash/transaction/${txid}`,
@@ -526,8 +529,8 @@ var initializeCoins = (protonChain) => {
526
529
  {
527
530
  wallet: "ETH",
528
531
  symbol: "ETH",
529
- chain: "Ethereum (Ropsten)" /* EthereumRopsten */,
530
- network: "ropsten" /* Ropsten */,
532
+ chain: "Ethereum (Sepolia)" /* EthereumSepolia */,
533
+ network: "sepolia" /* Sepolia */,
531
534
  precision: 18,
532
535
  contract: "0x0000000000000000000000000000000000000000",
533
536
  provider: "fireblocks" /* FIREBLOCKS */,
@@ -2935,10 +2938,10 @@ function clone(configObject) {
2935
2938
  throw Error(bignumberError + "Invalid BigNumber: " + v);
2936
2939
  };
2937
2940
  BigNumber2.maximum = BigNumber2.max = function() {
2938
- return maxOrMin(arguments, P.lt);
2941
+ return maxOrMin(arguments, -1);
2939
2942
  };
2940
2943
  BigNumber2.minimum = BigNumber2.min = function() {
2941
- return maxOrMin(arguments, P.gt);
2944
+ return maxOrMin(arguments, 1);
2942
2945
  };
2943
2946
  BigNumber2.random = function() {
2944
2947
  var pow2_53 = 9007199254740992;
@@ -3297,18 +3300,15 @@ function clone(configObject) {
3297
3300
  }
3298
3301
  return n.s < 0 && c0 ? "-" + str : str;
3299
3302
  }
3300
- function maxOrMin(args, method) {
3301
- var n, i = 1, m = new BigNumber2(args[0]);
3303
+ function maxOrMin(args, n) {
3304
+ var k, y, i = 1, x = new BigNumber2(args[0]);
3302
3305
  for (; i < args.length; i++) {
3303
- n = new BigNumber2(args[i]);
3304
- if (!n.s) {
3305
- m = n;
3306
- break;
3307
- } else if (method.call(m, n)) {
3308
- m = n;
3306
+ y = new BigNumber2(args[i]);
3307
+ if (!y.s || (k = compare(x, y)) === n || k === 0 && x.s === n) {
3308
+ x = y;
3309
3309
  }
3310
3310
  }
3311
- return m;
3311
+ return x;
3312
3312
  }
3313
3313
  function normalise(n, c, e) {
3314
3314
  var i = 1, j = c.length;
@@ -3364,7 +3364,7 @@ function clone(configObject) {
3364
3364
  i += LOG_BASE;
3365
3365
  j = sd;
3366
3366
  n = xc[ni = 0];
3367
- rd = n / pows10[d - j - 1] % 10 | 0;
3367
+ rd = mathfloor(n / pows10[d - j - 1] % 10);
3368
3368
  } else {
3369
3369
  ni = mathceil((i + 1) / LOG_BASE);
3370
3370
  if (ni >= xc.length) {
@@ -3384,7 +3384,7 @@ function clone(configObject) {
3384
3384
  ;
3385
3385
  i %= LOG_BASE;
3386
3386
  j = i - LOG_BASE + d;
3387
- rd = j < 0 ? 0 : n / pows10[d - j - 1] % 10 | 0;
3387
+ rd = j < 0 ? 0 : mathfloor(n / pows10[d - j - 1] % 10);
3388
3388
  }
3389
3389
  }
3390
3390
  r = r || sd < 0 || // Are there any non-zero digits after the rounding digit?
@@ -3657,8 +3657,12 @@ function clone(configObject) {
3657
3657
  }
3658
3658
  }
3659
3659
  }
3660
- if (xLTy)
3661
- t = xc, xc = yc, yc = t, y.s = -y.s;
3660
+ if (xLTy) {
3661
+ t = xc;
3662
+ xc = yc;
3663
+ yc = t;
3664
+ y.s = -y.s;
3665
+ }
3662
3666
  b = (j = yc.length) - (i = xc.length);
3663
3667
  if (b > 0)
3664
3668
  for (; b--; xc[i++] = 0)
@@ -3724,8 +3728,14 @@ function clone(configObject) {
3724
3728
  y.s *= x.s;
3725
3729
  xcL = xc.length;
3726
3730
  ycL = yc.length;
3727
- if (xcL < ycL)
3728
- zc = xc, xc = yc, yc = zc, i = xcL, xcL = ycL, ycL = i;
3731
+ if (xcL < ycL) {
3732
+ zc = xc;
3733
+ xc = yc;
3734
+ yc = zc;
3735
+ i = xcL;
3736
+ xcL = ycL;
3737
+ ycL = i;
3738
+ }
3729
3739
  for (i = xcL + ycL, zc = []; i--; zc.push(0))
3730
3740
  ;
3731
3741
  base = BASE;
@@ -3791,8 +3801,12 @@ function clone(configObject) {
3791
3801
  }
3792
3802
  a = xc.length;
3793
3803
  b = yc.length;
3794
- if (a - b < 0)
3795
- t = yc, yc = xc, xc = t, b = a;
3804
+ if (a - b < 0) {
3805
+ t = yc;
3806
+ yc = xc;
3807
+ xc = t;
3808
+ b = a;
3809
+ }
3796
3810
  for (a = 0; b; ) {
3797
3811
  a = (xc[--b] = xc[b] + yc[b] + a) / BASE | 0;
3798
3812
  xc[b] = BASE === xc[b] ? 0 : xc[b] % BASE;
@@ -3920,8 +3934,12 @@ function clone(configObject) {
3920
3934
  str = x.toFixed(dp, rm);
3921
3935
  if (x.c) {
3922
3936
  var i, arr = str.split("."), g1 = +format2.groupSize, g2 = +format2.secondaryGroupSize, groupSeparator = format2.groupSeparator || "", intPart = arr[0], fractionPart = arr[1], isNeg = x.s < 0, intDigits = isNeg ? intPart.slice(1) : intPart, len = intDigits.length;
3923
- if (g2)
3924
- i = g1, g1 = g2, g2 = i, len -= i;
3937
+ if (g2) {
3938
+ i = g1;
3939
+ g1 = g2;
3940
+ g2 = i;
3941
+ len -= i;
3942
+ }
3925
3943
  if (g1 > 0 && len > 0) {
3926
3944
  i = len % g1 || g1;
3927
3945
  intPart = intDigits.substr(0, i);
package/dist/index.mjs CHANGED
@@ -4,6 +4,7 @@ var Chains = /* @__PURE__ */ ((Chains2) => {
4
4
  Chains2["BitcoinTestnet"] = "Bitcoin (Testnet)";
5
5
  Chains2["EthereumMainnet"] = "Ethereum";
6
6
  Chains2["EthereumRopsten"] = "Ethereum (Ropsten)";
7
+ Chains2["EthereumSepolia"] = "Ethereum (Sepolia)";
7
8
  Chains2["LitecoinMainnet"] = "Litecoin";
8
9
  Chains2["LitecoinTestnet"] = "Litecoin (Testnet)";
9
10
  Chains2["BitcoinCashMainnet"] = "Bitcoin Cash";
@@ -45,6 +46,7 @@ var Networks = /* @__PURE__ */ ((Networks2) => {
45
46
  Networks2["AVM"] = "avm";
46
47
  Networks2["EVM"] = "evm";
47
48
  Networks2["METALL2"] = "metall2";
49
+ Networks2["Sepolia"] = "sepolia";
48
50
  return Networks2;
49
51
  })(Networks || {});
50
52
  var similarChains = {
@@ -62,6 +64,7 @@ var explorerLinkByChain = {
62
64
  ["Bitcoin (Testnet)" /* BitcoinTestnet */]: (txid) => `https://blockstream.info/testnet/tx/${txid}`,
63
65
  ["Ethereum" /* EthereumMainnet */]: (txid) => `https://etherscan.io/tx/${txid}`,
64
66
  ["Ethereum (Ropsten)" /* EthereumRopsten */]: (txid) => `https://ropsten.etherscan.io/tx/${txid}`,
67
+ ["Ethereum (Sepolia)" /* EthereumSepolia */]: (txid) => `https://sepolia.etherscan.io/tx/${txid}`,
65
68
  ["Litecoin" /* LitecoinMainnet */]: (txid) => `https://blockchair.com/litecoin/transaction/${txid}`,
66
69
  ["Litecoin (Testnet)" /* LitecoinTestnet */]: (txid) => `https://blockexplorer.one/litecoin/testnet/blockHash/${txid}`,
67
70
  ["Bitcoin Cash" /* BitcoinCashMainnet */]: (txid) => `https://blockchair.com/bitcoin-cash/transaction/${txid}`,
@@ -371,8 +374,8 @@ var initializeCoins = (protonChain) => {
371
374
  {
372
375
  wallet: "ETH",
373
376
  symbol: "ETH",
374
- chain: "Ethereum (Ropsten)" /* EthereumRopsten */,
375
- network: "ropsten" /* Ropsten */,
377
+ chain: "Ethereum (Sepolia)" /* EthereumSepolia */,
378
+ network: "sepolia" /* Sepolia */,
376
379
  precision: 18,
377
380
  contract: "0x0000000000000000000000000000000000000000",
378
381
  provider: "fireblocks" /* FIREBLOCKS */,
@@ -2780,10 +2783,10 @@ function clone(configObject) {
2780
2783
  throw Error(bignumberError + "Invalid BigNumber: " + v);
2781
2784
  };
2782
2785
  BigNumber2.maximum = BigNumber2.max = function() {
2783
- return maxOrMin(arguments, P.lt);
2786
+ return maxOrMin(arguments, -1);
2784
2787
  };
2785
2788
  BigNumber2.minimum = BigNumber2.min = function() {
2786
- return maxOrMin(arguments, P.gt);
2789
+ return maxOrMin(arguments, 1);
2787
2790
  };
2788
2791
  BigNumber2.random = function() {
2789
2792
  var pow2_53 = 9007199254740992;
@@ -3142,18 +3145,15 @@ function clone(configObject) {
3142
3145
  }
3143
3146
  return n.s < 0 && c0 ? "-" + str : str;
3144
3147
  }
3145
- function maxOrMin(args, method) {
3146
- var n, i = 1, m = new BigNumber2(args[0]);
3148
+ function maxOrMin(args, n) {
3149
+ var k, y, i = 1, x = new BigNumber2(args[0]);
3147
3150
  for (; i < args.length; i++) {
3148
- n = new BigNumber2(args[i]);
3149
- if (!n.s) {
3150
- m = n;
3151
- break;
3152
- } else if (method.call(m, n)) {
3153
- m = n;
3151
+ y = new BigNumber2(args[i]);
3152
+ if (!y.s || (k = compare(x, y)) === n || k === 0 && x.s === n) {
3153
+ x = y;
3154
3154
  }
3155
3155
  }
3156
- return m;
3156
+ return x;
3157
3157
  }
3158
3158
  function normalise(n, c, e) {
3159
3159
  var i = 1, j = c.length;
@@ -3209,7 +3209,7 @@ function clone(configObject) {
3209
3209
  i += LOG_BASE;
3210
3210
  j = sd;
3211
3211
  n = xc[ni = 0];
3212
- rd = n / pows10[d - j - 1] % 10 | 0;
3212
+ rd = mathfloor(n / pows10[d - j - 1] % 10);
3213
3213
  } else {
3214
3214
  ni = mathceil((i + 1) / LOG_BASE);
3215
3215
  if (ni >= xc.length) {
@@ -3229,7 +3229,7 @@ function clone(configObject) {
3229
3229
  ;
3230
3230
  i %= LOG_BASE;
3231
3231
  j = i - LOG_BASE + d;
3232
- rd = j < 0 ? 0 : n / pows10[d - j - 1] % 10 | 0;
3232
+ rd = j < 0 ? 0 : mathfloor(n / pows10[d - j - 1] % 10);
3233
3233
  }
3234
3234
  }
3235
3235
  r = r || sd < 0 || // Are there any non-zero digits after the rounding digit?
@@ -3502,8 +3502,12 @@ function clone(configObject) {
3502
3502
  }
3503
3503
  }
3504
3504
  }
3505
- if (xLTy)
3506
- t = xc, xc = yc, yc = t, y.s = -y.s;
3505
+ if (xLTy) {
3506
+ t = xc;
3507
+ xc = yc;
3508
+ yc = t;
3509
+ y.s = -y.s;
3510
+ }
3507
3511
  b = (j = yc.length) - (i = xc.length);
3508
3512
  if (b > 0)
3509
3513
  for (; b--; xc[i++] = 0)
@@ -3569,8 +3573,14 @@ function clone(configObject) {
3569
3573
  y.s *= x.s;
3570
3574
  xcL = xc.length;
3571
3575
  ycL = yc.length;
3572
- if (xcL < ycL)
3573
- zc = xc, xc = yc, yc = zc, i = xcL, xcL = ycL, ycL = i;
3576
+ if (xcL < ycL) {
3577
+ zc = xc;
3578
+ xc = yc;
3579
+ yc = zc;
3580
+ i = xcL;
3581
+ xcL = ycL;
3582
+ ycL = i;
3583
+ }
3574
3584
  for (i = xcL + ycL, zc = []; i--; zc.push(0))
3575
3585
  ;
3576
3586
  base = BASE;
@@ -3636,8 +3646,12 @@ function clone(configObject) {
3636
3646
  }
3637
3647
  a = xc.length;
3638
3648
  b = yc.length;
3639
- if (a - b < 0)
3640
- t = yc, yc = xc, xc = t, b = a;
3649
+ if (a - b < 0) {
3650
+ t = yc;
3651
+ yc = xc;
3652
+ xc = t;
3653
+ b = a;
3654
+ }
3641
3655
  for (a = 0; b; ) {
3642
3656
  a = (xc[--b] = xc[b] + yc[b] + a) / BASE | 0;
3643
3657
  xc[b] = BASE === xc[b] ? 0 : xc[b] % BASE;
@@ -3765,8 +3779,12 @@ function clone(configObject) {
3765
3779
  str = x.toFixed(dp, rm);
3766
3780
  if (x.c) {
3767
3781
  var i, arr = str.split("."), g1 = +format2.groupSize, g2 = +format2.secondaryGroupSize, groupSeparator = format2.groupSeparator || "", intPart = arr[0], fractionPart = arr[1], isNeg = x.s < 0, intDigits = isNeg ? intPart.slice(1) : intPart, len = intDigits.length;
3768
- if (g2)
3769
- i = g1, g1 = g2, g2 = i, len -= i;
3782
+ if (g2) {
3783
+ i = g1;
3784
+ g1 = g2;
3785
+ g2 = i;
3786
+ len -= i;
3787
+ }
3770
3788
  if (g1 > 0 && len > 0) {
3771
3789
  i = len % g1 || g1;
3772
3790
  intPart = intDigits.substr(0, i);
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.2.182",
8
+ "version": "0.2.183",
9
9
  "license": "MIT",
10
10
  "main": "dist/index.js",
11
11
  "typings": "dist/index.d.ts",
@@ -40,5 +40,5 @@
40
40
  "resolutions": {
41
41
  "typescript": "4.5"
42
42
  },
43
- "gitHead": "f90f441778e537d22f022b7cec3e726d0e7b3859"
43
+ "gitHead": "88555c5fb8a463f5e0d8af0e6976025739398ba3"
44
44
  }