Skip to content

Commit

Permalink
Merge branch 'main' into npm
Browse files Browse the repository at this point in the history
  • Loading branch information
makoto committed Apr 19, 2024
2 parents e83be49 + 81639ce commit 3e94f8f
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 14 deletions.
7 changes: 3 additions & 4 deletions arb-gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ To get started, you need to have an RPC URL for both Ethereum Mainnet and Arbitr
## How to use arb-gateway locally via cloudflare dev env (aka wrangler)

```
npm install -g bun
cd arb-gateway
npm install -g bun wrangler
bun install
touch .dev.vars
## set L1_PROVIDER_URL, L2_PROVIDER_URL, L2_ROLLUP
yarn dev
bun run dev
```

## How to deploy arb-gateway to cloudflare
Expand All @@ -40,6 +40,5 @@ yarn deploy --env sepolia
5. Navigate to the Gateway directory using `cd ./arb-gateway`.
6. Start the Gateway by running `bun run start -u http://127.0.0.1:8545/ -v http://127.0.0.1:8547/ -p 8089`.
7. Open another Terminal Tab and navigate to the verifier directory using `cd ./arb-verifier/`.
8. Deploy contracts to the node using the command ` npx hardhat --network arbDevnetL2 deploy && npx hardhat --network arbDevnetL1 deploy `.
8. Deploy contracts to the node using the command `npx hardhat --network arbDevnetL2 deploy && npx hardhat --network arbDevnetL1 deploy`.
9. Run the test using the command `bun run test`.

2 changes: 1 addition & 1 deletion arb-gateway/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ compatibility_date = "2024-01-25"
port = 8080

[build]
command = "yarn build"
command = "bun run build"

[env.sepolia]
name = "arb-sepolia-gateway-worker"
Expand Down
2 changes: 2 additions & 0 deletions bunfig.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Only run 1 script at a time to prevent race conditions (see https://github.com/ensdomains/evmgateway/issues/31)
install.concurrentScripts = 1
10 changes: 5 additions & 5 deletions l1-gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@ bun add @ensdomains/l1-gateway
## How to use l1-gateway locally via cloudflare dev env (aka wrangler)

```
npm install -g bun
cd l1-gateway
npm install -g bun wrangler
bun install
touch .dev.vars
## set WORKER_PROVIDER_URL
yarn dev
bun run dev
```

## How to deploy l1-gateway to cloudflare

```
cd l1-gateway
npm install -g wrangler
wrngler login
npm install -g bun wrangler
wrangler login
wrangler secret put WORKER_PROVIDER_URL
yarn deploy
bun run deploy
```

## How to test
Expand Down
2 changes: 1 addition & 1 deletion l1-gateway/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ compatibility_date = "2023-10-13"
port = 8080

[build]
command = "yarn build"
command = "bun run build"

[vars]
4 changes: 2 additions & 2 deletions op-gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ For a detailed readme and usage instructions, see the [monorepo readme](https://
## How to use op-gateway locally via cloudflare dev env (aka wrangler)

```
npm install -g bun
cd op-gateway
npm install -g bun wrangler
bun install
touch .dev.vars
## set L1_PROVIDER_URL, L2_PROVIDER_URL, L2_OUTPUT_ORACLE, DELAY=5
yarn dev
bun run dev
```

## How to deploy op-gateway to cloudflare
Expand Down
2 changes: 1 addition & 1 deletion op-gateway/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ compatibility_date = "2023-10-13"
port = 8080

[build]
command = "yarn build"
command = "bun run build"

[env.base-sepolia]
name = "base-sepolia-gateway-worker"
Expand Down

0 comments on commit 3e94f8f

Please sign in to comment.