@fileverse-dev/formulajs 4.4.11-mod-21-patch-4 → 4.4.11-mod-22-patch-1

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.
@@ -1,4 +1,4 @@
1
- /* @fileverse-dev/formulajs v4.4.11-mod-21-patch-4 */
1
+ /* @fileverse-dev/formulajs v4.4.11-mod-22-patch-1 */
2
2
  var _excluded = [ "confirmations", "dataDecoded" ];
3
3
 
4
4
  function _objectWithoutProperties(e, t) {
@@ -10831,6 +10831,14 @@ function _typeof(o) {
10831
10831
  gnosis: 100,
10832
10832
  base: 8453
10833
10833
  };
10834
+ var BLOCKSCOUT_CHAINS_MAP = {
10835
+ ethereum: "https://eth.blockscout.com",
10836
+ gnosis: "https://gnosis.blockscout.com",
10837
+ arbitrum: "https://arbitrum.blockscout.com",
10838
+ optimism: "https://optimism.blockscout.com",
10839
+ soneium: "https://soneium.blockscout.com",
10840
+ unichain: "https://unichain.blockscout.com"
10841
+ };
10834
10842
  var SAFE_CHAIN_MAP = {
10835
10843
  ethereum: "eth",
10836
10844
  gnosis: "gno"
@@ -10883,86 +10891,186 @@ function _typeof(o) {
10883
10891
  return _ref.apply(this, arguments);
10884
10892
  };
10885
10893
  }();
10886
- function ETHERSCAN(_x4, _x5, _x6) {
10894
+ function BLOCKSCOUT(_x4, _x5, _x6, _x7, _x8, _x9, _x0) {
10895
+ return _BLOCKSCOUT.apply(this, arguments);
10896
+ }
10897
+ function _BLOCKSCOUT() {
10898
+ _BLOCKSCOUT = _asyncToGenerator(_regeneratorRuntime().mark((function _callee2(address, chain, type, page, offset, startTimestamp, endTimestamp) {
10899
+ var currentTimestamp, hostname, requestUrl, _json$result, _json$result2, response, json;
10900
+ return _regeneratorRuntime().wrap((function _callee2$(_context2) {
10901
+ while (1) switch (_context2.prev = _context2.next) {
10902
+ case 0:
10903
+ if (!chain) {
10904
+ chain = "ethereum";
10905
+ }
10906
+ if (type) {
10907
+ _context2.next = 3;
10908
+ break;
10909
+ }
10910
+ return _context2.abrupt("return", "TYPE_MISSING");
10911
+
10912
+ case 3:
10913
+ if (!startTimestamp) {
10914
+ currentTimestamp = Date.now();
10915
+ startTimestamp = currentTimestamp - 30 * 24 * 60 * 60 * 1e3;
10916
+ startTimestamp = Math.floor(startTimestamp / 1e3);
10917
+ }
10918
+ hostname = BLOCKSCOUT_CHAINS_MAP[chain];
10919
+ _context2.t0 = type;
10920
+ _context2.next = _context2.t0 === "stat" ? 8 : _context2.t0 === "txns" ? 10 : _context2.t0 === "tokens" ? 12 : 14;
10921
+ break;
10922
+
10923
+ case 8:
10924
+ requestUrl = "".concat(hostname, "/api/v2/addresses/").concat(address, "/counters");
10925
+ return _context2.abrupt("break", 15);
10926
+
10927
+ case 10:
10928
+ requestUrl = "".concat(hostname, "/api?module=account&action=txlist&address=").concat(address, "&start_timestamp=").concat(startTimestamp, "&end_timestamp=").concat(endTimestamp, "&page=").concat(page, "&offset=").concat(offset, "&sort=asc");
10929
+ return _context2.abrupt("break", 15);
10930
+
10931
+ case 12:
10932
+ requestUrl = "".concat(hostname, "/api?module=account&action=tokenlist&address=").concat(address);
10933
+ return _context2.abrupt("break", 15);
10934
+
10935
+ case 14:
10936
+ return _context2.abrupt("return", "INVALID_TYPE");
10937
+
10938
+ case 15:
10939
+ _context2.prev = 15;
10940
+ _context2.next = 18;
10941
+ return fetch(requestUrl);
10942
+
10943
+ case 18:
10944
+ response = _context2.sent;
10945
+ if (response.ok) {
10946
+ _context2.next = 21;
10947
+ break;
10948
+ }
10949
+ throw new Error("HTTP error! Status: ".concat(response.status));
10950
+
10951
+ case 21:
10952
+ _context2.next = 23;
10953
+ return response.json();
10954
+
10955
+ case 23:
10956
+ json = _context2.sent;
10957
+ console.log(json);
10958
+ if (!(json !== null && json !== void 0 && (_json$result = json.result) !== null && _json$result !== void 0 && _json$result.includes("Invalid parameter(s)"))) {
10959
+ _context2.next = 27;
10960
+ break;
10961
+ }
10962
+ return _context2.abrupt("return", "INVALID_REQUEST_PARAMS");
10963
+
10964
+ case 27:
10965
+ if (!(json !== null && json !== void 0 && (_json$result2 = json.result) !== null && _json$result2 !== void 0 && _json$result2.includes("Not found"))) {
10966
+ _context2.next = 29;
10967
+ break;
10968
+ }
10969
+ return _context2.abrupt("return", "ADDRESS_NOT_FOUND");
10970
+
10971
+ case 29:
10972
+ if (!(type === "stat")) {
10973
+ _context2.next = 31;
10974
+ break;
10975
+ }
10976
+ return _context2.abrupt("return", [ json ]);
10977
+
10978
+ case 31:
10979
+ return _context2.abrupt("return", json.result);
10980
+
10981
+ case 34:
10982
+ _context2.prev = 34;
10983
+ _context2.t1 = _context2["catch"](15);
10984
+ return _context2.abrupt("return", "ERROR IN FETCHING");
10985
+
10986
+ case 37:
10987
+ case "end":
10988
+ return _context2.stop();
10989
+ }
10990
+ }), _callee2, null, [ [ 15, 34 ] ]);
10991
+ })));
10992
+ return _BLOCKSCOUT.apply(this, arguments);
10993
+ }
10994
+ function ETHERSCAN(_x1, _x10, _x11) {
10887
10995
  return _ETHERSCAN.apply(this, arguments);
10888
10996
  }
10889
10997
  function _ETHERSCAN() {
10890
- _ETHERSCAN = _asyncToGenerator(_regeneratorRuntime().mark((function _callee2(address, page, offset) {
10998
+ _ETHERSCAN = _asyncToGenerator(_regeneratorRuntime().mark((function _callee3(address, page, offset) {
10891
10999
  var API_KEY, url, response, json;
10892
- return _regeneratorRuntime().wrap((function _callee2$(_context2) {
10893
- while (1) switch (_context2.prev = _context2.next) {
11000
+ return _regeneratorRuntime().wrap((function _callee3$(_context3) {
11001
+ while (1) switch (_context3.prev = _context3.next) {
10894
11002
  case 0:
10895
11003
  API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Etherscan);
10896
11004
  if (API_KEY) {
10897
- _context2.next = 3;
11005
+ _context3.next = 3;
10898
11006
  break;
10899
11007
  }
10900
- return _context2.abrupt("return", "".concat(SERVICE_API_KEY.Etherscan).concat(ERROR_MESSAGES_FLAG.MISSING_KEY));
11008
+ return _context3.abrupt("return", "".concat(SERVICE_API_KEY.Etherscan).concat(ERROR_MESSAGES_FLAG.MISSING_KEY));
10901
11009
 
10902
11010
  case 3:
10903
11011
  if (!(API_KEY === "xxxx")) {
10904
- _context2.next = 5;
11012
+ _context3.next = 5;
10905
11013
  break;
10906
11014
  }
10907
- return _context2.abrupt("return", "".concat(SERVICE_API_KEY.Etherscan).concat(ERROR_MESSAGES_FLAG.RATE_LIMIT));
11015
+ return _context3.abrupt("return", "".concat(SERVICE_API_KEY.Etherscan).concat(ERROR_MESSAGES_FLAG.RATE_LIMIT));
10908
11016
 
10909
11017
  case 5:
10910
11018
  url = "https://api.etherscan.io/v2/api?chainid=1&module=account&action=txlist&address=".concat(address, "&startblock=0&endblock=99999999&page=").concat(page || 1, "&offset=").concat(offset || 10, "&sort=asc&apikey=").concat(API_KEY);
10911
- _context2.prev = 6;
10912
- _context2.next = 9;
11019
+ _context3.prev = 6;
11020
+ _context3.next = 9;
10913
11021
  return fetch(url);
10914
11022
 
10915
11023
  case 9:
10916
- response = _context2.sent;
11024
+ response = _context3.sent;
10917
11025
  if (response.ok) {
10918
- _context2.next = 12;
11026
+ _context3.next = 12;
10919
11027
  break;
10920
11028
  }
10921
11029
  throw new Error("HTTP error! Status: ".concat(response.status));
10922
11030
 
10923
11031
  case 12:
10924
- _context2.next = 14;
11032
+ _context3.next = 14;
10925
11033
  return response.json();
10926
11034
 
10927
11035
  case 14:
10928
- json = _context2.sent;
11036
+ json = _context3.sent;
10929
11037
  if (!json.result.includes("Invalid API Key")) {
10930
- _context2.next = 17;
11038
+ _context3.next = 17;
10931
11039
  break;
10932
11040
  }
10933
- return _context2.abrupt("return", "".concat(SERVICE_API_KEY.Etherscan).concat(ERROR_MESSAGES_FLAG.INVALID_API_KEY));
11041
+ return _context3.abrupt("return", "".concat(SERVICE_API_KEY.Etherscan).concat(ERROR_MESSAGES_FLAG.INVALID_API_KEY));
10934
11042
 
10935
11043
  case 17:
10936
11044
  if (!json.result.includes("Max rate limit reached")) {
10937
- _context2.next = 19;
11045
+ _context3.next = 19;
10938
11046
  break;
10939
11047
  }
10940
- return _context2.abrupt("return", "".concat(SERVICE_API_KEY.Etherscan).concat(ERROR_MESSAGES_FLAG.RATE_LIMIT));
11048
+ return _context3.abrupt("return", "".concat(SERVICE_API_KEY.Etherscan).concat(ERROR_MESSAGES_FLAG.RATE_LIMIT));
10941
11049
 
10942
11050
  case 19:
10943
- return _context2.abrupt("return", json.result);
11051
+ return _context3.abrupt("return", json.result);
10944
11052
 
10945
11053
  case 22:
10946
- _context2.prev = 22;
10947
- _context2.t0 = _context2["catch"](6);
10948
- return _context2.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
11054
+ _context3.prev = 22;
11055
+ _context3.t0 = _context3["catch"](6);
11056
+ return _context3.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
10949
11057
 
10950
11058
  case 25:
10951
11059
  case "end":
10952
- return _context2.stop();
11060
+ return _context3.stop();
10953
11061
  }
10954
- }), _callee2, null, [ [ 6, 22 ] ]);
11062
+ }), _callee3, null, [ [ 6, 22 ] ]);
10955
11063
  })));
10956
11064
  return _ETHERSCAN.apply(this, arguments);
10957
11065
  }
10958
- function COINGECKO(_x7, _x8) {
11066
+ function COINGECKO(_x12, _x13) {
10959
11067
  return _COINGECKO.apply(this, arguments);
10960
11068
  }
10961
11069
  function _COINGECKO() {
10962
- _COINGECKO = _asyncToGenerator(_regeneratorRuntime().mark((function _callee3(token, vs_currencies) {
11070
+ _COINGECKO = _asyncToGenerator(_regeneratorRuntime().mark((function _callee4(token, vs_currencies) {
10963
11071
  var API_KEY, url, options, response, json, jsonResponse, output, _i10, _Object$entries, _Object$entries$_i, coin, prices, _i11, _Object$entries2, _Object$entries2$_i, currency, _value5, key;
10964
- return _regeneratorRuntime().wrap((function _callee3$(_context3) {
10965
- while (1) switch (_context3.prev = _context3.next) {
11072
+ return _regeneratorRuntime().wrap((function _callee4$(_context4) {
11073
+ while (1) switch (_context4.prev = _context4.next) {
10966
11074
  case 0:
10967
11075
  API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Coingecko);
10968
11076
  url = "https://api.coingecko.com/api/v3/simple/price?vs_currencies=".concat(vs_currencies, "&ids=").concat(token);
@@ -10973,40 +11081,40 @@ function _typeof(o) {
10973
11081
  "x-cg-demo-api-key": "".concat(API_KEY)
10974
11082
  }
10975
11083
  };
10976
- _context3.prev = 3;
10977
- _context3.next = 6;
11084
+ _context4.prev = 3;
11085
+ _context4.next = 6;
10978
11086
  return fetch(url, options);
10979
11087
 
10980
11088
  case 6:
10981
- response = _context3.sent;
11089
+ response = _context4.sent;
10982
11090
  if (response.ok) {
10983
- _context3.next = 15;
11091
+ _context4.next = 15;
10984
11092
  break;
10985
11093
  }
10986
- _context3.next = 10;
11094
+ _context4.next = 10;
10987
11095
  return response.json();
10988
11096
 
10989
11097
  case 10:
10990
- json = _context3.sent;
11098
+ json = _context4.sent;
10991
11099
  if (!json.status.error_message.includes("API Key Missing")) {
10992
- _context3.next = 13;
11100
+ _context4.next = 13;
10993
11101
  break;
10994
11102
  }
10995
- return _context3.abrupt("return", "".concat(SERVICE_API_KEY.Coingecko).concat(ERROR_MESSAGES_FLAG.INVALID_API_KEY));
11103
+ return _context4.abrupt("return", "".concat(SERVICE_API_KEY.Coingecko).concat(ERROR_MESSAGES_FLAG.INVALID_API_KEY));
10996
11104
 
10997
11105
  case 13:
10998
11106
  if (!(response.status === 429)) {
10999
- _context3.next = 15;
11107
+ _context4.next = 15;
11000
11108
  break;
11001
11109
  }
11002
- return _context3.abrupt("return", "".concat(SERVICE_API_KEY.Coingecko).concat(ERROR_MESSAGES_FLAG.RATE_LIMIT));
11110
+ return _context4.abrupt("return", "".concat(SERVICE_API_KEY.Coingecko).concat(ERROR_MESSAGES_FLAG.RATE_LIMIT));
11003
11111
 
11004
11112
  case 15:
11005
- _context3.next = 17;
11113
+ _context4.next = 17;
11006
11114
  return response.json();
11007
11115
 
11008
11116
  case 17:
11009
- jsonResponse = _context3.sent;
11117
+ jsonResponse = _context4.sent;
11010
11118
  output = {};
11011
11119
  for (_i10 = 0, _Object$entries = Object.entries(jsonResponse); _i10 < _Object$entries.length; _i10++) {
11012
11120
  _Object$entries$_i = _slicedToArray(_Object$entries[_i10], 2), coin = _Object$entries$_i[0],
@@ -11018,29 +11126,29 @@ function _typeof(o) {
11018
11126
  output[key] = _value5;
11019
11127
  }
11020
11128
  }
11021
- return _context3.abrupt("return", [ output ]);
11129
+ return _context4.abrupt("return", [ output ]);
11022
11130
 
11023
11131
  case 23:
11024
- _context3.prev = 23;
11025
- _context3.t0 = _context3["catch"](3);
11026
- return _context3.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
11132
+ _context4.prev = 23;
11133
+ _context4.t0 = _context4["catch"](3);
11134
+ return _context4.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
11027
11135
 
11028
11136
  case 26:
11029
11137
  case "end":
11030
- return _context3.stop();
11138
+ return _context4.stop();
11031
11139
  }
11032
- }), _callee3, null, [ [ 3, 23 ] ]);
11140
+ }), _callee4, null, [ [ 3, 23 ] ]);
11033
11141
  })));
11034
11142
  return _COINGECKO.apply(this, arguments);
11035
11143
  }
11036
- function EOA(_x9, _x0, _x1, _x10, _x11) {
11144
+ function EOA(_x14, _x15, _x16, _x17, _x18) {
11037
11145
  return _EOA.apply(this, arguments);
11038
11146
  }
11039
11147
  function _EOA() {
11040
- _EOA = _asyncToGenerator(_regeneratorRuntime().mark((function _callee4(address, categories, chain, startTime, endTime) {
11041
- var API_KEYS, apiKey, chainId, action, timeQuery, startBlock, endBlock, url, _json$result, _json$result$includes, response, json;
11042
- return _regeneratorRuntime().wrap((function _callee4$(_context4) {
11043
- while (1) switch (_context4.prev = _context4.next) {
11148
+ _EOA = _asyncToGenerator(_regeneratorRuntime().mark((function _callee5(address, categories, chain, startTime, endTime) {
11149
+ var API_KEYS, apiKey, chainId, action, timeQuery, startBlock, endBlock, url, _json$result3, _json$result3$include, response, json;
11150
+ return _regeneratorRuntime().wrap((function _callee5$(_context5) {
11151
+ while (1) switch (_context5.prev = _context5.next) {
11044
11152
  case 0:
11045
11153
  API_KEYS = {
11046
11154
  ethereum: window.localStorage.getItem(SERVICE_API_KEY.Etherscan),
@@ -11050,10 +11158,10 @@ function _typeof(o) {
11050
11158
  apiKey = API_KEYS[chain];
11051
11159
  chainId = CHAIN_ID_MAP[chain];
11052
11160
  if (!(!apiKey || !chainId)) {
11053
- _context4.next = 5;
11161
+ _context5.next = 5;
11054
11162
  break;
11055
11163
  }
11056
- return _context4.abrupt("return", "".concat(chain.toUpperCase(), "_MISSING"));
11164
+ return _context5.abrupt("return", "".concat(chain.toUpperCase(), "_MISSING"));
11057
11165
 
11058
11166
  case 5:
11059
11167
  action = "";
@@ -11062,30 +11170,30 @@ function _typeof(o) {
11062
11170
  }
11063
11171
  timeQuery = "";
11064
11172
  if (!(!isNaN(startTime) && !isNaN(endTime))) {
11065
- _context4.next = 18;
11173
+ _context5.next = 18;
11066
11174
  break;
11067
11175
  }
11068
- _context4.next = 11;
11176
+ _context5.next = 11;
11069
11177
  return fromTimeStampToBlock(startTime, chain, apiKey);
11070
11178
 
11071
11179
  case 11:
11072
- startBlock = _context4.sent;
11073
- _context4.next = 14;
11180
+ startBlock = _context5.sent;
11181
+ _context5.next = 14;
11074
11182
  return fromTimeStampToBlock(endTime, chain, apiKey);
11075
11183
 
11076
11184
  case 14:
11077
- endBlock = _context4.sent;
11185
+ endBlock = _context5.sent;
11078
11186
  timeQuery = "&startblock=".concat(startBlock, "&endblock=").concat(endBlock);
11079
- _context4.next = 23;
11187
+ _context5.next = 23;
11080
11188
  break;
11081
11189
 
11082
11190
  case 18:
11083
11191
  if (!(categories === "balance")) {
11084
- _context4.next = 22;
11192
+ _context5.next = 22;
11085
11193
  break;
11086
11194
  }
11087
11195
  timeQuery = "&tag=latest";
11088
- _context4.next = 23;
11196
+ _context5.next = 23;
11089
11197
  break;
11090
11198
 
11091
11199
  case 22:
@@ -11093,63 +11201,63 @@ function _typeof(o) {
11093
11201
 
11094
11202
  case 23:
11095
11203
  url = "https://api.etherscan.io/v2/api?module=".concat(action.split(".")[0], "&action=").concat(action.split(".")[1], "&address=").concat(address, "&sort=asc&chainid=").concat(chainId, "&apikey=").concat(apiKey).concat(timeQuery);
11096
- _context4.prev = 24;
11097
- _context4.next = 27;
11204
+ _context5.prev = 24;
11205
+ _context5.next = 27;
11098
11206
  return fetch(url);
11099
11207
 
11100
11208
  case 27:
11101
- response = _context4.sent;
11209
+ response = _context5.sent;
11102
11210
  if (response.ok) {
11103
- _context4.next = 30;
11211
+ _context5.next = 30;
11104
11212
  break;
11105
11213
  }
11106
11214
  throw new Error("HTTP error! Status: ".concat(response.status));
11107
11215
 
11108
11216
  case 30:
11109
- _context4.next = 32;
11217
+ _context5.next = 32;
11110
11218
  return response.json();
11111
11219
 
11112
11220
  case 32:
11113
- json = _context4.sent;
11114
- if (!((_json$result = json.result) !== null && _json$result !== void 0 && (_json$result$includes = _json$result.includes) !== null && _json$result$includes !== void 0 && _json$result$includes.call(_json$result, "Invalid API Key"))) {
11115
- _context4.next = 35;
11221
+ json = _context5.sent;
11222
+ if (!((_json$result3 = json.result) !== null && _json$result3 !== void 0 && (_json$result3$include = _json$result3.includes) !== null && _json$result3$include !== void 0 && _json$result3$include.call(_json$result3, "Invalid API Key"))) {
11223
+ _context5.next = 35;
11116
11224
  break;
11117
11225
  }
11118
- return _context4.abrupt("return", "".concat(SERVICE_API_KEY[chain.charAt(0).toUpperCase() + chain.slice(1)], "_MISSING"));
11226
+ return _context5.abrupt("return", "".concat(SERVICE_API_KEY[chain.charAt(0).toUpperCase() + chain.slice(1)], "_MISSING"));
11119
11227
 
11120
11228
  case 35:
11121
11229
  if (!json.result.includes("Max rate limit reached")) {
11122
- _context4.next = 37;
11230
+ _context5.next = 37;
11123
11231
  break;
11124
11232
  }
11125
- return _context4.abrupt("return", "".concat(SERVICE_API_KEY.Etherscan).concat(ERROR_MESSAGES_FLAG.RATE_LIMIT));
11233
+ return _context5.abrupt("return", "".concat(SERVICE_API_KEY.Etherscan).concat(ERROR_MESSAGES_FLAG.RATE_LIMIT));
11126
11234
 
11127
11235
  case 37:
11128
- return _context4.abrupt("return", json.result);
11236
+ return _context5.abrupt("return", json.result);
11129
11237
 
11130
11238
  case 40:
11131
- _context4.prev = 40;
11132
- _context4.t0 = _context4["catch"](24);
11133
- console.log(_context4.t0);
11134
- return _context4.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
11239
+ _context5.prev = 40;
11240
+ _context5.t0 = _context5["catch"](24);
11241
+ console.log(_context5.t0);
11242
+ return _context5.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
11135
11243
 
11136
11244
  case 44:
11137
11245
  case "end":
11138
- return _context4.stop();
11246
+ return _context5.stop();
11139
11247
  }
11140
- }), _callee4, null, [ [ 24, 40 ] ]);
11248
+ }), _callee5, null, [ [ 24, 40 ] ]);
11141
11249
  })));
11142
11250
  return _EOA.apply(this, arguments);
11143
11251
  }
11144
- function FLVURL(_x12, _x13) {
11252
+ function FLVURL(_x19, _x20) {
11145
11253
  return _FLVURL.apply(this, arguments);
11146
11254
  }
11147
11255
  function _FLVURL() {
11148
- _FLVURL = _asyncToGenerator(_regeneratorRuntime().mark((function _callee5(token, vs_currencies) {
11149
- return _regeneratorRuntime().wrap((function _callee5$(_context5) {
11150
- while (1) switch (_context5.prev = _context5.next) {
11256
+ _FLVURL = _asyncToGenerator(_regeneratorRuntime().mark((function _callee6(token, vs_currencies) {
11257
+ return _regeneratorRuntime().wrap((function _callee6$(_context6) {
11258
+ while (1) switch (_context6.prev = _context6.next) {
11151
11259
  case 0:
11152
- return _context5.abrupt("return", new Promise((function(resolve) {
11260
+ return _context6.abrupt("return", new Promise((function(resolve) {
11153
11261
  setTimeout((function() {
11154
11262
  resolve([ {
11155
11263
  Yoo: "gotcha"
@@ -11159,61 +11267,61 @@ function _typeof(o) {
11159
11267
 
11160
11268
  case 1:
11161
11269
  case "end":
11162
- return _context5.stop();
11270
+ return _context6.stop();
11163
11271
  }
11164
- }), _callee5);
11272
+ }), _callee6);
11165
11273
  })));
11166
11274
  return _FLVURL.apply(this, arguments);
11167
11275
  }
11168
- function SAFE(_x14, _x15, _x16, _x17, _x18) {
11276
+ function SAFE(_x21, _x22, _x23, _x24, _x25) {
11169
11277
  return _SAFE.apply(this, arguments);
11170
11278
  }
11171
11279
  function _SAFE() {
11172
- _SAFE = _asyncToGenerator(_regeneratorRuntime().mark((function _callee6(address, utility, chain, limit, offset) {
11280
+ _SAFE = _asyncToGenerator(_regeneratorRuntime().mark((function _callee7(address, utility, chain, limit, offset) {
11173
11281
  var apiKey, chainIdentifier, url, response, json;
11174
- return _regeneratorRuntime().wrap((function _callee6$(_context6) {
11175
- while (1) switch (_context6.prev = _context6.next) {
11282
+ return _regeneratorRuntime().wrap((function _callee7$(_context7) {
11283
+ while (1) switch (_context7.prev = _context7.next) {
11176
11284
  case 0:
11177
11285
  if (!(typeof limit !== "number" || limit < 0)) {
11178
- _context6.next = 2;
11286
+ _context7.next = 2;
11179
11287
  break;
11180
11288
  }
11181
- return _context6.abrupt("return", "INVALID_LIMIT");
11289
+ return _context7.abrupt("return", "INVALID_LIMIT");
11182
11290
 
11183
11291
  case 2:
11184
11292
  if (!(typeof offset !== "number" || offset < 0)) {
11185
- _context6.next = 4;
11293
+ _context7.next = 4;
11186
11294
  break;
11187
11295
  }
11188
- return _context6.abrupt("return", "INVALID_OFFSET");
11296
+ return _context7.abrupt("return", "INVALID_OFFSET");
11189
11297
 
11190
11298
  case 4:
11191
11299
  if (!(utility !== "txns")) {
11192
- _context6.next = 6;
11300
+ _context7.next = 6;
11193
11301
  break;
11194
11302
  }
11195
- return _context6.abrupt("return", "UTILITY IS NOT SUPPORTED");
11303
+ return _context7.abrupt("return", "UTILITY IS NOT SUPPORTED");
11196
11304
 
11197
11305
  case 6:
11198
11306
  apiKey = window.localStorage.getItem(SERVICE_API_KEY.Safe);
11199
11307
  chainIdentifier = SAFE_CHAIN_MAP[chain];
11200
11308
  if (apiKey) {
11201
- _context6.next = 10;
11309
+ _context7.next = 10;
11202
11310
  break;
11203
11311
  }
11204
- return _context6.abrupt("return", "".concat(SERVICE_API_KEY.Safe, "_MISSING"));
11312
+ return _context7.abrupt("return", "".concat(SERVICE_API_KEY.Safe, "_MISSING"));
11205
11313
 
11206
11314
  case 10:
11207
11315
  if (chainIdentifier) {
11208
- _context6.next = 12;
11316
+ _context7.next = 12;
11209
11317
  break;
11210
11318
  }
11211
- return _context6.abrupt("return", "CHAIN IS NOT SUPPORTED");
11319
+ return _context7.abrupt("return", "CHAIN IS NOT SUPPORTED");
11212
11320
 
11213
11321
  case 12:
11214
11322
  url = "https://api.safe.global/tx-service/".concat(chainIdentifier, "/api/v2/safes/").concat(address, "/multisig-transactions?limit=").concat(limit, "&offset=").concat(offset);
11215
- _context6.prev = 13;
11216
- _context6.next = 16;
11323
+ _context7.prev = 13;
11324
+ _context7.next = 16;
11217
11325
  return fetch(url, {
11218
11326
  headers: {
11219
11327
  Authorization: "Bearer ".concat(apiKey)
@@ -11221,42 +11329,42 @@ function _typeof(o) {
11221
11329
  });
11222
11330
 
11223
11331
  case 16:
11224
- response = _context6.sent;
11332
+ response = _context7.sent;
11225
11333
  if (response.ok) {
11226
- _context6.next = 19;
11334
+ _context7.next = 19;
11227
11335
  break;
11228
11336
  }
11229
11337
  throw new Error("HTTP error! Status: ".concat(response.status));
11230
11338
 
11231
11339
  case 19:
11232
- _context6.next = 21;
11340
+ _context7.next = 21;
11233
11341
  return response.json();
11234
11342
 
11235
11343
  case 21:
11236
- json = _context6.sent;
11344
+ json = _context7.sent;
11237
11345
  if (Array.isArray(json.results)) {
11238
- _context6.next = 24;
11346
+ _context7.next = 24;
11239
11347
  break;
11240
11348
  }
11241
- return _context6.abrupt("return", "INVALID API RESPONSE");
11349
+ return _context7.abrupt("return", "INVALID API RESPONSE");
11242
11350
 
11243
11351
  case 24:
11244
- return _context6.abrupt("return", json.results.map((function(_ref2) {
11352
+ return _context7.abrupt("return", json.results.map((function(_ref2) {
11245
11353
  var confirmations = _ref2.confirmations, dataDecoded = _ref2.dataDecoded, rest = _objectWithoutProperties(_ref2, _excluded);
11246
11354
  return rest;
11247
11355
  })));
11248
11356
 
11249
11357
  case 27:
11250
- _context6.prev = 27;
11251
- _context6.t0 = _context6["catch"](13);
11252
- console.log(_context6.t0);
11253
- return _context6.abrupt("return", "ERROR IN FETCHING");
11358
+ _context7.prev = 27;
11359
+ _context7.t0 = _context7["catch"](13);
11360
+ console.log(_context7.t0);
11361
+ return _context7.abrupt("return", "ERROR IN FETCHING");
11254
11362
 
11255
11363
  case 31:
11256
11364
  case "end":
11257
- return _context6.stop();
11365
+ return _context7.stop();
11258
11366
  }
11259
- }), _callee6, null, [ [ 13, 27 ] ]);
11367
+ }), _callee7, null, [ [ 13, 27 ] ]);
11260
11368
  })));
11261
11369
  return _SAFE.apply(this, arguments);
11262
11370
  }
@@ -11302,6 +11410,7 @@ function _typeof(o) {
11302
11410
  exports.BITOR = BITOR;
11303
11411
  exports.BITRSHIFT = BITRSHIFT;
11304
11412
  exports.BITXOR = BITXOR;
11413
+ exports.BLOCKSCOUT = BLOCKSCOUT;
11305
11414
  exports.CEILING = CEILING;
11306
11415
  exports.CEILINGMATH = CEILINGMATH;
11307
11416
  exports.CEILINGPRECISE = CEILINGPRECISE;