Skip to content

Commit

Permalink
fix: some renamings
Browse files Browse the repository at this point in the history
  • Loading branch information
sendra committed Jan 29, 2024
1 parent 08d9b12 commit aaa6740
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 52 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ deploy_mock_destination:
$(call deploy_fn,helpers/Deploy_Mock_destination,zkevm)

set-approved-ccf-senders:
$(call deploy_fn,helpers/Set_Approved_Senders,ethereum avalanche polygon)
$(call new_deploy_fn,CCC/Set_CCF_Approved_Senders,SetCCFApprovedSenders,6)

send-message:
@$(call deploy_fn,helpers/Testnet_ForwardMessage,ethereum,Testnet_ForwardMessage)
Expand Down
52 changes: 2 additions & 50 deletions scripts/CCC/FundCCC.s.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.0;

import '../BaseScript.sol';
import '../DeploymentConfiguration.sol';

abstract contract BaseFundCrossChainController is BaseScript {
contract FundCrossChainController is BaseScript {
function getAmountToFund() public view virtual returns (uint256) {
return 500000000000000000;
}
Expand All @@ -13,51 +13,3 @@ abstract contract BaseFundCrossChainController is BaseScript {
require(success, 'ETH_TRANSFER_FAILED');
}
}

contract Ethereum is BaseFundCrossChainController {
function TRANSACTION_NETWORK() public pure override returns (uint256) {
return ChainIds.ETHEREUM;
}
}

contract Polygon is BaseFundCrossChainController {
function TRANSACTION_NETWORK() public pure override returns (uint256) {
return ChainIds.AVALANCHE;
}
}

contract Avalanche is BaseFundCrossChainController {
function TRANSACTION_NETWORK() public pure override returns (uint256) {
return ChainIds.POLYGON;
}
}

contract Binance is BaseFundCrossChainController {
function TRANSACTION_NETWORK() public pure override returns (uint256) {
return ChainIds.BNB;
}
}

contract Ethereum_testnet is BaseFundCrossChainController {
function TRANSACTION_NETWORK() public pure override returns (uint256) {
return TestNetChainIds.ETHEREUM_SEPOLIA;
}
}

contract Avalanche_testnet is BaseFundCrossChainController {
function TRANSACTION_NETWORK() public pure override returns (uint256) {
return TestNetChainIds.AVALANCHE_FUJI;
}
}

contract Polygon_testnet is BaseFundCrossChainController {
function TRANSACTION_NETWORK() public pure override returns (uint256) {
return TestNetChainIds.POLYGON_MUMBAI;
}
}

contract Binance_testnet is BaseFundCrossChainController {
function TRANSACTION_NETWORK() public pure override returns (uint256) {
return TestNetChainIds.BNB_TESTNET;
}
}
2 changes: 1 addition & 1 deletion scripts/CCC/Set_CCF_Approved_Senders.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pragma solidity ^0.8.0;
import '../DeploymentConfiguration.sol';
import {ICrossChainForwarder} from '../../src/contracts/interfaces/ICrossChainForwarder.sol';

contract BaseSetCCFApprovedSenders is DeploymentConfigurationBaseScript {
contract SetCCFApprovedSenders is DeploymentConfigurationBaseScript {
function _execute(
Addresses memory currentAddresses,
Addresses memory revisionAddresses,
Expand Down
File renamed without changes.

0 comments on commit aaa6740

Please sign in to comment.