Skip to content

Commit 5c5cdea

Browse files
authored
feat: add EventAggregatedPrice (#269)
Signed-off-by: Artur Troian <troian@users.noreply.github.com> Co-authored-by: Artur Troian <troian@users.noreply.github.com>
1 parent bd6e3a6 commit 5c5cdea

File tree

8 files changed

+611
-455
lines changed

8 files changed

+611
-455
lines changed

docs/proto/node.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@
422422
- [QueryPricesResponse](#akash.oracle.v1.QueryPricesResponse)
423423

424424
- [akash/oracle/v1/events.proto](#akash/oracle/v1/events.proto)
425+
- [EventAggregatedPrice](#akash.oracle.v1.EventAggregatedPrice)
425426
- [EventPriceData](#akash.oracle.v1.EventPriceData)
426427
- [EventPriceRecovered](#akash.oracle.v1.EventPriceRecovered)
427428
- [EventPriceStaleWarning](#akash.oracle.v1.EventPriceStaleWarning)
@@ -5675,6 +5676,21 @@ It also represents a single data point in TWAP history
56755676

56765677

56775678

5679+
<a name="akash.oracle.v1.EventAggregatedPrice"></a>
5680+
5681+
### EventAggregatedPrice
5682+
EventAggregatedPrice is emitted when aggregated price has an update
5683+
5684+
5685+
| Field | Type | Label | Description |
5686+
| ----- | ---- | ----- | ----------- |
5687+
| `price` | [AggregatedPrice](#akash.oracle.v1.AggregatedPrice) | | |
5688+
5689+
5690+
5691+
5692+
5693+
56785694
<a name="akash.oracle.v1.EventPriceData"></a>
56795695

56805696
### EventPriceData
@@ -5700,7 +5716,6 @@ It also represents a single data point in TWAP history
57005716

57015717
| Field | Type | Label | Description |
57025718
| ----- | ---- | ----- | ----------- |
5703-
| `source` | [string](#string) | | source is the address of the price source |
57045719
| `id` | [DataID](#akash.oracle.v1.DataID) | | id identifies the price pair |
57055720
| `height` | [int64](#int64) | | height is the block height when the price recovery was detected |
57065721

@@ -5735,7 +5750,6 @@ It also represents a single data point in TWAP history
57355750

57365751
| Field | Type | Label | Description |
57375752
| ----- | ---- | ----- | ----------- |
5738-
| `source` | [string](#string) | | source is the address of the price source |
57395753
| `id` | [DataID](#akash.oracle.v1.DataID) | | id identifies the price pair |
57405754
| `last_height` | [int64](#int64) | | last_height is the block height when the price was last updated before becoming stale |
57415755

0 commit comments

Comments
 (0)