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Root":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@tenderly/sdk@0.3.1/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n  for (var prop in b || (b = {}))\n    if (__hasOwnProp.call(b, prop))\n      __defNormalProp(a, prop, b[prop]);\n  if (__getOwnPropSymbols)\n    for (var prop of __getOwnPropSymbols(b)) {\n      if (__propIsEnum.call(b, prop))\n        __defNormalProp(a, prop, b[prop]);\n    }\n  return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __objRest = (source, exclude) => {\n  var target = {};\n  for (var prop in source)\n    if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)\n      target[prop] = source[prop];\n  if (source != null && __getOwnPropSymbols)\n    for (var prop of __getOwnPropSymbols(source)) {\n      if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))\n        target[prop] = source[prop];\n    }\n  return target;\n};\nvar __export = (target, all) => {\n  for (var name in all)\n    __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n  if (from && typeof from === \"object\" || typeof from === \"function\") {\n    for (let key of __getOwnPropNames(from))\n      if (!__hasOwnProp.call(to, key) && key !== except)\n        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n  }\n  return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n  // If the importer is in node compatibility mode or this is not an ESM\n  // file that has been converted to a CommonJS file using a Babel-\n  // compatible transform (i.e. \"__esModule\" has not been set), then set\n  // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n  isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n  mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar __publicField = (obj, key, value) => {\n  __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n  return value;\n};\nvar __async = (__this, __arguments, generator) => {\n  return new Promise((resolve, reject) => {\n    var fulfilled = (value) => {\n      try {\n        step(generator.next(value));\n      } catch (e) {\n        reject(e);\n      }\n    };\n    var rejected = (value) => {\n      try {\n        step(generator.throw(value));\n      } catch (e) {\n        reject(e);\n      }\n    };\n    var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);\n    step((generator = generator.apply(__this, __arguments)).next());\n  });\n};\n\n// lib/index.ts\nvar lib_exports = {};\n__export(lib_exports, {\n  ApiError: () => ApiError,\n  BytecodeMismatchError: () => BytecodeMismatchError,\n  CompilationError: () => CompilationError,\n  EncodingError: () => EncodingError,\n  GeneralError: () => GeneralError,\n  InvalidArgumentsError: () => InvalidArgumentsError,\n  InvalidResponseError: () => InvalidResponseError,\n  Network: () => Network,\n  NotFoundError: () => NotFoundError,\n  Tenderly: () => Tenderly,\n  UnexpectedVerificationError: () => UnexpectedVerificationError,\n  getEnvironmentVariables: () => getEnvironmentVariables,\n  handleError: () => handleError\n});\nmodule.exports = __toCommonJS(lib_exports);\n\n// lib/errors/GeneralError.ts\nvar GeneralError = class extends Error {\n  constructor({ id, message, slug, data }) {\n    super(message);\n    __publicField(this, \"id\");\n    __publicField(this, \"message\");\n    __publicField(this, \"slug\");\n    __publicField(this, \"data\");\n    this.id = id;\n    this.message = message;\n    this.slug = slug;\n    this.data = data;\n  }\n  static handle(error) {\n    if (error instanceof Error)\n      throw error;\n    throw new Error(JSON.stringify(error));\n  }\n};\n__name(GeneralError, \"GeneralError\");\n\n// lib/errors/Error.types.ts\nvar import_axios = require(\"axios\");\nvar isTenderlyAxiosError = /* @__PURE__ */ __name((error) => {\n  var _a, _b, _c;\n  return (0, import_axios.isAxiosError)(error) && !!(((_b = (_a = error == null ? void 0 : error.response) == null ? void 0 : _a.data) == null ? void 0 : _b.error) && ((_c = error == null ? void 0 : error.response) == null ? void 0 : _c.status));\n}, \"isTenderlyAxiosError\");\n\n// lib/errors/ApiError.ts\nvar ApiError = class extends GeneralError {\n  constructor(_a) {\n    var _b = _a, { status } = _b, error = __objRest(_b, [\"status\"]);\n    super(error);\n    __publicField(this, \"status\");\n    this.status = status;\n    this.name = \"ApiError\";\n  }\n  static handle(error) {\n    if (isTenderlyAxiosError(error)) {\n      throw new ApiError(__spreadValues({\n        status: error.response.status\n      }, error.response.data.error));\n    }\n  }\n};\n__name(ApiError, \"ApiError\");\n\n// lib/errors/BytecodeMismatchError.ts\nvar BytecodeMismatchError = class extends GeneralError {\n  constructor(message, data) {\n    super({\n      message,\n      id: \"local_error\",\n      slug: \"bytecode_mismatch_error\",\n      data\n    });\n    this.name = \"BytecodeMismatchError\";\n  }\n};\n__name(BytecodeMismatchError, \"BytecodeMismatchError\");\n\n// lib/errors/CompilationError.ts\nvar CompilationError = class extends GeneralError {\n  constructor(message, data) {\n    super({\n      message,\n      id: \"local_error\",\n      slug: \"compilation_error\",\n      data\n    });\n    this.name = \"CompilationError\";\n  }\n};\n__name(CompilationError, \"CompilationError\");\n\n// lib/errors/EncodingError.ts\nvar EncodingError = class extends GeneralError {\n  constructor(error) {\n    super(error);\n    this.name = \"EncodingError\";\n  }\n};\n__name(EncodingError, \"EncodingError\");\n\n// lib/errors/Error.handlerRegistry.ts\nvar errorHandlers = [\n  ApiError,\n  GeneralError\n];\n\n// lib/errors/InvalidArgumentsError.ts\nvar InvalidArgumentsError = class extends GeneralError {\n  constructor(message) {\n    super({\n      id: \"local_error\",\n      message,\n      slug: \"invalid_arguments\"\n    });\n    this.name = \"InvalidArgumentsError\";\n  }\n};\n__name(InvalidArgumentsError, \"InvalidArgumentsError\");\n\n// lib/errors/InvalidResponseError.ts\nvar InvalidResponseError = class extends GeneralError {\n  constructor(message) {\n    super({\n      id: \"local_error\",\n      message,\n      slug: \"invalid_response\"\n    });\n    this.name = \"InvalidResponseError\";\n  }\n};\n__name(InvalidResponseError, \"InvalidResponseError\");\n\n// lib/errors/NotFoundError.ts\nvar NotFoundError = class extends GeneralError {\n  constructor(message) {\n    super({\n      message,\n      id: \"local_error\",\n      slug: \"resource_not_found\"\n    });\n    this.name = \"NotFoundError\";\n  }\n};\n__name(NotFoundError, \"NotFoundError\");\n\n// lib/errors/UnexpectedVerificationError.ts\nvar UnexpectedVerificationError = class extends GeneralError {\n  constructor(message) {\n    super({\n      message,\n      id: \"local_error\",\n      slug: \"unexpected_verification_error\"\n    });\n    this.name = \"UnexpectedVerificationError\";\n  }\n};\n__name(UnexpectedVerificationError, \"UnexpectedVerificationError\");\n\n// lib/errors/index.ts\nfunction handleError(error) {\n  errorHandlers.forEach((handler) => handler.handle(error));\n  throw error;\n}\n__name(handleError, \"handleError\");\n\n// lib/repositories/contracts/contracts.repository.ts\nfunction mapContractResponseToContractModel(contractResponse) {\n  const retVal = {\n    address: contractResponse.contract.address,\n    network: Number.parseInt(contractResponse.contract.network_id)\n  };\n  if (contractResponse.display_name) {\n    retVal.displayName = contractResponse.display_name;\n  }\n  if (contractResponse.tags) {\n    retVal.tags = contractResponse.tags.map(({ tag }) => tag);\n  }\n  return retVal;\n}\n__name(mapContractResponseToContractModel, \"mapContractResponseToContractModel\");\nfunction mapContractModelToContractRequest(contract) {\n  return {\n    address: contract.address,\n    network_id: `${contract.network}`,\n    display_name: contract.displayName\n  };\n}\n__name(mapContractModelToContractRequest, \"mapContractModelToContractRequest\");\nvar ContractRepository = class {\n  constructor({ apiProvider, configuration }) {\n    __publicField(this, \"apiV1\");\n    __publicField(this, \"apiV2\");\n    __publicField(this, \"configuration\");\n    this.apiV1 = apiProvider.getApiClient({\n      version: \"v1\"\n    });\n    this.apiV2 = apiProvider.getApiClient({\n      version: \"v2\"\n    });\n    this.configuration = configuration;\n  }\n  /**\n  * Get a contract by address if it exists in the Tenderly's instances' project\n  * @param address - The address of the contract\n  * @returns The contract object in a plain format\n  * @example\n  * const contract = await tenderly.contracts.get('0x1234567890');\n  */\n  get(address) {\n    return __async(this, null, function* () {\n      var _a;\n      try {\n        const result = yield this.apiV2.get(`\n      /accounts/${this.configuration.accountName}\n      /projects/${this.configuration.projectName}\n      /accounts\n    `, {\n          \"addresses[]\": [\n            address\n          ],\n          \"networkIDs[]\": [\n            `${this.configuration.network}`\n          ],\n          \"types[]\": [\n            \"contract\",\n            \"unverified_contract\"\n          ]\n        });\n        if (!((_a = result.data) == null ? void 0 : _a.accounts) || !result.data.accounts[0]) {\n          throw new NotFoundError(`Contract with address ${address} not found`);\n        }\n        return mapContractResponseToContractModel(result.data.accounts[0]);\n      } catch (error) {\n        handleError(error);\n      }\n    });\n  }\n  /**\n  * Add a contract to the Tenderly's instances' project\n  * @param address - The address of the contract\n  * @param contractData - The data of the contract\n  * @returns The contract object in a plain format\n  * @example\n  * const contract = await tenderly.contracts.add('0x1234567890');\n  * // or\n  * const contract = await tenderly.contracts.add('0x1234567890', { displayName: 'MyContract' });\n  */\n  add(_0) {\n    return __async(this, arguments, function* (address, contractData = {}) {\n      try {\n        yield this.apiV1.post(`\n        /account/${this.configuration.accountName}\n        /project/${this.configuration.projectName}\n        /address\n      `, mapContractModelToContractRequest(__spreadValues({\n          address,\n          network: this.configuration.network\n        }, contractData)));\n        return this.get(address);\n      } catch (error) {\n        handleError(error);\n      }\n    });\n  }\n  /**\n  * Remove a contract from the Tenderly's instances' project\n  * @param address - The address of the contract\n  * @returns The contract object in a plain format\n  * @example\n  * await tenderly.contracts.remove('0x1234567890');\n  */\n  remove(address) {\n    return __async(this, null, function* () {\n      try {\n        yield this.apiV1.delete(`\n        /account/${this.configuration.accountName}\n        /project/${this.configuration.projectName}\n        /contract/${this.configuration.network}/${address}\n      `);\n      } catch (error) {\n        handleError(error);\n      }\n    });\n  }\n  /**\n  * Update a contract in the Tenderly's instances' project\n  * @param address - The address of the contract\n  * @param payload - The data of the contract\n  * @returns The contract object in a plain format\n  * @example\n  * const contract = await tenderly.contracts.update('0x1234567890', { displayName: 'MyContract' });\n  * // or\n  * const contract = await tenderly.contracts.update('0x1234567890', { tags: ['my-tag'] });\n  * // or\n  * const contract = await tenderly.contracts.update('0x1234567890', {\n  *   displayName: 'MyContract',\n  *   appendTags: ['my-tag']\n  * });\n  * // or\n  * const contract = await tenderly.contracts.update('0x1234567890', { appendTags: ['my-tag'] });\n  */\n  update(address, payload) {\n    return __async(this, null, function* () {\n      var _a;\n      try {\n        let promiseArray = (_a = payload.appendTags) == null ? void 0 : _a.map((tag) => this.apiV1.post(`\n          /account/${this.configuration.accountName}\n          /project/${this.configuration.projectName}\n          /tag\n        `, {\n          contract_ids: [\n            `eth:${this.configuration.network}:${address}`\n          ],\n          tag\n        }));\n        promiseArray || (promiseArray = []);\n        if (payload.displayName) {\n          promiseArray.push(this.apiV1.post(`\n            /account/${this.configuration.accountName}\n            /project/${this.configuration.projectName}\n            /contract/${this.configuration.network}/${address}\n            /rename\n          `, {\n            display_name: payload.displayName\n          }));\n        }\n        yield Promise.all(promiseArray);\n        return yield this.get(address);\n      } catch (error) {\n        handleError(error);\n      }\n    });\n  }\n  getAll() {\n    return __async(this, null, function* () {\n      try {\n        const wallets = yield this.apiV2.get(`\n      /accounts/${this.configuration.accountName}\n      /projects/${this.configuration.projectName}\n      /accounts\n    `, {\n          \"types[]\": \"contract\"\n        });\n        return wallets.data.accounts.map(mapContractResponseToContractModel);\n      } catch (error) {\n        handleError(error);\n      }\n    });\n  }\n  /**\n  * Get all contracts in the Tenderly's instances' project\n  * @param queryObject - The query object\n  * @returns The contract objects in a plain format\n  * @example\n  * const contracts = await tenderly.contracts.getBy();\n  * const contracts = await tenderly.contracts.getBy({\n  *   tags: ['my-tag'],\n  *   displayName: ['MyContract']\n  * });\n  */\n  getBy() {\n    return __async(this, arguments, function* (queryObject = {}) {\n      var _a, _b;\n      try {\n        const queryParams = this.buildQueryParams(queryObject);\n        const contracts = yield this.apiV2.get(`\n      /accounts/${this.configuration.accountName}\n      /projects/${this.configuration.projectName}\n      /accounts\n    `, __spreadProps(__spreadValues({}, queryParams), {\n          \"types[]\": \"contract\"\n        }));\n        if ((_b = (_a = contracts == null ? void 0 : contracts.data) == null ? void 0 : _a.accounts) == null ? void 0 : _b.length) {\n          return contracts.data.accounts.map(mapContractResponseToContractModel);\n        } else {\n          return [];\n        }\n      } catch (error) {\n        handleError(error);\n      }\n    });\n  }\n  buildQueryParams(queryObject = {}) {\n    const queryParams = {\n      \"networkIDs[]\": `${this.configuration.network}`\n    };\n    if (queryObject.displayNames && queryObject.displayNames.filter((x) => !!x).length > 0) {\n      queryParams[\"display_names[]\"] = queryObject.displayNames;\n    }\n    if (queryObject.tags && queryObject.tags.filter((x) => !!x).length > 0) {\n      queryParams[\"tags[]\"] = queryObject.tags;\n    }\n    return queryParams;\n  }\n  /**Verifies a contract on Tenderly by submitting a verification request with\n  * the provided address and verification details.\n  * @param {string} address - The address of the contract to be verified.\n  * @param {VerificationRequest} verificationRequest - Details of the verification request.\n  * @returns {Promise<TenderlyContract>} - A Promise that resolves to a TenderlyContract\n  * object representing the verified contract.\n  */\n  verify(address, verificationRequest) {\n    return __async(this, null, function* () {\n      if (!this._isFullyQualifiedContractName(verificationRequest.contractToVerify)) {\n        throw new Error(\n          // eslint-disable-next-line max-len\n          `The contract name '${verificationRequest.contractToVerify}' is not a fully qualified name. Please use the fully qualified name (e.g. path/to/file.sol:ContractName)`\n        );\n      }\n      try {\n        const payload = {\n          contracts: [\n            {\n              compiler: this._repackLibraries(verificationRequest.solc),\n              sources: this._mapSolcSourcesToTenderlySources(verificationRequest.solc.sources),\n              networks: {\n                [this.configuration.network]: {\n                  address\n                }\n              },\n              contractToVerify: verificationRequest.contractToVerify\n            }\n          ]\n        };\n        const response = yield this.apiV1.post(verificationRequest.config.mode === \"private\" ? `/accounts/${this.configuration.accountName}/projects/${this.configuration.projectName}/contracts/verify` : \"/public/contracts/verify\", payload);\n        const verificationResp = response.data;\n        if (verificationResp.compilation_errors) {\n          throw new CompilationError(\"There has been a compilation error while trying to verify contracts.\", verificationResp.compilation_errors);\n        }\n        if (!verificationResp.results || !verificationResp.results[0]) {\n          throw new UnexpectedVerificationError(\n            // eslint-disable-next-line max-len\n            \"There has been an unexpected verification error during the verification process. Please check your contract's source code and try again.\"\n          );\n        }\n        if (verificationResp.results[0].bytecode_mismatch_error) {\n          throw new BytecodeMismatchError(\"There has been a bytecode mismatch error while trying to verify contracts.\", verificationResp.results[0].bytecode_mismatch_error);\n        }\n        return this.add(address);\n      } catch (error) {\n        handleError(error);\n      }\n    });\n  }\n  _mapSolcSourcesToTenderlySources(sources) {\n    const tenderlySources = {};\n    Object.entries(sources).forEach(([path, source]) => {\n      tenderlySources[path] = {\n        code: source.content\n      };\n    });\n    return tenderlySources;\n  }\n  _repackLibraries(solcConfig) {\n    var _a;\n    const tenderlySolcConfig = this._copySolcConfigToTenderlySolcConfig(solcConfig);\n    const solcConfigSettings = solcConfig.settings;\n    if (!solcConfigSettings.libraries) {\n      return tenderlySolcConfig;\n    }\n    const libraries = {};\n    for (const [fileName, libVal] of Object.entries(solcConfigSettings.libraries)) {\n      for (const [libName, libAddress] of Object.entries(libVal)) {\n        libraries[fileName] = {\n          addresses: __spreadProps(__spreadValues({}, (_a = libraries == null ? void 0 : libraries[fileName]) == null ? void 0 : _a.addresses), {\n            [libName]: libAddress\n          })\n        };\n      }\n    }\n    tenderlySolcConfig.settings.libraries = libraries;\n    return tenderlySolcConfig;\n  }\n  _isFullyQualifiedContractName(contractName) {\n    const pattern = /^(.+)\\.sol:([a-zA-Z_][a-zA-Z_0-9]*)$/;\n    return pattern.test(contractName);\n  }\n  _copySolcConfigToTenderlySolcConfig(solcConfig) {\n    const _a = solcConfig.settings, { libraries: _ } = _a, settings = __objRest(_a, [\"libraries\"]);\n    return {\n      version: solcConfig.version,\n      settings\n    };\n  }\n};\n__name(ContractRepository, \"ContractRepository\");\n\n// lib/repositories/wallets/wallets.repository.ts\nfunction getContractFromResponse(contractResponse) {\n  const walletDetails = contractResponse.account || contractResponse.contract;\n  return {\n    address: walletDetails.address,\n    network: Number.parseInt(walletDetails.network_id)\n  };\n}\n__name(getContractFromResponse, \"getContractFromResponse\");\nfunction mapWalletResponseToWalletModel(walletResponse) {\n  const retVal = getContractFromResponse(walletResponse);\n  if (walletResponse.tags) {\n    retVal.tags = walletResponse.tags.map(({ tag }) => tag);\n  }\n  if (walletResponse.display_name) {\n    retVal.displayName = walletResponse.display_name;\n  }\n  return retVal;\n}\n__name(mapWalletResponseToWalletModel, \"mapWalletResponseToWalletModel\");\nfunction mapWalletModelToWalletRequest(wallet) {\n  return {\n    address: wallet.address,\n    display_name: wallet.displayName || \"\",\n    network_ids: [\n      `${wallet.network}`\n    ]\n  };\n}\n__name(mapWalletModelToWalletRequest, \"mapWalletModelToWalletRequest\");\nvar WalletRepository = class {\n  constructor({ apiProvider, configuration }) {\n    __publicField(this, \"apiV1\");\n    __publicField(this, \"apiV2\");\n    __publicField(this, \"configuration\");\n    this.apiV1 = apiProvider.getApiClient({\n      version: \"v1\"\n    });\n    this.apiV2 = apiProvider.getApiClient({\n      version: \"v2\"\n    });\n    this.configuration = configuration;\n  }\n  /**\n  * Get a contract by address if it exists in the Tenderly's instances' project\n  * @param address - The address of the contract\n  * @returns The contract object in a plain format\n  * @example\n  * const contract = await tenderly.contracts.get('0x1234567890');\n  */\n  get(address) {\n    return __async(this, null, function* () {\n      try {\n        const { data } = yield this.apiV2.get(`\n      /accounts/${this.configuration.accountName}\n      /projects/${this.configuration.projectName}\n      /accounts\n    `, {\n          \"addresses[]\": [\n            address.toLowerCase()\n          ],\n          \"networkIDs[]\": [\n            `${this.configuration.network}`\n          ],\n          \"types[]\": [\n            \"wallet\"\n          ]\n        });\n        if (!(data == null ? void 0 : data.accounts) || !data.accounts[0]) {\n          throw new NotFoundError(`Wallet with address ${address} not found`);\n        }\n        return mapWalletResponseToWalletModel(data.accounts[0]);\n      } catch (error) {\n        handleError(error);\n      }\n    });\n  }\n  /**\n  * Add a wallet to the project.\n  * @param address - The address of the wallet\n  * @param walletData - Values to populate the displayName\n  * @returns The wallet object in a plain format\n  * @example\n  * const wallet = await tenderly.contracts.add('0x1234567890', { displayName: 'My Wallet' });\n  */\n  add(address, walletData) {\n    return __async(this, null, function* () {\n      try {\n        const { data } = yield this.apiV1.post(`\n        /account/${this.configuration.accountName}\n        /project/${this.configuration.projectName}\n        /wallet\n      `, __spreadValues({\n          return_existing: true\n        }, mapWalletModelToWalletRequest(__spreadValues({\n          address: address.toLowerCase(),\n          network: this.configuration.network\n        }, walletData))));\n        if (!data[0]) {\n          throw new InvalidResponseError(`Invalid response received while trying to create a wallet ${address}`);\n        }\n        return mapWalletResponseToWalletModel(data[0]);\n      } catch (error) {\n        handleError(error);\n      }\n    });\n  }\n  /**\n  * Remove a wallet from the Tenderly instances' project.\n  * @param address - The address of the wallet\n  * @returns {Promise<void>}\n  * @example\n  * await tenderly.contracts.remove('0x1234567890');\n  */\n  remove(address) {\n    return __async(this, null, function* () {\n      try {\n        yield this.apiV1.delete(`\n      /account/${this.configuration.accountName}\n      /project/${this.configuration.projectName}\n      /contracts\n      `, {\n          account_ids: [\n            `eth:${this.configuration.network}:${address}`\n          ]\n        });\n      } catch (error) {\n        handleError(error);\n      }\n    });\n  }\n  /**\n  * Update a wallet's displayName and/or tags.\n  * @param address - The address of the wallet\n  * @param payload - The values to update the wallet with\n  * @returns The wallet object in a plain format\n  * @example\n  * const wallet = await tenderly.contracts.update('0x1234567890', {\n  *   displayName: 'My Wallet',\n  *   appendTags: ['my-tag']\n  * });\n  * const wallet = await tenderly.contracts.update('0x1234567890', { displayName: 'My Wallet' });\n  * const wallet = await tenderly.contracts.update('0x1234567890', { appendTags: ['my-tag'] });\n  */\n  update(address, payload) {\n    return __async(this, null, function* () {\n      var _a;\n      try {\n        let promiseArray = (_a = payload.appendTags) == null ? void 0 : _a.map((tag) => this.apiV1.post(`\n        /account/${this.configuration.accountName}\n        /project/${this.configuration.projectName}\n        /tag\n      `, {\n          contract_ids: [\n            `eth:${this.configuration.network}:${address}`\n          ],\n          tag\n        }));\n        promiseArray || (promiseArray = []);\n        if (payload.displayName) {\n          promiseArray.push(this.apiV1.post(`\n            /account/${this.configuration.accountName}\n            /project/${this.configuration.projectName}\n            /contract/${this.configuration.network}/${address}\n            /rename\n          `, {\n            display_name: payload.displayName\n          }));\n        }\n        yield Promise.all(promiseArray);\n        return this.get(address);\n      } catch (error) {\n        handleError(error);\n      }\n    });\n  }\n  /**\n  * Get all wallets in the Tenderly instances' project.\n  *\n  */\n  getAll() {\n    return __async(this, null, function* () {\n      var _a, _b;\n      try {\n        const wallets = yield this.apiV2.get(`\n      /accounts/${this.configuration.accountName}\n      /projects/${this.configuration.projectName}\n      /accounts\n    `, {\n          \"types[]\": \"wallet\"\n        });\n        if ((_b = (_a = wallets == null ? void 0 : wallets.data) == null ? void 0 : _a.accounts) == null ? void 0 : _b.length) {\n          return wallets.data.accounts.map(mapWalletResponseToWalletModel);\n        } else {\n          return [];\n        }\n      } catch (error) {\n        handleError(error);\n      }\n    });\n  }\n  /**\n  * Get all wallets in the Tenderly instances' project.\n  * @param queryObject - The query object to filter the wallets with\n  * @returns An array of wallets in a plain format\n  * @example\n  * const wallets = await tenderly.contracts.getBy();\n  * const wallets = await tenderly.contracts.getBy({\n  *   displayName: 'My Wallet',\n  *   tags: ['my-tag']\n  * });\n  */\n  getBy() {\n    return __async(this, arguments, function* (queryObject = {}) {\n      var _a, _b;\n      try {\n        const queryParams = this.buildQueryParams(queryObject);\n        const wallets = yield this.apiV2.get(`\n      /accounts/${this.configuration.accountName}\n      /projects/${this.configuration.projectName}\n      /accounts\n    `, __spreadProps(__spreadValues({}, queryParams), {\n          \"types[]\": \"wallet\"\n        }));\n        if ((_b = (_a = wallets == null ? void 0 : wallets.data) == null ? void 0 : _a.accounts) == null ? void 0 : _b.length) {\n          return wallets.data.accounts.map(mapWalletResponseToWalletModel);\n        } else {\n          return [];\n        }\n      } catch (error) {\n        handleError(error);\n      }\n    });\n  }\n  buildQueryParams(queryObject = {}) {\n    const queryParams = {\n      \"networkIDs[]\": `${this.configuration.network}`\n    };\n    if (queryObject.displayNames && queryObject.displayNames.filter((x) => !!x).length > 0) {\n      queryParams[\"display_names[]\"] = queryObject.displayNames;\n    }\n    if (queryObject.tags && queryObject.tags.filter((x) => !!x).length > 0) {\n      queryParams[\"tags[]\"] = queryObject.tags;\n    }\n    return queryParams;\n  }\n};\n__name(WalletRepository, \"WalletRepository\");\n\n// lib/executors/Simulator.ts\nfunction mapToSimulationResult(simpleSimulationResponse) {\n  var _a;\n  return {\n    status: simpleSimulationResponse.status,\n    gasUsed: simpleSimulationResponse.gas_used,\n    cumulativeGasUsed: simpleSimulationResponse.cumulative_gas_used,\n    blockNumber: simpleSimulationResponse.block_number,\n    type: simpleSimulationResponse.type,\n    logsBloom: simpleSimulationResponse.logs_bloom,\n    logs: simpleSimulationResponse.logs,\n    trace: (_a = simpleSimulationResponse.trace) == null ? void 0 : _a.map((trace) => __spreadProps(__spreadValues({}, trace), {\n      error_messages: trace.error_reason\n    }))\n  };\n}\n__name(mapToSimulationResult, \"mapToSimulationResult\");\nvar Simulator = class {\n  constructor({ apiProvider, configuration }) {\n    __publicField(this, \"apiV1\");\n    __publicField(this, \"configuration\");\n    __publicField(this, \"apiV2\");\n    this.apiV1 = apiProvider.getApiClient({\n      version: \"v1\"\n    });\n    this.apiV2 = apiProvider.getApiClient({\n      version: \"v2\"\n    });\n    this.configuration = configuration;\n  }\n  mapStateOverridesToEncodeStateRequest(overrides) {\n    return {\n      networkID: `${this.configuration.network}`,\n      stateOverrides: Object.keys(overrides).map((contractAddress) => {\n        var _a;\n        const cAddress = contractAddress.toLowerCase();\n        return {\n          [cAddress]: (_a = overrides[contractAddress]) == null ? void 0 : _a.state\n        };\n      }).map((addresses) => {\n        const mappedOverrides = {};\n        Object.keys(addresses).forEach((address) => {\n          mappedOverrides[address] = {\n            value: addresses[address]\n          };\n        });\n        return mappedOverrides;\n      }).reduce((acc, curr) => __spreadValues(__spreadValues({}, acc), curr))\n    };\n  }\n  mapToEncodedOverrides(stateOverrides) {\n    return Object.keys(stateOverrides).map((address) => address.toLowerCase()).reduce((acc, curr) => {\n      var _a;\n      acc[curr] = (_a = stateOverrides[curr]) == null ? void 0 : _a.value;\n      return acc;\n    }, {});\n  }\n  replaceJSONOverridesWithEncodedOverrides(overrides, encodedStateOverrides) {\n    if (!overrides) {\n      return null;\n    }\n    return Object.keys(overrides).map((address) => address.toLowerCase()).reduce((acc, curr) => {\n      var _a, _b, _c, _d, _e, _f;\n      const currentOverride = {};\n      if (encodedStateOverrides && encodedStateOverrides[curr]) {\n        currentOverride.state_diff = encodedStateOverrides[curr];\n      }\n      if ((_a = overrides[curr]) == null ? void 0 : _a.nonce) {\n        currentOverride.nonce = (_b = overrides[curr]) == null ? void 0 : _b.nonce;\n      }\n      if ((_c = overrides[curr]) == null ? void 0 : _c.code) {\n        currentOverride.code = (_d = overrides[curr]) == null ? void 0 : _d.code;\n      }\n      if ((_e = overrides[curr]) == null ? void 0 : _e.balance) {\n        currentOverride.balance = (_f = overrides[curr]) == null ? void 0 : _f.balance;\n      }\n      return __spreadProps(__spreadValues({}, acc), {\n        [curr]: currentOverride\n      });\n    }, {});\n  }\n  buildSimulationBundleRequest(transactions, blockNumber, encodedOverrides) {\n    return {\n      network_id: `${this.configuration.network}`,\n      call_args: transactions.map((transaction) => ({\n        from: transaction.from,\n        to: transaction.to,\n        gas: transaction.gas,\n        gas_price: transaction.gas_price,\n        max_fee_per_gas: transaction.max_fee_per_gas,\n        max_priority_fee_per_gas: transaction.max_priority_fee_per_gas,\n        value: transaction.value,\n        data: transaction.input,\n        access_list: transaction.access_list\n      })),\n      block_number_or_hash: {\n        blockNumber\n      },\n      overrides: encodedOverrides\n    };\n  }\n  buildSimpleSimulationRequest(transaction, blockNumber, encodedOverrides) {\n    return {\n      network_id: `${this.configuration.network}`,\n      call_args: {\n        from: transaction.from,\n        to: transaction.to,\n        gas: transaction.gas,\n        gas_price: transaction.gas_price,\n        max_fee_per_gas: transaction.max_fee_per_gas,\n        max_priority_fee_per_gas: transaction.max_priority_fee_per_gas,\n        value: transaction.value,\n        data: transaction.input,\n        access_list: transaction.access_list\n      },\n      block_number_or_hash: {\n        blockNumber\n      },\n      overrides: encodedOverrides\n    };\n  }\n  encodeOverrideRequest(overrides) {\n    return __async(this, null, function* () {\n      const encodedStateOverrides = yield this.encodeStateOverrides(overrides);\n      return this.replaceJSONOverridesWithEncodedOverrides(overrides, encodedStateOverrides);\n    });\n  }\n  encodeStateOverrides(overrides) {\n    return __async(this, null, function* () {\n      if (!overrides) {\n        return null;\n      }\n      const encodingRequest = this.mapStateOverridesToEncodeStateRequest(overrides);\n      try {\n        const { data: encodedStates } = yield this.apiV1.post(`/account/${this.configuration.accountName}\n          /project/${this.configuration.projectName}\n          /contracts/encode-states\n        `, encodingRequest);\n        return this.mapToEncodedOverrides(encodedStates.stateOverrides);\n      } catch (error) {\n        if (isTenderlyAxiosError(error)) {\n          throw new EncodingError(error.response.data.error);\n        }\n        throw error;\n      }\n    });\n  }\n  executeSimpleSimulationRequest(simulationRequest) {\n    return __async(this, null, function* () {\n      const { data } = yield this.apiV2.post(`\n        /account/${this.configuration.accountName}\n        /project/${this.configuration.projectName}\n        /simulations/simulate\n        `, simulationRequest);\n      return data;\n    });\n  }\n  executeSimulationBundleRequest(simulationRequest) {\n    return __async(this, null, function* () {\n      const { data } = yield this.apiV2.post(`\n        /account/${this.configuration.accountName}\n        /project/${this.configuration.projectName}\n        /simulations/simulate/bundle\n        `, simulationRequest);\n      return data;\n    });\n  }\n  /**\n  * Simulates a transaction by encoding overrides, building a request body, and executing a simulation request.\n  * @async\n  * @function\n  * @param {SimulationParameters} simulationParams - Parameters for the transaction simulation.\n  * @param {object} simulationParams.transaction - The transaction object to be simulated.\n  * @param {number} simulationParams.blockNumber - The block number for the simulation.\n  * @param {object} simulationParams.overrides - Overrides for the transaction simulation.\n  * @returns {Promise<SimulationOutput>} - A Promise that resolves to a simulation output.\n  */\n  simulateTransaction(_0) {\n    return __async(this, arguments, function* ({ transaction, blockNumber, overrides }) {\n      try {\n        const encodedOverrides = yield this.encodeOverrideRequest(overrides);\n        const simulationRequest = this.buildSimpleSimulationRequest(transaction, blockNumber, encodedOverrides);\n        const simpleSimulationResponse = yield this.executeSimpleSimulationRequest(simulationRequest);\n        return mapToSimulationResult(simpleSimulationResponse);\n      } catch (error) {\n        handleError(error);\n      }\n    });\n  }\n  /**\n  * Simulates a bundle of transactions by encoding overrides, building a request body,\n  * and executing a simulation bundle request.\n  * @async\n  * @function\n  * @param {SimulationBundleDetails} params - Details of the transaction bundle simulation.\n  * @param {object[]} params.transactions - An array of transaction objects to be simulated.\n  * @param {object} params.overrides - Overrides for the transaction bundle simulation.\n  * @param {number} params.blockNumber - The block number for the simulation bundle.\n  * @returns {Promise<SimulationOutput[]>} - A Promise that resolves to an array of simulation result objects.\n  */\n  simulateBundle(_0) {\n    return __async(this, arguments, function* ({ transactions, overrides, blockNumber }) {\n      try {\n        const encodedOverrides = yield this.encodeOverrideRequest(overrides);\n        const simulationBundleRequest = this.buildSimulationBundleRequest(transactions, blockNumber, encodedOverrides);\n        const simulationBundleResponse = yield this.executeSimulationBundleRequest(simulationBundleRequest);\n        return simulationBundleResponse.simulations.map((simulation) => mapToSimulationResult(simulation));\n      } catch (error) {\n        handleError(error);\n      }\n    });\n  }\n};\n__name(Simulator, \"Simulator\");\n\n// lib/core/ApiClient.ts\nvar import_axios2 = __toESM(require(\"axios\"));\n\n// lib/constants.ts\nvar TENDERLY_API_BASE_URL = \"https://api.tenderly.co\";\n\n// lib/sdkVersion.ts\nvar TENDERLY_SDK_VERSION = \"0.3.1\";\n\n// lib/core/ApiClient.ts\nvar ApiClient = class {\n  /**\n  * @param apiKey API key to be used for the requests.\n  * Can be generated in the Tenderly dashboard: https://dashboard.tenderly.co/account/authorization\n  * @param version API version to be used for the requests. Defaults to 'v1'\n  */\n  constructor({ apiKey, version = \"v1\" }) {\n    __publicField(this, \"api\");\n    this.api = import_axios2.default.create({\n      baseURL: `${TENDERLY_API_BASE_URL}/api/${version}`,\n      headers: {\n        \"Content-Type\": \"application/json\",\n        \"X-Access-Key\": apiKey,\n        \"X-User-Agent\": `@tenderly/sdk-js/${TENDERLY_SDK_VERSION}`\n      }\n    });\n  }\n  /**\n  *\n  * @param path url path to the resource\n  * @param params url query params\n  * @returns Promise with AxiosResponse that\n  * contains the response data model with a type of a given generic parameter\n  */\n  get(path, params) {\n    return this.api.get(path.replace(/\\s/g, \"\"), {\n      params\n    });\n  }\n  /**\n  *\n  * @param path url path to the resource\n  * @param data data to be sent to the server. Type of data expected can be specified with a second generic parameter\n  * @returns Promise with AxiosResponse that\n  * contains the response data model with a type of a second generic parameter\n  */\n  post(path, data) {\n    return this.api.post(path.replace(/\\s/g, \"\"), data);\n  }\n  /**\n  *\n  * @param path url path to the resource\n  * @param data data to be sent to the server in order to update the model.\n  * Type of data expected can be specified with a second generic parameter\n  * @param params url query params\n  * @returns Promise with AxiosResponse that contains the response data model with a type of a second generic parameter\n  */\n  put(path, data, params) {\n    return __async(this, null, function* () {\n      return this.api.put(path.replace(/\\s/g, \"\"), data, {\n        params\n      });\n    });\n  }\n  /**\n  * @param path url path to the resource\n  * @param data data to be sent to the server in order to remove the model.\n  * @returns AxiosResponse\n  */\n  delete(path, data) {\n    return __async(this, null, function* () {\n      return this.api.delete(path.replace(/\\s/g, \"\"), {\n        data\n      });\n    });\n  }\n};\n__name(ApiClient, \"ApiClient\");\n\n// lib/core/ApiClientProvider.ts\nvar ApiClientProvider = class {\n  constructor({ apiKey }) {\n    __publicField(this, \"apiKey\");\n    __publicField(this, \"apiClients\", {});\n    this.apiKey = apiKey;\n  }\n  getApiClient({ version }) {\n    if (!this.apiClients[version]) {\n      this.apiClients[version] = new ApiClient({\n        version,\n        apiKey: this.apiKey\n      });\n    }\n    return this.apiClients[version];\n  }\n};\n__name(ApiClientProvider, \"ApiClientProvider\");\n__publicField(ApiClientProvider, \"instance\");\n\n// lib/core/Tenderly.ts\nvar Tenderly = class {\n  /**\n  * The main class of the Tenderly SDK\n  * Instantiate this class with your config, and you're ready to go\n  * @example\n  * const tenderly = new Tenderly({\n  *   accountName: 'my-account',\n  *   projectName: 'my-project',\n  *   accessKey: 'my-access-key',\n  *   network: Network.Mainnet,\n  * })\n  */\n  constructor(configuration) {\n    __publicField(this, \"configuration\");\n    // public readonly api: ApiClient;\n    /**\n    * Contract repository - used for managing contracts on your project\n    */\n    __publicField(this, \"contracts\");\n    /**\n    * Wallet repository - used for managing wallets on your project\n    */\n    __publicField(this, \"wallets\");\n    /**\n    * Simulator - used for simulating transactions\n    */\n    __publicField(this, \"simulator\");\n    __publicField(this, \"apiClientProvider\");\n    this.checkConfiguration(configuration);\n    this.configuration = configuration;\n    this.apiClientProvider = new ApiClientProvider({\n      apiKey: configuration.accessKey\n    });\n    this.simulator = new Simulator({\n      apiProvider: this.apiClientProvider,\n      configuration\n    });\n    this.contracts = new ContractRepository({\n      apiProvider: this.apiClientProvider,\n      configuration\n    });\n    this.wallets = new WalletRepository({\n      apiProvider: this.apiClientProvider,\n      configuration\n    });\n  }\n  /**\n  * Create a new Tenderly instance with the provided configuration override\n  * @param configurationOverride - The configuration override\n  * @returns The new Tenderly instance\n  * @example\n  * const tenderly = new Tenderly({\n  *  accountName: 'my-account',\n  *  projectName: 'my-project',\n  * );\n  */\n  with(configurationOverride) {\n    return new Tenderly(__spreadValues(__spreadValues({}, this.configuration), configurationOverride));\n  }\n  checkConfiguration(configuration) {\n    if (!configuration.accessKey) {\n      throw new InvalidArgumentsError(\"Missing access key.\");\n    }\n    if (!configuration.accountName) {\n      throw new InvalidArgumentsError(\"Missing account name.\");\n    }\n    if (!configuration.projectName) {\n      throw new InvalidArgumentsError(\"Missing project name.\");\n    }\n    if (!configuration.network) {\n      throw new InvalidArgumentsError(\"Missing network.\");\n    }\n  }\n};\n__name(Tenderly, \"Tenderly\");\n\n// lib/types.ts\nvar Network;\n(function(Network2) {\n  Network2[Network2[\"MAINNET\"] = 1] = \"MAINNET\";\n  Network2[Network2[\"OPTIMISTIC\"] = 10] = \"OPTIMISTIC\";\n  Network2[Network2[\"RSK\"] = 30] = \"RSK\";\n  Network2[Network2[\"RSK_TESTNET\"] = 31] = \"RSK_TESTNET\";\n  Network2[Network2[\"BINANCE\"] = 56] = \"BINANCE\";\n  Network2[Network2[\"RIALTO_BINANCE\"] = 97] = \"RIALTO_BINANCE\";\n  Network2[Network2[\"GNOSIS_CHAIN\"] = 100] = \"GNOSIS_CHAIN\";\n  Network2[Network2[\"BOB_SEPOLIA\"] = 111] = \"BOB_SEPOLIA\";\n  Network2[Network2[\"POLYGON\"] = 137] = \"POLYGON\";\n  Network2[Network2[\"FRAXTAL\"] = 252] = \"FRAXTAL\";\n  Network2[Network2[\"BOBA_ETHEREUM\"] = 288] = \"BOBA_ETHEREUM\";\n  Network2[Network2[\"WORLDCHAIN\"] = 480] = \"WORLDCHAIN\";\n  Network2[Network2[\"MODE_SEPOLIA\"] = 919] = \"MODE_SEPOLIA\";\n  Network2[Network2[\"LISK\"] = 1135] = \"LISK\";\n  Network2[Network2[\"MOONBEAM\"] = 1284] = \"MOONBEAM\";\n  Network2[Network2[\"MOONRIVER\"] = 1285] = \"MOONRIVER\";\n  Network2[Network2[\"MOONBASE_ALPHA\"] = 1287] = \"MOONBASE_ALPHA\";\n  Network2[Network2[\"SEI_ATLANTIC_2\"] = 1328] = \"SEI_ATLANTIC_2\";\n  Network2[Network2[\"SEI_PACIFIC_1\"] = 1329] = \"SEI_PACIFIC_1\";\n  Network2[Network2[\"FRAXTAL_HOLESKY\"] = 2522] = \"FRAXTAL_HOLESKY\";\n  Network2[Network2[\"MORPH_HOLESKY\"] = 2810] = \"MORPH_HOLESKY\";\n  Network2[Network2[\"LISK_SEPOLIA\"] = 4202] = \"LISK_SEPOLIA\";\n  Network2[Network2[\"GOLD\"] = 4653] = \"GOLD\";\n  Network2[Network2[\"WORLDCHAIN_SEPOLIA\"] = 4801] = \"WORLDCHAIN_SEPOLIA\";\n  Network2[Network2[\"MANTLE\"] = 5e3] = \"MANTLE\";\n  Network2[Network2[\"MANTLE_SEPOLIA\"] = 5003] = \"MANTLE_SEPOLIA\";\n  Network2[Network2[\"ZETACHAIN\"] = 7e3] = \"ZETACHAIN\";\n  Network2[Network2[\"ZETACHAIN_TESTNET\"] = 7001] = \"ZETACHAIN_TESTNET\";\n  Network2[Network2[\"KINTO\"] = 7887] = \"KINTO\";\n  Network2[Network2[\"POLYNOMIAL\"] = 8008] = \"POLYNOMIAL\";\n  Network2[Network2[\"BASE\"] = 8453] = \"BASE\";\n  Network2[Network2[\"BOBA_BINANCE_RIALTO\"] = 9728] = \"BOBA_BINANCE_RIALTO\";\n  Network2[Network2[\"INTERVAL_TESTNET\"] = 11069] = \"INTERVAL_TESTNET\";\n  Network2[Network2[\"IMMUTABLE\"] = 13371] = \"IMMUTABLE\";\n  Network2[Network2[\"IMMUTABLE_TESTNET\"] = 13473] = \"IMMUTABLE_TESTNET\";\n  Network2[Network2[\"HOLESKY\"] = 17e3] = \"HOLESKY\";\n  Network2[Network2[\"UNREAL\"] = 18233] = \"UNREAL\";\n  Network2[Network2[\"CONCRETE_TESTNET\"] = 18291] = \"CONCRETE_TESTNET\";\n  Network2[Network2[\"BOBA_SEPOLIA\"] = 28882] = \"BOBA_SEPOLIA\";\n  Network2[Network2[\"APECHAIN_CURTIS\"] = 33111] = \"APECHAIN_CURTIS\";\n  Network2[Network2[\"APECHAIN\"] = 33139] = \"APECHAIN\";\n  Network2[Network2[\"MODE\"] = 34443] = \"MODE\";\n  Network2[Network2[\"ARBITRUM_ONE\"] = 42161] = \"ARBITRUM_ONE\";\n  Network2[Network2[\"ARBITRUM_NOVA\"] = 42170] = \"ARBITRUM_NOVA\";\n  Network2[Network2[\"AVALANCHE_FUJI\"] = 43113] = \"AVALANCHE_FUJI\";\n  Network2[Network2[\"AVALANCHE\"] = 43114] = \"AVALANCHE\";\n  Network2[Network2[\"BOBA_BINANCE\"] = 56288] = \"BOBA_BINANCE\";\n  Network2[Network2[\"LINEA_SEPOLIA\"] = 59141] = \"LINEA_SEPOLIA\";\n  Network2[Network2[\"LINEA\"] = 59144] = \"LINEA\";\n  Network2[Network2[\"BOB\"] = 60808] = \"BOB\";\n  Network2[Network2[\"POLYGON_AMOY\"] = 80002] = \"POLYGON_AMOY\";\n  Network2[Network2[\"POLYNOMIAL_SEPOLIA\"] = 80008] = \"POLYNOMIAL_SEPOLIA\";\n  Network2[Network2[\"BLAST\"] = 81457] = \"BLAST\";\n  Network2[Network2[\"BASE_SEPOLIA\"] = 84532] = \"BASE_SEPOLIA\";\n  Network2[Network2[\"REAL\"] = 111188] = \"REAL\";\n  Network2[Network2[\"TAIKO\"] = 167e3] = \"TAIKO\";\n  Network2[Network2[\"TAIKO_HEKLA\"] = 167009] = \"TAIKO_HEKLA\";\n  Network2[Network2[\"ARBITRUM_SEPOLIA\"] = 421614] = \"ARBITRUM_SEPOLIA\";\n  Network2[Network2[\"ZORA\"] = 7777777] = \"ZORA\";\n  Network2[Network2[\"SEPOLIA\"] = 11155111] = \"SEPOLIA\";\n  Network2[Network2[\"OPTIMISTIC_SEPOLIA\"] = 11155420] = \"OPTIMISTIC_SEPOLIA\";\n  Network2[Network2[\"ZORA_SEPOLIA\"] = 999999999] = \"ZORA_SEPOLIA\";\n})(Network || (Network = {}));\n\n// lib/helpers.ts\nfunction getEnvironmentVariables() {\n  return process.env;\n}\n__name(getEnvironmentVariables, \"getEnvironmentVariables\");\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n  ApiError,\n  BytecodeMismatchError,\n  CompilationError,\n  EncodingError,\n  GeneralError,\n  InvalidArgumentsError,\n  InvalidResponseError,\n  Network,\n  NotFoundError,\n  Tenderly,\n  UnexpectedVerificationError,\n  getEnvironmentVariables,\n  handleError\n});\n"]}