Skip to content

Commit a9dcdca

Browse files
committed
Update proto file
1 parent 72f3dd4 commit a9dcdca

File tree

4 files changed

+260
-138
lines changed

4 files changed

+260
-138
lines changed

lazer/sdk/js/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
"@types/ws": "^8.5.12",
4242
"eslint": "catalog:",
4343
"prettier": "catalog:",
44+
"protobufjs": "^7.4.0",
45+
"protobufjs-cli": "^1.1.3",
4446
"ts-node": "catalog:",
4547
"typedoc": "^0.26.8",
4648
"typescript": "catalog:"

lazer/sdk/js/src/generated/proto.d.ts

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,6 @@ export namespace pyth_lazer {
109109
/** Properties of a PublisherUpdate. */
110110
interface IPublisherUpdate {
111111

112-
/** PublisherUpdate priceFeedId */
113-
priceFeedId?: (number|null);
114-
115-
/** PublisherUpdate sourceTimestampUs */
116-
sourceTimestampUs?: (number|Long|null);
117-
118-
/** PublisherUpdate publisherTimestampUs */
119-
publisherTimestampUs?: (number|Long|null);
120-
121112
/** PublisherUpdate priceUpdateV1 */
122113
priceUpdateV1?: (pyth_lazer.IPriceUpdateV1|null);
123114

@@ -134,15 +125,6 @@ export namespace pyth_lazer {
134125
*/
135126
constructor(properties?: pyth_lazer.IPublisherUpdate);
136127

137-
/** PublisherUpdate priceFeedId. */
138-
public priceFeedId: number;
139-
140-
/** PublisherUpdate sourceTimestampUs. */
141-
public sourceTimestampUs: (number|Long);
142-
143-
/** PublisherUpdate publisherTimestampUs. */
144-
public publisherTimestampUs: (number|Long);
145-
146128
/** PublisherUpdate priceUpdateV1. */
147129
public priceUpdateV1?: (pyth_lazer.IPriceUpdateV1|null);
148130

@@ -233,6 +215,15 @@ export namespace pyth_lazer {
233215
/** Properties of a PriceUpdateV1. */
234216
interface IPriceUpdateV1 {
235217

218+
/** PriceUpdateV1 priceFeedId */
219+
priceFeedId?: (number|null);
220+
221+
/** PriceUpdateV1 sourceTimestampUs */
222+
sourceTimestampUs?: (number|Long|null);
223+
224+
/** PriceUpdateV1 publisherTimestampUs */
225+
publisherTimestampUs?: (number|Long|null);
226+
236227
/** PriceUpdateV1 price */
237228
price?: (number|Long|null);
238229

@@ -252,6 +243,15 @@ export namespace pyth_lazer {
252243
*/
253244
constructor(properties?: pyth_lazer.IPriceUpdateV1);
254245

246+
/** PriceUpdateV1 priceFeedId. */
247+
public priceFeedId: number;
248+
249+
/** PriceUpdateV1 sourceTimestampUs. */
250+
public sourceTimestampUs: (number|Long);
251+
252+
/** PriceUpdateV1 publisherTimestampUs. */
253+
public publisherTimestampUs: (number|Long);
254+
255255
/** PriceUpdateV1 price. */
256256
public price?: (number|Long|null);
257257

@@ -342,6 +342,15 @@ export namespace pyth_lazer {
342342
/** Properties of a FundingRateUpdateV1. */
343343
interface IFundingRateUpdateV1 {
344344

345+
/** FundingRateUpdateV1 priceFeedId */
346+
priceFeedId?: (number|null);
347+
348+
/** FundingRateUpdateV1 sourceTimestampUs */
349+
sourceTimestampUs?: (number|Long|null);
350+
351+
/** FundingRateUpdateV1 publisherTimestampUs */
352+
publisherTimestampUs?: (number|Long|null);
353+
345354
/** FundingRateUpdateV1 price */
346355
price?: (number|Long|null);
347356

@@ -358,6 +367,15 @@ export namespace pyth_lazer {
358367
*/
359368
constructor(properties?: pyth_lazer.IFundingRateUpdateV1);
360369

370+
/** FundingRateUpdateV1 priceFeedId. */
371+
public priceFeedId: number;
372+
373+
/** FundingRateUpdateV1 sourceTimestampUs. */
374+
public sourceTimestampUs: (number|Long);
375+
376+
/** FundingRateUpdateV1 publisherTimestampUs. */
377+
public publisherTimestampUs: (number|Long);
378+
361379
/** FundingRateUpdateV1 price. */
362380
public price?: (number|Long|null);
363381

0 commit comments

Comments
 (0)