Skip to content

Commit

Permalink
Merge pull request #83 from bgd-labs/fix/clean-phase3
Browse files Browse the repository at this point in the history
fix: clean phase 3 pr
  • Loading branch information
kyzia551 authored Jun 13, 2024
2 parents 28f3f24 + 3db8d83 commit 25248d4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 219 deletions.
213 changes: 0 additions & 213 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]()



Expand Down

0 comments on commit 25248d4

Please sign in to comment.