Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC 12 Implementation: On-chain proposal validation #756

Merged
merged 8 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

43 changes: 0 additions & 43 deletions solidity/deploy/34_deploy_wallet_coordinator.ts

This file was deleted.

20 changes: 0 additions & 20 deletions solidity/deploy/35_add_coordinator_address.ts

This file was deleted.

19 changes: 0 additions & 19 deletions solidity/deploy/36_transfer_wallet_coordinator_ownership.ts

This file was deleted.

33 changes: 33 additions & 0 deletions solidity/deploy/39_deploy_wallet_proposal_validator.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { HardhatRuntimeEnvironment } from "hardhat/types"
import { DeployFunction } from "hardhat-deploy/types"

const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployments, helpers, getNamedAccounts } = hre
const { deploy } = deployments
const { deployer } = await getNamedAccounts()

const Bridge = await deployments.get("Bridge")

const walletProposalValidator = await deploy("WalletProposalValidator", {
from: deployer,
args: [Bridge.address],
log: true,
waitConfirmations: 1,
})

if (hre.network.tags.etherscan) {
await helpers.etherscan.verify(walletProposalValidator)
}

if (hre.network.tags.tenderly) {
await hre.tenderly.verify({
name: "WalletProposalValidator",
address: walletProposalValidator.address,
})
}
}

export default func

func.tags = ["WalletProposalValidator"]
func.dependencies = ["Bridge"]
99 changes: 0 additions & 99 deletions solidity/deploy/81_upgrade_wallet_coordinator_v2.ts

This file was deleted.

6 changes: 0 additions & 6 deletions solidity/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,6 @@ const config: HardhatUserConfig = {
sepolia: 0,
// We are not setting SPV maintainer for mainnet in deployment scripts.
},
coordinator: {
default: 9,
goerli: "0x4815cd81fFc21039a25aCFbD97CE75cCE8579042",
sepolia: "0x4815cd81fFc21039a25aCFbD97CE75cCE8579042",
mainnet: "0x0595acCca29654c43Bd67E18578b30a405265234",
},
v1Redeemer: {
default: 10,
goerli: 0,
Expand Down
Loading
Loading