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

Implement a multiplexer for the tx settlement skill #16

Merged
merged 6 commits into from
Jul 17, 2023

Conversation

Adamantios
Copy link
Collaborator

Implements a multiplexer for the tx settlement skill to overcome a framework's limitation.

The limitation arises from the necessity to refactor the process of making a request to the mech. This refactoring will bypass the need for the Ethereum private key's path by replacing the mech client. Consequently, to accommodate this change, we will employ a safe transaction via the tx settlement skill.

As a result, we will utilize the tx settlement to perform a safe transaction for two purposes: a) making requests to the mech, and b) placing bets.

Overcomes a framework’s limitation, which is: chaining a skill more than once.

The limitation appears because we need to perform a refactor for sending a safe tx for performing a request to the mech instead of using the mech client, because the latter requires the ethereum private key's path.

Therefore, will need to send a safe tx both for a) performing a request to the mech and b) placing a bet.
@Adamantios Adamantios added the enhancement New feature or request label Jul 17, 2023
@Adamantios Adamantios requested a review from 0xArdi July 17, 2023 13:02
service_id: market_manager_estimation
service_id: market_manager
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated change.

service_id: market_manager_estimation
service_id: trader
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated change.

```
Error: Event reference check failed with
 - PostTxSettlementRound: transition function events {'BET_PLACEMENT_DONE', 'UNRECOGNIZED', 'DECISION_MAKING_DONE'} do not match referenced events {'UNRECOGNIZED'}.
```

https://github.com/valory-xyz/trader/actions/runs/5575978370/jobs/10186608899?pr=16#step:10:71
@Adamantios Adamantios merged commit 5d64a0b into main Jul 17, 2023
6 checks passed
@Adamantios Adamantios deleted the refactor/tx-multiplexer branch July 17, 2023 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants