Skip to content

Commit 819fa09

Browse files
authored
fix(lazer): add missing fields and fix types in proto (#3045)
* fix(lazer): add missing fields and fix types in proto * chore: bump version
1 parent 2fa4a99 commit 819fa09

File tree

4 files changed

+15
-12
lines changed

4 files changed

+15
-12
lines changed

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lazer/publisher_sdk/proto/governance_instruction.proto

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ message GovernanceInstruction {
4545
// permanently rejected (e.g. if instruction #3 has been successfully processed before
4646
// instruction #2 was observed, #2 will always be rejected). Sequence numbers are assigned and
4747
// tracked separately for each governance source.
48-
optional uint32 governance_sequence_no = 5;
48+
optional uint64 governance_sequence_no = 5;
4949
}
5050

5151
// Specifies which shards the governance instruction applies to.
@@ -112,6 +112,9 @@ message CreateShard {
112112
// Shard ID must be unique across all shards in all groups.
113113
// (Warning: it's not possible to enforce this rule within a shard!)
114114
optional uint32 shard_id = 1;
115+
// [required] Shard name. Must be unique. Used for governance instruction targeting and
116+
// for logs, metrics, etc. Example: "shard1.tokyo.staging.pyth-lazer"
117+
optional string shard_name = 4;
115118
// [required] Group name, e.g. "production", "staging", "testing", etc.
116119
// Data from shards belonging to the same group can be joined and served to consumers as a whole.
117120
// Active feed names must be unique within a group, but not across all groups.
@@ -254,7 +257,7 @@ message AddFeed {
254257
// [required]
255258
optional DynamicValue.Map metadata = 3;
256259
// [required]
257-
optional string name = 101;
260+
optional string symbol = 101;
258261
// [required]
259262
optional sint32 exponent = 102;
260263
// [required]
@@ -301,7 +304,7 @@ message UpdateFeedProperties {
301304
// [optional]
302305
optional DynamicValue.Map metadata = 3;
303306
// [optional]
304-
optional string name = 101;
307+
optional string symbol = 101;
305308
// [optional]
306309
optional sint32 exponent = 102;
307310
// [optional]

lazer/publisher_sdk/proto/state.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ message Feed {
9696
// are not directly used in the aggregator.
9797
optional DynamicValue.Map metadata = 3;
9898

99-
// [required] A readable feed name. It must be unique across all feeds in the shard.
99+
// [required] A unique string identifier of the feed that captures all the information related to the feed.
100100
// Used for logs, metrics, feed search API, TradingView API.
101-
optional string name = 101;
101+
optional string symbol = 101;
102102
// [required] Exponent applied to all price and rate values for this feed.
103103
// Actual value is `mantissa * 10 ^ exponent`.
104104
// Restricted to int16.

lazer/publisher_sdk/rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyth-lazer-publisher-sdk"
3-
version = "0.10.0"
3+
version = "0.11.0"
44
edition = "2021"
55
description = "Pyth Lazer Publisher SDK types."
66
license = "Apache-2.0"

0 commit comments

Comments
 (0)