@fileverse-dev/formulajs 4.4.11-mod-73 → 4.4.11-mod-74
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 +178 -174
- package/lib/browser/formula.min.js +2 -2
- package/lib/browser/formula.min.js.map +1 -1
- package/lib/cjs/index.cjs +57 -54
- package/lib/esm/index.mjs +57 -54
- package/package.json +1 -1
package/lib/browser/formula.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @fileverse-dev/formulajs v4.4.11-mod-
|
|
1
|
+
/* @fileverse-dev/formulajs v4.4.11-mod-74 */
|
|
2
2
|
var _excluded = [ "confirmations", "dataDecoded" ];
|
|
3
3
|
|
|
4
4
|
function _objectWithoutProperties(e, t) {
|
|
@@ -67,112 +67,6 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
function _defineProperties(e, r) {
|
|
71
|
-
for (var t = 0; t < r.length; t++) {
|
|
72
|
-
var o = r[t];
|
|
73
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0),
|
|
74
|
-
Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function _createClass(e, r, t) {
|
|
79
|
-
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
80
|
-
writable: !1
|
|
81
|
-
}), e;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
function _classCallCheck(a, n) {
|
|
85
|
-
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
function _callSuper(t, o, e) {
|
|
89
|
-
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
function _possibleConstructorReturn(t, e) {
|
|
93
|
-
if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
|
|
94
|
-
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
95
|
-
return _assertThisInitialized(t);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
function _assertThisInitialized(e) {
|
|
99
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
100
|
-
return e;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
function _inherits(t, e) {
|
|
104
|
-
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
105
|
-
t.prototype = Object.create(e && e.prototype, {
|
|
106
|
-
constructor: {
|
|
107
|
-
value: t,
|
|
108
|
-
writable: !0,
|
|
109
|
-
configurable: !0
|
|
110
|
-
}
|
|
111
|
-
}), Object.defineProperty(t, "prototype", {
|
|
112
|
-
writable: !1
|
|
113
|
-
}), e && _setPrototypeOf(t, e);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
function _wrapNativeSuper(t) {
|
|
117
|
-
var r = "function" == typeof Map ? new Map : void 0;
|
|
118
|
-
return _wrapNativeSuper = function _wrapNativeSuper(t) {
|
|
119
|
-
if (null === t || !_isNativeFunction(t)) return t;
|
|
120
|
-
if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
|
|
121
|
-
if (void 0 !== r) {
|
|
122
|
-
if (r.has(t)) return r.get(t);
|
|
123
|
-
r.set(t, Wrapper);
|
|
124
|
-
}
|
|
125
|
-
function Wrapper() {
|
|
126
|
-
return _construct(t, arguments, _getPrototypeOf(this).constructor);
|
|
127
|
-
}
|
|
128
|
-
return Wrapper.prototype = Object.create(t.prototype, {
|
|
129
|
-
constructor: {
|
|
130
|
-
value: Wrapper,
|
|
131
|
-
enumerable: !1,
|
|
132
|
-
writable: !0,
|
|
133
|
-
configurable: !0
|
|
134
|
-
}
|
|
135
|
-
}), _setPrototypeOf(Wrapper, t);
|
|
136
|
-
}, _wrapNativeSuper(t);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
function _construct(t, e, r) {
|
|
140
|
-
if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
|
|
141
|
-
var o = [ null ];
|
|
142
|
-
o.push.apply(o, e);
|
|
143
|
-
var p = new (t.bind.apply(t, o));
|
|
144
|
-
return r && _setPrototypeOf(p, r.prototype), p;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
function _isNativeReflectConstruct() {
|
|
148
|
-
try {
|
|
149
|
-
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
|
|
150
|
-
} catch (t) {}
|
|
151
|
-
return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
|
|
152
|
-
return !!t;
|
|
153
|
-
})();
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
function _isNativeFunction(t) {
|
|
157
|
-
try {
|
|
158
|
-
return -1 !== Function.toString.call(t).indexOf("[native code]");
|
|
159
|
-
} catch (n) {
|
|
160
|
-
return "function" == typeof t;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
function _setPrototypeOf(t, e) {
|
|
165
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
166
|
-
return t.__proto__ = e, t;
|
|
167
|
-
}, _setPrototypeOf(t, e);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
function _getPrototypeOf(t) {
|
|
171
|
-
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
|
|
172
|
-
return t.__proto__ || Object.getPrototypeOf(t);
|
|
173
|
-
}, _getPrototypeOf(t);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
70
|
function _regeneratorRuntime() {
|
|
177
71
|
"use strict";
|
|
178
72
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() {
|
|
@@ -495,6 +389,20 @@ function _defineProperty(e, r, t) {
|
|
|
495
389
|
}) : e[r] = t, e;
|
|
496
390
|
}
|
|
497
391
|
|
|
392
|
+
function _defineProperties(e, r) {
|
|
393
|
+
for (var t = 0; t < r.length; t++) {
|
|
394
|
+
var o = r[t];
|
|
395
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0),
|
|
396
|
+
Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
function _createClass(e, r, t) {
|
|
401
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
402
|
+
writable: !1
|
|
403
|
+
}), e;
|
|
404
|
+
}
|
|
405
|
+
|
|
498
406
|
function _toPropertyKey(t) {
|
|
499
407
|
var i = _toPrimitive(t, "string");
|
|
500
408
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
@@ -511,6 +419,98 @@ function _toPrimitive(t, r) {
|
|
|
511
419
|
return ("string" === r ? String : Number)(t);
|
|
512
420
|
}
|
|
513
421
|
|
|
422
|
+
function _classCallCheck(a, n) {
|
|
423
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
function _callSuper(t, o, e) {
|
|
427
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
function _possibleConstructorReturn(t, e) {
|
|
431
|
+
if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
|
|
432
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
433
|
+
return _assertThisInitialized(t);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
function _assertThisInitialized(e) {
|
|
437
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
438
|
+
return e;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
function _inherits(t, e) {
|
|
442
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
443
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
444
|
+
constructor: {
|
|
445
|
+
value: t,
|
|
446
|
+
writable: !0,
|
|
447
|
+
configurable: !0
|
|
448
|
+
}
|
|
449
|
+
}), Object.defineProperty(t, "prototype", {
|
|
450
|
+
writable: !1
|
|
451
|
+
}), e && _setPrototypeOf(t, e);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
function _wrapNativeSuper(t) {
|
|
455
|
+
var r = "function" == typeof Map ? new Map : void 0;
|
|
456
|
+
return _wrapNativeSuper = function _wrapNativeSuper(t) {
|
|
457
|
+
if (null === t || !_isNativeFunction(t)) return t;
|
|
458
|
+
if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
|
|
459
|
+
if (void 0 !== r) {
|
|
460
|
+
if (r.has(t)) return r.get(t);
|
|
461
|
+
r.set(t, Wrapper);
|
|
462
|
+
}
|
|
463
|
+
function Wrapper() {
|
|
464
|
+
return _construct(t, arguments, _getPrototypeOf(this).constructor);
|
|
465
|
+
}
|
|
466
|
+
return Wrapper.prototype = Object.create(t.prototype, {
|
|
467
|
+
constructor: {
|
|
468
|
+
value: Wrapper,
|
|
469
|
+
enumerable: !1,
|
|
470
|
+
writable: !0,
|
|
471
|
+
configurable: !0
|
|
472
|
+
}
|
|
473
|
+
}), _setPrototypeOf(Wrapper, t);
|
|
474
|
+
}, _wrapNativeSuper(t);
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
function _construct(t, e, r) {
|
|
478
|
+
if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
|
|
479
|
+
var o = [ null ];
|
|
480
|
+
o.push.apply(o, e);
|
|
481
|
+
var p = new (t.bind.apply(t, o));
|
|
482
|
+
return r && _setPrototypeOf(p, r.prototype), p;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
function _isNativeReflectConstruct() {
|
|
486
|
+
try {
|
|
487
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
|
|
488
|
+
} catch (t) {}
|
|
489
|
+
return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
|
|
490
|
+
return !!t;
|
|
491
|
+
})();
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
function _isNativeFunction(t) {
|
|
495
|
+
try {
|
|
496
|
+
return -1 !== Function.toString.call(t).indexOf("[native code]");
|
|
497
|
+
} catch (n) {
|
|
498
|
+
return "function" == typeof t;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
function _setPrototypeOf(t, e) {
|
|
503
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
504
|
+
return t.__proto__ = e, t;
|
|
505
|
+
}, _setPrototypeOf(t, e);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
function _getPrototypeOf(t) {
|
|
509
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
|
|
510
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
511
|
+
}, _getPrototypeOf(t);
|
|
512
|
+
}
|
|
513
|
+
|
|
514
514
|
function _slicedToArray(r, e) {
|
|
515
515
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
516
516
|
}
|
|
@@ -11068,42 +11068,101 @@ function _typeof(o) {
|
|
|
11068
11068
|
Neynar: "Neynar",
|
|
11069
11069
|
Defillama: "Defillama"
|
|
11070
11070
|
};
|
|
11071
|
+
var ValidationError = function(_Error) {
|
|
11072
|
+
function ValidationError(message) {
|
|
11073
|
+
_classCallCheck(this, ValidationError);
|
|
11074
|
+
return _callSuper(this, ValidationError, [ message ]);
|
|
11075
|
+
}
|
|
11076
|
+
_inherits(ValidationError, _Error);
|
|
11077
|
+
return _createClass(ValidationError);
|
|
11078
|
+
}(_wrapNativeSuper(Error));
|
|
11079
|
+
var MissingApiKeyError = function(_Error2) {
|
|
11080
|
+
function MissingApiKeyError(apiKeyName) {
|
|
11081
|
+
_classCallCheck(this, MissingApiKeyError);
|
|
11082
|
+
return _callSuper(this, MissingApiKeyError, [ "API key for ".concat(apiKeyName, " is missing") ]);
|
|
11083
|
+
}
|
|
11084
|
+
_inherits(MissingApiKeyError, _Error2);
|
|
11085
|
+
return _createClass(MissingApiKeyError);
|
|
11086
|
+
}(_wrapNativeSuper(Error));
|
|
11087
|
+
var RateLimitError = function(_Error3) {
|
|
11088
|
+
function RateLimitError(apiKeyName) {
|
|
11089
|
+
var _this;
|
|
11090
|
+
_classCallCheck(this, RateLimitError);
|
|
11091
|
+
_this = _callSuper(this, RateLimitError, [ "You have reached the rate limit for ".concat(apiKeyName) ]);
|
|
11092
|
+
_this.api = apiKeyName;
|
|
11093
|
+
return _this;
|
|
11094
|
+
}
|
|
11095
|
+
_inherits(RateLimitError, _Error3);
|
|
11096
|
+
return _createClass(RateLimitError);
|
|
11097
|
+
}(_wrapNativeSuper(Error));
|
|
11098
|
+
var NetworkError = function(_Error4) {
|
|
11099
|
+
function NetworkError(apiKeyName, status) {
|
|
11100
|
+
var _this2;
|
|
11101
|
+
_classCallCheck(this, NetworkError);
|
|
11102
|
+
_this2 = _callSuper(this, NetworkError, [ status === 429 ? "You have reached the rate limit for ".concat(apiKeyName) : "".concat(apiKeyName, " API failed with status code: ").concat(status) ]);
|
|
11103
|
+
_this2.status = status;
|
|
11104
|
+
_this2.api = apiKeyName;
|
|
11105
|
+
return _this2;
|
|
11106
|
+
}
|
|
11107
|
+
_inherits(NetworkError, _Error4);
|
|
11108
|
+
return _createClass(NetworkError);
|
|
11109
|
+
}(_wrapNativeSuper(Error));
|
|
11110
|
+
var EnsError = function(_Error5) {
|
|
11111
|
+
function EnsError(ensname) {
|
|
11112
|
+
_classCallCheck(this, EnsError);
|
|
11113
|
+
return _callSuper(this, EnsError, [ "".concat(ensname, " is not a supported ens name") ]);
|
|
11114
|
+
}
|
|
11115
|
+
_inherits(EnsError, _Error5);
|
|
11116
|
+
return _createClass(EnsError);
|
|
11117
|
+
}(_wrapNativeSuper(Error));
|
|
11118
|
+
var InvalidApiKeyError = function(_Error6) {
|
|
11119
|
+
function InvalidApiKeyError(apiKeyName) {
|
|
11120
|
+
var _this3;
|
|
11121
|
+
_classCallCheck(this, InvalidApiKeyError);
|
|
11122
|
+
_this3 = _callSuper(this, InvalidApiKeyError, [ "Api key is invalid for ".concat(apiKeyName) ]);
|
|
11123
|
+
_this3.api = apiKeyName;
|
|
11124
|
+
return _this3;
|
|
11125
|
+
}
|
|
11126
|
+
_inherits(InvalidApiKeyError, _Error6);
|
|
11127
|
+
return _createClass(InvalidApiKeyError);
|
|
11128
|
+
}(_wrapNativeSuper(Error));
|
|
11071
11129
|
var stagingFileverseProxyUrl = "https://staging-api-proxy-ca4268d7d581.herokuapp.com/proxy";
|
|
11130
|
+
var productionFileverseProxyUrl = "".concat(process.env.NEXT_PUBLIC_PROXY_BASE_URL, "/proxy");
|
|
11072
11131
|
var PROXY_MAP = {
|
|
11073
11132
|
Etherscan: {
|
|
11074
|
-
url:
|
|
11133
|
+
url: productionFileverseProxyUrl || stagingFileverseProxyUrl,
|
|
11075
11134
|
removeParams: [ "apikey" ]
|
|
11076
11135
|
},
|
|
11077
11136
|
Basescan: {
|
|
11078
|
-
url:
|
|
11137
|
+
url: productionFileverseProxyUrl || stagingFileverseProxyUrl,
|
|
11079
11138
|
removeParams: [ "apikey" ]
|
|
11080
11139
|
},
|
|
11081
11140
|
Gnosisscan: {
|
|
11082
|
-
url:
|
|
11141
|
+
url: productionFileverseProxyUrl || stagingFileverseProxyUrl,
|
|
11083
11142
|
removeParams: [ "apikey" ]
|
|
11084
11143
|
},
|
|
11085
11144
|
Coingecko: {
|
|
11086
|
-
url:
|
|
11145
|
+
url: productionFileverseProxyUrl || stagingFileverseProxyUrl,
|
|
11087
11146
|
removeParams: [ "apikey" ]
|
|
11088
11147
|
},
|
|
11089
11148
|
Firefly: {
|
|
11090
|
-
url:
|
|
11149
|
+
url: productionFileverseProxyUrl || stagingFileverseProxyUrl,
|
|
11091
11150
|
removeParams: [ "apikey" ]
|
|
11092
11151
|
},
|
|
11093
11152
|
Neynar: {
|
|
11094
|
-
url:
|
|
11153
|
+
url: productionFileverseProxyUrl || stagingFileverseProxyUrl,
|
|
11095
11154
|
removeParams: [ "api_key" ]
|
|
11096
11155
|
},
|
|
11097
11156
|
Safe: {
|
|
11098
|
-
url:
|
|
11157
|
+
url: productionFileverseProxyUrl || stagingFileverseProxyUrl,
|
|
11099
11158
|
removeParams: [ "api_key" ]
|
|
11100
11159
|
},
|
|
11101
11160
|
Defillama: {
|
|
11102
|
-
url:
|
|
11161
|
+
url: productionFileverseProxyUrl || stagingFileverseProxyUrl,
|
|
11103
11162
|
removeParams: [ "api_key" ]
|
|
11104
11163
|
},
|
|
11105
11164
|
GnosisPay: {
|
|
11106
|
-
url:
|
|
11165
|
+
url: productionFileverseProxyUrl || stagingFileverseProxyUrl,
|
|
11107
11166
|
removeParams: [ "api_key" ]
|
|
11108
11167
|
}
|
|
11109
11168
|
};
|
|
@@ -11122,6 +11181,9 @@ function _typeof(o) {
|
|
|
11122
11181
|
function getUrlAndHeaders(_ref) {
|
|
11123
11182
|
var url = _ref.url, serviceName = _ref.serviceName, _ref$headers = _ref.headers, headers = _ref$headers === void 0 ? {} : _ref$headers;
|
|
11124
11183
|
var apiKeyLS = window.localStorage.getItem(SERVICES_API_KEY[serviceName]);
|
|
11184
|
+
if (SERVICES_API_KEY[serviceName] && (!apiKeyLS || apiKeyLS === "")) {
|
|
11185
|
+
throw new MissingApiKeyError(SERVICES_API_KEY[serviceName]);
|
|
11186
|
+
}
|
|
11125
11187
|
var isProxyModeEnabledValue = apiKeyLS === "DEFAULT_PROXY_MODE";
|
|
11126
11188
|
var proxyConfig = PROXY_MAP[serviceName];
|
|
11127
11189
|
if (isProxyModeEnabledValue && proxyConfig && serviceName && SERVICES_API_KEY[serviceName]) {
|
|
@@ -11258,64 +11320,6 @@ function _typeof(o) {
|
|
|
11258
11320
|
var fromEnsNameToAddress$1 = {
|
|
11259
11321
|
fromEnsNameToAddress: fromEnsNameToAddress
|
|
11260
11322
|
};
|
|
11261
|
-
var ValidationError = function(_Error) {
|
|
11262
|
-
function ValidationError(message) {
|
|
11263
|
-
_classCallCheck(this, ValidationError);
|
|
11264
|
-
return _callSuper(this, ValidationError, [ message ]);
|
|
11265
|
-
}
|
|
11266
|
-
_inherits(ValidationError, _Error);
|
|
11267
|
-
return _createClass(ValidationError);
|
|
11268
|
-
}(_wrapNativeSuper(Error));
|
|
11269
|
-
var MissingApiKeyError = function(_Error2) {
|
|
11270
|
-
function MissingApiKeyError(apiKeyName) {
|
|
11271
|
-
_classCallCheck(this, MissingApiKeyError);
|
|
11272
|
-
return _callSuper(this, MissingApiKeyError, [ "API key for ".concat(apiKeyName, " is missing") ]);
|
|
11273
|
-
}
|
|
11274
|
-
_inherits(MissingApiKeyError, _Error2);
|
|
11275
|
-
return _createClass(MissingApiKeyError);
|
|
11276
|
-
}(_wrapNativeSuper(Error));
|
|
11277
|
-
var RateLimitError = function(_Error3) {
|
|
11278
|
-
function RateLimitError(apiKeyName) {
|
|
11279
|
-
var _this;
|
|
11280
|
-
_classCallCheck(this, RateLimitError);
|
|
11281
|
-
_this = _callSuper(this, RateLimitError, [ "You have reached the rate limit for ".concat(apiKeyName) ]);
|
|
11282
|
-
_this.api = apiKeyName;
|
|
11283
|
-
return _this;
|
|
11284
|
-
}
|
|
11285
|
-
_inherits(RateLimitError, _Error3);
|
|
11286
|
-
return _createClass(RateLimitError);
|
|
11287
|
-
}(_wrapNativeSuper(Error));
|
|
11288
|
-
var NetworkError = function(_Error4) {
|
|
11289
|
-
function NetworkError(apiKeyName, status) {
|
|
11290
|
-
var _this2;
|
|
11291
|
-
_classCallCheck(this, NetworkError);
|
|
11292
|
-
_this2 = _callSuper(this, NetworkError, [ status === 429 ? "You have reached the rate limit for ".concat(apiKeyName) : "".concat(apiKeyName, " API failed with status code: ").concat(status) ]);
|
|
11293
|
-
_this2.status = status;
|
|
11294
|
-
_this2.api = apiKeyName;
|
|
11295
|
-
return _this2;
|
|
11296
|
-
}
|
|
11297
|
-
_inherits(NetworkError, _Error4);
|
|
11298
|
-
return _createClass(NetworkError);
|
|
11299
|
-
}(_wrapNativeSuper(Error));
|
|
11300
|
-
var EnsError = function(_Error5) {
|
|
11301
|
-
function EnsError(ensname) {
|
|
11302
|
-
_classCallCheck(this, EnsError);
|
|
11303
|
-
return _callSuper(this, EnsError, [ "".concat(ensname, " is not a supported ens name") ]);
|
|
11304
|
-
}
|
|
11305
|
-
_inherits(EnsError, _Error5);
|
|
11306
|
-
return _createClass(EnsError);
|
|
11307
|
-
}(_wrapNativeSuper(Error));
|
|
11308
|
-
var InvalidApiKeyError = function(_Error6) {
|
|
11309
|
-
function InvalidApiKeyError(apiKeyName) {
|
|
11310
|
-
var _this3;
|
|
11311
|
-
_classCallCheck(this, InvalidApiKeyError);
|
|
11312
|
-
_this3 = _callSuper(this, InvalidApiKeyError, [ "Api key is invalid for ".concat(apiKeyName) ]);
|
|
11313
|
-
_this3.api = apiKeyName;
|
|
11314
|
-
return _this3;
|
|
11315
|
-
}
|
|
11316
|
-
_inherits(InvalidApiKeyError, _Error6);
|
|
11317
|
-
return _createClass(InvalidApiKeyError);
|
|
11318
|
-
}(_wrapNativeSuper(Error));
|
|
11319
11323
|
function handleScanRequest(_x6) {
|
|
11320
11324
|
return _handleScanRequest.apply(this, arguments);
|
|
11321
11325
|
}
|