diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000000..3d09b3cb7d --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "external/photon"] + path = external/photon + url = git@github.com:Lightprotocol/photon.git diff --git a/Cargo.lock b/Cargo.lock index 246f03d9b0..a4259e45c8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1810,7 +1810,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ececcb659e7ba858fb4f10388c250a7252eb0a27373f1a72b8748afdd248e587" dependencies = [ "powerfmt", - "serde_core", ] [[package]] @@ -2289,6 +2288,12 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + [[package]] name = "foreign-types" version = "0.3.2" @@ -2649,7 +2654,7 @@ dependencies = [ "futures-sink", "futures-util", "http 0.2.12", - "indexmap 2.12.1", + "indexmap", "slab", "tokio", "tokio-util 0.7.17", @@ -2668,7 +2673,7 @@ dependencies = [ "futures-core", "futures-sink", "http 1.4.0", - "indexmap 2.12.1", + "indexmap", "slab", "tokio", "tokio-util 0.7.17", @@ -2684,12 +2689,6 @@ dependencies = [ "byteorder", ] -[[package]] -name = "hashbrown" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" - [[package]] name = "hashbrown" version = "0.13.2" @@ -2713,7 +2712,7 @@ checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289" dependencies = [ "allocator-api2", "equivalent", - "foldhash", + "foldhash 0.1.5", ] [[package]] @@ -2721,6 +2720,11 @@ name = "hashbrown" version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" +dependencies = [ + "allocator-api2", + "equivalent", + "foldhash 0.2.0", +] [[package]] name = "headers" @@ -3169,17 +3173,6 @@ dependencies = [ "icu_properties", ] -[[package]] -name = "indexmap" -version = "1.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" -dependencies = [ - "autocfg", - "hashbrown 0.12.3", - "serde", -] - [[package]] name = "indexmap" version = "2.12.1" @@ -4388,7 +4381,7 @@ dependencies = [ "agave-reserved-account-keys", "ansi_term", "bincode", - "indexmap 2.12.1", + "indexmap", "itertools 0.14.0", "log", "solana-account", @@ -4804,6 +4797,17 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381" +[[package]] +name = "openapiv3" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c8d427828b22ae1fff2833a03d8486c2c881367f1c336349f307f321e7f4d05" +dependencies = [ + "indexmap", + "serde", + "serde_json", +] + [[package]] name = "openssl" version = "0.10.75" @@ -4975,12 +4979,20 @@ dependencies = [ name = "photon-api" version = "0.54.0" dependencies = [ + "bytes", + "chrono", + "futures", + "http 1.4.0", + "openapiv3", + "prettyplease", + "progenitor", + "progenitor-client", + "regress", "reqwest 0.12.26", "serde", - "serde_derive", "serde_json", - "serde_with", - "url", + "serde_yaml", + "syn 2.0.111", "uuid", ] @@ -5207,6 +5219,72 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "progenitor" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88f54bd2506c3e7b6e45b6ab16500abef551689021264f3be260ef7e295ac327" +dependencies = [ + "progenitor-client", + "progenitor-impl", + "progenitor-macro", +] + +[[package]] +name = "progenitor-client" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdae8df95f0b2a7d6159a9c43b7380016b8d3b0fc1ece46871ecd2e0087cfaf6" +dependencies = [ + "bytes", + "futures-core", + "percent-encoding", + "reqwest 0.12.26", + "serde", + "serde_json", + "serde_urlencoded", +] + +[[package]] +name = "progenitor-impl" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37adc80a94c9cae890e82deeeecc9d8f2a5cb153256caaf1bf0f03611e537214" +dependencies = [ + "heck 0.5.0", + "http 1.4.0", + "indexmap", + "openapiv3", + "proc-macro2", + "quote", + "regex", + "schemars", + "serde", + "serde_json", + "syn 2.0.111", + "thiserror 2.0.17", + "typify", + "unicode-ident", +] + +[[package]] +name = "progenitor-macro" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc3b2b9f0d5ba58375c5e8e89d5dff949108e234c1d9f22a3336d2be4daaf292" +dependencies = [ + "openapiv3", + "proc-macro2", + "progenitor-impl", + "quote", + "schemars", + "serde", + "serde_json", + "serde_tokenstream", + "serde_yaml", + "syn 2.0.111", +] + [[package]] name = "prometheus" version = "0.14.0" @@ -5549,26 +5627,6 @@ dependencies = [ "thiserror 2.0.17", ] -[[package]] -name = "ref-cast" -version = "1.0.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f354300ae66f76f1c85c5f84693f0ce81d747e2c3f21a45fef496d89c960bf7d" -dependencies = [ - "ref-cast-impl", -] - -[[package]] -name = "ref-cast-impl" -version = "1.0.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7186006dcb21920990093f30e3dea63b7d6e977bf1256be20c3563a5db070da" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.111", -] - [[package]] name = "regex" version = "1.12.2" @@ -5627,6 +5685,16 @@ dependencies = [ "tokio", ] +[[package]] +name = "regress" +version = "0.10.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2057b2325e68a893284d1538021ab90279adac1139957ca2a74426c6f118fb48" +dependencies = [ + "hashbrown 0.16.1", + "memchr", +] + [[package]] name = "reqwest" version = "0.11.27" @@ -5694,7 +5762,6 @@ dependencies = [ "js-sys", "log", "mime", - "mime_guess", "native-tls", "percent-encoding", "pin-project-lite", @@ -5708,12 +5775,14 @@ dependencies = [ "tokio", "tokio-native-tls", "tokio-rustls 0.26.4", + "tokio-util 0.7.17", "tower", "tower-http", "tower-service", "url", "wasm-bindgen", "wasm-bindgen-futures", + "wasm-streams", "web-sys", "webpki-roots 1.0.4", ] @@ -5975,26 +6044,28 @@ dependencies = [ [[package]] name = "schemars" -version = "0.9.0" +version = "0.8.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f" +checksum = "3fbf2ae1b8bc8e02df939598064d22402220cd5bbcca1c76f7d6a310974d5615" dependencies = [ + "chrono", "dyn-clone", - "ref-cast", + "schemars_derive", "serde", "serde_json", + "uuid", ] [[package]] -name = "schemars" -version = "1.1.0" +name = "schemars_derive" +version = "0.8.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9558e172d4e8533736ba97870c4b2cd63f84b382a3d6eb063da41b91cce17289" +checksum = "32e265784ad618884abaea0600a9adf15393368d840e0222d101a072f3f7534d" dependencies = [ - "dyn-clone", - "ref-cast", - "serde", - "serde_json", + "proc-macro2", + "quote", + "serde_derive_internals", + "syn 2.0.111", ] [[package]] @@ -6210,6 +6281,10 @@ name = "semver" version = "1.0.27" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2" +dependencies = [ + "serde", + "serde_core", +] [[package]] name = "serde" @@ -6260,6 +6335,17 @@ dependencies = [ "syn 2.0.111", ] +[[package]] +name = "serde_derive_internals" +version = "0.29.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.111", +] + [[package]] name = "serde_json" version = "1.0.145" @@ -6291,6 +6377,18 @@ dependencies = [ "serde_core", ] +[[package]] +name = "serde_tokenstream" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64060d864397305347a78851c51588fd283767e7e7589829e8121d65512340f1" +dependencies = [ + "proc-macro2", + "quote", + "serde", + "syn 2.0.111", +] + [[package]] name = "serde_urlencoded" version = "0.7.1" @@ -6309,17 +6407,8 @@ version = "3.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4fa237f2807440d238e0364a218270b98f767a00d3dada77b1c53ae88940e2e7" dependencies = [ - "base64 0.22.1", - "chrono", - "hex", - "indexmap 1.9.3", - "indexmap 2.12.1", - "schemars 0.9.0", - "schemars 1.1.0", "serde_core", - "serde_json", "serde_with_macros", - "time", ] [[package]] @@ -6340,7 +6429,7 @@ version = "0.9.34+deprecated" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a8b1a1a2ebf674015cc02edccce75287f1a0130d394307b36743c2f5d504b47" dependencies = [ - "indexmap 2.12.1", + "indexmap", "itoa", "ryu", "serde", @@ -7088,7 +7177,7 @@ dependencies = [ "dashmap 5.5.3", "futures", "futures-util", - "indexmap 2.12.1", + "indexmap", "indicatif", "log", "quinn", @@ -7254,7 +7343,7 @@ dependencies = [ "bincode", "crossbeam-channel", "futures-util", - "indexmap 2.12.1", + "indexmap", "log", "rand 0.8.5", "rayon", @@ -8863,7 +8952,7 @@ dependencies = [ "futures-util", "governor 0.6.3", "histogram", - "indexmap 2.12.1", + "indexmap", "itertools 0.12.1", "libc", "log", @@ -9112,7 +9201,7 @@ dependencies = [ "async-trait", "bincode", "futures-util", - "indexmap 2.12.1", + "indexmap", "indicatif", "log", "rayon", @@ -10811,7 +10900,7 @@ version = "0.9.9+spec-1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eb5238e643fc34a1d5d7e753e1532a91912d74b63b92b3ea51fde8d1b7bc79dd" dependencies = [ - "indexmap 2.12.1", + "indexmap", "serde_core", "serde_spanned 1.0.4", "toml_datetime 0.7.4+spec-1.0.0", @@ -10844,7 +10933,7 @@ version = "0.22.27" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a" dependencies = [ - "indexmap 2.12.1", + "indexmap", "serde", "serde_spanned 0.6.9", "toml_datetime 0.6.11", @@ -10858,7 +10947,7 @@ version = "0.23.10+spec-1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "84c8b9f757e028cee9fa244aea147aab2a9ec09d5325a9b01e0a49730c2b5269" dependencies = [ - "indexmap 2.12.1", + "indexmap", "toml_datetime 0.7.4+spec-1.0.0", "toml_parser", "winnow", @@ -11083,6 +11172,53 @@ version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb" +[[package]] +name = "typify" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e03ba3643450cfd95a1aca2e1938fef63c1c1994489337998aff4ad771f21ef8" +dependencies = [ + "typify-impl", + "typify-macro", +] + +[[package]] +name = "typify-impl" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bce48219a2f3154aaa2c56cbf027728b24a3c8fe0a47ed6399781de2b3f3eeaf" +dependencies = [ + "heck 0.5.0", + "log", + "proc-macro2", + "quote", + "regress", + "schemars", + "semver", + "serde", + "serde_json", + "syn 2.0.111", + "thiserror 2.0.17", + "unicode-ident", +] + +[[package]] +name = "typify-macro" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68b5780d745920ed73c5b7447496a9b5c42ed2681a9b70859377aec423ecf02b" +dependencies = [ + "proc-macro2", + "quote", + "schemars", + "semver", + "serde", + "serde_json", + "serde_tokenstream", + "syn 2.0.111", + "typify-impl", +] + [[package]] name = "unarray" version = "0.1.4" @@ -11383,6 +11519,19 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "wasm-streams" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15053d8d85c7eccdbefef60f06769760a563c7f0a9d6902a13d35c7800b0ad65" +dependencies = [ + "futures-util", + "js-sys", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + [[package]] name = "web-sys" version = "0.3.83" diff --git a/Cargo.toml b/Cargo.toml index dc679fc404..4c8536fff4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,5 @@ [workspace] +exclude = ["external/photon"] members = [ "program-libs/account-checks", diff --git a/cli/src/utils/constants.ts b/cli/src/utils/constants.ts index e3a9137737..08c7d86158 100644 --- a/cli/src/utils/constants.ts +++ b/cli/src/utils/constants.ts @@ -24,7 +24,7 @@ export const PHOTON_VERSION = "0.51.2"; // Set these to override Photon requirements with a specific git commit: export const USE_PHOTON_FROM_GIT = true; // If true, will show git install command instead of crates.io. export const PHOTON_GIT_REPO = "https://github.com/lightprotocol/photon.git"; -export const PHOTON_GIT_COMMIT = "ac7df6c388db847b7693a7a1cb766a7c9d7809b5"; // If empty, will use main branch. +export const PHOTON_GIT_COMMIT = "32e9ae60926a0d614ad444b799d15c15c02f2ef7"; // If empty, will use main branch. export const LIGHT_PROTOCOL_PROGRAMS_DIR_ENV = "LIGHT_PROTOCOL_PROGRAMS_DIR"; export const BASE_PATH = "../../bin/"; diff --git a/external/photon b/external/photon new file mode 160000 index 0000000000..20ddcdab7f --- /dev/null +++ b/external/photon @@ -0,0 +1 @@ +Subproject commit 20ddcdab7f4b8783ebb00300a3d0a5c474d6402d diff --git a/forester/src/errors.rs b/forester/src/errors.rs index 2653ffe62b..250c1f684c 100644 --- a/forester/src/errors.rs +++ b/forester/src/errors.rs @@ -4,7 +4,6 @@ use forester_utils::rpc_pool::PoolError; use light_client::rpc::errors::RpcError; use light_compressed_account::TreeType; use light_registry::errors::RegistryError; -use photon_api::apis::{default_api::GetCompressedAccountProofPostError, Error as PhotonApiError}; use solana_program::{program_error::ProgramError, pubkey::Pubkey}; use thiserror::Error; use tracing::{info, warn}; @@ -197,11 +196,6 @@ impl WorkReportError { } } -#[derive(Error, Debug)] -pub enum PhotonApiErrorWrapper { - #[error(transparent)] - GetCompressedAccountProofPostError(#[from] PhotonApiError), -} impl ForesterError { pub fn indexer(error: E) -> Self { Self::Indexer(IndexerError::General { diff --git a/scripts/devenv/versions.sh b/scripts/devenv/versions.sh index c578cacb05..d599a5ab15 100755 --- a/scripts/devenv/versions.sh +++ b/scripts/devenv/versions.sh @@ -13,7 +13,7 @@ export SOLANA_VERSION="2.2.15" export ANCHOR_VERSION="0.31.1" export JQ_VERSION="1.8.0" export PHOTON_VERSION="0.51.2" -export PHOTON_COMMIT="83b46c9aef58a134edef2eb8e506c1bc6604e876" +export PHOTON_COMMIT="20ddcdab7f4b8783ebb00300a3d0a5c474d6402d" export REDIS_VERSION="8.0.1" export ANCHOR_TAG="anchor-v${ANCHOR_VERSION}" diff --git a/sdk-libs/client/src/indexer/base58.rs b/sdk-libs/client/src/indexer/base58.rs index a2b66a123f..77326991b6 100644 --- a/sdk-libs/client/src/indexer/base58.rs +++ b/sdk-libs/client/src/indexer/base58.rs @@ -47,11 +47,12 @@ pub fn decode_base58_to_fixed_array(input: &str) -> Result<[u8; Ok(buffer) } -pub fn decode_base58_option_to_pubkey( - value: &Option, +/// Decode an Option newtype wrapper to Option +pub fn decode_serializable_pubkey_option( + value: &Option, ) -> Result, IndexerError> { value .as_ref() - .map(|ctx| decode_base58_to_fixed_array(ctx).map(Pubkey::new_from_array)) + .map(|ctx| decode_base58_to_fixed_array(&ctx.0).map(Pubkey::new_from_array)) .transpose() } diff --git a/sdk-libs/client/src/indexer/options.rs b/sdk-libs/client/src/indexer/options.rs index dbbf699fb5..e580b0a501 100644 --- a/sdk-libs/client/src/indexer/options.rs +++ b/sdk-libs/client/src/indexer/options.rs @@ -44,10 +44,10 @@ pub struct GetCompressedAccountsFilter { impl Into for GetCompressedAccountsFilter { fn into(self) -> FilterSelector { FilterSelector { - memcmp: Some(Box::new(Memcmp { - offset: self.offset, - bytes: base64::encode(&self.bytes), // TODO: double check - })), + memcmp: Some(Memcmp { + offset: self.offset as u64, + bytes: photon_api::models::Base58String(base64::encode(&self.bytes)), // TODO: double check + }), } } } diff --git a/sdk-libs/client/src/indexer/photon_indexer.rs b/sdk-libs/client/src/indexer/photon_indexer.rs index a220c16554..11d578b175 100644 --- a/sdk-libs/client/src/indexer/photon_indexer.rs +++ b/sdk-libs/client/src/indexer/photon_indexer.rs @@ -2,10 +2,7 @@ use std::{fmt::Debug, time::Duration}; use async_trait::async_trait; use bs58; -use photon_api::{ - apis::configuration::{ApiKey, Configuration}, - models::GetCompressedAccountsByOwnerPostRequestParams, -}; +use photon_api::apis::configuration::{ApiKey, Configuration}; use solana_pubkey::Pubkey; use tracing::{error, trace, warn}; @@ -129,30 +126,21 @@ impl PhotonIndexer { result.ok_or_else(|| IndexerError::missing_result(context, "value not present")) } - fn extract_result_with_error_check( - context: &str, - error: Option>, - result: Option, - ) -> Result { + fn check_api_error(context: &str, error: Option) -> Result<(), IndexerError> { if let Some(error) = error { - let error_message = error - .clone() - .message - .unwrap_or_else(|| format!("Unknown API error: {:?}", error).to_string()); return Err(IndexerError::ApiError(format!( - "API error in {} (code: {:?}): {}", - context, error.code, error_message + "API error in {}: {:?}", + context, error ))); } - - Self::extract_result(context, result) + Ok(()) } fn build_account_params( &self, address: Option
, hash: Option, - ) -> Result { + ) -> Result { match (address, hash) { (None, None) => Err(IndexerError::InvalidParameters( "Either address or hash must be provided".to_string(), @@ -160,9 +148,9 @@ impl PhotonIndexer { (Some(_), Some(_)) => Err(IndexerError::InvalidParameters( "Only one of address or hash must be provided".to_string(), )), - (address, hash) => Ok(photon_api::models::GetCompressedAccountPostRequestParams { - address: address.map(|x| x.to_base58()), - hash: hash.map(|x| x.to_base58()), + (address, hash) => Ok(photon_api::models::PostGetCompressedAccountBodyParams { + address: address.map(|x| photon_api::models::SerializablePubkey(x.to_base58())), + hash: hash.map(|x| photon_api::models::Hash(x.to_base58())), }), } } @@ -186,26 +174,25 @@ impl Indexer for PhotonIndexer { let config = config.unwrap_or_default(); self.retry(config.retry_config, || async { let params = self.build_account_params(Some(address), None)?; - let request = photon_api::models::GetCompressedAccountPostRequest { - params: Box::new(params), - ..Default::default() - }; + let request = photon_api::apis::default_api::make_get_compressed_account_body(params); let result = photon_api::apis::default_api::get_compressed_account_post( &self.configuration, request, ) .await?; - let api_response = Self::extract_result_with_error_check( - "get_compressed_account", - result.error, - result.result.map(|r| *r), - )?; + + let api_response = result.result.ok_or_else(|| { + IndexerError::ApiError( + result.error.map(|e| format!("{:?}", e)).unwrap_or_else(|| "Unknown error".to_string()) + ) + })?; + if api_response.context.slot < config.slot { return Err(IndexerError::IndexerNotSyncedToSlot); } let account = match api_response.value { - Some(boxed) => Some(CompressedAccount::try_from(&*boxed)?), + Some(ref acc) => Some(CompressedAccount::try_from(acc)?), None => None, }; @@ -227,26 +214,22 @@ impl Indexer for PhotonIndexer { let config = config.unwrap_or_default(); self.retry(config.retry_config, || async { let params = self.build_account_params(None, Some(hash))?; - let request = photon_api::models::GetCompressedAccountPostRequest { - params: Box::new(params), - ..Default::default() - }; + let request = photon_api::apis::default_api::make_get_compressed_account_body(params); let result = photon_api::apis::default_api::get_compressed_account_post( &self.configuration, request, ) .await?; - let api_response = Self::extract_result_with_error_check( - "get_compressed_account_by_hash", - result.error, - result.result.map(|r| *r), - )?; + + Self::check_api_error("get_compressed_account_by_hash", result.error)?; + let api_response = Self::extract_result("get_compressed_account_by_hash", result.result)?; + if api_response.context.slot < config.slot { return Err(IndexerError::IndexerNotSyncedToSlot); } let account = match api_response.value { - Some(boxed) => Some(CompressedAccount::try_from(&*boxed)?), + Some(ref acc) => Some(CompressedAccount::try_from(acc)?), None => None, }; @@ -270,30 +253,31 @@ impl Indexer for PhotonIndexer { self.retry(config.retry_config, || async { #[cfg(feature = "v2")] { - let request = photon_api::models::GetCompressedAccountsByOwnerV2PostRequest { - params: Box::from(GetCompressedAccountsByOwnerPostRequestParams { - cursor: options.as_ref().and_then(|o| o.cursor.clone()), - data_slice: options.as_ref().and_then(|o| { - o.data_slice.as_ref().map(|ds| { - Box::new(photon_api::models::DataSlice { - length: ds.length as u32, - offset: ds.offset as u32, - }) - }) - }), - filters: options.as_ref().and_then(|o| o.filters_to_photon()), - limit: options.as_ref().and_then(|o| o.limit), - owner: owner.to_string(), + let params = photon_api::models::PostGetCompressedAccountsByOwnerV2BodyParams { + cursor: options.as_ref().and_then(|o| o.cursor.clone()).map(photon_api::models::Hash), + data_slice: options.as_ref().and_then(|o| { + o.data_slice.as_ref().map(|ds| { + photon_api::models::DataSlice { + length: ds.length as u64, + offset: ds.offset as u64, + } + }) }), - ..Default::default() + filters: options.as_ref().and_then(|o| o.filters_to_photon()).unwrap_or_default(), + limit: options.as_ref().and_then(|o| o.limit).map(|l| photon_api::models::Limit(l as u64)), + owner: photon_api::models::SerializablePubkey(owner.to_string()), }; + let request = photon_api::apis::default_api::make_get_compressed_accounts_by_owner_v2_body(params); let result = photon_api::apis::default_api::get_compressed_accounts_by_owner_v2_post( &self.configuration, request, ) .await?; - let response = result.result.ok_or(IndexerError::AccountNotFound)?; + + Self::check_api_error("get_compressed_accounts_by_owner_v2", result.error)?; + let response = Self::extract_result("get_compressed_accounts_by_owner_v2", result.result)?; + if response.context.slot < config.slot { return Err(IndexerError::IndexerNotSyncedToSlot); } @@ -304,7 +288,7 @@ impl Indexer for PhotonIndexer { .map(CompressedAccount::try_from) .collect(); - let cursor = response.value.cursor; + let cursor = response.value.cursor.map(|h| h.0); Ok(Response { context: Context { @@ -318,29 +302,35 @@ impl Indexer for PhotonIndexer { } #[cfg(not(feature = "v2"))] { - let request = photon_api::models::GetCompressedAccountsByOwnerPostRequest { - params: Box::from(GetCompressedAccountsByOwnerPostRequestParams { - cursor: options.as_ref().and_then(|o| o.cursor.clone()), - data_slice: options.as_ref().and_then(|o| { - o.data_slice.as_ref().map(|ds| { - Box::new(photon_api::models::DataSlice { - length: ds.length as u32, - offset: ds.offset as u32, - }) - }) - }), - filters: options.as_ref().and_then(|o| o.filters_to_photon()), - limit: options.as_ref().and_then(|o| o.limit), - owner: owner.to_string(), + let params = photon_api::models::PostGetCompressedAccountsByOwnerBodyParams { + cursor: options.as_ref().and_then(|o| o.cursor.clone()).map(photon_api::models::Hash), + data_slice: options.as_ref().and_then(|o| { + o.data_slice.as_ref().map(|ds| { + photon_api::models::DataSlice { + length: ds.length as u64, + offset: ds.offset as u64, + } + }) }), - ..Default::default() + filters: options.as_ref().and_then(|o| o.filters_to_photon()).unwrap_or_default(), + limit: options.as_ref().and_then(|o| o.limit).map(|l| photon_api::models::Limit(l as u64)), + owner: photon_api::models::SerializablePubkey(owner.to_string()), + }; + let request = photon_api::models::PostGetCompressedAccountsByOwnerBody { + id: photon_api::models::PostGetCompressedAccountsByOwnerBodyId::TestAccount, + jsonrpc: photon_api::models::PostGetCompressedAccountsByOwnerBodyJsonrpc::_20, + method: photon_api::models::PostGetCompressedAccountsByOwnerBodyMethod::GetCompressedAccountsByOwner, + params, }; let result = photon_api::apis::default_api::get_compressed_accounts_by_owner_post( &self.configuration, request, ) .await?; - let response = result.result.ok_or(IndexerError::AccountNotFound)?; + + Self::check_api_error("get_compressed_accounts_by_owner", result.error)?; + let response = Self::extract_result("get_compressed_accounts_by_owner", result.result)?; + if response.context.slot < config.slot { return Err(IndexerError::IndexerNotSyncedToSlot); } @@ -351,7 +341,7 @@ impl Indexer for PhotonIndexer { .map(CompressedAccount::try_from) .collect(); - let cursor = response.value.cursor; + let cursor = response.value.cursor.map(|h| h.0); Ok(Response { context: Context { @@ -375,11 +365,11 @@ impl Indexer for PhotonIndexer { ) -> Result, IndexerError> { let config = config.unwrap_or_default(); self.retry(config.retry_config, || async { - let params = self.build_account_params(address, hash)?; - let request = photon_api::models::GetCompressedAccountBalancePostRequest { - params: Box::new(params), - ..Default::default() + let params = photon_api::models::PostGetCompressedAccountBalanceBodyParams { + address: address.map(|x| photon_api::models::SerializablePubkey(x.to_base58())), + hash: hash.map(|x| photon_api::models::Hash(x.to_base58())), }; + let request = photon_api::apis::default_api::make_get_compressed_account_balance_body(params); let result = photon_api::apis::default_api::get_compressed_account_balance_post( &self.configuration, @@ -387,11 +377,9 @@ impl Indexer for PhotonIndexer { ) .await?; - let api_response = Self::extract_result_with_error_check( - "get_compressed_account_balance", - result.error, - result.result.map(|r| *r), - )?; + Self::check_api_error("get_compressed_account_balance", result.error)?; + let api_response = Self::extract_result("get_compressed_account_balance", result.result)?; + if api_response.context.slot < config.slot { return Err(IndexerError::IndexerNotSyncedToSlot); } @@ -399,7 +387,7 @@ impl Indexer for PhotonIndexer { context: Context { slot: api_response.context.slot, }, - value: api_response.value, + value: api_response.value.0, }) }) .await @@ -412,14 +400,10 @@ impl Indexer for PhotonIndexer { ) -> Result, IndexerError> { let config = config.unwrap_or_default(); self.retry(config.retry_config, || async { - let request = photon_api::models::GetCompressedBalanceByOwnerPostRequest { - params: Box::new( - photon_api::models::GetCompressedBalanceByOwnerPostRequestParams { - owner: owner.to_string(), - }, - ), - ..Default::default() + let params = photon_api::models::PostGetCompressedBalanceByOwnerBodyParams { + owner: photon_api::models::SerializablePubkey(owner.to_string()), }; + let request = photon_api::apis::default_api::make_get_compressed_balance_by_owner_body(params); let result = photon_api::apis::default_api::get_compressed_balance_by_owner_post( &self.configuration, @@ -427,11 +411,9 @@ impl Indexer for PhotonIndexer { ) .await?; - let api_response = Self::extract_result_with_error_check( - "get_compressed_balance_by_owner", - result.error, - result.result.map(|r| *r), - )?; + Self::check_api_error("get_compressed_balance_by_owner", result.error)?; + let api_response = Self::extract_result("get_compressed_balance_by_owner", result.result)?; + if api_response.context.slot < config.slot { return Err(IndexerError::IndexerNotSyncedToSlot); } @@ -439,7 +421,7 @@ impl Indexer for PhotonIndexer { context: Context { slot: api_response.context.slot, }, - value: api_response.value, + value: api_response.value.0, }) }) .await @@ -453,16 +435,12 @@ impl Indexer for PhotonIndexer { ) -> Result>, IndexerError> { let config = config.unwrap_or_default(); self.retry(config.retry_config, || async { - let request = photon_api::models::GetCompressedMintTokenHoldersPostRequest { - params: Box::new( - photon_api::models::GetCompressedMintTokenHoldersPostRequestParams { - mint: mint.to_string(), - cursor: options.as_ref().and_then(|o| o.cursor.clone()), - limit: options.as_ref().and_then(|o| o.limit), - }, - ), - ..Default::default() + let params = photon_api::models::PostGetCompressedMintTokenHoldersBodyParams { + mint: photon_api::models::SerializablePubkey(mint.to_string()), + cursor: options.as_ref().and_then(|o| o.cursor.clone()).map(photon_api::models::Base58String), + limit: options.as_ref().and_then(|o| o.limit).map(|l| photon_api::models::Limit(l as u64)), }; + let request = photon_api::apis::default_api::make_get_compressed_mint_token_holders_body(params); let result = photon_api::apis::default_api::get_compressed_mint_token_holders_post( &self.configuration, @@ -470,11 +448,9 @@ impl Indexer for PhotonIndexer { ) .await?; - let api_response = Self::extract_result_with_error_check( - "get_compressed_mint_token_holders", - result.error, - result.result.map(|r| *r), - )?; + Self::check_api_error("get_compressed_mint_token_holders", result.error)?; + let api_response = Self::extract_result("get_compressed_mint_token_holders", result.result)?; + if api_response.context.slot < config.slot { return Err(IndexerError::IndexerNotSyncedToSlot); } @@ -485,7 +461,7 @@ impl Indexer for PhotonIndexer { .map(OwnerBalance::try_from) .collect(); - let cursor = api_response.value.cursor; + let cursor = api_response.value.cursor.map(|c| c.0); Ok(Response { context: Context { @@ -508,13 +484,11 @@ impl Indexer for PhotonIndexer { ) -> Result, IndexerError> { let config = config.unwrap_or_default(); self.retry(config.retry_config, || async { - let request = photon_api::models::GetCompressedTokenAccountBalancePostRequest { - params: Box::new(photon_api::models::GetCompressedAccountPostRequestParams { - address: address.map(|x| x.to_base58()), - hash: hash.map(|x| x.to_base58()), - }), - ..Default::default() + let params = photon_api::models::PostGetCompressedTokenAccountBalanceBodyParams { + address: address.map(|x| photon_api::models::SerializablePubkey(x.to_base58())), + hash: hash.map(|x| photon_api::models::Hash(x.to_base58())), }; + let request = photon_api::apis::default_api::make_get_compressed_token_account_balance_body(params); let result = photon_api::apis::default_api::get_compressed_token_account_balance_post( &self.configuration, @@ -522,11 +496,9 @@ impl Indexer for PhotonIndexer { ) .await?; - let api_response = Self::extract_result_with_error_check( - "get_compressed_token_account_balance", - result.error, - result.result.map(|r| *r), - )?; + Self::check_api_error("get_compressed_token_account_balance", result.error)?; + let api_response = Self::extract_result("get_compressed_token_account_balance", result.result)?; + if api_response.context.slot < config.slot { return Err(IndexerError::IndexerNotSyncedToSlot); } @@ -534,7 +506,7 @@ impl Indexer for PhotonIndexer { context: Context { slot: api_response.context.slot, }, - value: api_response.value.amount, + value: api_response.value.amount.0, }) }) .await @@ -550,17 +522,13 @@ impl Indexer for PhotonIndexer { self.retry(config.retry_config, || async { #[cfg(feature = "v2")] { - let request = photon_api::models::GetCompressedTokenAccountsByDelegateV2PostRequest { - params: Box::new( - photon_api::models::GetCompressedTokenAccountsByDelegatePostRequestParams { - cursor: options.as_ref().and_then(|o| o.cursor.clone()), - limit: options.as_ref().and_then(|o| o.limit), - mint: options.as_ref().and_then(|o| o.mint.as_ref()).map(|x| x.to_string()), - delegate: delegate.to_string(), - }, - ), - ..Default::default() + let params = photon_api::models::PostGetCompressedTokenAccountsByDelegateV2BodyParams { + cursor: options.as_ref().and_then(|o| o.cursor.clone()).map(photon_api::models::Base58String), + limit: options.as_ref().and_then(|o| o.limit).map(|l| photon_api::models::Limit(l as u64)), + mint: options.as_ref().and_then(|o| o.mint.as_ref()).map(|x| photon_api::models::SerializablePubkey(x.to_string())), + delegate: photon_api::models::SerializablePubkey(delegate.to_string()), }; + let request = photon_api::apis::default_api::make_get_compressed_token_accounts_by_delegate_v2_body(params); let result = photon_api::apis::default_api::get_compressed_token_accounts_by_delegate_v2_post( &self.configuration, @@ -568,7 +536,9 @@ impl Indexer for PhotonIndexer { ) .await?; - let response = result.result.ok_or(IndexerError::AccountNotFound)?; + Self::check_api_error("get_compressed_token_accounts_by_delegate_v2", result.error)?; + let response = Self::extract_result("get_compressed_token_accounts_by_delegate_v2", result.result)?; + if response.context.slot < config.slot { return Err(IndexerError::IndexerNotSyncedToSlot); } @@ -580,7 +550,7 @@ impl Indexer for PhotonIndexer { .map(CompressedTokenAccount::try_from) .collect(); - let cursor = response.value.cursor; + let cursor = response.value.cursor.map(|h| h.0); Ok(Response { context: Context { @@ -594,16 +564,17 @@ impl Indexer for PhotonIndexer { } #[cfg(not(feature = "v2"))] { - let request = photon_api::models::GetCompressedTokenAccountsByDelegatePostRequest { - params: Box::new( - photon_api::models::GetCompressedTokenAccountsByDelegatePostRequestParams { - delegate: delegate.to_string(), - mint: options.as_ref().and_then(|o| o.mint.as_ref()).map(|x| x.to_string()), - cursor: options.as_ref().and_then(|o| o.cursor.clone()), - limit: options.as_ref().and_then(|o| o.limit), - }, - ), - ..Default::default() + let params = photon_api::models::PostGetCompressedTokenAccountsByDelegateBodyParams { + delegate: photon_api::models::SerializablePubkey(delegate.to_string()), + mint: options.as_ref().and_then(|o| o.mint.as_ref()).map(|x| photon_api::models::SerializablePubkey(x.to_string())), + cursor: options.as_ref().and_then(|o| o.cursor.clone()).map(photon_api::models::Base58String), + limit: options.as_ref().and_then(|o| o.limit).map(|l| photon_api::models::Limit(l as u64)), + }; + let request = photon_api::models::PostGetCompressedTokenAccountsByDelegateBody { + id: photon_api::models::PostGetCompressedTokenAccountsByDelegateBodyId::TestAccount, + jsonrpc: photon_api::models::PostGetCompressedTokenAccountsByDelegateBodyJsonrpc::_20, + method: photon_api::models::PostGetCompressedTokenAccountsByDelegateBodyMethod::GetCompressedTokenAccountsByDelegate, + params, }; let result = photon_api::apis::default_api::get_compressed_token_accounts_by_delegate_post( @@ -612,7 +583,9 @@ impl Indexer for PhotonIndexer { ) .await?; - let response = result.result.ok_or(IndexerError::AccountNotFound)?; + Self::check_api_error("get_compressed_token_accounts_by_delegate", result.error)?; + let response = Self::extract_result("get_compressed_token_accounts_by_delegate", result.result)?; + if response.context.slot < config.slot { return Err(IndexerError::IndexerNotSyncedToSlot); } @@ -624,7 +597,7 @@ impl Indexer for PhotonIndexer { .map(CompressedTokenAccount::try_from) .collect(); - let cursor = response.value.cursor; + let cursor = response.value.cursor.map(|h| h.0); Ok(Response { context: Context { @@ -650,27 +623,26 @@ impl Indexer for PhotonIndexer { self.retry(config.retry_config, || async { #[cfg(feature = "v2")] { - let request = photon_api::models::GetCompressedTokenAccountsByOwnerV2PostRequest { - params: Box::from( - photon_api::models::GetCompressedTokenAccountsByOwnerPostRequestParams { - cursor: options.as_ref().and_then(|o| o.cursor.clone()), - limit: options.as_ref().and_then(|o| o.limit), - mint: options - .as_ref() - .and_then(|o| o.mint.as_ref()) - .map(|x| x.to_string()), - owner: owner.to_string(), - }, - ), - ..Default::default() + let params = photon_api::models::PostGetCompressedTokenAccountsByOwnerV2BodyParams { + cursor: options.as_ref().and_then(|o| o.cursor.clone()).map(photon_api::models::Base58String), + limit: options.as_ref().and_then(|o| o.limit).map(|l| photon_api::models::Limit(l as u64)), + mint: options + .as_ref() + .and_then(|o| o.mint.as_ref()) + .map(|x| photon_api::models::SerializablePubkey(x.to_string())), + owner: photon_api::models::SerializablePubkey(owner.to_string()), }; + let request = photon_api::apis::default_api::make_get_compressed_token_accounts_by_owner_v2_body(params); let result = photon_api::apis::default_api::get_compressed_token_accounts_by_owner_v2_post( &self.configuration, request, ) .await?; - let response = result.result.ok_or(IndexerError::AccountNotFound)?; + + Self::check_api_error("get_compressed_token_accounts_by_owner_v2", result.error)?; + let response = Self::extract_result("get_compressed_token_accounts_by_owner_v2", result.result)?; + if response.context.slot < config.slot { return Err(IndexerError::IndexerNotSyncedToSlot); } @@ -681,7 +653,7 @@ impl Indexer for PhotonIndexer { .map(CompressedTokenAccount::try_from) .collect(); - let cursor = response.value.cursor; + let cursor = response.value.cursor.map(|h| h.0); Ok(Response { context: Context { @@ -695,19 +667,20 @@ impl Indexer for PhotonIndexer { } #[cfg(not(feature = "v2"))] { - let request = photon_api::models::GetCompressedTokenAccountsByOwnerPostRequest { - params: Box::new( - photon_api::models::GetCompressedTokenAccountsByOwnerPostRequestParams { - owner: owner.to_string(), - mint: options - .as_ref() - .and_then(|o| o.mint.as_ref()) - .map(|x| x.to_string()), - cursor: options.as_ref().and_then(|o| o.cursor.clone()), - limit: options.as_ref().and_then(|o| o.limit), - }, - ), - ..Default::default() + let params = photon_api::models::PostGetCompressedTokenAccountsByOwnerBodyParams { + owner: photon_api::models::SerializablePubkey(owner.to_string()), + mint: options + .as_ref() + .and_then(|o| o.mint.as_ref()) + .map(|x| photon_api::models::SerializablePubkey(x.to_string())), + cursor: options.as_ref().and_then(|o| o.cursor.clone()).map(photon_api::models::Base58String), + limit: options.as_ref().and_then(|o| o.limit).map(|l| photon_api::models::Limit(l as u64)), + }; + let request = photon_api::models::PostGetCompressedTokenAccountsByOwnerBody { + id: photon_api::models::PostGetCompressedTokenAccountsByOwnerBodyId::TestAccount, + jsonrpc: photon_api::models::PostGetCompressedTokenAccountsByOwnerBodyJsonrpc::_20, + method: photon_api::models::PostGetCompressedTokenAccountsByOwnerBodyMethod::GetCompressedTokenAccountsByOwner, + params, }; let result = @@ -717,11 +690,9 @@ impl Indexer for PhotonIndexer { ) .await?; - let response = Self::extract_result_with_error_check( - "get_compressed_token_accounts_by_owner", - result.error, - result.result.map(|r| *r), - )?; + Self::check_api_error("get_compressed_token_accounts_by_owner", result.error)?; + let response = Self::extract_result("get_compressed_token_accounts_by_owner", result.result)?; + if response.context.slot < config.slot { return Err(IndexerError::IndexerNotSyncedToSlot); } @@ -732,7 +703,7 @@ impl Indexer for PhotonIndexer { .map(CompressedTokenAccount::try_from) .collect(); - let cursor = response.value.cursor; + let cursor = response.value.cursor.map(|h| h.0); Ok(Response { context: Context { @@ -758,20 +729,16 @@ impl Indexer for PhotonIndexer { self.retry(config.retry_config, || async { #[cfg(feature = "v2")] { - let request = photon_api::models::GetCompressedTokenBalancesByOwnerV2PostRequest { - params: Box::new( - photon_api::models::GetCompressedTokenAccountsByOwnerPostRequestParams { - owner: owner.to_string(), - mint: options - .as_ref() - .and_then(|o| o.mint.as_ref()) - .map(|x| x.to_string()), - cursor: options.as_ref().and_then(|o| o.cursor.clone()), - limit: options.as_ref().and_then(|o| o.limit), - }, - ), - ..Default::default() + let params = photon_api::models::PostGetCompressedTokenBalancesByOwnerV2BodyParams { + owner: photon_api::models::SerializablePubkey(owner.to_string()), + mint: options + .as_ref() + .and_then(|o| o.mint.as_ref()) + .map(|x| photon_api::models::SerializablePubkey(x.to_string())), + cursor: options.as_ref().and_then(|o| o.cursor.clone()).map(photon_api::models::Base58String), + limit: options.as_ref().and_then(|o| o.limit).map(|l| photon_api::models::Limit(l as u64)), }; + let request = photon_api::apis::default_api::make_get_compressed_token_balances_by_owner_v2_body(params); let result = photon_api::apis::default_api::get_compressed_token_balances_by_owner_v2_post( @@ -780,11 +747,9 @@ impl Indexer for PhotonIndexer { ) .await?; - let api_response = Self::extract_result_with_error_check( - "get_compressed_token_balances_by_owner_v2", - result.error, - result.result.map(|r| *r), - )?; + Self::check_api_error("get_compressed_token_balances_by_owner_v2", result.error)?; + let api_response = Self::extract_result("get_compressed_token_balances_by_owner_v2", result.result)?; + if api_response.context.slot < config.slot { return Err(IndexerError::IndexerNotSyncedToSlot); } @@ -802,25 +767,26 @@ impl Indexer for PhotonIndexer { }, value: ItemsWithCursor { items: token_balances?, - cursor: api_response.value.cursor, + cursor: api_response.value.cursor.map(|c| c.0), }, }) } #[cfg(not(feature = "v2"))] { - let request = photon_api::models::GetCompressedTokenBalancesByOwnerPostRequest { - params: Box::new( - photon_api::models::GetCompressedTokenAccountsByOwnerPostRequestParams { - owner: owner.to_string(), - mint: options - .as_ref() - .and_then(|o| o.mint.as_ref()) - .map(|x| x.to_string()), - cursor: options.as_ref().and_then(|o| o.cursor.clone()), - limit: options.as_ref().and_then(|o| o.limit), - }, - ), - ..Default::default() + let params = photon_api::models::PostGetCompressedTokenBalancesByOwnerBodyParams { + owner: photon_api::models::SerializablePubkey(owner.to_string()), + mint: options + .as_ref() + .and_then(|o| o.mint.as_ref()) + .map(|x| photon_api::models::SerializablePubkey(x.to_string())), + cursor: options.as_ref().and_then(|o| o.cursor.clone()).map(photon_api::models::Base58String), + limit: options.as_ref().and_then(|o| o.limit).map(|l| photon_api::models::Limit(l as u64)), + }; + let request = photon_api::models::PostGetCompressedTokenBalancesByOwnerBody { + id: photon_api::models::PostGetCompressedTokenBalancesByOwnerBodyId::TestAccount, + jsonrpc: photon_api::models::PostGetCompressedTokenBalancesByOwnerBodyJsonrpc::_20, + method: photon_api::models::PostGetCompressedTokenBalancesByOwnerBodyMethod::GetCompressedTokenBalancesByOwner, + params, }; let result = @@ -830,11 +796,9 @@ impl Indexer for PhotonIndexer { ) .await?; - let api_response = Self::extract_result_with_error_check( - "get_compressed_token_balances_by_owner", - result.error, - result.result.map(|r| *r), - )?; + Self::check_api_error("get_compressed_token_balances_by_owner", result.error)?; + let api_response = Self::extract_result("get_compressed_token_balances_by_owner", result.result)?; + if api_response.context.slot < config.slot { return Err(IndexerError::IndexerNotSyncedToSlot); } @@ -852,7 +816,7 @@ impl Indexer for PhotonIndexer { }, value: ItemsWithCursor { items: token_balances?, - cursor: api_response.value.cursor, + cursor: api_response.value.cursor.map(|c| c.0), }, }) } @@ -867,14 +831,10 @@ impl Indexer for PhotonIndexer { ) -> Result>, IndexerError> { let config = config.unwrap_or_default(); self.retry(config.retry_config, || async { - let request = photon_api::models::GetCompressionSignaturesForAccountPostRequest { - params: Box::new( - photon_api::models::GetCompressedAccountProofPostRequestParams { - hash: hash.to_base58(), - }, - ), - ..Default::default() + let params = photon_api::models::PostGetCompressionSignaturesForAccountBodyParams { + hash: photon_api::models::Hash(hash.to_base58()), }; + let request = photon_api::apis::default_api::make_get_compression_signatures_for_account_body(params); let result = photon_api::apis::default_api::get_compression_signatures_for_account_post( @@ -883,11 +843,9 @@ impl Indexer for PhotonIndexer { ) .await?; - let api_response = Self::extract_result_with_error_check( - "get_compression_signatures_for_account", - result.error, - result.result.map(|r| *r), - )?; + Self::check_api_error("get_compression_signatures_for_account", result.error)?; + let api_response = Self::extract_result("get_compression_signatures_for_account", result.result)?; + if api_response.context.slot < config.slot { return Err(IndexerError::IndexerNotSyncedToSlot); } @@ -916,16 +874,12 @@ impl Indexer for PhotonIndexer { ) -> Result>, IndexerError> { let config = config.unwrap_or_default(); self.retry(config.retry_config, || async { - let request = photon_api::models::GetCompressionSignaturesForAddressPostRequest { - params: Box::new( - photon_api::models::GetCompressionSignaturesForAddressPostRequestParams { - address: address.to_base58(), - cursor: options.as_ref().and_then(|o| o.cursor.clone()), - limit: options.as_ref().and_then(|o| o.limit), - }, - ), - ..Default::default() + let params = photon_api::models::PostGetCompressionSignaturesForAddressBodyParams { + address: photon_api::models::SerializablePubkey(address.to_base58()), + cursor: options.as_ref().and_then(|o| o.cursor.clone()), + limit: options.as_ref().and_then(|o| o.limit).map(|l| photon_api::models::Limit(l as u64)), }; + let request = photon_api::apis::default_api::make_get_compression_signatures_for_address_body(params); let result = photon_api::apis::default_api::get_compression_signatures_for_address_post( @@ -934,11 +888,9 @@ impl Indexer for PhotonIndexer { ) .await?; - let api_response = Self::extract_result_with_error_check( - "get_compression_signatures_for_address", - result.error, - result.result.map(|r| *r), - )?; + Self::check_api_error("get_compression_signatures_for_address", result.error)?; + let api_response = Self::extract_result("get_compression_signatures_for_address", result.result)?; + if api_response.context.slot < config.slot { return Err(IndexerError::IndexerNotSyncedToSlot); } @@ -973,16 +925,12 @@ impl Indexer for PhotonIndexer { ) -> Result>, IndexerError> { let config = config.unwrap_or_default(); self.retry(config.retry_config, || async { - let request = photon_api::models::GetCompressionSignaturesForOwnerPostRequest { - params: Box::new( - photon_api::models::GetCompressionSignaturesForOwnerPostRequestParams { - owner: owner.to_string(), - cursor: options.as_ref().and_then(|o| o.cursor.clone()), - limit: options.as_ref().and_then(|o| o.limit), - }, - ), - ..Default::default() + let params = photon_api::models::PostGetCompressionSignaturesForOwnerBodyParams { + owner: photon_api::models::SerializablePubkey(owner.to_string()), + cursor: options.as_ref().and_then(|o| o.cursor.clone()), + limit: options.as_ref().and_then(|o| o.limit).map(|l| photon_api::models::Limit(l as u64)), }; + let request = photon_api::apis::default_api::make_get_compression_signatures_for_owner_body(params); let result = photon_api::apis::default_api::get_compression_signatures_for_owner_post( &self.configuration, @@ -990,11 +938,9 @@ impl Indexer for PhotonIndexer { ) .await?; - let api_response = Self::extract_result_with_error_check( - "get_compression_signatures_for_owner", - result.error, - result.result.map(|r| *r), - )?; + Self::check_api_error("get_compression_signatures_for_owner", result.error)?; + let api_response = Self::extract_result("get_compression_signatures_for_owner", result.result)?; + if api_response.context.slot < config.slot { return Err(IndexerError::IndexerNotSyncedToSlot); } @@ -1029,16 +975,12 @@ impl Indexer for PhotonIndexer { ) -> Result>, IndexerError> { let config = config.unwrap_or_default(); self.retry(config.retry_config, || async { - let request = photon_api::models::GetCompressionSignaturesForTokenOwnerPostRequest { - params: Box::new( - photon_api::models::GetCompressionSignaturesForOwnerPostRequestParams { - owner: owner.to_string(), - cursor: options.as_ref().and_then(|o| o.cursor.clone()), - limit: options.as_ref().and_then(|o| o.limit), - }, - ), - ..Default::default() + let params = photon_api::models::PostGetCompressionSignaturesForTokenOwnerBodyParams { + owner: photon_api::models::SerializablePubkey(owner.to_string()), + cursor: options.as_ref().and_then(|o| o.cursor.clone()), + limit: options.as_ref().and_then(|o| o.limit).map(|l| photon_api::models::Limit(l as u64)), }; + let request = photon_api::apis::default_api::make_get_compression_signatures_for_token_owner_body(params); let result = photon_api::apis::default_api::get_compression_signatures_for_token_owner_post( @@ -1047,11 +989,9 @@ impl Indexer for PhotonIndexer { ) .await?; - let api_response = Self::extract_result_with_error_check( - "get_compression_signatures_for_token_owner", - result.error, - result.result.map(|r| *r), - )?; + Self::check_api_error("get_compression_signatures_for_token_owner", result.error)?; + let api_response = Self::extract_result("get_compression_signatures_for_token_owner", result.result)?; + if api_response.context.slot < config.slot { return Err(IndexerError::IndexerNotSyncedToSlot); } @@ -1081,9 +1021,7 @@ impl Indexer for PhotonIndexer { async fn get_indexer_health(&self, config: Option) -> Result { let config = config.unwrap_or_default(); self.retry(config, || async { - let request = photon_api::models::GetIndexerHealthPostRequest { - ..Default::default() - }; + let request = photon_api::apis::default_api::make_get_indexer_health_body(); let result = photon_api::apis::default_api::get_indexer_health_post( &self.configuration, @@ -1091,11 +1029,9 @@ impl Indexer for PhotonIndexer { ) .await?; - let _api_response = Self::extract_result_with_error_check( - "get_indexer_health", - result.error, - result.result, - )?; + Self::check_api_error("get_indexer_health", result.error)?; + // result.result is not Optional for this endpoint + let _health = result.result; Ok(true) }) @@ -1105,20 +1041,15 @@ impl Indexer for PhotonIndexer { async fn get_indexer_slot(&self, config: Option) -> Result { let config = config.unwrap_or_default(); self.retry(config, || async { - let request = photon_api::models::GetIndexerSlotPostRequest { - ..Default::default() - }; + let request = photon_api::apis::default_api::make_get_indexer_slot_body(); let result = photon_api::apis::default_api::get_indexer_slot_post(&self.configuration, request) .await?; - let result = Self::extract_result_with_error_check( - "get_indexer_slot", - result.error, - result.result, - )?; - Ok(result) + Self::check_api_error("get_indexer_slot", result.error)?; + // result.result is u64 directly for this endpoint + Ok(result.result) }) .await } @@ -1132,14 +1063,11 @@ impl Indexer for PhotonIndexer { self.retry(config.retry_config, || async { let hashes_for_async = hashes.clone(); - let request: photon_api::models::GetMultipleCompressedAccountProofsPostRequest = - photon_api::models::GetMultipleCompressedAccountProofsPostRequest { - params: hashes_for_async - .into_iter() - .map(|hash| bs58::encode(hash).into_string()) - .collect(), - ..Default::default() - }; + let params: Vec = hashes_for_async + .into_iter() + .map(|hash| photon_api::models::Hash(bs58::encode(hash).into_string())) + .collect(); + let request = photon_api::apis::default_api::make_get_multiple_compressed_account_proofs_body(params); let result = photon_api::apis::default_api::get_multiple_compressed_account_proofs_post( @@ -1148,22 +1076,9 @@ impl Indexer for PhotonIndexer { ) .await?; - if let Some(error) = &result.error { - let error_msg = error.message.as_deref().unwrap_or("Unknown error"); - let error_code = error.code.unwrap_or(0); - tracing::error!("API returned error: {}", error_msg); - return Err(IndexerError::PhotonError { - context: "get_multiple_compressed_account_proofs".to_string(), - message: format!("API Error (code {}): {}", error_code, error_msg), - }); - } + Self::check_api_error("get_multiple_compressed_account_proofs", result.error)?; + let photon_proofs = Self::extract_result("get_multiple_compressed_account_proofs", result.result)?; - let photon_proofs = result.result.ok_or_else(|| { - IndexerError::missing_result( - "get_multiple_new_address_proofs", - "No result returned from Photon API", - ) - })?; if photon_proofs.context.slot < config.slot { return Err(IndexerError::IndexerNotSyncedToSlot); } @@ -1177,7 +1092,7 @@ impl Indexer for PhotonIndexer { let proof = proof_vec .iter() - .map(|x| Hash::from_base58(x)) + .map(|s| Hash::from_base58(s)) .collect::, IndexerError>>() .map_err(|e| IndexerError::Base58DecodeError { field: "proof".to_string(), @@ -1186,8 +1101,8 @@ impl Indexer for PhotonIndexer { Ok(MerkleProof { hash: <[u8; 32] as Base58Conversions>::from_base58(&x.hash)?, - leaf_index: x.leaf_index, - merkle_tree: Pubkey::from_str_const(x.merkle_tree.as_str()), + leaf_index: x.leaf_index as u64, + merkle_tree: Pubkey::from_str_const(x.merkle_tree.0.as_str()), proof, root_seq: x.root_seq, root: <[u8; 32] as Base58Conversions>::from_base58(&x.root)?, @@ -1215,15 +1130,11 @@ impl Indexer for PhotonIndexer { self.retry(config.retry_config, || async { let hashes = hashes.clone(); let addresses = addresses.clone(); - let request = photon_api::models::GetMultipleCompressedAccountsPostRequest { - params: Box::new( - photon_api::models::GetMultipleCompressedAccountsPostRequestParams { - addresses: addresses.map(|x| x.iter().map(|x| x.to_base58()).collect()), - hashes: hashes.map(|x| x.iter().map(|x| x.to_base58()).collect()), - }, - ), - ..Default::default() + let params = photon_api::models::PostGetMultipleCompressedAccountsBodyParams { + addresses: addresses.map(|x| x.iter().map(|a| photon_api::models::SerializablePubkey(a.to_base58())).collect()), + hashes: hashes.map(|x| x.iter().map(|h| photon_api::models::Hash(h.to_base58())).collect()), }; + let request = photon_api::apis::default_api::make_get_multiple_compressed_accounts_body(params); let result = photon_api::apis::default_api::get_multiple_compressed_accounts_post( &self.configuration, @@ -1231,11 +1142,9 @@ impl Indexer for PhotonIndexer { ) .await?; - let api_response = Self::extract_result_with_error_check( - "get_multiple_compressed_accounts", - result.error, - result.result.map(|r| *r), - )?; + Self::check_api_error("get_multiple_compressed_accounts", result.error)?; + let api_response = Self::extract_result("get_multiple_compressed_accounts", result.result)?; + if api_response.context.slot < config.slot { return Err(IndexerError::IndexerNotSyncedToSlot); } @@ -1267,58 +1176,51 @@ impl Indexer for PhotonIndexer { ) -> Result>, IndexerError> { let config = config.unwrap_or_default(); self.retry(config.retry_config, || async { - let params: Vec = addresses + let params: Vec = addresses .iter() - .map(|x| photon_api::models::address_with_tree::AddressWithTree { - address: bs58::encode(x).into_string(), - tree: bs58::encode(&merkle_tree_pubkey).into_string(), + .map(|x| photon_api::models::AddressWithTree { + address: photon_api::models::SerializablePubkey(bs58::encode(x).into_string()), + tree: photon_api::models::SerializablePubkey(bs58::encode(&merkle_tree_pubkey).into_string()), }) .collect(); - let request = photon_api::models::GetMultipleNewAddressProofsV2PostRequest { - params, - ..Default::default() - }; + let request = photon_api::apis::default_api::make_get_multiple_new_address_proofs_v2_body(params); let result = photon_api::apis::default_api::get_multiple_new_address_proofs_v2_post( &self.configuration, request, ) - .await; - - let result = result?; + .await?; - let api_response = match Self::extract_result_with_error_check( - "get_multiple_new_address_proofs", - result.error, - result.result.map(|r| *r), - ) { + Self::check_api_error("get_multiple_new_address_proofs", result.error)?; + let api_response = match Self::extract_result("get_multiple_new_address_proofs", result.result) { Ok(proofs) => proofs, Err(e) => { error!("Failed to extract proofs: {:?}", e); return Err(e); } }; + if api_response.context.slot < config.slot { return Err(IndexerError::IndexerNotSyncedToSlot); } let photon_proofs = api_response.value; let mut proofs = Vec::new(); for photon_proof in photon_proofs { - let tree_pubkey = Hash::from_base58(&photon_proof.merkle_tree).map_err(|e| { + let tree_pubkey = Hash::from_base58(&photon_proof.merkle_tree.0).map_err(|e| { IndexerError::Base58DecodeError { field: "merkle_tree".to_string(), message: e.to_string(), } })?; - let low_address_value = Hash::from_base58(&photon_proof.lower_range_address) + let low_address_value = Hash::from_base58(&photon_proof.lower_range_address.0) .map_err(|e| IndexerError::Base58DecodeError { field: "lower_range_address".to_string(), message: e.to_string(), })?; - let next_address_value = Hash::from_base58(&photon_proof.higher_range_address) + let next_address_value = Hash::from_base58(&photon_proof.higher_range_address.0) .map_err(|e| IndexerError::Base58DecodeError { field: "higher_range_address".to_string(), message: e.to_string(), @@ -1327,7 +1229,7 @@ impl Indexer for PhotonIndexer { let mut proof_vec: Vec<[u8; 32]> = photon_proof .proof .iter() - .map(|x: &String| Hash::from_base58(x)) + .map(|x| Hash::from_base58(x)) .collect::, IndexerError>>()?; proof_vec.truncate(proof_vec.len() - 10); // Remove canopy @@ -1343,9 +1245,9 @@ impl Indexer for PhotonIndexer { let proof = NewAddressProofWithContext { merkle_tree: tree_pubkey.into(), - low_address_index: photon_proof.low_element_leaf_index, + low_address_index: photon_proof.low_element_leaf_index as u64, low_address_value, - low_address_next_index: photon_proof.next_index, + low_address_next_index: photon_proof.next_index as u64, low_address_next_value: next_address_value, low_address_proof: proof_arr.to_vec(), root, @@ -1377,21 +1279,17 @@ impl Indexer for PhotonIndexer { self.retry(config.retry_config, || async { #[cfg(feature = "v2")] { - let request = photon_api::models::GetValidityProofV2PostRequest { - params: Box::new(photon_api::models::GetValidityProofPostRequestParams { - hashes: Some(hashes.iter().map(|x| x.to_base58()).collect()), - new_addresses_with_trees: Some( - new_addresses_with_trees - .iter() - .map(|x| photon_api::models::AddressWithTree { - address: x.address.to_base58(), - tree: x.tree.to_string(), - }) - .collect(), - ), - }), - ..Default::default() + let params = photon_api::models::PostGetValidityProofV2BodyParams { + hashes: hashes.iter().map(|x| photon_api::models::Hash(x.to_base58())).collect(), + new_addresses_with_trees: new_addresses_with_trees + .iter() + .map(|x| photon_api::models::AddressWithTree { + address: photon_api::models::SerializablePubkey(x.address.to_base58()), + tree: photon_api::models::SerializablePubkey(x.tree.to_string()), + }) + .collect(), }; + let request = photon_api::apis::default_api::make_get_validity_proof_v2_body(params); let result = photon_api::apis::default_api::get_validity_proof_v2_post( &self.configuration, @@ -1399,16 +1297,14 @@ impl Indexer for PhotonIndexer { ) .await?; - let api_response = Self::extract_result_with_error_check( - "get_validity_proof_v2", - result.error, - result.result.map(|r| *r), - )?; + Self::check_api_error("get_validity_proof_v2", result.error)?; + let api_response = Self::extract_result("get_validity_proof_v2", result.result)?; + if api_response.context.slot < config.slot { return Err(IndexerError::IndexerNotSyncedToSlot); } let validity_proof = - super::types::ValidityProofWithContext::from_api_model_v2(*api_response.value)?; + super::types::ValidityProofWithContext::from_api_model_v2(api_response.value)?; Ok(Response { context: Context { @@ -1419,21 +1315,17 @@ impl Indexer for PhotonIndexer { } #[cfg(not(feature = "v2"))] { - let request = photon_api::models::GetValidityProofPostRequest { - params: Box::new(photon_api::models::GetValidityProofPostRequestParams { - hashes: Some(hashes.iter().map(|x| x.to_base58()).collect()), - new_addresses_with_trees: Some( - new_addresses_with_trees - .iter() - .map(|x| photon_api::models::AddressWithTree { - address: x.address.to_base58(), - tree: x.tree.to_string(), - }) - .collect(), - ), - }), - ..Default::default() + let params = photon_api::models::PostGetValidityProofBodyParams { + hashes: hashes.iter().map(|x| photon_api::models::Hash(x.to_base58())).collect(), + new_addresses_with_trees: new_addresses_with_trees + .iter() + .map(|x| photon_api::models::AddressWithTree { + address: photon_api::models::SerializablePubkey(x.address.to_base58()), + tree: photon_api::models::SerializablePubkey(x.tree.to_string()), + }) + .collect(), }; + let request = photon_api::apis::default_api::make_get_validity_proof_body(params); let result = photon_api::apis::default_api::get_validity_proof_post( &self.configuration, @@ -1441,16 +1333,14 @@ impl Indexer for PhotonIndexer { ) .await?; - let api_response = Self::extract_result_with_error_check( - "get_validity_proof", - result.error, - result.result.map(|r| *r), - )?; + Self::check_api_error("get_validity_proof", result.error)?; + let api_response = Self::extract_result("get_validity_proof", result.result)?; + if api_response.context.slot < config.slot { return Err(IndexerError::IndexerNotSyncedToSlot); } let validity_proof = super::types::ValidityProofWithContext::from_api_model( - *api_response.value, + api_response.value, hashes.len(), )?; @@ -1467,302 +1357,178 @@ impl Indexer for PhotonIndexer { async fn get_queue_info( &self, - config: Option, + _config: Option, ) -> Result, IndexerError> { - let config = config.unwrap_or_default(); - self.retry(config.retry_config, || async { - let request = photon_api::models::GetQueueInfoPostRequest { - ..Default::default() - }; - - let result = - photon_api::apis::default_api::get_queue_info_post(&self.configuration, request) - .await?; - - let api_response = Self::extract_result_with_error_check( - "get_queue_info", - result.error.map(|e| { - Box::new( - photon_api::models::GetBatchAddressUpdateInfoPost200ResponseError { - code: Some(e.code), - message: Some(e.message), - }, - ) - }), - result.result, - )?; - - if api_response.slot < config.slot { - return Err(IndexerError::IndexerNotSyncedToSlot); - } - - let queues = api_response - .queues - .iter() - .map(|q| -> Result<_, IndexerError> { - let tree_bytes = super::base58::decode_base58_to_fixed_array(&q.tree)?; - let queue_bytes = super::base58::decode_base58_to_fixed_array(&q.queue)?; - - Ok(super::QueueInfo { - tree: Pubkey::new_from_array(tree_bytes), - queue: Pubkey::new_from_array(queue_bytes), - queue_type: q.queue_type, - queue_size: q.queue_size, - }) - }) - .collect::, _>>()?; - - Ok(Response { - context: Context { - slot: api_response.slot, - }, - value: super::QueueInfoResult { - queues, - slot: api_response.slot, - }, - }) - }) - .await + // Note: getQueueInfo endpoint is not available in the current photon API spec + Err(IndexerError::NotImplemented( + "get_queue_info is not available in current photon API".to_string(), + )) } async fn get_queue_elements( &mut self, - _merkle_tree_pubkey: [u8; 32], - _options: super::QueueElementsV2Options, - _config: Option, + merkle_tree_pubkey: [u8; 32], + options: super::QueueElementsV2Options, + config: Option, ) -> Result, IndexerError> { - #[cfg(not(feature = "v2"))] - unimplemented!(); + let config = config.unwrap_or_default(); + self.retry(config.retry_config, || async { + let tree_hash = photon_api::models::Hash(bs58::encode(&merkle_tree_pubkey).into_string()); + + // Build queue request objects + let output_queue = if options.output_queue_limit.is_some() || options.output_queue_start_index.is_some() { + Some(photon_api::models::QueueRequest { + limit: options.output_queue_limit.unwrap_or(100), + start_index: options.output_queue_start_index, + zkp_batch_size: options.output_queue_zkp_batch_size, + }) + } else { + None + }; - #[cfg(feature = "v2")] - { - use crate::indexer::OutputQueueData; - let merkle_tree_pubkey = _merkle_tree_pubkey; - let options = _options; - let config = _config.unwrap_or_default(); - self.retry(config.retry_config, || async { - // Build nested QueueRequest objects for the new API format - let output_queue = options.output_queue_limit.map(|limit| { - let mut req = photon_api::models::QueueRequest::new(limit); - req.start_index = options.output_queue_start_index; - req.zkp_batch_size = options.output_queue_zkp_batch_size; - req - }); - - let input_queue = options.input_queue_limit.map(|limit| { - let mut req = photon_api::models::QueueRequest::new(limit); - req.start_index = options.input_queue_start_index; - req.zkp_batch_size = options.input_queue_zkp_batch_size; - req - }); - - let address_queue = options.address_queue_limit.map(|limit| { - let mut req = photon_api::models::QueueRequest::new(limit); - req.start_index = options.address_queue_start_index; - req.zkp_batch_size = options.address_queue_zkp_batch_size; - req - }); - - let mut params = photon_api::models::GetQueueElementsPostRequestParams::new( - bs58::encode(merkle_tree_pubkey).into_string(), - ); - params.output_queue = output_queue; - params.input_queue = input_queue; - params.address_queue = address_queue; - - let request = photon_api::models::GetQueueElementsPostRequest { - params: Box::new(params), - ..Default::default() - }; + let input_queue = if options.input_queue_limit.is_some() || options.input_queue_start_index.is_some() { + Some(photon_api::models::QueueRequest { + limit: options.input_queue_limit.unwrap_or(100), + start_index: options.input_queue_start_index, + zkp_batch_size: options.input_queue_zkp_batch_size, + }) + } else { + None + }; - tracing::info!( - "get_queue_elements request: output_queue={:?}, input_queue={:?}", - request.params.output_queue.as_ref().map(|q| ( - q.limit, - q.start_index, - q.zkp_batch_size - )), - request.params.input_queue.as_ref().map(|q| ( - q.limit, - q.start_index, - q.zkp_batch_size - )), - ); - - let result = photon_api::apis::default_api::get_queue_elements_post( - &self.configuration, - request, - ) - .await?; + let address_queue = if options.address_queue_limit.is_some() || options.address_queue_start_index.is_some() { + Some(photon_api::models::QueueRequest { + limit: options.address_queue_limit.unwrap_or(100), + start_index: options.address_queue_start_index, + zkp_batch_size: options.address_queue_zkp_batch_size, + }) + } else { + None + }; - let api_response = Self::extract_result_with_error_check( - "get_queue_elements", - result.error, - result.result.map(|r| *r), - )?; + let params = photon_api::models::PostGetQueueElementsBodyParams { + tree: tree_hash, + output_queue, + input_queue, + address_queue, + }; + let request = photon_api::apis::default_api::make_get_queue_elements_body(params); - if api_response.context.slot < config.slot { - return Err(IndexerError::IndexerNotSyncedToSlot); - } + let result = photon_api::apis::default_api::get_queue_elements_post( + &self.configuration, + request, + ) + .await?; - let state_queue = if let Some(state) = api_response.state_queue { - // Extract nodes and node_hashes from combined Node objects - let nodes: Vec = state.nodes.iter().map(|n| n.index).collect(); - let node_hashes: Result, IndexerError> = state - .nodes - .iter() - .map(|n| Hash::from_base58(&n.hash)) - .collect(); - let initial_root = Hash::from_base58(&state.initial_root)?; - - let output_queue = if let Some(output) = state.output_queue { - let account_hashes: Result, IndexerError> = output - .account_hashes - .iter() - .map(|h| Hash::from_base58(h)) - .collect(); - let old_leaves: Result, IndexerError> = - output.leaves.iter().map(|h| Hash::from_base58(h)).collect(); - let leaves_hash_chains: Result, IndexerError> = output - .leaves_hash_chains - .iter() - .map(|h| Hash::from_base58(h)) - .collect(); - - Some(OutputQueueData { - leaf_indices: output.leaf_indices, - account_hashes: account_hashes?, - old_leaves: old_leaves?, - first_queue_index: output.first_queue_index, - next_index: output.next_index, - leaves_hash_chains: leaves_hash_chains?, - }) - } else { - None - }; + Self::check_api_error("get_queue_elements", result.error)?; + let api_response = Self::extract_result("get_queue_elements", result.result)?; - let input_queue = if let Some(input) = state.input_queue { - let account_hashes: Result, IndexerError> = input - .account_hashes - .iter() - .map(|h| Hash::from_base58(h)) - .collect(); - let current_leaves: Result, IndexerError> = - input.leaves.iter().map(|h| Hash::from_base58(h)).collect(); - let tx_hashes: Result, IndexerError> = input - .tx_hashes - .iter() - .map(|h| Hash::from_base58(h)) - .collect(); - let nullifiers: Result, IndexerError> = input - .nullifiers - .iter() - .map(|h| Hash::from_base58(h)) - .collect(); - let leaves_hash_chains: Result, IndexerError> = input - .leaves_hash_chains - .iter() - .map(|h| Hash::from_base58(h)) - .collect(); - - Some(super::InputQueueData { - leaf_indices: input.leaf_indices, - account_hashes: account_hashes?, - current_leaves: current_leaves?, - tx_hashes: tx_hashes?, - nullifiers: nullifiers?, - first_queue_index: input.first_queue_index, - leaves_hash_chains: leaves_hash_chains?, - }) - } else { - None - }; + if api_response.context.slot < config.slot { + return Err(IndexerError::IndexerNotSyncedToSlot); + } - Some(super::StateQueueData { - nodes, - node_hashes: node_hashes?, - initial_root, - root_seq: state.root_seq, - output_queue, - input_queue, + // Convert API StateQueueData to local StateQueueData + let state_queue = if let Some(sq) = api_response.state_queue { + let output_queue = if let Some(oq) = sq.output_queue { + Some(super::OutputQueueData { + leaf_indices: oq.leaf_indices.clone(), + account_hashes: oq.account_hashes.iter() + .map(|h| super::base58::decode_base58_to_fixed_array(&h.0)) + .collect::, _>>()?, + old_leaves: oq.leaves.iter() + .map(|h| super::base58::decode_base58_to_fixed_array(&h.0)) + .collect::, _>>()?, + first_queue_index: oq.first_queue_index, + next_index: oq.next_index, + leaves_hash_chains: oq.leaves_hash_chains.iter() + .map(|h| super::base58::decode_base58_to_fixed_array(&h.0)) + .collect::, _>>()?, }) } else { None }; - // Transform AddressQueueDataV2 - let address_queue = if let Some(address) = api_response.address_queue { - let addresses: Result, IndexerError> = address - .addresses - .iter() - .map(|h| Hash::from_base58(h)) - .collect(); - - let low_element_values: Result, IndexerError> = address - .low_element_values - .iter() - .map(|h| Hash::from_base58(h)) - .collect(); - - let low_element_next_values: Result, IndexerError> = address - .low_element_next_values - .iter() - .map(|h| Hash::from_base58(h)) - .collect(); - - // Extract nodes and node_hashes from combined Node objects - // Proofs are reconstructed from nodes using AddressQueueDataV2::reconstruct_proof() - let nodes: Vec = address.nodes.iter().map(|n| n.index).collect(); - let node_hashes: Result, IndexerError> = address - .nodes - .iter() - .map(|n| Hash::from_base58(&n.hash)) - .collect(); - - let initial_root = Hash::from_base58(&address.initial_root)?; - - let leaves_hash_chains: Result, IndexerError> = address - .leaves_hash_chains - .iter() - .map(|h| Hash::from_base58(h)) - .collect(); - - let subtrees: Result, IndexerError> = address - .subtrees - .iter() - .map(|h| Hash::from_base58(h)) - .collect(); - - Some(super::AddressQueueData { - addresses: addresses?, - low_element_values: low_element_values?, - low_element_next_values: low_element_next_values?, - low_element_indices: address.low_element_indices, - low_element_next_indices: address.low_element_next_indices, - nodes, - node_hashes: node_hashes?, - initial_root, - leaves_hash_chains: leaves_hash_chains?, - subtrees: subtrees?, - start_index: address.start_index, - root_seq: address.root_seq, + let input_queue = if let Some(iq) = sq.input_queue { + Some(super::InputQueueData { + leaf_indices: iq.leaf_indices.clone(), + account_hashes: iq.account_hashes.iter() + .map(|h| super::base58::decode_base58_to_fixed_array(&h.0)) + .collect::, _>>()?, + current_leaves: iq.leaves.iter() + .map(|h| super::base58::decode_base58_to_fixed_array(&h.0)) + .collect::, _>>()?, + tx_hashes: iq.tx_hashes.iter() + .map(|h| super::base58::decode_base58_to_fixed_array(&h.0)) + .collect::, _>>()?, + nullifiers: iq.nullifiers.iter() + .map(|h| super::base58::decode_base58_to_fixed_array(&h.0)) + .collect::, _>>()?, + first_queue_index: iq.first_queue_index, + leaves_hash_chains: iq.leaves_hash_chains.iter() + .map(|h| super::base58::decode_base58_to_fixed_array(&h.0)) + .collect::, _>>()?, }) } else { None }; - Ok(Response { - context: Context { - slot: api_response.context.slot, - }, - value: super::QueueElementsResult { - state_queue, - address_queue, - }, + Some(super::StateQueueData { + nodes: sq.nodes.iter().map(|n| n.index).collect(), + node_hashes: sq.nodes.iter() + .map(|n| super::base58::decode_base58_to_fixed_array(&n.hash.0)) + .collect::, _>>()?, + initial_root: super::base58::decode_base58_to_fixed_array(&sq.initial_root.0)?, + root_seq: sq.root_seq, + output_queue, + input_queue, + }) + } else { + None + }; + + // Convert API AddressQueueData to local AddressQueueData + let address_queue = if let Some(aq) = api_response.address_queue { + Some(super::AddressQueueData { + addresses: aq.addresses.iter() + .map(|h| super::base58::decode_base58_to_fixed_array(&h.0)) + .collect::, _>>()?, + low_element_values: aq.low_element_values.iter() + .map(|h| super::base58::decode_base58_to_fixed_array(&h.0)) + .collect::, _>>()?, + low_element_next_values: aq.low_element_next_values.iter() + .map(|h| super::base58::decode_base58_to_fixed_array(&h.0)) + .collect::, _>>()?, + low_element_indices: aq.low_element_indices.clone(), + low_element_next_indices: aq.low_element_next_indices.clone(), + nodes: aq.nodes.iter().map(|n| n.index).collect(), + node_hashes: aq.nodes.iter() + .map(|n| super::base58::decode_base58_to_fixed_array(&n.hash.0)) + .collect::, _>>()?, + initial_root: super::base58::decode_base58_to_fixed_array(&aq.initial_root.0)?, + leaves_hash_chains: aq.leaves_hash_chains.iter() + .map(|h| super::base58::decode_base58_to_fixed_array(&h.0)) + .collect::, _>>()?, + subtrees: aq.subtrees.iter() + .map(|h| super::base58::decode_base58_to_fixed_array(&h.0)) + .collect::, _>>()?, + start_index: aq.start_index, + root_seq: aq.root_seq, }) + } else { + None + }; + + Ok(Response { + context: Context { + slot: api_response.context.slot, + }, + value: super::QueueElementsResult { + state_queue, + address_queue, + }, }) - .await - } + }) + .await } async fn get_subtrees( diff --git a/sdk-libs/client/src/indexer/types.rs b/sdk-libs/client/src/indexer/types.rs index 3f653db274..678121dee2 100644 --- a/sdk-libs/client/src/indexer/types.rs +++ b/sdk-libs/client/src/indexer/types.rs @@ -18,7 +18,7 @@ use solana_pubkey::Pubkey; use tracing::warn; use super::{ - base58::{decode_base58_option_to_pubkey, decode_base58_to_fixed_array}, + base58::{decode_base58_to_fixed_array, decode_serializable_pubkey_option}, tree_info::QUEUE_TREE_MAPPING, IndexerError, }; @@ -281,20 +281,20 @@ impl RootIndex { } impl AccountProofInputs { - pub fn from_api_model( + pub fn from_api_account_proof_inputs( value: &photon_api::models::AccountProofInputs, ) -> Result { - let root_index = { + let root_idx = { if value.root_index.prove_by_index { RootIndex::new_none() } else { - RootIndex::new_some(value.root_index.root_index) + RootIndex::new_some(value.root_index.root_index as u16) } }; Ok(Self { hash: decode_base58_to_fixed_array(&value.hash)?, root: decode_base58_to_fixed_array(&value.root)?, - root_index, + root_index: root_idx, leaf_index: value.leaf_index, tree_info: TreeInfo::from_api_model(&value.merkle_context)?, }) @@ -310,7 +310,7 @@ pub struct AddressProofInputs { } impl AddressProofInputs { - pub fn from_api_model( + pub fn from_api_address_proof_inputs( value: &photon_api::models::AddressProofInputs, ) -> Result { Ok(Self { @@ -404,21 +404,9 @@ impl ValidityProofWithContext { num_hashes: usize, ) -> Result { let proof = ValidityProof::new(Some(CompressedProof { - a: value - .compressed_proof - .a - .try_into() - .map_err(|_| IndexerError::InvalidResponseData)?, - b: value - .compressed_proof - .b - .try_into() - .map_err(|_| IndexerError::InvalidResponseData)?, - c: value - .compressed_proof - .c - .try_into() - .map_err(|_| IndexerError::InvalidResponseData)?, + a: decode_base58_to_fixed_array(&value.compressed_proof.a)?, + b: decode_base58_to_fixed_array(&value.compressed_proof.b)?, + c: decode_base58_to_fixed_array(&value.compressed_proof.c)?, })); // Convert account data from V1 flat arrays to V2 structured format @@ -487,33 +475,25 @@ impl ValidityProofWithContext { ) -> Result { let proof = if let Some(proof) = value.compressed_proof { ValidityProof::new(Some(CompressedProof { - a: proof - .a - .try_into() - .map_err(|_| IndexerError::InvalidResponseData)?, - b: proof - .b - .try_into() - .map_err(|_| IndexerError::InvalidResponseData)?, - c: proof - .c - .try_into() - .map_err(|_| IndexerError::InvalidResponseData)?, + a: decode_base58_to_fixed_array(&proof.a)?, + b: decode_base58_to_fixed_array(&proof.b)?, + c: decode_base58_to_fixed_array(&proof.c)?, })) } else { ValidityProof::new(None) }; + // The V2 API returns structured accounts and addresses arrays directly. let accounts = value .accounts .iter() - .map(AccountProofInputs::from_api_model) + .map(AccountProofInputs::from_api_account_proof_inputs) .collect::, IndexerError>>()?; let addresses = value .addresses .iter() - .map(AddressProofInputs::from_api_model) + .map(AddressProofInputs::from_api_address_proof_inputs) .collect::, IndexerError>>()?; Ok(Self { @@ -553,9 +533,9 @@ impl NextTreeInfo { ) -> Result { Ok(Self { tree_type: TreeType::from(value.tree_type as u64), - tree: Pubkey::new_from_array(decode_base58_to_fixed_array(&value.tree)?), - queue: Pubkey::new_from_array(decode_base58_to_fixed_array(&value.queue)?), - cpi_context: decode_base58_option_to_pubkey(&value.cpi_context)?, + tree: Pubkey::new_from_array(decode_base58_to_fixed_array(&value.tree.0)?), + queue: Pubkey::new_from_array(decode_base58_to_fixed_array(&value.queue.0)?), + cpi_context: decode_serializable_pubkey_option(&value.cpi_context)?, }) } } @@ -566,9 +546,9 @@ impl TryFrom<&photon_api::models::TreeContextInfo> for NextTreeInfo { fn try_from(value: &photon_api::models::TreeContextInfo) -> Result { Ok(Self { tree_type: TreeType::from(value.tree_type as u64), - tree: Pubkey::new_from_array(decode_base58_to_fixed_array(&value.tree)?), - queue: Pubkey::new_from_array(decode_base58_to_fixed_array(&value.queue)?), - cpi_context: decode_base58_option_to_pubkey(&value.cpi_context)?, + tree: Pubkey::new_from_array(decode_base58_to_fixed_array(&value.tree.0)?), + queue: Pubkey::new_from_array(decode_base58_to_fixed_array(&value.queue.0)?), + cpi_context: decode_serializable_pubkey_option(&value.cpi_context)?, }) } } @@ -612,13 +592,13 @@ impl TreeInfo { ) -> Result { Ok(Self { tree_type: TreeType::from(value.tree_type as u64), - tree: Pubkey::new_from_array(decode_base58_to_fixed_array(&value.tree)?), - queue: Pubkey::new_from_array(decode_base58_to_fixed_array(&value.queue)?), - cpi_context: decode_base58_option_to_pubkey(&value.cpi_context)?, + tree: Pubkey::new_from_array(decode_base58_to_fixed_array(&value.tree.0)?), + queue: Pubkey::new_from_array(decode_base58_to_fixed_array(&value.queue.0)?), + cpi_context: decode_serializable_pubkey_option(&value.cpi_context)?, next_tree_info: value .next_tree_context .as_ref() - .map(|tree_info| NextTreeInfo::from_api_model(tree_info.as_ref())) + .map(|tree_info| NextTreeInfo::from_api_model(tree_info)) .transpose()?, }) } @@ -719,37 +699,37 @@ impl TryFrom<&photon_api::models::AccountV2> for CompressedAccount { fn try_from(account: &photon_api::models::AccountV2) -> Result { let data = if let Some(data) = &account.data { Ok::, IndexerError>(Some(CompressedAccountData { - discriminator: data.discriminator.to_le_bytes(), - data: base64::decode_config(&data.data, base64::STANDARD_NO_PAD) + discriminator: (data.discriminator.0).to_le_bytes(), + data: base64::decode_config(&data.data.0, base64::STANDARD_NO_PAD) .map_err(|_| IndexerError::InvalidResponseData)?, - data_hash: decode_base58_to_fixed_array(&data.data_hash)?, + data_hash: decode_base58_to_fixed_array(&data.data_hash.0)?, })) } else { Ok::, IndexerError>(None) }?; - let owner = Pubkey::new_from_array(decode_base58_to_fixed_array(&account.owner)?); + let owner = Pubkey::new_from_array(decode_base58_to_fixed_array(&account.owner.0)?); let address = account .address .as_ref() - .map(|address| decode_base58_to_fixed_array(address)) + .map(|address| decode_base58_to_fixed_array(&address.0)) .transpose()?; - let hash = decode_base58_to_fixed_array(&account.hash)?; + let hash = decode_base58_to_fixed_array(&account.hash.0)?; let tree_info = TreeInfo { tree: Pubkey::new_from_array(decode_base58_to_fixed_array( - &account.merkle_context.tree, + &account.merkle_context.tree.0, )?), queue: Pubkey::new_from_array(decode_base58_to_fixed_array( - &account.merkle_context.queue, + &account.merkle_context.queue.0, )?), tree_type: TreeType::from(account.merkle_context.tree_type as u64), - cpi_context: decode_base58_option_to_pubkey(&account.merkle_context.cpi_context)?, + cpi_context: decode_serializable_pubkey_option(&account.merkle_context.cpi_context)?, next_tree_info: account .merkle_context .next_tree_context .as_ref() - .map(|ctx| NextTreeInfo::try_from(ctx.as_ref())) + .map(|ctx| NextTreeInfo::try_from(ctx)) .transpose()?, }; @@ -758,10 +738,10 @@ impl TryFrom<&photon_api::models::AccountV2> for CompressedAccount { address, data, hash, - lamports: account.lamports, - leaf_index: account.leaf_index, - seq: account.seq, - slot_created: account.slot_created, + lamports: account.lamports.0, + leaf_index: account.leaf_index.0 as u32, + seq: account.seq.as_ref().map(|s| s.0), + slot_created: account.slot_created.0, tree_info, prove_by_index: account.prove_by_index, }) @@ -774,28 +754,28 @@ impl TryFrom<&photon_api::models::Account> for CompressedAccount { fn try_from(account: &photon_api::models::Account) -> Result { let data = if let Some(data) = &account.data { Ok::, IndexerError>(Some(CompressedAccountData { - discriminator: data.discriminator.to_le_bytes(), - data: base64::decode_config(&data.data, base64::STANDARD_NO_PAD) + discriminator: (data.discriminator.0).to_le_bytes(), + data: base64::decode_config(&data.data.0, base64::STANDARD_NO_PAD) .map_err(|_| IndexerError::InvalidResponseData)?, - data_hash: decode_base58_to_fixed_array(&data.data_hash)?, + data_hash: decode_base58_to_fixed_array(&data.data_hash.0)?, })) } else { Ok::, IndexerError>(None) }?; - let owner = Pubkey::new_from_array(decode_base58_to_fixed_array(&account.owner)?); + let owner = Pubkey::new_from_array(decode_base58_to_fixed_array(&account.owner.0)?); let address = account .address .as_ref() - .map(|address| decode_base58_to_fixed_array(address)) + .map(|address| decode_base58_to_fixed_array(&address.0)) .transpose()?; - let hash = decode_base58_to_fixed_array(&account.hash)?; - let seq = account.seq; - let slot_created = account.slot_created; - let lamports = account.lamports; - let leaf_index = account.leaf_index; + let hash = decode_base58_to_fixed_array(&account.hash.0)?; + let seq = account.seq.as_ref().map(|s| s.0); + let slot_created = account.slot_created.0; + let lamports = account.lamports.0; + let leaf_index = account.leaf_index.0 as u32; let tree_info = QUEUE_TREE_MAPPING - .get(&account.tree) + .get(&account.tree.0) .ok_or(IndexerError::InvalidResponseData)?; let tree_info = TreeInfo { @@ -860,21 +840,21 @@ impl TryFrom<&photon_api::models::TokenAccount> for CompressedTokenAccount { type Error = IndexerError; fn try_from(token_account: &photon_api::models::TokenAccount) -> Result { - let account = CompressedAccount::try_from(token_account.account.as_ref())?; + let account = CompressedAccount::try_from(&token_account.account)?; let token = TokenData { mint: Pubkey::new_from_array(decode_base58_to_fixed_array( - &token_account.token_data.mint, + &token_account.token_data.mint.0, )?), owner: Pubkey::new_from_array(decode_base58_to_fixed_array( - &token_account.token_data.owner, + &token_account.token_data.owner.0, )?), - amount: token_account.token_data.amount, + amount: token_account.token_data.amount.0, delegate: token_account .token_data .delegate .as_ref() - .map(|d| decode_base58_to_fixed_array(d).map(Pubkey::new_from_array)) + .map(|d| decode_base58_to_fixed_array(&d.0).map(Pubkey::new_from_array)) .transpose()?, state: match token_account.token_data.state { photon_api::models::AccountState::Initialized => AccountState::Initialized, @@ -885,7 +865,7 @@ impl TryFrom<&photon_api::models::TokenAccount> for CompressedTokenAccount { .tlv .as_ref() .map(|tlv| { - let bytes = base64::decode_config(tlv, base64::STANDARD_NO_PAD) + let bytes = base64::decode_config(&tlv.0, base64::STANDARD_NO_PAD) .map_err(|_| IndexerError::InvalidResponseData)?; Vec::::deserialize(&mut bytes.as_slice()) .map_err(|_| IndexerError::InvalidResponseData) @@ -901,21 +881,21 @@ impl TryFrom<&photon_api::models::TokenAccountV2> for CompressedTokenAccount { type Error = IndexerError; fn try_from(token_account: &photon_api::models::TokenAccountV2) -> Result { - let account = CompressedAccount::try_from(token_account.account.as_ref())?; + let account = CompressedAccount::try_from(&token_account.account)?; let token = TokenData { mint: Pubkey::new_from_array(decode_base58_to_fixed_array( - &token_account.token_data.mint, + &token_account.token_data.mint.0, )?), owner: Pubkey::new_from_array(decode_base58_to_fixed_array( - &token_account.token_data.owner, + &token_account.token_data.owner.0, )?), - amount: token_account.token_data.amount, + amount: token_account.token_data.amount.0, delegate: token_account .token_data .delegate .as_ref() - .map(|d| decode_base58_to_fixed_array(d).map(Pubkey::new_from_array)) + .map(|d| decode_base58_to_fixed_array(&d.0).map(Pubkey::new_from_array)) .transpose()?, state: match token_account.token_data.state { photon_api::models::AccountState::Initialized => AccountState::Initialized, @@ -926,7 +906,7 @@ impl TryFrom<&photon_api::models::TokenAccountV2> for CompressedTokenAccount { .tlv .as_ref() .map(|tlv| { - let bytes = base64::decode_config(tlv, base64::STANDARD_NO_PAD) + let bytes = base64::decode_config(&tlv.0, base64::STANDARD_NO_PAD) .map_err(|_| IndexerError::InvalidResponseData)?; Vec::::deserialize(&mut bytes.as_slice()) .map_err(|_| IndexerError::InvalidResponseData) @@ -996,8 +976,8 @@ impl TryFrom<&photon_api::models::TokenBalance> for TokenBalance { fn try_from(token_balance: &photon_api::models::TokenBalance) -> Result { Ok(TokenBalance { - balance: token_balance.balance, - mint: Pubkey::new_from_array(decode_base58_to_fixed_array(&token_balance.mint)?), + balance: token_balance.balance.0, + mint: Pubkey::new_from_array(decode_base58_to_fixed_array(&token_balance.mint.0)?), }) } } @@ -1014,9 +994,9 @@ impl TryFrom<&photon_api::models::SignatureInfo> for SignatureWithMetadata { fn try_from(sig_info: &photon_api::models::SignatureInfo) -> Result { Ok(SignatureWithMetadata { - block_time: sig_info.block_time, - signature: sig_info.signature.clone(), - slot: sig_info.slot, + block_time: sig_info.block_time.0 as u64, + signature: sig_info.signature.0.clone(), + slot: sig_info.slot.0, }) } } @@ -1032,8 +1012,8 @@ impl TryFrom<&photon_api::models::OwnerBalance> for OwnerBalance { fn try_from(owner_balance: &photon_api::models::OwnerBalance) -> Result { Ok(OwnerBalance { - balance: owner_balance.balance, - owner: Pubkey::new_from_array(decode_base58_to_fixed_array(&owner_balance.owner)?), + balance: owner_balance.balance.0, + owner: Pubkey::new_from_array(decode_base58_to_fixed_array(&owner_balance.owner.0)?), }) } } diff --git a/sdk-libs/photon-api/.gitignore b/sdk-libs/photon-api/.gitignore deleted file mode 100644 index 6aa106405a..0000000000 --- a/sdk-libs/photon-api/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -/target/ -**/*.rs.bk -Cargo.lock diff --git a/sdk-libs/photon-api/.openapi-generator-ignore b/sdk-libs/photon-api/.openapi-generator-ignore deleted file mode 100644 index 7484ee590a..0000000000 --- a/sdk-libs/photon-api/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# OpenAPI Generator Ignore -# Generated by openapi-generator https://github.com/openapitools/openapi-generator - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/sdk-libs/photon-api/.openapi-generator/FILES b/sdk-libs/photon-api/.openapi-generator/FILES deleted file mode 100644 index 39236a3b1f..0000000000 --- a/sdk-libs/photon-api/.openapi-generator/FILES +++ /dev/null @@ -1,336 +0,0 @@ -.gitignore -.openapi-generator-ignore -.travis.yml -Cargo.toml -README.md -docs/Account.md -docs/AccountContext.md -docs/AccountData.md -docs/AccountList.md -docs/AccountListV2.md -docs/AccountProofInputs.md -docs/AccountState.md -docs/AccountV2.md -docs/AccountWithContext.md -docs/AccountWithOptionalTokenData.md -docs/AccountWithOptionalTokenDataV2.md -docs/AddressProofInputs.md -docs/AddressQueueIndex.md -docs/AddressWithTree.md -docs/ClosedAccountV2.md -docs/ClosedAccountWithOptionalTokenDataV2.md -docs/CompressedProof.md -docs/CompressedProofWithContext.md -docs/CompressedProofWithContextV2.md -docs/CompressionInfoV2.md -docs/Context.md -docs/DataSlice.md -docs/DefaultApi.md -docs/FilterSelector.md -docs/GetBatchAddressUpdateInfoPost200Response.md -docs/GetBatchAddressUpdateInfoPost200ResponseError.md -docs/GetBatchAddressUpdateInfoPost200ResponseResult.md -docs/GetBatchAddressUpdateInfoPost429Response.md -docs/GetBatchAddressUpdateInfoPostRequest.md -docs/GetBatchAddressUpdateInfoPostRequestParams.md -docs/GetCompressedAccountBalancePost200Response.md -docs/GetCompressedAccountBalancePost200ResponseResult.md -docs/GetCompressedAccountBalancePostRequest.md -docs/GetCompressedAccountPost200Response.md -docs/GetCompressedAccountPost200ResponseResult.md -docs/GetCompressedAccountPostRequest.md -docs/GetCompressedAccountPostRequestParams.md -docs/GetCompressedAccountProofPost200Response.md -docs/GetCompressedAccountProofPost200ResponseResult.md -docs/GetCompressedAccountProofPostRequest.md -docs/GetCompressedAccountProofPostRequestParams.md -docs/GetCompressedAccountProofResponseValue.md -docs/GetCompressedAccountProofResponseValueV2.md -docs/GetCompressedAccountProofV2Post200Response.md -docs/GetCompressedAccountProofV2Post200ResponseResult.md -docs/GetCompressedAccountProofV2PostRequest.md -docs/GetCompressedAccountV2Post200Response.md -docs/GetCompressedAccountV2Post200ResponseResult.md -docs/GetCompressedAccountV2PostRequest.md -docs/GetCompressedAccountsByOwnerPost200Response.md -docs/GetCompressedAccountsByOwnerPost200ResponseResult.md -docs/GetCompressedAccountsByOwnerPostRequest.md -docs/GetCompressedAccountsByOwnerPostRequestParams.md -docs/GetCompressedAccountsByOwnerV2Post200Response.md -docs/GetCompressedAccountsByOwnerV2Post200ResponseResult.md -docs/GetCompressedAccountsByOwnerV2PostRequest.md -docs/GetCompressedBalanceByOwnerPostRequest.md -docs/GetCompressedBalanceByOwnerPostRequestParams.md -docs/GetCompressedMintTokenHoldersPost200Response.md -docs/GetCompressedMintTokenHoldersPost200ResponseResult.md -docs/GetCompressedMintTokenHoldersPostRequest.md -docs/GetCompressedMintTokenHoldersPostRequestParams.md -docs/GetCompressedTokenAccountBalancePost200Response.md -docs/GetCompressedTokenAccountBalancePost200ResponseResult.md -docs/GetCompressedTokenAccountBalancePostRequest.md -docs/GetCompressedTokenAccountsByDelegatePost200Response.md -docs/GetCompressedTokenAccountsByDelegatePost200ResponseResult.md -docs/GetCompressedTokenAccountsByDelegatePostRequest.md -docs/GetCompressedTokenAccountsByDelegatePostRequestParams.md -docs/GetCompressedTokenAccountsByDelegateV2Post200Response.md -docs/GetCompressedTokenAccountsByDelegateV2Post200ResponseResult.md -docs/GetCompressedTokenAccountsByDelegateV2PostRequest.md -docs/GetCompressedTokenAccountsByOwnerPostRequest.md -docs/GetCompressedTokenAccountsByOwnerPostRequestParams.md -docs/GetCompressedTokenAccountsByOwnerV2PostRequest.md -docs/GetCompressedTokenBalancesByOwnerPost200Response.md -docs/GetCompressedTokenBalancesByOwnerPost200ResponseResult.md -docs/GetCompressedTokenBalancesByOwnerPostRequest.md -docs/GetCompressedTokenBalancesByOwnerV2Post200Response.md -docs/GetCompressedTokenBalancesByOwnerV2Post200ResponseResult.md -docs/GetCompressedTokenBalancesByOwnerV2PostRequest.md -docs/GetCompressionSignaturesForAccountPost200Response.md -docs/GetCompressionSignaturesForAccountPost200ResponseResult.md -docs/GetCompressionSignaturesForAccountPostRequest.md -docs/GetCompressionSignaturesForAddressPost200Response.md -docs/GetCompressionSignaturesForAddressPost200ResponseResult.md -docs/GetCompressionSignaturesForAddressPostRequest.md -docs/GetCompressionSignaturesForAddressPostRequestParams.md -docs/GetCompressionSignaturesForOwnerPostRequest.md -docs/GetCompressionSignaturesForOwnerPostRequestParams.md -docs/GetCompressionSignaturesForTokenOwnerPostRequest.md -docs/GetIndexerHealthPost200Response.md -docs/GetIndexerHealthPostRequest.md -docs/GetIndexerSlotPost200Response.md -docs/GetIndexerSlotPostRequest.md -docs/GetLatestCompressionSignaturesPostRequest.md -docs/GetLatestCompressionSignaturesPostRequestParams.md -docs/GetLatestNonVotingSignaturesPost200Response.md -docs/GetLatestNonVotingSignaturesPost200ResponseResult.md -docs/GetLatestNonVotingSignaturesPostRequest.md -docs/GetMultipleCompressedAccountProofsPost200Response.md -docs/GetMultipleCompressedAccountProofsPost200ResponseResult.md -docs/GetMultipleCompressedAccountProofsPostRequest.md -docs/GetMultipleCompressedAccountProofsV2Post200Response.md -docs/GetMultipleCompressedAccountProofsV2Post200ResponseResult.md -docs/GetMultipleCompressedAccountProofsV2PostRequest.md -docs/GetMultipleCompressedAccountsPost200Response.md -docs/GetMultipleCompressedAccountsPost200ResponseResult.md -docs/GetMultipleCompressedAccountsPostRequest.md -docs/GetMultipleCompressedAccountsPostRequestParams.md -docs/GetMultipleCompressedAccountsV2Post200Response.md -docs/GetMultipleCompressedAccountsV2Post200ResponseResult.md -docs/GetMultipleCompressedAccountsV2PostRequest.md -docs/GetMultipleCompressedAccountsV2PostRequestParams.md -docs/GetMultipleNewAddressProofsPost200Response.md -docs/GetMultipleNewAddressProofsPost200ResponseResult.md -docs/GetMultipleNewAddressProofsPostRequest.md -docs/GetMultipleNewAddressProofsV2PostRequest.md -docs/GetQueueElementsPost200Response.md -docs/GetQueueElementsPost200ResponseResult.md -docs/GetQueueElementsPostRequest.md -docs/GetQueueElementsPostRequestParams.md -docs/GetQueueElementsResponseValue.md -docs/GetTransactionWithCompressionInfoPost200Response.md -docs/GetTransactionWithCompressionInfoPost200ResponseResult.md -docs/GetTransactionWithCompressionInfoPost200ResponseResultCompressionInfo.md -docs/GetTransactionWithCompressionInfoPostRequest.md -docs/GetTransactionWithCompressionInfoPostRequestParams.md -docs/GetTransactionWithCompressionInfoV2Post200Response.md -docs/GetTransactionWithCompressionInfoV2Post200ResponseResult.md -docs/GetTransactionWithCompressionInfoV2Post200ResponseResultCompressionInfo.md -docs/GetTransactionWithCompressionInfoV2PostRequest.md -docs/GetValidityProofPost200Response.md -docs/GetValidityProofPost200ResponseResult.md -docs/GetValidityProofPostRequest.md -docs/GetValidityProofPostRequestParams.md -docs/GetValidityProofV2Post200Response.md -docs/GetValidityProofV2Post200ResponseResult.md -docs/GetValidityProofV2PostRequest.md -docs/Memcmp.md -docs/MerkleContextV2.md -docs/MerkleContextWithNewAddressProof.md -docs/OwnerBalance.md -docs/OwnerBalanceList.md -docs/OwnerBalancesResponse.md -docs/PaginatedAccountList.md -docs/PaginatedAccountListV2.md -docs/PaginatedSignatureInfoList.md -docs/RootIndex.md -docs/SignatureInfo.md -docs/SignatureInfoList.md -docs/SignatureInfoListWithError.md -docs/SignatureInfoWithError.md -docs/TokenAccount.md -docs/TokenAccountBalance.md -docs/TokenAccountList.md -docs/TokenAccountListV2.md -docs/TokenAccountV2.md -docs/TokenBalance.md -docs/TokenBalanceList.md -docs/TokenBalanceListV2.md -docs/TokenData.md -docs/TreeContextInfo.md -git_push.sh -src/apis/configuration.rs -src/apis/default_api.rs -src/apis/mod.rs -src/lib.rs -src/models/_get_batch_address_update_info_post_200_response.rs -src/models/_get_batch_address_update_info_post_200_response_error.rs -src/models/_get_batch_address_update_info_post_200_response_result.rs -src/models/_get_batch_address_update_info_post_429_response.rs -src/models/_get_batch_address_update_info_post_request.rs -src/models/_get_batch_address_update_info_post_request_params.rs -src/models/_get_compressed_account_balance_post_200_response.rs -src/models/_get_compressed_account_balance_post_200_response_result.rs -src/models/_get_compressed_account_balance_post_request.rs -src/models/_get_compressed_account_post_200_response.rs -src/models/_get_compressed_account_post_200_response_result.rs -src/models/_get_compressed_account_post_request.rs -src/models/_get_compressed_account_post_request_params.rs -src/models/_get_compressed_account_proof_post_200_response.rs -src/models/_get_compressed_account_proof_post_200_response_result.rs -src/models/_get_compressed_account_proof_post_request.rs -src/models/_get_compressed_account_proof_post_request_params.rs -src/models/_get_compressed_account_proof_v2_post_200_response.rs -src/models/_get_compressed_account_proof_v2_post_200_response_result.rs -src/models/_get_compressed_account_proof_v2_post_request.rs -src/models/_get_compressed_account_v2_post_200_response.rs -src/models/_get_compressed_account_v2_post_200_response_result.rs -src/models/_get_compressed_account_v2_post_request.rs -src/models/_get_compressed_accounts_by_owner_post_200_response.rs -src/models/_get_compressed_accounts_by_owner_post_200_response_result.rs -src/models/_get_compressed_accounts_by_owner_post_request.rs -src/models/_get_compressed_accounts_by_owner_post_request_params.rs -src/models/_get_compressed_accounts_by_owner_v2_post_200_response.rs -src/models/_get_compressed_accounts_by_owner_v2_post_200_response_result.rs -src/models/_get_compressed_accounts_by_owner_v2_post_request.rs -src/models/_get_compressed_balance_by_owner_post_request.rs -src/models/_get_compressed_balance_by_owner_post_request_params.rs -src/models/_get_compressed_mint_token_holders_post_200_response.rs -src/models/_get_compressed_mint_token_holders_post_200_response_result.rs -src/models/_get_compressed_mint_token_holders_post_request.rs -src/models/_get_compressed_mint_token_holders_post_request_params.rs -src/models/_get_compressed_token_account_balance_post_200_response.rs -src/models/_get_compressed_token_account_balance_post_200_response_result.rs -src/models/_get_compressed_token_account_balance_post_request.rs -src/models/_get_compressed_token_accounts_by_delegate_post_200_response.rs -src/models/_get_compressed_token_accounts_by_delegate_post_200_response_result.rs -src/models/_get_compressed_token_accounts_by_delegate_post_request.rs -src/models/_get_compressed_token_accounts_by_delegate_post_request_params.rs -src/models/_get_compressed_token_accounts_by_delegate_v2_post_200_response.rs -src/models/_get_compressed_token_accounts_by_delegate_v2_post_200_response_result.rs -src/models/_get_compressed_token_accounts_by_delegate_v2_post_request.rs -src/models/_get_compressed_token_accounts_by_owner_post_request.rs -src/models/_get_compressed_token_accounts_by_owner_post_request_params.rs -src/models/_get_compressed_token_accounts_by_owner_v2_post_request.rs -src/models/_get_compressed_token_balances_by_owner_post_200_response.rs -src/models/_get_compressed_token_balances_by_owner_post_200_response_result.rs -src/models/_get_compressed_token_balances_by_owner_post_request.rs -src/models/_get_compressed_token_balances_by_owner_v2_post_200_response.rs -src/models/_get_compressed_token_balances_by_owner_v2_post_200_response_result.rs -src/models/_get_compressed_token_balances_by_owner_v2_post_request.rs -src/models/_get_compression_signatures_for_account_post_200_response.rs -src/models/_get_compression_signatures_for_account_post_200_response_result.rs -src/models/_get_compression_signatures_for_account_post_request.rs -src/models/_get_compression_signatures_for_address_post_200_response.rs -src/models/_get_compression_signatures_for_address_post_200_response_result.rs -src/models/_get_compression_signatures_for_address_post_request.rs -src/models/_get_compression_signatures_for_address_post_request_params.rs -src/models/_get_compression_signatures_for_owner_post_request.rs -src/models/_get_compression_signatures_for_owner_post_request_params.rs -src/models/_get_compression_signatures_for_token_owner_post_request.rs -src/models/_get_indexer_health_post_200_response.rs -src/models/_get_indexer_health_post_request.rs -src/models/_get_indexer_slot_post_200_response.rs -src/models/_get_indexer_slot_post_request.rs -src/models/_get_latest_compression_signatures_post_request.rs -src/models/_get_latest_compression_signatures_post_request_params.rs -src/models/_get_latest_non_voting_signatures_post_200_response.rs -src/models/_get_latest_non_voting_signatures_post_200_response_result.rs -src/models/_get_latest_non_voting_signatures_post_request.rs -src/models/_get_multiple_compressed_account_proofs_post_200_response.rs -src/models/_get_multiple_compressed_account_proofs_post_200_response_result.rs -src/models/_get_multiple_compressed_account_proofs_post_request.rs -src/models/_get_multiple_compressed_account_proofs_v2_post_200_response.rs -src/models/_get_multiple_compressed_account_proofs_v2_post_200_response_result.rs -src/models/_get_multiple_compressed_account_proofs_v2_post_request.rs -src/models/_get_multiple_compressed_accounts_post_200_response.rs -src/models/_get_multiple_compressed_accounts_post_200_response_result.rs -src/models/_get_multiple_compressed_accounts_post_request.rs -src/models/_get_multiple_compressed_accounts_post_request_params.rs -src/models/_get_multiple_compressed_accounts_v2_post_200_response.rs -src/models/_get_multiple_compressed_accounts_v2_post_200_response_result.rs -src/models/_get_multiple_compressed_accounts_v2_post_request.rs -src/models/_get_multiple_compressed_accounts_v2_post_request_params.rs -src/models/_get_multiple_new_address_proofs_post_200_response.rs -src/models/_get_multiple_new_address_proofs_post_200_response_result.rs -src/models/_get_multiple_new_address_proofs_post_request.rs -src/models/_get_multiple_new_address_proofs_v2_post_request.rs -src/models/_get_queue_elements_post_200_response.rs -src/models/_get_queue_elements_post_200_response_result.rs -src/models/_get_queue_elements_post_request.rs -src/models/_get_queue_elements_post_request_params.rs -src/models/_get_transaction_with_compression_info_post_200_response.rs -src/models/_get_transaction_with_compression_info_post_200_response_result.rs -src/models/_get_transaction_with_compression_info_post_200_response_result_compression_info.rs -src/models/_get_transaction_with_compression_info_post_request.rs -src/models/_get_transaction_with_compression_info_post_request_params.rs -src/models/_get_transaction_with_compression_info_v2_post_200_response.rs -src/models/_get_transaction_with_compression_info_v2_post_200_response_result.rs -src/models/_get_transaction_with_compression_info_v2_post_200_response_result_compression_info.rs -src/models/_get_transaction_with_compression_info_v2_post_request.rs -src/models/_get_validity_proof_post_200_response.rs -src/models/_get_validity_proof_post_200_response_result.rs -src/models/_get_validity_proof_post_request.rs -src/models/_get_validity_proof_post_request_params.rs -src/models/_get_validity_proof_v2_post_200_response.rs -src/models/_get_validity_proof_v2_post_200_response_result.rs -src/models/_get_validity_proof_v2_post_request.rs -src/models/account.rs -src/models/account_context.rs -src/models/account_data.rs -src/models/account_list.rs -src/models/account_list_v2.rs -src/models/account_proof_inputs.rs -src/models/account_state.rs -src/models/account_v2.rs -src/models/account_with_context.rs -src/models/account_with_optional_token_data.rs -src/models/account_with_optional_token_data_v2.rs -src/models/address_proof_inputs.rs -src/models/address_queue_index.rs -src/models/address_with_tree.rs -src/models/closed_account_v2.rs -src/models/closed_account_with_optional_token_data_v2.rs -src/models/compressed_proof.rs -src/models/compressed_proof_with_context.rs -src/models/compressed_proof_with_context_v2.rs -src/models/compression_info_v2.rs -src/models/context.rs -src/models/data_slice.rs -src/models/filter_selector.rs -src/models/get_compressed_account_proof_response_value.rs -src/models/get_compressed_account_proof_response_value_v2.rs -src/models/get_queue_elements_response_value.rs -src/models/memcmp.rs -src/models/merkle_context_v2.rs -src/models/merkle_context_with_new_address_proof.rs -src/models/mod.rs -src/models/owner_balance.rs -src/models/owner_balance_list.rs -src/models/owner_balances_response.rs -src/models/paginated_account_list.rs -src/models/paginated_account_list_v2.rs -src/models/paginated_signature_info_list.rs -src/models/root_index.rs -src/models/signature_info.rs -src/models/signature_info_list.rs -src/models/signature_info_list_with_error.rs -src/models/signature_info_with_error.rs -src/models/token_account.rs -src/models/token_account_balance.rs -src/models/token_account_list.rs -src/models/token_account_list_v2.rs -src/models/token_account_v2.rs -src/models/token_balance.rs -src/models/token_balance_list.rs -src/models/token_balance_list_v2.rs -src/models/token_data.rs -src/models/tree_context_info.rs diff --git a/sdk-libs/photon-api/.openapi-generator/VERSION b/sdk-libs/photon-api/.openapi-generator/VERSION deleted file mode 100644 index 18bb4182dd..0000000000 --- a/sdk-libs/photon-api/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -7.5.0 diff --git a/sdk-libs/photon-api/.travis.yml b/sdk-libs/photon-api/.travis.yml deleted file mode 100644 index 22761ba7ee..0000000000 --- a/sdk-libs/photon-api/.travis.yml +++ /dev/null @@ -1 +0,0 @@ -language: rust diff --git a/sdk-libs/photon-api/Cargo.toml b/sdk-libs/photon-api/Cargo.toml index 87841b3079..03e381ce11 100644 --- a/sdk-libs/photon-api/Cargo.toml +++ b/sdk-libs/photon-api/Cargo.toml @@ -1,18 +1,27 @@ [package] name = "photon-api" version = "0.54.0" -authors = ["OpenAPI Generator team and contributors"] description = "Solana indexer for general compression" license = "Apache-2.0" -edition = "2018" +edition = "2021" [dependencies] -serde = "^1.0" -serde_derive = "^1.0" -serde_with = "^3.12" -serde_json = "^1.0" -url = "^2.2" -uuid = { version = "^1.0", features = ["serde", "v4"] } -[dependencies.reqwest] -version = "^0.12" -features = ["json", "multipart"] +progenitor-client = "0.9" +futures = "0.3" +reqwest = { version = "0.12", default-features = false, features = ["json", "stream", "rustls-tls"] } +serde = { version = "1.0", features = ["derive"] } +serde_json = "1.0" +uuid = { version = "1.0", features = ["serde", "v4"] } +http = "1.0" +bytes = "1.0" +chrono = { version = "0.4", features = ["serde"] } +regress = "0.10" + +[build-dependencies] +progenitor = "0.9" +openapiv3 = "2.0" +serde_yaml = "0.9" +serde = { version = "1.0", features = ["derive"] } +serde_json = "1.0" +syn = "2.0" +prettyplease = "0.2" diff --git a/sdk-libs/photon-api/README.md b/sdk-libs/photon-api/README.md deleted file mode 100644 index b3429f125a..0000000000 --- a/sdk-libs/photon-api/README.md +++ /dev/null @@ -1,242 +0,0 @@ -# Rust API client for photon-api - -Solana indexer for general compression - - -## Overview - -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client. - -- API version: 0.50.0 -- Package version: 0.50.0 -- Generator version: 7.5.0 -- Build package: `org.openapitools.codegen.languages.RustClientCodegen` - -## Installation - -Put the package under your project folder in a directory named `photon-api` and add the following to `Cargo.toml` under `[dependencies]`: - -``` -photon-api = { path = "./photon-api" } -``` - -## Documentation for API Endpoints - -All URIs are relative to *https://devnet.helius-rpc.com?api-key=* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*DefaultApi* | [**get_batch_address_update_info_post**](docs/DefaultApi.md#get_batch_address_update_info_post) | **POST** /getBatchAddressUpdateInfo | -*DefaultApi* | [**get_compressed_account_balance_post**](docs/DefaultApi.md#get_compressed_account_balance_post) | **POST** /getCompressedAccountBalance | -*DefaultApi* | [**get_compressed_account_post**](docs/DefaultApi.md#get_compressed_account_post) | **POST** /getCompressedAccount | -*DefaultApi* | [**get_compressed_account_proof_post**](docs/DefaultApi.md#get_compressed_account_proof_post) | **POST** /getCompressedAccountProof | -*DefaultApi* | [**get_compressed_account_proof_v2_post**](docs/DefaultApi.md#get_compressed_account_proof_v2_post) | **POST** /getCompressedAccountProofV2 | -*DefaultApi* | [**get_compressed_account_v2_post**](docs/DefaultApi.md#get_compressed_account_v2_post) | **POST** /getCompressedAccountV2 | -*DefaultApi* | [**get_compressed_accounts_by_owner_post**](docs/DefaultApi.md#get_compressed_accounts_by_owner_post) | **POST** /getCompressedAccountsByOwner | -*DefaultApi* | [**get_compressed_accounts_by_owner_v2_post**](docs/DefaultApi.md#get_compressed_accounts_by_owner_v2_post) | **POST** /getCompressedAccountsByOwnerV2 | -*DefaultApi* | [**get_compressed_balance_by_owner_post**](docs/DefaultApi.md#get_compressed_balance_by_owner_post) | **POST** /getCompressedBalanceByOwner | -*DefaultApi* | [**get_compressed_mint_token_holders_post**](docs/DefaultApi.md#get_compressed_mint_token_holders_post) | **POST** /getCompressedMintTokenHolders | -*DefaultApi* | [**get_compressed_token_account_balance_post**](docs/DefaultApi.md#get_compressed_token_account_balance_post) | **POST** /getCompressedTokenAccountBalance | -*DefaultApi* | [**get_compressed_token_accounts_by_delegate_post**](docs/DefaultApi.md#get_compressed_token_accounts_by_delegate_post) | **POST** /getCompressedTokenAccountsByDelegate | -*DefaultApi* | [**get_compressed_token_accounts_by_delegate_v2_post**](docs/DefaultApi.md#get_compressed_token_accounts_by_delegate_v2_post) | **POST** /getCompressedTokenAccountsByDelegateV2 | -*DefaultApi* | [**get_compressed_token_accounts_by_owner_post**](docs/DefaultApi.md#get_compressed_token_accounts_by_owner_post) | **POST** /getCompressedTokenAccountsByOwner | -*DefaultApi* | [**get_compressed_token_accounts_by_owner_v2_post**](docs/DefaultApi.md#get_compressed_token_accounts_by_owner_v2_post) | **POST** /getCompressedTokenAccountsByOwnerV2 | -*DefaultApi* | [**get_compressed_token_balances_by_owner_post**](docs/DefaultApi.md#get_compressed_token_balances_by_owner_post) | **POST** /getCompressedTokenBalancesByOwner | -*DefaultApi* | [**get_compressed_token_balances_by_owner_v2_post**](docs/DefaultApi.md#get_compressed_token_balances_by_owner_v2_post) | **POST** /getCompressedTokenBalancesByOwnerV2 | -*DefaultApi* | [**get_compression_signatures_for_account_post**](docs/DefaultApi.md#get_compression_signatures_for_account_post) | **POST** /getCompressionSignaturesForAccount | -*DefaultApi* | [**get_compression_signatures_for_address_post**](docs/DefaultApi.md#get_compression_signatures_for_address_post) | **POST** /getCompressionSignaturesForAddress | -*DefaultApi* | [**get_compression_signatures_for_owner_post**](docs/DefaultApi.md#get_compression_signatures_for_owner_post) | **POST** /getCompressionSignaturesForOwner | -*DefaultApi* | [**get_compression_signatures_for_token_owner_post**](docs/DefaultApi.md#get_compression_signatures_for_token_owner_post) | **POST** /getCompressionSignaturesForTokenOwner | -*DefaultApi* | [**get_indexer_health_post**](docs/DefaultApi.md#get_indexer_health_post) | **POST** /getIndexerHealth | -*DefaultApi* | [**get_indexer_slot_post**](docs/DefaultApi.md#get_indexer_slot_post) | **POST** /getIndexerSlot | -*DefaultApi* | [**get_latest_compression_signatures_post**](docs/DefaultApi.md#get_latest_compression_signatures_post) | **POST** /getLatestCompressionSignatures | -*DefaultApi* | [**get_latest_non_voting_signatures_post**](docs/DefaultApi.md#get_latest_non_voting_signatures_post) | **POST** /getLatestNonVotingSignatures | -*DefaultApi* | [**get_multiple_compressed_account_proofs_post**](docs/DefaultApi.md#get_multiple_compressed_account_proofs_post) | **POST** /getMultipleCompressedAccountProofs | -*DefaultApi* | [**get_multiple_compressed_account_proofs_v2_post**](docs/DefaultApi.md#get_multiple_compressed_account_proofs_v2_post) | **POST** /getMultipleCompressedAccountProofsV2 | -*DefaultApi* | [**get_multiple_compressed_accounts_post**](docs/DefaultApi.md#get_multiple_compressed_accounts_post) | **POST** /getMultipleCompressedAccounts | -*DefaultApi* | [**get_multiple_compressed_accounts_v2_post**](docs/DefaultApi.md#get_multiple_compressed_accounts_v2_post) | **POST** /getMultipleCompressedAccountsV2 | -*DefaultApi* | [**get_multiple_new_address_proofs_post**](docs/DefaultApi.md#get_multiple_new_address_proofs_post) | **POST** /getMultipleNewAddressProofs | -*DefaultApi* | [**get_multiple_new_address_proofs_v2_post**](docs/DefaultApi.md#get_multiple_new_address_proofs_v2_post) | **POST** /getMultipleNewAddressProofsV2 | -*DefaultApi* | [**get_queue_elements_post**](docs/DefaultApi.md#get_queue_elements_post) | **POST** /getQueueElements | -*DefaultApi* | [**get_transaction_with_compression_info_post**](docs/DefaultApi.md#get_transaction_with_compression_info_post) | **POST** /getTransactionWithCompressionInfo | -*DefaultApi* | [**get_transaction_with_compression_info_v2_post**](docs/DefaultApi.md#get_transaction_with_compression_info_v2_post) | **POST** /getTransactionWithCompressionInfoV2 | -*DefaultApi* | [**get_validity_proof_post**](docs/DefaultApi.md#get_validity_proof_post) | **POST** /getValidityProof | -*DefaultApi* | [**get_validity_proof_v2_post**](docs/DefaultApi.md#get_validity_proof_v2_post) | **POST** /getValidityProofV2 | - - -## Documentation For Models - - - [Account](docs/Account.md) - - [AccountContext](docs/AccountContext.md) - - [AccountData](docs/AccountData.md) - - [AccountList](docs/AccountList.md) - - [AccountListV2](docs/AccountListV2.md) - - [AccountProofInputs](docs/AccountProofInputs.md) - - [AccountState](docs/AccountState.md) - - [AccountV2](docs/AccountV2.md) - - [AccountWithContext](docs/AccountWithContext.md) - - [AccountWithOptionalTokenData](docs/AccountWithOptionalTokenData.md) - - [AccountWithOptionalTokenDataV2](docs/AccountWithOptionalTokenDataV2.md) - - [AddressProofInputs](docs/AddressProofInputs.md) - - [AddressQueueIndex](docs/AddressQueueIndex.md) - - [AddressWithTree](docs/AddressWithTree.md) - - [ClosedAccountV2](docs/ClosedAccountV2.md) - - [ClosedAccountWithOptionalTokenDataV2](docs/ClosedAccountWithOptionalTokenDataV2.md) - - [CompressedProof](docs/CompressedProof.md) - - [CompressedProofWithContext](docs/CompressedProofWithContext.md) - - [CompressedProofWithContextV2](docs/CompressedProofWithContextV2.md) - - [CompressionInfoV2](docs/CompressionInfoV2.md) - - [Context](docs/Context.md) - - [DataSlice](docs/DataSlice.md) - - [FilterSelector](docs/FilterSelector.md) - - [GetBatchAddressUpdateInfoPost200Response](docs/GetBatchAddressUpdateInfoPost200Response.md) - - [GetBatchAddressUpdateInfoPost200ResponseError](docs/GetBatchAddressUpdateInfoPost200ResponseError.md) - - [GetBatchAddressUpdateInfoPost200ResponseResult](docs/GetBatchAddressUpdateInfoPost200ResponseResult.md) - - [GetBatchAddressUpdateInfoPost429Response](docs/GetBatchAddressUpdateInfoPost429Response.md) - - [GetBatchAddressUpdateInfoPostRequest](docs/GetBatchAddressUpdateInfoPostRequest.md) - - [GetBatchAddressUpdateInfoPostRequestParams](docs/GetBatchAddressUpdateInfoPostRequestParams.md) - - [GetCompressedAccountBalancePost200Response](docs/GetCompressedAccountBalancePost200Response.md) - - [GetCompressedAccountBalancePost200ResponseResult](docs/GetCompressedAccountBalancePost200ResponseResult.md) - - [GetCompressedAccountBalancePostRequest](docs/GetCompressedAccountBalancePostRequest.md) - - [GetCompressedAccountPost200Response](docs/GetCompressedAccountPost200Response.md) - - [GetCompressedAccountPost200ResponseResult](docs/GetCompressedAccountPost200ResponseResult.md) - - [GetCompressedAccountPostRequest](docs/GetCompressedAccountPostRequest.md) - - [GetCompressedAccountPostRequestParams](docs/GetCompressedAccountPostRequestParams.md) - - [GetCompressedAccountProofPost200Response](docs/GetCompressedAccountProofPost200Response.md) - - [GetCompressedAccountProofPost200ResponseResult](docs/GetCompressedAccountProofPost200ResponseResult.md) - - [GetCompressedAccountProofPostRequest](docs/GetCompressedAccountProofPostRequest.md) - - [GetCompressedAccountProofPostRequestParams](docs/GetCompressedAccountProofPostRequestParams.md) - - [GetCompressedAccountProofResponseValue](docs/GetCompressedAccountProofResponseValue.md) - - [GetCompressedAccountProofResponseValueV2](docs/GetCompressedAccountProofResponseValueV2.md) - - [GetCompressedAccountProofV2Post200Response](docs/GetCompressedAccountProofV2Post200Response.md) - - [GetCompressedAccountProofV2Post200ResponseResult](docs/GetCompressedAccountProofV2Post200ResponseResult.md) - - [GetCompressedAccountProofV2PostRequest](docs/GetCompressedAccountProofV2PostRequest.md) - - [GetCompressedAccountV2Post200Response](docs/GetCompressedAccountV2Post200Response.md) - - [GetCompressedAccountV2Post200ResponseResult](docs/GetCompressedAccountV2Post200ResponseResult.md) - - [GetCompressedAccountV2PostRequest](docs/GetCompressedAccountV2PostRequest.md) - - [GetCompressedAccountsByOwnerPost200Response](docs/GetCompressedAccountsByOwnerPost200Response.md) - - [GetCompressedAccountsByOwnerPost200ResponseResult](docs/GetCompressedAccountsByOwnerPost200ResponseResult.md) - - [GetCompressedAccountsByOwnerPostRequest](docs/GetCompressedAccountsByOwnerPostRequest.md) - - [GetCompressedAccountsByOwnerPostRequestParams](docs/GetCompressedAccountsByOwnerPostRequestParams.md) - - [GetCompressedAccountsByOwnerV2Post200Response](docs/GetCompressedAccountsByOwnerV2Post200Response.md) - - [GetCompressedAccountsByOwnerV2Post200ResponseResult](docs/GetCompressedAccountsByOwnerV2Post200ResponseResult.md) - - [GetCompressedAccountsByOwnerV2PostRequest](docs/GetCompressedAccountsByOwnerV2PostRequest.md) - - [GetCompressedBalanceByOwnerPostRequest](docs/GetCompressedBalanceByOwnerPostRequest.md) - - [GetCompressedBalanceByOwnerPostRequestParams](docs/GetCompressedBalanceByOwnerPostRequestParams.md) - - [GetCompressedMintTokenHoldersPost200Response](docs/GetCompressedMintTokenHoldersPost200Response.md) - - [GetCompressedMintTokenHoldersPost200ResponseResult](docs/GetCompressedMintTokenHoldersPost200ResponseResult.md) - - [GetCompressedMintTokenHoldersPostRequest](docs/GetCompressedMintTokenHoldersPostRequest.md) - - [GetCompressedMintTokenHoldersPostRequestParams](docs/GetCompressedMintTokenHoldersPostRequestParams.md) - - [GetCompressedTokenAccountBalancePost200Response](docs/GetCompressedTokenAccountBalancePost200Response.md) - - [GetCompressedTokenAccountBalancePost200ResponseResult](docs/GetCompressedTokenAccountBalancePost200ResponseResult.md) - - [GetCompressedTokenAccountBalancePostRequest](docs/GetCompressedTokenAccountBalancePostRequest.md) - - [GetCompressedTokenAccountsByDelegatePost200Response](docs/GetCompressedTokenAccountsByDelegatePost200Response.md) - - [GetCompressedTokenAccountsByDelegatePost200ResponseResult](docs/GetCompressedTokenAccountsByDelegatePost200ResponseResult.md) - - [GetCompressedTokenAccountsByDelegatePostRequest](docs/GetCompressedTokenAccountsByDelegatePostRequest.md) - - [GetCompressedTokenAccountsByDelegatePostRequestParams](docs/GetCompressedTokenAccountsByDelegatePostRequestParams.md) - - [GetCompressedTokenAccountsByDelegateV2Post200Response](docs/GetCompressedTokenAccountsByDelegateV2Post200Response.md) - - [GetCompressedTokenAccountsByDelegateV2Post200ResponseResult](docs/GetCompressedTokenAccountsByDelegateV2Post200ResponseResult.md) - - [GetCompressedTokenAccountsByDelegateV2PostRequest](docs/GetCompressedTokenAccountsByDelegateV2PostRequest.md) - - [GetCompressedTokenAccountsByOwnerPostRequest](docs/GetCompressedTokenAccountsByOwnerPostRequest.md) - - [GetCompressedTokenAccountsByOwnerPostRequestParams](docs/GetCompressedTokenAccountsByOwnerPostRequestParams.md) - - [GetCompressedTokenAccountsByOwnerV2PostRequest](docs/GetCompressedTokenAccountsByOwnerV2PostRequest.md) - - [GetCompressedTokenBalancesByOwnerPost200Response](docs/GetCompressedTokenBalancesByOwnerPost200Response.md) - - [GetCompressedTokenBalancesByOwnerPost200ResponseResult](docs/GetCompressedTokenBalancesByOwnerPost200ResponseResult.md) - - [GetCompressedTokenBalancesByOwnerPostRequest](docs/GetCompressedTokenBalancesByOwnerPostRequest.md) - - [GetCompressedTokenBalancesByOwnerV2Post200Response](docs/GetCompressedTokenBalancesByOwnerV2Post200Response.md) - - [GetCompressedTokenBalancesByOwnerV2Post200ResponseResult](docs/GetCompressedTokenBalancesByOwnerV2Post200ResponseResult.md) - - [GetCompressedTokenBalancesByOwnerV2PostRequest](docs/GetCompressedTokenBalancesByOwnerV2PostRequest.md) - - [GetCompressionSignaturesForAccountPost200Response](docs/GetCompressionSignaturesForAccountPost200Response.md) - - [GetCompressionSignaturesForAccountPost200ResponseResult](docs/GetCompressionSignaturesForAccountPost200ResponseResult.md) - - [GetCompressionSignaturesForAccountPostRequest](docs/GetCompressionSignaturesForAccountPostRequest.md) - - [GetCompressionSignaturesForAddressPost200Response](docs/GetCompressionSignaturesForAddressPost200Response.md) - - [GetCompressionSignaturesForAddressPost200ResponseResult](docs/GetCompressionSignaturesForAddressPost200ResponseResult.md) - - [GetCompressionSignaturesForAddressPostRequest](docs/GetCompressionSignaturesForAddressPostRequest.md) - - [GetCompressionSignaturesForAddressPostRequestParams](docs/GetCompressionSignaturesForAddressPostRequestParams.md) - - [GetCompressionSignaturesForOwnerPostRequest](docs/GetCompressionSignaturesForOwnerPostRequest.md) - - [GetCompressionSignaturesForOwnerPostRequestParams](docs/GetCompressionSignaturesForOwnerPostRequestParams.md) - - [GetCompressionSignaturesForTokenOwnerPostRequest](docs/GetCompressionSignaturesForTokenOwnerPostRequest.md) - - [GetIndexerHealthPost200Response](docs/GetIndexerHealthPost200Response.md) - - [GetIndexerHealthPostRequest](docs/GetIndexerHealthPostRequest.md) - - [GetIndexerSlotPost200Response](docs/GetIndexerSlotPost200Response.md) - - [GetIndexerSlotPostRequest](docs/GetIndexerSlotPostRequest.md) - - [GetLatestCompressionSignaturesPostRequest](docs/GetLatestCompressionSignaturesPostRequest.md) - - [GetLatestCompressionSignaturesPostRequestParams](docs/GetLatestCompressionSignaturesPostRequestParams.md) - - [GetLatestNonVotingSignaturesPost200Response](docs/GetLatestNonVotingSignaturesPost200Response.md) - - [GetLatestNonVotingSignaturesPost200ResponseResult](docs/GetLatestNonVotingSignaturesPost200ResponseResult.md) - - [GetLatestNonVotingSignaturesPostRequest](docs/GetLatestNonVotingSignaturesPostRequest.md) - - [GetMultipleCompressedAccountProofsPost200Response](docs/GetMultipleCompressedAccountProofsPost200Response.md) - - [GetMultipleCompressedAccountProofsPost200ResponseResult](docs/GetMultipleCompressedAccountProofsPost200ResponseResult.md) - - [GetMultipleCompressedAccountProofsPostRequest](docs/GetMultipleCompressedAccountProofsPostRequest.md) - - [GetMultipleCompressedAccountProofsV2Post200Response](docs/GetMultipleCompressedAccountProofsV2Post200Response.md) - - [GetMultipleCompressedAccountProofsV2Post200ResponseResult](docs/GetMultipleCompressedAccountProofsV2Post200ResponseResult.md) - - [GetMultipleCompressedAccountProofsV2PostRequest](docs/GetMultipleCompressedAccountProofsV2PostRequest.md) - - [GetMultipleCompressedAccountsPost200Response](docs/GetMultipleCompressedAccountsPost200Response.md) - - [GetMultipleCompressedAccountsPost200ResponseResult](docs/GetMultipleCompressedAccountsPost200ResponseResult.md) - - [GetMultipleCompressedAccountsPostRequest](docs/GetMultipleCompressedAccountsPostRequest.md) - - [GetMultipleCompressedAccountsPostRequestParams](docs/GetMultipleCompressedAccountsPostRequestParams.md) - - [GetMultipleCompressedAccountsV2Post200Response](docs/GetMultipleCompressedAccountsV2Post200Response.md) - - [GetMultipleCompressedAccountsV2Post200ResponseResult](docs/GetMultipleCompressedAccountsV2Post200ResponseResult.md) - - [GetMultipleCompressedAccountsV2PostRequest](docs/GetMultipleCompressedAccountsV2PostRequest.md) - - [GetMultipleCompressedAccountsV2PostRequestParams](docs/GetMultipleCompressedAccountsV2PostRequestParams.md) - - [GetMultipleNewAddressProofsPost200Response](docs/GetMultipleNewAddressProofsPost200Response.md) - - [GetMultipleNewAddressProofsPost200ResponseResult](docs/GetMultipleNewAddressProofsPost200ResponseResult.md) - - [GetMultipleNewAddressProofsPostRequest](docs/GetMultipleNewAddressProofsPostRequest.md) - - [GetMultipleNewAddressProofsV2PostRequest](docs/GetMultipleNewAddressProofsV2PostRequest.md) - - [GetQueueElementsPost200Response](docs/GetQueueElementsPost200Response.md) - - [GetQueueElementsPost200ResponseResult](docs/GetQueueElementsPost200ResponseResult.md) - - [GetQueueElementsPostRequest](docs/GetQueueElementsPostRequest.md) - - [GetQueueElementsPostRequestParams](docs/GetQueueElementsPostRequestParams.md) - - [GetQueueElementsResponseValue](docs/GetQueueElementsResponseValue.md) - - [GetTransactionWithCompressionInfoPost200Response](docs/GetTransactionWithCompressionInfoPost200Response.md) - - [GetTransactionWithCompressionInfoPost200ResponseResult](docs/GetTransactionWithCompressionInfoPost200ResponseResult.md) - - [GetTransactionWithCompressionInfoPost200ResponseResultCompressionInfo](docs/GetTransactionWithCompressionInfoPost200ResponseResultCompressionInfo.md) - - [GetTransactionWithCompressionInfoPostRequest](docs/GetTransactionWithCompressionInfoPostRequest.md) - - [GetTransactionWithCompressionInfoPostRequestParams](docs/GetTransactionWithCompressionInfoPostRequestParams.md) - - [GetTransactionWithCompressionInfoV2Post200Response](docs/GetTransactionWithCompressionInfoV2Post200Response.md) - - [GetTransactionWithCompressionInfoV2Post200ResponseResult](docs/GetTransactionWithCompressionInfoV2Post200ResponseResult.md) - - [GetTransactionWithCompressionInfoV2Post200ResponseResultCompressionInfo](docs/GetTransactionWithCompressionInfoV2Post200ResponseResultCompressionInfo.md) - - [GetTransactionWithCompressionInfoV2PostRequest](docs/GetTransactionWithCompressionInfoV2PostRequest.md) - - [GetValidityProofPost200Response](docs/GetValidityProofPost200Response.md) - - [GetValidityProofPost200ResponseResult](docs/GetValidityProofPost200ResponseResult.md) - - [GetValidityProofPostRequest](docs/GetValidityProofPostRequest.md) - - [GetValidityProofPostRequestParams](docs/GetValidityProofPostRequestParams.md) - - [GetValidityProofV2Post200Response](docs/GetValidityProofV2Post200Response.md) - - [GetValidityProofV2Post200ResponseResult](docs/GetValidityProofV2Post200ResponseResult.md) - - [GetValidityProofV2PostRequest](docs/GetValidityProofV2PostRequest.md) - - [Memcmp](docs/Memcmp.md) - - [MerkleContextV2](docs/MerkleContextV2.md) - - [MerkleContextWithNewAddressProof](docs/MerkleContextWithNewAddressProof.md) - - [OwnerBalance](docs/OwnerBalance.md) - - [OwnerBalanceList](docs/OwnerBalanceList.md) - - [OwnerBalancesResponse](docs/OwnerBalancesResponse.md) - - [PaginatedAccountList](docs/PaginatedAccountList.md) - - [PaginatedAccountListV2](docs/PaginatedAccountListV2.md) - - [PaginatedSignatureInfoList](docs/PaginatedSignatureInfoList.md) - - [RootIndex](docs/RootIndex.md) - - [SignatureInfo](docs/SignatureInfo.md) - - [SignatureInfoList](docs/SignatureInfoList.md) - - [SignatureInfoListWithError](docs/SignatureInfoListWithError.md) - - [SignatureInfoWithError](docs/SignatureInfoWithError.md) - - [TokenAccount](docs/TokenAccount.md) - - [TokenAccountBalance](docs/TokenAccountBalance.md) - - [TokenAccountList](docs/TokenAccountList.md) - - [TokenAccountListV2](docs/TokenAccountListV2.md) - - [TokenAccountV2](docs/TokenAccountV2.md) - - [TokenBalance](docs/TokenBalance.md) - - [TokenBalanceList](docs/TokenBalanceList.md) - - [TokenBalanceListV2](docs/TokenBalanceListV2.md) - - [TokenData](docs/TokenData.md) - - [TreeContextInfo](docs/TreeContextInfo.md) - - -To get access to the crate's generated documentation, use: - -``` -cargo doc --open -``` - -## Author - - - diff --git a/sdk-libs/photon-api/build.rs b/sdk-libs/photon-api/build.rs new file mode 100644 index 0000000000..6483b64c14 --- /dev/null +++ b/sdk-libs/photon-api/build.rs @@ -0,0 +1,93 @@ +use std::{env, fs, path::PathBuf}; + +fn main() { + let spec_path = PathBuf::from("../../external/photon/src/openapi/specs/api.yaml"); + + // Re-run if spec changes + println!("cargo::rerun-if-changed={}", spec_path.display()); + + // Read and parse the OpenAPI spec + let spec_content = fs::read_to_string(&spec_path) + .expect("Failed to read OpenAPI spec"); + + let mut spec: serde_yaml::Value = serde_yaml::from_str(&spec_content) + .expect("Failed to parse OpenAPI spec"); + + // Add operationIds to each path's operation + if let Some(paths) = spec.get_mut("paths").and_then(|p| p.as_mapping_mut()) { + for (path, methods) in paths.iter_mut() { + let path_str = path.as_str().unwrap_or(""); + // Convert path like "/getCompressedAccount" to operation id + let base_id = path_str.trim_start_matches('/'); + + if let Some(methods_map) = methods.as_mapping_mut() { + for (method, operation) in methods_map.iter_mut() { + // Skip summary field + if method.as_str() == Some("summary") { + continue; + } + + if let Some(op_map) = operation.as_mapping_mut() { + let method_str = method.as_str().unwrap_or("get"); + // Create operation ID from path + let operation_id = format!("{}_{}", method_str, to_snake_case(base_id)); + + op_map.insert( + serde_yaml::Value::String("operationId".to_string()), + serde_yaml::Value::String(operation_id), + ); + } + } + } + } + } + + // Write modified spec to OUT_DIR + let out_dir = env::var("OUT_DIR").expect("OUT_DIR not set"); + let out_path = PathBuf::from(&out_dir).join("api.yaml"); + let modified_spec = serde_yaml::to_string(&spec) + .expect("Failed to serialize modified spec"); + fs::write(&out_path, &modified_spec) + .expect("Failed to write modified spec"); + + // Parse the modified spec for progenitor + let spec: openapiv3::OpenAPI = serde_yaml::from_str(&modified_spec) + .expect("Failed to parse modified spec as OpenAPI"); + + // Generate the client code using progenitor + let mut settings = progenitor::GenerationSettings::default(); + settings.with_interface(progenitor::InterfaceStyle::Builder); + + let mut generator = progenitor::Generator::new(&settings); + let tokens = generator.generate_tokens(&spec) + .expect("Failed to generate client code"); + + // Format the generated code + let ast: syn::File = syn::parse2(tokens) + .expect("Failed to parse generated code"); + let content = prettyplease::unparse(&ast); + + let dest_path = PathBuf::from(&out_dir).join("codegen.rs"); + fs::write(&dest_path, content) + .expect("Failed to write generated code"); +} + +fn to_snake_case(s: &str) -> String { + let mut result = String::new(); + let mut prev_is_lower = false; + + for c in s.chars() { + if c.is_uppercase() { + if prev_is_lower { + result.push('_'); + } + result.extend(c.to_lowercase()); + prev_is_lower = false; + } else { + result.push(c); + prev_is_lower = c.is_lowercase(); + } + } + + result +} diff --git a/sdk-libs/photon-api/docs/Account.md b/sdk-libs/photon-api/docs/Account.md deleted file mode 100644 index 124dfa7154..0000000000 --- a/sdk-libs/photon-api/docs/Account.md +++ /dev/null @@ -1,19 +0,0 @@ -# Account - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**address** | Option<**String**> | A Solana public key represented as a base58 string. | [optional][default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] -**data** | Option<[**models::AccountData**](AccountData.md)> | | [optional] -**hash** | **String** | A 32-byte hash represented as a base58 string. | -**lamports** | **i32** | | [default to 100] -**leaf_index** | **i32** | | [default to 100] -**owner** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] -**seq** | Option<**i32**> | | [optional][default to 100] -**slot_created** | **i32** | | [default to 100] -**tree** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/AccountContext.md b/sdk-libs/photon-api/docs/AccountContext.md deleted file mode 100644 index 4b53bca423..0000000000 --- a/sdk-libs/photon-api/docs/AccountContext.md +++ /dev/null @@ -1,18 +0,0 @@ -# AccountContext - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**in_output_queue** | **bool** | | -**nullified_in_tree** | **bool** | | -**nullifier** | Option<**String**> | A 32-byte hash represented as a base58 string. | [optional] -**nullifier_queue_index** | Option<**i32**> | | [optional][default to 100] -**queue** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] -**spent** | **bool** | | -**tree_type** | **i32** | | -**tx_hash** | Option<**String**> | A 32-byte hash represented as a base58 string. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/AccountData.md b/sdk-libs/photon-api/docs/AccountData.md deleted file mode 100644 index 627206a84b..0000000000 --- a/sdk-libs/photon-api/docs/AccountData.md +++ /dev/null @@ -1,13 +0,0 @@ -# AccountData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **String** | A base 64 encoded string. | [default to SGVsbG8sIFdvcmxkIQ==] -**data_hash** | **String** | A 32-byte hash represented as a base58 string. | -**discriminator** | **i32** | | [default to 100] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/AccountList.md b/sdk-libs/photon-api/docs/AccountList.md deleted file mode 100644 index d109bb869f..0000000000 --- a/sdk-libs/photon-api/docs/AccountList.md +++ /dev/null @@ -1,11 +0,0 @@ -# AccountList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**Vec**](Account.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/AccountListV2.md b/sdk-libs/photon-api/docs/AccountListV2.md deleted file mode 100644 index 623d84668c..0000000000 --- a/sdk-libs/photon-api/docs/AccountListV2.md +++ /dev/null @@ -1,11 +0,0 @@ -# AccountListV2 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**Vec**](AccountV2.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/AccountProofInputs.md b/sdk-libs/photon-api/docs/AccountProofInputs.md deleted file mode 100644 index 4ae39e4246..0000000000 --- a/sdk-libs/photon-api/docs/AccountProofInputs.md +++ /dev/null @@ -1,15 +0,0 @@ -# AccountProofInputs - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hash** | **String** | | -**leaf_index** | **i32** | | -**merkle_context** | [**models::MerkleContextV2**](MerkleContextV2.md) | | -**root** | **String** | | -**root_index** | [**models::RootIndex**](RootIndex.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/AccountState.md b/sdk-libs/photon-api/docs/AccountState.md deleted file mode 100644 index d678e865ef..0000000000 --- a/sdk-libs/photon-api/docs/AccountState.md +++ /dev/null @@ -1,13 +0,0 @@ -# AccountState - -## Enum Variants - -| Name | Value | -|---- | -----| -| Initialized | initialized | -| Frozen | frozen | - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/AccountV2.md b/sdk-libs/photon-api/docs/AccountV2.md deleted file mode 100644 index 1168d41d48..0000000000 --- a/sdk-libs/photon-api/docs/AccountV2.md +++ /dev/null @@ -1,20 +0,0 @@ -# AccountV2 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**address** | Option<**String**> | A Solana public key represented as a base58 string. | [optional][default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] -**data** | Option<[**models::AccountData**](AccountData.md)> | | [optional] -**hash** | **String** | A 32-byte hash represented as a base58 string. | -**lamports** | **i32** | | [default to 100] -**leaf_index** | **i32** | | [default to 100] -**merkle_context** | [**models::MerkleContextV2**](MerkleContextV2.md) | | -**owner** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] -**prove_by_index** | **bool** | | -**seq** | Option<**i32**> | | [optional][default to 100] -**slot_created** | **i32** | | [default to 100] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/AccountWithContext.md b/sdk-libs/photon-api/docs/AccountWithContext.md deleted file mode 100644 index 0880718a72..0000000000 --- a/sdk-libs/photon-api/docs/AccountWithContext.md +++ /dev/null @@ -1,12 +0,0 @@ -# AccountWithContext - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**account** | [**models::Account**](Account.md) | | -**context** | [**models::AccountContext**](AccountContext.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/AccountWithOptionalTokenData.md b/sdk-libs/photon-api/docs/AccountWithOptionalTokenData.md deleted file mode 100644 index 15b462030b..0000000000 --- a/sdk-libs/photon-api/docs/AccountWithOptionalTokenData.md +++ /dev/null @@ -1,12 +0,0 @@ -# AccountWithOptionalTokenData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**account** | [**models::Account**](Account.md) | | -**optional_token_data** | Option<[**models::TokenData**](TokenData.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/AccountWithOptionalTokenDataV2.md b/sdk-libs/photon-api/docs/AccountWithOptionalTokenDataV2.md deleted file mode 100644 index 928e39800c..0000000000 --- a/sdk-libs/photon-api/docs/AccountWithOptionalTokenDataV2.md +++ /dev/null @@ -1,12 +0,0 @@ -# AccountWithOptionalTokenDataV2 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**account** | [**models::AccountV2**](AccountV2.md) | | -**optional_token_data** | Option<[**models::TokenData**](TokenData.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/AddressProofInputs.md b/sdk-libs/photon-api/docs/AddressProofInputs.md deleted file mode 100644 index e6a51ba7f9..0000000000 --- a/sdk-libs/photon-api/docs/AddressProofInputs.md +++ /dev/null @@ -1,14 +0,0 @@ -# AddressProofInputs - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**address** | **String** | | -**merkle_context** | [**models::MerkleContextV2**](MerkleContextV2.md) | | -**root** | **String** | | -**root_index** | **i32** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/AddressQueueIndex.md b/sdk-libs/photon-api/docs/AddressQueueIndex.md deleted file mode 100644 index 350585af16..0000000000 --- a/sdk-libs/photon-api/docs/AddressQueueIndex.md +++ /dev/null @@ -1,12 +0,0 @@ -# AddressQueueIndex - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**address** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] -**queue_index** | **i32** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/AddressWithTree.md b/sdk-libs/photon-api/docs/AddressWithTree.md deleted file mode 100644 index 0b309016ff..0000000000 --- a/sdk-libs/photon-api/docs/AddressWithTree.md +++ /dev/null @@ -1,12 +0,0 @@ -# AddressWithTree - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**address** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] -**tree** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/ClosedAccountV2.md b/sdk-libs/photon-api/docs/ClosedAccountV2.md deleted file mode 100644 index cd30e9869d..0000000000 --- a/sdk-libs/photon-api/docs/ClosedAccountV2.md +++ /dev/null @@ -1,13 +0,0 @@ -# ClosedAccountV2 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**account** | [**models::AccountV2**](AccountV2.md) | | -**nullifier** | **String** | A 32-byte hash represented as a base58 string. | -**tx_hash** | **String** | A 32-byte hash represented as a base58 string. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/ClosedAccountWithOptionalTokenDataV2.md b/sdk-libs/photon-api/docs/ClosedAccountWithOptionalTokenDataV2.md deleted file mode 100644 index 29fda6dc52..0000000000 --- a/sdk-libs/photon-api/docs/ClosedAccountWithOptionalTokenDataV2.md +++ /dev/null @@ -1,12 +0,0 @@ -# ClosedAccountWithOptionalTokenDataV2 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**account** | [**models::ClosedAccountV2**](ClosedAccountV2.md) | | -**optional_token_data** | Option<[**models::TokenData**](TokenData.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/CompressedProof.md b/sdk-libs/photon-api/docs/CompressedProof.md deleted file mode 100644 index a5c5a1c810..0000000000 --- a/sdk-libs/photon-api/docs/CompressedProof.md +++ /dev/null @@ -1,13 +0,0 @@ -# CompressedProof - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**a** | [**std::path::PathBuf**](std::path::PathBuf.md) | | -**b** | [**std::path::PathBuf**](std::path::PathBuf.md) | | -**c** | [**std::path::PathBuf**](std::path::PathBuf.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/CompressedProofWithContext.md b/sdk-libs/photon-api/docs/CompressedProofWithContext.md deleted file mode 100644 index f04b7f77d5..0000000000 --- a/sdk-libs/photon-api/docs/CompressedProofWithContext.md +++ /dev/null @@ -1,16 +0,0 @@ -# CompressedProofWithContext - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**compressed_proof** | [**models::CompressedProof**](CompressedProof.md) | | -**leaf_indices** | **Vec** | | -**leaves** | **Vec** | | -**merkle_trees** | **Vec** | | -**root_indices** | **Vec** | | -**roots** | **Vec** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/CompressedProofWithContextV2.md b/sdk-libs/photon-api/docs/CompressedProofWithContextV2.md deleted file mode 100644 index 67ffde9cce..0000000000 --- a/sdk-libs/photon-api/docs/CompressedProofWithContextV2.md +++ /dev/null @@ -1,13 +0,0 @@ -# CompressedProofWithContextV2 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**accounts** | [**Vec**](AccountProofInputs.md) | | -**addresses** | [**Vec**](AddressProofInputs.md) | | -**compressed_proof** | Option<[**models::CompressedProof**](CompressedProof.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/CompressionInfoV2.md b/sdk-libs/photon-api/docs/CompressionInfoV2.md deleted file mode 100644 index 26fe77d09a..0000000000 --- a/sdk-libs/photon-api/docs/CompressionInfoV2.md +++ /dev/null @@ -1,12 +0,0 @@ -# CompressionInfoV2 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**closed_accounts** | [**Vec**](ClosedAccountWithOptionalTokenDataV2.md) | | -**opened_accounts** | [**Vec**](AccountWithOptionalTokenDataV2.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/Context.md b/sdk-libs/photon-api/docs/Context.md deleted file mode 100644 index cba933ca87..0000000000 --- a/sdk-libs/photon-api/docs/Context.md +++ /dev/null @@ -1,11 +0,0 @@ -# Context - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**slot** | **i32** | | [default to 100] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/DataSlice.md b/sdk-libs/photon-api/docs/DataSlice.md deleted file mode 100644 index 143e06f303..0000000000 --- a/sdk-libs/photon-api/docs/DataSlice.md +++ /dev/null @@ -1,12 +0,0 @@ -# DataSlice - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**length** | **u32** | | -**offset** | **u32** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/DefaultApi.md b/sdk-libs/photon-api/docs/DefaultApi.md deleted file mode 100644 index b42a3a6cb8..0000000000 --- a/sdk-libs/photon-api/docs/DefaultApi.md +++ /dev/null @@ -1,1052 +0,0 @@ -# \DefaultApi - -All URIs are relative to *https://devnet.helius-rpc.com?api-key=* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_batch_address_update_info_post**](DefaultApi.md#get_batch_address_update_info_post) | **POST** /getBatchAddressUpdateInfo | -[**get_compressed_account_balance_post**](DefaultApi.md#get_compressed_account_balance_post) | **POST** /getCompressedAccountBalance | -[**get_compressed_account_post**](DefaultApi.md#get_compressed_account_post) | **POST** /getCompressedAccount | -[**get_compressed_account_proof_post**](DefaultApi.md#get_compressed_account_proof_post) | **POST** /getCompressedAccountProof | -[**get_compressed_account_proof_v2_post**](DefaultApi.md#get_compressed_account_proof_v2_post) | **POST** /getCompressedAccountProofV2 | -[**get_compressed_account_v2_post**](DefaultApi.md#get_compressed_account_v2_post) | **POST** /getCompressedAccountV2 | -[**get_compressed_accounts_by_owner_post**](DefaultApi.md#get_compressed_accounts_by_owner_post) | **POST** /getCompressedAccountsByOwner | -[**get_compressed_accounts_by_owner_v2_post**](DefaultApi.md#get_compressed_accounts_by_owner_v2_post) | **POST** /getCompressedAccountsByOwnerV2 | -[**get_compressed_balance_by_owner_post**](DefaultApi.md#get_compressed_balance_by_owner_post) | **POST** /getCompressedBalanceByOwner | -[**get_compressed_mint_token_holders_post**](DefaultApi.md#get_compressed_mint_token_holders_post) | **POST** /getCompressedMintTokenHolders | -[**get_compressed_token_account_balance_post**](DefaultApi.md#get_compressed_token_account_balance_post) | **POST** /getCompressedTokenAccountBalance | -[**get_compressed_token_accounts_by_delegate_post**](DefaultApi.md#get_compressed_token_accounts_by_delegate_post) | **POST** /getCompressedTokenAccountsByDelegate | -[**get_compressed_token_accounts_by_delegate_v2_post**](DefaultApi.md#get_compressed_token_accounts_by_delegate_v2_post) | **POST** /getCompressedTokenAccountsByDelegateV2 | -[**get_compressed_token_accounts_by_owner_post**](DefaultApi.md#get_compressed_token_accounts_by_owner_post) | **POST** /getCompressedTokenAccountsByOwner | -[**get_compressed_token_accounts_by_owner_v2_post**](DefaultApi.md#get_compressed_token_accounts_by_owner_v2_post) | **POST** /getCompressedTokenAccountsByOwnerV2 | -[**get_compressed_token_balances_by_owner_post**](DefaultApi.md#get_compressed_token_balances_by_owner_post) | **POST** /getCompressedTokenBalancesByOwner | -[**get_compressed_token_balances_by_owner_v2_post**](DefaultApi.md#get_compressed_token_balances_by_owner_v2_post) | **POST** /getCompressedTokenBalancesByOwnerV2 | -[**get_compression_signatures_for_account_post**](DefaultApi.md#get_compression_signatures_for_account_post) | **POST** /getCompressionSignaturesForAccount | -[**get_compression_signatures_for_address_post**](DefaultApi.md#get_compression_signatures_for_address_post) | **POST** /getCompressionSignaturesForAddress | -[**get_compression_signatures_for_owner_post**](DefaultApi.md#get_compression_signatures_for_owner_post) | **POST** /getCompressionSignaturesForOwner | -[**get_compression_signatures_for_token_owner_post**](DefaultApi.md#get_compression_signatures_for_token_owner_post) | **POST** /getCompressionSignaturesForTokenOwner | -[**get_indexer_health_post**](DefaultApi.md#get_indexer_health_post) | **POST** /getIndexerHealth | -[**get_indexer_slot_post**](DefaultApi.md#get_indexer_slot_post) | **POST** /getIndexerSlot | -[**get_latest_compression_signatures_post**](DefaultApi.md#get_latest_compression_signatures_post) | **POST** /getLatestCompressionSignatures | -[**get_latest_non_voting_signatures_post**](DefaultApi.md#get_latest_non_voting_signatures_post) | **POST** /getLatestNonVotingSignatures | -[**get_multiple_compressed_account_proofs_post**](DefaultApi.md#get_multiple_compressed_account_proofs_post) | **POST** /getMultipleCompressedAccountProofs | -[**get_multiple_compressed_account_proofs_v2_post**](DefaultApi.md#get_multiple_compressed_account_proofs_v2_post) | **POST** /getMultipleCompressedAccountProofsV2 | -[**get_multiple_compressed_accounts_post**](DefaultApi.md#get_multiple_compressed_accounts_post) | **POST** /getMultipleCompressedAccounts | -[**get_multiple_compressed_accounts_v2_post**](DefaultApi.md#get_multiple_compressed_accounts_v2_post) | **POST** /getMultipleCompressedAccountsV2 | -[**get_multiple_new_address_proofs_post**](DefaultApi.md#get_multiple_new_address_proofs_post) | **POST** /getMultipleNewAddressProofs | -[**get_multiple_new_address_proofs_v2_post**](DefaultApi.md#get_multiple_new_address_proofs_v2_post) | **POST** /getMultipleNewAddressProofsV2 | -[**get_queue_elements_post**](DefaultApi.md#get_queue_elements_post) | **POST** /getQueueElements | -[**get_transaction_with_compression_info_post**](DefaultApi.md#get_transaction_with_compression_info_post) | **POST** /getTransactionWithCompressionInfo | -[**get_transaction_with_compression_info_v2_post**](DefaultApi.md#get_transaction_with_compression_info_v2_post) | **POST** /getTransactionWithCompressionInfoV2 | -[**get_validity_proof_post**](DefaultApi.md#get_validity_proof_post) | **POST** /getValidityProof | -[**get_validity_proof_v2_post**](DefaultApi.md#get_validity_proof_v2_post) | **POST** /getValidityProofV2 | - - - -## get_batch_address_update_info_post - -> models::GetBatchAddressUpdateInfoPost200Response get_batch_address_update_info_post(get_batch_address_update_info_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_batch_address_update_info_post_request** | [**GetBatchAddressUpdateInfoPostRequest**](GetBatchAddressUpdateInfoPostRequest.md) | | [required] | - -### Return type - -[**models::GetBatchAddressUpdateInfoPost200Response**](_getBatchAddressUpdateInfo_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_compressed_account_balance_post - -> models::GetCompressedAccountBalancePost200Response get_compressed_account_balance_post(get_compressed_account_balance_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_compressed_account_balance_post_request** | [**GetCompressedAccountBalancePostRequest**](GetCompressedAccountBalancePostRequest.md) | | [required] | - -### Return type - -[**models::GetCompressedAccountBalancePost200Response**](_getCompressedAccountBalance_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_compressed_account_post - -> models::GetCompressedAccountPost200Response get_compressed_account_post(get_compressed_account_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_compressed_account_post_request** | [**GetCompressedAccountPostRequest**](GetCompressedAccountPostRequest.md) | | [required] | - -### Return type - -[**models::GetCompressedAccountPost200Response**](_getCompressedAccount_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_compressed_account_proof_post - -> models::GetCompressedAccountProofPost200Response get_compressed_account_proof_post(get_compressed_account_proof_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_compressed_account_proof_post_request** | [**GetCompressedAccountProofPostRequest**](GetCompressedAccountProofPostRequest.md) | | [required] | - -### Return type - -[**models::GetCompressedAccountProofPost200Response**](_getCompressedAccountProof_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_compressed_account_proof_v2_post - -> models::GetCompressedAccountProofV2Post200Response get_compressed_account_proof_v2_post(get_compressed_account_proof_v2_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_compressed_account_proof_v2_post_request** | [**GetCompressedAccountProofV2PostRequest**](GetCompressedAccountProofV2PostRequest.md) | | [required] | - -### Return type - -[**models::GetCompressedAccountProofV2Post200Response**](_getCompressedAccountProofV2_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_compressed_account_v2_post - -> models::GetCompressedAccountV2Post200Response get_compressed_account_v2_post(get_compressed_account_v2_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_compressed_account_v2_post_request** | [**GetCompressedAccountV2PostRequest**](GetCompressedAccountV2PostRequest.md) | | [required] | - -### Return type - -[**models::GetCompressedAccountV2Post200Response**](_getCompressedAccountV2_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_compressed_accounts_by_owner_post - -> models::GetCompressedAccountsByOwnerPost200Response get_compressed_accounts_by_owner_post(get_compressed_accounts_by_owner_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_compressed_accounts_by_owner_post_request** | [**GetCompressedAccountsByOwnerPostRequest**](GetCompressedAccountsByOwnerPostRequest.md) | | [required] | - -### Return type - -[**models::GetCompressedAccountsByOwnerPost200Response**](_getCompressedAccountsByOwner_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_compressed_accounts_by_owner_v2_post - -> models::GetCompressedAccountsByOwnerV2Post200Response get_compressed_accounts_by_owner_v2_post(get_compressed_accounts_by_owner_v2_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_compressed_accounts_by_owner_v2_post_request** | [**GetCompressedAccountsByOwnerV2PostRequest**](GetCompressedAccountsByOwnerV2PostRequest.md) | | [required] | - -### Return type - -[**models::GetCompressedAccountsByOwnerV2Post200Response**](_getCompressedAccountsByOwnerV2_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_compressed_balance_by_owner_post - -> models::GetCompressedAccountBalancePost200Response get_compressed_balance_by_owner_post(get_compressed_balance_by_owner_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_compressed_balance_by_owner_post_request** | [**GetCompressedBalanceByOwnerPostRequest**](GetCompressedBalanceByOwnerPostRequest.md) | | [required] | - -### Return type - -[**models::GetCompressedAccountBalancePost200Response**](_getCompressedAccountBalance_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_compressed_mint_token_holders_post - -> models::GetCompressedMintTokenHoldersPost200Response get_compressed_mint_token_holders_post(get_compressed_mint_token_holders_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_compressed_mint_token_holders_post_request** | [**GetCompressedMintTokenHoldersPostRequest**](GetCompressedMintTokenHoldersPostRequest.md) | | [required] | - -### Return type - -[**models::GetCompressedMintTokenHoldersPost200Response**](_getCompressedMintTokenHolders_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_compressed_token_account_balance_post - -> models::GetCompressedTokenAccountBalancePost200Response get_compressed_token_account_balance_post(get_compressed_token_account_balance_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_compressed_token_account_balance_post_request** | [**GetCompressedTokenAccountBalancePostRequest**](GetCompressedTokenAccountBalancePostRequest.md) | | [required] | - -### Return type - -[**models::GetCompressedTokenAccountBalancePost200Response**](_getCompressedTokenAccountBalance_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_compressed_token_accounts_by_delegate_post - -> models::GetCompressedTokenAccountsByDelegatePost200Response get_compressed_token_accounts_by_delegate_post(get_compressed_token_accounts_by_delegate_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_compressed_token_accounts_by_delegate_post_request** | [**GetCompressedTokenAccountsByDelegatePostRequest**](GetCompressedTokenAccountsByDelegatePostRequest.md) | | [required] | - -### Return type - -[**models::GetCompressedTokenAccountsByDelegatePost200Response**](_getCompressedTokenAccountsByDelegate_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_compressed_token_accounts_by_delegate_v2_post - -> models::GetCompressedTokenAccountsByDelegateV2Post200Response get_compressed_token_accounts_by_delegate_v2_post(get_compressed_token_accounts_by_delegate_v2_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_compressed_token_accounts_by_delegate_v2_post_request** | [**GetCompressedTokenAccountsByDelegateV2PostRequest**](GetCompressedTokenAccountsByDelegateV2PostRequest.md) | | [required] | - -### Return type - -[**models::GetCompressedTokenAccountsByDelegateV2Post200Response**](_getCompressedTokenAccountsByDelegateV2_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_compressed_token_accounts_by_owner_post - -> models::GetCompressedTokenAccountsByDelegatePost200Response get_compressed_token_accounts_by_owner_post(get_compressed_token_accounts_by_owner_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_compressed_token_accounts_by_owner_post_request** | [**GetCompressedTokenAccountsByOwnerPostRequest**](GetCompressedTokenAccountsByOwnerPostRequest.md) | | [required] | - -### Return type - -[**models::GetCompressedTokenAccountsByDelegatePost200Response**](_getCompressedTokenAccountsByDelegate_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_compressed_token_accounts_by_owner_v2_post - -> models::GetCompressedTokenAccountsByDelegateV2Post200Response get_compressed_token_accounts_by_owner_v2_post(get_compressed_token_accounts_by_owner_v2_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_compressed_token_accounts_by_owner_v2_post_request** | [**GetCompressedTokenAccountsByOwnerV2PostRequest**](GetCompressedTokenAccountsByOwnerV2PostRequest.md) | | [required] | - -### Return type - -[**models::GetCompressedTokenAccountsByDelegateV2Post200Response**](_getCompressedTokenAccountsByDelegateV2_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_compressed_token_balances_by_owner_post - -> models::GetCompressedTokenBalancesByOwnerPost200Response get_compressed_token_balances_by_owner_post(get_compressed_token_balances_by_owner_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_compressed_token_balances_by_owner_post_request** | [**GetCompressedTokenBalancesByOwnerPostRequest**](GetCompressedTokenBalancesByOwnerPostRequest.md) | | [required] | - -### Return type - -[**models::GetCompressedTokenBalancesByOwnerPost200Response**](_getCompressedTokenBalancesByOwner_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_compressed_token_balances_by_owner_v2_post - -> models::GetCompressedTokenBalancesByOwnerV2Post200Response get_compressed_token_balances_by_owner_v2_post(get_compressed_token_balances_by_owner_v2_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_compressed_token_balances_by_owner_v2_post_request** | [**GetCompressedTokenBalancesByOwnerV2PostRequest**](GetCompressedTokenBalancesByOwnerV2PostRequest.md) | | [required] | - -### Return type - -[**models::GetCompressedTokenBalancesByOwnerV2Post200Response**](_getCompressedTokenBalancesByOwnerV2_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_compression_signatures_for_account_post - -> models::GetCompressionSignaturesForAccountPost200Response get_compression_signatures_for_account_post(get_compression_signatures_for_account_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_compression_signatures_for_account_post_request** | [**GetCompressionSignaturesForAccountPostRequest**](GetCompressionSignaturesForAccountPostRequest.md) | | [required] | - -### Return type - -[**models::GetCompressionSignaturesForAccountPost200Response**](_getCompressionSignaturesForAccount_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_compression_signatures_for_address_post - -> models::GetCompressionSignaturesForAddressPost200Response get_compression_signatures_for_address_post(get_compression_signatures_for_address_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_compression_signatures_for_address_post_request** | [**GetCompressionSignaturesForAddressPostRequest**](GetCompressionSignaturesForAddressPostRequest.md) | | [required] | - -### Return type - -[**models::GetCompressionSignaturesForAddressPost200Response**](_getCompressionSignaturesForAddress_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_compression_signatures_for_owner_post - -> models::GetCompressionSignaturesForAddressPost200Response get_compression_signatures_for_owner_post(get_compression_signatures_for_owner_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_compression_signatures_for_owner_post_request** | [**GetCompressionSignaturesForOwnerPostRequest**](GetCompressionSignaturesForOwnerPostRequest.md) | | [required] | - -### Return type - -[**models::GetCompressionSignaturesForAddressPost200Response**](_getCompressionSignaturesForAddress_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_compression_signatures_for_token_owner_post - -> models::GetCompressionSignaturesForAddressPost200Response get_compression_signatures_for_token_owner_post(get_compression_signatures_for_token_owner_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_compression_signatures_for_token_owner_post_request** | [**GetCompressionSignaturesForTokenOwnerPostRequest**](GetCompressionSignaturesForTokenOwnerPostRequest.md) | | [required] | - -### Return type - -[**models::GetCompressionSignaturesForAddressPost200Response**](_getCompressionSignaturesForAddress_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_indexer_health_post - -> models::GetIndexerHealthPost200Response get_indexer_health_post(get_indexer_health_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_indexer_health_post_request** | [**GetIndexerHealthPostRequest**](GetIndexerHealthPostRequest.md) | | [required] | - -### Return type - -[**models::GetIndexerHealthPost200Response**](_getIndexerHealth_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_indexer_slot_post - -> models::GetIndexerSlotPost200Response get_indexer_slot_post(get_indexer_slot_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_indexer_slot_post_request** | [**GetIndexerSlotPostRequest**](GetIndexerSlotPostRequest.md) | | [required] | - -### Return type - -[**models::GetIndexerSlotPost200Response**](_getIndexerSlot_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_latest_compression_signatures_post - -> models::GetCompressionSignaturesForAddressPost200Response get_latest_compression_signatures_post(get_latest_compression_signatures_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_latest_compression_signatures_post_request** | [**GetLatestCompressionSignaturesPostRequest**](GetLatestCompressionSignaturesPostRequest.md) | | [required] | - -### Return type - -[**models::GetCompressionSignaturesForAddressPost200Response**](_getCompressionSignaturesForAddress_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_latest_non_voting_signatures_post - -> models::GetLatestNonVotingSignaturesPost200Response get_latest_non_voting_signatures_post(get_latest_non_voting_signatures_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_latest_non_voting_signatures_post_request** | [**GetLatestNonVotingSignaturesPostRequest**](GetLatestNonVotingSignaturesPostRequest.md) | | [required] | - -### Return type - -[**models::GetLatestNonVotingSignaturesPost200Response**](_getLatestNonVotingSignatures_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_multiple_compressed_account_proofs_post - -> models::GetMultipleCompressedAccountProofsPost200Response get_multiple_compressed_account_proofs_post(get_multiple_compressed_account_proofs_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_multiple_compressed_account_proofs_post_request** | [**GetMultipleCompressedAccountProofsPostRequest**](GetMultipleCompressedAccountProofsPostRequest.md) | | [required] | - -### Return type - -[**models::GetMultipleCompressedAccountProofsPost200Response**](_getMultipleCompressedAccountProofs_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_multiple_compressed_account_proofs_v2_post - -> models::GetMultipleCompressedAccountProofsV2Post200Response get_multiple_compressed_account_proofs_v2_post(get_multiple_compressed_account_proofs_v2_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_multiple_compressed_account_proofs_v2_post_request** | [**GetMultipleCompressedAccountProofsV2PostRequest**](GetMultipleCompressedAccountProofsV2PostRequest.md) | | [required] | - -### Return type - -[**models::GetMultipleCompressedAccountProofsV2Post200Response**](_getMultipleCompressedAccountProofsV2_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_multiple_compressed_accounts_post - -> models::GetMultipleCompressedAccountsPost200Response get_multiple_compressed_accounts_post(get_multiple_compressed_accounts_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_multiple_compressed_accounts_post_request** | [**GetMultipleCompressedAccountsPostRequest**](GetMultipleCompressedAccountsPostRequest.md) | | [required] | - -### Return type - -[**models::GetMultipleCompressedAccountsPost200Response**](_getMultipleCompressedAccounts_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_multiple_compressed_accounts_v2_post - -> models::GetMultipleCompressedAccountsV2Post200Response get_multiple_compressed_accounts_v2_post(get_multiple_compressed_accounts_v2_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_multiple_compressed_accounts_v2_post_request** | [**GetMultipleCompressedAccountsV2PostRequest**](GetMultipleCompressedAccountsV2PostRequest.md) | | [required] | - -### Return type - -[**models::GetMultipleCompressedAccountsV2Post200Response**](_getMultipleCompressedAccountsV2_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_multiple_new_address_proofs_post - -> models::GetMultipleNewAddressProofsPost200Response get_multiple_new_address_proofs_post(get_multiple_new_address_proofs_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_multiple_new_address_proofs_post_request** | [**GetMultipleNewAddressProofsPostRequest**](GetMultipleNewAddressProofsPostRequest.md) | | [required] | - -### Return type - -[**models::GetMultipleNewAddressProofsPost200Response**](_getMultipleNewAddressProofs_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_multiple_new_address_proofs_v2_post - -> models::GetMultipleNewAddressProofsPost200Response get_multiple_new_address_proofs_v2_post(get_multiple_new_address_proofs_v2_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_multiple_new_address_proofs_v2_post_request** | [**GetMultipleNewAddressProofsV2PostRequest**](GetMultipleNewAddressProofsV2PostRequest.md) | | [required] | - -### Return type - -[**models::GetMultipleNewAddressProofsPost200Response**](_getMultipleNewAddressProofs_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_queue_elements_post - -> models::GetQueueElementsPost200Response get_queue_elements_post(get_queue_elements_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_queue_elements_post_request** | [**GetQueueElementsPostRequest**](GetQueueElementsPostRequest.md) | | [required] | - -### Return type - -[**models::GetQueueElementsPost200Response**](_getQueueElements_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_transaction_with_compression_info_post - -> models::GetTransactionWithCompressionInfoPost200Response get_transaction_with_compression_info_post(get_transaction_with_compression_info_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_transaction_with_compression_info_post_request** | [**GetTransactionWithCompressionInfoPostRequest**](GetTransactionWithCompressionInfoPostRequest.md) | | [required] | - -### Return type - -[**models::GetTransactionWithCompressionInfoPost200Response**](_getTransactionWithCompressionInfo_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_transaction_with_compression_info_v2_post - -> models::GetTransactionWithCompressionInfoV2Post200Response get_transaction_with_compression_info_v2_post(get_transaction_with_compression_info_v2_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_transaction_with_compression_info_v2_post_request** | [**GetTransactionWithCompressionInfoV2PostRequest**](GetTransactionWithCompressionInfoV2PostRequest.md) | | [required] | - -### Return type - -[**models::GetTransactionWithCompressionInfoV2Post200Response**](_getTransactionWithCompressionInfoV2_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_validity_proof_post - -> models::GetValidityProofPost200Response get_validity_proof_post(get_validity_proof_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_validity_proof_post_request** | [**GetValidityProofPostRequest**](GetValidityProofPostRequest.md) | | [required] | - -### Return type - -[**models::GetValidityProofPost200Response**](_getValidityProof_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_validity_proof_v2_post - -> models::GetValidityProofV2Post200Response get_validity_proof_v2_post(get_validity_proof_v2_post_request) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**get_validity_proof_v2_post_request** | [**GetValidityProofV2PostRequest**](GetValidityProofV2PostRequest.md) | | [required] | - -### Return type - -[**models::GetValidityProofV2Post200Response**](_getValidityProofV2_post_200_response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/sdk-libs/photon-api/docs/FilterSelector.md b/sdk-libs/photon-api/docs/FilterSelector.md deleted file mode 100644 index a49a120e72..0000000000 --- a/sdk-libs/photon-api/docs/FilterSelector.md +++ /dev/null @@ -1,11 +0,0 @@ -# FilterSelector - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**memcmp** | Option<[**models::Memcmp**](Memcmp.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetBatchAddressUpdateInfoPost200Response.md b/sdk-libs/photon-api/docs/GetBatchAddressUpdateInfoPost200Response.md deleted file mode 100644 index f945ee463f..0000000000 --- a/sdk-libs/photon-api/docs/GetBatchAddressUpdateInfoPost200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetBatchAddressUpdateInfoPost200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseResult**](_getBatchAddressUpdateInfo_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetBatchAddressUpdateInfoPost200ResponseError.md b/sdk-libs/photon-api/docs/GetBatchAddressUpdateInfoPost200ResponseError.md deleted file mode 100644 index 8600240a6f..0000000000 --- a/sdk-libs/photon-api/docs/GetBatchAddressUpdateInfoPost200ResponseError.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetBatchAddressUpdateInfoPost200ResponseError - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | Option<**i32**> | | [optional] -**message** | Option<**String**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetBatchAddressUpdateInfoPost200ResponseResult.md b/sdk-libs/photon-api/docs/GetBatchAddressUpdateInfoPost200ResponseResult.md deleted file mode 100644 index 5eb74a53fb..0000000000 --- a/sdk-libs/photon-api/docs/GetBatchAddressUpdateInfoPost200ResponseResult.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetBatchAddressUpdateInfoPost200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**addresses** | [**Vec**](AddressQueueIndex.md) | | -**context** | [**models::Context**](Context.md) | | -**non_inclusion_proofs** | [**Vec**](MerkleContextWithNewAddressProof.md) | | -**start_index** | **i32** | | -**subtrees** | [**Vec**](std::path::PathBuf.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetBatchAddressUpdateInfoPost429Response.md b/sdk-libs/photon-api/docs/GetBatchAddressUpdateInfoPost429Response.md deleted file mode 100644 index 32e41580a8..0000000000 --- a/sdk-libs/photon-api/docs/GetBatchAddressUpdateInfoPost429Response.md +++ /dev/null @@ -1,13 +0,0 @@ -# GetBatchAddressUpdateInfoPost429Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | Option<**String**> | | [optional] -**jsonrpc** | Option<**String**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetBatchAddressUpdateInfoPostRequest.md b/sdk-libs/photon-api/docs/GetBatchAddressUpdateInfoPostRequest.md deleted file mode 100644 index 8f3ae0e8bc..0000000000 --- a/sdk-libs/photon-api/docs/GetBatchAddressUpdateInfoPostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetBatchAddressUpdateInfoPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetBatchAddressUpdateInfoPostRequestParams**](_getBatchAddressUpdateInfo_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetBatchAddressUpdateInfoPostRequestParams.md b/sdk-libs/photon-api/docs/GetBatchAddressUpdateInfoPostRequestParams.md deleted file mode 100644 index c8e2542755..0000000000 --- a/sdk-libs/photon-api/docs/GetBatchAddressUpdateInfoPostRequestParams.md +++ /dev/null @@ -1,13 +0,0 @@ -# GetBatchAddressUpdateInfoPostRequestParams - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**limit** | **i32** | | -**start_queue_index** | Option<**i32**> | | [optional] -**tree** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedAccountBalancePost200Response.md b/sdk-libs/photon-api/docs/GetCompressedAccountBalancePost200Response.md deleted file mode 100644 index 38ec91f58f..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedAccountBalancePost200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedAccountBalancePost200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetCompressedAccountBalancePost200ResponseResult**](_getCompressedAccountBalance_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedAccountBalancePost200ResponseResult.md b/sdk-libs/photon-api/docs/GetCompressedAccountBalancePost200ResponseResult.md deleted file mode 100644 index 46a5f73e44..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedAccountBalancePost200ResponseResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetCompressedAccountBalancePost200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**models::Context**](Context.md) | | -**value** | **i32** | | [default to 100] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedAccountBalancePostRequest.md b/sdk-libs/photon-api/docs/GetCompressedAccountBalancePostRequest.md deleted file mode 100644 index 189eaf5ba3..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedAccountBalancePostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedAccountBalancePostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetCompressedAccountPostRequestParams**](_getCompressedAccount_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedAccountPost200Response.md b/sdk-libs/photon-api/docs/GetCompressedAccountPost200Response.md deleted file mode 100644 index 804779f0d4..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedAccountPost200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedAccountPost200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetCompressedAccountPost200ResponseResult**](_getCompressedAccount_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedAccountPost200ResponseResult.md b/sdk-libs/photon-api/docs/GetCompressedAccountPost200ResponseResult.md deleted file mode 100644 index 0392938011..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedAccountPost200ResponseResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetCompressedAccountPost200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**models::Context**](Context.md) | | -**value** | Option<[**models::Account**](Account.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedAccountPostRequest.md b/sdk-libs/photon-api/docs/GetCompressedAccountPostRequest.md deleted file mode 100644 index a494d555ef..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedAccountPostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedAccountPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetCompressedAccountPostRequestParams**](_getCompressedAccount_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedAccountPostRequestParams.md b/sdk-libs/photon-api/docs/GetCompressedAccountPostRequestParams.md deleted file mode 100644 index 1389523feb..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedAccountPostRequestParams.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetCompressedAccountPostRequestParams - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**address** | Option<**String**> | A Solana public key represented as a base58 string. | [optional] -**hash** | Option<**String**> | A 32-byte hash represented as a base58 string. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedAccountProofPost200Response.md b/sdk-libs/photon-api/docs/GetCompressedAccountProofPost200Response.md deleted file mode 100644 index 98dc2f9b5f..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedAccountProofPost200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedAccountProofPost200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetCompressedAccountProofPost200ResponseResult**](_getCompressedAccountProof_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedAccountProofPost200ResponseResult.md b/sdk-libs/photon-api/docs/GetCompressedAccountProofPost200ResponseResult.md deleted file mode 100644 index 27592f906b..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedAccountProofPost200ResponseResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetCompressedAccountProofPost200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**models::Context**](Context.md) | | -**value** | [**models::GetCompressedAccountProofResponseValue**](GetCompressedAccountProofResponseValue.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedAccountProofPostRequest.md b/sdk-libs/photon-api/docs/GetCompressedAccountProofPostRequest.md deleted file mode 100644 index d644c85e3a..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedAccountProofPostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedAccountProofPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetCompressedAccountProofPostRequestParams**](_getCompressedAccountProof_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedAccountProofPostRequestParams.md b/sdk-libs/photon-api/docs/GetCompressedAccountProofPostRequestParams.md deleted file mode 100644 index 373cd706ea..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedAccountProofPostRequestParams.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetCompressedAccountProofPostRequestParams - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hash** | **String** | A 32-byte hash represented as a base58 string. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedAccountProofResponseValue.md b/sdk-libs/photon-api/docs/GetCompressedAccountProofResponseValue.md deleted file mode 100644 index 0709ad1e47..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedAccountProofResponseValue.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetCompressedAccountProofResponseValue - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hash** | **String** | A 32-byte hash represented as a base58 string. | -**leaf_index** | **i32** | | -**merkle_tree** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] -**proof** | **Vec** | | -**root** | **String** | A 32-byte hash represented as a base58 string. | -**root_seq** | **i32** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedAccountProofResponseValueV2.md b/sdk-libs/photon-api/docs/GetCompressedAccountProofResponseValueV2.md deleted file mode 100644 index d872330c3b..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedAccountProofResponseValueV2.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetCompressedAccountProofResponseValueV2 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hash** | **String** | A 32-byte hash represented as a base58 string. | -**leaf_index** | **i32** | | -**proof** | **Vec** | | -**prove_by_index** | **bool** | | -**root** | **String** | A 32-byte hash represented as a base58 string. | -**root_seq** | **i32** | | -**tree_context** | [**models::TreeContextInfo**](TreeContextInfo.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedAccountProofV2Post200Response.md b/sdk-libs/photon-api/docs/GetCompressedAccountProofV2Post200Response.md deleted file mode 100644 index 7fb243fbec..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedAccountProofV2Post200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedAccountProofV2Post200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetCompressedAccountProofV2Post200ResponseResult**](_getCompressedAccountProofV2_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedAccountProofV2Post200ResponseResult.md b/sdk-libs/photon-api/docs/GetCompressedAccountProofV2Post200ResponseResult.md deleted file mode 100644 index 332804c966..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedAccountProofV2Post200ResponseResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetCompressedAccountProofV2Post200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**models::Context**](Context.md) | | -**value** | [**models::GetCompressedAccountProofResponseValueV2**](GetCompressedAccountProofResponseValueV2.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedAccountProofV2PostRequest.md b/sdk-libs/photon-api/docs/GetCompressedAccountProofV2PostRequest.md deleted file mode 100644 index 1777651154..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedAccountProofV2PostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedAccountProofV2PostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetCompressedAccountProofPostRequestParams**](_getCompressedAccountProof_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedAccountV2Post200Response.md b/sdk-libs/photon-api/docs/GetCompressedAccountV2Post200Response.md deleted file mode 100644 index ccbf9e9e5d..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedAccountV2Post200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedAccountV2Post200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetCompressedAccountV2Post200ResponseResult**](_getCompressedAccountV2_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedAccountV2Post200ResponseResult.md b/sdk-libs/photon-api/docs/GetCompressedAccountV2Post200ResponseResult.md deleted file mode 100644 index 59a565ad5b..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedAccountV2Post200ResponseResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetCompressedAccountV2Post200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**models::Context**](Context.md) | | -**value** | Option<[**models::AccountV2**](AccountV2.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedAccountV2PostRequest.md b/sdk-libs/photon-api/docs/GetCompressedAccountV2PostRequest.md deleted file mode 100644 index 68dcfd2dc8..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedAccountV2PostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedAccountV2PostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetCompressedAccountPostRequestParams**](_getCompressedAccount_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedAccountsByOwnerPost200Response.md b/sdk-libs/photon-api/docs/GetCompressedAccountsByOwnerPost200Response.md deleted file mode 100644 index ef8cea0c6f..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedAccountsByOwnerPost200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedAccountsByOwnerPost200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetCompressedAccountsByOwnerPost200ResponseResult**](_getCompressedAccountsByOwner_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedAccountsByOwnerPost200ResponseResult.md b/sdk-libs/photon-api/docs/GetCompressedAccountsByOwnerPost200ResponseResult.md deleted file mode 100644 index 94ddeda3c6..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedAccountsByOwnerPost200ResponseResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetCompressedAccountsByOwnerPost200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**models::Context**](Context.md) | | -**value** | [**models::PaginatedAccountList**](PaginatedAccountList.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedAccountsByOwnerPostRequest.md b/sdk-libs/photon-api/docs/GetCompressedAccountsByOwnerPostRequest.md deleted file mode 100644 index c71cd517b4..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedAccountsByOwnerPostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedAccountsByOwnerPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetCompressedAccountsByOwnerPostRequestParams**](_getCompressedAccountsByOwner_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedAccountsByOwnerPostRequestParams.md b/sdk-libs/photon-api/docs/GetCompressedAccountsByOwnerPostRequestParams.md deleted file mode 100644 index 6369df4f05..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedAccountsByOwnerPostRequestParams.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetCompressedAccountsByOwnerPostRequestParams - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cursor** | Option<**String**> | A 32-byte hash represented as a base58 string. | [optional] -**data_slice** | Option<[**models::DataSlice**](DataSlice.md)> | | [optional] -**filters** | Option<[**Vec**](FilterSelector.md)> | | [optional] -**limit** | Option<**i32**> | | [optional] -**owner** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedAccountsByOwnerV2Post200Response.md b/sdk-libs/photon-api/docs/GetCompressedAccountsByOwnerV2Post200Response.md deleted file mode 100644 index 7a207b4037..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedAccountsByOwnerV2Post200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedAccountsByOwnerV2Post200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetCompressedAccountsByOwnerV2Post200ResponseResult**](_getCompressedAccountsByOwnerV2_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedAccountsByOwnerV2Post200ResponseResult.md b/sdk-libs/photon-api/docs/GetCompressedAccountsByOwnerV2Post200ResponseResult.md deleted file mode 100644 index 6df5864fca..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedAccountsByOwnerV2Post200ResponseResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetCompressedAccountsByOwnerV2Post200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**models::Context**](Context.md) | | -**value** | [**models::PaginatedAccountListV2**](PaginatedAccountListV2.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedAccountsByOwnerV2PostRequest.md b/sdk-libs/photon-api/docs/GetCompressedAccountsByOwnerV2PostRequest.md deleted file mode 100644 index 0a3f6e28d9..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedAccountsByOwnerV2PostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedAccountsByOwnerV2PostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetCompressedAccountsByOwnerPostRequestParams**](_getCompressedAccountsByOwner_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedBalanceByOwnerPostRequest.md b/sdk-libs/photon-api/docs/GetCompressedBalanceByOwnerPostRequest.md deleted file mode 100644 index e6d0e16464..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedBalanceByOwnerPostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedBalanceByOwnerPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetCompressedBalanceByOwnerPostRequestParams**](_getCompressedBalanceByOwner_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedBalanceByOwnerPostRequestParams.md b/sdk-libs/photon-api/docs/GetCompressedBalanceByOwnerPostRequestParams.md deleted file mode 100644 index 3dcfa04c93..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedBalanceByOwnerPostRequestParams.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetCompressedBalanceByOwnerPostRequestParams - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**owner** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedMintTokenHoldersPost200Response.md b/sdk-libs/photon-api/docs/GetCompressedMintTokenHoldersPost200Response.md deleted file mode 100644 index 36b797b193..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedMintTokenHoldersPost200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedMintTokenHoldersPost200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetCompressedMintTokenHoldersPost200ResponseResult**](_getCompressedMintTokenHolders_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedMintTokenHoldersPost200ResponseResult.md b/sdk-libs/photon-api/docs/GetCompressedMintTokenHoldersPost200ResponseResult.md deleted file mode 100644 index 89ff11d13a..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedMintTokenHoldersPost200ResponseResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetCompressedMintTokenHoldersPost200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**models::Context**](Context.md) | | -**value** | [**models::OwnerBalanceList**](OwnerBalanceList.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedMintTokenHoldersPostRequest.md b/sdk-libs/photon-api/docs/GetCompressedMintTokenHoldersPostRequest.md deleted file mode 100644 index 3ec8cdb1bc..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedMintTokenHoldersPostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedMintTokenHoldersPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetCompressedMintTokenHoldersPostRequestParams**](_getCompressedMintTokenHolders_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedMintTokenHoldersPostRequestParams.md b/sdk-libs/photon-api/docs/GetCompressedMintTokenHoldersPostRequestParams.md deleted file mode 100644 index ff6b5ccdab..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedMintTokenHoldersPostRequestParams.md +++ /dev/null @@ -1,13 +0,0 @@ -# GetCompressedMintTokenHoldersPostRequestParams - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cursor** | Option<**String**> | A base 58 encoded string. | [optional] -**limit** | Option<**i32**> | | [optional] -**mint** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedTokenAccountBalancePost200Response.md b/sdk-libs/photon-api/docs/GetCompressedTokenAccountBalancePost200Response.md deleted file mode 100644 index 0bfb910694..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedTokenAccountBalancePost200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedTokenAccountBalancePost200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetCompressedTokenAccountBalancePost200ResponseResult**](_getCompressedTokenAccountBalance_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedTokenAccountBalancePost200ResponseResult.md b/sdk-libs/photon-api/docs/GetCompressedTokenAccountBalancePost200ResponseResult.md deleted file mode 100644 index 1f576d0411..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedTokenAccountBalancePost200ResponseResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetCompressedTokenAccountBalancePost200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**models::Context**](Context.md) | | -**value** | [**models::TokenAccountBalance**](TokenAccountBalance.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedTokenAccountBalancePostRequest.md b/sdk-libs/photon-api/docs/GetCompressedTokenAccountBalancePostRequest.md deleted file mode 100644 index 2330b1dd74..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedTokenAccountBalancePostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedTokenAccountBalancePostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetCompressedAccountPostRequestParams**](_getCompressedAccount_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByDelegatePost200Response.md b/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByDelegatePost200Response.md deleted file mode 100644 index a1678bf8ae..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByDelegatePost200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedTokenAccountsByDelegatePost200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetCompressedTokenAccountsByDelegatePost200ResponseResult**](_getCompressedTokenAccountsByDelegate_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByDelegatePost200ResponseResult.md b/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByDelegatePost200ResponseResult.md deleted file mode 100644 index 753fad62b1..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByDelegatePost200ResponseResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetCompressedTokenAccountsByDelegatePost200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**models::Context**](Context.md) | | -**value** | [**models::TokenAccountList**](TokenAccountList.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByDelegatePostRequest.md b/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByDelegatePostRequest.md deleted file mode 100644 index c6ac52cabf..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByDelegatePostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedTokenAccountsByDelegatePostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetCompressedTokenAccountsByDelegatePostRequestParams**](_getCompressedTokenAccountsByDelegate_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByDelegatePostRequestParams.md b/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByDelegatePostRequestParams.md deleted file mode 100644 index 388528701a..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByDelegatePostRequestParams.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedTokenAccountsByDelegatePostRequestParams - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cursor** | Option<**String**> | A base 58 encoded string. | [optional] -**delegate** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] -**limit** | Option<**i32**> | | [optional] -**mint** | Option<**String**> | A Solana public key represented as a base58 string. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByDelegateV2Post200Response.md b/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByDelegateV2Post200Response.md deleted file mode 100644 index 0348777039..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByDelegateV2Post200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedTokenAccountsByDelegateV2Post200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetCompressedTokenAccountsByDelegateV2Post200ResponseResult**](_getCompressedTokenAccountsByDelegateV2_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByDelegateV2Post200ResponseResult.md b/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByDelegateV2Post200ResponseResult.md deleted file mode 100644 index 4dce6c9b5e..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByDelegateV2Post200ResponseResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetCompressedTokenAccountsByDelegateV2Post200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**models::Context**](Context.md) | | -**value** | [**models::TokenAccountListV2**](TokenAccountListV2.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByDelegateV2PostRequest.md b/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByDelegateV2PostRequest.md deleted file mode 100644 index fb83da10d4..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByDelegateV2PostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedTokenAccountsByDelegateV2PostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetCompressedTokenAccountsByDelegatePostRequestParams**](_getCompressedTokenAccountsByDelegate_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByOwnerPostRequest.md b/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByOwnerPostRequest.md deleted file mode 100644 index 050463b1d7..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByOwnerPostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedTokenAccountsByOwnerPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetCompressedTokenAccountsByOwnerPostRequestParams**](_getCompressedTokenAccountsByOwner_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByOwnerPostRequestParams.md b/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByOwnerPostRequestParams.md deleted file mode 100644 index 940ec17af6..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByOwnerPostRequestParams.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedTokenAccountsByOwnerPostRequestParams - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cursor** | Option<**String**> | A base 58 encoded string. | [optional] -**limit** | Option<**i32**> | | [optional] -**mint** | Option<**String**> | A Solana public key represented as a base58 string. | [optional] -**owner** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByOwnerV2PostRequest.md b/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByOwnerV2PostRequest.md deleted file mode 100644 index 1656fb3925..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedTokenAccountsByOwnerV2PostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedTokenAccountsByOwnerV2PostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetCompressedTokenAccountsByOwnerPostRequestParams**](_getCompressedTokenAccountsByOwner_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedTokenBalancesByOwnerPost200Response.md b/sdk-libs/photon-api/docs/GetCompressedTokenBalancesByOwnerPost200Response.md deleted file mode 100644 index c1030fa37c..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedTokenBalancesByOwnerPost200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedTokenBalancesByOwnerPost200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetCompressedTokenBalancesByOwnerPost200ResponseResult**](_getCompressedTokenBalancesByOwner_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedTokenBalancesByOwnerPost200ResponseResult.md b/sdk-libs/photon-api/docs/GetCompressedTokenBalancesByOwnerPost200ResponseResult.md deleted file mode 100644 index 6ff06b3af1..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedTokenBalancesByOwnerPost200ResponseResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetCompressedTokenBalancesByOwnerPost200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**models::Context**](Context.md) | | -**value** | [**models::TokenBalanceList**](TokenBalanceList.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedTokenBalancesByOwnerPostRequest.md b/sdk-libs/photon-api/docs/GetCompressedTokenBalancesByOwnerPostRequest.md deleted file mode 100644 index 6b9bbfc034..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedTokenBalancesByOwnerPostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedTokenBalancesByOwnerPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetCompressedTokenAccountsByOwnerPostRequestParams**](_getCompressedTokenAccountsByOwner_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedTokenBalancesByOwnerV2Post200Response.md b/sdk-libs/photon-api/docs/GetCompressedTokenBalancesByOwnerV2Post200Response.md deleted file mode 100644 index c3715078c8..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedTokenBalancesByOwnerV2Post200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedTokenBalancesByOwnerV2Post200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetCompressedTokenBalancesByOwnerV2Post200ResponseResult**](_getCompressedTokenBalancesByOwnerV2_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedTokenBalancesByOwnerV2Post200ResponseResult.md b/sdk-libs/photon-api/docs/GetCompressedTokenBalancesByOwnerV2Post200ResponseResult.md deleted file mode 100644 index 45d0dcaa85..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedTokenBalancesByOwnerV2Post200ResponseResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetCompressedTokenBalancesByOwnerV2Post200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**models::Context**](Context.md) | | -**value** | [**models::TokenBalanceListV2**](TokenBalanceListV2.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressedTokenBalancesByOwnerV2PostRequest.md b/sdk-libs/photon-api/docs/GetCompressedTokenBalancesByOwnerV2PostRequest.md deleted file mode 100644 index 555c1ab27d..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressedTokenBalancesByOwnerV2PostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressedTokenBalancesByOwnerV2PostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetCompressedTokenAccountsByOwnerPostRequestParams**](_getCompressedTokenAccountsByOwner_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressionSignaturesForAccountPost200Response.md b/sdk-libs/photon-api/docs/GetCompressionSignaturesForAccountPost200Response.md deleted file mode 100644 index 514f210324..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressionSignaturesForAccountPost200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressionSignaturesForAccountPost200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetCompressionSignaturesForAccountPost200ResponseResult**](_getCompressionSignaturesForAccount_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressionSignaturesForAccountPost200ResponseResult.md b/sdk-libs/photon-api/docs/GetCompressionSignaturesForAccountPost200ResponseResult.md deleted file mode 100644 index d911143495..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressionSignaturesForAccountPost200ResponseResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetCompressionSignaturesForAccountPost200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**models::Context**](Context.md) | | -**value** | [**models::SignatureInfoList**](SignatureInfoList.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressionSignaturesForAccountPostRequest.md b/sdk-libs/photon-api/docs/GetCompressionSignaturesForAccountPostRequest.md deleted file mode 100644 index 2622b6b87e..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressionSignaturesForAccountPostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressionSignaturesForAccountPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetCompressedAccountProofPostRequestParams**](_getCompressedAccountProof_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressionSignaturesForAddressPost200Response.md b/sdk-libs/photon-api/docs/GetCompressionSignaturesForAddressPost200Response.md deleted file mode 100644 index 6884e18a43..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressionSignaturesForAddressPost200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressionSignaturesForAddressPost200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetCompressionSignaturesForAddressPost200ResponseResult**](_getCompressionSignaturesForAddress_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressionSignaturesForAddressPost200ResponseResult.md b/sdk-libs/photon-api/docs/GetCompressionSignaturesForAddressPost200ResponseResult.md deleted file mode 100644 index dfee2078f1..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressionSignaturesForAddressPost200ResponseResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetCompressionSignaturesForAddressPost200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**models::Context**](Context.md) | | -**value** | [**models::PaginatedSignatureInfoList**](PaginatedSignatureInfoList.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressionSignaturesForAddressPostRequest.md b/sdk-libs/photon-api/docs/GetCompressionSignaturesForAddressPostRequest.md deleted file mode 100644 index 9191f93ffb..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressionSignaturesForAddressPostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressionSignaturesForAddressPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetCompressionSignaturesForAddressPostRequestParams**](_getCompressionSignaturesForAddress_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressionSignaturesForAddressPostRequestParams.md b/sdk-libs/photon-api/docs/GetCompressionSignaturesForAddressPostRequestParams.md deleted file mode 100644 index 7e427831e5..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressionSignaturesForAddressPostRequestParams.md +++ /dev/null @@ -1,13 +0,0 @@ -# GetCompressionSignaturesForAddressPostRequestParams - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**address** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] -**cursor** | Option<**String**> | | [optional] -**limit** | Option<**i32**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressionSignaturesForOwnerPostRequest.md b/sdk-libs/photon-api/docs/GetCompressionSignaturesForOwnerPostRequest.md deleted file mode 100644 index 735f283ee6..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressionSignaturesForOwnerPostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressionSignaturesForOwnerPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetCompressionSignaturesForOwnerPostRequestParams**](_getCompressionSignaturesForOwner_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressionSignaturesForOwnerPostRequestParams.md b/sdk-libs/photon-api/docs/GetCompressionSignaturesForOwnerPostRequestParams.md deleted file mode 100644 index 764ac02df9..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressionSignaturesForOwnerPostRequestParams.md +++ /dev/null @@ -1,13 +0,0 @@ -# GetCompressionSignaturesForOwnerPostRequestParams - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cursor** | Option<**String**> | | [optional] -**limit** | Option<**i32**> | | [optional] -**owner** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetCompressionSignaturesForTokenOwnerPostRequest.md b/sdk-libs/photon-api/docs/GetCompressionSignaturesForTokenOwnerPostRequest.md deleted file mode 100644 index 041252d30f..0000000000 --- a/sdk-libs/photon-api/docs/GetCompressionSignaturesForTokenOwnerPostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetCompressionSignaturesForTokenOwnerPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetCompressionSignaturesForOwnerPostRequestParams**](_getCompressionSignaturesForOwner_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetIndexerHealthPost200Response.md b/sdk-libs/photon-api/docs/GetIndexerHealthPost200Response.md deleted file mode 100644 index 8e0ce13450..0000000000 --- a/sdk-libs/photon-api/docs/GetIndexerHealthPost200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetIndexerHealthPost200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<**String**> | ok if healthy | [optional][default to Ok] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetIndexerHealthPostRequest.md b/sdk-libs/photon-api/docs/GetIndexerHealthPostRequest.md deleted file mode 100644 index e132892839..0000000000 --- a/sdk-libs/photon-api/docs/GetIndexerHealthPostRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# GetIndexerHealthPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetIndexerSlotPost200Response.md b/sdk-libs/photon-api/docs/GetIndexerSlotPost200Response.md deleted file mode 100644 index 2c282efd69..0000000000 --- a/sdk-libs/photon-api/docs/GetIndexerSlotPost200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetIndexerSlotPost200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<**i32**> | | [optional][default to 100] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetIndexerSlotPostRequest.md b/sdk-libs/photon-api/docs/GetIndexerSlotPostRequest.md deleted file mode 100644 index 3f76ccd0e1..0000000000 --- a/sdk-libs/photon-api/docs/GetIndexerSlotPostRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# GetIndexerSlotPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetLatestCompressionSignaturesPostRequest.md b/sdk-libs/photon-api/docs/GetLatestCompressionSignaturesPostRequest.md deleted file mode 100644 index eb86540db8..0000000000 --- a/sdk-libs/photon-api/docs/GetLatestCompressionSignaturesPostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetLatestCompressionSignaturesPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetLatestCompressionSignaturesPostRequestParams**](_getLatestCompressionSignatures_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetLatestCompressionSignaturesPostRequestParams.md b/sdk-libs/photon-api/docs/GetLatestCompressionSignaturesPostRequestParams.md deleted file mode 100644 index 37b999db7e..0000000000 --- a/sdk-libs/photon-api/docs/GetLatestCompressionSignaturesPostRequestParams.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetLatestCompressionSignaturesPostRequestParams - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cursor** | Option<**String**> | | [optional] -**limit** | Option<**i32**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetLatestNonVotingSignaturesPost200Response.md b/sdk-libs/photon-api/docs/GetLatestNonVotingSignaturesPost200Response.md deleted file mode 100644 index 1213923d40..0000000000 --- a/sdk-libs/photon-api/docs/GetLatestNonVotingSignaturesPost200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetLatestNonVotingSignaturesPost200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetLatestNonVotingSignaturesPost200ResponseResult**](_getLatestNonVotingSignatures_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetLatestNonVotingSignaturesPost200ResponseResult.md b/sdk-libs/photon-api/docs/GetLatestNonVotingSignaturesPost200ResponseResult.md deleted file mode 100644 index 5ea49a3a32..0000000000 --- a/sdk-libs/photon-api/docs/GetLatestNonVotingSignaturesPost200ResponseResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetLatestNonVotingSignaturesPost200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**models::Context**](Context.md) | | -**value** | [**models::SignatureInfoListWithError**](SignatureInfoListWithError.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetLatestNonVotingSignaturesPostRequest.md b/sdk-libs/photon-api/docs/GetLatestNonVotingSignaturesPostRequest.md deleted file mode 100644 index 28cd722650..0000000000 --- a/sdk-libs/photon-api/docs/GetLatestNonVotingSignaturesPostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetLatestNonVotingSignaturesPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetLatestCompressionSignaturesPostRequestParams**](_getLatestCompressionSignatures_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountProofsPost200Response.md b/sdk-libs/photon-api/docs/GetMultipleCompressedAccountProofsPost200Response.md deleted file mode 100644 index 1d6b0604b9..0000000000 --- a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountProofsPost200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetMultipleCompressedAccountProofsPost200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetMultipleCompressedAccountProofsPost200ResponseResult**](_getMultipleCompressedAccountProofs_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountProofsPost200ResponseResult.md b/sdk-libs/photon-api/docs/GetMultipleCompressedAccountProofsPost200ResponseResult.md deleted file mode 100644 index 10c6ea0e83..0000000000 --- a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountProofsPost200ResponseResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetMultipleCompressedAccountProofsPost200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**models::Context**](Context.md) | | -**value** | [**Vec**](GetCompressedAccountProofResponseValue.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountProofsPostRequest.md b/sdk-libs/photon-api/docs/GetMultipleCompressedAccountProofsPostRequest.md deleted file mode 100644 index 8abbead8b5..0000000000 --- a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountProofsPostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetMultipleCompressedAccountProofsPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | **Vec** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountProofsV2Post200Response.md b/sdk-libs/photon-api/docs/GetMultipleCompressedAccountProofsV2Post200Response.md deleted file mode 100644 index cb0643ef4c..0000000000 --- a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountProofsV2Post200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetMultipleCompressedAccountProofsV2Post200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetMultipleCompressedAccountProofsV2Post200ResponseResult**](_getMultipleCompressedAccountProofsV2_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountProofsV2Post200ResponseResult.md b/sdk-libs/photon-api/docs/GetMultipleCompressedAccountProofsV2Post200ResponseResult.md deleted file mode 100644 index b62ae79753..0000000000 --- a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountProofsV2Post200ResponseResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetMultipleCompressedAccountProofsV2Post200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**models::Context**](Context.md) | | -**value** | [**Vec**](GetCompressedAccountProofResponseValueV2.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountProofsV2PostRequest.md b/sdk-libs/photon-api/docs/GetMultipleCompressedAccountProofsV2PostRequest.md deleted file mode 100644 index 6c1f1a9291..0000000000 --- a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountProofsV2PostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetMultipleCompressedAccountProofsV2PostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | **Vec** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountsPost200Response.md b/sdk-libs/photon-api/docs/GetMultipleCompressedAccountsPost200Response.md deleted file mode 100644 index b49a569771..0000000000 --- a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountsPost200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetMultipleCompressedAccountsPost200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetMultipleCompressedAccountsPost200ResponseResult**](_getMultipleCompressedAccounts_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountsPost200ResponseResult.md b/sdk-libs/photon-api/docs/GetMultipleCompressedAccountsPost200ResponseResult.md deleted file mode 100644 index 5f2958fabb..0000000000 --- a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountsPost200ResponseResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetMultipleCompressedAccountsPost200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**models::Context**](Context.md) | | -**value** | [**models::AccountList**](AccountList.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountsPostRequest.md b/sdk-libs/photon-api/docs/GetMultipleCompressedAccountsPostRequest.md deleted file mode 100644 index a1c706fdf9..0000000000 --- a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountsPostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetMultipleCompressedAccountsPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetMultipleCompressedAccountsPostRequestParams**](_getMultipleCompressedAccounts_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountsPostRequestParams.md b/sdk-libs/photon-api/docs/GetMultipleCompressedAccountsPostRequestParams.md deleted file mode 100644 index 390917a7e6..0000000000 --- a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountsPostRequestParams.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetMultipleCompressedAccountsPostRequestParams - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**addresses** | Option<**Vec**> | | [optional] -**hashes** | Option<**Vec**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountsV2Post200Response.md b/sdk-libs/photon-api/docs/GetMultipleCompressedAccountsV2Post200Response.md deleted file mode 100644 index 99a3fb80c5..0000000000 --- a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountsV2Post200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetMultipleCompressedAccountsV2Post200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetMultipleCompressedAccountsV2Post200ResponseResult**](_getMultipleCompressedAccountsV2_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountsV2Post200ResponseResult.md b/sdk-libs/photon-api/docs/GetMultipleCompressedAccountsV2Post200ResponseResult.md deleted file mode 100644 index e7f1ec708c..0000000000 --- a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountsV2Post200ResponseResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetMultipleCompressedAccountsV2Post200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**models::Context**](Context.md) | | -**value** | [**models::AccountListV2**](AccountListV2.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountsV2PostRequest.md b/sdk-libs/photon-api/docs/GetMultipleCompressedAccountsV2PostRequest.md deleted file mode 100644 index a7dc69e9af..0000000000 --- a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountsV2PostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetMultipleCompressedAccountsV2PostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetMultipleCompressedAccountsV2PostRequestParams**](_getMultipleCompressedAccountsV2_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountsV2PostRequestParams.md b/sdk-libs/photon-api/docs/GetMultipleCompressedAccountsV2PostRequestParams.md deleted file mode 100644 index 928d9a3067..0000000000 --- a/sdk-libs/photon-api/docs/GetMultipleCompressedAccountsV2PostRequestParams.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetMultipleCompressedAccountsV2PostRequestParams - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**addresses** | Option<**Vec**> | | [optional] -**hashes** | Option<**Vec**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetMultipleNewAddressProofsPost200Response.md b/sdk-libs/photon-api/docs/GetMultipleNewAddressProofsPost200Response.md deleted file mode 100644 index 5a1a50df34..0000000000 --- a/sdk-libs/photon-api/docs/GetMultipleNewAddressProofsPost200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetMultipleNewAddressProofsPost200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetMultipleNewAddressProofsPost200ResponseResult**](_getMultipleNewAddressProofs_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetMultipleNewAddressProofsPost200ResponseResult.md b/sdk-libs/photon-api/docs/GetMultipleNewAddressProofsPost200ResponseResult.md deleted file mode 100644 index e402894103..0000000000 --- a/sdk-libs/photon-api/docs/GetMultipleNewAddressProofsPost200ResponseResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetMultipleNewAddressProofsPost200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**models::Context**](Context.md) | | -**value** | [**Vec**](MerkleContextWithNewAddressProof.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetMultipleNewAddressProofsPostRequest.md b/sdk-libs/photon-api/docs/GetMultipleNewAddressProofsPostRequest.md deleted file mode 100644 index e1b0c1be21..0000000000 --- a/sdk-libs/photon-api/docs/GetMultipleNewAddressProofsPostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetMultipleNewAddressProofsPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | **Vec** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetMultipleNewAddressProofsV2PostRequest.md b/sdk-libs/photon-api/docs/GetMultipleNewAddressProofsV2PostRequest.md deleted file mode 100644 index f392e317f1..0000000000 --- a/sdk-libs/photon-api/docs/GetMultipleNewAddressProofsV2PostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetMultipleNewAddressProofsV2PostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**Vec**](AddressWithTree.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetQueueElementsPost200Response.md b/sdk-libs/photon-api/docs/GetQueueElementsPost200Response.md deleted file mode 100644 index 8e2656d63e..0000000000 --- a/sdk-libs/photon-api/docs/GetQueueElementsPost200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetQueueElementsPost200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetQueueElementsPost200ResponseResult**](_getQueueElements_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetQueueElementsPost200ResponseResult.md b/sdk-libs/photon-api/docs/GetQueueElementsPost200ResponseResult.md deleted file mode 100644 index 6e7b346acb..0000000000 --- a/sdk-libs/photon-api/docs/GetQueueElementsPost200ResponseResult.md +++ /dev/null @@ -1,13 +0,0 @@ -# GetQueueElementsPost200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**models::Context**](Context.md) | | -**first_value_queue_index** | **i32** | | -**value** | [**Vec**](GetQueueElementsResponseValue.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetQueueElementsPostRequest.md b/sdk-libs/photon-api/docs/GetQueueElementsPostRequest.md deleted file mode 100644 index a7f0c7c262..0000000000 --- a/sdk-libs/photon-api/docs/GetQueueElementsPostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetQueueElementsPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetQueueElementsPostRequestParams**](_getQueueElements_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetQueueElementsPostRequestParams.md b/sdk-libs/photon-api/docs/GetQueueElementsPostRequestParams.md deleted file mode 100644 index 02316952f5..0000000000 --- a/sdk-libs/photon-api/docs/GetQueueElementsPostRequestParams.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetQueueElementsPostRequestParams - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**limit** | **i32** | | -**queue_type** | **i32** | | -**start_queue_index** | Option<**i32**> | | [optional] -**tree** | **String** | A 32-byte hash represented as a base58 string. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetQueueElementsResponseValue.md b/sdk-libs/photon-api/docs/GetQueueElementsResponseValue.md deleted file mode 100644 index f248b0de0f..0000000000 --- a/sdk-libs/photon-api/docs/GetQueueElementsResponseValue.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetQueueElementsResponseValue - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**account_hash** | **String** | A 32-byte hash represented as a base58 string. | -**leaf** | **String** | A 32-byte hash represented as a base58 string. | -**leaf_index** | **i32** | | -**proof** | **Vec** | | -**root** | **String** | A 32-byte hash represented as a base58 string. | -**root_seq** | **i32** | | -**tree** | **String** | A 32-byte hash represented as a base58 string. | -**tx_hash** | Option<**String**> | A 32-byte hash represented as a base58 string. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoPost200Response.md b/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoPost200Response.md deleted file mode 100644 index 05a368d433..0000000000 --- a/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoPost200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetTransactionWithCompressionInfoPost200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetTransactionWithCompressionInfoPost200ResponseResult**](_getTransactionWithCompressionInfo_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoPost200ResponseResult.md b/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoPost200ResponseResult.md deleted file mode 100644 index c53464b187..0000000000 --- a/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoPost200ResponseResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetTransactionWithCompressionInfoPost200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**compression_info** | Option<[**models::GetTransactionWithCompressionInfoPost200ResponseResultCompressionInfo**](_getTransactionWithCompressionInfo_post_200_response_result_compression_info.md)> | | [optional] -**transaction** | Option<[**serde_json::Value**](.md)> | An encoded confirmed transaction with status meta | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoPost200ResponseResultCompressionInfo.md b/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoPost200ResponseResultCompressionInfo.md deleted file mode 100644 index f345bebb0e..0000000000 --- a/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoPost200ResponseResultCompressionInfo.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetTransactionWithCompressionInfoPost200ResponseResultCompressionInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**closed_accounts** | [**Vec**](AccountWithOptionalTokenData.md) | | -**opened_accounts** | [**Vec**](AccountWithOptionalTokenData.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoPostRequest.md b/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoPostRequest.md deleted file mode 100644 index 401e813764..0000000000 --- a/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoPostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetTransactionWithCompressionInfoPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetTransactionWithCompressionInfoPostRequestParams**](_getTransactionWithCompressionInfo_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoPostRequestParams.md b/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoPostRequestParams.md deleted file mode 100644 index 3d590ec8b4..0000000000 --- a/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoPostRequestParams.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetTransactionWithCompressionInfoPostRequestParams - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**signature** | **String** | A Solana transaction signature. | [default to 5J8H5sTvEhnGcB4R8K1n7mfoiWUD9RzPVGES7e3WxC7c] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoV2Post200Response.md b/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoV2Post200Response.md deleted file mode 100644 index a6232e0e57..0000000000 --- a/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoV2Post200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetTransactionWithCompressionInfoV2Post200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetTransactionWithCompressionInfoV2Post200ResponseResult**](_getTransactionWithCompressionInfoV2_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoV2Post200ResponseResult.md b/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoV2Post200ResponseResult.md deleted file mode 100644 index 187563ce26..0000000000 --- a/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoV2Post200ResponseResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetTransactionWithCompressionInfoV2Post200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**compression_info** | Option<[**models::GetTransactionWithCompressionInfoV2Post200ResponseResultCompressionInfo**](_getTransactionWithCompressionInfoV2_post_200_response_result_compression_info.md)> | | [optional] -**transaction** | Option<[**serde_json::Value**](.md)> | An encoded confirmed transaction with status meta | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoV2Post200ResponseResultCompressionInfo.md b/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoV2Post200ResponseResultCompressionInfo.md deleted file mode 100644 index 3c637ea973..0000000000 --- a/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoV2Post200ResponseResultCompressionInfo.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetTransactionWithCompressionInfoV2Post200ResponseResultCompressionInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**closed_accounts** | [**Vec**](ClosedAccountWithOptionalTokenDataV2.md) | | -**opened_accounts** | [**Vec**](AccountWithOptionalTokenDataV2.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoV2PostRequest.md b/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoV2PostRequest.md deleted file mode 100644 index dcadfcb50e..0000000000 --- a/sdk-libs/photon-api/docs/GetTransactionWithCompressionInfoV2PostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetTransactionWithCompressionInfoV2PostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetTransactionWithCompressionInfoPostRequestParams**](_getTransactionWithCompressionInfo_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetValidityProofPost200Response.md b/sdk-libs/photon-api/docs/GetValidityProofPost200Response.md deleted file mode 100644 index 0b6b7ebded..0000000000 --- a/sdk-libs/photon-api/docs/GetValidityProofPost200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetValidityProofPost200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetValidityProofPost200ResponseResult**](_getValidityProof_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetValidityProofPost200ResponseResult.md b/sdk-libs/photon-api/docs/GetValidityProofPost200ResponseResult.md deleted file mode 100644 index 5de84ddbda..0000000000 --- a/sdk-libs/photon-api/docs/GetValidityProofPost200ResponseResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetValidityProofPost200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**models::Context**](Context.md) | | -**value** | [**models::CompressedProofWithContext**](CompressedProofWithContext.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetValidityProofPostRequest.md b/sdk-libs/photon-api/docs/GetValidityProofPostRequest.md deleted file mode 100644 index 8bdde8d269..0000000000 --- a/sdk-libs/photon-api/docs/GetValidityProofPostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetValidityProofPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetValidityProofPostRequestParams**](_getValidityProof_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetValidityProofPostRequestParams.md b/sdk-libs/photon-api/docs/GetValidityProofPostRequestParams.md deleted file mode 100644 index 1a00139dab..0000000000 --- a/sdk-libs/photon-api/docs/GetValidityProofPostRequestParams.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetValidityProofPostRequestParams - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hashes** | Option<**Vec**> | | [optional] -**new_addresses_with_trees** | Option<[**Vec**](AddressWithTree.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetValidityProofV2Post200Response.md b/sdk-libs/photon-api/docs/GetValidityProofV2Post200Response.md deleted file mode 100644 index ca7e75fc43..0000000000 --- a/sdk-libs/photon-api/docs/GetValidityProofV2Post200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetValidityProofV2Post200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | Option<[**models::GetBatchAddressUpdateInfoPost200ResponseError**](_getBatchAddressUpdateInfo_post_200_response_error.md)> | | [optional] -**id** | **String** | An ID to identify the response. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**result** | Option<[**models::GetValidityProofV2Post200ResponseResult**](_getValidityProofV2_post_200_response_result.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetValidityProofV2Post200ResponseResult.md b/sdk-libs/photon-api/docs/GetValidityProofV2Post200ResponseResult.md deleted file mode 100644 index 3bf19e72e8..0000000000 --- a/sdk-libs/photon-api/docs/GetValidityProofV2Post200ResponseResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetValidityProofV2Post200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**models::Context**](Context.md) | | -**value** | [**models::CompressedProofWithContextV2**](CompressedProofWithContextV2.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/GetValidityProofV2PostRequest.md b/sdk-libs/photon-api/docs/GetValidityProofV2PostRequest.md deleted file mode 100644 index 1faca98a50..0000000000 --- a/sdk-libs/photon-api/docs/GetValidityProofV2PostRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetValidityProofV2PostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | An ID to identify the request. | -**jsonrpc** | **String** | The version of the JSON-RPC protocol. | -**method** | **String** | The name of the method to invoke. | -**params** | [**models::GetValidityProofPostRequestParams**](_getValidityProof_post_request_params.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/Memcmp.md b/sdk-libs/photon-api/docs/Memcmp.md deleted file mode 100644 index 9cd5afc4c2..0000000000 --- a/sdk-libs/photon-api/docs/Memcmp.md +++ /dev/null @@ -1,12 +0,0 @@ -# Memcmp - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bytes** | **String** | A base 58 encoded string. | [default to 3J98t1WpEZ73CNm] -**offset** | **u32** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/MerkleContextV2.md b/sdk-libs/photon-api/docs/MerkleContextV2.md deleted file mode 100644 index 8eccad3a79..0000000000 --- a/sdk-libs/photon-api/docs/MerkleContextV2.md +++ /dev/null @@ -1,15 +0,0 @@ -# MerkleContextV2 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cpi_context** | Option<**String**> | A Solana public key represented as a base58 string. | [optional][default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] -**next_tree_context** | Option<[**models::TreeContextInfo**](TreeContextInfo.md)> | | [optional] -**queue** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] -**tree** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] -**tree_type** | **i32** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/MerkleContextWithNewAddressProof.md b/sdk-libs/photon-api/docs/MerkleContextWithNewAddressProof.md deleted file mode 100644 index 8ced90a79c..0000000000 --- a/sdk-libs/photon-api/docs/MerkleContextWithNewAddressProof.md +++ /dev/null @@ -1,19 +0,0 @@ -# MerkleContextWithNewAddressProof - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**address** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] -**higher_range_address** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] -**low_element_leaf_index** | **i32** | | -**lower_range_address** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] -**merkle_tree** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] -**next_index** | **i32** | | -**proof** | **Vec** | | -**root** | **String** | A 32-byte hash represented as a base58 string. | -**root_seq** | **i32** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/OwnerBalance.md b/sdk-libs/photon-api/docs/OwnerBalance.md deleted file mode 100644 index 406ba5b9ce..0000000000 --- a/sdk-libs/photon-api/docs/OwnerBalance.md +++ /dev/null @@ -1,12 +0,0 @@ -# OwnerBalance - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**balance** | **i32** | | [default to 100] -**owner** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/OwnerBalanceList.md b/sdk-libs/photon-api/docs/OwnerBalanceList.md deleted file mode 100644 index 5229bc0856..0000000000 --- a/sdk-libs/photon-api/docs/OwnerBalanceList.md +++ /dev/null @@ -1,12 +0,0 @@ -# OwnerBalanceList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cursor** | Option<**String**> | A base 58 encoded string. | [optional][default to 3J98t1WpEZ73CNm] -**items** | [**Vec**](OwnerBalance.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/OwnerBalancesResponse.md b/sdk-libs/photon-api/docs/OwnerBalancesResponse.md deleted file mode 100644 index 5c050554af..0000000000 --- a/sdk-libs/photon-api/docs/OwnerBalancesResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# OwnerBalancesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**models::Context**](Context.md) | | -**value** | [**models::OwnerBalanceList**](OwnerBalanceList.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/PaginatedAccountList.md b/sdk-libs/photon-api/docs/PaginatedAccountList.md deleted file mode 100644 index 0c24bae6e1..0000000000 --- a/sdk-libs/photon-api/docs/PaginatedAccountList.md +++ /dev/null @@ -1,12 +0,0 @@ -# PaginatedAccountList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cursor** | Option<**String**> | A 32-byte hash represented as a base58 string. | [optional] -**items** | [**Vec**](Account.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/PaginatedAccountListV2.md b/sdk-libs/photon-api/docs/PaginatedAccountListV2.md deleted file mode 100644 index da866d3af9..0000000000 --- a/sdk-libs/photon-api/docs/PaginatedAccountListV2.md +++ /dev/null @@ -1,12 +0,0 @@ -# PaginatedAccountListV2 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cursor** | Option<**String**> | A 32-byte hash represented as a base58 string. | [optional] -**items** | [**Vec**](AccountV2.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/PaginatedSignatureInfoList.md b/sdk-libs/photon-api/docs/PaginatedSignatureInfoList.md deleted file mode 100644 index 51cd66bd34..0000000000 --- a/sdk-libs/photon-api/docs/PaginatedSignatureInfoList.md +++ /dev/null @@ -1,12 +0,0 @@ -# PaginatedSignatureInfoList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cursor** | Option<**String**> | | [optional] -**items** | [**Vec**](SignatureInfo.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/RootIndex.md b/sdk-libs/photon-api/docs/RootIndex.md deleted file mode 100644 index a3ffee4d38..0000000000 --- a/sdk-libs/photon-api/docs/RootIndex.md +++ /dev/null @@ -1,12 +0,0 @@ -# RootIndex - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**prove_by_index** | **bool** | | -**root_index** | **i32** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/SignatureInfo.md b/sdk-libs/photon-api/docs/SignatureInfo.md deleted file mode 100644 index 56a5ee3ed3..0000000000 --- a/sdk-libs/photon-api/docs/SignatureInfo.md +++ /dev/null @@ -1,13 +0,0 @@ -# SignatureInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**block_time** | **i32** | An Unix timestamp (seconds) | [default to 1714081554] -**signature** | **String** | A Solana transaction signature. | [default to 5J8H5sTvEhnGcB4R8K1n7mfoiWUD9RzPVGES7e3WxC7c] -**slot** | **i32** | | [default to 100] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/SignatureInfoList.md b/sdk-libs/photon-api/docs/SignatureInfoList.md deleted file mode 100644 index f1b06ac576..0000000000 --- a/sdk-libs/photon-api/docs/SignatureInfoList.md +++ /dev/null @@ -1,11 +0,0 @@ -# SignatureInfoList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**Vec**](SignatureInfo.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/SignatureInfoListWithError.md b/sdk-libs/photon-api/docs/SignatureInfoListWithError.md deleted file mode 100644 index 8cb680b433..0000000000 --- a/sdk-libs/photon-api/docs/SignatureInfoListWithError.md +++ /dev/null @@ -1,11 +0,0 @@ -# SignatureInfoListWithError - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**Vec**](SignatureInfoWithError.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/SignatureInfoWithError.md b/sdk-libs/photon-api/docs/SignatureInfoWithError.md deleted file mode 100644 index a51da9f6c5..0000000000 --- a/sdk-libs/photon-api/docs/SignatureInfoWithError.md +++ /dev/null @@ -1,14 +0,0 @@ -# SignatureInfoWithError - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**block_time** | **i32** | An Unix timestamp (seconds) | [default to 1714081554] -**error** | Option<**String**> | | [optional] -**signature** | **String** | A Solana transaction signature. | [default to 5J8H5sTvEhnGcB4R8K1n7mfoiWUD9RzPVGES7e3WxC7c] -**slot** | **i32** | | [default to 100] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/TokenAccount.md b/sdk-libs/photon-api/docs/TokenAccount.md deleted file mode 100644 index 584624af00..0000000000 --- a/sdk-libs/photon-api/docs/TokenAccount.md +++ /dev/null @@ -1,12 +0,0 @@ -# TokenAccount - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**account** | [**models::Account**](Account.md) | | -**token_data** | [**models::TokenData**](TokenData.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/TokenAccountBalance.md b/sdk-libs/photon-api/docs/TokenAccountBalance.md deleted file mode 100644 index f2c5d05bf0..0000000000 --- a/sdk-libs/photon-api/docs/TokenAccountBalance.md +++ /dev/null @@ -1,11 +0,0 @@ -# TokenAccountBalance - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **i32** | | [default to 100] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/TokenAccountList.md b/sdk-libs/photon-api/docs/TokenAccountList.md deleted file mode 100644 index c934f96328..0000000000 --- a/sdk-libs/photon-api/docs/TokenAccountList.md +++ /dev/null @@ -1,12 +0,0 @@ -# TokenAccountList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cursor** | Option<**String**> | A base 58 encoded string. | [optional][default to 3J98t1WpEZ73CNm] -**items** | [**Vec**](TokenAccount.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/TokenAccountListV2.md b/sdk-libs/photon-api/docs/TokenAccountListV2.md deleted file mode 100644 index 363fa3954e..0000000000 --- a/sdk-libs/photon-api/docs/TokenAccountListV2.md +++ /dev/null @@ -1,12 +0,0 @@ -# TokenAccountListV2 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cursor** | Option<**String**> | A base 58 encoded string. | [optional][default to 3J98t1WpEZ73CNm] -**items** | [**Vec**](TokenAccountV2.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/TokenAccountV2.md b/sdk-libs/photon-api/docs/TokenAccountV2.md deleted file mode 100644 index 3574d9cea5..0000000000 --- a/sdk-libs/photon-api/docs/TokenAccountV2.md +++ /dev/null @@ -1,12 +0,0 @@ -# TokenAccountV2 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**account** | [**models::AccountV2**](AccountV2.md) | | -**token_data** | [**models::TokenData**](TokenData.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/TokenBalance.md b/sdk-libs/photon-api/docs/TokenBalance.md deleted file mode 100644 index 43b08d66a7..0000000000 --- a/sdk-libs/photon-api/docs/TokenBalance.md +++ /dev/null @@ -1,12 +0,0 @@ -# TokenBalance - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**balance** | **i32** | | [default to 100] -**mint** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/TokenBalanceList.md b/sdk-libs/photon-api/docs/TokenBalanceList.md deleted file mode 100644 index e60eeed199..0000000000 --- a/sdk-libs/photon-api/docs/TokenBalanceList.md +++ /dev/null @@ -1,12 +0,0 @@ -# TokenBalanceList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cursor** | Option<**String**> | A base 58 encoded string. | [optional][default to 3J98t1WpEZ73CNm] -**token_balances** | [**Vec**](TokenBalance.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/TokenBalanceListV2.md b/sdk-libs/photon-api/docs/TokenBalanceListV2.md deleted file mode 100644 index 5a60e0ccc0..0000000000 --- a/sdk-libs/photon-api/docs/TokenBalanceListV2.md +++ /dev/null @@ -1,12 +0,0 @@ -# TokenBalanceListV2 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cursor** | Option<**String**> | A base 58 encoded string. | [optional][default to 3J98t1WpEZ73CNm] -**items** | [**Vec**](TokenBalance.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/TokenData.md b/sdk-libs/photon-api/docs/TokenData.md deleted file mode 100644 index a9789337ef..0000000000 --- a/sdk-libs/photon-api/docs/TokenData.md +++ /dev/null @@ -1,16 +0,0 @@ -# TokenData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **i32** | | [default to 100] -**delegate** | Option<**String**> | A Solana public key represented as a base58 string. | [optional][default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] -**mint** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] -**owner** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] -**state** | [**models::AccountState**](AccountState.md) | | -**tlv** | Option<**String**> | A base 64 encoded string. | [optional][default to SGVsbG8sIFdvcmxkIQ==] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/docs/TreeContextInfo.md b/sdk-libs/photon-api/docs/TreeContextInfo.md deleted file mode 100644 index 807c2e3d70..0000000000 --- a/sdk-libs/photon-api/docs/TreeContextInfo.md +++ /dev/null @@ -1,14 +0,0 @@ -# TreeContextInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cpi_context** | Option<**String**> | A Solana public key represented as a base58 string. | [optional][default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] -**queue** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] -**tree** | **String** | A Solana public key represented as a base58 string. | [default to 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs] -**tree_type** | **i32** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk-libs/photon-api/git_push.sh b/sdk-libs/photon-api/git_push.sh deleted file mode 100644 index f53a75d4fa..0000000000 --- a/sdk-libs/photon-api/git_push.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=$(git remote) -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' diff --git a/sdk-libs/photon-api/src/apis/configuration.rs b/sdk-libs/photon-api/src/apis/configuration.rs deleted file mode 100644 index e9c4429eac..0000000000 --- a/sdk-libs/photon-api/src/apis/configuration.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -#[derive(Debug, Clone)] -pub struct Configuration { - pub base_path: String, - pub user_agent: Option, - pub client: reqwest::Client, - pub basic_auth: Option, - pub oauth_access_token: Option, - pub bearer_access_token: Option, - pub api_key: Option, - // TODO: take an oauth2 token source, similar to the go one -} - -pub type BasicAuth = (String, Option); - -#[derive(Debug, Clone)] -pub struct ApiKey { - pub prefix: Option, - pub key: String, -} - -impl Configuration { - pub fn new() -> Configuration { - Configuration::default() - } - - pub fn new_with_api(url: String, api_key: Option) -> Configuration { - Configuration { - base_path: url, - api_key: api_key.map(|key| ApiKey { - prefix: Some("api-key".to_string()), - key, - }), - ..Default::default() - } - } -} - -impl Default for Configuration { - fn default() -> Self { - Configuration { - base_path: "https://devnet.helius-rpc.com?api-key=".to_owned(), - user_agent: Some("OpenAPI-Generator/0.50.0/rust".to_owned()), - client: reqwest::Client::new(), - basic_auth: None, - oauth_access_token: None, - bearer_access_token: None, - api_key: None, - } - } -} diff --git a/sdk-libs/photon-api/src/apis/default_api.rs b/sdk-libs/photon-api/src/apis/default_api.rs deleted file mode 100644 index d0dd52fa51..0000000000 --- a/sdk-libs/photon-api/src/apis/default_api.rs +++ /dev/null @@ -1,2007 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use reqwest; - -use super::{configuration, Error}; -use crate::{ - apis::{configuration::Configuration, ResponseContent}, - models, -}; - -/// struct for typed errors of method [`get_batch_address_update_info_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetBatchAddressUpdateInfoPostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_compressed_account_balance_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetCompressedAccountBalancePostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_compressed_account_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetCompressedAccountPostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_compressed_account_proof_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetCompressedAccountProofPostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_compressed_account_proof_v2_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetCompressedAccountProofV2PostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_compressed_account_v2_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetCompressedAccountV2PostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_compressed_accounts_by_owner_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetCompressedAccountsByOwnerPostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_compressed_accounts_by_owner_v2_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetCompressedAccountsByOwnerV2PostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_compressed_balance_by_owner_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetCompressedBalanceByOwnerPostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_compressed_mint_token_holders_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetCompressedMintTokenHoldersPostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_compressed_token_account_balance_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetCompressedTokenAccountBalancePostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_compressed_token_accounts_by_delegate_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetCompressedTokenAccountsByDelegatePostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_compressed_token_accounts_by_delegate_v2_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetCompressedTokenAccountsByDelegateV2PostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_compressed_token_accounts_by_owner_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetCompressedTokenAccountsByOwnerPostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_compressed_token_accounts_by_owner_v2_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetCompressedTokenAccountsByOwnerV2PostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_compressed_token_balances_by_owner_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetCompressedTokenBalancesByOwnerPostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_compressed_token_balances_by_owner_v2_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetCompressedTokenBalancesByOwnerV2PostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_compression_signatures_for_account_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetCompressionSignaturesForAccountPostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_compression_signatures_for_address_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetCompressionSignaturesForAddressPostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_compression_signatures_for_owner_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetCompressionSignaturesForOwnerPostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_compression_signatures_for_token_owner_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetCompressionSignaturesForTokenOwnerPostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_indexer_health_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetIndexerHealthPostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_indexer_slot_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetIndexerSlotPostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_latest_compression_signatures_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetLatestCompressionSignaturesPostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_latest_non_voting_signatures_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetLatestNonVotingSignaturesPostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_multiple_compressed_account_proofs_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetMultipleCompressedAccountProofsPostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_multiple_compressed_account_proofs_v2_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetMultipleCompressedAccountProofsV2PostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_multiple_compressed_accounts_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetMultipleCompressedAccountsPostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_multiple_compressed_accounts_v2_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetMultipleCompressedAccountsV2PostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_multiple_new_address_proofs_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetMultipleNewAddressProofsPostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_multiple_new_address_proofs_v2_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetMultipleNewAddressProofsV2PostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_queue_info_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetQueueInfoPostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_queue_elements_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetQueueElementsPostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_transaction_with_compression_info_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetTransactionWithCompressionInfoPostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_transaction_with_compression_info_v2_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetTransactionWithCompressionInfoV2PostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_validity_proof_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetValidityProofPostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`get_validity_proof_v2_post`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum GetValidityProofV2PostError { - Status429(models::GetBatchAddressUpdateInfoPost429Response), - Status500(models::GetBatchAddressUpdateInfoPost429Response), - UnknownValue(serde_json::Value), -} - -pub async fn get_batch_address_update_info_post( - configuration: &configuration::Configuration, - get_batch_address_update_info_post_request: models::GetBatchAddressUpdateInfoPostRequest, -) -> Result< - models::GetBatchAddressUpdateInfoPost200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getBatchAddressUpdateInfo", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = local_var_req_builder.json(&get_batch_address_update_info_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_compressed_account_balance_post( - configuration: &configuration::Configuration, - get_compressed_account_balance_post_request: models::GetCompressedAccountBalancePostRequest, -) -> Result< - models::GetCompressedAccountBalancePost200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getCompressedAccountBalance", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_compressed_account_balance_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_compressed_account_post( - configuration: &configuration::Configuration, - get_compressed_account_post_request: models::GetCompressedAccountPostRequest, -) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!("{}/getCompressedAccount", local_var_configuration.base_path); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = local_var_req_builder.json(&get_compressed_account_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_compressed_account_proof_post( - configuration: &configuration::Configuration, - get_compressed_account_proof_post_request: models::GetCompressedAccountProofPostRequest, -) -> Result< - models::GetCompressedAccountProofPost200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getCompressedAccountProof", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = local_var_req_builder.json(&get_compressed_account_proof_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_compressed_account_proof_v2_post( - configuration: &configuration::Configuration, - get_compressed_account_proof_v2_post_request: models::GetCompressedAccountProofV2PostRequest, -) -> Result< - models::GetCompressedAccountProofV2Post200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getCompressedAccountProofV2", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_compressed_account_proof_v2_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_compressed_account_v2_post( - configuration: &configuration::Configuration, - get_compressed_account_v2_post_request: models::GetCompressedAccountV2PostRequest, -) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getCompressedAccountV2", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = local_var_req_builder.json(&get_compressed_account_v2_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_compressed_accounts_by_owner_post( - configuration: &configuration::Configuration, - get_compressed_accounts_by_owner_post_request: models::GetCompressedAccountsByOwnerPostRequest, -) -> Result< - models::GetCompressedAccountsByOwnerPost200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getCompressedAccountsByOwner", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_compressed_accounts_by_owner_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_compressed_accounts_by_owner_v2_post( - configuration: &configuration::Configuration, - get_compressed_accounts_by_owner_v2_post_request: models::GetCompressedAccountsByOwnerV2PostRequest, -) -> Result< - models::GetCompressedAccountsByOwnerV2Post200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getCompressedAccountsByOwnerV2", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_compressed_accounts_by_owner_v2_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_compressed_balance_by_owner_post( - configuration: &configuration::Configuration, - get_compressed_balance_by_owner_post_request: models::GetCompressedBalanceByOwnerPostRequest, -) -> Result< - models::GetCompressedAccountBalancePost200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getCompressedBalanceByOwner", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_compressed_balance_by_owner_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_compressed_mint_token_holders_post( - configuration: &configuration::Configuration, - get_compressed_mint_token_holders_post_request: models::GetCompressedMintTokenHoldersPostRequest, -) -> Result< - models::GetCompressedMintTokenHoldersPost200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getCompressedMintTokenHolders", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_compressed_mint_token_holders_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_compressed_token_account_balance_post( - configuration: &configuration::Configuration, - get_compressed_token_account_balance_post_request: models::GetCompressedTokenAccountBalancePostRequest, -) -> Result< - models::GetCompressedTokenAccountBalancePost200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getCompressedTokenAccountBalance", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_compressed_token_account_balance_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_compressed_token_accounts_by_delegate_post( - configuration: &configuration::Configuration, - get_compressed_token_accounts_by_delegate_post_request: models::GetCompressedTokenAccountsByDelegatePostRequest, -) -> Result< - models::GetCompressedTokenAccountsByDelegatePost200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getCompressedTokenAccountsByDelegate", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_compressed_token_accounts_by_delegate_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_compressed_token_accounts_by_delegate_v2_post( - configuration: &configuration::Configuration, - get_compressed_token_accounts_by_delegate_v2_post_request: models::GetCompressedTokenAccountsByDelegateV2PostRequest, -) -> Result< - models::GetCompressedTokenAccountsByDelegateV2Post200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getCompressedTokenAccountsByDelegateV2", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_compressed_token_accounts_by_delegate_v2_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_compressed_token_accounts_by_owner_post( - configuration: &configuration::Configuration, - get_compressed_token_accounts_by_owner_post_request: models::GetCompressedTokenAccountsByOwnerPostRequest, -) -> Result< - models::GetCompressedTokenAccountsByDelegatePost200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getCompressedTokenAccountsByOwner", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_compressed_token_accounts_by_owner_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_compressed_token_accounts_by_owner_v2_post( - configuration: &configuration::Configuration, - get_compressed_token_accounts_by_owner_v2_post_request: models::GetCompressedTokenAccountsByOwnerV2PostRequest, -) -> Result< - models::GetCompressedTokenAccountsByDelegateV2Post200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getCompressedTokenAccountsByOwnerV2", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_compressed_token_accounts_by_owner_v2_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_compressed_token_balances_by_owner_post( - configuration: &configuration::Configuration, - get_compressed_token_balances_by_owner_post_request: models::GetCompressedTokenBalancesByOwnerPostRequest, -) -> Result< - models::GetCompressedTokenBalancesByOwnerPost200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getCompressedTokenBalancesByOwner", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_compressed_token_balances_by_owner_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_compressed_token_balances_by_owner_v2_post( - configuration: &configuration::Configuration, - get_compressed_token_balances_by_owner_v2_post_request: models::GetCompressedTokenBalancesByOwnerV2PostRequest, -) -> Result< - models::GetCompressedTokenBalancesByOwnerV2Post200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getCompressedTokenBalancesByOwnerV2", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_compressed_token_balances_by_owner_v2_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_compression_signatures_for_account_post( - configuration: &configuration::Configuration, - get_compression_signatures_for_account_post_request: models::GetCompressionSignaturesForAccountPostRequest, -) -> Result< - models::GetCompressionSignaturesForAccountPost200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getCompressionSignaturesForAccount", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_compression_signatures_for_account_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_compression_signatures_for_address_post( - configuration: &configuration::Configuration, - get_compression_signatures_for_address_post_request: models::GetCompressionSignaturesForAddressPostRequest, -) -> Result< - models::GetCompressionSignaturesForAddressPost200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getCompressionSignaturesForAddress", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_compression_signatures_for_address_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_compression_signatures_for_owner_post( - configuration: &configuration::Configuration, - get_compression_signatures_for_owner_post_request: models::GetCompressionSignaturesForOwnerPostRequest, -) -> Result< - models::GetCompressionSignaturesForAddressPost200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getCompressionSignaturesForOwner", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_compression_signatures_for_owner_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_compression_signatures_for_token_owner_post( - configuration: &configuration::Configuration, - get_compression_signatures_for_token_owner_post_request: models::GetCompressionSignaturesForTokenOwnerPostRequest, -) -> Result< - models::GetCompressionSignaturesForAddressPost200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getCompressionSignaturesForTokenOwner", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_compression_signatures_for_token_owner_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_indexer_health_post( - configuration: &configuration::Configuration, - get_indexer_health_post_request: models::GetIndexerHealthPostRequest, -) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!("{}/getIndexerHealth", local_var_configuration.base_path); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = local_var_req_builder.json(&get_indexer_health_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_indexer_slot_post( - configuration: &configuration::Configuration, - get_indexer_slot_post_request: models::GetIndexerSlotPostRequest, -) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!("{}/getIndexerSlot", local_var_configuration.base_path); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = local_var_req_builder.json(&get_indexer_slot_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_latest_compression_signatures_post( - configuration: &configuration::Configuration, - get_latest_compression_signatures_post_request: models::GetLatestCompressionSignaturesPostRequest, -) -> Result< - models::GetCompressionSignaturesForAddressPost200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getLatestCompressionSignatures", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_latest_compression_signatures_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_latest_non_voting_signatures_post( - configuration: &configuration::Configuration, - get_latest_non_voting_signatures_post_request: models::GetLatestNonVotingSignaturesPostRequest, -) -> Result< - models::GetLatestNonVotingSignaturesPost200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getLatestNonVotingSignatures", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_latest_non_voting_signatures_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_multiple_compressed_account_proofs_post( - configuration: &configuration::Configuration, - get_multiple_compressed_account_proofs_post_request: models::GetMultipleCompressedAccountProofsPostRequest, -) -> Result< - models::GetMultipleCompressedAccountProofsPost200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getMultipleCompressedAccountProofs", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_multiple_compressed_account_proofs_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_multiple_compressed_account_proofs_v2_post( - configuration: &configuration::Configuration, - get_multiple_compressed_account_proofs_v2_post_request: models::GetMultipleCompressedAccountProofsV2PostRequest, -) -> Result< - models::GetMultipleCompressedAccountProofsV2Post200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getMultipleCompressedAccountProofsV2", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_multiple_compressed_account_proofs_v2_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_multiple_compressed_accounts_post( - configuration: &configuration::Configuration, - get_multiple_compressed_accounts_post_request: models::GetMultipleCompressedAccountsPostRequest, -) -> Result< - models::GetMultipleCompressedAccountsPost200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getMultipleCompressedAccounts", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_multiple_compressed_accounts_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_multiple_compressed_accounts_v2_post( - configuration: &configuration::Configuration, - get_multiple_compressed_accounts_v2_post_request: models::GetMultipleCompressedAccountsV2PostRequest, -) -> Result< - models::GetMultipleCompressedAccountsV2Post200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getMultipleCompressedAccountsV2", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_multiple_compressed_accounts_v2_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_multiple_new_address_proofs_post( - configuration: &configuration::Configuration, - get_multiple_new_address_proofs_post_request: models::GetMultipleNewAddressProofsPostRequest, -) -> Result< - models::GetMultipleNewAddressProofsPost200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getMultipleNewAddressProofs", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_multiple_new_address_proofs_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_multiple_new_address_proofs_v2_post( - configuration: &configuration::Configuration, - get_multiple_new_address_proofs_v2_post_request: models::GetMultipleNewAddressProofsV2PostRequest, -) -> Result< - models::GetMultipleNewAddressProofsPost200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getMultipleNewAddressProofsV2", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_multiple_new_address_proofs_v2_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_queue_info_post( - configuration: &configuration::Configuration, - get_queue_info_post_request: models::GetQueueInfoPostRequest, -) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!("{}/getQueueInfo", local_var_configuration.base_path); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = local_var_req_builder.json(&get_queue_info_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_queue_elements_post( - configuration: &configuration::Configuration, - get_queue_elements_post_request: models::GetQueueElementsPostRequest, -) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!("{}/getQueueElements", local_var_configuration.base_path); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = local_var_req_builder.json(&get_queue_elements_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_transaction_with_compression_info_post( - configuration: &configuration::Configuration, - get_transaction_with_compression_info_post_request: models::GetTransactionWithCompressionInfoPostRequest, -) -> Result< - models::GetTransactionWithCompressionInfoPost200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getTransactionWithCompressionInfo", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_transaction_with_compression_info_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_transaction_with_compression_info_v2_post( - configuration: &configuration::Configuration, - get_transaction_with_compression_info_v2_post_request: models::GetTransactionWithCompressionInfoV2PostRequest, -) -> Result< - models::GetTransactionWithCompressionInfoV2Post200Response, - Error, -> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/getTransactionWithCompressionInfoV2", - local_var_configuration.base_path - ); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = - local_var_req_builder.json(&get_transaction_with_compression_info_v2_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_validity_proof_post( - configuration: &configuration::Configuration, - get_validity_proof_post_request: models::GetValidityProofPostRequest, -) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!("{}/getValidityProof", local_var_configuration.base_path); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = local_var_req_builder.json(&get_validity_proof_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -pub async fn get_validity_proof_v2_post( - configuration: &configuration::Configuration, - get_validity_proof_v2_post_request: models::GetValidityProofV2PostRequest, -) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!("{}/getValidityProofV2", local_var_configuration.base_path); - let local_var_uri_str = append_api_key(local_var_configuration, &local_var_uri_str); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - local_var_req_builder = local_var_req_builder.json(&get_validity_proof_v2_post_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) - } -} - -fn append_api_key(configuration: &Configuration, uri_str: &str) -> String { - let mut uri_str = uri_str.to_string(); - if let Some(ref api_key) = configuration.api_key { - let prefix = api_key.prefix.clone().unwrap_or("api-key".to_string()); - uri_str = format!("{}?{}={}", uri_str, prefix, api_key.key); - } - uri_str -} diff --git a/sdk-libs/photon-api/src/apis/mod.rs b/sdk-libs/photon-api/src/apis/mod.rs deleted file mode 100644 index fd6f1f3177..0000000000 --- a/sdk-libs/photon-api/src/apis/mod.rs +++ /dev/null @@ -1,96 +0,0 @@ -use std::{error, fmt}; - -#[derive(Debug, Clone)] -pub struct ResponseContent { - pub status: reqwest::StatusCode, - pub content: String, - pub entity: Option, -} - -#[derive(Debug)] -pub enum Error { - Reqwest(reqwest::Error), - Serde(serde_json::Error), - Io(std::io::Error), - ResponseError(ResponseContent), -} - -impl fmt::Display for Error { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - let (module, e) = match self { - Error::Reqwest(e) => ("reqwest", e.to_string()), - Error::Serde(e) => ("serde", e.to_string()), - Error::Io(e) => ("IO", e.to_string()), - Error::ResponseError(e) => ("response", format!("status code {}", e.status)), - }; - write!(f, "error in {}: {}", module, e) - } -} - -impl error::Error for Error { - fn source(&self) -> Option<&(dyn error::Error + 'static)> { - match self { - Error::Reqwest(e) => Some(e), - Error::Serde(e) => Some(e), - Error::Io(e) => Some(e), - Error::ResponseError(_) => None, - } - } -} - -impl From for Error { - fn from(e: reqwest::Error) -> Self { - Error::Reqwest(e) - } -} - -impl From for Error { - fn from(e: serde_json::Error) -> Self { - Error::Serde(e) - } -} - -impl From for Error { - fn from(e: std::io::Error) -> Self { - Error::Io(e) - } -} - -pub fn urlencode>(s: T) -> String { - ::url::form_urlencoded::byte_serialize(s.as_ref().as_bytes()).collect() -} - -pub fn parse_deep_object(prefix: &str, value: &serde_json::Value) -> Vec<(String, String)> { - if let serde_json::Value::Object(object) = value { - let mut params = vec![]; - - for (key, value) in object { - match value { - serde_json::Value::Object(_) => params.append(&mut parse_deep_object( - &format!("{}[{}]", prefix, key), - value, - )), - serde_json::Value::Array(array) => { - for (i, value) in array.iter().enumerate() { - params.append(&mut parse_deep_object( - &format!("{}[{}][{}]", prefix, key, i), - value, - )); - } - } - serde_json::Value::String(s) => { - params.push((format!("{}[{}]", prefix, key), s.clone())) - } - _ => params.push((format!("{}[{}]", prefix, key), value.to_string())), - } - } - - return params; - } - - unimplemented!("Only objects are supported with style=deepObject") -} - -pub mod default_api; - -pub mod configuration; diff --git a/sdk-libs/photon-api/src/lib.rs b/sdk-libs/photon-api/src/lib.rs index 92760eb50e..b5874bc7e5 100644 --- a/sdk-libs/photon-api/src/lib.rs +++ b/sdk-libs/photon-api/src/lib.rs @@ -1,12 +1,582 @@ -#![allow(unused_imports)] +//! Photon API client generated from OpenAPI spec using progenitor. +//! +//! This crate provides a Rust client for the Photon indexer API. -#[macro_use] -extern crate serde_derive; +#![allow(unused_imports, clippy::all, dead_code)] +#![allow(mismatched_lifetime_syntaxes)] -extern crate reqwest; -extern crate serde; -extern crate serde_json; -extern crate url; +// Include the generated code from build.rs +include!(concat!(env!("OUT_DIR"), "/codegen.rs")); -pub mod apis; -pub mod models; +/// Re-export commonly used types at the crate root for backward compatibility +pub mod models { + pub use super::types::*; +} + +/// Backward-compatible APIs module +pub mod apis { + use super::*; + + /// Configuration for the Photon API client + #[derive(Debug, Clone)] + pub struct Configuration { + pub base_path: String, + pub api_key: Option, + pub client: reqwest::Client, + pub user_agent: Option, + pub basic_auth: Option<(String, Option)>, + pub oauth_access_token: Option, + pub bearer_access_token: Option, + } + + impl Default for Configuration { + fn default() -> Self { + Self { + base_path: "https://devnet.helius-rpc.com".to_string(), + api_key: None, + client: reqwest::Client::new(), + user_agent: Some("progenitor/0.9".to_string()), + basic_auth: None, + oauth_access_token: None, + bearer_access_token: None, + } + } + } + + impl Configuration { + pub fn new() -> Self { + Self::default() + } + + pub fn new_with_api(url: String, api_key: Option) -> Self { + Self { + base_path: url, + api_key: api_key.map(|key| ApiKey { + prefix: Some("api-key".to_string()), + key, + }), + ..Default::default() + } + } + + /// Create a progenitor Client from this configuration + pub fn to_client(&self) -> Client { + Client::new_with_client(&self.base_path, self.client.clone()) + } + } + + #[derive(Debug, Clone)] + pub struct ApiKey { + pub prefix: Option, + pub key: String, + } + + pub type BasicAuth = (String, Option); + + pub mod configuration { + pub use super::{ApiKey, BasicAuth, Configuration}; + } + + /// Error type for API calls + #[derive(Debug)] + pub enum Error { + Reqwest(reqwest::Error), + Serde(serde_json::Error), + Io(std::io::Error), + ResponseError(ResponseContent), + } + + impl std::fmt::Display for Error { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + Error::Reqwest(e) => write!(f, "Request error: {}", e), + Error::Serde(e) => write!(f, "Serialization error: {}", e), + Error::Io(e) => write!(f, "IO error: {}", e), + Error::ResponseError(e) => write!(f, "Response error: {}", e.status), + } + } + } + + impl std::error::Error for Error {} + + impl From for Error { + fn from(e: reqwest::Error) -> Self { + Error::Reqwest(e) + } + } + + impl From for Error { + fn from(e: serde_json::Error) -> Self { + Error::Serde(e) + } + } + + impl From for Error { + fn from(e: std::io::Error) -> Self { + Error::Io(e) + } + } + + #[derive(Debug, Clone)] + pub struct ResponseContent { + pub status: reqwest::StatusCode, + pub content: String, + pub entity: Option, + } + + /// Default API module providing backward-compatible function-style API calls + pub mod default_api { + use super::*; + + // Body construction helper functions + pub fn make_get_compressed_account_body( + params: types::PostGetCompressedAccountBodyParams, + ) -> types::PostGetCompressedAccountBody { + types::PostGetCompressedAccountBody { + id: types::PostGetCompressedAccountBodyId::TestAccount, + jsonrpc: types::PostGetCompressedAccountBodyJsonrpc::_20, + method: types::PostGetCompressedAccountBodyMethod::GetCompressedAccount, + params, + } + } + + pub fn make_get_compressed_account_balance_body( + params: types::PostGetCompressedAccountBalanceBodyParams, + ) -> types::PostGetCompressedAccountBalanceBody { + types::PostGetCompressedAccountBalanceBody { + id: types::PostGetCompressedAccountBalanceBodyId::TestAccount, + jsonrpc: types::PostGetCompressedAccountBalanceBodyJsonrpc::_20, + method: types::PostGetCompressedAccountBalanceBodyMethod::GetCompressedAccountBalance, + params, + } + } + + pub fn make_get_compressed_accounts_by_owner_v2_body( + params: types::PostGetCompressedAccountsByOwnerV2BodyParams, + ) -> types::PostGetCompressedAccountsByOwnerV2Body { + types::PostGetCompressedAccountsByOwnerV2Body { + id: types::PostGetCompressedAccountsByOwnerV2BodyId::TestAccount, + jsonrpc: types::PostGetCompressedAccountsByOwnerV2BodyJsonrpc::_20, + method: types::PostGetCompressedAccountsByOwnerV2BodyMethod::GetCompressedAccountsByOwnerV2, + params, + } + } + + pub fn make_get_compressed_balance_by_owner_body( + params: types::PostGetCompressedBalanceByOwnerBodyParams, + ) -> types::PostGetCompressedBalanceByOwnerBody { + types::PostGetCompressedBalanceByOwnerBody { + id: types::PostGetCompressedBalanceByOwnerBodyId::TestAccount, + jsonrpc: types::PostGetCompressedBalanceByOwnerBodyJsonrpc::_20, + method: types::PostGetCompressedBalanceByOwnerBodyMethod::GetCompressedBalanceByOwner, + params, + } + } + + pub fn make_get_compressed_mint_token_holders_body( + params: types::PostGetCompressedMintTokenHoldersBodyParams, + ) -> types::PostGetCompressedMintTokenHoldersBody { + types::PostGetCompressedMintTokenHoldersBody { + id: types::PostGetCompressedMintTokenHoldersBodyId::TestAccount, + jsonrpc: types::PostGetCompressedMintTokenHoldersBodyJsonrpc::_20, + method: types::PostGetCompressedMintTokenHoldersBodyMethod::GetCompressedMintTokenHolders, + params, + } + } + + pub fn make_get_compressed_token_account_balance_body( + params: types::PostGetCompressedTokenAccountBalanceBodyParams, + ) -> types::PostGetCompressedTokenAccountBalanceBody { + types::PostGetCompressedTokenAccountBalanceBody { + id: types::PostGetCompressedTokenAccountBalanceBodyId::TestAccount, + jsonrpc: types::PostGetCompressedTokenAccountBalanceBodyJsonrpc::_20, + method: types::PostGetCompressedTokenAccountBalanceBodyMethod::GetCompressedTokenAccountBalance, + params, + } + } + + pub fn make_get_validity_proof_v2_body( + params: types::PostGetValidityProofV2BodyParams, + ) -> types::PostGetValidityProofV2Body { + types::PostGetValidityProofV2Body { + id: types::PostGetValidityProofV2BodyId::TestAccount, + jsonrpc: types::PostGetValidityProofV2BodyJsonrpc::_20, + method: types::PostGetValidityProofV2BodyMethod::GetValidityProofV2, + params, + } + } + + pub fn make_get_multiple_new_address_proofs_v2_body( + params: Vec, + ) -> types::PostGetMultipleNewAddressProofsV2Body { + types::PostGetMultipleNewAddressProofsV2Body { + id: types::PostGetMultipleNewAddressProofsV2BodyId::TestAccount, + jsonrpc: types::PostGetMultipleNewAddressProofsV2BodyJsonrpc::_20, + method: types::PostGetMultipleNewAddressProofsV2BodyMethod::GetMultipleNewAddressProofsV2, + params, + } + } + + pub fn make_get_compressed_token_accounts_by_delegate_v2_body( + params: types::PostGetCompressedTokenAccountsByDelegateV2BodyParams, + ) -> types::PostGetCompressedTokenAccountsByDelegateV2Body { + types::PostGetCompressedTokenAccountsByDelegateV2Body { + id: types::PostGetCompressedTokenAccountsByDelegateV2BodyId::TestAccount, + jsonrpc: types::PostGetCompressedTokenAccountsByDelegateV2BodyJsonrpc::_20, + method: types::PostGetCompressedTokenAccountsByDelegateV2BodyMethod::GetCompressedTokenAccountsByDelegateV2, + params, + } + } + + pub fn make_get_compressed_token_accounts_by_owner_v2_body( + params: types::PostGetCompressedTokenAccountsByOwnerV2BodyParams, + ) -> types::PostGetCompressedTokenAccountsByOwnerV2Body { + types::PostGetCompressedTokenAccountsByOwnerV2Body { + id: types::PostGetCompressedTokenAccountsByOwnerV2BodyId::TestAccount, + jsonrpc: types::PostGetCompressedTokenAccountsByOwnerV2BodyJsonrpc::_20, + method: types::PostGetCompressedTokenAccountsByOwnerV2BodyMethod::GetCompressedTokenAccountsByOwnerV2, + params, + } + } + + pub fn make_get_compressed_token_balances_by_owner_v2_body( + params: types::PostGetCompressedTokenBalancesByOwnerV2BodyParams, + ) -> types::PostGetCompressedTokenBalancesByOwnerV2Body { + types::PostGetCompressedTokenBalancesByOwnerV2Body { + id: types::PostGetCompressedTokenBalancesByOwnerV2BodyId::TestAccount, + jsonrpc: types::PostGetCompressedTokenBalancesByOwnerV2BodyJsonrpc::_20, + method: types::PostGetCompressedTokenBalancesByOwnerV2BodyMethod::GetCompressedTokenBalancesByOwnerV2, + params, + } + } + + pub fn make_get_compression_signatures_for_account_body( + params: types::PostGetCompressionSignaturesForAccountBodyParams, + ) -> types::PostGetCompressionSignaturesForAccountBody { + types::PostGetCompressionSignaturesForAccountBody { + id: types::PostGetCompressionSignaturesForAccountBodyId::TestAccount, + jsonrpc: types::PostGetCompressionSignaturesForAccountBodyJsonrpc::_20, + method: types::PostGetCompressionSignaturesForAccountBodyMethod::GetCompressionSignaturesForAccount, + params, + } + } + + pub fn make_get_compression_signatures_for_address_body( + params: types::PostGetCompressionSignaturesForAddressBodyParams, + ) -> types::PostGetCompressionSignaturesForAddressBody { + types::PostGetCompressionSignaturesForAddressBody { + id: types::PostGetCompressionSignaturesForAddressBodyId::TestAccount, + jsonrpc: types::PostGetCompressionSignaturesForAddressBodyJsonrpc::_20, + method: types::PostGetCompressionSignaturesForAddressBodyMethod::GetCompressionSignaturesForAddress, + params, + } + } + + pub fn make_get_compression_signatures_for_owner_body( + params: types::PostGetCompressionSignaturesForOwnerBodyParams, + ) -> types::PostGetCompressionSignaturesForOwnerBody { + types::PostGetCompressionSignaturesForOwnerBody { + id: types::PostGetCompressionSignaturesForOwnerBodyId::TestAccount, + jsonrpc: types::PostGetCompressionSignaturesForOwnerBodyJsonrpc::_20, + method: types::PostGetCompressionSignaturesForOwnerBodyMethod::GetCompressionSignaturesForOwner, + params, + } + } + + pub fn make_get_compression_signatures_for_token_owner_body( + params: types::PostGetCompressionSignaturesForTokenOwnerBodyParams, + ) -> types::PostGetCompressionSignaturesForTokenOwnerBody { + types::PostGetCompressionSignaturesForTokenOwnerBody { + id: types::PostGetCompressionSignaturesForTokenOwnerBodyId::TestAccount, + jsonrpc: types::PostGetCompressionSignaturesForTokenOwnerBodyJsonrpc::_20, + method: types::PostGetCompressionSignaturesForTokenOwnerBodyMethod::GetCompressionSignaturesForTokenOwner, + params, + } + } + + pub fn make_get_indexer_health_body() -> types::PostGetIndexerHealthBody { + types::PostGetIndexerHealthBody { + id: types::PostGetIndexerHealthBodyId::TestAccount, + jsonrpc: types::PostGetIndexerHealthBodyJsonrpc::_20, + method: types::PostGetIndexerHealthBodyMethod::GetIndexerHealth, + } + } + + pub fn make_get_indexer_slot_body() -> types::PostGetIndexerSlotBody { + types::PostGetIndexerSlotBody { + id: types::PostGetIndexerSlotBodyId::TestAccount, + jsonrpc: types::PostGetIndexerSlotBodyJsonrpc::_20, + method: types::PostGetIndexerSlotBodyMethod::GetIndexerSlot, + } + } + + pub fn make_get_multiple_compressed_account_proofs_body( + params: Vec, + ) -> types::PostGetMultipleCompressedAccountProofsBody { + types::PostGetMultipleCompressedAccountProofsBody { + id: types::PostGetMultipleCompressedAccountProofsBodyId::TestAccount, + jsonrpc: types::PostGetMultipleCompressedAccountProofsBodyJsonrpc::_20, + method: types::PostGetMultipleCompressedAccountProofsBodyMethod::GetMultipleCompressedAccountProofs, + params, + } + } + + pub fn make_get_multiple_compressed_accounts_body( + params: types::PostGetMultipleCompressedAccountsBodyParams, + ) -> types::PostGetMultipleCompressedAccountsBody { + types::PostGetMultipleCompressedAccountsBody { + id: types::PostGetMultipleCompressedAccountsBodyId::TestAccount, + jsonrpc: types::PostGetMultipleCompressedAccountsBodyJsonrpc::_20, + method: types::PostGetMultipleCompressedAccountsBodyMethod::GetMultipleCompressedAccounts, + params, + } + } + + pub fn make_get_validity_proof_body( + params: types::PostGetValidityProofBodyParams, + ) -> types::PostGetValidityProofBody { + types::PostGetValidityProofBody { + id: types::PostGetValidityProofBodyId::TestAccount, + jsonrpc: types::PostGetValidityProofBodyJsonrpc::_20, + method: types::PostGetValidityProofBodyMethod::GetValidityProof, + params, + } + } + + pub fn make_get_queue_elements_body( + params: types::PostGetQueueElementsBodyParams, + ) -> types::PostGetQueueElementsBody { + types::PostGetQueueElementsBody { + id: types::PostGetQueueElementsBodyId::TestAccount, + jsonrpc: types::PostGetQueueElementsBodyJsonrpc::_20, + method: types::PostGetQueueElementsBodyMethod::GetQueueElements, + params, + } + } + + // Macro to reduce boilerplate for API calls + macro_rules! api_call { + ($fn_name:ident, $client_method:ident, $body_type:ty, $response_type:ty) => { + pub async fn $fn_name( + configuration: &Configuration, + body: $body_type, + ) -> Result<$response_type, Error<$response_type>> { + let client = configuration.to_client(); + let response = client + .$client_method() + .body(body) + .send() + .await + .map_err(|e| match e { + progenitor_client::Error::InvalidRequest(msg) => { + Error::Serde(serde_json::Error::io(std::io::Error::other(msg))) + } + progenitor_client::Error::CommunicationError(e) => Error::Reqwest(e), + progenitor_client::Error::ErrorResponse(rv) => { + Error::ResponseError(ResponseContent { + status: rv.status(), + content: format!("{:?}", rv.into_inner()), + entity: None, + }) + } + progenitor_client::Error::InvalidResponsePayload(_, e) => { + Error::Serde(serde_json::Error::io(std::io::Error::other(e.to_string()))) + } + progenitor_client::Error::UnexpectedResponse(resp) => { + Error::ResponseError(ResponseContent { + status: resp.status(), + content: "Unexpected response".to_string(), + entity: None, + }) + } + progenitor_client::Error::ResponseBodyError(e) => Error::Reqwest(e), + progenitor_client::Error::InvalidUpgrade(e) => Error::Reqwest(e), + progenitor_client::Error::PreHookError(msg) => { + Error::Serde(serde_json::Error::io(std::io::Error::other(msg))) + } + progenitor_client::Error::PostHookError(msg) => { + Error::Serde(serde_json::Error::io(std::io::Error::other(msg))) + } + })?; + Ok(response.into_inner()) + } + }; + } + + api_call!( + get_compressed_account_post, + post_get_compressed_account, + types::PostGetCompressedAccountBody, + types::PostGetCompressedAccountResponse + ); + + api_call!( + get_compressed_account_balance_post, + post_get_compressed_account_balance, + types::PostGetCompressedAccountBalanceBody, + types::PostGetCompressedAccountBalanceResponse + ); + + api_call!( + get_compressed_accounts_by_owner_post, + post_get_compressed_accounts_by_owner, + types::PostGetCompressedAccountsByOwnerBody, + types::PostGetCompressedAccountsByOwnerResponse + ); + + api_call!( + get_compressed_accounts_by_owner_v2_post, + post_get_compressed_accounts_by_owner_v2, + types::PostGetCompressedAccountsByOwnerV2Body, + types::PostGetCompressedAccountsByOwnerV2Response + ); + + api_call!( + get_compressed_balance_by_owner_post, + post_get_compressed_balance_by_owner, + types::PostGetCompressedBalanceByOwnerBody, + types::PostGetCompressedBalanceByOwnerResponse + ); + + api_call!( + get_compressed_mint_token_holders_post, + post_get_compressed_mint_token_holders, + types::PostGetCompressedMintTokenHoldersBody, + types::PostGetCompressedMintTokenHoldersResponse + ); + + api_call!( + get_compressed_token_account_balance_post, + post_get_compressed_token_account_balance, + types::PostGetCompressedTokenAccountBalanceBody, + types::PostGetCompressedTokenAccountBalanceResponse + ); + + api_call!( + get_compressed_token_accounts_by_delegate_post, + post_get_compressed_token_accounts_by_delegate, + types::PostGetCompressedTokenAccountsByDelegateBody, + types::PostGetCompressedTokenAccountsByDelegateResponse + ); + + api_call!( + get_compressed_token_accounts_by_delegate_v2_post, + post_get_compressed_token_accounts_by_delegate_v2, + types::PostGetCompressedTokenAccountsByDelegateV2Body, + types::PostGetCompressedTokenAccountsByDelegateV2Response + ); + + api_call!( + get_compressed_token_accounts_by_owner_post, + post_get_compressed_token_accounts_by_owner, + types::PostGetCompressedTokenAccountsByOwnerBody, + types::PostGetCompressedTokenAccountsByOwnerResponse + ); + + api_call!( + get_compressed_token_accounts_by_owner_v2_post, + post_get_compressed_token_accounts_by_owner_v2, + types::PostGetCompressedTokenAccountsByOwnerV2Body, + types::PostGetCompressedTokenAccountsByOwnerV2Response + ); + + api_call!( + get_compressed_token_balances_by_owner_post, + post_get_compressed_token_balances_by_owner, + types::PostGetCompressedTokenBalancesByOwnerBody, + types::PostGetCompressedTokenBalancesByOwnerResponse + ); + + api_call!( + get_compressed_token_balances_by_owner_v2_post, + post_get_compressed_token_balances_by_owner_v2, + types::PostGetCompressedTokenBalancesByOwnerV2Body, + types::PostGetCompressedTokenBalancesByOwnerV2Response + ); + + api_call!( + get_compression_signatures_for_account_post, + post_get_compression_signatures_for_account, + types::PostGetCompressionSignaturesForAccountBody, + types::PostGetCompressionSignaturesForAccountResponse + ); + + api_call!( + get_compression_signatures_for_address_post, + post_get_compression_signatures_for_address, + types::PostGetCompressionSignaturesForAddressBody, + types::PostGetCompressionSignaturesForAddressResponse + ); + + api_call!( + get_compression_signatures_for_owner_post, + post_get_compression_signatures_for_owner, + types::PostGetCompressionSignaturesForOwnerBody, + types::PostGetCompressionSignaturesForOwnerResponse + ); + + api_call!( + get_compression_signatures_for_token_owner_post, + post_get_compression_signatures_for_token_owner, + types::PostGetCompressionSignaturesForTokenOwnerBody, + types::PostGetCompressionSignaturesForTokenOwnerResponse + ); + + api_call!( + get_indexer_health_post, + post_get_indexer_health, + types::PostGetIndexerHealthBody, + types::PostGetIndexerHealthResponse + ); + + api_call!( + get_indexer_slot_post, + post_get_indexer_slot, + types::PostGetIndexerSlotBody, + types::PostGetIndexerSlotResponse + ); + + api_call!( + get_multiple_compressed_account_proofs_post, + post_get_multiple_compressed_account_proofs, + types::PostGetMultipleCompressedAccountProofsBody, + types::PostGetMultipleCompressedAccountProofsResponse + ); + + api_call!( + get_multiple_compressed_accounts_post, + post_get_multiple_compressed_accounts, + types::PostGetMultipleCompressedAccountsBody, + types::PostGetMultipleCompressedAccountsResponse + ); + + api_call!( + get_multiple_new_address_proofs_v2_post, + post_get_multiple_new_address_proofs_v2, + types::PostGetMultipleNewAddressProofsV2Body, + types::PostGetMultipleNewAddressProofsV2Response + ); + + api_call!( + get_validity_proof_post, + post_get_validity_proof, + types::PostGetValidityProofBody, + types::PostGetValidityProofResponse + ); + + api_call!( + get_validity_proof_v2_post, + post_get_validity_proof_v2, + types::PostGetValidityProofV2Body, + types::PostGetValidityProofV2Response + ); + + api_call!( + get_queue_elements_post, + post_get_queue_elements, + types::PostGetQueueElementsBody, + types::PostGetQueueElementsResponse + ); + + } +} diff --git a/sdk-libs/photon-api/src/models/_get_batch_address_update_info_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_batch_address_update_info_post_200_response.rs deleted file mode 100644 index 8954e44e6d..0000000000 --- a/sdk-libs/photon-api/src/models/_get_batch_address_update_info_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetBatchAddressUpdateInfoPost200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetBatchAddressUpdateInfoPost200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetBatchAddressUpdateInfoPost200Response { - GetBatchAddressUpdateInfoPost200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_batch_address_update_info_post_200_response_error.rs b/sdk-libs/photon-api/src/models/_get_batch_address_update_info_post_200_response_error.rs deleted file mode 100644 index 915502e1b3..0000000000 --- a/sdk-libs/photon-api/src/models/_get_batch_address_update_info_post_200_response_error.rs +++ /dev/null @@ -1,28 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetBatchAddressUpdateInfoPost200ResponseError { - #[serde(rename = "code", skip_serializing_if = "Option::is_none")] - pub code: Option, - #[serde(rename = "message", skip_serializing_if = "Option::is_none")] - pub message: Option, -} - -impl GetBatchAddressUpdateInfoPost200ResponseError { - pub fn new() -> GetBatchAddressUpdateInfoPost200ResponseError { - GetBatchAddressUpdateInfoPost200ResponseError { - code: None, - message: None, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_batch_address_update_info_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_batch_address_update_info_post_200_response_result.rs deleted file mode 100644 index 2d30e4e946..0000000000 --- a/sdk-libs/photon-api/src/models/_get_batch_address_update_info_post_200_response_result.rs +++ /dev/null @@ -1,43 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetBatchAddressUpdateInfoPost200ResponseResult { - #[serde(rename = "addresses")] - pub addresses: Vec, - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "nonInclusionProofs")] - pub non_inclusion_proofs: Vec, - #[serde(rename = "startIndex")] - pub start_index: u64, - #[serde(rename = "subtrees")] - pub subtrees: Vec>, -} - -impl GetBatchAddressUpdateInfoPost200ResponseResult { - pub fn new( - addresses: Vec, - context: models::Context, - non_inclusion_proofs: Vec, - start_index: u64, - subtrees: Vec>, - ) -> GetBatchAddressUpdateInfoPost200ResponseResult { - GetBatchAddressUpdateInfoPost200ResponseResult { - addresses, - context: Box::new(context), - non_inclusion_proofs, - start_index, - subtrees, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_batch_address_update_info_post_429_response.rs b/sdk-libs/photon-api/src/models/_get_batch_address_update_info_post_429_response.rs deleted file mode 100644 index a288561b37..0000000000 --- a/sdk-libs/photon-api/src/models/_get_batch_address_update_info_post_429_response.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetBatchAddressUpdateInfoPost429Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - #[serde(rename = "id", skip_serializing_if = "Option::is_none")] - pub id: Option, - #[serde(rename = "jsonrpc", skip_serializing_if = "Option::is_none")] - pub jsonrpc: Option, -} - -impl GetBatchAddressUpdateInfoPost429Response { - pub fn new() -> GetBatchAddressUpdateInfoPost429Response { - GetBatchAddressUpdateInfoPost429Response { - error: None, - id: None, - jsonrpc: None, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_batch_address_update_info_post_request.rs b/sdk-libs/photon-api/src/models/_get_batch_address_update_info_post_request.rs deleted file mode 100644 index 2715ab5c23..0000000000 --- a/sdk-libs/photon-api/src/models/_get_batch_address_update_info_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetBatchAddressUpdateInfoPostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetBatchAddressUpdateInfoPostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetBatchAddressUpdateInfoPostRequestParams, - ) -> GetBatchAddressUpdateInfoPostRequest { - GetBatchAddressUpdateInfoPostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getBatchAddressUpdateInfo")] - GetBatchAddressUpdateInfo, -} - -impl Default for Method { - fn default() -> Method { - Self::GetBatchAddressUpdateInfo - } -} diff --git a/sdk-libs/photon-api/src/models/_get_batch_address_update_info_post_request_params.rs b/sdk-libs/photon-api/src/models/_get_batch_address_update_info_post_request_params.rs deleted file mode 100644 index 00ec863494..0000000000 --- a/sdk-libs/photon-api/src/models/_get_batch_address_update_info_post_request_params.rs +++ /dev/null @@ -1,36 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetBatchAddressUpdateInfoPostRequestParams { - #[serde(rename = "limit")] - pub limit: u16, - #[serde( - rename = "startQueueIndex", - default, - skip_serializing_if = "Option::is_none" - )] - pub start_queue_index: Option, - /// A Solana public key represented as a base58 string. - #[serde(rename = "tree")] - pub tree: String, -} - -impl GetBatchAddressUpdateInfoPostRequestParams { - pub fn new(limit: u16, tree: String) -> GetBatchAddressUpdateInfoPostRequestParams { - GetBatchAddressUpdateInfoPostRequestParams { - limit, - start_queue_index: None, - tree, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_account_balance_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_compressed_account_balance_post_200_response.rs deleted file mode 100644 index 708ce72210..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_account_balance_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedAccountBalancePost200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetCompressedAccountBalancePost200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetCompressedAccountBalancePost200Response { - GetCompressedAccountBalancePost200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_account_balance_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_compressed_account_balance_post_200_response_result.rs deleted file mode 100644 index 05856cb36c..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_account_balance_post_200_response_result.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedAccountBalancePost200ResponseResult { - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "value")] - pub value: u64, -} - -impl GetCompressedAccountBalancePost200ResponseResult { - pub fn new( - context: models::Context, - value: u64, - ) -> GetCompressedAccountBalancePost200ResponseResult { - GetCompressedAccountBalancePost200ResponseResult { - context: Box::new(context), - value, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_account_balance_post_request.rs b/sdk-libs/photon-api/src/models/_get_compressed_account_balance_post_request.rs deleted file mode 100644 index 55a813d9e2..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_account_balance_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedAccountBalancePostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetCompressedAccountBalancePostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetCompressedAccountPostRequestParams, - ) -> GetCompressedAccountBalancePostRequest { - GetCompressedAccountBalancePostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getCompressedAccountBalance")] - GetCompressedAccountBalance, -} - -impl Default for Method { - fn default() -> Method { - Self::GetCompressedAccountBalance - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_account_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_compressed_account_post_200_response.rs deleted file mode 100644 index f223fad6bf..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_account_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedAccountPost200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetCompressedAccountPost200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetCompressedAccountPost200Response { - GetCompressedAccountPost200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_account_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_compressed_account_post_200_response_result.rs deleted file mode 100644 index 3f3cf6bb69..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_account_post_200_response_result.rs +++ /dev/null @@ -1,28 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedAccountPost200ResponseResult { - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "value", skip_serializing_if = "Option::is_none")] - pub value: Option>, -} - -impl GetCompressedAccountPost200ResponseResult { - pub fn new(context: models::Context) -> GetCompressedAccountPost200ResponseResult { - GetCompressedAccountPost200ResponseResult { - context: Box::new(context), - value: None, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_account_post_request.rs b/sdk-libs/photon-api/src/models/_get_compressed_account_post_request.rs deleted file mode 100644 index 45b784d5ae..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_account_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedAccountPostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetCompressedAccountPostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetCompressedAccountPostRequestParams, - ) -> GetCompressedAccountPostRequest { - GetCompressedAccountPostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getCompressedAccount")] - GetCompressedAccount, -} - -impl Default for Method { - fn default() -> Method { - Self::GetCompressedAccount - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_account_post_request_params.rs b/sdk-libs/photon-api/src/models/_get_compressed_account_post_request_params.rs deleted file mode 100644 index 85ebafcde0..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_account_post_request_params.rs +++ /dev/null @@ -1,32 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -/// GetCompressedAccountPostRequestParams : Request for compressed account data -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedAccountPostRequestParams { - /// A Solana public key represented as a base58 string. - #[serde(rename = "address", default, skip_serializing_if = "Option::is_none")] - pub address: Option, - /// A 32-byte hash represented as a base58 string. - #[serde(rename = "hash", default, skip_serializing_if = "Option::is_none")] - pub hash: Option, -} - -impl GetCompressedAccountPostRequestParams { - /// Request for compressed account data - pub fn new() -> GetCompressedAccountPostRequestParams { - GetCompressedAccountPostRequestParams { - address: None, - hash: None, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_account_proof_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_compressed_account_proof_post_200_response.rs deleted file mode 100644 index 1e969316a0..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_account_proof_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedAccountProofPost200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetCompressedAccountProofPost200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetCompressedAccountProofPost200Response { - GetCompressedAccountProofPost200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_account_proof_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_compressed_account_proof_post_200_response_result.rs deleted file mode 100644 index 040ff082ff..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_account_proof_post_200_response_result.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedAccountProofPost200ResponseResult { - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "value")] - pub value: Box, -} - -impl GetCompressedAccountProofPost200ResponseResult { - pub fn new( - context: models::Context, - value: models::GetCompressedAccountProofResponseValue, - ) -> GetCompressedAccountProofPost200ResponseResult { - GetCompressedAccountProofPost200ResponseResult { - context: Box::new(context), - value: Box::new(value), - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_account_proof_post_request.rs b/sdk-libs/photon-api/src/models/_get_compressed_account_proof_post_request.rs deleted file mode 100644 index 68b06f0f8f..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_account_proof_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedAccountProofPostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetCompressedAccountProofPostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetCompressedAccountProofPostRequestParams, - ) -> GetCompressedAccountProofPostRequest { - GetCompressedAccountProofPostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getCompressedAccountProof")] - GetCompressedAccountProof, -} - -impl Default for Method { - fn default() -> Method { - Self::GetCompressedAccountProof - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_account_proof_post_request_params.rs b/sdk-libs/photon-api/src/models/_get_compressed_account_proof_post_request_params.rs deleted file mode 100644 index aea9392fce..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_account_proof_post_request_params.rs +++ /dev/null @@ -1,24 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedAccountProofPostRequestParams { - /// A 32-byte hash represented as a base58 string. - #[serde(rename = "hash")] - pub hash: String, -} - -impl GetCompressedAccountProofPostRequestParams { - pub fn new(hash: String) -> GetCompressedAccountProofPostRequestParams { - GetCompressedAccountProofPostRequestParams { hash } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_account_proof_v2_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_compressed_account_proof_v2_post_200_response.rs deleted file mode 100644 index 1b8f770d7a..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_account_proof_v2_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedAccountProofV2Post200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetCompressedAccountProofV2Post200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetCompressedAccountProofV2Post200Response { - GetCompressedAccountProofV2Post200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_account_proof_v2_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_compressed_account_proof_v2_post_200_response_result.rs deleted file mode 100644 index 579b25d669..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_account_proof_v2_post_200_response_result.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedAccountProofV2Post200ResponseResult { - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "value")] - pub value: Box, -} - -impl GetCompressedAccountProofV2Post200ResponseResult { - pub fn new( - context: models::Context, - value: models::GetCompressedAccountProofResponseValueV2, - ) -> GetCompressedAccountProofV2Post200ResponseResult { - GetCompressedAccountProofV2Post200ResponseResult { - context: Box::new(context), - value: Box::new(value), - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_account_proof_v2_post_request.rs b/sdk-libs/photon-api/src/models/_get_compressed_account_proof_v2_post_request.rs deleted file mode 100644 index 1b5fc9e0f5..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_account_proof_v2_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedAccountProofV2PostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetCompressedAccountProofV2PostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetCompressedAccountProofPostRequestParams, - ) -> GetCompressedAccountProofV2PostRequest { - GetCompressedAccountProofV2PostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getCompressedAccountProofV2")] - GetCompressedAccountProofV2, -} - -impl Default for Method { - fn default() -> Method { - Self::GetCompressedAccountProofV2 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_account_v2_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_compressed_account_v2_post_200_response.rs deleted file mode 100644 index 029f7ed01e..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_account_v2_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedAccountV2Post200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetCompressedAccountV2Post200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetCompressedAccountV2Post200Response { - GetCompressedAccountV2Post200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_account_v2_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_compressed_account_v2_post_200_response_result.rs deleted file mode 100644 index 45c3074dd3..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_account_v2_post_200_response_result.rs +++ /dev/null @@ -1,28 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedAccountV2Post200ResponseResult { - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "value", skip_serializing_if = "Option::is_none")] - pub value: Option>, -} - -impl GetCompressedAccountV2Post200ResponseResult { - pub fn new(context: models::Context) -> GetCompressedAccountV2Post200ResponseResult { - GetCompressedAccountV2Post200ResponseResult { - context: Box::new(context), - value: None, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_account_v2_post_request.rs b/sdk-libs/photon-api/src/models/_get_compressed_account_v2_post_request.rs deleted file mode 100644 index 0686798810..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_account_v2_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedAccountV2PostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetCompressedAccountV2PostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetCompressedAccountPostRequestParams, - ) -> GetCompressedAccountV2PostRequest { - GetCompressedAccountV2PostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getCompressedAccountV2")] - GetCompressedAccountV2, -} - -impl Default for Method { - fn default() -> Method { - Self::GetCompressedAccountV2 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_accounts_by_owner_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_compressed_accounts_by_owner_post_200_response.rs deleted file mode 100644 index a3a9e99049..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_accounts_by_owner_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedAccountsByOwnerPost200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetCompressedAccountsByOwnerPost200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetCompressedAccountsByOwnerPost200Response { - GetCompressedAccountsByOwnerPost200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_accounts_by_owner_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_compressed_accounts_by_owner_post_200_response_result.rs deleted file mode 100644 index 7e0854a779..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_accounts_by_owner_post_200_response_result.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedAccountsByOwnerPost200ResponseResult { - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "value")] - pub value: Box, -} - -impl GetCompressedAccountsByOwnerPost200ResponseResult { - pub fn new( - context: models::Context, - value: models::PaginatedAccountList, - ) -> GetCompressedAccountsByOwnerPost200ResponseResult { - GetCompressedAccountsByOwnerPost200ResponseResult { - context: Box::new(context), - value: Box::new(value), - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_accounts_by_owner_post_request.rs b/sdk-libs/photon-api/src/models/_get_compressed_accounts_by_owner_post_request.rs deleted file mode 100644 index bf86cdd3dc..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_accounts_by_owner_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedAccountsByOwnerPostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetCompressedAccountsByOwnerPostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetCompressedAccountsByOwnerPostRequestParams, - ) -> GetCompressedAccountsByOwnerPostRequest { - GetCompressedAccountsByOwnerPostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getCompressedAccountsByOwner")] - GetCompressedAccountsByOwner, -} - -impl Default for Method { - fn default() -> Method { - Self::GetCompressedAccountsByOwner - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_accounts_by_owner_post_request_params.rs b/sdk-libs/photon-api/src/models/_get_compressed_accounts_by_owner_post_request_params.rs deleted file mode 100644 index e5115d705c..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_accounts_by_owner_post_request_params.rs +++ /dev/null @@ -1,39 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedAccountsByOwnerPostRequestParams { - /// A 32-byte hash represented as a base58 string. - #[serde(rename = "cursor", default, skip_serializing_if = "Option::is_none")] - pub cursor: Option, - #[serde(rename = "dataSlice", default, skip_serializing_if = "Option::is_none")] - pub data_slice: Option>, - #[serde(rename = "filters", skip_serializing_if = "Option::is_none")] - pub filters: Option>, - #[serde(rename = "limit", default, skip_serializing_if = "Option::is_none")] - pub limit: Option, - /// A Solana public key represented as a base58 string. - #[serde(rename = "owner")] - pub owner: String, -} - -impl GetCompressedAccountsByOwnerPostRequestParams { - pub fn new(owner: String) -> GetCompressedAccountsByOwnerPostRequestParams { - GetCompressedAccountsByOwnerPostRequestParams { - cursor: None, - data_slice: None, - filters: None, - limit: None, - owner, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_accounts_by_owner_v2_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_compressed_accounts_by_owner_v2_post_200_response.rs deleted file mode 100644 index 76a5305767..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_accounts_by_owner_v2_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedAccountsByOwnerV2Post200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetCompressedAccountsByOwnerV2Post200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetCompressedAccountsByOwnerV2Post200Response { - GetCompressedAccountsByOwnerV2Post200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_accounts_by_owner_v2_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_compressed_accounts_by_owner_v2_post_200_response_result.rs deleted file mode 100644 index 8d81dc191e..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_accounts_by_owner_v2_post_200_response_result.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedAccountsByOwnerV2Post200ResponseResult { - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "value")] - pub value: Box, -} - -impl GetCompressedAccountsByOwnerV2Post200ResponseResult { - pub fn new( - context: models::Context, - value: models::PaginatedAccountListV2, - ) -> GetCompressedAccountsByOwnerV2Post200ResponseResult { - GetCompressedAccountsByOwnerV2Post200ResponseResult { - context: Box::new(context), - value: Box::new(value), - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_accounts_by_owner_v2_post_request.rs b/sdk-libs/photon-api/src/models/_get_compressed_accounts_by_owner_v2_post_request.rs deleted file mode 100644 index 228740b690..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_accounts_by_owner_v2_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedAccountsByOwnerV2PostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetCompressedAccountsByOwnerV2PostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetCompressedAccountsByOwnerPostRequestParams, - ) -> GetCompressedAccountsByOwnerV2PostRequest { - GetCompressedAccountsByOwnerV2PostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getCompressedAccountsByOwnerV2")] - GetCompressedAccountsByOwnerV2, -} - -impl Default for Method { - fn default() -> Method { - Self::GetCompressedAccountsByOwnerV2 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_balance_by_owner_post_request.rs b/sdk-libs/photon-api/src/models/_get_compressed_balance_by_owner_post_request.rs deleted file mode 100644 index 1bfac9656d..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_balance_by_owner_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedBalanceByOwnerPostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetCompressedBalanceByOwnerPostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetCompressedBalanceByOwnerPostRequestParams, - ) -> GetCompressedBalanceByOwnerPostRequest { - GetCompressedBalanceByOwnerPostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getCompressedBalanceByOwner")] - GetCompressedBalanceByOwner, -} - -impl Default for Method { - fn default() -> Method { - Self::GetCompressedBalanceByOwner - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_balance_by_owner_post_request_params.rs b/sdk-libs/photon-api/src/models/_get_compressed_balance_by_owner_post_request_params.rs deleted file mode 100644 index bbb760af99..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_balance_by_owner_post_request_params.rs +++ /dev/null @@ -1,24 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedBalanceByOwnerPostRequestParams { - /// A Solana public key represented as a base58 string. - #[serde(rename = "owner")] - pub owner: String, -} - -impl GetCompressedBalanceByOwnerPostRequestParams { - pub fn new(owner: String) -> GetCompressedBalanceByOwnerPostRequestParams { - GetCompressedBalanceByOwnerPostRequestParams { owner } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_mint_token_holders_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_compressed_mint_token_holders_post_200_response.rs deleted file mode 100644 index 82937c6bcd..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_mint_token_holders_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedMintTokenHoldersPost200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetCompressedMintTokenHoldersPost200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetCompressedMintTokenHoldersPost200Response { - GetCompressedMintTokenHoldersPost200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_mint_token_holders_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_compressed_mint_token_holders_post_200_response_result.rs deleted file mode 100644 index 3c83b4f2ca..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_mint_token_holders_post_200_response_result.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedMintTokenHoldersPost200ResponseResult { - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "value")] - pub value: Box, -} - -impl GetCompressedMintTokenHoldersPost200ResponseResult { - pub fn new( - context: models::Context, - value: models::OwnerBalanceList, - ) -> GetCompressedMintTokenHoldersPost200ResponseResult { - GetCompressedMintTokenHoldersPost200ResponseResult { - context: Box::new(context), - value: Box::new(value), - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_mint_token_holders_post_request.rs b/sdk-libs/photon-api/src/models/_get_compressed_mint_token_holders_post_request.rs deleted file mode 100644 index 0f3df37dc6..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_mint_token_holders_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedMintTokenHoldersPostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetCompressedMintTokenHoldersPostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetCompressedMintTokenHoldersPostRequestParams, - ) -> GetCompressedMintTokenHoldersPostRequest { - GetCompressedMintTokenHoldersPostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getCompressedMintTokenHolders")] - GetCompressedMintTokenHolders, -} - -impl Default for Method { - fn default() -> Method { - Self::GetCompressedMintTokenHolders - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_mint_token_holders_post_request_params.rs b/sdk-libs/photon-api/src/models/_get_compressed_mint_token_holders_post_request_params.rs deleted file mode 100644 index 656fd6432e..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_mint_token_holders_post_request_params.rs +++ /dev/null @@ -1,33 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedMintTokenHoldersPostRequestParams { - /// A base 58 encoded string. - #[serde(rename = "cursor", default, skip_serializing_if = "Option::is_none")] - pub cursor: Option, - #[serde(rename = "limit", default, skip_serializing_if = "Option::is_none")] - pub limit: Option, - /// A Solana public key represented as a base58 string. - #[serde(rename = "mint")] - pub mint: String, -} - -impl GetCompressedMintTokenHoldersPostRequestParams { - pub fn new(mint: String) -> GetCompressedMintTokenHoldersPostRequestParams { - GetCompressedMintTokenHoldersPostRequestParams { - cursor: None, - limit: None, - mint, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_token_account_balance_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_compressed_token_account_balance_post_200_response.rs deleted file mode 100644 index 3893e9fee1..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_token_account_balance_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedTokenAccountBalancePost200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetCompressedTokenAccountBalancePost200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetCompressedTokenAccountBalancePost200Response { - GetCompressedTokenAccountBalancePost200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_token_account_balance_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_compressed_token_account_balance_post_200_response_result.rs deleted file mode 100644 index 14d510e059..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_token_account_balance_post_200_response_result.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedTokenAccountBalancePost200ResponseResult { - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "value")] - pub value: Box, -} - -impl GetCompressedTokenAccountBalancePost200ResponseResult { - pub fn new( - context: models::Context, - value: models::TokenAccountBalance, - ) -> GetCompressedTokenAccountBalancePost200ResponseResult { - GetCompressedTokenAccountBalancePost200ResponseResult { - context: Box::new(context), - value: Box::new(value), - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_token_account_balance_post_request.rs b/sdk-libs/photon-api/src/models/_get_compressed_token_account_balance_post_request.rs deleted file mode 100644 index 79056d0d8a..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_token_account_balance_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedTokenAccountBalancePostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetCompressedTokenAccountBalancePostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetCompressedAccountPostRequestParams, - ) -> GetCompressedTokenAccountBalancePostRequest { - GetCompressedTokenAccountBalancePostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getCompressedTokenAccountBalance")] - GetCompressedTokenAccountBalance, -} - -impl Default for Method { - fn default() -> Method { - Self::GetCompressedTokenAccountBalance - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_delegate_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_delegate_post_200_response.rs deleted file mode 100644 index 4ac630e6af..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_delegate_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedTokenAccountsByDelegatePost200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetCompressedTokenAccountsByDelegatePost200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetCompressedTokenAccountsByDelegatePost200Response { - GetCompressedTokenAccountsByDelegatePost200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_delegate_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_delegate_post_200_response_result.rs deleted file mode 100644 index 2c70df43be..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_delegate_post_200_response_result.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedTokenAccountsByDelegatePost200ResponseResult { - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "value")] - pub value: Box, -} - -impl GetCompressedTokenAccountsByDelegatePost200ResponseResult { - pub fn new( - context: models::Context, - value: models::TokenAccountList, - ) -> GetCompressedTokenAccountsByDelegatePost200ResponseResult { - GetCompressedTokenAccountsByDelegatePost200ResponseResult { - context: Box::new(context), - value: Box::new(value), - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_delegate_post_request.rs b/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_delegate_post_request.rs deleted file mode 100644 index 3c4e1ff66e..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_delegate_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedTokenAccountsByDelegatePostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetCompressedTokenAccountsByDelegatePostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetCompressedTokenAccountsByDelegatePostRequestParams, - ) -> GetCompressedTokenAccountsByDelegatePostRequest { - GetCompressedTokenAccountsByDelegatePostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getCompressedTokenAccountsByDelegate")] - GetCompressedTokenAccountsByDelegate, -} - -impl Default for Method { - fn default() -> Method { - Self::GetCompressedTokenAccountsByDelegate - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_delegate_post_request_params.rs b/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_delegate_post_request_params.rs deleted file mode 100644 index c3dfa3ae27..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_delegate_post_request_params.rs +++ /dev/null @@ -1,37 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedTokenAccountsByDelegatePostRequestParams { - /// A base 58 encoded string. - #[serde(rename = "cursor", default, skip_serializing_if = "Option::is_none")] - pub cursor: Option, - /// A Solana public key represented as a base58 string. - #[serde(rename = "delegate")] - pub delegate: String, - #[serde(rename = "limit", default, skip_serializing_if = "Option::is_none")] - pub limit: Option, - /// A Solana public key represented as a base58 string. - #[serde(rename = "mint", default, skip_serializing_if = "Option::is_none")] - pub mint: Option, -} - -impl GetCompressedTokenAccountsByDelegatePostRequestParams { - pub fn new(delegate: String) -> GetCompressedTokenAccountsByDelegatePostRequestParams { - GetCompressedTokenAccountsByDelegatePostRequestParams { - cursor: None, - delegate, - limit: None, - mint: None, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_delegate_v2_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_delegate_v2_post_200_response.rs deleted file mode 100644 index 4cccbe9b12..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_delegate_v2_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedTokenAccountsByDelegateV2Post200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetCompressedTokenAccountsByDelegateV2Post200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetCompressedTokenAccountsByDelegateV2Post200Response { - GetCompressedTokenAccountsByDelegateV2Post200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_delegate_v2_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_delegate_v2_post_200_response_result.rs deleted file mode 100644 index 64e07f6025..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_delegate_v2_post_200_response_result.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedTokenAccountsByDelegateV2Post200ResponseResult { - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "value")] - pub value: Box, -} - -impl GetCompressedTokenAccountsByDelegateV2Post200ResponseResult { - pub fn new( - context: models::Context, - value: models::TokenAccountListV2, - ) -> GetCompressedTokenAccountsByDelegateV2Post200ResponseResult { - GetCompressedTokenAccountsByDelegateV2Post200ResponseResult { - context: Box::new(context), - value: Box::new(value), - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_delegate_v2_post_request.rs b/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_delegate_v2_post_request.rs deleted file mode 100644 index 21a3aca37a..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_delegate_v2_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedTokenAccountsByDelegateV2PostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetCompressedTokenAccountsByDelegateV2PostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetCompressedTokenAccountsByDelegatePostRequestParams, - ) -> GetCompressedTokenAccountsByDelegateV2PostRequest { - GetCompressedTokenAccountsByDelegateV2PostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getCompressedTokenAccountsByDelegateV2")] - GetCompressedTokenAccountsByDelegateV2, -} - -impl Default for Method { - fn default() -> Method { - Self::GetCompressedTokenAccountsByDelegateV2 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_owner_post_request.rs b/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_owner_post_request.rs deleted file mode 100644 index 8af3280988..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_owner_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedTokenAccountsByOwnerPostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetCompressedTokenAccountsByOwnerPostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetCompressedTokenAccountsByOwnerPostRequestParams, - ) -> GetCompressedTokenAccountsByOwnerPostRequest { - GetCompressedTokenAccountsByOwnerPostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getCompressedTokenAccountsByOwner")] - GetCompressedTokenAccountsByOwner, -} - -impl Default for Method { - fn default() -> Method { - Self::GetCompressedTokenAccountsByOwner - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_owner_post_request_params.rs b/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_owner_post_request_params.rs deleted file mode 100644 index b474115429..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_owner_post_request_params.rs +++ /dev/null @@ -1,37 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedTokenAccountsByOwnerPostRequestParams { - /// A base 58 encoded string. - #[serde(rename = "cursor", default, skip_serializing_if = "Option::is_none")] - pub cursor: Option, - #[serde(rename = "limit", default, skip_serializing_if = "Option::is_none")] - pub limit: Option, - /// A Solana public key represented as a base58 string. - #[serde(rename = "mint", default, skip_serializing_if = "Option::is_none")] - pub mint: Option, - /// A Solana public key represented as a base58 string. - #[serde(rename = "owner")] - pub owner: String, -} - -impl GetCompressedTokenAccountsByOwnerPostRequestParams { - pub fn new(owner: String) -> GetCompressedTokenAccountsByOwnerPostRequestParams { - GetCompressedTokenAccountsByOwnerPostRequestParams { - cursor: None, - limit: None, - mint: None, - owner, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_owner_v2_post_request.rs b/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_owner_v2_post_request.rs deleted file mode 100644 index bb81841c2f..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_token_accounts_by_owner_v2_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedTokenAccountsByOwnerV2PostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetCompressedTokenAccountsByOwnerV2PostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetCompressedTokenAccountsByOwnerPostRequestParams, - ) -> GetCompressedTokenAccountsByOwnerV2PostRequest { - GetCompressedTokenAccountsByOwnerV2PostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getCompressedTokenAccountsByOwnerV2")] - GetCompressedTokenAccountsByOwnerV2, -} - -impl Default for Method { - fn default() -> Method { - Self::GetCompressedTokenAccountsByOwnerV2 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_token_balances_by_owner_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_compressed_token_balances_by_owner_post_200_response.rs deleted file mode 100644 index 9cc7930160..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_token_balances_by_owner_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedTokenBalancesByOwnerPost200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetCompressedTokenBalancesByOwnerPost200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetCompressedTokenBalancesByOwnerPost200Response { - GetCompressedTokenBalancesByOwnerPost200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_token_balances_by_owner_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_compressed_token_balances_by_owner_post_200_response_result.rs deleted file mode 100644 index 6e8c1f2501..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_token_balances_by_owner_post_200_response_result.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedTokenBalancesByOwnerPost200ResponseResult { - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "value")] - pub value: Box, -} - -impl GetCompressedTokenBalancesByOwnerPost200ResponseResult { - pub fn new( - context: models::Context, - value: models::TokenBalanceList, - ) -> GetCompressedTokenBalancesByOwnerPost200ResponseResult { - GetCompressedTokenBalancesByOwnerPost200ResponseResult { - context: Box::new(context), - value: Box::new(value), - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_token_balances_by_owner_post_request.rs b/sdk-libs/photon-api/src/models/_get_compressed_token_balances_by_owner_post_request.rs deleted file mode 100644 index 9c8b4aeebb..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_token_balances_by_owner_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedTokenBalancesByOwnerPostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetCompressedTokenBalancesByOwnerPostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetCompressedTokenAccountsByOwnerPostRequestParams, - ) -> GetCompressedTokenBalancesByOwnerPostRequest { - GetCompressedTokenBalancesByOwnerPostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getCompressedTokenBalancesByOwner")] - GetCompressedTokenBalancesByOwner, -} - -impl Default for Method { - fn default() -> Method { - Self::GetCompressedTokenBalancesByOwner - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_token_balances_by_owner_v2_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_compressed_token_balances_by_owner_v2_post_200_response.rs deleted file mode 100644 index f9a7a15546..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_token_balances_by_owner_v2_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedTokenBalancesByOwnerV2Post200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetCompressedTokenBalancesByOwnerV2Post200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetCompressedTokenBalancesByOwnerV2Post200Response { - GetCompressedTokenBalancesByOwnerV2Post200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_token_balances_by_owner_v2_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_compressed_token_balances_by_owner_v2_post_200_response_result.rs deleted file mode 100644 index 09b44cd5dd..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_token_balances_by_owner_v2_post_200_response_result.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedTokenBalancesByOwnerV2Post200ResponseResult { - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "value")] - pub value: Box, -} - -impl GetCompressedTokenBalancesByOwnerV2Post200ResponseResult { - pub fn new( - context: models::Context, - value: models::TokenBalanceListV2, - ) -> GetCompressedTokenBalancesByOwnerV2Post200ResponseResult { - GetCompressedTokenBalancesByOwnerV2Post200ResponseResult { - context: Box::new(context), - value: Box::new(value), - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compressed_token_balances_by_owner_v2_post_request.rs b/sdk-libs/photon-api/src/models/_get_compressed_token_balances_by_owner_v2_post_request.rs deleted file mode 100644 index 9375101b02..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compressed_token_balances_by_owner_v2_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedTokenBalancesByOwnerV2PostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetCompressedTokenBalancesByOwnerV2PostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetCompressedTokenAccountsByOwnerPostRequestParams, - ) -> GetCompressedTokenBalancesByOwnerV2PostRequest { - GetCompressedTokenBalancesByOwnerV2PostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getCompressedTokenBalancesByOwnerV2")] - GetCompressedTokenBalancesByOwnerV2, -} - -impl Default for Method { - fn default() -> Method { - Self::GetCompressedTokenBalancesByOwnerV2 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compression_signatures_for_account_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_compression_signatures_for_account_post_200_response.rs deleted file mode 100644 index fb1902d26c..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compression_signatures_for_account_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressionSignaturesForAccountPost200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetCompressionSignaturesForAccountPost200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetCompressionSignaturesForAccountPost200Response { - GetCompressionSignaturesForAccountPost200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compression_signatures_for_account_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_compression_signatures_for_account_post_200_response_result.rs deleted file mode 100644 index ba5cbee947..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compression_signatures_for_account_post_200_response_result.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressionSignaturesForAccountPost200ResponseResult { - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "value")] - pub value: Box, -} - -impl GetCompressionSignaturesForAccountPost200ResponseResult { - pub fn new( - context: models::Context, - value: models::SignatureInfoList, - ) -> GetCompressionSignaturesForAccountPost200ResponseResult { - GetCompressionSignaturesForAccountPost200ResponseResult { - context: Box::new(context), - value: Box::new(value), - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compression_signatures_for_account_post_request.rs b/sdk-libs/photon-api/src/models/_get_compression_signatures_for_account_post_request.rs deleted file mode 100644 index eacc193159..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compression_signatures_for_account_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressionSignaturesForAccountPostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetCompressionSignaturesForAccountPostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetCompressedAccountProofPostRequestParams, - ) -> GetCompressionSignaturesForAccountPostRequest { - GetCompressionSignaturesForAccountPostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getCompressionSignaturesForAccount")] - GetCompressionSignaturesForAccount, -} - -impl Default for Method { - fn default() -> Method { - Self::GetCompressionSignaturesForAccount - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compression_signatures_for_address_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_compression_signatures_for_address_post_200_response.rs deleted file mode 100644 index b99893707f..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compression_signatures_for_address_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressionSignaturesForAddressPost200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetCompressionSignaturesForAddressPost200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetCompressionSignaturesForAddressPost200Response { - GetCompressionSignaturesForAddressPost200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compression_signatures_for_address_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_compression_signatures_for_address_post_200_response_result.rs deleted file mode 100644 index b3146ef38f..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compression_signatures_for_address_post_200_response_result.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressionSignaturesForAddressPost200ResponseResult { - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "value")] - pub value: Box, -} - -impl GetCompressionSignaturesForAddressPost200ResponseResult { - pub fn new( - context: models::Context, - value: models::PaginatedSignatureInfoList, - ) -> GetCompressionSignaturesForAddressPost200ResponseResult { - GetCompressionSignaturesForAddressPost200ResponseResult { - context: Box::new(context), - value: Box::new(value), - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compression_signatures_for_address_post_request.rs b/sdk-libs/photon-api/src/models/_get_compression_signatures_for_address_post_request.rs deleted file mode 100644 index f709159cb1..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compression_signatures_for_address_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressionSignaturesForAddressPostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetCompressionSignaturesForAddressPostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetCompressionSignaturesForAddressPostRequestParams, - ) -> GetCompressionSignaturesForAddressPostRequest { - GetCompressionSignaturesForAddressPostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getCompressionSignaturesForAddress")] - GetCompressionSignaturesForAddress, -} - -impl Default for Method { - fn default() -> Method { - Self::GetCompressionSignaturesForAddress - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compression_signatures_for_address_post_request_params.rs b/sdk-libs/photon-api/src/models/_get_compression_signatures_for_address_post_request_params.rs deleted file mode 100644 index 27af5febea..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compression_signatures_for_address_post_request_params.rs +++ /dev/null @@ -1,32 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressionSignaturesForAddressPostRequestParams { - /// A Solana public key represented as a base58 string. - #[serde(rename = "address")] - pub address: String, - #[serde(rename = "cursor", default, skip_serializing_if = "Option::is_none")] - pub cursor: Option, - #[serde(rename = "limit", default, skip_serializing_if = "Option::is_none")] - pub limit: Option, -} - -impl GetCompressionSignaturesForAddressPostRequestParams { - pub fn new(address: String) -> GetCompressionSignaturesForAddressPostRequestParams { - GetCompressionSignaturesForAddressPostRequestParams { - address, - cursor: None, - limit: None, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compression_signatures_for_owner_post_request.rs b/sdk-libs/photon-api/src/models/_get_compression_signatures_for_owner_post_request.rs deleted file mode 100644 index 0ee487019d..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compression_signatures_for_owner_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressionSignaturesForOwnerPostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetCompressionSignaturesForOwnerPostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetCompressionSignaturesForOwnerPostRequestParams, - ) -> GetCompressionSignaturesForOwnerPostRequest { - GetCompressionSignaturesForOwnerPostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getCompressionSignaturesForOwner")] - GetCompressionSignaturesForOwner, -} - -impl Default for Method { - fn default() -> Method { - Self::GetCompressionSignaturesForOwner - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compression_signatures_for_owner_post_request_params.rs b/sdk-libs/photon-api/src/models/_get_compression_signatures_for_owner_post_request_params.rs deleted file mode 100644 index 6256c5c1de..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compression_signatures_for_owner_post_request_params.rs +++ /dev/null @@ -1,32 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressionSignaturesForOwnerPostRequestParams { - #[serde(rename = "cursor", default, skip_serializing_if = "Option::is_none")] - pub cursor: Option, - #[serde(rename = "limit", default, skip_serializing_if = "Option::is_none")] - pub limit: Option, - /// A Solana public key represented as a base58 string. - #[serde(rename = "owner")] - pub owner: String, -} - -impl GetCompressionSignaturesForOwnerPostRequestParams { - pub fn new(owner: String) -> GetCompressionSignaturesForOwnerPostRequestParams { - GetCompressionSignaturesForOwnerPostRequestParams { - cursor: None, - limit: None, - owner, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_compression_signatures_for_token_owner_post_request.rs b/sdk-libs/photon-api/src/models/_get_compression_signatures_for_token_owner_post_request.rs deleted file mode 100644 index cd289c654e..0000000000 --- a/sdk-libs/photon-api/src/models/_get_compression_signatures_for_token_owner_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressionSignaturesForTokenOwnerPostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetCompressionSignaturesForTokenOwnerPostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetCompressionSignaturesForOwnerPostRequestParams, - ) -> GetCompressionSignaturesForTokenOwnerPostRequest { - GetCompressionSignaturesForTokenOwnerPostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getCompressionSignaturesForTokenOwner")] - GetCompressionSignaturesForTokenOwner, -} - -impl Default for Method { - fn default() -> Method { - Self::GetCompressionSignaturesForTokenOwner - } -} diff --git a/sdk-libs/photon-api/src/models/_get_indexer_health_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_indexer_health_post_200_response.rs deleted file mode 100644 index 91962e7a86..0000000000 --- a/sdk-libs/photon-api/src/models/_get_indexer_health_post_200_response.rs +++ /dev/null @@ -1,73 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetIndexerHealthPost200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// ok if healthy - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option, -} - -impl GetIndexerHealthPost200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetIndexerHealthPost200Response { - GetIndexerHealthPost200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// ok if healthy -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Result { - #[serde(rename = "ok")] - Ok, -} - -impl Default for Result { - fn default() -> Result { - Self::Ok - } -} diff --git a/sdk-libs/photon-api/src/models/_get_indexer_health_post_request.rs b/sdk-libs/photon-api/src/models/_get_indexer_health_post_request.rs deleted file mode 100644 index d54db0f3bb..0000000000 --- a/sdk-libs/photon-api/src/models/_get_indexer_health_post_request.rs +++ /dev/null @@ -1,70 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetIndexerHealthPostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, -} - -impl GetIndexerHealthPostRequest { - pub fn new(id: Id, jsonrpc: Jsonrpc, method: Method) -> GetIndexerHealthPostRequest { - GetIndexerHealthPostRequest { - id, - jsonrpc, - method, - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getIndexerHealth")] - GetIndexerHealth, -} - -impl Default for Method { - fn default() -> Method { - Self::GetIndexerHealth - } -} diff --git a/sdk-libs/photon-api/src/models/_get_indexer_slot_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_indexer_slot_post_200_response.rs deleted file mode 100644 index 5f64da8df4..0000000000 --- a/sdk-libs/photon-api/src/models/_get_indexer_slot_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetIndexerSlotPost200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option, -} - -impl GetIndexerSlotPost200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetIndexerSlotPost200Response { - GetIndexerSlotPost200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_indexer_slot_post_request.rs b/sdk-libs/photon-api/src/models/_get_indexer_slot_post_request.rs deleted file mode 100644 index 2ffd023a8d..0000000000 --- a/sdk-libs/photon-api/src/models/_get_indexer_slot_post_request.rs +++ /dev/null @@ -1,70 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetIndexerSlotPostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, -} - -impl GetIndexerSlotPostRequest { - pub fn new(id: Id, jsonrpc: Jsonrpc, method: Method) -> GetIndexerSlotPostRequest { - GetIndexerSlotPostRequest { - id, - jsonrpc, - method, - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getIndexerSlot")] - GetIndexerSlot, -} - -impl Default for Method { - fn default() -> Method { - Self::GetIndexerSlot - } -} diff --git a/sdk-libs/photon-api/src/models/_get_latest_compression_signatures_post_request.rs b/sdk-libs/photon-api/src/models/_get_latest_compression_signatures_post_request.rs deleted file mode 100644 index 603f913d57..0000000000 --- a/sdk-libs/photon-api/src/models/_get_latest_compression_signatures_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetLatestCompressionSignaturesPostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetLatestCompressionSignaturesPostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetLatestCompressionSignaturesPostRequestParams, - ) -> GetLatestCompressionSignaturesPostRequest { - GetLatestCompressionSignaturesPostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getLatestCompressionSignatures")] - GetLatestCompressionSignatures, -} - -impl Default for Method { - fn default() -> Method { - Self::GetLatestCompressionSignatures - } -} diff --git a/sdk-libs/photon-api/src/models/_get_latest_compression_signatures_post_request_params.rs b/sdk-libs/photon-api/src/models/_get_latest_compression_signatures_post_request_params.rs deleted file mode 100644 index e1c65b4726..0000000000 --- a/sdk-libs/photon-api/src/models/_get_latest_compression_signatures_post_request_params.rs +++ /dev/null @@ -1,38 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetLatestCompressionSignaturesPostRequestParams { - #[serde( - rename = "cursor", - default, - with = "::serde_with::rust::double_option", - skip_serializing_if = "Option::is_none" - )] - pub cursor: Option>, - #[serde( - rename = "limit", - default, - with = "::serde_with::rust::double_option", - skip_serializing_if = "Option::is_none" - )] - pub limit: Option>, -} - -impl GetLatestCompressionSignaturesPostRequestParams { - pub fn new() -> GetLatestCompressionSignaturesPostRequestParams { - GetLatestCompressionSignaturesPostRequestParams { - cursor: None, - limit: None, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_latest_non_voting_signatures_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_latest_non_voting_signatures_post_200_response.rs deleted file mode 100644 index f624823159..0000000000 --- a/sdk-libs/photon-api/src/models/_get_latest_non_voting_signatures_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetLatestNonVotingSignaturesPost200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetLatestNonVotingSignaturesPost200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetLatestNonVotingSignaturesPost200Response { - GetLatestNonVotingSignaturesPost200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_latest_non_voting_signatures_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_latest_non_voting_signatures_post_200_response_result.rs deleted file mode 100644 index 4a9d502b2c..0000000000 --- a/sdk-libs/photon-api/src/models/_get_latest_non_voting_signatures_post_200_response_result.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetLatestNonVotingSignaturesPost200ResponseResult { - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "value")] - pub value: Box, -} - -impl GetLatestNonVotingSignaturesPost200ResponseResult { - pub fn new( - context: models::Context, - value: models::SignatureInfoListWithError, - ) -> GetLatestNonVotingSignaturesPost200ResponseResult { - GetLatestNonVotingSignaturesPost200ResponseResult { - context: Box::new(context), - value: Box::new(value), - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_latest_non_voting_signatures_post_request.rs b/sdk-libs/photon-api/src/models/_get_latest_non_voting_signatures_post_request.rs deleted file mode 100644 index ec4cff4d2b..0000000000 --- a/sdk-libs/photon-api/src/models/_get_latest_non_voting_signatures_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetLatestNonVotingSignaturesPostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetLatestNonVotingSignaturesPostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetLatestCompressionSignaturesPostRequestParams, - ) -> GetLatestNonVotingSignaturesPostRequest { - GetLatestNonVotingSignaturesPostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getLatestNonVotingSignatures")] - GetLatestNonVotingSignatures, -} - -impl Default for Method { - fn default() -> Method { - Self::GetLatestNonVotingSignatures - } -} diff --git a/sdk-libs/photon-api/src/models/_get_multiple_compressed_account_proofs_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_multiple_compressed_account_proofs_post_200_response.rs deleted file mode 100644 index e0b5f1b45c..0000000000 --- a/sdk-libs/photon-api/src/models/_get_multiple_compressed_account_proofs_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetMultipleCompressedAccountProofsPost200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetMultipleCompressedAccountProofsPost200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetMultipleCompressedAccountProofsPost200Response { - GetMultipleCompressedAccountProofsPost200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_multiple_compressed_account_proofs_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_multiple_compressed_account_proofs_post_200_response_result.rs deleted file mode 100644 index 45447d1772..0000000000 --- a/sdk-libs/photon-api/src/models/_get_multiple_compressed_account_proofs_post_200_response_result.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetMultipleCompressedAccountProofsPost200ResponseResult { - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "value")] - pub value: Vec, -} - -impl GetMultipleCompressedAccountProofsPost200ResponseResult { - pub fn new( - context: models::Context, - value: Vec, - ) -> GetMultipleCompressedAccountProofsPost200ResponseResult { - GetMultipleCompressedAccountProofsPost200ResponseResult { - context: Box::new(context), - value, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_multiple_compressed_account_proofs_post_request.rs b/sdk-libs/photon-api/src/models/_get_multiple_compressed_account_proofs_post_request.rs deleted file mode 100644 index 2418e54337..0000000000 --- a/sdk-libs/photon-api/src/models/_get_multiple_compressed_account_proofs_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetMultipleCompressedAccountProofsPostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Vec, -} - -impl GetMultipleCompressedAccountProofsPostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: Vec, - ) -> GetMultipleCompressedAccountProofsPostRequest { - GetMultipleCompressedAccountProofsPostRequest { - id, - jsonrpc, - method, - params, - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getMultipleCompressedAccountProofs")] - GetMultipleCompressedAccountProofs, -} - -impl Default for Method { - fn default() -> Method { - Self::GetMultipleCompressedAccountProofs - } -} diff --git a/sdk-libs/photon-api/src/models/_get_multiple_compressed_account_proofs_v2_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_multiple_compressed_account_proofs_v2_post_200_response.rs deleted file mode 100644 index 8c0f0d717e..0000000000 --- a/sdk-libs/photon-api/src/models/_get_multiple_compressed_account_proofs_v2_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetMultipleCompressedAccountProofsV2Post200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetMultipleCompressedAccountProofsV2Post200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetMultipleCompressedAccountProofsV2Post200Response { - GetMultipleCompressedAccountProofsV2Post200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_multiple_compressed_account_proofs_v2_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_multiple_compressed_account_proofs_v2_post_200_response_result.rs deleted file mode 100644 index 859d8931fa..0000000000 --- a/sdk-libs/photon-api/src/models/_get_multiple_compressed_account_proofs_v2_post_200_response_result.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetMultipleCompressedAccountProofsV2Post200ResponseResult { - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "value")] - pub value: Vec, -} - -impl GetMultipleCompressedAccountProofsV2Post200ResponseResult { - pub fn new( - context: models::Context, - value: Vec, - ) -> GetMultipleCompressedAccountProofsV2Post200ResponseResult { - GetMultipleCompressedAccountProofsV2Post200ResponseResult { - context: Box::new(context), - value, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_multiple_compressed_account_proofs_v2_post_request.rs b/sdk-libs/photon-api/src/models/_get_multiple_compressed_account_proofs_v2_post_request.rs deleted file mode 100644 index a2ba4a7f9c..0000000000 --- a/sdk-libs/photon-api/src/models/_get_multiple_compressed_account_proofs_v2_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetMultipleCompressedAccountProofsV2PostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Vec, -} - -impl GetMultipleCompressedAccountProofsV2PostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: Vec, - ) -> GetMultipleCompressedAccountProofsV2PostRequest { - GetMultipleCompressedAccountProofsV2PostRequest { - id, - jsonrpc, - method, - params, - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getMultipleCompressedAccountProofsV2")] - GetMultipleCompressedAccountProofsV2, -} - -impl Default for Method { - fn default() -> Method { - Self::GetMultipleCompressedAccountProofsV2 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_multiple_compressed_accounts_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_multiple_compressed_accounts_post_200_response.rs deleted file mode 100644 index 9b0a05d21c..0000000000 --- a/sdk-libs/photon-api/src/models/_get_multiple_compressed_accounts_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetMultipleCompressedAccountsPost200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetMultipleCompressedAccountsPost200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetMultipleCompressedAccountsPost200Response { - GetMultipleCompressedAccountsPost200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_multiple_compressed_accounts_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_multiple_compressed_accounts_post_200_response_result.rs deleted file mode 100644 index 830f5a0c71..0000000000 --- a/sdk-libs/photon-api/src/models/_get_multiple_compressed_accounts_post_200_response_result.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetMultipleCompressedAccountsPost200ResponseResult { - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "value")] - pub value: Box, -} - -impl GetMultipleCompressedAccountsPost200ResponseResult { - pub fn new( - context: models::Context, - value: models::AccountList, - ) -> GetMultipleCompressedAccountsPost200ResponseResult { - GetMultipleCompressedAccountsPost200ResponseResult { - context: Box::new(context), - value: Box::new(value), - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_multiple_compressed_accounts_post_request.rs b/sdk-libs/photon-api/src/models/_get_multiple_compressed_accounts_post_request.rs deleted file mode 100644 index efe4ee8b62..0000000000 --- a/sdk-libs/photon-api/src/models/_get_multiple_compressed_accounts_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetMultipleCompressedAccountsPostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetMultipleCompressedAccountsPostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetMultipleCompressedAccountsPostRequestParams, - ) -> GetMultipleCompressedAccountsPostRequest { - GetMultipleCompressedAccountsPostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getMultipleCompressedAccounts")] - GetMultipleCompressedAccounts, -} - -impl Default for Method { - fn default() -> Method { - Self::GetMultipleCompressedAccounts - } -} diff --git a/sdk-libs/photon-api/src/models/_get_multiple_compressed_accounts_post_request_params.rs b/sdk-libs/photon-api/src/models/_get_multiple_compressed_accounts_post_request_params.rs deleted file mode 100644 index da5a367efe..0000000000 --- a/sdk-libs/photon-api/src/models/_get_multiple_compressed_accounts_post_request_params.rs +++ /dev/null @@ -1,30 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -/// GetMultipleCompressedAccountsPostRequestParams : Request for compressed account data -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetMultipleCompressedAccountsPostRequestParams { - #[serde(rename = "addresses", default, skip_serializing_if = "Option::is_none")] - pub addresses: Option>, - #[serde(rename = "hashes", default, skip_serializing_if = "Option::is_none")] - pub hashes: Option>, -} - -impl GetMultipleCompressedAccountsPostRequestParams { - /// Request for compressed account data - pub fn new() -> GetMultipleCompressedAccountsPostRequestParams { - GetMultipleCompressedAccountsPostRequestParams { - addresses: None, - hashes: None, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_multiple_compressed_accounts_v2_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_multiple_compressed_accounts_v2_post_200_response.rs deleted file mode 100644 index b115da16a5..0000000000 --- a/sdk-libs/photon-api/src/models/_get_multiple_compressed_accounts_v2_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetMultipleCompressedAccountsV2Post200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetMultipleCompressedAccountsV2Post200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetMultipleCompressedAccountsV2Post200Response { - GetMultipleCompressedAccountsV2Post200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_multiple_compressed_accounts_v2_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_multiple_compressed_accounts_v2_post_200_response_result.rs deleted file mode 100644 index fed208bc7a..0000000000 --- a/sdk-libs/photon-api/src/models/_get_multiple_compressed_accounts_v2_post_200_response_result.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetMultipleCompressedAccountsV2Post200ResponseResult { - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "value")] - pub value: Box, -} - -impl GetMultipleCompressedAccountsV2Post200ResponseResult { - pub fn new( - context: models::Context, - value: models::AccountListV2, - ) -> GetMultipleCompressedAccountsV2Post200ResponseResult { - GetMultipleCompressedAccountsV2Post200ResponseResult { - context: Box::new(context), - value: Box::new(value), - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_multiple_compressed_accounts_v2_post_request.rs b/sdk-libs/photon-api/src/models/_get_multiple_compressed_accounts_v2_post_request.rs deleted file mode 100644 index 66e0e28004..0000000000 --- a/sdk-libs/photon-api/src/models/_get_multiple_compressed_accounts_v2_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetMultipleCompressedAccountsV2PostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetMultipleCompressedAccountsV2PostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetMultipleCompressedAccountsV2PostRequestParams, - ) -> GetMultipleCompressedAccountsV2PostRequest { - GetMultipleCompressedAccountsV2PostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getMultipleCompressedAccountsV2")] - GetMultipleCompressedAccountsV2, -} - -impl Default for Method { - fn default() -> Method { - Self::GetMultipleCompressedAccountsV2 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_multiple_compressed_accounts_v2_post_request_params.rs b/sdk-libs/photon-api/src/models/_get_multiple_compressed_accounts_v2_post_request_params.rs deleted file mode 100644 index ec6d5fe5f8..0000000000 --- a/sdk-libs/photon-api/src/models/_get_multiple_compressed_accounts_v2_post_request_params.rs +++ /dev/null @@ -1,30 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -/// GetMultipleCompressedAccountsV2PostRequestParams : Request for compressed account data -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetMultipleCompressedAccountsV2PostRequestParams { - #[serde(rename = "addresses", default, skip_serializing_if = "Option::is_none")] - pub addresses: Option>, - #[serde(rename = "hashes", default, skip_serializing_if = "Option::is_none")] - pub hashes: Option>, -} - -impl GetMultipleCompressedAccountsV2PostRequestParams { - /// Request for compressed account data - pub fn new() -> GetMultipleCompressedAccountsV2PostRequestParams { - GetMultipleCompressedAccountsV2PostRequestParams { - addresses: None, - hashes: None, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_multiple_new_address_proofs_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_multiple_new_address_proofs_post_200_response.rs deleted file mode 100644 index eb0f18d606..0000000000 --- a/sdk-libs/photon-api/src/models/_get_multiple_new_address_proofs_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetMultipleNewAddressProofsPost200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetMultipleNewAddressProofsPost200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetMultipleNewAddressProofsPost200Response { - GetMultipleNewAddressProofsPost200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_multiple_new_address_proofs_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_multiple_new_address_proofs_post_200_response_result.rs deleted file mode 100644 index 6bbc5c8ed4..0000000000 --- a/sdk-libs/photon-api/src/models/_get_multiple_new_address_proofs_post_200_response_result.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetMultipleNewAddressProofsPost200ResponseResult { - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "value")] - pub value: Vec, -} - -impl GetMultipleNewAddressProofsPost200ResponseResult { - pub fn new( - context: models::Context, - value: Vec, - ) -> GetMultipleNewAddressProofsPost200ResponseResult { - GetMultipleNewAddressProofsPost200ResponseResult { - context: Box::new(context), - value, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_multiple_new_address_proofs_post_request.rs b/sdk-libs/photon-api/src/models/_get_multiple_new_address_proofs_post_request.rs deleted file mode 100644 index efa99b2d3c..0000000000 --- a/sdk-libs/photon-api/src/models/_get_multiple_new_address_proofs_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetMultipleNewAddressProofsPostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Vec, -} - -impl GetMultipleNewAddressProofsPostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: Vec, - ) -> GetMultipleNewAddressProofsPostRequest { - GetMultipleNewAddressProofsPostRequest { - id, - jsonrpc, - method, - params, - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getMultipleNewAddressProofs")] - GetMultipleNewAddressProofs, -} - -impl Default for Method { - fn default() -> Method { - Self::GetMultipleNewAddressProofs - } -} diff --git a/sdk-libs/photon-api/src/models/_get_multiple_new_address_proofs_v2_post_request.rs b/sdk-libs/photon-api/src/models/_get_multiple_new_address_proofs_v2_post_request.rs deleted file mode 100644 index 2f2237e335..0000000000 --- a/sdk-libs/photon-api/src/models/_get_multiple_new_address_proofs_v2_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetMultipleNewAddressProofsV2PostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Vec, -} - -impl GetMultipleNewAddressProofsV2PostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: Vec, - ) -> GetMultipleNewAddressProofsV2PostRequest { - GetMultipleNewAddressProofsV2PostRequest { - id, - jsonrpc, - method, - params, - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getMultipleNewAddressProofsV2")] - GetMultipleNewAddressProofsV2, -} - -impl Default for Method { - fn default() -> Method { - Self::GetMultipleNewAddressProofsV2 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_queue_elements_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_queue_elements_post_200_response.rs deleted file mode 100644 index c958130397..0000000000 --- a/sdk-libs/photon-api/src/models/_get_queue_elements_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetQueueElementsPost200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetQueueElementsPost200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetQueueElementsPost200Response { - GetQueueElementsPost200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_queue_elements_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_queue_elements_post_200_response_result.rs deleted file mode 100644 index 6b43e56c0c..0000000000 --- a/sdk-libs/photon-api/src/models/_get_queue_elements_post_200_response_result.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetQueueElementsPost200ResponseResult { - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "stateQueue", skip_serializing_if = "Option::is_none")] - pub state_queue: Option>, - #[serde(rename = "addressQueue", skip_serializing_if = "Option::is_none")] - pub address_queue: Option>, -} - -impl GetQueueElementsPost200ResponseResult { - pub fn new(context: models::Context) -> GetQueueElementsPost200ResponseResult { - GetQueueElementsPost200ResponseResult { - context: Box::new(context), - state_queue: None, - address_queue: None, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_queue_elements_post_request.rs b/sdk-libs/photon-api/src/models/_get_queue_elements_post_request.rs deleted file mode 100644 index 4761452303..0000000000 --- a/sdk-libs/photon-api/src/models/_get_queue_elements_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetQueueElementsPostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetQueueElementsPostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetQueueElementsPostRequestParams, - ) -> GetQueueElementsPostRequest { - GetQueueElementsPostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getQueueElements")] - GetQueueElements, -} - -impl Default for Method { - fn default() -> Method { - Self::GetQueueElements - } -} diff --git a/sdk-libs/photon-api/src/models/_get_queue_elements_post_request_params.rs b/sdk-libs/photon-api/src/models/_get_queue_elements_post_request_params.rs deleted file mode 100644 index b2998b6fc0..0000000000 --- a/sdk-libs/photon-api/src/models/_get_queue_elements_post_request_params.rs +++ /dev/null @@ -1,38 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -#[serde(rename_all = "camelCase")] -pub struct GetQueueElementsPostRequestParams { - /// The merkle tree public key - pub tree: String, - - #[serde(skip_serializing_if = "Option::is_none")] - pub output_queue: Option, - - #[serde(skip_serializing_if = "Option::is_none")] - pub input_queue: Option, - - #[serde(skip_serializing_if = "Option::is_none")] - pub address_queue: Option, -} - -impl GetQueueElementsPostRequestParams { - pub fn new(tree: String) -> GetQueueElementsPostRequestParams { - GetQueueElementsPostRequestParams { - tree, - output_queue: None, - input_queue: None, - address_queue: None, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_queue_elements_v2_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_queue_elements_v2_post_200_response.rs deleted file mode 100644 index 13441587c3..0000000000 --- a/sdk-libs/photon-api/src/models/_get_queue_elements_v2_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetQueueElementsV2Post200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetQueueElementsV2Post200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetQueueElementsV2Post200Response { - GetQueueElementsV2Post200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_queue_elements_v2_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_queue_elements_v2_post_200_response_result.rs deleted file mode 100644 index 34b395e7e8..0000000000 --- a/sdk-libs/photon-api/src/models/_get_queue_elements_v2_post_200_response_result.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetQueueElementsV2Post200ResponseResult { - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "stateQueue", skip_serializing_if = "Option::is_none")] - pub state_queue: Option>, - #[serde(rename = "addressQueue", skip_serializing_if = "Option::is_none")] - pub address_queue: Option>, -} - -impl GetQueueElementsV2Post200ResponseResult { - pub fn new(context: models::Context) -> GetQueueElementsV2Post200ResponseResult { - GetQueueElementsV2Post200ResponseResult { - context: Box::new(context), - state_queue: None, - address_queue: None, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_queue_elements_v2_post_request.rs b/sdk-libs/photon-api/src/models/_get_queue_elements_v2_post_request.rs deleted file mode 100644 index 9adc582be7..0000000000 --- a/sdk-libs/photon-api/src/models/_get_queue_elements_v2_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetQueueElementsV2PostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetQueueElementsV2PostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetQueueElementsV2PostRequestParams, - ) -> GetQueueElementsV2PostRequest { - GetQueueElementsV2PostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getQueueElements")] - GetQueueElementsV2, -} - -impl Default for Method { - fn default() -> Method { - Self::GetQueueElementsV2 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_queue_elements_v2_post_request_params.rs b/sdk-libs/photon-api/src/models/_get_queue_elements_v2_post_request_params.rs deleted file mode 100644 index 36ffe2cbbf..0000000000 --- a/sdk-libs/photon-api/src/models/_get_queue_elements_v2_post_request_params.rs +++ /dev/null @@ -1,38 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -#[serde(rename_all = "camelCase")] -pub struct GetQueueElementsV2PostRequestParams { - /// The merkle tree public key - pub tree: String, - - #[serde(skip_serializing_if = "Option::is_none")] - pub output_queue: Option, - - #[serde(skip_serializing_if = "Option::is_none")] - pub input_queue: Option, - - #[serde(skip_serializing_if = "Option::is_none")] - pub address_queue: Option, -} - -impl GetQueueElementsV2PostRequestParams { - pub fn new(tree: String) -> GetQueueElementsV2PostRequestParams { - GetQueueElementsV2PostRequestParams { - tree, - output_queue: None, - input_queue: None, - address_queue: None, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_queue_info_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_queue_info_post_200_response.rs deleted file mode 100644 index 101456b52e..0000000000 --- a/sdk-libs/photon-api/src/models/_get_queue_info_post_200_response.rs +++ /dev/null @@ -1,47 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -#[serde(rename_all = "camelCase")] -pub struct JsonRpcError { - pub code: i32, - pub message: String, - #[serde(skip_serializing_if = "Option::is_none")] - pub data: Option, -} - -#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] -pub struct GetQueueInfoPost200Response { - #[serde(rename = "jsonrpc")] - pub jsonrpc: String, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option, - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option, - #[serde(rename = "id")] - pub id: Option, -} - -impl GetQueueInfoPost200Response { - pub fn new( - jsonrpc: String, - result: Option, - id: Option, - ) -> GetQueueInfoPost200Response { - GetQueueInfoPost200Response { - jsonrpc, - result, - error: None, - id, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_queue_info_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_queue_info_post_200_response_result.rs deleted file mode 100644 index 00435c3aaa..0000000000 --- a/sdk-libs/photon-api/src/models/_get_queue_info_post_200_response_result.rs +++ /dev/null @@ -1,46 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] -pub struct GetQueueInfoPost200ResponseResult { - #[serde(rename = "queues")] - pub queues: Vec, - #[serde(rename = "slot")] - pub slot: u64, -} - -#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] -pub struct QueueInfo { - #[serde(rename = "tree")] - pub tree: String, - #[serde(rename = "queue")] - pub queue: String, - #[serde(rename = "queueType")] - pub queue_type: u8, - #[serde(rename = "queueSize")] - pub queue_size: u64, -} - -impl GetQueueInfoPost200ResponseResult { - pub fn new(queues: Vec, slot: u64) -> GetQueueInfoPost200ResponseResult { - GetQueueInfoPost200ResponseResult { queues, slot } - } -} - -impl QueueInfo { - pub fn new(tree: String, queue: String, queue_type: u8, queue_size: u64) -> QueueInfo { - QueueInfo { - tree, - queue, - queue_type, - queue_size, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_queue_info_post_request.rs b/sdk-libs/photon-api/src/models/_get_queue_info_post_request.rs deleted file mode 100644 index 29511189a3..0000000000 --- a/sdk-libs/photon-api/src/models/_get_queue_info_post_request.rs +++ /dev/null @@ -1,64 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetQueueInfoPostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: i32, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: GetQueueInfoParams, -} - -impl GetQueueInfoPostRequest { - pub fn new(id: i32, jsonrpc: Jsonrpc, method: Method) -> GetQueueInfoPostRequest { - GetQueueInfoPostRequest { - id, - jsonrpc, - method, - params: GetQueueInfoParams::default(), - } - } -} - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetQueueInfoParams {} - -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} - -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getQueueInfo")] - GetQueueInfo, -} - -impl Default for Method { - fn default() -> Method { - Self::GetQueueInfo - } -} diff --git a/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_post_200_response.rs deleted file mode 100644 index 0904505c21..0000000000 --- a/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetTransactionWithCompressionInfoPost200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetTransactionWithCompressionInfoPost200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetTransactionWithCompressionInfoPost200Response { - GetTransactionWithCompressionInfoPost200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_post_200_response_result.rs deleted file mode 100644 index 0eeb015b14..0000000000 --- a/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_post_200_response_result.rs +++ /dev/null @@ -1,32 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -/// GetTransactionWithCompressionInfoPost200ResponseResult : A Solana transaction with additional compression information -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetTransactionWithCompressionInfoPost200ResponseResult { - #[serde(rename = "compression_info", skip_serializing_if = "Option::is_none")] - pub compression_info: - Option>, - /// An encoded confirmed transaction with status meta - #[serde(rename = "transaction", skip_serializing_if = "Option::is_none")] - pub transaction: Option, -} - -impl GetTransactionWithCompressionInfoPost200ResponseResult { - /// A Solana transaction with additional compression information - pub fn new() -> GetTransactionWithCompressionInfoPost200ResponseResult { - GetTransactionWithCompressionInfoPost200ResponseResult { - compression_info: None, - transaction: None, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_post_200_response_result_compression_info.rs b/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_post_200_response_result_compression_info.rs deleted file mode 100644 index e3a7131fd4..0000000000 --- a/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_post_200_response_result_compression_info.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetTransactionWithCompressionInfoPost200ResponseResultCompressionInfo { - #[serde(rename = "closedAccounts")] - pub closed_accounts: Vec, - #[serde(rename = "openedAccounts")] - pub opened_accounts: Vec, -} - -impl GetTransactionWithCompressionInfoPost200ResponseResultCompressionInfo { - pub fn new( - closed_accounts: Vec, - opened_accounts: Vec, - ) -> GetTransactionWithCompressionInfoPost200ResponseResultCompressionInfo { - GetTransactionWithCompressionInfoPost200ResponseResultCompressionInfo { - closed_accounts, - opened_accounts, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_post_request.rs b/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_post_request.rs deleted file mode 100644 index 2fda92692c..0000000000 --- a/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetTransactionWithCompressionInfoPostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetTransactionWithCompressionInfoPostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetTransactionWithCompressionInfoPostRequestParams, - ) -> GetTransactionWithCompressionInfoPostRequest { - GetTransactionWithCompressionInfoPostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getTransactionWithCompressionInfo")] - GetTransactionWithCompressionInfo, -} - -impl Default for Method { - fn default() -> Method { - Self::GetTransactionWithCompressionInfo - } -} diff --git a/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_post_request_params.rs b/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_post_request_params.rs deleted file mode 100644 index 3b7c6af52c..0000000000 --- a/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_post_request_params.rs +++ /dev/null @@ -1,24 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetTransactionWithCompressionInfoPostRequestParams { - /// A Solana transaction signature. - #[serde(rename = "signature")] - pub signature: String, -} - -impl GetTransactionWithCompressionInfoPostRequestParams { - pub fn new(signature: String) -> GetTransactionWithCompressionInfoPostRequestParams { - GetTransactionWithCompressionInfoPostRequestParams { signature } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_v2_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_v2_post_200_response.rs deleted file mode 100644 index 677aa9e40b..0000000000 --- a/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_v2_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetTransactionWithCompressionInfoV2Post200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetTransactionWithCompressionInfoV2Post200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetTransactionWithCompressionInfoV2Post200Response { - GetTransactionWithCompressionInfoV2Post200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_v2_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_v2_post_200_response_result.rs deleted file mode 100644 index 5cdb4df278..0000000000 --- a/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_v2_post_200_response_result.rs +++ /dev/null @@ -1,33 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -/// GetTransactionWithCompressionInfoV2Post200ResponseResult : A Solana transaction with additional compression information -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetTransactionWithCompressionInfoV2Post200ResponseResult { - #[serde(rename = "compression_info", skip_serializing_if = "Option::is_none")] - pub compression_info: Option< - Box, - >, - /// An encoded confirmed transaction with status meta - #[serde(rename = "transaction", skip_serializing_if = "Option::is_none")] - pub transaction: Option, -} - -impl GetTransactionWithCompressionInfoV2Post200ResponseResult { - /// A Solana transaction with additional compression information - pub fn new() -> GetTransactionWithCompressionInfoV2Post200ResponseResult { - GetTransactionWithCompressionInfoV2Post200ResponseResult { - compression_info: None, - transaction: None, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_v2_post_200_response_result_compression_info.rs b/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_v2_post_200_response_result_compression_info.rs deleted file mode 100644 index 6c8a895894..0000000000 --- a/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_v2_post_200_response_result_compression_info.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetTransactionWithCompressionInfoV2Post200ResponseResultCompressionInfo { - #[serde(rename = "closedAccounts")] - pub closed_accounts: Vec, - #[serde(rename = "openedAccounts")] - pub opened_accounts: Vec, -} - -impl GetTransactionWithCompressionInfoV2Post200ResponseResultCompressionInfo { - pub fn new( - closed_accounts: Vec, - opened_accounts: Vec, - ) -> GetTransactionWithCompressionInfoV2Post200ResponseResultCompressionInfo { - GetTransactionWithCompressionInfoV2Post200ResponseResultCompressionInfo { - closed_accounts, - opened_accounts, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_v2_post_request.rs b/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_v2_post_request.rs deleted file mode 100644 index e1c961f3ab..0000000000 --- a/sdk-libs/photon-api/src/models/_get_transaction_with_compression_info_v2_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetTransactionWithCompressionInfoV2PostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetTransactionWithCompressionInfoV2PostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetTransactionWithCompressionInfoPostRequestParams, - ) -> GetTransactionWithCompressionInfoV2PostRequest { - GetTransactionWithCompressionInfoV2PostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getTransactionWithCompressionInfoV2")] - GetTransactionWithCompressionInfoV2, -} - -impl Default for Method { - fn default() -> Method { - Self::GetTransactionWithCompressionInfoV2 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_validity_proof_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_validity_proof_post_200_response.rs deleted file mode 100644 index 808e3523f3..0000000000 --- a/sdk-libs/photon-api/src/models/_get_validity_proof_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetValidityProofPost200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetValidityProofPost200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetValidityProofPost200Response { - GetValidityProofPost200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_validity_proof_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_validity_proof_post_200_response_result.rs deleted file mode 100644 index b264be70be..0000000000 --- a/sdk-libs/photon-api/src/models/_get_validity_proof_post_200_response_result.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetValidityProofPost200ResponseResult { - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "value")] - pub value: Box, -} - -impl GetValidityProofPost200ResponseResult { - pub fn new( - context: models::Context, - value: models::CompressedProofWithContext, - ) -> GetValidityProofPost200ResponseResult { - GetValidityProofPost200ResponseResult { - context: Box::new(context), - value: Box::new(value), - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_validity_proof_post_request.rs b/sdk-libs/photon-api/src/models/_get_validity_proof_post_request.rs deleted file mode 100644 index c67dc7b6d0..0000000000 --- a/sdk-libs/photon-api/src/models/_get_validity_proof_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetValidityProofPostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetValidityProofPostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetValidityProofPostRequestParams, - ) -> GetValidityProofPostRequest { - GetValidityProofPostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getValidityProof")] - GetValidityProof, -} - -impl Default for Method { - fn default() -> Method { - Self::GetValidityProof - } -} diff --git a/sdk-libs/photon-api/src/models/_get_validity_proof_post_request_params.rs b/sdk-libs/photon-api/src/models/_get_validity_proof_post_request_params.rs deleted file mode 100644 index 3b303d9e47..0000000000 --- a/sdk-libs/photon-api/src/models/_get_validity_proof_post_request_params.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetValidityProofPostRequestParams { - #[serde(rename = "hashes", skip_serializing_if = "Option::is_none")] - pub hashes: Option>, - #[serde( - rename = "newAddressesWithTrees", - skip_serializing_if = "Option::is_none" - )] - pub new_addresses_with_trees: Option>, -} - -impl GetValidityProofPostRequestParams { - pub fn new() -> GetValidityProofPostRequestParams { - GetValidityProofPostRequestParams { - hashes: None, - new_addresses_with_trees: None, - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_validity_proof_v2_post_200_response.rs b/sdk-libs/photon-api/src/models/_get_validity_proof_v2_post_200_response.rs deleted file mode 100644 index 020ffe93dd..0000000000 --- a/sdk-libs/photon-api/src/models/_get_validity_proof_v2_post_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetValidityProofV2Post200Response { - #[serde(rename = "error", skip_serializing_if = "Option::is_none")] - pub error: Option>, - /// An ID to identify the response. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - #[serde(rename = "result", skip_serializing_if = "Option::is_none")] - pub result: Option>, -} - -impl GetValidityProofV2Post200Response { - pub fn new(id: Id, jsonrpc: Jsonrpc) -> GetValidityProofV2Post200Response { - GetValidityProofV2Post200Response { - error: None, - id, - jsonrpc, - result: None, - } - } -} -/// An ID to identify the response. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} diff --git a/sdk-libs/photon-api/src/models/_get_validity_proof_v2_post_200_response_result.rs b/sdk-libs/photon-api/src/models/_get_validity_proof_v2_post_200_response_result.rs deleted file mode 100644 index 6d49c97810..0000000000 --- a/sdk-libs/photon-api/src/models/_get_validity_proof_v2_post_200_response_result.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetValidityProofV2Post200ResponseResult { - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "value")] - pub value: Box, -} - -impl GetValidityProofV2Post200ResponseResult { - pub fn new( - context: models::Context, - value: models::CompressedProofWithContextV2, - ) -> GetValidityProofV2Post200ResponseResult { - GetValidityProofV2Post200ResponseResult { - context: Box::new(context), - value: Box::new(value), - } - } -} diff --git a/sdk-libs/photon-api/src/models/_get_validity_proof_v2_post_request.rs b/sdk-libs/photon-api/src/models/_get_validity_proof_v2_post_request.rs deleted file mode 100644 index c08be7a3ba..0000000000 --- a/sdk-libs/photon-api/src/models/_get_validity_proof_v2_post_request.rs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetValidityProofV2PostRequest { - /// An ID to identify the request. - #[serde(rename = "id")] - pub id: Id, - /// The version of the JSON-RPC protocol. - #[serde(rename = "jsonrpc")] - pub jsonrpc: Jsonrpc, - /// The name of the method to invoke. - #[serde(rename = "method")] - pub method: Method, - #[serde(rename = "params")] - pub params: Box, -} - -impl GetValidityProofV2PostRequest { - pub fn new( - id: Id, - jsonrpc: Jsonrpc, - method: Method, - params: models::GetValidityProofPostRequestParams, - ) -> GetValidityProofV2PostRequest { - GetValidityProofV2PostRequest { - id, - jsonrpc, - method, - params: Box::new(params), - } - } -} -/// An ID to identify the request. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Id { - #[serde(rename = "test-account")] - TestAccount, -} - -impl Default for Id { - fn default() -> Id { - Self::TestAccount - } -} -/// The version of the JSON-RPC protocol. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Jsonrpc { - #[serde(rename = "2.0")] - Variant2Period0, -} - -impl Default for Jsonrpc { - fn default() -> Jsonrpc { - Self::Variant2Period0 - } -} -/// The name of the method to invoke. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Method { - #[serde(rename = "getValidityProofV2")] - GetValidityProofV2, -} - -impl Default for Method { - fn default() -> Method { - Self::GetValidityProofV2 - } -} diff --git a/sdk-libs/photon-api/src/models/account.rs b/sdk-libs/photon-api/src/models/account.rs deleted file mode 100644 index c35b077ae7..0000000000 --- a/sdk-libs/photon-api/src/models/account.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct Account { - /// A Solana public key represented as a base58 string. - #[serde(rename = "address", skip_serializing_if = "Option::is_none")] - pub address: Option, - #[serde(rename = "data", skip_serializing_if = "Option::is_none")] - pub data: Option>, - /// A 32-byte hash represented as a base58 string. - #[serde(rename = "hash")] - pub hash: String, - #[serde(rename = "lamports")] - pub lamports: u64, - #[serde(rename = "leafIndex")] - pub leaf_index: u32, - /// A Solana public key represented as a base58 string. - #[serde(rename = "owner")] - pub owner: String, - #[serde(rename = "seq", skip_serializing_if = "Option::is_none")] - pub seq: Option, - #[serde(rename = "slotCreated")] - pub slot_created: u64, - /// A Solana public key represented as a base58 string. - #[serde(rename = "tree")] - pub tree: String, -} - -impl Account { - pub fn new( - hash: String, - lamports: u64, - leaf_index: u32, - owner: String, - slot_created: u64, - tree: String, - ) -> Account { - Account { - address: None, - data: None, - hash, - lamports, - leaf_index, - owner, - seq: None, - slot_created, - tree, - } - } -} diff --git a/sdk-libs/photon-api/src/models/account_context.rs b/sdk-libs/photon-api/src/models/account_context.rs deleted file mode 100644 index b8cc31ca2a..0000000000 --- a/sdk-libs/photon-api/src/models/account_context.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -/// AccountContext: This is currently used internally: - Internal (state_updates,..) - GetTransactionWithCompressionInfo (internally) - GetTransactionWithCompressionInfoV2 (internally) All endpoints return AccountV2. -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct AccountContext { - #[serde(rename = "inOutputQueue")] - pub in_output_queue: bool, - #[serde(rename = "nullifiedInTree")] - pub nullified_in_tree: bool, - /// A 32-byte hash represented as a base58 string. - #[serde(rename = "nullifier", skip_serializing_if = "Option::is_none")] - pub nullifier: Option, - #[serde( - rename = "nullifierQueueIndex", - skip_serializing_if = "Option::is_none" - )] - pub nullifier_queue_index: Option, - /// A Solana public key represented as a base58 string. - #[serde(rename = "queue")] - pub queue: String, - #[serde(rename = "spent")] - pub spent: bool, - #[serde(rename = "treeType")] - pub tree_type: u16, - /// A 32-byte hash represented as a base58 string. - #[serde(rename = "txHash", skip_serializing_if = "Option::is_none")] - pub tx_hash: Option, -} - -impl AccountContext { - /// This is currently used internally: - Internal (state_updates,..) - GetTransactionWithCompressionInfo (internally) - GetTransactionWithCompressionInfoV2 (internally) All endpoints return AccountV2. - pub fn new( - in_output_queue: bool, - nullified_in_tree: bool, - queue: String, - spent: bool, - tree_type: u16, - ) -> AccountContext { - AccountContext { - in_output_queue, - nullified_in_tree, - nullifier: None, - nullifier_queue_index: None, - queue, - spent, - tree_type, - tx_hash: None, - } - } -} diff --git a/sdk-libs/photon-api/src/models/account_data.rs b/sdk-libs/photon-api/src/models/account_data.rs deleted file mode 100644 index c6c683dfcd..0000000000 --- a/sdk-libs/photon-api/src/models/account_data.rs +++ /dev/null @@ -1,33 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct AccountData { - /// A base 64 encoded string. - #[serde(rename = "data")] - pub data: String, - /// A 32-byte hash represented as a base58 string. - #[serde(rename = "dataHash")] - pub data_hash: String, - #[serde(rename = "discriminator")] - pub discriminator: u64, -} - -impl AccountData { - pub fn new(data: String, data_hash: String, discriminator: u64) -> AccountData { - AccountData { - data, - data_hash, - discriminator, - } - } -} diff --git a/sdk-libs/photon-api/src/models/account_list.rs b/sdk-libs/photon-api/src/models/account_list.rs deleted file mode 100644 index c2b45d9524..0000000000 --- a/sdk-libs/photon-api/src/models/account_list.rs +++ /dev/null @@ -1,23 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct AccountList { - #[serde(rename = "items")] - pub items: Vec>, -} - -impl AccountList { - pub fn new(items: Vec>) -> AccountList { - AccountList { items } - } -} diff --git a/sdk-libs/photon-api/src/models/account_list_v2.rs b/sdk-libs/photon-api/src/models/account_list_v2.rs deleted file mode 100644 index 1ce046e6dd..0000000000 --- a/sdk-libs/photon-api/src/models/account_list_v2.rs +++ /dev/null @@ -1,23 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct AccountListV2 { - #[serde(rename = "items")] - pub items: Vec, -} - -impl AccountListV2 { - pub fn new(items: Vec) -> AccountListV2 { - AccountListV2 { items } - } -} diff --git a/sdk-libs/photon-api/src/models/account_proof_inputs.rs b/sdk-libs/photon-api/src/models/account_proof_inputs.rs deleted file mode 100644 index 1950ea015d..0000000000 --- a/sdk-libs/photon-api/src/models/account_proof_inputs.rs +++ /dev/null @@ -1,43 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct AccountProofInputs { - #[serde(rename = "hash")] - pub hash: String, - #[serde(rename = "leafIndex")] - pub leaf_index: u64, - #[serde(rename = "merkleContext")] - pub merkle_context: Box, - #[serde(rename = "root")] - pub root: String, - #[serde(rename = "rootIndex")] - pub root_index: Box, -} - -impl AccountProofInputs { - pub fn new( - hash: String, - leaf_index: u64, - merkle_context: models::MerkleContextV2, - root: String, - root_index: models::RootIndex, - ) -> AccountProofInputs { - AccountProofInputs { - hash, - leaf_index, - merkle_context: Box::new(merkle_context), - root, - root_index: Box::new(root_index), - } - } -} diff --git a/sdk-libs/photon-api/src/models/account_state.rs b/sdk-libs/photon-api/src/models/account_state.rs deleted file mode 100644 index 3f053ac56a..0000000000 --- a/sdk-libs/photon-api/src/models/account_state.rs +++ /dev/null @@ -1,36 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ -use std::fmt::Display; - -use crate::models; - -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum AccountState { - #[serde(rename = "initialized")] - Initialized, - #[serde(rename = "frozen")] - Frozen, -} - -impl Display for AccountState { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let str = match self { - Self::Initialized => String::from("initialized"), - Self::Frozen => String::from("frozen"), - }; - write!(f, "{}", str) - } -} - -impl Default for AccountState { - fn default() -> AccountState { - Self::Initialized - } -} diff --git a/sdk-libs/photon-api/src/models/account_v2.rs b/sdk-libs/photon-api/src/models/account_v2.rs deleted file mode 100644 index 31159f8c67..0000000000 --- a/sdk-libs/photon-api/src/models/account_v2.rs +++ /dev/null @@ -1,63 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct AccountV2 { - /// A Solana public key represented as a base58 string. - #[serde(rename = "address", skip_serializing_if = "Option::is_none")] - pub address: Option, - #[serde(rename = "data", skip_serializing_if = "Option::is_none")] - pub data: Option>, - /// A 32-byte hash represented as a base58 string. - #[serde(rename = "hash")] - pub hash: String, - #[serde(rename = "lamports")] - pub lamports: u64, - #[serde(rename = "leafIndex")] - pub leaf_index: u32, - #[serde(rename = "merkleContext")] - pub merkle_context: Box, - /// A Solana public key represented as a base58 string. - #[serde(rename = "owner")] - pub owner: String, - #[serde(rename = "proveByIndex")] - pub prove_by_index: bool, - #[serde(rename = "seq", skip_serializing_if = "Option::is_none")] - pub seq: Option, - #[serde(rename = "slotCreated")] - pub slot_created: u64, -} - -impl AccountV2 { - pub fn new( - hash: String, - lamports: u64, - leaf_index: u32, - merkle_context: models::MerkleContextV2, - owner: String, - prove_by_index: bool, - slot_created: u64, - ) -> AccountV2 { - AccountV2 { - address: None, - data: None, - hash, - lamports, - leaf_index, - merkle_context: Box::new(merkle_context), - owner, - prove_by_index, - seq: None, - slot_created, - } - } -} diff --git a/sdk-libs/photon-api/src/models/account_with_context.rs b/sdk-libs/photon-api/src/models/account_with_context.rs deleted file mode 100644 index 1e31e17f44..0000000000 --- a/sdk-libs/photon-api/src/models/account_with_context.rs +++ /dev/null @@ -1,28 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct AccountWithContext { - #[serde(rename = "account")] - pub account: Box, - #[serde(rename = "context")] - pub context: Box, -} - -impl AccountWithContext { - pub fn new(account: models::Account, context: models::AccountContext) -> AccountWithContext { - AccountWithContext { - account: Box::new(account), - context: Box::new(context), - } - } -} diff --git a/sdk-libs/photon-api/src/models/account_with_optional_token_data.rs b/sdk-libs/photon-api/src/models/account_with_optional_token_data.rs deleted file mode 100644 index 0662fb0a38..0000000000 --- a/sdk-libs/photon-api/src/models/account_with_optional_token_data.rs +++ /dev/null @@ -1,28 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct AccountWithOptionalTokenData { - #[serde(rename = "account")] - pub account: Box, - #[serde(rename = "optionalTokenData", skip_serializing_if = "Option::is_none")] - pub optional_token_data: Option>, -} - -impl AccountWithOptionalTokenData { - pub fn new(account: models::Account) -> AccountWithOptionalTokenData { - AccountWithOptionalTokenData { - account: Box::new(account), - optional_token_data: None, - } - } -} diff --git a/sdk-libs/photon-api/src/models/account_with_optional_token_data_v2.rs b/sdk-libs/photon-api/src/models/account_with_optional_token_data_v2.rs deleted file mode 100644 index 8c0b00309f..0000000000 --- a/sdk-libs/photon-api/src/models/account_with_optional_token_data_v2.rs +++ /dev/null @@ -1,28 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct AccountWithOptionalTokenDataV2 { - #[serde(rename = "account")] - pub account: Box, - #[serde(rename = "optionalTokenData", skip_serializing_if = "Option::is_none")] - pub optional_token_data: Option>, -} - -impl AccountWithOptionalTokenDataV2 { - pub fn new(account: models::AccountV2) -> AccountWithOptionalTokenDataV2 { - AccountWithOptionalTokenDataV2 { - account: Box::new(account), - optional_token_data: None, - } - } -} diff --git a/sdk-libs/photon-api/src/models/address_proof_inputs.rs b/sdk-libs/photon-api/src/models/address_proof_inputs.rs deleted file mode 100644 index eaf6f424aa..0000000000 --- a/sdk-libs/photon-api/src/models/address_proof_inputs.rs +++ /dev/null @@ -1,39 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct AddressProofInputs { - #[serde(rename = "address")] - pub address: String, - #[serde(rename = "merkleContext")] - pub merkle_context: Box, - #[serde(rename = "root")] - pub root: String, - #[serde(rename = "rootIndex")] - pub root_index: u16, -} - -impl AddressProofInputs { - pub fn new( - address: String, - merkle_context: models::MerkleContextV2, - root: String, - root_index: u16, - ) -> AddressProofInputs { - AddressProofInputs { - address, - merkle_context: Box::new(merkle_context), - root, - root_index, - } - } -} diff --git a/sdk-libs/photon-api/src/models/address_queue_data_v2.rs b/sdk-libs/photon-api/src/models/address_queue_data_v2.rs deleted file mode 100644 index e4ba4239ca..0000000000 --- a/sdk-libs/photon-api/src/models/address_queue_data_v2.rs +++ /dev/null @@ -1,63 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -#[serde(rename_all = "camelCase")] -#[allow(clippy::too_many_arguments)] -pub struct AddressQueueDataV2 { - pub addresses: Vec, - pub queue_indices: Vec, - /// Deduplicated tree nodes for address tree non-inclusion proofs - pub nodes: Vec, - pub low_element_indices: Vec, - pub low_element_values: Vec, - pub low_element_next_indices: Vec, - pub low_element_next_values: Vec, - pub leaves_hash_chains: Vec, - pub initial_root: String, - pub start_index: u64, - pub subtrees: Vec, - pub root_seq: u64, -} - -impl AddressQueueDataV2 { - #[allow(clippy::too_many_arguments)] - pub fn new( - addresses: Vec, - queue_indices: Vec, - nodes: Vec, - low_element_indices: Vec, - low_element_values: Vec, - low_element_next_indices: Vec, - low_element_next_values: Vec, - leaves_hash_chains: Vec, - initial_root: String, - start_index: u64, - subtrees: Vec, - root_seq: u64, - ) -> AddressQueueDataV2 { - AddressQueueDataV2 { - addresses, - queue_indices, - nodes, - low_element_indices, - low_element_values, - low_element_next_indices, - low_element_next_values, - leaves_hash_chains, - initial_root, - start_index, - subtrees, - root_seq, - } - } -} diff --git a/sdk-libs/photon-api/src/models/address_queue_index.rs b/sdk-libs/photon-api/src/models/address_queue_index.rs deleted file mode 100644 index 3ce38a203d..0000000000 --- a/sdk-libs/photon-api/src/models/address_queue_index.rs +++ /dev/null @@ -1,29 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct AddressQueueIndex { - /// A Solana public key represented as a base58 string. - #[serde(rename = "address")] - pub address: String, - #[serde(rename = "queueIndex")] - pub queue_index: u64, -} - -impl AddressQueueIndex { - pub fn new(address: String, queue_index: u64) -> AddressQueueIndex { - AddressQueueIndex { - address, - queue_index, - } - } -} diff --git a/sdk-libs/photon-api/src/models/address_with_tree.rs b/sdk-libs/photon-api/src/models/address_with_tree.rs deleted file mode 100644 index f11574103c..0000000000 --- a/sdk-libs/photon-api/src/models/address_with_tree.rs +++ /dev/null @@ -1,27 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct AddressWithTree { - /// A Solana public key represented as a base58 string. - #[serde(rename = "address")] - pub address: String, - /// A Solana public key represented as a base58 string. - #[serde(rename = "tree")] - pub tree: String, -} - -impl AddressWithTree { - pub fn new(address: String, tree: String) -> AddressWithTree { - AddressWithTree { address, tree } - } -} diff --git a/sdk-libs/photon-api/src/models/closed_account_v2.rs b/sdk-libs/photon-api/src/models/closed_account_v2.rs deleted file mode 100644 index a8c9c47111..0000000000 --- a/sdk-libs/photon-api/src/models/closed_account_v2.rs +++ /dev/null @@ -1,33 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct ClosedAccountV2 { - #[serde(rename = "account")] - pub account: Box, - /// A 32-byte hash represented as a base58 string. - #[serde(rename = "nullifier")] - pub nullifier: String, - /// A 32-byte hash represented as a base58 string. - #[serde(rename = "txHash")] - pub tx_hash: String, -} - -impl ClosedAccountV2 { - pub fn new(account: models::AccountV2, nullifier: String, tx_hash: String) -> ClosedAccountV2 { - ClosedAccountV2 { - account: Box::new(account), - nullifier, - tx_hash, - } - } -} diff --git a/sdk-libs/photon-api/src/models/closed_account_with_optional_token_data_v2.rs b/sdk-libs/photon-api/src/models/closed_account_with_optional_token_data_v2.rs deleted file mode 100644 index 91d4983433..0000000000 --- a/sdk-libs/photon-api/src/models/closed_account_with_optional_token_data_v2.rs +++ /dev/null @@ -1,28 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct ClosedAccountWithOptionalTokenDataV2 { - #[serde(rename = "account")] - pub account: Box, - #[serde(rename = "optionalTokenData", skip_serializing_if = "Option::is_none")] - pub optional_token_data: Option>, -} - -impl ClosedAccountWithOptionalTokenDataV2 { - pub fn new(account: models::ClosedAccountV2) -> ClosedAccountWithOptionalTokenDataV2 { - ClosedAccountWithOptionalTokenDataV2 { - account: Box::new(account), - optional_token_data: None, - } - } -} diff --git a/sdk-libs/photon-api/src/models/compressed_proof.rs b/sdk-libs/photon-api/src/models/compressed_proof.rs deleted file mode 100644 index 4c5f3f29e0..0000000000 --- a/sdk-libs/photon-api/src/models/compressed_proof.rs +++ /dev/null @@ -1,27 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct CompressedProof { - #[serde(rename = "a")] - pub a: Vec, - #[serde(rename = "b")] - pub b: Vec, - #[serde(rename = "c")] - pub c: Vec, -} - -impl CompressedProof { - pub fn new(a: Vec, b: Vec, c: Vec) -> CompressedProof { - CompressedProof { a, b, c } - } -} diff --git a/sdk-libs/photon-api/src/models/compressed_proof_with_context.rs b/sdk-libs/photon-api/src/models/compressed_proof_with_context.rs deleted file mode 100644 index 0567824aad..0000000000 --- a/sdk-libs/photon-api/src/models/compressed_proof_with_context.rs +++ /dev/null @@ -1,47 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct CompressedProofWithContext { - #[serde(rename = "compressedProof")] - pub compressed_proof: Box, - #[serde(rename = "leafIndices")] - pub leaf_indices: Vec, - #[serde(rename = "leaves")] - pub leaves: Vec, - #[serde(rename = "merkleTrees")] - pub merkle_trees: Vec, - #[serde(rename = "rootIndices")] - pub root_indices: Vec, - #[serde(rename = "roots")] - pub roots: Vec, -} - -impl CompressedProofWithContext { - pub fn new( - compressed_proof: models::CompressedProof, - leaf_indices: Vec, - leaves: Vec, - merkle_trees: Vec, - root_indices: Vec, - roots: Vec, - ) -> CompressedProofWithContext { - CompressedProofWithContext { - compressed_proof: Box::new(compressed_proof), - leaf_indices, - leaves, - merkle_trees, - root_indices, - roots, - } - } -} diff --git a/sdk-libs/photon-api/src/models/compressed_proof_with_context_v2.rs b/sdk-libs/photon-api/src/models/compressed_proof_with_context_v2.rs deleted file mode 100644 index 9dc17b6757..0000000000 --- a/sdk-libs/photon-api/src/models/compressed_proof_with_context_v2.rs +++ /dev/null @@ -1,39 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::{ - models, - models::{AccountProofInputs, AddressProofInputs}, -}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct CompressedProofWithContextV2 { - #[serde(rename = "compressedProof", skip_serializing_if = "Option::is_none")] - pub compressed_proof: Option>, - - #[serde(rename = "accounts", skip_serializing_if = "Vec::is_empty")] - pub accounts: Vec, - - #[serde(rename = "addresses", skip_serializing_if = "Vec::is_empty")] - pub addresses: Vec, -} - -impl CompressedProofWithContextV2 { - pub fn new( - accounts: Vec, - addresses: Vec, - ) -> CompressedProofWithContextV2 { - CompressedProofWithContextV2 { - accounts, - addresses, - compressed_proof: None, - } - } -} diff --git a/sdk-libs/photon-api/src/models/compression_info_v2.rs b/sdk-libs/photon-api/src/models/compression_info_v2.rs deleted file mode 100644 index 699a125095..0000000000 --- a/sdk-libs/photon-api/src/models/compression_info_v2.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct CompressionInfoV2 { - #[serde(rename = "closedAccounts")] - pub closed_accounts: Vec, - #[serde(rename = "openedAccounts")] - pub opened_accounts: Vec, -} - -impl CompressionInfoV2 { - pub fn new( - closed_accounts: Vec, - opened_accounts: Vec, - ) -> CompressionInfoV2 { - CompressionInfoV2 { - closed_accounts, - opened_accounts, - } - } -} diff --git a/sdk-libs/photon-api/src/models/context.rs b/sdk-libs/photon-api/src/models/context.rs deleted file mode 100644 index 3df4b4952e..0000000000 --- a/sdk-libs/photon-api/src/models/context.rs +++ /dev/null @@ -1,23 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct Context { - #[serde(rename = "slot")] - pub slot: u64, -} - -impl Context { - pub fn new(slot: u64) -> Context { - Context { slot } - } -} diff --git a/sdk-libs/photon-api/src/models/data_slice.rs b/sdk-libs/photon-api/src/models/data_slice.rs deleted file mode 100644 index 6cf6db42c2..0000000000 --- a/sdk-libs/photon-api/src/models/data_slice.rs +++ /dev/null @@ -1,25 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct DataSlice { - #[serde(rename = "length")] - pub length: u32, - #[serde(rename = "offset")] - pub offset: u32, -} - -impl DataSlice { - pub fn new(length: u32, offset: u32) -> DataSlice { - DataSlice { length, offset } - } -} diff --git a/sdk-libs/photon-api/src/models/filter_selector.rs b/sdk-libs/photon-api/src/models/filter_selector.rs deleted file mode 100644 index 4bace270cf..0000000000 --- a/sdk-libs/photon-api/src/models/filter_selector.rs +++ /dev/null @@ -1,23 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct FilterSelector { - #[serde(rename = "memcmp", skip_serializing_if = "Option::is_none")] - pub memcmp: Option>, -} - -impl FilterSelector { - pub fn new() -> FilterSelector { - FilterSelector { memcmp: None } - } -} diff --git a/sdk-libs/photon-api/src/models/get_compressed_account_proof_response_value.rs b/sdk-libs/photon-api/src/models/get_compressed_account_proof_response_value.rs deleted file mode 100644 index 40d32d17b4..0000000000 --- a/sdk-libs/photon-api/src/models/get_compressed_account_proof_response_value.rs +++ /dev/null @@ -1,50 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedAccountProofResponseValue { - /// A 32-byte hash represented as a base58 string. - #[serde(rename = "hash")] - pub hash: String, - #[serde(rename = "leafIndex")] - pub leaf_index: u64, - /// A Solana public key represented as a base58 string. - #[serde(rename = "merkleTree")] - pub merkle_tree: String, - #[serde(rename = "proof")] - pub proof: Vec, - /// A 32-byte hash represented as a base58 string. - #[serde(rename = "root")] - pub root: String, - #[serde(rename = "rootSeq")] - pub root_seq: u64, -} - -impl GetCompressedAccountProofResponseValue { - pub fn new( - hash: String, - leaf_index: u64, - merkle_tree: String, - proof: Vec, - root: String, - root_seq: u64, - ) -> GetCompressedAccountProofResponseValue { - GetCompressedAccountProofResponseValue { - hash, - leaf_index, - merkle_tree, - proof, - root, - root_seq, - } - } -} diff --git a/sdk-libs/photon-api/src/models/get_compressed_account_proof_response_value_v2.rs b/sdk-libs/photon-api/src/models/get_compressed_account_proof_response_value_v2.rs deleted file mode 100644 index 92aff2070c..0000000000 --- a/sdk-libs/photon-api/src/models/get_compressed_account_proof_response_value_v2.rs +++ /dev/null @@ -1,53 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCompressedAccountProofResponseValueV2 { - /// A 32-byte hash represented as a base58 string. - #[serde(rename = "hash")] - pub hash: String, - #[serde(rename = "leafIndex")] - pub leaf_index: u32, - #[serde(rename = "proof")] - pub proof: Vec, - #[serde(rename = "proveByIndex")] - pub prove_by_index: bool, - /// A 32-byte hash represented as a base58 string. - #[serde(rename = "root")] - pub root: String, - #[serde(rename = "rootSeq")] - pub root_seq: u64, - #[serde(rename = "treeContext")] - pub tree_context: Box, -} - -impl GetCompressedAccountProofResponseValueV2 { - pub fn new( - hash: String, - leaf_index: u32, - proof: Vec, - prove_by_index: bool, - root: String, - root_seq: u64, - tree_context: models::TreeContextInfo, - ) -> GetCompressedAccountProofResponseValueV2 { - GetCompressedAccountProofResponseValueV2 { - hash, - leaf_index, - proof, - prove_by_index, - root, - root_seq, - tree_context: Box::new(tree_context), - } - } -} diff --git a/sdk-libs/photon-api/src/models/get_queue_elements_response_value.rs b/sdk-libs/photon-api/src/models/get_queue_elements_response_value.rs deleted file mode 100644 index 175579c0d2..0000000000 --- a/sdk-libs/photon-api/src/models/get_queue_elements_response_value.rs +++ /dev/null @@ -1,59 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetQueueElementsResponseValue { - /// A 32-byte hash represented as a base58 string. - #[serde(rename = "accountHash")] - pub account_hash: String, - /// A 32-byte hash represented as a base58 string. - #[serde(rename = "leaf")] - pub leaf: String, - #[serde(rename = "leafIndex")] - pub leaf_index: u64, - #[serde(rename = "proof")] - pub proof: Vec, - /// A 32-byte hash represented as a base58 string. - #[serde(rename = "root")] - pub root: String, - #[serde(rename = "rootSeq")] - pub root_seq: u64, - /// A 32-byte hash represented as a base58 string. - #[serde(rename = "tree")] - pub tree: String, - /// A 32-byte hash represented as a base58 string. - #[serde(rename = "txHash", skip_serializing_if = "Option::is_none")] - pub tx_hash: Option, -} - -impl GetQueueElementsResponseValue { - pub fn new( - account_hash: String, - leaf: String, - leaf_index: u64, - proof: Vec, - root: String, - root_seq: u64, - tree: String, - ) -> GetQueueElementsResponseValue { - GetQueueElementsResponseValue { - account_hash, - leaf, - leaf_index, - proof, - root, - root_seq, - tree, - tx_hash: None, - } - } -} diff --git a/sdk-libs/photon-api/src/models/input_queue_data_v2.rs b/sdk-libs/photon-api/src/models/input_queue_data_v2.rs deleted file mode 100644 index 3dc2489c71..0000000000 --- a/sdk-libs/photon-api/src/models/input_queue_data_v2.rs +++ /dev/null @@ -1,49 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct InputQueueDataV2 { - #[serde(rename = "leafIndices")] - pub leaf_indices: Vec, - #[serde(rename = "accountHashes")] - pub account_hashes: Vec, - #[serde(rename = "leaves")] - pub leaves: Vec, - #[serde(rename = "txHashes")] - pub tx_hashes: Vec, - #[serde(rename = "nullifiers")] - pub nullifiers: Vec, - #[serde(rename = "firstQueueIndex")] - pub first_queue_index: u64, - #[serde(rename = "leavesHashChains")] - pub leaves_hash_chains: Vec, -} - -impl InputQueueDataV2 { - pub fn new( - leaf_indices: Vec, - account_hashes: Vec, - leaves: Vec, - tx_hashes: Vec, - nullifiers: Vec, - first_queue_index: u64, - leaves_hash_chains: Vec, - ) -> InputQueueDataV2 { - InputQueueDataV2 { - leaf_indices, - account_hashes, - leaves, - tx_hashes, - nullifiers, - first_queue_index, - leaves_hash_chains, - } - } -} diff --git a/sdk-libs/photon-api/src/models/memcmp.rs b/sdk-libs/photon-api/src/models/memcmp.rs deleted file mode 100644 index c984b36f8e..0000000000 --- a/sdk-libs/photon-api/src/models/memcmp.rs +++ /dev/null @@ -1,26 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct Memcmp { - /// A base 58 encoded string. - #[serde(rename = "bytes")] - pub bytes: String, - #[serde(rename = "offset")] - pub offset: u32, -} - -impl Memcmp { - pub fn new(bytes: String, offset: u32) -> Memcmp { - Memcmp { bytes, offset } - } -} diff --git a/sdk-libs/photon-api/src/models/merkle_context_v2.rs b/sdk-libs/photon-api/src/models/merkle_context_v2.rs deleted file mode 100644 index aed6cc38b6..0000000000 --- a/sdk-libs/photon-api/src/models/merkle_context_v2.rs +++ /dev/null @@ -1,40 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct MerkleContextV2 { - /// A Solana public key represented as a base58 string. - #[serde(rename = "cpiContext", skip_serializing_if = "Option::is_none")] - pub cpi_context: Option, - #[serde(rename = "nextTreeContext", skip_serializing_if = "Option::is_none")] - pub next_tree_context: Option>, - /// A Solana public key represented as a base58 string. - #[serde(rename = "queue")] - pub queue: String, - /// A Solana public key represented as a base58 string. - #[serde(rename = "tree")] - pub tree: String, - #[serde(rename = "treeType")] - pub tree_type: u16, -} - -impl MerkleContextV2 { - pub fn new(queue: String, tree: String, tree_type: u16) -> MerkleContextV2 { - MerkleContextV2 { - cpi_context: None, - next_tree_context: None, - queue, - tree, - tree_type, - } - } -} diff --git a/sdk-libs/photon-api/src/models/merkle_context_with_new_address_proof.rs b/sdk-libs/photon-api/src/models/merkle_context_with_new_address_proof.rs deleted file mode 100644 index 9fdc7faa2f..0000000000 --- a/sdk-libs/photon-api/src/models/merkle_context_with_new_address_proof.rs +++ /dev/null @@ -1,65 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct MerkleContextWithNewAddressProof { - /// A Solana public key represented as a base58 string. - #[serde(rename = "address")] - pub address: String, - /// A Solana public key represented as a base58 string. - #[serde(rename = "higherRangeAddress")] - pub higher_range_address: String, - #[serde(rename = "lowElementLeafIndex")] - pub low_element_leaf_index: u64, - /// A Solana public key represented as a base58 string. - #[serde(rename = "lowerRangeAddress")] - pub lower_range_address: String, - /// A Solana public key represented as a base58 string. - #[serde(rename = "merkleTree")] - pub merkle_tree: String, - #[serde(rename = "nextIndex")] - pub next_index: u64, - #[serde(rename = "proof")] - pub proof: Vec, - /// A 32-byte hash represented as a base58 string. - #[serde(rename = "root")] - pub root: String, - #[serde(rename = "rootSeq")] - pub root_seq: u64, -} - -impl MerkleContextWithNewAddressProof { - #[allow(clippy::too_many_arguments)] - pub fn new( - address: String, - higher_range_address: String, - low_element_leaf_index: u64, - lower_range_address: String, - merkle_tree: String, - next_index: u64, - proof: Vec, - root: String, - root_seq: u64, - ) -> MerkleContextWithNewAddressProof { - MerkleContextWithNewAddressProof { - address, - higher_range_address, - low_element_leaf_index, - lower_range_address, - merkle_tree, - next_index, - proof, - root, - root_seq, - } - } -} diff --git a/sdk-libs/photon-api/src/models/mod.rs b/sdk-libs/photon-api/src/models/mod.rs deleted file mode 100644 index 115861e99e..0000000000 --- a/sdk-libs/photon-api/src/models/mod.rs +++ /dev/null @@ -1,344 +0,0 @@ -pub mod account; -pub use self::account::Account; -pub mod account_context; -pub use self::account_context::AccountContext; -pub mod account_data; -pub use self::account_data::AccountData; -pub mod account_list; -pub use self::account_list::AccountList; -pub mod account_list_v2; -pub use self::account_list_v2::AccountListV2; -pub mod account_proof_inputs; -pub use self::account_proof_inputs::AccountProofInputs; -pub mod account_state; -pub use self::account_state::AccountState; -pub mod account_v2; -pub use self::account_v2::AccountV2; -pub mod account_with_context; -pub use self::account_with_context::AccountWithContext; -pub mod account_with_optional_token_data; -pub use self::account_with_optional_token_data::AccountWithOptionalTokenData; -pub mod account_with_optional_token_data_v2; -pub use self::account_with_optional_token_data_v2::AccountWithOptionalTokenDataV2; -pub mod address_proof_inputs; -pub use self::address_proof_inputs::AddressProofInputs; -pub mod address_queue_index; -pub use self::address_queue_index::AddressQueueIndex; -pub mod address_with_tree; -pub use self::address_with_tree::AddressWithTree; -pub mod closed_account_v2; -pub use self::closed_account_v2::ClosedAccountV2; -pub mod closed_account_with_optional_token_data_v2; -pub use self::closed_account_with_optional_token_data_v2::ClosedAccountWithOptionalTokenDataV2; -pub mod compressed_proof; -pub use self::compressed_proof::CompressedProof; -pub mod compressed_proof_with_context; -pub use self::compressed_proof_with_context::CompressedProofWithContext; -pub mod compressed_proof_with_context_v2; -pub use self::compressed_proof_with_context_v2::CompressedProofWithContextV2; -pub mod compression_info_v2; -pub use self::compression_info_v2::CompressionInfoV2; -pub mod context; -pub use self::context::Context; -pub mod data_slice; -pub use self::data_slice::DataSlice; -pub mod filter_selector; -pub use self::filter_selector::FilterSelector; -pub mod _get_batch_address_update_info_post_200_response; -pub use self::_get_batch_address_update_info_post_200_response::GetBatchAddressUpdateInfoPost200Response; -pub mod _get_batch_address_update_info_post_200_response_error; -pub use self::_get_batch_address_update_info_post_200_response_error::GetBatchAddressUpdateInfoPost200ResponseError; -pub mod _get_batch_address_update_info_post_200_response_result; -pub use self::_get_batch_address_update_info_post_200_response_result::GetBatchAddressUpdateInfoPost200ResponseResult; -pub mod _get_batch_address_update_info_post_429_response; -pub use self::_get_batch_address_update_info_post_429_response::GetBatchAddressUpdateInfoPost429Response; -pub mod _get_batch_address_update_info_post_request; -pub use self::_get_batch_address_update_info_post_request::GetBatchAddressUpdateInfoPostRequest; -pub mod _get_batch_address_update_info_post_request_params; -pub use self::_get_batch_address_update_info_post_request_params::GetBatchAddressUpdateInfoPostRequestParams; -pub mod _get_compressed_account_balance_post_200_response; -pub use self::_get_compressed_account_balance_post_200_response::GetCompressedAccountBalancePost200Response; -pub mod _get_compressed_account_balance_post_200_response_result; -pub use self::_get_compressed_account_balance_post_200_response_result::GetCompressedAccountBalancePost200ResponseResult; -pub mod _get_compressed_account_balance_post_request; -pub use self::_get_compressed_account_balance_post_request::GetCompressedAccountBalancePostRequest; -pub mod _get_compressed_account_post_200_response; -pub use self::_get_compressed_account_post_200_response::GetCompressedAccountPost200Response; -pub mod _get_compressed_account_post_200_response_result; -pub use self::_get_compressed_account_post_200_response_result::GetCompressedAccountPost200ResponseResult; -pub mod _get_compressed_account_post_request; -pub use self::_get_compressed_account_post_request::GetCompressedAccountPostRequest; -pub mod _get_compressed_account_post_request_params; -pub use self::_get_compressed_account_post_request_params::GetCompressedAccountPostRequestParams; -pub mod _get_compressed_account_proof_post_200_response; -pub use self::_get_compressed_account_proof_post_200_response::GetCompressedAccountProofPost200Response; -pub mod _get_compressed_account_proof_post_200_response_result; -pub use self::_get_compressed_account_proof_post_200_response_result::GetCompressedAccountProofPost200ResponseResult; -pub mod _get_compressed_account_proof_post_request; -pub use self::_get_compressed_account_proof_post_request::GetCompressedAccountProofPostRequest; -pub mod _get_compressed_account_proof_post_request_params; -pub use self::_get_compressed_account_proof_post_request_params::GetCompressedAccountProofPostRequestParams; -pub mod get_compressed_account_proof_response_value; -pub use self::get_compressed_account_proof_response_value::GetCompressedAccountProofResponseValue; -pub mod get_compressed_account_proof_response_value_v2; -pub use self::get_compressed_account_proof_response_value_v2::GetCompressedAccountProofResponseValueV2; -pub mod _get_compressed_account_proof_v2_post_200_response; -pub use self::_get_compressed_account_proof_v2_post_200_response::GetCompressedAccountProofV2Post200Response; -pub mod _get_compressed_account_proof_v2_post_200_response_result; -pub use self::_get_compressed_account_proof_v2_post_200_response_result::GetCompressedAccountProofV2Post200ResponseResult; -pub mod _get_compressed_account_proof_v2_post_request; -pub use self::_get_compressed_account_proof_v2_post_request::GetCompressedAccountProofV2PostRequest; -pub mod _get_compressed_account_v2_post_200_response; -pub use self::_get_compressed_account_v2_post_200_response::GetCompressedAccountV2Post200Response; -pub mod _get_compressed_account_v2_post_200_response_result; -pub use self::_get_compressed_account_v2_post_200_response_result::GetCompressedAccountV2Post200ResponseResult; -pub mod _get_compressed_account_v2_post_request; -pub use self::_get_compressed_account_v2_post_request::GetCompressedAccountV2PostRequest; -pub mod _get_compressed_accounts_by_owner_post_200_response; -pub use self::_get_compressed_accounts_by_owner_post_200_response::GetCompressedAccountsByOwnerPost200Response; -pub mod _get_compressed_accounts_by_owner_post_200_response_result; -pub use self::_get_compressed_accounts_by_owner_post_200_response_result::GetCompressedAccountsByOwnerPost200ResponseResult; -pub mod _get_compressed_accounts_by_owner_post_request; -pub use self::_get_compressed_accounts_by_owner_post_request::GetCompressedAccountsByOwnerPostRequest; -pub mod _get_compressed_accounts_by_owner_post_request_params; -pub use self::_get_compressed_accounts_by_owner_post_request_params::GetCompressedAccountsByOwnerPostRequestParams; -pub mod _get_compressed_accounts_by_owner_v2_post_200_response; -pub use self::_get_compressed_accounts_by_owner_v2_post_200_response::GetCompressedAccountsByOwnerV2Post200Response; -pub mod _get_compressed_accounts_by_owner_v2_post_200_response_result; -pub use self::_get_compressed_accounts_by_owner_v2_post_200_response_result::GetCompressedAccountsByOwnerV2Post200ResponseResult; -pub mod _get_compressed_accounts_by_owner_v2_post_request; -pub use self::_get_compressed_accounts_by_owner_v2_post_request::GetCompressedAccountsByOwnerV2PostRequest; -pub mod _get_compressed_balance_by_owner_post_request; -pub use self::_get_compressed_balance_by_owner_post_request::GetCompressedBalanceByOwnerPostRequest; -pub mod _get_compressed_balance_by_owner_post_request_params; -pub use self::_get_compressed_balance_by_owner_post_request_params::GetCompressedBalanceByOwnerPostRequestParams; -pub mod _get_compressed_mint_token_holders_post_200_response; -pub use self::_get_compressed_mint_token_holders_post_200_response::GetCompressedMintTokenHoldersPost200Response; -pub mod _get_compressed_mint_token_holders_post_200_response_result; -pub use self::_get_compressed_mint_token_holders_post_200_response_result::GetCompressedMintTokenHoldersPost200ResponseResult; -pub mod _get_compressed_mint_token_holders_post_request; -pub use self::_get_compressed_mint_token_holders_post_request::GetCompressedMintTokenHoldersPostRequest; -pub mod _get_compressed_mint_token_holders_post_request_params; -pub use self::_get_compressed_mint_token_holders_post_request_params::GetCompressedMintTokenHoldersPostRequestParams; -pub mod _get_compressed_token_account_balance_post_200_response; -pub use self::_get_compressed_token_account_balance_post_200_response::GetCompressedTokenAccountBalancePost200Response; -pub mod _get_compressed_token_account_balance_post_200_response_result; -pub use self::_get_compressed_token_account_balance_post_200_response_result::GetCompressedTokenAccountBalancePost200ResponseResult; -pub mod _get_compressed_token_account_balance_post_request; -pub use self::_get_compressed_token_account_balance_post_request::GetCompressedTokenAccountBalancePostRequest; -pub mod _get_compressed_token_accounts_by_delegate_post_200_response; -pub use self::_get_compressed_token_accounts_by_delegate_post_200_response::GetCompressedTokenAccountsByDelegatePost200Response; -pub mod _get_compressed_token_accounts_by_delegate_post_200_response_result; -pub use self::_get_compressed_token_accounts_by_delegate_post_200_response_result::GetCompressedTokenAccountsByDelegatePost200ResponseResult; -pub mod _get_compressed_token_accounts_by_delegate_post_request; -pub use self::_get_compressed_token_accounts_by_delegate_post_request::GetCompressedTokenAccountsByDelegatePostRequest; -pub mod _get_compressed_token_accounts_by_delegate_post_request_params; -pub use self::_get_compressed_token_accounts_by_delegate_post_request_params::GetCompressedTokenAccountsByDelegatePostRequestParams; -pub mod _get_compressed_token_accounts_by_delegate_v2_post_200_response; -pub use self::_get_compressed_token_accounts_by_delegate_v2_post_200_response::GetCompressedTokenAccountsByDelegateV2Post200Response; -pub mod _get_compressed_token_accounts_by_delegate_v2_post_200_response_result; -pub use self::_get_compressed_token_accounts_by_delegate_v2_post_200_response_result::GetCompressedTokenAccountsByDelegateV2Post200ResponseResult; -pub mod _get_compressed_token_accounts_by_delegate_v2_post_request; -pub use self::_get_compressed_token_accounts_by_delegate_v2_post_request::GetCompressedTokenAccountsByDelegateV2PostRequest; -pub mod _get_compressed_token_accounts_by_owner_post_request; -pub use self::_get_compressed_token_accounts_by_owner_post_request::GetCompressedTokenAccountsByOwnerPostRequest; -pub mod _get_compressed_token_accounts_by_owner_post_request_params; -pub use self::_get_compressed_token_accounts_by_owner_post_request_params::GetCompressedTokenAccountsByOwnerPostRequestParams; -pub mod _get_compressed_token_accounts_by_owner_v2_post_request; -pub use self::_get_compressed_token_accounts_by_owner_v2_post_request::GetCompressedTokenAccountsByOwnerV2PostRequest; -pub mod _get_compressed_token_balances_by_owner_post_200_response; -pub use self::_get_compressed_token_balances_by_owner_post_200_response::GetCompressedTokenBalancesByOwnerPost200Response; -pub mod _get_compressed_token_balances_by_owner_post_200_response_result; -pub use self::_get_compressed_token_balances_by_owner_post_200_response_result::GetCompressedTokenBalancesByOwnerPost200ResponseResult; -pub mod _get_compressed_token_balances_by_owner_post_request; -pub use self::_get_compressed_token_balances_by_owner_post_request::GetCompressedTokenBalancesByOwnerPostRequest; -pub mod _get_compressed_token_balances_by_owner_v2_post_200_response; -pub use self::_get_compressed_token_balances_by_owner_v2_post_200_response::GetCompressedTokenBalancesByOwnerV2Post200Response; -pub mod _get_compressed_token_balances_by_owner_v2_post_200_response_result; -pub use self::_get_compressed_token_balances_by_owner_v2_post_200_response_result::GetCompressedTokenBalancesByOwnerV2Post200ResponseResult; -pub mod _get_compressed_token_balances_by_owner_v2_post_request; -pub use self::_get_compressed_token_balances_by_owner_v2_post_request::GetCompressedTokenBalancesByOwnerV2PostRequest; -pub mod _get_compression_signatures_for_account_post_200_response; -pub use self::_get_compression_signatures_for_account_post_200_response::GetCompressionSignaturesForAccountPost200Response; -pub mod _get_compression_signatures_for_account_post_200_response_result; -pub use self::_get_compression_signatures_for_account_post_200_response_result::GetCompressionSignaturesForAccountPost200ResponseResult; -pub mod _get_compression_signatures_for_account_post_request; -pub use self::_get_compression_signatures_for_account_post_request::GetCompressionSignaturesForAccountPostRequest; -pub mod _get_compression_signatures_for_address_post_200_response; -pub use self::_get_compression_signatures_for_address_post_200_response::GetCompressionSignaturesForAddressPost200Response; -pub mod _get_compression_signatures_for_address_post_200_response_result; -pub use self::_get_compression_signatures_for_address_post_200_response_result::GetCompressionSignaturesForAddressPost200ResponseResult; -pub mod _get_compression_signatures_for_address_post_request; -pub use self::_get_compression_signatures_for_address_post_request::GetCompressionSignaturesForAddressPostRequest; -pub mod _get_compression_signatures_for_address_post_request_params; -pub use self::_get_compression_signatures_for_address_post_request_params::GetCompressionSignaturesForAddressPostRequestParams; -pub mod _get_compression_signatures_for_owner_post_request; -pub use self::_get_compression_signatures_for_owner_post_request::GetCompressionSignaturesForOwnerPostRequest; -pub mod _get_compression_signatures_for_owner_post_request_params; -pub use self::_get_compression_signatures_for_owner_post_request_params::GetCompressionSignaturesForOwnerPostRequestParams; -pub mod _get_compression_signatures_for_token_owner_post_request; -pub use self::_get_compression_signatures_for_token_owner_post_request::GetCompressionSignaturesForTokenOwnerPostRequest; -pub mod _get_indexer_health_post_200_response; -pub use self::_get_indexer_health_post_200_response::GetIndexerHealthPost200Response; -pub mod _get_indexer_health_post_request; -pub use self::_get_indexer_health_post_request::GetIndexerHealthPostRequest; -pub mod _get_indexer_slot_post_200_response; -pub use self::_get_indexer_slot_post_200_response::GetIndexerSlotPost200Response; -pub mod _get_indexer_slot_post_request; -pub use self::_get_indexer_slot_post_request::GetIndexerSlotPostRequest; -pub mod _get_latest_compression_signatures_post_request; -pub use self::_get_latest_compression_signatures_post_request::GetLatestCompressionSignaturesPostRequest; -pub mod _get_latest_compression_signatures_post_request_params; -pub use self::_get_latest_compression_signatures_post_request_params::GetLatestCompressionSignaturesPostRequestParams; -pub mod _get_latest_non_voting_signatures_post_200_response; -pub use self::_get_latest_non_voting_signatures_post_200_response::GetLatestNonVotingSignaturesPost200Response; -pub mod _get_latest_non_voting_signatures_post_200_response_result; -pub use self::_get_latest_non_voting_signatures_post_200_response_result::GetLatestNonVotingSignaturesPost200ResponseResult; -pub mod _get_latest_non_voting_signatures_post_request; -pub use self::_get_latest_non_voting_signatures_post_request::GetLatestNonVotingSignaturesPostRequest; -pub mod _get_multiple_compressed_account_proofs_post_200_response; -pub use self::_get_multiple_compressed_account_proofs_post_200_response::GetMultipleCompressedAccountProofsPost200Response; -pub mod _get_multiple_compressed_account_proofs_post_200_response_result; -pub use self::_get_multiple_compressed_account_proofs_post_200_response_result::GetMultipleCompressedAccountProofsPost200ResponseResult; -pub mod _get_multiple_compressed_account_proofs_post_request; -pub use self::_get_multiple_compressed_account_proofs_post_request::GetMultipleCompressedAccountProofsPostRequest; -pub mod _get_multiple_compressed_account_proofs_v2_post_200_response; -pub use self::_get_multiple_compressed_account_proofs_v2_post_200_response::GetMultipleCompressedAccountProofsV2Post200Response; -pub mod _get_multiple_compressed_account_proofs_v2_post_200_response_result; -pub use self::_get_multiple_compressed_account_proofs_v2_post_200_response_result::GetMultipleCompressedAccountProofsV2Post200ResponseResult; -pub mod _get_multiple_compressed_account_proofs_v2_post_request; -pub use self::_get_multiple_compressed_account_proofs_v2_post_request::GetMultipleCompressedAccountProofsV2PostRequest; -pub mod _get_multiple_compressed_accounts_post_200_response; -pub use self::_get_multiple_compressed_accounts_post_200_response::GetMultipleCompressedAccountsPost200Response; -pub mod _get_multiple_compressed_accounts_post_200_response_result; -pub use self::_get_multiple_compressed_accounts_post_200_response_result::GetMultipleCompressedAccountsPost200ResponseResult; -pub mod _get_multiple_compressed_accounts_post_request; -pub use self::_get_multiple_compressed_accounts_post_request::GetMultipleCompressedAccountsPostRequest; -pub mod _get_multiple_compressed_accounts_post_request_params; -pub use self::_get_multiple_compressed_accounts_post_request_params::GetMultipleCompressedAccountsPostRequestParams; -pub mod _get_multiple_compressed_accounts_v2_post_200_response; -pub use self::_get_multiple_compressed_accounts_v2_post_200_response::GetMultipleCompressedAccountsV2Post200Response; -pub mod _get_multiple_compressed_accounts_v2_post_200_response_result; -pub use self::_get_multiple_compressed_accounts_v2_post_200_response_result::GetMultipleCompressedAccountsV2Post200ResponseResult; -pub mod _get_multiple_compressed_accounts_v2_post_request; -pub use self::_get_multiple_compressed_accounts_v2_post_request::GetMultipleCompressedAccountsV2PostRequest; -pub mod _get_multiple_compressed_accounts_v2_post_request_params; -pub use self::_get_multiple_compressed_accounts_v2_post_request_params::GetMultipleCompressedAccountsV2PostRequestParams; -pub mod _get_multiple_new_address_proofs_post_200_response; -pub use self::_get_multiple_new_address_proofs_post_200_response::GetMultipleNewAddressProofsPost200Response; -pub mod _get_multiple_new_address_proofs_post_200_response_result; -pub use self::_get_multiple_new_address_proofs_post_200_response_result::GetMultipleNewAddressProofsPost200ResponseResult; -pub mod _get_multiple_new_address_proofs_post_request; -pub use self::_get_multiple_new_address_proofs_post_request::GetMultipleNewAddressProofsPostRequest; -pub mod _get_multiple_new_address_proofs_v2_post_request; -pub use self::_get_multiple_new_address_proofs_v2_post_request::GetMultipleNewAddressProofsV2PostRequest; -pub mod _get_queue_elements_post_200_response; -pub use self::_get_queue_elements_post_200_response::GetQueueElementsPost200Response; -pub mod _get_queue_elements_post_200_response_result; -pub use self::_get_queue_elements_post_200_response_result::GetQueueElementsPost200ResponseResult; -pub mod _get_queue_elements_post_request; -pub use self::_get_queue_elements_post_request::GetQueueElementsPostRequest; -pub mod _get_queue_elements_post_request_params; -pub use self::_get_queue_elements_post_request_params::GetQueueElementsPostRequestParams; -pub mod get_queue_elements_response_value; -pub use self::get_queue_elements_response_value::GetQueueElementsResponseValue; -pub mod _get_transaction_with_compression_info_post_200_response; -pub use self::_get_transaction_with_compression_info_post_200_response::GetTransactionWithCompressionInfoPost200Response; -pub mod _get_transaction_with_compression_info_post_200_response_result; -pub use self::_get_transaction_with_compression_info_post_200_response_result::GetTransactionWithCompressionInfoPost200ResponseResult; -pub mod _get_transaction_with_compression_info_post_200_response_result_compression_info; -pub use self::_get_transaction_with_compression_info_post_200_response_result_compression_info::GetTransactionWithCompressionInfoPost200ResponseResultCompressionInfo; -pub mod _get_transaction_with_compression_info_post_request; -pub use self::_get_transaction_with_compression_info_post_request::GetTransactionWithCompressionInfoPostRequest; -pub mod _get_transaction_with_compression_info_post_request_params; -pub use self::_get_transaction_with_compression_info_post_request_params::GetTransactionWithCompressionInfoPostRequestParams; -pub mod _get_transaction_with_compression_info_v2_post_200_response; -pub use self::_get_transaction_with_compression_info_v2_post_200_response::GetTransactionWithCompressionInfoV2Post200Response; -pub mod _get_transaction_with_compression_info_v2_post_200_response_result; -pub use self::_get_transaction_with_compression_info_v2_post_200_response_result::GetTransactionWithCompressionInfoV2Post200ResponseResult; -pub mod _get_transaction_with_compression_info_v2_post_200_response_result_compression_info; -pub use self::_get_transaction_with_compression_info_v2_post_200_response_result_compression_info::GetTransactionWithCompressionInfoV2Post200ResponseResultCompressionInfo; -pub mod _get_transaction_with_compression_info_v2_post_request; -pub use self::_get_transaction_with_compression_info_v2_post_request::GetTransactionWithCompressionInfoV2PostRequest; -pub mod _get_validity_proof_post_200_response; -pub use self::_get_validity_proof_post_200_response::GetValidityProofPost200Response; -pub mod _get_validity_proof_post_200_response_result; -pub use self::_get_validity_proof_post_200_response_result::GetValidityProofPost200ResponseResult; -pub mod _get_validity_proof_post_request; -pub use self::_get_validity_proof_post_request::GetValidityProofPostRequest; -pub mod _get_validity_proof_post_request_params; -pub use self::_get_validity_proof_post_request_params::GetValidityProofPostRequestParams; -pub mod _get_validity_proof_v2_post_200_response; -pub use self::_get_validity_proof_v2_post_200_response::GetValidityProofV2Post200Response; -pub mod _get_validity_proof_v2_post_200_response_result; -pub use self::_get_validity_proof_v2_post_200_response_result::GetValidityProofV2Post200ResponseResult; -pub mod _get_validity_proof_v2_post_request; -pub use self::_get_validity_proof_v2_post_request::GetValidityProofV2PostRequest; -pub mod memcmp; -pub use self::memcmp::Memcmp; -pub mod merkle_context_v2; -pub use self::merkle_context_v2::MerkleContextV2; -pub mod merkle_context_with_new_address_proof; -pub use self::merkle_context_with_new_address_proof::MerkleContextWithNewAddressProof; -pub mod owner_balance; -pub use self::owner_balance::OwnerBalance; -pub mod owner_balance_list; -pub use self::owner_balance_list::OwnerBalanceList; -pub mod owner_balances_response; -pub use self::owner_balances_response::OwnerBalancesResponse; -pub mod paginated_account_list; -pub use self::paginated_account_list::PaginatedAccountList; -pub mod paginated_account_list_v2; -pub use self::paginated_account_list_v2::PaginatedAccountListV2; -pub mod paginated_signature_info_list; -pub use self::paginated_signature_info_list::PaginatedSignatureInfoList; -pub mod root_index; -pub use self::root_index::RootIndex; -pub mod signature_info; -pub use self::signature_info::SignatureInfo; -pub mod signature_info_list; -pub use self::signature_info_list::SignatureInfoList; -pub mod signature_info_list_with_error; -pub use self::signature_info_list_with_error::SignatureInfoListWithError; -pub mod signature_info_with_error; -pub use self::signature_info_with_error::SignatureInfoWithError; -pub mod token_account; -pub use self::token_account::TokenAccount; -pub mod token_account_balance; -pub use self::token_account_balance::TokenAccountBalance; -pub mod token_account_list; -pub use self::token_account_list::TokenAccountList; -pub mod token_account_list_v2; -pub use self::token_account_list_v2::TokenAccountListV2; -pub mod token_account_v2; -pub use self::token_account_v2::TokenAccountV2; -pub mod token_balance; -pub use self::token_balance::TokenBalance; -pub mod token_balance_list; -pub use self::token_balance_list::TokenBalanceList; -pub mod token_balance_list_v2; -pub use self::token_balance_list_v2::TokenBalanceListV2; -pub mod token_data; -pub use self::token_data::TokenData; -pub mod tree_context_info; -pub use self::tree_context_info::TreeContextInfo; -pub mod _get_queue_info_post_request; -pub use self::_get_queue_info_post_request::GetQueueInfoPostRequest; -pub mod _get_queue_info_post_200_response; -pub use self::_get_queue_info_post_200_response::GetQueueInfoPost200Response; -pub mod _get_queue_info_post_200_response_result; -pub use self::_get_queue_info_post_200_response_result::{ - GetQueueInfoPost200ResponseResult, QueueInfo, -}; -pub mod address_queue_data_v2; -pub use self::address_queue_data_v2::AddressQueueDataV2; -pub mod input_queue_data_v2; -pub use self::input_queue_data_v2::InputQueueDataV2; -pub mod output_queue_data_v2; -pub use self::output_queue_data_v2::OutputQueueDataV2; -pub mod state_queue_data_v2; -pub use self::state_queue_data_v2::StateQueueDataV2; -pub mod node; -pub use self::node::Node; -pub mod queue_request; -pub use self::queue_request::QueueRequest; diff --git a/sdk-libs/photon-api/src/models/node.rs b/sdk-libs/photon-api/src/models/node.rs deleted file mode 100644 index 695363db2c..0000000000 --- a/sdk-libs/photon-api/src/models/node.rs +++ /dev/null @@ -1,24 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -/// A tree node with its encoded index and hash -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -#[serde(rename_all = "camelCase")] -pub struct Node { - /// Encoded node index: (level << 56) | position - pub index: u64, - pub hash: String, -} - -impl Node { - pub fn new(index: u64, hash: String) -> Node { - Node { index, hash } - } -} diff --git a/sdk-libs/photon-api/src/models/output_queue_data_v2.rs b/sdk-libs/photon-api/src/models/output_queue_data_v2.rs deleted file mode 100644 index 39ffd5448e..0000000000 --- a/sdk-libs/photon-api/src/models/output_queue_data_v2.rs +++ /dev/null @@ -1,45 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct OutputQueueDataV2 { - #[serde(rename = "leafIndices")] - pub leaf_indices: Vec, - #[serde(rename = "accountHashes")] - pub account_hashes: Vec, - #[serde(rename = "leaves")] - pub leaves: Vec, - #[serde(rename = "firstQueueIndex")] - pub first_queue_index: u64, - #[serde(rename = "nextIndex")] - pub next_index: u64, - #[serde(rename = "leavesHashChains")] - pub leaves_hash_chains: Vec, -} - -impl OutputQueueDataV2 { - pub fn new( - leaf_indices: Vec, - account_hashes: Vec, - leaves: Vec, - first_queue_index: u64, - next_index: u64, - leaves_hash_chains: Vec, - ) -> OutputQueueDataV2 { - OutputQueueDataV2 { - leaf_indices, - account_hashes, - leaves, - first_queue_index, - next_index, - leaves_hash_chains, - } - } -} diff --git a/sdk-libs/photon-api/src/models/owner_balance.rs b/sdk-libs/photon-api/src/models/owner_balance.rs deleted file mode 100644 index 71658fedef..0000000000 --- a/sdk-libs/photon-api/src/models/owner_balance.rs +++ /dev/null @@ -1,26 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct OwnerBalance { - #[serde(rename = "balance")] - pub balance: u64, - /// A Solana public key represented as a base58 string. - #[serde(rename = "owner")] - pub owner: String, -} - -impl OwnerBalance { - pub fn new(balance: u64, owner: String) -> OwnerBalance { - OwnerBalance { balance, owner } - } -} diff --git a/sdk-libs/photon-api/src/models/owner_balance_list.rs b/sdk-libs/photon-api/src/models/owner_balance_list.rs deleted file mode 100644 index da04db55fc..0000000000 --- a/sdk-libs/photon-api/src/models/owner_balance_list.rs +++ /dev/null @@ -1,29 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct OwnerBalanceList { - /// A base 58 encoded string. - #[serde(rename = "cursor", skip_serializing_if = "Option::is_none")] - pub cursor: Option, - #[serde(rename = "items")] - pub items: Vec, -} - -impl OwnerBalanceList { - pub fn new(items: Vec) -> OwnerBalanceList { - OwnerBalanceList { - cursor: None, - items, - } - } -} diff --git a/sdk-libs/photon-api/src/models/owner_balances_response.rs b/sdk-libs/photon-api/src/models/owner_balances_response.rs deleted file mode 100644 index 3eb46d8ca9..0000000000 --- a/sdk-libs/photon-api/src/models/owner_balances_response.rs +++ /dev/null @@ -1,28 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct OwnerBalancesResponse { - #[serde(rename = "context")] - pub context: Box, - #[serde(rename = "value")] - pub value: Box, -} - -impl OwnerBalancesResponse { - pub fn new(context: models::Context, value: models::OwnerBalanceList) -> OwnerBalancesResponse { - OwnerBalancesResponse { - context: Box::new(context), - value: Box::new(value), - } - } -} diff --git a/sdk-libs/photon-api/src/models/paginated_account_list.rs b/sdk-libs/photon-api/src/models/paginated_account_list.rs deleted file mode 100644 index 7ffd95551d..0000000000 --- a/sdk-libs/photon-api/src/models/paginated_account_list.rs +++ /dev/null @@ -1,29 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct PaginatedAccountList { - /// A 32-byte hash represented as a base58 string. - #[serde(rename = "cursor", skip_serializing_if = "Option::is_none")] - pub cursor: Option, - #[serde(rename = "items")] - pub items: Vec, -} - -impl PaginatedAccountList { - pub fn new(items: Vec) -> PaginatedAccountList { - PaginatedAccountList { - cursor: None, - items, - } - } -} diff --git a/sdk-libs/photon-api/src/models/paginated_account_list_v2.rs b/sdk-libs/photon-api/src/models/paginated_account_list_v2.rs deleted file mode 100644 index 34289608d3..0000000000 --- a/sdk-libs/photon-api/src/models/paginated_account_list_v2.rs +++ /dev/null @@ -1,29 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct PaginatedAccountListV2 { - /// A 32-byte hash represented as a base58 string. - #[serde(rename = "cursor", skip_serializing_if = "Option::is_none")] - pub cursor: Option, - #[serde(rename = "items")] - pub items: Vec, -} - -impl PaginatedAccountListV2 { - pub fn new(items: Vec) -> PaginatedAccountListV2 { - PaginatedAccountListV2 { - cursor: None, - items, - } - } -} diff --git a/sdk-libs/photon-api/src/models/paginated_signature_info_list.rs b/sdk-libs/photon-api/src/models/paginated_signature_info_list.rs deleted file mode 100644 index 13070a79eb..0000000000 --- a/sdk-libs/photon-api/src/models/paginated_signature_info_list.rs +++ /dev/null @@ -1,28 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct PaginatedSignatureInfoList { - #[serde(rename = "cursor", default, skip_serializing_if = "Option::is_none")] - pub cursor: Option, - #[serde(rename = "items")] - pub items: Vec, -} - -impl PaginatedSignatureInfoList { - pub fn new(items: Vec) -> PaginatedSignatureInfoList { - PaginatedSignatureInfoList { - cursor: None, - items, - } - } -} diff --git a/sdk-libs/photon-api/src/models/queue_request.rs b/sdk-libs/photon-api/src/models/queue_request.rs deleted file mode 100644 index 55d45d2c80..0000000000 --- a/sdk-libs/photon-api/src/models/queue_request.rs +++ /dev/null @@ -1,40 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -/// Parameters for requesting queue elements -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -#[serde(rename_all = "camelCase")] -pub struct QueueRequest { - pub limit: u16, - #[serde(skip_serializing_if = "Option::is_none")] - pub start_index: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub zkp_batch_size: Option, -} - -impl QueueRequest { - pub fn new(limit: u16) -> QueueRequest { - QueueRequest { - limit, - start_index: None, - zkp_batch_size: None, - } - } - - pub fn with_start_index(mut self, start_index: u64) -> Self { - self.start_index = Some(start_index); - self - } - - pub fn with_zkp_batch_size(mut self, zkp_batch_size: u16) -> Self { - self.zkp_batch_size = Some(zkp_batch_size); - self - } -} diff --git a/sdk-libs/photon-api/src/models/root_index.rs b/sdk-libs/photon-api/src/models/root_index.rs deleted file mode 100644 index ff87169a88..0000000000 --- a/sdk-libs/photon-api/src/models/root_index.rs +++ /dev/null @@ -1,28 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct RootIndex { - #[serde(rename = "proveByIndex")] - pub prove_by_index: bool, - #[serde(rename = "rootIndex")] - pub root_index: u16, -} - -impl RootIndex { - pub fn new(prove_by_index: bool, root_index: u16) -> RootIndex { - RootIndex { - prove_by_index, - root_index, - } - } -} diff --git a/sdk-libs/photon-api/src/models/signature_info.rs b/sdk-libs/photon-api/src/models/signature_info.rs deleted file mode 100644 index caaf338c67..0000000000 --- a/sdk-libs/photon-api/src/models/signature_info.rs +++ /dev/null @@ -1,33 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct SignatureInfo { - /// An Unix timestamp (seconds) - #[serde(rename = "blockTime")] - pub block_time: u64, - /// A Solana transaction signature. - #[serde(rename = "signature")] - pub signature: String, - #[serde(rename = "slot")] - pub slot: u64, -} - -impl SignatureInfo { - pub fn new(block_time: u64, signature: String, slot: u64) -> SignatureInfo { - SignatureInfo { - block_time, - signature, - slot, - } - } -} diff --git a/sdk-libs/photon-api/src/models/signature_info_list.rs b/sdk-libs/photon-api/src/models/signature_info_list.rs deleted file mode 100644 index f5624d58cb..0000000000 --- a/sdk-libs/photon-api/src/models/signature_info_list.rs +++ /dev/null @@ -1,23 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct SignatureInfoList { - #[serde(rename = "items")] - pub items: Vec, -} - -impl SignatureInfoList { - pub fn new(items: Vec) -> SignatureInfoList { - SignatureInfoList { items } - } -} diff --git a/sdk-libs/photon-api/src/models/signature_info_list_with_error.rs b/sdk-libs/photon-api/src/models/signature_info_list_with_error.rs deleted file mode 100644 index 1dd8c4837b..0000000000 --- a/sdk-libs/photon-api/src/models/signature_info_list_with_error.rs +++ /dev/null @@ -1,23 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct SignatureInfoListWithError { - #[serde(rename = "items")] - pub items: Vec, -} - -impl SignatureInfoListWithError { - pub fn new(items: Vec) -> SignatureInfoListWithError { - SignatureInfoListWithError { items } - } -} diff --git a/sdk-libs/photon-api/src/models/signature_info_with_error.rs b/sdk-libs/photon-api/src/models/signature_info_with_error.rs deleted file mode 100644 index 06b78860f7..0000000000 --- a/sdk-libs/photon-api/src/models/signature_info_with_error.rs +++ /dev/null @@ -1,36 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct SignatureInfoWithError { - /// An Unix timestamp (seconds) - #[serde(rename = "blockTime")] - pub block_time: u64, - #[serde(rename = "error", default, skip_serializing_if = "Option::is_none")] - pub error: Option, - /// A Solana transaction signature. - #[serde(rename = "signature")] - pub signature: String, - #[serde(rename = "slot")] - pub slot: u64, -} - -impl SignatureInfoWithError { - pub fn new(block_time: u64, signature: String, slot: u64) -> SignatureInfoWithError { - SignatureInfoWithError { - block_time, - error: None, - signature, - slot, - } - } -} diff --git a/sdk-libs/photon-api/src/models/state_queue_data_v2.rs b/sdk-libs/photon-api/src/models/state_queue_data_v2.rs deleted file mode 100644 index b04e09c600..0000000000 --- a/sdk-libs/photon-api/src/models/state_queue_data_v2.rs +++ /dev/null @@ -1,41 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -/// State queue data with shared tree nodes for output and input queues -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -#[serde(rename_all = "camelCase")] -#[allow(clippy::too_many_arguments)] -pub struct StateQueueDataV2 { - /// Shared deduplicated tree nodes for state queues (output + input) - #[serde(skip_serializing_if = "Vec::is_empty", default)] - pub nodes: Vec, - /// Initial root for the state tree (shared by output and input queues) - pub initial_root: String, - /// Sequence number of the root - pub root_seq: u64, - #[serde(skip_serializing_if = "Option::is_none")] - pub output_queue: Option>, - #[serde(skip_serializing_if = "Option::is_none")] - pub input_queue: Option>, -} - -impl StateQueueDataV2 { - pub fn new(initial_root: String, root_seq: u64) -> StateQueueDataV2 { - StateQueueDataV2 { - nodes: Vec::new(), - initial_root, - root_seq, - output_queue: None, - input_queue: None, - } - } -} diff --git a/sdk-libs/photon-api/src/models/token_account.rs b/sdk-libs/photon-api/src/models/token_account.rs deleted file mode 100644 index f706d56009..0000000000 --- a/sdk-libs/photon-api/src/models/token_account.rs +++ /dev/null @@ -1,28 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct TokenAccount { - #[serde(rename = "account")] - pub account: Box, - #[serde(rename = "tokenData")] - pub token_data: Box, -} - -impl TokenAccount { - pub fn new(account: models::Account, token_data: models::TokenData) -> TokenAccount { - TokenAccount { - account: Box::new(account), - token_data: Box::new(token_data), - } - } -} diff --git a/sdk-libs/photon-api/src/models/token_account_balance.rs b/sdk-libs/photon-api/src/models/token_account_balance.rs deleted file mode 100644 index 17aa2e4925..0000000000 --- a/sdk-libs/photon-api/src/models/token_account_balance.rs +++ /dev/null @@ -1,23 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct TokenAccountBalance { - #[serde(rename = "amount")] - pub amount: u64, -} - -impl TokenAccountBalance { - pub fn new(amount: u64) -> TokenAccountBalance { - TokenAccountBalance { amount } - } -} diff --git a/sdk-libs/photon-api/src/models/token_account_list.rs b/sdk-libs/photon-api/src/models/token_account_list.rs deleted file mode 100644 index 7b80b65dee..0000000000 --- a/sdk-libs/photon-api/src/models/token_account_list.rs +++ /dev/null @@ -1,29 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct TokenAccountList { - /// A base 58 encoded string. - #[serde(rename = "cursor", skip_serializing_if = "Option::is_none")] - pub cursor: Option, - #[serde(rename = "items")] - pub items: Vec, -} - -impl TokenAccountList { - pub fn new(items: Vec) -> TokenAccountList { - TokenAccountList { - cursor: None, - items, - } - } -} diff --git a/sdk-libs/photon-api/src/models/token_account_list_v2.rs b/sdk-libs/photon-api/src/models/token_account_list_v2.rs deleted file mode 100644 index 10823af439..0000000000 --- a/sdk-libs/photon-api/src/models/token_account_list_v2.rs +++ /dev/null @@ -1,29 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct TokenAccountListV2 { - /// A base 58 encoded string. - #[serde(rename = "cursor", skip_serializing_if = "Option::is_none")] - pub cursor: Option, - #[serde(rename = "items")] - pub items: Vec, -} - -impl TokenAccountListV2 { - pub fn new(items: Vec) -> TokenAccountListV2 { - TokenAccountListV2 { - cursor: None, - items, - } - } -} diff --git a/sdk-libs/photon-api/src/models/token_account_v2.rs b/sdk-libs/photon-api/src/models/token_account_v2.rs deleted file mode 100644 index 7be555854f..0000000000 --- a/sdk-libs/photon-api/src/models/token_account_v2.rs +++ /dev/null @@ -1,28 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct TokenAccountV2 { - #[serde(rename = "account")] - pub account: Box, - #[serde(rename = "tokenData")] - pub token_data: Box, -} - -impl TokenAccountV2 { - pub fn new(account: models::AccountV2, token_data: models::TokenData) -> TokenAccountV2 { - TokenAccountV2 { - account: Box::new(account), - token_data: Box::new(token_data), - } - } -} diff --git a/sdk-libs/photon-api/src/models/token_balance.rs b/sdk-libs/photon-api/src/models/token_balance.rs deleted file mode 100644 index 6f02c6b1fa..0000000000 --- a/sdk-libs/photon-api/src/models/token_balance.rs +++ /dev/null @@ -1,26 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct TokenBalance { - #[serde(rename = "balance")] - pub balance: u64, - /// A Solana public key represented as a base58 string. - #[serde(rename = "mint")] - pub mint: String, -} - -impl TokenBalance { - pub fn new(balance: u64, mint: String) -> TokenBalance { - TokenBalance { balance, mint } - } -} diff --git a/sdk-libs/photon-api/src/models/token_balance_list.rs b/sdk-libs/photon-api/src/models/token_balance_list.rs deleted file mode 100644 index ca4241bbc3..0000000000 --- a/sdk-libs/photon-api/src/models/token_balance_list.rs +++ /dev/null @@ -1,29 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct TokenBalanceList { - /// A base 58 encoded string. - #[serde(rename = "cursor", skip_serializing_if = "Option::is_none")] - pub cursor: Option, - #[serde(rename = "token_balances")] - pub token_balances: Vec, -} - -impl TokenBalanceList { - pub fn new(token_balances: Vec) -> TokenBalanceList { - TokenBalanceList { - cursor: None, - token_balances, - } - } -} diff --git a/sdk-libs/photon-api/src/models/token_balance_list_v2.rs b/sdk-libs/photon-api/src/models/token_balance_list_v2.rs deleted file mode 100644 index 8c31b5680f..0000000000 --- a/sdk-libs/photon-api/src/models/token_balance_list_v2.rs +++ /dev/null @@ -1,29 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct TokenBalanceListV2 { - /// A base 58 encoded string. - #[serde(rename = "cursor", skip_serializing_if = "Option::is_none")] - pub cursor: Option, - #[serde(rename = "items")] - pub items: Vec, -} - -impl TokenBalanceListV2 { - pub fn new(items: Vec) -> TokenBalanceListV2 { - TokenBalanceListV2 { - cursor: None, - items, - } - } -} diff --git a/sdk-libs/photon-api/src/models/token_data.rs b/sdk-libs/photon-api/src/models/token_data.rs deleted file mode 100644 index 2cc5f1d795..0000000000 --- a/sdk-libs/photon-api/src/models/token_data.rs +++ /dev/null @@ -1,44 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct TokenData { - #[serde(rename = "amount")] - pub amount: u64, - /// A Solana public key represented as a base58 string. - #[serde(rename = "delegate", skip_serializing_if = "Option::is_none")] - pub delegate: Option, - /// A Solana public key represented as a base58 string. - #[serde(rename = "mint")] - pub mint: String, - /// A Solana public key represented as a base58 string. - #[serde(rename = "owner")] - pub owner: String, - #[serde(rename = "state")] - pub state: models::AccountState, - /// A base 64 encoded string. - #[serde(rename = "tlv", skip_serializing_if = "Option::is_none")] - pub tlv: Option, -} - -impl TokenData { - pub fn new(amount: u64, mint: String, owner: String, state: models::AccountState) -> TokenData { - TokenData { - amount, - delegate: None, - mint, - owner, - state, - tlv: None, - } - } -} diff --git a/sdk-libs/photon-api/src/models/tree_context_info.rs b/sdk-libs/photon-api/src/models/tree_context_info.rs deleted file mode 100644 index 90e6b04434..0000000000 --- a/sdk-libs/photon-api/src/models/tree_context_info.rs +++ /dev/null @@ -1,37 +0,0 @@ -/* - * photon-indexer - * - * Solana indexer for general compression - * - * The version of the OpenAPI document: 0.50.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::models; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct TreeContextInfo { - /// A Solana public key represented as a base58 string. - #[serde(rename = "cpiContext", skip_serializing_if = "Option::is_none")] - pub cpi_context: Option, - /// A Solana public key represented as a base58 string. - #[serde(rename = "queue")] - pub queue: String, - /// A Solana public key represented as a base58 string. - #[serde(rename = "tree")] - pub tree: String, - #[serde(rename = "treeType")] - pub tree_type: u16, -} - -impl TreeContextInfo { - pub fn new(queue: String, tree: String, tree_type: u16) -> TreeContextInfo { - TreeContextInfo { - cpi_context: None, - queue, - tree, - tree_type, - } - } -}