-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(agents): improve agent config (#171)
* Make AgentSecrets accept TRANSACTIONSIGNERS_DEFAULT_* envars if present * Add additional test utils * Add sync version of run_test_with_env * Fix bad prefix * Refactor test to correctly isolate envars * Add tests for default tx signer config * Fix linting error * Add newline to end of file * Make AgentSecrets accept RPCS_DEFAULT_* envars if present * Update FromEnv to accept an optional default prefix * Update test envs with rpc defaults * Add rpc checks to existing tests * Bump ethers commit * Revert "Bump ethers commit" This reverts commit b262c00. * Exclude nomad-test from wasm builds * Use dependency resolver v2 * Add tests for correct defaults handling for kathy * Update CHANGELOG * Expand doc for from_env
- Loading branch information
Showing
12 changed files
with
285 additions
and
19 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
cargo-features = ["edition2021"] | ||
|
||
[workspace] | ||
resolver = "2" | ||
|
||
members = [ | ||
"accumulator", | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Matches configuration/configs/test.json | ||
|
||
RUN_ENV=test | ||
AGENT_HOME_NAME=ethereum | ||
AGENT_REPLICAS_ALL=true | ||
|
||
RPCS_DEFAULT_RPCSTYLE=ethereum | ||
|
||
RPCS_ETHEREUM_CONNECTION_URL=https://main-light.eth.linkpool.io/ | ||
RPCS_MOONBEAM_CONNECTION_URL=https://rpc.api.moonbeam.network | ||
RPCS_EVMOS_CONNECTION_URL=https://eth.bd.evmos.org:8545 | ||
|
||
TRANSACTIONSIGNERS_DEFAULT_REGION=default_region | ||
TRANSACTIONSIGNERS_DEFAULT_ID=default_id | ||
|
||
ATTESTATION_SIGNER_ID=dummy_id | ||
ATTESTATION_SIGNER_REGION=dummy_region |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Matches configuration/configs/test.json | ||
|
||
RUN_ENV=test | ||
AGENT_HOME_NAME=ethereum | ||
AGENT_REPLICAS_ALL=true | ||
|
||
RPCS_DEFAULT_RPCSTYLE=ethereum | ||
RPCS_EVMOS_RPCSTYLE=ethereum | ||
|
||
RPCS_ETHEREUM_CONNECTION_URL=https://main-light.eth.linkpool.io/ | ||
RPCS_MOONBEAM_CONNECTION_URL=https://rpc.api.moonbeam.network | ||
RPCS_EVMOS_CONNECTION_URL=https://eth.bd.evmos.org:8545 | ||
|
||
TRANSACTIONSIGNERS_ETHEREUM_KEY=0x1111111111111111111111111111111111111111111111111111111111111111 | ||
|
||
TRANSACTIONSIGNERS_MOONBEAM_ID=moonbeam_id | ||
TRANSACTIONSIGNERS_MOONBEAM_REGION=moonbeam_region | ||
|
||
TRANSACTIONSIGNERS_DEFAULT_REGION=default_region | ||
TRANSACTIONSIGNERS_DEFAULT_ID=default_id | ||
|
||
ATTESTATION_SIGNER_ID=dummy_id | ||
ATTESTATION_SIGNER_REGION=dummy_region |
Oops, something went wrong.