Skip to content

Commit

Permalink
Deploy to avalanche
Browse files Browse the repository at this point in the history
  • Loading branch information
danhper committed Sep 23, 2024
1 parent aa814a6 commit d9420b3
Show file tree
Hide file tree
Showing 7 changed files with 400 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ To indicate the target L2 chain, CCIP does not use chain IDs but instead its own

| Target Chain | Selector |
|--------------|---------------------|
| mainnet | 5009297550715157269 |
| arbitrum | 4949039107694359620 |
| optimism | 3734403246176062136 |
| avalanche | 6433500567565415381 |

## Bridging from Ethereum to Arbitrum

Expand Down Expand Up @@ -138,4 +140,4 @@ To bridge from Arbitrum back down to Ethereum, we do a very similar thing, this

FEE can vary is currently around $5 equivalent.

This direction also takes around 20 minutes. Just like for the other direction, you can put your Arbitrum transaction hash into the CCIP explorer to see the progress. The tokens then appear at RECIPIENT on Ethereum. Like for the other direction, there are also variants of the functions with a data attribute, but this is not needed here.
This direction also takes around 20 minutes. Just like for the other direction, you can put your Arbitrum transaction hash into the CCIP explorer to see the progress. The tokens then appear at RECIPIENT on Ethereum. Like for the other direction, there are also variants of the functions with a data attribute, but this is not needed here.
67 changes: 67 additions & 0 deletions broadcast/DeployL2GydAvalanche.s.sol/43114/run-1726853963.json

Large diffs are not rendered by default.

157 changes: 157 additions & 0 deletions broadcast/DeployL2GydAvalanche.s.sol/43114/run-1726856939.json

Large diffs are not rendered by default.

157 changes: 157 additions & 0 deletions broadcast/DeployL2GydAvalanche.s.sol/43114/run-latest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion script/DeployL2GydArbitrum.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity ^0.8.17;

import {L2GydDeploymentScript} from "./L2GydDeploymentScript.sol";

contract DeployL2Gyd is L2GydDeploymentScript {
contract DeployL2GydArbitrum is L2GydDeploymentScript {
// CCIP router (Arbitrum)
// https://arbiscan.io/address/0x141fa059441E0ca23ce184B6A78bafD2A517DdE8
address ccipRouter = 0x141fa059441E0ca23ce184B6A78bafD2A517DdE8;
Expand Down
14 changes: 14 additions & 0 deletions script/DeployL2GydAvalanche.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

import {L2GydDeploymentScript} from "./L2GydDeploymentScript.sol";

contract DeployL2GydAvalanche is L2GydDeploymentScript {
// CCIP router (Avalanche)
// https://snowtrace.io/address/0xF4c7E640EdA248ef95972845a62bdC74237805dB
address ccipRouter = 0xF4c7E640EdA248ef95972845a62bdC74237805dB;

function run() public returns (address proxy) {
return _deploy(ccipRouter);
}
}
2 changes: 1 addition & 1 deletion script/DeployL2GydOptimism.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity ^0.8.17;

import {L2GydDeploymentScript} from "./L2GydDeploymentScript.sol";

contract DeployL2Gyd is L2GydDeploymentScript {
contract DeployL2GydOptimism is L2GydDeploymentScript {
// CCIP router (Optimism)
// https://optimistic.etherscan.io/address/0x3206695CaE29952f4b0c22a169725a865bc8Ce0f
address ccipRouter = 0x3206695CaE29952f4b0c22a169725a865bc8Ce0f;
Expand Down

0 comments on commit d9420b3

Please sign in to comment.