diff --git a/Makefile b/Makefile index 484e3441..b0a0289e 100644 --- a/Makefile +++ b/Makefile @@ -73,27 +73,27 @@ AMOY_TREASURY := 0x8C6B3eE457b193A49794df466957441b4AccD102 AMOY_INSTANT_POOL_OWNER := 0x8C6B3eE457b193A49794df466957441b4AccD102 AMOY_DEPLOYER := 0x8C6B3eE457b193A49794df466957441b4AccD102 -# Ethereum (Staging) contract addresses -ETHEREUM_STAGING_VALIDATOR_REGISTRY := 0xcEbaFD96Df8a1Cc63ee77770296F14B68089Ab04 -ETHEREUM_STAGING_MATIC_X := 0xD22dd194B8ec2abEeeFAC36a69cd8898FB6C43b3 -ETHEREUM_STAGING_FX_STATE_ROOT_TUNNEL := 0xcD7AdBBF3030AFFa7766606c5EA9E016141422Ca -ETHEREUM_STAGING_TIMELOCK_CONTROLLER := 0x420d319efe3Dd573Ccf3219dDdf60C83902B9f10 -ETHEREUM_STAGING_STAKE_MANAGER := 0x5e3ef299fddf15eaa0432e6e66473ace8c13d908 -ETHEREUM_STAGING_CHECKPOINT_MANAGER := 0x86e4dc95c7fbdbf52e33d563bbdb00823894c287 -ETHEREUM_STAGING_FX_ROOT := 0xfe5e5D361b2ad62c541bAb87C45a0B9B018389a2 -ETHEREUM_STAGING_MATIC := 0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0 -ETHEREUM_STAGING_POL := 0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6 -ETHEREUM_STAGING_MANAGER := 0xf9CBb2BF3f14c9F6De3F16fc0da4bAaDa25ebDC7 -ETHEREUM_STAGING_TREASURY := 0xf9CBb2BF3f14c9F6De3F16fc0da4bAaDa25ebDC7 -ETHEREUM_STAGING_DEPLOYER := 0x6FCBE6C2d6f6c890fD0cC5b0288E2D474D90BB1F +# Ethereum (Preprod) contract addresses +ETHEREUM_PREPROD_VALIDATOR_REGISTRY := 0xcEbaFD96Df8a1Cc63ee77770296F14B68089Ab04 +ETHEREUM_PREPROD_MATIC_X := 0xD22dd194B8ec2abEeeFAC36a69cd8898FB6C43b3 +ETHEREUM_PREPROD_FX_STATE_ROOT_TUNNEL := 0xcD7AdBBF3030AFFa7766606c5EA9E016141422Ca +ETHEREUM_PREPROD_TIMELOCK_CONTROLLER := 0x420d319efe3Dd573Ccf3219dDdf60C83902B9f10 +ETHEREUM_PREPROD_STAKE_MANAGER := 0x5e3Ef299fDDf15eAa0432E6e66473ace8c13D908 +ETHEREUM_PREPROD_CHECKPOINT_MANAGER := 0x86E4Dc95c7FBdBf52e33D563BbDB00823894C287 +ETHEREUM_PREPROD_FX_ROOT := 0xfe5e5D361b2ad62c541bAb87C45a0B9B018389a2 +ETHEREUM_PREPROD_MATIC := 0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0 +ETHEREUM_PREPROD_POL := 0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6 +ETHEREUM_PREPROD_MANAGER := 0xf9CBb2BF3f14c9F6De3F16fc0da4bAaDa25ebDC7 +ETHEREUM_PREPROD_TREASURY := 0xf9CBb2BF3f14c9F6De3F16fc0da4bAaDa25ebDC7 +ETHEREUM_PREPROD_DEPLOYER := 0x6FCBE6C2d6f6c890fD0cC5b0288E2D474D90BB1F # Ethereum (Prod) contract addresses ETHEREUM_PROD_VALIDATOR_REGISTRY := 0xf556442D5B77A4B0252630E15d8BbE2160870d77 ETHEREUM_PROD_MATIC_X := 0xf03A7Eb46d01d9EcAA104558C732Cf82f6B6B645 ETHEREUM_PROD_FX_STATE_ROOT_TUNNEL := 0x40FB804Cc07302b89EC16a9f8d040506f64dFe29 ETHEREUM_PROD_TIMELOCK_CONTROLLER := 0x20Ea6f63de406040E1e4B67aD98E84A0Eb3778Be -ETHEREUM_PROD_STAKE_MANAGER := 0x5e3ef299fddf15eaa0432e6e66473ace8c13d908 -ETHEREUM_PROD_CHECKPOINT_MANAGER := 0x86e4dc95c7fbdbf52e33d563bbdb00823894c287 +ETHEREUM_PROD_STAKE_MANAGER := 0x5e3Ef299fDDf15eAa0432E6e66473ace8c13D908 +ETHEREUM_PROD_CHECKPOINT_MANAGER := 0x86E4Dc95c7FBdBf52e33D563BbDB00823894C287 ETHEREUM_PROD_FX_ROOT := 0xfe5e5D361b2ad62c541bAb87C45a0B9B018389a2 ETHEREUM_PROD_MATIC := 0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0 ETHEREUM_PROD_POL := 0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6 @@ -101,15 +101,15 @@ ETHEREUM_PROD_MANAGER := 0x80A43dd35382C4919991C5Bca7f46Dd24Fde4C67 ETHEREUM_PROD_TREASURY := 0x01422247a1d15BB4FcF91F5A077Cf25BA6460130 ETHEREUM_PROD_DEPLOYER := 0x75db63125A4f04E59A1A2Ab4aCC4FC1Cd5Daddd5 -# Polygon (Staging) contract addresses -POLYGON_STAGING_MATIC_X := 0x797Ea002716E9a91F764721bBf3C4F34548B87F8 -POLYGON_STAGING_CHILD_POOL := 0x86182711ee76085444FD66E8a4d58A15f9b6EfAC -POLYGON_STAGING_FX_CHILD := 0x8397259c983751DAf40400790063935a11afa28a -POLYGON_STAGING_FX_STATE_CHILD_TUNNEL := 0x976BdbC06B84349C003A4C7Afeb2bAbdfd689bAa -POLYGON_STAGING_MANAGER := 0x6FCBE6C2d6f6c890fD0cC5b0288E2D474D90BB1F -POLYGON_STAGING_TREASURY := 0x6FCBE6C2d6f6c890fD0cC5b0288E2D474D90BB1F -POLYGON_STAGING_INSTANT_POOL_OWNER := 0x6FCBE6C2d6f6c890fD0cC5b0288E2D474D90BB1F -POLYGON_STAGING_DEPLOYER := 0x6FCBE6C2d6f6c890fD0cC5b0288E2D474D90BB1F +# Polygon (Preprod) contract addresses +POLYGON_PREPROD_MATIC_X := 0x797Ea002716E9a91F764721bBf3C4F34548B87F8 +POLYGON_PREPROD_CHILD_POOL := 0x86182711ee76085444FD66E8a4d58A15f9b6EfAC +POLYGON_PREPROD_FX_CHILD := 0x8397259c983751DAf40400790063935a11afa28a +POLYGON_PREPROD_FX_STATE_CHILD_TUNNEL := 0x976BdbC06B84349C003A4C7Afeb2bAbdfd689bAa +POLYGON_PREPROD_MANAGER := 0x6FCBE6C2d6f6c890fD0cC5b0288E2D474D90BB1F +POLYGON_PREPROD_TREASURY := 0x6FCBE6C2d6f6c890fD0cC5b0288E2D474D90BB1F +POLYGON_PREPROD_INSTANT_POOL_OWNER := 0x6FCBE6C2d6f6c890fD0cC5b0288E2D474D90BB1F +POLYGON_PREPROD_DEPLOYER := 0x6FCBE6C2d6f6c890fD0cC5b0288E2D474D90BB1F # Polygon (Prod) contract addresses POLYGON_PROD_MATIC_X := 0xfa68FB4628DFF1028CFEc22b4162FCcd0d45efb6 @@ -148,8 +148,8 @@ deploy-validatorregistry-localhost: $(BIN_HARDHAT) deploy:validator-registry --network $(NETWORK_LOCALHOST) --stake-manager $(LOCALHOST_STAKE_MANAGER) --matic $(LOCALHOST_MATIC) --matic-x $(LOCALHOST_MATIC_X) --manager $(LOCALHOST_MANAGER) deploy-validatorregistry-sepolia: $(BIN_HARDHAT) deploy:validator-registry --network $(NETWORK_SEPOLIA) --stake-manager $(SEPOLIA_STAKE_MANAGER) --matic $(SEPOLIA_MATIC) --matic-x $(SEPOLIA_MATIC_X) --manager $(SEPOLIA_MANAGER) -deploy-validatorregistry-ethereum-staging: - $(BIN_HARDHAT) deploy:validator-registry --network $(NETWORK_ETHEREUM) --stake-manager $(ETHEREUM_STAGING_STAKE_MANAGER) --matic $(ETHEREUM_STAGING_MATIC) --matic-x $(ETHEREUM_STAGING_MATIC_X) --manager $(ETHEREUM_STAGING_MANAGER) +deploy-validatorregistry-ethereum-preprod: + $(BIN_HARDHAT) deploy:validator-registry --network $(NETWORK_ETHEREUM) --stake-manager $(ETHEREUM_PREPROD_STAKE_MANAGER) --matic $(ETHEREUM_PREPROD_MATIC) --matic-x $(ETHEREUM_PREPROD_MATIC_X) --manager $(ETHEREUM_PREPROD_MANAGER) deploy-validatorregistry-ethereum-prod: $(BIN_HARDHAT) deploy:validator-registry --network $(NETWORK_ETHEREUM) --stake-manager $(ETHEREUM_PROD_STAKE_MANAGER) --matic $(ETHEREUM_PROD_MATIC) --matic-x $(ETHEREUM_PROD_MATIC_X) --manager $(ETHEREUM_PROD_MANAGER) @@ -162,12 +162,12 @@ deploy-maticx-sepolia: $(BIN_HARDHAT) deploy:matic-x --network $(NETWORK_SEPOLIA) --validator-registry $(SEPOLIA_VALIDATOR_REGISTRY) --stake-manager $(SEPOLIA_STAKE_MANAGER) --matic $(SEPOLIA_MATIC) --manager $(SEPOLIA_MANAGER) --treasury $(SEPOLIA_TREASURY) deploy-maticx-amoy: $(BIN_HARDHAT) deploy:u-child-erc20 --network $(NETWORK_AMOY) --name "Liquid Staking Matic (PoS)" --symbol "MaticX" --child-chain-manager $(AMOY_MANAGER) -deploy-maticx-ethereum-staging: - $(BIN_HARDHAT) deploy:matic-x --network $(NETWORK_ETHEREUM) --validator-registry $(ETHEREUM_STAGING_VALIDATOR_REGISTRY) --stake-manager $(ETHEREUM_STAGING_STAKE_MANAGER) --matic $(ETHEREUM_STAGING_MATIC) --manager $(ETHEREUM_STAGING_MANAGER) --treasury $(ETHEREUM_STAGING_TREASURY) +deploy-maticx-ethereum-preprod: + $(BIN_HARDHAT) deploy:matic-x --network $(NETWORK_ETHEREUM) --validator-registry $(ETHEREUM_PREPROD_VALIDATOR_REGISTRY) --stake-manager $(ETHEREUM_PREPROD_STAKE_MANAGER) --matic $(ETHEREUM_PREPROD_MATIC) --manager $(ETHEREUM_PREPROD_MANAGER) --treasury $(ETHEREUM_PREPROD_TREASURY) deploy-maticx-ethereum-prod: $(BIN_HARDHAT) deploy:matic-x --network $(NETWORK_ETHEREUM) --validator-registry $(ETHEREUM_PROD_VALIDATOR_REGISTRY) --stake-manager $(ETHEREUM_PROD_STAKE_MANAGER) --matic $(ETHEREUM_PROD_MATIC) --manager $(ETHEREUM_PROD_MANAGER) --treasury $(ETHEREUM_PROD_TREASURY) -deploy-maticx-polygon-staging: - $(BIN_HARDHAT) deploy:u-child-erc20 --network $(NETWORK_POLYGON) --name "Liquid Staking Matic (PoS)" --symbol "MaticX" --child-chain-manager $(POLYGON_STAGING_MANAGER) +deploy-maticx-polygon-preprod: + $(BIN_HARDHAT) deploy:u-child-erc20 --network $(NETWORK_POLYGON) --name "Liquid Staking Matic (PoS)" --symbol "MaticX" --child-chain-manager $(POLYGON_PREPROD_MANAGER) deploy-maticx-polygon-prod: $(BIN_HARDHAT) deploy:u-child-erc20 --network $(NETWORK_POLYGON) --name "Liquid Staking Matic (PoS)" --symbol "MaticX" --child-chain-manager $(POLYGON_PROD_MANAGER) @@ -178,8 +178,8 @@ deploy-childpool-localhost: $(BIN_HARDHAT) deploy:child-pool --network $(NETWORK_LOCALHOST) --fx-state-child-tunnel $(LOCALHOST_FX_STATE_CHILD_TUNNEL) --matic-x $(LOCALHOST_MATIC_X) --manager $(LOCALHOST_MANAGER) --instant-pool-owner $(LOCALHOST_INSTANT_POOL_OWNER) --treasury $(LOCALHOST_TREASURY) deploy-childpool-amoy: $(BIN_HARDHAT) deploy:child-pool --network $(NETWORK_AMOY) --fx-state-child-tunnel $(AMOY_FX_STATE_CHILD_TUNNEL) --matic-x $(AMOY_MATIC_X) --manager $(AMOY_MANAGER) --instant-pool-owner $(AMOY_INSTANT_POOL_OWNER) --treasury $(AMOY_TREASURY) -deploy-childpool-polygon-staging: - $(BIN_HARDHAT) deploy:child-pool --network $(NETWORK_POLYGON) --fx-state-child-tunnel $(POLYGON_STAGING_FX_STATE_CHILD_TUNNEL) --matic-x $(POLYGON_STAGING_MATIC_X) --manager $(POLYGON_STAGING_MANAGER) --instant-pool-owner $(POLYGON_STAGING_INSTANT_POOL_OWNER) --treasury $(POLYGON_STAGING_TREASURY) +deploy-childpool-polygon-preprod: + $(BIN_HARDHAT) deploy:child-pool --network $(NETWORK_POLYGON) --fx-state-child-tunnel $(POLYGON_PREPROD_FX_STATE_CHILD_TUNNEL) --matic-x $(POLYGON_PREPROD_MATIC_X) --manager $(POLYGON_PREPROD_MANAGER) --instant-pool-owner $(POLYGON_PREPROD_INSTANT_POOL_OWNER) --treasury $(POLYGON_PREPROD_TREASURY) deploy-childpool-polygon-prod: $(BIN_HARDHAT) deploy:child-pool --network $(NETWORK_POLYGON) --fx-state-child-tunnel $(POLYGON_PROD_FX_STATE_CHILD_TUNNEL) --matic-x $(POLYGON_PROD_MATIC_X) --manager $(POLYGON_PROD_MANAGER) --instant-pool-owner $(POLYGON_PROD_INSTANT_POOL_OWNER) --treasury $(POLYGON_PROD_TREASURY) @@ -190,8 +190,8 @@ deploy-fxstateroottunnel-localhost: $(BIN_HARDHAT) deploy:fx-state-root-tunnel --network $(NETWORK_LOCALHOST) --checkpoint-manager $(LOCALHOST_CHECKPOINT_MANAGER) --fx-root $(LOCALHOST_FX_ROOT) --matic-x $(LOCALHOST_MATIC_X) deploy-fxstateroottunnel-sepolia: $(BIN_HARDHAT) deploy:fx-state-root-tunnel --network $(NETWORK_SEPOLIA) --checkpoint-manager $(SEPOLIA_CHECKPOINT_MANAGER) --fx-root $(SEPOLIA_FX_ROOT) --matic-x $(SEPOLIA_MATIC_X) -deploy-fxstateroottunnel-ethereum-staging: - $(BIN_HARDHAT) deploy:fx-state-root-tunnel --network $(NETWORK_ETHEREUM) --checkpoint-manager $(ETHEREUM_STAGING_CHECKPOINT_MANAGER) --fx-root $(ETHEREUM_STAGING_FX_ROOT) --matic-x $(ETHEREUM_STAGING_MATIC_X) +deploy-fxstateroottunnel-ethereum-preprod: + $(BIN_HARDHAT) deploy:fx-state-root-tunnel --network $(NETWORK_ETHEREUM) --checkpoint-manager $(ETHEREUM_PREPROD_CHECKPOINT_MANAGER) --fx-root $(ETHEREUM_PREPROD_FX_ROOT) --matic-x $(ETHEREUM_PREPROD_MATIC_X) deploy-fxstateroottunnel-ethereum-prod: $(BIN_HARDHAT) deploy:fx-state-root-tunnel --network $(NETWORK_ETHEREUM) --checkpoint-manager $(ETHEREUM_PROD_CHECKPOINT_MANAGER) --fx-root $(ETHEREUM_PROD_FX_ROOT) --matic-x $(ETHEREUM_PROD_MATIC_X) @@ -202,8 +202,8 @@ deploy-fxstatechildtunnel-localhost: $(BIN_HARDHAT) deploy:fx-state-child-tunnel --network $(NETWORK_LOCALHOST) --fx-child $(LOCALHOST_FX_CHILD) deploy-fxstatechildtunnel-amoy: $(BIN_HARDHAT) deploy:fx-state-child-tunnel --network $(NETWORK_AMOY) --fx-child $(AMOY_FX_CHILD) -deploy-fxstatechildtunnel-polygon-staging: - $(BIN_HARDHAT) deploy:fx-state-child-tunnel --network $(NETWORK_POLYGON) --fx-child $(POLYGON_STAGING_FX_CHILD) +deploy-fxstatechildtunnel-polygon-preprod: + $(BIN_HARDHAT) deploy:fx-state-child-tunnel --network $(NETWORK_POLYGON) --fx-child $(POLYGON_PREPROD_FX_CHILD) deploy-fxstatechildtunnel-polygon-prod: $(BIN_HARDHAT) deploy:fx-state-child-tunnel --network $(NETWORK_POLYGON) --fx-child $(POLYGON_PROD_FX_CHILD) @@ -214,8 +214,8 @@ deploy-timelockcontroller-localhost: $(BIN_HARDHAT) deploy:timelock-controller --network $(NETWORK_LOCALHOST) --min-delay $(TIMELOCK_CONTROLLER_SHORT_DELAY) --manager $(LOCALHOST_MANAGER) deploy-timelockcontroller-sepolia: $(BIN_HARDHAT) deploy:timelock-controller --network $(NETWORK_SEPOLIA) --min-delay $(TIMELOCK_CONTROLLER_SHORT_DELAY) --manager $(SEPOLIA_MANAGER) -deploy-timelockcontroller-ethereum-staging: - $(BIN_HARDHAT) deploy:timelock-controller --network $(NETWORK_ETHEREUM) --min-delay $(TIMELOCK_CONTROLLER_SHORT_DELAY) --manager $(ETHEREUM_STAGING_MANAGER) +deploy-timelockcontroller-ethereum-preprod: + $(BIN_HARDHAT) deploy:timelock-controller --network $(NETWORK_ETHEREUM) --min-delay $(TIMELOCK_CONTROLLER_SHORT_DELAY) --manager $(ETHEREUM_PREPROD_MANAGER) deploy-timelockcontroller-ethereum-prod: $(BIN_HARDHAT) deploy:timelock-controller --network $(NETWORK_ETHEREUM) --min-delay $(TIMELOCK_CONTROLLER_LONG_DELAY) --manager $(ETHEREUM_PROD_MANAGER) @@ -224,7 +224,7 @@ deployimplementation-maticx-localhost: $(BIN_HARDHAT) deploy-implementation --network $(NETWORK_LOCALHOST) --name MaticX deployimplementation-maticx-sepolia: $(BIN_HARDHAT) deploy-implementation --network $(NETWORK_SEPOLIA) --name MaticX -deployimplementation-maticx-ethereum-staging: +deployimplementation-maticx-ethereum-preprod: $(BIN_HARDHAT) deploy-implementation --network $(NETWORK_ETHEREUM) --name MaticX deployimplementation-maticx-ethereum-prod: $(BIN_HARDHAT) deploy-implementation --network $(NETWORK_ETHEREUM) --name MaticX @@ -234,7 +234,7 @@ deployimplementation-validatorregistry-localhost: $(BIN_HARDHAT) deploy-implementation --network $(NETWORK_LOCALHOST) --name ValidatorRegistry deployimplementation-validatorregistry-sepolia: $(BIN_HARDHAT) deploy-implementation --network $(NETWORK_SEPOLIA) --name ValidatorRegistry -deployimplementation-validatorregistry-ethereum-staging: +deployimplementation-validatorregistry-ethereum-preprod: $(BIN_HARDHAT) deploy-implementation --network $(NETWORK_ETHEREUM) --name ValidatorRegistry deployimplementation-validatorregistry-ethereum-prod: $(BIN_HARDHAT) deploy-implementation --network $(NETWORK_ETHEREUM) --name ValidatorRegistry @@ -244,7 +244,7 @@ deployimplementation-childpool-localhost: $(BIN_HARDHAT) deploy-implementation --network $(NETWORK_LOCALHOST) --name ChildPool deployimplementation-childpool-amoy: $(BIN_HARDHAT) deploy-implementation --network $(NETWORK_AMOY) --name ChildPool -deployimplementation-childpool-polygon-staging: +deployimplementation-childpool-polygon-preprod: $(BIN_HARDHAT) deploy-implementation --network $(NETWORK_POLYGON) --name ChildPool deployimplementation-childpool-polygon-prod: $(BIN_HARDHAT) deploy-implementation --network $(NETWORK_POLYGON) --name ChildPool @@ -254,8 +254,8 @@ upgrade-validatorregistry-localhost: $(BIN_HARDHAT) upgrade-contract --network $(NETWORK_LOCALHOST) --name ValidatorRegistry --contract $(LOCALHOST_VALIDATOR_REGISTRY) upgrade-validatorregistry-sepolia: $(BIN_HARDHAT) upgrade-contract --network $(NETWORK_SEPOLIA) --name ValidatorRegistry --contract $(SEPOLIA_VALIDATOR_REGISTRY) -upgrade-validatorregistry-ethereum-staging: - $(BIN_HARDHAT) upgrade-contract --network $(NETWORK_ETHEREUM) --name ValidatorRegistry --contract $(ETHEREUM_STAGING_VALIDATOR_REGISTRY) +upgrade-validatorregistry-ethereum-preprod: + $(BIN_HARDHAT) upgrade-contract --network $(NETWORK_ETHEREUM) --name ValidatorRegistry --contract $(ETHEREUM_PREPROD_VALIDATOR_REGISTRY) upgrade-validatorregistry-ethereum-prod: $(BIN_HARDHAT) upgrade-contract --network $(NETWORK_ETHEREUM) --name ValidatorRegistry --contract $(ETHEREUM_PROD_VALIDATOR_REGISTRY) @@ -264,16 +264,16 @@ upgrade-maticx-localhost: $(BIN_HARDHAT) upgrade-contract --network $(NETWORK_LOCALHOST) --name MaticX --contract $(LOCALHOST_MATIC_X) --unsafe true upgrade-maticx-sepolia: $(BIN_HARDHAT) upgrade-contract --network $(NETWORK_SEPOLIA) --name MaticX --contract $(SEPOLIA_MATIC_X) --unsafe true -upgrade-maticx-ethereum-staging: - $(BIN_HARDHAT) upgrade-contract --network $(NETWORK_ETHEREUM) --name MaticX --contract $(ETHEREUM_STAGING_MATIC_X) --unsafe true +upgrade-maticx-ethereum-preprod: + $(BIN_HARDHAT) upgrade-contract --network $(NETWORK_ETHEREUM) --name MaticX --contract $(ETHEREUM_PREPROD_MATIC_X) --unsafe true upgrade-maticx-ethereum-prod: $(BIN_HARDHAT) upgrade-contract --network $(NETWORK_ETHEREUM) --name MaticX --contract $(ETHEREUM_PROD_MATIC_X) --unsafe true # Verify the ValidatorRegistry contract verify-validatorregistry-sepolia: $(BIN_HARDHAT) verify-contract --network $(NETWORK_SEPOLIA) --contract $(SEPOLIA_VALIDATOR_REGISTRY) -verify-validatorregistry-ethereum-staging: - $(BIN_HARDHAT) verify-contract --network $(NETWORK_ETHEREUM) --contract $(ETHEREUM_STAGING_VALIDATOR_REGISTRY) +verify-validatorregistry-ethereum-preprod: + $(BIN_HARDHAT) verify-contract --network $(NETWORK_ETHEREUM) --contract $(ETHEREUM_PREPROD_VALIDATOR_REGISTRY) verify-validatorregistry-ethereum-prod: $(BIN_HARDHAT) verify-contract --network $(NETWORK_ETHEREUM) --contract $(ETHEREUM_PROD_VALIDATOR_REGISTRY) @@ -284,93 +284,93 @@ verify-maticx-amoy: $(BIN_HARDHAT) verify-contract --network $(NETWORK_AMOY) --contract $(AMOY_MATIC_X) verify-maticx-ethereum-prod: $(BIN_HARDHAT) verify-contract --network $(NETWORK_ETHEREUM) --contract $(ETHEREUM_PROD_MATIC_X) -verify-maticx-ethereum-staging: - $(BIN_HARDHAT) verify-contract --network $(NETWORK_ETHEREUM) --contract $(ETHEREUM_STAGING_MATIC_X) -verify-maticx-polygon-staging: - $(BIN_HARDHAT) verify-contract --network $(NETWORK_POLYGON) --contract $(POLYGON_STAGING_MATIC_X) +verify-maticx-ethereum-preprod: + $(BIN_HARDHAT) verify-contract --network $(NETWORK_ETHEREUM) --contract $(ETHEREUM_PREPROD_MATIC_X) +verify-maticx-polygon-preprod: + $(BIN_HARDHAT) verify-contract --network $(NETWORK_POLYGON) --contract $(POLYGON_PREPROD_MATIC_X) verify-maticx-polygon-prod: $(BIN_HARDHAT) verify-contract --network $(NETWORK_POLYGON) --contract $(POLYGON_PROD_MATIC_X) # Verify the ChildPool contract verify-childpool-amoy: $(BIN_HARDHAT) verify-contract --network $(NETWORK_AMOY) --contract $(AMOY_CHILD_POOL) -verify-childpool-polygon-staging: - $(BIN_HARDHAT) verify-contract --network $(NETWORK_POLYGON) --contract $(POLYGON_STAGING_CHILD_POOL) +verify-childpool-polygon-preprod: + $(BIN_HARDHAT) verify-contract --network $(NETWORK_POLYGON) --contract $(POLYGON_PREPROD_CHILD_POOL) verify-childpool-polygon-prod: $(BIN_HARDHAT) verify-contract --network $(NETWORK_POLYGON) --contract $(POLYGON_PROD_CHILD_POOL) # Verify the FxStateRootTunnel contract verify-fxstateroottunnel-sepolia: $(BIN_HARDHAT) verify-contract --network $(NETWORK_SEPOLIA) --contract $(SEPOLIA_FX_STATE_ROOT_TUNNEL) "$(SEPOLIA_CHECKPOINT_MANAGER)" "$(SEPOLIA_FX_ROOT)" "$(SEPOLIA_MATIC_X)" -verify-fxstateroottunnel-ethereum-staging: - $(BIN_HARDHAT) verify-contract --network $(NETWORK_ETHEREUM) --contract $(ETHEREUM_STAGING_FX_STATE_ROOT_TUNNEL) "$(ETHEREUM_STAGING_CHECKPOINT_MANAGER)" "$(ETHEREUM_STAGING_FX_ROOT)" "$(ETHEREUM_STAGING_MATIC_X)" +verify-fxstateroottunnel-ethereum-preprod: + $(BIN_HARDHAT) verify-contract --network $(NETWORK_ETHEREUM) --contract $(ETHEREUM_PREPROD_FX_STATE_ROOT_TUNNEL) "$(ETHEREUM_PREPROD_CHECKPOINT_MANAGER)" "$(ETHEREUM_PREPROD_FX_ROOT)" "$(ETHEREUM_PREPROD_MATIC_X)" verify-fxstateroottunnel-ethereum-prod: $(BIN_HARDHAT) verify-contract --network $(NETWORK_ETHEREUM) --contract $(ETHEREUM_PROD_FX_STATE_ROOT_TUNNEL) "$(ETHEREUM_PROD_CHECKPOINT_MANAGER)" "$(ETHEREUM_PROD_FX_ROOT)" "$(ETHEREUM_PROD_MATIC_X)" # Verify the TimelockController contract verify-timelockcontroller-sepolia: $(BIN_HARDHAT) verify-contract --network $(NETWORK_SEPOLIA) --contract $(SEPOLIA_TIMELOCK_CONTROLLER) "$(TIMELOCK_CONTROLLER_SHORT_DELAY)" "[$(SEPOLIA_MANAGER)]" "[$(SEPOLIA_MANAGER)]" "$(SEPOLIA_MANAGER)" -verify-timelockcontroller-ethereum-staging: - $(BIN_HARDHAT) verify-contract --network $(NETWORK_ETHEREUM) --contract $(ETHEREUM_STAGING_TIMELOCK_CONTROLLER) "$(TIMELOCK_CONTROLLER_SHORT_DELAY)" "[$(ETHEREUM_STAGING_MANAGER)]" "[$(ETHEREUM_STAGING_MANAGER)]" "$(ETHEREUM_STAGING_MANAGER)" +verify-timelockcontroller-ethereum-preprod: + $(BIN_HARDHAT) verify-contract --network $(NETWORK_ETHEREUM) --contract $(ETHEREUM_PREPROD_TIMELOCK_CONTROLLER) "$(TIMELOCK_CONTROLLER_SHORT_DELAY)" "[$(ETHEREUM_PREPROD_MANAGER)]" "[$(ETHEREUM_PREPROD_MANAGER)]" "$(ETHEREUM_PREPROD_MANAGER)" verify-timelockcontroller-ethereum-prod: $(BIN_HARDHAT) verify-contract --network $(NETWORK_ETHEREUM) --contract $(ETHEREUM_PROD_TIMELOCK_CONTROLLER) "$(TIMELOCK_CONTROLLER_LONG_DELAY)" "[$(ETHEREUM_PROD_MANAGER)]" "[$(ETHEREUM_PROD_MANAGER)]" "$(ETHEREUM_PROD_MANAGER)" # Verify the FxStateChildTunnel contract verify-fxstatechildtunnel-amoy: $(BIN_HARDHAT) verify-contract --network $(NETWORK_AMOY) --contract $(AMOY_FX_STATE_CHILD_TUNNEL) "$(AMOY_FX_CHILD)" -verify-fxstatechildtunnel-polygon-staging: - $(BIN_HARDHAT) verify-contract --network $(NETWORK_POLYGON) --contract $(POLYGON_STAGING_FX_STATE_CHILD_TUNNEL) "$(POLYGON_STAGING_FX_CHILD)" +verify-fxstatechildtunnel-polygon-preprod: + $(BIN_HARDHAT) verify-contract --network $(NETWORK_POLYGON) --contract $(POLYGON_PREPROD_FX_STATE_CHILD_TUNNEL) "$(POLYGON_PREPROD_FX_CHILD)" verify-fxstatechildtunnel-polygon-prod: $(BIN_HARDHAT) verify-contract --network $(NETWORK_POLYGON) --contract $(POLYGON_PROD_FX_STATE_CHILD_TUNNEL) "$(POLYGON_PROD_FX_CHILD)" # Import the ValidatorRegistry contract import-validatorregistry-sepolia: $(BIN_HARDHAT) import-contract --network $(NETWORK_SEPOLIA) --name ValidatorRegistry --contract $(SEPOLIA_VALIDATOR_REGISTRY) -import-validatorregistry-ethereum-staging: - $(BIN_HARDHAT) import-contract --network $(NETWORK_ETHEREUM) --name ValidatorRegistry --contract $(ETHEREUM_STAGING_VALIDATOR_REGISTRY) +import-validatorregistry-ethereum-preprod: + $(BIN_HARDHAT) import-contract --network $(NETWORK_ETHEREUM) --name ValidatorRegistry --contract $(ETHEREUM_PREPROD_VALIDATOR_REGISTRY) import-validatorregistry-ethereum-prod: $(BIN_HARDHAT) import-contract --network $(NETWORK_ETHEREUM) --name ValidatorRegistry --contract $(ETHEREUM_PROD_VALIDATOR_REGISTRY) # Import the MaticX contract import-maticx-sepolia: $(BIN_HARDHAT) import-contract --network $(NETWORK_SEPOLIA) --name MaticX --contract $(SEPOLIA_MATIC_X) -import-maticx-ethereum-staging: - $(BIN_HARDHAT) import-contract --network $(NETWORK_ETHEREUM) --name MaticX --contract $(ETHEREUM_STAGING_MATIC_X) +import-maticx-ethereum-preprod: + $(BIN_HARDHAT) import-contract --network $(NETWORK_ETHEREUM) --name MaticX --contract $(ETHEREUM_PREPROD_MATIC_X) import-maticx-ethereum-prod: $(BIN_HARDHAT) import-contract --network $(NETWORK_ETHEREUM) --name MaticX --contract $(ETHEREUM_PROD_MATIC_X) # Initialize v2 the ValidatorRegistry contract initializev2-validatorregistry-sepolia: $(BIN_HARDHAT) initialize-v2:validator-registry --network $(NETWORK_SEPOLIA) --contract $(SEPOLIA_VALIDATOR_REGISTRY) --pol $(SEPOLIA_POL) -initializev2-validatorregistry-ethereum-staging: - $(BIN_HARDHAT) initialize-v2:validator-registry --network $(NETWORK_ETHEREUM) --contract $(ETHEREUM_STAGING_VALIDATOR_REGISTRY) --pol $(ETHEREUM_STAGING_POL) +initializev2-validatorregistry-ethereum-preprod: + $(BIN_HARDHAT) initialize-v2:validator-registry --network $(NETWORK_ETHEREUM) --contract $(ETHEREUM_PREPROD_VALIDATOR_REGISTRY) --pol $(ETHEREUM_PREPROD_POL) initializev2-validatorregistry-ethereum-prod: $(BIN_HARDHAT) initialize-v2:validator-registry --network $(NETWORK_ETHEREUM) --contract $(ETHEREUM_PROD_VALIDATOR_REGISTRY) --pol $(ETHEREUM_PROD_POL) # Initialize v2 the MaticX contract initializev2-maticx-sepolia: $(BIN_HARDHAT) initialize-v2:matic-x --network $(NETWORK_SEPOLIA) --contract $(SEPOLIA_MATIC_X) --pol $(SEPOLIA_POL) -initializev2-maticx-ethereum-staging: - $(BIN_HARDHAT) initialize-v2:matic-x --network $(NETWORK_ETHEREUM) --contract $(ETHEREUM_STAGING_MATIC_X) --pol $(ETHEREUM_STAGING_POL) +initializev2-maticx-ethereum-preprod: + $(BIN_HARDHAT) initialize-v2:matic-x --network $(NETWORK_ETHEREUM) --contract $(ETHEREUM_PREPROD_MATIC_X) --pol $(ETHEREUM_PREPROD_POL) initializev2-maticx-ethereum-prod: $(BIN_HARDHAT) initialize-v2:matic-x --network $(NETWORK_ETHEREUM) --contract $(ETHEREUM_PROD_MATIC_X) --pol $(ETHEREUM_PROD_POL) # Validate the parent deployment validateparentdeployment-sepolia: $(BIN_HARDHAT) validate-parent-deployment --network $(NETWORK_SEPOLIA) --validator-registry $(SEPOLIA_VALIDATOR_REGISTRY) --matic-x $(SEPOLIA_MATIC_X) --fx-state-root-tunnel $(SEPOLIA_FX_STATE_ROOT_TUNNEL) --fx-state-child-tunnel $(AMOY_FX_STATE_CHILD_TUNNEL) --stake-manager $(SEPOLIA_STAKE_MANAGER) --checkpoint-manager $(SEPOLIA_CHECKPOINT_MANAGER) --fx-root $(SEPOLIA_FX_ROOT) --matic $(SEPOLIA_MATIC) --pol $(SEPOLIA_POL) --manager $(SEPOLIA_MANAGER) --treasury $(SEPOLIA_TREASURY) --deployer $(SEPOLIA_DEPLOYER) --matic-x-version $(MATIC_X_VERSION) --validator-registry-version $(VALIDATOR_REGISTRY_VERSION) --fee-percent $(MATIC_X_FEE_PERCENT) -validateparentdeployment-ethereum-staging: - $(BIN_HARDHAT) validate-parent-deployment --network $(NETWORK_ETHEREUM) --validator-registry $(ETHEREUM_STAGING_VALIDATOR_REGISTRY) --matic-x $(ETHEREUM_STAGING_MATIC_X) --fx-state-root-tunnel $(ETHEREUM_STAGING_FX_STATE_ROOT_TUNNEL) --fx-state-child-tunnel $(POLYGON_STAGING_FX_STATE_CHILD_TUNNEL) --stake-manager $(ETHEREUM_STAGING_STAKE_MANAGER) --checkpoint-manager $(ETHEREUM_STAGING_CHECKPOINT_MANAGER) --fx-root $(ETHEREUM_STAGING_FX_ROOT) --matic $(ETHEREUM_STAGING_MATIC) --pol $(ETHEREUM_STAGING_POL) --manager $(ETHEREUM_STAGING_MANAGER) --treasury $(ETHEREUM_STAGING_TREASURY) --deployer $(ETHEREUM_STAGING_DEPLOYER) --matic-x-version $(MATIC_X_VERSION) --validator-registry-version $(VALIDATOR_REGISTRY_VERSION) --fee-percent $(MATIC_X_FEE_PERCENT) +validateparentdeployment-ethereum-preprod: + $(BIN_HARDHAT) validate-parent-deployment --network $(NETWORK_ETHEREUM) --validator-registry $(ETHEREUM_PREPROD_VALIDATOR_REGISTRY) --matic-x $(ETHEREUM_PREPROD_MATIC_X) --fx-state-root-tunnel $(ETHEREUM_PREPROD_FX_STATE_ROOT_TUNNEL) --fx-state-child-tunnel $(POLYGON_PREPROD_FX_STATE_CHILD_TUNNEL) --stake-manager $(ETHEREUM_PREPROD_STAKE_MANAGER) --checkpoint-manager $(ETHEREUM_PREPROD_CHECKPOINT_MANAGER) --fx-root $(ETHEREUM_PREPROD_FX_ROOT) --matic $(ETHEREUM_PREPROD_MATIC) --pol $(ETHEREUM_PREPROD_POL) --manager $(ETHEREUM_PREPROD_MANAGER) --treasury $(ETHEREUM_PREPROD_TREASURY) --deployer $(ETHEREUM_PREPROD_DEPLOYER) --matic-x-version $(MATIC_X_VERSION) --validator-registry-version $(VALIDATOR_REGISTRY_VERSION) --fee-percent $(MATIC_X_FEE_PERCENT) # Validate the child deployment validatechilddeployment-amoy: $(BIN_HARDHAT) validate-child-deployment --network $(NETWORK_AMOY) --child-pool $(AMOY_CHILD_POOL) --matic-x $(AMOY_MATIC_X) --fx-state-child-tunnel $(AMOY_FX_STATE_CHILD_TUNNEL) --fx-state-root-tunnel $(SEPOLIA_FX_STATE_ROOT_TUNNEL) --fx-child $(AMOY_FX_CHILD) --manager $(AMOY_MANAGER) --treasury $(AMOY_TREASURY) --instant-pool-owner $(AMOY_INSTANT_POOL_OWNER) --deployer $(AMOY_DEPLOYER) -validatechilddeployment-polygon-staging: - $(BIN_HARDHAT) validate-child-deployment --network $(NETWORK_ETHEREUM) --child-pool $(POLYGON_STAGING_CHILD_POOL) --matic-x $(POLYGON_STAGING_MATIC_X) --fx-state-child-tunnel $(POLYGON_STAGING_FX_STATE_CHILD_TUNNEL) --fx-state-root-tunnel $(ETHEREUM_STAGING_FX_STATE_ROOT_TUNNEL) --fx-child $(POLYGON_STAGING_FX_CHILD) --manager $(POLYGON_STAGING_MANAGER) --treasury $(POLYGON_STAGING_TREASURY) --instant-pool-owner $(POLYGON_STAGING_INSTANT_POOL_OWNER) --deployer $(POLYGON_STAGING_DEPLOYER) +validatechilddeployment-polygon-preprod: + $(BIN_HARDHAT) validate-child-deployment --network $(NETWORK_POLYGON) --child-pool $(POLYGON_PREPROD_CHILD_POOL) --matic-x $(POLYGON_PREPROD_MATIC_X) --fx-state-child-tunnel $(POLYGON_PREPROD_FX_STATE_CHILD_TUNNEL) --fx-state-root-tunnel $(ETHEREUM_PREPROD_FX_STATE_ROOT_TUNNEL) --fx-child $(POLYGON_PREPROD_FX_CHILD) --manager $(POLYGON_PREPROD_MANAGER) --treasury $(POLYGON_PREPROD_TREASURY) --instant-pool-owner $(POLYGON_PREPROD_INSTANT_POOL_OWNER) --deployer $(POLYGON_PREPROD_DEPLOYER) # Validate environment deployment validatedeployment-testnet: validateparentdeployment-sepolia validatechilddeployment-amoy -validatedeployment-staging: validateparentdeployment-ethereum-staging validatechilddeployment-polygon-staging +validatedeployment-ethereum-preprod: validateparentdeployment-ethereum-preprod validatechilddeployment-polygon-preprod # Analyze contracts with mythril analyze-mytrhil-validatorregistry: diff --git a/docs/Ethereum-Mainnet-(Staging).md b/docs/Ethereum-Mainnet-(Preprod).md similarity index 100% rename from docs/Ethereum-Mainnet-(Staging).md rename to docs/Ethereum-Mainnet-(Preprod).md diff --git a/docs/Home.md b/docs/Home.md index c0339fdf..e577bded 100644 --- a/docs/Home.md +++ b/docs/Home.md @@ -3,7 +3,8 @@ ## Deployment Information - [Ethereum Mainnet (Prod)]() -- [Ethereum Mainnet (Staging)]() +- [Ethereum Mainnet (Preprod)]() - [Polygon Mainnet (Prod)]() +- [Polygon Mainnet (Preprod)]() - [Sepolia Testnet](https://github.com/stader-labs/maticX/wiki/Sepolia-Testnet) - [Amoy Testnet](https://github.com/stader-labs/maticX/wiki/Amoy-Testnet) diff --git a/docs/Polygon-Mainnet-(Staging).md b/docs/Polygon-Mainnet-(Preprod).md similarity index 100% rename from docs/Polygon-Mainnet-(Staging).md rename to docs/Polygon-Mainnet-(Preprod).md