-
Notifications
You must be signed in to change notification settings - Fork 29
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
ACN service registry address #680
Conversation
Codecov Report
@@ Coverage Diff @@
## main #680 +/- ##
==========================================
- Coverage 97.91% 97.20% -0.72%
==========================================
Files 250 229 -21
Lines 14121 13712 -409
==========================================
- Hits 13827 13329 -498
- Misses 294 383 +89
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
packages/valory/agents/apy_estimation_deployable/aea-config.yaml
Outdated
Show resolved
Hide resolved
It's indeed not ideal that we have to run the connection just because we load it. For now there's no way around it. But you can open an issue on open-aea to consider adding an "is_abstract" mode for connections too! (We already have it for skills.) |
[WIP] ACN registration start up extension
3a89128
to
87f46a2
Compare
87f46a2
to
cd0c815
Compare
ACN message handler
[WIP] ACN registration behaviour
if not successful: | ||
return | ||
|
||
yield from super().async_act() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why yield from super().async_act()
? This might not be necessary, but I don't see no harm either. It will create the first payload and ensures that all agents reached consensus on the initial data (which now includes the tendermint config). I suppose you want me to remove the yield from super().async_act()
?
# Conflicts: # tox.ini
I tried running a local deployment but I got this
|
You also need to run: autonomy generate-key cosmos cosmos_private_key.txt
autonomy add-key cosmos cosmos_private_key.txt
autonomy issue-certificates |
This reverts commit 9561fb2.
We do this in order for the tests to be platform independent. In Windows, even if the sleep time is set to 0, we still need to call the act wrapper.
The error occurs while running |
Windows 3.7 and 3.10 tests failed on last run because of network failure:
I will rerun them later. Macos test failed because of #989. |
[no ci]
# Conflicts: # Pipfile # docs/counter_example.md # docs/quick_start.md # packages/hashes.csv # packages/valory/agents/apy_estimation/aea-config.yaml # packages/valory/agents/apy_estimation_chained/aea-config.yaml # packages/valory/agents/counter_client/aea-config.yaml # packages/valory/agents/hello_world/aea-config.yaml # packages/valory/agents/oracle/aea-config.yaml # packages/valory/agents/register_reset/aea-config.yaml # packages/valory/agents/simple_abci/aea-config.yaml # packages/valory/agents/test_abci/aea-config.yaml # packages/valory/protocols/tendermint/protocol.yaml # packages/valory/skills/abstract_round_abci/skill.yaml # packages/valory/skills/apy_estimation_abci/skill.yaml # packages/valory/skills/apy_estimation_chained_abci/skill.yaml # packages/valory/skills/hello_world_abci/skill.yaml # packages/valory/skills/liquidity_provision_abci/skill.yaml # packages/valory/skills/liquidity_rebalancing_abci/skill.yaml # packages/valory/skills/oracle_abci/skill.yaml # packages/valory/skills/oracle_deployment_abci/skill.yaml # packages/valory/skills/price_estimation_abci/skill.yaml # packages/valory/skills/register_reset_abci/skill.yaml # packages/valory/skills/registration_abci/skill.yaml # packages/valory/skills/reset_pause_abci/skill.yaml # packages/valory/skills/safe_deployment_abci/skill.yaml # packages/valory/skills/simple_abci/skill.yaml # packages/valory/skills/test_abci/skill.yaml # packages/valory/skills/transaction_settlement_abci/skill.yaml # tox.ini
Proposed changes
Working on the extended
RegistrationStartupBehaviour
behavior and associated e2e tests.Currently managed to:
registration_start_up
for testing specifically theRegistrationStartupBehaviour
ServiceRegistry
contract deployed on our staging chain.NOTE: addresses do not exactly match those of agents: one-off still.
tendermint_url
) using Tendermint protocol via ACN client connection to ACN node (registration_start_up/aea-config.yaml
).Noteworthy changes:
verify_contract
was validation against outdated bytecode. Now returningTrue
by default to accommodate changes in our online protocol without having to continuously update this, added an error messages to logger to indicate as muchTODO:
dependencies added:
NOTES:
valory/contracts/service_registry
is already here in the consensus repo.TestTendermintHandler
andTestRegistrationStartupBehaviour
tests fail because these were changed, please ignore.BaseTestEnd2EndNormalExecution
andBaseTestEnd2EndAgentCatchup
. No agent terminates before the entire test is ran (otherwise leads to failures inBaseTestEnd2EndAgentCatchup
testsPlease see comments in #760
Fixes
If it fixes a bug or resolves a feature request, be sure to link to that issue.
Types of changes
What types of changes does your code introduce? (A breaking change is a fix or feature that would cause existing functionality and APIs to not work as expected.)
Put an
x
in the box that appliesChecklist
Put an
x
in the boxes that apply.main
branch (left side). Also you should start your branch off ourmain
.Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...