From e69e71c0a36f36512b4ebaf9fe4c6cdab81595cb Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Thu, 3 Apr 2025 15:14:29 -0700 Subject: [PATCH 01/26] add proto files --- lazer/sdk/proto/lazer.proto | 19 ++++++++++++++++++ lazer/sdk/proto/publisher_update.proto | 27 ++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 lazer/sdk/proto/lazer.proto create mode 100644 lazer/sdk/proto/publisher_update.proto diff --git a/lazer/sdk/proto/lazer.proto b/lazer/sdk/proto/lazer.proto new file mode 100644 index 0000000000..847ca30b8e --- /dev/null +++ b/lazer/sdk/proto/lazer.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +import "publisher_update.proto"; + +enum TransactionSignatureType { + ed25519 = 0; +} + +message SignedLazerTransaction { + TransactionSignatureType signature_type = 1; + bytes signature = 2; + bytes transaction = 3; +} + +message LazerTransaction { + oneof transaction { + PublisherUpdatePayload publisher_updates = 1; + } +} diff --git a/lazer/sdk/proto/publisher_update.proto b/lazer/sdk/proto/publisher_update.proto new file mode 100644 index 0000000000..021d8bb657 --- /dev/null +++ b/lazer/sdk/proto/publisher_update.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; + +message PublisherUpdatePayload { + repeated PublisherUpdate updates = 1; + uint64 batch_timestamp_us = 2; +} + +message PublisherUpdate { + uint32 price_feed_id = 1; + uint64 source_timestamp_us = 2; + uint64 publisher_timestamp_us = 3; + oneof update { + PriceUpdateV1 price_update_v1 = 4; + FundingRateUpdateV1 funding_rate_update_v1 = 5; + } +} + +message PriceUpdateV1 { + optional int64 price = 1; + optional int64 best_bid_price = 2; + optional int64 best_ask_price = 3; +} + +message FundingRateUpdateV1 { + optional int64 price = 1; + optional int64 rate = 2; +} From ea14862fdf49fc5a46e40c59178139995ca76ce8 Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Thu, 3 Apr 2025 16:40:34 -0700 Subject: [PATCH 02/26] Update proto file and build generated files --- lazer/Cargo.lock | 88 ++++++++++++++++++- lazer/sdk/proto/publisher_update.proto | 2 + .../proto/{lazer.proto => pyth_lazer.proto} | 2 + lazer/sdk/rust/protocol/Cargo.toml | 7 +- lazer/sdk/rust/protocol/build.rs | 12 +++ lazer/sdk/rust/protocol/src/lib.rs | 3 + 6 files changed, 112 insertions(+), 2 deletions(-) rename lazer/sdk/proto/{lazer.proto => pyth_lazer.proto} (94%) create mode 100644 lazer/sdk/rust/protocol/build.rs diff --git a/lazer/Cargo.lock b/lazer/Cargo.lock index 3c31a2ef22..26ebdec38c 100644 --- a/lazer/Cargo.lock +++ b/lazer/Cargo.lock @@ -1941,6 +1941,12 @@ dependencies = [ "static_assertions", ] +[[package]] +name = "fixedbitset" +version = "0.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d674e81391d1e1ab681a28d99df07927c6d4aa5b027d7da16ba32d1d21ecd99" + [[package]] name = "flate2" version = "1.0.35" @@ -3069,6 +3075,12 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "multimap" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "defc4c55412d89136f966bbb339008b474350e5e6e78d2714439c386b3137a03" + [[package]] name = "native-tls" version = "0.2.13" @@ -3518,6 +3530,16 @@ dependencies = [ "ucd-trie", ] +[[package]] +name = "petgraph" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3672b37090dbd86368a4145bc067582552b29c27377cad4e0a306c97f9bd7772" +dependencies = [ + "fixedbitset", + "indexmap 2.6.0", +] + [[package]] name = "pin-project" version = "1.1.7" @@ -3646,6 +3668,16 @@ dependencies = [ "termtree", ] +[[package]] +name = "prettyplease" +version = "0.2.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64d1ec885c64d0457d564db4ec299b2dae3f9c02808b8ad9c3a089c591b18033" +dependencies = [ + "proc-macro2", + "syn 2.0.87", +] + [[package]] name = "primitive-types" version = "0.12.2" @@ -3738,6 +3770,58 @@ dependencies = [ "unarray", ] +[[package]] +name = "prost" +version = "0.13.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2796faa41db3ec313a31f7624d9286acf277b52de526150b7e69f3debf891ee5" +dependencies = [ + "bytes", + "prost-derive", +] + +[[package]] +name = "prost-build" +version = "0.13.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be769465445e8c1474e9c5dac2018218498557af32d9ed057325ec9a41ae81bf" +dependencies = [ + "heck 0.4.1", + "itertools 0.13.0", + "log", + "multimap", + "once_cell", + "petgraph", + "prettyplease", + "prost", + "prost-types", + "regex", + "syn 2.0.87", + "tempfile", +] + +[[package]] +name = "prost-derive" +version = "0.13.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a56d757972c98b346a9b766e3f02746cde6dd1cd1d1d563472929fdd74bec4d" +dependencies = [ + "anyhow", + "itertools 0.13.0", + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "prost-types" +version = "0.13.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52c2c1bf36ddb1a1c396b3601a3cec27c2462e45f07c386894ec3ccf5332bd16" +dependencies = [ + "prost", +] + [[package]] name = "ptr_meta" version = "0.1.4" @@ -3783,7 +3867,7 @@ dependencies = [ [[package]] name = "pyth-lazer-protocol" -version = "0.7.0" +version = "0.7.1" dependencies = [ "alloy-primitives", "anyhow", @@ -3796,6 +3880,8 @@ dependencies = [ "hex", "itertools 0.13.0", "libsecp256k1 0.7.1", + "prost", + "prost-build", "rust_decimal", "serde", "serde_json", diff --git a/lazer/sdk/proto/publisher_update.proto b/lazer/sdk/proto/publisher_update.proto index 021d8bb657..9ece8ec326 100644 --- a/lazer/sdk/proto/publisher_update.proto +++ b/lazer/sdk/proto/publisher_update.proto @@ -1,5 +1,7 @@ syntax = "proto3"; +package pyth_lazer; + message PublisherUpdatePayload { repeated PublisherUpdate updates = 1; uint64 batch_timestamp_us = 2; diff --git a/lazer/sdk/proto/lazer.proto b/lazer/sdk/proto/pyth_lazer.proto similarity index 94% rename from lazer/sdk/proto/lazer.proto rename to lazer/sdk/proto/pyth_lazer.proto index 847ca30b8e..f90593dd85 100644 --- a/lazer/sdk/proto/lazer.proto +++ b/lazer/sdk/proto/pyth_lazer.proto @@ -1,5 +1,7 @@ syntax = "proto3"; +package pyth_lazer; + import "publisher_update.proto"; enum TransactionSignatureType { diff --git a/lazer/sdk/rust/protocol/Cargo.toml b/lazer/sdk/rust/protocol/Cargo.toml index 975f44bbb9..b44e9ae45d 100644 --- a/lazer/sdk/rust/protocol/Cargo.toml +++ b/lazer/sdk/rust/protocol/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "pyth-lazer-protocol" -version = "0.7.0" +version = "0.7.1" edition = "2021" description = "Pyth Lazer SDK - protocol types." license = "Apache-2.0" repository = "https://github.com/pyth-network/pyth-crosschain" +build = "build.rs" [dependencies] byteorder = "1.5.0" @@ -15,6 +16,7 @@ derive_more = { version = "1.0.0", features = ["from"] } itertools = "0.13.0" rust_decimal = "1.36.0" base64 = "0.22.1" +prost = "0.13.5" [dev-dependencies] bincode = "1.3.3" @@ -23,3 +25,6 @@ hex = "0.4.3" libsecp256k1 = "0.7.1" bs58 = "0.5.1" alloy-primitives = "0.8.19" + +[build-dependencies] +prost-build = "0.13.5" diff --git a/lazer/sdk/rust/protocol/build.rs b/lazer/sdk/rust/protocol/build.rs new file mode 100644 index 0000000000..0212f93b85 --- /dev/null +++ b/lazer/sdk/rust/protocol/build.rs @@ -0,0 +1,12 @@ +use std::io::Result; + +fn main() -> Result<()> { + let proto_files = vec![ + "../../proto/pyth_lazer.proto", + "../../proto/publisher_update.proto", + ]; + + prost_build::compile_protos(&proto_files, &["../../proto"])?; + + Ok(()) +} diff --git a/lazer/sdk/rust/protocol/src/lib.rs b/lazer/sdk/rust/protocol/src/lib.rs index d10bedeebc..d828a5da4e 100644 --- a/lazer/sdk/rust/protocol/src/lib.rs +++ b/lazer/sdk/rust/protocol/src/lib.rs @@ -5,6 +5,9 @@ pub mod binary_update; pub mod message; pub mod payload; pub mod publisher; +pub mod pyth_lazer { + include!(concat!(env!("OUT_DIR"), "/pyth_lazer.rs")); +} pub mod router; mod serde_price_as_i64; mod serde_str; From 72f3dd4a35faee884df87c760f0593584c0ad49e Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Thu, 3 Apr 2025 17:15:46 -0700 Subject: [PATCH 03/26] Code gen in TS --- lazer/sdk/js/package.json | 4 +- lazer/sdk/js/src/generated/proto.d.ts | 658 ++++++++++ lazer/sdk/js/src/generated/proto.js | 1747 +++++++++++++++++++++++++ 3 files changed, 2408 insertions(+), 1 deletion(-) create mode 100644 lazer/sdk/js/src/generated/proto.d.ts create mode 100644 lazer/sdk/js/src/generated/proto.js diff --git a/lazer/sdk/js/package.json b/lazer/sdk/js/package.json index e84f0f2038..004f6ae224 100644 --- a/lazer/sdk/js/package.json +++ b/lazer/sdk/js/package.json @@ -30,7 +30,9 @@ "fix:format": "prettier --write .", "example": "node --loader ts-node/esm examples/index.js", "doc": "typedoc --out docs/typedoc src", - "publish": "pnpm run script -- publish" + "publish": "pnpm run script -- publish", + "proto-codegen": "mkdir -p src/generated && pnpm exec pbjs -t static-module -w es6 -o src/generated/proto.js ../proto/*.proto && pnpm exec pbts -o src/generated/proto.d.ts src/generated/proto.js", + "prebuild": "rm -rf ./src/generated && npm run proto-codegen" }, "devDependencies": { "@cprussin/eslint-config": "catalog:", diff --git a/lazer/sdk/js/src/generated/proto.d.ts b/lazer/sdk/js/src/generated/proto.d.ts new file mode 100644 index 0000000000..a97dadb73c --- /dev/null +++ b/lazer/sdk/js/src/generated/proto.d.ts @@ -0,0 +1,658 @@ +import * as $protobuf from "protobufjs"; +import Long = require("long"); +/** Namespace pyth_lazer. */ +export namespace pyth_lazer { + + /** Properties of a PublisherUpdatePayload. */ + interface IPublisherUpdatePayload { + + /** PublisherUpdatePayload updates */ + updates?: (pyth_lazer.IPublisherUpdate[]|null); + + /** PublisherUpdatePayload batchTimestampUs */ + batchTimestampUs?: (number|Long|null); + } + + /** Represents a PublisherUpdatePayload. */ + class PublisherUpdatePayload implements IPublisherUpdatePayload { + + /** + * Constructs a new PublisherUpdatePayload. + * @param [properties] Properties to set + */ + constructor(properties?: pyth_lazer.IPublisherUpdatePayload); + + /** PublisherUpdatePayload updates. */ + public updates: pyth_lazer.IPublisherUpdate[]; + + /** PublisherUpdatePayload batchTimestampUs. */ + public batchTimestampUs: (number|Long); + + /** + * Creates a new PublisherUpdatePayload instance using the specified properties. + * @param [properties] Properties to set + * @returns PublisherUpdatePayload instance + */ + public static create(properties?: pyth_lazer.IPublisherUpdatePayload): pyth_lazer.PublisherUpdatePayload; + + /** + * Encodes the specified PublisherUpdatePayload message. Does not implicitly {@link pyth_lazer.PublisherUpdatePayload.verify|verify} messages. + * @param message PublisherUpdatePayload message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: pyth_lazer.IPublisherUpdatePayload, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PublisherUpdatePayload message, length delimited. Does not implicitly {@link pyth_lazer.PublisherUpdatePayload.verify|verify} messages. + * @param message PublisherUpdatePayload message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: pyth_lazer.IPublisherUpdatePayload, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PublisherUpdatePayload message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PublisherUpdatePayload + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer.PublisherUpdatePayload; + + /** + * Decodes a PublisherUpdatePayload message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PublisherUpdatePayload + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer.PublisherUpdatePayload; + + /** + * Verifies a PublisherUpdatePayload message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PublisherUpdatePayload message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PublisherUpdatePayload + */ + public static fromObject(object: { [k: string]: any }): pyth_lazer.PublisherUpdatePayload; + + /** + * Creates a plain object from a PublisherUpdatePayload message. Also converts values to other types if specified. + * @param message PublisherUpdatePayload + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: pyth_lazer.PublisherUpdatePayload, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PublisherUpdatePayload to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PublisherUpdatePayload + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PublisherUpdate. */ + interface IPublisherUpdate { + + /** PublisherUpdate priceFeedId */ + priceFeedId?: (number|null); + + /** PublisherUpdate sourceTimestampUs */ + sourceTimestampUs?: (number|Long|null); + + /** PublisherUpdate publisherTimestampUs */ + publisherTimestampUs?: (number|Long|null); + + /** PublisherUpdate priceUpdateV1 */ + priceUpdateV1?: (pyth_lazer.IPriceUpdateV1|null); + + /** PublisherUpdate fundingRateUpdateV1 */ + fundingRateUpdateV1?: (pyth_lazer.IFundingRateUpdateV1|null); + } + + /** Represents a PublisherUpdate. */ + class PublisherUpdate implements IPublisherUpdate { + + /** + * Constructs a new PublisherUpdate. + * @param [properties] Properties to set + */ + constructor(properties?: pyth_lazer.IPublisherUpdate); + + /** PublisherUpdate priceFeedId. */ + public priceFeedId: number; + + /** PublisherUpdate sourceTimestampUs. */ + public sourceTimestampUs: (number|Long); + + /** PublisherUpdate publisherTimestampUs. */ + public publisherTimestampUs: (number|Long); + + /** PublisherUpdate priceUpdateV1. */ + public priceUpdateV1?: (pyth_lazer.IPriceUpdateV1|null); + + /** PublisherUpdate fundingRateUpdateV1. */ + public fundingRateUpdateV1?: (pyth_lazer.IFundingRateUpdateV1|null); + + /** PublisherUpdate update. */ + public update?: ("priceUpdateV1"|"fundingRateUpdateV1"); + + /** + * Creates a new PublisherUpdate instance using the specified properties. + * @param [properties] Properties to set + * @returns PublisherUpdate instance + */ + public static create(properties?: pyth_lazer.IPublisherUpdate): pyth_lazer.PublisherUpdate; + + /** + * Encodes the specified PublisherUpdate message. Does not implicitly {@link pyth_lazer.PublisherUpdate.verify|verify} messages. + * @param message PublisherUpdate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: pyth_lazer.IPublisherUpdate, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PublisherUpdate message, length delimited. Does not implicitly {@link pyth_lazer.PublisherUpdate.verify|verify} messages. + * @param message PublisherUpdate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: pyth_lazer.IPublisherUpdate, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PublisherUpdate message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PublisherUpdate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer.PublisherUpdate; + + /** + * Decodes a PublisherUpdate message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PublisherUpdate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer.PublisherUpdate; + + /** + * Verifies a PublisherUpdate message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PublisherUpdate message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PublisherUpdate + */ + public static fromObject(object: { [k: string]: any }): pyth_lazer.PublisherUpdate; + + /** + * Creates a plain object from a PublisherUpdate message. Also converts values to other types if specified. + * @param message PublisherUpdate + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: pyth_lazer.PublisherUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PublisherUpdate to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PublisherUpdate + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PriceUpdateV1. */ + interface IPriceUpdateV1 { + + /** PriceUpdateV1 price */ + price?: (number|Long|null); + + /** PriceUpdateV1 bestBidPrice */ + bestBidPrice?: (number|Long|null); + + /** PriceUpdateV1 bestAskPrice */ + bestAskPrice?: (number|Long|null); + } + + /** Represents a PriceUpdateV1. */ + class PriceUpdateV1 implements IPriceUpdateV1 { + + /** + * Constructs a new PriceUpdateV1. + * @param [properties] Properties to set + */ + constructor(properties?: pyth_lazer.IPriceUpdateV1); + + /** PriceUpdateV1 price. */ + public price?: (number|Long|null); + + /** PriceUpdateV1 bestBidPrice. */ + public bestBidPrice?: (number|Long|null); + + /** PriceUpdateV1 bestAskPrice. */ + public bestAskPrice?: (number|Long|null); + + /** + * Creates a new PriceUpdateV1 instance using the specified properties. + * @param [properties] Properties to set + * @returns PriceUpdateV1 instance + */ + public static create(properties?: pyth_lazer.IPriceUpdateV1): pyth_lazer.PriceUpdateV1; + + /** + * Encodes the specified PriceUpdateV1 message. Does not implicitly {@link pyth_lazer.PriceUpdateV1.verify|verify} messages. + * @param message PriceUpdateV1 message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: pyth_lazer.IPriceUpdateV1, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PriceUpdateV1 message, length delimited. Does not implicitly {@link pyth_lazer.PriceUpdateV1.verify|verify} messages. + * @param message PriceUpdateV1 message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: pyth_lazer.IPriceUpdateV1, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PriceUpdateV1 message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PriceUpdateV1 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer.PriceUpdateV1; + + /** + * Decodes a PriceUpdateV1 message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PriceUpdateV1 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer.PriceUpdateV1; + + /** + * Verifies a PriceUpdateV1 message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PriceUpdateV1 message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PriceUpdateV1 + */ + public static fromObject(object: { [k: string]: any }): pyth_lazer.PriceUpdateV1; + + /** + * Creates a plain object from a PriceUpdateV1 message. Also converts values to other types if specified. + * @param message PriceUpdateV1 + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: pyth_lazer.PriceUpdateV1, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PriceUpdateV1 to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PriceUpdateV1 + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FundingRateUpdateV1. */ + interface IFundingRateUpdateV1 { + + /** FundingRateUpdateV1 price */ + price?: (number|Long|null); + + /** FundingRateUpdateV1 rate */ + rate?: (number|Long|null); + } + + /** Represents a FundingRateUpdateV1. */ + class FundingRateUpdateV1 implements IFundingRateUpdateV1 { + + /** + * Constructs a new FundingRateUpdateV1. + * @param [properties] Properties to set + */ + constructor(properties?: pyth_lazer.IFundingRateUpdateV1); + + /** FundingRateUpdateV1 price. */ + public price?: (number|Long|null); + + /** FundingRateUpdateV1 rate. */ + public rate?: (number|Long|null); + + /** + * Creates a new FundingRateUpdateV1 instance using the specified properties. + * @param [properties] Properties to set + * @returns FundingRateUpdateV1 instance + */ + public static create(properties?: pyth_lazer.IFundingRateUpdateV1): pyth_lazer.FundingRateUpdateV1; + + /** + * Encodes the specified FundingRateUpdateV1 message. Does not implicitly {@link pyth_lazer.FundingRateUpdateV1.verify|verify} messages. + * @param message FundingRateUpdateV1 message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: pyth_lazer.IFundingRateUpdateV1, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FundingRateUpdateV1 message, length delimited. Does not implicitly {@link pyth_lazer.FundingRateUpdateV1.verify|verify} messages. + * @param message FundingRateUpdateV1 message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: pyth_lazer.IFundingRateUpdateV1, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FundingRateUpdateV1 message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FundingRateUpdateV1 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer.FundingRateUpdateV1; + + /** + * Decodes a FundingRateUpdateV1 message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FundingRateUpdateV1 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer.FundingRateUpdateV1; + + /** + * Verifies a FundingRateUpdateV1 message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FundingRateUpdateV1 message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FundingRateUpdateV1 + */ + public static fromObject(object: { [k: string]: any }): pyth_lazer.FundingRateUpdateV1; + + /** + * Creates a plain object from a FundingRateUpdateV1 message. Also converts values to other types if specified. + * @param message FundingRateUpdateV1 + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: pyth_lazer.FundingRateUpdateV1, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FundingRateUpdateV1 to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FundingRateUpdateV1 + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** TransactionSignatureType enum. */ + enum TransactionSignatureType { + ed25519 = 0 + } + + /** Properties of a SignedLazerTransaction. */ + interface ISignedLazerTransaction { + + /** SignedLazerTransaction signatureType */ + signatureType?: (pyth_lazer.TransactionSignatureType|null); + + /** SignedLazerTransaction signature */ + signature?: (Uint8Array|null); + + /** SignedLazerTransaction transaction */ + transaction?: (Uint8Array|null); + } + + /** Represents a SignedLazerTransaction. */ + class SignedLazerTransaction implements ISignedLazerTransaction { + + /** + * Constructs a new SignedLazerTransaction. + * @param [properties] Properties to set + */ + constructor(properties?: pyth_lazer.ISignedLazerTransaction); + + /** SignedLazerTransaction signatureType. */ + public signatureType: pyth_lazer.TransactionSignatureType; + + /** SignedLazerTransaction signature. */ + public signature: Uint8Array; + + /** SignedLazerTransaction transaction. */ + public transaction: Uint8Array; + + /** + * Creates a new SignedLazerTransaction instance using the specified properties. + * @param [properties] Properties to set + * @returns SignedLazerTransaction instance + */ + public static create(properties?: pyth_lazer.ISignedLazerTransaction): pyth_lazer.SignedLazerTransaction; + + /** + * Encodes the specified SignedLazerTransaction message. Does not implicitly {@link pyth_lazer.SignedLazerTransaction.verify|verify} messages. + * @param message SignedLazerTransaction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: pyth_lazer.ISignedLazerTransaction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SignedLazerTransaction message, length delimited. Does not implicitly {@link pyth_lazer.SignedLazerTransaction.verify|verify} messages. + * @param message SignedLazerTransaction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: pyth_lazer.ISignedLazerTransaction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SignedLazerTransaction message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SignedLazerTransaction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer.SignedLazerTransaction; + + /** + * Decodes a SignedLazerTransaction message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SignedLazerTransaction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer.SignedLazerTransaction; + + /** + * Verifies a SignedLazerTransaction message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SignedLazerTransaction message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SignedLazerTransaction + */ + public static fromObject(object: { [k: string]: any }): pyth_lazer.SignedLazerTransaction; + + /** + * Creates a plain object from a SignedLazerTransaction message. Also converts values to other types if specified. + * @param message SignedLazerTransaction + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: pyth_lazer.SignedLazerTransaction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SignedLazerTransaction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SignedLazerTransaction + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a LazerTransaction. */ + interface ILazerTransaction { + + /** LazerTransaction publisherUpdates */ + publisherUpdates?: (pyth_lazer.IPublisherUpdatePayload|null); + } + + /** Represents a LazerTransaction. */ + class LazerTransaction implements ILazerTransaction { + + /** + * Constructs a new LazerTransaction. + * @param [properties] Properties to set + */ + constructor(properties?: pyth_lazer.ILazerTransaction); + + /** LazerTransaction publisherUpdates. */ + public publisherUpdates?: (pyth_lazer.IPublisherUpdatePayload|null); + + /** LazerTransaction transaction. */ + public transaction?: "publisherUpdates"; + + /** + * Creates a new LazerTransaction instance using the specified properties. + * @param [properties] Properties to set + * @returns LazerTransaction instance + */ + public static create(properties?: pyth_lazer.ILazerTransaction): pyth_lazer.LazerTransaction; + + /** + * Encodes the specified LazerTransaction message. Does not implicitly {@link pyth_lazer.LazerTransaction.verify|verify} messages. + * @param message LazerTransaction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: pyth_lazer.ILazerTransaction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LazerTransaction message, length delimited. Does not implicitly {@link pyth_lazer.LazerTransaction.verify|verify} messages. + * @param message LazerTransaction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: pyth_lazer.ILazerTransaction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LazerTransaction message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LazerTransaction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer.LazerTransaction; + + /** + * Decodes a LazerTransaction message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LazerTransaction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer.LazerTransaction; + + /** + * Verifies a LazerTransaction message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a LazerTransaction message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LazerTransaction + */ + public static fromObject(object: { [k: string]: any }): pyth_lazer.LazerTransaction; + + /** + * Creates a plain object from a LazerTransaction message. Also converts values to other types if specified. + * @param message LazerTransaction + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: pyth_lazer.LazerTransaction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LazerTransaction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LazerTransaction + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } +} diff --git a/lazer/sdk/js/src/generated/proto.js b/lazer/sdk/js/src/generated/proto.js new file mode 100644 index 0000000000..7c2871697f --- /dev/null +++ b/lazer/sdk/js/src/generated/proto.js @@ -0,0 +1,1747 @@ +/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ +import * as $protobuf from "protobufjs/minimal"; + +// Common aliases +const $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; + +// Exported root namespace +const $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {}); + +export const pyth_lazer = $root.pyth_lazer = (() => { + + /** + * Namespace pyth_lazer. + * @exports pyth_lazer + * @namespace + */ + const pyth_lazer = {}; + + pyth_lazer.PublisherUpdatePayload = (function() { + + /** + * Properties of a PublisherUpdatePayload. + * @memberof pyth_lazer + * @interface IPublisherUpdatePayload + * @property {Array.|null} [updates] PublisherUpdatePayload updates + * @property {number|Long|null} [batchTimestampUs] PublisherUpdatePayload batchTimestampUs + */ + + /** + * Constructs a new PublisherUpdatePayload. + * @memberof pyth_lazer + * @classdesc Represents a PublisherUpdatePayload. + * @implements IPublisherUpdatePayload + * @constructor + * @param {pyth_lazer.IPublisherUpdatePayload=} [properties] Properties to set + */ + function PublisherUpdatePayload(properties) { + this.updates = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PublisherUpdatePayload updates. + * @member {Array.} updates + * @memberof pyth_lazer.PublisherUpdatePayload + * @instance + */ + PublisherUpdatePayload.prototype.updates = $util.emptyArray; + + /** + * PublisherUpdatePayload batchTimestampUs. + * @member {number|Long} batchTimestampUs + * @memberof pyth_lazer.PublisherUpdatePayload + * @instance + */ + PublisherUpdatePayload.prototype.batchTimestampUs = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Creates a new PublisherUpdatePayload instance using the specified properties. + * @function create + * @memberof pyth_lazer.PublisherUpdatePayload + * @static + * @param {pyth_lazer.IPublisherUpdatePayload=} [properties] Properties to set + * @returns {pyth_lazer.PublisherUpdatePayload} PublisherUpdatePayload instance + */ + PublisherUpdatePayload.create = function create(properties) { + return new PublisherUpdatePayload(properties); + }; + + /** + * Encodes the specified PublisherUpdatePayload message. Does not implicitly {@link pyth_lazer.PublisherUpdatePayload.verify|verify} messages. + * @function encode + * @memberof pyth_lazer.PublisherUpdatePayload + * @static + * @param {pyth_lazer.IPublisherUpdatePayload} message PublisherUpdatePayload message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PublisherUpdatePayload.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.updates != null && message.updates.length) + for (let i = 0; i < message.updates.length; ++i) + $root.pyth_lazer.PublisherUpdate.encode(message.updates[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.batchTimestampUs != null && Object.hasOwnProperty.call(message, "batchTimestampUs")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.batchTimestampUs); + return writer; + }; + + /** + * Encodes the specified PublisherUpdatePayload message, length delimited. Does not implicitly {@link pyth_lazer.PublisherUpdatePayload.verify|verify} messages. + * @function encodeDelimited + * @memberof pyth_lazer.PublisherUpdatePayload + * @static + * @param {pyth_lazer.IPublisherUpdatePayload} message PublisherUpdatePayload message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PublisherUpdatePayload.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PublisherUpdatePayload message from the specified reader or buffer. + * @function decode + * @memberof pyth_lazer.PublisherUpdatePayload + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {pyth_lazer.PublisherUpdatePayload} PublisherUpdatePayload + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PublisherUpdatePayload.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer.PublisherUpdatePayload(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.updates && message.updates.length)) + message.updates = []; + message.updates.push($root.pyth_lazer.PublisherUpdate.decode(reader, reader.uint32())); + break; + } + case 2: { + message.batchTimestampUs = reader.uint64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PublisherUpdatePayload message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof pyth_lazer.PublisherUpdatePayload + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {pyth_lazer.PublisherUpdatePayload} PublisherUpdatePayload + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PublisherUpdatePayload.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PublisherUpdatePayload message. + * @function verify + * @memberof pyth_lazer.PublisherUpdatePayload + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PublisherUpdatePayload.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.updates != null && message.hasOwnProperty("updates")) { + if (!Array.isArray(message.updates)) + return "updates: array expected"; + for (let i = 0; i < message.updates.length; ++i) { + let error = $root.pyth_lazer.PublisherUpdate.verify(message.updates[i]); + if (error) + return "updates." + error; + } + } + if (message.batchTimestampUs != null && message.hasOwnProperty("batchTimestampUs")) + if (!$util.isInteger(message.batchTimestampUs) && !(message.batchTimestampUs && $util.isInteger(message.batchTimestampUs.low) && $util.isInteger(message.batchTimestampUs.high))) + return "batchTimestampUs: integer|Long expected"; + return null; + }; + + /** + * Creates a PublisherUpdatePayload message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof pyth_lazer.PublisherUpdatePayload + * @static + * @param {Object.} object Plain object + * @returns {pyth_lazer.PublisherUpdatePayload} PublisherUpdatePayload + */ + PublisherUpdatePayload.fromObject = function fromObject(object) { + if (object instanceof $root.pyth_lazer.PublisherUpdatePayload) + return object; + let message = new $root.pyth_lazer.PublisherUpdatePayload(); + if (object.updates) { + if (!Array.isArray(object.updates)) + throw TypeError(".pyth_lazer.PublisherUpdatePayload.updates: array expected"); + message.updates = []; + for (let i = 0; i < object.updates.length; ++i) { + if (typeof object.updates[i] !== "object") + throw TypeError(".pyth_lazer.PublisherUpdatePayload.updates: object expected"); + message.updates[i] = $root.pyth_lazer.PublisherUpdate.fromObject(object.updates[i]); + } + } + if (object.batchTimestampUs != null) + if ($util.Long) + (message.batchTimestampUs = $util.Long.fromValue(object.batchTimestampUs)).unsigned = true; + else if (typeof object.batchTimestampUs === "string") + message.batchTimestampUs = parseInt(object.batchTimestampUs, 10); + else if (typeof object.batchTimestampUs === "number") + message.batchTimestampUs = object.batchTimestampUs; + else if (typeof object.batchTimestampUs === "object") + message.batchTimestampUs = new $util.LongBits(object.batchTimestampUs.low >>> 0, object.batchTimestampUs.high >>> 0).toNumber(true); + return message; + }; + + /** + * Creates a plain object from a PublisherUpdatePayload message. Also converts values to other types if specified. + * @function toObject + * @memberof pyth_lazer.PublisherUpdatePayload + * @static + * @param {pyth_lazer.PublisherUpdatePayload} message PublisherUpdatePayload + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PublisherUpdatePayload.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.updates = []; + if (options.defaults) + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.batchTimestampUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.batchTimestampUs = options.longs === String ? "0" : 0; + if (message.updates && message.updates.length) { + object.updates = []; + for (let j = 0; j < message.updates.length; ++j) + object.updates[j] = $root.pyth_lazer.PublisherUpdate.toObject(message.updates[j], options); + } + if (message.batchTimestampUs != null && message.hasOwnProperty("batchTimestampUs")) + if (typeof message.batchTimestampUs === "number") + object.batchTimestampUs = options.longs === String ? String(message.batchTimestampUs) : message.batchTimestampUs; + else + object.batchTimestampUs = options.longs === String ? $util.Long.prototype.toString.call(message.batchTimestampUs) : options.longs === Number ? new $util.LongBits(message.batchTimestampUs.low >>> 0, message.batchTimestampUs.high >>> 0).toNumber(true) : message.batchTimestampUs; + return object; + }; + + /** + * Converts this PublisherUpdatePayload to JSON. + * @function toJSON + * @memberof pyth_lazer.PublisherUpdatePayload + * @instance + * @returns {Object.} JSON object + */ + PublisherUpdatePayload.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PublisherUpdatePayload + * @function getTypeUrl + * @memberof pyth_lazer.PublisherUpdatePayload + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PublisherUpdatePayload.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/pyth_lazer.PublisherUpdatePayload"; + }; + + return PublisherUpdatePayload; + })(); + + pyth_lazer.PublisherUpdate = (function() { + + /** + * Properties of a PublisherUpdate. + * @memberof pyth_lazer + * @interface IPublisherUpdate + * @property {number|null} [priceFeedId] PublisherUpdate priceFeedId + * @property {number|Long|null} [sourceTimestampUs] PublisherUpdate sourceTimestampUs + * @property {number|Long|null} [publisherTimestampUs] PublisherUpdate publisherTimestampUs + * @property {pyth_lazer.IPriceUpdateV1|null} [priceUpdateV1] PublisherUpdate priceUpdateV1 + * @property {pyth_lazer.IFundingRateUpdateV1|null} [fundingRateUpdateV1] PublisherUpdate fundingRateUpdateV1 + */ + + /** + * Constructs a new PublisherUpdate. + * @memberof pyth_lazer + * @classdesc Represents a PublisherUpdate. + * @implements IPublisherUpdate + * @constructor + * @param {pyth_lazer.IPublisherUpdate=} [properties] Properties to set + */ + function PublisherUpdate(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PublisherUpdate priceFeedId. + * @member {number} priceFeedId + * @memberof pyth_lazer.PublisherUpdate + * @instance + */ + PublisherUpdate.prototype.priceFeedId = 0; + + /** + * PublisherUpdate sourceTimestampUs. + * @member {number|Long} sourceTimestampUs + * @memberof pyth_lazer.PublisherUpdate + * @instance + */ + PublisherUpdate.prototype.sourceTimestampUs = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * PublisherUpdate publisherTimestampUs. + * @member {number|Long} publisherTimestampUs + * @memberof pyth_lazer.PublisherUpdate + * @instance + */ + PublisherUpdate.prototype.publisherTimestampUs = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * PublisherUpdate priceUpdateV1. + * @member {pyth_lazer.IPriceUpdateV1|null|undefined} priceUpdateV1 + * @memberof pyth_lazer.PublisherUpdate + * @instance + */ + PublisherUpdate.prototype.priceUpdateV1 = null; + + /** + * PublisherUpdate fundingRateUpdateV1. + * @member {pyth_lazer.IFundingRateUpdateV1|null|undefined} fundingRateUpdateV1 + * @memberof pyth_lazer.PublisherUpdate + * @instance + */ + PublisherUpdate.prototype.fundingRateUpdateV1 = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * PublisherUpdate update. + * @member {"priceUpdateV1"|"fundingRateUpdateV1"|undefined} update + * @memberof pyth_lazer.PublisherUpdate + * @instance + */ + Object.defineProperty(PublisherUpdate.prototype, "update", { + get: $util.oneOfGetter($oneOfFields = ["priceUpdateV1", "fundingRateUpdateV1"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PublisherUpdate instance using the specified properties. + * @function create + * @memberof pyth_lazer.PublisherUpdate + * @static + * @param {pyth_lazer.IPublisherUpdate=} [properties] Properties to set + * @returns {pyth_lazer.PublisherUpdate} PublisherUpdate instance + */ + PublisherUpdate.create = function create(properties) { + return new PublisherUpdate(properties); + }; + + /** + * Encodes the specified PublisherUpdate message. Does not implicitly {@link pyth_lazer.PublisherUpdate.verify|verify} messages. + * @function encode + * @memberof pyth_lazer.PublisherUpdate + * @static + * @param {pyth_lazer.IPublisherUpdate} message PublisherUpdate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PublisherUpdate.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.priceFeedId != null && Object.hasOwnProperty.call(message, "priceFeedId")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.priceFeedId); + if (message.sourceTimestampUs != null && Object.hasOwnProperty.call(message, "sourceTimestampUs")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.sourceTimestampUs); + if (message.publisherTimestampUs != null && Object.hasOwnProperty.call(message, "publisherTimestampUs")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.publisherTimestampUs); + if (message.priceUpdateV1 != null && Object.hasOwnProperty.call(message, "priceUpdateV1")) + $root.pyth_lazer.PriceUpdateV1.encode(message.priceUpdateV1, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.fundingRateUpdateV1 != null && Object.hasOwnProperty.call(message, "fundingRateUpdateV1")) + $root.pyth_lazer.FundingRateUpdateV1.encode(message.fundingRateUpdateV1, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PublisherUpdate message, length delimited. Does not implicitly {@link pyth_lazer.PublisherUpdate.verify|verify} messages. + * @function encodeDelimited + * @memberof pyth_lazer.PublisherUpdate + * @static + * @param {pyth_lazer.IPublisherUpdate} message PublisherUpdate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PublisherUpdate.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PublisherUpdate message from the specified reader or buffer. + * @function decode + * @memberof pyth_lazer.PublisherUpdate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {pyth_lazer.PublisherUpdate} PublisherUpdate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PublisherUpdate.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer.PublisherUpdate(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.priceFeedId = reader.uint32(); + break; + } + case 2: { + message.sourceTimestampUs = reader.uint64(); + break; + } + case 3: { + message.publisherTimestampUs = reader.uint64(); + break; + } + case 4: { + message.priceUpdateV1 = $root.pyth_lazer.PriceUpdateV1.decode(reader, reader.uint32()); + break; + } + case 5: { + message.fundingRateUpdateV1 = $root.pyth_lazer.FundingRateUpdateV1.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PublisherUpdate message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof pyth_lazer.PublisherUpdate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {pyth_lazer.PublisherUpdate} PublisherUpdate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PublisherUpdate.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PublisherUpdate message. + * @function verify + * @memberof pyth_lazer.PublisherUpdate + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PublisherUpdate.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.priceFeedId != null && message.hasOwnProperty("priceFeedId")) + if (!$util.isInteger(message.priceFeedId)) + return "priceFeedId: integer expected"; + if (message.sourceTimestampUs != null && message.hasOwnProperty("sourceTimestampUs")) + if (!$util.isInteger(message.sourceTimestampUs) && !(message.sourceTimestampUs && $util.isInteger(message.sourceTimestampUs.low) && $util.isInteger(message.sourceTimestampUs.high))) + return "sourceTimestampUs: integer|Long expected"; + if (message.publisherTimestampUs != null && message.hasOwnProperty("publisherTimestampUs")) + if (!$util.isInteger(message.publisherTimestampUs) && !(message.publisherTimestampUs && $util.isInteger(message.publisherTimestampUs.low) && $util.isInteger(message.publisherTimestampUs.high))) + return "publisherTimestampUs: integer|Long expected"; + if (message.priceUpdateV1 != null && message.hasOwnProperty("priceUpdateV1")) { + properties.update = 1; + { + let error = $root.pyth_lazer.PriceUpdateV1.verify(message.priceUpdateV1); + if (error) + return "priceUpdateV1." + error; + } + } + if (message.fundingRateUpdateV1 != null && message.hasOwnProperty("fundingRateUpdateV1")) { + if (properties.update === 1) + return "update: multiple values"; + properties.update = 1; + { + let error = $root.pyth_lazer.FundingRateUpdateV1.verify(message.fundingRateUpdateV1); + if (error) + return "fundingRateUpdateV1." + error; + } + } + return null; + }; + + /** + * Creates a PublisherUpdate message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof pyth_lazer.PublisherUpdate + * @static + * @param {Object.} object Plain object + * @returns {pyth_lazer.PublisherUpdate} PublisherUpdate + */ + PublisherUpdate.fromObject = function fromObject(object) { + if (object instanceof $root.pyth_lazer.PublisherUpdate) + return object; + let message = new $root.pyth_lazer.PublisherUpdate(); + if (object.priceFeedId != null) + message.priceFeedId = object.priceFeedId >>> 0; + if (object.sourceTimestampUs != null) + if ($util.Long) + (message.sourceTimestampUs = $util.Long.fromValue(object.sourceTimestampUs)).unsigned = true; + else if (typeof object.sourceTimestampUs === "string") + message.sourceTimestampUs = parseInt(object.sourceTimestampUs, 10); + else if (typeof object.sourceTimestampUs === "number") + message.sourceTimestampUs = object.sourceTimestampUs; + else if (typeof object.sourceTimestampUs === "object") + message.sourceTimestampUs = new $util.LongBits(object.sourceTimestampUs.low >>> 0, object.sourceTimestampUs.high >>> 0).toNumber(true); + if (object.publisherTimestampUs != null) + if ($util.Long) + (message.publisherTimestampUs = $util.Long.fromValue(object.publisherTimestampUs)).unsigned = true; + else if (typeof object.publisherTimestampUs === "string") + message.publisherTimestampUs = parseInt(object.publisherTimestampUs, 10); + else if (typeof object.publisherTimestampUs === "number") + message.publisherTimestampUs = object.publisherTimestampUs; + else if (typeof object.publisherTimestampUs === "object") + message.publisherTimestampUs = new $util.LongBits(object.publisherTimestampUs.low >>> 0, object.publisherTimestampUs.high >>> 0).toNumber(true); + if (object.priceUpdateV1 != null) { + if (typeof object.priceUpdateV1 !== "object") + throw TypeError(".pyth_lazer.PublisherUpdate.priceUpdateV1: object expected"); + message.priceUpdateV1 = $root.pyth_lazer.PriceUpdateV1.fromObject(object.priceUpdateV1); + } + if (object.fundingRateUpdateV1 != null) { + if (typeof object.fundingRateUpdateV1 !== "object") + throw TypeError(".pyth_lazer.PublisherUpdate.fundingRateUpdateV1: object expected"); + message.fundingRateUpdateV1 = $root.pyth_lazer.FundingRateUpdateV1.fromObject(object.fundingRateUpdateV1); + } + return message; + }; + + /** + * Creates a plain object from a PublisherUpdate message. Also converts values to other types if specified. + * @function toObject + * @memberof pyth_lazer.PublisherUpdate + * @static + * @param {pyth_lazer.PublisherUpdate} message PublisherUpdate + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PublisherUpdate.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.priceFeedId = 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.sourceTimestampUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sourceTimestampUs = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.publisherTimestampUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.publisherTimestampUs = options.longs === String ? "0" : 0; + } + if (message.priceFeedId != null && message.hasOwnProperty("priceFeedId")) + object.priceFeedId = message.priceFeedId; + if (message.sourceTimestampUs != null && message.hasOwnProperty("sourceTimestampUs")) + if (typeof message.sourceTimestampUs === "number") + object.sourceTimestampUs = options.longs === String ? String(message.sourceTimestampUs) : message.sourceTimestampUs; + else + object.sourceTimestampUs = options.longs === String ? $util.Long.prototype.toString.call(message.sourceTimestampUs) : options.longs === Number ? new $util.LongBits(message.sourceTimestampUs.low >>> 0, message.sourceTimestampUs.high >>> 0).toNumber(true) : message.sourceTimestampUs; + if (message.publisherTimestampUs != null && message.hasOwnProperty("publisherTimestampUs")) + if (typeof message.publisherTimestampUs === "number") + object.publisherTimestampUs = options.longs === String ? String(message.publisherTimestampUs) : message.publisherTimestampUs; + else + object.publisherTimestampUs = options.longs === String ? $util.Long.prototype.toString.call(message.publisherTimestampUs) : options.longs === Number ? new $util.LongBits(message.publisherTimestampUs.low >>> 0, message.publisherTimestampUs.high >>> 0).toNumber(true) : message.publisherTimestampUs; + if (message.priceUpdateV1 != null && message.hasOwnProperty("priceUpdateV1")) { + object.priceUpdateV1 = $root.pyth_lazer.PriceUpdateV1.toObject(message.priceUpdateV1, options); + if (options.oneofs) + object.update = "priceUpdateV1"; + } + if (message.fundingRateUpdateV1 != null && message.hasOwnProperty("fundingRateUpdateV1")) { + object.fundingRateUpdateV1 = $root.pyth_lazer.FundingRateUpdateV1.toObject(message.fundingRateUpdateV1, options); + if (options.oneofs) + object.update = "fundingRateUpdateV1"; + } + return object; + }; + + /** + * Converts this PublisherUpdate to JSON. + * @function toJSON + * @memberof pyth_lazer.PublisherUpdate + * @instance + * @returns {Object.} JSON object + */ + PublisherUpdate.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PublisherUpdate + * @function getTypeUrl + * @memberof pyth_lazer.PublisherUpdate + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PublisherUpdate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/pyth_lazer.PublisherUpdate"; + }; + + return PublisherUpdate; + })(); + + pyth_lazer.PriceUpdateV1 = (function() { + + /** + * Properties of a PriceUpdateV1. + * @memberof pyth_lazer + * @interface IPriceUpdateV1 + * @property {number|Long|null} [price] PriceUpdateV1 price + * @property {number|Long|null} [bestBidPrice] PriceUpdateV1 bestBidPrice + * @property {number|Long|null} [bestAskPrice] PriceUpdateV1 bestAskPrice + */ + + /** + * Constructs a new PriceUpdateV1. + * @memberof pyth_lazer + * @classdesc Represents a PriceUpdateV1. + * @implements IPriceUpdateV1 + * @constructor + * @param {pyth_lazer.IPriceUpdateV1=} [properties] Properties to set + */ + function PriceUpdateV1(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PriceUpdateV1 price. + * @member {number|Long|null|undefined} price + * @memberof pyth_lazer.PriceUpdateV1 + * @instance + */ + PriceUpdateV1.prototype.price = null; + + /** + * PriceUpdateV1 bestBidPrice. + * @member {number|Long|null|undefined} bestBidPrice + * @memberof pyth_lazer.PriceUpdateV1 + * @instance + */ + PriceUpdateV1.prototype.bestBidPrice = null; + + /** + * PriceUpdateV1 bestAskPrice. + * @member {number|Long|null|undefined} bestAskPrice + * @memberof pyth_lazer.PriceUpdateV1 + * @instance + */ + PriceUpdateV1.prototype.bestAskPrice = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(PriceUpdateV1.prototype, "_price", { + get: $util.oneOfGetter($oneOfFields = ["price"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(PriceUpdateV1.prototype, "_bestBidPrice", { + get: $util.oneOfGetter($oneOfFields = ["bestBidPrice"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(PriceUpdateV1.prototype, "_bestAskPrice", { + get: $util.oneOfGetter($oneOfFields = ["bestAskPrice"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PriceUpdateV1 instance using the specified properties. + * @function create + * @memberof pyth_lazer.PriceUpdateV1 + * @static + * @param {pyth_lazer.IPriceUpdateV1=} [properties] Properties to set + * @returns {pyth_lazer.PriceUpdateV1} PriceUpdateV1 instance + */ + PriceUpdateV1.create = function create(properties) { + return new PriceUpdateV1(properties); + }; + + /** + * Encodes the specified PriceUpdateV1 message. Does not implicitly {@link pyth_lazer.PriceUpdateV1.verify|verify} messages. + * @function encode + * @memberof pyth_lazer.PriceUpdateV1 + * @static + * @param {pyth_lazer.IPriceUpdateV1} message PriceUpdateV1 message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PriceUpdateV1.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.price != null && Object.hasOwnProperty.call(message, "price")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.price); + if (message.bestBidPrice != null && Object.hasOwnProperty.call(message, "bestBidPrice")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.bestBidPrice); + if (message.bestAskPrice != null && Object.hasOwnProperty.call(message, "bestAskPrice")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.bestAskPrice); + return writer; + }; + + /** + * Encodes the specified PriceUpdateV1 message, length delimited. Does not implicitly {@link pyth_lazer.PriceUpdateV1.verify|verify} messages. + * @function encodeDelimited + * @memberof pyth_lazer.PriceUpdateV1 + * @static + * @param {pyth_lazer.IPriceUpdateV1} message PriceUpdateV1 message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PriceUpdateV1.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PriceUpdateV1 message from the specified reader or buffer. + * @function decode + * @memberof pyth_lazer.PriceUpdateV1 + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {pyth_lazer.PriceUpdateV1} PriceUpdateV1 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PriceUpdateV1.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer.PriceUpdateV1(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.price = reader.int64(); + break; + } + case 2: { + message.bestBidPrice = reader.int64(); + break; + } + case 3: { + message.bestAskPrice = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PriceUpdateV1 message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof pyth_lazer.PriceUpdateV1 + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {pyth_lazer.PriceUpdateV1} PriceUpdateV1 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PriceUpdateV1.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PriceUpdateV1 message. + * @function verify + * @memberof pyth_lazer.PriceUpdateV1 + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PriceUpdateV1.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.price != null && message.hasOwnProperty("price")) { + properties._price = 1; + if (!$util.isInteger(message.price) && !(message.price && $util.isInteger(message.price.low) && $util.isInteger(message.price.high))) + return "price: integer|Long expected"; + } + if (message.bestBidPrice != null && message.hasOwnProperty("bestBidPrice")) { + properties._bestBidPrice = 1; + if (!$util.isInteger(message.bestBidPrice) && !(message.bestBidPrice && $util.isInteger(message.bestBidPrice.low) && $util.isInteger(message.bestBidPrice.high))) + return "bestBidPrice: integer|Long expected"; + } + if (message.bestAskPrice != null && message.hasOwnProperty("bestAskPrice")) { + properties._bestAskPrice = 1; + if (!$util.isInteger(message.bestAskPrice) && !(message.bestAskPrice && $util.isInteger(message.bestAskPrice.low) && $util.isInteger(message.bestAskPrice.high))) + return "bestAskPrice: integer|Long expected"; + } + return null; + }; + + /** + * Creates a PriceUpdateV1 message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof pyth_lazer.PriceUpdateV1 + * @static + * @param {Object.} object Plain object + * @returns {pyth_lazer.PriceUpdateV1} PriceUpdateV1 + */ + PriceUpdateV1.fromObject = function fromObject(object) { + if (object instanceof $root.pyth_lazer.PriceUpdateV1) + return object; + let message = new $root.pyth_lazer.PriceUpdateV1(); + if (object.price != null) + if ($util.Long) + (message.price = $util.Long.fromValue(object.price)).unsigned = false; + else if (typeof object.price === "string") + message.price = parseInt(object.price, 10); + else if (typeof object.price === "number") + message.price = object.price; + else if (typeof object.price === "object") + message.price = new $util.LongBits(object.price.low >>> 0, object.price.high >>> 0).toNumber(); + if (object.bestBidPrice != null) + if ($util.Long) + (message.bestBidPrice = $util.Long.fromValue(object.bestBidPrice)).unsigned = false; + else if (typeof object.bestBidPrice === "string") + message.bestBidPrice = parseInt(object.bestBidPrice, 10); + else if (typeof object.bestBidPrice === "number") + message.bestBidPrice = object.bestBidPrice; + else if (typeof object.bestBidPrice === "object") + message.bestBidPrice = new $util.LongBits(object.bestBidPrice.low >>> 0, object.bestBidPrice.high >>> 0).toNumber(); + if (object.bestAskPrice != null) + if ($util.Long) + (message.bestAskPrice = $util.Long.fromValue(object.bestAskPrice)).unsigned = false; + else if (typeof object.bestAskPrice === "string") + message.bestAskPrice = parseInt(object.bestAskPrice, 10); + else if (typeof object.bestAskPrice === "number") + message.bestAskPrice = object.bestAskPrice; + else if (typeof object.bestAskPrice === "object") + message.bestAskPrice = new $util.LongBits(object.bestAskPrice.low >>> 0, object.bestAskPrice.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a PriceUpdateV1 message. Also converts values to other types if specified. + * @function toObject + * @memberof pyth_lazer.PriceUpdateV1 + * @static + * @param {pyth_lazer.PriceUpdateV1} message PriceUpdateV1 + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PriceUpdateV1.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (message.price != null && message.hasOwnProperty("price")) { + if (typeof message.price === "number") + object.price = options.longs === String ? String(message.price) : message.price; + else + object.price = options.longs === String ? $util.Long.prototype.toString.call(message.price) : options.longs === Number ? new $util.LongBits(message.price.low >>> 0, message.price.high >>> 0).toNumber() : message.price; + if (options.oneofs) + object._price = "price"; + } + if (message.bestBidPrice != null && message.hasOwnProperty("bestBidPrice")) { + if (typeof message.bestBidPrice === "number") + object.bestBidPrice = options.longs === String ? String(message.bestBidPrice) : message.bestBidPrice; + else + object.bestBidPrice = options.longs === String ? $util.Long.prototype.toString.call(message.bestBidPrice) : options.longs === Number ? new $util.LongBits(message.bestBidPrice.low >>> 0, message.bestBidPrice.high >>> 0).toNumber() : message.bestBidPrice; + if (options.oneofs) + object._bestBidPrice = "bestBidPrice"; + } + if (message.bestAskPrice != null && message.hasOwnProperty("bestAskPrice")) { + if (typeof message.bestAskPrice === "number") + object.bestAskPrice = options.longs === String ? String(message.bestAskPrice) : message.bestAskPrice; + else + object.bestAskPrice = options.longs === String ? $util.Long.prototype.toString.call(message.bestAskPrice) : options.longs === Number ? new $util.LongBits(message.bestAskPrice.low >>> 0, message.bestAskPrice.high >>> 0).toNumber() : message.bestAskPrice; + if (options.oneofs) + object._bestAskPrice = "bestAskPrice"; + } + return object; + }; + + /** + * Converts this PriceUpdateV1 to JSON. + * @function toJSON + * @memberof pyth_lazer.PriceUpdateV1 + * @instance + * @returns {Object.} JSON object + */ + PriceUpdateV1.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PriceUpdateV1 + * @function getTypeUrl + * @memberof pyth_lazer.PriceUpdateV1 + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PriceUpdateV1.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/pyth_lazer.PriceUpdateV1"; + }; + + return PriceUpdateV1; + })(); + + pyth_lazer.FundingRateUpdateV1 = (function() { + + /** + * Properties of a FundingRateUpdateV1. + * @memberof pyth_lazer + * @interface IFundingRateUpdateV1 + * @property {number|Long|null} [price] FundingRateUpdateV1 price + * @property {number|Long|null} [rate] FundingRateUpdateV1 rate + */ + + /** + * Constructs a new FundingRateUpdateV1. + * @memberof pyth_lazer + * @classdesc Represents a FundingRateUpdateV1. + * @implements IFundingRateUpdateV1 + * @constructor + * @param {pyth_lazer.IFundingRateUpdateV1=} [properties] Properties to set + */ + function FundingRateUpdateV1(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FundingRateUpdateV1 price. + * @member {number|Long|null|undefined} price + * @memberof pyth_lazer.FundingRateUpdateV1 + * @instance + */ + FundingRateUpdateV1.prototype.price = null; + + /** + * FundingRateUpdateV1 rate. + * @member {number|Long|null|undefined} rate + * @memberof pyth_lazer.FundingRateUpdateV1 + * @instance + */ + FundingRateUpdateV1.prototype.rate = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(FundingRateUpdateV1.prototype, "_price", { + get: $util.oneOfGetter($oneOfFields = ["price"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(FundingRateUpdateV1.prototype, "_rate", { + get: $util.oneOfGetter($oneOfFields = ["rate"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new FundingRateUpdateV1 instance using the specified properties. + * @function create + * @memberof pyth_lazer.FundingRateUpdateV1 + * @static + * @param {pyth_lazer.IFundingRateUpdateV1=} [properties] Properties to set + * @returns {pyth_lazer.FundingRateUpdateV1} FundingRateUpdateV1 instance + */ + FundingRateUpdateV1.create = function create(properties) { + return new FundingRateUpdateV1(properties); + }; + + /** + * Encodes the specified FundingRateUpdateV1 message. Does not implicitly {@link pyth_lazer.FundingRateUpdateV1.verify|verify} messages. + * @function encode + * @memberof pyth_lazer.FundingRateUpdateV1 + * @static + * @param {pyth_lazer.IFundingRateUpdateV1} message FundingRateUpdateV1 message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FundingRateUpdateV1.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.price != null && Object.hasOwnProperty.call(message, "price")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.price); + if (message.rate != null && Object.hasOwnProperty.call(message, "rate")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.rate); + return writer; + }; + + /** + * Encodes the specified FundingRateUpdateV1 message, length delimited. Does not implicitly {@link pyth_lazer.FundingRateUpdateV1.verify|verify} messages. + * @function encodeDelimited + * @memberof pyth_lazer.FundingRateUpdateV1 + * @static + * @param {pyth_lazer.IFundingRateUpdateV1} message FundingRateUpdateV1 message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FundingRateUpdateV1.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FundingRateUpdateV1 message from the specified reader or buffer. + * @function decode + * @memberof pyth_lazer.FundingRateUpdateV1 + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {pyth_lazer.FundingRateUpdateV1} FundingRateUpdateV1 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FundingRateUpdateV1.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer.FundingRateUpdateV1(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.price = reader.int64(); + break; + } + case 2: { + message.rate = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FundingRateUpdateV1 message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof pyth_lazer.FundingRateUpdateV1 + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {pyth_lazer.FundingRateUpdateV1} FundingRateUpdateV1 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FundingRateUpdateV1.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FundingRateUpdateV1 message. + * @function verify + * @memberof pyth_lazer.FundingRateUpdateV1 + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FundingRateUpdateV1.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.price != null && message.hasOwnProperty("price")) { + properties._price = 1; + if (!$util.isInteger(message.price) && !(message.price && $util.isInteger(message.price.low) && $util.isInteger(message.price.high))) + return "price: integer|Long expected"; + } + if (message.rate != null && message.hasOwnProperty("rate")) { + properties._rate = 1; + if (!$util.isInteger(message.rate) && !(message.rate && $util.isInteger(message.rate.low) && $util.isInteger(message.rate.high))) + return "rate: integer|Long expected"; + } + return null; + }; + + /** + * Creates a FundingRateUpdateV1 message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof pyth_lazer.FundingRateUpdateV1 + * @static + * @param {Object.} object Plain object + * @returns {pyth_lazer.FundingRateUpdateV1} FundingRateUpdateV1 + */ + FundingRateUpdateV1.fromObject = function fromObject(object) { + if (object instanceof $root.pyth_lazer.FundingRateUpdateV1) + return object; + let message = new $root.pyth_lazer.FundingRateUpdateV1(); + if (object.price != null) + if ($util.Long) + (message.price = $util.Long.fromValue(object.price)).unsigned = false; + else if (typeof object.price === "string") + message.price = parseInt(object.price, 10); + else if (typeof object.price === "number") + message.price = object.price; + else if (typeof object.price === "object") + message.price = new $util.LongBits(object.price.low >>> 0, object.price.high >>> 0).toNumber(); + if (object.rate != null) + if ($util.Long) + (message.rate = $util.Long.fromValue(object.rate)).unsigned = false; + else if (typeof object.rate === "string") + message.rate = parseInt(object.rate, 10); + else if (typeof object.rate === "number") + message.rate = object.rate; + else if (typeof object.rate === "object") + message.rate = new $util.LongBits(object.rate.low >>> 0, object.rate.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a FundingRateUpdateV1 message. Also converts values to other types if specified. + * @function toObject + * @memberof pyth_lazer.FundingRateUpdateV1 + * @static + * @param {pyth_lazer.FundingRateUpdateV1} message FundingRateUpdateV1 + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FundingRateUpdateV1.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (message.price != null && message.hasOwnProperty("price")) { + if (typeof message.price === "number") + object.price = options.longs === String ? String(message.price) : message.price; + else + object.price = options.longs === String ? $util.Long.prototype.toString.call(message.price) : options.longs === Number ? new $util.LongBits(message.price.low >>> 0, message.price.high >>> 0).toNumber() : message.price; + if (options.oneofs) + object._price = "price"; + } + if (message.rate != null && message.hasOwnProperty("rate")) { + if (typeof message.rate === "number") + object.rate = options.longs === String ? String(message.rate) : message.rate; + else + object.rate = options.longs === String ? $util.Long.prototype.toString.call(message.rate) : options.longs === Number ? new $util.LongBits(message.rate.low >>> 0, message.rate.high >>> 0).toNumber() : message.rate; + if (options.oneofs) + object._rate = "rate"; + } + return object; + }; + + /** + * Converts this FundingRateUpdateV1 to JSON. + * @function toJSON + * @memberof pyth_lazer.FundingRateUpdateV1 + * @instance + * @returns {Object.} JSON object + */ + FundingRateUpdateV1.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FundingRateUpdateV1 + * @function getTypeUrl + * @memberof pyth_lazer.FundingRateUpdateV1 + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FundingRateUpdateV1.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/pyth_lazer.FundingRateUpdateV1"; + }; + + return FundingRateUpdateV1; + })(); + + /** + * TransactionSignatureType enum. + * @name pyth_lazer.TransactionSignatureType + * @enum {number} + * @property {number} ed25519=0 ed25519 value + */ + pyth_lazer.TransactionSignatureType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ed25519"] = 0; + return values; + })(); + + pyth_lazer.SignedLazerTransaction = (function() { + + /** + * Properties of a SignedLazerTransaction. + * @memberof pyth_lazer + * @interface ISignedLazerTransaction + * @property {pyth_lazer.TransactionSignatureType|null} [signatureType] SignedLazerTransaction signatureType + * @property {Uint8Array|null} [signature] SignedLazerTransaction signature + * @property {Uint8Array|null} [transaction] SignedLazerTransaction transaction + */ + + /** + * Constructs a new SignedLazerTransaction. + * @memberof pyth_lazer + * @classdesc Represents a SignedLazerTransaction. + * @implements ISignedLazerTransaction + * @constructor + * @param {pyth_lazer.ISignedLazerTransaction=} [properties] Properties to set + */ + function SignedLazerTransaction(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SignedLazerTransaction signatureType. + * @member {pyth_lazer.TransactionSignatureType} signatureType + * @memberof pyth_lazer.SignedLazerTransaction + * @instance + */ + SignedLazerTransaction.prototype.signatureType = 0; + + /** + * SignedLazerTransaction signature. + * @member {Uint8Array} signature + * @memberof pyth_lazer.SignedLazerTransaction + * @instance + */ + SignedLazerTransaction.prototype.signature = $util.newBuffer([]); + + /** + * SignedLazerTransaction transaction. + * @member {Uint8Array} transaction + * @memberof pyth_lazer.SignedLazerTransaction + * @instance + */ + SignedLazerTransaction.prototype.transaction = $util.newBuffer([]); + + /** + * Creates a new SignedLazerTransaction instance using the specified properties. + * @function create + * @memberof pyth_lazer.SignedLazerTransaction + * @static + * @param {pyth_lazer.ISignedLazerTransaction=} [properties] Properties to set + * @returns {pyth_lazer.SignedLazerTransaction} SignedLazerTransaction instance + */ + SignedLazerTransaction.create = function create(properties) { + return new SignedLazerTransaction(properties); + }; + + /** + * Encodes the specified SignedLazerTransaction message. Does not implicitly {@link pyth_lazer.SignedLazerTransaction.verify|verify} messages. + * @function encode + * @memberof pyth_lazer.SignedLazerTransaction + * @static + * @param {pyth_lazer.ISignedLazerTransaction} message SignedLazerTransaction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignedLazerTransaction.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.signatureType != null && Object.hasOwnProperty.call(message, "signatureType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.signatureType); + if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.signature); + if (message.transaction != null && Object.hasOwnProperty.call(message, "transaction")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.transaction); + return writer; + }; + + /** + * Encodes the specified SignedLazerTransaction message, length delimited. Does not implicitly {@link pyth_lazer.SignedLazerTransaction.verify|verify} messages. + * @function encodeDelimited + * @memberof pyth_lazer.SignedLazerTransaction + * @static + * @param {pyth_lazer.ISignedLazerTransaction} message SignedLazerTransaction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignedLazerTransaction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SignedLazerTransaction message from the specified reader or buffer. + * @function decode + * @memberof pyth_lazer.SignedLazerTransaction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {pyth_lazer.SignedLazerTransaction} SignedLazerTransaction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignedLazerTransaction.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer.SignedLazerTransaction(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.signatureType = reader.int32(); + break; + } + case 2: { + message.signature = reader.bytes(); + break; + } + case 3: { + message.transaction = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SignedLazerTransaction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof pyth_lazer.SignedLazerTransaction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {pyth_lazer.SignedLazerTransaction} SignedLazerTransaction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignedLazerTransaction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SignedLazerTransaction message. + * @function verify + * @memberof pyth_lazer.SignedLazerTransaction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignedLazerTransaction.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.signatureType != null && message.hasOwnProperty("signatureType")) + switch (message.signatureType) { + default: + return "signatureType: enum value expected"; + case 0: + break; + } + if (message.signature != null && message.hasOwnProperty("signature")) + if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature))) + return "signature: buffer expected"; + if (message.transaction != null && message.hasOwnProperty("transaction")) + if (!(message.transaction && typeof message.transaction.length === "number" || $util.isString(message.transaction))) + return "transaction: buffer expected"; + return null; + }; + + /** + * Creates a SignedLazerTransaction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof pyth_lazer.SignedLazerTransaction + * @static + * @param {Object.} object Plain object + * @returns {pyth_lazer.SignedLazerTransaction} SignedLazerTransaction + */ + SignedLazerTransaction.fromObject = function fromObject(object) { + if (object instanceof $root.pyth_lazer.SignedLazerTransaction) + return object; + let message = new $root.pyth_lazer.SignedLazerTransaction(); + switch (object.signatureType) { + default: + if (typeof object.signatureType === "number") { + message.signatureType = object.signatureType; + break; + } + break; + case "ed25519": + case 0: + message.signatureType = 0; + break; + } + if (object.signature != null) + if (typeof object.signature === "string") + $util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0); + else if (object.signature.length >= 0) + message.signature = object.signature; + if (object.transaction != null) + if (typeof object.transaction === "string") + $util.base64.decode(object.transaction, message.transaction = $util.newBuffer($util.base64.length(object.transaction)), 0); + else if (object.transaction.length >= 0) + message.transaction = object.transaction; + return message; + }; + + /** + * Creates a plain object from a SignedLazerTransaction message. Also converts values to other types if specified. + * @function toObject + * @memberof pyth_lazer.SignedLazerTransaction + * @static + * @param {pyth_lazer.SignedLazerTransaction} message SignedLazerTransaction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SignedLazerTransaction.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.signatureType = options.enums === String ? "ed25519" : 0; + if (options.bytes === String) + object.signature = ""; + else { + object.signature = []; + if (options.bytes !== Array) + object.signature = $util.newBuffer(object.signature); + } + if (options.bytes === String) + object.transaction = ""; + else { + object.transaction = []; + if (options.bytes !== Array) + object.transaction = $util.newBuffer(object.transaction); + } + } + if (message.signatureType != null && message.hasOwnProperty("signatureType")) + object.signatureType = options.enums === String ? $root.pyth_lazer.TransactionSignatureType[message.signatureType] === undefined ? message.signatureType : $root.pyth_lazer.TransactionSignatureType[message.signatureType] : message.signatureType; + if (message.signature != null && message.hasOwnProperty("signature")) + object.signature = options.bytes === String ? $util.base64.encode(message.signature, 0, message.signature.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature) : message.signature; + if (message.transaction != null && message.hasOwnProperty("transaction")) + object.transaction = options.bytes === String ? $util.base64.encode(message.transaction, 0, message.transaction.length) : options.bytes === Array ? Array.prototype.slice.call(message.transaction) : message.transaction; + return object; + }; + + /** + * Converts this SignedLazerTransaction to JSON. + * @function toJSON + * @memberof pyth_lazer.SignedLazerTransaction + * @instance + * @returns {Object.} JSON object + */ + SignedLazerTransaction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SignedLazerTransaction + * @function getTypeUrl + * @memberof pyth_lazer.SignedLazerTransaction + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SignedLazerTransaction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/pyth_lazer.SignedLazerTransaction"; + }; + + return SignedLazerTransaction; + })(); + + pyth_lazer.LazerTransaction = (function() { + + /** + * Properties of a LazerTransaction. + * @memberof pyth_lazer + * @interface ILazerTransaction + * @property {pyth_lazer.IPublisherUpdatePayload|null} [publisherUpdates] LazerTransaction publisherUpdates + */ + + /** + * Constructs a new LazerTransaction. + * @memberof pyth_lazer + * @classdesc Represents a LazerTransaction. + * @implements ILazerTransaction + * @constructor + * @param {pyth_lazer.ILazerTransaction=} [properties] Properties to set + */ + function LazerTransaction(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LazerTransaction publisherUpdates. + * @member {pyth_lazer.IPublisherUpdatePayload|null|undefined} publisherUpdates + * @memberof pyth_lazer.LazerTransaction + * @instance + */ + LazerTransaction.prototype.publisherUpdates = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * LazerTransaction transaction. + * @member {"publisherUpdates"|undefined} transaction + * @memberof pyth_lazer.LazerTransaction + * @instance + */ + Object.defineProperty(LazerTransaction.prototype, "transaction", { + get: $util.oneOfGetter($oneOfFields = ["publisherUpdates"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new LazerTransaction instance using the specified properties. + * @function create + * @memberof pyth_lazer.LazerTransaction + * @static + * @param {pyth_lazer.ILazerTransaction=} [properties] Properties to set + * @returns {pyth_lazer.LazerTransaction} LazerTransaction instance + */ + LazerTransaction.create = function create(properties) { + return new LazerTransaction(properties); + }; + + /** + * Encodes the specified LazerTransaction message. Does not implicitly {@link pyth_lazer.LazerTransaction.verify|verify} messages. + * @function encode + * @memberof pyth_lazer.LazerTransaction + * @static + * @param {pyth_lazer.ILazerTransaction} message LazerTransaction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LazerTransaction.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.publisherUpdates != null && Object.hasOwnProperty.call(message, "publisherUpdates")) + $root.pyth_lazer.PublisherUpdatePayload.encode(message.publisherUpdates, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified LazerTransaction message, length delimited. Does not implicitly {@link pyth_lazer.LazerTransaction.verify|verify} messages. + * @function encodeDelimited + * @memberof pyth_lazer.LazerTransaction + * @static + * @param {pyth_lazer.ILazerTransaction} message LazerTransaction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LazerTransaction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LazerTransaction message from the specified reader or buffer. + * @function decode + * @memberof pyth_lazer.LazerTransaction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {pyth_lazer.LazerTransaction} LazerTransaction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LazerTransaction.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer.LazerTransaction(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.publisherUpdates = $root.pyth_lazer.PublisherUpdatePayload.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LazerTransaction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof pyth_lazer.LazerTransaction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {pyth_lazer.LazerTransaction} LazerTransaction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LazerTransaction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LazerTransaction message. + * @function verify + * @memberof pyth_lazer.LazerTransaction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LazerTransaction.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.publisherUpdates != null && message.hasOwnProperty("publisherUpdates")) { + properties.transaction = 1; + { + let error = $root.pyth_lazer.PublisherUpdatePayload.verify(message.publisherUpdates); + if (error) + return "publisherUpdates." + error; + } + } + return null; + }; + + /** + * Creates a LazerTransaction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof pyth_lazer.LazerTransaction + * @static + * @param {Object.} object Plain object + * @returns {pyth_lazer.LazerTransaction} LazerTransaction + */ + LazerTransaction.fromObject = function fromObject(object) { + if (object instanceof $root.pyth_lazer.LazerTransaction) + return object; + let message = new $root.pyth_lazer.LazerTransaction(); + if (object.publisherUpdates != null) { + if (typeof object.publisherUpdates !== "object") + throw TypeError(".pyth_lazer.LazerTransaction.publisherUpdates: object expected"); + message.publisherUpdates = $root.pyth_lazer.PublisherUpdatePayload.fromObject(object.publisherUpdates); + } + return message; + }; + + /** + * Creates a plain object from a LazerTransaction message. Also converts values to other types if specified. + * @function toObject + * @memberof pyth_lazer.LazerTransaction + * @static + * @param {pyth_lazer.LazerTransaction} message LazerTransaction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LazerTransaction.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (message.publisherUpdates != null && message.hasOwnProperty("publisherUpdates")) { + object.publisherUpdates = $root.pyth_lazer.PublisherUpdatePayload.toObject(message.publisherUpdates, options); + if (options.oneofs) + object.transaction = "publisherUpdates"; + } + return object; + }; + + /** + * Converts this LazerTransaction to JSON. + * @function toJSON + * @memberof pyth_lazer.LazerTransaction + * @instance + * @returns {Object.} JSON object + */ + LazerTransaction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for LazerTransaction + * @function getTypeUrl + * @memberof pyth_lazer.LazerTransaction + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LazerTransaction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/pyth_lazer.LazerTransaction"; + }; + + return LazerTransaction; + })(); + + return pyth_lazer; +})(); + +export { $root as default }; From a9dcdcaa306899a380a620402171afd8fdee624d Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Fri, 4 Apr 2025 08:53:04 -0700 Subject: [PATCH 04/26] Update proto file --- lazer/sdk/js/package.json | 2 + lazer/sdk/js/src/generated/proto.d.ts | 54 +++-- lazer/sdk/js/src/generated/proto.js | 319 ++++++++++++++++--------- lazer/sdk/proto/publisher_update.proto | 23 +- 4 files changed, 260 insertions(+), 138 deletions(-) diff --git a/lazer/sdk/js/package.json b/lazer/sdk/js/package.json index 004f6ae224..4def395de0 100644 --- a/lazer/sdk/js/package.json +++ b/lazer/sdk/js/package.json @@ -41,6 +41,8 @@ "@types/ws": "^8.5.12", "eslint": "catalog:", "prettier": "catalog:", + "protobufjs": "^7.4.0", + "protobufjs-cli": "^1.1.3", "ts-node": "catalog:", "typedoc": "^0.26.8", "typescript": "catalog:" diff --git a/lazer/sdk/js/src/generated/proto.d.ts b/lazer/sdk/js/src/generated/proto.d.ts index a97dadb73c..7b74948803 100644 --- a/lazer/sdk/js/src/generated/proto.d.ts +++ b/lazer/sdk/js/src/generated/proto.d.ts @@ -109,15 +109,6 @@ export namespace pyth_lazer { /** Properties of a PublisherUpdate. */ interface IPublisherUpdate { - /** PublisherUpdate priceFeedId */ - priceFeedId?: (number|null); - - /** PublisherUpdate sourceTimestampUs */ - sourceTimestampUs?: (number|Long|null); - - /** PublisherUpdate publisherTimestampUs */ - publisherTimestampUs?: (number|Long|null); - /** PublisherUpdate priceUpdateV1 */ priceUpdateV1?: (pyth_lazer.IPriceUpdateV1|null); @@ -134,15 +125,6 @@ export namespace pyth_lazer { */ constructor(properties?: pyth_lazer.IPublisherUpdate); - /** PublisherUpdate priceFeedId. */ - public priceFeedId: number; - - /** PublisherUpdate sourceTimestampUs. */ - public sourceTimestampUs: (number|Long); - - /** PublisherUpdate publisherTimestampUs. */ - public publisherTimestampUs: (number|Long); - /** PublisherUpdate priceUpdateV1. */ public priceUpdateV1?: (pyth_lazer.IPriceUpdateV1|null); @@ -233,6 +215,15 @@ export namespace pyth_lazer { /** Properties of a PriceUpdateV1. */ interface IPriceUpdateV1 { + /** PriceUpdateV1 priceFeedId */ + priceFeedId?: (number|null); + + /** PriceUpdateV1 sourceTimestampUs */ + sourceTimestampUs?: (number|Long|null); + + /** PriceUpdateV1 publisherTimestampUs */ + publisherTimestampUs?: (number|Long|null); + /** PriceUpdateV1 price */ price?: (number|Long|null); @@ -252,6 +243,15 @@ export namespace pyth_lazer { */ constructor(properties?: pyth_lazer.IPriceUpdateV1); + /** PriceUpdateV1 priceFeedId. */ + public priceFeedId: number; + + /** PriceUpdateV1 sourceTimestampUs. */ + public sourceTimestampUs: (number|Long); + + /** PriceUpdateV1 publisherTimestampUs. */ + public publisherTimestampUs: (number|Long); + /** PriceUpdateV1 price. */ public price?: (number|Long|null); @@ -342,6 +342,15 @@ export namespace pyth_lazer { /** Properties of a FundingRateUpdateV1. */ interface IFundingRateUpdateV1 { + /** FundingRateUpdateV1 priceFeedId */ + priceFeedId?: (number|null); + + /** FundingRateUpdateV1 sourceTimestampUs */ + sourceTimestampUs?: (number|Long|null); + + /** FundingRateUpdateV1 publisherTimestampUs */ + publisherTimestampUs?: (number|Long|null); + /** FundingRateUpdateV1 price */ price?: (number|Long|null); @@ -358,6 +367,15 @@ export namespace pyth_lazer { */ constructor(properties?: pyth_lazer.IFundingRateUpdateV1); + /** FundingRateUpdateV1 priceFeedId. */ + public priceFeedId: number; + + /** FundingRateUpdateV1 sourceTimestampUs. */ + public sourceTimestampUs: (number|Long); + + /** FundingRateUpdateV1 publisherTimestampUs. */ + public publisherTimestampUs: (number|Long); + /** FundingRateUpdateV1 price. */ public price?: (number|Long|null); diff --git a/lazer/sdk/js/src/generated/proto.js b/lazer/sdk/js/src/generated/proto.js index 7c2871697f..f676e68a76 100644 --- a/lazer/sdk/js/src/generated/proto.js +++ b/lazer/sdk/js/src/generated/proto.js @@ -284,9 +284,6 @@ export const pyth_lazer = $root.pyth_lazer = (() => { * Properties of a PublisherUpdate. * @memberof pyth_lazer * @interface IPublisherUpdate - * @property {number|null} [priceFeedId] PublisherUpdate priceFeedId - * @property {number|Long|null} [sourceTimestampUs] PublisherUpdate sourceTimestampUs - * @property {number|Long|null} [publisherTimestampUs] PublisherUpdate publisherTimestampUs * @property {pyth_lazer.IPriceUpdateV1|null} [priceUpdateV1] PublisherUpdate priceUpdateV1 * @property {pyth_lazer.IFundingRateUpdateV1|null} [fundingRateUpdateV1] PublisherUpdate fundingRateUpdateV1 */ @@ -306,30 +303,6 @@ export const pyth_lazer = $root.pyth_lazer = (() => { this[keys[i]] = properties[keys[i]]; } - /** - * PublisherUpdate priceFeedId. - * @member {number} priceFeedId - * @memberof pyth_lazer.PublisherUpdate - * @instance - */ - PublisherUpdate.prototype.priceFeedId = 0; - - /** - * PublisherUpdate sourceTimestampUs. - * @member {number|Long} sourceTimestampUs - * @memberof pyth_lazer.PublisherUpdate - * @instance - */ - PublisherUpdate.prototype.sourceTimestampUs = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * PublisherUpdate publisherTimestampUs. - * @member {number|Long} publisherTimestampUs - * @memberof pyth_lazer.PublisherUpdate - * @instance - */ - PublisherUpdate.prototype.publisherTimestampUs = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** * PublisherUpdate priceUpdateV1. * @member {pyth_lazer.IPriceUpdateV1|null|undefined} priceUpdateV1 @@ -384,16 +357,10 @@ export const pyth_lazer = $root.pyth_lazer = (() => { PublisherUpdate.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.priceFeedId != null && Object.hasOwnProperty.call(message, "priceFeedId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.priceFeedId); - if (message.sourceTimestampUs != null && Object.hasOwnProperty.call(message, "sourceTimestampUs")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.sourceTimestampUs); - if (message.publisherTimestampUs != null && Object.hasOwnProperty.call(message, "publisherTimestampUs")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.publisherTimestampUs); if (message.priceUpdateV1 != null && Object.hasOwnProperty.call(message, "priceUpdateV1")) - $root.pyth_lazer.PriceUpdateV1.encode(message.priceUpdateV1, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.pyth_lazer.PriceUpdateV1.encode(message.priceUpdateV1, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.fundingRateUpdateV1 != null && Object.hasOwnProperty.call(message, "fundingRateUpdateV1")) - $root.pyth_lazer.FundingRateUpdateV1.encode(message.fundingRateUpdateV1, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + $root.pyth_lazer.FundingRateUpdateV1.encode(message.fundingRateUpdateV1, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -428,23 +395,11 @@ export const pyth_lazer = $root.pyth_lazer = (() => { while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.priceFeedId = reader.uint32(); - break; - } - case 2: { - message.sourceTimestampUs = reader.uint64(); - break; - } case 3: { - message.publisherTimestampUs = reader.uint64(); - break; - } - case 4: { message.priceUpdateV1 = $root.pyth_lazer.PriceUpdateV1.decode(reader, reader.uint32()); break; } - case 5: { + case 4: { message.fundingRateUpdateV1 = $root.pyth_lazer.FundingRateUpdateV1.decode(reader, reader.uint32()); break; } @@ -484,15 +439,6 @@ export const pyth_lazer = $root.pyth_lazer = (() => { if (typeof message !== "object" || message === null) return "object expected"; let properties = {}; - if (message.priceFeedId != null && message.hasOwnProperty("priceFeedId")) - if (!$util.isInteger(message.priceFeedId)) - return "priceFeedId: integer expected"; - if (message.sourceTimestampUs != null && message.hasOwnProperty("sourceTimestampUs")) - if (!$util.isInteger(message.sourceTimestampUs) && !(message.sourceTimestampUs && $util.isInteger(message.sourceTimestampUs.low) && $util.isInteger(message.sourceTimestampUs.high))) - return "sourceTimestampUs: integer|Long expected"; - if (message.publisherTimestampUs != null && message.hasOwnProperty("publisherTimestampUs")) - if (!$util.isInteger(message.publisherTimestampUs) && !(message.publisherTimestampUs && $util.isInteger(message.publisherTimestampUs.low) && $util.isInteger(message.publisherTimestampUs.high))) - return "publisherTimestampUs: integer|Long expected"; if (message.priceUpdateV1 != null && message.hasOwnProperty("priceUpdateV1")) { properties.update = 1; { @@ -526,26 +472,6 @@ export const pyth_lazer = $root.pyth_lazer = (() => { if (object instanceof $root.pyth_lazer.PublisherUpdate) return object; let message = new $root.pyth_lazer.PublisherUpdate(); - if (object.priceFeedId != null) - message.priceFeedId = object.priceFeedId >>> 0; - if (object.sourceTimestampUs != null) - if ($util.Long) - (message.sourceTimestampUs = $util.Long.fromValue(object.sourceTimestampUs)).unsigned = true; - else if (typeof object.sourceTimestampUs === "string") - message.sourceTimestampUs = parseInt(object.sourceTimestampUs, 10); - else if (typeof object.sourceTimestampUs === "number") - message.sourceTimestampUs = object.sourceTimestampUs; - else if (typeof object.sourceTimestampUs === "object") - message.sourceTimestampUs = new $util.LongBits(object.sourceTimestampUs.low >>> 0, object.sourceTimestampUs.high >>> 0).toNumber(true); - if (object.publisherTimestampUs != null) - if ($util.Long) - (message.publisherTimestampUs = $util.Long.fromValue(object.publisherTimestampUs)).unsigned = true; - else if (typeof object.publisherTimestampUs === "string") - message.publisherTimestampUs = parseInt(object.publisherTimestampUs, 10); - else if (typeof object.publisherTimestampUs === "number") - message.publisherTimestampUs = object.publisherTimestampUs; - else if (typeof object.publisherTimestampUs === "object") - message.publisherTimestampUs = new $util.LongBits(object.publisherTimestampUs.low >>> 0, object.publisherTimestampUs.high >>> 0).toNumber(true); if (object.priceUpdateV1 != null) { if (typeof object.priceUpdateV1 !== "object") throw TypeError(".pyth_lazer.PublisherUpdate.priceUpdateV1: object expected"); @@ -572,31 +498,6 @@ export const pyth_lazer = $root.pyth_lazer = (() => { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.priceFeedId = 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.sourceTimestampUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sourceTimestampUs = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.publisherTimestampUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.publisherTimestampUs = options.longs === String ? "0" : 0; - } - if (message.priceFeedId != null && message.hasOwnProperty("priceFeedId")) - object.priceFeedId = message.priceFeedId; - if (message.sourceTimestampUs != null && message.hasOwnProperty("sourceTimestampUs")) - if (typeof message.sourceTimestampUs === "number") - object.sourceTimestampUs = options.longs === String ? String(message.sourceTimestampUs) : message.sourceTimestampUs; - else - object.sourceTimestampUs = options.longs === String ? $util.Long.prototype.toString.call(message.sourceTimestampUs) : options.longs === Number ? new $util.LongBits(message.sourceTimestampUs.low >>> 0, message.sourceTimestampUs.high >>> 0).toNumber(true) : message.sourceTimestampUs; - if (message.publisherTimestampUs != null && message.hasOwnProperty("publisherTimestampUs")) - if (typeof message.publisherTimestampUs === "number") - object.publisherTimestampUs = options.longs === String ? String(message.publisherTimestampUs) : message.publisherTimestampUs; - else - object.publisherTimestampUs = options.longs === String ? $util.Long.prototype.toString.call(message.publisherTimestampUs) : options.longs === Number ? new $util.LongBits(message.publisherTimestampUs.low >>> 0, message.publisherTimestampUs.high >>> 0).toNumber(true) : message.publisherTimestampUs; if (message.priceUpdateV1 != null && message.hasOwnProperty("priceUpdateV1")) { object.priceUpdateV1 = $root.pyth_lazer.PriceUpdateV1.toObject(message.priceUpdateV1, options); if (options.oneofs) @@ -645,6 +546,9 @@ export const pyth_lazer = $root.pyth_lazer = (() => { * Properties of a PriceUpdateV1. * @memberof pyth_lazer * @interface IPriceUpdateV1 + * @property {number|null} [priceFeedId] PriceUpdateV1 priceFeedId + * @property {number|Long|null} [sourceTimestampUs] PriceUpdateV1 sourceTimestampUs + * @property {number|Long|null} [publisherTimestampUs] PriceUpdateV1 publisherTimestampUs * @property {number|Long|null} [price] PriceUpdateV1 price * @property {number|Long|null} [bestBidPrice] PriceUpdateV1 bestBidPrice * @property {number|Long|null} [bestAskPrice] PriceUpdateV1 bestAskPrice @@ -665,6 +569,30 @@ export const pyth_lazer = $root.pyth_lazer = (() => { this[keys[i]] = properties[keys[i]]; } + /** + * PriceUpdateV1 priceFeedId. + * @member {number} priceFeedId + * @memberof pyth_lazer.PriceUpdateV1 + * @instance + */ + PriceUpdateV1.prototype.priceFeedId = 0; + + /** + * PriceUpdateV1 sourceTimestampUs. + * @member {number|Long} sourceTimestampUs + * @memberof pyth_lazer.PriceUpdateV1 + * @instance + */ + PriceUpdateV1.prototype.sourceTimestampUs = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * PriceUpdateV1 publisherTimestampUs. + * @member {number|Long} publisherTimestampUs + * @memberof pyth_lazer.PriceUpdateV1 + * @instance + */ + PriceUpdateV1.prototype.publisherTimestampUs = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + /** * PriceUpdateV1 price. * @member {number|Long|null|undefined} price @@ -734,12 +662,18 @@ export const pyth_lazer = $root.pyth_lazer = (() => { PriceUpdateV1.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.priceFeedId != null && Object.hasOwnProperty.call(message, "priceFeedId")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.priceFeedId); + if (message.sourceTimestampUs != null && Object.hasOwnProperty.call(message, "sourceTimestampUs")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.sourceTimestampUs); + if (message.publisherTimestampUs != null && Object.hasOwnProperty.call(message, "publisherTimestampUs")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.publisherTimestampUs); if (message.price != null && Object.hasOwnProperty.call(message, "price")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.price); + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.price); if (message.bestBidPrice != null && Object.hasOwnProperty.call(message, "bestBidPrice")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.bestBidPrice); + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.bestBidPrice); if (message.bestAskPrice != null && Object.hasOwnProperty.call(message, "bestAskPrice")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.bestAskPrice); + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.bestAskPrice); return writer; }; @@ -775,14 +709,26 @@ export const pyth_lazer = $root.pyth_lazer = (() => { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.price = reader.int64(); + message.priceFeedId = reader.uint32(); break; } case 2: { - message.bestBidPrice = reader.int64(); + message.sourceTimestampUs = reader.uint64(); break; } case 3: { + message.publisherTimestampUs = reader.uint64(); + break; + } + case 4: { + message.price = reader.int64(); + break; + } + case 5: { + message.bestBidPrice = reader.int64(); + break; + } + case 6: { message.bestAskPrice = reader.int64(); break; } @@ -822,6 +768,15 @@ export const pyth_lazer = $root.pyth_lazer = (() => { if (typeof message !== "object" || message === null) return "object expected"; let properties = {}; + if (message.priceFeedId != null && message.hasOwnProperty("priceFeedId")) + if (!$util.isInteger(message.priceFeedId)) + return "priceFeedId: integer expected"; + if (message.sourceTimestampUs != null && message.hasOwnProperty("sourceTimestampUs")) + if (!$util.isInteger(message.sourceTimestampUs) && !(message.sourceTimestampUs && $util.isInteger(message.sourceTimestampUs.low) && $util.isInteger(message.sourceTimestampUs.high))) + return "sourceTimestampUs: integer|Long expected"; + if (message.publisherTimestampUs != null && message.hasOwnProperty("publisherTimestampUs")) + if (!$util.isInteger(message.publisherTimestampUs) && !(message.publisherTimestampUs && $util.isInteger(message.publisherTimestampUs.low) && $util.isInteger(message.publisherTimestampUs.high))) + return "publisherTimestampUs: integer|Long expected"; if (message.price != null && message.hasOwnProperty("price")) { properties._price = 1; if (!$util.isInteger(message.price) && !(message.price && $util.isInteger(message.price.low) && $util.isInteger(message.price.high))) @@ -852,6 +807,26 @@ export const pyth_lazer = $root.pyth_lazer = (() => { if (object instanceof $root.pyth_lazer.PriceUpdateV1) return object; let message = new $root.pyth_lazer.PriceUpdateV1(); + if (object.priceFeedId != null) + message.priceFeedId = object.priceFeedId >>> 0; + if (object.sourceTimestampUs != null) + if ($util.Long) + (message.sourceTimestampUs = $util.Long.fromValue(object.sourceTimestampUs)).unsigned = true; + else if (typeof object.sourceTimestampUs === "string") + message.sourceTimestampUs = parseInt(object.sourceTimestampUs, 10); + else if (typeof object.sourceTimestampUs === "number") + message.sourceTimestampUs = object.sourceTimestampUs; + else if (typeof object.sourceTimestampUs === "object") + message.sourceTimestampUs = new $util.LongBits(object.sourceTimestampUs.low >>> 0, object.sourceTimestampUs.high >>> 0).toNumber(true); + if (object.publisherTimestampUs != null) + if ($util.Long) + (message.publisherTimestampUs = $util.Long.fromValue(object.publisherTimestampUs)).unsigned = true; + else if (typeof object.publisherTimestampUs === "string") + message.publisherTimestampUs = parseInt(object.publisherTimestampUs, 10); + else if (typeof object.publisherTimestampUs === "number") + message.publisherTimestampUs = object.publisherTimestampUs; + else if (typeof object.publisherTimestampUs === "object") + message.publisherTimestampUs = new $util.LongBits(object.publisherTimestampUs.low >>> 0, object.publisherTimestampUs.high >>> 0).toNumber(true); if (object.price != null) if ($util.Long) (message.price = $util.Long.fromValue(object.price)).unsigned = false; @@ -895,6 +870,31 @@ export const pyth_lazer = $root.pyth_lazer = (() => { if (!options) options = {}; let object = {}; + if (options.defaults) { + object.priceFeedId = 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.sourceTimestampUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sourceTimestampUs = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.publisherTimestampUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.publisherTimestampUs = options.longs === String ? "0" : 0; + } + if (message.priceFeedId != null && message.hasOwnProperty("priceFeedId")) + object.priceFeedId = message.priceFeedId; + if (message.sourceTimestampUs != null && message.hasOwnProperty("sourceTimestampUs")) + if (typeof message.sourceTimestampUs === "number") + object.sourceTimestampUs = options.longs === String ? String(message.sourceTimestampUs) : message.sourceTimestampUs; + else + object.sourceTimestampUs = options.longs === String ? $util.Long.prototype.toString.call(message.sourceTimestampUs) : options.longs === Number ? new $util.LongBits(message.sourceTimestampUs.low >>> 0, message.sourceTimestampUs.high >>> 0).toNumber(true) : message.sourceTimestampUs; + if (message.publisherTimestampUs != null && message.hasOwnProperty("publisherTimestampUs")) + if (typeof message.publisherTimestampUs === "number") + object.publisherTimestampUs = options.longs === String ? String(message.publisherTimestampUs) : message.publisherTimestampUs; + else + object.publisherTimestampUs = options.longs === String ? $util.Long.prototype.toString.call(message.publisherTimestampUs) : options.longs === Number ? new $util.LongBits(message.publisherTimestampUs.low >>> 0, message.publisherTimestampUs.high >>> 0).toNumber(true) : message.publisherTimestampUs; if (message.price != null && message.hasOwnProperty("price")) { if (typeof message.price === "number") object.price = options.longs === String ? String(message.price) : message.price; @@ -957,6 +957,9 @@ export const pyth_lazer = $root.pyth_lazer = (() => { * Properties of a FundingRateUpdateV1. * @memberof pyth_lazer * @interface IFundingRateUpdateV1 + * @property {number|null} [priceFeedId] FundingRateUpdateV1 priceFeedId + * @property {number|Long|null} [sourceTimestampUs] FundingRateUpdateV1 sourceTimestampUs + * @property {number|Long|null} [publisherTimestampUs] FundingRateUpdateV1 publisherTimestampUs * @property {number|Long|null} [price] FundingRateUpdateV1 price * @property {number|Long|null} [rate] FundingRateUpdateV1 rate */ @@ -976,6 +979,30 @@ export const pyth_lazer = $root.pyth_lazer = (() => { this[keys[i]] = properties[keys[i]]; } + /** + * FundingRateUpdateV1 priceFeedId. + * @member {number} priceFeedId + * @memberof pyth_lazer.FundingRateUpdateV1 + * @instance + */ + FundingRateUpdateV1.prototype.priceFeedId = 0; + + /** + * FundingRateUpdateV1 sourceTimestampUs. + * @member {number|Long} sourceTimestampUs + * @memberof pyth_lazer.FundingRateUpdateV1 + * @instance + */ + FundingRateUpdateV1.prototype.sourceTimestampUs = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * FundingRateUpdateV1 publisherTimestampUs. + * @member {number|Long} publisherTimestampUs + * @memberof pyth_lazer.FundingRateUpdateV1 + * @instance + */ + FundingRateUpdateV1.prototype.publisherTimestampUs = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + /** * FundingRateUpdateV1 price. * @member {number|Long|null|undefined} price @@ -1031,10 +1058,16 @@ export const pyth_lazer = $root.pyth_lazer = (() => { FundingRateUpdateV1.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.priceFeedId != null && Object.hasOwnProperty.call(message, "priceFeedId")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.priceFeedId); + if (message.sourceTimestampUs != null && Object.hasOwnProperty.call(message, "sourceTimestampUs")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.sourceTimestampUs); + if (message.publisherTimestampUs != null && Object.hasOwnProperty.call(message, "publisherTimestampUs")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.publisherTimestampUs); if (message.price != null && Object.hasOwnProperty.call(message, "price")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.price); + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.price); if (message.rate != null && Object.hasOwnProperty.call(message, "rate")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.rate); + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.rate); return writer; }; @@ -1070,10 +1103,22 @@ export const pyth_lazer = $root.pyth_lazer = (() => { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.price = reader.int64(); + message.priceFeedId = reader.uint32(); break; } case 2: { + message.sourceTimestampUs = reader.uint64(); + break; + } + case 3: { + message.publisherTimestampUs = reader.uint64(); + break; + } + case 4: { + message.price = reader.int64(); + break; + } + case 5: { message.rate = reader.int64(); break; } @@ -1113,6 +1158,15 @@ export const pyth_lazer = $root.pyth_lazer = (() => { if (typeof message !== "object" || message === null) return "object expected"; let properties = {}; + if (message.priceFeedId != null && message.hasOwnProperty("priceFeedId")) + if (!$util.isInteger(message.priceFeedId)) + return "priceFeedId: integer expected"; + if (message.sourceTimestampUs != null && message.hasOwnProperty("sourceTimestampUs")) + if (!$util.isInteger(message.sourceTimestampUs) && !(message.sourceTimestampUs && $util.isInteger(message.sourceTimestampUs.low) && $util.isInteger(message.sourceTimestampUs.high))) + return "sourceTimestampUs: integer|Long expected"; + if (message.publisherTimestampUs != null && message.hasOwnProperty("publisherTimestampUs")) + if (!$util.isInteger(message.publisherTimestampUs) && !(message.publisherTimestampUs && $util.isInteger(message.publisherTimestampUs.low) && $util.isInteger(message.publisherTimestampUs.high))) + return "publisherTimestampUs: integer|Long expected"; if (message.price != null && message.hasOwnProperty("price")) { properties._price = 1; if (!$util.isInteger(message.price) && !(message.price && $util.isInteger(message.price.low) && $util.isInteger(message.price.high))) @@ -1138,6 +1192,26 @@ export const pyth_lazer = $root.pyth_lazer = (() => { if (object instanceof $root.pyth_lazer.FundingRateUpdateV1) return object; let message = new $root.pyth_lazer.FundingRateUpdateV1(); + if (object.priceFeedId != null) + message.priceFeedId = object.priceFeedId >>> 0; + if (object.sourceTimestampUs != null) + if ($util.Long) + (message.sourceTimestampUs = $util.Long.fromValue(object.sourceTimestampUs)).unsigned = true; + else if (typeof object.sourceTimestampUs === "string") + message.sourceTimestampUs = parseInt(object.sourceTimestampUs, 10); + else if (typeof object.sourceTimestampUs === "number") + message.sourceTimestampUs = object.sourceTimestampUs; + else if (typeof object.sourceTimestampUs === "object") + message.sourceTimestampUs = new $util.LongBits(object.sourceTimestampUs.low >>> 0, object.sourceTimestampUs.high >>> 0).toNumber(true); + if (object.publisherTimestampUs != null) + if ($util.Long) + (message.publisherTimestampUs = $util.Long.fromValue(object.publisherTimestampUs)).unsigned = true; + else if (typeof object.publisherTimestampUs === "string") + message.publisherTimestampUs = parseInt(object.publisherTimestampUs, 10); + else if (typeof object.publisherTimestampUs === "number") + message.publisherTimestampUs = object.publisherTimestampUs; + else if (typeof object.publisherTimestampUs === "object") + message.publisherTimestampUs = new $util.LongBits(object.publisherTimestampUs.low >>> 0, object.publisherTimestampUs.high >>> 0).toNumber(true); if (object.price != null) if ($util.Long) (message.price = $util.Long.fromValue(object.price)).unsigned = false; @@ -1172,6 +1246,31 @@ export const pyth_lazer = $root.pyth_lazer = (() => { if (!options) options = {}; let object = {}; + if (options.defaults) { + object.priceFeedId = 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.sourceTimestampUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sourceTimestampUs = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.publisherTimestampUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.publisherTimestampUs = options.longs === String ? "0" : 0; + } + if (message.priceFeedId != null && message.hasOwnProperty("priceFeedId")) + object.priceFeedId = message.priceFeedId; + if (message.sourceTimestampUs != null && message.hasOwnProperty("sourceTimestampUs")) + if (typeof message.sourceTimestampUs === "number") + object.sourceTimestampUs = options.longs === String ? String(message.sourceTimestampUs) : message.sourceTimestampUs; + else + object.sourceTimestampUs = options.longs === String ? $util.Long.prototype.toString.call(message.sourceTimestampUs) : options.longs === Number ? new $util.LongBits(message.sourceTimestampUs.low >>> 0, message.sourceTimestampUs.high >>> 0).toNumber(true) : message.sourceTimestampUs; + if (message.publisherTimestampUs != null && message.hasOwnProperty("publisherTimestampUs")) + if (typeof message.publisherTimestampUs === "number") + object.publisherTimestampUs = options.longs === String ? String(message.publisherTimestampUs) : message.publisherTimestampUs; + else + object.publisherTimestampUs = options.longs === String ? $util.Long.prototype.toString.call(message.publisherTimestampUs) : options.longs === Number ? new $util.LongBits(message.publisherTimestampUs.low >>> 0, message.publisherTimestampUs.high >>> 0).toNumber(true) : message.publisherTimestampUs; if (message.price != null && message.hasOwnProperty("price")) { if (typeof message.price === "number") object.price = options.longs === String ? String(message.price) : message.price; diff --git a/lazer/sdk/proto/publisher_update.proto b/lazer/sdk/proto/publisher_update.proto index 9ece8ec326..4af1d51aeb 100644 --- a/lazer/sdk/proto/publisher_update.proto +++ b/lazer/sdk/proto/publisher_update.proto @@ -8,22 +8,25 @@ message PublisherUpdatePayload { } message PublisherUpdate { - uint32 price_feed_id = 1; - uint64 source_timestamp_us = 2; - uint64 publisher_timestamp_us = 3; oneof update { - PriceUpdateV1 price_update_v1 = 4; - FundingRateUpdateV1 funding_rate_update_v1 = 5; + PriceUpdateV1 price_update_v1 = 3; + FundingRateUpdateV1 funding_rate_update_v1 = 4; } } message PriceUpdateV1 { - optional int64 price = 1; - optional int64 best_bid_price = 2; - optional int64 best_ask_price = 3; + uint32 price_feed_id = 1; + uint64 source_timestamp_us = 2; + uint64 publisher_timestamp_us = 3; + optional int64 price = 4; + optional int64 best_bid_price = 5; + optional int64 best_ask_price = 6; } message FundingRateUpdateV1 { - optional int64 price = 1; - optional int64 rate = 2; + uint32 price_feed_id = 1; + uint64 source_timestamp_us = 2; + uint64 publisher_timestamp_us = 3; + optional int64 price = 4; + optional int64 rate = 5; } From 979f7935b7d100d2dadaa14cc59cd24530853b5b Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Fri, 4 Apr 2025 10:22:18 -0700 Subject: [PATCH 05/26] rename --- lazer/sdk/js/src/generated/proto.d.ts | 144 +++--- lazer/sdk/js/src/generated/proto.js | 464 +++++++++--------- lazer/sdk/proto/publisher_update.proto | 2 +- ...zer.proto => pyth_lazer_transaction.proto} | 2 +- lazer/sdk/rust/protocol/build.rs | 2 +- lazer/sdk/rust/protocol/src/lib.rs | 6 +- 6 files changed, 310 insertions(+), 310 deletions(-) rename lazer/sdk/proto/{pyth_lazer.proto => pyth_lazer_transaction.proto} (91%) diff --git a/lazer/sdk/js/src/generated/proto.d.ts b/lazer/sdk/js/src/generated/proto.d.ts index 7b74948803..790fb56fed 100644 --- a/lazer/sdk/js/src/generated/proto.d.ts +++ b/lazer/sdk/js/src/generated/proto.d.ts @@ -1,13 +1,13 @@ import * as $protobuf from "protobufjs"; import Long = require("long"); -/** Namespace pyth_lazer. */ -export namespace pyth_lazer { +/** Namespace pyth_lazer_transaction. */ +export namespace pyth_lazer_transaction { /** Properties of a PublisherUpdatePayload. */ interface IPublisherUpdatePayload { /** PublisherUpdatePayload updates */ - updates?: (pyth_lazer.IPublisherUpdate[]|null); + updates?: (pyth_lazer_transaction.IPublisherUpdate[]|null); /** PublisherUpdatePayload batchTimestampUs */ batchTimestampUs?: (number|Long|null); @@ -20,10 +20,10 @@ export namespace pyth_lazer { * Constructs a new PublisherUpdatePayload. * @param [properties] Properties to set */ - constructor(properties?: pyth_lazer.IPublisherUpdatePayload); + constructor(properties?: pyth_lazer_transaction.IPublisherUpdatePayload); /** PublisherUpdatePayload updates. */ - public updates: pyth_lazer.IPublisherUpdate[]; + public updates: pyth_lazer_transaction.IPublisherUpdate[]; /** PublisherUpdatePayload batchTimestampUs. */ public batchTimestampUs: (number|Long); @@ -33,23 +33,23 @@ export namespace pyth_lazer { * @param [properties] Properties to set * @returns PublisherUpdatePayload instance */ - public static create(properties?: pyth_lazer.IPublisherUpdatePayload): pyth_lazer.PublisherUpdatePayload; + public static create(properties?: pyth_lazer_transaction.IPublisherUpdatePayload): pyth_lazer_transaction.PublisherUpdatePayload; /** - * Encodes the specified PublisherUpdatePayload message. Does not implicitly {@link pyth_lazer.PublisherUpdatePayload.verify|verify} messages. + * Encodes the specified PublisherUpdatePayload message. Does not implicitly {@link pyth_lazer_transaction.PublisherUpdatePayload.verify|verify} messages. * @param message PublisherUpdatePayload message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: pyth_lazer.IPublisherUpdatePayload, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: pyth_lazer_transaction.IPublisherUpdatePayload, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PublisherUpdatePayload message, length delimited. Does not implicitly {@link pyth_lazer.PublisherUpdatePayload.verify|verify} messages. + * Encodes the specified PublisherUpdatePayload message, length delimited. Does not implicitly {@link pyth_lazer_transaction.PublisherUpdatePayload.verify|verify} messages. * @param message PublisherUpdatePayload message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: pyth_lazer.IPublisherUpdatePayload, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: pyth_lazer_transaction.IPublisherUpdatePayload, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PublisherUpdatePayload message from the specified reader or buffer. @@ -59,7 +59,7 @@ export namespace pyth_lazer { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer.PublisherUpdatePayload; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer_transaction.PublisherUpdatePayload; /** * Decodes a PublisherUpdatePayload message from the specified reader or buffer, length delimited. @@ -68,7 +68,7 @@ export namespace pyth_lazer { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer.PublisherUpdatePayload; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer_transaction.PublisherUpdatePayload; /** * Verifies a PublisherUpdatePayload message. @@ -82,7 +82,7 @@ export namespace pyth_lazer { * @param object Plain object * @returns PublisherUpdatePayload */ - public static fromObject(object: { [k: string]: any }): pyth_lazer.PublisherUpdatePayload; + public static fromObject(object: { [k: string]: any }): pyth_lazer_transaction.PublisherUpdatePayload; /** * Creates a plain object from a PublisherUpdatePayload message. Also converts values to other types if specified. @@ -90,7 +90,7 @@ export namespace pyth_lazer { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: pyth_lazer.PublisherUpdatePayload, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: pyth_lazer_transaction.PublisherUpdatePayload, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this PublisherUpdatePayload to JSON. @@ -110,10 +110,10 @@ export namespace pyth_lazer { interface IPublisherUpdate { /** PublisherUpdate priceUpdateV1 */ - priceUpdateV1?: (pyth_lazer.IPriceUpdateV1|null); + priceUpdateV1?: (pyth_lazer_transaction.IPriceUpdateV1|null); /** PublisherUpdate fundingRateUpdateV1 */ - fundingRateUpdateV1?: (pyth_lazer.IFundingRateUpdateV1|null); + fundingRateUpdateV1?: (pyth_lazer_transaction.IFundingRateUpdateV1|null); } /** Represents a PublisherUpdate. */ @@ -123,13 +123,13 @@ export namespace pyth_lazer { * Constructs a new PublisherUpdate. * @param [properties] Properties to set */ - constructor(properties?: pyth_lazer.IPublisherUpdate); + constructor(properties?: pyth_lazer_transaction.IPublisherUpdate); /** PublisherUpdate priceUpdateV1. */ - public priceUpdateV1?: (pyth_lazer.IPriceUpdateV1|null); + public priceUpdateV1?: (pyth_lazer_transaction.IPriceUpdateV1|null); /** PublisherUpdate fundingRateUpdateV1. */ - public fundingRateUpdateV1?: (pyth_lazer.IFundingRateUpdateV1|null); + public fundingRateUpdateV1?: (pyth_lazer_transaction.IFundingRateUpdateV1|null); /** PublisherUpdate update. */ public update?: ("priceUpdateV1"|"fundingRateUpdateV1"); @@ -139,23 +139,23 @@ export namespace pyth_lazer { * @param [properties] Properties to set * @returns PublisherUpdate instance */ - public static create(properties?: pyth_lazer.IPublisherUpdate): pyth_lazer.PublisherUpdate; + public static create(properties?: pyth_lazer_transaction.IPublisherUpdate): pyth_lazer_transaction.PublisherUpdate; /** - * Encodes the specified PublisherUpdate message. Does not implicitly {@link pyth_lazer.PublisherUpdate.verify|verify} messages. + * Encodes the specified PublisherUpdate message. Does not implicitly {@link pyth_lazer_transaction.PublisherUpdate.verify|verify} messages. * @param message PublisherUpdate message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: pyth_lazer.IPublisherUpdate, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: pyth_lazer_transaction.IPublisherUpdate, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PublisherUpdate message, length delimited. Does not implicitly {@link pyth_lazer.PublisherUpdate.verify|verify} messages. + * Encodes the specified PublisherUpdate message, length delimited. Does not implicitly {@link pyth_lazer_transaction.PublisherUpdate.verify|verify} messages. * @param message PublisherUpdate message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: pyth_lazer.IPublisherUpdate, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: pyth_lazer_transaction.IPublisherUpdate, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PublisherUpdate message from the specified reader or buffer. @@ -165,7 +165,7 @@ export namespace pyth_lazer { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer.PublisherUpdate; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer_transaction.PublisherUpdate; /** * Decodes a PublisherUpdate message from the specified reader or buffer, length delimited. @@ -174,7 +174,7 @@ export namespace pyth_lazer { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer.PublisherUpdate; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer_transaction.PublisherUpdate; /** * Verifies a PublisherUpdate message. @@ -188,7 +188,7 @@ export namespace pyth_lazer { * @param object Plain object * @returns PublisherUpdate */ - public static fromObject(object: { [k: string]: any }): pyth_lazer.PublisherUpdate; + public static fromObject(object: { [k: string]: any }): pyth_lazer_transaction.PublisherUpdate; /** * Creates a plain object from a PublisherUpdate message. Also converts values to other types if specified. @@ -196,7 +196,7 @@ export namespace pyth_lazer { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: pyth_lazer.PublisherUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: pyth_lazer_transaction.PublisherUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this PublisherUpdate to JSON. @@ -241,7 +241,7 @@ export namespace pyth_lazer { * Constructs a new PriceUpdateV1. * @param [properties] Properties to set */ - constructor(properties?: pyth_lazer.IPriceUpdateV1); + constructor(properties?: pyth_lazer_transaction.IPriceUpdateV1); /** PriceUpdateV1 priceFeedId. */ public priceFeedId: number; @@ -266,23 +266,23 @@ export namespace pyth_lazer { * @param [properties] Properties to set * @returns PriceUpdateV1 instance */ - public static create(properties?: pyth_lazer.IPriceUpdateV1): pyth_lazer.PriceUpdateV1; + public static create(properties?: pyth_lazer_transaction.IPriceUpdateV1): pyth_lazer_transaction.PriceUpdateV1; /** - * Encodes the specified PriceUpdateV1 message. Does not implicitly {@link pyth_lazer.PriceUpdateV1.verify|verify} messages. + * Encodes the specified PriceUpdateV1 message. Does not implicitly {@link pyth_lazer_transaction.PriceUpdateV1.verify|verify} messages. * @param message PriceUpdateV1 message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: pyth_lazer.IPriceUpdateV1, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: pyth_lazer_transaction.IPriceUpdateV1, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PriceUpdateV1 message, length delimited. Does not implicitly {@link pyth_lazer.PriceUpdateV1.verify|verify} messages. + * Encodes the specified PriceUpdateV1 message, length delimited. Does not implicitly {@link pyth_lazer_transaction.PriceUpdateV1.verify|verify} messages. * @param message PriceUpdateV1 message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: pyth_lazer.IPriceUpdateV1, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: pyth_lazer_transaction.IPriceUpdateV1, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PriceUpdateV1 message from the specified reader or buffer. @@ -292,7 +292,7 @@ export namespace pyth_lazer { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer.PriceUpdateV1; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer_transaction.PriceUpdateV1; /** * Decodes a PriceUpdateV1 message from the specified reader or buffer, length delimited. @@ -301,7 +301,7 @@ export namespace pyth_lazer { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer.PriceUpdateV1; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer_transaction.PriceUpdateV1; /** * Verifies a PriceUpdateV1 message. @@ -315,7 +315,7 @@ export namespace pyth_lazer { * @param object Plain object * @returns PriceUpdateV1 */ - public static fromObject(object: { [k: string]: any }): pyth_lazer.PriceUpdateV1; + public static fromObject(object: { [k: string]: any }): pyth_lazer_transaction.PriceUpdateV1; /** * Creates a plain object from a PriceUpdateV1 message. Also converts values to other types if specified. @@ -323,7 +323,7 @@ export namespace pyth_lazer { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: pyth_lazer.PriceUpdateV1, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: pyth_lazer_transaction.PriceUpdateV1, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this PriceUpdateV1 to JSON. @@ -365,7 +365,7 @@ export namespace pyth_lazer { * Constructs a new FundingRateUpdateV1. * @param [properties] Properties to set */ - constructor(properties?: pyth_lazer.IFundingRateUpdateV1); + constructor(properties?: pyth_lazer_transaction.IFundingRateUpdateV1); /** FundingRateUpdateV1 priceFeedId. */ public priceFeedId: number; @@ -387,23 +387,23 @@ export namespace pyth_lazer { * @param [properties] Properties to set * @returns FundingRateUpdateV1 instance */ - public static create(properties?: pyth_lazer.IFundingRateUpdateV1): pyth_lazer.FundingRateUpdateV1; + public static create(properties?: pyth_lazer_transaction.IFundingRateUpdateV1): pyth_lazer_transaction.FundingRateUpdateV1; /** - * Encodes the specified FundingRateUpdateV1 message. Does not implicitly {@link pyth_lazer.FundingRateUpdateV1.verify|verify} messages. + * Encodes the specified FundingRateUpdateV1 message. Does not implicitly {@link pyth_lazer_transaction.FundingRateUpdateV1.verify|verify} messages. * @param message FundingRateUpdateV1 message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: pyth_lazer.IFundingRateUpdateV1, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: pyth_lazer_transaction.IFundingRateUpdateV1, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FundingRateUpdateV1 message, length delimited. Does not implicitly {@link pyth_lazer.FundingRateUpdateV1.verify|verify} messages. + * Encodes the specified FundingRateUpdateV1 message, length delimited. Does not implicitly {@link pyth_lazer_transaction.FundingRateUpdateV1.verify|verify} messages. * @param message FundingRateUpdateV1 message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: pyth_lazer.IFundingRateUpdateV1, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: pyth_lazer_transaction.IFundingRateUpdateV1, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a FundingRateUpdateV1 message from the specified reader or buffer. @@ -413,7 +413,7 @@ export namespace pyth_lazer { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer.FundingRateUpdateV1; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer_transaction.FundingRateUpdateV1; /** * Decodes a FundingRateUpdateV1 message from the specified reader or buffer, length delimited. @@ -422,7 +422,7 @@ export namespace pyth_lazer { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer.FundingRateUpdateV1; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer_transaction.FundingRateUpdateV1; /** * Verifies a FundingRateUpdateV1 message. @@ -436,7 +436,7 @@ export namespace pyth_lazer { * @param object Plain object * @returns FundingRateUpdateV1 */ - public static fromObject(object: { [k: string]: any }): pyth_lazer.FundingRateUpdateV1; + public static fromObject(object: { [k: string]: any }): pyth_lazer_transaction.FundingRateUpdateV1; /** * Creates a plain object from a FundingRateUpdateV1 message. Also converts values to other types if specified. @@ -444,7 +444,7 @@ export namespace pyth_lazer { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: pyth_lazer.FundingRateUpdateV1, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: pyth_lazer_transaction.FundingRateUpdateV1, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this FundingRateUpdateV1 to JSON. @@ -469,7 +469,7 @@ export namespace pyth_lazer { interface ISignedLazerTransaction { /** SignedLazerTransaction signatureType */ - signatureType?: (pyth_lazer.TransactionSignatureType|null); + signatureType?: (pyth_lazer_transaction.TransactionSignatureType|null); /** SignedLazerTransaction signature */ signature?: (Uint8Array|null); @@ -485,10 +485,10 @@ export namespace pyth_lazer { * Constructs a new SignedLazerTransaction. * @param [properties] Properties to set */ - constructor(properties?: pyth_lazer.ISignedLazerTransaction); + constructor(properties?: pyth_lazer_transaction.ISignedLazerTransaction); /** SignedLazerTransaction signatureType. */ - public signatureType: pyth_lazer.TransactionSignatureType; + public signatureType: pyth_lazer_transaction.TransactionSignatureType; /** SignedLazerTransaction signature. */ public signature: Uint8Array; @@ -501,23 +501,23 @@ export namespace pyth_lazer { * @param [properties] Properties to set * @returns SignedLazerTransaction instance */ - public static create(properties?: pyth_lazer.ISignedLazerTransaction): pyth_lazer.SignedLazerTransaction; + public static create(properties?: pyth_lazer_transaction.ISignedLazerTransaction): pyth_lazer_transaction.SignedLazerTransaction; /** - * Encodes the specified SignedLazerTransaction message. Does not implicitly {@link pyth_lazer.SignedLazerTransaction.verify|verify} messages. + * Encodes the specified SignedLazerTransaction message. Does not implicitly {@link pyth_lazer_transaction.SignedLazerTransaction.verify|verify} messages. * @param message SignedLazerTransaction message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: pyth_lazer.ISignedLazerTransaction, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: pyth_lazer_transaction.ISignedLazerTransaction, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SignedLazerTransaction message, length delimited. Does not implicitly {@link pyth_lazer.SignedLazerTransaction.verify|verify} messages. + * Encodes the specified SignedLazerTransaction message, length delimited. Does not implicitly {@link pyth_lazer_transaction.SignedLazerTransaction.verify|verify} messages. * @param message SignedLazerTransaction message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: pyth_lazer.ISignedLazerTransaction, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: pyth_lazer_transaction.ISignedLazerTransaction, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a SignedLazerTransaction message from the specified reader or buffer. @@ -527,7 +527,7 @@ export namespace pyth_lazer { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer.SignedLazerTransaction; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer_transaction.SignedLazerTransaction; /** * Decodes a SignedLazerTransaction message from the specified reader or buffer, length delimited. @@ -536,7 +536,7 @@ export namespace pyth_lazer { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer.SignedLazerTransaction; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer_transaction.SignedLazerTransaction; /** * Verifies a SignedLazerTransaction message. @@ -550,7 +550,7 @@ export namespace pyth_lazer { * @param object Plain object * @returns SignedLazerTransaction */ - public static fromObject(object: { [k: string]: any }): pyth_lazer.SignedLazerTransaction; + public static fromObject(object: { [k: string]: any }): pyth_lazer_transaction.SignedLazerTransaction; /** * Creates a plain object from a SignedLazerTransaction message. Also converts values to other types if specified. @@ -558,7 +558,7 @@ export namespace pyth_lazer { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: pyth_lazer.SignedLazerTransaction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: pyth_lazer_transaction.SignedLazerTransaction, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this SignedLazerTransaction to JSON. @@ -578,7 +578,7 @@ export namespace pyth_lazer { interface ILazerTransaction { /** LazerTransaction publisherUpdates */ - publisherUpdates?: (pyth_lazer.IPublisherUpdatePayload|null); + publisherUpdates?: (pyth_lazer_transaction.IPublisherUpdatePayload|null); } /** Represents a LazerTransaction. */ @@ -588,10 +588,10 @@ export namespace pyth_lazer { * Constructs a new LazerTransaction. * @param [properties] Properties to set */ - constructor(properties?: pyth_lazer.ILazerTransaction); + constructor(properties?: pyth_lazer_transaction.ILazerTransaction); /** LazerTransaction publisherUpdates. */ - public publisherUpdates?: (pyth_lazer.IPublisherUpdatePayload|null); + public publisherUpdates?: (pyth_lazer_transaction.IPublisherUpdatePayload|null); /** LazerTransaction transaction. */ public transaction?: "publisherUpdates"; @@ -601,23 +601,23 @@ export namespace pyth_lazer { * @param [properties] Properties to set * @returns LazerTransaction instance */ - public static create(properties?: pyth_lazer.ILazerTransaction): pyth_lazer.LazerTransaction; + public static create(properties?: pyth_lazer_transaction.ILazerTransaction): pyth_lazer_transaction.LazerTransaction; /** - * Encodes the specified LazerTransaction message. Does not implicitly {@link pyth_lazer.LazerTransaction.verify|verify} messages. + * Encodes the specified LazerTransaction message. Does not implicitly {@link pyth_lazer_transaction.LazerTransaction.verify|verify} messages. * @param message LazerTransaction message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: pyth_lazer.ILazerTransaction, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: pyth_lazer_transaction.ILazerTransaction, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LazerTransaction message, length delimited. Does not implicitly {@link pyth_lazer.LazerTransaction.verify|verify} messages. + * Encodes the specified LazerTransaction message, length delimited. Does not implicitly {@link pyth_lazer_transaction.LazerTransaction.verify|verify} messages. * @param message LazerTransaction message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: pyth_lazer.ILazerTransaction, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: pyth_lazer_transaction.ILazerTransaction, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a LazerTransaction message from the specified reader or buffer. @@ -627,7 +627,7 @@ export namespace pyth_lazer { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer.LazerTransaction; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer_transaction.LazerTransaction; /** * Decodes a LazerTransaction message from the specified reader or buffer, length delimited. @@ -636,7 +636,7 @@ export namespace pyth_lazer { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer.LazerTransaction; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer_transaction.LazerTransaction; /** * Verifies a LazerTransaction message. @@ -650,7 +650,7 @@ export namespace pyth_lazer { * @param object Plain object * @returns LazerTransaction */ - public static fromObject(object: { [k: string]: any }): pyth_lazer.LazerTransaction; + public static fromObject(object: { [k: string]: any }): pyth_lazer_transaction.LazerTransaction; /** * Creates a plain object from a LazerTransaction message. Also converts values to other types if specified. @@ -658,7 +658,7 @@ export namespace pyth_lazer { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: pyth_lazer.LazerTransaction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: pyth_lazer_transaction.LazerTransaction, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this LazerTransaction to JSON. diff --git a/lazer/sdk/js/src/generated/proto.js b/lazer/sdk/js/src/generated/proto.js index f676e68a76..bdc1b44d87 100644 --- a/lazer/sdk/js/src/generated/proto.js +++ b/lazer/sdk/js/src/generated/proto.js @@ -7,32 +7,32 @@ const $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf. // Exported root namespace const $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {}); -export const pyth_lazer = $root.pyth_lazer = (() => { +export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { /** - * Namespace pyth_lazer. - * @exports pyth_lazer + * Namespace pyth_lazer_transaction. + * @exports pyth_lazer_transaction * @namespace */ - const pyth_lazer = {}; + const pyth_lazer_transaction = {}; - pyth_lazer.PublisherUpdatePayload = (function() { + pyth_lazer_transaction.PublisherUpdatePayload = (function() { /** * Properties of a PublisherUpdatePayload. - * @memberof pyth_lazer + * @memberof pyth_lazer_transaction * @interface IPublisherUpdatePayload - * @property {Array.|null} [updates] PublisherUpdatePayload updates + * @property {Array.|null} [updates] PublisherUpdatePayload updates * @property {number|Long|null} [batchTimestampUs] PublisherUpdatePayload batchTimestampUs */ /** * Constructs a new PublisherUpdatePayload. - * @memberof pyth_lazer + * @memberof pyth_lazer_transaction * @classdesc Represents a PublisherUpdatePayload. * @implements IPublisherUpdatePayload * @constructor - * @param {pyth_lazer.IPublisherUpdatePayload=} [properties] Properties to set + * @param {pyth_lazer_transaction.IPublisherUpdatePayload=} [properties] Properties to set */ function PublisherUpdatePayload(properties) { this.updates = []; @@ -44,8 +44,8 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * PublisherUpdatePayload updates. - * @member {Array.} updates - * @memberof pyth_lazer.PublisherUpdatePayload + * @member {Array.} updates + * @memberof pyth_lazer_transaction.PublisherUpdatePayload * @instance */ PublisherUpdatePayload.prototype.updates = $util.emptyArray; @@ -53,7 +53,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * PublisherUpdatePayload batchTimestampUs. * @member {number|Long} batchTimestampUs - * @memberof pyth_lazer.PublisherUpdatePayload + * @memberof pyth_lazer_transaction.PublisherUpdatePayload * @instance */ PublisherUpdatePayload.prototype.batchTimestampUs = $util.Long ? $util.Long.fromBits(0,0,true) : 0; @@ -61,21 +61,21 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Creates a new PublisherUpdatePayload instance using the specified properties. * @function create - * @memberof pyth_lazer.PublisherUpdatePayload + * @memberof pyth_lazer_transaction.PublisherUpdatePayload * @static - * @param {pyth_lazer.IPublisherUpdatePayload=} [properties] Properties to set - * @returns {pyth_lazer.PublisherUpdatePayload} PublisherUpdatePayload instance + * @param {pyth_lazer_transaction.IPublisherUpdatePayload=} [properties] Properties to set + * @returns {pyth_lazer_transaction.PublisherUpdatePayload} PublisherUpdatePayload instance */ PublisherUpdatePayload.create = function create(properties) { return new PublisherUpdatePayload(properties); }; /** - * Encodes the specified PublisherUpdatePayload message. Does not implicitly {@link pyth_lazer.PublisherUpdatePayload.verify|verify} messages. + * Encodes the specified PublisherUpdatePayload message. Does not implicitly {@link pyth_lazer_transaction.PublisherUpdatePayload.verify|verify} messages. * @function encode - * @memberof pyth_lazer.PublisherUpdatePayload + * @memberof pyth_lazer_transaction.PublisherUpdatePayload * @static - * @param {pyth_lazer.IPublisherUpdatePayload} message PublisherUpdatePayload message or plain object to encode + * @param {pyth_lazer_transaction.IPublisherUpdatePayload} message PublisherUpdatePayload message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -84,18 +84,18 @@ export const pyth_lazer = $root.pyth_lazer = (() => { writer = $Writer.create(); if (message.updates != null && message.updates.length) for (let i = 0; i < message.updates.length; ++i) - $root.pyth_lazer.PublisherUpdate.encode(message.updates[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.pyth_lazer_transaction.PublisherUpdate.encode(message.updates[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.batchTimestampUs != null && Object.hasOwnProperty.call(message, "batchTimestampUs")) writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.batchTimestampUs); return writer; }; /** - * Encodes the specified PublisherUpdatePayload message, length delimited. Does not implicitly {@link pyth_lazer.PublisherUpdatePayload.verify|verify} messages. + * Encodes the specified PublisherUpdatePayload message, length delimited. Does not implicitly {@link pyth_lazer_transaction.PublisherUpdatePayload.verify|verify} messages. * @function encodeDelimited - * @memberof pyth_lazer.PublisherUpdatePayload + * @memberof pyth_lazer_transaction.PublisherUpdatePayload * @static - * @param {pyth_lazer.IPublisherUpdatePayload} message PublisherUpdatePayload message or plain object to encode + * @param {pyth_lazer_transaction.IPublisherUpdatePayload} message PublisherUpdatePayload message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -106,25 +106,25 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Decodes a PublisherUpdatePayload message from the specified reader or buffer. * @function decode - * @memberof pyth_lazer.PublisherUpdatePayload + * @memberof pyth_lazer_transaction.PublisherUpdatePayload * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {pyth_lazer.PublisherUpdatePayload} PublisherUpdatePayload + * @returns {pyth_lazer_transaction.PublisherUpdatePayload} PublisherUpdatePayload * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PublisherUpdatePayload.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer.PublisherUpdatePayload(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer_transaction.PublisherUpdatePayload(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { if (!(message.updates && message.updates.length)) message.updates = []; - message.updates.push($root.pyth_lazer.PublisherUpdate.decode(reader, reader.uint32())); + message.updates.push($root.pyth_lazer_transaction.PublisherUpdate.decode(reader, reader.uint32())); break; } case 2: { @@ -142,10 +142,10 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Decodes a PublisherUpdatePayload message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof pyth_lazer.PublisherUpdatePayload + * @memberof pyth_lazer_transaction.PublisherUpdatePayload * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {pyth_lazer.PublisherUpdatePayload} PublisherUpdatePayload + * @returns {pyth_lazer_transaction.PublisherUpdatePayload} PublisherUpdatePayload * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -158,7 +158,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Verifies a PublisherUpdatePayload message. * @function verify - * @memberof pyth_lazer.PublisherUpdatePayload + * @memberof pyth_lazer_transaction.PublisherUpdatePayload * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -170,7 +170,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { if (!Array.isArray(message.updates)) return "updates: array expected"; for (let i = 0; i < message.updates.length; ++i) { - let error = $root.pyth_lazer.PublisherUpdate.verify(message.updates[i]); + let error = $root.pyth_lazer_transaction.PublisherUpdate.verify(message.updates[i]); if (error) return "updates." + error; } @@ -184,23 +184,23 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Creates a PublisherUpdatePayload message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof pyth_lazer.PublisherUpdatePayload + * @memberof pyth_lazer_transaction.PublisherUpdatePayload * @static * @param {Object.} object Plain object - * @returns {pyth_lazer.PublisherUpdatePayload} PublisherUpdatePayload + * @returns {pyth_lazer_transaction.PublisherUpdatePayload} PublisherUpdatePayload */ PublisherUpdatePayload.fromObject = function fromObject(object) { - if (object instanceof $root.pyth_lazer.PublisherUpdatePayload) + if (object instanceof $root.pyth_lazer_transaction.PublisherUpdatePayload) return object; - let message = new $root.pyth_lazer.PublisherUpdatePayload(); + let message = new $root.pyth_lazer_transaction.PublisherUpdatePayload(); if (object.updates) { if (!Array.isArray(object.updates)) - throw TypeError(".pyth_lazer.PublisherUpdatePayload.updates: array expected"); + throw TypeError(".pyth_lazer_transaction.PublisherUpdatePayload.updates: array expected"); message.updates = []; for (let i = 0; i < object.updates.length; ++i) { if (typeof object.updates[i] !== "object") - throw TypeError(".pyth_lazer.PublisherUpdatePayload.updates: object expected"); - message.updates[i] = $root.pyth_lazer.PublisherUpdate.fromObject(object.updates[i]); + throw TypeError(".pyth_lazer_transaction.PublisherUpdatePayload.updates: object expected"); + message.updates[i] = $root.pyth_lazer_transaction.PublisherUpdate.fromObject(object.updates[i]); } } if (object.batchTimestampUs != null) @@ -218,9 +218,9 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Creates a plain object from a PublisherUpdatePayload message. Also converts values to other types if specified. * @function toObject - * @memberof pyth_lazer.PublisherUpdatePayload + * @memberof pyth_lazer_transaction.PublisherUpdatePayload * @static - * @param {pyth_lazer.PublisherUpdatePayload} message PublisherUpdatePayload + * @param {pyth_lazer_transaction.PublisherUpdatePayload} message PublisherUpdatePayload * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -239,7 +239,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { if (message.updates && message.updates.length) { object.updates = []; for (let j = 0; j < message.updates.length; ++j) - object.updates[j] = $root.pyth_lazer.PublisherUpdate.toObject(message.updates[j], options); + object.updates[j] = $root.pyth_lazer_transaction.PublisherUpdate.toObject(message.updates[j], options); } if (message.batchTimestampUs != null && message.hasOwnProperty("batchTimestampUs")) if (typeof message.batchTimestampUs === "number") @@ -252,7 +252,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Converts this PublisherUpdatePayload to JSON. * @function toJSON - * @memberof pyth_lazer.PublisherUpdatePayload + * @memberof pyth_lazer_transaction.PublisherUpdatePayload * @instance * @returns {Object.} JSON object */ @@ -263,7 +263,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Gets the default type url for PublisherUpdatePayload * @function getTypeUrl - * @memberof pyth_lazer.PublisherUpdatePayload + * @memberof pyth_lazer_transaction.PublisherUpdatePayload * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url @@ -272,29 +272,29 @@ export const pyth_lazer = $root.pyth_lazer = (() => { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/pyth_lazer.PublisherUpdatePayload"; + return typeUrlPrefix + "/pyth_lazer_transaction.PublisherUpdatePayload"; }; return PublisherUpdatePayload; })(); - pyth_lazer.PublisherUpdate = (function() { + pyth_lazer_transaction.PublisherUpdate = (function() { /** * Properties of a PublisherUpdate. - * @memberof pyth_lazer + * @memberof pyth_lazer_transaction * @interface IPublisherUpdate - * @property {pyth_lazer.IPriceUpdateV1|null} [priceUpdateV1] PublisherUpdate priceUpdateV1 - * @property {pyth_lazer.IFundingRateUpdateV1|null} [fundingRateUpdateV1] PublisherUpdate fundingRateUpdateV1 + * @property {pyth_lazer_transaction.IPriceUpdateV1|null} [priceUpdateV1] PublisherUpdate priceUpdateV1 + * @property {pyth_lazer_transaction.IFundingRateUpdateV1|null} [fundingRateUpdateV1] PublisherUpdate fundingRateUpdateV1 */ /** * Constructs a new PublisherUpdate. - * @memberof pyth_lazer + * @memberof pyth_lazer_transaction * @classdesc Represents a PublisherUpdate. * @implements IPublisherUpdate * @constructor - * @param {pyth_lazer.IPublisherUpdate=} [properties] Properties to set + * @param {pyth_lazer_transaction.IPublisherUpdate=} [properties] Properties to set */ function PublisherUpdate(properties) { if (properties) @@ -305,16 +305,16 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * PublisherUpdate priceUpdateV1. - * @member {pyth_lazer.IPriceUpdateV1|null|undefined} priceUpdateV1 - * @memberof pyth_lazer.PublisherUpdate + * @member {pyth_lazer_transaction.IPriceUpdateV1|null|undefined} priceUpdateV1 + * @memberof pyth_lazer_transaction.PublisherUpdate * @instance */ PublisherUpdate.prototype.priceUpdateV1 = null; /** * PublisherUpdate fundingRateUpdateV1. - * @member {pyth_lazer.IFundingRateUpdateV1|null|undefined} fundingRateUpdateV1 - * @memberof pyth_lazer.PublisherUpdate + * @member {pyth_lazer_transaction.IFundingRateUpdateV1|null|undefined} fundingRateUpdateV1 + * @memberof pyth_lazer_transaction.PublisherUpdate * @instance */ PublisherUpdate.prototype.fundingRateUpdateV1 = null; @@ -325,7 +325,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * PublisherUpdate update. * @member {"priceUpdateV1"|"fundingRateUpdateV1"|undefined} update - * @memberof pyth_lazer.PublisherUpdate + * @memberof pyth_lazer_transaction.PublisherUpdate * @instance */ Object.defineProperty(PublisherUpdate.prototype, "update", { @@ -336,21 +336,21 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Creates a new PublisherUpdate instance using the specified properties. * @function create - * @memberof pyth_lazer.PublisherUpdate + * @memberof pyth_lazer_transaction.PublisherUpdate * @static - * @param {pyth_lazer.IPublisherUpdate=} [properties] Properties to set - * @returns {pyth_lazer.PublisherUpdate} PublisherUpdate instance + * @param {pyth_lazer_transaction.IPublisherUpdate=} [properties] Properties to set + * @returns {pyth_lazer_transaction.PublisherUpdate} PublisherUpdate instance */ PublisherUpdate.create = function create(properties) { return new PublisherUpdate(properties); }; /** - * Encodes the specified PublisherUpdate message. Does not implicitly {@link pyth_lazer.PublisherUpdate.verify|verify} messages. + * Encodes the specified PublisherUpdate message. Does not implicitly {@link pyth_lazer_transaction.PublisherUpdate.verify|verify} messages. * @function encode - * @memberof pyth_lazer.PublisherUpdate + * @memberof pyth_lazer_transaction.PublisherUpdate * @static - * @param {pyth_lazer.IPublisherUpdate} message PublisherUpdate message or plain object to encode + * @param {pyth_lazer_transaction.IPublisherUpdate} message PublisherUpdate message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -358,18 +358,18 @@ export const pyth_lazer = $root.pyth_lazer = (() => { if (!writer) writer = $Writer.create(); if (message.priceUpdateV1 != null && Object.hasOwnProperty.call(message, "priceUpdateV1")) - $root.pyth_lazer.PriceUpdateV1.encode(message.priceUpdateV1, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.pyth_lazer_transaction.PriceUpdateV1.encode(message.priceUpdateV1, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.fundingRateUpdateV1 != null && Object.hasOwnProperty.call(message, "fundingRateUpdateV1")) - $root.pyth_lazer.FundingRateUpdateV1.encode(message.fundingRateUpdateV1, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.pyth_lazer_transaction.FundingRateUpdateV1.encode(message.fundingRateUpdateV1, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified PublisherUpdate message, length delimited. Does not implicitly {@link pyth_lazer.PublisherUpdate.verify|verify} messages. + * Encodes the specified PublisherUpdate message, length delimited. Does not implicitly {@link pyth_lazer_transaction.PublisherUpdate.verify|verify} messages. * @function encodeDelimited - * @memberof pyth_lazer.PublisherUpdate + * @memberof pyth_lazer_transaction.PublisherUpdate * @static - * @param {pyth_lazer.IPublisherUpdate} message PublisherUpdate message or plain object to encode + * @param {pyth_lazer_transaction.IPublisherUpdate} message PublisherUpdate message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -380,27 +380,27 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Decodes a PublisherUpdate message from the specified reader or buffer. * @function decode - * @memberof pyth_lazer.PublisherUpdate + * @memberof pyth_lazer_transaction.PublisherUpdate * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {pyth_lazer.PublisherUpdate} PublisherUpdate + * @returns {pyth_lazer_transaction.PublisherUpdate} PublisherUpdate * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PublisherUpdate.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer.PublisherUpdate(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer_transaction.PublisherUpdate(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 3: { - message.priceUpdateV1 = $root.pyth_lazer.PriceUpdateV1.decode(reader, reader.uint32()); + message.priceUpdateV1 = $root.pyth_lazer_transaction.PriceUpdateV1.decode(reader, reader.uint32()); break; } case 4: { - message.fundingRateUpdateV1 = $root.pyth_lazer.FundingRateUpdateV1.decode(reader, reader.uint32()); + message.fundingRateUpdateV1 = $root.pyth_lazer_transaction.FundingRateUpdateV1.decode(reader, reader.uint32()); break; } default: @@ -414,10 +414,10 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Decodes a PublisherUpdate message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof pyth_lazer.PublisherUpdate + * @memberof pyth_lazer_transaction.PublisherUpdate * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {pyth_lazer.PublisherUpdate} PublisherUpdate + * @returns {pyth_lazer_transaction.PublisherUpdate} PublisherUpdate * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -430,7 +430,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Verifies a PublisherUpdate message. * @function verify - * @memberof pyth_lazer.PublisherUpdate + * @memberof pyth_lazer_transaction.PublisherUpdate * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -442,7 +442,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { if (message.priceUpdateV1 != null && message.hasOwnProperty("priceUpdateV1")) { properties.update = 1; { - let error = $root.pyth_lazer.PriceUpdateV1.verify(message.priceUpdateV1); + let error = $root.pyth_lazer_transaction.PriceUpdateV1.verify(message.priceUpdateV1); if (error) return "priceUpdateV1." + error; } @@ -452,7 +452,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { return "update: multiple values"; properties.update = 1; { - let error = $root.pyth_lazer.FundingRateUpdateV1.verify(message.fundingRateUpdateV1); + let error = $root.pyth_lazer_transaction.FundingRateUpdateV1.verify(message.fundingRateUpdateV1); if (error) return "fundingRateUpdateV1." + error; } @@ -463,24 +463,24 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Creates a PublisherUpdate message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof pyth_lazer.PublisherUpdate + * @memberof pyth_lazer_transaction.PublisherUpdate * @static * @param {Object.} object Plain object - * @returns {pyth_lazer.PublisherUpdate} PublisherUpdate + * @returns {pyth_lazer_transaction.PublisherUpdate} PublisherUpdate */ PublisherUpdate.fromObject = function fromObject(object) { - if (object instanceof $root.pyth_lazer.PublisherUpdate) + if (object instanceof $root.pyth_lazer_transaction.PublisherUpdate) return object; - let message = new $root.pyth_lazer.PublisherUpdate(); + let message = new $root.pyth_lazer_transaction.PublisherUpdate(); if (object.priceUpdateV1 != null) { if (typeof object.priceUpdateV1 !== "object") - throw TypeError(".pyth_lazer.PublisherUpdate.priceUpdateV1: object expected"); - message.priceUpdateV1 = $root.pyth_lazer.PriceUpdateV1.fromObject(object.priceUpdateV1); + throw TypeError(".pyth_lazer_transaction.PublisherUpdate.priceUpdateV1: object expected"); + message.priceUpdateV1 = $root.pyth_lazer_transaction.PriceUpdateV1.fromObject(object.priceUpdateV1); } if (object.fundingRateUpdateV1 != null) { if (typeof object.fundingRateUpdateV1 !== "object") - throw TypeError(".pyth_lazer.PublisherUpdate.fundingRateUpdateV1: object expected"); - message.fundingRateUpdateV1 = $root.pyth_lazer.FundingRateUpdateV1.fromObject(object.fundingRateUpdateV1); + throw TypeError(".pyth_lazer_transaction.PublisherUpdate.fundingRateUpdateV1: object expected"); + message.fundingRateUpdateV1 = $root.pyth_lazer_transaction.FundingRateUpdateV1.fromObject(object.fundingRateUpdateV1); } return message; }; @@ -488,9 +488,9 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Creates a plain object from a PublisherUpdate message. Also converts values to other types if specified. * @function toObject - * @memberof pyth_lazer.PublisherUpdate + * @memberof pyth_lazer_transaction.PublisherUpdate * @static - * @param {pyth_lazer.PublisherUpdate} message PublisherUpdate + * @param {pyth_lazer_transaction.PublisherUpdate} message PublisherUpdate * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -499,12 +499,12 @@ export const pyth_lazer = $root.pyth_lazer = (() => { options = {}; let object = {}; if (message.priceUpdateV1 != null && message.hasOwnProperty("priceUpdateV1")) { - object.priceUpdateV1 = $root.pyth_lazer.PriceUpdateV1.toObject(message.priceUpdateV1, options); + object.priceUpdateV1 = $root.pyth_lazer_transaction.PriceUpdateV1.toObject(message.priceUpdateV1, options); if (options.oneofs) object.update = "priceUpdateV1"; } if (message.fundingRateUpdateV1 != null && message.hasOwnProperty("fundingRateUpdateV1")) { - object.fundingRateUpdateV1 = $root.pyth_lazer.FundingRateUpdateV1.toObject(message.fundingRateUpdateV1, options); + object.fundingRateUpdateV1 = $root.pyth_lazer_transaction.FundingRateUpdateV1.toObject(message.fundingRateUpdateV1, options); if (options.oneofs) object.update = "fundingRateUpdateV1"; } @@ -514,7 +514,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Converts this PublisherUpdate to JSON. * @function toJSON - * @memberof pyth_lazer.PublisherUpdate + * @memberof pyth_lazer_transaction.PublisherUpdate * @instance * @returns {Object.} JSON object */ @@ -525,7 +525,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Gets the default type url for PublisherUpdate * @function getTypeUrl - * @memberof pyth_lazer.PublisherUpdate + * @memberof pyth_lazer_transaction.PublisherUpdate * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url @@ -534,17 +534,17 @@ export const pyth_lazer = $root.pyth_lazer = (() => { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/pyth_lazer.PublisherUpdate"; + return typeUrlPrefix + "/pyth_lazer_transaction.PublisherUpdate"; }; return PublisherUpdate; })(); - pyth_lazer.PriceUpdateV1 = (function() { + pyth_lazer_transaction.PriceUpdateV1 = (function() { /** * Properties of a PriceUpdateV1. - * @memberof pyth_lazer + * @memberof pyth_lazer_transaction * @interface IPriceUpdateV1 * @property {number|null} [priceFeedId] PriceUpdateV1 priceFeedId * @property {number|Long|null} [sourceTimestampUs] PriceUpdateV1 sourceTimestampUs @@ -556,11 +556,11 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Constructs a new PriceUpdateV1. - * @memberof pyth_lazer + * @memberof pyth_lazer_transaction * @classdesc Represents a PriceUpdateV1. * @implements IPriceUpdateV1 * @constructor - * @param {pyth_lazer.IPriceUpdateV1=} [properties] Properties to set + * @param {pyth_lazer_transaction.IPriceUpdateV1=} [properties] Properties to set */ function PriceUpdateV1(properties) { if (properties) @@ -572,7 +572,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * PriceUpdateV1 priceFeedId. * @member {number} priceFeedId - * @memberof pyth_lazer.PriceUpdateV1 + * @memberof pyth_lazer_transaction.PriceUpdateV1 * @instance */ PriceUpdateV1.prototype.priceFeedId = 0; @@ -580,7 +580,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * PriceUpdateV1 sourceTimestampUs. * @member {number|Long} sourceTimestampUs - * @memberof pyth_lazer.PriceUpdateV1 + * @memberof pyth_lazer_transaction.PriceUpdateV1 * @instance */ PriceUpdateV1.prototype.sourceTimestampUs = $util.Long ? $util.Long.fromBits(0,0,true) : 0; @@ -588,7 +588,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * PriceUpdateV1 publisherTimestampUs. * @member {number|Long} publisherTimestampUs - * @memberof pyth_lazer.PriceUpdateV1 + * @memberof pyth_lazer_transaction.PriceUpdateV1 * @instance */ PriceUpdateV1.prototype.publisherTimestampUs = $util.Long ? $util.Long.fromBits(0,0,true) : 0; @@ -596,7 +596,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * PriceUpdateV1 price. * @member {number|Long|null|undefined} price - * @memberof pyth_lazer.PriceUpdateV1 + * @memberof pyth_lazer_transaction.PriceUpdateV1 * @instance */ PriceUpdateV1.prototype.price = null; @@ -604,7 +604,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * PriceUpdateV1 bestBidPrice. * @member {number|Long|null|undefined} bestBidPrice - * @memberof pyth_lazer.PriceUpdateV1 + * @memberof pyth_lazer_transaction.PriceUpdateV1 * @instance */ PriceUpdateV1.prototype.bestBidPrice = null; @@ -612,7 +612,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * PriceUpdateV1 bestAskPrice. * @member {number|Long|null|undefined} bestAskPrice - * @memberof pyth_lazer.PriceUpdateV1 + * @memberof pyth_lazer_transaction.PriceUpdateV1 * @instance */ PriceUpdateV1.prototype.bestAskPrice = null; @@ -641,21 +641,21 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Creates a new PriceUpdateV1 instance using the specified properties. * @function create - * @memberof pyth_lazer.PriceUpdateV1 + * @memberof pyth_lazer_transaction.PriceUpdateV1 * @static - * @param {pyth_lazer.IPriceUpdateV1=} [properties] Properties to set - * @returns {pyth_lazer.PriceUpdateV1} PriceUpdateV1 instance + * @param {pyth_lazer_transaction.IPriceUpdateV1=} [properties] Properties to set + * @returns {pyth_lazer_transaction.PriceUpdateV1} PriceUpdateV1 instance */ PriceUpdateV1.create = function create(properties) { return new PriceUpdateV1(properties); }; /** - * Encodes the specified PriceUpdateV1 message. Does not implicitly {@link pyth_lazer.PriceUpdateV1.verify|verify} messages. + * Encodes the specified PriceUpdateV1 message. Does not implicitly {@link pyth_lazer_transaction.PriceUpdateV1.verify|verify} messages. * @function encode - * @memberof pyth_lazer.PriceUpdateV1 + * @memberof pyth_lazer_transaction.PriceUpdateV1 * @static - * @param {pyth_lazer.IPriceUpdateV1} message PriceUpdateV1 message or plain object to encode + * @param {pyth_lazer_transaction.IPriceUpdateV1} message PriceUpdateV1 message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -678,11 +678,11 @@ export const pyth_lazer = $root.pyth_lazer = (() => { }; /** - * Encodes the specified PriceUpdateV1 message, length delimited. Does not implicitly {@link pyth_lazer.PriceUpdateV1.verify|verify} messages. + * Encodes the specified PriceUpdateV1 message, length delimited. Does not implicitly {@link pyth_lazer_transaction.PriceUpdateV1.verify|verify} messages. * @function encodeDelimited - * @memberof pyth_lazer.PriceUpdateV1 + * @memberof pyth_lazer_transaction.PriceUpdateV1 * @static - * @param {pyth_lazer.IPriceUpdateV1} message PriceUpdateV1 message or plain object to encode + * @param {pyth_lazer_transaction.IPriceUpdateV1} message PriceUpdateV1 message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -693,18 +693,18 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Decodes a PriceUpdateV1 message from the specified reader or buffer. * @function decode - * @memberof pyth_lazer.PriceUpdateV1 + * @memberof pyth_lazer_transaction.PriceUpdateV1 * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {pyth_lazer.PriceUpdateV1} PriceUpdateV1 + * @returns {pyth_lazer_transaction.PriceUpdateV1} PriceUpdateV1 * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PriceUpdateV1.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer.PriceUpdateV1(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer_transaction.PriceUpdateV1(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -743,10 +743,10 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Decodes a PriceUpdateV1 message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof pyth_lazer.PriceUpdateV1 + * @memberof pyth_lazer_transaction.PriceUpdateV1 * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {pyth_lazer.PriceUpdateV1} PriceUpdateV1 + * @returns {pyth_lazer_transaction.PriceUpdateV1} PriceUpdateV1 * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -759,7 +759,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Verifies a PriceUpdateV1 message. * @function verify - * @memberof pyth_lazer.PriceUpdateV1 + * @memberof pyth_lazer_transaction.PriceUpdateV1 * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -798,15 +798,15 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Creates a PriceUpdateV1 message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof pyth_lazer.PriceUpdateV1 + * @memberof pyth_lazer_transaction.PriceUpdateV1 * @static * @param {Object.} object Plain object - * @returns {pyth_lazer.PriceUpdateV1} PriceUpdateV1 + * @returns {pyth_lazer_transaction.PriceUpdateV1} PriceUpdateV1 */ PriceUpdateV1.fromObject = function fromObject(object) { - if (object instanceof $root.pyth_lazer.PriceUpdateV1) + if (object instanceof $root.pyth_lazer_transaction.PriceUpdateV1) return object; - let message = new $root.pyth_lazer.PriceUpdateV1(); + let message = new $root.pyth_lazer_transaction.PriceUpdateV1(); if (object.priceFeedId != null) message.priceFeedId = object.priceFeedId >>> 0; if (object.sourceTimestampUs != null) @@ -860,9 +860,9 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Creates a plain object from a PriceUpdateV1 message. Also converts values to other types if specified. * @function toObject - * @memberof pyth_lazer.PriceUpdateV1 + * @memberof pyth_lazer_transaction.PriceUpdateV1 * @static - * @param {pyth_lazer.PriceUpdateV1} message PriceUpdateV1 + * @param {pyth_lazer_transaction.PriceUpdateV1} message PriceUpdateV1 * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -925,7 +925,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Converts this PriceUpdateV1 to JSON. * @function toJSON - * @memberof pyth_lazer.PriceUpdateV1 + * @memberof pyth_lazer_transaction.PriceUpdateV1 * @instance * @returns {Object.} JSON object */ @@ -936,7 +936,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Gets the default type url for PriceUpdateV1 * @function getTypeUrl - * @memberof pyth_lazer.PriceUpdateV1 + * @memberof pyth_lazer_transaction.PriceUpdateV1 * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url @@ -945,17 +945,17 @@ export const pyth_lazer = $root.pyth_lazer = (() => { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/pyth_lazer.PriceUpdateV1"; + return typeUrlPrefix + "/pyth_lazer_transaction.PriceUpdateV1"; }; return PriceUpdateV1; })(); - pyth_lazer.FundingRateUpdateV1 = (function() { + pyth_lazer_transaction.FundingRateUpdateV1 = (function() { /** * Properties of a FundingRateUpdateV1. - * @memberof pyth_lazer + * @memberof pyth_lazer_transaction * @interface IFundingRateUpdateV1 * @property {number|null} [priceFeedId] FundingRateUpdateV1 priceFeedId * @property {number|Long|null} [sourceTimestampUs] FundingRateUpdateV1 sourceTimestampUs @@ -966,11 +966,11 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Constructs a new FundingRateUpdateV1. - * @memberof pyth_lazer + * @memberof pyth_lazer_transaction * @classdesc Represents a FundingRateUpdateV1. * @implements IFundingRateUpdateV1 * @constructor - * @param {pyth_lazer.IFundingRateUpdateV1=} [properties] Properties to set + * @param {pyth_lazer_transaction.IFundingRateUpdateV1=} [properties] Properties to set */ function FundingRateUpdateV1(properties) { if (properties) @@ -982,7 +982,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * FundingRateUpdateV1 priceFeedId. * @member {number} priceFeedId - * @memberof pyth_lazer.FundingRateUpdateV1 + * @memberof pyth_lazer_transaction.FundingRateUpdateV1 * @instance */ FundingRateUpdateV1.prototype.priceFeedId = 0; @@ -990,7 +990,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * FundingRateUpdateV1 sourceTimestampUs. * @member {number|Long} sourceTimestampUs - * @memberof pyth_lazer.FundingRateUpdateV1 + * @memberof pyth_lazer_transaction.FundingRateUpdateV1 * @instance */ FundingRateUpdateV1.prototype.sourceTimestampUs = $util.Long ? $util.Long.fromBits(0,0,true) : 0; @@ -998,7 +998,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * FundingRateUpdateV1 publisherTimestampUs. * @member {number|Long} publisherTimestampUs - * @memberof pyth_lazer.FundingRateUpdateV1 + * @memberof pyth_lazer_transaction.FundingRateUpdateV1 * @instance */ FundingRateUpdateV1.prototype.publisherTimestampUs = $util.Long ? $util.Long.fromBits(0,0,true) : 0; @@ -1006,7 +1006,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * FundingRateUpdateV1 price. * @member {number|Long|null|undefined} price - * @memberof pyth_lazer.FundingRateUpdateV1 + * @memberof pyth_lazer_transaction.FundingRateUpdateV1 * @instance */ FundingRateUpdateV1.prototype.price = null; @@ -1014,7 +1014,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * FundingRateUpdateV1 rate. * @member {number|Long|null|undefined} rate - * @memberof pyth_lazer.FundingRateUpdateV1 + * @memberof pyth_lazer_transaction.FundingRateUpdateV1 * @instance */ FundingRateUpdateV1.prototype.rate = null; @@ -1037,21 +1037,21 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Creates a new FundingRateUpdateV1 instance using the specified properties. * @function create - * @memberof pyth_lazer.FundingRateUpdateV1 + * @memberof pyth_lazer_transaction.FundingRateUpdateV1 * @static - * @param {pyth_lazer.IFundingRateUpdateV1=} [properties] Properties to set - * @returns {pyth_lazer.FundingRateUpdateV1} FundingRateUpdateV1 instance + * @param {pyth_lazer_transaction.IFundingRateUpdateV1=} [properties] Properties to set + * @returns {pyth_lazer_transaction.FundingRateUpdateV1} FundingRateUpdateV1 instance */ FundingRateUpdateV1.create = function create(properties) { return new FundingRateUpdateV1(properties); }; /** - * Encodes the specified FundingRateUpdateV1 message. Does not implicitly {@link pyth_lazer.FundingRateUpdateV1.verify|verify} messages. + * Encodes the specified FundingRateUpdateV1 message. Does not implicitly {@link pyth_lazer_transaction.FundingRateUpdateV1.verify|verify} messages. * @function encode - * @memberof pyth_lazer.FundingRateUpdateV1 + * @memberof pyth_lazer_transaction.FundingRateUpdateV1 * @static - * @param {pyth_lazer.IFundingRateUpdateV1} message FundingRateUpdateV1 message or plain object to encode + * @param {pyth_lazer_transaction.IFundingRateUpdateV1} message FundingRateUpdateV1 message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -1072,11 +1072,11 @@ export const pyth_lazer = $root.pyth_lazer = (() => { }; /** - * Encodes the specified FundingRateUpdateV1 message, length delimited. Does not implicitly {@link pyth_lazer.FundingRateUpdateV1.verify|verify} messages. + * Encodes the specified FundingRateUpdateV1 message, length delimited. Does not implicitly {@link pyth_lazer_transaction.FundingRateUpdateV1.verify|verify} messages. * @function encodeDelimited - * @memberof pyth_lazer.FundingRateUpdateV1 + * @memberof pyth_lazer_transaction.FundingRateUpdateV1 * @static - * @param {pyth_lazer.IFundingRateUpdateV1} message FundingRateUpdateV1 message or plain object to encode + * @param {pyth_lazer_transaction.IFundingRateUpdateV1} message FundingRateUpdateV1 message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -1087,18 +1087,18 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Decodes a FundingRateUpdateV1 message from the specified reader or buffer. * @function decode - * @memberof pyth_lazer.FundingRateUpdateV1 + * @memberof pyth_lazer_transaction.FundingRateUpdateV1 * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {pyth_lazer.FundingRateUpdateV1} FundingRateUpdateV1 + * @returns {pyth_lazer_transaction.FundingRateUpdateV1} FundingRateUpdateV1 * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FundingRateUpdateV1.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer.FundingRateUpdateV1(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer_transaction.FundingRateUpdateV1(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -1133,10 +1133,10 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Decodes a FundingRateUpdateV1 message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof pyth_lazer.FundingRateUpdateV1 + * @memberof pyth_lazer_transaction.FundingRateUpdateV1 * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {pyth_lazer.FundingRateUpdateV1} FundingRateUpdateV1 + * @returns {pyth_lazer_transaction.FundingRateUpdateV1} FundingRateUpdateV1 * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -1149,7 +1149,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Verifies a FundingRateUpdateV1 message. * @function verify - * @memberof pyth_lazer.FundingRateUpdateV1 + * @memberof pyth_lazer_transaction.FundingRateUpdateV1 * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -1183,15 +1183,15 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Creates a FundingRateUpdateV1 message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof pyth_lazer.FundingRateUpdateV1 + * @memberof pyth_lazer_transaction.FundingRateUpdateV1 * @static * @param {Object.} object Plain object - * @returns {pyth_lazer.FundingRateUpdateV1} FundingRateUpdateV1 + * @returns {pyth_lazer_transaction.FundingRateUpdateV1} FundingRateUpdateV1 */ FundingRateUpdateV1.fromObject = function fromObject(object) { - if (object instanceof $root.pyth_lazer.FundingRateUpdateV1) + if (object instanceof $root.pyth_lazer_transaction.FundingRateUpdateV1) return object; - let message = new $root.pyth_lazer.FundingRateUpdateV1(); + let message = new $root.pyth_lazer_transaction.FundingRateUpdateV1(); if (object.priceFeedId != null) message.priceFeedId = object.priceFeedId >>> 0; if (object.sourceTimestampUs != null) @@ -1236,9 +1236,9 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Creates a plain object from a FundingRateUpdateV1 message. Also converts values to other types if specified. * @function toObject - * @memberof pyth_lazer.FundingRateUpdateV1 + * @memberof pyth_lazer_transaction.FundingRateUpdateV1 * @static - * @param {pyth_lazer.FundingRateUpdateV1} message FundingRateUpdateV1 + * @param {pyth_lazer_transaction.FundingRateUpdateV1} message FundingRateUpdateV1 * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -1293,7 +1293,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Converts this FundingRateUpdateV1 to JSON. * @function toJSON - * @memberof pyth_lazer.FundingRateUpdateV1 + * @memberof pyth_lazer_transaction.FundingRateUpdateV1 * @instance * @returns {Object.} JSON object */ @@ -1304,7 +1304,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Gets the default type url for FundingRateUpdateV1 * @function getTypeUrl - * @memberof pyth_lazer.FundingRateUpdateV1 + * @memberof pyth_lazer_transaction.FundingRateUpdateV1 * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url @@ -1313,7 +1313,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/pyth_lazer.FundingRateUpdateV1"; + return typeUrlPrefix + "/pyth_lazer_transaction.FundingRateUpdateV1"; }; return FundingRateUpdateV1; @@ -1321,34 +1321,34 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * TransactionSignatureType enum. - * @name pyth_lazer.TransactionSignatureType + * @name pyth_lazer_transaction.TransactionSignatureType * @enum {number} * @property {number} ed25519=0 ed25519 value */ - pyth_lazer.TransactionSignatureType = (function() { + pyth_lazer_transaction.TransactionSignatureType = (function() { const valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "ed25519"] = 0; return values; })(); - pyth_lazer.SignedLazerTransaction = (function() { + pyth_lazer_transaction.SignedLazerTransaction = (function() { /** * Properties of a SignedLazerTransaction. - * @memberof pyth_lazer + * @memberof pyth_lazer_transaction * @interface ISignedLazerTransaction - * @property {pyth_lazer.TransactionSignatureType|null} [signatureType] SignedLazerTransaction signatureType + * @property {pyth_lazer_transaction.TransactionSignatureType|null} [signatureType] SignedLazerTransaction signatureType * @property {Uint8Array|null} [signature] SignedLazerTransaction signature * @property {Uint8Array|null} [transaction] SignedLazerTransaction transaction */ /** * Constructs a new SignedLazerTransaction. - * @memberof pyth_lazer + * @memberof pyth_lazer_transaction * @classdesc Represents a SignedLazerTransaction. * @implements ISignedLazerTransaction * @constructor - * @param {pyth_lazer.ISignedLazerTransaction=} [properties] Properties to set + * @param {pyth_lazer_transaction.ISignedLazerTransaction=} [properties] Properties to set */ function SignedLazerTransaction(properties) { if (properties) @@ -1359,8 +1359,8 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * SignedLazerTransaction signatureType. - * @member {pyth_lazer.TransactionSignatureType} signatureType - * @memberof pyth_lazer.SignedLazerTransaction + * @member {pyth_lazer_transaction.TransactionSignatureType} signatureType + * @memberof pyth_lazer_transaction.SignedLazerTransaction * @instance */ SignedLazerTransaction.prototype.signatureType = 0; @@ -1368,7 +1368,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * SignedLazerTransaction signature. * @member {Uint8Array} signature - * @memberof pyth_lazer.SignedLazerTransaction + * @memberof pyth_lazer_transaction.SignedLazerTransaction * @instance */ SignedLazerTransaction.prototype.signature = $util.newBuffer([]); @@ -1376,7 +1376,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * SignedLazerTransaction transaction. * @member {Uint8Array} transaction - * @memberof pyth_lazer.SignedLazerTransaction + * @memberof pyth_lazer_transaction.SignedLazerTransaction * @instance */ SignedLazerTransaction.prototype.transaction = $util.newBuffer([]); @@ -1384,21 +1384,21 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Creates a new SignedLazerTransaction instance using the specified properties. * @function create - * @memberof pyth_lazer.SignedLazerTransaction + * @memberof pyth_lazer_transaction.SignedLazerTransaction * @static - * @param {pyth_lazer.ISignedLazerTransaction=} [properties] Properties to set - * @returns {pyth_lazer.SignedLazerTransaction} SignedLazerTransaction instance + * @param {pyth_lazer_transaction.ISignedLazerTransaction=} [properties] Properties to set + * @returns {pyth_lazer_transaction.SignedLazerTransaction} SignedLazerTransaction instance */ SignedLazerTransaction.create = function create(properties) { return new SignedLazerTransaction(properties); }; /** - * Encodes the specified SignedLazerTransaction message. Does not implicitly {@link pyth_lazer.SignedLazerTransaction.verify|verify} messages. + * Encodes the specified SignedLazerTransaction message. Does not implicitly {@link pyth_lazer_transaction.SignedLazerTransaction.verify|verify} messages. * @function encode - * @memberof pyth_lazer.SignedLazerTransaction + * @memberof pyth_lazer_transaction.SignedLazerTransaction * @static - * @param {pyth_lazer.ISignedLazerTransaction} message SignedLazerTransaction message or plain object to encode + * @param {pyth_lazer_transaction.ISignedLazerTransaction} message SignedLazerTransaction message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -1415,11 +1415,11 @@ export const pyth_lazer = $root.pyth_lazer = (() => { }; /** - * Encodes the specified SignedLazerTransaction message, length delimited. Does not implicitly {@link pyth_lazer.SignedLazerTransaction.verify|verify} messages. + * Encodes the specified SignedLazerTransaction message, length delimited. Does not implicitly {@link pyth_lazer_transaction.SignedLazerTransaction.verify|verify} messages. * @function encodeDelimited - * @memberof pyth_lazer.SignedLazerTransaction + * @memberof pyth_lazer_transaction.SignedLazerTransaction * @static - * @param {pyth_lazer.ISignedLazerTransaction} message SignedLazerTransaction message or plain object to encode + * @param {pyth_lazer_transaction.ISignedLazerTransaction} message SignedLazerTransaction message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -1430,18 +1430,18 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Decodes a SignedLazerTransaction message from the specified reader or buffer. * @function decode - * @memberof pyth_lazer.SignedLazerTransaction + * @memberof pyth_lazer_transaction.SignedLazerTransaction * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {pyth_lazer.SignedLazerTransaction} SignedLazerTransaction + * @returns {pyth_lazer_transaction.SignedLazerTransaction} SignedLazerTransaction * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SignedLazerTransaction.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer.SignedLazerTransaction(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer_transaction.SignedLazerTransaction(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -1468,10 +1468,10 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Decodes a SignedLazerTransaction message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof pyth_lazer.SignedLazerTransaction + * @memberof pyth_lazer_transaction.SignedLazerTransaction * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {pyth_lazer.SignedLazerTransaction} SignedLazerTransaction + * @returns {pyth_lazer_transaction.SignedLazerTransaction} SignedLazerTransaction * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -1484,7 +1484,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Verifies a SignedLazerTransaction message. * @function verify - * @memberof pyth_lazer.SignedLazerTransaction + * @memberof pyth_lazer_transaction.SignedLazerTransaction * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -1511,15 +1511,15 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Creates a SignedLazerTransaction message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof pyth_lazer.SignedLazerTransaction + * @memberof pyth_lazer_transaction.SignedLazerTransaction * @static * @param {Object.} object Plain object - * @returns {pyth_lazer.SignedLazerTransaction} SignedLazerTransaction + * @returns {pyth_lazer_transaction.SignedLazerTransaction} SignedLazerTransaction */ SignedLazerTransaction.fromObject = function fromObject(object) { - if (object instanceof $root.pyth_lazer.SignedLazerTransaction) + if (object instanceof $root.pyth_lazer_transaction.SignedLazerTransaction) return object; - let message = new $root.pyth_lazer.SignedLazerTransaction(); + let message = new $root.pyth_lazer_transaction.SignedLazerTransaction(); switch (object.signatureType) { default: if (typeof object.signatureType === "number") { @@ -1548,9 +1548,9 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Creates a plain object from a SignedLazerTransaction message. Also converts values to other types if specified. * @function toObject - * @memberof pyth_lazer.SignedLazerTransaction + * @memberof pyth_lazer_transaction.SignedLazerTransaction * @static - * @param {pyth_lazer.SignedLazerTransaction} message SignedLazerTransaction + * @param {pyth_lazer_transaction.SignedLazerTransaction} message SignedLazerTransaction * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -1576,7 +1576,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { } } if (message.signatureType != null && message.hasOwnProperty("signatureType")) - object.signatureType = options.enums === String ? $root.pyth_lazer.TransactionSignatureType[message.signatureType] === undefined ? message.signatureType : $root.pyth_lazer.TransactionSignatureType[message.signatureType] : message.signatureType; + object.signatureType = options.enums === String ? $root.pyth_lazer_transaction.TransactionSignatureType[message.signatureType] === undefined ? message.signatureType : $root.pyth_lazer_transaction.TransactionSignatureType[message.signatureType] : message.signatureType; if (message.signature != null && message.hasOwnProperty("signature")) object.signature = options.bytes === String ? $util.base64.encode(message.signature, 0, message.signature.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature) : message.signature; if (message.transaction != null && message.hasOwnProperty("transaction")) @@ -1587,7 +1587,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Converts this SignedLazerTransaction to JSON. * @function toJSON - * @memberof pyth_lazer.SignedLazerTransaction + * @memberof pyth_lazer_transaction.SignedLazerTransaction * @instance * @returns {Object.} JSON object */ @@ -1598,7 +1598,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Gets the default type url for SignedLazerTransaction * @function getTypeUrl - * @memberof pyth_lazer.SignedLazerTransaction + * @memberof pyth_lazer_transaction.SignedLazerTransaction * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url @@ -1607,28 +1607,28 @@ export const pyth_lazer = $root.pyth_lazer = (() => { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/pyth_lazer.SignedLazerTransaction"; + return typeUrlPrefix + "/pyth_lazer_transaction.SignedLazerTransaction"; }; return SignedLazerTransaction; })(); - pyth_lazer.LazerTransaction = (function() { + pyth_lazer_transaction.LazerTransaction = (function() { /** * Properties of a LazerTransaction. - * @memberof pyth_lazer + * @memberof pyth_lazer_transaction * @interface ILazerTransaction - * @property {pyth_lazer.IPublisherUpdatePayload|null} [publisherUpdates] LazerTransaction publisherUpdates + * @property {pyth_lazer_transaction.IPublisherUpdatePayload|null} [publisherUpdates] LazerTransaction publisherUpdates */ /** * Constructs a new LazerTransaction. - * @memberof pyth_lazer + * @memberof pyth_lazer_transaction * @classdesc Represents a LazerTransaction. * @implements ILazerTransaction * @constructor - * @param {pyth_lazer.ILazerTransaction=} [properties] Properties to set + * @param {pyth_lazer_transaction.ILazerTransaction=} [properties] Properties to set */ function LazerTransaction(properties) { if (properties) @@ -1639,8 +1639,8 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * LazerTransaction publisherUpdates. - * @member {pyth_lazer.IPublisherUpdatePayload|null|undefined} publisherUpdates - * @memberof pyth_lazer.LazerTransaction + * @member {pyth_lazer_transaction.IPublisherUpdatePayload|null|undefined} publisherUpdates + * @memberof pyth_lazer_transaction.LazerTransaction * @instance */ LazerTransaction.prototype.publisherUpdates = null; @@ -1651,7 +1651,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * LazerTransaction transaction. * @member {"publisherUpdates"|undefined} transaction - * @memberof pyth_lazer.LazerTransaction + * @memberof pyth_lazer_transaction.LazerTransaction * @instance */ Object.defineProperty(LazerTransaction.prototype, "transaction", { @@ -1662,21 +1662,21 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Creates a new LazerTransaction instance using the specified properties. * @function create - * @memberof pyth_lazer.LazerTransaction + * @memberof pyth_lazer_transaction.LazerTransaction * @static - * @param {pyth_lazer.ILazerTransaction=} [properties] Properties to set - * @returns {pyth_lazer.LazerTransaction} LazerTransaction instance + * @param {pyth_lazer_transaction.ILazerTransaction=} [properties] Properties to set + * @returns {pyth_lazer_transaction.LazerTransaction} LazerTransaction instance */ LazerTransaction.create = function create(properties) { return new LazerTransaction(properties); }; /** - * Encodes the specified LazerTransaction message. Does not implicitly {@link pyth_lazer.LazerTransaction.verify|verify} messages. + * Encodes the specified LazerTransaction message. Does not implicitly {@link pyth_lazer_transaction.LazerTransaction.verify|verify} messages. * @function encode - * @memberof pyth_lazer.LazerTransaction + * @memberof pyth_lazer_transaction.LazerTransaction * @static - * @param {pyth_lazer.ILazerTransaction} message LazerTransaction message or plain object to encode + * @param {pyth_lazer_transaction.ILazerTransaction} message LazerTransaction message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -1684,16 +1684,16 @@ export const pyth_lazer = $root.pyth_lazer = (() => { if (!writer) writer = $Writer.create(); if (message.publisherUpdates != null && Object.hasOwnProperty.call(message, "publisherUpdates")) - $root.pyth_lazer.PublisherUpdatePayload.encode(message.publisherUpdates, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.pyth_lazer_transaction.PublisherUpdatePayload.encode(message.publisherUpdates, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified LazerTransaction message, length delimited. Does not implicitly {@link pyth_lazer.LazerTransaction.verify|verify} messages. + * Encodes the specified LazerTransaction message, length delimited. Does not implicitly {@link pyth_lazer_transaction.LazerTransaction.verify|verify} messages. * @function encodeDelimited - * @memberof pyth_lazer.LazerTransaction + * @memberof pyth_lazer_transaction.LazerTransaction * @static - * @param {pyth_lazer.ILazerTransaction} message LazerTransaction message or plain object to encode + * @param {pyth_lazer_transaction.ILazerTransaction} message LazerTransaction message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -1704,23 +1704,23 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Decodes a LazerTransaction message from the specified reader or buffer. * @function decode - * @memberof pyth_lazer.LazerTransaction + * @memberof pyth_lazer_transaction.LazerTransaction * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {pyth_lazer.LazerTransaction} LazerTransaction + * @returns {pyth_lazer_transaction.LazerTransaction} LazerTransaction * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LazerTransaction.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer.LazerTransaction(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer_transaction.LazerTransaction(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.publisherUpdates = $root.pyth_lazer.PublisherUpdatePayload.decode(reader, reader.uint32()); + message.publisherUpdates = $root.pyth_lazer_transaction.PublisherUpdatePayload.decode(reader, reader.uint32()); break; } default: @@ -1734,10 +1734,10 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Decodes a LazerTransaction message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof pyth_lazer.LazerTransaction + * @memberof pyth_lazer_transaction.LazerTransaction * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {pyth_lazer.LazerTransaction} LazerTransaction + * @returns {pyth_lazer_transaction.LazerTransaction} LazerTransaction * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -1750,7 +1750,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Verifies a LazerTransaction message. * @function verify - * @memberof pyth_lazer.LazerTransaction + * @memberof pyth_lazer_transaction.LazerTransaction * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -1762,7 +1762,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { if (message.publisherUpdates != null && message.hasOwnProperty("publisherUpdates")) { properties.transaction = 1; { - let error = $root.pyth_lazer.PublisherUpdatePayload.verify(message.publisherUpdates); + let error = $root.pyth_lazer_transaction.PublisherUpdatePayload.verify(message.publisherUpdates); if (error) return "publisherUpdates." + error; } @@ -1773,19 +1773,19 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Creates a LazerTransaction message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof pyth_lazer.LazerTransaction + * @memberof pyth_lazer_transaction.LazerTransaction * @static * @param {Object.} object Plain object - * @returns {pyth_lazer.LazerTransaction} LazerTransaction + * @returns {pyth_lazer_transaction.LazerTransaction} LazerTransaction */ LazerTransaction.fromObject = function fromObject(object) { - if (object instanceof $root.pyth_lazer.LazerTransaction) + if (object instanceof $root.pyth_lazer_transaction.LazerTransaction) return object; - let message = new $root.pyth_lazer.LazerTransaction(); + let message = new $root.pyth_lazer_transaction.LazerTransaction(); if (object.publisherUpdates != null) { if (typeof object.publisherUpdates !== "object") - throw TypeError(".pyth_lazer.LazerTransaction.publisherUpdates: object expected"); - message.publisherUpdates = $root.pyth_lazer.PublisherUpdatePayload.fromObject(object.publisherUpdates); + throw TypeError(".pyth_lazer_transaction.LazerTransaction.publisherUpdates: object expected"); + message.publisherUpdates = $root.pyth_lazer_transaction.PublisherUpdatePayload.fromObject(object.publisherUpdates); } return message; }; @@ -1793,9 +1793,9 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Creates a plain object from a LazerTransaction message. Also converts values to other types if specified. * @function toObject - * @memberof pyth_lazer.LazerTransaction + * @memberof pyth_lazer_transaction.LazerTransaction * @static - * @param {pyth_lazer.LazerTransaction} message LazerTransaction + * @param {pyth_lazer_transaction.LazerTransaction} message LazerTransaction * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -1804,7 +1804,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { options = {}; let object = {}; if (message.publisherUpdates != null && message.hasOwnProperty("publisherUpdates")) { - object.publisherUpdates = $root.pyth_lazer.PublisherUpdatePayload.toObject(message.publisherUpdates, options); + object.publisherUpdates = $root.pyth_lazer_transaction.PublisherUpdatePayload.toObject(message.publisherUpdates, options); if (options.oneofs) object.transaction = "publisherUpdates"; } @@ -1814,7 +1814,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Converts this LazerTransaction to JSON. * @function toJSON - * @memberof pyth_lazer.LazerTransaction + * @memberof pyth_lazer_transaction.LazerTransaction * @instance * @returns {Object.} JSON object */ @@ -1825,7 +1825,7 @@ export const pyth_lazer = $root.pyth_lazer = (() => { /** * Gets the default type url for LazerTransaction * @function getTypeUrl - * @memberof pyth_lazer.LazerTransaction + * @memberof pyth_lazer_transaction.LazerTransaction * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url @@ -1834,13 +1834,13 @@ export const pyth_lazer = $root.pyth_lazer = (() => { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/pyth_lazer.LazerTransaction"; + return typeUrlPrefix + "/pyth_lazer_transaction.LazerTransaction"; }; return LazerTransaction; })(); - return pyth_lazer; + return pyth_lazer_transaction; })(); export { $root as default }; diff --git a/lazer/sdk/proto/publisher_update.proto b/lazer/sdk/proto/publisher_update.proto index 4af1d51aeb..f85e8c7a69 100644 --- a/lazer/sdk/proto/publisher_update.proto +++ b/lazer/sdk/proto/publisher_update.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -package pyth_lazer; +package pyth_lazer_transaction; message PublisherUpdatePayload { repeated PublisherUpdate updates = 1; diff --git a/lazer/sdk/proto/pyth_lazer.proto b/lazer/sdk/proto/pyth_lazer_transaction.proto similarity index 91% rename from lazer/sdk/proto/pyth_lazer.proto rename to lazer/sdk/proto/pyth_lazer_transaction.proto index f90593dd85..702bd447e1 100644 --- a/lazer/sdk/proto/pyth_lazer.proto +++ b/lazer/sdk/proto/pyth_lazer_transaction.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -package pyth_lazer; +package pyth_lazer_transaction; import "publisher_update.proto"; diff --git a/lazer/sdk/rust/protocol/build.rs b/lazer/sdk/rust/protocol/build.rs index 0212f93b85..d36a387b74 100644 --- a/lazer/sdk/rust/protocol/build.rs +++ b/lazer/sdk/rust/protocol/build.rs @@ -2,7 +2,7 @@ use std::io::Result; fn main() -> Result<()> { let proto_files = vec![ - "../../proto/pyth_lazer.proto", + "../../proto/pyth_lazer_transaction.proto", "../../proto/publisher_update.proto", ]; diff --git a/lazer/sdk/rust/protocol/src/lib.rs b/lazer/sdk/rust/protocol/src/lib.rs index d828a5da4e..bf5a504397 100644 --- a/lazer/sdk/rust/protocol/src/lib.rs +++ b/lazer/sdk/rust/protocol/src/lib.rs @@ -5,14 +5,14 @@ pub mod binary_update; pub mod message; pub mod payload; pub mod publisher; -pub mod pyth_lazer { - include!(concat!(env!("OUT_DIR"), "/pyth_lazer.rs")); -} pub mod router; mod serde_price_as_i64; mod serde_str; pub mod subscription; pub mod symbol_state; +pub mod transaction { + include!(concat!(env!("OUT_DIR"), "/pyth_lazer_transaction.rs")); +} #[test] fn magics_in_big_endian() { From aa21d2a7eb89ffdded2184a8f5957a41ff64acd2 Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Mon, 7 Apr 2025 12:26:25 -0700 Subject: [PATCH 06/26] rename proto fields and re-generate --- lazer/sdk/js/examples/index.ts | 2 +- lazer/sdk/js/package.json | 2 +- lazer/sdk/js/src/generated/proto.d.ts | 166 ++++----- lazer/sdk/js/src/generated/proto.js | 350 +++++++++---------- lazer/sdk/proto/publisher_update.proto | 10 +- lazer/sdk/proto/pyth_lazer_transaction.proto | 4 +- 6 files changed, 267 insertions(+), 267 deletions(-) diff --git a/lazer/sdk/js/examples/index.ts b/lazer/sdk/js/examples/index.ts index 7d88f0748e..dbfe9e0e7b 100644 --- a/lazer/sdk/js/examples/index.ts +++ b/lazer/sdk/js/examples/index.ts @@ -4,7 +4,7 @@ import { PythLazerClient } from "../src/index.js"; // Ignore debug messages -console.debug = () => {}; +console.debug = () => { }; const client = await PythLazerClient.create( ["wss://pyth-lazer.dourolabs.app/v1/stream"], diff --git a/lazer/sdk/js/package.json b/lazer/sdk/js/package.json index 4def395de0..aec9d131ac 100644 --- a/lazer/sdk/js/package.json +++ b/lazer/sdk/js/package.json @@ -30,7 +30,7 @@ "fix:format": "prettier --write .", "example": "node --loader ts-node/esm examples/index.js", "doc": "typedoc --out docs/typedoc src", - "publish": "pnpm run script -- publish", + "publish": "pnpm run prebuild && pnpm run script -- publish", "proto-codegen": "mkdir -p src/generated && pnpm exec pbjs -t static-module -w es6 -o src/generated/proto.js ../proto/*.proto && pnpm exec pbts -o src/generated/proto.d.ts src/generated/proto.js", "prebuild": "rm -rf ./src/generated && npm run proto-codegen" }, diff --git a/lazer/sdk/js/src/generated/proto.d.ts b/lazer/sdk/js/src/generated/proto.d.ts index 790fb56fed..18962b7bcc 100644 --- a/lazer/sdk/js/src/generated/proto.d.ts +++ b/lazer/sdk/js/src/generated/proto.d.ts @@ -3,209 +3,209 @@ import Long = require("long"); /** Namespace pyth_lazer_transaction. */ export namespace pyth_lazer_transaction { - /** Properties of a PublisherUpdatePayload. */ - interface IPublisherUpdatePayload { + /** Properties of a PublisherUpdate. */ + interface IPublisherUpdate { - /** PublisherUpdatePayload updates */ - updates?: (pyth_lazer_transaction.IPublisherUpdate[]|null); + /** PublisherUpdate updates */ + updates?: (pyth_lazer_transaction.IFeedUpdate[]|null); - /** PublisherUpdatePayload batchTimestampUs */ + /** PublisherUpdate batchTimestampUs */ batchTimestampUs?: (number|Long|null); } - /** Represents a PublisherUpdatePayload. */ - class PublisherUpdatePayload implements IPublisherUpdatePayload { + /** Represents a PublisherUpdate. */ + class PublisherUpdate implements IPublisherUpdate { /** - * Constructs a new PublisherUpdatePayload. + * Constructs a new PublisherUpdate. * @param [properties] Properties to set */ - constructor(properties?: pyth_lazer_transaction.IPublisherUpdatePayload); + constructor(properties?: pyth_lazer_transaction.IPublisherUpdate); - /** PublisherUpdatePayload updates. */ - public updates: pyth_lazer_transaction.IPublisherUpdate[]; + /** PublisherUpdate updates. */ + public updates: pyth_lazer_transaction.IFeedUpdate[]; - /** PublisherUpdatePayload batchTimestampUs. */ + /** PublisherUpdate batchTimestampUs. */ public batchTimestampUs: (number|Long); /** - * Creates a new PublisherUpdatePayload instance using the specified properties. + * Creates a new PublisherUpdate instance using the specified properties. * @param [properties] Properties to set - * @returns PublisherUpdatePayload instance + * @returns PublisherUpdate instance */ - public static create(properties?: pyth_lazer_transaction.IPublisherUpdatePayload): pyth_lazer_transaction.PublisherUpdatePayload; + public static create(properties?: pyth_lazer_transaction.IPublisherUpdate): pyth_lazer_transaction.PublisherUpdate; /** - * Encodes the specified PublisherUpdatePayload message. Does not implicitly {@link pyth_lazer_transaction.PublisherUpdatePayload.verify|verify} messages. - * @param message PublisherUpdatePayload message or plain object to encode + * Encodes the specified PublisherUpdate message. Does not implicitly {@link pyth_lazer_transaction.PublisherUpdate.verify|verify} messages. + * @param message PublisherUpdate message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: pyth_lazer_transaction.IPublisherUpdatePayload, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: pyth_lazer_transaction.IPublisherUpdate, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PublisherUpdatePayload message, length delimited. Does not implicitly {@link pyth_lazer_transaction.PublisherUpdatePayload.verify|verify} messages. - * @param message PublisherUpdatePayload message or plain object to encode + * Encodes the specified PublisherUpdate message, length delimited. Does not implicitly {@link pyth_lazer_transaction.PublisherUpdate.verify|verify} messages. + * @param message PublisherUpdate message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: pyth_lazer_transaction.IPublisherUpdatePayload, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: pyth_lazer_transaction.IPublisherUpdate, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PublisherUpdatePayload message from the specified reader or buffer. + * Decodes a PublisherUpdate message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PublisherUpdatePayload + * @returns PublisherUpdate * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer_transaction.PublisherUpdatePayload; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer_transaction.PublisherUpdate; /** - * Decodes a PublisherUpdatePayload message from the specified reader or buffer, length delimited. + * Decodes a PublisherUpdate message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PublisherUpdatePayload + * @returns PublisherUpdate * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer_transaction.PublisherUpdatePayload; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer_transaction.PublisherUpdate; /** - * Verifies a PublisherUpdatePayload message. + * Verifies a PublisherUpdate message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PublisherUpdatePayload message from a plain object. Also converts values to their respective internal types. + * Creates a PublisherUpdate message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PublisherUpdatePayload + * @returns PublisherUpdate */ - public static fromObject(object: { [k: string]: any }): pyth_lazer_transaction.PublisherUpdatePayload; + public static fromObject(object: { [k: string]: any }): pyth_lazer_transaction.PublisherUpdate; /** - * Creates a plain object from a PublisherUpdatePayload message. Also converts values to other types if specified. - * @param message PublisherUpdatePayload + * Creates a plain object from a PublisherUpdate message. Also converts values to other types if specified. + * @param message PublisherUpdate * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: pyth_lazer_transaction.PublisherUpdatePayload, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: pyth_lazer_transaction.PublisherUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PublisherUpdatePayload to JSON. + * Converts this PublisherUpdate to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PublisherUpdatePayload + * Gets the default type url for PublisherUpdate * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PublisherUpdate. */ - interface IPublisherUpdate { + /** Properties of a FeedUpdate. */ + interface IFeedUpdate { - /** PublisherUpdate priceUpdateV1 */ + /** FeedUpdate priceUpdateV1 */ priceUpdateV1?: (pyth_lazer_transaction.IPriceUpdateV1|null); - /** PublisherUpdate fundingRateUpdateV1 */ + /** FeedUpdate fundingRateUpdateV1 */ fundingRateUpdateV1?: (pyth_lazer_transaction.IFundingRateUpdateV1|null); } - /** Represents a PublisherUpdate. */ - class PublisherUpdate implements IPublisherUpdate { + /** Represents a FeedUpdate. */ + class FeedUpdate implements IFeedUpdate { /** - * Constructs a new PublisherUpdate. + * Constructs a new FeedUpdate. * @param [properties] Properties to set */ - constructor(properties?: pyth_lazer_transaction.IPublisherUpdate); + constructor(properties?: pyth_lazer_transaction.IFeedUpdate); - /** PublisherUpdate priceUpdateV1. */ + /** FeedUpdate priceUpdateV1. */ public priceUpdateV1?: (pyth_lazer_transaction.IPriceUpdateV1|null); - /** PublisherUpdate fundingRateUpdateV1. */ + /** FeedUpdate fundingRateUpdateV1. */ public fundingRateUpdateV1?: (pyth_lazer_transaction.IFundingRateUpdateV1|null); - /** PublisherUpdate update. */ + /** FeedUpdate update. */ public update?: ("priceUpdateV1"|"fundingRateUpdateV1"); /** - * Creates a new PublisherUpdate instance using the specified properties. + * Creates a new FeedUpdate instance using the specified properties. * @param [properties] Properties to set - * @returns PublisherUpdate instance + * @returns FeedUpdate instance */ - public static create(properties?: pyth_lazer_transaction.IPublisherUpdate): pyth_lazer_transaction.PublisherUpdate; + public static create(properties?: pyth_lazer_transaction.IFeedUpdate): pyth_lazer_transaction.FeedUpdate; /** - * Encodes the specified PublisherUpdate message. Does not implicitly {@link pyth_lazer_transaction.PublisherUpdate.verify|verify} messages. - * @param message PublisherUpdate message or plain object to encode + * Encodes the specified FeedUpdate message. Does not implicitly {@link pyth_lazer_transaction.FeedUpdate.verify|verify} messages. + * @param message FeedUpdate message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: pyth_lazer_transaction.IPublisherUpdate, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: pyth_lazer_transaction.IFeedUpdate, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PublisherUpdate message, length delimited. Does not implicitly {@link pyth_lazer_transaction.PublisherUpdate.verify|verify} messages. - * @param message PublisherUpdate message or plain object to encode + * Encodes the specified FeedUpdate message, length delimited. Does not implicitly {@link pyth_lazer_transaction.FeedUpdate.verify|verify} messages. + * @param message FeedUpdate message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: pyth_lazer_transaction.IPublisherUpdate, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: pyth_lazer_transaction.IFeedUpdate, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PublisherUpdate message from the specified reader or buffer. + * Decodes a FeedUpdate message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PublisherUpdate + * @returns FeedUpdate * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer_transaction.PublisherUpdate; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer_transaction.FeedUpdate; /** - * Decodes a PublisherUpdate message from the specified reader or buffer, length delimited. + * Decodes a FeedUpdate message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PublisherUpdate + * @returns FeedUpdate * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer_transaction.PublisherUpdate; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer_transaction.FeedUpdate; /** - * Verifies a PublisherUpdate message. + * Verifies a FeedUpdate message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PublisherUpdate message from a plain object. Also converts values to their respective internal types. + * Creates a FeedUpdate message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PublisherUpdate + * @returns FeedUpdate */ - public static fromObject(object: { [k: string]: any }): pyth_lazer_transaction.PublisherUpdate; + public static fromObject(object: { [k: string]: any }): pyth_lazer_transaction.FeedUpdate; /** - * Creates a plain object from a PublisherUpdate message. Also converts values to other types if specified. - * @param message PublisherUpdate + * Creates a plain object from a FeedUpdate message. Also converts values to other types if specified. + * @param message FeedUpdate * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: pyth_lazer_transaction.PublisherUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: pyth_lazer_transaction.FeedUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PublisherUpdate to JSON. + * Converts this FeedUpdate to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PublisherUpdate + * Gets the default type url for FeedUpdate * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -215,8 +215,8 @@ export namespace pyth_lazer_transaction { /** Properties of a PriceUpdateV1. */ interface IPriceUpdateV1 { - /** PriceUpdateV1 priceFeedId */ - priceFeedId?: (number|null); + /** PriceUpdateV1 feedId */ + feedId?: (number|null); /** PriceUpdateV1 sourceTimestampUs */ sourceTimestampUs?: (number|Long|null); @@ -243,8 +243,8 @@ export namespace pyth_lazer_transaction { */ constructor(properties?: pyth_lazer_transaction.IPriceUpdateV1); - /** PriceUpdateV1 priceFeedId. */ - public priceFeedId: number; + /** PriceUpdateV1 feedId. */ + public feedId: number; /** PriceUpdateV1 sourceTimestampUs. */ public sourceTimestampUs: (number|Long); @@ -342,8 +342,8 @@ export namespace pyth_lazer_transaction { /** Properties of a FundingRateUpdateV1. */ interface IFundingRateUpdateV1 { - /** FundingRateUpdateV1 priceFeedId */ - priceFeedId?: (number|null); + /** FundingRateUpdateV1 feedId */ + feedId?: (number|null); /** FundingRateUpdateV1 sourceTimestampUs */ sourceTimestampUs?: (number|Long|null); @@ -367,8 +367,8 @@ export namespace pyth_lazer_transaction { */ constructor(properties?: pyth_lazer_transaction.IFundingRateUpdateV1); - /** FundingRateUpdateV1 priceFeedId. */ - public priceFeedId: number; + /** FundingRateUpdateV1 feedId. */ + public feedId: number; /** FundingRateUpdateV1 sourceTimestampUs. */ public sourceTimestampUs: (number|Long); @@ -578,7 +578,7 @@ export namespace pyth_lazer_transaction { interface ILazerTransaction { /** LazerTransaction publisherUpdates */ - publisherUpdates?: (pyth_lazer_transaction.IPublisherUpdatePayload|null); + publisherUpdates?: (pyth_lazer_transaction.IPublisherUpdate|null); } /** Represents a LazerTransaction. */ @@ -591,10 +591,10 @@ export namespace pyth_lazer_transaction { constructor(properties?: pyth_lazer_transaction.ILazerTransaction); /** LazerTransaction publisherUpdates. */ - public publisherUpdates?: (pyth_lazer_transaction.IPublisherUpdatePayload|null); + public publisherUpdates?: (pyth_lazer_transaction.IPublisherUpdate|null); - /** LazerTransaction transaction. */ - public transaction?: "publisherUpdates"; + /** LazerTransaction payload. */ + public payload?: "publisherUpdates"; /** * Creates a new LazerTransaction instance using the specified properties. diff --git a/lazer/sdk/js/src/generated/proto.js b/lazer/sdk/js/src/generated/proto.js index bdc1b44d87..3835f0ba03 100644 --- a/lazer/sdk/js/src/generated/proto.js +++ b/lazer/sdk/js/src/generated/proto.js @@ -16,25 +16,25 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { */ const pyth_lazer_transaction = {}; - pyth_lazer_transaction.PublisherUpdatePayload = (function() { + pyth_lazer_transaction.PublisherUpdate = (function() { /** - * Properties of a PublisherUpdatePayload. + * Properties of a PublisherUpdate. * @memberof pyth_lazer_transaction - * @interface IPublisherUpdatePayload - * @property {Array.|null} [updates] PublisherUpdatePayload updates - * @property {number|Long|null} [batchTimestampUs] PublisherUpdatePayload batchTimestampUs + * @interface IPublisherUpdate + * @property {Array.|null} [updates] PublisherUpdate updates + * @property {number|Long|null} [batchTimestampUs] PublisherUpdate batchTimestampUs */ /** - * Constructs a new PublisherUpdatePayload. + * Constructs a new PublisherUpdate. * @memberof pyth_lazer_transaction - * @classdesc Represents a PublisherUpdatePayload. - * @implements IPublisherUpdatePayload + * @classdesc Represents a PublisherUpdate. + * @implements IPublisherUpdate * @constructor - * @param {pyth_lazer_transaction.IPublisherUpdatePayload=} [properties] Properties to set + * @param {pyth_lazer_transaction.IPublisherUpdate=} [properties] Properties to set */ - function PublisherUpdatePayload(properties) { + function PublisherUpdate(properties) { this.updates = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -43,88 +43,88 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { } /** - * PublisherUpdatePayload updates. - * @member {Array.} updates - * @memberof pyth_lazer_transaction.PublisherUpdatePayload + * PublisherUpdate updates. + * @member {Array.} updates + * @memberof pyth_lazer_transaction.PublisherUpdate * @instance */ - PublisherUpdatePayload.prototype.updates = $util.emptyArray; + PublisherUpdate.prototype.updates = $util.emptyArray; /** - * PublisherUpdatePayload batchTimestampUs. + * PublisherUpdate batchTimestampUs. * @member {number|Long} batchTimestampUs - * @memberof pyth_lazer_transaction.PublisherUpdatePayload + * @memberof pyth_lazer_transaction.PublisherUpdate * @instance */ - PublisherUpdatePayload.prototype.batchTimestampUs = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + PublisherUpdate.prototype.batchTimestampUs = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Creates a new PublisherUpdatePayload instance using the specified properties. + * Creates a new PublisherUpdate instance using the specified properties. * @function create - * @memberof pyth_lazer_transaction.PublisherUpdatePayload + * @memberof pyth_lazer_transaction.PublisherUpdate * @static - * @param {pyth_lazer_transaction.IPublisherUpdatePayload=} [properties] Properties to set - * @returns {pyth_lazer_transaction.PublisherUpdatePayload} PublisherUpdatePayload instance + * @param {pyth_lazer_transaction.IPublisherUpdate=} [properties] Properties to set + * @returns {pyth_lazer_transaction.PublisherUpdate} PublisherUpdate instance */ - PublisherUpdatePayload.create = function create(properties) { - return new PublisherUpdatePayload(properties); + PublisherUpdate.create = function create(properties) { + return new PublisherUpdate(properties); }; /** - * Encodes the specified PublisherUpdatePayload message. Does not implicitly {@link pyth_lazer_transaction.PublisherUpdatePayload.verify|verify} messages. + * Encodes the specified PublisherUpdate message. Does not implicitly {@link pyth_lazer_transaction.PublisherUpdate.verify|verify} messages. * @function encode - * @memberof pyth_lazer_transaction.PublisherUpdatePayload + * @memberof pyth_lazer_transaction.PublisherUpdate * @static - * @param {pyth_lazer_transaction.IPublisherUpdatePayload} message PublisherUpdatePayload message or plain object to encode + * @param {pyth_lazer_transaction.IPublisherUpdate} message PublisherUpdate message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PublisherUpdatePayload.encode = function encode(message, writer) { + PublisherUpdate.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.updates != null && message.updates.length) for (let i = 0; i < message.updates.length; ++i) - $root.pyth_lazer_transaction.PublisherUpdate.encode(message.updates[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.pyth_lazer_transaction.FeedUpdate.encode(message.updates[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.batchTimestampUs != null && Object.hasOwnProperty.call(message, "batchTimestampUs")) writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.batchTimestampUs); return writer; }; /** - * Encodes the specified PublisherUpdatePayload message, length delimited. Does not implicitly {@link pyth_lazer_transaction.PublisherUpdatePayload.verify|verify} messages. + * Encodes the specified PublisherUpdate message, length delimited. Does not implicitly {@link pyth_lazer_transaction.PublisherUpdate.verify|verify} messages. * @function encodeDelimited - * @memberof pyth_lazer_transaction.PublisherUpdatePayload + * @memberof pyth_lazer_transaction.PublisherUpdate * @static - * @param {pyth_lazer_transaction.IPublisherUpdatePayload} message PublisherUpdatePayload message or plain object to encode + * @param {pyth_lazer_transaction.IPublisherUpdate} message PublisherUpdate message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PublisherUpdatePayload.encodeDelimited = function encodeDelimited(message, writer) { + PublisherUpdate.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PublisherUpdatePayload message from the specified reader or buffer. + * Decodes a PublisherUpdate message from the specified reader or buffer. * @function decode - * @memberof pyth_lazer_transaction.PublisherUpdatePayload + * @memberof pyth_lazer_transaction.PublisherUpdate * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {pyth_lazer_transaction.PublisherUpdatePayload} PublisherUpdatePayload + * @returns {pyth_lazer_transaction.PublisherUpdate} PublisherUpdate * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PublisherUpdatePayload.decode = function decode(reader, length) { + PublisherUpdate.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer_transaction.PublisherUpdatePayload(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer_transaction.PublisherUpdate(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { if (!(message.updates && message.updates.length)) message.updates = []; - message.updates.push($root.pyth_lazer_transaction.PublisherUpdate.decode(reader, reader.uint32())); + message.updates.push($root.pyth_lazer_transaction.FeedUpdate.decode(reader, reader.uint32())); break; } case 2: { @@ -140,37 +140,37 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { }; /** - * Decodes a PublisherUpdatePayload message from the specified reader or buffer, length delimited. + * Decodes a PublisherUpdate message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof pyth_lazer_transaction.PublisherUpdatePayload + * @memberof pyth_lazer_transaction.PublisherUpdate * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {pyth_lazer_transaction.PublisherUpdatePayload} PublisherUpdatePayload + * @returns {pyth_lazer_transaction.PublisherUpdate} PublisherUpdate * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PublisherUpdatePayload.decodeDelimited = function decodeDelimited(reader) { + PublisherUpdate.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PublisherUpdatePayload message. + * Verifies a PublisherUpdate message. * @function verify - * @memberof pyth_lazer_transaction.PublisherUpdatePayload + * @memberof pyth_lazer_transaction.PublisherUpdate * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PublisherUpdatePayload.verify = function verify(message) { + PublisherUpdate.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.updates != null && message.hasOwnProperty("updates")) { if (!Array.isArray(message.updates)) return "updates: array expected"; for (let i = 0; i < message.updates.length; ++i) { - let error = $root.pyth_lazer_transaction.PublisherUpdate.verify(message.updates[i]); + let error = $root.pyth_lazer_transaction.FeedUpdate.verify(message.updates[i]); if (error) return "updates." + error; } @@ -182,25 +182,25 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { }; /** - * Creates a PublisherUpdatePayload message from a plain object. Also converts values to their respective internal types. + * Creates a PublisherUpdate message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof pyth_lazer_transaction.PublisherUpdatePayload + * @memberof pyth_lazer_transaction.PublisherUpdate * @static * @param {Object.} object Plain object - * @returns {pyth_lazer_transaction.PublisherUpdatePayload} PublisherUpdatePayload + * @returns {pyth_lazer_transaction.PublisherUpdate} PublisherUpdate */ - PublisherUpdatePayload.fromObject = function fromObject(object) { - if (object instanceof $root.pyth_lazer_transaction.PublisherUpdatePayload) + PublisherUpdate.fromObject = function fromObject(object) { + if (object instanceof $root.pyth_lazer_transaction.PublisherUpdate) return object; - let message = new $root.pyth_lazer_transaction.PublisherUpdatePayload(); + let message = new $root.pyth_lazer_transaction.PublisherUpdate(); if (object.updates) { if (!Array.isArray(object.updates)) - throw TypeError(".pyth_lazer_transaction.PublisherUpdatePayload.updates: array expected"); + throw TypeError(".pyth_lazer_transaction.PublisherUpdate.updates: array expected"); message.updates = []; for (let i = 0; i < object.updates.length; ++i) { if (typeof object.updates[i] !== "object") - throw TypeError(".pyth_lazer_transaction.PublisherUpdatePayload.updates: object expected"); - message.updates[i] = $root.pyth_lazer_transaction.PublisherUpdate.fromObject(object.updates[i]); + throw TypeError(".pyth_lazer_transaction.PublisherUpdate.updates: object expected"); + message.updates[i] = $root.pyth_lazer_transaction.FeedUpdate.fromObject(object.updates[i]); } } if (object.batchTimestampUs != null) @@ -216,15 +216,15 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { }; /** - * Creates a plain object from a PublisherUpdatePayload message. Also converts values to other types if specified. + * Creates a plain object from a PublisherUpdate message. Also converts values to other types if specified. * @function toObject - * @memberof pyth_lazer_transaction.PublisherUpdatePayload + * @memberof pyth_lazer_transaction.PublisherUpdate * @static - * @param {pyth_lazer_transaction.PublisherUpdatePayload} message PublisherUpdatePayload + * @param {pyth_lazer_transaction.PublisherUpdate} message PublisherUpdate * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PublisherUpdatePayload.toObject = function toObject(message, options) { + PublisherUpdate.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -239,7 +239,7 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { if (message.updates && message.updates.length) { object.updates = []; for (let j = 0; j < message.updates.length; ++j) - object.updates[j] = $root.pyth_lazer_transaction.PublisherUpdate.toObject(message.updates[j], options); + object.updates[j] = $root.pyth_lazer_transaction.FeedUpdate.toObject(message.updates[j], options); } if (message.batchTimestampUs != null && message.hasOwnProperty("batchTimestampUs")) if (typeof message.batchTimestampUs === "number") @@ -250,53 +250,53 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { }; /** - * Converts this PublisherUpdatePayload to JSON. + * Converts this PublisherUpdate to JSON. * @function toJSON - * @memberof pyth_lazer_transaction.PublisherUpdatePayload + * @memberof pyth_lazer_transaction.PublisherUpdate * @instance * @returns {Object.} JSON object */ - PublisherUpdatePayload.prototype.toJSON = function toJSON() { + PublisherUpdate.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PublisherUpdatePayload + * Gets the default type url for PublisherUpdate * @function getTypeUrl - * @memberof pyth_lazer_transaction.PublisherUpdatePayload + * @memberof pyth_lazer_transaction.PublisherUpdate * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PublisherUpdatePayload.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PublisherUpdate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/pyth_lazer_transaction.PublisherUpdatePayload"; + return typeUrlPrefix + "/pyth_lazer_transaction.PublisherUpdate"; }; - return PublisherUpdatePayload; + return PublisherUpdate; })(); - pyth_lazer_transaction.PublisherUpdate = (function() { + pyth_lazer_transaction.FeedUpdate = (function() { /** - * Properties of a PublisherUpdate. + * Properties of a FeedUpdate. * @memberof pyth_lazer_transaction - * @interface IPublisherUpdate - * @property {pyth_lazer_transaction.IPriceUpdateV1|null} [priceUpdateV1] PublisherUpdate priceUpdateV1 - * @property {pyth_lazer_transaction.IFundingRateUpdateV1|null} [fundingRateUpdateV1] PublisherUpdate fundingRateUpdateV1 + * @interface IFeedUpdate + * @property {pyth_lazer_transaction.IPriceUpdateV1|null} [priceUpdateV1] FeedUpdate priceUpdateV1 + * @property {pyth_lazer_transaction.IFundingRateUpdateV1|null} [fundingRateUpdateV1] FeedUpdate fundingRateUpdateV1 */ /** - * Constructs a new PublisherUpdate. + * Constructs a new FeedUpdate. * @memberof pyth_lazer_transaction - * @classdesc Represents a PublisherUpdate. - * @implements IPublisherUpdate + * @classdesc Represents a FeedUpdate. + * @implements IFeedUpdate * @constructor - * @param {pyth_lazer_transaction.IPublisherUpdate=} [properties] Properties to set + * @param {pyth_lazer_transaction.IFeedUpdate=} [properties] Properties to set */ - function PublisherUpdate(properties) { + function FeedUpdate(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -304,57 +304,57 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { } /** - * PublisherUpdate priceUpdateV1. + * FeedUpdate priceUpdateV1. * @member {pyth_lazer_transaction.IPriceUpdateV1|null|undefined} priceUpdateV1 - * @memberof pyth_lazer_transaction.PublisherUpdate + * @memberof pyth_lazer_transaction.FeedUpdate * @instance */ - PublisherUpdate.prototype.priceUpdateV1 = null; + FeedUpdate.prototype.priceUpdateV1 = null; /** - * PublisherUpdate fundingRateUpdateV1. + * FeedUpdate fundingRateUpdateV1. * @member {pyth_lazer_transaction.IFundingRateUpdateV1|null|undefined} fundingRateUpdateV1 - * @memberof pyth_lazer_transaction.PublisherUpdate + * @memberof pyth_lazer_transaction.FeedUpdate * @instance */ - PublisherUpdate.prototype.fundingRateUpdateV1 = null; + FeedUpdate.prototype.fundingRateUpdateV1 = null; // OneOf field names bound to virtual getters and setters let $oneOfFields; /** - * PublisherUpdate update. + * FeedUpdate update. * @member {"priceUpdateV1"|"fundingRateUpdateV1"|undefined} update - * @memberof pyth_lazer_transaction.PublisherUpdate + * @memberof pyth_lazer_transaction.FeedUpdate * @instance */ - Object.defineProperty(PublisherUpdate.prototype, "update", { + Object.defineProperty(FeedUpdate.prototype, "update", { get: $util.oneOfGetter($oneOfFields = ["priceUpdateV1", "fundingRateUpdateV1"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new PublisherUpdate instance using the specified properties. + * Creates a new FeedUpdate instance using the specified properties. * @function create - * @memberof pyth_lazer_transaction.PublisherUpdate + * @memberof pyth_lazer_transaction.FeedUpdate * @static - * @param {pyth_lazer_transaction.IPublisherUpdate=} [properties] Properties to set - * @returns {pyth_lazer_transaction.PublisherUpdate} PublisherUpdate instance + * @param {pyth_lazer_transaction.IFeedUpdate=} [properties] Properties to set + * @returns {pyth_lazer_transaction.FeedUpdate} FeedUpdate instance */ - PublisherUpdate.create = function create(properties) { - return new PublisherUpdate(properties); + FeedUpdate.create = function create(properties) { + return new FeedUpdate(properties); }; /** - * Encodes the specified PublisherUpdate message. Does not implicitly {@link pyth_lazer_transaction.PublisherUpdate.verify|verify} messages. + * Encodes the specified FeedUpdate message. Does not implicitly {@link pyth_lazer_transaction.FeedUpdate.verify|verify} messages. * @function encode - * @memberof pyth_lazer_transaction.PublisherUpdate + * @memberof pyth_lazer_transaction.FeedUpdate * @static - * @param {pyth_lazer_transaction.IPublisherUpdate} message PublisherUpdate message or plain object to encode + * @param {pyth_lazer_transaction.IFeedUpdate} message FeedUpdate message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PublisherUpdate.encode = function encode(message, writer) { + FeedUpdate.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.priceUpdateV1 != null && Object.hasOwnProperty.call(message, "priceUpdateV1")) @@ -365,33 +365,33 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { }; /** - * Encodes the specified PublisherUpdate message, length delimited. Does not implicitly {@link pyth_lazer_transaction.PublisherUpdate.verify|verify} messages. + * Encodes the specified FeedUpdate message, length delimited. Does not implicitly {@link pyth_lazer_transaction.FeedUpdate.verify|verify} messages. * @function encodeDelimited - * @memberof pyth_lazer_transaction.PublisherUpdate + * @memberof pyth_lazer_transaction.FeedUpdate * @static - * @param {pyth_lazer_transaction.IPublisherUpdate} message PublisherUpdate message or plain object to encode + * @param {pyth_lazer_transaction.IFeedUpdate} message FeedUpdate message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PublisherUpdate.encodeDelimited = function encodeDelimited(message, writer) { + FeedUpdate.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PublisherUpdate message from the specified reader or buffer. + * Decodes a FeedUpdate message from the specified reader or buffer. * @function decode - * @memberof pyth_lazer_transaction.PublisherUpdate + * @memberof pyth_lazer_transaction.FeedUpdate * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {pyth_lazer_transaction.PublisherUpdate} PublisherUpdate + * @returns {pyth_lazer_transaction.FeedUpdate} FeedUpdate * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PublisherUpdate.decode = function decode(reader, length) { + FeedUpdate.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer_transaction.PublisherUpdate(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer_transaction.FeedUpdate(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -412,30 +412,30 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { }; /** - * Decodes a PublisherUpdate message from the specified reader or buffer, length delimited. + * Decodes a FeedUpdate message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof pyth_lazer_transaction.PublisherUpdate + * @memberof pyth_lazer_transaction.FeedUpdate * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {pyth_lazer_transaction.PublisherUpdate} PublisherUpdate + * @returns {pyth_lazer_transaction.FeedUpdate} FeedUpdate * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PublisherUpdate.decodeDelimited = function decodeDelimited(reader) { + FeedUpdate.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PublisherUpdate message. + * Verifies a FeedUpdate message. * @function verify - * @memberof pyth_lazer_transaction.PublisherUpdate + * @memberof pyth_lazer_transaction.FeedUpdate * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PublisherUpdate.verify = function verify(message) { + FeedUpdate.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; let properties = {}; @@ -461,40 +461,40 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { }; /** - * Creates a PublisherUpdate message from a plain object. Also converts values to their respective internal types. + * Creates a FeedUpdate message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof pyth_lazer_transaction.PublisherUpdate + * @memberof pyth_lazer_transaction.FeedUpdate * @static * @param {Object.} object Plain object - * @returns {pyth_lazer_transaction.PublisherUpdate} PublisherUpdate + * @returns {pyth_lazer_transaction.FeedUpdate} FeedUpdate */ - PublisherUpdate.fromObject = function fromObject(object) { - if (object instanceof $root.pyth_lazer_transaction.PublisherUpdate) + FeedUpdate.fromObject = function fromObject(object) { + if (object instanceof $root.pyth_lazer_transaction.FeedUpdate) return object; - let message = new $root.pyth_lazer_transaction.PublisherUpdate(); + let message = new $root.pyth_lazer_transaction.FeedUpdate(); if (object.priceUpdateV1 != null) { if (typeof object.priceUpdateV1 !== "object") - throw TypeError(".pyth_lazer_transaction.PublisherUpdate.priceUpdateV1: object expected"); + throw TypeError(".pyth_lazer_transaction.FeedUpdate.priceUpdateV1: object expected"); message.priceUpdateV1 = $root.pyth_lazer_transaction.PriceUpdateV1.fromObject(object.priceUpdateV1); } if (object.fundingRateUpdateV1 != null) { if (typeof object.fundingRateUpdateV1 !== "object") - throw TypeError(".pyth_lazer_transaction.PublisherUpdate.fundingRateUpdateV1: object expected"); + throw TypeError(".pyth_lazer_transaction.FeedUpdate.fundingRateUpdateV1: object expected"); message.fundingRateUpdateV1 = $root.pyth_lazer_transaction.FundingRateUpdateV1.fromObject(object.fundingRateUpdateV1); } return message; }; /** - * Creates a plain object from a PublisherUpdate message. Also converts values to other types if specified. + * Creates a plain object from a FeedUpdate message. Also converts values to other types if specified. * @function toObject - * @memberof pyth_lazer_transaction.PublisherUpdate + * @memberof pyth_lazer_transaction.FeedUpdate * @static - * @param {pyth_lazer_transaction.PublisherUpdate} message PublisherUpdate + * @param {pyth_lazer_transaction.FeedUpdate} message FeedUpdate * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PublisherUpdate.toObject = function toObject(message, options) { + FeedUpdate.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -512,32 +512,32 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { }; /** - * Converts this PublisherUpdate to JSON. + * Converts this FeedUpdate to JSON. * @function toJSON - * @memberof pyth_lazer_transaction.PublisherUpdate + * @memberof pyth_lazer_transaction.FeedUpdate * @instance * @returns {Object.} JSON object */ - PublisherUpdate.prototype.toJSON = function toJSON() { + FeedUpdate.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PublisherUpdate + * Gets the default type url for FeedUpdate * @function getTypeUrl - * @memberof pyth_lazer_transaction.PublisherUpdate + * @memberof pyth_lazer_transaction.FeedUpdate * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PublisherUpdate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FeedUpdate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/pyth_lazer_transaction.PublisherUpdate"; + return typeUrlPrefix + "/pyth_lazer_transaction.FeedUpdate"; }; - return PublisherUpdate; + return FeedUpdate; })(); pyth_lazer_transaction.PriceUpdateV1 = (function() { @@ -546,7 +546,7 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { * Properties of a PriceUpdateV1. * @memberof pyth_lazer_transaction * @interface IPriceUpdateV1 - * @property {number|null} [priceFeedId] PriceUpdateV1 priceFeedId + * @property {number|null} [feedId] PriceUpdateV1 feedId * @property {number|Long|null} [sourceTimestampUs] PriceUpdateV1 sourceTimestampUs * @property {number|Long|null} [publisherTimestampUs] PriceUpdateV1 publisherTimestampUs * @property {number|Long|null} [price] PriceUpdateV1 price @@ -570,12 +570,12 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { } /** - * PriceUpdateV1 priceFeedId. - * @member {number} priceFeedId + * PriceUpdateV1 feedId. + * @member {number} feedId * @memberof pyth_lazer_transaction.PriceUpdateV1 * @instance */ - PriceUpdateV1.prototype.priceFeedId = 0; + PriceUpdateV1.prototype.feedId = 0; /** * PriceUpdateV1 sourceTimestampUs. @@ -662,8 +662,8 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { PriceUpdateV1.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.priceFeedId != null && Object.hasOwnProperty.call(message, "priceFeedId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.priceFeedId); + if (message.feedId != null && Object.hasOwnProperty.call(message, "feedId")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.feedId); if (message.sourceTimestampUs != null && Object.hasOwnProperty.call(message, "sourceTimestampUs")) writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.sourceTimestampUs); if (message.publisherTimestampUs != null && Object.hasOwnProperty.call(message, "publisherTimestampUs")) @@ -709,7 +709,7 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.priceFeedId = reader.uint32(); + message.feedId = reader.uint32(); break; } case 2: { @@ -768,9 +768,9 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { if (typeof message !== "object" || message === null) return "object expected"; let properties = {}; - if (message.priceFeedId != null && message.hasOwnProperty("priceFeedId")) - if (!$util.isInteger(message.priceFeedId)) - return "priceFeedId: integer expected"; + if (message.feedId != null && message.hasOwnProperty("feedId")) + if (!$util.isInteger(message.feedId)) + return "feedId: integer expected"; if (message.sourceTimestampUs != null && message.hasOwnProperty("sourceTimestampUs")) if (!$util.isInteger(message.sourceTimestampUs) && !(message.sourceTimestampUs && $util.isInteger(message.sourceTimestampUs.low) && $util.isInteger(message.sourceTimestampUs.high))) return "sourceTimestampUs: integer|Long expected"; @@ -807,8 +807,8 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { if (object instanceof $root.pyth_lazer_transaction.PriceUpdateV1) return object; let message = new $root.pyth_lazer_transaction.PriceUpdateV1(); - if (object.priceFeedId != null) - message.priceFeedId = object.priceFeedId >>> 0; + if (object.feedId != null) + message.feedId = object.feedId >>> 0; if (object.sourceTimestampUs != null) if ($util.Long) (message.sourceTimestampUs = $util.Long.fromValue(object.sourceTimestampUs)).unsigned = true; @@ -871,7 +871,7 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { options = {}; let object = {}; if (options.defaults) { - object.priceFeedId = 0; + object.feedId = 0; if ($util.Long) { let long = new $util.Long(0, 0, true); object.sourceTimestampUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; @@ -883,8 +883,8 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { } else object.publisherTimestampUs = options.longs === String ? "0" : 0; } - if (message.priceFeedId != null && message.hasOwnProperty("priceFeedId")) - object.priceFeedId = message.priceFeedId; + if (message.feedId != null && message.hasOwnProperty("feedId")) + object.feedId = message.feedId; if (message.sourceTimestampUs != null && message.hasOwnProperty("sourceTimestampUs")) if (typeof message.sourceTimestampUs === "number") object.sourceTimestampUs = options.longs === String ? String(message.sourceTimestampUs) : message.sourceTimestampUs; @@ -957,7 +957,7 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { * Properties of a FundingRateUpdateV1. * @memberof pyth_lazer_transaction * @interface IFundingRateUpdateV1 - * @property {number|null} [priceFeedId] FundingRateUpdateV1 priceFeedId + * @property {number|null} [feedId] FundingRateUpdateV1 feedId * @property {number|Long|null} [sourceTimestampUs] FundingRateUpdateV1 sourceTimestampUs * @property {number|Long|null} [publisherTimestampUs] FundingRateUpdateV1 publisherTimestampUs * @property {number|Long|null} [price] FundingRateUpdateV1 price @@ -980,12 +980,12 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { } /** - * FundingRateUpdateV1 priceFeedId. - * @member {number} priceFeedId + * FundingRateUpdateV1 feedId. + * @member {number} feedId * @memberof pyth_lazer_transaction.FundingRateUpdateV1 * @instance */ - FundingRateUpdateV1.prototype.priceFeedId = 0; + FundingRateUpdateV1.prototype.feedId = 0; /** * FundingRateUpdateV1 sourceTimestampUs. @@ -1058,8 +1058,8 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { FundingRateUpdateV1.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.priceFeedId != null && Object.hasOwnProperty.call(message, "priceFeedId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.priceFeedId); + if (message.feedId != null && Object.hasOwnProperty.call(message, "feedId")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.feedId); if (message.sourceTimestampUs != null && Object.hasOwnProperty.call(message, "sourceTimestampUs")) writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.sourceTimestampUs); if (message.publisherTimestampUs != null && Object.hasOwnProperty.call(message, "publisherTimestampUs")) @@ -1103,7 +1103,7 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.priceFeedId = reader.uint32(); + message.feedId = reader.uint32(); break; } case 2: { @@ -1158,9 +1158,9 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { if (typeof message !== "object" || message === null) return "object expected"; let properties = {}; - if (message.priceFeedId != null && message.hasOwnProperty("priceFeedId")) - if (!$util.isInteger(message.priceFeedId)) - return "priceFeedId: integer expected"; + if (message.feedId != null && message.hasOwnProperty("feedId")) + if (!$util.isInteger(message.feedId)) + return "feedId: integer expected"; if (message.sourceTimestampUs != null && message.hasOwnProperty("sourceTimestampUs")) if (!$util.isInteger(message.sourceTimestampUs) && !(message.sourceTimestampUs && $util.isInteger(message.sourceTimestampUs.low) && $util.isInteger(message.sourceTimestampUs.high))) return "sourceTimestampUs: integer|Long expected"; @@ -1192,8 +1192,8 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { if (object instanceof $root.pyth_lazer_transaction.FundingRateUpdateV1) return object; let message = new $root.pyth_lazer_transaction.FundingRateUpdateV1(); - if (object.priceFeedId != null) - message.priceFeedId = object.priceFeedId >>> 0; + if (object.feedId != null) + message.feedId = object.feedId >>> 0; if (object.sourceTimestampUs != null) if ($util.Long) (message.sourceTimestampUs = $util.Long.fromValue(object.sourceTimestampUs)).unsigned = true; @@ -1247,7 +1247,7 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { options = {}; let object = {}; if (options.defaults) { - object.priceFeedId = 0; + object.feedId = 0; if ($util.Long) { let long = new $util.Long(0, 0, true); object.sourceTimestampUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; @@ -1259,8 +1259,8 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { } else object.publisherTimestampUs = options.longs === String ? "0" : 0; } - if (message.priceFeedId != null && message.hasOwnProperty("priceFeedId")) - object.priceFeedId = message.priceFeedId; + if (message.feedId != null && message.hasOwnProperty("feedId")) + object.feedId = message.feedId; if (message.sourceTimestampUs != null && message.hasOwnProperty("sourceTimestampUs")) if (typeof message.sourceTimestampUs === "number") object.sourceTimestampUs = options.longs === String ? String(message.sourceTimestampUs) : message.sourceTimestampUs; @@ -1619,7 +1619,7 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { * Properties of a LazerTransaction. * @memberof pyth_lazer_transaction * @interface ILazerTransaction - * @property {pyth_lazer_transaction.IPublisherUpdatePayload|null} [publisherUpdates] LazerTransaction publisherUpdates + * @property {pyth_lazer_transaction.IPublisherUpdate|null} [publisherUpdates] LazerTransaction publisherUpdates */ /** @@ -1639,7 +1639,7 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { /** * LazerTransaction publisherUpdates. - * @member {pyth_lazer_transaction.IPublisherUpdatePayload|null|undefined} publisherUpdates + * @member {pyth_lazer_transaction.IPublisherUpdate|null|undefined} publisherUpdates * @memberof pyth_lazer_transaction.LazerTransaction * @instance */ @@ -1649,12 +1649,12 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { let $oneOfFields; /** - * LazerTransaction transaction. - * @member {"publisherUpdates"|undefined} transaction + * LazerTransaction payload. + * @member {"publisherUpdates"|undefined} payload * @memberof pyth_lazer_transaction.LazerTransaction * @instance */ - Object.defineProperty(LazerTransaction.prototype, "transaction", { + Object.defineProperty(LazerTransaction.prototype, "payload", { get: $util.oneOfGetter($oneOfFields = ["publisherUpdates"]), set: $util.oneOfSetter($oneOfFields) }); @@ -1684,7 +1684,7 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { if (!writer) writer = $Writer.create(); if (message.publisherUpdates != null && Object.hasOwnProperty.call(message, "publisherUpdates")) - $root.pyth_lazer_transaction.PublisherUpdatePayload.encode(message.publisherUpdates, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.pyth_lazer_transaction.PublisherUpdate.encode(message.publisherUpdates, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -1720,7 +1720,7 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.publisherUpdates = $root.pyth_lazer_transaction.PublisherUpdatePayload.decode(reader, reader.uint32()); + message.publisherUpdates = $root.pyth_lazer_transaction.PublisherUpdate.decode(reader, reader.uint32()); break; } default: @@ -1760,9 +1760,9 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { return "object expected"; let properties = {}; if (message.publisherUpdates != null && message.hasOwnProperty("publisherUpdates")) { - properties.transaction = 1; + properties.payload = 1; { - let error = $root.pyth_lazer_transaction.PublisherUpdatePayload.verify(message.publisherUpdates); + let error = $root.pyth_lazer_transaction.PublisherUpdate.verify(message.publisherUpdates); if (error) return "publisherUpdates." + error; } @@ -1785,7 +1785,7 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { if (object.publisherUpdates != null) { if (typeof object.publisherUpdates !== "object") throw TypeError(".pyth_lazer_transaction.LazerTransaction.publisherUpdates: object expected"); - message.publisherUpdates = $root.pyth_lazer_transaction.PublisherUpdatePayload.fromObject(object.publisherUpdates); + message.publisherUpdates = $root.pyth_lazer_transaction.PublisherUpdate.fromObject(object.publisherUpdates); } return message; }; @@ -1804,9 +1804,9 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { options = {}; let object = {}; if (message.publisherUpdates != null && message.hasOwnProperty("publisherUpdates")) { - object.publisherUpdates = $root.pyth_lazer_transaction.PublisherUpdatePayload.toObject(message.publisherUpdates, options); + object.publisherUpdates = $root.pyth_lazer_transaction.PublisherUpdate.toObject(message.publisherUpdates, options); if (options.oneofs) - object.transaction = "publisherUpdates"; + object.payload = "publisherUpdates"; } return object; }; diff --git a/lazer/sdk/proto/publisher_update.proto b/lazer/sdk/proto/publisher_update.proto index f85e8c7a69..c2068f76bf 100644 --- a/lazer/sdk/proto/publisher_update.proto +++ b/lazer/sdk/proto/publisher_update.proto @@ -2,12 +2,12 @@ syntax = "proto3"; package pyth_lazer_transaction; -message PublisherUpdatePayload { - repeated PublisherUpdate updates = 1; +message PublisherUpdate { + repeated FeedUpdate updates = 1; uint64 batch_timestamp_us = 2; } -message PublisherUpdate { +message FeedUpdate { oneof update { PriceUpdateV1 price_update_v1 = 3; FundingRateUpdateV1 funding_rate_update_v1 = 4; @@ -15,7 +15,7 @@ message PublisherUpdate { } message PriceUpdateV1 { - uint32 price_feed_id = 1; + uint32 feed_id = 1; uint64 source_timestamp_us = 2; uint64 publisher_timestamp_us = 3; optional int64 price = 4; @@ -24,7 +24,7 @@ message PriceUpdateV1 { } message FundingRateUpdateV1 { - uint32 price_feed_id = 1; + uint32 feed_id = 1; uint64 source_timestamp_us = 2; uint64 publisher_timestamp_us = 3; optional int64 price = 4; diff --git a/lazer/sdk/proto/pyth_lazer_transaction.proto b/lazer/sdk/proto/pyth_lazer_transaction.proto index 702bd447e1..80a5fe4e60 100644 --- a/lazer/sdk/proto/pyth_lazer_transaction.proto +++ b/lazer/sdk/proto/pyth_lazer_transaction.proto @@ -15,7 +15,7 @@ message SignedLazerTransaction { } message LazerTransaction { - oneof transaction { - PublisherUpdatePayload publisher_updates = 1; + oneof payload { + PublisherUpdate publisher_updates = 1; } } From 770c987f64c304967b831d611df8101d337ca23f Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Mon, 7 Apr 2025 15:22:26 -0700 Subject: [PATCH 07/26] Update package json scripts and field ids --- lazer/sdk/js/package.json | 7 ++++--- lazer/sdk/proto/publisher_update.proto | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lazer/sdk/js/package.json b/lazer/sdk/js/package.json index aec9d131ac..424611f1f1 100644 --- a/lazer/sdk/js/package.json +++ b/lazer/sdk/js/package.json @@ -21,6 +21,8 @@ } }, "scripts": { + "proto-codegen": "mkdir -p src/generated && pnpm exec pbjs -t static-module -w es6 -o src/generated/proto.js ../proto/*.proto && pnpm exec pbts -o src/generated/proto.d.ts src/generated/proto.js", + "prebuild": "rm -rf ./src/generated && pnpm run proto-codegen", "build:cjs": "tsc --project tsconfig.build.json --verbatimModuleSyntax false --module commonjs --outDir ./dist/cjs && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json", "build:esm": "tsc --project tsconfig.build.json --outDir ./dist/esm && echo '{\"type\":\"module\"}' > dist/esm/package.json", "fix:lint": "eslint --fix . --max-warnings 0", @@ -30,9 +32,8 @@ "fix:format": "prettier --write .", "example": "node --loader ts-node/esm examples/index.js", "doc": "typedoc --out docs/typedoc src", - "publish": "pnpm run prebuild && pnpm run script -- publish", - "proto-codegen": "mkdir -p src/generated && pnpm exec pbjs -t static-module -w es6 -o src/generated/proto.js ../proto/*.proto && pnpm exec pbts -o src/generated/proto.d.ts src/generated/proto.js", - "prebuild": "rm -rf ./src/generated && npm run proto-codegen" + "prepublishOnly": "pnpm run build", + "publish": "pnpm run script -- publish", }, "devDependencies": { "@cprussin/eslint-config": "catalog:", diff --git a/lazer/sdk/proto/publisher_update.proto b/lazer/sdk/proto/publisher_update.proto index c2068f76bf..b858534900 100644 --- a/lazer/sdk/proto/publisher_update.proto +++ b/lazer/sdk/proto/publisher_update.proto @@ -9,8 +9,8 @@ message PublisherUpdate { message FeedUpdate { oneof update { - PriceUpdateV1 price_update_v1 = 3; - FundingRateUpdateV1 funding_rate_update_v1 = 4; + PriceUpdateV1 price_update_v1 = 1; + FundingRateUpdateV1 funding_rate_update_v1 = 2; } } From 57cb60626fec16a6aee07000effd0f8f6f8538dc Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Mon, 7 Apr 2025 15:29:12 -0700 Subject: [PATCH 08/26] comment build.rs file --- lazer/sdk/rust/protocol/build.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lazer/sdk/rust/protocol/build.rs b/lazer/sdk/rust/protocol/build.rs index d36a387b74..a81ac58c41 100644 --- a/lazer/sdk/rust/protocol/build.rs +++ b/lazer/sdk/rust/protocol/build.rs @@ -1,12 +1,22 @@ use std::io::Result; +/// Automatically runs during cargo build. +/// Proto files for Lazer are defined in the lazer sdk folder in the proto/ subdirectory. +/// Both JS and Rust SDKs read the proto files for generating types. fn main() -> Result<()> { + // Tell cargo to recompile if any .proto files change + println!("cargo:rerun-if-changed=proto/"); + + // Selects proto files to be read for compiling let proto_files = vec![ "../../proto/pyth_lazer_transaction.proto", "../../proto/publisher_update.proto", ]; - prost_build::compile_protos(&proto_files, &["../../proto"])?; + // Compiles protos and generates Rust types + // Generated types are present in the output folder + prost_build::compile_protos(&proto_files, &["../../proto"]) + .expect("Failed to compile protos and generate types"); Ok(()) } From f5ac983a8b86fc089b566bd29fe215fdd238b829 Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Mon, 7 Apr 2025 15:36:12 -0700 Subject: [PATCH 09/26] rebase lock file and git ignore generated files --- lazer/sdk/js/.gitignore | 3 + lazer/sdk/js/package.json | 2 +- pnpm-lock.yaml | 233 +++++++++++++++++++++++++++++++++++--- 3 files changed, 219 insertions(+), 19 deletions(-) diff --git a/lazer/sdk/js/.gitignore b/lazer/sdk/js/.gitignore index 4359a98098..8be8cc7ff7 100644 --- a/lazer/sdk/js/.gitignore +++ b/lazer/sdk/js/.gitignore @@ -20,3 +20,6 @@ node_modules/ dist/ tsconfig.tsbuildinfo + +# Types generated for .proto files +src/generated/* diff --git a/lazer/sdk/js/package.json b/lazer/sdk/js/package.json index 424611f1f1..333b2325f8 100644 --- a/lazer/sdk/js/package.json +++ b/lazer/sdk/js/package.json @@ -33,7 +33,7 @@ "example": "node --loader ts-node/esm examples/index.js", "doc": "typedoc --out docs/typedoc src", "prepublishOnly": "pnpm run build", - "publish": "pnpm run script -- publish", + "publish": "pnpm run script -- publish" }, "devDependencies": { "@cprussin/eslint-config": "catalog:", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ee5b81829d..a9b8437162 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -902,13 +902,13 @@ importers: version: 0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-react': specifier: 'catalog:' - version: 0.15.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@6.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) + version: 0.15.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) '@solana/wallet-adapter-react-ui': specifier: 'catalog:' - version: 0.9.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@6.0.0)(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) + version: 0.9.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) '@solana/wallet-adapter-wallets': specifier: 'catalog:' - version: 0.19.33(@babel/runtime@7.27.0)(@react-native-async-storage/async-storage@1.24.0(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@6.0.0)(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))(zod@3.24.2) + version: 0.19.33(@babel/runtime@7.27.0)(@react-native-async-storage/async-storage@1.24.0(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))(zod@3.24.2) '@solana/web3.js': specifier: 'catalog:' version: 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) @@ -1208,7 +1208,7 @@ importers: version: 3.1.2(typescript@5.8.2) '@solana/wallet-adapter-react': specifier: 'catalog:' - version: 0.15.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) + version: 0.15.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@6.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) '@types/jest': specifier: 'catalog:' version: 29.5.14 @@ -1485,10 +1485,10 @@ importers: version: 0.15.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@6.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) '@solana/wallet-adapter-react-ui': specifier: 'catalog:' - version: 0.9.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@6.0.0)(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) + version: 0.9.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) '@solana/wallet-adapter-wallets': specifier: 'catalog:' - version: 0.19.33(@babel/runtime@7.27.0)(@react-native-async-storage/async-storage@1.24.0(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@6.0.0)(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))(zod@3.24.2) + version: 0.19.33(@babel/runtime@7.27.0)(@react-native-async-storage/async-storage@1.24.0(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))(zod@3.24.2) '@solana/web3.js': specifier: ^1.73.0 version: 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) @@ -1666,6 +1666,12 @@ importers: prettier: specifier: 'catalog:' version: 3.5.3 + protobufjs: + specifier: ^7.4.0 + version: 7.4.0 + protobufjs-cli: + specifier: ^1.1.3 + version: 1.1.3(protobufjs@7.4.0) ts-node: specifier: 'catalog:' version: 10.9.2(@types/node@18.19.86)(typescript@5.8.2) @@ -5612,6 +5618,10 @@ packages: '@jsdevtools/ono@7.1.3': resolution: {integrity: sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==} + '@jsdoc/salty@0.2.9': + resolution: {integrity: sha512-yYxMVH7Dqw6nO0d5NIV8OQWnitU8k6vXH8NtgqAfIa/IUqRMxRv/NUJJ08VEKbAakwxlgBl5PJdrU0dMPStsnw==} + engines: {node: '>=v12.0.0'} + '@keystonehq/alias-sampling@0.1.2': resolution: {integrity: sha512-5ukLB3bcgltgaFfQfYKYwHDUbwHicekYo53fSEa7xhVkAEqsA74kxdIwoBIURmGUtXe3EVIRm4SYlgcrt2Ri0w==} @@ -10008,6 +10018,9 @@ packages: '@types/keyv@3.1.4': resolution: {integrity: sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==} + '@types/linkify-it@5.0.0': + resolution: {integrity: sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==} + '@types/lodash.values@4.3.9': resolution: {integrity: sha512-IJ20OEfqNwm3k8ENwoM3q0yOs4UMpgtD4GqxB4lwBHToGthHWqhyh5DdSgQjioocz0QK2SSBkJfCq95ZTV8BTw==} @@ -10020,9 +10033,15 @@ packages: '@types/lru-cache@5.1.1': resolution: {integrity: sha512-ssE3Vlrys7sdIzs5LOxCzTVMsU7i9oa/IaW92wF32JFb3CVczqOkru2xspuKczHEbG3nvmPY7IFqVmGGHdNbYw==} + '@types/markdown-it@14.1.2': + resolution: {integrity: sha512-promo4eFwuiW+TfGxhi+0x3czqTYJkG8qB17ZUJiVF10Xm7NLVRSLUsfRTU/6h1e24VvRnXCx+hG7li58lkzog==} + '@types/mdast@4.0.4': resolution: {integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==} + '@types/mdurl@2.0.0': + resolution: {integrity: sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==} + '@types/mdx@2.0.13': resolution: {integrity: sha512-+OWZQfAYyio6YkJb3HLxDrvnx6SWWDbC0zVPfBRzUk0/nqoDyf6dNxQi3eArPe8rJ473nobTMQ/8Zk+LxJ+Yuw==} @@ -11926,6 +11945,10 @@ packages: resolution: {integrity: sha512-K7Qy8O9p76sL3/3m7/zLKbRkyOlSZAgzEaLhyj2mXS8PsCud2Eo4hAb8aLtZqHh0QGqLcb9dlJSu6lHRVENm1w==} engines: {node: '>=6'} + catharsis@0.9.0: + resolution: {integrity: sha512-prMTQVpcns/tzFgFVkVp6ak6RykZyWb3gu8ckUpd6YkTlacOd3DXGJjIpD4Q6zJirizvaiAjSSHlOsA+6sNh2A==} + engines: {node: '>= 10'} + cbor-sync@1.0.4: resolution: {integrity: sha512-GWlXN4wiz0vdWWXBU71Dvc1q3aBo0HytqwAZnXF1wOwjqNnDWA1vZ1gDMFLlqohak31VQzmhiYfiCX5QSSfagA==} @@ -13487,6 +13510,11 @@ packages: resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} engines: {node: '>=10'} + escodegen@1.14.3: + resolution: {integrity: sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==} + engines: {node: '>=4.0'} + hasBin: true + escodegen@2.1.0: resolution: {integrity: sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==} engines: {node: '>=6.0'} @@ -15706,6 +15734,9 @@ packages: resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} hasBin: true + js2xmlparser@4.0.2: + resolution: {integrity: sha512-6n4D8gLlLf1n5mNLQPRfViYzu9RATblzPEtm1SthMX1Pjao0r9YI9nw7ZIfRxQMERS87mcswrg+r/OYrPRX6jA==} + jsbi@3.2.5: resolution: {integrity: sha512-aBE4n43IPvjaddScbvWRA2YlTzKEynHzu7MqOyTipdHucf/VxS63ViCjxYRg86M8Rxwbt/GfzHl1kKERkt45fQ==} @@ -15736,6 +15767,11 @@ packages: resolution: {integrity: sha512-Hicd6JK5Njt2QB6XYFS7ok9e37O8AYk3jTcppG4YVQnYjOemymvTcmc7OWsmq/Qqj5TdRFO5/x/tIPmBeRtGHg==} engines: {node: '>=12.0.0'} + jsdoc@4.0.4: + resolution: {integrity: sha512-zeFezwyXeG4syyYHbvh1A967IAqq/67yXtXvuL5wnqCkFZe8I0vKfm+EO+YEvLguo6w9CDUbrAXVtJSHh2E8rw==} + engines: {node: '>=12.0.0'} + hasBin: true + jsdom@20.0.3: resolution: {integrity: sha512-SYhBvTh89tTfCD/CRdSOm13mOBa42iTaTyfyEWBdKcGdPxPtLFBXuHR8XHb33YNYaP+lLbmSvBTsnoesCNJEsQ==} engines: {node: '>=14'} @@ -15903,6 +15939,9 @@ packages: klaw@1.3.1: resolution: {integrity: sha512-TED5xi9gGQjGpNnvRWknrwAB1eL5GciPfVFOt3Vk1OJCVDQbzuSfrF3hkUQKlsgKrG1F+0t5W0m+Fje1jIt8rw==} + klaw@3.0.0: + resolution: {integrity: sha512-0Fo5oir+O9jnXu5EefYbVK+mHMBeEVEy2cmctR1O1NECcCkPRreJKrS6Qt/j3KC2C148Dfo9i3pCmCMsdqGr0g==} + kleur@3.0.3: resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==} engines: {node: '>=6'} @@ -16009,6 +16048,10 @@ packages: resolution: {integrity: sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==} engines: {node: '>=6'} + levn@0.3.0: + resolution: {integrity: sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==} + engines: {node: '>= 0.8.0'} + levn@0.4.1: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} engines: {node: '>= 0.8.0'} @@ -16262,6 +16305,12 @@ packages: map-or-similar@1.5.0: resolution: {integrity: sha512-0aF7ZmVon1igznGI4VS30yugpduQW3y3GkcgGJOp7d8x8QrizhigUxjI/m2UojsXXto+jLAH3KSz+xOJTiORjg==} + markdown-it-anchor@8.6.7: + resolution: {integrity: sha512-FlCHFwNnutLgVTflOYHPW2pPcl2AACqVzExlkGQNsi4CJgqOHN7YTgDd4LuhgN1BFO3TS0vLAruV1Td6dwWPJA==} + peerDependencies: + '@types/markdown-it': '*' + markdown-it: '*' + markdown-it@14.1.0: resolution: {integrity: sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==} hasBin: true @@ -17199,6 +17248,10 @@ packages: optimism@0.18.1: resolution: {integrity: sha512-mLXNwWPa9dgFyDqkNi54sjDyNJ9/fTI6WGBLgnXku1vdKY/jovHfZT5r+aiVeFFLOz+foPNOm5YJ4mqgld2GBQ==} + optionator@0.8.3: + resolution: {integrity: sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==} + engines: {node: '>= 0.8.0'} + optionator@0.9.4: resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} engines: {node: '>= 0.8.0'} @@ -17817,6 +17870,10 @@ packages: resolution: {integrity: sha512-QCYG84SgGyGzqJ/vlMsxeXd/pgL/I94ixdNFyh1PusWmTCyVfPJjZ1K1jvHtsbfnXQs2TSkEP2fR7QiMZAnKFQ==} engines: {node: '>= 0.6'} + prelude-ls@1.1.2: + resolution: {integrity: sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==} + engines: {node: '>= 0.8.0'} + prelude-ls@1.2.1: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} @@ -17956,6 +18013,13 @@ packages: property-information@7.0.0: resolution: {integrity: sha512-7D/qOz/+Y4X/rzSB6jKxKUsQnphO046ei8qxG59mtM3RG3DHgTK81HrxrmoDVINJb8NKT5ZsRbwHvQ6B68Iyhg==} + protobufjs-cli@1.1.3: + resolution: {integrity: sha512-MqD10lqF+FMsOayFiNOdOGNlXc4iKDCf0ZQPkPR+gizYh9gqUeGTWulABUCdI+N67w5RfJ6xhgX4J8pa8qmMXQ==} + engines: {node: '>=12.0.0'} + hasBin: true + peerDependencies: + protobufjs: ^7.0.0 + protobufjs@6.11.4: resolution: {integrity: sha512-5kQWPaJHi1WoCpjTGszzQ32PG2F4+wRY6BmAT4Vfw56Q2FZ4YZzK20xUYQH4YkfehY1e6QSICrJquM6xXZNcrw==} hasBin: true @@ -18527,6 +18591,9 @@ packages: requires-port@1.0.0: resolution: {integrity: sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==} + requizzle@0.2.4: + resolution: {integrity: sha512-JRrFk1D4OQ4SqovXOgdav+K8EAhSB/LJZqCz8tbX0KObcdeM15Ss59ozWMBWmmINMagCwmqn4ZNryUGpBsl6Jw==} + reselect-tree@1.3.7: resolution: {integrity: sha512-kZN+C1cVJ6fFN2smSb0l4UvYZlRzttgnu183svH4NrU22cBY++ikgr2QT75Uuk4MYpv5gXSVijw4c5U6cx6GKg==} @@ -20027,6 +20094,10 @@ packages: tweetnacl@1.0.3: resolution: {integrity: sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==} + type-check@0.3.2: + resolution: {integrity: sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==} + engines: {node: '>= 0.8.0'} + type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} @@ -20189,6 +20260,9 @@ packages: uncrypto@0.1.3: resolution: {integrity: sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==} + underscore@1.13.7: + resolution: {integrity: sha512-GMXzWtsc57XAtguZgaQViUOzs0KTkk8ojr3/xAxXLITqf/3EMwxC0inyETfDFjH/Krbhuep0HNbbjI9i/q3F3g==} + undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} @@ -21195,6 +21269,9 @@ packages: xmlchars@2.2.0: resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==} + xmlcreate@2.0.4: + resolution: {integrity: sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg==} + xmlhttprequest-ssl@2.1.2: resolution: {integrity: sha512-TEU+nJVUUnA4CYJFLvK5X9AOeH4KvDvhIfm0vV1GaQRtchnG0hgK5p8hw/xjv8cunWYCsiPCSDzObPyhEwq3KQ==} engines: {node: '>=0.4.0'} @@ -26419,6 +26496,10 @@ snapshots: '@jsdevtools/ono@7.1.3': {} + '@jsdoc/salty@0.2.9': + dependencies: + lodash: 4.17.21 + '@keystonehq/alias-sampling@0.1.2': {} '@keystonehq/bc-ur-registry-sol@0.9.5': @@ -28063,11 +28144,11 @@ snapshots: crypto-js: 4.2.0 uuidv4: 6.2.13 - '@particle-network/solana-wallet@1.3.2(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@6.0.0)': + '@particle-network/solana-wallet@1.3.2(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)': dependencies: '@particle-network/auth': 1.3.1 '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) - bs58: 6.0.0 + bs58: 5.0.0 '@paulmillr/qr@0.2.1': {} @@ -31352,7 +31433,16 @@ snapshots: '@solana/wallet-adapter-base': 0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-base-ui@0.1.3(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@6.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)': + '@solana/wallet-adapter-base-ui@0.1.3(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)': + dependencies: + '@solana/wallet-adapter-react': 0.15.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) + '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) + react: 19.1.0 + transitivePeerDependencies: + - bs58 + - react-native + + '@solana/wallet-adapter-base-ui@0.1.3(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)': dependencies: '@solana/wallet-adapter-react': 0.15.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@6.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) @@ -31470,9 +31560,9 @@ snapshots: '@solana/wallet-adapter-base': 0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-particle@0.1.13(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@6.0.0)': + '@solana/wallet-adapter-particle@0.1.13(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)': dependencies: - '@particle-network/solana-wallet': 1.3.2(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@6.0.0) + '@particle-network/solana-wallet': 1.3.2(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0) '@solana/wallet-adapter-base': 0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) transitivePeerDependencies: @@ -31483,10 +31573,22 @@ snapshots: '@solana/wallet-adapter-base': 0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-react-ui@0.9.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@6.0.0)(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)': + '@solana/wallet-adapter-react-ui@0.9.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)': + dependencies: + '@solana/wallet-adapter-base': 0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-base-ui': 0.1.3(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) + '@solana/wallet-adapter-react': 0.15.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) + '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) + react: 19.1.0 + react-dom: 19.1.0(react@19.1.0) + transitivePeerDependencies: + - bs58 + - react-native + + '@solana/wallet-adapter-react-ui@0.9.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)': dependencies: '@solana/wallet-adapter-base': 0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-base-ui': 0.1.3(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@6.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) + '@solana/wallet-adapter-base-ui': 0.1.3(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) '@solana/wallet-adapter-react': 0.15.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@6.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) react: 19.1.0 @@ -31646,7 +31748,7 @@ snapshots: - utf-8-validate - zod - '@solana/wallet-adapter-wallets@0.19.33(@babel/runtime@7.27.0)(@react-native-async-storage/async-storage@1.24.0(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@6.0.0)(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))(zod@3.24.2)': + '@solana/wallet-adapter-wallets@0.19.33(@babel/runtime@7.27.0)(@react-native-async-storage/async-storage@1.24.0(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))(zod@3.24.2)': dependencies: '@solana/wallet-adapter-alpha': 0.1.11(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-avana': 0.1.14(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) @@ -31667,7 +31769,7 @@ snapshots: '@solana/wallet-adapter-nightly': 0.1.17(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-nufi': 0.1.18(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-onto': 0.1.8(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-particle': 0.1.13(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@6.0.0) + '@solana/wallet-adapter-particle': 0.1.13(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0) '@solana/wallet-adapter-phantom': 0.9.25(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-safepal': 0.5.19(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-saifu': 0.1.16(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) @@ -33706,6 +33808,8 @@ snapshots: dependencies: '@types/node': 18.19.86 + '@types/linkify-it@5.0.0': {} + '@types/lodash.values@4.3.9': dependencies: '@types/lodash': 4.17.16 @@ -33716,10 +33820,17 @@ snapshots: '@types/lru-cache@5.1.1': {} + '@types/markdown-it@14.1.2': + dependencies: + '@types/linkify-it': 5.0.0 + '@types/mdurl': 2.0.0 + '@types/mdast@4.0.4': dependencies: '@types/unist': 3.0.3 + '@types/mdurl@2.0.0': {} + '@types/mdx@2.0.13': {} '@types/mime@1.3.5': {} @@ -36569,6 +36680,10 @@ snapshots: catering@2.1.1: {} + catharsis@0.9.0: + dependencies: + lodash: 4.17.21 + cbor-sync@1.0.4: {} cbor@10.0.3: @@ -38411,6 +38526,15 @@ snapshots: escape-string-regexp@4.0.0: {} + escodegen@1.14.3: + dependencies: + esprima: 4.0.1 + estraverse: 4.3.0 + esutils: 2.0.3 + optionator: 0.8.3 + optionalDependencies: + source-map: 0.6.1 + escodegen@2.1.0: dependencies: esprima: 4.0.1 @@ -38438,7 +38562,7 @@ snapshots: eslint: 8.56.0 eslint-import-resolver-node: 0.3.9 eslint-import-resolver-typescript: 3.10.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@5.62.0(eslint@8.56.0)(typescript@5.8.2))(eslint@8.56.0))(eslint@8.56.0) - eslint-plugin-import: 2.31.0(@typescript-eslint/parser@5.62.0(eslint@8.56.0)(typescript@5.8.2))(eslint-import-resolver-typescript@3.10.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@5.62.0(eslint@8.56.0)(typescript@5.8.2))(eslint@8.56.0))(eslint@8.56.0))(eslint@8.56.0) + eslint-plugin-import: 2.31.0(@typescript-eslint/parser@5.62.0(eslint@8.56.0)(typescript@5.8.2))(eslint-import-resolver-typescript@3.10.0)(eslint@8.56.0) eslint-plugin-jsx-a11y: 6.10.2(eslint@8.56.0) eslint-plugin-react: 7.37.4(eslint@8.56.0) eslint-plugin-react-hooks: 5.0.0-canary-7118f5dd7-20230705(eslint@8.56.0) @@ -38482,7 +38606,7 @@ snapshots: tinyglobby: 0.2.12 unrs-resolver: 1.3.3 optionalDependencies: - eslint-plugin-import: 2.31.0(@typescript-eslint/parser@5.62.0(eslint@8.56.0)(typescript@5.8.2))(eslint-import-resolver-typescript@3.10.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@5.62.0(eslint@8.56.0)(typescript@5.8.2))(eslint@8.56.0))(eslint@8.56.0))(eslint@8.56.0) + eslint-plugin-import: 2.31.0(@typescript-eslint/parser@5.62.0(eslint@8.56.0)(typescript@5.8.2))(eslint-import-resolver-typescript@3.10.0)(eslint@8.56.0) transitivePeerDependencies: - supports-color @@ -38520,7 +38644,7 @@ snapshots: eslint: 9.23.0(jiti@1.21.7) eslint-compat-utils: 0.5.1(eslint@9.23.0(jiti@1.21.7)) - eslint-plugin-import@2.31.0(@typescript-eslint/parser@5.62.0(eslint@8.56.0)(typescript@5.8.2))(eslint-import-resolver-typescript@3.10.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@5.62.0(eslint@8.56.0)(typescript@5.8.2))(eslint@8.56.0))(eslint@8.56.0))(eslint@8.56.0): + eslint-plugin-import@2.31.0(@typescript-eslint/parser@5.62.0(eslint@8.56.0)(typescript@5.8.2))(eslint-import-resolver-typescript@3.10.0)(eslint@8.56.0): dependencies: '@rtsao/scc': 1.1.0 array-includes: 3.1.8 @@ -42272,6 +42396,10 @@ snapshots: dependencies: argparse: 2.0.1 + js2xmlparser@4.0.2: + dependencies: + xmlcreate: 2.0.4 + jsbi@3.2.5: {} jsbn@0.1.1: {} @@ -42309,6 +42437,24 @@ snapshots: jsdoc-type-pratt-parser@4.1.0: {} + jsdoc@4.0.4: + dependencies: + '@babel/parser': 7.27.0 + '@jsdoc/salty': 0.2.9 + '@types/markdown-it': 14.1.2 + bluebird: 3.7.2 + catharsis: 0.9.0 + escape-string-regexp: 2.0.0 + js2xmlparser: 4.0.2 + klaw: 3.0.0 + markdown-it: 14.1.0 + markdown-it-anchor: 8.6.7(@types/markdown-it@14.1.2)(markdown-it@14.1.0) + marked: 4.3.0 + mkdirp: 1.0.4 + requizzle: 0.2.4 + strip-json-comments: 3.1.1 + underscore: 1.13.7 + jsdom@20.0.3(bufferutil@4.0.9)(utf-8-validate@5.0.10): dependencies: abab: 2.0.6 @@ -42535,6 +42681,10 @@ snapshots: optionalDependencies: graceful-fs: 4.2.11 + klaw@3.0.0: + dependencies: + graceful-fs: 4.2.11 + kleur@3.0.3: {} known-css-properties@0.35.0: {} @@ -42659,6 +42809,11 @@ snapshots: leven@3.1.0: {} + levn@0.3.0: + dependencies: + prelude-ls: 1.1.2 + type-check: 0.3.2 + levn@0.4.1: dependencies: prelude-ls: 1.2.1 @@ -42895,6 +43050,11 @@ snapshots: map-or-similar@1.5.0: {} + markdown-it-anchor@8.6.7(@types/markdown-it@14.1.2)(markdown-it@14.1.0): + dependencies: + '@types/markdown-it': 14.1.2 + markdown-it: 14.1.0 + markdown-it@14.1.0: dependencies: argparse: 2.0.1 @@ -44164,6 +44324,15 @@ snapshots: '@wry/trie': 0.5.0 tslib: 2.8.1 + optionator@0.8.3: + dependencies: + deep-is: 0.1.4 + fast-levenshtein: 2.0.6 + levn: 0.3.0 + prelude-ls: 1.1.2 + type-check: 0.3.2 + word-wrap: 1.2.5 + optionator@0.9.4: dependencies: deep-is: 0.1.4 @@ -44923,6 +45092,8 @@ snapshots: precond@0.2.3: {} + prelude-ls@1.1.2: {} + prelude-ls@1.2.1: {} prettier-plugin-solidity@1.4.2(prettier@2.8.8): @@ -45016,6 +45187,20 @@ snapshots: property-information@7.0.0: {} + protobufjs-cli@1.1.3(protobufjs@7.4.0): + dependencies: + chalk: 4.1.2 + escodegen: 1.14.3 + espree: 9.6.1 + estraverse: 5.3.0 + glob: 8.1.0 + jsdoc: 4.0.4 + minimist: 1.2.8 + protobufjs: 7.4.0 + semver: 7.7.1 + tmp: 0.2.3 + uglify-js: 3.19.3 + protobufjs@6.11.4: dependencies: '@protobufjs/aspromise': 1.1.2 @@ -45930,6 +46115,10 @@ snapshots: requires-port@1.0.0: {} + requizzle@0.2.4: + dependencies: + lodash: 4.17.21 + reselect-tree@1.3.7: dependencies: debug: 3.2.7 @@ -48082,6 +48271,10 @@ snapshots: tweetnacl@1.0.3: {} + type-check@0.3.2: + dependencies: + prelude-ls: 1.1.2 + type-check@0.4.0: dependencies: prelude-ls: 1.2.1 @@ -48230,6 +48423,8 @@ snapshots: uncrypto@0.1.3: {} + underscore@1.13.7: {} + undici-types@5.26.5: {} undici-types@6.19.8: {} @@ -49882,6 +50077,8 @@ snapshots: xmlchars@2.2.0: {} + xmlcreate@2.0.4: {} + xmlhttprequest-ssl@2.1.2: {} xmlhttprequest@1.8.0: {} From 36a34bbbe4340f14144e4e556def67715251b69d Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Mon, 7 Apr 2025 15:41:41 -0700 Subject: [PATCH 10/26] update js generated files --- lazer/sdk/js/src/generated/proto.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lazer/sdk/js/src/generated/proto.js b/lazer/sdk/js/src/generated/proto.js index 3835f0ba03..83c89df040 100644 --- a/lazer/sdk/js/src/generated/proto.js +++ b/lazer/sdk/js/src/generated/proto.js @@ -358,9 +358,9 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { if (!writer) writer = $Writer.create(); if (message.priceUpdateV1 != null && Object.hasOwnProperty.call(message, "priceUpdateV1")) - $root.pyth_lazer_transaction.PriceUpdateV1.encode(message.priceUpdateV1, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.pyth_lazer_transaction.PriceUpdateV1.encode(message.priceUpdateV1, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.fundingRateUpdateV1 != null && Object.hasOwnProperty.call(message, "fundingRateUpdateV1")) - $root.pyth_lazer_transaction.FundingRateUpdateV1.encode(message.fundingRateUpdateV1, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.pyth_lazer_transaction.FundingRateUpdateV1.encode(message.fundingRateUpdateV1, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -395,11 +395,11 @@ export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 3: { + case 1: { message.priceUpdateV1 = $root.pyth_lazer_transaction.PriceUpdateV1.decode(reader, reader.uint32()); break; } - case 4: { + case 2: { message.fundingRateUpdateV1 = $root.pyth_lazer_transaction.FundingRateUpdateV1.decode(reader, reader.uint32()); break; } From 308ea147ea90d4be4e5286a4e43da21873b00454 Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Tue, 8 Apr 2025 14:46:22 -0700 Subject: [PATCH 11/26] Add turbo build and update proto codegen command --- lazer/sdk/js/package.json | 3 +-- lazer/sdk/js/turbo.json | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 lazer/sdk/js/turbo.json diff --git a/lazer/sdk/js/package.json b/lazer/sdk/js/package.json index 333b2325f8..f4b454ee21 100644 --- a/lazer/sdk/js/package.json +++ b/lazer/sdk/js/package.json @@ -21,8 +21,7 @@ } }, "scripts": { - "proto-codegen": "mkdir -p src/generated && pnpm exec pbjs -t static-module -w es6 -o src/generated/proto.js ../proto/*.proto && pnpm exec pbts -o src/generated/proto.d.ts src/generated/proto.js", - "prebuild": "rm -rf ./src/generated && pnpm run proto-codegen", + "build:proto-codegen": "mkdir -p src/generated && pnpm exec pbjs -t static-module -w es6 -o src/generated/proto.js ../proto/*.proto && pnpm exec pbts -o src/generated/proto.d.ts src/generated/proto.js", "build:cjs": "tsc --project tsconfig.build.json --verbatimModuleSyntax false --module commonjs --outDir ./dist/cjs && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json", "build:esm": "tsc --project tsconfig.build.json --outDir ./dist/esm && echo '{\"type\":\"module\"}' > dist/esm/package.json", "fix:lint": "eslint --fix . --max-warnings 0", diff --git a/lazer/sdk/js/turbo.json b/lazer/sdk/js/turbo.json new file mode 100644 index 0000000000..3fe1d1f8a0 --- /dev/null +++ b/lazer/sdk/js/turbo.json @@ -0,0 +1,24 @@ +{ + "$schema": "https://turbo.build/schema.json", + "extends": ["//"], + "tasks": { + "build:proto-codegen": { + "dependsOn": ["//#install:modules"], + "inputs": ["../proto/**"], + "outputs": ["src/generated/**"], + "cache": false + }, + "build": { + "dependsOn": ["build:proto-codegen", "^build"], + "outputs": ["dist/**"] + }, + "build:cjs": { + "dependsOn": ["build:proto-codegen"], + "outputs": ["dist/cjs/**"] + }, + "build:esm": { + "dependsOn": ["build:proto-codegen"], + "outputs": ["dist/esm/**"] + } + } +} From 1bcbe45520d069012ec15837530e1f7513f9d626 Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Tue, 8 Apr 2025 14:48:59 -0700 Subject: [PATCH 12/26] update readme --- lazer/sdk/js/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lazer/sdk/js/README.md b/lazer/sdk/js/README.md index 65e587c6c9..38e88e14c8 100644 --- a/lazer/sdk/js/README.md +++ b/lazer/sdk/js/README.md @@ -3,3 +3,15 @@ ## Contributing & Development See [contributing.md](docs/contributing/contributing.md) for information on how to develop or contribute to this project! + +## Installation and build + +### pnpm + +``` +cd to crosschain root +$ pnpm install +$ pnpm turbo --filter @pythnetwork/pyth-lazer-sdk build +``` + +As part of the build, files will be generated from the proto files found in the lazer/proto folder. These generated files are placed in the src/generated/ folder. From 031ea71fc0dd507c33c7fd4b19d1712c55bd2b6e Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Tue, 8 Apr 2025 15:33:09 -0700 Subject: [PATCH 13/26] comment proto file --- lazer/sdk/proto/publisher_update.proto | 57 ++++++++++++++------ lazer/sdk/proto/pyth_lazer_transaction.proto | 21 ++++++-- 2 files changed, 57 insertions(+), 21 deletions(-) diff --git a/lazer/sdk/proto/publisher_update.proto b/lazer/sdk/proto/publisher_update.proto index b858534900..769726f8c3 100644 --- a/lazer/sdk/proto/publisher_update.proto +++ b/lazer/sdk/proto/publisher_update.proto @@ -1,32 +1,55 @@ syntax = "proto3"; +import "google/protobuf/timestamp.proto"; + package pyth_lazer_transaction; +// PublisherUpdate contains an array of individual updates and a timestamp message PublisherUpdate { + // Array of updates, each of which target a single feed repeated FeedUpdate updates = 1; - uint64 batch_timestamp_us = 2; + + // Timestamp when this message was created + optional google.protobuf.Timestamp publisher_timestamp = 2; } +// Update to a feed. May contain different types of data depending on what kind of update it is message FeedUpdate { + // Feed which the update should be applied to + // Should match a feed id recognized by PythLazer + optional uint32 feed_id = 1; + + // Timestamp when this data was first acquired or generated + optional google.protobuf.Timestamp source_timestamp = 2; + + // one of the valid updates allowed by publishers for a lazer feed oneof update { - PriceUpdateV1 price_update_v1 = 1; - FundingRateUpdateV1 funding_rate_update_v1 = 2; - } + PriceUpdate price_update = 3; + FundingRateUpdate funding_rate_update = 4; + }; } -message PriceUpdateV1 { - uint32 feed_id = 1; - uint64 source_timestamp_us = 2; - uint64 publisher_timestamp_us = 3; - optional int64 price = 4; - optional int64 best_bid_price = 5; - optional int64 best_ask_price = 6; +message PriceUpdate { + // Price for the symbol as an integer + // Should be produced with a matching exponent to the configured exponent value in PythLazer + // May be missing if no price data is available + optional int64 price = 1; + + // Best Bid Price for the symbol as an integer + // Should be produced with a matching exponent to the configured exponent value in PythLazer + // May be missing if no data is available + optional int64 best_bid_price = 2; + + // Best Ask Price for the symbol as an integer + // Should be produced with a matching exponent to the configured exponent value in PythLazer + // May be missing if no data is available + optional int64 best_ask_price = 3; } -message FundingRateUpdateV1 { - uint32 feed_id = 1; - uint64 source_timestamp_us = 2; - uint64 publisher_timestamp_us = 3; - optional int64 price = 4; - optional int64 rate = 5; +message FundingRateUpdate { + // Price for which the funding rate applies to + optional int64 price = 1; + + // Perpetual Future funding rate + optional int64 rate = 2; } diff --git a/lazer/sdk/proto/pyth_lazer_transaction.proto b/lazer/sdk/proto/pyth_lazer_transaction.proto index 80a5fe4e60..203df35076 100644 --- a/lazer/sdk/proto/pyth_lazer_transaction.proto +++ b/lazer/sdk/proto/pyth_lazer_transaction.proto @@ -4,18 +4,31 @@ package pyth_lazer_transaction; import "publisher_update.proto"; +// Types of Signatures allowed for signing Lazer Transactions enum TransactionSignatureType { + // signature is 64 bytes long ed25519 = 0; } +// Signed lazer transaction payload +// This is what Pyth Lazer expects as input to the system message SignedLazerTransaction { - TransactionSignatureType signature_type = 1; - bytes signature = 2; - bytes transaction = 3; + // Type and signature should match + optional TransactionSignatureType signature_type = 1; + + // Signature derived by signing payload with private key + optional bytes signature = 2; + + // a LazerTransaction message which is already encoded with protobuf as bytes + // The encoded bytes are what should be signed + optional bytes payload = 3; } +// Transaction contianing one of the valid Lazer Transactions message LazerTransaction { oneof payload { - PublisherUpdate publisher_updates = 1; + // Expected transaction sent by Publishers + // May contain many individual updates to various feeds + PublisherUpdate publisher_update = 1; } } From a06c2d4ae63bd5775e0f95ec8f7ab1c1d8eda80c Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Tue, 8 Apr 2025 15:34:38 -0700 Subject: [PATCH 14/26] add prost-types --- lazer/Cargo.lock | 1 + lazer/sdk/rust/protocol/Cargo.toml | 1 + 2 files changed, 2 insertions(+) diff --git a/lazer/Cargo.lock b/lazer/Cargo.lock index 26ebdec38c..bca340efe3 100644 --- a/lazer/Cargo.lock +++ b/lazer/Cargo.lock @@ -3882,6 +3882,7 @@ dependencies = [ "libsecp256k1 0.7.1", "prost", "prost-build", + "prost-types", "rust_decimal", "serde", "serde_json", diff --git a/lazer/sdk/rust/protocol/Cargo.toml b/lazer/sdk/rust/protocol/Cargo.toml index b44e9ae45d..3460de1c71 100644 --- a/lazer/sdk/rust/protocol/Cargo.toml +++ b/lazer/sdk/rust/protocol/Cargo.toml @@ -17,6 +17,7 @@ itertools = "0.13.0" rust_decimal = "1.36.0" base64 = "0.22.1" prost = "0.13.5" +prost-types = "0.13.5" [dev-dependencies] bincode = "1.3.3" From 56b5a566e35d15e85afd0b3d0e84fb0d2ba32b9c Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Tue, 8 Apr 2025 15:37:19 -0700 Subject: [PATCH 15/26] remove generated files --- lazer/sdk/js/src/generated/proto.d.ts | 676 --------- lazer/sdk/js/src/generated/proto.js | 1846 ------------------------- 2 files changed, 2522 deletions(-) delete mode 100644 lazer/sdk/js/src/generated/proto.d.ts delete mode 100644 lazer/sdk/js/src/generated/proto.js diff --git a/lazer/sdk/js/src/generated/proto.d.ts b/lazer/sdk/js/src/generated/proto.d.ts deleted file mode 100644 index 18962b7bcc..0000000000 --- a/lazer/sdk/js/src/generated/proto.d.ts +++ /dev/null @@ -1,676 +0,0 @@ -import * as $protobuf from "protobufjs"; -import Long = require("long"); -/** Namespace pyth_lazer_transaction. */ -export namespace pyth_lazer_transaction { - - /** Properties of a PublisherUpdate. */ - interface IPublisherUpdate { - - /** PublisherUpdate updates */ - updates?: (pyth_lazer_transaction.IFeedUpdate[]|null); - - /** PublisherUpdate batchTimestampUs */ - batchTimestampUs?: (number|Long|null); - } - - /** Represents a PublisherUpdate. */ - class PublisherUpdate implements IPublisherUpdate { - - /** - * Constructs a new PublisherUpdate. - * @param [properties] Properties to set - */ - constructor(properties?: pyth_lazer_transaction.IPublisherUpdate); - - /** PublisherUpdate updates. */ - public updates: pyth_lazer_transaction.IFeedUpdate[]; - - /** PublisherUpdate batchTimestampUs. */ - public batchTimestampUs: (number|Long); - - /** - * Creates a new PublisherUpdate instance using the specified properties. - * @param [properties] Properties to set - * @returns PublisherUpdate instance - */ - public static create(properties?: pyth_lazer_transaction.IPublisherUpdate): pyth_lazer_transaction.PublisherUpdate; - - /** - * Encodes the specified PublisherUpdate message. Does not implicitly {@link pyth_lazer_transaction.PublisherUpdate.verify|verify} messages. - * @param message PublisherUpdate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: pyth_lazer_transaction.IPublisherUpdate, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PublisherUpdate message, length delimited. Does not implicitly {@link pyth_lazer_transaction.PublisherUpdate.verify|verify} messages. - * @param message PublisherUpdate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: pyth_lazer_transaction.IPublisherUpdate, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PublisherUpdate message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PublisherUpdate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer_transaction.PublisherUpdate; - - /** - * Decodes a PublisherUpdate message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PublisherUpdate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer_transaction.PublisherUpdate; - - /** - * Verifies a PublisherUpdate message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PublisherUpdate message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PublisherUpdate - */ - public static fromObject(object: { [k: string]: any }): pyth_lazer_transaction.PublisherUpdate; - - /** - * Creates a plain object from a PublisherUpdate message. Also converts values to other types if specified. - * @param message PublisherUpdate - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: pyth_lazer_transaction.PublisherUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PublisherUpdate to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PublisherUpdate - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a FeedUpdate. */ - interface IFeedUpdate { - - /** FeedUpdate priceUpdateV1 */ - priceUpdateV1?: (pyth_lazer_transaction.IPriceUpdateV1|null); - - /** FeedUpdate fundingRateUpdateV1 */ - fundingRateUpdateV1?: (pyth_lazer_transaction.IFundingRateUpdateV1|null); - } - - /** Represents a FeedUpdate. */ - class FeedUpdate implements IFeedUpdate { - - /** - * Constructs a new FeedUpdate. - * @param [properties] Properties to set - */ - constructor(properties?: pyth_lazer_transaction.IFeedUpdate); - - /** FeedUpdate priceUpdateV1. */ - public priceUpdateV1?: (pyth_lazer_transaction.IPriceUpdateV1|null); - - /** FeedUpdate fundingRateUpdateV1. */ - public fundingRateUpdateV1?: (pyth_lazer_transaction.IFundingRateUpdateV1|null); - - /** FeedUpdate update. */ - public update?: ("priceUpdateV1"|"fundingRateUpdateV1"); - - /** - * Creates a new FeedUpdate instance using the specified properties. - * @param [properties] Properties to set - * @returns FeedUpdate instance - */ - public static create(properties?: pyth_lazer_transaction.IFeedUpdate): pyth_lazer_transaction.FeedUpdate; - - /** - * Encodes the specified FeedUpdate message. Does not implicitly {@link pyth_lazer_transaction.FeedUpdate.verify|verify} messages. - * @param message FeedUpdate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: pyth_lazer_transaction.IFeedUpdate, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FeedUpdate message, length delimited. Does not implicitly {@link pyth_lazer_transaction.FeedUpdate.verify|verify} messages. - * @param message FeedUpdate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: pyth_lazer_transaction.IFeedUpdate, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FeedUpdate message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FeedUpdate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer_transaction.FeedUpdate; - - /** - * Decodes a FeedUpdate message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FeedUpdate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer_transaction.FeedUpdate; - - /** - * Verifies a FeedUpdate message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FeedUpdate message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeedUpdate - */ - public static fromObject(object: { [k: string]: any }): pyth_lazer_transaction.FeedUpdate; - - /** - * Creates a plain object from a FeedUpdate message. Also converts values to other types if specified. - * @param message FeedUpdate - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: pyth_lazer_transaction.FeedUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FeedUpdate to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for FeedUpdate - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PriceUpdateV1. */ - interface IPriceUpdateV1 { - - /** PriceUpdateV1 feedId */ - feedId?: (number|null); - - /** PriceUpdateV1 sourceTimestampUs */ - sourceTimestampUs?: (number|Long|null); - - /** PriceUpdateV1 publisherTimestampUs */ - publisherTimestampUs?: (number|Long|null); - - /** PriceUpdateV1 price */ - price?: (number|Long|null); - - /** PriceUpdateV1 bestBidPrice */ - bestBidPrice?: (number|Long|null); - - /** PriceUpdateV1 bestAskPrice */ - bestAskPrice?: (number|Long|null); - } - - /** Represents a PriceUpdateV1. */ - class PriceUpdateV1 implements IPriceUpdateV1 { - - /** - * Constructs a new PriceUpdateV1. - * @param [properties] Properties to set - */ - constructor(properties?: pyth_lazer_transaction.IPriceUpdateV1); - - /** PriceUpdateV1 feedId. */ - public feedId: number; - - /** PriceUpdateV1 sourceTimestampUs. */ - public sourceTimestampUs: (number|Long); - - /** PriceUpdateV1 publisherTimestampUs. */ - public publisherTimestampUs: (number|Long); - - /** PriceUpdateV1 price. */ - public price?: (number|Long|null); - - /** PriceUpdateV1 bestBidPrice. */ - public bestBidPrice?: (number|Long|null); - - /** PriceUpdateV1 bestAskPrice. */ - public bestAskPrice?: (number|Long|null); - - /** - * Creates a new PriceUpdateV1 instance using the specified properties. - * @param [properties] Properties to set - * @returns PriceUpdateV1 instance - */ - public static create(properties?: pyth_lazer_transaction.IPriceUpdateV1): pyth_lazer_transaction.PriceUpdateV1; - - /** - * Encodes the specified PriceUpdateV1 message. Does not implicitly {@link pyth_lazer_transaction.PriceUpdateV1.verify|verify} messages. - * @param message PriceUpdateV1 message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: pyth_lazer_transaction.IPriceUpdateV1, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PriceUpdateV1 message, length delimited. Does not implicitly {@link pyth_lazer_transaction.PriceUpdateV1.verify|verify} messages. - * @param message PriceUpdateV1 message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: pyth_lazer_transaction.IPriceUpdateV1, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PriceUpdateV1 message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PriceUpdateV1 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer_transaction.PriceUpdateV1; - - /** - * Decodes a PriceUpdateV1 message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PriceUpdateV1 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer_transaction.PriceUpdateV1; - - /** - * Verifies a PriceUpdateV1 message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PriceUpdateV1 message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PriceUpdateV1 - */ - public static fromObject(object: { [k: string]: any }): pyth_lazer_transaction.PriceUpdateV1; - - /** - * Creates a plain object from a PriceUpdateV1 message. Also converts values to other types if specified. - * @param message PriceUpdateV1 - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: pyth_lazer_transaction.PriceUpdateV1, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PriceUpdateV1 to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PriceUpdateV1 - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a FundingRateUpdateV1. */ - interface IFundingRateUpdateV1 { - - /** FundingRateUpdateV1 feedId */ - feedId?: (number|null); - - /** FundingRateUpdateV1 sourceTimestampUs */ - sourceTimestampUs?: (number|Long|null); - - /** FundingRateUpdateV1 publisherTimestampUs */ - publisherTimestampUs?: (number|Long|null); - - /** FundingRateUpdateV1 price */ - price?: (number|Long|null); - - /** FundingRateUpdateV1 rate */ - rate?: (number|Long|null); - } - - /** Represents a FundingRateUpdateV1. */ - class FundingRateUpdateV1 implements IFundingRateUpdateV1 { - - /** - * Constructs a new FundingRateUpdateV1. - * @param [properties] Properties to set - */ - constructor(properties?: pyth_lazer_transaction.IFundingRateUpdateV1); - - /** FundingRateUpdateV1 feedId. */ - public feedId: number; - - /** FundingRateUpdateV1 sourceTimestampUs. */ - public sourceTimestampUs: (number|Long); - - /** FundingRateUpdateV1 publisherTimestampUs. */ - public publisherTimestampUs: (number|Long); - - /** FundingRateUpdateV1 price. */ - public price?: (number|Long|null); - - /** FundingRateUpdateV1 rate. */ - public rate?: (number|Long|null); - - /** - * Creates a new FundingRateUpdateV1 instance using the specified properties. - * @param [properties] Properties to set - * @returns FundingRateUpdateV1 instance - */ - public static create(properties?: pyth_lazer_transaction.IFundingRateUpdateV1): pyth_lazer_transaction.FundingRateUpdateV1; - - /** - * Encodes the specified FundingRateUpdateV1 message. Does not implicitly {@link pyth_lazer_transaction.FundingRateUpdateV1.verify|verify} messages. - * @param message FundingRateUpdateV1 message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: pyth_lazer_transaction.IFundingRateUpdateV1, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FundingRateUpdateV1 message, length delimited. Does not implicitly {@link pyth_lazer_transaction.FundingRateUpdateV1.verify|verify} messages. - * @param message FundingRateUpdateV1 message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: pyth_lazer_transaction.IFundingRateUpdateV1, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FundingRateUpdateV1 message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FundingRateUpdateV1 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer_transaction.FundingRateUpdateV1; - - /** - * Decodes a FundingRateUpdateV1 message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FundingRateUpdateV1 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer_transaction.FundingRateUpdateV1; - - /** - * Verifies a FundingRateUpdateV1 message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FundingRateUpdateV1 message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FundingRateUpdateV1 - */ - public static fromObject(object: { [k: string]: any }): pyth_lazer_transaction.FundingRateUpdateV1; - - /** - * Creates a plain object from a FundingRateUpdateV1 message. Also converts values to other types if specified. - * @param message FundingRateUpdateV1 - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: pyth_lazer_transaction.FundingRateUpdateV1, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FundingRateUpdateV1 to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for FundingRateUpdateV1 - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** TransactionSignatureType enum. */ - enum TransactionSignatureType { - ed25519 = 0 - } - - /** Properties of a SignedLazerTransaction. */ - interface ISignedLazerTransaction { - - /** SignedLazerTransaction signatureType */ - signatureType?: (pyth_lazer_transaction.TransactionSignatureType|null); - - /** SignedLazerTransaction signature */ - signature?: (Uint8Array|null); - - /** SignedLazerTransaction transaction */ - transaction?: (Uint8Array|null); - } - - /** Represents a SignedLazerTransaction. */ - class SignedLazerTransaction implements ISignedLazerTransaction { - - /** - * Constructs a new SignedLazerTransaction. - * @param [properties] Properties to set - */ - constructor(properties?: pyth_lazer_transaction.ISignedLazerTransaction); - - /** SignedLazerTransaction signatureType. */ - public signatureType: pyth_lazer_transaction.TransactionSignatureType; - - /** SignedLazerTransaction signature. */ - public signature: Uint8Array; - - /** SignedLazerTransaction transaction. */ - public transaction: Uint8Array; - - /** - * Creates a new SignedLazerTransaction instance using the specified properties. - * @param [properties] Properties to set - * @returns SignedLazerTransaction instance - */ - public static create(properties?: pyth_lazer_transaction.ISignedLazerTransaction): pyth_lazer_transaction.SignedLazerTransaction; - - /** - * Encodes the specified SignedLazerTransaction message. Does not implicitly {@link pyth_lazer_transaction.SignedLazerTransaction.verify|verify} messages. - * @param message SignedLazerTransaction message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: pyth_lazer_transaction.ISignedLazerTransaction, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SignedLazerTransaction message, length delimited. Does not implicitly {@link pyth_lazer_transaction.SignedLazerTransaction.verify|verify} messages. - * @param message SignedLazerTransaction message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: pyth_lazer_transaction.ISignedLazerTransaction, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SignedLazerTransaction message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SignedLazerTransaction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer_transaction.SignedLazerTransaction; - - /** - * Decodes a SignedLazerTransaction message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SignedLazerTransaction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer_transaction.SignedLazerTransaction; - - /** - * Verifies a SignedLazerTransaction message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SignedLazerTransaction message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SignedLazerTransaction - */ - public static fromObject(object: { [k: string]: any }): pyth_lazer_transaction.SignedLazerTransaction; - - /** - * Creates a plain object from a SignedLazerTransaction message. Also converts values to other types if specified. - * @param message SignedLazerTransaction - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: pyth_lazer_transaction.SignedLazerTransaction, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SignedLazerTransaction to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SignedLazerTransaction - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a LazerTransaction. */ - interface ILazerTransaction { - - /** LazerTransaction publisherUpdates */ - publisherUpdates?: (pyth_lazer_transaction.IPublisherUpdate|null); - } - - /** Represents a LazerTransaction. */ - class LazerTransaction implements ILazerTransaction { - - /** - * Constructs a new LazerTransaction. - * @param [properties] Properties to set - */ - constructor(properties?: pyth_lazer_transaction.ILazerTransaction); - - /** LazerTransaction publisherUpdates. */ - public publisherUpdates?: (pyth_lazer_transaction.IPublisherUpdate|null); - - /** LazerTransaction payload. */ - public payload?: "publisherUpdates"; - - /** - * Creates a new LazerTransaction instance using the specified properties. - * @param [properties] Properties to set - * @returns LazerTransaction instance - */ - public static create(properties?: pyth_lazer_transaction.ILazerTransaction): pyth_lazer_transaction.LazerTransaction; - - /** - * Encodes the specified LazerTransaction message. Does not implicitly {@link pyth_lazer_transaction.LazerTransaction.verify|verify} messages. - * @param message LazerTransaction message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: pyth_lazer_transaction.ILazerTransaction, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified LazerTransaction message, length delimited. Does not implicitly {@link pyth_lazer_transaction.LazerTransaction.verify|verify} messages. - * @param message LazerTransaction message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: pyth_lazer_transaction.ILazerTransaction, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LazerTransaction message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LazerTransaction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pyth_lazer_transaction.LazerTransaction; - - /** - * Decodes a LazerTransaction message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LazerTransaction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pyth_lazer_transaction.LazerTransaction; - - /** - * Verifies a LazerTransaction message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a LazerTransaction message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LazerTransaction - */ - public static fromObject(object: { [k: string]: any }): pyth_lazer_transaction.LazerTransaction; - - /** - * Creates a plain object from a LazerTransaction message. Also converts values to other types if specified. - * @param message LazerTransaction - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: pyth_lazer_transaction.LazerTransaction, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this LazerTransaction to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for LazerTransaction - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } -} diff --git a/lazer/sdk/js/src/generated/proto.js b/lazer/sdk/js/src/generated/proto.js deleted file mode 100644 index 83c89df040..0000000000 --- a/lazer/sdk/js/src/generated/proto.js +++ /dev/null @@ -1,1846 +0,0 @@ -/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ -import * as $protobuf from "protobufjs/minimal"; - -// Common aliases -const $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; - -// Exported root namespace -const $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {}); - -export const pyth_lazer_transaction = $root.pyth_lazer_transaction = (() => { - - /** - * Namespace pyth_lazer_transaction. - * @exports pyth_lazer_transaction - * @namespace - */ - const pyth_lazer_transaction = {}; - - pyth_lazer_transaction.PublisherUpdate = (function() { - - /** - * Properties of a PublisherUpdate. - * @memberof pyth_lazer_transaction - * @interface IPublisherUpdate - * @property {Array.|null} [updates] PublisherUpdate updates - * @property {number|Long|null} [batchTimestampUs] PublisherUpdate batchTimestampUs - */ - - /** - * Constructs a new PublisherUpdate. - * @memberof pyth_lazer_transaction - * @classdesc Represents a PublisherUpdate. - * @implements IPublisherUpdate - * @constructor - * @param {pyth_lazer_transaction.IPublisherUpdate=} [properties] Properties to set - */ - function PublisherUpdate(properties) { - this.updates = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PublisherUpdate updates. - * @member {Array.} updates - * @memberof pyth_lazer_transaction.PublisherUpdate - * @instance - */ - PublisherUpdate.prototype.updates = $util.emptyArray; - - /** - * PublisherUpdate batchTimestampUs. - * @member {number|Long} batchTimestampUs - * @memberof pyth_lazer_transaction.PublisherUpdate - * @instance - */ - PublisherUpdate.prototype.batchTimestampUs = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Creates a new PublisherUpdate instance using the specified properties. - * @function create - * @memberof pyth_lazer_transaction.PublisherUpdate - * @static - * @param {pyth_lazer_transaction.IPublisherUpdate=} [properties] Properties to set - * @returns {pyth_lazer_transaction.PublisherUpdate} PublisherUpdate instance - */ - PublisherUpdate.create = function create(properties) { - return new PublisherUpdate(properties); - }; - - /** - * Encodes the specified PublisherUpdate message. Does not implicitly {@link pyth_lazer_transaction.PublisherUpdate.verify|verify} messages. - * @function encode - * @memberof pyth_lazer_transaction.PublisherUpdate - * @static - * @param {pyth_lazer_transaction.IPublisherUpdate} message PublisherUpdate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PublisherUpdate.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.updates != null && message.updates.length) - for (let i = 0; i < message.updates.length; ++i) - $root.pyth_lazer_transaction.FeedUpdate.encode(message.updates[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.batchTimestampUs != null && Object.hasOwnProperty.call(message, "batchTimestampUs")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.batchTimestampUs); - return writer; - }; - - /** - * Encodes the specified PublisherUpdate message, length delimited. Does not implicitly {@link pyth_lazer_transaction.PublisherUpdate.verify|verify} messages. - * @function encodeDelimited - * @memberof pyth_lazer_transaction.PublisherUpdate - * @static - * @param {pyth_lazer_transaction.IPublisherUpdate} message PublisherUpdate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PublisherUpdate.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a PublisherUpdate message from the specified reader or buffer. - * @function decode - * @memberof pyth_lazer_transaction.PublisherUpdate - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {pyth_lazer_transaction.PublisherUpdate} PublisherUpdate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PublisherUpdate.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer_transaction.PublisherUpdate(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.updates && message.updates.length)) - message.updates = []; - message.updates.push($root.pyth_lazer_transaction.FeedUpdate.decode(reader, reader.uint32())); - break; - } - case 2: { - message.batchTimestampUs = reader.uint64(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a PublisherUpdate message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof pyth_lazer_transaction.PublisherUpdate - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {pyth_lazer_transaction.PublisherUpdate} PublisherUpdate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PublisherUpdate.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PublisherUpdate message. - * @function verify - * @memberof pyth_lazer_transaction.PublisherUpdate - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PublisherUpdate.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.updates != null && message.hasOwnProperty("updates")) { - if (!Array.isArray(message.updates)) - return "updates: array expected"; - for (let i = 0; i < message.updates.length; ++i) { - let error = $root.pyth_lazer_transaction.FeedUpdate.verify(message.updates[i]); - if (error) - return "updates." + error; - } - } - if (message.batchTimestampUs != null && message.hasOwnProperty("batchTimestampUs")) - if (!$util.isInteger(message.batchTimestampUs) && !(message.batchTimestampUs && $util.isInteger(message.batchTimestampUs.low) && $util.isInteger(message.batchTimestampUs.high))) - return "batchTimestampUs: integer|Long expected"; - return null; - }; - - /** - * Creates a PublisherUpdate message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof pyth_lazer_transaction.PublisherUpdate - * @static - * @param {Object.} object Plain object - * @returns {pyth_lazer_transaction.PublisherUpdate} PublisherUpdate - */ - PublisherUpdate.fromObject = function fromObject(object) { - if (object instanceof $root.pyth_lazer_transaction.PublisherUpdate) - return object; - let message = new $root.pyth_lazer_transaction.PublisherUpdate(); - if (object.updates) { - if (!Array.isArray(object.updates)) - throw TypeError(".pyth_lazer_transaction.PublisherUpdate.updates: array expected"); - message.updates = []; - for (let i = 0; i < object.updates.length; ++i) { - if (typeof object.updates[i] !== "object") - throw TypeError(".pyth_lazer_transaction.PublisherUpdate.updates: object expected"); - message.updates[i] = $root.pyth_lazer_transaction.FeedUpdate.fromObject(object.updates[i]); - } - } - if (object.batchTimestampUs != null) - if ($util.Long) - (message.batchTimestampUs = $util.Long.fromValue(object.batchTimestampUs)).unsigned = true; - else if (typeof object.batchTimestampUs === "string") - message.batchTimestampUs = parseInt(object.batchTimestampUs, 10); - else if (typeof object.batchTimestampUs === "number") - message.batchTimestampUs = object.batchTimestampUs; - else if (typeof object.batchTimestampUs === "object") - message.batchTimestampUs = new $util.LongBits(object.batchTimestampUs.low >>> 0, object.batchTimestampUs.high >>> 0).toNumber(true); - return message; - }; - - /** - * Creates a plain object from a PublisherUpdate message. Also converts values to other types if specified. - * @function toObject - * @memberof pyth_lazer_transaction.PublisherUpdate - * @static - * @param {pyth_lazer_transaction.PublisherUpdate} message PublisherUpdate - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PublisherUpdate.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.updates = []; - if (options.defaults) - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.batchTimestampUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.batchTimestampUs = options.longs === String ? "0" : 0; - if (message.updates && message.updates.length) { - object.updates = []; - for (let j = 0; j < message.updates.length; ++j) - object.updates[j] = $root.pyth_lazer_transaction.FeedUpdate.toObject(message.updates[j], options); - } - if (message.batchTimestampUs != null && message.hasOwnProperty("batchTimestampUs")) - if (typeof message.batchTimestampUs === "number") - object.batchTimestampUs = options.longs === String ? String(message.batchTimestampUs) : message.batchTimestampUs; - else - object.batchTimestampUs = options.longs === String ? $util.Long.prototype.toString.call(message.batchTimestampUs) : options.longs === Number ? new $util.LongBits(message.batchTimestampUs.low >>> 0, message.batchTimestampUs.high >>> 0).toNumber(true) : message.batchTimestampUs; - return object; - }; - - /** - * Converts this PublisherUpdate to JSON. - * @function toJSON - * @memberof pyth_lazer_transaction.PublisherUpdate - * @instance - * @returns {Object.} JSON object - */ - PublisherUpdate.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for PublisherUpdate - * @function getTypeUrl - * @memberof pyth_lazer_transaction.PublisherUpdate - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PublisherUpdate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/pyth_lazer_transaction.PublisherUpdate"; - }; - - return PublisherUpdate; - })(); - - pyth_lazer_transaction.FeedUpdate = (function() { - - /** - * Properties of a FeedUpdate. - * @memberof pyth_lazer_transaction - * @interface IFeedUpdate - * @property {pyth_lazer_transaction.IPriceUpdateV1|null} [priceUpdateV1] FeedUpdate priceUpdateV1 - * @property {pyth_lazer_transaction.IFundingRateUpdateV1|null} [fundingRateUpdateV1] FeedUpdate fundingRateUpdateV1 - */ - - /** - * Constructs a new FeedUpdate. - * @memberof pyth_lazer_transaction - * @classdesc Represents a FeedUpdate. - * @implements IFeedUpdate - * @constructor - * @param {pyth_lazer_transaction.IFeedUpdate=} [properties] Properties to set - */ - function FeedUpdate(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FeedUpdate priceUpdateV1. - * @member {pyth_lazer_transaction.IPriceUpdateV1|null|undefined} priceUpdateV1 - * @memberof pyth_lazer_transaction.FeedUpdate - * @instance - */ - FeedUpdate.prototype.priceUpdateV1 = null; - - /** - * FeedUpdate fundingRateUpdateV1. - * @member {pyth_lazer_transaction.IFundingRateUpdateV1|null|undefined} fundingRateUpdateV1 - * @memberof pyth_lazer_transaction.FeedUpdate - * @instance - */ - FeedUpdate.prototype.fundingRateUpdateV1 = null; - - // OneOf field names bound to virtual getters and setters - let $oneOfFields; - - /** - * FeedUpdate update. - * @member {"priceUpdateV1"|"fundingRateUpdateV1"|undefined} update - * @memberof pyth_lazer_transaction.FeedUpdate - * @instance - */ - Object.defineProperty(FeedUpdate.prototype, "update", { - get: $util.oneOfGetter($oneOfFields = ["priceUpdateV1", "fundingRateUpdateV1"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new FeedUpdate instance using the specified properties. - * @function create - * @memberof pyth_lazer_transaction.FeedUpdate - * @static - * @param {pyth_lazer_transaction.IFeedUpdate=} [properties] Properties to set - * @returns {pyth_lazer_transaction.FeedUpdate} FeedUpdate instance - */ - FeedUpdate.create = function create(properties) { - return new FeedUpdate(properties); - }; - - /** - * Encodes the specified FeedUpdate message. Does not implicitly {@link pyth_lazer_transaction.FeedUpdate.verify|verify} messages. - * @function encode - * @memberof pyth_lazer_transaction.FeedUpdate - * @static - * @param {pyth_lazer_transaction.IFeedUpdate} message FeedUpdate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeedUpdate.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.priceUpdateV1 != null && Object.hasOwnProperty.call(message, "priceUpdateV1")) - $root.pyth_lazer_transaction.PriceUpdateV1.encode(message.priceUpdateV1, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.fundingRateUpdateV1 != null && Object.hasOwnProperty.call(message, "fundingRateUpdateV1")) - $root.pyth_lazer_transaction.FundingRateUpdateV1.encode(message.fundingRateUpdateV1, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified FeedUpdate message, length delimited. Does not implicitly {@link pyth_lazer_transaction.FeedUpdate.verify|verify} messages. - * @function encodeDelimited - * @memberof pyth_lazer_transaction.FeedUpdate - * @static - * @param {pyth_lazer_transaction.IFeedUpdate} message FeedUpdate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeedUpdate.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FeedUpdate message from the specified reader or buffer. - * @function decode - * @memberof pyth_lazer_transaction.FeedUpdate - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {pyth_lazer_transaction.FeedUpdate} FeedUpdate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeedUpdate.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer_transaction.FeedUpdate(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.priceUpdateV1 = $root.pyth_lazer_transaction.PriceUpdateV1.decode(reader, reader.uint32()); - break; - } - case 2: { - message.fundingRateUpdateV1 = $root.pyth_lazer_transaction.FundingRateUpdateV1.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FeedUpdate message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof pyth_lazer_transaction.FeedUpdate - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {pyth_lazer_transaction.FeedUpdate} FeedUpdate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeedUpdate.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FeedUpdate message. - * @function verify - * @memberof pyth_lazer_transaction.FeedUpdate - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FeedUpdate.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.priceUpdateV1 != null && message.hasOwnProperty("priceUpdateV1")) { - properties.update = 1; - { - let error = $root.pyth_lazer_transaction.PriceUpdateV1.verify(message.priceUpdateV1); - if (error) - return "priceUpdateV1." + error; - } - } - if (message.fundingRateUpdateV1 != null && message.hasOwnProperty("fundingRateUpdateV1")) { - if (properties.update === 1) - return "update: multiple values"; - properties.update = 1; - { - let error = $root.pyth_lazer_transaction.FundingRateUpdateV1.verify(message.fundingRateUpdateV1); - if (error) - return "fundingRateUpdateV1." + error; - } - } - return null; - }; - - /** - * Creates a FeedUpdate message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof pyth_lazer_transaction.FeedUpdate - * @static - * @param {Object.} object Plain object - * @returns {pyth_lazer_transaction.FeedUpdate} FeedUpdate - */ - FeedUpdate.fromObject = function fromObject(object) { - if (object instanceof $root.pyth_lazer_transaction.FeedUpdate) - return object; - let message = new $root.pyth_lazer_transaction.FeedUpdate(); - if (object.priceUpdateV1 != null) { - if (typeof object.priceUpdateV1 !== "object") - throw TypeError(".pyth_lazer_transaction.FeedUpdate.priceUpdateV1: object expected"); - message.priceUpdateV1 = $root.pyth_lazer_transaction.PriceUpdateV1.fromObject(object.priceUpdateV1); - } - if (object.fundingRateUpdateV1 != null) { - if (typeof object.fundingRateUpdateV1 !== "object") - throw TypeError(".pyth_lazer_transaction.FeedUpdate.fundingRateUpdateV1: object expected"); - message.fundingRateUpdateV1 = $root.pyth_lazer_transaction.FundingRateUpdateV1.fromObject(object.fundingRateUpdateV1); - } - return message; - }; - - /** - * Creates a plain object from a FeedUpdate message. Also converts values to other types if specified. - * @function toObject - * @memberof pyth_lazer_transaction.FeedUpdate - * @static - * @param {pyth_lazer_transaction.FeedUpdate} message FeedUpdate - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FeedUpdate.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (message.priceUpdateV1 != null && message.hasOwnProperty("priceUpdateV1")) { - object.priceUpdateV1 = $root.pyth_lazer_transaction.PriceUpdateV1.toObject(message.priceUpdateV1, options); - if (options.oneofs) - object.update = "priceUpdateV1"; - } - if (message.fundingRateUpdateV1 != null && message.hasOwnProperty("fundingRateUpdateV1")) { - object.fundingRateUpdateV1 = $root.pyth_lazer_transaction.FundingRateUpdateV1.toObject(message.fundingRateUpdateV1, options); - if (options.oneofs) - object.update = "fundingRateUpdateV1"; - } - return object; - }; - - /** - * Converts this FeedUpdate to JSON. - * @function toJSON - * @memberof pyth_lazer_transaction.FeedUpdate - * @instance - * @returns {Object.} JSON object - */ - FeedUpdate.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for FeedUpdate - * @function getTypeUrl - * @memberof pyth_lazer_transaction.FeedUpdate - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FeedUpdate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/pyth_lazer_transaction.FeedUpdate"; - }; - - return FeedUpdate; - })(); - - pyth_lazer_transaction.PriceUpdateV1 = (function() { - - /** - * Properties of a PriceUpdateV1. - * @memberof pyth_lazer_transaction - * @interface IPriceUpdateV1 - * @property {number|null} [feedId] PriceUpdateV1 feedId - * @property {number|Long|null} [sourceTimestampUs] PriceUpdateV1 sourceTimestampUs - * @property {number|Long|null} [publisherTimestampUs] PriceUpdateV1 publisherTimestampUs - * @property {number|Long|null} [price] PriceUpdateV1 price - * @property {number|Long|null} [bestBidPrice] PriceUpdateV1 bestBidPrice - * @property {number|Long|null} [bestAskPrice] PriceUpdateV1 bestAskPrice - */ - - /** - * Constructs a new PriceUpdateV1. - * @memberof pyth_lazer_transaction - * @classdesc Represents a PriceUpdateV1. - * @implements IPriceUpdateV1 - * @constructor - * @param {pyth_lazer_transaction.IPriceUpdateV1=} [properties] Properties to set - */ - function PriceUpdateV1(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PriceUpdateV1 feedId. - * @member {number} feedId - * @memberof pyth_lazer_transaction.PriceUpdateV1 - * @instance - */ - PriceUpdateV1.prototype.feedId = 0; - - /** - * PriceUpdateV1 sourceTimestampUs. - * @member {number|Long} sourceTimestampUs - * @memberof pyth_lazer_transaction.PriceUpdateV1 - * @instance - */ - PriceUpdateV1.prototype.sourceTimestampUs = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * PriceUpdateV1 publisherTimestampUs. - * @member {number|Long} publisherTimestampUs - * @memberof pyth_lazer_transaction.PriceUpdateV1 - * @instance - */ - PriceUpdateV1.prototype.publisherTimestampUs = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * PriceUpdateV1 price. - * @member {number|Long|null|undefined} price - * @memberof pyth_lazer_transaction.PriceUpdateV1 - * @instance - */ - PriceUpdateV1.prototype.price = null; - - /** - * PriceUpdateV1 bestBidPrice. - * @member {number|Long|null|undefined} bestBidPrice - * @memberof pyth_lazer_transaction.PriceUpdateV1 - * @instance - */ - PriceUpdateV1.prototype.bestBidPrice = null; - - /** - * PriceUpdateV1 bestAskPrice. - * @member {number|Long|null|undefined} bestAskPrice - * @memberof pyth_lazer_transaction.PriceUpdateV1 - * @instance - */ - PriceUpdateV1.prototype.bestAskPrice = null; - - // OneOf field names bound to virtual getters and setters - let $oneOfFields; - - // Virtual OneOf for proto3 optional field - Object.defineProperty(PriceUpdateV1.prototype, "_price", { - get: $util.oneOfGetter($oneOfFields = ["price"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(PriceUpdateV1.prototype, "_bestBidPrice", { - get: $util.oneOfGetter($oneOfFields = ["bestBidPrice"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(PriceUpdateV1.prototype, "_bestAskPrice", { - get: $util.oneOfGetter($oneOfFields = ["bestAskPrice"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new PriceUpdateV1 instance using the specified properties. - * @function create - * @memberof pyth_lazer_transaction.PriceUpdateV1 - * @static - * @param {pyth_lazer_transaction.IPriceUpdateV1=} [properties] Properties to set - * @returns {pyth_lazer_transaction.PriceUpdateV1} PriceUpdateV1 instance - */ - PriceUpdateV1.create = function create(properties) { - return new PriceUpdateV1(properties); - }; - - /** - * Encodes the specified PriceUpdateV1 message. Does not implicitly {@link pyth_lazer_transaction.PriceUpdateV1.verify|verify} messages. - * @function encode - * @memberof pyth_lazer_transaction.PriceUpdateV1 - * @static - * @param {pyth_lazer_transaction.IPriceUpdateV1} message PriceUpdateV1 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PriceUpdateV1.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.feedId != null && Object.hasOwnProperty.call(message, "feedId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.feedId); - if (message.sourceTimestampUs != null && Object.hasOwnProperty.call(message, "sourceTimestampUs")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.sourceTimestampUs); - if (message.publisherTimestampUs != null && Object.hasOwnProperty.call(message, "publisherTimestampUs")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.publisherTimestampUs); - if (message.price != null && Object.hasOwnProperty.call(message, "price")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.price); - if (message.bestBidPrice != null && Object.hasOwnProperty.call(message, "bestBidPrice")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.bestBidPrice); - if (message.bestAskPrice != null && Object.hasOwnProperty.call(message, "bestAskPrice")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.bestAskPrice); - return writer; - }; - - /** - * Encodes the specified PriceUpdateV1 message, length delimited. Does not implicitly {@link pyth_lazer_transaction.PriceUpdateV1.verify|verify} messages. - * @function encodeDelimited - * @memberof pyth_lazer_transaction.PriceUpdateV1 - * @static - * @param {pyth_lazer_transaction.IPriceUpdateV1} message PriceUpdateV1 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PriceUpdateV1.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a PriceUpdateV1 message from the specified reader or buffer. - * @function decode - * @memberof pyth_lazer_transaction.PriceUpdateV1 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {pyth_lazer_transaction.PriceUpdateV1} PriceUpdateV1 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PriceUpdateV1.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer_transaction.PriceUpdateV1(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.feedId = reader.uint32(); - break; - } - case 2: { - message.sourceTimestampUs = reader.uint64(); - break; - } - case 3: { - message.publisherTimestampUs = reader.uint64(); - break; - } - case 4: { - message.price = reader.int64(); - break; - } - case 5: { - message.bestBidPrice = reader.int64(); - break; - } - case 6: { - message.bestAskPrice = reader.int64(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a PriceUpdateV1 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof pyth_lazer_transaction.PriceUpdateV1 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {pyth_lazer_transaction.PriceUpdateV1} PriceUpdateV1 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PriceUpdateV1.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PriceUpdateV1 message. - * @function verify - * @memberof pyth_lazer_transaction.PriceUpdateV1 - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PriceUpdateV1.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.feedId != null && message.hasOwnProperty("feedId")) - if (!$util.isInteger(message.feedId)) - return "feedId: integer expected"; - if (message.sourceTimestampUs != null && message.hasOwnProperty("sourceTimestampUs")) - if (!$util.isInteger(message.sourceTimestampUs) && !(message.sourceTimestampUs && $util.isInteger(message.sourceTimestampUs.low) && $util.isInteger(message.sourceTimestampUs.high))) - return "sourceTimestampUs: integer|Long expected"; - if (message.publisherTimestampUs != null && message.hasOwnProperty("publisherTimestampUs")) - if (!$util.isInteger(message.publisherTimestampUs) && !(message.publisherTimestampUs && $util.isInteger(message.publisherTimestampUs.low) && $util.isInteger(message.publisherTimestampUs.high))) - return "publisherTimestampUs: integer|Long expected"; - if (message.price != null && message.hasOwnProperty("price")) { - properties._price = 1; - if (!$util.isInteger(message.price) && !(message.price && $util.isInteger(message.price.low) && $util.isInteger(message.price.high))) - return "price: integer|Long expected"; - } - if (message.bestBidPrice != null && message.hasOwnProperty("bestBidPrice")) { - properties._bestBidPrice = 1; - if (!$util.isInteger(message.bestBidPrice) && !(message.bestBidPrice && $util.isInteger(message.bestBidPrice.low) && $util.isInteger(message.bestBidPrice.high))) - return "bestBidPrice: integer|Long expected"; - } - if (message.bestAskPrice != null && message.hasOwnProperty("bestAskPrice")) { - properties._bestAskPrice = 1; - if (!$util.isInteger(message.bestAskPrice) && !(message.bestAskPrice && $util.isInteger(message.bestAskPrice.low) && $util.isInteger(message.bestAskPrice.high))) - return "bestAskPrice: integer|Long expected"; - } - return null; - }; - - /** - * Creates a PriceUpdateV1 message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof pyth_lazer_transaction.PriceUpdateV1 - * @static - * @param {Object.} object Plain object - * @returns {pyth_lazer_transaction.PriceUpdateV1} PriceUpdateV1 - */ - PriceUpdateV1.fromObject = function fromObject(object) { - if (object instanceof $root.pyth_lazer_transaction.PriceUpdateV1) - return object; - let message = new $root.pyth_lazer_transaction.PriceUpdateV1(); - if (object.feedId != null) - message.feedId = object.feedId >>> 0; - if (object.sourceTimestampUs != null) - if ($util.Long) - (message.sourceTimestampUs = $util.Long.fromValue(object.sourceTimestampUs)).unsigned = true; - else if (typeof object.sourceTimestampUs === "string") - message.sourceTimestampUs = parseInt(object.sourceTimestampUs, 10); - else if (typeof object.sourceTimestampUs === "number") - message.sourceTimestampUs = object.sourceTimestampUs; - else if (typeof object.sourceTimestampUs === "object") - message.sourceTimestampUs = new $util.LongBits(object.sourceTimestampUs.low >>> 0, object.sourceTimestampUs.high >>> 0).toNumber(true); - if (object.publisherTimestampUs != null) - if ($util.Long) - (message.publisherTimestampUs = $util.Long.fromValue(object.publisherTimestampUs)).unsigned = true; - else if (typeof object.publisherTimestampUs === "string") - message.publisherTimestampUs = parseInt(object.publisherTimestampUs, 10); - else if (typeof object.publisherTimestampUs === "number") - message.publisherTimestampUs = object.publisherTimestampUs; - else if (typeof object.publisherTimestampUs === "object") - message.publisherTimestampUs = new $util.LongBits(object.publisherTimestampUs.low >>> 0, object.publisherTimestampUs.high >>> 0).toNumber(true); - if (object.price != null) - if ($util.Long) - (message.price = $util.Long.fromValue(object.price)).unsigned = false; - else if (typeof object.price === "string") - message.price = parseInt(object.price, 10); - else if (typeof object.price === "number") - message.price = object.price; - else if (typeof object.price === "object") - message.price = new $util.LongBits(object.price.low >>> 0, object.price.high >>> 0).toNumber(); - if (object.bestBidPrice != null) - if ($util.Long) - (message.bestBidPrice = $util.Long.fromValue(object.bestBidPrice)).unsigned = false; - else if (typeof object.bestBidPrice === "string") - message.bestBidPrice = parseInt(object.bestBidPrice, 10); - else if (typeof object.bestBidPrice === "number") - message.bestBidPrice = object.bestBidPrice; - else if (typeof object.bestBidPrice === "object") - message.bestBidPrice = new $util.LongBits(object.bestBidPrice.low >>> 0, object.bestBidPrice.high >>> 0).toNumber(); - if (object.bestAskPrice != null) - if ($util.Long) - (message.bestAskPrice = $util.Long.fromValue(object.bestAskPrice)).unsigned = false; - else if (typeof object.bestAskPrice === "string") - message.bestAskPrice = parseInt(object.bestAskPrice, 10); - else if (typeof object.bestAskPrice === "number") - message.bestAskPrice = object.bestAskPrice; - else if (typeof object.bestAskPrice === "object") - message.bestAskPrice = new $util.LongBits(object.bestAskPrice.low >>> 0, object.bestAskPrice.high >>> 0).toNumber(); - return message; - }; - - /** - * Creates a plain object from a PriceUpdateV1 message. Also converts values to other types if specified. - * @function toObject - * @memberof pyth_lazer_transaction.PriceUpdateV1 - * @static - * @param {pyth_lazer_transaction.PriceUpdateV1} message PriceUpdateV1 - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PriceUpdateV1.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.feedId = 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.sourceTimestampUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sourceTimestampUs = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.publisherTimestampUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.publisherTimestampUs = options.longs === String ? "0" : 0; - } - if (message.feedId != null && message.hasOwnProperty("feedId")) - object.feedId = message.feedId; - if (message.sourceTimestampUs != null && message.hasOwnProperty("sourceTimestampUs")) - if (typeof message.sourceTimestampUs === "number") - object.sourceTimestampUs = options.longs === String ? String(message.sourceTimestampUs) : message.sourceTimestampUs; - else - object.sourceTimestampUs = options.longs === String ? $util.Long.prototype.toString.call(message.sourceTimestampUs) : options.longs === Number ? new $util.LongBits(message.sourceTimestampUs.low >>> 0, message.sourceTimestampUs.high >>> 0).toNumber(true) : message.sourceTimestampUs; - if (message.publisherTimestampUs != null && message.hasOwnProperty("publisherTimestampUs")) - if (typeof message.publisherTimestampUs === "number") - object.publisherTimestampUs = options.longs === String ? String(message.publisherTimestampUs) : message.publisherTimestampUs; - else - object.publisherTimestampUs = options.longs === String ? $util.Long.prototype.toString.call(message.publisherTimestampUs) : options.longs === Number ? new $util.LongBits(message.publisherTimestampUs.low >>> 0, message.publisherTimestampUs.high >>> 0).toNumber(true) : message.publisherTimestampUs; - if (message.price != null && message.hasOwnProperty("price")) { - if (typeof message.price === "number") - object.price = options.longs === String ? String(message.price) : message.price; - else - object.price = options.longs === String ? $util.Long.prototype.toString.call(message.price) : options.longs === Number ? new $util.LongBits(message.price.low >>> 0, message.price.high >>> 0).toNumber() : message.price; - if (options.oneofs) - object._price = "price"; - } - if (message.bestBidPrice != null && message.hasOwnProperty("bestBidPrice")) { - if (typeof message.bestBidPrice === "number") - object.bestBidPrice = options.longs === String ? String(message.bestBidPrice) : message.bestBidPrice; - else - object.bestBidPrice = options.longs === String ? $util.Long.prototype.toString.call(message.bestBidPrice) : options.longs === Number ? new $util.LongBits(message.bestBidPrice.low >>> 0, message.bestBidPrice.high >>> 0).toNumber() : message.bestBidPrice; - if (options.oneofs) - object._bestBidPrice = "bestBidPrice"; - } - if (message.bestAskPrice != null && message.hasOwnProperty("bestAskPrice")) { - if (typeof message.bestAskPrice === "number") - object.bestAskPrice = options.longs === String ? String(message.bestAskPrice) : message.bestAskPrice; - else - object.bestAskPrice = options.longs === String ? $util.Long.prototype.toString.call(message.bestAskPrice) : options.longs === Number ? new $util.LongBits(message.bestAskPrice.low >>> 0, message.bestAskPrice.high >>> 0).toNumber() : message.bestAskPrice; - if (options.oneofs) - object._bestAskPrice = "bestAskPrice"; - } - return object; - }; - - /** - * Converts this PriceUpdateV1 to JSON. - * @function toJSON - * @memberof pyth_lazer_transaction.PriceUpdateV1 - * @instance - * @returns {Object.} JSON object - */ - PriceUpdateV1.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for PriceUpdateV1 - * @function getTypeUrl - * @memberof pyth_lazer_transaction.PriceUpdateV1 - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PriceUpdateV1.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/pyth_lazer_transaction.PriceUpdateV1"; - }; - - return PriceUpdateV1; - })(); - - pyth_lazer_transaction.FundingRateUpdateV1 = (function() { - - /** - * Properties of a FundingRateUpdateV1. - * @memberof pyth_lazer_transaction - * @interface IFundingRateUpdateV1 - * @property {number|null} [feedId] FundingRateUpdateV1 feedId - * @property {number|Long|null} [sourceTimestampUs] FundingRateUpdateV1 sourceTimestampUs - * @property {number|Long|null} [publisherTimestampUs] FundingRateUpdateV1 publisherTimestampUs - * @property {number|Long|null} [price] FundingRateUpdateV1 price - * @property {number|Long|null} [rate] FundingRateUpdateV1 rate - */ - - /** - * Constructs a new FundingRateUpdateV1. - * @memberof pyth_lazer_transaction - * @classdesc Represents a FundingRateUpdateV1. - * @implements IFundingRateUpdateV1 - * @constructor - * @param {pyth_lazer_transaction.IFundingRateUpdateV1=} [properties] Properties to set - */ - function FundingRateUpdateV1(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FundingRateUpdateV1 feedId. - * @member {number} feedId - * @memberof pyth_lazer_transaction.FundingRateUpdateV1 - * @instance - */ - FundingRateUpdateV1.prototype.feedId = 0; - - /** - * FundingRateUpdateV1 sourceTimestampUs. - * @member {number|Long} sourceTimestampUs - * @memberof pyth_lazer_transaction.FundingRateUpdateV1 - * @instance - */ - FundingRateUpdateV1.prototype.sourceTimestampUs = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * FundingRateUpdateV1 publisherTimestampUs. - * @member {number|Long} publisherTimestampUs - * @memberof pyth_lazer_transaction.FundingRateUpdateV1 - * @instance - */ - FundingRateUpdateV1.prototype.publisherTimestampUs = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * FundingRateUpdateV1 price. - * @member {number|Long|null|undefined} price - * @memberof pyth_lazer_transaction.FundingRateUpdateV1 - * @instance - */ - FundingRateUpdateV1.prototype.price = null; - - /** - * FundingRateUpdateV1 rate. - * @member {number|Long|null|undefined} rate - * @memberof pyth_lazer_transaction.FundingRateUpdateV1 - * @instance - */ - FundingRateUpdateV1.prototype.rate = null; - - // OneOf field names bound to virtual getters and setters - let $oneOfFields; - - // Virtual OneOf for proto3 optional field - Object.defineProperty(FundingRateUpdateV1.prototype, "_price", { - get: $util.oneOfGetter($oneOfFields = ["price"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(FundingRateUpdateV1.prototype, "_rate", { - get: $util.oneOfGetter($oneOfFields = ["rate"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new FundingRateUpdateV1 instance using the specified properties. - * @function create - * @memberof pyth_lazer_transaction.FundingRateUpdateV1 - * @static - * @param {pyth_lazer_transaction.IFundingRateUpdateV1=} [properties] Properties to set - * @returns {pyth_lazer_transaction.FundingRateUpdateV1} FundingRateUpdateV1 instance - */ - FundingRateUpdateV1.create = function create(properties) { - return new FundingRateUpdateV1(properties); - }; - - /** - * Encodes the specified FundingRateUpdateV1 message. Does not implicitly {@link pyth_lazer_transaction.FundingRateUpdateV1.verify|verify} messages. - * @function encode - * @memberof pyth_lazer_transaction.FundingRateUpdateV1 - * @static - * @param {pyth_lazer_transaction.IFundingRateUpdateV1} message FundingRateUpdateV1 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FundingRateUpdateV1.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.feedId != null && Object.hasOwnProperty.call(message, "feedId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.feedId); - if (message.sourceTimestampUs != null && Object.hasOwnProperty.call(message, "sourceTimestampUs")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.sourceTimestampUs); - if (message.publisherTimestampUs != null && Object.hasOwnProperty.call(message, "publisherTimestampUs")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.publisherTimestampUs); - if (message.price != null && Object.hasOwnProperty.call(message, "price")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.price); - if (message.rate != null && Object.hasOwnProperty.call(message, "rate")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.rate); - return writer; - }; - - /** - * Encodes the specified FundingRateUpdateV1 message, length delimited. Does not implicitly {@link pyth_lazer_transaction.FundingRateUpdateV1.verify|verify} messages. - * @function encodeDelimited - * @memberof pyth_lazer_transaction.FundingRateUpdateV1 - * @static - * @param {pyth_lazer_transaction.IFundingRateUpdateV1} message FundingRateUpdateV1 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FundingRateUpdateV1.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FundingRateUpdateV1 message from the specified reader or buffer. - * @function decode - * @memberof pyth_lazer_transaction.FundingRateUpdateV1 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {pyth_lazer_transaction.FundingRateUpdateV1} FundingRateUpdateV1 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FundingRateUpdateV1.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer_transaction.FundingRateUpdateV1(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.feedId = reader.uint32(); - break; - } - case 2: { - message.sourceTimestampUs = reader.uint64(); - break; - } - case 3: { - message.publisherTimestampUs = reader.uint64(); - break; - } - case 4: { - message.price = reader.int64(); - break; - } - case 5: { - message.rate = reader.int64(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FundingRateUpdateV1 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof pyth_lazer_transaction.FundingRateUpdateV1 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {pyth_lazer_transaction.FundingRateUpdateV1} FundingRateUpdateV1 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FundingRateUpdateV1.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FundingRateUpdateV1 message. - * @function verify - * @memberof pyth_lazer_transaction.FundingRateUpdateV1 - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FundingRateUpdateV1.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.feedId != null && message.hasOwnProperty("feedId")) - if (!$util.isInteger(message.feedId)) - return "feedId: integer expected"; - if (message.sourceTimestampUs != null && message.hasOwnProperty("sourceTimestampUs")) - if (!$util.isInteger(message.sourceTimestampUs) && !(message.sourceTimestampUs && $util.isInteger(message.sourceTimestampUs.low) && $util.isInteger(message.sourceTimestampUs.high))) - return "sourceTimestampUs: integer|Long expected"; - if (message.publisherTimestampUs != null && message.hasOwnProperty("publisherTimestampUs")) - if (!$util.isInteger(message.publisherTimestampUs) && !(message.publisherTimestampUs && $util.isInteger(message.publisherTimestampUs.low) && $util.isInteger(message.publisherTimestampUs.high))) - return "publisherTimestampUs: integer|Long expected"; - if (message.price != null && message.hasOwnProperty("price")) { - properties._price = 1; - if (!$util.isInteger(message.price) && !(message.price && $util.isInteger(message.price.low) && $util.isInteger(message.price.high))) - return "price: integer|Long expected"; - } - if (message.rate != null && message.hasOwnProperty("rate")) { - properties._rate = 1; - if (!$util.isInteger(message.rate) && !(message.rate && $util.isInteger(message.rate.low) && $util.isInteger(message.rate.high))) - return "rate: integer|Long expected"; - } - return null; - }; - - /** - * Creates a FundingRateUpdateV1 message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof pyth_lazer_transaction.FundingRateUpdateV1 - * @static - * @param {Object.} object Plain object - * @returns {pyth_lazer_transaction.FundingRateUpdateV1} FundingRateUpdateV1 - */ - FundingRateUpdateV1.fromObject = function fromObject(object) { - if (object instanceof $root.pyth_lazer_transaction.FundingRateUpdateV1) - return object; - let message = new $root.pyth_lazer_transaction.FundingRateUpdateV1(); - if (object.feedId != null) - message.feedId = object.feedId >>> 0; - if (object.sourceTimestampUs != null) - if ($util.Long) - (message.sourceTimestampUs = $util.Long.fromValue(object.sourceTimestampUs)).unsigned = true; - else if (typeof object.sourceTimestampUs === "string") - message.sourceTimestampUs = parseInt(object.sourceTimestampUs, 10); - else if (typeof object.sourceTimestampUs === "number") - message.sourceTimestampUs = object.sourceTimestampUs; - else if (typeof object.sourceTimestampUs === "object") - message.sourceTimestampUs = new $util.LongBits(object.sourceTimestampUs.low >>> 0, object.sourceTimestampUs.high >>> 0).toNumber(true); - if (object.publisherTimestampUs != null) - if ($util.Long) - (message.publisherTimestampUs = $util.Long.fromValue(object.publisherTimestampUs)).unsigned = true; - else if (typeof object.publisherTimestampUs === "string") - message.publisherTimestampUs = parseInt(object.publisherTimestampUs, 10); - else if (typeof object.publisherTimestampUs === "number") - message.publisherTimestampUs = object.publisherTimestampUs; - else if (typeof object.publisherTimestampUs === "object") - message.publisherTimestampUs = new $util.LongBits(object.publisherTimestampUs.low >>> 0, object.publisherTimestampUs.high >>> 0).toNumber(true); - if (object.price != null) - if ($util.Long) - (message.price = $util.Long.fromValue(object.price)).unsigned = false; - else if (typeof object.price === "string") - message.price = parseInt(object.price, 10); - else if (typeof object.price === "number") - message.price = object.price; - else if (typeof object.price === "object") - message.price = new $util.LongBits(object.price.low >>> 0, object.price.high >>> 0).toNumber(); - if (object.rate != null) - if ($util.Long) - (message.rate = $util.Long.fromValue(object.rate)).unsigned = false; - else if (typeof object.rate === "string") - message.rate = parseInt(object.rate, 10); - else if (typeof object.rate === "number") - message.rate = object.rate; - else if (typeof object.rate === "object") - message.rate = new $util.LongBits(object.rate.low >>> 0, object.rate.high >>> 0).toNumber(); - return message; - }; - - /** - * Creates a plain object from a FundingRateUpdateV1 message. Also converts values to other types if specified. - * @function toObject - * @memberof pyth_lazer_transaction.FundingRateUpdateV1 - * @static - * @param {pyth_lazer_transaction.FundingRateUpdateV1} message FundingRateUpdateV1 - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FundingRateUpdateV1.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.feedId = 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.sourceTimestampUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sourceTimestampUs = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.publisherTimestampUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.publisherTimestampUs = options.longs === String ? "0" : 0; - } - if (message.feedId != null && message.hasOwnProperty("feedId")) - object.feedId = message.feedId; - if (message.sourceTimestampUs != null && message.hasOwnProperty("sourceTimestampUs")) - if (typeof message.sourceTimestampUs === "number") - object.sourceTimestampUs = options.longs === String ? String(message.sourceTimestampUs) : message.sourceTimestampUs; - else - object.sourceTimestampUs = options.longs === String ? $util.Long.prototype.toString.call(message.sourceTimestampUs) : options.longs === Number ? new $util.LongBits(message.sourceTimestampUs.low >>> 0, message.sourceTimestampUs.high >>> 0).toNumber(true) : message.sourceTimestampUs; - if (message.publisherTimestampUs != null && message.hasOwnProperty("publisherTimestampUs")) - if (typeof message.publisherTimestampUs === "number") - object.publisherTimestampUs = options.longs === String ? String(message.publisherTimestampUs) : message.publisherTimestampUs; - else - object.publisherTimestampUs = options.longs === String ? $util.Long.prototype.toString.call(message.publisherTimestampUs) : options.longs === Number ? new $util.LongBits(message.publisherTimestampUs.low >>> 0, message.publisherTimestampUs.high >>> 0).toNumber(true) : message.publisherTimestampUs; - if (message.price != null && message.hasOwnProperty("price")) { - if (typeof message.price === "number") - object.price = options.longs === String ? String(message.price) : message.price; - else - object.price = options.longs === String ? $util.Long.prototype.toString.call(message.price) : options.longs === Number ? new $util.LongBits(message.price.low >>> 0, message.price.high >>> 0).toNumber() : message.price; - if (options.oneofs) - object._price = "price"; - } - if (message.rate != null && message.hasOwnProperty("rate")) { - if (typeof message.rate === "number") - object.rate = options.longs === String ? String(message.rate) : message.rate; - else - object.rate = options.longs === String ? $util.Long.prototype.toString.call(message.rate) : options.longs === Number ? new $util.LongBits(message.rate.low >>> 0, message.rate.high >>> 0).toNumber() : message.rate; - if (options.oneofs) - object._rate = "rate"; - } - return object; - }; - - /** - * Converts this FundingRateUpdateV1 to JSON. - * @function toJSON - * @memberof pyth_lazer_transaction.FundingRateUpdateV1 - * @instance - * @returns {Object.} JSON object - */ - FundingRateUpdateV1.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for FundingRateUpdateV1 - * @function getTypeUrl - * @memberof pyth_lazer_transaction.FundingRateUpdateV1 - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FundingRateUpdateV1.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/pyth_lazer_transaction.FundingRateUpdateV1"; - }; - - return FundingRateUpdateV1; - })(); - - /** - * TransactionSignatureType enum. - * @name pyth_lazer_transaction.TransactionSignatureType - * @enum {number} - * @property {number} ed25519=0 ed25519 value - */ - pyth_lazer_transaction.TransactionSignatureType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ed25519"] = 0; - return values; - })(); - - pyth_lazer_transaction.SignedLazerTransaction = (function() { - - /** - * Properties of a SignedLazerTransaction. - * @memberof pyth_lazer_transaction - * @interface ISignedLazerTransaction - * @property {pyth_lazer_transaction.TransactionSignatureType|null} [signatureType] SignedLazerTransaction signatureType - * @property {Uint8Array|null} [signature] SignedLazerTransaction signature - * @property {Uint8Array|null} [transaction] SignedLazerTransaction transaction - */ - - /** - * Constructs a new SignedLazerTransaction. - * @memberof pyth_lazer_transaction - * @classdesc Represents a SignedLazerTransaction. - * @implements ISignedLazerTransaction - * @constructor - * @param {pyth_lazer_transaction.ISignedLazerTransaction=} [properties] Properties to set - */ - function SignedLazerTransaction(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SignedLazerTransaction signatureType. - * @member {pyth_lazer_transaction.TransactionSignatureType} signatureType - * @memberof pyth_lazer_transaction.SignedLazerTransaction - * @instance - */ - SignedLazerTransaction.prototype.signatureType = 0; - - /** - * SignedLazerTransaction signature. - * @member {Uint8Array} signature - * @memberof pyth_lazer_transaction.SignedLazerTransaction - * @instance - */ - SignedLazerTransaction.prototype.signature = $util.newBuffer([]); - - /** - * SignedLazerTransaction transaction. - * @member {Uint8Array} transaction - * @memberof pyth_lazer_transaction.SignedLazerTransaction - * @instance - */ - SignedLazerTransaction.prototype.transaction = $util.newBuffer([]); - - /** - * Creates a new SignedLazerTransaction instance using the specified properties. - * @function create - * @memberof pyth_lazer_transaction.SignedLazerTransaction - * @static - * @param {pyth_lazer_transaction.ISignedLazerTransaction=} [properties] Properties to set - * @returns {pyth_lazer_transaction.SignedLazerTransaction} SignedLazerTransaction instance - */ - SignedLazerTransaction.create = function create(properties) { - return new SignedLazerTransaction(properties); - }; - - /** - * Encodes the specified SignedLazerTransaction message. Does not implicitly {@link pyth_lazer_transaction.SignedLazerTransaction.verify|verify} messages. - * @function encode - * @memberof pyth_lazer_transaction.SignedLazerTransaction - * @static - * @param {pyth_lazer_transaction.ISignedLazerTransaction} message SignedLazerTransaction message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SignedLazerTransaction.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.signatureType != null && Object.hasOwnProperty.call(message, "signatureType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.signatureType); - if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.signature); - if (message.transaction != null && Object.hasOwnProperty.call(message, "transaction")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.transaction); - return writer; - }; - - /** - * Encodes the specified SignedLazerTransaction message, length delimited. Does not implicitly {@link pyth_lazer_transaction.SignedLazerTransaction.verify|verify} messages. - * @function encodeDelimited - * @memberof pyth_lazer_transaction.SignedLazerTransaction - * @static - * @param {pyth_lazer_transaction.ISignedLazerTransaction} message SignedLazerTransaction message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SignedLazerTransaction.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SignedLazerTransaction message from the specified reader or buffer. - * @function decode - * @memberof pyth_lazer_transaction.SignedLazerTransaction - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {pyth_lazer_transaction.SignedLazerTransaction} SignedLazerTransaction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SignedLazerTransaction.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer_transaction.SignedLazerTransaction(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.signatureType = reader.int32(); - break; - } - case 2: { - message.signature = reader.bytes(); - break; - } - case 3: { - message.transaction = reader.bytes(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SignedLazerTransaction message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof pyth_lazer_transaction.SignedLazerTransaction - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {pyth_lazer_transaction.SignedLazerTransaction} SignedLazerTransaction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SignedLazerTransaction.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SignedLazerTransaction message. - * @function verify - * @memberof pyth_lazer_transaction.SignedLazerTransaction - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SignedLazerTransaction.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.signatureType != null && message.hasOwnProperty("signatureType")) - switch (message.signatureType) { - default: - return "signatureType: enum value expected"; - case 0: - break; - } - if (message.signature != null && message.hasOwnProperty("signature")) - if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature))) - return "signature: buffer expected"; - if (message.transaction != null && message.hasOwnProperty("transaction")) - if (!(message.transaction && typeof message.transaction.length === "number" || $util.isString(message.transaction))) - return "transaction: buffer expected"; - return null; - }; - - /** - * Creates a SignedLazerTransaction message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof pyth_lazer_transaction.SignedLazerTransaction - * @static - * @param {Object.} object Plain object - * @returns {pyth_lazer_transaction.SignedLazerTransaction} SignedLazerTransaction - */ - SignedLazerTransaction.fromObject = function fromObject(object) { - if (object instanceof $root.pyth_lazer_transaction.SignedLazerTransaction) - return object; - let message = new $root.pyth_lazer_transaction.SignedLazerTransaction(); - switch (object.signatureType) { - default: - if (typeof object.signatureType === "number") { - message.signatureType = object.signatureType; - break; - } - break; - case "ed25519": - case 0: - message.signatureType = 0; - break; - } - if (object.signature != null) - if (typeof object.signature === "string") - $util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0); - else if (object.signature.length >= 0) - message.signature = object.signature; - if (object.transaction != null) - if (typeof object.transaction === "string") - $util.base64.decode(object.transaction, message.transaction = $util.newBuffer($util.base64.length(object.transaction)), 0); - else if (object.transaction.length >= 0) - message.transaction = object.transaction; - return message; - }; - - /** - * Creates a plain object from a SignedLazerTransaction message. Also converts values to other types if specified. - * @function toObject - * @memberof pyth_lazer_transaction.SignedLazerTransaction - * @static - * @param {pyth_lazer_transaction.SignedLazerTransaction} message SignedLazerTransaction - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SignedLazerTransaction.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.signatureType = options.enums === String ? "ed25519" : 0; - if (options.bytes === String) - object.signature = ""; - else { - object.signature = []; - if (options.bytes !== Array) - object.signature = $util.newBuffer(object.signature); - } - if (options.bytes === String) - object.transaction = ""; - else { - object.transaction = []; - if (options.bytes !== Array) - object.transaction = $util.newBuffer(object.transaction); - } - } - if (message.signatureType != null && message.hasOwnProperty("signatureType")) - object.signatureType = options.enums === String ? $root.pyth_lazer_transaction.TransactionSignatureType[message.signatureType] === undefined ? message.signatureType : $root.pyth_lazer_transaction.TransactionSignatureType[message.signatureType] : message.signatureType; - if (message.signature != null && message.hasOwnProperty("signature")) - object.signature = options.bytes === String ? $util.base64.encode(message.signature, 0, message.signature.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature) : message.signature; - if (message.transaction != null && message.hasOwnProperty("transaction")) - object.transaction = options.bytes === String ? $util.base64.encode(message.transaction, 0, message.transaction.length) : options.bytes === Array ? Array.prototype.slice.call(message.transaction) : message.transaction; - return object; - }; - - /** - * Converts this SignedLazerTransaction to JSON. - * @function toJSON - * @memberof pyth_lazer_transaction.SignedLazerTransaction - * @instance - * @returns {Object.} JSON object - */ - SignedLazerTransaction.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for SignedLazerTransaction - * @function getTypeUrl - * @memberof pyth_lazer_transaction.SignedLazerTransaction - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SignedLazerTransaction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/pyth_lazer_transaction.SignedLazerTransaction"; - }; - - return SignedLazerTransaction; - })(); - - pyth_lazer_transaction.LazerTransaction = (function() { - - /** - * Properties of a LazerTransaction. - * @memberof pyth_lazer_transaction - * @interface ILazerTransaction - * @property {pyth_lazer_transaction.IPublisherUpdate|null} [publisherUpdates] LazerTransaction publisherUpdates - */ - - /** - * Constructs a new LazerTransaction. - * @memberof pyth_lazer_transaction - * @classdesc Represents a LazerTransaction. - * @implements ILazerTransaction - * @constructor - * @param {pyth_lazer_transaction.ILazerTransaction=} [properties] Properties to set - */ - function LazerTransaction(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LazerTransaction publisherUpdates. - * @member {pyth_lazer_transaction.IPublisherUpdate|null|undefined} publisherUpdates - * @memberof pyth_lazer_transaction.LazerTransaction - * @instance - */ - LazerTransaction.prototype.publisherUpdates = null; - - // OneOf field names bound to virtual getters and setters - let $oneOfFields; - - /** - * LazerTransaction payload. - * @member {"publisherUpdates"|undefined} payload - * @memberof pyth_lazer_transaction.LazerTransaction - * @instance - */ - Object.defineProperty(LazerTransaction.prototype, "payload", { - get: $util.oneOfGetter($oneOfFields = ["publisherUpdates"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new LazerTransaction instance using the specified properties. - * @function create - * @memberof pyth_lazer_transaction.LazerTransaction - * @static - * @param {pyth_lazer_transaction.ILazerTransaction=} [properties] Properties to set - * @returns {pyth_lazer_transaction.LazerTransaction} LazerTransaction instance - */ - LazerTransaction.create = function create(properties) { - return new LazerTransaction(properties); - }; - - /** - * Encodes the specified LazerTransaction message. Does not implicitly {@link pyth_lazer_transaction.LazerTransaction.verify|verify} messages. - * @function encode - * @memberof pyth_lazer_transaction.LazerTransaction - * @static - * @param {pyth_lazer_transaction.ILazerTransaction} message LazerTransaction message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LazerTransaction.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.publisherUpdates != null && Object.hasOwnProperty.call(message, "publisherUpdates")) - $root.pyth_lazer_transaction.PublisherUpdate.encode(message.publisherUpdates, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified LazerTransaction message, length delimited. Does not implicitly {@link pyth_lazer_transaction.LazerTransaction.verify|verify} messages. - * @function encodeDelimited - * @memberof pyth_lazer_transaction.LazerTransaction - * @static - * @param {pyth_lazer_transaction.ILazerTransaction} message LazerTransaction message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LazerTransaction.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a LazerTransaction message from the specified reader or buffer. - * @function decode - * @memberof pyth_lazer_transaction.LazerTransaction - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {pyth_lazer_transaction.LazerTransaction} LazerTransaction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LazerTransaction.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.pyth_lazer_transaction.LazerTransaction(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.publisherUpdates = $root.pyth_lazer_transaction.PublisherUpdate.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a LazerTransaction message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof pyth_lazer_transaction.LazerTransaction - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {pyth_lazer_transaction.LazerTransaction} LazerTransaction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LazerTransaction.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LazerTransaction message. - * @function verify - * @memberof pyth_lazer_transaction.LazerTransaction - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LazerTransaction.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.publisherUpdates != null && message.hasOwnProperty("publisherUpdates")) { - properties.payload = 1; - { - let error = $root.pyth_lazer_transaction.PublisherUpdate.verify(message.publisherUpdates); - if (error) - return "publisherUpdates." + error; - } - } - return null; - }; - - /** - * Creates a LazerTransaction message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof pyth_lazer_transaction.LazerTransaction - * @static - * @param {Object.} object Plain object - * @returns {pyth_lazer_transaction.LazerTransaction} LazerTransaction - */ - LazerTransaction.fromObject = function fromObject(object) { - if (object instanceof $root.pyth_lazer_transaction.LazerTransaction) - return object; - let message = new $root.pyth_lazer_transaction.LazerTransaction(); - if (object.publisherUpdates != null) { - if (typeof object.publisherUpdates !== "object") - throw TypeError(".pyth_lazer_transaction.LazerTransaction.publisherUpdates: object expected"); - message.publisherUpdates = $root.pyth_lazer_transaction.PublisherUpdate.fromObject(object.publisherUpdates); - } - return message; - }; - - /** - * Creates a plain object from a LazerTransaction message. Also converts values to other types if specified. - * @function toObject - * @memberof pyth_lazer_transaction.LazerTransaction - * @static - * @param {pyth_lazer_transaction.LazerTransaction} message LazerTransaction - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - LazerTransaction.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (message.publisherUpdates != null && message.hasOwnProperty("publisherUpdates")) { - object.publisherUpdates = $root.pyth_lazer_transaction.PublisherUpdate.toObject(message.publisherUpdates, options); - if (options.oneofs) - object.payload = "publisherUpdates"; - } - return object; - }; - - /** - * Converts this LazerTransaction to JSON. - * @function toJSON - * @memberof pyth_lazer_transaction.LazerTransaction - * @instance - * @returns {Object.} JSON object - */ - LazerTransaction.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for LazerTransaction - * @function getTypeUrl - * @memberof pyth_lazer_transaction.LazerTransaction - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - LazerTransaction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/pyth_lazer_transaction.LazerTransaction"; - }; - - return LazerTransaction; - })(); - - return pyth_lazer_transaction; -})(); - -export { $root as default }; From 59ae65baef447bbe210e205dde03925696ebf642 Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Wed, 9 Apr 2025 12:34:39 -0700 Subject: [PATCH 16/26] try using protobuf-codegen --- lazer/Cargo.lock | 74 ++++++++++++++++++++++++++++++ lazer/sdk/js/.gitignore | 2 +- lazer/sdk/rust/protocol/Cargo.toml | 2 + lazer/sdk/rust/protocol/build.rs | 19 ++++---- lazer/sdk/rust/protocol/src/lib.rs | 9 +++- 5 files changed, 93 insertions(+), 13 deletions(-) diff --git a/lazer/Cargo.lock b/lazer/Cargo.lock index bca340efe3..54aa2c9197 100644 --- a/lazer/Cargo.lock +++ b/lazer/Cargo.lock @@ -2321,6 +2321,15 @@ dependencies = [ "hmac 0.8.1", ] +[[package]] +name = "home" +version = "0.5.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589533453244b0995c858700322199b2becb13b627df2851f64a2775d024abcf" +dependencies = [ + "windows-sys 0.59.0", +] + [[package]] name = "http" version = "0.2.12" @@ -3822,6 +3831,57 @@ dependencies = [ "prost", ] +[[package]] +name = "protobuf" +version = "3.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d65a1d4ddae7d8b5de68153b48f6aa3bba8cb002b243dbdbc55a5afbc98f99f4" +dependencies = [ + "once_cell", + "protobuf-support", + "thiserror 1.0.69", +] + +[[package]] +name = "protobuf-codegen" +version = "3.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d3976825c0014bbd2f3b34f0001876604fe87e0c86cd8fa54251530f1544ace" +dependencies = [ + "anyhow", + "once_cell", + "protobuf", + "protobuf-parse", + "regex", + "tempfile", + "thiserror 1.0.69", +] + +[[package]] +name = "protobuf-parse" +version = "3.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4aeaa1f2460f1d348eeaeed86aea999ce98c1bded6f089ff8514c9d9dbdc973" +dependencies = [ + "anyhow", + "indexmap 2.6.0", + "log", + "protobuf", + "protobuf-support", + "tempfile", + "thiserror 1.0.69", + "which", +] + +[[package]] +name = "protobuf-support" +version = "3.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e36c2f31e0a47f9280fb347ef5e461ffcd2c52dd520d8e216b52f93b0b0d7d6" +dependencies = [ + "thiserror 1.0.69", +] + [[package]] name = "ptr_meta" version = "0.1.4" @@ -3883,6 +3943,8 @@ dependencies = [ "prost", "prost-build", "prost-types", + "protobuf", + "protobuf-codegen", "rust_decimal", "serde", "serde_json", @@ -7213,6 +7275,18 @@ version = "0.25.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5f20c57d8d7db6d3b86154206ae5d8fba62dd39573114de97c2cb0578251f8e1" +[[package]] +name = "which" +version = "4.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87ba24419a2078cd2b0f2ede2691b6c66d8e47836da3b6db8265ebad47afbfc7" +dependencies = [ + "either", + "home", + "once_cell", + "rustix", +] + [[package]] name = "winapi" version = "0.3.9" diff --git a/lazer/sdk/js/.gitignore b/lazer/sdk/js/.gitignore index 8be8cc7ff7..0178167c25 100644 --- a/lazer/sdk/js/.gitignore +++ b/lazer/sdk/js/.gitignore @@ -22,4 +22,4 @@ dist/ tsconfig.tsbuildinfo # Types generated for .proto files -src/generated/* +src/generated/ diff --git a/lazer/sdk/rust/protocol/Cargo.toml b/lazer/sdk/rust/protocol/Cargo.toml index 3460de1c71..c6771f407e 100644 --- a/lazer/sdk/rust/protocol/Cargo.toml +++ b/lazer/sdk/rust/protocol/Cargo.toml @@ -18,6 +18,7 @@ rust_decimal = "1.36.0" base64 = "0.22.1" prost = "0.13.5" prost-types = "0.13.5" +protobuf = "3.7.2" [dev-dependencies] bincode = "1.3.3" @@ -29,3 +30,4 @@ alloy-primitives = "0.8.19" [build-dependencies] prost-build = "0.13.5" +protobuf-codegen = "3.7.2" diff --git a/lazer/sdk/rust/protocol/build.rs b/lazer/sdk/rust/protocol/build.rs index a81ac58c41..5345a43a9a 100644 --- a/lazer/sdk/rust/protocol/build.rs +++ b/lazer/sdk/rust/protocol/build.rs @@ -5,18 +5,15 @@ use std::io::Result; /// Both JS and Rust SDKs read the proto files for generating types. fn main() -> Result<()> { // Tell cargo to recompile if any .proto files change - println!("cargo:rerun-if-changed=proto/"); + println!("cargo:rerun-if-changed=../../proto/"); - // Selects proto files to be read for compiling - let proto_files = vec![ - "../../proto/pyth_lazer_transaction.proto", - "../../proto/publisher_update.proto", - ]; - - // Compiles protos and generates Rust types - // Generated types are present in the output folder - prost_build::compile_protos(&proto_files, &["../../proto"]) - .expect("Failed to compile protos and generate types"); + protobuf_codegen::Codegen::new() + .pure() + .include("../../proto") + .input("../../proto/publisher_update.proto") + .input("../../proto/pyth_lazer_transaction.proto") + .cargo_out_dir("protobuf") + .run_from_script(); Ok(()) } diff --git a/lazer/sdk/rust/protocol/src/lib.rs b/lazer/sdk/rust/protocol/src/lib.rs index bf5a504397..14bc781ff0 100644 --- a/lazer/sdk/rust/protocol/src/lib.rs +++ b/lazer/sdk/rust/protocol/src/lib.rs @@ -10,8 +10,15 @@ mod serde_price_as_i64; mod serde_str; pub mod subscription; pub mod symbol_state; +//pub mod transaction { +// include!(concat!(env!("OUT_DIR"), "/pyth_lazer_transaction.rs")); +//} pub mod transaction { - include!(concat!(env!("OUT_DIR"), "/pyth_lazer_transaction.rs")); + pub use crate::protobuf::pyth_lazer_transaction::*; +} + +mod protobuf { + include!(concat!(env!("OUT_DIR"), "/protobuf/mod.rs")); } #[test] From a88c3df49426a52c941b1293753a3f8e49102387 Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Wed, 9 Apr 2025 13:31:22 -0700 Subject: [PATCH 17/26] add publisher sdk --- lazer/Cargo.lock | 99 +--- lazer/Cargo.toml | 2 +- lazer/publisher_sdk/js/.gitignore | 25 ++ lazer/publisher_sdk/js/.prettierignore | 6 + lazer/publisher_sdk/js/eslint.config.js | 1 + lazer/publisher_sdk/js/package.json | 61 +++ lazer/publisher_sdk/js/src/index.ts | 1 + lazer/publisher_sdk/js/tsconfig.build.json | 9 + lazer/publisher_sdk/js/tsconfig.json | 4 + lazer/publisher_sdk/js/turbo.json | 24 + .../proto/publisher_update.proto | 0 .../proto/pyth_lazer_transaction.proto | 0 lazer/publisher_sdk/rust/Cargo.toml | 14 + .../protocol => publisher_sdk/rust}/build.rs | 8 +- lazer/publisher_sdk/rust/src/lib.rs | 7 + lazer/sdk/js/package.json | 4 - lazer/sdk/js/turbo.json | 12 +- lazer/sdk/rust/protocol/Cargo.toml | 10 +- lazer/sdk/rust/protocol/src/lib.rs | 10 - pnpm-lock.yaml | 423 +++++++++++++++++- pnpm-workspace.yaml | 1 + 21 files changed, 585 insertions(+), 136 deletions(-) create mode 100644 lazer/publisher_sdk/js/.gitignore create mode 100644 lazer/publisher_sdk/js/.prettierignore create mode 100644 lazer/publisher_sdk/js/eslint.config.js create mode 100644 lazer/publisher_sdk/js/package.json create mode 100644 lazer/publisher_sdk/js/src/index.ts create mode 100644 lazer/publisher_sdk/js/tsconfig.build.json create mode 100644 lazer/publisher_sdk/js/tsconfig.json create mode 100644 lazer/publisher_sdk/js/turbo.json rename lazer/{sdk => publisher_sdk}/proto/publisher_update.proto (100%) rename lazer/{sdk => publisher_sdk}/proto/pyth_lazer_transaction.proto (100%) create mode 100644 lazer/publisher_sdk/rust/Cargo.toml rename lazer/{sdk/rust/protocol => publisher_sdk/rust}/build.rs (69%) create mode 100644 lazer/publisher_sdk/rust/src/lib.rs diff --git a/lazer/Cargo.lock b/lazer/Cargo.lock index 54aa2c9197..b2e1c8a75d 100644 --- a/lazer/Cargo.lock +++ b/lazer/Cargo.lock @@ -1941,12 +1941,6 @@ dependencies = [ "static_assertions", ] -[[package]] -name = "fixedbitset" -version = "0.5.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d674e81391d1e1ab681a28d99df07927c6d4aa5b027d7da16ba32d1d21ecd99" - [[package]] name = "flate2" version = "1.0.35" @@ -3084,12 +3078,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "multimap" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "defc4c55412d89136f966bbb339008b474350e5e6e78d2714439c386b3137a03" - [[package]] name = "native-tls" version = "0.2.13" @@ -3539,16 +3527,6 @@ dependencies = [ "ucd-trie", ] -[[package]] -name = "petgraph" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3672b37090dbd86368a4145bc067582552b29c27377cad4e0a306c97f9bd7772" -dependencies = [ - "fixedbitset", - "indexmap 2.6.0", -] - [[package]] name = "pin-project" version = "1.1.7" @@ -3677,16 +3655,6 @@ dependencies = [ "termtree", ] -[[package]] -name = "prettyplease" -version = "0.2.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64d1ec885c64d0457d564db4ec299b2dae3f9c02808b8ad9c3a089c591b18033" -dependencies = [ - "proc-macro2", - "syn 2.0.87", -] - [[package]] name = "primitive-types" version = "0.12.2" @@ -3779,58 +3747,6 @@ dependencies = [ "unarray", ] -[[package]] -name = "prost" -version = "0.13.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2796faa41db3ec313a31f7624d9286acf277b52de526150b7e69f3debf891ee5" -dependencies = [ - "bytes", - "prost-derive", -] - -[[package]] -name = "prost-build" -version = "0.13.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be769465445e8c1474e9c5dac2018218498557af32d9ed057325ec9a41ae81bf" -dependencies = [ - "heck 0.4.1", - "itertools 0.13.0", - "log", - "multimap", - "once_cell", - "petgraph", - "prettyplease", - "prost", - "prost-types", - "regex", - "syn 2.0.87", - "tempfile", -] - -[[package]] -name = "prost-derive" -version = "0.13.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a56d757972c98b346a9b766e3f02746cde6dd1cd1d1d563472929fdd74bec4d" -dependencies = [ - "anyhow", - "itertools 0.13.0", - "proc-macro2", - "quote", - "syn 2.0.87", -] - -[[package]] -name = "prost-types" -version = "0.13.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52c2c1bf36ddb1a1c396b3601a3cec27c2462e45f07c386894ec3ccf5332bd16" -dependencies = [ - "prost", -] - [[package]] name = "protobuf" version = "3.7.2" @@ -3927,7 +3843,7 @@ dependencies = [ [[package]] name = "pyth-lazer-protocol" -version = "0.7.1" +version = "0.7.0" dependencies = [ "alloy-primitives", "anyhow", @@ -3940,16 +3856,19 @@ dependencies = [ "hex", "itertools 0.13.0", "libsecp256k1 0.7.1", - "prost", - "prost-build", - "prost-types", - "protobuf", - "protobuf-codegen", "rust_decimal", "serde", "serde_json", ] +[[package]] +name = "pyth-lazer-publisher-sdk" +version = "0.1.0" +dependencies = [ + "protobuf", + "protobuf-codegen", +] + [[package]] name = "pyth-lazer-solana-contract" version = "0.3.0" diff --git a/lazer/Cargo.toml b/lazer/Cargo.toml index d9026be075..8600738bc6 100644 --- a/lazer/Cargo.toml +++ b/lazer/Cargo.toml @@ -3,7 +3,7 @@ resolver = "2" members = [ "sdk/rust/protocol", "sdk/rust/client", - "contracts/solana/programs/pyth-lazer-solana-contract", + "contracts/solana/programs/pyth-lazer-solana-contract", "publisher_sdk/rust", ] # TODO: only for solana programs diff --git a/lazer/publisher_sdk/js/.gitignore b/lazer/publisher_sdk/js/.gitignore new file mode 100644 index 0000000000..0178167c25 --- /dev/null +++ b/lazer/publisher_sdk/js/.gitignore @@ -0,0 +1,25 @@ +# Coverage directory used by tools like istanbul +coverage + +# Dependency directories +node_modules/ + +# Optional npm cache directory +.npm + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# dotenv environment variables file +.env + +# Build directory +dist/ + +tsconfig.tsbuildinfo + +# Types generated for .proto files +src/generated/ diff --git a/lazer/publisher_sdk/js/.prettierignore b/lazer/publisher_sdk/js/.prettierignore new file mode 100644 index 0000000000..a471a70eab --- /dev/null +++ b/lazer/publisher_sdk/js/.prettierignore @@ -0,0 +1,6 @@ +.vscode/ +coverage/ +dist/ +doc/ +doc*/ +node_modules/ diff --git a/lazer/publisher_sdk/js/eslint.config.js b/lazer/publisher_sdk/js/eslint.config.js new file mode 100644 index 0000000000..9058bfef8c --- /dev/null +++ b/lazer/publisher_sdk/js/eslint.config.js @@ -0,0 +1 @@ +export { base as default } from "@cprussin/eslint-config"; diff --git a/lazer/publisher_sdk/js/package.json b/lazer/publisher_sdk/js/package.json new file mode 100644 index 0000000000..86dc85db71 --- /dev/null +++ b/lazer/publisher_sdk/js/package.json @@ -0,0 +1,61 @@ +{ + "name": "@pythnetwork/pyth-lazer-publisher-sdk", + "version": "0.1.0", + "description": "Pyth Lazer Publisher SDK", + "publishConfig": { + "access": "public" + }, + "files": [ + "dist/**/*" + ], + "main": "./dist/cjs/index.js", + "types": "./dist/cjs/index.d.ts", + "exports": { + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } + }, + "scripts": { + "build:proto-codegen": "mkdir -p src/generated && pnpm exec pbjs -t static-module -w es6 -o src/generated/proto.js ../proto/*.proto && pnpm exec pbts -o src/generated/proto.d.ts src/generated/proto.js", + "build:cjs": "tsc --project tsconfig.build.json --verbatimModuleSyntax false --module commonjs --outDir ./dist/cjs && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json", + "build:esm": "tsc --project tsconfig.build.json --outDir ./dist/esm && echo '{\"type\":\"module\"}' > dist/esm/package.json", + "fix:lint": "eslint --fix . --max-warnings 0", + "test:lint": "eslint . --max-warnings 0", + "test:types": "tsc", + "test:format": "prettier --check .", + "fix:format": "prettier --write .", + "example": "node --loader ts-node/esm examples/index.js", + "doc": "typedoc --out docs/typedoc src", + "prepublishOnly": "pnpm run build", + "publish": "pnpm run script -- publish" + }, + "type": "module", + "homepage": "https://github.com/pyth-network/pyth-crosschain/tree/main/lazer/publisher_sdk/js", + "repository": { + "type": "git", + "url": "https://github.com/pyth-network/pyth-crosschain", + "directory": "lazer/publisher_sdk/js" + }, + "keywords": [ + "pyth", + "oracle" + ], + "license": "Apache-2.0", + "devDependencies": { + "@cprussin/eslint-config": "catalog:", + "@cprussin/tsconfig": "catalog:", + "@types/node": "^18.19.54", + "eslint": "catalog:", + "prettier": "catalog:", + "protobufjs": "^7.4.0", + "protobufjs-cli": "^1.1.3", + "ts-node": "catalog:", + "typedoc": "^0.26.8", + "typescript": "catalog:" + } +} diff --git a/lazer/publisher_sdk/js/src/index.ts b/lazer/publisher_sdk/js/src/index.ts new file mode 100644 index 0000000000..6a34b8d5ca --- /dev/null +++ b/lazer/publisher_sdk/js/src/index.ts @@ -0,0 +1 @@ +export * from "./generated/proto.js"; diff --git a/lazer/publisher_sdk/js/tsconfig.build.json b/lazer/publisher_sdk/js/tsconfig.build.json new file mode 100644 index 0000000000..a83f260a1e --- /dev/null +++ b/lazer/publisher_sdk/js/tsconfig.build.json @@ -0,0 +1,9 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "noEmit": false, + "incremental": false, + "declaration": true + }, + "exclude": ["node_modules", "dist", "examples/"] +} diff --git a/lazer/publisher_sdk/js/tsconfig.json b/lazer/publisher_sdk/js/tsconfig.json new file mode 100644 index 0000000000..32a3705250 --- /dev/null +++ b/lazer/publisher_sdk/js/tsconfig.json @@ -0,0 +1,4 @@ +{ + "extends": "@cprussin/tsconfig/base.json", + "exclude": ["node_modules", "dist"] +} diff --git a/lazer/publisher_sdk/js/turbo.json b/lazer/publisher_sdk/js/turbo.json new file mode 100644 index 0000000000..5b9d4030ec --- /dev/null +++ b/lazer/publisher_sdk/js/turbo.json @@ -0,0 +1,24 @@ +{ + "$schema": "https://turbo.build/schema.json", + "extends": ["//"], + "tasks": { + "build:proto-codegen": { + "dependsOn": ["//#install:modules"], + "inputs": ["../proto/**"], + "outputs": ["src/generated/**"], + "cache": false + }, + "build": { + "dependsOn": ["build:cjs", "build:esm"], + "outputs": ["dist/**"] + }, + "build:cjs": { + "dependsOn": ["build:proto-codegen", "^build"], + "outputs": ["dist/cjs/**"] + }, + "build:esm": { + "dependsOn": ["build:proto-codegen", "^build"], + "outputs": ["dist/esm/**"] + } + } +} diff --git a/lazer/sdk/proto/publisher_update.proto b/lazer/publisher_sdk/proto/publisher_update.proto similarity index 100% rename from lazer/sdk/proto/publisher_update.proto rename to lazer/publisher_sdk/proto/publisher_update.proto diff --git a/lazer/sdk/proto/pyth_lazer_transaction.proto b/lazer/publisher_sdk/proto/pyth_lazer_transaction.proto similarity index 100% rename from lazer/sdk/proto/pyth_lazer_transaction.proto rename to lazer/publisher_sdk/proto/pyth_lazer_transaction.proto diff --git a/lazer/publisher_sdk/rust/Cargo.toml b/lazer/publisher_sdk/rust/Cargo.toml new file mode 100644 index 0000000000..010d1aea23 --- /dev/null +++ b/lazer/publisher_sdk/rust/Cargo.toml @@ -0,0 +1,14 @@ +[package] +name = "pyth-lazer-publisher-sdk" +version = "0.1.0" +edition = "2021" +description = "Pyth Lazer Publisher SDK types." +license = "Apache-2.0" +repository = "https://github.com/pyth-network/pyth-crosschain" +build = "build.rs" + +[dependencies] +protobuf = "3.7.2" + +[build-dependencies] +protobuf-codegen = "3.7.2" diff --git a/lazer/sdk/rust/protocol/build.rs b/lazer/publisher_sdk/rust/build.rs similarity index 69% rename from lazer/sdk/rust/protocol/build.rs rename to lazer/publisher_sdk/rust/build.rs index 5345a43a9a..b8d1c542d5 100644 --- a/lazer/sdk/rust/protocol/build.rs +++ b/lazer/publisher_sdk/rust/build.rs @@ -5,13 +5,13 @@ use std::io::Result; /// Both JS and Rust SDKs read the proto files for generating types. fn main() -> Result<()> { // Tell cargo to recompile if any .proto files change - println!("cargo:rerun-if-changed=../../proto/"); + println!("cargo:rerun-if-changed=../proto/"); protobuf_codegen::Codegen::new() .pure() - .include("../../proto") - .input("../../proto/publisher_update.proto") - .input("../../proto/pyth_lazer_transaction.proto") + .include("../proto") + .input("../proto/publisher_update.proto") + .input("../proto/pyth_lazer_transaction.proto") .cargo_out_dir("protobuf") .run_from_script(); diff --git a/lazer/publisher_sdk/rust/src/lib.rs b/lazer/publisher_sdk/rust/src/lib.rs new file mode 100644 index 0000000000..107ab71977 --- /dev/null +++ b/lazer/publisher_sdk/rust/src/lib.rs @@ -0,0 +1,7 @@ +pub mod transaction { + pub use crate::protobuf::pyth_lazer_transaction::*; +} + +mod protobuf { + include!(concat!(env!("OUT_DIR"), "/protobuf/mod.rs")); +} diff --git a/lazer/sdk/js/package.json b/lazer/sdk/js/package.json index f4b454ee21..e84f0f2038 100644 --- a/lazer/sdk/js/package.json +++ b/lazer/sdk/js/package.json @@ -21,7 +21,6 @@ } }, "scripts": { - "build:proto-codegen": "mkdir -p src/generated && pnpm exec pbjs -t static-module -w es6 -o src/generated/proto.js ../proto/*.proto && pnpm exec pbts -o src/generated/proto.d.ts src/generated/proto.js", "build:cjs": "tsc --project tsconfig.build.json --verbatimModuleSyntax false --module commonjs --outDir ./dist/cjs && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json", "build:esm": "tsc --project tsconfig.build.json --outDir ./dist/esm && echo '{\"type\":\"module\"}' > dist/esm/package.json", "fix:lint": "eslint --fix . --max-warnings 0", @@ -31,7 +30,6 @@ "fix:format": "prettier --write .", "example": "node --loader ts-node/esm examples/index.js", "doc": "typedoc --out docs/typedoc src", - "prepublishOnly": "pnpm run build", "publish": "pnpm run script -- publish" }, "devDependencies": { @@ -41,8 +39,6 @@ "@types/ws": "^8.5.12", "eslint": "catalog:", "prettier": "catalog:", - "protobufjs": "^7.4.0", - "protobufjs-cli": "^1.1.3", "ts-node": "catalog:", "typedoc": "^0.26.8", "typescript": "catalog:" diff --git a/lazer/sdk/js/turbo.json b/lazer/sdk/js/turbo.json index 3fe1d1f8a0..a5468c6a4a 100644 --- a/lazer/sdk/js/turbo.json +++ b/lazer/sdk/js/turbo.json @@ -2,22 +2,16 @@ "$schema": "https://turbo.build/schema.json", "extends": ["//"], "tasks": { - "build:proto-codegen": { - "dependsOn": ["//#install:modules"], - "inputs": ["../proto/**"], - "outputs": ["src/generated/**"], - "cache": false - }, "build": { - "dependsOn": ["build:proto-codegen", "^build"], + "dependsOn": ["^build"], "outputs": ["dist/**"] }, "build:cjs": { - "dependsOn": ["build:proto-codegen"], + "dependsOn": ["build"], "outputs": ["dist/cjs/**"] }, "build:esm": { - "dependsOn": ["build:proto-codegen"], + "dependsOn": ["build"], "outputs": ["dist/esm/**"] } } diff --git a/lazer/sdk/rust/protocol/Cargo.toml b/lazer/sdk/rust/protocol/Cargo.toml index c6771f407e..975f44bbb9 100644 --- a/lazer/sdk/rust/protocol/Cargo.toml +++ b/lazer/sdk/rust/protocol/Cargo.toml @@ -1,11 +1,10 @@ [package] name = "pyth-lazer-protocol" -version = "0.7.1" +version = "0.7.0" edition = "2021" description = "Pyth Lazer SDK - protocol types." license = "Apache-2.0" repository = "https://github.com/pyth-network/pyth-crosschain" -build = "build.rs" [dependencies] byteorder = "1.5.0" @@ -16,9 +15,6 @@ derive_more = { version = "1.0.0", features = ["from"] } itertools = "0.13.0" rust_decimal = "1.36.0" base64 = "0.22.1" -prost = "0.13.5" -prost-types = "0.13.5" -protobuf = "3.7.2" [dev-dependencies] bincode = "1.3.3" @@ -27,7 +23,3 @@ hex = "0.4.3" libsecp256k1 = "0.7.1" bs58 = "0.5.1" alloy-primitives = "0.8.19" - -[build-dependencies] -prost-build = "0.13.5" -protobuf-codegen = "3.7.2" diff --git a/lazer/sdk/rust/protocol/src/lib.rs b/lazer/sdk/rust/protocol/src/lib.rs index 14bc781ff0..d10bedeebc 100644 --- a/lazer/sdk/rust/protocol/src/lib.rs +++ b/lazer/sdk/rust/protocol/src/lib.rs @@ -10,16 +10,6 @@ mod serde_price_as_i64; mod serde_str; pub mod subscription; pub mod symbol_state; -//pub mod transaction { -// include!(concat!(env!("OUT_DIR"), "/pyth_lazer_transaction.rs")); -//} -pub mod transaction { - pub use crate::protobuf::pyth_lazer_transaction::*; -} - -mod protobuf { - include!(concat!(env!("OUT_DIR"), "/protobuf/mod.rs")); -} #[test] fn magics_in_big_endian() { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a9b8437162..09cd7c70de 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -908,7 +908,7 @@ importers: version: 0.9.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) '@solana/wallet-adapter-wallets': specifier: 'catalog:' - version: 0.19.33(@babel/runtime@7.27.0)(@react-native-async-storage/async-storage@1.24.0(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))(zod@3.24.2) + version: 0.19.33(@babel/runtime@7.27.0)(@react-native-async-storage/async-storage@1.24.0(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(zod@3.24.2) '@solana/web3.js': specifier: 'catalog:' version: 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) @@ -1488,7 +1488,7 @@ importers: version: 0.9.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) '@solana/wallet-adapter-wallets': specifier: 'catalog:' - version: 0.19.33(@babel/runtime@7.27.0)(@react-native-async-storage/async-storage@1.24.0(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))(zod@3.24.2) + version: 0.19.33(@babel/runtime@7.27.0)(@react-native-async-storage/async-storage@1.24.0(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))(zod@3.24.2) '@solana/web3.js': specifier: ^1.73.0 version: 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) @@ -1627,6 +1627,39 @@ importers: specifier: ^17.7.2 version: 17.7.2 + lazer/publisher_sdk/js: + devDependencies: + '@cprussin/eslint-config': + specifier: 'catalog:' + version: 4.0.2(@testing-library/dom@10.4.0)(@typescript-eslint/eslint-plugin@8.29.0(@typescript-eslint/parser@8.29.0(eslint@9.23.0(jiti@1.21.7))(typescript@5.8.2))(eslint@9.23.0(jiti@1.21.7))(typescript@5.8.2))(@typescript-eslint/parser@8.29.0(eslint@9.23.0(jiti@1.21.7))(typescript@5.8.2))(eslint@9.23.0(jiti@1.21.7))(jest@29.7.0(@types/node@18.19.86)(ts-node@10.9.2(@types/node@18.19.86)(typescript@5.8.2)))(ts-node@10.9.2(@types/node@18.19.86)(typescript@5.8.2))(turbo@2.4.4)(typescript@5.8.2) + '@cprussin/tsconfig': + specifier: 'catalog:' + version: 3.1.2(typescript@5.8.2) + '@types/node': + specifier: ^18.19.54 + version: 18.19.86 + eslint: + specifier: 'catalog:' + version: 9.23.0(jiti@1.21.7) + prettier: + specifier: 'catalog:' + version: 3.5.3 + protobufjs: + specifier: ^7.4.0 + version: 7.4.0 + protobufjs-cli: + specifier: ^1.1.3 + version: 1.1.3(protobufjs@7.4.0) + ts-node: + specifier: 'catalog:' + version: 10.9.2(@types/node@18.19.86)(typescript@5.8.2) + typedoc: + specifier: ^0.26.8 + version: 0.26.11(typescript@5.8.2) + typescript: + specifier: 'catalog:' + version: 5.8.2 + lazer/sdk/js: dependencies: '@isaacs/ttlcache': @@ -1666,12 +1699,6 @@ importers: prettier: specifier: 'catalog:' version: 3.5.3 - protobufjs: - specifier: ^7.4.0 - version: 7.4.0 - protobufjs-cli: - specifier: ^1.1.3 - version: 1.1.3(protobufjs@7.4.0) ts-node: specifier: 'catalog:' version: 10.9.2(@types/node@18.19.86)(typescript@5.8.2) @@ -24926,6 +24953,17 @@ snapshots: '@ethersproject/properties': 5.8.0 '@ethersproject/strings': 5.8.0 + '@everstake/wallet-sdk-solana@2.0.9(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': + dependencies: + '@solana-program/compute-budget': 0.6.1(@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))) + '@solana-program/stake': 0.1.0(@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))) + '@solana-program/system': 0.6.2(@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))) + '@solana/web3.js': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + - typescript + - ws + '@everstake/wallet-sdk-solana@2.0.9(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@solana-program/compute-budget': 0.6.1(@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))) @@ -30455,31 +30493,60 @@ snapshots: - react - react-native + '@solana-program/compute-budget@0.6.1(@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)))': + dependencies: + '@solana/web3.js': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@solana-program/compute-budget@0.6.1(@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)))': dependencies: '@solana/web3.js': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@solana-program/compute-budget@0.7.0(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)))': + dependencies: + '@solana/kit': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@solana-program/compute-budget@0.7.0(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)))': dependencies: '@solana/kit': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@solana-program/stake@0.1.0(@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)))': + dependencies: + '@solana/web3.js': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@solana-program/stake@0.1.0(@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)))': dependencies: '@solana/web3.js': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@solana-program/system@0.6.2(@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)))': + dependencies: + '@solana/web3.js': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@solana-program/system@0.6.2(@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)))': dependencies: '@solana/web3.js': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@solana-program/system@0.7.0(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)))': + dependencies: + '@solana/kit': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@solana-program/system@0.7.0(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)))': dependencies: '@solana/kit': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@solana-program/token-2022@0.4.0(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)))(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))': + dependencies: + '@solana/kit': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@solana/sysvars': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana-program/token-2022@0.4.0(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)))(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))': dependencies: '@solana/kit': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)) '@solana/sysvars': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana-program/token@0.5.1(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)))': + dependencies: + '@solana/kit': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@solana-program/token@0.5.1(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)))': dependencies: '@solana/kit': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)) @@ -30819,6 +30886,31 @@ snapshots: transitivePeerDependencies: - fastestsmallesttextencoderdecoder + '@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': + dependencies: + '@solana/accounts': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/addresses': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/codecs': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/errors': 2.1.0(typescript@5.8.2) + '@solana/functional': 2.1.0(typescript@5.8.2) + '@solana/instructions': 2.1.0(typescript@5.8.2) + '@solana/keys': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/programs': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/rpc': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/rpc-parsed-types': 2.1.0(typescript@5.8.2) + '@solana/rpc-spec-types': 2.1.0(typescript@5.8.2) + '@solana/rpc-subscriptions': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@solana/rpc-types': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/signers': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/sysvars': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/transaction-confirmation': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@solana/transaction-messages': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/transactions': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + typescript: 5.8.2 + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + - ws + '@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@solana/accounts': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) @@ -31005,6 +31097,15 @@ snapshots: transitivePeerDependencies: - fastestsmallesttextencoderdecoder + '@solana/rpc-subscriptions-channel-websocket@2.0.0(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': + dependencies: + '@solana/errors': 2.0.0(typescript@5.8.2) + '@solana/functional': 2.0.0(typescript@5.8.2) + '@solana/rpc-subscriptions-spec': 2.0.0(typescript@5.8.2) + '@solana/subscribable': 2.0.0(typescript@5.8.2) + typescript: 5.8.2 + ws: 8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) + '@solana/rpc-subscriptions-channel-websocket@2.0.0(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@solana/errors': 2.0.0(typescript@5.8.2) @@ -31014,6 +31115,15 @@ snapshots: typescript: 5.8.2 ws: 8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10) + '@solana/rpc-subscriptions-channel-websocket@2.1.0(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': + dependencies: + '@solana/errors': 2.1.0(typescript@5.8.2) + '@solana/functional': 2.1.0(typescript@5.8.2) + '@solana/rpc-subscriptions-spec': 2.1.0(typescript@5.8.2) + '@solana/subscribable': 2.1.0(typescript@5.8.2) + typescript: 5.8.2 + ws: 8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) + '@solana/rpc-subscriptions-channel-websocket@2.1.0(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@solana/errors': 2.1.0(typescript@5.8.2) @@ -31039,6 +31149,24 @@ snapshots: '@solana/subscribable': 2.1.0(typescript@5.8.2) typescript: 5.8.2 + '@solana/rpc-subscriptions@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': + dependencies: + '@solana/errors': 2.0.0(typescript@5.8.2) + '@solana/fast-stable-stringify': 2.0.0(typescript@5.8.2) + '@solana/functional': 2.0.0(typescript@5.8.2) + '@solana/promises': 2.0.0(typescript@5.8.2) + '@solana/rpc-spec-types': 2.0.0(typescript@5.8.2) + '@solana/rpc-subscriptions-api': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/rpc-subscriptions-channel-websocket': 2.0.0(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@solana/rpc-subscriptions-spec': 2.0.0(typescript@5.8.2) + '@solana/rpc-transformers': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/rpc-types': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/subscribable': 2.0.0(typescript@5.8.2) + typescript: 5.8.2 + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + - ws + '@solana/rpc-subscriptions@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@solana/errors': 2.0.0(typescript@5.8.2) @@ -31057,6 +31185,24 @@ snapshots: - fastestsmallesttextencoderdecoder - ws + '@solana/rpc-subscriptions@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': + dependencies: + '@solana/errors': 2.1.0(typescript@5.8.2) + '@solana/fast-stable-stringify': 2.1.0(typescript@5.8.2) + '@solana/functional': 2.1.0(typescript@5.8.2) + '@solana/promises': 2.1.0(typescript@5.8.2) + '@solana/rpc-spec-types': 2.1.0(typescript@5.8.2) + '@solana/rpc-subscriptions-api': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/rpc-subscriptions-channel-websocket': 2.1.0(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@solana/rpc-subscriptions-spec': 2.1.0(typescript@5.8.2) + '@solana/rpc-transformers': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/rpc-types': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/subscribable': 2.1.0(typescript@5.8.2) + typescript: 5.8.2 + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + - ws + '@solana/rpc-subscriptions@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@solana/errors': 2.1.0(typescript@5.8.2) @@ -31327,6 +31473,23 @@ snapshots: transitivePeerDependencies: - fastestsmallesttextencoderdecoder + '@solana/transaction-confirmation@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': + dependencies: + '@solana/addresses': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/codecs-strings': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/errors': 2.0.0(typescript@5.8.2) + '@solana/keys': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/promises': 2.0.0(typescript@5.8.2) + '@solana/rpc': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/rpc-subscriptions': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@solana/rpc-types': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/transaction-messages': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/transactions': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + typescript: 5.8.2 + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + - ws + '@solana/transaction-confirmation@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@solana/addresses': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) @@ -31344,6 +31507,23 @@ snapshots: - fastestsmallesttextencoderdecoder - ws + '@solana/transaction-confirmation@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': + dependencies: + '@solana/addresses': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/codecs-strings': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/errors': 2.1.0(typescript@5.8.2) + '@solana/keys': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/promises': 2.1.0(typescript@5.8.2) + '@solana/rpc': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/rpc-subscriptions': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@solana/rpc-types': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/transaction-messages': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/transactions': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + typescript: 5.8.2 + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + - ws + '@solana/transaction-confirmation@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@solana/addresses': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) @@ -31686,6 +31866,26 @@ snapshots: - supports-color - utf-8-validate + '@solana/wallet-adapter-trezor@0.1.3(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': + dependencies: + '@solana/wallet-adapter-base': 0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) + '@trezor/connect-web': 9.5.3(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + buffer: 6.0.3 + transitivePeerDependencies: + - '@solana/sysvars' + - bufferutil + - encoding + - expo-constants + - expo-localization + - fastestsmallesttextencoderdecoder + - react-native + - supports-color + - tslib + - typescript + - utf-8-validate + - ws + '@solana/wallet-adapter-trezor@0.1.3(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@solana/wallet-adapter-base': 0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) @@ -31748,7 +31948,84 @@ snapshots: - utf-8-validate - zod - '@solana/wallet-adapter-wallets@0.19.33(@babel/runtime@7.27.0)(@react-native-async-storage/async-storage@1.24.0(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))(zod@3.24.2)': + '@solana/wallet-adapter-wallets@0.19.33(@babel/runtime@7.27.0)(@react-native-async-storage/async-storage@1.24.0(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(zod@3.24.2)': + dependencies: + '@solana/wallet-adapter-alpha': 0.1.11(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-avana': 0.1.14(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-bitkeep': 0.3.21(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-bitpie': 0.5.19(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-clover': 0.4.20(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-coin98': 0.5.21(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-coinbase': 0.1.20(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-coinhub': 0.3.19(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-fractal': 0.1.9(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(react-dom@19.1.0(react@19.1.0))(react@19.1.0) + '@solana/wallet-adapter-huobi': 0.1.16(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-hyperpay': 0.1.15(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-keystone': 0.1.16(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(encoding@0.1.13)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-krystal': 0.1.13(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-ledger': 0.9.26(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-mathwallet': 0.9.19(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-neko': 0.2.13(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-nightly': 0.1.17(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-nufi': 0.1.18(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-onto': 0.1.8(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-particle': 0.1.13(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0) + '@solana/wallet-adapter-phantom': 0.9.25(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-safepal': 0.5.19(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-saifu': 0.1.16(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-salmon': 0.1.15(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-sky': 0.1.16(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-solflare': 0.6.29(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-solong': 0.9.19(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-spot': 0.1.16(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-tokenary': 0.1.13(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-tokenpocket': 0.4.20(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-torus': 0.11.29(@babel/runtime@7.27.0)(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-trezor': 0.1.3(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-trust': 0.1.14(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-unsafe-burner': 0.1.8(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-walletconnect': 0.1.17(@react-native-async-storage/async-storage@1.24.0(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10)(zod@3.24.2) + '@solana/wallet-adapter-xdefi': 0.1.8(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) + transitivePeerDependencies: + - '@azure/app-configuration' + - '@azure/cosmos' + - '@azure/data-tables' + - '@azure/identity' + - '@azure/keyvault-secrets' + - '@azure/storage-blob' + - '@babel/runtime' + - '@capacitor/preferences' + - '@deno/kv' + - '@netlify/blobs' + - '@planetscale/database' + - '@react-native-async-storage/async-storage' + - '@sentry/types' + - '@solana/sysvars' + - '@upstash/redis' + - '@vercel/blob' + - '@vercel/kv' + - aws4fetch + - bs58 + - bufferutil + - db0 + - encoding + - expo-constants + - expo-localization + - fastestsmallesttextencoderdecoder + - ioredis + - react + - react-dom + - react-native + - supports-color + - tslib + - typescript + - uploadthing + - utf-8-validate + - ws + - zod + + '@solana/wallet-adapter-wallets@0.19.33(@babel/runtime@7.27.0)(@react-native-async-storage/async-storage@1.24.0(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))(zod@3.24.2)': dependencies: '@solana/wallet-adapter-alpha': 0.1.11(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-avana': 0.1.14(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) @@ -32007,6 +32284,31 @@ snapshots: - encoding - utf-8-validate + '@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': + dependencies: + '@solana/accounts': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/addresses': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/codecs': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/errors': 2.0.0(typescript@5.8.2) + '@solana/functional': 2.0.0(typescript@5.8.2) + '@solana/instructions': 2.0.0(typescript@5.8.2) + '@solana/keys': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/programs': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/rpc': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/rpc-parsed-types': 2.0.0(typescript@5.8.2) + '@solana/rpc-spec-types': 2.0.0(typescript@5.8.2) + '@solana/rpc-subscriptions': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@solana/rpc-types': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/signers': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/sysvars': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/transaction-confirmation': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@solana/transaction-messages': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + '@solana/transactions': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) + typescript: 5.8.2 + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + - ws + '@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@solana/accounts': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) @@ -32983,6 +33285,17 @@ snapshots: - expo-localization - react-native + '@trezor/blockchain-link-types@1.3.3(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': + dependencies: + '@solana/kit': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@trezor/type-utils': 1.1.5 + '@trezor/utxo-lib': 2.3.3(tslib@2.8.1) + tslib: 2.8.1 + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + - typescript + - ws + '@trezor/blockchain-link-types@1.3.3(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@solana/kit': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)) @@ -33005,6 +33318,35 @@ snapshots: - expo-localization - react-native + '@trezor/blockchain-link@2.4.3(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': + dependencies: + '@everstake/wallet-sdk-solana': 2.0.9(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@solana-program/token': 0.5.1(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))) + '@solana-program/token-2022': 0.4.0(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)))(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)) + '@solana/kit': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@trezor/blockchain-link-types': 1.3.3(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@trezor/blockchain-link-utils': 1.3.3(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1) + '@trezor/env-utils': 1.3.2(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1) + '@trezor/utils': 9.3.3(tslib@2.8.1) + '@trezor/utxo-lib': 2.3.3(tslib@2.8.1) + '@trezor/websocket-client': 1.1.3(bufferutil@4.0.9)(tslib@2.8.1)(utf-8-validate@5.0.10) + '@types/web': 0.0.197 + events: 3.3.0 + ripple-lib: 1.10.1(bufferutil@4.0.9)(utf-8-validate@5.0.10) + socks-proxy-agent: 8.0.5 + tslib: 2.8.1 + transitivePeerDependencies: + - '@solana/sysvars' + - bufferutil + - expo-constants + - expo-localization + - fastestsmallesttextencoderdecoder + - react-native + - supports-color + - typescript + - utf-8-validate + - ws + '@trezor/blockchain-link@2.4.3(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@everstake/wallet-sdk-solana': 2.0.9(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)) @@ -33053,6 +33395,25 @@ snapshots: - expo-localization - react-native + '@trezor/connect-web@9.5.3(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': + dependencies: + '@trezor/connect': 9.5.3(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@trezor/connect-common': 0.3.3(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1) + '@trezor/utils': 9.3.3(tslib@2.8.1) + tslib: 2.8.1 + transitivePeerDependencies: + - '@solana/sysvars' + - bufferutil + - encoding + - expo-constants + - expo-localization + - fastestsmallesttextencoderdecoder + - react-native + - supports-color + - typescript + - utf-8-validate + - ws + '@trezor/connect-web@9.5.3(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@trezor/connect': 9.5.3(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)) @@ -33072,6 +33433,50 @@ snapshots: - utf-8-validate - ws + '@trezor/connect@9.5.3(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': + dependencies: + '@ethereumjs/common': 4.4.0 + '@ethereumjs/tx': 5.4.0 + '@fivebinaries/coin-selection': 3.0.0 + '@mobily/ts-belt': 3.13.1 + '@noble/hashes': 1.7.1 + '@scure/bip39': 1.5.4 + '@solana-program/compute-budget': 0.7.0(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))) + '@solana-program/system': 0.7.0(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))) + '@solana-program/token': 0.5.1(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))) + '@solana-program/token-2022': 0.4.0(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)))(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)) + '@solana/kit': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@trezor/blockchain-link': 2.4.3(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@trezor/blockchain-link-types': 1.3.3(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + '@trezor/blockchain-link-utils': 1.3.3(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1) + '@trezor/connect-analytics': 1.3.2(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1) + '@trezor/connect-common': 0.3.3(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1) + '@trezor/crypto-utils': 1.1.2(tslib@2.8.1) + '@trezor/device-utils': 1.0.2 + '@trezor/protobuf': 1.3.3(tslib@2.8.1) + '@trezor/protocol': 1.2.5(tslib@2.8.1) + '@trezor/schema-utils': 1.3.2(tslib@2.8.1) + '@trezor/transport': 1.4.3(encoding@0.1.13)(tslib@2.8.1) + '@trezor/utils': 9.3.3(tslib@2.8.1) + '@trezor/utxo-lib': 2.3.3(tslib@2.8.1) + blakejs: 1.2.1 + bs58: 6.0.0 + bs58check: 4.0.0 + cross-fetch: 4.1.0(encoding@0.1.13) + tslib: 2.8.1 + transitivePeerDependencies: + - '@solana/sysvars' + - bufferutil + - encoding + - expo-constants + - expo-localization + - fastestsmallesttextencoderdecoder + - react-native + - supports-color + - typescript + - utf-8-validate + - ws + '@trezor/connect@9.5.3(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@ethereumjs/common': 4.4.0 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 570dbff067..b68b4c45e2 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -43,6 +43,7 @@ packages: - contract_manager - lazer/contracts/solana - lazer/sdk/js + - lazer/publisher_sdk/js catalog: "@amplitude/analytics-browser": ^2.13.0 From e93cdd97e9928883947eda0774b600f0e6eb544f Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Wed, 9 Apr 2025 13:33:58 -0700 Subject: [PATCH 18/26] remove remaining changes --- lazer/publisher_sdk/js/README.md | 17 +++++++++++++++++ lazer/sdk/js/.gitignore | 3 --- lazer/sdk/js/README.md | 12 ------------ lazer/sdk/js/examples/index.ts | 2 +- 4 files changed, 18 insertions(+), 16 deletions(-) create mode 100644 lazer/publisher_sdk/js/README.md diff --git a/lazer/publisher_sdk/js/README.md b/lazer/publisher_sdk/js/README.md new file mode 100644 index 0000000000..cecc1cea87 --- /dev/null +++ b/lazer/publisher_sdk/js/README.md @@ -0,0 +1,17 @@ +# pyth-lazer-publisher-sdk - Readme + +## Contributing & Development + +See [contributing.md](docs/contributing/contributing.md) for information on how to develop or contribute to this project! + +## Installation and build + +### pnpm + +``` +cd to crosschain root +$ pnpm install +$ pnpm turbo --filter @pythnetwork/pyth-lazer-publisher-sdk build +``` + +As part of the build, files will be generated from the proto files found in the lazer/proto folder. These generated files are placed in the src/generated/ folder. diff --git a/lazer/sdk/js/.gitignore b/lazer/sdk/js/.gitignore index 0178167c25..4359a98098 100644 --- a/lazer/sdk/js/.gitignore +++ b/lazer/sdk/js/.gitignore @@ -20,6 +20,3 @@ node_modules/ dist/ tsconfig.tsbuildinfo - -# Types generated for .proto files -src/generated/ diff --git a/lazer/sdk/js/README.md b/lazer/sdk/js/README.md index 38e88e14c8..65e587c6c9 100644 --- a/lazer/sdk/js/README.md +++ b/lazer/sdk/js/README.md @@ -3,15 +3,3 @@ ## Contributing & Development See [contributing.md](docs/contributing/contributing.md) for information on how to develop or contribute to this project! - -## Installation and build - -### pnpm - -``` -cd to crosschain root -$ pnpm install -$ pnpm turbo --filter @pythnetwork/pyth-lazer-sdk build -``` - -As part of the build, files will be generated from the proto files found in the lazer/proto folder. These generated files are placed in the src/generated/ folder. diff --git a/lazer/sdk/js/examples/index.ts b/lazer/sdk/js/examples/index.ts index dbfe9e0e7b..7d88f0748e 100644 --- a/lazer/sdk/js/examples/index.ts +++ b/lazer/sdk/js/examples/index.ts @@ -4,7 +4,7 @@ import { PythLazerClient } from "../src/index.js"; // Ignore debug messages -console.debug = () => { }; +console.debug = () => {}; const client = await PythLazerClient.create( ["wss://pyth-lazer.dourolabs.app/v1/stream"], From 3979cc8656bc2420d4ca352670f1208dda9f050e Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Wed, 9 Apr 2025 13:37:31 -0700 Subject: [PATCH 19/26] add pub id --- lazer/publisher_sdk/proto/publisher_update.proto | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lazer/publisher_sdk/proto/publisher_update.proto b/lazer/publisher_sdk/proto/publisher_update.proto index 769726f8c3..e47f7cfa0c 100644 --- a/lazer/publisher_sdk/proto/publisher_update.proto +++ b/lazer/publisher_sdk/proto/publisher_update.proto @@ -9,8 +9,12 @@ message PublisherUpdate { // Array of updates, each of which target a single feed repeated FeedUpdate updates = 1; + // ID of the Publisher that is sending the update + // Should match ID stored in Pyth Lazer + optional uint32 publisher_id = 2; + // Timestamp when this message was created - optional google.protobuf.Timestamp publisher_timestamp = 2; + optional google.protobuf.Timestamp publisher_timestamp = 3; } // Update to a feed. May contain different types of data depending on what kind of update it is From 7c8ae8ced65825e593783b73b51e7ca0b23d602e Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Wed, 9 Apr 2025 14:55:59 -0700 Subject: [PATCH 20/26] add new pub sdk to workspace --- .../publish-rust-lazer-publisher-sdk.yml | 18 ++++++++++++++++++ lazer/Cargo.toml | 1 + 2 files changed, 19 insertions(+) create mode 100644 .github/workflows/publish-rust-lazer-publisher-sdk.yml diff --git a/.github/workflows/publish-rust-lazer-publisher-sdk.yml b/.github/workflows/publish-rust-lazer-publisher-sdk.yml new file mode 100644 index 0000000000..ac29ed0e83 --- /dev/null +++ b/.github/workflows/publish-rust-lazer-publisher-sdk.yml @@ -0,0 +1,18 @@ +name: Publish Rust package pyth-lazer-publisher-sdk to crates.io + +on: + push: + tags: + - rust-pyth-lazer-publisher-sdk-v* +jobs: + publish-pyth-lazer-publisher-sdk: + name: Publish Rust package pyth-lazer-published-sdk to crates.io + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v2 + + - run: cargo publish --token ${CARGO_REGISTRY_TOKEN} + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + working-directory: "lazer/sdk/rust/published-sdk" diff --git a/lazer/Cargo.toml b/lazer/Cargo.toml index 8600738bc6..64e1b3675b 100644 --- a/lazer/Cargo.toml +++ b/lazer/Cargo.toml @@ -1,6 +1,7 @@ [workspace] resolver = "2" members = [ + "publisher_sdk/rust", "sdk/rust/protocol", "sdk/rust/client", "contracts/solana/programs/pyth-lazer-solana-contract", "publisher_sdk/rust", From ac2e9814360110c37939f7d4ab605fbe44873dfb Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Wed, 9 Apr 2025 16:20:16 -0700 Subject: [PATCH 21/26] duplicate workspace --- lazer/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lazer/Cargo.toml b/lazer/Cargo.toml index 64e1b3675b..ccc3ce870b 100644 --- a/lazer/Cargo.toml +++ b/lazer/Cargo.toml @@ -4,7 +4,7 @@ members = [ "publisher_sdk/rust", "sdk/rust/protocol", "sdk/rust/client", - "contracts/solana/programs/pyth-lazer-solana-contract", "publisher_sdk/rust", + "contracts/solana/programs/pyth-lazer-solana-contract", ] # TODO: only for solana programs From d2df006f04d7afe95d65387b6c2bea20fc366466 Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Thu, 10 Apr 2025 11:30:18 -0700 Subject: [PATCH 22/26] remove unnecessary ignores --- lazer/publisher_sdk/js/.gitignore | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/lazer/publisher_sdk/js/.gitignore b/lazer/publisher_sdk/js/.gitignore index 0178167c25..5f6f794740 100644 --- a/lazer/publisher_sdk/js/.gitignore +++ b/lazer/publisher_sdk/js/.gitignore @@ -1,25 +1,8 @@ # Coverage directory used by tools like istanbul coverage -# Dependency directories -node_modules/ - -# Optional npm cache directory -.npm - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# dotenv environment variables file -.env - # Build directory dist/ -tsconfig.tsbuildinfo - # Types generated for .proto files src/generated/ From bfb713a0e0e2d300e4e1e7c0bc6a1c4fd6c6b703 Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Thu, 10 Apr 2025 11:34:52 -0700 Subject: [PATCH 23/26] add caching inputs for turbo --- lazer/publisher_sdk/js/turbo.json | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/lazer/publisher_sdk/js/turbo.json b/lazer/publisher_sdk/js/turbo.json index 5b9d4030ec..e6af76e059 100644 --- a/lazer/publisher_sdk/js/turbo.json +++ b/lazer/publisher_sdk/js/turbo.json @@ -10,14 +10,41 @@ }, "build": { "dependsOn": ["build:cjs", "build:esm"], + "inputs": [ + "$TURBO_DEFAULT$", + "!README.md", + "!**/*.test.*", + "!jest.config.js", + "!eslint.config.js", + "!prettier.config.js", + "!vercel.json" + ], "outputs": ["dist/**"] }, "build:cjs": { "dependsOn": ["build:proto-codegen", "^build"], + "inputs": [ + "$TURBO_DEFAULT$", + "!README.md", + "!**/*.test.*", + "!jest.config.js", + "!eslint.config.js", + "!prettier.config.js", + "!vercel.json" + ], "outputs": ["dist/cjs/**"] }, "build:esm": { "dependsOn": ["build:proto-codegen", "^build"], + "inputs": [ + "$TURBO_DEFAULT$", + "!README.md", + "!**/*.test.*", + "!jest.config.js", + "!eslint.config.js", + "!prettier.config.js", + "!vercel.json" + ], "outputs": ["dist/esm/**"] } } From 10b17d861d04d0bc239d93af1aba7679ad5ec480 Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Thu, 10 Apr 2025 11:49:47 -0700 Subject: [PATCH 24/26] change export of js sdk --- lazer/publisher_sdk/js/package.json | 13 ++++++------- lazer/publisher_sdk/js/src/index.ts | 1 - lazer/publisher_sdk/js/tsconfig.build.json | 1 + lazer/publisher_sdk/js/tsconfig.json | 1 + 4 files changed, 8 insertions(+), 8 deletions(-) delete mode 100644 lazer/publisher_sdk/js/src/index.ts diff --git a/lazer/publisher_sdk/js/package.json b/lazer/publisher_sdk/js/package.json index 86dc85db71..cff9ec5f6f 100644 --- a/lazer/publisher_sdk/js/package.json +++ b/lazer/publisher_sdk/js/package.json @@ -8,16 +8,16 @@ "files": [ "dist/**/*" ], - "main": "./dist/cjs/index.js", - "types": "./dist/cjs/index.d.ts", + "main": "./src/generated/proto.js", + "types": "./src/generated/proto.d.ts", "exports": { "import": { - "types": "./dist/esm/index.d.ts", - "default": "./dist/esm/index.js" + "types": "./src/generated/proto.d.ts", + "default": "./src/generated//proto.js" }, "require": { - "types": "./dist/cjs/index.d.ts", - "default": "./dist/cjs/index.js" + "types": "./src/generated/proto.d.ts", + "default": "./src/generated//proto.js" } }, "scripts": { @@ -29,7 +29,6 @@ "test:types": "tsc", "test:format": "prettier --check .", "fix:format": "prettier --write .", - "example": "node --loader ts-node/esm examples/index.js", "doc": "typedoc --out docs/typedoc src", "prepublishOnly": "pnpm run build", "publish": "pnpm run script -- publish" diff --git a/lazer/publisher_sdk/js/src/index.ts b/lazer/publisher_sdk/js/src/index.ts deleted file mode 100644 index 6a34b8d5ca..0000000000 --- a/lazer/publisher_sdk/js/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./generated/proto.js"; diff --git a/lazer/publisher_sdk/js/tsconfig.build.json b/lazer/publisher_sdk/js/tsconfig.build.json index a83f260a1e..7be5a029fa 100644 --- a/lazer/publisher_sdk/js/tsconfig.build.json +++ b/lazer/publisher_sdk/js/tsconfig.build.json @@ -5,5 +5,6 @@ "incremental": false, "declaration": true }, + "include": ["src/**/*"], "exclude": ["node_modules", "dist", "examples/"] } diff --git a/lazer/publisher_sdk/js/tsconfig.json b/lazer/publisher_sdk/js/tsconfig.json index 32a3705250..2f9bf2a3f3 100644 --- a/lazer/publisher_sdk/js/tsconfig.json +++ b/lazer/publisher_sdk/js/tsconfig.json @@ -1,4 +1,5 @@ { "extends": "@cprussin/tsconfig/base.json", + "include": ["src/**/*"], "exclude": ["node_modules", "dist"] } From 50de6e4a2cec7a296553c97594a8a6f7f8ef2147 Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Fri, 11 Apr 2025 08:18:25 -0700 Subject: [PATCH 25/26] remove js publisher sdk --- lazer/publisher_sdk/js/.gitignore | 8 - lazer/publisher_sdk/js/.prettierignore | 6 - lazer/publisher_sdk/js/README.md | 17 - lazer/publisher_sdk/js/eslint.config.js | 1 - lazer/publisher_sdk/js/package.json | 60 -- lazer/publisher_sdk/js/tsconfig.build.json | 10 - lazer/publisher_sdk/js/tsconfig.json | 5 - lazer/publisher_sdk/js/turbo.json | 51 -- pnpm-lock.yaml | 658 +-------------------- pnpm-workspace.yaml | 1 - 10 files changed, 10 insertions(+), 807 deletions(-) delete mode 100644 lazer/publisher_sdk/js/.gitignore delete mode 100644 lazer/publisher_sdk/js/.prettierignore delete mode 100644 lazer/publisher_sdk/js/README.md delete mode 100644 lazer/publisher_sdk/js/eslint.config.js delete mode 100644 lazer/publisher_sdk/js/package.json delete mode 100644 lazer/publisher_sdk/js/tsconfig.build.json delete mode 100644 lazer/publisher_sdk/js/tsconfig.json delete mode 100644 lazer/publisher_sdk/js/turbo.json diff --git a/lazer/publisher_sdk/js/.gitignore b/lazer/publisher_sdk/js/.gitignore deleted file mode 100644 index 5f6f794740..0000000000 --- a/lazer/publisher_sdk/js/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Coverage directory used by tools like istanbul -coverage - -# Build directory -dist/ - -# Types generated for .proto files -src/generated/ diff --git a/lazer/publisher_sdk/js/.prettierignore b/lazer/publisher_sdk/js/.prettierignore deleted file mode 100644 index a471a70eab..0000000000 --- a/lazer/publisher_sdk/js/.prettierignore +++ /dev/null @@ -1,6 +0,0 @@ -.vscode/ -coverage/ -dist/ -doc/ -doc*/ -node_modules/ diff --git a/lazer/publisher_sdk/js/README.md b/lazer/publisher_sdk/js/README.md deleted file mode 100644 index cecc1cea87..0000000000 --- a/lazer/publisher_sdk/js/README.md +++ /dev/null @@ -1,17 +0,0 @@ -# pyth-lazer-publisher-sdk - Readme - -## Contributing & Development - -See [contributing.md](docs/contributing/contributing.md) for information on how to develop or contribute to this project! - -## Installation and build - -### pnpm - -``` -cd to crosschain root -$ pnpm install -$ pnpm turbo --filter @pythnetwork/pyth-lazer-publisher-sdk build -``` - -As part of the build, files will be generated from the proto files found in the lazer/proto folder. These generated files are placed in the src/generated/ folder. diff --git a/lazer/publisher_sdk/js/eslint.config.js b/lazer/publisher_sdk/js/eslint.config.js deleted file mode 100644 index 9058bfef8c..0000000000 --- a/lazer/publisher_sdk/js/eslint.config.js +++ /dev/null @@ -1 +0,0 @@ -export { base as default } from "@cprussin/eslint-config"; diff --git a/lazer/publisher_sdk/js/package.json b/lazer/publisher_sdk/js/package.json deleted file mode 100644 index cff9ec5f6f..0000000000 --- a/lazer/publisher_sdk/js/package.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "name": "@pythnetwork/pyth-lazer-publisher-sdk", - "version": "0.1.0", - "description": "Pyth Lazer Publisher SDK", - "publishConfig": { - "access": "public" - }, - "files": [ - "dist/**/*" - ], - "main": "./src/generated/proto.js", - "types": "./src/generated/proto.d.ts", - "exports": { - "import": { - "types": "./src/generated/proto.d.ts", - "default": "./src/generated//proto.js" - }, - "require": { - "types": "./src/generated/proto.d.ts", - "default": "./src/generated//proto.js" - } - }, - "scripts": { - "build:proto-codegen": "mkdir -p src/generated && pnpm exec pbjs -t static-module -w es6 -o src/generated/proto.js ../proto/*.proto && pnpm exec pbts -o src/generated/proto.d.ts src/generated/proto.js", - "build:cjs": "tsc --project tsconfig.build.json --verbatimModuleSyntax false --module commonjs --outDir ./dist/cjs && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json", - "build:esm": "tsc --project tsconfig.build.json --outDir ./dist/esm && echo '{\"type\":\"module\"}' > dist/esm/package.json", - "fix:lint": "eslint --fix . --max-warnings 0", - "test:lint": "eslint . --max-warnings 0", - "test:types": "tsc", - "test:format": "prettier --check .", - "fix:format": "prettier --write .", - "doc": "typedoc --out docs/typedoc src", - "prepublishOnly": "pnpm run build", - "publish": "pnpm run script -- publish" - }, - "type": "module", - "homepage": "https://github.com/pyth-network/pyth-crosschain/tree/main/lazer/publisher_sdk/js", - "repository": { - "type": "git", - "url": "https://github.com/pyth-network/pyth-crosschain", - "directory": "lazer/publisher_sdk/js" - }, - "keywords": [ - "pyth", - "oracle" - ], - "license": "Apache-2.0", - "devDependencies": { - "@cprussin/eslint-config": "catalog:", - "@cprussin/tsconfig": "catalog:", - "@types/node": "^18.19.54", - "eslint": "catalog:", - "prettier": "catalog:", - "protobufjs": "^7.4.0", - "protobufjs-cli": "^1.1.3", - "ts-node": "catalog:", - "typedoc": "^0.26.8", - "typescript": "catalog:" - } -} diff --git a/lazer/publisher_sdk/js/tsconfig.build.json b/lazer/publisher_sdk/js/tsconfig.build.json deleted file mode 100644 index 7be5a029fa..0000000000 --- a/lazer/publisher_sdk/js/tsconfig.build.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "noEmit": false, - "incremental": false, - "declaration": true - }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "examples/"] -} diff --git a/lazer/publisher_sdk/js/tsconfig.json b/lazer/publisher_sdk/js/tsconfig.json deleted file mode 100644 index 2f9bf2a3f3..0000000000 --- a/lazer/publisher_sdk/js/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "@cprussin/tsconfig/base.json", - "include": ["src/**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/lazer/publisher_sdk/js/turbo.json b/lazer/publisher_sdk/js/turbo.json deleted file mode 100644 index e6af76e059..0000000000 --- a/lazer/publisher_sdk/js/turbo.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "$schema": "https://turbo.build/schema.json", - "extends": ["//"], - "tasks": { - "build:proto-codegen": { - "dependsOn": ["//#install:modules"], - "inputs": ["../proto/**"], - "outputs": ["src/generated/**"], - "cache": false - }, - "build": { - "dependsOn": ["build:cjs", "build:esm"], - "inputs": [ - "$TURBO_DEFAULT$", - "!README.md", - "!**/*.test.*", - "!jest.config.js", - "!eslint.config.js", - "!prettier.config.js", - "!vercel.json" - ], - "outputs": ["dist/**"] - }, - "build:cjs": { - "dependsOn": ["build:proto-codegen", "^build"], - "inputs": [ - "$TURBO_DEFAULT$", - "!README.md", - "!**/*.test.*", - "!jest.config.js", - "!eslint.config.js", - "!prettier.config.js", - "!vercel.json" - ], - "outputs": ["dist/cjs/**"] - }, - "build:esm": { - "dependsOn": ["build:proto-codegen", "^build"], - "inputs": [ - "$TURBO_DEFAULT$", - "!README.md", - "!**/*.test.*", - "!jest.config.js", - "!eslint.config.js", - "!prettier.config.js", - "!vercel.json" - ], - "outputs": ["dist/esm/**"] - } - } -} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 09cd7c70de..b57c08153e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -905,10 +905,10 @@ importers: version: 0.15.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) '@solana/wallet-adapter-react-ui': specifier: 'catalog:' - version: 0.9.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) + version: 0.9.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) '@solana/wallet-adapter-wallets': specifier: 'catalog:' - version: 0.19.33(@babel/runtime@7.27.0)(@react-native-async-storage/async-storage@1.24.0(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(zod@3.24.2) + version: 0.19.33(@babel/runtime@7.27.0)(@react-native-async-storage/async-storage@1.24.0(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))(zod@3.24.2) '@solana/web3.js': specifier: 'catalog:' version: 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) @@ -1208,7 +1208,7 @@ importers: version: 3.1.2(typescript@5.8.2) '@solana/wallet-adapter-react': specifier: 'catalog:' - version: 0.15.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@6.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) + version: 0.15.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) '@types/jest': specifier: 'catalog:' version: 29.5.14 @@ -1482,7 +1482,7 @@ importers: version: 0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-react': specifier: 'catalog:' - version: 0.15.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@6.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) + version: 0.15.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) '@solana/wallet-adapter-react-ui': specifier: 'catalog:' version: 0.9.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) @@ -1627,39 +1627,6 @@ importers: specifier: ^17.7.2 version: 17.7.2 - lazer/publisher_sdk/js: - devDependencies: - '@cprussin/eslint-config': - specifier: 'catalog:' - version: 4.0.2(@testing-library/dom@10.4.0)(@typescript-eslint/eslint-plugin@8.29.0(@typescript-eslint/parser@8.29.0(eslint@9.23.0(jiti@1.21.7))(typescript@5.8.2))(eslint@9.23.0(jiti@1.21.7))(typescript@5.8.2))(@typescript-eslint/parser@8.29.0(eslint@9.23.0(jiti@1.21.7))(typescript@5.8.2))(eslint@9.23.0(jiti@1.21.7))(jest@29.7.0(@types/node@18.19.86)(ts-node@10.9.2(@types/node@18.19.86)(typescript@5.8.2)))(ts-node@10.9.2(@types/node@18.19.86)(typescript@5.8.2))(turbo@2.4.4)(typescript@5.8.2) - '@cprussin/tsconfig': - specifier: 'catalog:' - version: 3.1.2(typescript@5.8.2) - '@types/node': - specifier: ^18.19.54 - version: 18.19.86 - eslint: - specifier: 'catalog:' - version: 9.23.0(jiti@1.21.7) - prettier: - specifier: 'catalog:' - version: 3.5.3 - protobufjs: - specifier: ^7.4.0 - version: 7.4.0 - protobufjs-cli: - specifier: ^1.1.3 - version: 1.1.3(protobufjs@7.4.0) - ts-node: - specifier: 'catalog:' - version: 10.9.2(@types/node@18.19.86)(typescript@5.8.2) - typedoc: - specifier: ^0.26.8 - version: 0.26.11(typescript@5.8.2) - typescript: - specifier: 'catalog:' - version: 5.8.2 - lazer/sdk/js: dependencies: '@isaacs/ttlcache': @@ -5645,10 +5612,6 @@ packages: '@jsdevtools/ono@7.1.3': resolution: {integrity: sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==} - '@jsdoc/salty@0.2.9': - resolution: {integrity: sha512-yYxMVH7Dqw6nO0d5NIV8OQWnitU8k6vXH8NtgqAfIa/IUqRMxRv/NUJJ08VEKbAakwxlgBl5PJdrU0dMPStsnw==} - engines: {node: '>=v12.0.0'} - '@keystonehq/alias-sampling@0.1.2': resolution: {integrity: sha512-5ukLB3bcgltgaFfQfYKYwHDUbwHicekYo53fSEa7xhVkAEqsA74kxdIwoBIURmGUtXe3EVIRm4SYlgcrt2Ri0w==} @@ -10045,9 +10008,6 @@ packages: '@types/keyv@3.1.4': resolution: {integrity: sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==} - '@types/linkify-it@5.0.0': - resolution: {integrity: sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==} - '@types/lodash.values@4.3.9': resolution: {integrity: sha512-IJ20OEfqNwm3k8ENwoM3q0yOs4UMpgtD4GqxB4lwBHToGthHWqhyh5DdSgQjioocz0QK2SSBkJfCq95ZTV8BTw==} @@ -10060,15 +10020,9 @@ packages: '@types/lru-cache@5.1.1': resolution: {integrity: sha512-ssE3Vlrys7sdIzs5LOxCzTVMsU7i9oa/IaW92wF32JFb3CVczqOkru2xspuKczHEbG3nvmPY7IFqVmGGHdNbYw==} - '@types/markdown-it@14.1.2': - resolution: {integrity: sha512-promo4eFwuiW+TfGxhi+0x3czqTYJkG8qB17ZUJiVF10Xm7NLVRSLUsfRTU/6h1e24VvRnXCx+hG7li58lkzog==} - '@types/mdast@4.0.4': resolution: {integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==} - '@types/mdurl@2.0.0': - resolution: {integrity: sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==} - '@types/mdx@2.0.13': resolution: {integrity: sha512-+OWZQfAYyio6YkJb3HLxDrvnx6SWWDbC0zVPfBRzUk0/nqoDyf6dNxQi3eArPe8rJ473nobTMQ/8Zk+LxJ+Yuw==} @@ -11972,10 +11926,6 @@ packages: resolution: {integrity: sha512-K7Qy8O9p76sL3/3m7/zLKbRkyOlSZAgzEaLhyj2mXS8PsCud2Eo4hAb8aLtZqHh0QGqLcb9dlJSu6lHRVENm1w==} engines: {node: '>=6'} - catharsis@0.9.0: - resolution: {integrity: sha512-prMTQVpcns/tzFgFVkVp6ak6RykZyWb3gu8ckUpd6YkTlacOd3DXGJjIpD4Q6zJirizvaiAjSSHlOsA+6sNh2A==} - engines: {node: '>= 10'} - cbor-sync@1.0.4: resolution: {integrity: sha512-GWlXN4wiz0vdWWXBU71Dvc1q3aBo0HytqwAZnXF1wOwjqNnDWA1vZ1gDMFLlqohak31VQzmhiYfiCX5QSSfagA==} @@ -13537,11 +13487,6 @@ packages: resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} engines: {node: '>=10'} - escodegen@1.14.3: - resolution: {integrity: sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==} - engines: {node: '>=4.0'} - hasBin: true - escodegen@2.1.0: resolution: {integrity: sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==} engines: {node: '>=6.0'} @@ -15761,9 +15706,6 @@ packages: resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} hasBin: true - js2xmlparser@4.0.2: - resolution: {integrity: sha512-6n4D8gLlLf1n5mNLQPRfViYzu9RATblzPEtm1SthMX1Pjao0r9YI9nw7ZIfRxQMERS87mcswrg+r/OYrPRX6jA==} - jsbi@3.2.5: resolution: {integrity: sha512-aBE4n43IPvjaddScbvWRA2YlTzKEynHzu7MqOyTipdHucf/VxS63ViCjxYRg86M8Rxwbt/GfzHl1kKERkt45fQ==} @@ -15794,11 +15736,6 @@ packages: resolution: {integrity: sha512-Hicd6JK5Njt2QB6XYFS7ok9e37O8AYk3jTcppG4YVQnYjOemymvTcmc7OWsmq/Qqj5TdRFO5/x/tIPmBeRtGHg==} engines: {node: '>=12.0.0'} - jsdoc@4.0.4: - resolution: {integrity: sha512-zeFezwyXeG4syyYHbvh1A967IAqq/67yXtXvuL5wnqCkFZe8I0vKfm+EO+YEvLguo6w9CDUbrAXVtJSHh2E8rw==} - engines: {node: '>=12.0.0'} - hasBin: true - jsdom@20.0.3: resolution: {integrity: sha512-SYhBvTh89tTfCD/CRdSOm13mOBa42iTaTyfyEWBdKcGdPxPtLFBXuHR8XHb33YNYaP+lLbmSvBTsnoesCNJEsQ==} engines: {node: '>=14'} @@ -15966,9 +15903,6 @@ packages: klaw@1.3.1: resolution: {integrity: sha512-TED5xi9gGQjGpNnvRWknrwAB1eL5GciPfVFOt3Vk1OJCVDQbzuSfrF3hkUQKlsgKrG1F+0t5W0m+Fje1jIt8rw==} - klaw@3.0.0: - resolution: {integrity: sha512-0Fo5oir+O9jnXu5EefYbVK+mHMBeEVEy2cmctR1O1NECcCkPRreJKrS6Qt/j3KC2C148Dfo9i3pCmCMsdqGr0g==} - kleur@3.0.3: resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==} engines: {node: '>=6'} @@ -16075,10 +16009,6 @@ packages: resolution: {integrity: sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==} engines: {node: '>=6'} - levn@0.3.0: - resolution: {integrity: sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==} - engines: {node: '>= 0.8.0'} - levn@0.4.1: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} engines: {node: '>= 0.8.0'} @@ -16332,12 +16262,6 @@ packages: map-or-similar@1.5.0: resolution: {integrity: sha512-0aF7ZmVon1igznGI4VS30yugpduQW3y3GkcgGJOp7d8x8QrizhigUxjI/m2UojsXXto+jLAH3KSz+xOJTiORjg==} - markdown-it-anchor@8.6.7: - resolution: {integrity: sha512-FlCHFwNnutLgVTflOYHPW2pPcl2AACqVzExlkGQNsi4CJgqOHN7YTgDd4LuhgN1BFO3TS0vLAruV1Td6dwWPJA==} - peerDependencies: - '@types/markdown-it': '*' - markdown-it: '*' - markdown-it@14.1.0: resolution: {integrity: sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==} hasBin: true @@ -17275,10 +17199,6 @@ packages: optimism@0.18.1: resolution: {integrity: sha512-mLXNwWPa9dgFyDqkNi54sjDyNJ9/fTI6WGBLgnXku1vdKY/jovHfZT5r+aiVeFFLOz+foPNOm5YJ4mqgld2GBQ==} - optionator@0.8.3: - resolution: {integrity: sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==} - engines: {node: '>= 0.8.0'} - optionator@0.9.4: resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} engines: {node: '>= 0.8.0'} @@ -17897,10 +17817,6 @@ packages: resolution: {integrity: sha512-QCYG84SgGyGzqJ/vlMsxeXd/pgL/I94ixdNFyh1PusWmTCyVfPJjZ1K1jvHtsbfnXQs2TSkEP2fR7QiMZAnKFQ==} engines: {node: '>= 0.6'} - prelude-ls@1.1.2: - resolution: {integrity: sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==} - engines: {node: '>= 0.8.0'} - prelude-ls@1.2.1: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} @@ -18040,13 +17956,6 @@ packages: property-information@7.0.0: resolution: {integrity: sha512-7D/qOz/+Y4X/rzSB6jKxKUsQnphO046ei8qxG59mtM3RG3DHgTK81HrxrmoDVINJb8NKT5ZsRbwHvQ6B68Iyhg==} - protobufjs-cli@1.1.3: - resolution: {integrity: sha512-MqD10lqF+FMsOayFiNOdOGNlXc4iKDCf0ZQPkPR+gizYh9gqUeGTWulABUCdI+N67w5RfJ6xhgX4J8pa8qmMXQ==} - engines: {node: '>=12.0.0'} - hasBin: true - peerDependencies: - protobufjs: ^7.0.0 - protobufjs@6.11.4: resolution: {integrity: sha512-5kQWPaJHi1WoCpjTGszzQ32PG2F4+wRY6BmAT4Vfw56Q2FZ4YZzK20xUYQH4YkfehY1e6QSICrJquM6xXZNcrw==} hasBin: true @@ -18618,9 +18527,6 @@ packages: requires-port@1.0.0: resolution: {integrity: sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==} - requizzle@0.2.4: - resolution: {integrity: sha512-JRrFk1D4OQ4SqovXOgdav+K8EAhSB/LJZqCz8tbX0KObcdeM15Ss59ozWMBWmmINMagCwmqn4ZNryUGpBsl6Jw==} - reselect-tree@1.3.7: resolution: {integrity: sha512-kZN+C1cVJ6fFN2smSb0l4UvYZlRzttgnu183svH4NrU22cBY++ikgr2QT75Uuk4MYpv5gXSVijw4c5U6cx6GKg==} @@ -20121,10 +20027,6 @@ packages: tweetnacl@1.0.3: resolution: {integrity: sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==} - type-check@0.3.2: - resolution: {integrity: sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==} - engines: {node: '>= 0.8.0'} - type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} @@ -20287,9 +20189,6 @@ packages: uncrypto@0.1.3: resolution: {integrity: sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==} - underscore@1.13.7: - resolution: {integrity: sha512-GMXzWtsc57XAtguZgaQViUOzs0KTkk8ojr3/xAxXLITqf/3EMwxC0inyETfDFjH/Krbhuep0HNbbjI9i/q3F3g==} - undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} @@ -21296,9 +21195,6 @@ packages: xmlchars@2.2.0: resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==} - xmlcreate@2.0.4: - resolution: {integrity: sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg==} - xmlhttprequest-ssl@2.1.2: resolution: {integrity: sha512-TEU+nJVUUnA4CYJFLvK5X9AOeH4KvDvhIfm0vV1GaQRtchnG0hgK5p8hw/xjv8cunWYCsiPCSDzObPyhEwq3KQ==} engines: {node: '>=0.4.0'} @@ -24953,17 +24849,6 @@ snapshots: '@ethersproject/properties': 5.8.0 '@ethersproject/strings': 5.8.0 - '@everstake/wallet-sdk-solana@2.0.9(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': - dependencies: - '@solana-program/compute-budget': 0.6.1(@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))) - '@solana-program/stake': 0.1.0(@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))) - '@solana-program/system': 0.6.2(@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))) - '@solana/web3.js': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - typescript - - ws - '@everstake/wallet-sdk-solana@2.0.9(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@solana-program/compute-budget': 0.6.1(@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))) @@ -26534,10 +26419,6 @@ snapshots: '@jsdevtools/ono@7.1.3': {} - '@jsdoc/salty@0.2.9': - dependencies: - lodash: 4.17.21 - '@keystonehq/alias-sampling@0.1.2': {} '@keystonehq/bc-ur-registry-sol@0.9.5': @@ -28182,11 +28063,10 @@ snapshots: crypto-js: 4.2.0 uuidv4: 6.2.13 - '@particle-network/solana-wallet@1.3.2(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)': + '@particle-network/solana-wallet@1.3.2(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))': dependencies: '@particle-network/auth': 1.3.1 '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) - bs58: 5.0.0 '@paulmillr/qr@0.2.1': {} @@ -30493,60 +30373,31 @@ snapshots: - react - react-native - '@solana-program/compute-budget@0.6.1(@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)))': - dependencies: - '@solana/web3.js': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana-program/compute-budget@0.6.1(@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)))': dependencies: '@solana/web3.js': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana-program/compute-budget@0.7.0(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)))': - dependencies: - '@solana/kit': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana-program/compute-budget@0.7.0(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)))': dependencies: '@solana/kit': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana-program/stake@0.1.0(@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)))': - dependencies: - '@solana/web3.js': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana-program/stake@0.1.0(@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)))': dependencies: '@solana/web3.js': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana-program/system@0.6.2(@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)))': - dependencies: - '@solana/web3.js': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana-program/system@0.6.2(@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)))': dependencies: '@solana/web3.js': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana-program/system@0.7.0(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)))': - dependencies: - '@solana/kit': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana-program/system@0.7.0(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)))': dependencies: '@solana/kit': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana-program/token-2022@0.4.0(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)))(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))': - dependencies: - '@solana/kit': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana/sysvars': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana-program/token-2022@0.4.0(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)))(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))': dependencies: '@solana/kit': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)) '@solana/sysvars': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana-program/token@0.5.1(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)))': - dependencies: - '@solana/kit': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana-program/token@0.5.1(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)))': dependencies: '@solana/kit': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)) @@ -30886,31 +30737,6 @@ snapshots: transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': - dependencies: - '@solana/accounts': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/addresses': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/codecs': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/errors': 2.1.0(typescript@5.8.2) - '@solana/functional': 2.1.0(typescript@5.8.2) - '@solana/instructions': 2.1.0(typescript@5.8.2) - '@solana/keys': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/programs': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/rpc': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/rpc-parsed-types': 2.1.0(typescript@5.8.2) - '@solana/rpc-spec-types': 2.1.0(typescript@5.8.2) - '@solana/rpc-subscriptions': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana/rpc-types': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/signers': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/sysvars': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/transaction-confirmation': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana/transaction-messages': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/transactions': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - typescript: 5.8.2 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - ws - '@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@solana/accounts': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) @@ -31097,15 +30923,6 @@ snapshots: transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/rpc-subscriptions-channel-websocket@2.0.0(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': - dependencies: - '@solana/errors': 2.0.0(typescript@5.8.2) - '@solana/functional': 2.0.0(typescript@5.8.2) - '@solana/rpc-subscriptions-spec': 2.0.0(typescript@5.8.2) - '@solana/subscribable': 2.0.0(typescript@5.8.2) - typescript: 5.8.2 - ws: 8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@solana/rpc-subscriptions-channel-websocket@2.0.0(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@solana/errors': 2.0.0(typescript@5.8.2) @@ -31115,15 +30932,6 @@ snapshots: typescript: 5.8.2 ws: 8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@solana/rpc-subscriptions-channel-websocket@2.1.0(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': - dependencies: - '@solana/errors': 2.1.0(typescript@5.8.2) - '@solana/functional': 2.1.0(typescript@5.8.2) - '@solana/rpc-subscriptions-spec': 2.1.0(typescript@5.8.2) - '@solana/subscribable': 2.1.0(typescript@5.8.2) - typescript: 5.8.2 - ws: 8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@solana/rpc-subscriptions-channel-websocket@2.1.0(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@solana/errors': 2.1.0(typescript@5.8.2) @@ -31149,24 +30957,6 @@ snapshots: '@solana/subscribable': 2.1.0(typescript@5.8.2) typescript: 5.8.2 - '@solana/rpc-subscriptions@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': - dependencies: - '@solana/errors': 2.0.0(typescript@5.8.2) - '@solana/fast-stable-stringify': 2.0.0(typescript@5.8.2) - '@solana/functional': 2.0.0(typescript@5.8.2) - '@solana/promises': 2.0.0(typescript@5.8.2) - '@solana/rpc-spec-types': 2.0.0(typescript@5.8.2) - '@solana/rpc-subscriptions-api': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/rpc-subscriptions-channel-websocket': 2.0.0(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana/rpc-subscriptions-spec': 2.0.0(typescript@5.8.2) - '@solana/rpc-transformers': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/rpc-types': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/subscribable': 2.0.0(typescript@5.8.2) - typescript: 5.8.2 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - ws - '@solana/rpc-subscriptions@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@solana/errors': 2.0.0(typescript@5.8.2) @@ -31185,24 +30975,6 @@ snapshots: - fastestsmallesttextencoderdecoder - ws - '@solana/rpc-subscriptions@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': - dependencies: - '@solana/errors': 2.1.0(typescript@5.8.2) - '@solana/fast-stable-stringify': 2.1.0(typescript@5.8.2) - '@solana/functional': 2.1.0(typescript@5.8.2) - '@solana/promises': 2.1.0(typescript@5.8.2) - '@solana/rpc-spec-types': 2.1.0(typescript@5.8.2) - '@solana/rpc-subscriptions-api': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/rpc-subscriptions-channel-websocket': 2.1.0(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana/rpc-subscriptions-spec': 2.1.0(typescript@5.8.2) - '@solana/rpc-transformers': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/rpc-types': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/subscribable': 2.1.0(typescript@5.8.2) - typescript: 5.8.2 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - ws - '@solana/rpc-subscriptions@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@solana/errors': 2.1.0(typescript@5.8.2) @@ -31473,23 +31245,6 @@ snapshots: transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/transaction-confirmation@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': - dependencies: - '@solana/addresses': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/codecs-strings': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/errors': 2.0.0(typescript@5.8.2) - '@solana/keys': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/promises': 2.0.0(typescript@5.8.2) - '@solana/rpc': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/rpc-subscriptions': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana/rpc-types': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/transaction-messages': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/transactions': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - typescript: 5.8.2 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - ws - '@solana/transaction-confirmation@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@solana/addresses': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) @@ -31507,23 +31262,6 @@ snapshots: - fastestsmallesttextencoderdecoder - ws - '@solana/transaction-confirmation@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': - dependencies: - '@solana/addresses': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/codecs-strings': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/errors': 2.1.0(typescript@5.8.2) - '@solana/keys': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/promises': 2.1.0(typescript@5.8.2) - '@solana/rpc': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/rpc-subscriptions': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana/rpc-types': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/transaction-messages': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/transactions': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - typescript: 5.8.2 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - ws - '@solana/transaction-confirmation@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@solana/addresses': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) @@ -31613,18 +31351,9 @@ snapshots: '@solana/wallet-adapter-base': 0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-base-ui@0.1.3(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)': - dependencies: - '@solana/wallet-adapter-react': 0.15.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) - react: 19.1.0 - transitivePeerDependencies: - - bs58 - - react-native - '@solana/wallet-adapter-base-ui@0.1.3(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)': dependencies: - '@solana/wallet-adapter-react': 0.15.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@6.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) + '@solana/wallet-adapter-react': 0.15.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) react: 19.1.0 transitivePeerDependencies: @@ -31740,9 +31469,9 @@ snapshots: '@solana/wallet-adapter-base': 0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-particle@0.1.13(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)': + '@solana/wallet-adapter-particle@0.1.13(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))': dependencies: - '@particle-network/solana-wallet': 1.3.2(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0) + '@particle-network/solana-wallet': 1.3.2(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-base': 0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) transitivePeerDependencies: @@ -31753,23 +31482,11 @@ snapshots: '@solana/wallet-adapter-base': 0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-react-ui@0.9.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)': - dependencies: - '@solana/wallet-adapter-base': 0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-base-ui': 0.1.3(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) - '@solana/wallet-adapter-react': 0.15.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) - react: 19.1.0 - react-dom: 19.1.0(react@19.1.0) - transitivePeerDependencies: - - bs58 - - react-native - '@solana/wallet-adapter-react-ui@0.9.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)': dependencies: '@solana/wallet-adapter-base': 0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-base-ui': 0.1.3(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) - '@solana/wallet-adapter-react': 0.15.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@6.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) + '@solana/wallet-adapter-react': 0.15.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) react: 19.1.0 react-dom: 19.1.0(react@19.1.0) @@ -31788,17 +31505,6 @@ snapshots: - bs58 - react-native - '@solana/wallet-adapter-react@0.15.36(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@6.0.0)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)': - dependencies: - '@solana-mobile/wallet-adapter-mobile': 2.1.5(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) - '@solana/wallet-adapter-base': 0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-standard-wallet-adapter-react': 1.1.4(@solana/wallet-adapter-base@0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@6.0.0)(react@19.1.0) - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) - react: 19.1.0 - transitivePeerDependencies: - - bs58 - - react-native - '@solana/wallet-adapter-safepal@0.5.19(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))': dependencies: '@solana/wallet-adapter-base': 0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) @@ -31866,26 +31572,6 @@ snapshots: - supports-color - utf-8-validate - '@solana/wallet-adapter-trezor@0.1.3(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': - dependencies: - '@solana/wallet-adapter-base': 0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) - '@trezor/connect-web': 9.5.3(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - buffer: 6.0.3 - transitivePeerDependencies: - - '@solana/sysvars' - - bufferutil - - encoding - - expo-constants - - expo-localization - - fastestsmallesttextencoderdecoder - - react-native - - supports-color - - tslib - - typescript - - utf-8-validate - - ws - '@solana/wallet-adapter-trezor@0.1.3(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@solana/wallet-adapter-base': 0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) @@ -31948,83 +31634,6 @@ snapshots: - utf-8-validate - zod - '@solana/wallet-adapter-wallets@0.19.33(@babel/runtime@7.27.0)(@react-native-async-storage/async-storage@1.24.0(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(zod@3.24.2)': - dependencies: - '@solana/wallet-adapter-alpha': 0.1.11(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-avana': 0.1.14(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-bitkeep': 0.3.21(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-bitpie': 0.5.19(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-clover': 0.4.20(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-coin98': 0.5.21(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-coinbase': 0.1.20(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-coinhub': 0.3.19(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-fractal': 0.1.9(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(react-dom@19.1.0(react@19.1.0))(react@19.1.0) - '@solana/wallet-adapter-huobi': 0.1.16(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-hyperpay': 0.1.15(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-keystone': 0.1.16(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(encoding@0.1.13)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-krystal': 0.1.13(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-ledger': 0.9.26(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-mathwallet': 0.9.19(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-neko': 0.2.13(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-nightly': 0.1.17(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-nufi': 0.1.18(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-onto': 0.1.8(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-particle': 0.1.13(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0) - '@solana/wallet-adapter-phantom': 0.9.25(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-safepal': 0.5.19(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-saifu': 0.1.16(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-salmon': 0.1.15(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-sky': 0.1.16(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-solflare': 0.6.29(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-solong': 0.9.19(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-spot': 0.1.16(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-tokenary': 0.1.13(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-tokenpocket': 0.4.20(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-torus': 0.11.29(@babel/runtime@7.27.0)(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-trezor': 0.1.3(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-trust': 0.1.14(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-unsafe-burner': 0.1.8(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-walletconnect': 0.1.17(@react-native-async-storage/async-storage@1.24.0(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10)(zod@3.24.2) - '@solana/wallet-adapter-xdefi': 0.1.8(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) - transitivePeerDependencies: - - '@azure/app-configuration' - - '@azure/cosmos' - - '@azure/data-tables' - - '@azure/identity' - - '@azure/keyvault-secrets' - - '@azure/storage-blob' - - '@babel/runtime' - - '@capacitor/preferences' - - '@deno/kv' - - '@netlify/blobs' - - '@planetscale/database' - - '@react-native-async-storage/async-storage' - - '@sentry/types' - - '@solana/sysvars' - - '@upstash/redis' - - '@vercel/blob' - - '@vercel/kv' - - aws4fetch - - bs58 - - bufferutil - - db0 - - encoding - - expo-constants - - expo-localization - - fastestsmallesttextencoderdecoder - - ioredis - - react - - react-dom - - react-native - - supports-color - - tslib - - typescript - - uploadthing - - utf-8-validate - - ws - - zod - '@solana/wallet-adapter-wallets@0.19.33(@babel/runtime@7.27.0)(@react-native-async-storage/async-storage@1.24.0(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-dom@19.1.0(react@19.1.0))(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))(zod@3.24.2)': dependencies: '@solana/wallet-adapter-alpha': 0.1.11(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) @@ -32046,7 +31655,7 @@ snapshots: '@solana/wallet-adapter-nightly': 0.1.17(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-nufi': 0.1.18(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-onto': 0.1.8(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-particle': 0.1.13(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0) + '@solana/wallet-adapter-particle': 0.1.13(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-phantom': 0.9.25(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-safepal': 0.5.19(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-saifu': 0.1.16(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) @@ -32141,19 +31750,6 @@ snapshots: '@wallet-standard/wallet': 1.1.0 bs58: 5.0.0 - '@solana/wallet-standard-wallet-adapter-base@1.1.4(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@6.0.0)': - dependencies: - '@solana/wallet-adapter-base': 0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-standard-chains': 1.1.1 - '@solana/wallet-standard-features': 1.3.0 - '@solana/wallet-standard-util': 1.1.2 - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10) - '@wallet-standard/app': 1.1.0 - '@wallet-standard/base': 1.1.0 - '@wallet-standard/features': 1.1.0 - '@wallet-standard/wallet': 1.1.0 - bs58: 6.0.0 - '@solana/wallet-standard-wallet-adapter-react@1.1.4(@solana/wallet-adapter-base@0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(react@19.1.0)': dependencies: '@solana/wallet-adapter-base': 0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) @@ -32165,17 +31761,6 @@ snapshots: - '@solana/web3.js' - bs58 - '@solana/wallet-standard-wallet-adapter-react@1.1.4(@solana/wallet-adapter-base@0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@6.0.0)(react@19.1.0)': - dependencies: - '@solana/wallet-adapter-base': 0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)) - '@solana/wallet-standard-wallet-adapter-base': 1.1.4(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@6.0.0) - '@wallet-standard/app': 1.1.0 - '@wallet-standard/base': 1.1.0 - react: 19.1.0 - transitivePeerDependencies: - - '@solana/web3.js' - - bs58 - '@solana/wallet-standard-wallet-adapter@1.1.4(@solana/wallet-adapter-base@0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0)(react@19.1.0)': dependencies: '@solana/wallet-standard-wallet-adapter-base': 1.1.4(@solana/web3.js@1.98.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10))(bs58@5.0.0) @@ -32284,31 +31869,6 @@ snapshots: - encoding - utf-8-validate - '@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': - dependencies: - '@solana/accounts': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/addresses': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/codecs': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/errors': 2.0.0(typescript@5.8.2) - '@solana/functional': 2.0.0(typescript@5.8.2) - '@solana/instructions': 2.0.0(typescript@5.8.2) - '@solana/keys': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/programs': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/rpc': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/rpc-parsed-types': 2.0.0(typescript@5.8.2) - '@solana/rpc-spec-types': 2.0.0(typescript@5.8.2) - '@solana/rpc-subscriptions': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana/rpc-types': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/signers': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/sysvars': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/transaction-confirmation': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana/transaction-messages': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - '@solana/transactions': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) - typescript: 5.8.2 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - ws - '@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@solana/accounts': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2) @@ -33285,17 +32845,6 @@ snapshots: - expo-localization - react-native - '@trezor/blockchain-link-types@1.3.3(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': - dependencies: - '@solana/kit': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@trezor/type-utils': 1.1.5 - '@trezor/utxo-lib': 2.3.3(tslib@2.8.1) - tslib: 2.8.1 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - typescript - - ws - '@trezor/blockchain-link-types@1.3.3(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@solana/kit': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)) @@ -33318,35 +32867,6 @@ snapshots: - expo-localization - react-native - '@trezor/blockchain-link@2.4.3(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': - dependencies: - '@everstake/wallet-sdk-solana': 2.0.9(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana-program/token': 0.5.1(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))) - '@solana-program/token-2022': 0.4.0(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)))(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)) - '@solana/kit': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@trezor/blockchain-link-types': 1.3.3(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@trezor/blockchain-link-utils': 1.3.3(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1) - '@trezor/env-utils': 1.3.2(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1) - '@trezor/utils': 9.3.3(tslib@2.8.1) - '@trezor/utxo-lib': 2.3.3(tslib@2.8.1) - '@trezor/websocket-client': 1.1.3(bufferutil@4.0.9)(tslib@2.8.1)(utf-8-validate@5.0.10) - '@types/web': 0.0.197 - events: 3.3.0 - ripple-lib: 1.10.1(bufferutil@4.0.9)(utf-8-validate@5.0.10) - socks-proxy-agent: 8.0.5 - tslib: 2.8.1 - transitivePeerDependencies: - - '@solana/sysvars' - - bufferutil - - expo-constants - - expo-localization - - fastestsmallesttextencoderdecoder - - react-native - - supports-color - - typescript - - utf-8-validate - - ws - '@trezor/blockchain-link@2.4.3(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@everstake/wallet-sdk-solana': 2.0.9(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)) @@ -33395,25 +32915,6 @@ snapshots: - expo-localization - react-native - '@trezor/connect-web@9.5.3(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': - dependencies: - '@trezor/connect': 9.5.3(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@trezor/connect-common': 0.3.3(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1) - '@trezor/utils': 9.3.3(tslib@2.8.1) - tslib: 2.8.1 - transitivePeerDependencies: - - '@solana/sysvars' - - bufferutil - - encoding - - expo-constants - - expo-localization - - fastestsmallesttextencoderdecoder - - react-native - - supports-color - - typescript - - utf-8-validate - - ws - '@trezor/connect-web@9.5.3(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@trezor/connect': 9.5.3(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)) @@ -33433,50 +32934,6 @@ snapshots: - utf-8-validate - ws - '@trezor/connect@9.5.3(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': - dependencies: - '@ethereumjs/common': 4.4.0 - '@ethereumjs/tx': 5.4.0 - '@fivebinaries/coin-selection': 3.0.0 - '@mobily/ts-belt': 3.13.1 - '@noble/hashes': 1.7.1 - '@scure/bip39': 1.5.4 - '@solana-program/compute-budget': 0.7.0(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))) - '@solana-program/system': 0.7.0(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))) - '@solana-program/token': 0.5.1(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))) - '@solana-program/token-2022': 0.4.0(@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)))(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)) - '@solana/kit': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@trezor/blockchain-link': 2.4.3(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@trezor/blockchain-link-types': 1.3.3(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.8.2)(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@trezor/blockchain-link-utils': 1.3.3(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1) - '@trezor/connect-analytics': 1.3.2(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1) - '@trezor/connect-common': 0.3.3(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1) - '@trezor/crypto-utils': 1.1.2(tslib@2.8.1) - '@trezor/device-utils': 1.0.2 - '@trezor/protobuf': 1.3.3(tslib@2.8.1) - '@trezor/protocol': 1.2.5(tslib@2.8.1) - '@trezor/schema-utils': 1.3.2(tslib@2.8.1) - '@trezor/transport': 1.4.3(encoding@0.1.13)(tslib@2.8.1) - '@trezor/utils': 9.3.3(tslib@2.8.1) - '@trezor/utxo-lib': 2.3.3(tslib@2.8.1) - blakejs: 1.2.1 - bs58: 6.0.0 - bs58check: 4.0.0 - cross-fetch: 4.1.0(encoding@0.1.13) - tslib: 2.8.1 - transitivePeerDependencies: - - '@solana/sysvars' - - bufferutil - - encoding - - expo-constants - - expo-localization - - fastestsmallesttextencoderdecoder - - react-native - - supports-color - - typescript - - utf-8-validate - - ws - '@trezor/connect@9.5.3(@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.2))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(react-native@0.78.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@19.1.0)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(tslib@2.8.1)(typescript@5.8.2)(utf-8-validate@5.0.10)(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@ethereumjs/common': 4.4.0 @@ -34213,8 +33670,6 @@ snapshots: dependencies: '@types/node': 18.19.86 - '@types/linkify-it@5.0.0': {} - '@types/lodash.values@4.3.9': dependencies: '@types/lodash': 4.17.16 @@ -34225,17 +33680,10 @@ snapshots: '@types/lru-cache@5.1.1': {} - '@types/markdown-it@14.1.2': - dependencies: - '@types/linkify-it': 5.0.0 - '@types/mdurl': 2.0.0 - '@types/mdast@4.0.4': dependencies: '@types/unist': 3.0.3 - '@types/mdurl@2.0.0': {} - '@types/mdx@2.0.13': {} '@types/mime@1.3.5': {} @@ -37085,10 +36533,6 @@ snapshots: catering@2.1.1: {} - catharsis@0.9.0: - dependencies: - lodash: 4.17.21 - cbor-sync@1.0.4: {} cbor@10.0.3: @@ -38931,15 +38375,6 @@ snapshots: escape-string-regexp@4.0.0: {} - escodegen@1.14.3: - dependencies: - esprima: 4.0.1 - estraverse: 4.3.0 - esutils: 2.0.3 - optionator: 0.8.3 - optionalDependencies: - source-map: 0.6.1 - escodegen@2.1.0: dependencies: esprima: 4.0.1 @@ -42801,10 +42236,6 @@ snapshots: dependencies: argparse: 2.0.1 - js2xmlparser@4.0.2: - dependencies: - xmlcreate: 2.0.4 - jsbi@3.2.5: {} jsbn@0.1.1: {} @@ -42842,24 +42273,6 @@ snapshots: jsdoc-type-pratt-parser@4.1.0: {} - jsdoc@4.0.4: - dependencies: - '@babel/parser': 7.27.0 - '@jsdoc/salty': 0.2.9 - '@types/markdown-it': 14.1.2 - bluebird: 3.7.2 - catharsis: 0.9.0 - escape-string-regexp: 2.0.0 - js2xmlparser: 4.0.2 - klaw: 3.0.0 - markdown-it: 14.1.0 - markdown-it-anchor: 8.6.7(@types/markdown-it@14.1.2)(markdown-it@14.1.0) - marked: 4.3.0 - mkdirp: 1.0.4 - requizzle: 0.2.4 - strip-json-comments: 3.1.1 - underscore: 1.13.7 - jsdom@20.0.3(bufferutil@4.0.9)(utf-8-validate@5.0.10): dependencies: abab: 2.0.6 @@ -43086,10 +42499,6 @@ snapshots: optionalDependencies: graceful-fs: 4.2.11 - klaw@3.0.0: - dependencies: - graceful-fs: 4.2.11 - kleur@3.0.3: {} known-css-properties@0.35.0: {} @@ -43214,11 +42623,6 @@ snapshots: leven@3.1.0: {} - levn@0.3.0: - dependencies: - prelude-ls: 1.1.2 - type-check: 0.3.2 - levn@0.4.1: dependencies: prelude-ls: 1.2.1 @@ -43455,11 +42859,6 @@ snapshots: map-or-similar@1.5.0: {} - markdown-it-anchor@8.6.7(@types/markdown-it@14.1.2)(markdown-it@14.1.0): - dependencies: - '@types/markdown-it': 14.1.2 - markdown-it: 14.1.0 - markdown-it@14.1.0: dependencies: argparse: 2.0.1 @@ -44729,15 +44128,6 @@ snapshots: '@wry/trie': 0.5.0 tslib: 2.8.1 - optionator@0.8.3: - dependencies: - deep-is: 0.1.4 - fast-levenshtein: 2.0.6 - levn: 0.3.0 - prelude-ls: 1.1.2 - type-check: 0.3.2 - word-wrap: 1.2.5 - optionator@0.9.4: dependencies: deep-is: 0.1.4 @@ -45497,8 +44887,6 @@ snapshots: precond@0.2.3: {} - prelude-ls@1.1.2: {} - prelude-ls@1.2.1: {} prettier-plugin-solidity@1.4.2(prettier@2.8.8): @@ -45592,20 +44980,6 @@ snapshots: property-information@7.0.0: {} - protobufjs-cli@1.1.3(protobufjs@7.4.0): - dependencies: - chalk: 4.1.2 - escodegen: 1.14.3 - espree: 9.6.1 - estraverse: 5.3.0 - glob: 8.1.0 - jsdoc: 4.0.4 - minimist: 1.2.8 - protobufjs: 7.4.0 - semver: 7.7.1 - tmp: 0.2.3 - uglify-js: 3.19.3 - protobufjs@6.11.4: dependencies: '@protobufjs/aspromise': 1.1.2 @@ -46520,10 +45894,6 @@ snapshots: requires-port@1.0.0: {} - requizzle@0.2.4: - dependencies: - lodash: 4.17.21 - reselect-tree@1.3.7: dependencies: debug: 3.2.7 @@ -48676,10 +48046,6 @@ snapshots: tweetnacl@1.0.3: {} - type-check@0.3.2: - dependencies: - prelude-ls: 1.1.2 - type-check@0.4.0: dependencies: prelude-ls: 1.2.1 @@ -48828,8 +48194,6 @@ snapshots: uncrypto@0.1.3: {} - underscore@1.13.7: {} - undici-types@5.26.5: {} undici-types@6.19.8: {} @@ -50482,8 +49846,6 @@ snapshots: xmlchars@2.2.0: {} - xmlcreate@2.0.4: {} - xmlhttprequest-ssl@2.1.2: {} xmlhttprequest@1.8.0: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index b68b4c45e2..570dbff067 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -43,7 +43,6 @@ packages: - contract_manager - lazer/contracts/solana - lazer/sdk/js - - lazer/publisher_sdk/js catalog: "@amplitude/analytics-browser": ^2.13.0 From 8c117020ec6ab71beb3189158b1b01a05ae60f05 Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Fri, 11 Apr 2025 08:20:19 -0700 Subject: [PATCH 26/26] fix publish --- .github/workflows/publish-rust-lazer-publisher-sdk.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-rust-lazer-publisher-sdk.yml b/.github/workflows/publish-rust-lazer-publisher-sdk.yml index ac29ed0e83..ab52338f62 100644 --- a/.github/workflows/publish-rust-lazer-publisher-sdk.yml +++ b/.github/workflows/publish-rust-lazer-publisher-sdk.yml @@ -6,7 +6,7 @@ on: - rust-pyth-lazer-publisher-sdk-v* jobs: publish-pyth-lazer-publisher-sdk: - name: Publish Rust package pyth-lazer-published-sdk to crates.io + name: Publish Rust package pyth-lazer-publisher-sdk to crates.io runs-on: ubuntu-latest steps: - name: Checkout sources @@ -15,4 +15,4 @@ jobs: - run: cargo publish --token ${CARGO_REGISTRY_TOKEN} env: CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} - working-directory: "lazer/sdk/rust/published-sdk" + working-directory: "lazer/publisher-sdk/rust"