@layerzerolabs/verify-contract 1.2.2 → 1.3.0

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 CHANGED
@@ -65174,6 +65174,12 @@ var networks = {
65174
65174
  apiUrl: ETHERSCAN_V2_URL,
65175
65175
  aliases: ["sophon-sepolia-testnet", "sophon-testnet"]
65176
65176
  },
65177
+ // Stable
65178
+ stable: {
65179
+ chainId: 988,
65180
+ apiUrl: ETHERSCAN_V2_URL,
65181
+ aliases: ["stable-mainnet"]
65182
+ },
65177
65183
  // Swellchain
65178
65184
  swellchain: {
65179
65185
  chainId: 1923,
@@ -77984,7 +77990,9 @@ var verifyNonTarget = async (config, logger12) => {
77984
77990
  const rawDeployment = __require(contractDeploymentPath);
77985
77991
  const deploymentParseResult = DeploymentSchema.safeParse(rawDeployment);
77986
77992
  if (!deploymentParseResult.success) {
77987
- logger12.error(COLORS.error`No network configured for contract ${contractName} on network ${network}`);
77993
+ logger12.warn(
77994
+ COLORS.error`Skipping deployment file ${deploymentPath} on network ${network} due to validation errors: ${JSON.stringify(deploymentParseResult.error.errors)}`
77995
+ );
77988
77996
  return [];
77989
77997
  }
77990
77998
  const deployment = deploymentParseResult.data;
@@ -78084,9 +78092,10 @@ var verifyTarget = async (config, logger12) => {
78084
78092
  const rawDeployment = __require(contractDeploymentPath);
78085
78093
  const deploymentParseResult = DeploymentSchema.safeParse(rawDeployment);
78086
78094
  if (!deploymentParseResult.success) {
78087
- throw new Error(
78088
- `Error parsing deployment file ${fileName} on network ${networkName}: ${deploymentParseResult.error}`
78095
+ logger12.warn(
78096
+ `Skipping deployment file ${fileName} on network ${networkName} due to validation errors: ${JSON.stringify(deploymentParseResult.error.errors)}`
78089
78097
  );
78098
+ return [];
78090
78099
  }
78091
78100
  const deployment = deploymentParseResult.data;
78092
78101
  const compilationTargets = deployment.metadata.settings.compilationTarget;