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

Avalanche Config #253

Merged
merged 28 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
6e0b984
Initial config and tests
ManojJiSharma Jul 25, 2024
8681a2f
removed unwated code
ManojJiSharma Aug 2, 2024
a9aa035
Merge branch 'master' into Avalanche_chain_config
ManojJiSharma Aug 2, 2024
18fae6c
make test in serial
ManojJiSharma Aug 10, 2024
33438a8
gas fix and test fix
ManojJiSharma Aug 13, 2024
23aab94
CI for avalanche
ManojJiSharma Aug 20, 2024
4408212
updated CI
ManojJiSharma Aug 29, 2024
2351dbe
fmt and deny fix
ManojJiSharma Aug 29, 2024
8f80c06
deny and fmt fix
ManojJiSharma Aug 29, 2024
fec4cc2
dprint fix
ManojJiSharma Aug 29, 2024
20511dd
updated open ssl and fmt fix
ManojJiSharma Aug 29, 2024
f6d5c1d
cli fix
ManojJiSharma Aug 30, 2024
82cde19
expose ports
ManojJiSharma Aug 30, 2024
adfb7b7
docker will wait before close
ManojJiSharma Aug 30, 2024
d71a71d
url fix
ManojJiSharma Aug 30, 2024
e94a2ec
changing funding account
ManojJiSharma Aug 30, 2024
bc2f2d0
ci fix and new docker image for avalanche-cli
ManojJiSharma Sep 11, 2024
d4e75ac
cargo deny fix
ManojJiSharma Sep 11, 2024
037d28e
fmt fix
ManojJiSharma Sep 11, 2024
4835e25
Merge branch 'master' into Avalanche_chain_config
ManojJiSharma Sep 11, 2024
a3a58a0
update lock file
ManojJiSharma Sep 11, 2024
e5ed0d0
ci fix
ManojJiSharma Sep 11, 2024
c8ba7aa
ci fix
ManojJiSharma Sep 11, 2024
6ec2891
now avalanche-cli image from analoglabs
ManojJiSharma Sep 13, 2024
b2ff35f
name fix
ManojJiSharma Sep 13, 2024
4e699e5
Merge branch 'master' into Avalanche_chain_config
ManojJiSharma Sep 13, 2024
6ebaebc
dprint fmt fix
ManojJiSharma Sep 13, 2024
f9388f5
lock updated
ManojJiSharma Sep 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading