-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sequencer): implement oracle module actions (#1878)
## Summary implement oracle module actions `AddCurrencyPair` and `RemoveCurrencyPair` see https://github.com/skip-mev/connect/blob/main/proto/connect/oracle/v2/tx.proto and https://github.com/skip-mev/connect/blob/9ea31680774e2f71e683c0a4989df5bf2d5f2302/x/oracle/keeper/msg_server.go#L28 for relevant connect code ## Background these are required for the oracle authorities to be able to add/remove currency pairs from state; these are the pairs whose prices will be included in VEs. ## Changes - implement oracle module actions `AddCurrencyPair` and `RemoveCurrencyPair` - make `CurrencyPairState.QuotePrice` optional, to reflect that this may not be set upon currency pair initialization (as no oracle price has been received for it) - remove `get/put_num_removed_currency_pairs` from the oracle state_ext as it's not needed for our logic due to the fact that we execute txs in the proposal phase, so by the time vote extensions are issued for a block, the state has already been updated and currency pairs that are removed in that block have already been removed. ## Testing unit tests ## Breaking Changelist - adds new actions to the sequencer - sequencer genesis is also updated (new fees) ## Related Issues part of # #1446
- Loading branch information
Showing
41 changed files
with
1,615 additions
and
244 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
30 changes: 30 additions & 0 deletions
30
crates/astria-core/src/generated/astria.protocol.fees.v1.rs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
216 changes: 216 additions & 0 deletions
216
crates/astria-core/src/generated/astria.protocol.fees.v1.serde.rs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
crates/astria-core/src/generated/astria.protocol.genesis.v1.rs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.