diff --git a/Makefile b/Makefile index ec83231b..bc60e8ea 100644 --- a/Makefile +++ b/Makefile @@ -53,216 +53,3 @@ endef define deploy_fn $(foreach network,$(2),$(call deploy_single_fn,$(1),$(network),$(3))) endef - -# ---------------------------------------------------------------------------------------------------------------------- -# ----------------------------------------- PRODUCTION DEPLOYMENT SCRIPTS --------------------------------------------------------- - -# deploy emergency registry -deploy-emergency-registry: - $(call deploy_fn,Deploy_EmergencyRegistry,ethereum) - -# Deploy Proxy Factories on all networks -deploy-proxy-factory: - $(call deploy_fn,InitialDeployments,ethereum avalanche polygon optimism arbitrum metis base binance gnosis zkevm) - -# Deploy Cross Chain Infra on all networks -deploy-cross-chain-infra: - $(call deploy_fn,CCC/Deploy_CCC,ethereum avalanche polygon optimism arbitrum metis base binance gnosis zkevm) - -## Deploy CCIP bridge adapters on all networks -deploy-ccip-bridge-adapters: - $(call deploy_fn,Adapters/DeployCCIP,ethereum avalanche binance polygon binance gnosis) - -## Deploy LayerZero bridge adapters on all networks -deploy-lz-bridge-adapters: - $(call deploy_fn,Adapters/DeployLZ,ethereum avalanche binance polygon binance gnosis) - -## Deploy HyperLane bridge adapters on all networks -deploy-hl-bridge-adapters: - $(call deploy_fn,Adapters/DeployHL,ethereum avalanche binance polygon binance gnosis) - -## Deploy SameChain adapters on ethereum -deploy-same-chain-adapters: - $(call deploy_fn,Adapters/DeploySameChainAdapter,ethereum) - -deploy-optimism-adapters: - $(call deploy_fn,Adapters/DeployOpAdapter,ethereum optimism) - -deploy-arbitrum-adapters: - $(call deploy_fn,Adapters/DeployArbAdapter,ethereum arbitrum) - -deploy-metis-adapters: - $(call deploy_fn,Adapters/DeployMetisAdapter,ethereum metis) - -deploy-polygon-adapters: - $(call deploy_fn,Adapters/DeployPolygon,ethereum polygon) - -deploy-base-adapters: - $(call deploy_fn,Adapters/DeployCBaseAdapter,ethereum base) - -deploy-gnosis-adapters: - $(call deploy_fn,Adapters/DeployGnosisChain,ethereum gnosis) - -deploy-scroll-adapters: - $(call deploy_fn,Adapters/DeployScrollAdapter,ethereum scroll) - -deploy-zkevm-adapters: - $(call deploy_fn,Adapters/DeployZkEVMAdapter,ethereum zkevm) - -deploy-wormhole-adapters: - $(call deploy_fn,Adapters/DeployWormholeAdapter,ethereum celo) - -## Set sender bridge dapters. Only eth pol avax are needed as other networks will only receive -set-ccf-sender-adapters: - $(call deploy_fn,CCC/Set_CCF_Sender_Adapters,ethereum) - -# Set the bridge adapters allowed to receive messages -set-ccr-receiver-adapters: - $(call deploy_fn,CCC/Set_CCR_Receivers_Adapters,ethereum polygon avalanche binance arbitrum optimism base metis gnosis zkevm) - -# Sets the required confirmations -set-ccr-confirmations: - $(call deploy_fn,CCC/Set_CCR_Confirmations,ethereum polygon avalanche optimism arbitrum metis base binance gnosis zkevm) - -# Generate Addresses Json -write-json-addresses :; forge script scripts/WriteAddresses.s.sol:WriteDeployedAddresses -vvvv - -# Funds CCC -fund-crosschain: - $(call deploy_fn,CCC/FundCCC,ethereum polygon avalanche arbitrum) - -## Deploy and configure all contracts -deploy-full: - make deploy-proxy-factory - make deploy-cross-chain-infra - make deploy-ccip-bridge-adapters - make deploy-lz-bridge-adapters - make deploy-hl-bridge-adapters - make deploy-same-chain-adapters - make deploy-optimism-adapters - make deploy-arbitrum-adapters - make deploy-metis-adapters - make deploy-polygon-adapters - make set-ccf-approved-senders - make set-ccf-sender-adapters - make set-ccr-receiver-adapters - make set-ccr-confirmations - make fund-crosschain - make write-json-addresses - - - -# ---------------------------------------------------------------------------------------------------------------------- -# ----------------------------------------- TESTNET DEPLOYMENT SCRIPTS --------------------------------------------------------- - -# Deploy Proxy Factories on all networks -deploy-proxy-factory-test: - $(call deploy_fn,InitialDeployments,base) - -# Deploy Cross Chain Infra on all networks -deploy-cross-chain-infra-test: - $(call deploy_fn,CCC/Deploy_CCC,ethereum) - -## Deploy CCIP bridge adapters on all networks -deploy-ccip-bridge-adapters-test: - $(call deploy_fn,Adapters/DeployCCIP,ethereum) - -## Deploy LayerZero bridge adapters on all networks -deploy-lz-bridge-adapters-test: - $(call deploy_fn,Adapters/DeployLZ,ethereum) - -## Deploy HyperLane bridge adapters on all networks -deploy-hl-bridge-adapters-test: - $(call deploy_fn,Adapters/DeployHL,ethereum) - -## Deploy SameChain adapters on ethereum -deploy-same-chain-adapters-test: - $(call deploy_fn,Adapters/DeploySameChainAdapter,ethereum) - -deploy-scroll-adapters-test: - $(call deploy_fn,Adapters/DeployScrollAdapter,ethereum) - -deploy-wormhole-adapters-test: - $(call deploy_fn,Adapters/DeployWormholeAdapter,ethereum) - -deploy-polygon-adapters-test: - $(call deploy_fn,Adapters/DeployPolygon,ethereum) - -deploy-gnosis-adapters-test: - $(call deploy_fn,Adapters/DeployGnosisChain,ethereum) - -deploy-arbitrum-adapters-test: - $(call deploy_fn,Adapters/DeployArbAdapter,ethereum) - -deploy-optimism-adapters-test: - $(call deploy_fn,Adapters/DeployOpAdapter,ethereum) - -deploy-metis-adapters-test: - $(call deploy_fn,Adapters/DeployMetisAdapter,ethereum) - -deploy-base-adapters-test: - $(call deploy_fn,Adapters/DeployCBaseAdapter,ethereum) - -## Set sender bridge dapters. Only eth pol avax are needed as other networks will only receive -set-ccf-sender-adapters-test: - $(call deploy_fn,CCC/Set_CCF_Sender_Adapters,avalanche) - -# Set the bridge adapters allowed to receive messages -set-ccr-receiver-adapters-test: - $(call deploy_fn,CCC/Set_CCR_Receivers_Adapters,celo) - -# Sets the required confirmations -set-ccr-confirmations-test: - $(call deploy_fn,CCC/Set_CCR_Confirmations,ethereum) - -# Funds CCC -fund-crosschain-test: - $(call deploy_fn,CCC/FundCCC,ethereum) - -## Deploy and configure all contracts -deploy-full-test: - #make deploy-proxy-factory-test - make deploy-cross-chain-infra-test - make deploy-ccip-bridge-adapters-test - make deploy-lz-bridge-adapters-test - make deploy-hl-bridge-adapters-test - make deploy-same-chain-adapters-test - make set-ccf-sender-adapters-test - make set-ccr-receiver-adapters-test - make set-ccr-confirmations-test - make fund-crosschain-test - make write-json-addresses - - - -# ---------------------------------------------------------------------------------------------------------------------- -# ----------------------------------------- HELPER SCRIPTS --------------------------------------------------------- -remove-bridge-adapters: - $(call deploy_fn,helpers/RemoveBridgeAdapters,celo) - -send-direct-message: - $(call deploy_fn,helpers/Send_Direct_CCMessage,avalanche) - -deploy_mock_destination: - $(call deploy_fn,helpers/Deploy_Mock_destination,ethereum) - -set-approved-ccf-senders: - $(call deploy_fn,helpers/Set_Approved_Senders,ethereum) - -send-message: - @$(call deploy_fn,helpers/Testnet_ForwardMessage,ethereum,Testnet_ForwardMessage) - -deploy_mock_ccc: - $(call deploy_fn,helpers/mocks/Deploy_Mock_CCC,zkevm) - -send-message-via-adapter: - $(call deploy_fn,helpers/Send_Message_Via_Adapter,ethereum) - -deploy_ccc_granular_guardian: - $(call deploy_fn,helpers/Send_Message_Via_Adapter,avalanche, polygon, binance, gnosis) - -deploy-ccc-revision-and-update: - $(call deploy_fn,CCC/UpdateCCC,ethereum) - -deploy-ccc-update-payload: - $(call deploy_fn,helpers/UpdateCCCImpl_Payload,celo) diff --git a/README.md b/README.md index fc00692f..66dda79f 100644 --- a/README.md +++ b/README.md @@ -103,12 +103,6 @@ All the information about setup of the project and deployments can be found [HER - Security: - Granular Guardian: - [Report](security/certora/reports/Granular-Guardian-Access-Control.pdf) - - Shuffling: - - [Report]() - - [Properties](./security/certora/properties) -- Diff: - - Release branch created [here]() - - diff with V1 Maintenance [here]()