@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.mjs CHANGED
@@ -65158,6 +65158,12 @@ var networks = {
65158
65158
  apiUrl: ETHERSCAN_V2_URL,
65159
65159
  aliases: ["sophon-sepolia-testnet", "sophon-testnet"]
65160
65160
  },
65161
+ // Stable
65162
+ stable: {
65163
+ chainId: 988,
65164
+ apiUrl: ETHERSCAN_V2_URL,
65165
+ aliases: ["stable-mainnet"]
65166
+ },
65161
65167
  // Swellchain
65162
65168
  swellchain: {
65163
65169
  chainId: 1923,
@@ -77968,7 +77974,9 @@ var verifyNonTarget = async (config, logger12) => {
77968
77974
  const rawDeployment = __require(contractDeploymentPath);
77969
77975
  const deploymentParseResult = DeploymentSchema.safeParse(rawDeployment);
77970
77976
  if (!deploymentParseResult.success) {
77971
- logger12.error(COLORS.error`No network configured for contract ${contractName} on network ${network}`);
77977
+ logger12.warn(
77978
+ COLORS.error`Skipping deployment file ${deploymentPath} on network ${network} due to validation errors: ${JSON.stringify(deploymentParseResult.error.errors)}`
77979
+ );
77972
77980
  return [];
77973
77981
  }
77974
77982
  const deployment = deploymentParseResult.data;
@@ -78068,9 +78076,10 @@ var verifyTarget = async (config, logger12) => {
78068
78076
  const rawDeployment = __require(contractDeploymentPath);
78069
78077
  const deploymentParseResult = DeploymentSchema.safeParse(rawDeployment);
78070
78078
  if (!deploymentParseResult.success) {
78071
- throw new Error(
78072
- `Error parsing deployment file ${fileName} on network ${networkName}: ${deploymentParseResult.error}`
78079
+ logger12.warn(
78080
+ `Skipping deployment file ${fileName} on network ${networkName} due to validation errors: ${JSON.stringify(deploymentParseResult.error.errors)}`
78073
78081
  );
78082
+ return [];
78074
78083
  }
78075
78084
  const deployment = deploymentParseResult.data;
78076
78085
  const compilationTargets = deployment.metadata.settings.compilationTarget;