@gearbox-protocol/deploy-tools 5.49.2 → 5.49.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.
Files changed (2) hide show
  1. package/dist/index.mjs +3 -13
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -395314,16 +395314,6 @@ function createRawTx(to, parameters, description) {
395314
395314
  };
395315
395315
  }
395316
395316
 
395317
- // ../../node_modules/@gearbox-protocol/sdk/dist/esm/sdk/utils/etherscan.js
395318
- function etherscanApiUrl(networkOrChainId) {
395319
- const chain = getChain(networkOrChainId);
395320
- const url2 = chain.blockExplorers?.default?.apiUrl;
395321
- if (!url2) {
395322
- throw new Error(`block explorer api url for ${chain.name} not configured`);
395323
- }
395324
- return url2;
395325
- }
395326
-
395327
395317
  // ../../node_modules/date-fns/constants.js
395328
395318
  var daysInYear = 365.2425;
395329
395319
  var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1e3;
@@ -451219,7 +451209,7 @@ var EtherscanVerifier = class extends ProviderBase {
451219
451209
  #etherscanApiKey;
451220
451210
  async init() {
451221
451211
  await super.init();
451222
- this.#etherscanBase = etherscanApiUrl(this.chainId);
451212
+ this.#etherscanBase = `https://api.etherscan.io/v2/api?chainid=${this.chainId}`;
451223
451213
  const apikey = API_KEYS[this.network]?.(this.options);
451224
451214
  if (!apikey) {
451225
451215
  throw new Error(`etherscan api key not specified for ${this.network}`);
@@ -451301,7 +451291,7 @@ var EtherscanVerifier = class extends ProviderBase {
451301
451291
  await writeFile2(cacheFile, json_stringify(result));
451302
451292
  }
451303
451293
  async #fetch(address) {
451304
- const url2 = `${this.etherscanBase}?module=contract&action=getsourcecode&address=${address}&apikey=${this.etherscanApiKey}`;
451294
+ const url2 = `${this.etherscanBase}&module=contract&action=getsourcecode&address=${address}&apikey=${this.etherscanApiKey}`;
451305
451295
  const _fetch = async () => {
451306
451296
  const resp = await fetch(url2);
451307
451297
  const data = await resp.json();
@@ -458770,7 +458760,7 @@ function getRenderer(opts) {
458770
458760
  var package_default = {
458771
458761
  name: "@gearbox-protocol/deploy-tools",
458772
458762
  description: "Gearbox deploy tools",
458773
- version: "5.49.2",
458763
+ version: "5.49.4",
458774
458764
  homepage: "https://gearbox.fi",
458775
458765
  keywords: [
458776
458766
  "gearbox"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/deploy-tools",
3
3
  "description": "Gearbox deploy tools",
4
- "version": "5.49.2",
4
+ "version": "5.49.4",
5
5
  "homepage": "https://gearbox.fi",
6
6
  "keywords": [
7
7
  "gearbox"