Skip to content
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

Commit e9b71ea

Browse files
committed
run gen-ts-schema
1 parent 4c04382 commit e9b71ea

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/schemas/PriceFeed.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
* Represents an aggregate price from Pyth publisher feeds.
1212
*/
1313
export interface PriceFeed {
14-
[x: string]: any;
1514
/**
1615
* Exponentially-weighted moving average Price
1716
*/
@@ -28,10 +27,18 @@ export interface PriceFeed {
2827
* Price
2928
*/
3029
price: Price;
30+
/**
31+
* VAA of the price
32+
*/
33+
vaa?: string;
3134
}
3235

3336
/**
37+
* Exponentially-weighted moving average Price
38+
*
3439
* Represents a Pyth price
40+
*
41+
* Price
3542
*/
3643
export interface Price {
3744
/**
@@ -262,11 +269,7 @@ const typeMap: any = {
262269
typ: u(undefined, r("PriceFeedMetadata")),
263270
},
264271
{ json: "price", js: "price", typ: r("Price") },
265-
{
266-
json: "vaa",
267-
js: "vaa",
268-
typ: u(undefined, ""),
269-
},
272+
{ json: "vaa", js: "vaa", typ: u(undefined, "") },
270273
],
271274
"any"
272275
),

src/schemas/price_feed.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"vaa": {
2525
"description": "VAA of the price",
26-
"$ref": "#/definitions/Price"
26+
"$ref": "#/definitions/Identifier"
2727
}
2828
},
2929
"definitions": {

0 commit comments

Comments
 (0)