ethers-rs/examples
Matthias Seitz 89bc6420bb
test: replace ganache with anvil (#1286)
* ci: install anvil

* test: use anvil instead of ganache

* ci: fix anvil ver

* ci: re-enable example tests

* test: remove unnecessary assertions

* test: enable anvil launch test

* docs: typo

* test: fix anvil chain id

* ci: install ganache

Ganache is needed for the Ganache tests

* chore: remove legacy feature from some examples

* ci: correctly build examples

* test: use correct account balance for anvil

* chore: remove sub_id == 1 check

this was only possible in ganache because it gives serial
sub ids, but in every other reasonable client the ids are generated
randomly, so we cannot test for its value

* test: ensure txs are different

There is a bug in Ganache's mempool which accepts duplicate transactions (here with the same nonce), whereas here we pre-set all the nonces so that they end up having a different transaction hash.

* test: ignore ganache tests

* fix: terzor api changes

* ci(examples): install Anvil, remove geth/ganache

* test(provider): Anvil instead of Geth

some tests start to fail now

* fix: revert usage of Anvil in ipc tests

Anvil does not support IPC yet

* fix: update examples script

* ci: use anvil for wasm example

* replace last ganache usage

Co-authored-by: Oliver Nordbjerg <hi@notbjerg.me>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-06-01 08:22:39 -07:00
..
ethers-wasm chore(deps): bump serde_derive from 1.0.136 to 1.0.137 (#1333) 2022-05-31 23:11:11 -07:00
abigen.rs dep: replace anyhow with eyre in examples (#859) 2022-02-03 22:36:05 +02:00
contract.sol chore: pull ethers to top level directory (#398) 2021-08-21 15:34:21 +03:00
contract_abi.json chore: pull ethers to top level directory (#398) 2021-08-21 15:34:21 +03:00
contract_human_readable.rs test: replace ganache with anvil (#1286) 2022-06-01 08:22:39 -07:00
contract_with_abi.rs test: replace ganache with anvil (#1286) 2022-06-01 08:22:39 -07:00
contract_with_abi_and_bytecode.rs test: replace ganache with anvil (#1286) 2022-06-01 08:22:39 -07:00
contract_with_abi_and_structs.rs test: replace ganache with anvil (#1286) 2022-06-01 08:22:39 -07:00
decode_tx_input.rs fixed typo when determining to token address (#1208) 2022-05-02 11:53:20 -07:00
ens.rs test: replace ganache with anvil (#1286) 2022-06-01 08:22:39 -07:00
ipc.rs dep: replace anyhow with eyre in examples (#859) 2022-02-03 22:36:05 +02:00
ledger.rs fix: failing test and check --all-targets in ci (#560) 2021-11-05 19:58:03 +02:00
local_signer.rs test: replace ganache with anvil (#1286) 2022-06-01 08:22:39 -07:00
mnemonic.rs dep: replace anyhow with eyre in examples (#859) 2022-02-03 22:36:05 +02:00
moonbeam_with_abi.rs fix(examples): adjust breaking changes and detect failures in ci (#1040) 2022-03-16 06:26:48 -07:00
paginated_logs.rs `get_paginated_logs` fixes and refactoring (#1328) 2022-05-31 09:43:03 -07:00
permit_hash.rs chore(clippy): add some deny lints (#1064) 2022-03-19 10:05:39 -07:00
quorum.rs test: replace ganache with anvil (#1286) 2022-06-01 08:22:39 -07:00
remove_liquidity.rs chore: fmt 2022-05-23 14:19:17 -07:00
rw.rs test: replace ganache with anvil (#1286) 2022-06-01 08:22:39 -07:00
sign.rs dep: replace anyhow with eyre in examples (#859) 2022-02-03 22:36:05 +02:00
subscribe_logs.rs feat(providers): load previous logs before subscribing (#1264) 2022-05-16 08:11:25 -07:00
transfer_eth.rs test: replace ganache with anvil (#1286) 2022-06-01 08:22:39 -07:00
trezor.rs test: replace ganache with anvil (#1286) 2022-06-01 08:22:39 -07:00
uniswapv2.rs dep: replace anyhow with eyre in examples (#859) 2022-02-03 22:36:05 +02:00
watch_blocks.rs test: replace ganache with anvil (#1286) 2022-06-01 08:22:39 -07:00
yubi.rs fix: failing test and check --all-targets in ci (#560) 2021-11-05 19:58:03 +02:00