Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions contracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ All contracts follow the basic structure of chain specific contracts inheriting
- Bridge : [`0xe396721BF9FD7c320c3c528077428847c4940C65`](https://kovan.etherscan.io/address/0xe396721BF9FD7c320c3c528077428847c4940C65#code)
- Destination : [`0x556591FABb4cCc4a417093d2a991713E1ba58372`](https://kovan-optimistic.etherscan.io/address/0x556591FABb4cCc4a417093d2a991713E1ba58372#code)

### Optimism Goerli
> Chain ID: 420

- Source : [`0x8B38d13D5548ECa036686b73d7e85bd31b6B6d55`](https://blockscout.com/optimism/goerli/address/0x8B38d13D5548ECa036686b73d7e85bd31b6B6d55/contracts#address-tabs)
- Bridge : [`0xcb122d5dFD3e2b16b07dd95F78AB745CaC086c00`](https://goerli.etherscan.io/address/0xcb122d5dFD3e2b16b07dd95F78AB745CaC086c00#code)
- Destination : [`0x359CD2a739B3df966b325aEA868F4a8a63edAEb1`](https://blockscout.com/optimism/goerli/address/0x359CD2a739B3df966b325aEA868F4a8a63edAEb1/contracts#address-tabs)

### Arbitrum Rinkeby
> Chain ID: 421611

Expand Down
5 changes: 5 additions & 0 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ module.exports = {
url: process.env.OPTIMISTIC_KOVAN_URL || "",
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
opGoerli: {
url: process.env.OPTIMISTIC_GOERLI_URL || "",
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
arbRinkeby: {
url: process.env.ARBITRUM_RINKEBY_URL || "",
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
Expand All @@ -104,6 +108,7 @@ module.exports = {
kovan: process.env.ETHERSCAN_API_KEY,
optimisticEthereum: process.env.OPTIMISMSCAN_API_KEY,
optimisticKovan: process.env.OPTIMISMSCAN_API_KEY,
// optimisticGoerli: process.env.OPTIMISMSCAN_API_KEY,
arbitrumOne: process.env.ARBISCAN_API_KEY,
arbitrumTestnet: process.env.ARBISCAN_API_KEY,
polygon: process.env.POLYGONSCAN_API_KEY,
Expand Down
6 changes: 3 additions & 3 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ chain=$(echo "$chain" | tr [:upper:] [:lower:])
# case match for network
case "$chain" in
"optimism")
NETWORK_L1="kovan"
NETWORK_L2="opKovan"
NETWORK_L1="goerli"
NETWORK_L2="opGoerli"
;;
"arbitrum")
NETWORK_L1="rinkeby"
Expand Down Expand Up @@ -64,7 +64,7 @@ echo "Source Contract Address: $src"
echo "Destination Contract Address: $dst"
echo "Bridge Contract Address: $bdg"

if [ $chain != "boba" ] && [ $chain != "nitro" ] # Boba and Nitro are not etherscan
if [ $chain != "boba" ] && [ $chain != "nitro" ] && [ $chain != "optimism" ] # Boba and Nitro are not etherscan
then
echo "please run the following to verify contracts: \n\
npx hardhat verify --network $NETWORK_L2 $src && \
Expand Down
2 changes: 1 addition & 1 deletion scripts/initialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Contracts {
const networks = {
'opKovan':69, 'opMain':10,
'arbRinkeby':421611, 'arbMain':42161,
'bobaRinkeby':28, 'bobaMain':288
'bobaRinkeby':28, 'bobaMain':288, 'opGoerli':420
};

const CONTRACT_FEE_BASIS_POINTS = 5;
Expand Down