Skip to content

Commit

Permalink
Merge pull request #34 from OffchainLabs/erc20-based-bridge
Browse files Browse the repository at this point in the history
Add support for Orbit token bridge
  • Loading branch information
gvladika authored Oct 9, 2023
2 parents 8aca119 + 95b2c40 commit c68b22b
Show file tree
Hide file tree
Showing 52 changed files with 8,242 additions and 1,223 deletions.
17 changes: 13 additions & 4 deletions .env-sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
## Goerli - Deploy L1TokenBridgeCreator
ARB_GOERLI_RPC=""
ARB_GOERLI_DEPLOYER_KEY=""
ORBIT_RPC=""
## Rollup on top of which token bridge will be created
ROLLUP_ADDRESS=""
ROLLUP_OWNER=""
L1_TOKEN_BRIDGE_CREATOR=""
# needed for verification
L1_RETRYABLE_SENDER=""

## RPC endpoints
BASECHAIN_RPC=""
ORBIT_RPC=""

## Deployer key used for deploying creator and creating token bridge
BASECHAIN_DEPLOYER_KEY=""
61 changes: 61 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,67 @@ on:

jobs:
test-unit:
name: Test unit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Setup node/yarn
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'

- name: Install packages
run: yarn

- name: Run tests
run: yarn test:unit

test-only-doesnt-exist:
name: No .only
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Check if .only exists in integration test
run: fgrep .only -R test/ && exit 1 || exit 0

test-hardhat:
name: Test hardhat
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Setup node/yarn
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'

- name: Install packages
run: yarn

- name: Compile contracts
run: yarn build

- name: Run integration tests
run: yarn test

test-storage:
name: Test storage layout
runs-on: ubuntu-latest
steps:
Expand Down
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
.gitignore
.env
node_modules
.vscode/

#Hardhat files
cache
build
artifacts
deployment.json

#Foundry files
out/
forge-cache/

#Storage layout test files
test/storage/*-old.dot

# local deployment files
network.json
7 changes: 7 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "lib/nitro-contracts"]
path = lib/nitro-contracts
url = [email protected]:OffchainLabs/nitro-contracts.git
branch = feature-orbit-bridge
2 changes: 1 addition & 1 deletion .solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"rules": {
"mark-callable-contracts": "none",
"prettier/prettier": "error",
"compiler-version": ["error", "^0.6.11"]
"compiler-version": ["error", "^0.8.0"]
}
}
Loading

0 comments on commit c68b22b

Please sign in to comment.