-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sequencer): add
allowed_fee_asset_ids
abci query and `sequence…
…r_client` support (#1127) ## Summary This adds the `allowed_fee_asset_ids` ABCI info query and the required `sequencer_client` methods to use it. ## Background This is required for the bridge implementation and other off-chain services to check against local configs on startup. ## Changes - [x] add `FeeAssetsResponse` to `protocolapis/astria/protocol/asset/types.proto` - [x] add native type to `astria-core::protocol::asset - [x] add query function to `astria-core::protocol::asset::query` - [x] add query function to query router - [x] add unit tests - [x] response into/from raw - [x] query - [x] missing unit tests for `DenomResponse::into_raw/from_raw` (unrelated but this was on the way and took 2 seconds) ### sequencer client - [x] add query method to the client extension crate - [x] should the `try_from_raw` failure return a different error kind than `abci_query_deserialization` - [x] blackbox? integration? test ## Testing - [x] unit tests for raw protobuf types to native types conversions - [x] unit test for the `sequencer`-side logic for the abci query - [x] blackbox/integration test for the `sequencer_client`
- Loading branch information
1 parent
3a968fb
commit f0acb1c
Showing
8 changed files
with
456 additions
and
6 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
crates/astria-core/src/generated/astria.protocol.asset.v1alpha1.rs
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
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
Oops, something went wrong.