Skip to content

Commit

Permalink
Binance config (#252)
Browse files Browse the repository at this point in the history
Co-authored-by: Lohann Paterno Coutinho Ferreira <[email protected]>
  • Loading branch information
ManojJiSharma and Lohann authored Jul 29, 2024
1 parent dcab7f8 commit ddb58a6
Show file tree
Hide file tree
Showing 12 changed files with 377 additions and 14 deletions.
10 changes: 9 additions & 1 deletion .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]
crate: [rosetta-server-astar, rosetta-server-ethereum, rosetta-server-polkadot, rosetta-client, rosetta-testing-arbitrum, rosetta-testing-binance]
name: ${{ matrix.crate }}
runs-on: self-hosted
steps:
Expand Down Expand Up @@ -104,6 +104,12 @@ jobs:
run: |
cd nitro-testnode
./test-node.bash --detach
- name: Setup BSC node
if: ${{ matrix.crate == 'rosetta-testing-binance' }}
run: |
docker pull manojanalog/bsc_for_analog
docker run -d -p 8545:8545 -p 8546:8546 manojanalog/bsc_for_analog:latest geth --datadir ./datadir --unlock 0x5e5C830f97292a3C6Bfea464D3ad4CE631e6Fbc5 --allow-insecure-unlock --http --http.addr 0.0.0.0 --http.port 8545 --http.api personal,db,eth,net,web3 --mine --miner.etherbase 0x5e5C830f97292a3C6Bfea464D3ad4CE631e6Fbc5 --ws --ws.addr 0.0.0.0 --ws.port 8546 --ws.api personal,db,eth,net,web3 --rpc.allow-unprotected-txs --password password.txt
- name: test (${{ matrix.crate }})
run: cargo test --locked -p ${{ matrix.crate }}
Expand Down Expand Up @@ -135,6 +141,7 @@ jobs:
cargo clippy --locked --workspace --examples --tests --all-features \
--exclude rosetta-testing-arbitrum \
--exclude rosetta-server-astar \
--exclude rosetta-testing-binance \
--exclude rosetta-server-ethereum \
--exclude rosetta-server-polkadot \
--exclude rosetta-client \
Expand All @@ -157,6 +164,7 @@ jobs:
cargo test --locked --workspace --all-features \
--exclude rosetta-testing-arbitrum \
--exclude rosetta-server-astar \
--exclude rosetta-testing-binance \
--exclude rosetta-server-ethereum \
--exclude rosetta-server-polkadot \
--exclude rosetta-client
Expand Down
25 changes: 21 additions & 4 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 @@ -19,6 +19,7 @@ members = [
"chains/arbitrum/testing/rosetta-testing-arbitrum",
"rosetta-utils",
"chains/polygon/rosetta-testing-polygon",
"chains/binance",
]
resolver = "2"

Expand Down
20 changes: 20 additions & 0 deletions chains/binance/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "rosetta-testing-binance"
version = "0.1.0"
edition = "2021"
license = "MIT"
repository = "https://github.com/analog-labs/chain-connectors"
description = "binance 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"
rosetta-client.workspace = true
rosetta-config-ethereum.workspace = true
rosetta-core.workspace = true
rosetta-server-ethereum.workspace = true
sha3 = "0.10"
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
Loading

0 comments on commit ddb58a6

Please sign in to comment.