From 6c8499505d17068d54c6fb7ba39f73f50265ec08 Mon Sep 17 00:00:00 2001 From: Aahna Ashina <95955389+aahna-ashina@users.noreply.github.com> Date: Mon, 25 Mar 2024 22:28:54 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20release=200.6.9=20-=20mainnet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++++-- hardhat.config.ts | 6 +----- scripts/utils/deploy-passport-utils.ts | 8 +++++--- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 4ab8e95..100f63e 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,7 @@ https://github.com/nation3/foundations/blob/main/deployments/sepolia.json - `NationCred.sol`: [`0x3C38FBe04C455eFaF762d00c400e1A6589f7269A`](https://sepolia.etherscan.io/address/0x3C38FBe04C455eFaF762d00c400e1A6589f7269A) -### Mainnet (`v0`) +### Mainnet (`v0.6.9`) https://github.com/nation3/foundations/blob/main/deployments/mainnet.json @@ -145,7 +145,11 @@ https://github.com/nation3/foundations/blob/main/deployments/mainnet.json - `NationCred.sol`: [`0x7794F0Eb1eA812fBcdaBD559551Fb26A79720925`](https://etherscan.io/address/0x7794F0Eb1eA812fBcdaBD559551Fb26A79720925) -### npm (`v0.6.8`) +- `utils/` + + - `PassportUtils.sol`: [`...`](https://sepolia.etherscan.io/address/...) + +### npm (`v0.6.9`) https://www.npmjs.com/package/@nation3/nationcred-contracts diff --git a/hardhat.config.ts b/hardhat.config.ts index 2d94fb3..9ab0750 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -18,11 +18,6 @@ task("accounts", "Prints the list of accounts", async (taskArgs, hre) => { const config: HardhatUserConfig = { solidity: "0.8.21", networks: { - goerli: { - url: process.env.GOERLI_URL || "", - accounts: - process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [], - }, sepolia: { url: process.env.SEPOLIA_URL || "", accounts: @@ -32,6 +27,7 @@ const config: HardhatUserConfig = { url: process.env.MAINNET_URL || "", accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [], + gasPrice: 14_000_000_000 // 14 GWei }, }, gasReporter: { diff --git a/scripts/utils/deploy-passport-utils.ts b/scripts/utils/deploy-passport-utils.ts index 9ed5b0a..493df82 100644 --- a/scripts/utils/deploy-passport-utils.ts +++ b/scripts/utils/deploy-passport-utils.ts @@ -5,9 +5,11 @@ async function main() { const contractPath = "contracts/utils/PassportUtils.sol:PassportUtils" // Constructor Args - const passportIssuerAddress = "0xdad32e13E73ce4155a181cA0D350Fee0f2596940"; // Sepolia - const votingEscrowAddress = "0x8100e77899C24b0F7B516153F84868f850C034BF"; // Sepolia - + // const passportIssuerAddress = "0xdad32e13E73ce4155a181cA0D350Fee0f2596940"; // Sepolia + // const votingEscrowAddress = "0x8100e77899C24b0F7B516153F84868f850C034BF"; // Sepolia + const passportIssuerAddress = "0x279c0b6bfCBBA977eaF4ad1B2FFe3C208aa068aC"; // Mainnet + const votingEscrowAddress = "0xF7deF1D2FBDA6B74beE7452fdf7894Da9201065d"; // Mainnet + const args = [passportIssuerAddress, votingEscrowAddress]; const contractAddress = await deployContract(contractName, args); await verifyContract(contractPath, contractAddress, args);