@gearbox-protocol/deploy-tools 5.11.16 → 5.11.17
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.mjs +12 -11
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -399348,15 +399348,16 @@ import path4 from "node:path";
|
|
|
399348
399348
|
|
|
399349
399349
|
// ../../packages/shared/dist/etherscan.js
|
|
399350
399350
|
function etherscanApiUrl(chainId) {
|
|
399351
|
-
|
|
399352
|
-
|
|
399353
|
-
|
|
399354
|
-
|
|
399355
|
-
|
|
399356
|
-
|
|
399357
|
-
|
|
399358
|
-
|
|
399359
|
-
|
|
399351
|
+
for (const chain of Object.values(chains)) {
|
|
399352
|
+
if (chain.id === chainId) {
|
|
399353
|
+
const url = chain.blockExplorers?.default?.apiUrl;
|
|
399354
|
+
if (url) {
|
|
399355
|
+
return url;
|
|
399356
|
+
}
|
|
399357
|
+
throw new Error(`etherscan api for ${chainId} not configured`);
|
|
399358
|
+
}
|
|
399359
|
+
}
|
|
399360
|
+
throw new Error(`unsupported chain id: ${chainId}`);
|
|
399360
399361
|
}
|
|
399361
399362
|
|
|
399362
399363
|
// ../../node_modules/zod/lib/index.mjs
|
|
@@ -407922,7 +407923,7 @@ var EtherscanVerifier = class extends ProviderBase {
|
|
|
407922
407923
|
await writeFile3(cacheFile, json_stringify(result));
|
|
407923
407924
|
}
|
|
407924
407925
|
async #fetch(address) {
|
|
407925
|
-
const url = `${this.etherscanBase}
|
|
407926
|
+
const url = `${this.etherscanBase}?module=contract&action=getsourcecode&address=${address}&apikey=${this.etherscanApiKey}`;
|
|
407926
407927
|
const _fetch = async () => {
|
|
407927
407928
|
const resp = await fetch(url);
|
|
407928
407929
|
const data = await resp.json();
|
|
@@ -414220,7 +414221,7 @@ function getRenderer(opts) {
|
|
|
414220
414221
|
var package_default = {
|
|
414221
414222
|
name: "@gearbox-protocol/deploy-tools",
|
|
414222
414223
|
description: "Gearbox deploy tools",
|
|
414223
|
-
version: "5.11.
|
|
414224
|
+
version: "5.11.17",
|
|
414224
414225
|
homepage: "https://gearbox.fi",
|
|
414225
414226
|
keywords: [
|
|
414226
414227
|
"gearbox"
|