Skip to content

Commit

Permalink
base deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhimaoL committed Jul 28, 2023
1 parent ae0dad6 commit d999124
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 5 deletions.
19 changes: 17 additions & 2 deletions docs/deploy/base-8453/contract.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
| Contract | Address |
| -------- | ------- |
| Contract | Address |
| -------------------- | ------------------------------------------ | --- | -------- | ------------------------------------------ |
| Soul | 0x14a725839184f879f3c09ce3d707e5a3e4c5869d |
| MiddlewareManager | 0x72c837fe8ba6c7fd69cef66b6e85c0d7eabf1f9b |
| Deployer | 0x22d4843df1836f12b02b69ca6ad90575bbc03897 |
| SubscribeDeployer | 0x1f74f30a7f62cd97f58ceb1f93e6bb253d096991 |
| CyberEngineImpl | 0xea782d8c5afd404ac74f048ef34273217f7f6fc8 |
| CyberEngine | 0x4bc54260ec3617b3f73fdb1fa22417ed109f372c |
| Essence | 0x189a56caa3e2d2eb034d1ddc102f4f6bf822b811 |
| Content | 0xa1358d699dbbe6438f488d4cc8480eeddc7528d0 |
| W3ST | 0x5728b1f3702a982205dbaef4594d4a3760854db0 |
| Subscribe | 0x72e1209a6cf91399066b1145548347ffa85282b7 |
| Treasury | 0xf6ec6dfef73d6623f24cd9ff888e76725da32773 |
| PermissionMw | 0x414cb5822ca5141aedaea9d64a12f511071f7613 |
| ECDSAValidator | 0x417f5a41305ddc99d18b5e176521b468b2a31b86 |
| CyberAccount Factory | 0xaee9762ce625e0a8f7b184670fb57c37bfe1d0f1 |
| TokenReceiver | 0xcd97405fb58e94954e825e46db192b916a45d412 | | Timelock | 0x3c84a5d37af5b8cc435d9c8c1994deba40fc9c19 |
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"deploy_all:mumbai": "source .env.mumbai && FOUNDRY_PROFILE=stg forge script script/DeployAll.s.sol:DeployAll --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --legacy --etherscan-api-key $API_KEY -vvv",
"deploy_all:polygon": "source .env.polygon && FOUNDRY_PROFILE=prd forge script script/DeployAll.s.sol:DeployAll --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --legacy --etherscan-api-key $API_KEY -vvv",
"deploy_all:op": "source .env.op && FOUNDRY_PROFILE=prd forge script script/DeployAll.s.sol:DeployAll --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --legacy --etherscan-api-key $API_KEY -vvv",
"deploy_all:base": "source .env.base && FOUNDRY_PROFILE=prd forge script script/DeployAll.s.sol:DeployAll --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --legacy --etherscan-api-key $API_KEY -vvv",
"deploy_all:op_goerli": "source .env.op_goerli && FOUNDRY_PROFILE=stg forge script script/DeployAll.s.sol:DeployAll --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --etherscan-api-key $API_KEY -vvv",
"deploy_all:linea": "source .env.linea && FOUNDRY_PROFILE=prd forge script script/DeployAll.s.sol:DeployAll --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --legacy --etherscan-api-key $API_KEY -vvv",
"deploy_all:linea_goerli": "source .env.linea_goerli && FOUNDRY_PROFILE=stg forge script script/DeployAll.s.sol:DeployAll --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --etherscan-api-key $API_KEY -vvv",
Expand All @@ -56,14 +57,17 @@
"deploy_timelock:linea": "source .env.linea && FOUNDRY_PROFILE=prd forge script script/DeployTimeLock.s.sol:DeployTimeLock --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --legacy --etherscan-api-key $API_KEY -vvv",
"deploy_timelock:bnb": "source .env.bnb && FOUNDRY_PROFILE=prd forge script script/DeployTimeLock.s.sol:DeployTimeLock --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --legacy --etherscan-api-key $API_KEY -vvv",
"deploy_timelock:op": "source .env.op && FOUNDRY_PROFILE=prd forge script script/DeployTimeLock.s.sol:DeployTimeLock --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --legacy --etherscan-api-key $API_KEY -vvv",
"deploy_timelock:base": "source .env.base && FOUNDRY_PROFILE=prd forge script script/DeployTimeLock.s.sol:DeployTimeLock --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --legacy --etherscan-api-key $API_KEY -vvv",
"change_owner:polygon": "source .env.polygon.owner && FOUNDRY_PROFILE=prd forge script script/ChangeOwner.s.sol:ChangeOwner --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --legacy --etherscan-api-key $API_KEY -vvv",
"change_owner:op": "source .env.op.owner && FOUNDRY_PROFILE=prd forge script script/ChangeOwner.s.sol:ChangeOwner --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --legacy --etherscan-api-key $API_KEY -vvv",
"change_owner:linea": "source .env.linea.owner && FOUNDRY_PROFILE=prd forge script script/ChangeOwner.s.sol:ChangeOwner --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --legacy --etherscan-api-key $API_KEY -vvv",
"change_owner:bnb": "source .env.bnb.owner && FOUNDRY_PROFILE=prd forge script script/ChangeOwner.s.sol:ChangeOwner --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --legacy --etherscan-api-key $API_KEY -vvv",
"change_owner:base": "source .env.base.owner && FOUNDRY_PROFILE=prd forge script script/ChangeOwner.s.sol:ChangeOwner --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --legacy --etherscan-api-key $API_KEY -vvv",
"set_state:polygon": "source .env.polygon.owner && FOUNDRY_PROFILE=prd forge script script/SetInitialState.s.sol:SetInitialState --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --legacy --etherscan-api-key $API_KEY -vvv",
"set_state:op": "source .env.op.owner && FOUNDRY_PROFILE=prd forge script script/SetInitialState.s.sol:SetInitialState --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --legacy --etherscan-api-key $API_KEY -vvv",
"set_state:linea": "source .env.linea.owner && FOUNDRY_PROFILE=prd forge script script/SetInitialState.s.sol:SetInitialState --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --legacy --etherscan-api-key $API_KEY -vvv",
"set_state:bnb": "source .env.bnb.owner && FOUNDRY_PROFILE=prd forge script script/SetInitialState.s.sol:SetInitialState --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --legacy --etherscan-api-key $API_KEY -vvv",
"set_state:base": "source .env.base.owner && FOUNDRY_PROFILE=prd forge script script/SetInitialState.s.sol:SetInitialState --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --legacy --etherscan-api-key $API_KEY -vvv",
"set_state:bnbt": "source .env.bnbt && FOUNDRY_PROFILE=stg forge script script/SetInitialState.s.sol:SetInitialState --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --legacy --etherscan-api-key $API_KEY -vvv",
"set_state:linea_goerli": "source .env.linea_goerli && FOUNDRY_PROFILE=stg forge script script/SetInitialState.s.sol:SetInitialState --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --etherscan-api-key $API_KEY -vvv",
"set_state:op_goerli": "source .env.op_goerli && FOUNDRY_PROFILE=stg forge script script/SetInitialState.s.sol:SetInitialState --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --etherscan-api-key $API_KEY -vvv"
Expand Down
6 changes: 6 additions & 0 deletions script/ChangeOwner.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ contract ChangeOwner is Script, DeploySetting {
address(0xCd78e2AB0F5363A5c3835C0423fa4055baCf91D6), // timelock
address(0xcd97405Fb58e94954E825E46dB192b916A45d412) // token receiver
);
} else if (block.chainid == DeploySetting.BNB) {
LibDeploy.changeOwnership(
vm,
address(0x3c84a5d37aF5b8Cc435D9c8C1994deBa40fC9c19), // timelock
address(0xcd97405Fb58e94954E825E46dB192b916A45d412) // token receiver
);
}
vm.stopBroadcast();
}
Expand Down
3 changes: 2 additions & 1 deletion script/DeployAll.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ contract DeployAll is Script, DeploySetting {
block.chainid == DeploySetting.BNBT ||
block.chainid == DeploySetting.BNB ||
block.chainid == DeploySetting.OPTIMISM ||
block.chainid == DeploySetting.OP_GOERLI
block.chainid == DeploySetting.OP_GOERLI ||
block.chainid == DeploySetting.BASE
) {
LibDeploy.deployAll(
vm,
Expand Down
3 changes: 2 additions & 1 deletion script/DeployTimeLock.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ contract DeployTimeLock is Script, DeploySetting {
block.chainid == DeploySetting.POLYGON ||
block.chainid == DeploySetting.LINEA ||
block.chainid == DeploySetting.BNB ||
block.chainid == DeploySetting.OPTIMISM
block.chainid == DeploySetting.OPTIMISM ||
block.chainid == DeploySetting.BASE
) {
address timelock = LibDeploy.deployTimeLock(
vm,
Expand Down
3 changes: 2 additions & 1 deletion script/SetInitialState.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ contract SetInitialState is Script, DeploySetting {
block.chainid == DeploySetting.POLYGON ||
block.chainid == DeploySetting.LINEA ||
block.chainid == DeploySetting.BNB ||
block.chainid == DeploySetting.OPTIMISM
block.chainid == DeploySetting.OPTIMISM ||
block.chainid == DeploySetting.BASE
) {
LibDeploy.setInitialState(
vm,
Expand Down

0 comments on commit d999124

Please sign in to comment.