Skip to content

Commit

Permalink
Avalanche Config (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
ManojJiSharma authored Sep 19, 2024
1 parent ea310e6 commit 680d651
Show file tree
Hide file tree
Showing 19 changed files with 602 additions and 51 deletions.
13 changes: 11 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]
crate: [rosetta-server-astar, rosetta-server-ethereum, rosetta-server-polkadot, rosetta-client, rosetta-testing-arbitrum, rosetta-testing-binance, rosetta-testing-avalanche,]
name: ${{ matrix.crate }}
runs-on: self-hosted
steps:
Expand Down Expand Up @@ -104,7 +104,14 @@ jobs:
run: |
cd nitro-testnode
./test-node.bash --detach
- name: Setup avalanche-cli node
if: ${{matrix.crate == 'rosetta-testing-avalanche'}}
run: |
docker pull analoglabs/avalanche-cli
docker run -v MY_LOCAL_CLI_DIR:/root/.avalanche-cli/ analoglabs/avalanche-cli blockchain create localnew --evm --evm-token SUB --genesis ./genesis.json --teleporter=false --vm-version v0.6.9
docker run -d -v MY_LOCAL_CLI_DIR:/root/.avalanche-cli/ -p 9650:9650 --entrypoint bash analoglabs/avalanche-cli -c "/avalanche blockchain deploy localnew --local;tail -f /dev/null"
- name: Setup BSC node
if: ${{ matrix.crate == 'rosetta-testing-binance' }}
run: |
Expand Down Expand Up @@ -143,6 +150,7 @@ jobs:
cargo clippy --locked --workspace --examples --tests --all-features \
--exclude rosetta-testing-arbitrum \
--exclude rosetta-server-astar \
--exclude rosetta-testing-avalanche \
--exclude rosetta-testing-binance \
--exclude rosetta-server-ethereum \
--exclude rosetta-server-polkadot \
Expand All @@ -169,6 +177,7 @@ jobs:
cargo test --locked --workspace --all-features \
--exclude rosetta-testing-arbitrum \
--exclude rosetta-server-astar \
--exclude rosetta-testing-avalanche \
--exclude rosetta-testing-binance \
--exclude rosetta-server-ethereum \
--exclude rosetta-server-polkadot \
Expand Down
185 changes: 170 additions & 15 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 @@ -20,6 +20,7 @@ members = [
"rosetta-utils",
"chains/polygon/rosetta-testing-polygon",
"chains/binance",
"chains/avalanche",
]
resolver = "2"

Expand Down
6 changes: 3 additions & 3 deletions chains/arbitrum/testing/rosetta-testing-arbitrum/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ mod tests {
.await
.unwrap();
let value = 10 * u128::pow(10, client.config().currency_decimals);
let _ = wallet.faucet(value).await;
let _ = wallet.faucet(value, None).await;
let amount = wallet.balance().await.unwrap();
assert_eq!(amount, value);
})
Expand Down Expand Up @@ -349,7 +349,7 @@ mod tests {
)
.await
.unwrap();
wallet.faucet(faucet).await.unwrap();
wallet.faucet(faucet, None).await.unwrap();

let bytes = compile_snippet(
r"
Expand Down Expand Up @@ -402,7 +402,7 @@ mod tests {
)
.await
.unwrap();
wallet.faucet(faucet).await.unwrap();
wallet.faucet(faucet, None).await.unwrap();
let bytes = compile_snippet(
r"
function identity(bool a) public view returns (bool) {
Expand Down
Loading

0 comments on commit 680d651

Please sign in to comment.