-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #678 from matter-labs/zk-sync-main-dev
Merge Main into Dev
- Loading branch information
Showing
14 changed files
with
318 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
* @vladbochok @StanislavBreadless | ||
l1-contracts/deploy-scripts @Deniallugo | ||
l1-contracts/deploy-script-config-template @Deniallugo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// hardhat import should be the first import in the file | ||
import * as hardhat from "hardhat"; | ||
|
||
const EXPECTED_ADDRESS = "0xc706EC7dfA5D4Dc87f29f859094165E8290530f5"; | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
function verifyPromise(address: string, constructorArguments?: Array<any>, libraries?: object): Promise<any> { | ||
return new Promise((resolve, reject) => { | ||
hardhat | ||
.run("verify:verify", { address, constructorArguments, libraries }) | ||
.then(() => resolve(`Successfully verified ${address}`)) | ||
.catch((e) => reject(`Failed to verify ${address}\nError: ${e.message}`)); | ||
}); | ||
} | ||
|
||
async function main() { | ||
if (process.env.CHAIN_ETH_NETWORK == "localhost") { | ||
console.log("Skip contract verification on localhost"); | ||
return; | ||
} | ||
|
||
const message = await verifyPromise(EXPECTED_ADDRESS); | ||
console.log(message.status == "fulfilled" ? message.value : message.reason); | ||
} | ||
|
||
main() | ||
.then(() => process.exit(0)) | ||
.catch((err) => { | ||
console.error("Error:", err.message || err); | ||
process.exit(1); | ||
}); |
2 changes: 2 additions & 0 deletions
2
l1-contracts/deploy-script-config-template/config-deploy-erc20.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
additional_addresses_for_minting = [] | ||
|
||
[tokens.DAI] | ||
name = "DAI" | ||
symbol = "DAI" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.