Skip to content

Commit

Permalink
Deploy to Base and Gnosis
Browse files Browse the repository at this point in the history
  • Loading branch information
danhper committed Oct 6, 2024
1 parent 4863df8 commit 2ef5972
Show file tree
Hide file tree
Showing 7 changed files with 691 additions and 7 deletions.
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ Deployment scripts are located in the [`script`](./script/) directory.
| L2Gyd | Optimism | [0xCA5d8F8a8d49439357d3CF46Ca2e720702F132b8](https://optimistic.etherscan.io/address/0xCA5d8F8a8d49439357d3CF46Ca2e720702F132b8) |
| L2Gyd | Avalanche | [0xCA5d8F8a8d49439357d3CF46Ca2e720702F132b8](https://snowtrace.io/address/0xCA5d8F8a8d49439357d3CF46Ca2e720702F132b8) |
| L2Gyd | Polygon | [0xCA5d8F8a8d49439357d3CF46Ca2e720702F132b8](https://polygonscan.com/address/0xCA5d8F8a8d49439357d3CF46Ca2e720702F132b8) |
| L2Gyd | Base | [0xCA5d8F8a8d49439357d3CF46Ca2e720702F132b8](https://basescan.org/address/0xCA5d8F8a8d49439357d3CF46Ca2e720702F132b8) |
| L2Gyd | Gnosis | [0xCA5d8F8a8d49439357d3CF46Ca2e720702F132b8](https://gnosisscan.io/address/0xCA5d8F8a8d49439357d3CF46Ca2e720702F132b8) |


# How to bridge GYD manually: Ethereum ↔ Arbitrum
Expand All @@ -86,13 +88,15 @@ This manual applies to the Ethereum ↔ Arbitrum bridge. The Ethereum ↔ zkEVM
To indicate the target L2 chain, CCIP does not use chain IDs but instead its own system of “chain selectors,” which are as follows. The chain selector has to be provided to GydL1CCIPEscrow when bridging. See here for details: https://github.com/smartcontractkit/chain-selectors/blob/main/selectors.yml


| Target Chain | Selector |
|--------------|---------------------|
| mainnet | 5009297550715157269 |
| arbitrum | 4949039107694359620 |
| optimism | 3734403246176062136 |
| avalanche | 6433500567565415381 |
| polygon | 4051577828743386545 |
| Target Chain | Selector |
|--------------|----------------------|
| mainnet | 5009297550715157269 |
| arbitrum | 4949039107694359620 |
| optimism | 3734403246176062136 |
| avalanche | 6433500567565415381 |
| polygon | 4051577828743386545 |
| base | 15971525489660198786 |
| gnosis | 465200170687744372 |

## Bridging from Ethereum to Arbitrum

Expand Down
169 changes: 169 additions & 0 deletions broadcast/DeployL2GydBase.s.sol/8453/run-1728227726.json

Large diffs are not rendered by default.

169 changes: 169 additions & 0 deletions broadcast/DeployL2GydBase.s.sol/8453/run-latest.json

Large diffs are not rendered by default.

157 changes: 157 additions & 0 deletions broadcast/DeployL2GydGnosis.s.sol/100/run-1728227608.json

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions script/DeployL2GydBase.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 DeployL2GydBase is L2GydDeploymentScript {
// CCIP router (Base)
// https://basescan.org/address/0x881e3A65B4d4a04dD529061dd0071cf975F58bCD
address ccipRouter = 0x881e3A65B4d4a04dD529061dd0071cf975F58bCD;

function run() public returns (address proxy) {
return _deploy(ccipRouter);
}
}
14 changes: 14 additions & 0 deletions script/DeployL2GydGnosis.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 DeployL2GydGnosis is L2GydDeploymentScript {
// CCIP router (Gnosis)
// https://gnosisscan.io/address/0x4aAD6071085df840abD9Baf1697d5D5992bDadce
address ccipRouter = 0x4aAD6071085df840abD9Baf1697d5D5992bDadce;

function run() public returns (address proxy) {
return _deploy(ccipRouter);
}
}

0 comments on commit 2ef5972

Please sign in to comment.