You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
serviceViewService {
// …rpcLatestSwaps(LatestSwapsRequest) returns (streamLatestSwapsResponse);
}
messageLatestSwapsRequest {
// If present, filter balances to only include the account specified by the `AddressIndex`.core.keys.v1.AddressIndexaccount_filter=1;
// If present, filter balances to only include trading activity on the specified pair.core.dex.v1.DirectedTradingPairpair=2;
// If present, limit the responses to activity that occured after this block height.uint64after_height=3;
// Limit the response to the last entries within `response_limit`.uint64response_limit=4;
}
messageLatestSwapsResponse {
core.dex.v1.DirectedTradingPairpair=1;
core.asset.v1.Valueinput=2;
core.asset.v1.Valueoutput=3;
uint64block_height=4;
core.txhash.v1.TransactionIdid=5;
}
The text was updated successfully, but these errors were encountered:
## Describe your changes
This PR extends the view service with a new `LatestSwaps` method, enabling
clients to query recent swap activity.
Precursor to penumbra-zone/web#2005
## Issue ticket number and link
references penumbra-zone/dex-explorer#320
## Checklist before requesting a review
- [x] I have added guiding text to explain how a reviewer should test
these changes.
- [x] If this code contains consensus-breaking changes, I have added the
"consensus-breaking" label. Otherwise, I declare my belief that there
are not consensus-breaking changes, for the following reason:
This issue takes place in https://github.com/penumbra-zone/penumbra
Docs: https://buf.build/penumbra-zone/penumbra/docs/main:penumbra.view.v1
Suggested API:
The text was updated successfully, but these errors were encountered: