Skip to content

Commit

Permalink
Add goerli deployment info
Browse files Browse the repository at this point in the history
  • Loading branch information
makoto committed Dec 1, 2023
1 parent 8108904 commit ae74902
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 10 deletions.
6 changes: 3 additions & 3 deletions arb-gateway/README.md
Expand Up @@ -11,7 +11,7 @@ npm install -g bun
cd op-gateway
bun install
touch .dev.vars
## set L1_PROVIDER_URL, L2_PROVIDER_URL, L2_OUTPUT_ORACLE, DELAY=5
## set L1_PROVIDER_URL, L2_PROVIDER_URL, L2_ROLLUP
yarn dev
```

Expand All @@ -21,10 +21,10 @@ yarn dev
cd op-gateway
npm install -g wrangler
wrngler login
wrangler secret put L1_PROVIDER_URL
wrangler secret put L2_PROVIDER_URL
wrangler secret put L2_OUTPUT_ORACLE
wrangler secret put DELAY
wrangler secret put L2_ROLLUP
yarn deploy
```

Expand Down
18 changes: 18 additions & 0 deletions arb-verifier/README.md
Expand Up @@ -29,3 +29,21 @@ hardhat test --network opDevnetL1
```

The tests will require small modifications to work on public testnets; specifically, contract addresses are currently fetched from `http://localhost:8080/addresses.json`; this will need to be made conditional on the network being used.


## Deployments

### L2

- TestL2.sol = [0xAdef74372444e716C0473dEe1F9Cb3108EFa3818](https://goerli.arbiscan.io/address/0xAdef74372444e716C0473dEe1F9Cb3108EFa3818#code)

### L1

- ArbVerifier = [0x9E46DeE08Ad370bEFa7858c0E9a6c87f2D7E57A1](https://goerli.etherscan.io/address/0x9E46DeE08Ad370bEFa7858c0E9a6c87f2D7E57A1#code)

- TestL1.sol = [0x0d6c6B70cd561EB59e6818D832197fFad60840AB](https://goerli.etherscan.io/address/0x0d6c6B70cd561EB59e6818D832197fFad60840AB#code)

### Gateway server

- https://arb-gateway-worker.ens-cf.workers.dev

7 changes: 4 additions & 3 deletions arb-verifier/deploy_l1/00_arb_verifier.ts
Expand Up @@ -3,7 +3,7 @@ import { HardhatRuntimeEnvironment } from 'hardhat/types';

const GATEWAY_URLS = {
arbDevnetL1: 'http://localhost:8089/{sender}/{data}.json',
goerli: 'http://localhost:8089/{sender}/{data}.json',
goerli: 'https://arb-gateway-worker.ens-cf.workers.dev/{sender}/{data}.json',
};

const ROLLUP_ADDRESSES = {
Expand All @@ -14,7 +14,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployments, getNamedAccounts, network } = hre;
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();
let ROLLUP_ADDRESS, GATEWAY_URL;
let ROLLUP_ADDRESS;
console.log("NW ", network.name)
if (network.name === 'arbDevnetL1') {
//Rollup address according to sequencer config. Unfortunately, there is no endpoint to fetch it at runtime from the rollup.
Expand All @@ -24,10 +24,11 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
} else {
ROLLUP_ADDRESS = ROLLUP_ADDRESSES[network.name];
}
const GATEWAY_URL = GATEWAY_URLS[network.name];
console.log('ArbVerifier', [[GATEWAY_URL], ROLLUP_ADDRESS]);
await deploy('ArbVerifier', {
from: deployer,
args: [[GATEWAY_URLS[network.name]], ROLLUP_ADDRESS],
args: [[GATEWAY_URL], ROLLUP_ADDRESS],
log: true,
});
};
Expand Down
7 changes: 4 additions & 3 deletions arb-verifier/hardhat.config.ts
Expand Up @@ -33,7 +33,7 @@ const config: HardhatUserConfig = {
accounts: [DEPLOYER_PRIVATE_KEY],
deploy: ["deploy_l1/"],
companionNetworks: {
l2: "optimismGoerli",
l2: "arbitrumGoerli"
},
},
arbitrumGoerli: {
Expand All @@ -45,12 +45,13 @@ const config: HardhatUserConfig = {
etherscan: {
apiKey: {
goerli: L1_ETHERSCAN_API_KEY,
optimismGoerli: L2_ETHERSCAN_API_KEY
optimismGoerli: L2_ETHERSCAN_API_KEY,
arbitrumGoerli: L2_ETHERSCAN_API_KEY
},
customChains: [
{
network: "arbitrumGoerli",
chainId: 420,
chainId: 421613,
urls: {
apiURL: "https://api-goerli.arbiscan.io/api",
browserURL: "https://api-goerli.arbiscan.io.io"
Expand Down
3 changes: 2 additions & 1 deletion arb-verifier/test/testArbVerifier.ts
Expand Up @@ -44,7 +44,8 @@ describe('ArbVerifier', () => {
//Rollup address according to sequencer config. Unfortunately, there is no endpoint to fetch it at runtime from the rollup.
//The address can be found at nitro-testnode-sequencer-1/config/deployment.json
const rollupAddress = '0xb264babb91df9d1ca05c8c2028288dc08c4bee46';

// When testing against Goerli, replace with this address
// const rollupAddress = '0x45e5cAea8768F42B385A366D3551Ad1e0cbFAb17';

const gateway = await makeArbGateway(
(hre.network.config as any).url,
Expand Down

0 comments on commit ae74902

Please sign in to comment.