Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 15 additions & 1 deletion lazer/contracts/solana/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions lazer/publisher_sdk/proto/state.proto
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ message Publisher {
optional bool is_active = 4;
}

enum FeedState {
COMING_SOON = 0; // Default value
STABLE = 1;
INACTIVE = 2;
}

// Static data for a feed.
message FeedMetadata {
// [required] ID of the price feed.
Expand Down Expand Up @@ -86,6 +92,8 @@ message FeedMetadata {
// [optional] Market schedule in Pythnet format.
// If absent, the default schedule is used (market is always open).
optional string market_schedule = 15;
// [required] Feed state
optional FeedState state = 16;
}

// An item of the state describing a feed.
Expand Down
1 change: 1 addition & 0 deletions lazer/publisher_sdk/proto/transaction_envelope.proto
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,5 @@ enum RejectReason {
PriceOverflow = 2;
InvalidFeedId = 3;
MissingFields = 4;
InactiveFeedId = 5;
}
2 changes: 1 addition & 1 deletion lazer/publisher_sdk/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pyth-lazer-publisher-sdk"
version = "0.1.5"
version = "0.1.6"
edition = "2021"
description = "Pyth Lazer Publisher SDK types."
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion lazer/sdk/rust/protocol/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pyth-lazer-protocol"
version = "0.7.2"
version = "0.7.3"
edition = "2021"
description = "Pyth Lazer SDK - protocol types."
license = "Apache-2.0"
Expand Down
6 changes: 4 additions & 2 deletions lazer/sdk/rust/protocol/src/symbol_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ use {
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub enum SymbolState {
Stable,
ComingSoon,
Stable,
Inactive,
}

impl Display for SymbolState {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
SymbolState::Stable => write!(f, "stable"),
SymbolState::ComingSoon => write!(f, "coming_soon"),
SymbolState::Stable => write!(f, "stable"),
SymbolState::Inactive => write!(f, "inactive"),
}
}
}
Loading