-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add gnosis chain e2e forked test (#2311)
# Description Added a Gnosis Chain e2e forked test. We have e2e Gnosis Chain tests at Enso and this small upstream change will help remove a lot of our boilerplate and would help other solvers run Gnosis Chain e2e tests. # Changes - `FORK_URL` has been replaced by `FORK_URL_MAINNET` and `FORK_URL_GNOSIS`, which should be updated in GitHub secrets. - Added HoneySwap addresses under UniswapV2 contracts in `crates/contracts/build.rs` as they have the same ABI and can then use the same `Contracts` struct across Mainnet and Gnosis Chain tests. - A `default_pool_code` function that returns the pool code for the `Contracts` struct depending on the new `chain_id` value. - A limit order test that runs against Gnosis Chain. ## How to test The `test-forked-node` CI job will test this. Locally I ran `FORK_URL_MAINNET="<secret>" FORK_URL_GNOSIS="<secret>" cargo nextest run --no-capture -p e2e forked_node --run-ignored ignored-only` and both fork tests passed.
- Loading branch information
1 parent
986a1a3
commit 09c681f
Showing
6 changed files
with
150 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters