@gearbox-protocol/deploy-tools 1.6.0-next.11 → 1.6.0-next.13
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 +10 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -264259,23 +264259,24 @@ var require_EtherscanVerifier = __commonJS({
|
|
|
264259
264259
|
}
|
|
264260
264260
|
}));
|
|
264261
264261
|
__privateGet(this, _etherscanApi).interceptors.response.use(async (response) => {
|
|
264262
|
-
var _a;
|
|
264263
|
-
if (response.status === 200 && ((_a = response.data) == null ? void 0 : _a.status) === "0") {
|
|
264264
|
-
|
|
264262
|
+
var _a, _b, _c;
|
|
264263
|
+
if (response.status === 200 && ((_a = response.data) == null ? void 0 : _a.status) === "0" && ((_c = (_b = response.data) == null ? void 0 : _b.result) == null ? void 0 : _c.startsWith("Max rate"))) {
|
|
264264
|
+
response.status = 429;
|
|
264265
|
+
throw new axios_1.AxiosError("maxrate", "429", response.config, response.request, response);
|
|
264265
264266
|
}
|
|
264266
264267
|
return response;
|
|
264267
264268
|
});
|
|
264268
264269
|
(0, axios_retry_1.default)(__privateGet(this, _etherscanApi), {
|
|
264269
264270
|
retries: 5,
|
|
264270
264271
|
retryCondition: (e) => {
|
|
264271
|
-
var _a, _b, _c, _d;
|
|
264272
|
-
__privateGet(this, _logger).trace(`Etherscan error, status ${(_a = e.response) == null ? void 0 : _a.status}, msg: ${(_b = e.response) == null ? void 0 : _b.data}`);
|
|
264273
|
-
if (((
|
|
264272
|
+
var _a, _b, _c, _d, _e;
|
|
264273
|
+
__privateGet(this, _logger).trace(`Etherscan error, status ${(_a = e.response) == null ? void 0 : _a.status}, msg: ${(_c = (_b = e.response) == null ? void 0 : _b.data) == null ? void 0 : _c.result}`);
|
|
264274
|
+
if (((_d = e.response) == null ? void 0 : _d.status) === 429) {
|
|
264274
264275
|
return true;
|
|
264275
264276
|
}
|
|
264276
264277
|
try {
|
|
264277
|
-
const resp = (
|
|
264278
|
-
return resp.status === "0" && resp.
|
|
264278
|
+
const resp = (_e = e.response) == null ? void 0 : _e.data;
|
|
264279
|
+
return resp.status === "0" && resp.result.startsWith("Max rate");
|
|
264279
264280
|
} catch {
|
|
264280
264281
|
}
|
|
264281
264282
|
return false;
|
|
@@ -264339,11 +264340,6 @@ var require_EtherscanVerifier = __commonJS({
|
|
|
264339
264340
|
}
|
|
264340
264341
|
});
|
|
264341
264342
|
if (resp.data.status === "0") {
|
|
264342
|
-
__privateGet(this, _logger).trace({
|
|
264343
|
-
data: resp.data,
|
|
264344
|
-
status: resp.status,
|
|
264345
|
-
statusText: resp.statusText
|
|
264346
|
-
});
|
|
264347
264343
|
throw new Error(`cannot verify address ${address}: ${resp.data.result}`);
|
|
264348
264344
|
}
|
|
264349
264345
|
if (resp.data.result.length === 0 || resp.data.result[0].ABI.startsWith("Contract source code not verified")) {
|
|
@@ -414753,7 +414749,7 @@ var require_package3 = __commonJS({
|
|
|
414753
414749
|
module2.exports = {
|
|
414754
414750
|
name: "@gearbox-protocol/deploy-tools",
|
|
414755
414751
|
description: "Gearbox deploy tools",
|
|
414756
|
-
version: "1.6.0-next.
|
|
414752
|
+
version: "1.6.0-next.12",
|
|
414757
414753
|
homepage: "https://gearbox.fi",
|
|
414758
414754
|
keywords: [
|
|
414759
414755
|
"gearbox"
|