Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base Chain connector #263

Merged
merged 14 commits into from
Nov 18, 2024
15 changes: 13 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
needs: [rustfmt]
strategy:
matrix:
crate: [rosetta-server-astar, rosetta-server-ethereum, rosetta-server-polkadot, rosetta-client, rosetta-testing-arbitrum, rosetta-testing-binance, rosetta-testing-avalanche,]
crate: [rosetta-server-astar, rosetta-server-ethereum, rosetta-server-polkadot, rosetta-client, rosetta-testing-arbitrum, rosetta-testing-binance, rosetta-testing-avalanche, rosetta-testing-base,]
name: ${{ matrix.crate }}
runs-on: self-hosted
steps:
Expand Down Expand Up @@ -98,13 +98,22 @@ jobs:
- name: Checkout nitro-testnode
if: ${{ matrix.crate == 'rosetta-testing-arbitrum' }}
run: git clone -b release --depth=1 --no-tags --recurse-submodules https://github.com/ManojJiSharma/nitro-testnode.git


- name: Start arbitrum nitro-testnode
if: ${{ matrix.crate == 'rosetta-testing-arbitrum' }}
run: |
cd nitro-testnode
./test-node.bash --detach


- name: Checkout Optimism
if: ${{ matrix.crate == 'rosetta-testing-base' }}
run: |
git clone https://github.com/ethereum-optimism/optimism.git
cd optimism
make devnet-up


- name: Setup avalanche-cli node
if: ${{matrix.crate == 'rosetta-testing-avalanche'}}
run: |
Expand Down Expand Up @@ -153,6 +162,7 @@ jobs:
--exclude rosetta-testing-avalanche \
--exclude rosetta-testing-binance \
--exclude rosetta-server-ethereum \
--exclude rosetta-testing-base \
--exclude rosetta-server-polkadot \
--exclude rosetta-client \
-- \
Expand Down Expand Up @@ -180,6 +190,7 @@ jobs:
--exclude rosetta-testing-avalanche \
--exclude rosetta-testing-binance \
--exclude rosetta-server-ethereum \
--exclude rosetta-testing-base \
--exclude rosetta-server-polkadot \
--exclude rosetta-client

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# will have compiled files and executables
**/target/
/target
/bin

# These are backup files generated by rustfmt
**/*.rs.bk
Expand Down
51 changes: 37 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ members = [
"chains/binance",
"chains/avalanche",
"chains/rosetta-chain-testing",
"chains/base",
]
resolver = "2"

Expand Down
28 changes: 28 additions & 0 deletions chains/base/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[package]
name = "rosetta-testing-base"
version = "0.1.0"
edition = "2021"
license = "MIT"
repository = "https://github.com/analog-labs/chain-connectors"
description = "base rosetta test."

[dependencies]
alloy-sol-types = { version = "0.7" }
anyhow = "1.0"
ethers = { version = "2.0", default-features = true, features = ["abigen", "rustls", "ws"] }
ethers-solc = "2.0"
hex-literal = "0.4"
rand_core = { version = "0.6", features = ["getrandom"] }
rosetta-chain-testing = { path = "../rosetta-chain-testing" }
rosetta-client.workspace = true
rosetta-config-ethereum.workspace = true
rosetta-core.workspace = true
rosetta-docker = { workspace = true, features = ["tests"] }
rosetta-server-ethereum.workspace = true
sha3 = "0.10"
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
tracing = "0.1.40"
url = "2.4"

[dev-dependencies]
serial_test = "3.1.1"
Loading
Loading