@fileverse-dev/formulajs 4.4.11-mod-68-patch-3 → 4.4.11-mod-68-patch-4
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/lib/browser/formula.js +32 -30
- package/lib/browser/formula.min.js +2 -2
- package/lib/browser/formula.min.js.map +1 -1
- package/lib/cjs/index.cjs +2 -0
- package/lib/esm/index.mjs +2 -0
- package/package.json +1 -1
package/lib/browser/formula.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @fileverse-dev/formulajs v4.4.11-mod-68-patch-
|
|
1
|
+
/* @fileverse-dev/formulajs v4.4.11-mod-68-patch-4 */
|
|
2
2
|
var _excluded = [ "confirmations", "dataDecoded" ];
|
|
3
3
|
|
|
4
4
|
function _objectWithoutProperties(e, t) {
|
|
@@ -17726,16 +17726,17 @@ function _typeof(o) {
|
|
|
17726
17726
|
while (1) switch (_context23.prev = _context23.next) {
|
|
17727
17727
|
case 0:
|
|
17728
17728
|
chain = _step42.value;
|
|
17729
|
+
console.log("chain", chain);
|
|
17729
17730
|
chainId = CHAIN_ID_MAP[chain];
|
|
17730
17731
|
if (chainId) {
|
|
17731
|
-
_context23.next =
|
|
17732
|
+
_context23.next = 5;
|
|
17732
17733
|
break;
|
|
17733
17734
|
}
|
|
17734
17735
|
throw new ValidationError("Invalid chain: ".concat(chain));
|
|
17735
17736
|
|
|
17736
|
-
case
|
|
17737
|
+
case 5:
|
|
17737
17738
|
if (!(category === "balance")) {
|
|
17738
|
-
_context23.next =
|
|
17739
|
+
_context23.next = 18;
|
|
17739
17740
|
break;
|
|
17740
17741
|
}
|
|
17741
17742
|
_loop2 = _regeneratorRuntime().mark((function _loop2(i) {
|
|
@@ -17777,55 +17778,56 @@ function _typeof(o) {
|
|
|
17777
17778
|
}));
|
|
17778
17779
|
i = 0;
|
|
17779
17780
|
|
|
17780
|
-
case
|
|
17781
|
+
case 8:
|
|
17781
17782
|
if (!(i < ADDRS.length)) {
|
|
17782
|
-
_context23.next =
|
|
17783
|
+
_context23.next = 16;
|
|
17783
17784
|
break;
|
|
17784
17785
|
}
|
|
17785
|
-
return _context23.delegateYield(_loop2(i), "t0",
|
|
17786
|
+
return _context23.delegateYield(_loop2(i), "t0", 10);
|
|
17786
17787
|
|
|
17787
|
-
case
|
|
17788
|
+
case 10:
|
|
17788
17789
|
_ret2 = _context23.t0;
|
|
17789
17790
|
if (!_ret2) {
|
|
17790
|
-
_context23.next =
|
|
17791
|
+
_context23.next = 13;
|
|
17791
17792
|
break;
|
|
17792
17793
|
}
|
|
17793
17794
|
return _context23.abrupt("return", _ret2.v);
|
|
17794
17795
|
|
|
17795
|
-
case
|
|
17796
|
+
case 13:
|
|
17796
17797
|
i += 20;
|
|
17797
|
-
_context23.next =
|
|
17798
|
+
_context23.next = 8;
|
|
17798
17799
|
break;
|
|
17799
17800
|
|
|
17800
|
-
case
|
|
17801
|
-
_context23.next =
|
|
17801
|
+
case 16:
|
|
17802
|
+
_context23.next = 39;
|
|
17802
17803
|
break;
|
|
17803
17804
|
|
|
17804
|
-
case
|
|
17805
|
-
_context23.next =
|
|
17805
|
+
case 18:
|
|
17806
|
+
_context23.next = 20;
|
|
17806
17807
|
return fromTimestampToBlock.fromTimeStampToBlock(toTimestamp(startTime), chain, apiKey);
|
|
17807
17808
|
|
|
17808
|
-
case
|
|
17809
|
+
case 20:
|
|
17809
17810
|
sb = _context23.sent;
|
|
17810
|
-
_context23.next =
|
|
17811
|
+
_context23.next = 23;
|
|
17811
17812
|
return fromTimestampToBlock.fromTimeStampToBlock(toTimestamp(endTime), chain, apiKey);
|
|
17812
17813
|
|
|
17813
|
-
case
|
|
17814
|
+
case 23:
|
|
17814
17815
|
eb = _context23.sent;
|
|
17816
|
+
console.log("sb", sb, "eb", eb);
|
|
17815
17817
|
if (sb) {
|
|
17816
|
-
_context23.next =
|
|
17818
|
+
_context23.next = 27;
|
|
17817
17819
|
break;
|
|
17818
17820
|
}
|
|
17819
17821
|
throw new ValidationError("Invalid startTime: ".concat(startTime));
|
|
17820
17822
|
|
|
17821
|
-
case
|
|
17823
|
+
case 27:
|
|
17822
17824
|
if (eb) {
|
|
17823
|
-
_context23.next =
|
|
17825
|
+
_context23.next = 29;
|
|
17824
17826
|
break;
|
|
17825
17827
|
}
|
|
17826
17828
|
throw new ValidationError("Invalid endTime: ".concat(endTime));
|
|
17827
17829
|
|
|
17828
|
-
case
|
|
17830
|
+
case 29:
|
|
17829
17831
|
_loop3 = _regeneratorRuntime().mark((function _loop3() {
|
|
17830
17832
|
var addr, url, data;
|
|
17831
17833
|
return _regeneratorRuntime().wrap((function _loop3$(_context22) {
|
|
@@ -17865,27 +17867,27 @@ function _typeof(o) {
|
|
|
17865
17867
|
}));
|
|
17866
17868
|
_i16 = 0, _ADDRS = ADDRS;
|
|
17867
17869
|
|
|
17868
|
-
case
|
|
17870
|
+
case 31:
|
|
17869
17871
|
if (!(_i16 < _ADDRS.length)) {
|
|
17870
|
-
_context23.next =
|
|
17872
|
+
_context23.next = 39;
|
|
17871
17873
|
break;
|
|
17872
17874
|
}
|
|
17873
|
-
return _context23.delegateYield(_loop3(), "t1",
|
|
17875
|
+
return _context23.delegateYield(_loop3(), "t1", 33);
|
|
17874
17876
|
|
|
17875
|
-
case
|
|
17877
|
+
case 33:
|
|
17876
17878
|
_ret3 = _context23.t1;
|
|
17877
17879
|
if (!_ret3) {
|
|
17878
|
-
_context23.next =
|
|
17880
|
+
_context23.next = 36;
|
|
17879
17881
|
break;
|
|
17880
17882
|
}
|
|
17881
17883
|
return _context23.abrupt("return", _ret3.v);
|
|
17882
17884
|
|
|
17883
|
-
case
|
|
17885
|
+
case 36:
|
|
17884
17886
|
_i16++;
|
|
17885
|
-
_context23.next =
|
|
17887
|
+
_context23.next = 31;
|
|
17886
17888
|
break;
|
|
17887
17889
|
|
|
17888
|
-
case
|
|
17890
|
+
case 39:
|
|
17889
17891
|
case "end":
|
|
17890
17892
|
return _context23.stop();
|
|
17891
17893
|
}
|