From b61763837090dcd905a765b84fc49d4cb96edc34 Mon Sep 17 00:00:00 2001 From: Sergey Timoshin Date: Wed, 11 Feb 2026 13:20:00 +0000 Subject: [PATCH 1/3] feat: integrate photon submodule versioning into build process --- cli/.gitignore | 1 + cli/package.json | 5 ++-- cli/scripts/syncPhotonVersion.sh | 35 +++++++++++++++++++++++++++ cli/src/utils/constants.ts | 8 ++---- cli/src/utils/processPhotonIndexer.ts | 13 +++------- external/photon | 2 +- scripts/devenv/install-photon.sh | 22 ++++++++++++----- scripts/devenv/versions.sh | 4 +-- 8 files changed, 63 insertions(+), 27 deletions(-) create mode 100755 cli/scripts/syncPhotonVersion.sh diff --git a/cli/.gitignore b/cli/.gitignore index 5735dd38df..430bd96433 100644 --- a/cli/.gitignore +++ b/cli/.gitignore @@ -15,3 +15,4 @@ test-ledger /bin /config.json /src/utils/proverVersion.generated.ts +/src/utils/photonVersion.generated.ts diff --git a/cli/package.json b/cli/package.json index 824e3ef12e..1f130ac615 100644 --- a/cli/package.json +++ b/cli/package.json @@ -93,8 +93,9 @@ "scripts": { "postinstall": "[ -d ./bin ] && find ./bin -type f -exec chmod +x {} + || echo 'No bin directory found, skipping chmod'", "sync-prover-version": "./scripts/syncProverVersion.sh", - "build": "shx rm -rf dist && pnpm sync-prover-version && pnpm tsc -p tsconfig.json && pnpm tsc -p tsconfig.test.json", - "build-release": "shx rm -rf dist && pnpm sync-prover-version && pnpm tsc -p tsconfig.json && pnpm tsc -p tsconfig.test.json", + "sync-photon-version": "./scripts/syncPhotonVersion.sh", + "build": "shx rm -rf dist && pnpm sync-prover-version && pnpm sync-photon-version && pnpm tsc -p tsconfig.json && pnpm tsc -p tsconfig.test.json", + "build-release": "shx rm -rf dist && pnpm sync-prover-version && pnpm sync-photon-version && pnpm tsc -p tsconfig.json && pnpm tsc -p tsconfig.test.json", "format": "pnpm prettier --write \"src/**/*.{ts,js}\" \"test/**/*.{ts,js}\" -w", "format:check": "pnpm prettier \"src/**/*{ts,js}\" \"test/**/*.{ts,js}\" --check", "lint": "eslint .", diff --git a/cli/scripts/syncPhotonVersion.sh b/cli/scripts/syncPhotonVersion.sh new file mode 100755 index 0000000000..0b4be3f64d --- /dev/null +++ b/cli/scripts/syncPhotonVersion.sh @@ -0,0 +1,35 @@ +#!/bin/bash +# Syncs the photon version and commit from the external/photon submodule to a TypeScript constant. +# This script is run as part of the CLI build process. + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +CLI_DIR="$(dirname "$SCRIPT_DIR")" +REPO_ROOT="$(dirname "$CLI_DIR")" + +PHOTON_DIR="$REPO_ROOT/external/photon" +OUTPUT_FILE="$CLI_DIR/src/utils/photonVersion.generated.ts" + +if [ ! -d "$PHOTON_DIR" ]; then + echo "Error: photon submodule not found at $PHOTON_DIR" + echo " Run: git submodule update --init external/photon" + exit 1 +fi + +VERSION=$(grep '^version' "$PHOTON_DIR/Cargo.toml" | head -1 | sed 's/.*"\(.*\)".*/\1/') +COMMIT=$(git -C "$PHOTON_DIR" rev-parse HEAD 2>/dev/null) + +if [ -z "$VERSION" ] || [ -z "$COMMIT" ]; then + echo "Error: Could not extract version or commit from photon submodule" + exit 1 +fi + +REPO="https://github.com/lightprotocol/photon.git" + +cat > "$OUTPUT_FILE" << EOF +// Auto-generated from external/photon submodule - do not edit manually +export const PHOTON_VERSION = "$VERSION"; +export const PHOTON_GIT_COMMIT = "$COMMIT"; +export const PHOTON_GIT_REPO = "$REPO"; +EOF + +echo "Synced photon version $VERSION (commit $COMMIT) to $OUTPUT_FILE" diff --git a/cli/src/utils/constants.ts b/cli/src/utils/constants.ts index f53b152bf4..02274cd8ee 100644 --- a/cli/src/utils/constants.ts +++ b/cli/src/utils/constants.ts @@ -24,12 +24,8 @@ export const FORESTER_PROCESS_NAME = "forester"; export const SURFPOOL_VERSION = "1.0.1"; export const SURFPOOL_RELEASE_TAG = "v1.0.1-light"; -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 = "32e9ae60926a0d614ad444b799d15c15c02f2ef7"; // If empty, will use main branch. +// PHOTON_VERSION, PHOTON_GIT_COMMIT, and PHOTON_GIT_REPO are auto-generated +// from the external/photon submodule at build time. See photonVersion.generated.ts. export const LIGHT_PROTOCOL_PROGRAMS_DIR_ENV = "LIGHT_PROTOCOL_PROGRAMS_DIR"; export const BASE_PATH = "../../bin/"; diff --git a/cli/src/utils/processPhotonIndexer.ts b/cli/src/utils/processPhotonIndexer.ts index f64788b190..66e422c255 100644 --- a/cli/src/utils/processPhotonIndexer.ts +++ b/cli/src/utils/processPhotonIndexer.ts @@ -1,12 +1,11 @@ import which from "which"; import { killProcess, spawnBinary, waitForServers } from "./process"; +import { INDEXER_PROCESS_NAME } from "./constants"; import { - INDEXER_PROCESS_NAME, PHOTON_VERSION, - USE_PHOTON_FROM_GIT, PHOTON_GIT_REPO, PHOTON_GIT_COMMIT, -} from "./constants"; +} from "./photonVersion.generated"; import { exec } from "node:child_process"; import * as util from "node:util"; import { exit } from "node:process"; @@ -27,13 +26,7 @@ async function isExpectedPhotonVersion( } function getPhotonInstallMessage(): string { - if (USE_PHOTON_FROM_GIT && PHOTON_GIT_COMMIT) { - return `\nPhoton indexer ${PHOTON_VERSION} (commit ${PHOTON_GIT_COMMIT}) not found. Please install it by running: "cargo install --git ${PHOTON_GIT_REPO} --rev ${PHOTON_GIT_COMMIT} --locked --force"`; - } else if (USE_PHOTON_FROM_GIT) { - return `\nPhoton indexer ${PHOTON_VERSION} not found. Please install it by running: "cargo install --git ${PHOTON_GIT_REPO} --locked --force"`; - } else { - return `\nPhoton indexer ${PHOTON_VERSION} not found. Please install it by running: "cargo install photon-indexer --version ${PHOTON_VERSION} --locked --force"`; - } + return `\nPhoton indexer ${PHOTON_VERSION} (commit ${PHOTON_GIT_COMMIT}) not found. Please install it by running: "cargo install --git ${PHOTON_GIT_REPO} --rev ${PHOTON_GIT_COMMIT} --locked --force"`; } export async function startIndexer( diff --git a/external/photon b/external/photon index 301153a04c..0df2397c2c 160000 --- a/external/photon +++ b/external/photon @@ -1 +1 @@ -Subproject commit 301153a04c3232413198098a0a6725207ce36298 +Subproject commit 0df2397c2c7d8458f45df9279e999a730ba56482 diff --git a/scripts/devenv/install-photon.sh b/scripts/devenv/install-photon.sh index 23d85f6336..c5f21deb97 100755 --- a/scripts/devenv/install-photon.sh +++ b/scripts/devenv/install-photon.sh @@ -13,13 +13,23 @@ sed_inplace() { } install_photon() { - local expected_version="${PHOTON_VERSION}" - local expected_commit="${PHOTON_COMMIT}" + local photon_path="${REPO_ROOT}/external/photon" + + # Ensure photon submodule is initialized and up to date + echo "Updating photon submodule..." + cd "${REPO_ROOT}" + git submodule update --init --recursive external/photon + cd "${SCRIPT_DIR}" + + # Derive version and commit from the actual submodule state (after init) + local expected_version + expected_version=$(grep '^version' "${photon_path}/Cargo.toml" | head -1 | sed 's/.*"\(.*\)".*/\1/') + local expected_commit + expected_commit=$(git -C "${photon_path}" rev-parse HEAD) local install_marker="photon:${expected_version}:${expected_commit}" - # Validate required variables if [ -z "${expected_version}" ] || [ -z "${expected_commit}" ]; then - echo "ERROR: PHOTON_VERSION or PHOTON_COMMIT not set in versions.sh" + echo "ERROR: Could not derive version or commit from external/photon submodule." exit 1 fi @@ -45,8 +55,8 @@ install_photon() { sed_inplace "/^photon:/d" "$INSTALL_LOG" 2>/dev/null || true sed_inplace "/^photon$/d" "$INSTALL_LOG" 2>/dev/null || true - echo "Installing Photon indexer ${expected_version} (commit ${expected_commit})..." - RUSTFLAGS="-A dead-code" cargo install --git https://github.com/helius-labs/photon.git --rev ${expected_commit} --locked --force + echo "Installing Photon indexer ${expected_version} (commit ${expected_commit}) from submodule..." + RUSTFLAGS="-A dead-code" cargo install --path "${photon_path}" --locked --force # Verify installation succeeded if [ ! -f "${PREFIX}/cargo/bin/photon" ]; then diff --git a/scripts/devenv/versions.sh b/scripts/devenv/versions.sh index 1be503443b..95d2b107ab 100755 --- a/scripts/devenv/versions.sh +++ b/scripts/devenv/versions.sh @@ -6,14 +6,14 @@ REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || echo "${PWD}")" export RUST_VERSION=$(grep 'channel' "${REPO_ROOT}/rust-toolchain.toml" | sed 's/.*"\(.*\)".*/\1/' | cut -d'.' -f1,2) export GO_VERSION=$(grep '^go ' "${REPO_ROOT}/prover/server/go.mod" | awk '{print $2}') export PNPM_VERSION=$(grep 'packageManager' "${REPO_ROOT}/package.json" | sed 's/.*pnpm@\([^"]*\).*/\1/') +export PHOTON_COMMIT=$(git -C "${REPO_ROOT}" rev-parse HEAD:external/photon 2>/dev/null || echo "unknown") +export PHOTON_VERSION=$(grep '^version' "${REPO_ROOT}/external/photon/Cargo.toml" 2>/dev/null | head -1 | sed 's/.*"\(.*\)".*/\1/') # Versions to bump manually (edit below) export NODE_VERSION="22.16.0" 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="301153a04c3232413198098a0a6725207ce36298" export REDIS_VERSION="8.0.1" export ANCHOR_TAG="anchor-v${ANCHOR_VERSION}" From fb9631d3d369b0ccd76c951bee1c2d066b3b21ec Mon Sep 17 00:00:00 2001 From: Sergey Timoshin Date: Wed, 11 Feb 2026 15:40:34 +0000 Subject: [PATCH 2/3] Refactor AccountInterface handling and remove unused functions - Removed `make_get_token_account_interface_body` and `make_get_ata_interface_body` functions from the photon API module. - Updated various test files to remove references to `ColdContext` and directly use compressed accounts in `AccountInterface`. - Adjusted `AccountSpec::Ata` instantiation to wrap `ata_interface` in `Box::new`. - Cleaned up imports in multiple test files by removing unused `ColdContext` references. --- sdk-libs/client/src/indexer/photon_indexer.rs | 116 +- .../client/src/indexer/types/interface.rs | 213 +- .../client/src/interface/account_interface.rs | 108 +- .../client/src/interface/decompress_mint.rs | 4 +- .../src/interface/light_program_interface.rs | 44 +- .../client/src/interface/load_accounts.rs | 2 +- sdk-libs/client/src/interface/mod.rs | 2 +- sdk-libs/client/src/rpc/client.rs | 212 +- sdk-libs/photon-api/src/codegen.rs | 28437 +++++++--------- sdk-libs/photon-api/src/lib.rs | 34 - .../tests/stress_test.rs | 6 +- .../tests/test_create_all.rs | 6 +- .../tests/test_create_ata.rs | 3 +- .../tests/test_create_token_vault.rs | 5 +- .../src/lib.rs | 22 +- .../tests/amm_stress_test.rs | 6 +- .../tests/amm_test.rs | 2 +- .../tests/basic_test.rs | 10 +- .../tests/d10_token_accounts_test.rs | 3 +- .../tests/integration_tests.rs | 6 +- .../tests/stress_test.rs | 6 +- .../tests/test_create_all.rs | 6 +- .../tests/test_create_ata.rs | 3 +- .../tests/test_create_token_vault.rs | 5 +- 24 files changed, 11748 insertions(+), 17513 deletions(-) diff --git a/sdk-libs/client/src/indexer/photon_indexer.rs b/sdk-libs/client/src/indexer/photon_indexer.rs index ef6e78fb2d..26d16ae235 100644 --- a/sdk-libs/client/src/indexer/photon_indexer.rs +++ b/sdk-libs/client/src/indexer/photon_indexer.rs @@ -1716,11 +1716,8 @@ impl Indexer for PhotonIndexer { } // ============ Interface Methods ============ -// These methods use the Interface endpoints that race hot (on-chain) and cold (compressed) lookups - +// These methods use the Interface endpoints that race hot (on-chain) and cold (compressed) lookups. impl PhotonIndexer { - /// Get account data from either on-chain or compressed sources. - /// Races both lookups and returns the result with the higher slot. pub async fn get_account_interface( &self, address: &Pubkey, @@ -1764,99 +1761,46 @@ impl PhotonIndexer { .await } - /// Get token account data from either on-chain or compressed sources. - /// Races both lookups and returns the result with the higher slot. pub async fn get_token_account_interface( &self, address: &Pubkey, config: Option, ) -> Result>, IndexerError> { - let config = config.unwrap_or_default(); - self.retry(config.retry_config, || async { - let params = photon_api::types::PostGetTokenAccountInterfaceBodyParams { - address: photon_api::types::SerializablePubkey(address.to_string()), - }; - let request = - photon_api::apis::default_api::make_get_token_account_interface_body(params); - - let result = photon_api::apis::default_api::get_token_account_interface_post( - &self.configuration, - request, - ) - .await?; - - let api_response = Self::extract_result_with_error_check( - "get_token_account_interface", - result.error, - result.result, - )?; - - if api_response.context.slot < config.slot { - return Err(IndexerError::IndexerNotSyncedToSlot); + let response = self.get_account_interface(address, config).await?; + let value = match response.value { + Some(ai) => { + let token = parse_token_data_from_indexer_account(&ai)?; + Some(TokenAccountInterface { account: ai, token }) } - - let account = match api_response.value { - Some(ref tai) => Some(TokenAccountInterface::try_from(tai)?), - None => None, - }; - - Ok(Response { - context: Context { - slot: api_response.context.slot, - }, - value: account, - }) + None => None, + }; + Ok(Response { + context: response.context, + value, }) - .await } - /// Get Associated Token Account data from either on-chain or compressed sources. - /// Derives the Light Protocol ATA address from owner+mint, then races hot/cold lookups. pub async fn get_associated_token_account_interface( &self, owner: &Pubkey, mint: &Pubkey, config: Option, ) -> Result>, IndexerError> { - let config = config.unwrap_or_default(); - self.retry(config.retry_config, || async { - let params = photon_api::types::PostGetAtaInterfaceBodyParams { - owner: photon_api::types::SerializablePubkey(owner.to_string()), - mint: photon_api::types::SerializablePubkey(mint.to_string()), - }; - let request = photon_api::apis::default_api::make_get_ata_interface_body(params); - - let result = - photon_api::apis::default_api::get_ata_interface_post(&self.configuration, request) - .await?; - - let api_response = Self::extract_result_with_error_check( - "get_associated_token_account_interface", - result.error, - result.result, - )?; - - if api_response.context.slot < config.slot { - return Err(IndexerError::IndexerNotSyncedToSlot); + let ata_address = light_token::instruction::get_associated_token_address(owner, mint); + let response = self.get_account_interface(&ata_address, config).await?; + let value = match response.value { + Some(ai) => { + let token = parse_token_data_from_indexer_account(&ai)?; + Some(TokenAccountInterface { account: ai, token }) } - - let account = match api_response.value { - Some(ref tai) => Some(TokenAccountInterface::try_from(tai)?), - None => None, - }; - - Ok(Response { - context: Context { - slot: api_response.context.slot, - }, - value: account, - }) + None => None, + }; + Ok(Response { + context: response.context, + value, }) - .await } - /// Get multiple account interfaces in a batch. - /// Returns a vector where each element corresponds to an input address. pub async fn get_multiple_account_interfaces( &self, addresses: Vec<&Pubkey>, @@ -1909,3 +1853,19 @@ impl PhotonIndexer { .await } } + +/// Parse token data from an indexer AccountInterface. +/// For compressed (cold) accounts: borsh-deserializes TokenData from the cold data bytes. +/// For on-chain (hot) accounts: returns default TokenData (downstream conversion re-parses from SPL layout). +fn parse_token_data_from_indexer_account( + ai: &AccountInterface, +) -> Result { + match &ai.cold { + Some(cold) => borsh::BorshDeserialize::deserialize(&mut cold.data.data.as_slice()) + .map_err(|e| IndexerError::decode_error("token_data", e)), + None => { + // Hot account — downstream will re-parse from SPL account data directly + Ok(light_token::compat::TokenData::default()) + } + } +} diff --git a/sdk-libs/client/src/indexer/types/interface.rs b/sdk-libs/client/src/indexer/types/interface.rs index 72abeef304..61d8d109aa 100644 --- a/sdk-libs/client/src/indexer/types/interface.rs +++ b/sdk-libs/client/src/indexer/types/interface.rs @@ -1,7 +1,5 @@ -use borsh::BorshDeserialize; use light_compressed_account::TreeType; -use light_token::compat::{AccountState, TokenData}; -use light_token_interface::state::ExtensionStruct; +use light_token::compat::TokenData; use solana_account::Account; use solana_pubkey::Pubkey; @@ -26,91 +24,81 @@ pub struct InterfaceTreeInfo { pub struct ColdData { pub discriminator: [u8; 8], pub data: Vec, + pub data_hash: [u8; 32], } -/// Compressed account context — present when account is in compressed state +/// Compressed account context — present when account is in compressed state. #[derive(Clone, Debug, PartialEq)] -pub enum ColdContext { - Account { - hash: [u8; 32], - leaf_index: u64, - tree_info: InterfaceTreeInfo, - data: ColdData, - }, - Token { - hash: [u8; 32], - leaf_index: u64, - tree_info: InterfaceTreeInfo, - data: ColdData, - }, +pub struct ColdContext { + pub hash: [u8; 32], + pub leaf_index: u64, + pub tree_info: InterfaceTreeInfo, + pub data: ColdData, + pub address: Option<[u8; 32]>, + pub prove_by_index: bool, } -/// Decode tree info from photon_api format -fn decode_tree_info( - tree_info: &photon_api::types::TreeInfo, +/// Decode tree info from photon_api AccountV2 format +fn decode_tree_info_v2( + merkle_ctx: &photon_api::types::MerkleContextV2, + seq: Option, + slot_created: u64, ) -> Result { - let tree = Pubkey::new_from_array(decode_base58_to_fixed_array(&tree_info.tree)?); - let queue = Pubkey::new_from_array(decode_base58_to_fixed_array(&tree_info.queue)?); - let tree_type = match tree_info.tree_type { - photon_api::types::TreeType::StateV1 => TreeType::StateV1, - photon_api::types::TreeType::StateV2 => TreeType::StateV2, - }; + let tree = Pubkey::new_from_array(decode_base58_to_fixed_array(&merkle_ctx.tree)?); + let queue = Pubkey::new_from_array(decode_base58_to_fixed_array(&merkle_ctx.queue)?); + let tree_type = TreeType::from(merkle_ctx.tree_type as u64); Ok(InterfaceTreeInfo { tree, queue, tree_type, - seq: tree_info.seq.as_ref().map(|s| **s), - slot_created: *tree_info.slot_created, + seq, + slot_created, }) } -/// Decode cold data from photon_api format. -fn decode_cold_data(data: &photon_api::types::ColdData) -> Result { - if data.discriminator.len() != 8 { - return Err(IndexerError::decode_error( - "discriminator", - format!("expected 8 bytes, got {}", data.discriminator.len()), - )); - } - let mut discriminator = [0u8; 8]; - for (i, &val) in data.discriminator.iter().enumerate() { - discriminator[i] = val as u8; - } +/// Decode cold data from photon_api AccountData format. +fn decode_account_data(data: &photon_api::types::AccountData) -> Result { + let disc_val = *data.discriminator; + let discriminator = disc_val.to_le_bytes(); Ok(ColdData { discriminator, data: base64::decode_config(&*data.data, base64::STANDARD_NO_PAD) .map_err(|e| IndexerError::decode_error("data", e))?, + data_hash: decode_base58_to_fixed_array(&data.data_hash)?, }) } -/// Helper to convert photon_api ColdContext to client ColdContext -fn convert_cold_context( - cold: &photon_api::types::ColdContext, -) -> Result { - match cold { - photon_api::types::ColdContext::Account { - hash, - leaf_index, - tree_info, - data, - } => Ok(ColdContext::Account { - hash: decode_base58_to_fixed_array(hash)?, - leaf_index: **leaf_index, - tree_info: decode_tree_info(tree_info)?, - data: decode_cold_data(data)?, - }), - photon_api::types::ColdContext::Token { - hash, - leaf_index, - tree_info, - data, - } => Ok(ColdContext::Token { - hash: decode_base58_to_fixed_array(hash)?, - leaf_index: **leaf_index, - tree_info: decode_tree_info(tree_info)?, - data: decode_cold_data(data)?, - }), - } +/// Convert a photon_api AccountV2 to a client ColdContext. +fn convert_account_v2(av2: &photon_api::types::AccountV2) -> Result { + let tree_info = decode_tree_info_v2( + &av2.merkle_context, + av2.seq.as_ref().map(|s| **s), + *av2.slot_created, + )?; + + let data = match &av2.data { + Some(d) => decode_account_data(d)?, + None => ColdData { + discriminator: [0u8; 8], + data: Vec::new(), + data_hash: [0u8; 32], + }, + }; + + let address = av2 + .address + .as_ref() + .map(|a| decode_base58_to_fixed_array(a)) + .transpose()?; + + Ok(ColdContext { + hash: decode_base58_to_fixed_array(&av2.hash)?, + leaf_index: *av2.leaf_index, + tree_info, + data, + address, + prove_by_index: av2.prove_by_index, + }) } /// Unified account interface — works for both on-chain and compressed accounts @@ -140,7 +128,13 @@ impl AccountInterface { fn convert_account_interface( ai: &photon_api::types::AccountInterface, ) -> Result { - let cold = ai.cold.as_ref().map(convert_cold_context).transpose()?; + // Take the first compressed account entry if present + let cold = ai + .cold + .as_ref() + .and_then(|entries| entries.first()) + .map(convert_account_v2) + .transpose()?; let data = base64::decode_config(&*ai.account.data, base64::STANDARD_NO_PAD) .map_err(|e| IndexerError::decode_error("account.data", e))?; @@ -158,31 +152,6 @@ fn convert_account_interface( }) } -/// Helper to convert flattened interface fields (from TokenAccountInterface or InterfaceResult variants) -/// into a client AccountInterface -fn convert_flattened_account_interface( - key: &photon_api::types::SerializablePubkey, - account: &photon_api::types::SolanaAccountData, - cold: &Option, -) -> Result { - let cold = cold.as_ref().map(convert_cold_context).transpose()?; - - let data = base64::decode_config(&*account.data, base64::STANDARD_NO_PAD) - .map_err(|e| IndexerError::decode_error("account.data", e))?; - - Ok(AccountInterface { - key: Pubkey::new_from_array(decode_base58_to_fixed_array(key)?), - account: Account { - lamports: *account.lamports, - data, - owner: Pubkey::new_from_array(decode_base58_to_fixed_array(&account.owner)?), - executable: account.executable, - rent_epoch: *account.rent_epoch, - }, - cold, - }) -} - impl TryFrom<&photon_api::types::AccountInterface> for AccountInterface { type Error = IndexerError; @@ -191,21 +160,6 @@ impl TryFrom<&photon_api::types::AccountInterface> for AccountInterface { } } -impl TryFrom<&photon_api::types::InterfaceResult> for AccountInterface { - type Error = IndexerError; - - fn try_from(ir: &photon_api::types::InterfaceResult) -> Result { - match ir { - photon_api::types::InterfaceResult::Variant0 { - key, account, cold, .. - } => convert_flattened_account_interface(key, account, cold), - photon_api::types::InterfaceResult::Variant1 { - key, account, cold, .. - } => convert_flattened_account_interface(key, account, cold), - } - } -} - /// Token account interface with parsed token data #[derive(Clone, Debug, PartialEq)] pub struct TokenAccountInterface { @@ -214,44 +168,3 @@ pub struct TokenAccountInterface { /// Parsed token data (same as CompressedTokenAccount.token) pub token: TokenData, } - -/// Parse token data from photon_api TokenData -fn parse_interface_token_data( - td: &photon_api::types::TokenData, -) -> Result { - Ok(TokenData { - mint: Pubkey::new_from_array(decode_base58_to_fixed_array(&td.mint)?), - owner: Pubkey::new_from_array(decode_base58_to_fixed_array(&td.owner)?), - amount: *td.amount, - delegate: td - .delegate - .as_ref() - .map(|d| decode_base58_to_fixed_array(d).map(Pubkey::new_from_array)) - .transpose()?, - state: match td.state { - photon_api::types::AccountState::Initialized => AccountState::Initialized, - photon_api::types::AccountState::Frozen => AccountState::Frozen, - }, - tlv: td - .tlv - .as_ref() - .map(|tlv| { - let bytes = base64::decode_config(&**tlv, base64::STANDARD_NO_PAD) - .map_err(|e| IndexerError::decode_error("tlv", e))?; - Vec::::deserialize(&mut bytes.as_slice()) - .map_err(|e| IndexerError::decode_error("extensions", e)) - }) - .transpose()?, - }) -} - -impl TryFrom<&photon_api::types::TokenAccountInterface> for TokenAccountInterface { - type Error = IndexerError; - - fn try_from(tai: &photon_api::types::TokenAccountInterface) -> Result { - // TokenAccountInterface has flattened AccountInterface fields + token_data - let account = convert_flattened_account_interface(&tai.key, &tai.account, &tai.cold)?; - let token = parse_interface_token_data(&tai.token_data)?; - Ok(TokenAccountInterface { account, token }) - } -} diff --git a/sdk-libs/client/src/interface/account_interface.rs b/sdk-libs/client/src/interface/account_interface.rs index 8c96e84d13..a7f30891fa 100644 --- a/sdk-libs/client/src/interface/account_interface.rs +++ b/sdk-libs/client/src/interface/account_interface.rs @@ -22,7 +22,6 @@ use spl_token_2022_interface::{ }; use thiserror::Error; -use super::ColdContext; use crate::indexer::{CompressedAccount, CompressedTokenAccount, TreeInfo}; /// Error type for account interface operations. @@ -49,8 +48,8 @@ pub struct AccountInterface { pub key: Pubkey, /// Standard Solana Account (lamports, data, owner, executable, rent_epoch). pub account: Account, - /// Cold context (only present when cold). - pub cold: Option, + /// Compressed account data (only present when cold). + pub cold: Option, } impl AccountInterface { @@ -84,46 +83,7 @@ impl AccountInterface { executable: false, rent_epoch: 0, }, - cold: Some(ColdContext::Account(compressed)), - } - } - - /// Create a cold account interface for a token account. - pub fn cold_token( - key: Pubkey, - compressed: CompressedTokenAccount, - wallet_owner: Pubkey, - ) -> Self { - use light_token::compat::AccountState as LightAccountState; - let token = &compressed.token; - let parsed = PodAccount { - mint: token.mint, - owner: wallet_owner, - amount: PodU64::from(token.amount), - delegate: match token.delegate { - Some(pk) => PodCOption::some(pk), - None => PodCOption::none(), - }, - state: match token.state { - LightAccountState::Frozen => AccountState::Frozen as u8, - _ => AccountState::Initialized as u8, - }, - is_native: PodCOption::none(), - delegated_amount: PodU64::from(0u64), - close_authority: PodCOption::none(), - }; - let data = pod_bytes_of(&parsed).to_vec(); - - Self { - key, - account: Account { - lamports: compressed.account.lamports, - data, - owner: light_token::instruction::LIGHT_TOKEN_PROGRAM_ID, - executable: false, - rent_epoch: 0, - }, - cold: Some(ColdContext::Token(compressed)), + cold: Some(compressed), } } @@ -147,60 +107,29 @@ impl AccountInterface { /// Get the account hash if cold. pub fn hash(&self) -> Option<[u8; 32]> { - match &self.cold { - Some(ColdContext::Account(c)) => Some(c.hash), - Some(ColdContext::Token(c)) => Some(c.account.hash), - Some(ColdContext::Mint(c)) => Some(c.hash), - None => None, - } + self.cold.as_ref().map(|c| c.hash) } /// Get tree info if cold. pub fn tree_info(&self) -> Option<&TreeInfo> { - match &self.cold { - Some(ColdContext::Account(c)) => Some(&c.tree_info), - Some(ColdContext::Token(c)) => Some(&c.account.tree_info), - Some(ColdContext::Mint(c)) => Some(&c.tree_info), - None => None, - } + self.cold.as_ref().map(|c| &c.tree_info) } /// Get leaf index if cold. pub fn leaf_index(&self) -> Option { - match &self.cold { - Some(ColdContext::Account(c)) => Some(c.leaf_index), - Some(ColdContext::Token(c)) => Some(c.account.leaf_index), - Some(ColdContext::Mint(c)) => Some(c.leaf_index), - None => None, - } + self.cold.as_ref().map(|c| c.leaf_index) } - /// Get as CompressedAccount if cold account or mint type. + /// Get as CompressedAccount if cold. pub fn as_compressed_account(&self) -> Option<&CompressedAccount> { - match &self.cold { - Some(ColdContext::Account(c)) => Some(c), - Some(ColdContext::Mint(c)) => Some(c), - _ => None, - } - } - - /// Get as CompressedTokenAccount if cold token type. - pub fn as_compressed_token(&self) -> Option<&CompressedTokenAccount> { - match &self.cold { - Some(ColdContext::Token(c)) => Some(c), - _ => None, - } + self.cold.as_ref() } /// Try to parse as Mint. Returns None if not a mint or parse fails. pub fn as_mint(&self) -> Option { - match &self.cold { - Some(ColdContext::Mint(ca)) => { - let data = ca.data.as_ref()?; - borsh::BorshDeserialize::deserialize(&mut data.data.as_slice()).ok() - } - _ => None, - } + let ca = self.cold.as_ref()?; + let data = ca.data.as_ref()?; + borsh::BorshDeserialize::deserialize(&mut data.data.as_slice()).ok() } /// Get mint signer if this is a cold mint. @@ -208,7 +137,7 @@ impl AccountInterface { self.as_mint().map(|m| m.metadata.mint_signer) } - /// Get mint address if this is a cold mint. + /// Get mint compressed address if this is a cold mint. pub fn mint_compressed_address(&self) -> Option<[u8; 32]> { self.as_mint().map(|m| m.metadata.compressed_address()) } @@ -230,8 +159,8 @@ pub struct TokenAccountInterface { pub account: Account, /// Parsed SPL Token Account (POD format). pub parsed: PodAccount, - /// Cold context (only present when cold). - pub cold: Option, + /// Compressed token account data (only present when cold). + pub cold: Option, /// Optional TLV extension data. pub extensions: Option>, } @@ -306,7 +235,7 @@ impl TokenAccountInterface { key, account, parsed, - cold: Some(ColdContext::Token(compressed)), + cold: Some(compressed), extensions, } } @@ -325,10 +254,7 @@ impl TokenAccountInterface { /// Get the CompressedTokenAccount if cold. pub fn compressed(&self) -> Option<&CompressedTokenAccount> { - match &self.cold { - Some(ColdContext::Token(c)) => Some(c), - _ => None, - } + self.cold.as_ref() } /// Get amount. @@ -400,7 +326,7 @@ impl From for AccountInterface { Self { key: tai.key, account: tai.account, - cold: tai.cold, + cold: tai.cold.map(|ct| ct.account), } } } diff --git a/sdk-libs/client/src/interface/decompress_mint.rs b/sdk-libs/client/src/interface/decompress_mint.rs index e421b38cd8..9c117e2545 100644 --- a/sdk-libs/client/src/interface/decompress_mint.rs +++ b/sdk-libs/client/src/interface/decompress_mint.rs @@ -15,7 +15,7 @@ use solana_instruction::Instruction; use solana_pubkey::Pubkey; use thiserror::Error; -use super::{AccountInterface, ColdContext}; +use super::AccountInterface; use crate::indexer::{CompressedAccount, Indexer, ValidityProofWithContext}; /// Error type for mint load operations. @@ -134,7 +134,7 @@ impl From for AccountInterface { executable: false, rent_epoch: 0, }, - cold: Some(ColdContext::Mint(compressed)), + cold: Some(compressed), } } MintState::None => Self { diff --git a/sdk-libs/client/src/interface/light_program_interface.rs b/sdk-libs/client/src/interface/light_program_interface.rs index 8ee0eb2880..81efefcd6d 100644 --- a/sdk-libs/client/src/interface/light_program_interface.rs +++ b/sdk-libs/client/src/interface/light_program_interface.rs @@ -1,7 +1,6 @@ //! LightProgramInterface trait and supporting types for client-side SDK patterns. //! //! Core types: -//! - `ColdContext` - Cold data context (Account or Token) //! - `PdaSpec` - Spec for PDA loading with typed variant //! - `AccountSpec` - Unified spec enum for load instruction building //! - `LightProgramInterface` - Trait for program SDKs @@ -13,7 +12,7 @@ use light_token::instruction::derive_token_ata; use solana_pubkey::Pubkey; use super::{AccountInterface, TokenAccountInterface}; -use crate::indexer::{CompressedAccount, CompressedTokenAccount}; +use crate::indexer::CompressedAccount; /// Account descriptor for fetching. Routes to the correct indexer endpoint. #[derive(Debug, Clone, PartialEq, Eq, Hash)] @@ -60,22 +59,6 @@ impl AccountToFetch { } } -/// Context for cold accounts. -/// -/// Three variants based on data structure: -/// - `Account` - Generic PDA -/// - `Token` - Token account -/// - `Mint` - Compressed mint -#[derive(Clone, Debug, PartialEq)] -pub enum ColdContext { - /// Generic PDA - Account(CompressedAccount), - /// Token account - Token(CompressedTokenAccount), - /// Compressed mint - Mint(CompressedAccount), -} - /// Specification for a program-owned PDA with typed variant. /// /// Embeds `AccountInterface` for account data and adds `variant` for typed variant. @@ -128,27 +111,10 @@ impl PdaSpec { self.interface.is_hot() } - /// Get the compressed account if cold (handles both Account and Token cold contexts). + /// Get the compressed account if cold. #[must_use] pub fn compressed(&self) -> Option<&CompressedAccount> { - match &self.interface.cold { - Some(ColdContext::Account(c)) => Some(c), - Some(ColdContext::Token(c)) => Some(&c.account), - Some(ColdContext::Mint(c)) => Some(c), - None => None, - } - } - - /// Get the compressed token account if this is a cold token PDA. - #[must_use] - pub fn compressed_token(&self) -> Option<&CompressedTokenAccount> { - self.interface.as_compressed_token() - } - - /// Whether this spec is for a token PDA (cold context is Token variant). - #[must_use] - pub fn is_token_pda(&self) -> bool { - self.interface.as_compressed_token().is_some() + self.interface.cold.as_ref() } /// Get the cold account hash. @@ -171,7 +137,7 @@ pub enum AccountSpec { /// Program-owned PDA with typed variant. Pda(PdaSpec), /// Associated token account - Ata(TokenAccountInterface), + Ata(Box), /// Light token mint Mint(AccountInterface), } @@ -211,7 +177,7 @@ impl From> for AccountSpec { impl From for AccountSpec<()> { fn from(interface: TokenAccountInterface) -> Self { - Self::Ata(interface) + Self::Ata(Box::new(interface)) } } diff --git a/sdk-libs/client/src/interface/load_accounts.rs b/sdk-libs/client/src/interface/load_accounts.rs index 49e8bff452..d156b7316e 100644 --- a/sdk-libs/client/src/interface/load_accounts.rs +++ b/sdk-libs/client/src/interface/load_accounts.rs @@ -100,7 +100,7 @@ where let cold_atas: Vec<_> = specs .iter() .filter_map(|s| match s { - AccountSpec::Ata(a) if a.is_cold() => Some(a), + AccountSpec::Ata(a) if a.is_cold() => Some(a.as_ref()), _ => None, }) .collect(); diff --git a/sdk-libs/client/src/interface/mod.rs b/sdk-libs/client/src/interface/mod.rs index 041e7f4973..5a587556f4 100644 --- a/sdk-libs/client/src/interface/mod.rs +++ b/sdk-libs/client/src/interface/mod.rs @@ -22,7 +22,7 @@ pub use initialize_config::InitializeRentFreeConfig; pub use light_account::LightConfig; pub use light_program_interface::{ all_hot, any_cold, discriminator, matches_discriminator, AccountSpec, AccountToFetch, - ColdContext, LightProgramInterface, PdaSpec, + LightProgramInterface, PdaSpec, }; pub use light_sdk_types::interface::CreateAccountsProof; pub use light_token::compat::TokenData; diff --git a/sdk-libs/client/src/rpc/client.rs b/sdk-libs/client/src/rpc/client.rs index 59da769957..ec4f0c5aec 100644 --- a/sdk-libs/client/src/rpc/client.rs +++ b/sdk-libs/client/src/rpc/client.rs @@ -504,13 +504,42 @@ impl LightClient { // Conversion helpers from indexer types to interface types -fn convert_account_interface( - indexer_ai: IndexerAccountInterface, -) -> Result { +use crate::indexer::ColdContext as IndexerColdContext; + +fn cold_context_to_compressed_account( + cold: &IndexerColdContext, + lamports: u64, + owner: Pubkey, +) -> crate::indexer::CompressedAccount { use light_compressed_account::compressed_account::CompressedAccountData; - use crate::indexer::{ColdContext as IndexerColdContext, CompressedAccount}; + crate::indexer::CompressedAccount { + address: cold.address, + data: Some(CompressedAccountData { + discriminator: cold.data.discriminator, + data: cold.data.data.clone(), + data_hash: cold.data.data_hash, + }), + hash: cold.hash, + lamports, + leaf_index: cold.leaf_index as u32, + owner, + prove_by_index: cold.prove_by_index, + seq: cold.tree_info.seq, + slot_created: cold.tree_info.slot_created, + tree_info: TreeInfo { + tree: cold.tree_info.tree, + queue: cold.tree_info.queue, + cpi_context: None, + next_tree_info: None, + tree_type: cold.tree_info.tree_type, + }, + } +} +fn convert_account_interface( + indexer_ai: IndexerAccountInterface, +) -> Result { let account = Account { lamports: indexer_ai.account.lamports, data: indexer_ai.account.data, @@ -521,101 +550,25 @@ fn convert_account_interface( match indexer_ai.cold { None => Ok(AccountInterface::hot(indexer_ai.key, account)), - Some(IndexerColdContext::Account { - hash, - leaf_index, - tree_info, - data, - }) => { - let compressed = CompressedAccount { - address: None, - data: Some(CompressedAccountData { - discriminator: data.discriminator, - data: data.data, - data_hash: [0u8; 32], // Computed on demand if needed - }), - hash, - lamports: indexer_ai.account.lamports, - leaf_index: leaf_index as u32, - owner: indexer_ai.account.owner, - prove_by_index: false, - seq: tree_info.seq, - slot_created: tree_info.slot_created, - tree_info: TreeInfo { - tree: tree_info.tree, - queue: tree_info.queue, - cpi_context: None, - next_tree_info: None, - tree_type: tree_info.tree_type, - }, - }; + Some(cold) => { + let compressed = cold_context_to_compressed_account( + &cold, + indexer_ai.account.lamports, + indexer_ai.account.owner, + ); Ok(AccountInterface::cold( indexer_ai.key, compressed, indexer_ai.account.owner, )) } - Some(IndexerColdContext::Token { - hash, - leaf_index, - tree_info, - data, - }) => { - use light_token::compat::TokenData; - - use crate::indexer::CompressedTokenAccount; - - // Parse token data from the cold data - propagate errors instead of using default - let token_data: TokenData = - borsh::BorshDeserialize::deserialize(&mut data.data.as_slice()).map_err(|e| { - RpcError::CustomError(format!("Failed to deserialize token data: {}", e)) - })?; - - let wallet_owner = token_data.owner; - - let compressed_account = CompressedAccount { - address: None, - data: Some(CompressedAccountData { - discriminator: data.discriminator, - data: data.data, - data_hash: [0u8; 32], - }), - hash, - lamports: indexer_ai.account.lamports, - leaf_index: leaf_index as u32, - owner: indexer_ai.account.owner, - prove_by_index: false, - seq: tree_info.seq, - slot_created: tree_info.slot_created, - tree_info: TreeInfo { - tree: tree_info.tree, - queue: tree_info.queue, - cpi_context: None, - next_tree_info: None, - tree_type: tree_info.tree_type, - }, - }; - let compressed_token = CompressedTokenAccount { - token: token_data, - account: compressed_account.clone(), - }; - Ok(AccountInterface::cold_token( - indexer_ai.key, - compressed_token, - wallet_owner, - )) - } } } fn convert_token_account_interface( indexer_tai: IndexerTokenAccountInterface, ) -> Result { - use light_compressed_account::compressed_account::CompressedAccountData; - - use crate::indexer::{ - ColdContext as IndexerColdContext, CompressedAccount, CompressedTokenAccount, - }; + use crate::indexer::CompressedTokenAccount; let account = Account { lamports: indexer_tai.account.account.lamports, @@ -628,34 +581,12 @@ fn convert_token_account_interface( match indexer_tai.account.cold { None => TokenAccountInterface::hot(indexer_tai.account.key, account) .map_err(|e| RpcError::CustomError(format!("parse error: {}", e))), - Some(IndexerColdContext::Token { - hash, - leaf_index, - tree_info, - data, - }) => { - let compressed_account = CompressedAccount { - address: None, - data: Some(CompressedAccountData { - discriminator: data.discriminator, - data: data.data, - data_hash: [0u8; 32], - }), - hash, - lamports: indexer_tai.account.account.lamports, - leaf_index: leaf_index as u32, - owner: indexer_tai.account.account.owner, - prove_by_index: false, - seq: tree_info.seq, - slot_created: tree_info.slot_created, - tree_info: TreeInfo { - tree: tree_info.tree, - queue: tree_info.queue, - cpi_context: None, - next_tree_info: None, - tree_type: tree_info.tree_type, - }, - }; + Some(cold) => { + let compressed_account = cold_context_to_compressed_account( + &cold, + indexer_tai.account.account.lamports, + indexer_tai.account.account.owner, + ); // Extract token owner before moving token into CompressedTokenAccount let token_owner = indexer_tai.token.owner; let compressed_token = CompressedTokenAccount { @@ -669,9 +600,6 @@ fn convert_token_account_interface( indexer_tai.account.account.owner, )) } - _ => Err(RpcError::CustomError( - "unexpected cold context type for token account".into(), - )), } } @@ -1245,32 +1173,32 @@ impl Rpc for LightClient { let value = match resp.value { Some(ai) => { let state = if ai.is_cold() { - // Cold: fetch full CompressedAccount to get data_hash - let compressed_resp = indexer - .get_compressed_account(compressed_address, config) - .await - .map_err(|e| RpcError::CustomError(format!("Indexer error: {e}")))?; - - let compressed = compressed_resp.value.ok_or_else(|| { - RpcError::CustomError("Cold mint not found by compressed address".into()) + let cold = ai.cold.as_ref().ok_or_else(|| { + RpcError::CustomError("Cold mint missing cold context".into()) })?; - // Parse mint data from compressed account - let mint_data = compressed - .data - .as_ref() - .and_then(|d| { - if d.data.is_empty() { - None - } else { - Mint::try_from_slice(&d.data).ok() - } - }) - .ok_or_else(|| { - RpcError::CustomError( - "Missing or invalid mint data in compressed account".into(), - ) - })?; + // Build CompressedAccount from indexer ColdContext + let mut compressed = cold_context_to_compressed_account( + cold, + ai.account.lamports, + ai.account.owner, + ); + + if compressed.address.is_none() { + compressed.address = Some(compressed_address); + } + + // Parse mint data from cold data bytes + let mint_data = if cold.data.data.is_empty() { + None + } else { + Mint::try_from_slice(&cold.data.data).ok() + } + .ok_or_else(|| { + RpcError::CustomError( + "Missing or invalid mint data in compressed account".into(), + ) + })?; MintState::Cold { compressed, diff --git a/sdk-libs/photon-api/src/codegen.rs b/sdk-libs/photon-api/src/codegen.rs index 77c436aae3..4dd88bda05 100644 --- a/sdk-libs/photon-api/src/codegen.rs +++ b/sdk-libs/photon-api/src/codegen.rs @@ -247,7 +247,14 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/SolanaAccountData" /// }, /// "cold": { - /// "$ref": "#/components/schemas/ColdContext" + /// "description": "Compressed accounts associated with this pubkey", + /// "type": [ + /// "array", + /// "null" + /// ], + /// "items": { + /// "$ref": "#/components/schemas/AccountV2" + /// } /// }, /// "key": { /// "$ref": "#/components/schemas/SerializablePubkey" @@ -259,8 +266,9 @@ All endpoints return AccountV2.*/ #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] pub struct AccountInterface { pub account: SolanaAccountData, + ///Compressed accounts associated with this pubkey #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub cold: ::std::option::Option, + pub cold: ::std::option::Option<::std::vec::Vec>, pub key: SerializablePubkey, } impl AccountInterface { @@ -352,66 +360,6 @@ All endpoints return AccountV2.*/ Default::default() } } - ///Typed account lookup for batch requests - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "Typed account lookup for batch requests", - /// "oneOf": [ - /// { - /// "description": "Generic account/PDA lookup by address", - /// "type": "object", - /// "required": [ - /// "address", - /// "type" - /// ], - /// "properties": { - /// "address": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// }, - /// "type": { - /// "type": "string", - /// "enum": [ - /// "account" - /// ] - /// } - /// } - /// }, - /// { - /// "description": "Token account lookup by address", - /// "type": "object", - /// "required": [ - /// "address", - /// "type" - /// ], - /// "properties": { - /// "address": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// }, - /// "type": { - /// "type": "string", - /// "enum": [ - /// "token" - /// ] - /// } - /// } - /// } - /// ] - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(tag = "type", content = "address")] - pub enum AccountLookup { - ///Generic account/PDA lookup by address - #[serde(rename = "account")] - Account(SerializablePubkey), - ///Token account lookup by address - #[serde(rename = "token")] - Token(SerializablePubkey), - } ///`AccountProofInputs` /// ///
JSON schema @@ -1162,135 +1110,6 @@ All endpoints return AccountV2.*/ Default::default() } } - ///Compressed account context — present when account is in compressed state - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "Compressed account context — present when account is in compressed state", - /// "oneOf": [ - /// { - /// "type": "object", - /// "required": [ - /// "data", - /// "hash", - /// "leafIndex", - /// "treeInfo", - /// "type" - /// ], - /// "properties": { - /// "data": { - /// "$ref": "#/components/schemas/ColdData" - /// }, - /// "hash": { - /// "$ref": "#/components/schemas/Hash" - /// }, - /// "leafIndex": { - /// "$ref": "#/components/schemas/UnsignedInteger" - /// }, - /// "treeInfo": { - /// "$ref": "#/components/schemas/TreeInfo" - /// }, - /// "type": { - /// "type": "string", - /// "enum": [ - /// "account" - /// ] - /// } - /// } - /// }, - /// { - /// "type": "object", - /// "required": [ - /// "data", - /// "hash", - /// "leafIndex", - /// "treeInfo", - /// "type" - /// ], - /// "properties": { - /// "data": { - /// "$ref": "#/components/schemas/ColdData" - /// }, - /// "hash": { - /// "$ref": "#/components/schemas/Hash" - /// }, - /// "leafIndex": { - /// "$ref": "#/components/schemas/UnsignedInteger" - /// }, - /// "treeInfo": { - /// "$ref": "#/components/schemas/TreeInfo" - /// }, - /// "type": { - /// "type": "string", - /// "enum": [ - /// "token" - /// ] - /// } - /// } - /// } - /// ] - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(tag = "type")] - pub enum ColdContext { - #[serde(rename = "account")] - Account { - data: ColdData, - hash: Hash, - #[serde(rename = "leafIndex")] - leaf_index: UnsignedInteger, - #[serde(rename = "treeInfo")] - tree_info: TreeInfo, - }, - #[serde(rename = "token")] - Token { - data: ColdData, - hash: Hash, - #[serde(rename = "leafIndex")] - leaf_index: UnsignedInteger, - #[serde(rename = "treeInfo")] - tree_info: TreeInfo, - }, - } - ///`ColdData` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "data", - /// "discriminator" - /// ], - /// "properties": { - /// "data": { - /// "$ref": "#/components/schemas/Base64String" - /// }, - /// "discriminator": { - /// "type": "array", - /// "items": { - /// "type": "integer" - /// } - /// } - /// } - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct ColdData { - pub data: Base64String, - pub discriminator: ::std::vec::Vec, - } - impl ColdData { - pub fn builder() -> builder::ColdData { - Default::default() - } - } ///`CompressedProof` /// ///
JSON schema @@ -1871,226 +1690,6 @@ All endpoints return AccountV2.*/ Default::default() } } - ///Heterogeneous result type for batch lookups - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "Heterogeneous result type for batch lookups", - /// "oneOf": [ - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/AccountInterface" - /// }, - /// { - /// "type": "object", - /// "required": [ - /// "type" - /// ], - /// "properties": { - /// "type": { - /// "type": "string", - /// "enum": [ - /// "account" - /// ] - /// } - /// } - /// } - /// ] - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/TokenAccountInterface" - /// }, - /// { - /// "type": "object", - /// "required": [ - /// "type" - /// ], - /// "properties": { - /// "type": { - /// "type": "string", - /// "enum": [ - /// "token" - /// ] - /// } - /// } - /// } - /// ] - /// } - /// ] - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(untagged)] - pub enum InterfaceResult { - Variant0 { - account: SolanaAccountData, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - cold: ::std::option::Option, - key: SerializablePubkey, - #[serde(rename = "type")] - type_: InterfaceResultVariant0Type, - }, - Variant1 { - account: SolanaAccountData, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - cold: ::std::option::Option, - key: SerializablePubkey, - #[serde(rename = "tokenData")] - token_data: TokenData, - #[serde(rename = "type")] - type_: InterfaceResultVariant1Type, - }, - } - ///`InterfaceResultVariant0Type` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "string", - /// "enum": [ - /// "account" - /// ] - ///} - /// ``` - ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum InterfaceResultVariant0Type { - #[serde(rename = "account")] - Account, - } - impl ::std::fmt::Display for InterfaceResultVariant0Type { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::Account => f.write_str("account"), - } - } - } - impl ::std::str::FromStr for InterfaceResultVariant0Type { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "account" => Ok(Self::Account), - _ => Err("invalid value".into()), - } - } - } - impl ::std::convert::TryFrom<&str> for InterfaceResultVariant0Type { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<&::std::string::String> - for InterfaceResultVariant0Type { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<::std::string::String> for InterfaceResultVariant0Type { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - ///`InterfaceResultVariant1Type` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "string", - /// "enum": [ - /// "token" - /// ] - ///} - /// ``` - ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum InterfaceResultVariant1Type { - #[serde(rename = "token")] - Token, - } - impl ::std::fmt::Display for InterfaceResultVariant1Type { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::Token => f.write_str("token"), - } - } - } - impl ::std::str::FromStr for InterfaceResultVariant1Type { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "token" => Ok(Self::Token), - _ => Err("invalid value".into()), - } - } - } - impl ::std::convert::TryFrom<&str> for InterfaceResultVariant1Type { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<&::std::string::String> - for InterfaceResultVariant1Type { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<::std::string::String> for InterfaceResultVariant1Type { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } ///`Limit` /// ///
JSON schema @@ -3259,7 +2858,7 @@ All endpoints return AccountV2.*/ Default::default() } } - ///`PostGetAccountInterfacesBody` + ///`PostGetCompressedAccountBalanceBody` /// ///
JSON schema /// @@ -3291,22 +2890,50 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getAccountInterfaces" + /// "getCompressedAccountBalance" /// ] /// }, /// "params": { - /// "description": "Request for getAccountInterfaces (batch)", - /// "type": "object", - /// "required": [ - /// "addresses" + /// "description": "Request for compressed account data", + /// "default": { + /// "address": null, + /// "hash": "11111111111111111111111111111111" + /// }, + /// "examples": [ + /// { + /// "address": null, + /// "hash": "11111111111111111111111111111111" + /// } /// ], + /// "type": "object", /// "properties": { - /// "addresses": { - /// "description": "List of account addresses to look up (max 100)", - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// } + /// "address": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/SerializablePubkey" + /// } + /// ] + /// } + /// ] + /// }, + /// "hash": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/Hash" + /// } + /// ] + /// } + /// ] /// } /// }, /// "additionalProperties": false @@ -3316,17 +2943,17 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetAccountInterfacesBody { + pub struct PostGetCompressedAccountBalanceBody { ///An ID to identify the request. - pub id: PostGetAccountInterfacesBodyId, + pub id: PostGetCompressedAccountBalanceBodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetAccountInterfacesBodyJsonrpc, + pub jsonrpc: PostGetCompressedAccountBalanceBodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetAccountInterfacesBodyMethod, - pub params: PostGetAccountInterfacesBodyParams, + pub method: PostGetCompressedAccountBalanceBodyMethod, + pub params: PostGetCompressedAccountBalanceBodyParams, } - impl PostGetAccountInterfacesBody { - pub fn builder() -> builder::PostGetAccountInterfacesBody { + impl PostGetCompressedAccountBalanceBody { + pub fn builder() -> builder::PostGetCompressedAccountBalanceBody { Default::default() } } @@ -3356,18 +2983,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetAccountInterfacesBodyId { + pub enum PostGetCompressedAccountBalanceBodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetAccountInterfacesBodyId { + impl ::std::fmt::Display for PostGetCompressedAccountBalanceBodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetAccountInterfacesBodyId { + impl ::std::str::FromStr for PostGetCompressedAccountBalanceBodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -3378,7 +3005,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetAccountInterfacesBodyId { + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountBalanceBodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -3387,7 +3014,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetAccountInterfacesBodyId { + for PostGetCompressedAccountBalanceBodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3396,7 +3023,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetAccountInterfacesBodyId { + for PostGetCompressedAccountBalanceBodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3430,18 +3057,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetAccountInterfacesBodyJsonrpc { + pub enum PostGetCompressedAccountBalanceBodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetAccountInterfacesBodyJsonrpc { + impl ::std::fmt::Display for PostGetCompressedAccountBalanceBodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetAccountInterfacesBodyJsonrpc { + impl ::std::str::FromStr for PostGetCompressedAccountBalanceBodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -3452,7 +3079,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetAccountInterfacesBodyJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountBalanceBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -3461,7 +3088,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetAccountInterfacesBodyJsonrpc { + for PostGetCompressedAccountBalanceBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3470,7 +3097,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetAccountInterfacesBodyJsonrpc { + for PostGetCompressedAccountBalanceBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3487,7 +3114,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getAccountInterfaces" + /// "getCompressedAccountBalance" /// ] ///} /// ``` @@ -3504,29 +3131,31 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetAccountInterfacesBodyMethod { - #[serde(rename = "getAccountInterfaces")] - GetAccountInterfaces, + pub enum PostGetCompressedAccountBalanceBodyMethod { + #[serde(rename = "getCompressedAccountBalance")] + GetCompressedAccountBalance, } - impl ::std::fmt::Display for PostGetAccountInterfacesBodyMethod { + impl ::std::fmt::Display for PostGetCompressedAccountBalanceBodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetAccountInterfaces => f.write_str("getAccountInterfaces"), + Self::GetCompressedAccountBalance => { + f.write_str("getCompressedAccountBalance") + } } } } - impl ::std::str::FromStr for PostGetAccountInterfacesBodyMethod { + impl ::std::str::FromStr for PostGetCompressedAccountBalanceBodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getAccountInterfaces" => Ok(Self::GetAccountInterfaces), + "getCompressedAccountBalance" => Ok(Self::GetCompressedAccountBalance), _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> for PostGetAccountInterfacesBodyMethod { + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountBalanceBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -3535,7 +3164,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetAccountInterfacesBodyMethod { + for PostGetCompressedAccountBalanceBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3544,7 +3173,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetAccountInterfacesBodyMethod { + for PostGetCompressedAccountBalanceBodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3552,24 +3181,52 @@ All endpoints return AccountV2.*/ value.parse() } } - ///Request for getAccountInterfaces (batch) + ///Request for compressed account data /// ///
JSON schema /// /// ```json ///{ - /// "description": "Request for getAccountInterfaces (batch)", - /// "type": "object", - /// "required": [ - /// "addresses" + /// "description": "Request for compressed account data", + /// "default": { + /// "address": null, + /// "hash": "11111111111111111111111111111111" + /// }, + /// "examples": [ + /// { + /// "address": null, + /// "hash": "11111111111111111111111111111111" + /// } /// ], + /// "type": "object", /// "properties": { - /// "addresses": { - /// "description": "List of account addresses to look up (max 100)", - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// } + /// "address": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/SerializablePubkey" + /// } + /// ] + /// } + /// ] + /// }, + /// "hash": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/Hash" + /// } + /// ] + /// } + /// ] /// } /// }, /// "additionalProperties": false @@ -3578,16 +3235,28 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetAccountInterfacesBodyParams { - ///List of account addresses to look up (max 100) - pub addresses: ::std::vec::Vec, + pub struct PostGetCompressedAccountBalanceBodyParams { + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub address: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub hash: ::std::option::Option, } - impl PostGetAccountInterfacesBodyParams { - pub fn builder() -> builder::PostGetAccountInterfacesBodyParams { + impl ::std::default::Default for PostGetCompressedAccountBalanceBodyParams { + fn default() -> Self { + PostGetCompressedAccountBalanceBodyParams { + address: ::std::option::Option::None, + hash: ::std::option::Option::Some( + Hash("11111111111111111111111111111111".to_string()), + ), + } + } + } + impl PostGetCompressedAccountBalanceBodyParams { + pub fn builder() -> builder::PostGetCompressedAccountBalanceBodyParams { Default::default() } } - ///`PostGetAccountInterfacesResponse` + ///`PostGetCompressedAccountBalanceResponse` /// ///
JSON schema /// @@ -3625,7 +3294,6 @@ All endpoints return AccountV2.*/ /// ] /// }, /// "result": { - /// "description": "Response for getAccountInterfaces (batch)", /// "type": "object", /// "required": [ /// "context", @@ -3636,45 +3304,32 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "type": "array", - /// "items": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/AccountInterface" - /// } - /// ] - /// } - /// ] - /// } + /// "$ref": "#/components/schemas/UnsignedInteger" /// } - /// } + /// }, + /// "additionalProperties": false /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetAccountInterfacesResponse { + pub struct PostGetCompressedAccountBalanceResponse { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option, + pub error: ::std::option::Option, ///An ID to identify the response. - pub id: PostGetAccountInterfacesResponseId, + pub id: PostGetCompressedAccountBalanceResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetAccountInterfacesResponseJsonrpc, + pub jsonrpc: PostGetCompressedAccountBalanceResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub result: ::std::option::Option, + pub result: ::std::option::Option, } - impl PostGetAccountInterfacesResponse { - pub fn builder() -> builder::PostGetAccountInterfacesResponse { + impl PostGetCompressedAccountBalanceResponse { + pub fn builder() -> builder::PostGetCompressedAccountBalanceResponse { Default::default() } } - ///`PostGetAccountInterfacesResponseError` + ///`PostGetCompressedAccountBalanceResponseError` /// ///
JSON schema /// @@ -3693,13 +3348,13 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetAccountInterfacesResponseError { + pub struct PostGetCompressedAccountBalanceResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default for PostGetAccountInterfacesResponseError { + impl ::std::default::Default for PostGetCompressedAccountBalanceResponseError { fn default() -> Self { Self { code: Default::default(), @@ -3707,8 +3362,8 @@ All endpoints return AccountV2.*/ } } } - impl PostGetAccountInterfacesResponseError { - pub fn builder() -> builder::PostGetAccountInterfacesResponseError { + impl PostGetCompressedAccountBalanceResponseError { + pub fn builder() -> builder::PostGetCompressedAccountBalanceResponseError { Default::default() } } @@ -3738,18 +3393,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetAccountInterfacesResponseId { + pub enum PostGetCompressedAccountBalanceResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetAccountInterfacesResponseId { + impl ::std::fmt::Display for PostGetCompressedAccountBalanceResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetAccountInterfacesResponseId { + impl ::std::str::FromStr for PostGetCompressedAccountBalanceResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -3760,7 +3415,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetAccountInterfacesResponseId { + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountBalanceResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -3769,7 +3424,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetAccountInterfacesResponseId { + for PostGetCompressedAccountBalanceResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3778,7 +3433,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetAccountInterfacesResponseId { + for PostGetCompressedAccountBalanceResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3812,18 +3467,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetAccountInterfacesResponseJsonrpc { + pub enum PostGetCompressedAccountBalanceResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetAccountInterfacesResponseJsonrpc { + impl ::std::fmt::Display for PostGetCompressedAccountBalanceResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetAccountInterfacesResponseJsonrpc { + impl ::std::str::FromStr for PostGetCompressedAccountBalanceResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -3834,7 +3489,8 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetAccountInterfacesResponseJsonrpc { + impl ::std::convert::TryFrom<&str> + for PostGetCompressedAccountBalanceResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -3843,7 +3499,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetAccountInterfacesResponseJsonrpc { + for PostGetCompressedAccountBalanceResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3852,7 +3508,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetAccountInterfacesResponseJsonrpc { + for PostGetCompressedAccountBalanceResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3860,13 +3516,12 @@ All endpoints return AccountV2.*/ value.parse() } } - ///Response for getAccountInterfaces (batch) + ///`PostGetCompressedAccountBalanceResponseResult` /// ///
JSON schema /// /// ```json ///{ - /// "description": "Response for getAccountInterfaces (batch)", /// "type": "object", /// "required": [ /// "context", @@ -3877,37 +3532,25 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "type": "array", - /// "items": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/AccountInterface" - /// } - /// ] - /// } - /// ] - /// } + /// "$ref": "#/components/schemas/UnsignedInteger" /// } - /// } + /// }, + /// "additionalProperties": false ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetAccountInterfacesResponseResult { + #[serde(deny_unknown_fields)] + pub struct PostGetCompressedAccountBalanceResponseResult { pub context: Context, - pub value: ::std::vec::Vec<::std::option::Option>, + pub value: UnsignedInteger, } - impl PostGetAccountInterfacesResponseResult { - pub fn builder() -> builder::PostGetAccountInterfacesResponseResult { + impl PostGetCompressedAccountBalanceResponseResult { + pub fn builder() -> builder::PostGetCompressedAccountBalanceResponseResult { Default::default() } } - ///`PostGetAtaInterfaceBody` + ///`PostGetCompressedAccountBody` /// ///
JSON schema /// @@ -3939,22 +3582,50 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getAtaInterface" + /// "getCompressedAccount" /// ] /// }, /// "params": { - /// "description": "Request for getAtaInterface", - /// "type": "object", - /// "required": [ - /// "mint", - /// "owner" + /// "description": "Request for compressed account data", + /// "default": { + /// "address": null, + /// "hash": "11111111111111111111111111111111" + /// }, + /// "examples": [ + /// { + /// "address": null, + /// "hash": "11111111111111111111111111111111" + /// } /// ], + /// "type": "object", /// "properties": { - /// "mint": { - /// "$ref": "#/components/schemas/SerializablePubkey" + /// "address": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/SerializablePubkey" + /// } + /// ] + /// } + /// ] /// }, - /// "owner": { - /// "$ref": "#/components/schemas/SerializablePubkey" + /// "hash": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/Hash" + /// } + /// ] + /// } + /// ] /// } /// }, /// "additionalProperties": false @@ -3964,17 +3635,17 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetAtaInterfaceBody { + pub struct PostGetCompressedAccountBody { ///An ID to identify the request. - pub id: PostGetAtaInterfaceBodyId, + pub id: PostGetCompressedAccountBodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetAtaInterfaceBodyJsonrpc, + pub jsonrpc: PostGetCompressedAccountBodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetAtaInterfaceBodyMethod, - pub params: PostGetAtaInterfaceBodyParams, + pub method: PostGetCompressedAccountBodyMethod, + pub params: PostGetCompressedAccountBodyParams, } - impl PostGetAtaInterfaceBody { - pub fn builder() -> builder::PostGetAtaInterfaceBody { + impl PostGetCompressedAccountBody { + pub fn builder() -> builder::PostGetCompressedAccountBody { Default::default() } } @@ -4004,18 +3675,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetAtaInterfaceBodyId { + pub enum PostGetCompressedAccountBodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetAtaInterfaceBodyId { + impl ::std::fmt::Display for PostGetCompressedAccountBodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetAtaInterfaceBodyId { + impl ::std::str::FromStr for PostGetCompressedAccountBodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -4026,7 +3697,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetAtaInterfaceBodyId { + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountBodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -4034,7 +3705,8 @@ All endpoints return AccountV2.*/ value.parse() } } - impl ::std::convert::TryFrom<&::std::string::String> for PostGetAtaInterfaceBodyId { + impl ::std::convert::TryFrom<&::std::string::String> + for PostGetCompressedAccountBodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -4042,7 +3714,8 @@ All endpoints return AccountV2.*/ value.parse() } } - impl ::std::convert::TryFrom<::std::string::String> for PostGetAtaInterfaceBodyId { + impl ::std::convert::TryFrom<::std::string::String> + for PostGetCompressedAccountBodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -4076,18 +3749,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetAtaInterfaceBodyJsonrpc { + pub enum PostGetCompressedAccountBodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetAtaInterfaceBodyJsonrpc { + impl ::std::fmt::Display for PostGetCompressedAccountBodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetAtaInterfaceBodyJsonrpc { + impl ::std::str::FromStr for PostGetCompressedAccountBodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -4098,7 +3771,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetAtaInterfaceBodyJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -4107,7 +3780,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetAtaInterfaceBodyJsonrpc { + for PostGetCompressedAccountBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -4116,7 +3789,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetAtaInterfaceBodyJsonrpc { + for PostGetCompressedAccountBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -4133,7 +3806,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getAtaInterface" + /// "getCompressedAccount" /// ] ///} /// ``` @@ -4150,29 +3823,29 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetAtaInterfaceBodyMethod { - #[serde(rename = "getAtaInterface")] - GetAtaInterface, + pub enum PostGetCompressedAccountBodyMethod { + #[serde(rename = "getCompressedAccount")] + GetCompressedAccount, } - impl ::std::fmt::Display for PostGetAtaInterfaceBodyMethod { + impl ::std::fmt::Display for PostGetCompressedAccountBodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetAtaInterface => f.write_str("getAtaInterface"), + Self::GetCompressedAccount => f.write_str("getCompressedAccount"), } } } - impl ::std::str::FromStr for PostGetAtaInterfaceBodyMethod { + impl ::std::str::FromStr for PostGetCompressedAccountBodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getAtaInterface" => Ok(Self::GetAtaInterface), + "getCompressedAccount" => Ok(Self::GetCompressedAccount), _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> for PostGetAtaInterfaceBodyMethod { + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -4181,7 +3854,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetAtaInterfaceBodyMethod { + for PostGetCompressedAccountBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -4190,7 +3863,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetAtaInterfaceBodyMethod { + for PostGetCompressedAccountBodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -4198,24 +3871,52 @@ All endpoints return AccountV2.*/ value.parse() } } - ///Request for getAtaInterface + ///Request for compressed account data /// ///
JSON schema /// /// ```json ///{ - /// "description": "Request for getAtaInterface", - /// "type": "object", - /// "required": [ - /// "mint", - /// "owner" + /// "description": "Request for compressed account data", + /// "default": { + /// "address": null, + /// "hash": "11111111111111111111111111111111" + /// }, + /// "examples": [ + /// { + /// "address": null, + /// "hash": "11111111111111111111111111111111" + /// } /// ], + /// "type": "object", /// "properties": { - /// "mint": { - /// "$ref": "#/components/schemas/SerializablePubkey" + /// "address": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/SerializablePubkey" + /// } + /// ] + /// } + /// ] /// }, - /// "owner": { - /// "$ref": "#/components/schemas/SerializablePubkey" + /// "hash": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/Hash" + /// } + /// ] + /// } + /// ] /// } /// }, /// "additionalProperties": false @@ -4224,16 +3925,28 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetAtaInterfaceBodyParams { - pub mint: SerializablePubkey, - pub owner: SerializablePubkey, + pub struct PostGetCompressedAccountBodyParams { + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub address: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub hash: ::std::option::Option, + } + impl ::std::default::Default for PostGetCompressedAccountBodyParams { + fn default() -> Self { + PostGetCompressedAccountBodyParams { + address: ::std::option::Option::None, + hash: ::std::option::Option::Some( + Hash("11111111111111111111111111111111".to_string()), + ), + } + } } - impl PostGetAtaInterfaceBodyParams { - pub fn builder() -> builder::PostGetAtaInterfaceBodyParams { + impl PostGetCompressedAccountBodyParams { + pub fn builder() -> builder::PostGetCompressedAccountBodyParams { Default::default() } } - ///`PostGetAtaInterfaceResponse` + ///`PostGetCompressedAccountProofBody` /// ///
JSON schema /// @@ -4242,22 +3955,13 @@ All endpoints return AccountV2.*/ /// "type": "object", /// "required": [ /// "id", - /// "jsonrpc" + /// "jsonrpc", + /// "method", + /// "params" /// ], /// "properties": { - /// "error": { - /// "type": "object", - /// "properties": { - /// "code": { - /// "type": "integer" - /// }, - /// "message": { - /// "type": "string" - /// } - /// } - /// }, /// "id": { - /// "description": "An ID to identify the response.", + /// "description": "An ID to identify the request.", /// "type": "string", /// "enum": [ /// "test-account" @@ -4270,18 +3974,21 @@ All endpoints return AccountV2.*/ /// "2.0" /// ] /// }, - /// "result": { - /// "description": "Response for getAtaInterface", + /// "method": { + /// "description": "The name of the method to invoke.", + /// "type": "string", + /// "enum": [ + /// "getCompressedAccountProof" + /// ] + /// }, + /// "params": { /// "type": "object", /// "required": [ - /// "context" + /// "hash" /// ], /// "properties": { - /// "context": { - /// "$ref": "#/components/schemas/Context" - /// }, - /// "value": { - /// "$ref": "#/components/schemas/TokenAccountInterface" + /// "hash": { + /// "$ref": "#/components/schemas/Hash" /// } /// } /// } @@ -4290,69 +3997,104 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetAtaInterfaceResponse { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option, - ///An ID to identify the response. - pub id: PostGetAtaInterfaceResponseId, + pub struct PostGetCompressedAccountProofBody { + ///An ID to identify the request. + pub id: PostGetCompressedAccountProofBodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetAtaInterfaceResponseJsonrpc, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub result: ::std::option::Option, + pub jsonrpc: PostGetCompressedAccountProofBodyJsonrpc, + ///The name of the method to invoke. + pub method: PostGetCompressedAccountProofBodyMethod, + pub params: PostGetCompressedAccountProofBodyParams, } - impl PostGetAtaInterfaceResponse { - pub fn builder() -> builder::PostGetAtaInterfaceResponse { + impl PostGetCompressedAccountProofBody { + pub fn builder() -> builder::PostGetCompressedAccountProofBody { Default::default() } } - ///`PostGetAtaInterfaceResponseError` + ///An ID to identify the request. /// ///
JSON schema /// /// ```json ///{ - /// "type": "object", - /// "properties": { - /// "code": { - /// "type": "integer" - /// }, - /// "message": { - /// "type": "string" - /// } - /// } + /// "description": "An ID to identify the request.", + /// "type": "string", + /// "enum": [ + /// "test-account" + /// ] ///} /// ``` ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetAtaInterfaceResponseError { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub code: ::std::option::Option, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub message: ::std::option::Option<::std::string::String>, + #[derive( + ::serde::Deserialize, + ::serde::Serialize, + Clone, + Copy, + Debug, + Eq, + Hash, + Ord, + PartialEq, + PartialOrd + )] + pub enum PostGetCompressedAccountProofBodyId { + #[serde(rename = "test-account")] + TestAccount, } - impl ::std::default::Default for PostGetAtaInterfaceResponseError { - fn default() -> Self { - Self { - code: Default::default(), - message: Default::default(), + impl ::std::fmt::Display for PostGetCompressedAccountProofBodyId { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + match *self { + Self::TestAccount => f.write_str("test-account"), } } } - impl PostGetAtaInterfaceResponseError { - pub fn builder() -> builder::PostGetAtaInterfaceResponseError { - Default::default() + impl ::std::str::FromStr for PostGetCompressedAccountProofBodyId { + type Err = self::error::ConversionError; + fn from_str( + value: &str, + ) -> ::std::result::Result { + match value { + "test-account" => Ok(Self::TestAccount), + _ => Err("invalid value".into()), + } } } - ///An ID to identify the response. + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountProofBodyId { + type Error = self::error::ConversionError; + fn try_from( + value: &str, + ) -> ::std::result::Result { + value.parse() + } + } + impl ::std::convert::TryFrom<&::std::string::String> + for PostGetCompressedAccountProofBodyId { + type Error = self::error::ConversionError; + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { + value.parse() + } + } + impl ::std::convert::TryFrom<::std::string::String> + for PostGetCompressedAccountProofBodyId { + type Error = self::error::ConversionError; + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { + value.parse() + } + } + ///The version of the JSON-RPC protocol. /// ///
JSON schema /// /// ```json ///{ - /// "description": "An ID to identify the response.", + /// "description": "The version of the JSON-RPC protocol.", /// "type": "string", /// "enum": [ - /// "test-account" + /// "2.0" /// ] ///} /// ``` @@ -4369,29 +4111,29 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetAtaInterfaceResponseId { - #[serde(rename = "test-account")] - TestAccount, + pub enum PostGetCompressedAccountProofBodyJsonrpc { + #[serde(rename = "2.0")] + X20, } - impl ::std::fmt::Display for PostGetAtaInterfaceResponseId { + impl ::std::fmt::Display for PostGetCompressedAccountProofBodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::TestAccount => f.write_str("test-account"), + Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetAtaInterfaceResponseId { + impl ::std::str::FromStr for PostGetCompressedAccountProofBodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "test-account" => Ok(Self::TestAccount), + "2.0" => Ok(Self::X20), _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> for PostGetAtaInterfaceResponseId { + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountProofBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -4400,7 +4142,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetAtaInterfaceResponseId { + for PostGetCompressedAccountProofBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -4409,7 +4151,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetAtaInterfaceResponseId { + for PostGetCompressedAccountProofBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -4417,16 +4159,16 @@ All endpoints return AccountV2.*/ value.parse() } } - ///The version of the JSON-RPC protocol. + ///The name of the method to invoke. /// ///
JSON schema /// /// ```json ///{ - /// "description": "The version of the JSON-RPC protocol.", + /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "2.0" + /// "getCompressedAccountProof" /// ] ///} /// ``` @@ -4443,29 +4185,31 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetAtaInterfaceResponseJsonrpc { - #[serde(rename = "2.0")] - X20, + pub enum PostGetCompressedAccountProofBodyMethod { + #[serde(rename = "getCompressedAccountProof")] + GetCompressedAccountProof, } - impl ::std::fmt::Display for PostGetAtaInterfaceResponseJsonrpc { + impl ::std::fmt::Display for PostGetCompressedAccountProofBodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::X20 => f.write_str("2.0"), + Self::GetCompressedAccountProof => { + f.write_str("getCompressedAccountProof") + } } } } - impl ::std::str::FromStr for PostGetAtaInterfaceResponseJsonrpc { + impl ::std::str::FromStr for PostGetCompressedAccountProofBodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "2.0" => Ok(Self::X20), + "getCompressedAccountProof" => Ok(Self::GetCompressedAccountProof), _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> for PostGetAtaInterfaceResponseJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountProofBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -4474,7 +4218,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetAtaInterfaceResponseJsonrpc { + for PostGetCompressedAccountProofBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -4483,7 +4227,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetAtaInterfaceResponseJsonrpc { + for PostGetCompressedAccountProofBodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -4491,40 +4235,34 @@ All endpoints return AccountV2.*/ value.parse() } } - ///Response for getAtaInterface + ///`PostGetCompressedAccountProofBodyParams` /// ///
JSON schema /// /// ```json ///{ - /// "description": "Response for getAtaInterface", /// "type": "object", /// "required": [ - /// "context" + /// "hash" /// ], /// "properties": { - /// "context": { - /// "$ref": "#/components/schemas/Context" - /// }, - /// "value": { - /// "$ref": "#/components/schemas/TokenAccountInterface" + /// "hash": { + /// "$ref": "#/components/schemas/Hash" /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetAtaInterfaceResponseResult { - pub context: Context, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub value: ::std::option::Option, + pub struct PostGetCompressedAccountProofBodyParams { + pub hash: Hash, } - impl PostGetAtaInterfaceResponseResult { - pub fn builder() -> builder::PostGetAtaInterfaceResponseResult { + impl PostGetCompressedAccountProofBodyParams { + pub fn builder() -> builder::PostGetCompressedAccountProofBodyParams { Default::default() } } - ///`PostGetCompressedAccountBalanceBody` + ///`PostGetCompressedAccountProofResponse` /// ///
JSON schema /// @@ -4533,13 +4271,22 @@ All endpoints return AccountV2.*/ /// "type": "object", /// "required": [ /// "id", - /// "jsonrpc", - /// "method", - /// "params" + /// "jsonrpc" /// ], /// "properties": { + /// "error": { + /// "type": "object", + /// "properties": { + /// "code": { + /// "type": "integer" + /// }, + /// "message": { + /// "type": "string" + /// } + /// } + /// }, /// "id": { - /// "description": "An ID to identify the request.", + /// "description": "An ID to identify the response.", /// "type": "string", /// "enum": [ /// "test-account" @@ -4552,54 +4299,18 @@ All endpoints return AccountV2.*/ /// "2.0" /// ] /// }, - /// "method": { - /// "description": "The name of the method to invoke.", - /// "type": "string", - /// "enum": [ - /// "getCompressedAccountBalance" - /// ] - /// }, - /// "params": { - /// "description": "Request for compressed account data", - /// "default": { - /// "address": null, - /// "hash": "11111111111111111111111111111111" - /// }, - /// "examples": [ - /// { - /// "address": null, - /// "hash": "11111111111111111111111111111111" - /// } - /// ], + /// "result": { /// "type": "object", + /// "required": [ + /// "context", + /// "value" + /// ], /// "properties": { - /// "address": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// } - /// ] - /// } - /// ] + /// "context": { + /// "$ref": "#/components/schemas/Context" /// }, - /// "hash": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/Hash" - /// } - /// ] - /// } - /// ] + /// "value": { + /// "$ref": "#/components/schemas/GetCompressedAccountProofResponseValue" /// } /// }, /// "additionalProperties": false @@ -4609,27 +4320,66 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedAccountBalanceBody { - ///An ID to identify the request. - pub id: PostGetCompressedAccountBalanceBodyId, + pub struct PostGetCompressedAccountProofResponse { + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub error: ::std::option::Option, + ///An ID to identify the response. + pub id: PostGetCompressedAccountProofResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedAccountBalanceBodyJsonrpc, - ///The name of the method to invoke. - pub method: PostGetCompressedAccountBalanceBodyMethod, - pub params: PostGetCompressedAccountBalanceBodyParams, + pub jsonrpc: PostGetCompressedAccountProofResponseJsonrpc, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub result: ::std::option::Option, } - impl PostGetCompressedAccountBalanceBody { - pub fn builder() -> builder::PostGetCompressedAccountBalanceBody { + impl PostGetCompressedAccountProofResponse { + pub fn builder() -> builder::PostGetCompressedAccountProofResponse { Default::default() } } - ///An ID to identify the request. + ///`PostGetCompressedAccountProofResponseError` /// ///
JSON schema /// /// ```json ///{ - /// "description": "An ID to identify the request.", + /// "type": "object", + /// "properties": { + /// "code": { + /// "type": "integer" + /// }, + /// "message": { + /// "type": "string" + /// } + /// } + ///} + /// ``` + ///
+ #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + pub struct PostGetCompressedAccountProofResponseError { + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub code: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub message: ::std::option::Option<::std::string::String>, + } + impl ::std::default::Default for PostGetCompressedAccountProofResponseError { + fn default() -> Self { + Self { + code: Default::default(), + message: Default::default(), + } + } + } + impl PostGetCompressedAccountProofResponseError { + pub fn builder() -> builder::PostGetCompressedAccountProofResponseError { + Default::default() + } + } + ///An ID to identify the response. + /// + ///
JSON schema + /// + /// ```json + ///{ + /// "description": "An ID to identify the response.", /// "type": "string", /// "enum": [ /// "test-account" @@ -4649,18 +4399,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountBalanceBodyId { + pub enum PostGetCompressedAccountProofResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedAccountBalanceBodyId { + impl ::std::fmt::Display for PostGetCompressedAccountProofResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountBalanceBodyId { + impl ::std::str::FromStr for PostGetCompressedAccountProofResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -4671,7 +4421,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountBalanceBodyId { + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountProofResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -4680,7 +4430,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountBalanceBodyId { + for PostGetCompressedAccountProofResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -4689,7 +4439,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountBalanceBodyId { + for PostGetCompressedAccountProofResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -4723,18 +4473,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountBalanceBodyJsonrpc { + pub enum PostGetCompressedAccountProofResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedAccountBalanceBodyJsonrpc { + impl ::std::fmt::Display for PostGetCompressedAccountProofResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountBalanceBodyJsonrpc { + impl ::std::str::FromStr for PostGetCompressedAccountProofResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -4745,7 +4495,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountBalanceBodyJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountProofResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -4754,7 +4504,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountBalanceBodyJsonrpc { + for PostGetCompressedAccountProofResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -4763,7 +4513,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountBalanceBodyJsonrpc { + for PostGetCompressedAccountProofResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -4771,158 +4521,41 @@ All endpoints return AccountV2.*/ value.parse() } } - ///The name of the method to invoke. + ///`PostGetCompressedAccountProofResponseResult` /// ///
JSON schema /// /// ```json ///{ - /// "description": "The name of the method to invoke.", - /// "type": "string", - /// "enum": [ - /// "getCompressedAccountBalance" - /// ] + /// "type": "object", + /// "required": [ + /// "context", + /// "value" + /// ], + /// "properties": { + /// "context": { + /// "$ref": "#/components/schemas/Context" + /// }, + /// "value": { + /// "$ref": "#/components/schemas/GetCompressedAccountProofResponseValue" + /// } + /// }, + /// "additionalProperties": false ///} /// ``` ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum PostGetCompressedAccountBalanceBodyMethod { - #[serde(rename = "getCompressedAccountBalance")] - GetCompressedAccountBalance, - } - impl ::std::fmt::Display for PostGetCompressedAccountBalanceBodyMethod { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::GetCompressedAccountBalance => { - f.write_str("getCompressedAccountBalance") - } - } - } - } - impl ::std::str::FromStr for PostGetCompressedAccountBalanceBodyMethod { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "getCompressedAccountBalance" => Ok(Self::GetCompressedAccountBalance), - _ => Err("invalid value".into()), - } - } - } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountBalanceBodyMethod { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() - } + #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + #[serde(deny_unknown_fields)] + pub struct PostGetCompressedAccountProofResponseResult { + pub context: Context, + pub value: GetCompressedAccountProofResponseValue, } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountBalanceBodyMethod { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() + impl PostGetCompressedAccountProofResponseResult { + pub fn builder() -> builder::PostGetCompressedAccountProofResponseResult { + Default::default() } } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountBalanceBodyMethod { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - ///Request for compressed account data - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "Request for compressed account data", - /// "default": { - /// "address": null, - /// "hash": "11111111111111111111111111111111" - /// }, - /// "examples": [ - /// { - /// "address": null, - /// "hash": "11111111111111111111111111111111" - /// } - /// ], - /// "type": "object", - /// "properties": { - /// "address": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// } - /// ] - /// } - /// ] - /// }, - /// "hash": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/Hash" - /// } - /// ] - /// } - /// ] - /// } - /// }, - /// "additionalProperties": false - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(deny_unknown_fields)] - pub struct PostGetCompressedAccountBalanceBodyParams { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub address: ::std::option::Option, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub hash: ::std::option::Option, - } - impl ::std::default::Default for PostGetCompressedAccountBalanceBodyParams { - fn default() -> Self { - PostGetCompressedAccountBalanceBodyParams { - address: ::std::option::Option::None, - hash: ::std::option::Option::Some( - Hash("11111111111111111111111111111111".to_string()), - ), - } - } - } - impl PostGetCompressedAccountBalanceBodyParams { - pub fn builder() -> builder::PostGetCompressedAccountBalanceBodyParams { - Default::default() - } - } - ///`PostGetCompressedAccountBalanceResponse` + ///`PostGetCompressedAccountProofV2Body` /// ///
JSON schema /// @@ -4931,22 +4564,13 @@ All endpoints return AccountV2.*/ /// "type": "object", /// "required": [ /// "id", - /// "jsonrpc" + /// "jsonrpc", + /// "method", + /// "params" /// ], /// "properties": { - /// "error": { - /// "type": "object", - /// "properties": { - /// "code": { - /// "type": "integer" - /// }, - /// "message": { - /// "type": "string" - /// } - /// } - /// }, /// "id": { - /// "description": "An ID to identify the response.", + /// "description": "An ID to identify the request.", /// "type": "string", /// "enum": [ /// "test-account" @@ -4959,90 +4583,127 @@ All endpoints return AccountV2.*/ /// "2.0" /// ] /// }, - /// "result": { + /// "method": { + /// "description": "The name of the method to invoke.", + /// "type": "string", + /// "enum": [ + /// "getCompressedAccountProofV2" + /// ] + /// }, + /// "params": { /// "type": "object", /// "required": [ - /// "context", - /// "value" + /// "hash" /// ], /// "properties": { - /// "context": { - /// "$ref": "#/components/schemas/Context" - /// }, - /// "value": { - /// "$ref": "#/components/schemas/UnsignedInteger" + /// "hash": { + /// "$ref": "#/components/schemas/Hash" /// } - /// }, - /// "additionalProperties": false + /// } /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedAccountBalanceResponse { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option, - ///An ID to identify the response. - pub id: PostGetCompressedAccountBalanceResponseId, + pub struct PostGetCompressedAccountProofV2Body { + ///An ID to identify the request. + pub id: PostGetCompressedAccountProofV2BodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedAccountBalanceResponseJsonrpc, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub result: ::std::option::Option, + pub jsonrpc: PostGetCompressedAccountProofV2BodyJsonrpc, + ///The name of the method to invoke. + pub method: PostGetCompressedAccountProofV2BodyMethod, + pub params: PostGetCompressedAccountProofV2BodyParams, } - impl PostGetCompressedAccountBalanceResponse { - pub fn builder() -> builder::PostGetCompressedAccountBalanceResponse { + impl PostGetCompressedAccountProofV2Body { + pub fn builder() -> builder::PostGetCompressedAccountProofV2Body { Default::default() } } - ///`PostGetCompressedAccountBalanceResponseError` + ///An ID to identify the request. /// ///
JSON schema /// /// ```json ///{ - /// "type": "object", - /// "properties": { - /// "code": { - /// "type": "integer" - /// }, - /// "message": { - /// "type": "string" - /// } - /// } + /// "description": "An ID to identify the request.", + /// "type": "string", + /// "enum": [ + /// "test-account" + /// ] ///} /// ``` ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedAccountBalanceResponseError { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub code: ::std::option::Option, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub message: ::std::option::Option<::std::string::String>, + #[derive( + ::serde::Deserialize, + ::serde::Serialize, + Clone, + Copy, + Debug, + Eq, + Hash, + Ord, + PartialEq, + PartialOrd + )] + pub enum PostGetCompressedAccountProofV2BodyId { + #[serde(rename = "test-account")] + TestAccount, } - impl ::std::default::Default for PostGetCompressedAccountBalanceResponseError { - fn default() -> Self { - Self { - code: Default::default(), - message: Default::default(), + impl ::std::fmt::Display for PostGetCompressedAccountProofV2BodyId { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + match *self { + Self::TestAccount => f.write_str("test-account"), } } } - impl PostGetCompressedAccountBalanceResponseError { - pub fn builder() -> builder::PostGetCompressedAccountBalanceResponseError { - Default::default() + impl ::std::str::FromStr for PostGetCompressedAccountProofV2BodyId { + type Err = self::error::ConversionError; + fn from_str( + value: &str, + ) -> ::std::result::Result { + match value { + "test-account" => Ok(Self::TestAccount), + _ => Err("invalid value".into()), + } } } - ///An ID to identify the response. + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountProofV2BodyId { + type Error = self::error::ConversionError; + fn try_from( + value: &str, + ) -> ::std::result::Result { + value.parse() + } + } + impl ::std::convert::TryFrom<&::std::string::String> + for PostGetCompressedAccountProofV2BodyId { + type Error = self::error::ConversionError; + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { + value.parse() + } + } + impl ::std::convert::TryFrom<::std::string::String> + for PostGetCompressedAccountProofV2BodyId { + type Error = self::error::ConversionError; + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { + value.parse() + } + } + ///The version of the JSON-RPC protocol. /// ///
JSON schema /// /// ```json ///{ - /// "description": "An ID to identify the response.", + /// "description": "The version of the JSON-RPC protocol.", /// "type": "string", /// "enum": [ - /// "test-account" + /// "2.0" /// ] ///} /// ``` @@ -5059,29 +4720,29 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountBalanceResponseId { - #[serde(rename = "test-account")] - TestAccount, + pub enum PostGetCompressedAccountProofV2BodyJsonrpc { + #[serde(rename = "2.0")] + X20, } - impl ::std::fmt::Display for PostGetCompressedAccountBalanceResponseId { + impl ::std::fmt::Display for PostGetCompressedAccountProofV2BodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::TestAccount => f.write_str("test-account"), + Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountBalanceResponseId { + impl ::std::str::FromStr for PostGetCompressedAccountProofV2BodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "test-account" => Ok(Self::TestAccount), + "2.0" => Ok(Self::X20), _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountBalanceResponseId { + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountProofV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -5090,7 +4751,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountBalanceResponseId { + for PostGetCompressedAccountProofV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -5099,7 +4760,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountBalanceResponseId { + for PostGetCompressedAccountProofV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -5107,16 +4768,16 @@ All endpoints return AccountV2.*/ value.parse() } } - ///The version of the JSON-RPC protocol. + ///The name of the method to invoke. /// ///
JSON schema /// /// ```json ///{ - /// "description": "The version of the JSON-RPC protocol.", + /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "2.0" + /// "getCompressedAccountProofV2" /// ] ///} /// ``` @@ -5133,30 +4794,31 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountBalanceResponseJsonrpc { - #[serde(rename = "2.0")] - X20, + pub enum PostGetCompressedAccountProofV2BodyMethod { + #[serde(rename = "getCompressedAccountProofV2")] + GetCompressedAccountProofV2, } - impl ::std::fmt::Display for PostGetCompressedAccountBalanceResponseJsonrpc { + impl ::std::fmt::Display for PostGetCompressedAccountProofV2BodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::X20 => f.write_str("2.0"), + Self::GetCompressedAccountProofV2 => { + f.write_str("getCompressedAccountProofV2") + } } } } - impl ::std::str::FromStr for PostGetCompressedAccountBalanceResponseJsonrpc { + impl ::std::str::FromStr for PostGetCompressedAccountProofV2BodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "2.0" => Ok(Self::X20), + "getCompressedAccountProofV2" => Ok(Self::GetCompressedAccountProofV2), _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> - for PostGetCompressedAccountBalanceResponseJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountProofV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -5165,7 +4827,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountBalanceResponseJsonrpc { + for PostGetCompressedAccountProofV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -5174,7 +4836,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountBalanceResponseJsonrpc { + for PostGetCompressedAccountProofV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -5182,7 +4844,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedAccountBalanceResponseResult` + ///`PostGetCompressedAccountProofV2BodyParams` /// ///
JSON schema /// @@ -5190,33 +4852,26 @@ All endpoints return AccountV2.*/ ///{ /// "type": "object", /// "required": [ - /// "context", - /// "value" + /// "hash" /// ], /// "properties": { - /// "context": { - /// "$ref": "#/components/schemas/Context" - /// }, - /// "value": { - /// "$ref": "#/components/schemas/UnsignedInteger" + /// "hash": { + /// "$ref": "#/components/schemas/Hash" /// } - /// }, - /// "additionalProperties": false + /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(deny_unknown_fields)] - pub struct PostGetCompressedAccountBalanceResponseResult { - pub context: Context, - pub value: UnsignedInteger, + pub struct PostGetCompressedAccountProofV2BodyParams { + pub hash: Hash, } - impl PostGetCompressedAccountBalanceResponseResult { - pub fn builder() -> builder::PostGetCompressedAccountBalanceResponseResult { + impl PostGetCompressedAccountProofV2BodyParams { + pub fn builder() -> builder::PostGetCompressedAccountProofV2BodyParams { Default::default() } } - ///`PostGetCompressedAccountBody` + ///`PostGetCompressedAccountProofV2Response` /// ///
JSON schema /// @@ -5225,13 +4880,22 @@ All endpoints return AccountV2.*/ /// "type": "object", /// "required": [ /// "id", - /// "jsonrpc", - /// "method", - /// "params" + /// "jsonrpc" /// ], /// "properties": { + /// "error": { + /// "type": "object", + /// "properties": { + /// "code": { + /// "type": "integer" + /// }, + /// "message": { + /// "type": "string" + /// } + /// } + /// }, /// "id": { - /// "description": "An ID to identify the request.", + /// "description": "An ID to identify the response.", /// "type": "string", /// "enum": [ /// "test-account" @@ -5244,54 +4908,18 @@ All endpoints return AccountV2.*/ /// "2.0" /// ] /// }, - /// "method": { - /// "description": "The name of the method to invoke.", - /// "type": "string", - /// "enum": [ - /// "getCompressedAccount" - /// ] - /// }, - /// "params": { - /// "description": "Request for compressed account data", - /// "default": { - /// "address": null, - /// "hash": "11111111111111111111111111111111" - /// }, - /// "examples": [ - /// { - /// "address": null, - /// "hash": "11111111111111111111111111111111" - /// } - /// ], + /// "result": { /// "type": "object", + /// "required": [ + /// "context", + /// "value" + /// ], /// "properties": { - /// "address": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// } - /// ] - /// } - /// ] + /// "context": { + /// "$ref": "#/components/schemas/Context" /// }, - /// "hash": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/Hash" - /// } - /// ] - /// } - /// ] + /// "value": { + /// "$ref": "#/components/schemas/GetCompressedAccountProofResponseValueV2" /// } /// }, /// "additionalProperties": false @@ -5301,27 +4929,66 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedAccountBody { - ///An ID to identify the request. - pub id: PostGetCompressedAccountBodyId, + pub struct PostGetCompressedAccountProofV2Response { + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub error: ::std::option::Option, + ///An ID to identify the response. + pub id: PostGetCompressedAccountProofV2ResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedAccountBodyJsonrpc, - ///The name of the method to invoke. - pub method: PostGetCompressedAccountBodyMethod, - pub params: PostGetCompressedAccountBodyParams, + pub jsonrpc: PostGetCompressedAccountProofV2ResponseJsonrpc, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub result: ::std::option::Option, } - impl PostGetCompressedAccountBody { - pub fn builder() -> builder::PostGetCompressedAccountBody { + impl PostGetCompressedAccountProofV2Response { + pub fn builder() -> builder::PostGetCompressedAccountProofV2Response { Default::default() } } - ///An ID to identify the request. + ///`PostGetCompressedAccountProofV2ResponseError` /// ///
JSON schema /// /// ```json ///{ - /// "description": "An ID to identify the request.", + /// "type": "object", + /// "properties": { + /// "code": { + /// "type": "integer" + /// }, + /// "message": { + /// "type": "string" + /// } + /// } + ///} + /// ``` + ///
+ #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + pub struct PostGetCompressedAccountProofV2ResponseError { + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub code: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub message: ::std::option::Option<::std::string::String>, + } + impl ::std::default::Default for PostGetCompressedAccountProofV2ResponseError { + fn default() -> Self { + Self { + code: Default::default(), + message: Default::default(), + } + } + } + impl PostGetCompressedAccountProofV2ResponseError { + pub fn builder() -> builder::PostGetCompressedAccountProofV2ResponseError { + Default::default() + } + } + ///An ID to identify the response. + /// + ///
JSON schema + /// + /// ```json + ///{ + /// "description": "An ID to identify the response.", /// "type": "string", /// "enum": [ /// "test-account" @@ -5341,18 +5008,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountBodyId { + pub enum PostGetCompressedAccountProofV2ResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedAccountBodyId { + impl ::std::fmt::Display for PostGetCompressedAccountProofV2ResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountBodyId { + impl ::std::str::FromStr for PostGetCompressedAccountProofV2ResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -5363,7 +5030,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountBodyId { + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountProofV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -5372,7 +5039,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountBodyId { + for PostGetCompressedAccountProofV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -5381,7 +5048,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountBodyId { + for PostGetCompressedAccountProofV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -5415,18 +5082,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountBodyJsonrpc { + pub enum PostGetCompressedAccountProofV2ResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedAccountBodyJsonrpc { + impl ::std::fmt::Display for PostGetCompressedAccountProofV2ResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountBodyJsonrpc { + impl ::std::str::FromStr for PostGetCompressedAccountProofV2ResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -5437,7 +5104,8 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountBodyJsonrpc { + impl ::std::convert::TryFrom<&str> + for PostGetCompressedAccountProofV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -5446,7 +5114,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountBodyJsonrpc { + for PostGetCompressedAccountProofV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -5455,7 +5123,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountBodyJsonrpc { + for PostGetCompressedAccountProofV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -5463,55 +5131,199 @@ All endpoints return AccountV2.*/ value.parse() } } - ///The name of the method to invoke. + ///`PostGetCompressedAccountProofV2ResponseResult` /// ///
JSON schema /// /// ```json ///{ - /// "description": "The name of the method to invoke.", - /// "type": "string", - /// "enum": [ - /// "getCompressedAccount" - /// ] + /// "type": "object", + /// "required": [ + /// "context", + /// "value" + /// ], + /// "properties": { + /// "context": { + /// "$ref": "#/components/schemas/Context" + /// }, + /// "value": { + /// "$ref": "#/components/schemas/GetCompressedAccountProofResponseValueV2" + /// } + /// }, + /// "additionalProperties": false ///} /// ``` ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum PostGetCompressedAccountBodyMethod { - #[serde(rename = "getCompressedAccount")] - GetCompressedAccount, + #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + #[serde(deny_unknown_fields)] + pub struct PostGetCompressedAccountProofV2ResponseResult { + pub context: Context, + pub value: GetCompressedAccountProofResponseValueV2, } - impl ::std::fmt::Display for PostGetCompressedAccountBodyMethod { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::GetCompressedAccount => f.write_str("getCompressedAccount"), - } - } + impl PostGetCompressedAccountProofV2ResponseResult { + pub fn builder() -> builder::PostGetCompressedAccountProofV2ResponseResult { + Default::default() + } } - impl ::std::str::FromStr for PostGetCompressedAccountBodyMethod { + ///`PostGetCompressedAccountResponse` + /// + ///
JSON schema + /// + /// ```json + ///{ + /// "type": "object", + /// "required": [ + /// "id", + /// "jsonrpc" + /// ], + /// "properties": { + /// "error": { + /// "type": "object", + /// "properties": { + /// "code": { + /// "type": "integer" + /// }, + /// "message": { + /// "type": "string" + /// } + /// } + /// }, + /// "id": { + /// "description": "An ID to identify the response.", + /// "type": "string", + /// "enum": [ + /// "test-account" + /// ] + /// }, + /// "jsonrpc": { + /// "description": "The version of the JSON-RPC protocol.", + /// "type": "string", + /// "enum": [ + /// "2.0" + /// ] + /// }, + /// "result": { + /// "type": "object", + /// "required": [ + /// "context" + /// ], + /// "properties": { + /// "context": { + /// "$ref": "#/components/schemas/Context" + /// }, + /// "value": { + /// "$ref": "#/components/schemas/Account" + /// } + /// }, + /// "additionalProperties": false + /// } + /// } + ///} + /// ``` + ///
+ #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + pub struct PostGetCompressedAccountResponse { + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub error: ::std::option::Option, + ///An ID to identify the response. + pub id: PostGetCompressedAccountResponseId, + ///The version of the JSON-RPC protocol. + pub jsonrpc: PostGetCompressedAccountResponseJsonrpc, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub result: ::std::option::Option, + } + impl PostGetCompressedAccountResponse { + pub fn builder() -> builder::PostGetCompressedAccountResponse { + Default::default() + } + } + ///`PostGetCompressedAccountResponseError` + /// + ///
JSON schema + /// + /// ```json + ///{ + /// "type": "object", + /// "properties": { + /// "code": { + /// "type": "integer" + /// }, + /// "message": { + /// "type": "string" + /// } + /// } + ///} + /// ``` + ///
+ #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + pub struct PostGetCompressedAccountResponseError { + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub code: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub message: ::std::option::Option<::std::string::String>, + } + impl ::std::default::Default for PostGetCompressedAccountResponseError { + fn default() -> Self { + Self { + code: Default::default(), + message: Default::default(), + } + } + } + impl PostGetCompressedAccountResponseError { + pub fn builder() -> builder::PostGetCompressedAccountResponseError { + Default::default() + } + } + ///An ID to identify the response. + /// + ///
JSON schema + /// + /// ```json + ///{ + /// "description": "An ID to identify the response.", + /// "type": "string", + /// "enum": [ + /// "test-account" + /// ] + ///} + /// ``` + ///
+ #[derive( + ::serde::Deserialize, + ::serde::Serialize, + Clone, + Copy, + Debug, + Eq, + Hash, + Ord, + PartialEq, + PartialOrd + )] + pub enum PostGetCompressedAccountResponseId { + #[serde(rename = "test-account")] + TestAccount, + } + impl ::std::fmt::Display for PostGetCompressedAccountResponseId { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + match *self { + Self::TestAccount => f.write_str("test-account"), + } + } + } + impl ::std::str::FromStr for PostGetCompressedAccountResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getCompressedAccount" => Ok(Self::GetCompressedAccount), + "test-account" => Ok(Self::TestAccount), _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountBodyMethod { + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -5520,7 +5332,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountBodyMethod { + for PostGetCompressedAccountResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -5529,7 +5341,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountBodyMethod { + for PostGetCompressedAccountResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -5537,52 +5349,96 @@ All endpoints return AccountV2.*/ value.parse() } } - ///Request for compressed account data + ///The version of the JSON-RPC protocol. + /// + ///
JSON schema + /// + /// ```json + ///{ + /// "description": "The version of the JSON-RPC protocol.", + /// "type": "string", + /// "enum": [ + /// "2.0" + /// ] + ///} + /// ``` + ///
+ #[derive( + ::serde::Deserialize, + ::serde::Serialize, + Clone, + Copy, + Debug, + Eq, + Hash, + Ord, + PartialEq, + PartialOrd + )] + pub enum PostGetCompressedAccountResponseJsonrpc { + #[serde(rename = "2.0")] + X20, + } + impl ::std::fmt::Display for PostGetCompressedAccountResponseJsonrpc { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + match *self { + Self::X20 => f.write_str("2.0"), + } + } + } + impl ::std::str::FromStr for PostGetCompressedAccountResponseJsonrpc { + type Err = self::error::ConversionError; + fn from_str( + value: &str, + ) -> ::std::result::Result { + match value { + "2.0" => Ok(Self::X20), + _ => Err("invalid value".into()), + } + } + } + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountResponseJsonrpc { + type Error = self::error::ConversionError; + fn try_from( + value: &str, + ) -> ::std::result::Result { + value.parse() + } + } + impl ::std::convert::TryFrom<&::std::string::String> + for PostGetCompressedAccountResponseJsonrpc { + type Error = self::error::ConversionError; + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { + value.parse() + } + } + impl ::std::convert::TryFrom<::std::string::String> + for PostGetCompressedAccountResponseJsonrpc { + type Error = self::error::ConversionError; + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { + value.parse() + } + } + ///`PostGetCompressedAccountResponseResult` /// ///
JSON schema /// /// ```json ///{ - /// "description": "Request for compressed account data", - /// "default": { - /// "address": null, - /// "hash": "11111111111111111111111111111111" - /// }, - /// "examples": [ - /// { - /// "address": null, - /// "hash": "11111111111111111111111111111111" - /// } - /// ], /// "type": "object", + /// "required": [ + /// "context" + /// ], /// "properties": { - /// "address": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// } - /// ] - /// } - /// ] + /// "context": { + /// "$ref": "#/components/schemas/Context" /// }, - /// "hash": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/Hash" - /// } - /// ] - /// } - /// ] + /// "value": { + /// "$ref": "#/components/schemas/Account" /// } /// }, /// "additionalProperties": false @@ -5591,28 +5447,17 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressedAccountBodyParams { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub address: ::std::option::Option, + pub struct PostGetCompressedAccountResponseResult { + pub context: Context, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub hash: ::std::option::Option, - } - impl ::std::default::Default for PostGetCompressedAccountBodyParams { - fn default() -> Self { - PostGetCompressedAccountBodyParams { - address: ::std::option::Option::None, - hash: ::std::option::Option::Some( - Hash("11111111111111111111111111111111".to_string()), - ), - } - } + pub value: ::std::option::Option, } - impl PostGetCompressedAccountBodyParams { - pub fn builder() -> builder::PostGetCompressedAccountBodyParams { + impl PostGetCompressedAccountResponseResult { + pub fn builder() -> builder::PostGetCompressedAccountResponseResult { Default::default() } } - ///`PostGetCompressedAccountProofBody` + ///`PostGetCompressedAccountV2Body` /// ///
JSON schema /// @@ -5644,36 +5489,70 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedAccountProof" + /// "getCompressedAccountV2" /// ] /// }, /// "params": { - /// "type": "object", - /// "required": [ - /// "hash" + /// "description": "Request for compressed account data", + /// "default": { + /// "address": null, + /// "hash": "11111111111111111111111111111111" + /// }, + /// "examples": [ + /// { + /// "address": null, + /// "hash": "11111111111111111111111111111111" + /// } /// ], + /// "type": "object", /// "properties": { + /// "address": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/SerializablePubkey" + /// } + /// ] + /// } + /// ] + /// }, /// "hash": { - /// "$ref": "#/components/schemas/Hash" + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/Hash" + /// } + /// ] + /// } + /// ] /// } - /// } + /// }, + /// "additionalProperties": false /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedAccountProofBody { + pub struct PostGetCompressedAccountV2Body { ///An ID to identify the request. - pub id: PostGetCompressedAccountProofBodyId, + pub id: PostGetCompressedAccountV2BodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedAccountProofBodyJsonrpc, + pub jsonrpc: PostGetCompressedAccountV2BodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetCompressedAccountProofBodyMethod, - pub params: PostGetCompressedAccountProofBodyParams, + pub method: PostGetCompressedAccountV2BodyMethod, + pub params: PostGetCompressedAccountV2BodyParams, } - impl PostGetCompressedAccountProofBody { - pub fn builder() -> builder::PostGetCompressedAccountProofBody { + impl PostGetCompressedAccountV2Body { + pub fn builder() -> builder::PostGetCompressedAccountV2Body { Default::default() } } @@ -5703,18 +5582,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountProofBodyId { + pub enum PostGetCompressedAccountV2BodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedAccountProofBodyId { + impl ::std::fmt::Display for PostGetCompressedAccountV2BodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountProofBodyId { + impl ::std::str::FromStr for PostGetCompressedAccountV2BodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -5725,7 +5604,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountProofBodyId { + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountV2BodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -5734,7 +5613,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountProofBodyId { + for PostGetCompressedAccountV2BodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -5743,7 +5622,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountProofBodyId { + for PostGetCompressedAccountV2BodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -5777,18 +5656,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountProofBodyJsonrpc { + pub enum PostGetCompressedAccountV2BodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedAccountProofBodyJsonrpc { + impl ::std::fmt::Display for PostGetCompressedAccountV2BodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountProofBodyJsonrpc { + impl ::std::str::FromStr for PostGetCompressedAccountV2BodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -5799,7 +5678,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountProofBodyJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -5808,7 +5687,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountProofBodyJsonrpc { + for PostGetCompressedAccountV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -5817,7 +5696,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountProofBodyJsonrpc { + for PostGetCompressedAccountV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -5834,7 +5713,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedAccountProof" + /// "getCompressedAccountV2" /// ] ///} /// ``` @@ -5851,31 +5730,29 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountProofBodyMethod { - #[serde(rename = "getCompressedAccountProof")] - GetCompressedAccountProof, + pub enum PostGetCompressedAccountV2BodyMethod { + #[serde(rename = "getCompressedAccountV2")] + GetCompressedAccountV2, } - impl ::std::fmt::Display for PostGetCompressedAccountProofBodyMethod { + impl ::std::fmt::Display for PostGetCompressedAccountV2BodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetCompressedAccountProof => { - f.write_str("getCompressedAccountProof") - } + Self::GetCompressedAccountV2 => f.write_str("getCompressedAccountV2"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountProofBodyMethod { + impl ::std::str::FromStr for PostGetCompressedAccountV2BodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getCompressedAccountProof" => Ok(Self::GetCompressedAccountProof), + "getCompressedAccountV2" => Ok(Self::GetCompressedAccountV2), _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountProofBodyMethod { + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -5884,7 +5761,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountProofBodyMethod { + for PostGetCompressedAccountV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -5893,7 +5770,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountProofBodyMethod { + for PostGetCompressedAccountV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -5901,34 +5778,82 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedAccountProofBodyParams` + ///Request for compressed account data /// ///
JSON schema /// /// ```json ///{ - /// "type": "object", - /// "required": [ - /// "hash" + /// "description": "Request for compressed account data", + /// "default": { + /// "address": null, + /// "hash": "11111111111111111111111111111111" + /// }, + /// "examples": [ + /// { + /// "address": null, + /// "hash": "11111111111111111111111111111111" + /// } /// ], + /// "type": "object", /// "properties": { + /// "address": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/SerializablePubkey" + /// } + /// ] + /// } + /// ] + /// }, /// "hash": { - /// "$ref": "#/components/schemas/Hash" + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/Hash" + /// } + /// ] + /// } + /// ] /// } - /// } + /// }, + /// "additionalProperties": false ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedAccountProofBodyParams { - pub hash: Hash, + #[serde(deny_unknown_fields)] + pub struct PostGetCompressedAccountV2BodyParams { + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub address: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub hash: ::std::option::Option, } - impl PostGetCompressedAccountProofBodyParams { - pub fn builder() -> builder::PostGetCompressedAccountProofBodyParams { + impl ::std::default::Default for PostGetCompressedAccountV2BodyParams { + fn default() -> Self { + PostGetCompressedAccountV2BodyParams { + address: ::std::option::Option::None, + hash: ::std::option::Option::Some( + Hash("11111111111111111111111111111111".to_string()), + ), + } + } + } + impl PostGetCompressedAccountV2BodyParams { + pub fn builder() -> builder::PostGetCompressedAccountV2BodyParams { Default::default() } } - ///`PostGetCompressedAccountProofResponse` + ///`PostGetCompressedAccountV2Response` /// ///
JSON schema /// @@ -5968,15 +5893,14 @@ All endpoints return AccountV2.*/ /// "result": { /// "type": "object", /// "required": [ - /// "context", - /// "value" + /// "context" /// ], /// "properties": { /// "context": { /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/GetCompressedAccountProofResponseValue" + /// "$ref": "#/components/schemas/AccountV2" /// } /// }, /// "additionalProperties": false @@ -5986,22 +5910,22 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedAccountProofResponse { + pub struct PostGetCompressedAccountV2Response { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option, + pub error: ::std::option::Option, ///An ID to identify the response. - pub id: PostGetCompressedAccountProofResponseId, + pub id: PostGetCompressedAccountV2ResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedAccountProofResponseJsonrpc, + pub jsonrpc: PostGetCompressedAccountV2ResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub result: ::std::option::Option, + pub result: ::std::option::Option, } - impl PostGetCompressedAccountProofResponse { - pub fn builder() -> builder::PostGetCompressedAccountProofResponse { + impl PostGetCompressedAccountV2Response { + pub fn builder() -> builder::PostGetCompressedAccountV2Response { Default::default() } } - ///`PostGetCompressedAccountProofResponseError` + ///`PostGetCompressedAccountV2ResponseError` /// ///
JSON schema /// @@ -6020,13 +5944,13 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedAccountProofResponseError { + pub struct PostGetCompressedAccountV2ResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default for PostGetCompressedAccountProofResponseError { + impl ::std::default::Default for PostGetCompressedAccountV2ResponseError { fn default() -> Self { Self { code: Default::default(), @@ -6034,8 +5958,8 @@ All endpoints return AccountV2.*/ } } } - impl PostGetCompressedAccountProofResponseError { - pub fn builder() -> builder::PostGetCompressedAccountProofResponseError { + impl PostGetCompressedAccountV2ResponseError { + pub fn builder() -> builder::PostGetCompressedAccountV2ResponseError { Default::default() } } @@ -6065,18 +5989,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountProofResponseId { + pub enum PostGetCompressedAccountV2ResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedAccountProofResponseId { + impl ::std::fmt::Display for PostGetCompressedAccountV2ResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountProofResponseId { + impl ::std::str::FromStr for PostGetCompressedAccountV2ResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -6087,7 +6011,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountProofResponseId { + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -6096,7 +6020,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountProofResponseId { + for PostGetCompressedAccountV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -6105,7 +6029,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountProofResponseId { + for PostGetCompressedAccountV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -6139,18 +6063,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountProofResponseJsonrpc { + pub enum PostGetCompressedAccountV2ResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedAccountProofResponseJsonrpc { + impl ::std::fmt::Display for PostGetCompressedAccountV2ResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountProofResponseJsonrpc { + impl ::std::str::FromStr for PostGetCompressedAccountV2ResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -6161,7 +6085,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountProofResponseJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -6170,7 +6094,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountProofResponseJsonrpc { + for PostGetCompressedAccountV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -6179,7 +6103,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountProofResponseJsonrpc { + for PostGetCompressedAccountV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -6187,7 +6111,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedAccountProofResponseResult` + ///`PostGetCompressedAccountV2ResponseResult` /// ///
JSON schema /// @@ -6195,15 +6119,14 @@ All endpoints return AccountV2.*/ ///{ /// "type": "object", /// "required": [ - /// "context", - /// "value" + /// "context" /// ], /// "properties": { /// "context": { /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/GetCompressedAccountProofResponseValue" + /// "$ref": "#/components/schemas/AccountV2" /// } /// }, /// "additionalProperties": false @@ -6212,16 +6135,17 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressedAccountProofResponseResult { + pub struct PostGetCompressedAccountV2ResponseResult { pub context: Context, - pub value: GetCompressedAccountProofResponseValue, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub value: ::std::option::Option, } - impl PostGetCompressedAccountProofResponseResult { - pub fn builder() -> builder::PostGetCompressedAccountProofResponseResult { + impl PostGetCompressedAccountV2ResponseResult { + pub fn builder() -> builder::PostGetCompressedAccountV2ResponseResult { Default::default() } } - ///`PostGetCompressedAccountProofV2Body` + ///`PostGetCompressedAccountsByOwnerBody` /// ///
JSON schema /// @@ -6253,36 +6177,85 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedAccountProofV2" + /// "getCompressedAccountsByOwner" /// ] /// }, /// "params": { /// "type": "object", /// "required": [ - /// "hash" + /// "owner" /// ], /// "properties": { - /// "hash": { - /// "$ref": "#/components/schemas/Hash" + /// "cursor": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/Hash" + /// } + /// ] + /// } + /// ] + /// }, + /// "dataSlice": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/DataSlice" + /// } + /// ] + /// } + /// ] + /// }, + /// "filters": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/FilterSelector" + /// } + /// }, + /// "limit": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/Limit" + /// } + /// ] + /// } + /// ] + /// }, + /// "owner": { + /// "$ref": "#/components/schemas/SerializablePubkey" /// } - /// } + /// }, + /// "additionalProperties": false /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedAccountProofV2Body { + pub struct PostGetCompressedAccountsByOwnerBody { ///An ID to identify the request. - pub id: PostGetCompressedAccountProofV2BodyId, + pub id: PostGetCompressedAccountsByOwnerBodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedAccountProofV2BodyJsonrpc, + pub jsonrpc: PostGetCompressedAccountsByOwnerBodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetCompressedAccountProofV2BodyMethod, - pub params: PostGetCompressedAccountProofV2BodyParams, + pub method: PostGetCompressedAccountsByOwnerBodyMethod, + pub params: PostGetCompressedAccountsByOwnerBodyParams, } - impl PostGetCompressedAccountProofV2Body { - pub fn builder() -> builder::PostGetCompressedAccountProofV2Body { + impl PostGetCompressedAccountsByOwnerBody { + pub fn builder() -> builder::PostGetCompressedAccountsByOwnerBody { Default::default() } } @@ -6312,18 +6285,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountProofV2BodyId { + pub enum PostGetCompressedAccountsByOwnerBodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedAccountProofV2BodyId { + impl ::std::fmt::Display for PostGetCompressedAccountsByOwnerBodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountProofV2BodyId { + impl ::std::str::FromStr for PostGetCompressedAccountsByOwnerBodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -6334,7 +6307,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountProofV2BodyId { + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountsByOwnerBodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -6343,7 +6316,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountProofV2BodyId { + for PostGetCompressedAccountsByOwnerBodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -6352,7 +6325,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountProofV2BodyId { + for PostGetCompressedAccountsByOwnerBodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -6386,18 +6359,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountProofV2BodyJsonrpc { + pub enum PostGetCompressedAccountsByOwnerBodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedAccountProofV2BodyJsonrpc { + impl ::std::fmt::Display for PostGetCompressedAccountsByOwnerBodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountProofV2BodyJsonrpc { + impl ::std::str::FromStr for PostGetCompressedAccountsByOwnerBodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -6408,7 +6381,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountProofV2BodyJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountsByOwnerBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -6417,7 +6390,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountProofV2BodyJsonrpc { + for PostGetCompressedAccountsByOwnerBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -6426,7 +6399,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountProofV2BodyJsonrpc { + for PostGetCompressedAccountsByOwnerBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -6443,7 +6416,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedAccountProofV2" + /// "getCompressedAccountsByOwner" /// ] ///} /// ``` @@ -6460,31 +6433,31 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountProofV2BodyMethod { - #[serde(rename = "getCompressedAccountProofV2")] - GetCompressedAccountProofV2, + pub enum PostGetCompressedAccountsByOwnerBodyMethod { + #[serde(rename = "getCompressedAccountsByOwner")] + GetCompressedAccountsByOwner, } - impl ::std::fmt::Display for PostGetCompressedAccountProofV2BodyMethod { + impl ::std::fmt::Display for PostGetCompressedAccountsByOwnerBodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetCompressedAccountProofV2 => { - f.write_str("getCompressedAccountProofV2") + Self::GetCompressedAccountsByOwner => { + f.write_str("getCompressedAccountsByOwner") } } } } - impl ::std::str::FromStr for PostGetCompressedAccountProofV2BodyMethod { + impl ::std::str::FromStr for PostGetCompressedAccountsByOwnerBodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getCompressedAccountProofV2" => Ok(Self::GetCompressedAccountProofV2), + "getCompressedAccountsByOwner" => Ok(Self::GetCompressedAccountsByOwner), _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountProofV2BodyMethod { + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountsByOwnerBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -6493,7 +6466,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountProofV2BodyMethod { + for PostGetCompressedAccountsByOwnerBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -6502,7 +6475,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountProofV2BodyMethod { + for PostGetCompressedAccountsByOwnerBodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -6510,7 +6483,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedAccountProofV2BodyParams` + ///`PostGetCompressedAccountsByOwnerBodyParams` /// ///
JSON schema /// @@ -6518,26 +6491,88 @@ All endpoints return AccountV2.*/ ///{ /// "type": "object", /// "required": [ - /// "hash" + /// "owner" /// ], /// "properties": { - /// "hash": { - /// "$ref": "#/components/schemas/Hash" + /// "cursor": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/Hash" + /// } + /// ] + /// } + /// ] + /// }, + /// "dataSlice": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/DataSlice" + /// } + /// ] + /// } + /// ] + /// }, + /// "filters": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/FilterSelector" + /// } + /// }, + /// "limit": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/Limit" + /// } + /// ] + /// } + /// ] + /// }, + /// "owner": { + /// "$ref": "#/components/schemas/SerializablePubkey" /// } - /// } + /// }, + /// "additionalProperties": false ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedAccountProofV2BodyParams { - pub hash: Hash, + #[serde(deny_unknown_fields)] + pub struct PostGetCompressedAccountsByOwnerBodyParams { + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub cursor: ::std::option::Option, + #[serde( + rename = "dataSlice", + default, + skip_serializing_if = "::std::option::Option::is_none" + )] + pub data_slice: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub filters: ::std::vec::Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub limit: ::std::option::Option, + pub owner: SerializablePubkey, } - impl PostGetCompressedAccountProofV2BodyParams { - pub fn builder() -> builder::PostGetCompressedAccountProofV2BodyParams { + impl PostGetCompressedAccountsByOwnerBodyParams { + pub fn builder() -> builder::PostGetCompressedAccountsByOwnerBodyParams { Default::default() } } - ///`PostGetCompressedAccountProofV2Response` + ///`PostGetCompressedAccountsByOwnerResponse` /// ///
JSON schema /// @@ -6585,7 +6620,7 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/GetCompressedAccountProofResponseValueV2" + /// "$ref": "#/components/schemas/PaginatedAccountList" /// } /// }, /// "additionalProperties": false @@ -6595,22 +6630,24 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedAccountProofV2Response { + pub struct PostGetCompressedAccountsByOwnerResponse { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option, + pub error: ::std::option::Option, ///An ID to identify the response. - pub id: PostGetCompressedAccountProofV2ResponseId, + pub id: PostGetCompressedAccountsByOwnerResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedAccountProofV2ResponseJsonrpc, + pub jsonrpc: PostGetCompressedAccountsByOwnerResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub result: ::std::option::Option, + pub result: ::std::option::Option< + PostGetCompressedAccountsByOwnerResponseResult, + >, } - impl PostGetCompressedAccountProofV2Response { - pub fn builder() -> builder::PostGetCompressedAccountProofV2Response { + impl PostGetCompressedAccountsByOwnerResponse { + pub fn builder() -> builder::PostGetCompressedAccountsByOwnerResponse { Default::default() } } - ///`PostGetCompressedAccountProofV2ResponseError` + ///`PostGetCompressedAccountsByOwnerResponseError` /// ///
JSON schema /// @@ -6629,13 +6666,13 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedAccountProofV2ResponseError { + pub struct PostGetCompressedAccountsByOwnerResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default for PostGetCompressedAccountProofV2ResponseError { + impl ::std::default::Default for PostGetCompressedAccountsByOwnerResponseError { fn default() -> Self { Self { code: Default::default(), @@ -6643,8 +6680,8 @@ All endpoints return AccountV2.*/ } } } - impl PostGetCompressedAccountProofV2ResponseError { - pub fn builder() -> builder::PostGetCompressedAccountProofV2ResponseError { + impl PostGetCompressedAccountsByOwnerResponseError { + pub fn builder() -> builder::PostGetCompressedAccountsByOwnerResponseError { Default::default() } } @@ -6674,18 +6711,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountProofV2ResponseId { + pub enum PostGetCompressedAccountsByOwnerResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedAccountProofV2ResponseId { + impl ::std::fmt::Display for PostGetCompressedAccountsByOwnerResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountProofV2ResponseId { + impl ::std::str::FromStr for PostGetCompressedAccountsByOwnerResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -6696,7 +6733,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountProofV2ResponseId { + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountsByOwnerResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -6705,7 +6742,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountProofV2ResponseId { + for PostGetCompressedAccountsByOwnerResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -6714,7 +6751,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountProofV2ResponseId { + for PostGetCompressedAccountsByOwnerResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -6748,18 +6785,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountProofV2ResponseJsonrpc { + pub enum PostGetCompressedAccountsByOwnerResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedAccountProofV2ResponseJsonrpc { + impl ::std::fmt::Display for PostGetCompressedAccountsByOwnerResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountProofV2ResponseJsonrpc { + impl ::std::str::FromStr for PostGetCompressedAccountsByOwnerResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -6771,7 +6808,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedAccountProofV2ResponseJsonrpc { + for PostGetCompressedAccountsByOwnerResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -6780,7 +6817,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountProofV2ResponseJsonrpc { + for PostGetCompressedAccountsByOwnerResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -6789,7 +6826,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountProofV2ResponseJsonrpc { + for PostGetCompressedAccountsByOwnerResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -6797,7 +6834,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedAccountProofV2ResponseResult` + ///`PostGetCompressedAccountsByOwnerResponseResult` /// ///
JSON schema /// @@ -6813,7 +6850,7 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/GetCompressedAccountProofResponseValueV2" + /// "$ref": "#/components/schemas/PaginatedAccountList" /// } /// }, /// "additionalProperties": false @@ -6822,16 +6859,16 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressedAccountProofV2ResponseResult { + pub struct PostGetCompressedAccountsByOwnerResponseResult { pub context: Context, - pub value: GetCompressedAccountProofResponseValueV2, + pub value: PaginatedAccountList, } - impl PostGetCompressedAccountProofV2ResponseResult { - pub fn builder() -> builder::PostGetCompressedAccountProofV2ResponseResult { + impl PostGetCompressedAccountsByOwnerResponseResult { + pub fn builder() -> builder::PostGetCompressedAccountsByOwnerResponseResult { Default::default() } } - ///`PostGetCompressedAccountResponse` + ///`PostGetCompressedAccountsByOwnerV2Body` /// ///
JSON schema /// @@ -6840,22 +6877,13 @@ All endpoints return AccountV2.*/ /// "type": "object", /// "required": [ /// "id", - /// "jsonrpc" + /// "jsonrpc", + /// "method", + /// "params" /// ], /// "properties": { - /// "error": { - /// "type": "object", - /// "properties": { - /// "code": { - /// "type": "integer" - /// }, - /// "message": { - /// "type": "string" - /// } - /// } - /// }, /// "id": { - /// "description": "An ID to identify the response.", + /// "description": "An ID to identify the request.", /// "type": "string", /// "enum": [ /// "test-account" @@ -6868,17 +6896,69 @@ All endpoints return AccountV2.*/ /// "2.0" /// ] /// }, - /// "result": { + /// "method": { + /// "description": "The name of the method to invoke.", + /// "type": "string", + /// "enum": [ + /// "getCompressedAccountsByOwnerV2" + /// ] + /// }, + /// "params": { /// "type": "object", /// "required": [ - /// "context" + /// "owner" /// ], /// "properties": { - /// "context": { - /// "$ref": "#/components/schemas/Context" + /// "cursor": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/Hash" + /// } + /// ] + /// } + /// ] /// }, - /// "value": { - /// "$ref": "#/components/schemas/Account" + /// "dataSlice": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/DataSlice" + /// } + /// ] + /// } + /// ] + /// }, + /// "filters": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/FilterSelector" + /// } + /// }, + /// "limit": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/Limit" + /// } + /// ] + /// } + /// ] + /// }, + /// "owner": { + /// "$ref": "#/components/schemas/SerializablePubkey" /// } /// }, /// "additionalProperties": false @@ -6888,69 +6968,104 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedAccountResponse { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option, - ///An ID to identify the response. - pub id: PostGetCompressedAccountResponseId, + pub struct PostGetCompressedAccountsByOwnerV2Body { + ///An ID to identify the request. + pub id: PostGetCompressedAccountsByOwnerV2BodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedAccountResponseJsonrpc, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub result: ::std::option::Option, + pub jsonrpc: PostGetCompressedAccountsByOwnerV2BodyJsonrpc, + ///The name of the method to invoke. + pub method: PostGetCompressedAccountsByOwnerV2BodyMethod, + pub params: PostGetCompressedAccountsByOwnerV2BodyParams, } - impl PostGetCompressedAccountResponse { - pub fn builder() -> builder::PostGetCompressedAccountResponse { + impl PostGetCompressedAccountsByOwnerV2Body { + pub fn builder() -> builder::PostGetCompressedAccountsByOwnerV2Body { Default::default() } } - ///`PostGetCompressedAccountResponseError` + ///An ID to identify the request. /// ///
JSON schema /// /// ```json ///{ - /// "type": "object", - /// "properties": { - /// "code": { - /// "type": "integer" - /// }, - /// "message": { - /// "type": "string" - /// } - /// } + /// "description": "An ID to identify the request.", + /// "type": "string", + /// "enum": [ + /// "test-account" + /// ] ///} /// ``` ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedAccountResponseError { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub code: ::std::option::Option, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub message: ::std::option::Option<::std::string::String>, + #[derive( + ::serde::Deserialize, + ::serde::Serialize, + Clone, + Copy, + Debug, + Eq, + Hash, + Ord, + PartialEq, + PartialOrd + )] + pub enum PostGetCompressedAccountsByOwnerV2BodyId { + #[serde(rename = "test-account")] + TestAccount, } - impl ::std::default::Default for PostGetCompressedAccountResponseError { - fn default() -> Self { - Self { - code: Default::default(), - message: Default::default(), + impl ::std::fmt::Display for PostGetCompressedAccountsByOwnerV2BodyId { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + match *self { + Self::TestAccount => f.write_str("test-account"), } } } - impl PostGetCompressedAccountResponseError { - pub fn builder() -> builder::PostGetCompressedAccountResponseError { - Default::default() + impl ::std::str::FromStr for PostGetCompressedAccountsByOwnerV2BodyId { + type Err = self::error::ConversionError; + fn from_str( + value: &str, + ) -> ::std::result::Result { + match value { + "test-account" => Ok(Self::TestAccount), + _ => Err("invalid value".into()), + } } } - ///An ID to identify the response. + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountsByOwnerV2BodyId { + type Error = self::error::ConversionError; + fn try_from( + value: &str, + ) -> ::std::result::Result { + value.parse() + } + } + impl ::std::convert::TryFrom<&::std::string::String> + for PostGetCompressedAccountsByOwnerV2BodyId { + type Error = self::error::ConversionError; + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { + value.parse() + } + } + impl ::std::convert::TryFrom<::std::string::String> + for PostGetCompressedAccountsByOwnerV2BodyId { + type Error = self::error::ConversionError; + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { + value.parse() + } + } + ///The version of the JSON-RPC protocol. /// ///
JSON schema /// /// ```json ///{ - /// "description": "An ID to identify the response.", + /// "description": "The version of the JSON-RPC protocol.", /// "type": "string", /// "enum": [ - /// "test-account" + /// "2.0" /// ] ///} /// ``` @@ -6967,29 +7082,30 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountResponseId { - #[serde(rename = "test-account")] - TestAccount, + pub enum PostGetCompressedAccountsByOwnerV2BodyJsonrpc { + #[serde(rename = "2.0")] + X20, } - impl ::std::fmt::Display for PostGetCompressedAccountResponseId { + impl ::std::fmt::Display for PostGetCompressedAccountsByOwnerV2BodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::TestAccount => f.write_str("test-account"), + Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountResponseId { + impl ::std::str::FromStr for PostGetCompressedAccountsByOwnerV2BodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "test-account" => Ok(Self::TestAccount), + "2.0" => Ok(Self::X20), _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountResponseId { + impl ::std::convert::TryFrom<&str> + for PostGetCompressedAccountsByOwnerV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -6998,7 +7114,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountResponseId { + for PostGetCompressedAccountsByOwnerV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -7007,7 +7123,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountResponseId { + for PostGetCompressedAccountsByOwnerV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -7015,16 +7131,16 @@ All endpoints return AccountV2.*/ value.parse() } } - ///The version of the JSON-RPC protocol. + ///The name of the method to invoke. /// ///
JSON schema /// /// ```json ///{ - /// "description": "The version of the JSON-RPC protocol.", + /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "2.0" + /// "getCompressedAccountsByOwnerV2" /// ] ///} /// ``` @@ -7041,29 +7157,33 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountResponseJsonrpc { - #[serde(rename = "2.0")] - X20, + pub enum PostGetCompressedAccountsByOwnerV2BodyMethod { + #[serde(rename = "getCompressedAccountsByOwnerV2")] + GetCompressedAccountsByOwnerV2, } - impl ::std::fmt::Display for PostGetCompressedAccountResponseJsonrpc { + impl ::std::fmt::Display for PostGetCompressedAccountsByOwnerV2BodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::X20 => f.write_str("2.0"), + Self::GetCompressedAccountsByOwnerV2 => { + f.write_str("getCompressedAccountsByOwnerV2") + } } } } - impl ::std::str::FromStr for PostGetCompressedAccountResponseJsonrpc { + impl ::std::str::FromStr for PostGetCompressedAccountsByOwnerV2BodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "2.0" => Ok(Self::X20), + "getCompressedAccountsByOwnerV2" => { + Ok(Self::GetCompressedAccountsByOwnerV2) + } _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountResponseJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountsByOwnerV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -7072,7 +7192,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountResponseJsonrpc { + for PostGetCompressedAccountsByOwnerV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -7081,7 +7201,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountResponseJsonrpc { + for PostGetCompressedAccountsByOwnerV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -7089,7 +7209,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedAccountResponseResult` + ///`PostGetCompressedAccountsByOwnerV2BodyParams` /// ///
JSON schema /// @@ -7097,14 +7217,59 @@ All endpoints return AccountV2.*/ ///{ /// "type": "object", /// "required": [ - /// "context" + /// "owner" /// ], /// "properties": { - /// "context": { - /// "$ref": "#/components/schemas/Context" + /// "cursor": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/Hash" + /// } + /// ] + /// } + /// ] /// }, - /// "value": { - /// "$ref": "#/components/schemas/Account" + /// "dataSlice": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/DataSlice" + /// } + /// ] + /// } + /// ] + /// }, + /// "filters": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/FilterSelector" + /// } + /// }, + /// "limit": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/Limit" + /// } + /// ] + /// } + /// ] + /// }, + /// "owner": { + /// "$ref": "#/components/schemas/SerializablePubkey" /// } /// }, /// "additionalProperties": false @@ -7113,17 +7278,27 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressedAccountResponseResult { - pub context: Context, + pub struct PostGetCompressedAccountsByOwnerV2BodyParams { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub value: ::std::option::Option, + pub cursor: ::std::option::Option, + #[serde( + rename = "dataSlice", + default, + skip_serializing_if = "::std::option::Option::is_none" + )] + pub data_slice: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub filters: ::std::vec::Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub limit: ::std::option::Option, + pub owner: SerializablePubkey, } - impl PostGetCompressedAccountResponseResult { - pub fn builder() -> builder::PostGetCompressedAccountResponseResult { + impl PostGetCompressedAccountsByOwnerV2BodyParams { + pub fn builder() -> builder::PostGetCompressedAccountsByOwnerV2BodyParams { Default::default() } } - ///`PostGetCompressedAccountV2Body` + ///`PostGetCompressedAccountsByOwnerV2Response` /// ///
JSON schema /// @@ -7132,13 +7307,22 @@ All endpoints return AccountV2.*/ /// "type": "object", /// "required": [ /// "id", - /// "jsonrpc", - /// "method", - /// "params" + /// "jsonrpc" /// ], /// "properties": { + /// "error": { + /// "type": "object", + /// "properties": { + /// "code": { + /// "type": "integer" + /// }, + /// "message": { + /// "type": "string" + /// } + /// } + /// }, /// "id": { - /// "description": "An ID to identify the request.", + /// "description": "An ID to identify the response.", /// "type": "string", /// "enum": [ /// "test-account" @@ -7151,54 +7335,18 @@ All endpoints return AccountV2.*/ /// "2.0" /// ] /// }, - /// "method": { - /// "description": "The name of the method to invoke.", - /// "type": "string", - /// "enum": [ - /// "getCompressedAccountV2" - /// ] - /// }, - /// "params": { - /// "description": "Request for compressed account data", - /// "default": { - /// "address": null, - /// "hash": "11111111111111111111111111111111" - /// }, - /// "examples": [ - /// { - /// "address": null, - /// "hash": "11111111111111111111111111111111" - /// } - /// ], + /// "result": { /// "type": "object", + /// "required": [ + /// "context", + /// "value" + /// ], /// "properties": { - /// "address": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// } - /// ] - /// } - /// ] + /// "context": { + /// "$ref": "#/components/schemas/Context" /// }, - /// "hash": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/Hash" - /// } - /// ] - /// } - /// ] + /// "value": { + /// "$ref": "#/components/schemas/PaginatedAccountListV2" /// } /// }, /// "additionalProperties": false @@ -7208,27 +7356,70 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedAccountV2Body { - ///An ID to identify the request. - pub id: PostGetCompressedAccountV2BodyId, + pub struct PostGetCompressedAccountsByOwnerV2Response { + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub error: ::std::option::Option< + PostGetCompressedAccountsByOwnerV2ResponseError, + >, + ///An ID to identify the response. + pub id: PostGetCompressedAccountsByOwnerV2ResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedAccountV2BodyJsonrpc, - ///The name of the method to invoke. - pub method: PostGetCompressedAccountV2BodyMethod, - pub params: PostGetCompressedAccountV2BodyParams, + pub jsonrpc: PostGetCompressedAccountsByOwnerV2ResponseJsonrpc, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub result: ::std::option::Option< + PostGetCompressedAccountsByOwnerV2ResponseResult, + >, } - impl PostGetCompressedAccountV2Body { - pub fn builder() -> builder::PostGetCompressedAccountV2Body { + impl PostGetCompressedAccountsByOwnerV2Response { + pub fn builder() -> builder::PostGetCompressedAccountsByOwnerV2Response { Default::default() } } - ///An ID to identify the request. + ///`PostGetCompressedAccountsByOwnerV2ResponseError` /// ///
JSON schema /// /// ```json ///{ - /// "description": "An ID to identify the request.", + /// "type": "object", + /// "properties": { + /// "code": { + /// "type": "integer" + /// }, + /// "message": { + /// "type": "string" + /// } + /// } + ///} + /// ``` + ///
+ #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + pub struct PostGetCompressedAccountsByOwnerV2ResponseError { + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub code: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub message: ::std::option::Option<::std::string::String>, + } + impl ::std::default::Default for PostGetCompressedAccountsByOwnerV2ResponseError { + fn default() -> Self { + Self { + code: Default::default(), + message: Default::default(), + } + } + } + impl PostGetCompressedAccountsByOwnerV2ResponseError { + pub fn builder() -> builder::PostGetCompressedAccountsByOwnerV2ResponseError { + Default::default() + } + } + ///An ID to identify the response. + /// + ///
JSON schema + /// + /// ```json + ///{ + /// "description": "An ID to identify the response.", /// "type": "string", /// "enum": [ /// "test-account" @@ -7248,18 +7439,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountV2BodyId { + pub enum PostGetCompressedAccountsByOwnerV2ResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedAccountV2BodyId { + impl ::std::fmt::Display for PostGetCompressedAccountsByOwnerV2ResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountV2BodyId { + impl ::std::str::FromStr for PostGetCompressedAccountsByOwnerV2ResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -7270,7 +7461,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountV2BodyId { + impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountsByOwnerV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -7279,7 +7470,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountV2BodyId { + for PostGetCompressedAccountsByOwnerV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -7288,7 +7479,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountV2BodyId { + for PostGetCompressedAccountsByOwnerV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -7322,18 +7513,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountV2BodyJsonrpc { + pub enum PostGetCompressedAccountsByOwnerV2ResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedAccountV2BodyJsonrpc { + impl ::std::fmt::Display for PostGetCompressedAccountsByOwnerV2ResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountV2BodyJsonrpc { + impl ::std::str::FromStr for PostGetCompressedAccountsByOwnerV2ResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -7344,7 +7535,8 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountV2BodyJsonrpc { + impl ::std::convert::TryFrom<&str> + for PostGetCompressedAccountsByOwnerV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -7353,7 +7545,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountV2BodyJsonrpc { + for PostGetCompressedAccountsByOwnerV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -7362,7 +7554,254 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountV2BodyJsonrpc { + for PostGetCompressedAccountsByOwnerV2ResponseJsonrpc { + type Error = self::error::ConversionError; + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { + value.parse() + } + } + ///`PostGetCompressedAccountsByOwnerV2ResponseResult` + /// + ///
JSON schema + /// + /// ```json + ///{ + /// "type": "object", + /// "required": [ + /// "context", + /// "value" + /// ], + /// "properties": { + /// "context": { + /// "$ref": "#/components/schemas/Context" + /// }, + /// "value": { + /// "$ref": "#/components/schemas/PaginatedAccountListV2" + /// } + /// }, + /// "additionalProperties": false + ///} + /// ``` + ///
+ #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + #[serde(deny_unknown_fields)] + pub struct PostGetCompressedAccountsByOwnerV2ResponseResult { + pub context: Context, + pub value: PaginatedAccountListV2, + } + impl PostGetCompressedAccountsByOwnerV2ResponseResult { + pub fn builder() -> builder::PostGetCompressedAccountsByOwnerV2ResponseResult { + Default::default() + } + } + ///`PostGetCompressedBalanceByOwnerBody` + /// + ///
JSON schema + /// + /// ```json + ///{ + /// "type": "object", + /// "required": [ + /// "id", + /// "jsonrpc", + /// "method", + /// "params" + /// ], + /// "properties": { + /// "id": { + /// "description": "An ID to identify the request.", + /// "type": "string", + /// "enum": [ + /// "test-account" + /// ] + /// }, + /// "jsonrpc": { + /// "description": "The version of the JSON-RPC protocol.", + /// "type": "string", + /// "enum": [ + /// "2.0" + /// ] + /// }, + /// "method": { + /// "description": "The name of the method to invoke.", + /// "type": "string", + /// "enum": [ + /// "getCompressedBalanceByOwner" + /// ] + /// }, + /// "params": { + /// "type": "object", + /// "required": [ + /// "owner" + /// ], + /// "properties": { + /// "owner": { + /// "$ref": "#/components/schemas/SerializablePubkey" + /// } + /// } + /// } + /// } + ///} + /// ``` + ///
+ #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + pub struct PostGetCompressedBalanceByOwnerBody { + ///An ID to identify the request. + pub id: PostGetCompressedBalanceByOwnerBodyId, + ///The version of the JSON-RPC protocol. + pub jsonrpc: PostGetCompressedBalanceByOwnerBodyJsonrpc, + ///The name of the method to invoke. + pub method: PostGetCompressedBalanceByOwnerBodyMethod, + pub params: PostGetCompressedBalanceByOwnerBodyParams, + } + impl PostGetCompressedBalanceByOwnerBody { + pub fn builder() -> builder::PostGetCompressedBalanceByOwnerBody { + Default::default() + } + } + ///An ID to identify the request. + /// + ///
JSON schema + /// + /// ```json + ///{ + /// "description": "An ID to identify the request.", + /// "type": "string", + /// "enum": [ + /// "test-account" + /// ] + ///} + /// ``` + ///
+ #[derive( + ::serde::Deserialize, + ::serde::Serialize, + Clone, + Copy, + Debug, + Eq, + Hash, + Ord, + PartialEq, + PartialOrd + )] + pub enum PostGetCompressedBalanceByOwnerBodyId { + #[serde(rename = "test-account")] + TestAccount, + } + impl ::std::fmt::Display for PostGetCompressedBalanceByOwnerBodyId { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + match *self { + Self::TestAccount => f.write_str("test-account"), + } + } + } + impl ::std::str::FromStr for PostGetCompressedBalanceByOwnerBodyId { + type Err = self::error::ConversionError; + fn from_str( + value: &str, + ) -> ::std::result::Result { + match value { + "test-account" => Ok(Self::TestAccount), + _ => Err("invalid value".into()), + } + } + } + impl ::std::convert::TryFrom<&str> for PostGetCompressedBalanceByOwnerBodyId { + type Error = self::error::ConversionError; + fn try_from( + value: &str, + ) -> ::std::result::Result { + value.parse() + } + } + impl ::std::convert::TryFrom<&::std::string::String> + for PostGetCompressedBalanceByOwnerBodyId { + type Error = self::error::ConversionError; + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { + value.parse() + } + } + impl ::std::convert::TryFrom<::std::string::String> + for PostGetCompressedBalanceByOwnerBodyId { + type Error = self::error::ConversionError; + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { + value.parse() + } + } + ///The version of the JSON-RPC protocol. + /// + ///
JSON schema + /// + /// ```json + ///{ + /// "description": "The version of the JSON-RPC protocol.", + /// "type": "string", + /// "enum": [ + /// "2.0" + /// ] + ///} + /// ``` + ///
+ #[derive( + ::serde::Deserialize, + ::serde::Serialize, + Clone, + Copy, + Debug, + Eq, + Hash, + Ord, + PartialEq, + PartialOrd + )] + pub enum PostGetCompressedBalanceByOwnerBodyJsonrpc { + #[serde(rename = "2.0")] + X20, + } + impl ::std::fmt::Display for PostGetCompressedBalanceByOwnerBodyJsonrpc { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + match *self { + Self::X20 => f.write_str("2.0"), + } + } + } + impl ::std::str::FromStr for PostGetCompressedBalanceByOwnerBodyJsonrpc { + type Err = self::error::ConversionError; + fn from_str( + value: &str, + ) -> ::std::result::Result { + match value { + "2.0" => Ok(Self::X20), + _ => Err("invalid value".into()), + } + } + } + impl ::std::convert::TryFrom<&str> for PostGetCompressedBalanceByOwnerBodyJsonrpc { + type Error = self::error::ConversionError; + fn try_from( + value: &str, + ) -> ::std::result::Result { + value.parse() + } + } + impl ::std::convert::TryFrom<&::std::string::String> + for PostGetCompressedBalanceByOwnerBodyJsonrpc { + type Error = self::error::ConversionError; + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { + value.parse() + } + } + impl ::std::convert::TryFrom<::std::string::String> + for PostGetCompressedBalanceByOwnerBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -7379,7 +7818,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedAccountV2" + /// "getCompressedBalanceByOwner" /// ] ///} /// ``` @@ -7396,29 +7835,31 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountV2BodyMethod { - #[serde(rename = "getCompressedAccountV2")] - GetCompressedAccountV2, + pub enum PostGetCompressedBalanceByOwnerBodyMethod { + #[serde(rename = "getCompressedBalanceByOwner")] + GetCompressedBalanceByOwner, } - impl ::std::fmt::Display for PostGetCompressedAccountV2BodyMethod { + impl ::std::fmt::Display for PostGetCompressedBalanceByOwnerBodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetCompressedAccountV2 => f.write_str("getCompressedAccountV2"), + Self::GetCompressedBalanceByOwner => { + f.write_str("getCompressedBalanceByOwner") + } } } } - impl ::std::str::FromStr for PostGetCompressedAccountV2BodyMethod { + impl ::std::str::FromStr for PostGetCompressedBalanceByOwnerBodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getCompressedAccountV2" => Ok(Self::GetCompressedAccountV2), + "getCompressedBalanceByOwner" => Ok(Self::GetCompressedBalanceByOwner), _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountV2BodyMethod { + impl ::std::convert::TryFrom<&str> for PostGetCompressedBalanceByOwnerBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -7427,7 +7868,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountV2BodyMethod { + for PostGetCompressedBalanceByOwnerBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -7436,7 +7877,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountV2BodyMethod { + for PostGetCompressedBalanceByOwnerBodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -7444,82 +7885,34 @@ All endpoints return AccountV2.*/ value.parse() } } - ///Request for compressed account data + ///`PostGetCompressedBalanceByOwnerBodyParams` /// ///
JSON schema /// /// ```json ///{ - /// "description": "Request for compressed account data", - /// "default": { - /// "address": null, - /// "hash": "11111111111111111111111111111111" - /// }, - /// "examples": [ - /// { - /// "address": null, - /// "hash": "11111111111111111111111111111111" - /// } - /// ], /// "type": "object", + /// "required": [ + /// "owner" + /// ], /// "properties": { - /// "address": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// } - /// ] - /// } - /// ] - /// }, - /// "hash": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/Hash" - /// } - /// ] - /// } - /// ] + /// "owner": { + /// "$ref": "#/components/schemas/SerializablePubkey" /// } - /// }, - /// "additionalProperties": false + /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(deny_unknown_fields)] - pub struct PostGetCompressedAccountV2BodyParams { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub address: ::std::option::Option, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub hash: ::std::option::Option, - } - impl ::std::default::Default for PostGetCompressedAccountV2BodyParams { - fn default() -> Self { - PostGetCompressedAccountV2BodyParams { - address: ::std::option::Option::None, - hash: ::std::option::Option::Some( - Hash("11111111111111111111111111111111".to_string()), - ), - } - } + pub struct PostGetCompressedBalanceByOwnerBodyParams { + pub owner: SerializablePubkey, } - impl PostGetCompressedAccountV2BodyParams { - pub fn builder() -> builder::PostGetCompressedAccountV2BodyParams { + impl PostGetCompressedBalanceByOwnerBodyParams { + pub fn builder() -> builder::PostGetCompressedBalanceByOwnerBodyParams { Default::default() } } - ///`PostGetCompressedAccountV2Response` + ///`PostGetCompressedBalanceByOwnerResponse` /// ///
JSON schema /// @@ -7559,14 +7952,15 @@ All endpoints return AccountV2.*/ /// "result": { /// "type": "object", /// "required": [ - /// "context" + /// "context", + /// "value" /// ], /// "properties": { /// "context": { /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/AccountV2" + /// "$ref": "#/components/schemas/UnsignedInteger" /// } /// }, /// "additionalProperties": false @@ -7576,22 +7970,22 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedAccountV2Response { + pub struct PostGetCompressedBalanceByOwnerResponse { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option, + pub error: ::std::option::Option, ///An ID to identify the response. - pub id: PostGetCompressedAccountV2ResponseId, + pub id: PostGetCompressedBalanceByOwnerResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedAccountV2ResponseJsonrpc, + pub jsonrpc: PostGetCompressedBalanceByOwnerResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub result: ::std::option::Option, + pub result: ::std::option::Option, } - impl PostGetCompressedAccountV2Response { - pub fn builder() -> builder::PostGetCompressedAccountV2Response { + impl PostGetCompressedBalanceByOwnerResponse { + pub fn builder() -> builder::PostGetCompressedBalanceByOwnerResponse { Default::default() } } - ///`PostGetCompressedAccountV2ResponseError` + ///`PostGetCompressedBalanceByOwnerResponseError` /// ///
JSON schema /// @@ -7610,13 +8004,13 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedAccountV2ResponseError { + pub struct PostGetCompressedBalanceByOwnerResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default for PostGetCompressedAccountV2ResponseError { + impl ::std::default::Default for PostGetCompressedBalanceByOwnerResponseError { fn default() -> Self { Self { code: Default::default(), @@ -7624,8 +8018,8 @@ All endpoints return AccountV2.*/ } } } - impl PostGetCompressedAccountV2ResponseError { - pub fn builder() -> builder::PostGetCompressedAccountV2ResponseError { + impl PostGetCompressedBalanceByOwnerResponseError { + pub fn builder() -> builder::PostGetCompressedBalanceByOwnerResponseError { Default::default() } } @@ -7655,18 +8049,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountV2ResponseId { + pub enum PostGetCompressedBalanceByOwnerResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedAccountV2ResponseId { + impl ::std::fmt::Display for PostGetCompressedBalanceByOwnerResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountV2ResponseId { + impl ::std::str::FromStr for PostGetCompressedBalanceByOwnerResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -7677,7 +8071,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountV2ResponseId { + impl ::std::convert::TryFrom<&str> for PostGetCompressedBalanceByOwnerResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -7686,7 +8080,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountV2ResponseId { + for PostGetCompressedBalanceByOwnerResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -7695,7 +8089,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountV2ResponseId { + for PostGetCompressedBalanceByOwnerResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -7729,18 +8123,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountV2ResponseJsonrpc { + pub enum PostGetCompressedBalanceByOwnerResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedAccountV2ResponseJsonrpc { + impl ::std::fmt::Display for PostGetCompressedBalanceByOwnerResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountV2ResponseJsonrpc { + impl ::std::str::FromStr for PostGetCompressedBalanceByOwnerResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -7751,7 +8145,8 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountV2ResponseJsonrpc { + impl ::std::convert::TryFrom<&str> + for PostGetCompressedBalanceByOwnerResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -7760,7 +8155,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountV2ResponseJsonrpc { + for PostGetCompressedBalanceByOwnerResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -7769,7 +8164,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountV2ResponseJsonrpc { + for PostGetCompressedBalanceByOwnerResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -7777,7 +8172,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedAccountV2ResponseResult` + ///`PostGetCompressedBalanceByOwnerResponseResult` /// ///
JSON schema /// @@ -7785,14 +8180,15 @@ All endpoints return AccountV2.*/ ///{ /// "type": "object", /// "required": [ - /// "context" + /// "context", + /// "value" /// ], /// "properties": { /// "context": { /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/AccountV2" + /// "$ref": "#/components/schemas/UnsignedInteger" /// } /// }, /// "additionalProperties": false @@ -7801,17 +8197,16 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressedAccountV2ResponseResult { + pub struct PostGetCompressedBalanceByOwnerResponseResult { pub context: Context, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub value: ::std::option::Option, + pub value: UnsignedInteger, } - impl PostGetCompressedAccountV2ResponseResult { - pub fn builder() -> builder::PostGetCompressedAccountV2ResponseResult { + impl PostGetCompressedBalanceByOwnerResponseResult { + pub fn builder() -> builder::PostGetCompressedBalanceByOwnerResponseResult { Default::default() } } - ///`PostGetCompressedAccountsByOwnerBody` + ///`PostGetCompressedMintTokenHoldersBody` /// ///
JSON schema /// @@ -7843,13 +8238,13 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedAccountsByOwner" + /// "getCompressedMintTokenHolders" /// ] /// }, /// "params": { /// "type": "object", /// "required": [ - /// "owner" + /// "mint" /// ], /// "properties": { /// "cursor": { @@ -7860,32 +8255,12 @@ All endpoints return AccountV2.*/ /// { /// "allOf": [ /// { - /// "$ref": "#/components/schemas/Hash" - /// } - /// ] - /// } - /// ] - /// }, - /// "dataSlice": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/DataSlice" + /// "$ref": "#/components/schemas/Base58String" /// } /// ] /// } /// ] /// }, - /// "filters": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/FilterSelector" - /// } - /// }, /// "limit": { /// "oneOf": [ /// { @@ -7900,7 +8275,7 @@ All endpoints return AccountV2.*/ /// } /// ] /// }, - /// "owner": { + /// "mint": { /// "$ref": "#/components/schemas/SerializablePubkey" /// } /// }, @@ -7911,17 +8286,17 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedAccountsByOwnerBody { + pub struct PostGetCompressedMintTokenHoldersBody { ///An ID to identify the request. - pub id: PostGetCompressedAccountsByOwnerBodyId, + pub id: PostGetCompressedMintTokenHoldersBodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedAccountsByOwnerBodyJsonrpc, + pub jsonrpc: PostGetCompressedMintTokenHoldersBodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetCompressedAccountsByOwnerBodyMethod, - pub params: PostGetCompressedAccountsByOwnerBodyParams, + pub method: PostGetCompressedMintTokenHoldersBodyMethod, + pub params: PostGetCompressedMintTokenHoldersBodyParams, } - impl PostGetCompressedAccountsByOwnerBody { - pub fn builder() -> builder::PostGetCompressedAccountsByOwnerBody { + impl PostGetCompressedMintTokenHoldersBody { + pub fn builder() -> builder::PostGetCompressedMintTokenHoldersBody { Default::default() } } @@ -7951,18 +8326,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountsByOwnerBodyId { + pub enum PostGetCompressedMintTokenHoldersBodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedAccountsByOwnerBodyId { + impl ::std::fmt::Display for PostGetCompressedMintTokenHoldersBodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountsByOwnerBodyId { + impl ::std::str::FromStr for PostGetCompressedMintTokenHoldersBodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -7973,7 +8348,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountsByOwnerBodyId { + impl ::std::convert::TryFrom<&str> for PostGetCompressedMintTokenHoldersBodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -7982,7 +8357,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountsByOwnerBodyId { + for PostGetCompressedMintTokenHoldersBodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -7991,7 +8366,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountsByOwnerBodyId { + for PostGetCompressedMintTokenHoldersBodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -8025,18 +8400,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountsByOwnerBodyJsonrpc { + pub enum PostGetCompressedMintTokenHoldersBodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedAccountsByOwnerBodyJsonrpc { + impl ::std::fmt::Display for PostGetCompressedMintTokenHoldersBodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountsByOwnerBodyJsonrpc { + impl ::std::str::FromStr for PostGetCompressedMintTokenHoldersBodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -8047,7 +8422,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountsByOwnerBodyJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetCompressedMintTokenHoldersBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -8056,7 +8431,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountsByOwnerBodyJsonrpc { + for PostGetCompressedMintTokenHoldersBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -8065,7 +8440,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountsByOwnerBodyJsonrpc { + for PostGetCompressedMintTokenHoldersBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -8082,7 +8457,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedAccountsByOwner" + /// "getCompressedMintTokenHolders" /// ] ///} /// ``` @@ -8099,31 +8474,33 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountsByOwnerBodyMethod { - #[serde(rename = "getCompressedAccountsByOwner")] - GetCompressedAccountsByOwner, + pub enum PostGetCompressedMintTokenHoldersBodyMethod { + #[serde(rename = "getCompressedMintTokenHolders")] + GetCompressedMintTokenHolders, } - impl ::std::fmt::Display for PostGetCompressedAccountsByOwnerBodyMethod { + impl ::std::fmt::Display for PostGetCompressedMintTokenHoldersBodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetCompressedAccountsByOwner => { - f.write_str("getCompressedAccountsByOwner") + Self::GetCompressedMintTokenHolders => { + f.write_str("getCompressedMintTokenHolders") } } } } - impl ::std::str::FromStr for PostGetCompressedAccountsByOwnerBodyMethod { + impl ::std::str::FromStr for PostGetCompressedMintTokenHoldersBodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getCompressedAccountsByOwner" => Ok(Self::GetCompressedAccountsByOwner), + "getCompressedMintTokenHolders" => { + Ok(Self::GetCompressedMintTokenHolders) + } _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountsByOwnerBodyMethod { + impl ::std::convert::TryFrom<&str> for PostGetCompressedMintTokenHoldersBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -8132,7 +8509,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountsByOwnerBodyMethod { + for PostGetCompressedMintTokenHoldersBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -8141,7 +8518,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountsByOwnerBodyMethod { + for PostGetCompressedMintTokenHoldersBodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -8149,7 +8526,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedAccountsByOwnerBodyParams` + ///`PostGetCompressedMintTokenHoldersBodyParams` /// ///
JSON schema /// @@ -8157,7 +8534,7 @@ All endpoints return AccountV2.*/ ///{ /// "type": "object", /// "required": [ - /// "owner" + /// "mint" /// ], /// "properties": { /// "cursor": { @@ -8168,32 +8545,12 @@ All endpoints return AccountV2.*/ /// { /// "allOf": [ /// { - /// "$ref": "#/components/schemas/Hash" - /// } - /// ] - /// } - /// ] - /// }, - /// "dataSlice": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/DataSlice" + /// "$ref": "#/components/schemas/Base58String" /// } /// ] /// } /// ] /// }, - /// "filters": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/FilterSelector" - /// } - /// }, /// "limit": { /// "oneOf": [ /// { @@ -8208,7 +8565,7 @@ All endpoints return AccountV2.*/ /// } /// ] /// }, - /// "owner": { + /// "mint": { /// "$ref": "#/components/schemas/SerializablePubkey" /// } /// }, @@ -8218,27 +8575,19 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressedAccountsByOwnerBodyParams { + pub struct PostGetCompressedMintTokenHoldersBodyParams { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub cursor: ::std::option::Option, - #[serde( - rename = "dataSlice", - default, - skip_serializing_if = "::std::option::Option::is_none" - )] - pub data_slice: ::std::option::Option, - #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] - pub filters: ::std::vec::Vec, + pub cursor: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub limit: ::std::option::Option, - pub owner: SerializablePubkey, + pub mint: SerializablePubkey, } - impl PostGetCompressedAccountsByOwnerBodyParams { - pub fn builder() -> builder::PostGetCompressedAccountsByOwnerBodyParams { + impl PostGetCompressedMintTokenHoldersBodyParams { + pub fn builder() -> builder::PostGetCompressedMintTokenHoldersBodyParams { Default::default() } } - ///`PostGetCompressedAccountsByOwnerResponse` + ///`PostGetCompressedMintTokenHoldersResponse` /// ///
JSON schema /// @@ -8286,7 +8635,7 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/PaginatedAccountList" + /// "$ref": "#/components/schemas/OwnerBalanceList" /// } /// }, /// "additionalProperties": false @@ -8296,24 +8645,24 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedAccountsByOwnerResponse { + pub struct PostGetCompressedMintTokenHoldersResponse { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option, + pub error: ::std::option::Option, ///An ID to identify the response. - pub id: PostGetCompressedAccountsByOwnerResponseId, + pub id: PostGetCompressedMintTokenHoldersResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedAccountsByOwnerResponseJsonrpc, + pub jsonrpc: PostGetCompressedMintTokenHoldersResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub result: ::std::option::Option< - PostGetCompressedAccountsByOwnerResponseResult, + PostGetCompressedMintTokenHoldersResponseResult, >, } - impl PostGetCompressedAccountsByOwnerResponse { - pub fn builder() -> builder::PostGetCompressedAccountsByOwnerResponse { + impl PostGetCompressedMintTokenHoldersResponse { + pub fn builder() -> builder::PostGetCompressedMintTokenHoldersResponse { Default::default() } } - ///`PostGetCompressedAccountsByOwnerResponseError` + ///`PostGetCompressedMintTokenHoldersResponseError` /// ///
JSON schema /// @@ -8332,13 +8681,13 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedAccountsByOwnerResponseError { + pub struct PostGetCompressedMintTokenHoldersResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default for PostGetCompressedAccountsByOwnerResponseError { + impl ::std::default::Default for PostGetCompressedMintTokenHoldersResponseError { fn default() -> Self { Self { code: Default::default(), @@ -8346,8 +8695,8 @@ All endpoints return AccountV2.*/ } } } - impl PostGetCompressedAccountsByOwnerResponseError { - pub fn builder() -> builder::PostGetCompressedAccountsByOwnerResponseError { + impl PostGetCompressedMintTokenHoldersResponseError { + pub fn builder() -> builder::PostGetCompressedMintTokenHoldersResponseError { Default::default() } } @@ -8377,18 +8726,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountsByOwnerResponseId { + pub enum PostGetCompressedMintTokenHoldersResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedAccountsByOwnerResponseId { + impl ::std::fmt::Display for PostGetCompressedMintTokenHoldersResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountsByOwnerResponseId { + impl ::std::str::FromStr for PostGetCompressedMintTokenHoldersResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -8399,7 +8748,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountsByOwnerResponseId { + impl ::std::convert::TryFrom<&str> for PostGetCompressedMintTokenHoldersResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -8408,7 +8757,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountsByOwnerResponseId { + for PostGetCompressedMintTokenHoldersResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -8417,7 +8766,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountsByOwnerResponseId { + for PostGetCompressedMintTokenHoldersResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -8451,18 +8800,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountsByOwnerResponseJsonrpc { + pub enum PostGetCompressedMintTokenHoldersResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedAccountsByOwnerResponseJsonrpc { + impl ::std::fmt::Display for PostGetCompressedMintTokenHoldersResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountsByOwnerResponseJsonrpc { + impl ::std::str::FromStr for PostGetCompressedMintTokenHoldersResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -8474,7 +8823,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedAccountsByOwnerResponseJsonrpc { + for PostGetCompressedMintTokenHoldersResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -8483,7 +8832,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountsByOwnerResponseJsonrpc { + for PostGetCompressedMintTokenHoldersResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -8492,7 +8841,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountsByOwnerResponseJsonrpc { + for PostGetCompressedMintTokenHoldersResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -8500,7 +8849,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedAccountsByOwnerResponseResult` + ///`PostGetCompressedMintTokenHoldersResponseResult` /// ///
JSON schema /// @@ -8516,7 +8865,7 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/PaginatedAccountList" + /// "$ref": "#/components/schemas/OwnerBalanceList" /// } /// }, /// "additionalProperties": false @@ -8525,16 +8874,16 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressedAccountsByOwnerResponseResult { + pub struct PostGetCompressedMintTokenHoldersResponseResult { pub context: Context, - pub value: PaginatedAccountList, + pub value: OwnerBalanceList, } - impl PostGetCompressedAccountsByOwnerResponseResult { - pub fn builder() -> builder::PostGetCompressedAccountsByOwnerResponseResult { + impl PostGetCompressedMintTokenHoldersResponseResult { + pub fn builder() -> builder::PostGetCompressedMintTokenHoldersResponseResult { Default::default() } } - ///`PostGetCompressedAccountsByOwnerV2Body` + ///`PostGetCompressedTokenAccountBalanceBody` /// ///
JSON schema /// @@ -8566,30 +8915,24 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedAccountsByOwnerV2" + /// "getCompressedTokenAccountBalance" /// ] /// }, /// "params": { - /// "type": "object", - /// "required": [ - /// "owner" + /// "description": "Request for compressed account data", + /// "default": { + /// "address": null, + /// "hash": "11111111111111111111111111111111" + /// }, + /// "examples": [ + /// { + /// "address": null, + /// "hash": "11111111111111111111111111111111" + /// } /// ], + /// "type": "object", /// "properties": { - /// "cursor": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/Hash" - /// } - /// ] - /// } - /// ] - /// }, - /// "dataSlice": { + /// "address": { /// "oneOf": [ /// { /// "type": "null" @@ -8597,19 +8940,13 @@ All endpoints return AccountV2.*/ /// { /// "allOf": [ /// { - /// "$ref": "#/components/schemas/DataSlice" + /// "$ref": "#/components/schemas/SerializablePubkey" /// } /// ] /// } /// ] /// }, - /// "filters": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/FilterSelector" - /// } - /// }, - /// "limit": { + /// "hash": { /// "oneOf": [ /// { /// "type": "null" @@ -8617,14 +8954,11 @@ All endpoints return AccountV2.*/ /// { /// "allOf": [ /// { - /// "$ref": "#/components/schemas/Limit" + /// "$ref": "#/components/schemas/Hash" /// } /// ] /// } /// ] - /// }, - /// "owner": { - /// "$ref": "#/components/schemas/SerializablePubkey" /// } /// }, /// "additionalProperties": false @@ -8634,17 +8968,17 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedAccountsByOwnerV2Body { + pub struct PostGetCompressedTokenAccountBalanceBody { ///An ID to identify the request. - pub id: PostGetCompressedAccountsByOwnerV2BodyId, + pub id: PostGetCompressedTokenAccountBalanceBodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedAccountsByOwnerV2BodyJsonrpc, + pub jsonrpc: PostGetCompressedTokenAccountBalanceBodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetCompressedAccountsByOwnerV2BodyMethod, - pub params: PostGetCompressedAccountsByOwnerV2BodyParams, + pub method: PostGetCompressedTokenAccountBalanceBodyMethod, + pub params: PostGetCompressedTokenAccountBalanceBodyParams, } - impl PostGetCompressedAccountsByOwnerV2Body { - pub fn builder() -> builder::PostGetCompressedAccountsByOwnerV2Body { + impl PostGetCompressedTokenAccountBalanceBody { + pub fn builder() -> builder::PostGetCompressedTokenAccountBalanceBody { Default::default() } } @@ -8674,18 +9008,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountsByOwnerV2BodyId { + pub enum PostGetCompressedTokenAccountBalanceBodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedAccountsByOwnerV2BodyId { + impl ::std::fmt::Display for PostGetCompressedTokenAccountBalanceBodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountsByOwnerV2BodyId { + impl ::std::str::FromStr for PostGetCompressedTokenAccountBalanceBodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -8696,7 +9030,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountsByOwnerV2BodyId { + impl ::std::convert::TryFrom<&str> for PostGetCompressedTokenAccountBalanceBodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -8705,7 +9039,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountsByOwnerV2BodyId { + for PostGetCompressedTokenAccountBalanceBodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -8714,7 +9048,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountsByOwnerV2BodyId { + for PostGetCompressedTokenAccountBalanceBodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -8748,18 +9082,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountsByOwnerV2BodyJsonrpc { + pub enum PostGetCompressedTokenAccountBalanceBodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedAccountsByOwnerV2BodyJsonrpc { + impl ::std::fmt::Display for PostGetCompressedTokenAccountBalanceBodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountsByOwnerV2BodyJsonrpc { + impl ::std::str::FromStr for PostGetCompressedTokenAccountBalanceBodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -8771,7 +9105,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedAccountsByOwnerV2BodyJsonrpc { + for PostGetCompressedTokenAccountBalanceBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -8780,7 +9114,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountsByOwnerV2BodyJsonrpc { + for PostGetCompressedTokenAccountBalanceBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -8789,7 +9123,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountsByOwnerV2BodyJsonrpc { + for PostGetCompressedTokenAccountBalanceBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -8806,7 +9140,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedAccountsByOwnerV2" + /// "getCompressedTokenAccountBalance" /// ] ///} /// ``` @@ -8823,33 +9157,34 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountsByOwnerV2BodyMethod { - #[serde(rename = "getCompressedAccountsByOwnerV2")] - GetCompressedAccountsByOwnerV2, + pub enum PostGetCompressedTokenAccountBalanceBodyMethod { + #[serde(rename = "getCompressedTokenAccountBalance")] + GetCompressedTokenAccountBalance, } - impl ::std::fmt::Display for PostGetCompressedAccountsByOwnerV2BodyMethod { + impl ::std::fmt::Display for PostGetCompressedTokenAccountBalanceBodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetCompressedAccountsByOwnerV2 => { - f.write_str("getCompressedAccountsByOwnerV2") + Self::GetCompressedTokenAccountBalance => { + f.write_str("getCompressedTokenAccountBalance") } } } } - impl ::std::str::FromStr for PostGetCompressedAccountsByOwnerV2BodyMethod { + impl ::std::str::FromStr for PostGetCompressedTokenAccountBalanceBodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getCompressedAccountsByOwnerV2" => { - Ok(Self::GetCompressedAccountsByOwnerV2) + "getCompressedTokenAccountBalance" => { + Ok(Self::GetCompressedTokenAccountBalance) } _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountsByOwnerV2BodyMethod { + impl ::std::convert::TryFrom<&str> + for PostGetCompressedTokenAccountBalanceBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -8858,7 +9193,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountsByOwnerV2BodyMethod { + for PostGetCompressedTokenAccountBalanceBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -8867,7 +9202,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountsByOwnerV2BodyMethod { + for PostGetCompressedTokenAccountBalanceBodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -8875,32 +9210,26 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedAccountsByOwnerV2BodyParams` + ///Request for compressed account data /// ///
JSON schema /// /// ```json ///{ - /// "type": "object", - /// "required": [ - /// "owner" + /// "description": "Request for compressed account data", + /// "default": { + /// "address": null, + /// "hash": "11111111111111111111111111111111" + /// }, + /// "examples": [ + /// { + /// "address": null, + /// "hash": "11111111111111111111111111111111" + /// } /// ], + /// "type": "object", /// "properties": { - /// "cursor": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/Hash" - /// } - /// ] - /// } - /// ] - /// }, - /// "dataSlice": { + /// "address": { /// "oneOf": [ /// { /// "type": "null" @@ -8908,19 +9237,13 @@ All endpoints return AccountV2.*/ /// { /// "allOf": [ /// { - /// "$ref": "#/components/schemas/DataSlice" + /// "$ref": "#/components/schemas/SerializablePubkey" /// } /// ] /// } /// ] /// }, - /// "filters": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/FilterSelector" - /// } - /// }, - /// "limit": { + /// "hash": { /// "oneOf": [ /// { /// "type": "null" @@ -8928,14 +9251,11 @@ All endpoints return AccountV2.*/ /// { /// "allOf": [ /// { - /// "$ref": "#/components/schemas/Limit" + /// "$ref": "#/components/schemas/Hash" /// } /// ] /// } /// ] - /// }, - /// "owner": { - /// "$ref": "#/components/schemas/SerializablePubkey" /// } /// }, /// "additionalProperties": false @@ -8944,27 +9264,28 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressedAccountsByOwnerV2BodyParams { + pub struct PostGetCompressedTokenAccountBalanceBodyParams { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub cursor: ::std::option::Option, - #[serde( - rename = "dataSlice", - default, - skip_serializing_if = "::std::option::Option::is_none" - )] - pub data_slice: ::std::option::Option, - #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] - pub filters: ::std::vec::Vec, + pub address: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub limit: ::std::option::Option, - pub owner: SerializablePubkey, + pub hash: ::std::option::Option, } - impl PostGetCompressedAccountsByOwnerV2BodyParams { - pub fn builder() -> builder::PostGetCompressedAccountsByOwnerV2BodyParams { + impl ::std::default::Default for PostGetCompressedTokenAccountBalanceBodyParams { + fn default() -> Self { + PostGetCompressedTokenAccountBalanceBodyParams { + address: ::std::option::Option::None, + hash: ::std::option::Option::Some( + Hash("11111111111111111111111111111111".to_string()), + ), + } + } + } + impl PostGetCompressedTokenAccountBalanceBodyParams { + pub fn builder() -> builder::PostGetCompressedTokenAccountBalanceBodyParams { Default::default() } } - ///`PostGetCompressedAccountsByOwnerV2Response` + ///`PostGetCompressedTokenAccountBalanceResponse` /// ///
JSON schema /// @@ -9012,7 +9333,7 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/PaginatedAccountListV2" + /// "$ref": "#/components/schemas/TokenAccountBalance" /// } /// }, /// "additionalProperties": false @@ -9022,26 +9343,26 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedAccountsByOwnerV2Response { + pub struct PostGetCompressedTokenAccountBalanceResponse { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub error: ::std::option::Option< - PostGetCompressedAccountsByOwnerV2ResponseError, + PostGetCompressedTokenAccountBalanceResponseError, >, ///An ID to identify the response. - pub id: PostGetCompressedAccountsByOwnerV2ResponseId, + pub id: PostGetCompressedTokenAccountBalanceResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedAccountsByOwnerV2ResponseJsonrpc, + pub jsonrpc: PostGetCompressedTokenAccountBalanceResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub result: ::std::option::Option< - PostGetCompressedAccountsByOwnerV2ResponseResult, + PostGetCompressedTokenAccountBalanceResponseResult, >, } - impl PostGetCompressedAccountsByOwnerV2Response { - pub fn builder() -> builder::PostGetCompressedAccountsByOwnerV2Response { + impl PostGetCompressedTokenAccountBalanceResponse { + pub fn builder() -> builder::PostGetCompressedTokenAccountBalanceResponse { Default::default() } } - ///`PostGetCompressedAccountsByOwnerV2ResponseError` + ///`PostGetCompressedTokenAccountBalanceResponseError` /// ///
JSON schema /// @@ -9060,13 +9381,13 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedAccountsByOwnerV2ResponseError { + pub struct PostGetCompressedTokenAccountBalanceResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default for PostGetCompressedAccountsByOwnerV2ResponseError { + impl ::std::default::Default for PostGetCompressedTokenAccountBalanceResponseError { fn default() -> Self { Self { code: Default::default(), @@ -9074,8 +9395,8 @@ All endpoints return AccountV2.*/ } } } - impl PostGetCompressedAccountsByOwnerV2ResponseError { - pub fn builder() -> builder::PostGetCompressedAccountsByOwnerV2ResponseError { + impl PostGetCompressedTokenAccountBalanceResponseError { + pub fn builder() -> builder::PostGetCompressedTokenAccountBalanceResponseError { Default::default() } } @@ -9105,18 +9426,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountsByOwnerV2ResponseId { + pub enum PostGetCompressedTokenAccountBalanceResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedAccountsByOwnerV2ResponseId { + impl ::std::fmt::Display for PostGetCompressedTokenAccountBalanceResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountsByOwnerV2ResponseId { + impl ::std::str::FromStr for PostGetCompressedTokenAccountBalanceResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -9127,7 +9448,8 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedAccountsByOwnerV2ResponseId { + impl ::std::convert::TryFrom<&str> + for PostGetCompressedTokenAccountBalanceResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -9136,7 +9458,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountsByOwnerV2ResponseId { + for PostGetCompressedTokenAccountBalanceResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -9145,7 +9467,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountsByOwnerV2ResponseId { + for PostGetCompressedTokenAccountBalanceResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -9179,18 +9501,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedAccountsByOwnerV2ResponseJsonrpc { + pub enum PostGetCompressedTokenAccountBalanceResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedAccountsByOwnerV2ResponseJsonrpc { + impl ::std::fmt::Display for PostGetCompressedTokenAccountBalanceResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedAccountsByOwnerV2ResponseJsonrpc { + impl ::std::str::FromStr for PostGetCompressedTokenAccountBalanceResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -9202,7 +9524,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedAccountsByOwnerV2ResponseJsonrpc { + for PostGetCompressedTokenAccountBalanceResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -9211,7 +9533,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedAccountsByOwnerV2ResponseJsonrpc { + for PostGetCompressedTokenAccountBalanceResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -9220,7 +9542,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedAccountsByOwnerV2ResponseJsonrpc { + for PostGetCompressedTokenAccountBalanceResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -9228,7 +9550,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedAccountsByOwnerV2ResponseResult` + ///`PostGetCompressedTokenAccountBalanceResponseResult` /// ///
JSON schema /// @@ -9244,7 +9566,7 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/PaginatedAccountListV2" + /// "$ref": "#/components/schemas/TokenAccountBalance" /// } /// }, /// "additionalProperties": false @@ -9253,16 +9575,16 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressedAccountsByOwnerV2ResponseResult { + pub struct PostGetCompressedTokenAccountBalanceResponseResult { pub context: Context, - pub value: PaginatedAccountListV2, + pub value: TokenAccountBalance, } - impl PostGetCompressedAccountsByOwnerV2ResponseResult { - pub fn builder() -> builder::PostGetCompressedAccountsByOwnerV2ResponseResult { + impl PostGetCompressedTokenAccountBalanceResponseResult { + pub fn builder() -> builder::PostGetCompressedTokenAccountBalanceResponseResult { Default::default() } } - ///`PostGetCompressedBalanceByOwnerBody` + ///`PostGetCompressedTokenAccountsByDelegateBody` /// ///
JSON schema /// @@ -9294,36 +9616,79 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedBalanceByOwner" + /// "getCompressedTokenAccountsByDelegate" /// ] /// }, /// "params": { /// "type": "object", /// "required": [ - /// "owner" + /// "delegate" /// ], /// "properties": { - /// "owner": { + /// "cursor": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/Base58String" + /// } + /// ] + /// } + /// ] + /// }, + /// "delegate": { /// "$ref": "#/components/schemas/SerializablePubkey" + /// }, + /// "limit": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/Limit" + /// } + /// ] + /// } + /// ] + /// }, + /// "mint": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/SerializablePubkey" + /// } + /// ] + /// } + /// ] /// } - /// } + /// }, + /// "additionalProperties": false /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedBalanceByOwnerBody { + pub struct PostGetCompressedTokenAccountsByDelegateBody { ///An ID to identify the request. - pub id: PostGetCompressedBalanceByOwnerBodyId, + pub id: PostGetCompressedTokenAccountsByDelegateBodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedBalanceByOwnerBodyJsonrpc, + pub jsonrpc: PostGetCompressedTokenAccountsByDelegateBodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetCompressedBalanceByOwnerBodyMethod, - pub params: PostGetCompressedBalanceByOwnerBodyParams, + pub method: PostGetCompressedTokenAccountsByDelegateBodyMethod, + pub params: PostGetCompressedTokenAccountsByDelegateBodyParams, } - impl PostGetCompressedBalanceByOwnerBody { - pub fn builder() -> builder::PostGetCompressedBalanceByOwnerBody { + impl PostGetCompressedTokenAccountsByDelegateBody { + pub fn builder() -> builder::PostGetCompressedTokenAccountsByDelegateBody { Default::default() } } @@ -9353,18 +9718,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedBalanceByOwnerBodyId { + pub enum PostGetCompressedTokenAccountsByDelegateBodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedBalanceByOwnerBodyId { + impl ::std::fmt::Display for PostGetCompressedTokenAccountsByDelegateBodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedBalanceByOwnerBodyId { + impl ::std::str::FromStr for PostGetCompressedTokenAccountsByDelegateBodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -9375,7 +9740,8 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedBalanceByOwnerBodyId { + impl ::std::convert::TryFrom<&str> + for PostGetCompressedTokenAccountsByDelegateBodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -9384,7 +9750,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedBalanceByOwnerBodyId { + for PostGetCompressedTokenAccountsByDelegateBodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -9393,7 +9759,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedBalanceByOwnerBodyId { + for PostGetCompressedTokenAccountsByDelegateBodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -9427,18 +9793,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedBalanceByOwnerBodyJsonrpc { + pub enum PostGetCompressedTokenAccountsByDelegateBodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedBalanceByOwnerBodyJsonrpc { + impl ::std::fmt::Display for PostGetCompressedTokenAccountsByDelegateBodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedBalanceByOwnerBodyJsonrpc { + impl ::std::str::FromStr for PostGetCompressedTokenAccountsByDelegateBodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -9449,7 +9815,8 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedBalanceByOwnerBodyJsonrpc { + impl ::std::convert::TryFrom<&str> + for PostGetCompressedTokenAccountsByDelegateBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -9458,7 +9825,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedBalanceByOwnerBodyJsonrpc { + for PostGetCompressedTokenAccountsByDelegateBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -9467,7 +9834,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedBalanceByOwnerBodyJsonrpc { + for PostGetCompressedTokenAccountsByDelegateBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -9484,7 +9851,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedBalanceByOwner" + /// "getCompressedTokenAccountsByDelegate" /// ] ///} /// ``` @@ -9501,31 +9868,34 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedBalanceByOwnerBodyMethod { - #[serde(rename = "getCompressedBalanceByOwner")] - GetCompressedBalanceByOwner, + pub enum PostGetCompressedTokenAccountsByDelegateBodyMethod { + #[serde(rename = "getCompressedTokenAccountsByDelegate")] + GetCompressedTokenAccountsByDelegate, } - impl ::std::fmt::Display for PostGetCompressedBalanceByOwnerBodyMethod { + impl ::std::fmt::Display for PostGetCompressedTokenAccountsByDelegateBodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetCompressedBalanceByOwner => { - f.write_str("getCompressedBalanceByOwner") + Self::GetCompressedTokenAccountsByDelegate => { + f.write_str("getCompressedTokenAccountsByDelegate") } } } } - impl ::std::str::FromStr for PostGetCompressedBalanceByOwnerBodyMethod { + impl ::std::str::FromStr for PostGetCompressedTokenAccountsByDelegateBodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getCompressedBalanceByOwner" => Ok(Self::GetCompressedBalanceByOwner), + "getCompressedTokenAccountsByDelegate" => { + Ok(Self::GetCompressedTokenAccountsByDelegate) + } _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedBalanceByOwnerBodyMethod { + impl ::std::convert::TryFrom<&str> + for PostGetCompressedTokenAccountsByDelegateBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -9534,7 +9904,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedBalanceByOwnerBodyMethod { + for PostGetCompressedTokenAccountsByDelegateBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -9543,7 +9913,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedBalanceByOwnerBodyMethod { + for PostGetCompressedTokenAccountsByDelegateBodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -9551,7 +9921,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedBalanceByOwnerBodyParams` + ///`PostGetCompressedTokenAccountsByDelegateBodyParams` /// ///
JSON schema /// @@ -9559,26 +9929,76 @@ All endpoints return AccountV2.*/ ///{ /// "type": "object", /// "required": [ - /// "owner" + /// "delegate" /// ], /// "properties": { - /// "owner": { + /// "cursor": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/Base58String" + /// } + /// ] + /// } + /// ] + /// }, + /// "delegate": { /// "$ref": "#/components/schemas/SerializablePubkey" + /// }, + /// "limit": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/Limit" + /// } + /// ] + /// } + /// ] + /// }, + /// "mint": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/SerializablePubkey" + /// } + /// ] + /// } + /// ] /// } - /// } + /// }, + /// "additionalProperties": false ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedBalanceByOwnerBodyParams { - pub owner: SerializablePubkey, + #[serde(deny_unknown_fields)] + pub struct PostGetCompressedTokenAccountsByDelegateBodyParams { + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub cursor: ::std::option::Option, + pub delegate: SerializablePubkey, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub limit: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub mint: ::std::option::Option, } - impl PostGetCompressedBalanceByOwnerBodyParams { - pub fn builder() -> builder::PostGetCompressedBalanceByOwnerBodyParams { + impl PostGetCompressedTokenAccountsByDelegateBodyParams { + pub fn builder() -> builder::PostGetCompressedTokenAccountsByDelegateBodyParams { Default::default() } } - ///`PostGetCompressedBalanceByOwnerResponse` + ///`PostGetCompressedTokenAccountsByDelegateResponse` /// ///
JSON schema /// @@ -9626,7 +10046,7 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/UnsignedInteger" + /// "$ref": "#/components/schemas/TokenAccountList" /// } /// }, /// "additionalProperties": false @@ -9636,22 +10056,26 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedBalanceByOwnerResponse { + pub struct PostGetCompressedTokenAccountsByDelegateResponse { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option, + pub error: ::std::option::Option< + PostGetCompressedTokenAccountsByDelegateResponseError, + >, ///An ID to identify the response. - pub id: PostGetCompressedBalanceByOwnerResponseId, + pub id: PostGetCompressedTokenAccountsByDelegateResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedBalanceByOwnerResponseJsonrpc, + pub jsonrpc: PostGetCompressedTokenAccountsByDelegateResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub result: ::std::option::Option, + pub result: ::std::option::Option< + PostGetCompressedTokenAccountsByDelegateResponseResult, + >, } - impl PostGetCompressedBalanceByOwnerResponse { - pub fn builder() -> builder::PostGetCompressedBalanceByOwnerResponse { + impl PostGetCompressedTokenAccountsByDelegateResponse { + pub fn builder() -> builder::PostGetCompressedTokenAccountsByDelegateResponse { Default::default() } } - ///`PostGetCompressedBalanceByOwnerResponseError` + ///`PostGetCompressedTokenAccountsByDelegateResponseError` /// ///
JSON schema /// @@ -9670,13 +10094,14 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedBalanceByOwnerResponseError { + pub struct PostGetCompressedTokenAccountsByDelegateResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default for PostGetCompressedBalanceByOwnerResponseError { + impl ::std::default::Default + for PostGetCompressedTokenAccountsByDelegateResponseError { fn default() -> Self { Self { code: Default::default(), @@ -9684,8 +10109,8 @@ All endpoints return AccountV2.*/ } } } - impl PostGetCompressedBalanceByOwnerResponseError { - pub fn builder() -> builder::PostGetCompressedBalanceByOwnerResponseError { + impl PostGetCompressedTokenAccountsByDelegateResponseError { + pub fn builder() -> builder::PostGetCompressedTokenAccountsByDelegateResponseError { Default::default() } } @@ -9715,18 +10140,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedBalanceByOwnerResponseId { + pub enum PostGetCompressedTokenAccountsByDelegateResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedBalanceByOwnerResponseId { + impl ::std::fmt::Display for PostGetCompressedTokenAccountsByDelegateResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedBalanceByOwnerResponseId { + impl ::std::str::FromStr for PostGetCompressedTokenAccountsByDelegateResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -9737,7 +10162,8 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedBalanceByOwnerResponseId { + impl ::std::convert::TryFrom<&str> + for PostGetCompressedTokenAccountsByDelegateResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -9746,7 +10172,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedBalanceByOwnerResponseId { + for PostGetCompressedTokenAccountsByDelegateResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -9755,7 +10181,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedBalanceByOwnerResponseId { + for PostGetCompressedTokenAccountsByDelegateResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -9789,18 +10215,20 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedBalanceByOwnerResponseJsonrpc { + pub enum PostGetCompressedTokenAccountsByDelegateResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedBalanceByOwnerResponseJsonrpc { + impl ::std::fmt::Display + for PostGetCompressedTokenAccountsByDelegateResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedBalanceByOwnerResponseJsonrpc { + impl ::std::str::FromStr + for PostGetCompressedTokenAccountsByDelegateResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -9812,7 +10240,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedBalanceByOwnerResponseJsonrpc { + for PostGetCompressedTokenAccountsByDelegateResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -9821,7 +10249,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedBalanceByOwnerResponseJsonrpc { + for PostGetCompressedTokenAccountsByDelegateResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -9830,7 +10258,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedBalanceByOwnerResponseJsonrpc { + for PostGetCompressedTokenAccountsByDelegateResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -9838,7 +10266,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedBalanceByOwnerResponseResult` + ///`PostGetCompressedTokenAccountsByDelegateResponseResult` /// ///
JSON schema /// @@ -9854,7 +10282,7 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/UnsignedInteger" + /// "$ref": "#/components/schemas/TokenAccountList" /// } /// }, /// "additionalProperties": false @@ -9863,16 +10291,16 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressedBalanceByOwnerResponseResult { + pub struct PostGetCompressedTokenAccountsByDelegateResponseResult { pub context: Context, - pub value: UnsignedInteger, + pub value: TokenAccountList, } - impl PostGetCompressedBalanceByOwnerResponseResult { - pub fn builder() -> builder::PostGetCompressedBalanceByOwnerResponseResult { + impl PostGetCompressedTokenAccountsByDelegateResponseResult { + pub fn builder() -> builder::PostGetCompressedTokenAccountsByDelegateResponseResult { Default::default() } } - ///`PostGetCompressedMintTokenHoldersBody` + ///`PostGetCompressedTokenAccountsByDelegateV2Body` /// ///
JSON schema /// @@ -9904,13 +10332,13 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedMintTokenHolders" + /// "getCompressedTokenAccountsByDelegateV2" /// ] /// }, /// "params": { /// "type": "object", /// "required": [ - /// "mint" + /// "delegate" /// ], /// "properties": { /// "cursor": { @@ -9927,6 +10355,9 @@ All endpoints return AccountV2.*/ /// } /// ] /// }, + /// "delegate": { + /// "$ref": "#/components/schemas/SerializablePubkey" + /// }, /// "limit": { /// "oneOf": [ /// { @@ -9942,7 +10373,18 @@ All endpoints return AccountV2.*/ /// ] /// }, /// "mint": { - /// "$ref": "#/components/schemas/SerializablePubkey" + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/SerializablePubkey" + /// } + /// ] + /// } + /// ] /// } /// }, /// "additionalProperties": false @@ -9952,17 +10394,17 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedMintTokenHoldersBody { + pub struct PostGetCompressedTokenAccountsByDelegateV2Body { ///An ID to identify the request. - pub id: PostGetCompressedMintTokenHoldersBodyId, + pub id: PostGetCompressedTokenAccountsByDelegateV2BodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedMintTokenHoldersBodyJsonrpc, + pub jsonrpc: PostGetCompressedTokenAccountsByDelegateV2BodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetCompressedMintTokenHoldersBodyMethod, - pub params: PostGetCompressedMintTokenHoldersBodyParams, + pub method: PostGetCompressedTokenAccountsByDelegateV2BodyMethod, + pub params: PostGetCompressedTokenAccountsByDelegateV2BodyParams, } - impl PostGetCompressedMintTokenHoldersBody { - pub fn builder() -> builder::PostGetCompressedMintTokenHoldersBody { + impl PostGetCompressedTokenAccountsByDelegateV2Body { + pub fn builder() -> builder::PostGetCompressedTokenAccountsByDelegateV2Body { Default::default() } } @@ -9992,18 +10434,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedMintTokenHoldersBodyId { + pub enum PostGetCompressedTokenAccountsByDelegateV2BodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedMintTokenHoldersBodyId { + impl ::std::fmt::Display for PostGetCompressedTokenAccountsByDelegateV2BodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedMintTokenHoldersBodyId { + impl ::std::str::FromStr for PostGetCompressedTokenAccountsByDelegateV2BodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -10014,7 +10456,8 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedMintTokenHoldersBodyId { + impl ::std::convert::TryFrom<&str> + for PostGetCompressedTokenAccountsByDelegateV2BodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -10023,7 +10466,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedMintTokenHoldersBodyId { + for PostGetCompressedTokenAccountsByDelegateV2BodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -10032,7 +10475,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedMintTokenHoldersBodyId { + for PostGetCompressedTokenAccountsByDelegateV2BodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -10066,18 +10509,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedMintTokenHoldersBodyJsonrpc { + pub enum PostGetCompressedTokenAccountsByDelegateV2BodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedMintTokenHoldersBodyJsonrpc { + impl ::std::fmt::Display for PostGetCompressedTokenAccountsByDelegateV2BodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedMintTokenHoldersBodyJsonrpc { + impl ::std::str::FromStr for PostGetCompressedTokenAccountsByDelegateV2BodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -10088,7 +10531,8 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedMintTokenHoldersBodyJsonrpc { + impl ::std::convert::TryFrom<&str> + for PostGetCompressedTokenAccountsByDelegateV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -10097,7 +10541,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedMintTokenHoldersBodyJsonrpc { + for PostGetCompressedTokenAccountsByDelegateV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -10106,7 +10550,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedMintTokenHoldersBodyJsonrpc { + for PostGetCompressedTokenAccountsByDelegateV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -10123,7 +10567,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedMintTokenHolders" + /// "getCompressedTokenAccountsByDelegateV2" /// ] ///} /// ``` @@ -10140,33 +10584,34 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedMintTokenHoldersBodyMethod { - #[serde(rename = "getCompressedMintTokenHolders")] - GetCompressedMintTokenHolders, + pub enum PostGetCompressedTokenAccountsByDelegateV2BodyMethod { + #[serde(rename = "getCompressedTokenAccountsByDelegateV2")] + GetCompressedTokenAccountsByDelegateV2, } - impl ::std::fmt::Display for PostGetCompressedMintTokenHoldersBodyMethod { + impl ::std::fmt::Display for PostGetCompressedTokenAccountsByDelegateV2BodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetCompressedMintTokenHolders => { - f.write_str("getCompressedMintTokenHolders") + Self::GetCompressedTokenAccountsByDelegateV2 => { + f.write_str("getCompressedTokenAccountsByDelegateV2") } } } } - impl ::std::str::FromStr for PostGetCompressedMintTokenHoldersBodyMethod { + impl ::std::str::FromStr for PostGetCompressedTokenAccountsByDelegateV2BodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getCompressedMintTokenHolders" => { - Ok(Self::GetCompressedMintTokenHolders) + "getCompressedTokenAccountsByDelegateV2" => { + Ok(Self::GetCompressedTokenAccountsByDelegateV2) } _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedMintTokenHoldersBodyMethod { + impl ::std::convert::TryFrom<&str> + for PostGetCompressedTokenAccountsByDelegateV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -10175,7 +10620,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedMintTokenHoldersBodyMethod { + for PostGetCompressedTokenAccountsByDelegateV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -10184,7 +10629,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedMintTokenHoldersBodyMethod { + for PostGetCompressedTokenAccountsByDelegateV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -10192,7 +10637,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedMintTokenHoldersBodyParams` + ///`PostGetCompressedTokenAccountsByDelegateV2BodyParams` /// ///
JSON schema /// @@ -10200,7 +10645,7 @@ All endpoints return AccountV2.*/ ///{ /// "type": "object", /// "required": [ - /// "mint" + /// "delegate" /// ], /// "properties": { /// "cursor": { @@ -10217,6 +10662,9 @@ All endpoints return AccountV2.*/ /// } /// ] /// }, + /// "delegate": { + /// "$ref": "#/components/schemas/SerializablePubkey" + /// }, /// "limit": { /// "oneOf": [ /// { @@ -10232,7 +10680,18 @@ All endpoints return AccountV2.*/ /// ] /// }, /// "mint": { - /// "$ref": "#/components/schemas/SerializablePubkey" + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/SerializablePubkey" + /// } + /// ] + /// } + /// ] /// } /// }, /// "additionalProperties": false @@ -10241,19 +10700,21 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressedMintTokenHoldersBodyParams { + pub struct PostGetCompressedTokenAccountsByDelegateV2BodyParams { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub cursor: ::std::option::Option, + pub delegate: SerializablePubkey, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub limit: ::std::option::Option, - pub mint: SerializablePubkey, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub mint: ::std::option::Option, } - impl PostGetCompressedMintTokenHoldersBodyParams { - pub fn builder() -> builder::PostGetCompressedMintTokenHoldersBodyParams { + impl PostGetCompressedTokenAccountsByDelegateV2BodyParams { + pub fn builder() -> builder::PostGetCompressedTokenAccountsByDelegateV2BodyParams { Default::default() } } - ///`PostGetCompressedMintTokenHoldersResponse` + ///`PostGetCompressedTokenAccountsByDelegateV2Response` /// ///
JSON schema /// @@ -10301,7 +10762,7 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/OwnerBalanceList" + /// "$ref": "#/components/schemas/TokenAccountListV2" /// } /// }, /// "additionalProperties": false @@ -10311,24 +10772,26 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedMintTokenHoldersResponse { + pub struct PostGetCompressedTokenAccountsByDelegateV2Response { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option, + pub error: ::std::option::Option< + PostGetCompressedTokenAccountsByDelegateV2ResponseError, + >, ///An ID to identify the response. - pub id: PostGetCompressedMintTokenHoldersResponseId, + pub id: PostGetCompressedTokenAccountsByDelegateV2ResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedMintTokenHoldersResponseJsonrpc, + pub jsonrpc: PostGetCompressedTokenAccountsByDelegateV2ResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub result: ::std::option::Option< - PostGetCompressedMintTokenHoldersResponseResult, + PostGetCompressedTokenAccountsByDelegateV2ResponseResult, >, } - impl PostGetCompressedMintTokenHoldersResponse { - pub fn builder() -> builder::PostGetCompressedMintTokenHoldersResponse { + impl PostGetCompressedTokenAccountsByDelegateV2Response { + pub fn builder() -> builder::PostGetCompressedTokenAccountsByDelegateV2Response { Default::default() } } - ///`PostGetCompressedMintTokenHoldersResponseError` + ///`PostGetCompressedTokenAccountsByDelegateV2ResponseError` /// ///
JSON schema /// @@ -10347,13 +10810,14 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedMintTokenHoldersResponseError { + pub struct PostGetCompressedTokenAccountsByDelegateV2ResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default for PostGetCompressedMintTokenHoldersResponseError { + impl ::std::default::Default + for PostGetCompressedTokenAccountsByDelegateV2ResponseError { fn default() -> Self { Self { code: Default::default(), @@ -10361,8 +10825,8 @@ All endpoints return AccountV2.*/ } } } - impl PostGetCompressedMintTokenHoldersResponseError { - pub fn builder() -> builder::PostGetCompressedMintTokenHoldersResponseError { + impl PostGetCompressedTokenAccountsByDelegateV2ResponseError { + pub fn builder() -> builder::PostGetCompressedTokenAccountsByDelegateV2ResponseError { Default::default() } } @@ -10392,18 +10856,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedMintTokenHoldersResponseId { + pub enum PostGetCompressedTokenAccountsByDelegateV2ResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedMintTokenHoldersResponseId { + impl ::std::fmt::Display for PostGetCompressedTokenAccountsByDelegateV2ResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedMintTokenHoldersResponseId { + impl ::std::str::FromStr for PostGetCompressedTokenAccountsByDelegateV2ResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -10414,7 +10878,8 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedMintTokenHoldersResponseId { + impl ::std::convert::TryFrom<&str> + for PostGetCompressedTokenAccountsByDelegateV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -10423,7 +10888,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedMintTokenHoldersResponseId { + for PostGetCompressedTokenAccountsByDelegateV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -10432,7 +10897,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedMintTokenHoldersResponseId { + for PostGetCompressedTokenAccountsByDelegateV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -10466,18 +10931,20 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedMintTokenHoldersResponseJsonrpc { + pub enum PostGetCompressedTokenAccountsByDelegateV2ResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedMintTokenHoldersResponseJsonrpc { + impl ::std::fmt::Display + for PostGetCompressedTokenAccountsByDelegateV2ResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedMintTokenHoldersResponseJsonrpc { + impl ::std::str::FromStr + for PostGetCompressedTokenAccountsByDelegateV2ResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -10489,7 +10956,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedMintTokenHoldersResponseJsonrpc { + for PostGetCompressedTokenAccountsByDelegateV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -10498,7 +10965,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedMintTokenHoldersResponseJsonrpc { + for PostGetCompressedTokenAccountsByDelegateV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -10507,7 +10974,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedMintTokenHoldersResponseJsonrpc { + for PostGetCompressedTokenAccountsByDelegateV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -10515,7 +10982,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedMintTokenHoldersResponseResult` + ///`PostGetCompressedTokenAccountsByDelegateV2ResponseResult` /// ///
JSON schema /// @@ -10531,7 +10998,7 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/OwnerBalanceList" + /// "$ref": "#/components/schemas/TokenAccountListV2" /// } /// }, /// "additionalProperties": false @@ -10540,16 +11007,16 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressedMintTokenHoldersResponseResult { + pub struct PostGetCompressedTokenAccountsByDelegateV2ResponseResult { pub context: Context, - pub value: OwnerBalanceList, + pub value: TokenAccountListV2, } - impl PostGetCompressedMintTokenHoldersResponseResult { - pub fn builder() -> builder::PostGetCompressedMintTokenHoldersResponseResult { + impl PostGetCompressedTokenAccountsByDelegateV2ResponseResult { + pub fn builder() -> builder::PostGetCompressedTokenAccountsByDelegateV2ResponseResult { Default::default() } } - ///`PostGetCompressedTokenAccountBalanceBody` + ///`PostGetCompressedTokenAccountsByOwnerBody` /// ///
JSON schema /// @@ -10581,24 +11048,16 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedTokenAccountBalance" + /// "getCompressedTokenAccountsByOwner" /// ] /// }, /// "params": { - /// "description": "Request for compressed account data", - /// "default": { - /// "address": null, - /// "hash": "11111111111111111111111111111111" - /// }, - /// "examples": [ - /// { - /// "address": null, - /// "hash": "11111111111111111111111111111111" - /// } - /// ], /// "type": "object", + /// "required": [ + /// "owner" + /// ], /// "properties": { - /// "address": { + /// "cursor": { /// "oneOf": [ /// { /// "type": "null" @@ -10606,13 +11065,13 @@ All endpoints return AccountV2.*/ /// { /// "allOf": [ /// { - /// "$ref": "#/components/schemas/SerializablePubkey" + /// "$ref": "#/components/schemas/Base58String" /// } /// ] /// } /// ] /// }, - /// "hash": { + /// "limit": { /// "oneOf": [ /// { /// "type": "null" @@ -10620,11 +11079,28 @@ All endpoints return AccountV2.*/ /// { /// "allOf": [ /// { - /// "$ref": "#/components/schemas/Hash" + /// "$ref": "#/components/schemas/Limit" + /// } + /// ] + /// } + /// ] + /// }, + /// "mint": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/SerializablePubkey" /// } /// ] /// } /// ] + /// }, + /// "owner": { + /// "$ref": "#/components/schemas/SerializablePubkey" /// } /// }, /// "additionalProperties": false @@ -10634,17 +11110,17 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedTokenAccountBalanceBody { + pub struct PostGetCompressedTokenAccountsByOwnerBody { ///An ID to identify the request. - pub id: PostGetCompressedTokenAccountBalanceBodyId, + pub id: PostGetCompressedTokenAccountsByOwnerBodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedTokenAccountBalanceBodyJsonrpc, + pub jsonrpc: PostGetCompressedTokenAccountsByOwnerBodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetCompressedTokenAccountBalanceBodyMethod, - pub params: PostGetCompressedTokenAccountBalanceBodyParams, + pub method: PostGetCompressedTokenAccountsByOwnerBodyMethod, + pub params: PostGetCompressedTokenAccountsByOwnerBodyParams, } - impl PostGetCompressedTokenAccountBalanceBody { - pub fn builder() -> builder::PostGetCompressedTokenAccountBalanceBody { + impl PostGetCompressedTokenAccountsByOwnerBody { + pub fn builder() -> builder::PostGetCompressedTokenAccountsByOwnerBody { Default::default() } } @@ -10674,18 +11150,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenAccountBalanceBodyId { + pub enum PostGetCompressedTokenAccountsByOwnerBodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedTokenAccountBalanceBodyId { + impl ::std::fmt::Display for PostGetCompressedTokenAccountsByOwnerBodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedTokenAccountBalanceBodyId { + impl ::std::str::FromStr for PostGetCompressedTokenAccountsByOwnerBodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -10696,7 +11172,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedTokenAccountBalanceBodyId { + impl ::std::convert::TryFrom<&str> for PostGetCompressedTokenAccountsByOwnerBodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -10705,7 +11181,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenAccountBalanceBodyId { + for PostGetCompressedTokenAccountsByOwnerBodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -10714,7 +11190,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenAccountBalanceBodyId { + for PostGetCompressedTokenAccountsByOwnerBodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -10748,18 +11224,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenAccountBalanceBodyJsonrpc { + pub enum PostGetCompressedTokenAccountsByOwnerBodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedTokenAccountBalanceBodyJsonrpc { + impl ::std::fmt::Display for PostGetCompressedTokenAccountsByOwnerBodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedTokenAccountBalanceBodyJsonrpc { + impl ::std::str::FromStr for PostGetCompressedTokenAccountsByOwnerBodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -10771,7 +11247,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenAccountBalanceBodyJsonrpc { + for PostGetCompressedTokenAccountsByOwnerBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -10780,7 +11256,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenAccountBalanceBodyJsonrpc { + for PostGetCompressedTokenAccountsByOwnerBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -10789,7 +11265,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenAccountBalanceBodyJsonrpc { + for PostGetCompressedTokenAccountsByOwnerBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -10806,7 +11282,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedTokenAccountBalance" + /// "getCompressedTokenAccountsByOwner" /// ] ///} /// ``` @@ -10823,34 +11299,34 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenAccountBalanceBodyMethod { - #[serde(rename = "getCompressedTokenAccountBalance")] - GetCompressedTokenAccountBalance, + pub enum PostGetCompressedTokenAccountsByOwnerBodyMethod { + #[serde(rename = "getCompressedTokenAccountsByOwner")] + GetCompressedTokenAccountsByOwner, } - impl ::std::fmt::Display for PostGetCompressedTokenAccountBalanceBodyMethod { + impl ::std::fmt::Display for PostGetCompressedTokenAccountsByOwnerBodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetCompressedTokenAccountBalance => { - f.write_str("getCompressedTokenAccountBalance") + Self::GetCompressedTokenAccountsByOwner => { + f.write_str("getCompressedTokenAccountsByOwner") } } } } - impl ::std::str::FromStr for PostGetCompressedTokenAccountBalanceBodyMethod { + impl ::std::str::FromStr for PostGetCompressedTokenAccountsByOwnerBodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getCompressedTokenAccountBalance" => { - Ok(Self::GetCompressedTokenAccountBalance) + "getCompressedTokenAccountsByOwner" => { + Ok(Self::GetCompressedTokenAccountsByOwner) } _ => Err("invalid value".into()), } } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenAccountBalanceBodyMethod { + for PostGetCompressedTokenAccountsByOwnerBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -10859,7 +11335,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenAccountBalanceBodyMethod { + for PostGetCompressedTokenAccountsByOwnerBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -10868,7 +11344,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenAccountBalanceBodyMethod { + for PostGetCompressedTokenAccountsByOwnerBodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -10876,26 +11352,18 @@ All endpoints return AccountV2.*/ value.parse() } } - ///Request for compressed account data + ///`PostGetCompressedTokenAccountsByOwnerBodyParams` /// ///
JSON schema /// /// ```json ///{ - /// "description": "Request for compressed account data", - /// "default": { - /// "address": null, - /// "hash": "11111111111111111111111111111111" - /// }, - /// "examples": [ - /// { - /// "address": null, - /// "hash": "11111111111111111111111111111111" - /// } - /// ], /// "type": "object", + /// "required": [ + /// "owner" + /// ], /// "properties": { - /// "address": { + /// "cursor": { /// "oneOf": [ /// { /// "type": "null" @@ -10903,13 +11371,13 @@ All endpoints return AccountV2.*/ /// { /// "allOf": [ /// { - /// "$ref": "#/components/schemas/SerializablePubkey" + /// "$ref": "#/components/schemas/Base58String" /// } /// ] /// } /// ] /// }, - /// "hash": { + /// "limit": { /// "oneOf": [ /// { /// "type": "null" @@ -10917,11 +11385,28 @@ All endpoints return AccountV2.*/ /// { /// "allOf": [ /// { - /// "$ref": "#/components/schemas/Hash" + /// "$ref": "#/components/schemas/Limit" /// } /// ] /// } /// ] + /// }, + /// "mint": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/SerializablePubkey" + /// } + /// ] + /// } + /// ] + /// }, + /// "owner": { + /// "$ref": "#/components/schemas/SerializablePubkey" /// } /// }, /// "additionalProperties": false @@ -10930,28 +11415,21 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressedTokenAccountBalanceBodyParams { + pub struct PostGetCompressedTokenAccountsByOwnerBodyParams { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub address: ::std::option::Option, + pub cursor: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub hash: ::std::option::Option, - } - impl ::std::default::Default for PostGetCompressedTokenAccountBalanceBodyParams { - fn default() -> Self { - PostGetCompressedTokenAccountBalanceBodyParams { - address: ::std::option::Option::None, - hash: ::std::option::Option::Some( - Hash("11111111111111111111111111111111".to_string()), - ), - } - } + pub limit: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub mint: ::std::option::Option, + pub owner: SerializablePubkey, } - impl PostGetCompressedTokenAccountBalanceBodyParams { - pub fn builder() -> builder::PostGetCompressedTokenAccountBalanceBodyParams { + impl PostGetCompressedTokenAccountsByOwnerBodyParams { + pub fn builder() -> builder::PostGetCompressedTokenAccountsByOwnerBodyParams { Default::default() } } - ///`PostGetCompressedTokenAccountBalanceResponse` + ///`PostGetCompressedTokenAccountsByOwnerResponse` /// ///
JSON schema /// @@ -10999,7 +11477,7 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/TokenAccountBalance" + /// "$ref": "#/components/schemas/TokenAccountList" /// } /// }, /// "additionalProperties": false @@ -11009,26 +11487,26 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedTokenAccountBalanceResponse { + pub struct PostGetCompressedTokenAccountsByOwnerResponse { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub error: ::std::option::Option< - PostGetCompressedTokenAccountBalanceResponseError, + PostGetCompressedTokenAccountsByOwnerResponseError, >, ///An ID to identify the response. - pub id: PostGetCompressedTokenAccountBalanceResponseId, + pub id: PostGetCompressedTokenAccountsByOwnerResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedTokenAccountBalanceResponseJsonrpc, + pub jsonrpc: PostGetCompressedTokenAccountsByOwnerResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub result: ::std::option::Option< - PostGetCompressedTokenAccountBalanceResponseResult, + PostGetCompressedTokenAccountsByOwnerResponseResult, >, } - impl PostGetCompressedTokenAccountBalanceResponse { - pub fn builder() -> builder::PostGetCompressedTokenAccountBalanceResponse { + impl PostGetCompressedTokenAccountsByOwnerResponse { + pub fn builder() -> builder::PostGetCompressedTokenAccountsByOwnerResponse { Default::default() } } - ///`PostGetCompressedTokenAccountBalanceResponseError` + ///`PostGetCompressedTokenAccountsByOwnerResponseError` /// ///
JSON schema /// @@ -11047,13 +11525,13 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedTokenAccountBalanceResponseError { + pub struct PostGetCompressedTokenAccountsByOwnerResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default for PostGetCompressedTokenAccountBalanceResponseError { + impl ::std::default::Default for PostGetCompressedTokenAccountsByOwnerResponseError { fn default() -> Self { Self { code: Default::default(), @@ -11061,8 +11539,8 @@ All endpoints return AccountV2.*/ } } } - impl PostGetCompressedTokenAccountBalanceResponseError { - pub fn builder() -> builder::PostGetCompressedTokenAccountBalanceResponseError { + impl PostGetCompressedTokenAccountsByOwnerResponseError { + pub fn builder() -> builder::PostGetCompressedTokenAccountsByOwnerResponseError { Default::default() } } @@ -11092,18 +11570,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenAccountBalanceResponseId { + pub enum PostGetCompressedTokenAccountsByOwnerResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedTokenAccountBalanceResponseId { + impl ::std::fmt::Display for PostGetCompressedTokenAccountsByOwnerResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedTokenAccountBalanceResponseId { + impl ::std::str::FromStr for PostGetCompressedTokenAccountsByOwnerResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -11115,7 +11593,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenAccountBalanceResponseId { + for PostGetCompressedTokenAccountsByOwnerResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -11124,7 +11602,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenAccountBalanceResponseId { + for PostGetCompressedTokenAccountsByOwnerResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -11133,7 +11611,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenAccountBalanceResponseId { + for PostGetCompressedTokenAccountsByOwnerResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -11167,18 +11645,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenAccountBalanceResponseJsonrpc { + pub enum PostGetCompressedTokenAccountsByOwnerResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedTokenAccountBalanceResponseJsonrpc { + impl ::std::fmt::Display for PostGetCompressedTokenAccountsByOwnerResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedTokenAccountBalanceResponseJsonrpc { + impl ::std::str::FromStr for PostGetCompressedTokenAccountsByOwnerResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -11190,7 +11668,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenAccountBalanceResponseJsonrpc { + for PostGetCompressedTokenAccountsByOwnerResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -11199,7 +11677,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenAccountBalanceResponseJsonrpc { + for PostGetCompressedTokenAccountsByOwnerResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -11208,7 +11686,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenAccountBalanceResponseJsonrpc { + for PostGetCompressedTokenAccountsByOwnerResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -11216,7 +11694,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedTokenAccountBalanceResponseResult` + ///`PostGetCompressedTokenAccountsByOwnerResponseResult` /// ///
JSON schema /// @@ -11232,7 +11710,7 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/TokenAccountBalance" + /// "$ref": "#/components/schemas/TokenAccountList" /// } /// }, /// "additionalProperties": false @@ -11241,16 +11719,16 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressedTokenAccountBalanceResponseResult { + pub struct PostGetCompressedTokenAccountsByOwnerResponseResult { pub context: Context, - pub value: TokenAccountBalance, + pub value: TokenAccountList, } - impl PostGetCompressedTokenAccountBalanceResponseResult { - pub fn builder() -> builder::PostGetCompressedTokenAccountBalanceResponseResult { + impl PostGetCompressedTokenAccountsByOwnerResponseResult { + pub fn builder() -> builder::PostGetCompressedTokenAccountsByOwnerResponseResult { Default::default() } } - ///`PostGetCompressedTokenAccountsByDelegateBody` + ///`PostGetCompressedTokenAccountsByOwnerV2Body` /// ///
JSON schema /// @@ -11282,13 +11760,13 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedTokenAccountsByDelegate" + /// "getCompressedTokenAccountsByOwnerV2" /// ] /// }, /// "params": { /// "type": "object", /// "required": [ - /// "delegate" + /// "owner" /// ], /// "properties": { /// "cursor": { @@ -11305,9 +11783,6 @@ All endpoints return AccountV2.*/ /// } /// ] /// }, - /// "delegate": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// }, /// "limit": { /// "oneOf": [ /// { @@ -11335,6 +11810,9 @@ All endpoints return AccountV2.*/ /// ] /// } /// ] + /// }, + /// "owner": { + /// "$ref": "#/components/schemas/SerializablePubkey" /// } /// }, /// "additionalProperties": false @@ -11344,17 +11822,17 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByDelegateBody { + pub struct PostGetCompressedTokenAccountsByOwnerV2Body { ///An ID to identify the request. - pub id: PostGetCompressedTokenAccountsByDelegateBodyId, + pub id: PostGetCompressedTokenAccountsByOwnerV2BodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedTokenAccountsByDelegateBodyJsonrpc, + pub jsonrpc: PostGetCompressedTokenAccountsByOwnerV2BodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetCompressedTokenAccountsByDelegateBodyMethod, - pub params: PostGetCompressedTokenAccountsByDelegateBodyParams, + pub method: PostGetCompressedTokenAccountsByOwnerV2BodyMethod, + pub params: PostGetCompressedTokenAccountsByOwnerV2BodyParams, } - impl PostGetCompressedTokenAccountsByDelegateBody { - pub fn builder() -> builder::PostGetCompressedTokenAccountsByDelegateBody { + impl PostGetCompressedTokenAccountsByOwnerV2Body { + pub fn builder() -> builder::PostGetCompressedTokenAccountsByOwnerV2Body { Default::default() } } @@ -11384,18 +11862,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenAccountsByDelegateBodyId { + pub enum PostGetCompressedTokenAccountsByOwnerV2BodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedTokenAccountsByDelegateBodyId { + impl ::std::fmt::Display for PostGetCompressedTokenAccountsByOwnerV2BodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedTokenAccountsByDelegateBodyId { + impl ::std::str::FromStr for PostGetCompressedTokenAccountsByOwnerV2BodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -11407,7 +11885,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenAccountsByDelegateBodyId { + for PostGetCompressedTokenAccountsByOwnerV2BodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -11416,7 +11894,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenAccountsByDelegateBodyId { + for PostGetCompressedTokenAccountsByOwnerV2BodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -11425,7 +11903,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenAccountsByDelegateBodyId { + for PostGetCompressedTokenAccountsByOwnerV2BodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -11459,18 +11937,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenAccountsByDelegateBodyJsonrpc { + pub enum PostGetCompressedTokenAccountsByOwnerV2BodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedTokenAccountsByDelegateBodyJsonrpc { + impl ::std::fmt::Display for PostGetCompressedTokenAccountsByOwnerV2BodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedTokenAccountsByDelegateBodyJsonrpc { + impl ::std::str::FromStr for PostGetCompressedTokenAccountsByOwnerV2BodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -11482,7 +11960,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenAccountsByDelegateBodyJsonrpc { + for PostGetCompressedTokenAccountsByOwnerV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -11491,7 +11969,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenAccountsByDelegateBodyJsonrpc { + for PostGetCompressedTokenAccountsByOwnerV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -11500,7 +11978,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenAccountsByDelegateBodyJsonrpc { + for PostGetCompressedTokenAccountsByOwnerV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -11517,7 +11995,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedTokenAccountsByDelegate" + /// "getCompressedTokenAccountsByOwnerV2" /// ] ///} /// ``` @@ -11534,34 +12012,34 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenAccountsByDelegateBodyMethod { - #[serde(rename = "getCompressedTokenAccountsByDelegate")] - GetCompressedTokenAccountsByDelegate, + pub enum PostGetCompressedTokenAccountsByOwnerV2BodyMethod { + #[serde(rename = "getCompressedTokenAccountsByOwnerV2")] + GetCompressedTokenAccountsByOwnerV2, } - impl ::std::fmt::Display for PostGetCompressedTokenAccountsByDelegateBodyMethod { + impl ::std::fmt::Display for PostGetCompressedTokenAccountsByOwnerV2BodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetCompressedTokenAccountsByDelegate => { - f.write_str("getCompressedTokenAccountsByDelegate") + Self::GetCompressedTokenAccountsByOwnerV2 => { + f.write_str("getCompressedTokenAccountsByOwnerV2") } } } } - impl ::std::str::FromStr for PostGetCompressedTokenAccountsByDelegateBodyMethod { + impl ::std::str::FromStr for PostGetCompressedTokenAccountsByOwnerV2BodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getCompressedTokenAccountsByDelegate" => { - Ok(Self::GetCompressedTokenAccountsByDelegate) + "getCompressedTokenAccountsByOwnerV2" => { + Ok(Self::GetCompressedTokenAccountsByOwnerV2) } _ => Err("invalid value".into()), } } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenAccountsByDelegateBodyMethod { + for PostGetCompressedTokenAccountsByOwnerV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -11570,7 +12048,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenAccountsByDelegateBodyMethod { + for PostGetCompressedTokenAccountsByOwnerV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -11579,7 +12057,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenAccountsByDelegateBodyMethod { + for PostGetCompressedTokenAccountsByOwnerV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -11587,7 +12065,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedTokenAccountsByDelegateBodyParams` + ///`PostGetCompressedTokenAccountsByOwnerV2BodyParams` /// ///
JSON schema /// @@ -11595,7 +12073,7 @@ All endpoints return AccountV2.*/ ///{ /// "type": "object", /// "required": [ - /// "delegate" + /// "owner" /// ], /// "properties": { /// "cursor": { @@ -11612,9 +12090,6 @@ All endpoints return AccountV2.*/ /// } /// ] /// }, - /// "delegate": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// }, /// "limit": { /// "oneOf": [ /// { @@ -11642,6 +12117,9 @@ All endpoints return AccountV2.*/ /// ] /// } /// ] + /// }, + /// "owner": { + /// "$ref": "#/components/schemas/SerializablePubkey" /// } /// }, /// "additionalProperties": false @@ -11650,21 +12128,21 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressedTokenAccountsByDelegateBodyParams { + pub struct PostGetCompressedTokenAccountsByOwnerV2BodyParams { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub cursor: ::std::option::Option, - pub delegate: SerializablePubkey, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub limit: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub mint: ::std::option::Option, + pub owner: SerializablePubkey, } - impl PostGetCompressedTokenAccountsByDelegateBodyParams { - pub fn builder() -> builder::PostGetCompressedTokenAccountsByDelegateBodyParams { + impl PostGetCompressedTokenAccountsByOwnerV2BodyParams { + pub fn builder() -> builder::PostGetCompressedTokenAccountsByOwnerV2BodyParams { Default::default() } } - ///`PostGetCompressedTokenAccountsByDelegateResponse` + ///`PostGetCompressedTokenAccountsByOwnerV2Response` /// ///
JSON schema /// @@ -11712,7 +12190,7 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/TokenAccountList" + /// "$ref": "#/components/schemas/TokenAccountListV2" /// } /// }, /// "additionalProperties": false @@ -11722,26 +12200,26 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByDelegateResponse { + pub struct PostGetCompressedTokenAccountsByOwnerV2Response { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub error: ::std::option::Option< - PostGetCompressedTokenAccountsByDelegateResponseError, + PostGetCompressedTokenAccountsByOwnerV2ResponseError, >, ///An ID to identify the response. - pub id: PostGetCompressedTokenAccountsByDelegateResponseId, + pub id: PostGetCompressedTokenAccountsByOwnerV2ResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedTokenAccountsByDelegateResponseJsonrpc, + pub jsonrpc: PostGetCompressedTokenAccountsByOwnerV2ResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub result: ::std::option::Option< - PostGetCompressedTokenAccountsByDelegateResponseResult, + PostGetCompressedTokenAccountsByOwnerV2ResponseResult, >, } - impl PostGetCompressedTokenAccountsByDelegateResponse { - pub fn builder() -> builder::PostGetCompressedTokenAccountsByDelegateResponse { + impl PostGetCompressedTokenAccountsByOwnerV2Response { + pub fn builder() -> builder::PostGetCompressedTokenAccountsByOwnerV2Response { Default::default() } } - ///`PostGetCompressedTokenAccountsByDelegateResponseError` + ///`PostGetCompressedTokenAccountsByOwnerV2ResponseError` /// ///
JSON schema /// @@ -11760,14 +12238,14 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByDelegateResponseError { + pub struct PostGetCompressedTokenAccountsByOwnerV2ResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } impl ::std::default::Default - for PostGetCompressedTokenAccountsByDelegateResponseError { + for PostGetCompressedTokenAccountsByOwnerV2ResponseError { fn default() -> Self { Self { code: Default::default(), @@ -11775,8 +12253,8 @@ All endpoints return AccountV2.*/ } } } - impl PostGetCompressedTokenAccountsByDelegateResponseError { - pub fn builder() -> builder::PostGetCompressedTokenAccountsByDelegateResponseError { + impl PostGetCompressedTokenAccountsByOwnerV2ResponseError { + pub fn builder() -> builder::PostGetCompressedTokenAccountsByOwnerV2ResponseError { Default::default() } } @@ -11806,18 +12284,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenAccountsByDelegateResponseId { + pub enum PostGetCompressedTokenAccountsByOwnerV2ResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedTokenAccountsByDelegateResponseId { + impl ::std::fmt::Display for PostGetCompressedTokenAccountsByOwnerV2ResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedTokenAccountsByDelegateResponseId { + impl ::std::str::FromStr for PostGetCompressedTokenAccountsByOwnerV2ResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -11829,7 +12307,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenAccountsByDelegateResponseId { + for PostGetCompressedTokenAccountsByOwnerV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -11838,7 +12316,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenAccountsByDelegateResponseId { + for PostGetCompressedTokenAccountsByOwnerV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -11847,7 +12325,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenAccountsByDelegateResponseId { + for PostGetCompressedTokenAccountsByOwnerV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -11881,20 +12359,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenAccountsByDelegateResponseJsonrpc { + pub enum PostGetCompressedTokenAccountsByOwnerV2ResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display - for PostGetCompressedTokenAccountsByDelegateResponseJsonrpc { + impl ::std::fmt::Display for PostGetCompressedTokenAccountsByOwnerV2ResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr - for PostGetCompressedTokenAccountsByDelegateResponseJsonrpc { + impl ::std::str::FromStr for PostGetCompressedTokenAccountsByOwnerV2ResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -11906,7 +12382,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenAccountsByDelegateResponseJsonrpc { + for PostGetCompressedTokenAccountsByOwnerV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -11915,7 +12391,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenAccountsByDelegateResponseJsonrpc { + for PostGetCompressedTokenAccountsByOwnerV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -11924,7 +12400,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenAccountsByDelegateResponseJsonrpc { + for PostGetCompressedTokenAccountsByOwnerV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -11932,7 +12408,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedTokenAccountsByDelegateResponseResult` + ///`PostGetCompressedTokenAccountsByOwnerV2ResponseResult` /// ///
JSON schema /// @@ -11948,7 +12424,7 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/TokenAccountList" + /// "$ref": "#/components/schemas/TokenAccountListV2" /// } /// }, /// "additionalProperties": false @@ -11957,16 +12433,16 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressedTokenAccountsByDelegateResponseResult { + pub struct PostGetCompressedTokenAccountsByOwnerV2ResponseResult { pub context: Context, - pub value: TokenAccountList, + pub value: TokenAccountListV2, } - impl PostGetCompressedTokenAccountsByDelegateResponseResult { - pub fn builder() -> builder::PostGetCompressedTokenAccountsByDelegateResponseResult { + impl PostGetCompressedTokenAccountsByOwnerV2ResponseResult { + pub fn builder() -> builder::PostGetCompressedTokenAccountsByOwnerV2ResponseResult { Default::default() } } - ///`PostGetCompressedTokenAccountsByDelegateV2Body` + ///`PostGetCompressedTokenBalancesByOwnerBody` /// ///
JSON schema /// @@ -11998,13 +12474,13 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedTokenAccountsByDelegateV2" + /// "getCompressedTokenBalancesByOwner" /// ] /// }, /// "params": { /// "type": "object", /// "required": [ - /// "delegate" + /// "owner" /// ], /// "properties": { /// "cursor": { @@ -12021,9 +12497,6 @@ All endpoints return AccountV2.*/ /// } /// ] /// }, - /// "delegate": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// }, /// "limit": { /// "oneOf": [ /// { @@ -12051,6 +12524,9 @@ All endpoints return AccountV2.*/ /// ] /// } /// ] + /// }, + /// "owner": { + /// "$ref": "#/components/schemas/SerializablePubkey" /// } /// }, /// "additionalProperties": false @@ -12060,17 +12536,17 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByDelegateV2Body { + pub struct PostGetCompressedTokenBalancesByOwnerBody { ///An ID to identify the request. - pub id: PostGetCompressedTokenAccountsByDelegateV2BodyId, + pub id: PostGetCompressedTokenBalancesByOwnerBodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedTokenAccountsByDelegateV2BodyJsonrpc, + pub jsonrpc: PostGetCompressedTokenBalancesByOwnerBodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetCompressedTokenAccountsByDelegateV2BodyMethod, - pub params: PostGetCompressedTokenAccountsByDelegateV2BodyParams, + pub method: PostGetCompressedTokenBalancesByOwnerBodyMethod, + pub params: PostGetCompressedTokenBalancesByOwnerBodyParams, } - impl PostGetCompressedTokenAccountsByDelegateV2Body { - pub fn builder() -> builder::PostGetCompressedTokenAccountsByDelegateV2Body { + impl PostGetCompressedTokenBalancesByOwnerBody { + pub fn builder() -> builder::PostGetCompressedTokenBalancesByOwnerBody { Default::default() } } @@ -12100,18 +12576,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenAccountsByDelegateV2BodyId { + pub enum PostGetCompressedTokenBalancesByOwnerBodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedTokenAccountsByDelegateV2BodyId { + impl ::std::fmt::Display for PostGetCompressedTokenBalancesByOwnerBodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedTokenAccountsByDelegateV2BodyId { + impl ::std::str::FromStr for PostGetCompressedTokenBalancesByOwnerBodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -12122,8 +12598,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenAccountsByDelegateV2BodyId { + impl ::std::convert::TryFrom<&str> for PostGetCompressedTokenBalancesByOwnerBodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -12132,7 +12607,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenAccountsByDelegateV2BodyId { + for PostGetCompressedTokenBalancesByOwnerBodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -12141,7 +12616,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenAccountsByDelegateV2BodyId { + for PostGetCompressedTokenBalancesByOwnerBodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -12175,18 +12650,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenAccountsByDelegateV2BodyJsonrpc { + pub enum PostGetCompressedTokenBalancesByOwnerBodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedTokenAccountsByDelegateV2BodyJsonrpc { + impl ::std::fmt::Display for PostGetCompressedTokenBalancesByOwnerBodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedTokenAccountsByDelegateV2BodyJsonrpc { + impl ::std::str::FromStr for PostGetCompressedTokenBalancesByOwnerBodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -12198,7 +12673,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenAccountsByDelegateV2BodyJsonrpc { + for PostGetCompressedTokenBalancesByOwnerBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -12207,7 +12682,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenAccountsByDelegateV2BodyJsonrpc { + for PostGetCompressedTokenBalancesByOwnerBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -12216,7 +12691,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenAccountsByDelegateV2BodyJsonrpc { + for PostGetCompressedTokenBalancesByOwnerBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -12233,7 +12708,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedTokenAccountsByDelegateV2" + /// "getCompressedTokenBalancesByOwner" /// ] ///} /// ``` @@ -12250,34 +12725,34 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenAccountsByDelegateV2BodyMethod { - #[serde(rename = "getCompressedTokenAccountsByDelegateV2")] - GetCompressedTokenAccountsByDelegateV2, + pub enum PostGetCompressedTokenBalancesByOwnerBodyMethod { + #[serde(rename = "getCompressedTokenBalancesByOwner")] + GetCompressedTokenBalancesByOwner, } - impl ::std::fmt::Display for PostGetCompressedTokenAccountsByDelegateV2BodyMethod { + impl ::std::fmt::Display for PostGetCompressedTokenBalancesByOwnerBodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetCompressedTokenAccountsByDelegateV2 => { - f.write_str("getCompressedTokenAccountsByDelegateV2") + Self::GetCompressedTokenBalancesByOwner => { + f.write_str("getCompressedTokenBalancesByOwner") } } } } - impl ::std::str::FromStr for PostGetCompressedTokenAccountsByDelegateV2BodyMethod { + impl ::std::str::FromStr for PostGetCompressedTokenBalancesByOwnerBodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getCompressedTokenAccountsByDelegateV2" => { - Ok(Self::GetCompressedTokenAccountsByDelegateV2) + "getCompressedTokenBalancesByOwner" => { + Ok(Self::GetCompressedTokenBalancesByOwner) } _ => Err("invalid value".into()), } } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenAccountsByDelegateV2BodyMethod { + for PostGetCompressedTokenBalancesByOwnerBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -12286,7 +12761,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenAccountsByDelegateV2BodyMethod { + for PostGetCompressedTokenBalancesByOwnerBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -12295,7 +12770,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenAccountsByDelegateV2BodyMethod { + for PostGetCompressedTokenBalancesByOwnerBodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -12303,7 +12778,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedTokenAccountsByDelegateV2BodyParams` + ///`PostGetCompressedTokenBalancesByOwnerBodyParams` /// ///
JSON schema /// @@ -12311,7 +12786,7 @@ All endpoints return AccountV2.*/ ///{ /// "type": "object", /// "required": [ - /// "delegate" + /// "owner" /// ], /// "properties": { /// "cursor": { @@ -12328,9 +12803,6 @@ All endpoints return AccountV2.*/ /// } /// ] /// }, - /// "delegate": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// }, /// "limit": { /// "oneOf": [ /// { @@ -12358,6 +12830,9 @@ All endpoints return AccountV2.*/ /// ] /// } /// ] + /// }, + /// "owner": { + /// "$ref": "#/components/schemas/SerializablePubkey" /// } /// }, /// "additionalProperties": false @@ -12366,21 +12841,21 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressedTokenAccountsByDelegateV2BodyParams { + pub struct PostGetCompressedTokenBalancesByOwnerBodyParams { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub cursor: ::std::option::Option, - pub delegate: SerializablePubkey, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub limit: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub mint: ::std::option::Option, + pub owner: SerializablePubkey, } - impl PostGetCompressedTokenAccountsByDelegateV2BodyParams { - pub fn builder() -> builder::PostGetCompressedTokenAccountsByDelegateV2BodyParams { + impl PostGetCompressedTokenBalancesByOwnerBodyParams { + pub fn builder() -> builder::PostGetCompressedTokenBalancesByOwnerBodyParams { Default::default() } } - ///`PostGetCompressedTokenAccountsByDelegateV2Response` + ///`PostGetCompressedTokenBalancesByOwnerResponse` /// ///
JSON schema /// @@ -12428,7 +12903,7 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/TokenAccountListV2" + /// "$ref": "#/components/schemas/TokenBalanceList" /// } /// }, /// "additionalProperties": false @@ -12438,26 +12913,26 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByDelegateV2Response { + pub struct PostGetCompressedTokenBalancesByOwnerResponse { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub error: ::std::option::Option< - PostGetCompressedTokenAccountsByDelegateV2ResponseError, + PostGetCompressedTokenBalancesByOwnerResponseError, >, ///An ID to identify the response. - pub id: PostGetCompressedTokenAccountsByDelegateV2ResponseId, + pub id: PostGetCompressedTokenBalancesByOwnerResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedTokenAccountsByDelegateV2ResponseJsonrpc, + pub jsonrpc: PostGetCompressedTokenBalancesByOwnerResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub result: ::std::option::Option< - PostGetCompressedTokenAccountsByDelegateV2ResponseResult, + PostGetCompressedTokenBalancesByOwnerResponseResult, >, } - impl PostGetCompressedTokenAccountsByDelegateV2Response { - pub fn builder() -> builder::PostGetCompressedTokenAccountsByDelegateV2Response { + impl PostGetCompressedTokenBalancesByOwnerResponse { + pub fn builder() -> builder::PostGetCompressedTokenBalancesByOwnerResponse { Default::default() } } - ///`PostGetCompressedTokenAccountsByDelegateV2ResponseError` + ///`PostGetCompressedTokenBalancesByOwnerResponseError` /// ///
JSON schema /// @@ -12476,14 +12951,13 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByDelegateV2ResponseError { + pub struct PostGetCompressedTokenBalancesByOwnerResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default - for PostGetCompressedTokenAccountsByDelegateV2ResponseError { + impl ::std::default::Default for PostGetCompressedTokenBalancesByOwnerResponseError { fn default() -> Self { Self { code: Default::default(), @@ -12491,8 +12965,8 @@ All endpoints return AccountV2.*/ } } } - impl PostGetCompressedTokenAccountsByDelegateV2ResponseError { - pub fn builder() -> builder::PostGetCompressedTokenAccountsByDelegateV2ResponseError { + impl PostGetCompressedTokenBalancesByOwnerResponseError { + pub fn builder() -> builder::PostGetCompressedTokenBalancesByOwnerResponseError { Default::default() } } @@ -12522,18 +12996,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenAccountsByDelegateV2ResponseId { + pub enum PostGetCompressedTokenBalancesByOwnerResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedTokenAccountsByDelegateV2ResponseId { + impl ::std::fmt::Display for PostGetCompressedTokenBalancesByOwnerResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedTokenAccountsByDelegateV2ResponseId { + impl ::std::str::FromStr for PostGetCompressedTokenBalancesByOwnerResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -12545,7 +13019,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenAccountsByDelegateV2ResponseId { + for PostGetCompressedTokenBalancesByOwnerResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -12554,7 +13028,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenAccountsByDelegateV2ResponseId { + for PostGetCompressedTokenBalancesByOwnerResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -12563,7 +13037,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenAccountsByDelegateV2ResponseId { + for PostGetCompressedTokenBalancesByOwnerResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -12597,20 +13071,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenAccountsByDelegateV2ResponseJsonrpc { + pub enum PostGetCompressedTokenBalancesByOwnerResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display - for PostGetCompressedTokenAccountsByDelegateV2ResponseJsonrpc { + impl ::std::fmt::Display for PostGetCompressedTokenBalancesByOwnerResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr - for PostGetCompressedTokenAccountsByDelegateV2ResponseJsonrpc { + impl ::std::str::FromStr for PostGetCompressedTokenBalancesByOwnerResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -12622,7 +13094,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenAccountsByDelegateV2ResponseJsonrpc { + for PostGetCompressedTokenBalancesByOwnerResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -12631,7 +13103,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenAccountsByDelegateV2ResponseJsonrpc { + for PostGetCompressedTokenBalancesByOwnerResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -12640,7 +13112,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenAccountsByDelegateV2ResponseJsonrpc { + for PostGetCompressedTokenBalancesByOwnerResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -12648,7 +13120,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedTokenAccountsByDelegateV2ResponseResult` + ///`PostGetCompressedTokenBalancesByOwnerResponseResult` /// ///
JSON schema /// @@ -12664,7 +13136,7 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/TokenAccountListV2" + /// "$ref": "#/components/schemas/TokenBalanceList" /// } /// }, /// "additionalProperties": false @@ -12673,16 +13145,16 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressedTokenAccountsByDelegateV2ResponseResult { + pub struct PostGetCompressedTokenBalancesByOwnerResponseResult { pub context: Context, - pub value: TokenAccountListV2, + pub value: TokenBalanceList, } - impl PostGetCompressedTokenAccountsByDelegateV2ResponseResult { - pub fn builder() -> builder::PostGetCompressedTokenAccountsByDelegateV2ResponseResult { + impl PostGetCompressedTokenBalancesByOwnerResponseResult { + pub fn builder() -> builder::PostGetCompressedTokenBalancesByOwnerResponseResult { Default::default() } } - ///`PostGetCompressedTokenAccountsByOwnerBody` + ///`PostGetCompressedTokenBalancesByOwnerV2Body` /// ///
JSON schema /// @@ -12714,7 +13186,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedTokenAccountsByOwner" + /// "getCompressedTokenBalancesByOwnerV2" /// ] /// }, /// "params": { @@ -12776,17 +13248,17 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByOwnerBody { + pub struct PostGetCompressedTokenBalancesByOwnerV2Body { ///An ID to identify the request. - pub id: PostGetCompressedTokenAccountsByOwnerBodyId, + pub id: PostGetCompressedTokenBalancesByOwnerV2BodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedTokenAccountsByOwnerBodyJsonrpc, + pub jsonrpc: PostGetCompressedTokenBalancesByOwnerV2BodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetCompressedTokenAccountsByOwnerBodyMethod, - pub params: PostGetCompressedTokenAccountsByOwnerBodyParams, + pub method: PostGetCompressedTokenBalancesByOwnerV2BodyMethod, + pub params: PostGetCompressedTokenBalancesByOwnerV2BodyParams, } - impl PostGetCompressedTokenAccountsByOwnerBody { - pub fn builder() -> builder::PostGetCompressedTokenAccountsByOwnerBody { + impl PostGetCompressedTokenBalancesByOwnerV2Body { + pub fn builder() -> builder::PostGetCompressedTokenBalancesByOwnerV2Body { Default::default() } } @@ -12816,18 +13288,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenAccountsByOwnerBodyId { + pub enum PostGetCompressedTokenBalancesByOwnerV2BodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedTokenAccountsByOwnerBodyId { + impl ::std::fmt::Display for PostGetCompressedTokenBalancesByOwnerV2BodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedTokenAccountsByOwnerBodyId { + impl ::std::str::FromStr for PostGetCompressedTokenBalancesByOwnerV2BodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -12838,7 +13310,8 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedTokenAccountsByOwnerBodyId { + impl ::std::convert::TryFrom<&str> + for PostGetCompressedTokenBalancesByOwnerV2BodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -12847,7 +13320,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenAccountsByOwnerBodyId { + for PostGetCompressedTokenBalancesByOwnerV2BodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -12856,7 +13329,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenAccountsByOwnerBodyId { + for PostGetCompressedTokenBalancesByOwnerV2BodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -12890,18 +13363,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenAccountsByOwnerBodyJsonrpc { + pub enum PostGetCompressedTokenBalancesByOwnerV2BodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedTokenAccountsByOwnerBodyJsonrpc { + impl ::std::fmt::Display for PostGetCompressedTokenBalancesByOwnerV2BodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedTokenAccountsByOwnerBodyJsonrpc { + impl ::std::str::FromStr for PostGetCompressedTokenBalancesByOwnerV2BodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -12913,7 +13386,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenAccountsByOwnerBodyJsonrpc { + for PostGetCompressedTokenBalancesByOwnerV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -12922,7 +13395,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenAccountsByOwnerBodyJsonrpc { + for PostGetCompressedTokenBalancesByOwnerV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -12931,7 +13404,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenAccountsByOwnerBodyJsonrpc { + for PostGetCompressedTokenBalancesByOwnerV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -12948,7 +13421,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedTokenAccountsByOwner" + /// "getCompressedTokenBalancesByOwnerV2" /// ] ///} /// ``` @@ -12965,34 +13438,34 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenAccountsByOwnerBodyMethod { - #[serde(rename = "getCompressedTokenAccountsByOwner")] - GetCompressedTokenAccountsByOwner, + pub enum PostGetCompressedTokenBalancesByOwnerV2BodyMethod { + #[serde(rename = "getCompressedTokenBalancesByOwnerV2")] + GetCompressedTokenBalancesByOwnerV2, } - impl ::std::fmt::Display for PostGetCompressedTokenAccountsByOwnerBodyMethod { + impl ::std::fmt::Display for PostGetCompressedTokenBalancesByOwnerV2BodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetCompressedTokenAccountsByOwner => { - f.write_str("getCompressedTokenAccountsByOwner") + Self::GetCompressedTokenBalancesByOwnerV2 => { + f.write_str("getCompressedTokenBalancesByOwnerV2") } } } } - impl ::std::str::FromStr for PostGetCompressedTokenAccountsByOwnerBodyMethod { + impl ::std::str::FromStr for PostGetCompressedTokenBalancesByOwnerV2BodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getCompressedTokenAccountsByOwner" => { - Ok(Self::GetCompressedTokenAccountsByOwner) + "getCompressedTokenBalancesByOwnerV2" => { + Ok(Self::GetCompressedTokenBalancesByOwnerV2) } _ => Err("invalid value".into()), } } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenAccountsByOwnerBodyMethod { + for PostGetCompressedTokenBalancesByOwnerV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -13001,7 +13474,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenAccountsByOwnerBodyMethod { + for PostGetCompressedTokenBalancesByOwnerV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -13010,7 +13483,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenAccountsByOwnerBodyMethod { + for PostGetCompressedTokenBalancesByOwnerV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -13018,7 +13491,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedTokenAccountsByOwnerBodyParams` + ///`PostGetCompressedTokenBalancesByOwnerV2BodyParams` /// ///
JSON schema /// @@ -13081,7 +13554,7 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressedTokenAccountsByOwnerBodyParams { + pub struct PostGetCompressedTokenBalancesByOwnerV2BodyParams { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub cursor: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] @@ -13090,12 +13563,12 @@ All endpoints return AccountV2.*/ pub mint: ::std::option::Option, pub owner: SerializablePubkey, } - impl PostGetCompressedTokenAccountsByOwnerBodyParams { - pub fn builder() -> builder::PostGetCompressedTokenAccountsByOwnerBodyParams { + impl PostGetCompressedTokenBalancesByOwnerV2BodyParams { + pub fn builder() -> builder::PostGetCompressedTokenBalancesByOwnerV2BodyParams { Default::default() } } - ///`PostGetCompressedTokenAccountsByOwnerResponse` + ///`PostGetCompressedTokenBalancesByOwnerV2Response` /// ///
JSON schema /// @@ -13143,7 +13616,7 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/TokenAccountList" + /// "$ref": "#/components/schemas/TokenBalanceListV2" /// } /// }, /// "additionalProperties": false @@ -13153,26 +13626,26 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByOwnerResponse { + pub struct PostGetCompressedTokenBalancesByOwnerV2Response { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub error: ::std::option::Option< - PostGetCompressedTokenAccountsByOwnerResponseError, + PostGetCompressedTokenBalancesByOwnerV2ResponseError, >, ///An ID to identify the response. - pub id: PostGetCompressedTokenAccountsByOwnerResponseId, + pub id: PostGetCompressedTokenBalancesByOwnerV2ResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedTokenAccountsByOwnerResponseJsonrpc, + pub jsonrpc: PostGetCompressedTokenBalancesByOwnerV2ResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub result: ::std::option::Option< - PostGetCompressedTokenAccountsByOwnerResponseResult, + PostGetCompressedTokenBalancesByOwnerV2ResponseResult, >, } - impl PostGetCompressedTokenAccountsByOwnerResponse { - pub fn builder() -> builder::PostGetCompressedTokenAccountsByOwnerResponse { + impl PostGetCompressedTokenBalancesByOwnerV2Response { + pub fn builder() -> builder::PostGetCompressedTokenBalancesByOwnerV2Response { Default::default() } } - ///`PostGetCompressedTokenAccountsByOwnerResponseError` + ///`PostGetCompressedTokenBalancesByOwnerV2ResponseError` /// ///
JSON schema /// @@ -13191,13 +13664,14 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByOwnerResponseError { + pub struct PostGetCompressedTokenBalancesByOwnerV2ResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default for PostGetCompressedTokenAccountsByOwnerResponseError { + impl ::std::default::Default + for PostGetCompressedTokenBalancesByOwnerV2ResponseError { fn default() -> Self { Self { code: Default::default(), @@ -13205,8 +13679,8 @@ All endpoints return AccountV2.*/ } } } - impl PostGetCompressedTokenAccountsByOwnerResponseError { - pub fn builder() -> builder::PostGetCompressedTokenAccountsByOwnerResponseError { + impl PostGetCompressedTokenBalancesByOwnerV2ResponseError { + pub fn builder() -> builder::PostGetCompressedTokenBalancesByOwnerV2ResponseError { Default::default() } } @@ -13236,18 +13710,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenAccountsByOwnerResponseId { + pub enum PostGetCompressedTokenBalancesByOwnerV2ResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedTokenAccountsByOwnerResponseId { + impl ::std::fmt::Display for PostGetCompressedTokenBalancesByOwnerV2ResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedTokenAccountsByOwnerResponseId { + impl ::std::str::FromStr for PostGetCompressedTokenBalancesByOwnerV2ResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -13259,7 +13733,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenAccountsByOwnerResponseId { + for PostGetCompressedTokenBalancesByOwnerV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -13268,7 +13742,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenAccountsByOwnerResponseId { + for PostGetCompressedTokenBalancesByOwnerV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -13277,7 +13751,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenAccountsByOwnerResponseId { + for PostGetCompressedTokenBalancesByOwnerV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -13311,18 +13785,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenAccountsByOwnerResponseJsonrpc { + pub enum PostGetCompressedTokenBalancesByOwnerV2ResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedTokenAccountsByOwnerResponseJsonrpc { + impl ::std::fmt::Display for PostGetCompressedTokenBalancesByOwnerV2ResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedTokenAccountsByOwnerResponseJsonrpc { + impl ::std::str::FromStr for PostGetCompressedTokenBalancesByOwnerV2ResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -13334,7 +13808,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenAccountsByOwnerResponseJsonrpc { + for PostGetCompressedTokenBalancesByOwnerV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -13343,7 +13817,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenAccountsByOwnerResponseJsonrpc { + for PostGetCompressedTokenBalancesByOwnerV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -13352,7 +13826,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenAccountsByOwnerResponseJsonrpc { + for PostGetCompressedTokenBalancesByOwnerV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -13360,7 +13834,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedTokenAccountsByOwnerResponseResult` + ///`PostGetCompressedTokenBalancesByOwnerV2ResponseResult` /// ///
JSON schema /// @@ -13376,7 +13850,7 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/TokenAccountList" + /// "$ref": "#/components/schemas/TokenBalanceListV2" /// } /// }, /// "additionalProperties": false @@ -13385,16 +13859,16 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressedTokenAccountsByOwnerResponseResult { + pub struct PostGetCompressedTokenBalancesByOwnerV2ResponseResult { pub context: Context, - pub value: TokenAccountList, + pub value: TokenBalanceListV2, } - impl PostGetCompressedTokenAccountsByOwnerResponseResult { - pub fn builder() -> builder::PostGetCompressedTokenAccountsByOwnerResponseResult { + impl PostGetCompressedTokenBalancesByOwnerV2ResponseResult { + pub fn builder() -> builder::PostGetCompressedTokenBalancesByOwnerV2ResponseResult { Default::default() } } - ///`PostGetCompressedTokenAccountsByOwnerV2Body` + ///`PostGetCompressionSignaturesForAccountBody` /// ///
JSON schema /// @@ -13426,79 +13900,36 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedTokenAccountsByOwnerV2" + /// "getCompressionSignaturesForAccount" /// ] /// }, /// "params": { /// "type": "object", /// "required": [ - /// "owner" + /// "hash" /// ], /// "properties": { - /// "cursor": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/Base58String" - /// } - /// ] - /// } - /// ] - /// }, - /// "limit": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/Limit" - /// } - /// ] - /// } - /// ] - /// }, - /// "mint": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// } - /// ] - /// } - /// ] - /// }, - /// "owner": { - /// "$ref": "#/components/schemas/SerializablePubkey" + /// "hash": { + /// "$ref": "#/components/schemas/Hash" /// } - /// }, - /// "additionalProperties": false + /// } /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByOwnerV2Body { + pub struct PostGetCompressionSignaturesForAccountBody { ///An ID to identify the request. - pub id: PostGetCompressedTokenAccountsByOwnerV2BodyId, + pub id: PostGetCompressionSignaturesForAccountBodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedTokenAccountsByOwnerV2BodyJsonrpc, + pub jsonrpc: PostGetCompressionSignaturesForAccountBodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetCompressedTokenAccountsByOwnerV2BodyMethod, - pub params: PostGetCompressedTokenAccountsByOwnerV2BodyParams, + pub method: PostGetCompressionSignaturesForAccountBodyMethod, + pub params: PostGetCompressionSignaturesForAccountBodyParams, } - impl PostGetCompressedTokenAccountsByOwnerV2Body { - pub fn builder() -> builder::PostGetCompressedTokenAccountsByOwnerV2Body { + impl PostGetCompressionSignaturesForAccountBody { + pub fn builder() -> builder::PostGetCompressionSignaturesForAccountBody { Default::default() } } @@ -13528,18 +13959,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenAccountsByOwnerV2BodyId { + pub enum PostGetCompressionSignaturesForAccountBodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedTokenAccountsByOwnerV2BodyId { + impl ::std::fmt::Display for PostGetCompressionSignaturesForAccountBodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedTokenAccountsByOwnerV2BodyId { + impl ::std::str::FromStr for PostGetCompressionSignaturesForAccountBodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -13550,8 +13981,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenAccountsByOwnerV2BodyId { + impl ::std::convert::TryFrom<&str> for PostGetCompressionSignaturesForAccountBodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -13560,7 +13990,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenAccountsByOwnerV2BodyId { + for PostGetCompressionSignaturesForAccountBodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -13569,7 +13999,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenAccountsByOwnerV2BodyId { + for PostGetCompressionSignaturesForAccountBodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -13603,18 +14033,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenAccountsByOwnerV2BodyJsonrpc { + pub enum PostGetCompressionSignaturesForAccountBodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedTokenAccountsByOwnerV2BodyJsonrpc { + impl ::std::fmt::Display for PostGetCompressionSignaturesForAccountBodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedTokenAccountsByOwnerV2BodyJsonrpc { + impl ::std::str::FromStr for PostGetCompressionSignaturesForAccountBodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -13626,7 +14056,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenAccountsByOwnerV2BodyJsonrpc { + for PostGetCompressionSignaturesForAccountBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -13635,7 +14065,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenAccountsByOwnerV2BodyJsonrpc { + for PostGetCompressionSignaturesForAccountBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -13644,7 +14074,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenAccountsByOwnerV2BodyJsonrpc { + for PostGetCompressionSignaturesForAccountBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -13661,7 +14091,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedTokenAccountsByOwnerV2" + /// "getCompressionSignaturesForAccount" /// ] ///} /// ``` @@ -13678,34 +14108,34 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenAccountsByOwnerV2BodyMethod { - #[serde(rename = "getCompressedTokenAccountsByOwnerV2")] - GetCompressedTokenAccountsByOwnerV2, + pub enum PostGetCompressionSignaturesForAccountBodyMethod { + #[serde(rename = "getCompressionSignaturesForAccount")] + GetCompressionSignaturesForAccount, } - impl ::std::fmt::Display for PostGetCompressedTokenAccountsByOwnerV2BodyMethod { + impl ::std::fmt::Display for PostGetCompressionSignaturesForAccountBodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetCompressedTokenAccountsByOwnerV2 => { - f.write_str("getCompressedTokenAccountsByOwnerV2") + Self::GetCompressionSignaturesForAccount => { + f.write_str("getCompressionSignaturesForAccount") } } } } - impl ::std::str::FromStr for PostGetCompressedTokenAccountsByOwnerV2BodyMethod { + impl ::std::str::FromStr for PostGetCompressionSignaturesForAccountBodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getCompressedTokenAccountsByOwnerV2" => { - Ok(Self::GetCompressedTokenAccountsByOwnerV2) + "getCompressionSignaturesForAccount" => { + Ok(Self::GetCompressionSignaturesForAccount) } _ => Err("invalid value".into()), } } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenAccountsByOwnerV2BodyMethod { + for PostGetCompressionSignaturesForAccountBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -13714,7 +14144,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenAccountsByOwnerV2BodyMethod { + for PostGetCompressionSignaturesForAccountBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -13723,7 +14153,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenAccountsByOwnerV2BodyMethod { + for PostGetCompressionSignaturesForAccountBodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -13731,7 +14161,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedTokenAccountsByOwnerV2BodyParams` + ///`PostGetCompressionSignaturesForAccountBodyParams` /// ///
JSON schema /// @@ -13739,76 +14169,26 @@ All endpoints return AccountV2.*/ ///{ /// "type": "object", /// "required": [ - /// "owner" + /// "hash" /// ], /// "properties": { - /// "cursor": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/Base58String" - /// } - /// ] - /// } - /// ] - /// }, - /// "limit": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/Limit" - /// } - /// ] - /// } - /// ] - /// }, - /// "mint": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// } - /// ] - /// } - /// ] - /// }, - /// "owner": { - /// "$ref": "#/components/schemas/SerializablePubkey" + /// "hash": { + /// "$ref": "#/components/schemas/Hash" /// } - /// }, - /// "additionalProperties": false + /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(deny_unknown_fields)] - pub struct PostGetCompressedTokenAccountsByOwnerV2BodyParams { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub cursor: ::std::option::Option, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub limit: ::std::option::Option, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub mint: ::std::option::Option, - pub owner: SerializablePubkey, + pub struct PostGetCompressionSignaturesForAccountBodyParams { + pub hash: Hash, } - impl PostGetCompressedTokenAccountsByOwnerV2BodyParams { - pub fn builder() -> builder::PostGetCompressedTokenAccountsByOwnerV2BodyParams { + impl PostGetCompressionSignaturesForAccountBodyParams { + pub fn builder() -> builder::PostGetCompressionSignaturesForAccountBodyParams { Default::default() } } - ///`PostGetCompressedTokenAccountsByOwnerV2Response` + ///`PostGetCompressionSignaturesForAccountResponse` /// ///
JSON schema /// @@ -13856,7 +14236,7 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/TokenAccountListV2" + /// "$ref": "#/components/schemas/SignatureInfoList" /// } /// }, /// "additionalProperties": false @@ -13866,26 +14246,26 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByOwnerV2Response { + pub struct PostGetCompressionSignaturesForAccountResponse { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub error: ::std::option::Option< - PostGetCompressedTokenAccountsByOwnerV2ResponseError, + PostGetCompressionSignaturesForAccountResponseError, >, ///An ID to identify the response. - pub id: PostGetCompressedTokenAccountsByOwnerV2ResponseId, + pub id: PostGetCompressionSignaturesForAccountResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedTokenAccountsByOwnerV2ResponseJsonrpc, + pub jsonrpc: PostGetCompressionSignaturesForAccountResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub result: ::std::option::Option< - PostGetCompressedTokenAccountsByOwnerV2ResponseResult, + PostGetCompressionSignaturesForAccountResponseResult, >, } - impl PostGetCompressedTokenAccountsByOwnerV2Response { - pub fn builder() -> builder::PostGetCompressedTokenAccountsByOwnerV2Response { + impl PostGetCompressionSignaturesForAccountResponse { + pub fn builder() -> builder::PostGetCompressionSignaturesForAccountResponse { Default::default() } } - ///`PostGetCompressedTokenAccountsByOwnerV2ResponseError` + ///`PostGetCompressionSignaturesForAccountResponseError` /// ///
JSON schema /// @@ -13904,14 +14284,14 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByOwnerV2ResponseError { + pub struct PostGetCompressionSignaturesForAccountResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } impl ::std::default::Default - for PostGetCompressedTokenAccountsByOwnerV2ResponseError { + for PostGetCompressionSignaturesForAccountResponseError { fn default() -> Self { Self { code: Default::default(), @@ -13919,8 +14299,8 @@ All endpoints return AccountV2.*/ } } } - impl PostGetCompressedTokenAccountsByOwnerV2ResponseError { - pub fn builder() -> builder::PostGetCompressedTokenAccountsByOwnerV2ResponseError { + impl PostGetCompressionSignaturesForAccountResponseError { + pub fn builder() -> builder::PostGetCompressionSignaturesForAccountResponseError { Default::default() } } @@ -13950,18 +14330,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenAccountsByOwnerV2ResponseId { + pub enum PostGetCompressionSignaturesForAccountResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedTokenAccountsByOwnerV2ResponseId { + impl ::std::fmt::Display for PostGetCompressionSignaturesForAccountResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedTokenAccountsByOwnerV2ResponseId { + impl ::std::str::FromStr for PostGetCompressionSignaturesForAccountResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -13973,7 +14353,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenAccountsByOwnerV2ResponseId { + for PostGetCompressionSignaturesForAccountResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -13982,7 +14362,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenAccountsByOwnerV2ResponseId { + for PostGetCompressionSignaturesForAccountResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -13991,7 +14371,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenAccountsByOwnerV2ResponseId { + for PostGetCompressionSignaturesForAccountResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -14025,18 +14405,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenAccountsByOwnerV2ResponseJsonrpc { + pub enum PostGetCompressionSignaturesForAccountResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedTokenAccountsByOwnerV2ResponseJsonrpc { + impl ::std::fmt::Display for PostGetCompressionSignaturesForAccountResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedTokenAccountsByOwnerV2ResponseJsonrpc { + impl ::std::str::FromStr for PostGetCompressionSignaturesForAccountResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -14048,7 +14428,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenAccountsByOwnerV2ResponseJsonrpc { + for PostGetCompressionSignaturesForAccountResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -14057,7 +14437,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenAccountsByOwnerV2ResponseJsonrpc { + for PostGetCompressionSignaturesForAccountResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -14066,7 +14446,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenAccountsByOwnerV2ResponseJsonrpc { + for PostGetCompressionSignaturesForAccountResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -14074,7 +14454,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedTokenAccountsByOwnerV2ResponseResult` + ///`PostGetCompressionSignaturesForAccountResponseResult` /// ///
JSON schema /// @@ -14090,7 +14470,7 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/TokenAccountListV2" + /// "$ref": "#/components/schemas/SignatureInfoList" /// } /// }, /// "additionalProperties": false @@ -14099,16 +14479,16 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressedTokenAccountsByOwnerV2ResponseResult { + pub struct PostGetCompressionSignaturesForAccountResponseResult { pub context: Context, - pub value: TokenAccountListV2, + pub value: SignatureInfoList, } - impl PostGetCompressedTokenAccountsByOwnerV2ResponseResult { - pub fn builder() -> builder::PostGetCompressedTokenAccountsByOwnerV2ResponseResult { + impl PostGetCompressionSignaturesForAccountResponseResult { + pub fn builder() -> builder::PostGetCompressionSignaturesForAccountResponseResult { Default::default() } } - ///`PostGetCompressedTokenBalancesByOwnerBody` + ///`PostGetCompressionSignaturesForAddressBody` /// ///
JSON schema /// @@ -14140,27 +14520,22 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedTokenBalancesByOwner" + /// "getCompressionSignaturesForAddress" /// ] /// }, /// "params": { /// "type": "object", /// "required": [ - /// "owner" + /// "address" /// ], /// "properties": { + /// "address": { + /// "$ref": "#/components/schemas/SerializablePubkey" + /// }, /// "cursor": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/Base58String" - /// } - /// ] - /// } + /// "type": [ + /// "string", + /// "null" /// ] /// }, /// "limit": { @@ -14176,23 +14551,6 @@ All endpoints return AccountV2.*/ /// ] /// } /// ] - /// }, - /// "mint": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// } - /// ] - /// } - /// ] - /// }, - /// "owner": { - /// "$ref": "#/components/schemas/SerializablePubkey" /// } /// }, /// "additionalProperties": false @@ -14202,17 +14560,17 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedTokenBalancesByOwnerBody { + pub struct PostGetCompressionSignaturesForAddressBody { ///An ID to identify the request. - pub id: PostGetCompressedTokenBalancesByOwnerBodyId, + pub id: PostGetCompressionSignaturesForAddressBodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedTokenBalancesByOwnerBodyJsonrpc, + pub jsonrpc: PostGetCompressionSignaturesForAddressBodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetCompressedTokenBalancesByOwnerBodyMethod, - pub params: PostGetCompressedTokenBalancesByOwnerBodyParams, + pub method: PostGetCompressionSignaturesForAddressBodyMethod, + pub params: PostGetCompressionSignaturesForAddressBodyParams, } - impl PostGetCompressedTokenBalancesByOwnerBody { - pub fn builder() -> builder::PostGetCompressedTokenBalancesByOwnerBody { + impl PostGetCompressionSignaturesForAddressBody { + pub fn builder() -> builder::PostGetCompressionSignaturesForAddressBody { Default::default() } } @@ -14242,18 +14600,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenBalancesByOwnerBodyId { + pub enum PostGetCompressionSignaturesForAddressBodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedTokenBalancesByOwnerBodyId { + impl ::std::fmt::Display for PostGetCompressionSignaturesForAddressBodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedTokenBalancesByOwnerBodyId { + impl ::std::str::FromStr for PostGetCompressionSignaturesForAddressBodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -14264,7 +14622,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressedTokenBalancesByOwnerBodyId { + impl ::std::convert::TryFrom<&str> for PostGetCompressionSignaturesForAddressBodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -14273,7 +14631,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenBalancesByOwnerBodyId { + for PostGetCompressionSignaturesForAddressBodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -14282,7 +14640,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenBalancesByOwnerBodyId { + for PostGetCompressionSignaturesForAddressBodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -14316,18 +14674,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenBalancesByOwnerBodyJsonrpc { + pub enum PostGetCompressionSignaturesForAddressBodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedTokenBalancesByOwnerBodyJsonrpc { + impl ::std::fmt::Display for PostGetCompressionSignaturesForAddressBodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedTokenBalancesByOwnerBodyJsonrpc { + impl ::std::str::FromStr for PostGetCompressionSignaturesForAddressBodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -14339,7 +14697,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenBalancesByOwnerBodyJsonrpc { + for PostGetCompressionSignaturesForAddressBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -14348,7 +14706,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenBalancesByOwnerBodyJsonrpc { + for PostGetCompressionSignaturesForAddressBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -14357,7 +14715,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenBalancesByOwnerBodyJsonrpc { + for PostGetCompressionSignaturesForAddressBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -14374,7 +14732,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedTokenBalancesByOwner" + /// "getCompressionSignaturesForAddress" /// ] ///} /// ``` @@ -14391,34 +14749,34 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenBalancesByOwnerBodyMethod { - #[serde(rename = "getCompressedTokenBalancesByOwner")] - GetCompressedTokenBalancesByOwner, + pub enum PostGetCompressionSignaturesForAddressBodyMethod { + #[serde(rename = "getCompressionSignaturesForAddress")] + GetCompressionSignaturesForAddress, } - impl ::std::fmt::Display for PostGetCompressedTokenBalancesByOwnerBodyMethod { + impl ::std::fmt::Display for PostGetCompressionSignaturesForAddressBodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetCompressedTokenBalancesByOwner => { - f.write_str("getCompressedTokenBalancesByOwner") + Self::GetCompressionSignaturesForAddress => { + f.write_str("getCompressionSignaturesForAddress") } } } } - impl ::std::str::FromStr for PostGetCompressedTokenBalancesByOwnerBodyMethod { + impl ::std::str::FromStr for PostGetCompressionSignaturesForAddressBodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getCompressedTokenBalancesByOwner" => { - Ok(Self::GetCompressedTokenBalancesByOwner) + "getCompressionSignaturesForAddress" => { + Ok(Self::GetCompressionSignaturesForAddress) } _ => Err("invalid value".into()), } } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenBalancesByOwnerBodyMethod { + for PostGetCompressionSignaturesForAddressBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -14427,7 +14785,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenBalancesByOwnerBodyMethod { + for PostGetCompressionSignaturesForAddressBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -14436,7 +14794,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenBalancesByOwnerBodyMethod { + for PostGetCompressionSignaturesForAddressBodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -14444,7 +14802,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedTokenBalancesByOwnerBodyParams` + ///`PostGetCompressionSignaturesForAddressBodyParams` /// ///
JSON schema /// @@ -14452,21 +14810,16 @@ All endpoints return AccountV2.*/ ///{ /// "type": "object", /// "required": [ - /// "owner" + /// "address" /// ], /// "properties": { + /// "address": { + /// "$ref": "#/components/schemas/SerializablePubkey" + /// }, /// "cursor": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/Base58String" - /// } - /// ] - /// } + /// "type": [ + /// "string", + /// "null" /// ] /// }, /// "limit": { @@ -14482,23 +14835,6 @@ All endpoints return AccountV2.*/ /// ] /// } /// ] - /// }, - /// "mint": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// } - /// ] - /// } - /// ] - /// }, - /// "owner": { - /// "$ref": "#/components/schemas/SerializablePubkey" /// } /// }, /// "additionalProperties": false @@ -14507,21 +14843,19 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressedTokenBalancesByOwnerBodyParams { + pub struct PostGetCompressionSignaturesForAddressBodyParams { + pub address: SerializablePubkey, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub cursor: ::std::option::Option, + pub cursor: ::std::option::Option<::std::string::String>, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub limit: ::std::option::Option, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub mint: ::std::option::Option, - pub owner: SerializablePubkey, } - impl PostGetCompressedTokenBalancesByOwnerBodyParams { - pub fn builder() -> builder::PostGetCompressedTokenBalancesByOwnerBodyParams { + impl PostGetCompressionSignaturesForAddressBodyParams { + pub fn builder() -> builder::PostGetCompressionSignaturesForAddressBodyParams { Default::default() } } - ///`PostGetCompressedTokenBalancesByOwnerResponse` + ///`PostGetCompressionSignaturesForAddressResponse` /// ///
JSON schema /// @@ -14569,7 +14903,7 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/TokenBalanceList" + /// "$ref": "#/components/schemas/PaginatedSignatureInfoList" /// } /// }, /// "additionalProperties": false @@ -14579,26 +14913,26 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedTokenBalancesByOwnerResponse { + pub struct PostGetCompressionSignaturesForAddressResponse { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub error: ::std::option::Option< - PostGetCompressedTokenBalancesByOwnerResponseError, + PostGetCompressionSignaturesForAddressResponseError, >, ///An ID to identify the response. - pub id: PostGetCompressedTokenBalancesByOwnerResponseId, + pub id: PostGetCompressionSignaturesForAddressResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedTokenBalancesByOwnerResponseJsonrpc, + pub jsonrpc: PostGetCompressionSignaturesForAddressResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub result: ::std::option::Option< - PostGetCompressedTokenBalancesByOwnerResponseResult, + PostGetCompressionSignaturesForAddressResponseResult, >, } - impl PostGetCompressedTokenBalancesByOwnerResponse { - pub fn builder() -> builder::PostGetCompressedTokenBalancesByOwnerResponse { + impl PostGetCompressionSignaturesForAddressResponse { + pub fn builder() -> builder::PostGetCompressionSignaturesForAddressResponse { Default::default() } } - ///`PostGetCompressedTokenBalancesByOwnerResponseError` + ///`PostGetCompressionSignaturesForAddressResponseError` /// ///
JSON schema /// @@ -14617,13 +14951,14 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedTokenBalancesByOwnerResponseError { + pub struct PostGetCompressionSignaturesForAddressResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default for PostGetCompressedTokenBalancesByOwnerResponseError { + impl ::std::default::Default + for PostGetCompressionSignaturesForAddressResponseError { fn default() -> Self { Self { code: Default::default(), @@ -14631,8 +14966,8 @@ All endpoints return AccountV2.*/ } } } - impl PostGetCompressedTokenBalancesByOwnerResponseError { - pub fn builder() -> builder::PostGetCompressedTokenBalancesByOwnerResponseError { + impl PostGetCompressionSignaturesForAddressResponseError { + pub fn builder() -> builder::PostGetCompressionSignaturesForAddressResponseError { Default::default() } } @@ -14662,18 +14997,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenBalancesByOwnerResponseId { + pub enum PostGetCompressionSignaturesForAddressResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedTokenBalancesByOwnerResponseId { + impl ::std::fmt::Display for PostGetCompressionSignaturesForAddressResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedTokenBalancesByOwnerResponseId { + impl ::std::str::FromStr for PostGetCompressionSignaturesForAddressResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -14685,7 +15020,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenBalancesByOwnerResponseId { + for PostGetCompressionSignaturesForAddressResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -14694,7 +15029,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenBalancesByOwnerResponseId { + for PostGetCompressionSignaturesForAddressResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -14703,7 +15038,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenBalancesByOwnerResponseId { + for PostGetCompressionSignaturesForAddressResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -14737,18 +15072,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenBalancesByOwnerResponseJsonrpc { + pub enum PostGetCompressionSignaturesForAddressResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedTokenBalancesByOwnerResponseJsonrpc { + impl ::std::fmt::Display for PostGetCompressionSignaturesForAddressResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedTokenBalancesByOwnerResponseJsonrpc { + impl ::std::str::FromStr for PostGetCompressionSignaturesForAddressResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -14760,7 +15095,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenBalancesByOwnerResponseJsonrpc { + for PostGetCompressionSignaturesForAddressResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -14769,7 +15104,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenBalancesByOwnerResponseJsonrpc { + for PostGetCompressionSignaturesForAddressResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -14778,7 +15113,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenBalancesByOwnerResponseJsonrpc { + for PostGetCompressionSignaturesForAddressResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -14786,7 +15121,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedTokenBalancesByOwnerResponseResult` + ///`PostGetCompressionSignaturesForAddressResponseResult` /// ///
JSON schema /// @@ -14802,7 +15137,7 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/TokenBalanceList" + /// "$ref": "#/components/schemas/PaginatedSignatureInfoList" /// } /// }, /// "additionalProperties": false @@ -14811,16 +15146,16 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressedTokenBalancesByOwnerResponseResult { + pub struct PostGetCompressionSignaturesForAddressResponseResult { pub context: Context, - pub value: TokenBalanceList, + pub value: PaginatedSignatureInfoList, } - impl PostGetCompressedTokenBalancesByOwnerResponseResult { - pub fn builder() -> builder::PostGetCompressedTokenBalancesByOwnerResponseResult { + impl PostGetCompressionSignaturesForAddressResponseResult { + pub fn builder() -> builder::PostGetCompressionSignaturesForAddressResponseResult { Default::default() } } - ///`PostGetCompressedTokenBalancesByOwnerV2Body` + ///`PostGetCompressionSignaturesForOwnerBody` /// ///
JSON schema /// @@ -14852,7 +15187,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedTokenBalancesByOwnerV2" + /// "getCompressionSignaturesForOwner" /// ] /// }, /// "params": { @@ -14862,17 +15197,9 @@ All endpoints return AccountV2.*/ /// ], /// "properties": { /// "cursor": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/Base58String" - /// } - /// ] - /// } + /// "type": [ + /// "string", + /// "null" /// ] /// }, /// "limit": { @@ -14889,20 +15216,6 @@ All endpoints return AccountV2.*/ /// } /// ] /// }, - /// "mint": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// } - /// ] - /// } - /// ] - /// }, /// "owner": { /// "$ref": "#/components/schemas/SerializablePubkey" /// } @@ -14914,17 +15227,17 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedTokenBalancesByOwnerV2Body { + pub struct PostGetCompressionSignaturesForOwnerBody { ///An ID to identify the request. - pub id: PostGetCompressedTokenBalancesByOwnerV2BodyId, + pub id: PostGetCompressionSignaturesForOwnerBodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedTokenBalancesByOwnerV2BodyJsonrpc, + pub jsonrpc: PostGetCompressionSignaturesForOwnerBodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetCompressedTokenBalancesByOwnerV2BodyMethod, - pub params: PostGetCompressedTokenBalancesByOwnerV2BodyParams, + pub method: PostGetCompressionSignaturesForOwnerBodyMethod, + pub params: PostGetCompressionSignaturesForOwnerBodyParams, } - impl PostGetCompressedTokenBalancesByOwnerV2Body { - pub fn builder() -> builder::PostGetCompressedTokenBalancesByOwnerV2Body { + impl PostGetCompressionSignaturesForOwnerBody { + pub fn builder() -> builder::PostGetCompressionSignaturesForOwnerBody { Default::default() } } @@ -14954,18 +15267,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenBalancesByOwnerV2BodyId { + pub enum PostGetCompressionSignaturesForOwnerBodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedTokenBalancesByOwnerV2BodyId { + impl ::std::fmt::Display for PostGetCompressionSignaturesForOwnerBodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedTokenBalancesByOwnerV2BodyId { + impl ::std::str::FromStr for PostGetCompressionSignaturesForOwnerBodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -14976,8 +15289,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenBalancesByOwnerV2BodyId { + impl ::std::convert::TryFrom<&str> for PostGetCompressionSignaturesForOwnerBodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -14986,7 +15298,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenBalancesByOwnerV2BodyId { + for PostGetCompressionSignaturesForOwnerBodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -14995,7 +15307,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenBalancesByOwnerV2BodyId { + for PostGetCompressionSignaturesForOwnerBodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -15029,18 +15341,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenBalancesByOwnerV2BodyJsonrpc { + pub enum PostGetCompressionSignaturesForOwnerBodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedTokenBalancesByOwnerV2BodyJsonrpc { + impl ::std::fmt::Display for PostGetCompressionSignaturesForOwnerBodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedTokenBalancesByOwnerV2BodyJsonrpc { + impl ::std::str::FromStr for PostGetCompressionSignaturesForOwnerBodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -15052,7 +15364,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenBalancesByOwnerV2BodyJsonrpc { + for PostGetCompressionSignaturesForOwnerBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -15061,7 +15373,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenBalancesByOwnerV2BodyJsonrpc { + for PostGetCompressionSignaturesForOwnerBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -15070,7 +15382,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenBalancesByOwnerV2BodyJsonrpc { + for PostGetCompressionSignaturesForOwnerBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -15087,7 +15399,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressedTokenBalancesByOwnerV2" + /// "getCompressionSignaturesForOwner" /// ] ///} /// ``` @@ -15104,34 +15416,34 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenBalancesByOwnerV2BodyMethod { - #[serde(rename = "getCompressedTokenBalancesByOwnerV2")] - GetCompressedTokenBalancesByOwnerV2, + pub enum PostGetCompressionSignaturesForOwnerBodyMethod { + #[serde(rename = "getCompressionSignaturesForOwner")] + GetCompressionSignaturesForOwner, } - impl ::std::fmt::Display for PostGetCompressedTokenBalancesByOwnerV2BodyMethod { + impl ::std::fmt::Display for PostGetCompressionSignaturesForOwnerBodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetCompressedTokenBalancesByOwnerV2 => { - f.write_str("getCompressedTokenBalancesByOwnerV2") + Self::GetCompressionSignaturesForOwner => { + f.write_str("getCompressionSignaturesForOwner") } } } } - impl ::std::str::FromStr for PostGetCompressedTokenBalancesByOwnerV2BodyMethod { + impl ::std::str::FromStr for PostGetCompressionSignaturesForOwnerBodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getCompressedTokenBalancesByOwnerV2" => { - Ok(Self::GetCompressedTokenBalancesByOwnerV2) + "getCompressionSignaturesForOwner" => { + Ok(Self::GetCompressionSignaturesForOwner) } _ => Err("invalid value".into()), } } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenBalancesByOwnerV2BodyMethod { + for PostGetCompressionSignaturesForOwnerBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -15140,7 +15452,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenBalancesByOwnerV2BodyMethod { + for PostGetCompressionSignaturesForOwnerBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -15149,7 +15461,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenBalancesByOwnerV2BodyMethod { + for PostGetCompressionSignaturesForOwnerBodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -15157,7 +15469,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedTokenBalancesByOwnerV2BodyParams` + ///`PostGetCompressionSignaturesForOwnerBodyParams` /// ///
JSON schema /// @@ -15169,17 +15481,9 @@ All endpoints return AccountV2.*/ /// ], /// "properties": { /// "cursor": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/Base58String" - /// } - /// ] - /// } + /// "type": [ + /// "string", + /// "null" /// ] /// }, /// "limit": { @@ -15196,20 +15500,6 @@ All endpoints return AccountV2.*/ /// } /// ] /// }, - /// "mint": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// } - /// ] - /// } - /// ] - /// }, /// "owner": { /// "$ref": "#/components/schemas/SerializablePubkey" /// } @@ -15220,21 +15510,19 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressedTokenBalancesByOwnerV2BodyParams { + pub struct PostGetCompressionSignaturesForOwnerBodyParams { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub cursor: ::std::option::Option, + pub cursor: ::std::option::Option<::std::string::String>, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub limit: ::std::option::Option, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub mint: ::std::option::Option, pub owner: SerializablePubkey, } - impl PostGetCompressedTokenBalancesByOwnerV2BodyParams { - pub fn builder() -> builder::PostGetCompressedTokenBalancesByOwnerV2BodyParams { + impl PostGetCompressionSignaturesForOwnerBodyParams { + pub fn builder() -> builder::PostGetCompressionSignaturesForOwnerBodyParams { Default::default() } } - ///`PostGetCompressedTokenBalancesByOwnerV2Response` + ///`PostGetCompressionSignaturesForOwnerResponse` /// ///
JSON schema /// @@ -15282,7 +15570,7 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/TokenBalanceListV2" + /// "$ref": "#/components/schemas/PaginatedSignatureInfoList" /// } /// }, /// "additionalProperties": false @@ -15292,26 +15580,26 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedTokenBalancesByOwnerV2Response { + pub struct PostGetCompressionSignaturesForOwnerResponse { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub error: ::std::option::Option< - PostGetCompressedTokenBalancesByOwnerV2ResponseError, + PostGetCompressionSignaturesForOwnerResponseError, >, ///An ID to identify the response. - pub id: PostGetCompressedTokenBalancesByOwnerV2ResponseId, + pub id: PostGetCompressionSignaturesForOwnerResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressedTokenBalancesByOwnerV2ResponseJsonrpc, + pub jsonrpc: PostGetCompressionSignaturesForOwnerResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub result: ::std::option::Option< - PostGetCompressedTokenBalancesByOwnerV2ResponseResult, + PostGetCompressionSignaturesForOwnerResponseResult, >, } - impl PostGetCompressedTokenBalancesByOwnerV2Response { - pub fn builder() -> builder::PostGetCompressedTokenBalancesByOwnerV2Response { + impl PostGetCompressionSignaturesForOwnerResponse { + pub fn builder() -> builder::PostGetCompressionSignaturesForOwnerResponse { Default::default() } } - ///`PostGetCompressedTokenBalancesByOwnerV2ResponseError` + ///`PostGetCompressionSignaturesForOwnerResponseError` /// ///
JSON schema /// @@ -15330,14 +15618,13 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressedTokenBalancesByOwnerV2ResponseError { + pub struct PostGetCompressionSignaturesForOwnerResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default - for PostGetCompressedTokenBalancesByOwnerV2ResponseError { + impl ::std::default::Default for PostGetCompressionSignaturesForOwnerResponseError { fn default() -> Self { Self { code: Default::default(), @@ -15345,8 +15632,8 @@ All endpoints return AccountV2.*/ } } } - impl PostGetCompressedTokenBalancesByOwnerV2ResponseError { - pub fn builder() -> builder::PostGetCompressedTokenBalancesByOwnerV2ResponseError { + impl PostGetCompressionSignaturesForOwnerResponseError { + pub fn builder() -> builder::PostGetCompressionSignaturesForOwnerResponseError { Default::default() } } @@ -15376,18 +15663,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenBalancesByOwnerV2ResponseId { + pub enum PostGetCompressionSignaturesForOwnerResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressedTokenBalancesByOwnerV2ResponseId { + impl ::std::fmt::Display for PostGetCompressionSignaturesForOwnerResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressedTokenBalancesByOwnerV2ResponseId { + impl ::std::str::FromStr for PostGetCompressionSignaturesForOwnerResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -15399,7 +15686,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenBalancesByOwnerV2ResponseId { + for PostGetCompressionSignaturesForOwnerResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -15408,7 +15695,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenBalancesByOwnerV2ResponseId { + for PostGetCompressionSignaturesForOwnerResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -15417,7 +15704,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenBalancesByOwnerV2ResponseId { + for PostGetCompressionSignaturesForOwnerResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -15451,18 +15738,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressedTokenBalancesByOwnerV2ResponseJsonrpc { + pub enum PostGetCompressionSignaturesForOwnerResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressedTokenBalancesByOwnerV2ResponseJsonrpc { + impl ::std::fmt::Display for PostGetCompressionSignaturesForOwnerResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressedTokenBalancesByOwnerV2ResponseJsonrpc { + impl ::std::str::FromStr for PostGetCompressionSignaturesForOwnerResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -15474,7 +15761,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressedTokenBalancesByOwnerV2ResponseJsonrpc { + for PostGetCompressionSignaturesForOwnerResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -15483,7 +15770,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressedTokenBalancesByOwnerV2ResponseJsonrpc { + for PostGetCompressionSignaturesForOwnerResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -15492,7 +15779,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressedTokenBalancesByOwnerV2ResponseJsonrpc { + for PostGetCompressionSignaturesForOwnerResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -15500,7 +15787,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressedTokenBalancesByOwnerV2ResponseResult` + ///`PostGetCompressionSignaturesForOwnerResponseResult` /// ///
JSON schema /// @@ -15516,7 +15803,7 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/TokenBalanceListV2" + /// "$ref": "#/components/schemas/PaginatedSignatureInfoList" /// } /// }, /// "additionalProperties": false @@ -15525,16 +15812,16 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressedTokenBalancesByOwnerV2ResponseResult { + pub struct PostGetCompressionSignaturesForOwnerResponseResult { pub context: Context, - pub value: TokenBalanceListV2, + pub value: PaginatedSignatureInfoList, } - impl PostGetCompressedTokenBalancesByOwnerV2ResponseResult { - pub fn builder() -> builder::PostGetCompressedTokenBalancesByOwnerV2ResponseResult { + impl PostGetCompressionSignaturesForOwnerResponseResult { + pub fn builder() -> builder::PostGetCompressionSignaturesForOwnerResponseResult { Default::default() } } - ///`PostGetCompressionSignaturesForAccountBody` + ///`PostGetCompressionSignaturesForTokenOwnerBody` /// ///
JSON schema /// @@ -15566,36 +15853,57 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressionSignaturesForAccount" + /// "getCompressionSignaturesForTokenOwner" /// ] /// }, /// "params": { /// "type": "object", /// "required": [ - /// "hash" + /// "owner" /// ], /// "properties": { - /// "hash": { - /// "$ref": "#/components/schemas/Hash" + /// "cursor": { + /// "type": [ + /// "string", + /// "null" + /// ] + /// }, + /// "limit": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/Limit" + /// } + /// ] + /// } + /// ] + /// }, + /// "owner": { + /// "$ref": "#/components/schemas/SerializablePubkey" /// } - /// } + /// }, + /// "additionalProperties": false /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressionSignaturesForAccountBody { + pub struct PostGetCompressionSignaturesForTokenOwnerBody { ///An ID to identify the request. - pub id: PostGetCompressionSignaturesForAccountBodyId, + pub id: PostGetCompressionSignaturesForTokenOwnerBodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressionSignaturesForAccountBodyJsonrpc, + pub jsonrpc: PostGetCompressionSignaturesForTokenOwnerBodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetCompressionSignaturesForAccountBodyMethod, - pub params: PostGetCompressionSignaturesForAccountBodyParams, + pub method: PostGetCompressionSignaturesForTokenOwnerBodyMethod, + pub params: PostGetCompressionSignaturesForTokenOwnerBodyParams, } - impl PostGetCompressionSignaturesForAccountBody { - pub fn builder() -> builder::PostGetCompressionSignaturesForAccountBody { + impl PostGetCompressionSignaturesForTokenOwnerBody { + pub fn builder() -> builder::PostGetCompressionSignaturesForTokenOwnerBody { Default::default() } } @@ -15625,18 +15933,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressionSignaturesForAccountBodyId { + pub enum PostGetCompressionSignaturesForTokenOwnerBodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressionSignaturesForAccountBodyId { + impl ::std::fmt::Display for PostGetCompressionSignaturesForTokenOwnerBodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressionSignaturesForAccountBodyId { + impl ::std::str::FromStr for PostGetCompressionSignaturesForTokenOwnerBodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -15647,7 +15955,8 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressionSignaturesForAccountBodyId { + impl ::std::convert::TryFrom<&str> + for PostGetCompressionSignaturesForTokenOwnerBodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -15656,7 +15965,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressionSignaturesForAccountBodyId { + for PostGetCompressionSignaturesForTokenOwnerBodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -15665,7 +15974,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressionSignaturesForAccountBodyId { + for PostGetCompressionSignaturesForTokenOwnerBodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -15699,18 +16008,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressionSignaturesForAccountBodyJsonrpc { + pub enum PostGetCompressionSignaturesForTokenOwnerBodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressionSignaturesForAccountBodyJsonrpc { + impl ::std::fmt::Display for PostGetCompressionSignaturesForTokenOwnerBodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressionSignaturesForAccountBodyJsonrpc { + impl ::std::str::FromStr for PostGetCompressionSignaturesForTokenOwnerBodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -15722,7 +16031,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressionSignaturesForAccountBodyJsonrpc { + for PostGetCompressionSignaturesForTokenOwnerBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -15731,7 +16040,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressionSignaturesForAccountBodyJsonrpc { + for PostGetCompressionSignaturesForTokenOwnerBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -15740,7 +16049,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressionSignaturesForAccountBodyJsonrpc { + for PostGetCompressionSignaturesForTokenOwnerBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -15757,7 +16066,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressionSignaturesForAccount" + /// "getCompressionSignaturesForTokenOwner" /// ] ///} /// ``` @@ -15774,34 +16083,34 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressionSignaturesForAccountBodyMethod { - #[serde(rename = "getCompressionSignaturesForAccount")] - GetCompressionSignaturesForAccount, + pub enum PostGetCompressionSignaturesForTokenOwnerBodyMethod { + #[serde(rename = "getCompressionSignaturesForTokenOwner")] + GetCompressionSignaturesForTokenOwner, } - impl ::std::fmt::Display for PostGetCompressionSignaturesForAccountBodyMethod { + impl ::std::fmt::Display for PostGetCompressionSignaturesForTokenOwnerBodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetCompressionSignaturesForAccount => { - f.write_str("getCompressionSignaturesForAccount") + Self::GetCompressionSignaturesForTokenOwner => { + f.write_str("getCompressionSignaturesForTokenOwner") } } } } - impl ::std::str::FromStr for PostGetCompressionSignaturesForAccountBodyMethod { + impl ::std::str::FromStr for PostGetCompressionSignaturesForTokenOwnerBodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getCompressionSignaturesForAccount" => { - Ok(Self::GetCompressionSignaturesForAccount) + "getCompressionSignaturesForTokenOwner" => { + Ok(Self::GetCompressionSignaturesForTokenOwner) } _ => Err("invalid value".into()), } } } impl ::std::convert::TryFrom<&str> - for PostGetCompressionSignaturesForAccountBodyMethod { + for PostGetCompressionSignaturesForTokenOwnerBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -15810,7 +16119,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressionSignaturesForAccountBodyMethod { + for PostGetCompressionSignaturesForTokenOwnerBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -15819,7 +16128,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressionSignaturesForAccountBodyMethod { + for PostGetCompressionSignaturesForTokenOwnerBodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -15827,7 +16136,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressionSignaturesForAccountBodyParams` + ///`PostGetCompressionSignaturesForTokenOwnerBodyParams` /// ///
JSON schema /// @@ -15835,26 +16144,52 @@ All endpoints return AccountV2.*/ ///{ /// "type": "object", /// "required": [ - /// "hash" + /// "owner" /// ], /// "properties": { - /// "hash": { - /// "$ref": "#/components/schemas/Hash" + /// "cursor": { + /// "type": [ + /// "string", + /// "null" + /// ] + /// }, + /// "limit": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/Limit" + /// } + /// ] + /// } + /// ] + /// }, + /// "owner": { + /// "$ref": "#/components/schemas/SerializablePubkey" /// } - /// } + /// }, + /// "additionalProperties": false ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressionSignaturesForAccountBodyParams { - pub hash: Hash, + #[serde(deny_unknown_fields)] + pub struct PostGetCompressionSignaturesForTokenOwnerBodyParams { + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub cursor: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub limit: ::std::option::Option, + pub owner: SerializablePubkey, } - impl PostGetCompressionSignaturesForAccountBodyParams { - pub fn builder() -> builder::PostGetCompressionSignaturesForAccountBodyParams { + impl PostGetCompressionSignaturesForTokenOwnerBodyParams { + pub fn builder() -> builder::PostGetCompressionSignaturesForTokenOwnerBodyParams { Default::default() } } - ///`PostGetCompressionSignaturesForAccountResponse` + ///`PostGetCompressionSignaturesForTokenOwnerResponse` /// ///
JSON schema /// @@ -15902,7 +16237,7 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/SignatureInfoList" + /// "$ref": "#/components/schemas/PaginatedSignatureInfoList" /// } /// }, /// "additionalProperties": false @@ -15912,26 +16247,26 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressionSignaturesForAccountResponse { + pub struct PostGetCompressionSignaturesForTokenOwnerResponse { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub error: ::std::option::Option< - PostGetCompressionSignaturesForAccountResponseError, + PostGetCompressionSignaturesForTokenOwnerResponseError, >, ///An ID to identify the response. - pub id: PostGetCompressionSignaturesForAccountResponseId, + pub id: PostGetCompressionSignaturesForTokenOwnerResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressionSignaturesForAccountResponseJsonrpc, + pub jsonrpc: PostGetCompressionSignaturesForTokenOwnerResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub result: ::std::option::Option< - PostGetCompressionSignaturesForAccountResponseResult, + PostGetCompressionSignaturesForTokenOwnerResponseResult, >, } - impl PostGetCompressionSignaturesForAccountResponse { - pub fn builder() -> builder::PostGetCompressionSignaturesForAccountResponse { + impl PostGetCompressionSignaturesForTokenOwnerResponse { + pub fn builder() -> builder::PostGetCompressionSignaturesForTokenOwnerResponse { Default::default() } } - ///`PostGetCompressionSignaturesForAccountResponseError` + ///`PostGetCompressionSignaturesForTokenOwnerResponseError` /// ///
JSON schema /// @@ -15950,14 +16285,14 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressionSignaturesForAccountResponseError { + pub struct PostGetCompressionSignaturesForTokenOwnerResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } impl ::std::default::Default - for PostGetCompressionSignaturesForAccountResponseError { + for PostGetCompressionSignaturesForTokenOwnerResponseError { fn default() -> Self { Self { code: Default::default(), @@ -15965,8 +16300,8 @@ All endpoints return AccountV2.*/ } } } - impl PostGetCompressionSignaturesForAccountResponseError { - pub fn builder() -> builder::PostGetCompressionSignaturesForAccountResponseError { + impl PostGetCompressionSignaturesForTokenOwnerResponseError { + pub fn builder() -> builder::PostGetCompressionSignaturesForTokenOwnerResponseError { Default::default() } } @@ -15996,18 +16331,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressionSignaturesForAccountResponseId { + pub enum PostGetCompressionSignaturesForTokenOwnerResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressionSignaturesForAccountResponseId { + impl ::std::fmt::Display for PostGetCompressionSignaturesForTokenOwnerResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressionSignaturesForAccountResponseId { + impl ::std::str::FromStr for PostGetCompressionSignaturesForTokenOwnerResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -16019,7 +16354,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressionSignaturesForAccountResponseId { + for PostGetCompressionSignaturesForTokenOwnerResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -16028,7 +16363,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressionSignaturesForAccountResponseId { + for PostGetCompressionSignaturesForTokenOwnerResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -16037,7 +16372,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressionSignaturesForAccountResponseId { + for PostGetCompressionSignaturesForTokenOwnerResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -16071,18 +16406,20 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressionSignaturesForAccountResponseJsonrpc { + pub enum PostGetCompressionSignaturesForTokenOwnerResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressionSignaturesForAccountResponseJsonrpc { + impl ::std::fmt::Display + for PostGetCompressionSignaturesForTokenOwnerResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressionSignaturesForAccountResponseJsonrpc { + impl ::std::str::FromStr + for PostGetCompressionSignaturesForTokenOwnerResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -16094,7 +16431,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressionSignaturesForAccountResponseJsonrpc { + for PostGetCompressionSignaturesForTokenOwnerResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -16103,7 +16440,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressionSignaturesForAccountResponseJsonrpc { + for PostGetCompressionSignaturesForTokenOwnerResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -16112,7 +16449,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressionSignaturesForAccountResponseJsonrpc { + for PostGetCompressionSignaturesForTokenOwnerResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -16120,7 +16457,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressionSignaturesForAccountResponseResult` + ///`PostGetCompressionSignaturesForTokenOwnerResponseResult` /// ///
JSON schema /// @@ -16136,7 +16473,7 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/SignatureInfoList" + /// "$ref": "#/components/schemas/PaginatedSignatureInfoList" /// } /// }, /// "additionalProperties": false @@ -16145,16 +16482,16 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressionSignaturesForAccountResponseResult { + pub struct PostGetCompressionSignaturesForTokenOwnerResponseResult { pub context: Context, - pub value: SignatureInfoList, + pub value: PaginatedSignatureInfoList, } - impl PostGetCompressionSignaturesForAccountResponseResult { - pub fn builder() -> builder::PostGetCompressionSignaturesForAccountResponseResult { + impl PostGetCompressionSignaturesForTokenOwnerResponseResult { + pub fn builder() -> builder::PostGetCompressionSignaturesForTokenOwnerResponseResult { Default::default() } } - ///`PostGetCompressionSignaturesForAddressBody` + ///`PostGetIndexerHealthBody` /// ///
JSON schema /// @@ -16164,8 +16501,7 @@ All endpoints return AccountV2.*/ /// "required": [ /// "id", /// "jsonrpc", - /// "method", - /// "params" + /// "method" /// ], /// "properties": { /// "id": { @@ -16186,57 +16522,24 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressionSignaturesForAddress" + /// "getIndexerHealth" /// ] - /// }, - /// "params": { - /// "type": "object", - /// "required": [ - /// "address" - /// ], - /// "properties": { - /// "address": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// }, - /// "cursor": { - /// "type": [ - /// "string", - /// "null" - /// ] - /// }, - /// "limit": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/Limit" - /// } - /// ] - /// } - /// ] - /// } - /// }, - /// "additionalProperties": false /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressionSignaturesForAddressBody { + pub struct PostGetIndexerHealthBody { ///An ID to identify the request. - pub id: PostGetCompressionSignaturesForAddressBodyId, + pub id: PostGetIndexerHealthBodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressionSignaturesForAddressBodyJsonrpc, + pub jsonrpc: PostGetIndexerHealthBodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetCompressionSignaturesForAddressBodyMethod, - pub params: PostGetCompressionSignaturesForAddressBodyParams, + pub method: PostGetIndexerHealthBodyMethod, } - impl PostGetCompressionSignaturesForAddressBody { - pub fn builder() -> builder::PostGetCompressionSignaturesForAddressBody { + impl PostGetIndexerHealthBody { + pub fn builder() -> builder::PostGetIndexerHealthBody { Default::default() } } @@ -16266,18 +16569,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressionSignaturesForAddressBodyId { + pub enum PostGetIndexerHealthBodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressionSignaturesForAddressBodyId { + impl ::std::fmt::Display for PostGetIndexerHealthBodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressionSignaturesForAddressBodyId { + impl ::std::str::FromStr for PostGetIndexerHealthBodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -16288,7 +16591,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressionSignaturesForAddressBodyId { + impl ::std::convert::TryFrom<&str> for PostGetIndexerHealthBodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -16296,8 +16599,7 @@ All endpoints return AccountV2.*/ value.parse() } } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressionSignaturesForAddressBodyId { + impl ::std::convert::TryFrom<&::std::string::String> for PostGetIndexerHealthBodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -16305,8 +16607,7 @@ All endpoints return AccountV2.*/ value.parse() } } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressionSignaturesForAddressBodyId { + impl ::std::convert::TryFrom<::std::string::String> for PostGetIndexerHealthBodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -16340,18 +16641,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressionSignaturesForAddressBodyJsonrpc { + pub enum PostGetIndexerHealthBodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressionSignaturesForAddressBodyJsonrpc { + impl ::std::fmt::Display for PostGetIndexerHealthBodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressionSignaturesForAddressBodyJsonrpc { + impl ::std::str::FromStr for PostGetIndexerHealthBodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -16362,8 +16663,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> - for PostGetCompressionSignaturesForAddressBodyJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetIndexerHealthBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -16372,7 +16672,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressionSignaturesForAddressBodyJsonrpc { + for PostGetIndexerHealthBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -16381,7 +16681,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressionSignaturesForAddressBodyJsonrpc { + for PostGetIndexerHealthBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -16398,7 +16698,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressionSignaturesForAddress" + /// "getIndexerHealth" /// ] ///} /// ``` @@ -16415,34 +16715,29 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressionSignaturesForAddressBodyMethod { - #[serde(rename = "getCompressionSignaturesForAddress")] - GetCompressionSignaturesForAddress, + pub enum PostGetIndexerHealthBodyMethod { + #[serde(rename = "getIndexerHealth")] + GetIndexerHealth, } - impl ::std::fmt::Display for PostGetCompressionSignaturesForAddressBodyMethod { + impl ::std::fmt::Display for PostGetIndexerHealthBodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetCompressionSignaturesForAddress => { - f.write_str("getCompressionSignaturesForAddress") - } + Self::GetIndexerHealth => f.write_str("getIndexerHealth"), } } } - impl ::std::str::FromStr for PostGetCompressionSignaturesForAddressBodyMethod { + impl ::std::str::FromStr for PostGetIndexerHealthBodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getCompressionSignaturesForAddress" => { - Ok(Self::GetCompressionSignaturesForAddress) - } + "getIndexerHealth" => Ok(Self::GetIndexerHealth), _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> - for PostGetCompressionSignaturesForAddressBodyMethod { + impl ::std::convert::TryFrom<&str> for PostGetIndexerHealthBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -16451,7 +16746,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressionSignaturesForAddressBodyMethod { + for PostGetIndexerHealthBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -16460,7 +16755,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressionSignaturesForAddressBodyMethod { + for PostGetIndexerHealthBodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -16468,60 +16763,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressionSignaturesForAddressBodyParams` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "address" - /// ], - /// "properties": { - /// "address": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// }, - /// "cursor": { - /// "type": [ - /// "string", - /// "null" - /// ] - /// }, - /// "limit": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/Limit" - /// } - /// ] - /// } - /// ] - /// } - /// }, - /// "additionalProperties": false - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(deny_unknown_fields)] - pub struct PostGetCompressionSignaturesForAddressBodyParams { - pub address: SerializablePubkey, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub cursor: ::std::option::Option<::std::string::String>, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub limit: ::std::option::Option, - } - impl PostGetCompressionSignaturesForAddressBodyParams { - pub fn builder() -> builder::PostGetCompressionSignaturesForAddressBodyParams { - Default::default() - } - } - ///`PostGetCompressionSignaturesForAddressResponse` + ///`PostGetIndexerHealthResponse` /// ///
JSON schema /// @@ -16559,46 +16801,35 @@ All endpoints return AccountV2.*/ /// ] /// }, /// "result": { - /// "type": "object", - /// "required": [ - /// "context", - /// "value" - /// ], - /// "properties": { - /// "context": { - /// "$ref": "#/components/schemas/Context" - /// }, - /// "value": { - /// "$ref": "#/components/schemas/PaginatedSignatureInfoList" - /// } - /// }, - /// "additionalProperties": false + /// "description": "ok if healthy", + /// "default": "ok", + /// "type": "string", + /// "enum": [ + /// "ok" + /// ] /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressionSignaturesForAddressResponse { + pub struct PostGetIndexerHealthResponse { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option< - PostGetCompressionSignaturesForAddressResponseError, - >, + pub error: ::std::option::Option, ///An ID to identify the response. - pub id: PostGetCompressionSignaturesForAddressResponseId, + pub id: PostGetIndexerHealthResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressionSignaturesForAddressResponseJsonrpc, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub result: ::std::option::Option< - PostGetCompressionSignaturesForAddressResponseResult, - >, + pub jsonrpc: PostGetIndexerHealthResponseJsonrpc, + ///ok if healthy + #[serde(default = "defaults::post_get_indexer_health_response_result")] + pub result: PostGetIndexerHealthResponseResult, } - impl PostGetCompressionSignaturesForAddressResponse { - pub fn builder() -> builder::PostGetCompressionSignaturesForAddressResponse { + impl PostGetIndexerHealthResponse { + pub fn builder() -> builder::PostGetIndexerHealthResponse { Default::default() } } - ///`PostGetCompressionSignaturesForAddressResponseError` + ///`PostGetIndexerHealthResponseError` /// ///
JSON schema /// @@ -16617,14 +16848,13 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressionSignaturesForAddressResponseError { + pub struct PostGetIndexerHealthResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default - for PostGetCompressionSignaturesForAddressResponseError { + impl ::std::default::Default for PostGetIndexerHealthResponseError { fn default() -> Self { Self { code: Default::default(), @@ -16632,8 +16862,8 @@ All endpoints return AccountV2.*/ } } } - impl PostGetCompressionSignaturesForAddressResponseError { - pub fn builder() -> builder::PostGetCompressionSignaturesForAddressResponseError { + impl PostGetIndexerHealthResponseError { + pub fn builder() -> builder::PostGetIndexerHealthResponseError { Default::default() } } @@ -16663,18 +16893,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressionSignaturesForAddressResponseId { + pub enum PostGetIndexerHealthResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressionSignaturesForAddressResponseId { + impl ::std::fmt::Display for PostGetIndexerHealthResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressionSignaturesForAddressResponseId { + impl ::std::str::FromStr for PostGetIndexerHealthResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -16685,8 +16915,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> - for PostGetCompressionSignaturesForAddressResponseId { + impl ::std::convert::TryFrom<&str> for PostGetIndexerHealthResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -16695,7 +16924,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressionSignaturesForAddressResponseId { + for PostGetIndexerHealthResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -16704,7 +16933,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressionSignaturesForAddressResponseId { + for PostGetIndexerHealthResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -16738,18 +16967,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressionSignaturesForAddressResponseJsonrpc { + pub enum PostGetIndexerHealthResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressionSignaturesForAddressResponseJsonrpc { + impl ::std::fmt::Display for PostGetIndexerHealthResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressionSignaturesForAddressResponseJsonrpc { + impl ::std::str::FromStr for PostGetIndexerHealthResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -16760,8 +16989,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> - for PostGetCompressionSignaturesForAddressResponseJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetIndexerHealthResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -16770,7 +16998,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressionSignaturesForAddressResponseJsonrpc { + for PostGetIndexerHealthResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -16779,7 +17007,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressionSignaturesForAddressResponseJsonrpc { + for PostGetIndexerHealthResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -16787,41 +17015,87 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressionSignaturesForAddressResponseResult` + ///ok if healthy /// ///
JSON schema /// /// ```json ///{ - /// "type": "object", - /// "required": [ - /// "context", - /// "value" - /// ], - /// "properties": { - /// "context": { - /// "$ref": "#/components/schemas/Context" - /// }, - /// "value": { - /// "$ref": "#/components/schemas/PaginatedSignatureInfoList" - /// } - /// }, - /// "additionalProperties": false + /// "description": "ok if healthy", + /// "default": "ok", + /// "type": "string", + /// "enum": [ + /// "ok" + /// ] ///} /// ``` ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(deny_unknown_fields)] - pub struct PostGetCompressionSignaturesForAddressResponseResult { - pub context: Context, - pub value: PaginatedSignatureInfoList, + #[derive( + ::serde::Deserialize, + ::serde::Serialize, + Clone, + Copy, + Debug, + Eq, + Hash, + Ord, + PartialEq, + PartialOrd + )] + pub enum PostGetIndexerHealthResponseResult { + #[serde(rename = "ok")] + Ok, } - impl PostGetCompressionSignaturesForAddressResponseResult { - pub fn builder() -> builder::PostGetCompressionSignaturesForAddressResponseResult { - Default::default() + impl ::std::fmt::Display for PostGetIndexerHealthResponseResult { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + match *self { + Self::Ok => f.write_str("ok"), + } } } - ///`PostGetCompressionSignaturesForOwnerBody` + impl ::std::str::FromStr for PostGetIndexerHealthResponseResult { + type Err = self::error::ConversionError; + fn from_str( + value: &str, + ) -> ::std::result::Result { + match value { + "ok" => Ok(Self::Ok), + _ => Err("invalid value".into()), + } + } + } + impl ::std::convert::TryFrom<&str> for PostGetIndexerHealthResponseResult { + type Error = self::error::ConversionError; + fn try_from( + value: &str, + ) -> ::std::result::Result { + value.parse() + } + } + impl ::std::convert::TryFrom<&::std::string::String> + for PostGetIndexerHealthResponseResult { + type Error = self::error::ConversionError; + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { + value.parse() + } + } + impl ::std::convert::TryFrom<::std::string::String> + for PostGetIndexerHealthResponseResult { + type Error = self::error::ConversionError; + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { + value.parse() + } + } + impl ::std::default::Default for PostGetIndexerHealthResponseResult { + fn default() -> Self { + PostGetIndexerHealthResponseResult::Ok + } + } + ///`PostGetIndexerSlotBody` /// ///
JSON schema /// @@ -16831,8 +17105,7 @@ All endpoints return AccountV2.*/ /// "required": [ /// "id", /// "jsonrpc", - /// "method", - /// "params" + /// "method" /// ], /// "properties": { /// "id": { @@ -16853,57 +17126,24 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressionSignaturesForOwner" + /// "getIndexerSlot" /// ] - /// }, - /// "params": { - /// "type": "object", - /// "required": [ - /// "owner" - /// ], - /// "properties": { - /// "cursor": { - /// "type": [ - /// "string", - /// "null" - /// ] - /// }, - /// "limit": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/Limit" - /// } - /// ] - /// } - /// ] - /// }, - /// "owner": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// } - /// }, - /// "additionalProperties": false /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressionSignaturesForOwnerBody { + pub struct PostGetIndexerSlotBody { ///An ID to identify the request. - pub id: PostGetCompressionSignaturesForOwnerBodyId, + pub id: PostGetIndexerSlotBodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressionSignaturesForOwnerBodyJsonrpc, + pub jsonrpc: PostGetIndexerSlotBodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetCompressionSignaturesForOwnerBodyMethod, - pub params: PostGetCompressionSignaturesForOwnerBodyParams, + pub method: PostGetIndexerSlotBodyMethod, } - impl PostGetCompressionSignaturesForOwnerBody { - pub fn builder() -> builder::PostGetCompressionSignaturesForOwnerBody { + impl PostGetIndexerSlotBody { + pub fn builder() -> builder::PostGetIndexerSlotBody { Default::default() } } @@ -16933,18 +17173,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressionSignaturesForOwnerBodyId { + pub enum PostGetIndexerSlotBodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressionSignaturesForOwnerBodyId { + impl ::std::fmt::Display for PostGetIndexerSlotBodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressionSignaturesForOwnerBodyId { + impl ::std::str::FromStr for PostGetIndexerSlotBodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -16955,7 +17195,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetCompressionSignaturesForOwnerBodyId { + impl ::std::convert::TryFrom<&str> for PostGetIndexerSlotBodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -16963,8 +17203,7 @@ All endpoints return AccountV2.*/ value.parse() } } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressionSignaturesForOwnerBodyId { + impl ::std::convert::TryFrom<&::std::string::String> for PostGetIndexerSlotBodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -16972,8 +17211,7 @@ All endpoints return AccountV2.*/ value.parse() } } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressionSignaturesForOwnerBodyId { + impl ::std::convert::TryFrom<::std::string::String> for PostGetIndexerSlotBodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -17007,18 +17245,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressionSignaturesForOwnerBodyJsonrpc { + pub enum PostGetIndexerSlotBodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressionSignaturesForOwnerBodyJsonrpc { + impl ::std::fmt::Display for PostGetIndexerSlotBodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressionSignaturesForOwnerBodyJsonrpc { + impl ::std::str::FromStr for PostGetIndexerSlotBodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -17029,8 +17267,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> - for PostGetCompressionSignaturesForOwnerBodyJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetIndexerSlotBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -17039,7 +17276,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressionSignaturesForOwnerBodyJsonrpc { + for PostGetIndexerSlotBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -17048,7 +17285,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressionSignaturesForOwnerBodyJsonrpc { + for PostGetIndexerSlotBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -17065,7 +17302,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressionSignaturesForOwner" + /// "getIndexerSlot" /// ] ///} /// ``` @@ -17082,34 +17319,29 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressionSignaturesForOwnerBodyMethod { - #[serde(rename = "getCompressionSignaturesForOwner")] - GetCompressionSignaturesForOwner, + pub enum PostGetIndexerSlotBodyMethod { + #[serde(rename = "getIndexerSlot")] + GetIndexerSlot, } - impl ::std::fmt::Display for PostGetCompressionSignaturesForOwnerBodyMethod { + impl ::std::fmt::Display for PostGetIndexerSlotBodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetCompressionSignaturesForOwner => { - f.write_str("getCompressionSignaturesForOwner") - } + Self::GetIndexerSlot => f.write_str("getIndexerSlot"), } } } - impl ::std::str::FromStr for PostGetCompressionSignaturesForOwnerBodyMethod { + impl ::std::str::FromStr for PostGetIndexerSlotBodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getCompressionSignaturesForOwner" => { - Ok(Self::GetCompressionSignaturesForOwner) - } + "getIndexerSlot" => Ok(Self::GetIndexerSlot), _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> - for PostGetCompressionSignaturesForOwnerBodyMethod { + impl ::std::convert::TryFrom<&str> for PostGetIndexerSlotBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -17118,7 +17350,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressionSignaturesForOwnerBodyMethod { + for PostGetIndexerSlotBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -17127,7 +17359,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressionSignaturesForOwnerBodyMethod { + for PostGetIndexerSlotBodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -17135,60 +17367,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressionSignaturesForOwnerBodyParams` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "owner" - /// ], - /// "properties": { - /// "cursor": { - /// "type": [ - /// "string", - /// "null" - /// ] - /// }, - /// "limit": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/Limit" - /// } - /// ] - /// } - /// ] - /// }, - /// "owner": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// } - /// }, - /// "additionalProperties": false - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(deny_unknown_fields)] - pub struct PostGetCompressionSignaturesForOwnerBodyParams { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub cursor: ::std::option::Option<::std::string::String>, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub limit: ::std::option::Option, - pub owner: SerializablePubkey, - } - impl PostGetCompressionSignaturesForOwnerBodyParams { - pub fn builder() -> builder::PostGetCompressionSignaturesForOwnerBodyParams { - Default::default() - } - } - ///`PostGetCompressionSignaturesForOwnerResponse` + ///`PostGetIndexerSlotResponse` /// ///
JSON schema /// @@ -17226,46 +17405,34 @@ All endpoints return AccountV2.*/ /// ] /// }, /// "result": { - /// "type": "object", - /// "required": [ - /// "context", - /// "value" + /// "default": 100, + /// "examples": [ + /// 100 /// ], - /// "properties": { - /// "context": { - /// "$ref": "#/components/schemas/Context" - /// }, - /// "value": { - /// "$ref": "#/components/schemas/PaginatedSignatureInfoList" - /// } - /// }, - /// "additionalProperties": false + /// "type": "integer", + /// "format": "uint64" /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressionSignaturesForOwnerResponse { + pub struct PostGetIndexerSlotResponse { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option< - PostGetCompressionSignaturesForOwnerResponseError, - >, + pub error: ::std::option::Option, ///An ID to identify the response. - pub id: PostGetCompressionSignaturesForOwnerResponseId, + pub id: PostGetIndexerSlotResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressionSignaturesForOwnerResponseJsonrpc, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub result: ::std::option::Option< - PostGetCompressionSignaturesForOwnerResponseResult, - >, + pub jsonrpc: PostGetIndexerSlotResponseJsonrpc, + #[serde(default = "defaults::default_u64::")] + pub result: u64, } - impl PostGetCompressionSignaturesForOwnerResponse { - pub fn builder() -> builder::PostGetCompressionSignaturesForOwnerResponse { + impl PostGetIndexerSlotResponse { + pub fn builder() -> builder::PostGetIndexerSlotResponse { Default::default() } } - ///`PostGetCompressionSignaturesForOwnerResponseError` + ///`PostGetIndexerSlotResponseError` /// ///
JSON schema /// @@ -17284,13 +17451,13 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressionSignaturesForOwnerResponseError { + pub struct PostGetIndexerSlotResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default for PostGetCompressionSignaturesForOwnerResponseError { + impl ::std::default::Default for PostGetIndexerSlotResponseError { fn default() -> Self { Self { code: Default::default(), @@ -17298,8 +17465,8 @@ All endpoints return AccountV2.*/ } } } - impl PostGetCompressionSignaturesForOwnerResponseError { - pub fn builder() -> builder::PostGetCompressionSignaturesForOwnerResponseError { + impl PostGetIndexerSlotResponseError { + pub fn builder() -> builder::PostGetIndexerSlotResponseError { Default::default() } } @@ -17329,18 +17496,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressionSignaturesForOwnerResponseId { + pub enum PostGetIndexerSlotResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressionSignaturesForOwnerResponseId { + impl ::std::fmt::Display for PostGetIndexerSlotResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressionSignaturesForOwnerResponseId { + impl ::std::str::FromStr for PostGetIndexerSlotResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -17351,8 +17518,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> - for PostGetCompressionSignaturesForOwnerResponseId { + impl ::std::convert::TryFrom<&str> for PostGetIndexerSlotResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -17361,7 +17527,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressionSignaturesForOwnerResponseId { + for PostGetIndexerSlotResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -17370,7 +17536,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressionSignaturesForOwnerResponseId { + for PostGetIndexerSlotResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -17404,18 +17570,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressionSignaturesForOwnerResponseJsonrpc { + pub enum PostGetIndexerSlotResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressionSignaturesForOwnerResponseJsonrpc { + impl ::std::fmt::Display for PostGetIndexerSlotResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressionSignaturesForOwnerResponseJsonrpc { + impl ::std::str::FromStr for PostGetIndexerSlotResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -17426,8 +17592,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> - for PostGetCompressionSignaturesForOwnerResponseJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetIndexerSlotResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -17436,7 +17601,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressionSignaturesForOwnerResponseJsonrpc { + for PostGetIndexerSlotResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -17445,7 +17610,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressionSignaturesForOwnerResponseJsonrpc { + for PostGetIndexerSlotResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -17453,41 +17618,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressionSignaturesForOwnerResponseResult` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "context", - /// "value" - /// ], - /// "properties": { - /// "context": { - /// "$ref": "#/components/schemas/Context" - /// }, - /// "value": { - /// "$ref": "#/components/schemas/PaginatedSignatureInfoList" - /// } - /// }, - /// "additionalProperties": false - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(deny_unknown_fields)] - pub struct PostGetCompressionSignaturesForOwnerResponseResult { - pub context: Context, - pub value: PaginatedSignatureInfoList, - } - impl PostGetCompressionSignaturesForOwnerResponseResult { - pub fn builder() -> builder::PostGetCompressionSignaturesForOwnerResponseResult { - Default::default() - } - } - ///`PostGetCompressionSignaturesForTokenOwnerBody` + ///`PostGetLatestCompressionSignaturesBody` /// ///
JSON schema /// @@ -17519,14 +17650,11 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressionSignaturesForTokenOwner" + /// "getLatestCompressionSignatures" /// ] /// }, /// "params": { /// "type": "object", - /// "required": [ - /// "owner" - /// ], /// "properties": { /// "cursor": { /// "type": [ @@ -17547,9 +17675,6 @@ All endpoints return AccountV2.*/ /// ] /// } /// ] - /// }, - /// "owner": { - /// "$ref": "#/components/schemas/SerializablePubkey" /// } /// }, /// "additionalProperties": false @@ -17559,17 +17684,17 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressionSignaturesForTokenOwnerBody { + pub struct PostGetLatestCompressionSignaturesBody { ///An ID to identify the request. - pub id: PostGetCompressionSignaturesForTokenOwnerBodyId, + pub id: PostGetLatestCompressionSignaturesBodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressionSignaturesForTokenOwnerBodyJsonrpc, + pub jsonrpc: PostGetLatestCompressionSignaturesBodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetCompressionSignaturesForTokenOwnerBodyMethod, - pub params: PostGetCompressionSignaturesForTokenOwnerBodyParams, + pub method: PostGetLatestCompressionSignaturesBodyMethod, + pub params: PostGetLatestCompressionSignaturesBodyParams, } - impl PostGetCompressionSignaturesForTokenOwnerBody { - pub fn builder() -> builder::PostGetCompressionSignaturesForTokenOwnerBody { + impl PostGetLatestCompressionSignaturesBody { + pub fn builder() -> builder::PostGetLatestCompressionSignaturesBody { Default::default() } } @@ -17599,18 +17724,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressionSignaturesForTokenOwnerBodyId { + pub enum PostGetLatestCompressionSignaturesBodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressionSignaturesForTokenOwnerBodyId { + impl ::std::fmt::Display for PostGetLatestCompressionSignaturesBodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressionSignaturesForTokenOwnerBodyId { + impl ::std::str::FromStr for PostGetLatestCompressionSignaturesBodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -17621,8 +17746,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> - for PostGetCompressionSignaturesForTokenOwnerBodyId { + impl ::std::convert::TryFrom<&str> for PostGetLatestCompressionSignaturesBodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -17631,7 +17755,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressionSignaturesForTokenOwnerBodyId { + for PostGetLatestCompressionSignaturesBodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -17640,7 +17764,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressionSignaturesForTokenOwnerBodyId { + for PostGetLatestCompressionSignaturesBodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -17674,18 +17798,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressionSignaturesForTokenOwnerBodyJsonrpc { + pub enum PostGetLatestCompressionSignaturesBodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetCompressionSignaturesForTokenOwnerBodyJsonrpc { + impl ::std::fmt::Display for PostGetLatestCompressionSignaturesBodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetCompressionSignaturesForTokenOwnerBodyJsonrpc { + impl ::std::str::FromStr for PostGetLatestCompressionSignaturesBodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -17697,7 +17821,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressionSignaturesForTokenOwnerBodyJsonrpc { + for PostGetLatestCompressionSignaturesBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -17706,7 +17830,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressionSignaturesForTokenOwnerBodyJsonrpc { + for PostGetLatestCompressionSignaturesBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -17715,7 +17839,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressionSignaturesForTokenOwnerBodyJsonrpc { + for PostGetLatestCompressionSignaturesBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -17732,7 +17856,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getCompressionSignaturesForTokenOwner" + /// "getLatestCompressionSignatures" /// ] ///} /// ``` @@ -17749,34 +17873,33 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressionSignaturesForTokenOwnerBodyMethod { - #[serde(rename = "getCompressionSignaturesForTokenOwner")] - GetCompressionSignaturesForTokenOwner, + pub enum PostGetLatestCompressionSignaturesBodyMethod { + #[serde(rename = "getLatestCompressionSignatures")] + GetLatestCompressionSignatures, } - impl ::std::fmt::Display for PostGetCompressionSignaturesForTokenOwnerBodyMethod { + impl ::std::fmt::Display for PostGetLatestCompressionSignaturesBodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetCompressionSignaturesForTokenOwner => { - f.write_str("getCompressionSignaturesForTokenOwner") + Self::GetLatestCompressionSignatures => { + f.write_str("getLatestCompressionSignatures") } } } } - impl ::std::str::FromStr for PostGetCompressionSignaturesForTokenOwnerBodyMethod { + impl ::std::str::FromStr for PostGetLatestCompressionSignaturesBodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getCompressionSignaturesForTokenOwner" => { - Ok(Self::GetCompressionSignaturesForTokenOwner) + "getLatestCompressionSignatures" => { + Ok(Self::GetLatestCompressionSignatures) } _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> - for PostGetCompressionSignaturesForTokenOwnerBodyMethod { + impl ::std::convert::TryFrom<&str> for PostGetLatestCompressionSignaturesBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -17785,7 +17908,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressionSignaturesForTokenOwnerBodyMethod { + for PostGetLatestCompressionSignaturesBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -17794,7 +17917,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressionSignaturesForTokenOwnerBodyMethod { + for PostGetLatestCompressionSignaturesBodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -17802,16 +17925,13 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressionSignaturesForTokenOwnerBodyParams` + ///`PostGetLatestCompressionSignaturesBodyParams` /// ///
JSON schema /// /// ```json ///{ /// "type": "object", - /// "required": [ - /// "owner" - /// ], /// "properties": { /// "cursor": { /// "type": [ @@ -17832,9 +17952,6 @@ All endpoints return AccountV2.*/ /// ] /// } /// ] - /// }, - /// "owner": { - /// "$ref": "#/components/schemas/SerializablePubkey" /// } /// }, /// "additionalProperties": false @@ -17843,19 +17960,26 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressionSignaturesForTokenOwnerBodyParams { + pub struct PostGetLatestCompressionSignaturesBodyParams { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub cursor: ::std::option::Option<::std::string::String>, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub limit: ::std::option::Option, - pub owner: SerializablePubkey, } - impl PostGetCompressionSignaturesForTokenOwnerBodyParams { - pub fn builder() -> builder::PostGetCompressionSignaturesForTokenOwnerBodyParams { + impl ::std::default::Default for PostGetLatestCompressionSignaturesBodyParams { + fn default() -> Self { + Self { + cursor: Default::default(), + limit: Default::default(), + } + } + } + impl PostGetLatestCompressionSignaturesBodyParams { + pub fn builder() -> builder::PostGetLatestCompressionSignaturesBodyParams { Default::default() } } - ///`PostGetCompressionSignaturesForTokenOwnerResponse` + ///`PostGetLatestCompressionSignaturesResponse` /// ///
JSON schema /// @@ -17913,26 +18037,26 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressionSignaturesForTokenOwnerResponse { + pub struct PostGetLatestCompressionSignaturesResponse { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub error: ::std::option::Option< - PostGetCompressionSignaturesForTokenOwnerResponseError, + PostGetLatestCompressionSignaturesResponseError, >, ///An ID to identify the response. - pub id: PostGetCompressionSignaturesForTokenOwnerResponseId, + pub id: PostGetLatestCompressionSignaturesResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetCompressionSignaturesForTokenOwnerResponseJsonrpc, + pub jsonrpc: PostGetLatestCompressionSignaturesResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub result: ::std::option::Option< - PostGetCompressionSignaturesForTokenOwnerResponseResult, + PostGetLatestCompressionSignaturesResponseResult, >, } - impl PostGetCompressionSignaturesForTokenOwnerResponse { - pub fn builder() -> builder::PostGetCompressionSignaturesForTokenOwnerResponse { + impl PostGetLatestCompressionSignaturesResponse { + pub fn builder() -> builder::PostGetLatestCompressionSignaturesResponse { Default::default() } } - ///`PostGetCompressionSignaturesForTokenOwnerResponseError` + ///`PostGetLatestCompressionSignaturesResponseError` /// ///
JSON schema /// @@ -17951,14 +18075,13 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetCompressionSignaturesForTokenOwnerResponseError { + pub struct PostGetLatestCompressionSignaturesResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default - for PostGetCompressionSignaturesForTokenOwnerResponseError { + impl ::std::default::Default for PostGetLatestCompressionSignaturesResponseError { fn default() -> Self { Self { code: Default::default(), @@ -17966,8 +18089,8 @@ All endpoints return AccountV2.*/ } } } - impl PostGetCompressionSignaturesForTokenOwnerResponseError { - pub fn builder() -> builder::PostGetCompressionSignaturesForTokenOwnerResponseError { + impl PostGetLatestCompressionSignaturesResponseError { + pub fn builder() -> builder::PostGetLatestCompressionSignaturesResponseError { Default::default() } } @@ -17997,18 +18120,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressionSignaturesForTokenOwnerResponseId { + pub enum PostGetLatestCompressionSignaturesResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetCompressionSignaturesForTokenOwnerResponseId { + impl ::std::fmt::Display for PostGetLatestCompressionSignaturesResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetCompressionSignaturesForTokenOwnerResponseId { + impl ::std::str::FromStr for PostGetLatestCompressionSignaturesResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -18019,8 +18142,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> - for PostGetCompressionSignaturesForTokenOwnerResponseId { + impl ::std::convert::TryFrom<&str> for PostGetLatestCompressionSignaturesResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -18029,7 +18151,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressionSignaturesForTokenOwnerResponseId { + for PostGetLatestCompressionSignaturesResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -18038,7 +18160,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressionSignaturesForTokenOwnerResponseId { + for PostGetLatestCompressionSignaturesResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -18072,20 +18194,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetCompressionSignaturesForTokenOwnerResponseJsonrpc { + pub enum PostGetLatestCompressionSignaturesResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display - for PostGetCompressionSignaturesForTokenOwnerResponseJsonrpc { + impl ::std::fmt::Display for PostGetLatestCompressionSignaturesResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr - for PostGetCompressionSignaturesForTokenOwnerResponseJsonrpc { + impl ::std::str::FromStr for PostGetLatestCompressionSignaturesResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -18097,7 +18217,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetCompressionSignaturesForTokenOwnerResponseJsonrpc { + for PostGetLatestCompressionSignaturesResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -18106,7 +18226,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetCompressionSignaturesForTokenOwnerResponseJsonrpc { + for PostGetLatestCompressionSignaturesResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -18115,7 +18235,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetCompressionSignaturesForTokenOwnerResponseJsonrpc { + for PostGetLatestCompressionSignaturesResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -18123,7 +18243,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetCompressionSignaturesForTokenOwnerResponseResult` + ///`PostGetLatestCompressionSignaturesResponseResult` /// ///
JSON schema /// @@ -18148,16 +18268,16 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetCompressionSignaturesForTokenOwnerResponseResult { + pub struct PostGetLatestCompressionSignaturesResponseResult { pub context: Context, pub value: PaginatedSignatureInfoList, } - impl PostGetCompressionSignaturesForTokenOwnerResponseResult { - pub fn builder() -> builder::PostGetCompressionSignaturesForTokenOwnerResponseResult { + impl PostGetLatestCompressionSignaturesResponseResult { + pub fn builder() -> builder::PostGetLatestCompressionSignaturesResponseResult { Default::default() } } - ///`PostGetIndexerHealthBody` + ///`PostGetLatestNonVotingSignaturesBody` /// ///
JSON schema /// @@ -18167,7 +18287,8 @@ All endpoints return AccountV2.*/ /// "required": [ /// "id", /// "jsonrpc", - /// "method" + /// "method", + /// "params" /// ], /// "properties": { /// "id": { @@ -18188,24 +18309,51 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getIndexerHealth" + /// "getLatestNonVotingSignatures" /// ] + /// }, + /// "params": { + /// "type": "object", + /// "properties": { + /// "cursor": { + /// "type": [ + /// "string", + /// "null" + /// ] + /// }, + /// "limit": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/Limit" + /// } + /// ] + /// } + /// ] + /// } + /// }, + /// "additionalProperties": false /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetIndexerHealthBody { + pub struct PostGetLatestNonVotingSignaturesBody { ///An ID to identify the request. - pub id: PostGetIndexerHealthBodyId, + pub id: PostGetLatestNonVotingSignaturesBodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetIndexerHealthBodyJsonrpc, + pub jsonrpc: PostGetLatestNonVotingSignaturesBodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetIndexerHealthBodyMethod, + pub method: PostGetLatestNonVotingSignaturesBodyMethod, + pub params: PostGetLatestNonVotingSignaturesBodyParams, } - impl PostGetIndexerHealthBody { - pub fn builder() -> builder::PostGetIndexerHealthBody { + impl PostGetLatestNonVotingSignaturesBody { + pub fn builder() -> builder::PostGetLatestNonVotingSignaturesBody { Default::default() } } @@ -18235,18 +18383,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetIndexerHealthBodyId { + pub enum PostGetLatestNonVotingSignaturesBodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetIndexerHealthBodyId { + impl ::std::fmt::Display for PostGetLatestNonVotingSignaturesBodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetIndexerHealthBodyId { + impl ::std::str::FromStr for PostGetLatestNonVotingSignaturesBodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -18257,7 +18405,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetIndexerHealthBodyId { + impl ::std::convert::TryFrom<&str> for PostGetLatestNonVotingSignaturesBodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -18265,7 +18413,8 @@ All endpoints return AccountV2.*/ value.parse() } } - impl ::std::convert::TryFrom<&::std::string::String> for PostGetIndexerHealthBodyId { + impl ::std::convert::TryFrom<&::std::string::String> + for PostGetLatestNonVotingSignaturesBodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -18273,7 +18422,8 @@ All endpoints return AccountV2.*/ value.parse() } } - impl ::std::convert::TryFrom<::std::string::String> for PostGetIndexerHealthBodyId { + impl ::std::convert::TryFrom<::std::string::String> + for PostGetLatestNonVotingSignaturesBodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -18307,18 +18457,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetIndexerHealthBodyJsonrpc { + pub enum PostGetLatestNonVotingSignaturesBodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetIndexerHealthBodyJsonrpc { + impl ::std::fmt::Display for PostGetLatestNonVotingSignaturesBodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetIndexerHealthBodyJsonrpc { + impl ::std::str::FromStr for PostGetLatestNonVotingSignaturesBodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -18329,7 +18479,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetIndexerHealthBodyJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetLatestNonVotingSignaturesBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -18338,7 +18488,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetIndexerHealthBodyJsonrpc { + for PostGetLatestNonVotingSignaturesBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -18347,7 +18497,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetIndexerHealthBodyJsonrpc { + for PostGetLatestNonVotingSignaturesBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -18364,7 +18514,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getIndexerHealth" + /// "getLatestNonVotingSignatures" /// ] ///} /// ``` @@ -18381,29 +18531,31 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetIndexerHealthBodyMethod { - #[serde(rename = "getIndexerHealth")] - GetIndexerHealth, + pub enum PostGetLatestNonVotingSignaturesBodyMethod { + #[serde(rename = "getLatestNonVotingSignatures")] + GetLatestNonVotingSignatures, } - impl ::std::fmt::Display for PostGetIndexerHealthBodyMethod { + impl ::std::fmt::Display for PostGetLatestNonVotingSignaturesBodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetIndexerHealth => f.write_str("getIndexerHealth"), + Self::GetLatestNonVotingSignatures => { + f.write_str("getLatestNonVotingSignatures") + } } } } - impl ::std::str::FromStr for PostGetIndexerHealthBodyMethod { + impl ::std::str::FromStr for PostGetLatestNonVotingSignaturesBodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getIndexerHealth" => Ok(Self::GetIndexerHealth), + "getLatestNonVotingSignatures" => Ok(Self::GetLatestNonVotingSignatures), _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> for PostGetIndexerHealthBodyMethod { + impl ::std::convert::TryFrom<&str> for PostGetLatestNonVotingSignaturesBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -18412,7 +18564,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetIndexerHealthBodyMethod { + for PostGetLatestNonVotingSignaturesBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -18421,7 +18573,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetIndexerHealthBodyMethod { + for PostGetLatestNonVotingSignaturesBodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -18429,7 +18581,61 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetIndexerHealthResponse` + ///`PostGetLatestNonVotingSignaturesBodyParams` + /// + ///
JSON schema + /// + /// ```json + ///{ + /// "type": "object", + /// "properties": { + /// "cursor": { + /// "type": [ + /// "string", + /// "null" + /// ] + /// }, + /// "limit": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/Limit" + /// } + /// ] + /// } + /// ] + /// } + /// }, + /// "additionalProperties": false + ///} + /// ``` + ///
+ #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + #[serde(deny_unknown_fields)] + pub struct PostGetLatestNonVotingSignaturesBodyParams { + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub cursor: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub limit: ::std::option::Option, + } + impl ::std::default::Default for PostGetLatestNonVotingSignaturesBodyParams { + fn default() -> Self { + Self { + cursor: Default::default(), + limit: Default::default(), + } + } + } + impl PostGetLatestNonVotingSignaturesBodyParams { + pub fn builder() -> builder::PostGetLatestNonVotingSignaturesBodyParams { + Default::default() + } + } + ///`PostGetLatestNonVotingSignaturesResponse` /// ///
JSON schema /// @@ -18467,35 +18673,44 @@ All endpoints return AccountV2.*/ /// ] /// }, /// "result": { - /// "description": "ok if healthy", - /// "default": "ok", - /// "type": "string", - /// "enum": [ - /// "ok" - /// ] + /// "type": "object", + /// "required": [ + /// "context", + /// "value" + /// ], + /// "properties": { + /// "context": { + /// "$ref": "#/components/schemas/Context" + /// }, + /// "value": { + /// "$ref": "#/components/schemas/SignatureInfoListWithError" + /// } + /// }, + /// "additionalProperties": false /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetIndexerHealthResponse { + pub struct PostGetLatestNonVotingSignaturesResponse { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option, + pub error: ::std::option::Option, ///An ID to identify the response. - pub id: PostGetIndexerHealthResponseId, + pub id: PostGetLatestNonVotingSignaturesResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetIndexerHealthResponseJsonrpc, - ///ok if healthy - #[serde(default = "defaults::post_get_indexer_health_response_result")] - pub result: PostGetIndexerHealthResponseResult, + pub jsonrpc: PostGetLatestNonVotingSignaturesResponseJsonrpc, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub result: ::std::option::Option< + PostGetLatestNonVotingSignaturesResponseResult, + >, } - impl PostGetIndexerHealthResponse { - pub fn builder() -> builder::PostGetIndexerHealthResponse { + impl PostGetLatestNonVotingSignaturesResponse { + pub fn builder() -> builder::PostGetLatestNonVotingSignaturesResponse { Default::default() } } - ///`PostGetIndexerHealthResponseError` + ///`PostGetLatestNonVotingSignaturesResponseError` /// ///
JSON schema /// @@ -18514,13 +18729,13 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetIndexerHealthResponseError { + pub struct PostGetLatestNonVotingSignaturesResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default for PostGetIndexerHealthResponseError { + impl ::std::default::Default for PostGetLatestNonVotingSignaturesResponseError { fn default() -> Self { Self { code: Default::default(), @@ -18528,8 +18743,8 @@ All endpoints return AccountV2.*/ } } } - impl PostGetIndexerHealthResponseError { - pub fn builder() -> builder::PostGetIndexerHealthResponseError { + impl PostGetLatestNonVotingSignaturesResponseError { + pub fn builder() -> builder::PostGetLatestNonVotingSignaturesResponseError { Default::default() } } @@ -18559,18 +18774,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetIndexerHealthResponseId { + pub enum PostGetLatestNonVotingSignaturesResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetIndexerHealthResponseId { + impl ::std::fmt::Display for PostGetLatestNonVotingSignaturesResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetIndexerHealthResponseId { + impl ::std::str::FromStr for PostGetLatestNonVotingSignaturesResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -18581,7 +18796,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetIndexerHealthResponseId { + impl ::std::convert::TryFrom<&str> for PostGetLatestNonVotingSignaturesResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -18590,7 +18805,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetIndexerHealthResponseId { + for PostGetLatestNonVotingSignaturesResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -18599,7 +18814,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetIndexerHealthResponseId { + for PostGetLatestNonVotingSignaturesResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -18633,18 +18848,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetIndexerHealthResponseJsonrpc { + pub enum PostGetLatestNonVotingSignaturesResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetIndexerHealthResponseJsonrpc { + impl ::std::fmt::Display for PostGetLatestNonVotingSignaturesResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetIndexerHealthResponseJsonrpc { + impl ::std::str::FromStr for PostGetLatestNonVotingSignaturesResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -18655,7 +18870,8 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetIndexerHealthResponseJsonrpc { + impl ::std::convert::TryFrom<&str> + for PostGetLatestNonVotingSignaturesResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -18664,7 +18880,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetIndexerHealthResponseJsonrpc { + for PostGetLatestNonVotingSignaturesResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -18673,7 +18889,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetIndexerHealthResponseJsonrpc { + for PostGetLatestNonVotingSignaturesResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -18681,87 +18897,41 @@ All endpoints return AccountV2.*/ value.parse() } } - ///ok if healthy + ///`PostGetLatestNonVotingSignaturesResponseResult` /// ///
JSON schema /// /// ```json ///{ - /// "description": "ok if healthy", - /// "default": "ok", - /// "type": "string", - /// "enum": [ - /// "ok" - /// ] + /// "type": "object", + /// "required": [ + /// "context", + /// "value" + /// ], + /// "properties": { + /// "context": { + /// "$ref": "#/components/schemas/Context" + /// }, + /// "value": { + /// "$ref": "#/components/schemas/SignatureInfoListWithError" + /// } + /// }, + /// "additionalProperties": false ///} /// ``` ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum PostGetIndexerHealthResponseResult { - #[serde(rename = "ok")] - Ok, - } - impl ::std::fmt::Display for PostGetIndexerHealthResponseResult { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::Ok => f.write_str("ok"), - } - } - } - impl ::std::str::FromStr for PostGetIndexerHealthResponseResult { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "ok" => Ok(Self::Ok), - _ => Err("invalid value".into()), - } - } - } - impl ::std::convert::TryFrom<&str> for PostGetIndexerHealthResponseResult { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetIndexerHealthResponseResult { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetIndexerHealthResponseResult { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() - } + #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + #[serde(deny_unknown_fields)] + pub struct PostGetLatestNonVotingSignaturesResponseResult { + pub context: Context, + pub value: SignatureInfoListWithError, } - impl ::std::default::Default for PostGetIndexerHealthResponseResult { - fn default() -> Self { - PostGetIndexerHealthResponseResult::Ok + impl PostGetLatestNonVotingSignaturesResponseResult { + pub fn builder() -> builder::PostGetLatestNonVotingSignaturesResponseResult { + Default::default() } } - ///`PostGetIndexerSlotBody` + ///`PostGetMultipleAccountInterfacesBody` /// ///
JSON schema /// @@ -18771,7 +18941,8 @@ All endpoints return AccountV2.*/ /// "required": [ /// "id", /// "jsonrpc", - /// "method" + /// "method", + /// "params" /// ], /// "properties": { /// "id": { @@ -18792,24 +18963,42 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getIndexerSlot" + /// "getMultipleAccountInterfaces" /// ] + /// }, + /// "params": { + /// "description": "Request for getMultipleAccountInterfaces", + /// "type": "object", + /// "required": [ + /// "addresses" + /// ], + /// "properties": { + /// "addresses": { + /// "description": "List of account addresses to look up (max 100)", + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/SerializablePubkey" + /// } + /// } + /// }, + /// "additionalProperties": false /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetIndexerSlotBody { + pub struct PostGetMultipleAccountInterfacesBody { ///An ID to identify the request. - pub id: PostGetIndexerSlotBodyId, + pub id: PostGetMultipleAccountInterfacesBodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetIndexerSlotBodyJsonrpc, + pub jsonrpc: PostGetMultipleAccountInterfacesBodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetIndexerSlotBodyMethod, + pub method: PostGetMultipleAccountInterfacesBodyMethod, + pub params: PostGetMultipleAccountInterfacesBodyParams, } - impl PostGetIndexerSlotBody { - pub fn builder() -> builder::PostGetIndexerSlotBody { + impl PostGetMultipleAccountInterfacesBody { + pub fn builder() -> builder::PostGetMultipleAccountInterfacesBody { Default::default() } } @@ -18839,18 +19028,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetIndexerSlotBodyId { + pub enum PostGetMultipleAccountInterfacesBodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetIndexerSlotBodyId { + impl ::std::fmt::Display for PostGetMultipleAccountInterfacesBodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetIndexerSlotBodyId { + impl ::std::str::FromStr for PostGetMultipleAccountInterfacesBodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -18861,7 +19050,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetIndexerSlotBodyId { + impl ::std::convert::TryFrom<&str> for PostGetMultipleAccountInterfacesBodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -18869,7 +19058,8 @@ All endpoints return AccountV2.*/ value.parse() } } - impl ::std::convert::TryFrom<&::std::string::String> for PostGetIndexerSlotBodyId { + impl ::std::convert::TryFrom<&::std::string::String> + for PostGetMultipleAccountInterfacesBodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -18877,7 +19067,8 @@ All endpoints return AccountV2.*/ value.parse() } } - impl ::std::convert::TryFrom<::std::string::String> for PostGetIndexerSlotBodyId { + impl ::std::convert::TryFrom<::std::string::String> + for PostGetMultipleAccountInterfacesBodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -18911,18 +19102,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetIndexerSlotBodyJsonrpc { + pub enum PostGetMultipleAccountInterfacesBodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetIndexerSlotBodyJsonrpc { + impl ::std::fmt::Display for PostGetMultipleAccountInterfacesBodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetIndexerSlotBodyJsonrpc { + impl ::std::str::FromStr for PostGetMultipleAccountInterfacesBodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -18933,7 +19124,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetIndexerSlotBodyJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetMultipleAccountInterfacesBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -18942,7 +19133,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetIndexerSlotBodyJsonrpc { + for PostGetMultipleAccountInterfacesBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -18951,7 +19142,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetIndexerSlotBodyJsonrpc { + for PostGetMultipleAccountInterfacesBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -18968,7 +19159,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getIndexerSlot" + /// "getMultipleAccountInterfaces" /// ] ///} /// ``` @@ -18985,29 +19176,31 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetIndexerSlotBodyMethod { - #[serde(rename = "getIndexerSlot")] - GetIndexerSlot, + pub enum PostGetMultipleAccountInterfacesBodyMethod { + #[serde(rename = "getMultipleAccountInterfaces")] + GetMultipleAccountInterfaces, } - impl ::std::fmt::Display for PostGetIndexerSlotBodyMethod { + impl ::std::fmt::Display for PostGetMultipleAccountInterfacesBodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetIndexerSlot => f.write_str("getIndexerSlot"), + Self::GetMultipleAccountInterfaces => { + f.write_str("getMultipleAccountInterfaces") + } } } } - impl ::std::str::FromStr for PostGetIndexerSlotBodyMethod { + impl ::std::str::FromStr for PostGetMultipleAccountInterfacesBodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getIndexerSlot" => Ok(Self::GetIndexerSlot), + "getMultipleAccountInterfaces" => Ok(Self::GetMultipleAccountInterfaces), _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> for PostGetIndexerSlotBodyMethod { + impl ::std::convert::TryFrom<&str> for PostGetMultipleAccountInterfacesBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -19016,7 +19209,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetIndexerSlotBodyMethod { + for PostGetMultipleAccountInterfacesBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -19025,7 +19218,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetIndexerSlotBodyMethod { + for PostGetMultipleAccountInterfacesBodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -19033,7 +19226,42 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetIndexerSlotResponse` + ///Request for getMultipleAccountInterfaces + /// + ///
JSON schema + /// + /// ```json + ///{ + /// "description": "Request for getMultipleAccountInterfaces", + /// "type": "object", + /// "required": [ + /// "addresses" + /// ], + /// "properties": { + /// "addresses": { + /// "description": "List of account addresses to look up (max 100)", + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/SerializablePubkey" + /// } + /// } + /// }, + /// "additionalProperties": false + ///} + /// ``` + ///
+ #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + #[serde(deny_unknown_fields)] + pub struct PostGetMultipleAccountInterfacesBodyParams { + ///List of account addresses to look up (max 100) + pub addresses: ::std::vec::Vec, + } + impl PostGetMultipleAccountInterfacesBodyParams { + pub fn builder() -> builder::PostGetMultipleAccountInterfacesBodyParams { + Default::default() + } + } + ///`PostGetMultipleAccountInterfacesResponse` /// ///
JSON schema /// @@ -19071,34 +19299,59 @@ All endpoints return AccountV2.*/ /// ] /// }, /// "result": { - /// "default": 100, - /// "examples": [ - /// 100 + /// "description": "Response for getMultipleAccountInterfaces", + /// "type": "object", + /// "required": [ + /// "context", + /// "value" /// ], - /// "type": "integer", - /// "format": "uint64" + /// "properties": { + /// "context": { + /// "$ref": "#/components/schemas/Context" + /// }, + /// "value": { + /// "description": "List of account results (Some for found accounts, None for not found)", + /// "type": "array", + /// "items": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/AccountInterface" + /// } + /// ] + /// } + /// ] + /// } + /// } + /// } /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetIndexerSlotResponse { + pub struct PostGetMultipleAccountInterfacesResponse { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option, + pub error: ::std::option::Option, ///An ID to identify the response. - pub id: PostGetIndexerSlotResponseId, + pub id: PostGetMultipleAccountInterfacesResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetIndexerSlotResponseJsonrpc, - #[serde(default = "defaults::default_u64::")] - pub result: u64, + pub jsonrpc: PostGetMultipleAccountInterfacesResponseJsonrpc, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub result: ::std::option::Option< + PostGetMultipleAccountInterfacesResponseResult, + >, } - impl PostGetIndexerSlotResponse { - pub fn builder() -> builder::PostGetIndexerSlotResponse { + impl PostGetMultipleAccountInterfacesResponse { + pub fn builder() -> builder::PostGetMultipleAccountInterfacesResponse { Default::default() } } - ///`PostGetIndexerSlotResponseError` + ///`PostGetMultipleAccountInterfacesResponseError` /// ///
JSON schema /// @@ -19117,13 +19370,13 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetIndexerSlotResponseError { + pub struct PostGetMultipleAccountInterfacesResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default for PostGetIndexerSlotResponseError { + impl ::std::default::Default for PostGetMultipleAccountInterfacesResponseError { fn default() -> Self { Self { code: Default::default(), @@ -19131,8 +19384,8 @@ All endpoints return AccountV2.*/ } } } - impl PostGetIndexerSlotResponseError { - pub fn builder() -> builder::PostGetIndexerSlotResponseError { + impl PostGetMultipleAccountInterfacesResponseError { + pub fn builder() -> builder::PostGetMultipleAccountInterfacesResponseError { Default::default() } } @@ -19162,18 +19415,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetIndexerSlotResponseId { + pub enum PostGetMultipleAccountInterfacesResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetIndexerSlotResponseId { + impl ::std::fmt::Display for PostGetMultipleAccountInterfacesResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetIndexerSlotResponseId { + impl ::std::str::FromStr for PostGetMultipleAccountInterfacesResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -19184,7 +19437,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetIndexerSlotResponseId { + impl ::std::convert::TryFrom<&str> for PostGetMultipleAccountInterfacesResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -19193,7 +19446,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetIndexerSlotResponseId { + for PostGetMultipleAccountInterfacesResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -19202,7 +19455,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetIndexerSlotResponseId { + for PostGetMultipleAccountInterfacesResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -19236,18 +19489,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetIndexerSlotResponseJsonrpc { + pub enum PostGetMultipleAccountInterfacesResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetIndexerSlotResponseJsonrpc { + impl ::std::fmt::Display for PostGetMultipleAccountInterfacesResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetIndexerSlotResponseJsonrpc { + impl ::std::str::FromStr for PostGetMultipleAccountInterfacesResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -19258,7 +19511,8 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetIndexerSlotResponseJsonrpc { + impl ::std::convert::TryFrom<&str> + for PostGetMultipleAccountInterfacesResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -19267,7 +19521,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetIndexerSlotResponseJsonrpc { + for PostGetMultipleAccountInterfacesResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -19276,7 +19530,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetIndexerSlotResponseJsonrpc { + for PostGetMultipleAccountInterfacesResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -19284,7 +19538,56 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetLatestCompressionSignaturesBody` + ///Response for getMultipleAccountInterfaces + /// + ///
JSON schema + /// + /// ```json + ///{ + /// "description": "Response for getMultipleAccountInterfaces", + /// "type": "object", + /// "required": [ + /// "context", + /// "value" + /// ], + /// "properties": { + /// "context": { + /// "$ref": "#/components/schemas/Context" + /// }, + /// "value": { + /// "description": "List of account results (Some for found accounts, None for not found)", + /// "type": "array", + /// "items": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/AccountInterface" + /// } + /// ] + /// } + /// ] + /// } + /// } + /// } + ///} + /// ``` + ///
+ #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + pub struct PostGetMultipleAccountInterfacesResponseResult { + pub context: Context, + ///List of account results (Some for found accounts, None for not found) + pub value: ::std::vec::Vec<::std::option::Option>, + } + impl PostGetMultipleAccountInterfacesResponseResult { + pub fn builder() -> builder::PostGetMultipleAccountInterfacesResponseResult { + Default::default() + } + } + ///`PostGetMultipleCompressedAccountProofsBody` /// ///
JSON schema /// @@ -19316,51 +19619,31 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getLatestCompressionSignatures" + /// "getMultipleCompressedAccountProofs" /// ] /// }, /// "params": { - /// "type": "object", - /// "properties": { - /// "cursor": { - /// "type": [ - /// "string", - /// "null" - /// ] - /// }, - /// "limit": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/Limit" - /// } - /// ] - /// } - /// ] - /// } - /// }, - /// "additionalProperties": false + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/Hash" + /// } /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetLatestCompressionSignaturesBody { + pub struct PostGetMultipleCompressedAccountProofsBody { ///An ID to identify the request. - pub id: PostGetLatestCompressionSignaturesBodyId, + pub id: PostGetMultipleCompressedAccountProofsBodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetLatestCompressionSignaturesBodyJsonrpc, + pub jsonrpc: PostGetMultipleCompressedAccountProofsBodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetLatestCompressionSignaturesBodyMethod, - pub params: PostGetLatestCompressionSignaturesBodyParams, + pub method: PostGetMultipleCompressedAccountProofsBodyMethod, + pub params: ::std::vec::Vec, } - impl PostGetLatestCompressionSignaturesBody { - pub fn builder() -> builder::PostGetLatestCompressionSignaturesBody { + impl PostGetMultipleCompressedAccountProofsBody { + pub fn builder() -> builder::PostGetMultipleCompressedAccountProofsBody { Default::default() } } @@ -19390,18 +19673,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetLatestCompressionSignaturesBodyId { + pub enum PostGetMultipleCompressedAccountProofsBodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetLatestCompressionSignaturesBodyId { + impl ::std::fmt::Display for PostGetMultipleCompressedAccountProofsBodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetLatestCompressionSignaturesBodyId { + impl ::std::str::FromStr for PostGetMultipleCompressedAccountProofsBodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -19412,7 +19695,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetLatestCompressionSignaturesBodyId { + impl ::std::convert::TryFrom<&str> for PostGetMultipleCompressedAccountProofsBodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -19421,7 +19704,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetLatestCompressionSignaturesBodyId { + for PostGetMultipleCompressedAccountProofsBodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -19430,7 +19713,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetLatestCompressionSignaturesBodyId { + for PostGetMultipleCompressedAccountProofsBodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -19464,18 +19747,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetLatestCompressionSignaturesBodyJsonrpc { + pub enum PostGetMultipleCompressedAccountProofsBodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetLatestCompressionSignaturesBodyJsonrpc { + impl ::std::fmt::Display for PostGetMultipleCompressedAccountProofsBodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetLatestCompressionSignaturesBodyJsonrpc { + impl ::std::str::FromStr for PostGetMultipleCompressedAccountProofsBodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -19487,7 +19770,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetLatestCompressionSignaturesBodyJsonrpc { + for PostGetMultipleCompressedAccountProofsBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -19496,7 +19779,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetLatestCompressionSignaturesBodyJsonrpc { + for PostGetMultipleCompressedAccountProofsBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -19505,7 +19788,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetLatestCompressionSignaturesBodyJsonrpc { + for PostGetMultipleCompressedAccountProofsBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -19522,7 +19805,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getLatestCompressionSignatures" + /// "getMultipleCompressedAccountProofs" /// ] ///} /// ``` @@ -19539,33 +19822,34 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetLatestCompressionSignaturesBodyMethod { - #[serde(rename = "getLatestCompressionSignatures")] - GetLatestCompressionSignatures, + pub enum PostGetMultipleCompressedAccountProofsBodyMethod { + #[serde(rename = "getMultipleCompressedAccountProofs")] + GetMultipleCompressedAccountProofs, } - impl ::std::fmt::Display for PostGetLatestCompressionSignaturesBodyMethod { + impl ::std::fmt::Display for PostGetMultipleCompressedAccountProofsBodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetLatestCompressionSignatures => { - f.write_str("getLatestCompressionSignatures") + Self::GetMultipleCompressedAccountProofs => { + f.write_str("getMultipleCompressedAccountProofs") } } } } - impl ::std::str::FromStr for PostGetLatestCompressionSignaturesBodyMethod { + impl ::std::str::FromStr for PostGetMultipleCompressedAccountProofsBodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getLatestCompressionSignatures" => { - Ok(Self::GetLatestCompressionSignatures) + "getMultipleCompressedAccountProofs" => { + Ok(Self::GetMultipleCompressedAccountProofs) } _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> for PostGetLatestCompressionSignaturesBodyMethod { + impl ::std::convert::TryFrom<&str> + for PostGetMultipleCompressedAccountProofsBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -19574,7 +19858,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetLatestCompressionSignaturesBodyMethod { + for PostGetMultipleCompressedAccountProofsBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -19583,7 +19867,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetLatestCompressionSignaturesBodyMethod { + for PostGetMultipleCompressedAccountProofsBodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -19591,61 +19875,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetLatestCompressionSignaturesBodyParams` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "properties": { - /// "cursor": { - /// "type": [ - /// "string", - /// "null" - /// ] - /// }, - /// "limit": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/Limit" - /// } - /// ] - /// } - /// ] - /// } - /// }, - /// "additionalProperties": false - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(deny_unknown_fields)] - pub struct PostGetLatestCompressionSignaturesBodyParams { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub cursor: ::std::option::Option<::std::string::String>, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub limit: ::std::option::Option, - } - impl ::std::default::Default for PostGetLatestCompressionSignaturesBodyParams { - fn default() -> Self { - Self { - cursor: Default::default(), - limit: Default::default(), - } - } - } - impl PostGetLatestCompressionSignaturesBodyParams { - pub fn builder() -> builder::PostGetLatestCompressionSignaturesBodyParams { - Default::default() - } - } - ///`PostGetLatestCompressionSignaturesResponse` + ///`PostGetMultipleCompressedAccountProofsResponse` /// ///
JSON schema /// @@ -19693,7 +19923,10 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/PaginatedSignatureInfoList" + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/GetCompressedAccountProofResponseValue" + /// } /// } /// }, /// "additionalProperties": false @@ -19703,26 +19936,26 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetLatestCompressionSignaturesResponse { + pub struct PostGetMultipleCompressedAccountProofsResponse { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub error: ::std::option::Option< - PostGetLatestCompressionSignaturesResponseError, + PostGetMultipleCompressedAccountProofsResponseError, >, ///An ID to identify the response. - pub id: PostGetLatestCompressionSignaturesResponseId, + pub id: PostGetMultipleCompressedAccountProofsResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetLatestCompressionSignaturesResponseJsonrpc, + pub jsonrpc: PostGetMultipleCompressedAccountProofsResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub result: ::std::option::Option< - PostGetLatestCompressionSignaturesResponseResult, + PostGetMultipleCompressedAccountProofsResponseResult, >, } - impl PostGetLatestCompressionSignaturesResponse { - pub fn builder() -> builder::PostGetLatestCompressionSignaturesResponse { + impl PostGetMultipleCompressedAccountProofsResponse { + pub fn builder() -> builder::PostGetMultipleCompressedAccountProofsResponse { Default::default() } } - ///`PostGetLatestCompressionSignaturesResponseError` + ///`PostGetMultipleCompressedAccountProofsResponseError` /// ///
JSON schema /// @@ -19741,13 +19974,14 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetLatestCompressionSignaturesResponseError { + pub struct PostGetMultipleCompressedAccountProofsResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default for PostGetLatestCompressionSignaturesResponseError { + impl ::std::default::Default + for PostGetMultipleCompressedAccountProofsResponseError { fn default() -> Self { Self { code: Default::default(), @@ -19755,8 +19989,8 @@ All endpoints return AccountV2.*/ } } } - impl PostGetLatestCompressionSignaturesResponseError { - pub fn builder() -> builder::PostGetLatestCompressionSignaturesResponseError { + impl PostGetMultipleCompressedAccountProofsResponseError { + pub fn builder() -> builder::PostGetMultipleCompressedAccountProofsResponseError { Default::default() } } @@ -19786,18 +20020,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetLatestCompressionSignaturesResponseId { + pub enum PostGetMultipleCompressedAccountProofsResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetLatestCompressionSignaturesResponseId { + impl ::std::fmt::Display for PostGetMultipleCompressedAccountProofsResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetLatestCompressionSignaturesResponseId { + impl ::std::str::FromStr for PostGetMultipleCompressedAccountProofsResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -19808,7 +20042,8 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetLatestCompressionSignaturesResponseId { + impl ::std::convert::TryFrom<&str> + for PostGetMultipleCompressedAccountProofsResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -19817,7 +20052,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetLatestCompressionSignaturesResponseId { + for PostGetMultipleCompressedAccountProofsResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -19826,7 +20061,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetLatestCompressionSignaturesResponseId { + for PostGetMultipleCompressedAccountProofsResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -19860,18 +20095,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetLatestCompressionSignaturesResponseJsonrpc { + pub enum PostGetMultipleCompressedAccountProofsResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetLatestCompressionSignaturesResponseJsonrpc { + impl ::std::fmt::Display for PostGetMultipleCompressedAccountProofsResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetLatestCompressionSignaturesResponseJsonrpc { + impl ::std::str::FromStr for PostGetMultipleCompressedAccountProofsResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -19883,7 +20118,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetLatestCompressionSignaturesResponseJsonrpc { + for PostGetMultipleCompressedAccountProofsResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -19892,7 +20127,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetLatestCompressionSignaturesResponseJsonrpc { + for PostGetMultipleCompressedAccountProofsResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -19901,7 +20136,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetLatestCompressionSignaturesResponseJsonrpc { + for PostGetMultipleCompressedAccountProofsResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -19909,7 +20144,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetLatestCompressionSignaturesResponseResult` + ///`PostGetMultipleCompressedAccountProofsResponseResult` /// ///
JSON schema /// @@ -19925,7 +20160,10 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/PaginatedSignatureInfoList" + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/GetCompressedAccountProofResponseValue" + /// } /// } /// }, /// "additionalProperties": false @@ -19934,16 +20172,16 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetLatestCompressionSignaturesResponseResult { + pub struct PostGetMultipleCompressedAccountProofsResponseResult { pub context: Context, - pub value: PaginatedSignatureInfoList, + pub value: ::std::vec::Vec, } - impl PostGetLatestCompressionSignaturesResponseResult { - pub fn builder() -> builder::PostGetLatestCompressionSignaturesResponseResult { + impl PostGetMultipleCompressedAccountProofsResponseResult { + pub fn builder() -> builder::PostGetMultipleCompressedAccountProofsResponseResult { Default::default() } } - ///`PostGetLatestNonVotingSignaturesBody` + ///`PostGetMultipleCompressedAccountProofsV2Body` /// ///
JSON schema /// @@ -19975,51 +20213,31 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getLatestNonVotingSignatures" + /// "getMultipleCompressedAccountProofsV2" /// ] /// }, /// "params": { - /// "type": "object", - /// "properties": { - /// "cursor": { - /// "type": [ - /// "string", - /// "null" - /// ] - /// }, - /// "limit": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/Limit" - /// } - /// ] - /// } - /// ] - /// } - /// }, - /// "additionalProperties": false + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/Hash" + /// } /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetLatestNonVotingSignaturesBody { + pub struct PostGetMultipleCompressedAccountProofsV2Body { ///An ID to identify the request. - pub id: PostGetLatestNonVotingSignaturesBodyId, + pub id: PostGetMultipleCompressedAccountProofsV2BodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetLatestNonVotingSignaturesBodyJsonrpc, + pub jsonrpc: PostGetMultipleCompressedAccountProofsV2BodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetLatestNonVotingSignaturesBodyMethod, - pub params: PostGetLatestNonVotingSignaturesBodyParams, + pub method: PostGetMultipleCompressedAccountProofsV2BodyMethod, + pub params: ::std::vec::Vec, } - impl PostGetLatestNonVotingSignaturesBody { - pub fn builder() -> builder::PostGetLatestNonVotingSignaturesBody { + impl PostGetMultipleCompressedAccountProofsV2Body { + pub fn builder() -> builder::PostGetMultipleCompressedAccountProofsV2Body { Default::default() } } @@ -20049,18 +20267,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetLatestNonVotingSignaturesBodyId { + pub enum PostGetMultipleCompressedAccountProofsV2BodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetLatestNonVotingSignaturesBodyId { + impl ::std::fmt::Display for PostGetMultipleCompressedAccountProofsV2BodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetLatestNonVotingSignaturesBodyId { + impl ::std::str::FromStr for PostGetMultipleCompressedAccountProofsV2BodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -20071,7 +20289,8 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetLatestNonVotingSignaturesBodyId { + impl ::std::convert::TryFrom<&str> + for PostGetMultipleCompressedAccountProofsV2BodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -20080,7 +20299,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetLatestNonVotingSignaturesBodyId { + for PostGetMultipleCompressedAccountProofsV2BodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -20089,7 +20308,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetLatestNonVotingSignaturesBodyId { + for PostGetMultipleCompressedAccountProofsV2BodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -20123,18 +20342,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetLatestNonVotingSignaturesBodyJsonrpc { + pub enum PostGetMultipleCompressedAccountProofsV2BodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetLatestNonVotingSignaturesBodyJsonrpc { + impl ::std::fmt::Display for PostGetMultipleCompressedAccountProofsV2BodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetLatestNonVotingSignaturesBodyJsonrpc { + impl ::std::str::FromStr for PostGetMultipleCompressedAccountProofsV2BodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -20145,7 +20364,8 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetLatestNonVotingSignaturesBodyJsonrpc { + impl ::std::convert::TryFrom<&str> + for PostGetMultipleCompressedAccountProofsV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -20154,7 +20374,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetLatestNonVotingSignaturesBodyJsonrpc { + for PostGetMultipleCompressedAccountProofsV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -20163,7 +20383,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetLatestNonVotingSignaturesBodyJsonrpc { + for PostGetMultipleCompressedAccountProofsV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -20180,7 +20400,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getLatestNonVotingSignatures" + /// "getMultipleCompressedAccountProofsV2" /// ] ///} /// ``` @@ -20197,31 +20417,34 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetLatestNonVotingSignaturesBodyMethod { - #[serde(rename = "getLatestNonVotingSignatures")] - GetLatestNonVotingSignatures, + pub enum PostGetMultipleCompressedAccountProofsV2BodyMethod { + #[serde(rename = "getMultipleCompressedAccountProofsV2")] + GetMultipleCompressedAccountProofsV2, } - impl ::std::fmt::Display for PostGetLatestNonVotingSignaturesBodyMethod { + impl ::std::fmt::Display for PostGetMultipleCompressedAccountProofsV2BodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetLatestNonVotingSignatures => { - f.write_str("getLatestNonVotingSignatures") + Self::GetMultipleCompressedAccountProofsV2 => { + f.write_str("getMultipleCompressedAccountProofsV2") } } } } - impl ::std::str::FromStr for PostGetLatestNonVotingSignaturesBodyMethod { + impl ::std::str::FromStr for PostGetMultipleCompressedAccountProofsV2BodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getLatestNonVotingSignatures" => Ok(Self::GetLatestNonVotingSignatures), + "getMultipleCompressedAccountProofsV2" => { + Ok(Self::GetMultipleCompressedAccountProofsV2) + } _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> for PostGetLatestNonVotingSignaturesBodyMethod { + impl ::std::convert::TryFrom<&str> + for PostGetMultipleCompressedAccountProofsV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -20230,7 +20453,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetLatestNonVotingSignaturesBodyMethod { + for PostGetMultipleCompressedAccountProofsV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -20239,7 +20462,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetLatestNonVotingSignaturesBodyMethod { + for PostGetMultipleCompressedAccountProofsV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -20247,61 +20470,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetLatestNonVotingSignaturesBodyParams` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "properties": { - /// "cursor": { - /// "type": [ - /// "string", - /// "null" - /// ] - /// }, - /// "limit": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/Limit" - /// } - /// ] - /// } - /// ] - /// } - /// }, - /// "additionalProperties": false - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(deny_unknown_fields)] - pub struct PostGetLatestNonVotingSignaturesBodyParams { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub cursor: ::std::option::Option<::std::string::String>, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub limit: ::std::option::Option, - } - impl ::std::default::Default for PostGetLatestNonVotingSignaturesBodyParams { - fn default() -> Self { - Self { - cursor: Default::default(), - limit: Default::default(), - } - } - } - impl PostGetLatestNonVotingSignaturesBodyParams { - pub fn builder() -> builder::PostGetLatestNonVotingSignaturesBodyParams { - Default::default() - } - } - ///`PostGetLatestNonVotingSignaturesResponse` + ///`PostGetMultipleCompressedAccountProofsV2Response` /// ///
JSON schema /// @@ -20349,7 +20518,10 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/SignatureInfoListWithError" + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/GetCompressedAccountProofResponseValueV2" + /// } /// } /// }, /// "additionalProperties": false @@ -20359,24 +20531,26 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetLatestNonVotingSignaturesResponse { + pub struct PostGetMultipleCompressedAccountProofsV2Response { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option, + pub error: ::std::option::Option< + PostGetMultipleCompressedAccountProofsV2ResponseError, + >, ///An ID to identify the response. - pub id: PostGetLatestNonVotingSignaturesResponseId, + pub id: PostGetMultipleCompressedAccountProofsV2ResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetLatestNonVotingSignaturesResponseJsonrpc, + pub jsonrpc: PostGetMultipleCompressedAccountProofsV2ResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub result: ::std::option::Option< - PostGetLatestNonVotingSignaturesResponseResult, + PostGetMultipleCompressedAccountProofsV2ResponseResult, >, } - impl PostGetLatestNonVotingSignaturesResponse { - pub fn builder() -> builder::PostGetLatestNonVotingSignaturesResponse { + impl PostGetMultipleCompressedAccountProofsV2Response { + pub fn builder() -> builder::PostGetMultipleCompressedAccountProofsV2Response { Default::default() } } - ///`PostGetLatestNonVotingSignaturesResponseError` + ///`PostGetMultipleCompressedAccountProofsV2ResponseError` /// ///
JSON schema /// @@ -20395,13 +20569,14 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetLatestNonVotingSignaturesResponseError { + pub struct PostGetMultipleCompressedAccountProofsV2ResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default for PostGetLatestNonVotingSignaturesResponseError { + impl ::std::default::Default + for PostGetMultipleCompressedAccountProofsV2ResponseError { fn default() -> Self { Self { code: Default::default(), @@ -20409,8 +20584,8 @@ All endpoints return AccountV2.*/ } } } - impl PostGetLatestNonVotingSignaturesResponseError { - pub fn builder() -> builder::PostGetLatestNonVotingSignaturesResponseError { + impl PostGetMultipleCompressedAccountProofsV2ResponseError { + pub fn builder() -> builder::PostGetMultipleCompressedAccountProofsV2ResponseError { Default::default() } } @@ -20440,18 +20615,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetLatestNonVotingSignaturesResponseId { + pub enum PostGetMultipleCompressedAccountProofsV2ResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetLatestNonVotingSignaturesResponseId { + impl ::std::fmt::Display for PostGetMultipleCompressedAccountProofsV2ResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetLatestNonVotingSignaturesResponseId { + impl ::std::str::FromStr for PostGetMultipleCompressedAccountProofsV2ResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -20462,7 +20637,8 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetLatestNonVotingSignaturesResponseId { + impl ::std::convert::TryFrom<&str> + for PostGetMultipleCompressedAccountProofsV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -20471,7 +20647,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetLatestNonVotingSignaturesResponseId { + for PostGetMultipleCompressedAccountProofsV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -20480,7 +20656,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetLatestNonVotingSignaturesResponseId { + for PostGetMultipleCompressedAccountProofsV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -20514,18 +20690,20 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetLatestNonVotingSignaturesResponseJsonrpc { + pub enum PostGetMultipleCompressedAccountProofsV2ResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetLatestNonVotingSignaturesResponseJsonrpc { + impl ::std::fmt::Display + for PostGetMultipleCompressedAccountProofsV2ResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetLatestNonVotingSignaturesResponseJsonrpc { + impl ::std::str::FromStr + for PostGetMultipleCompressedAccountProofsV2ResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -20537,7 +20715,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&str> - for PostGetLatestNonVotingSignaturesResponseJsonrpc { + for PostGetMultipleCompressedAccountProofsV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -20546,7 +20724,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetLatestNonVotingSignaturesResponseJsonrpc { + for PostGetMultipleCompressedAccountProofsV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -20555,7 +20733,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetLatestNonVotingSignaturesResponseJsonrpc { + for PostGetMultipleCompressedAccountProofsV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -20563,7 +20741,7 @@ All endpoints return AccountV2.*/ value.parse() } } - ///`PostGetLatestNonVotingSignaturesResponseResult` + ///`PostGetMultipleCompressedAccountProofsV2ResponseResult` /// ///
JSON schema /// @@ -20579,7 +20757,10 @@ All endpoints return AccountV2.*/ /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/SignatureInfoListWithError" + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/GetCompressedAccountProofResponseValueV2" + /// } /// } /// }, /// "additionalProperties": false @@ -20588,16 +20769,16 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetLatestNonVotingSignaturesResponseResult { + pub struct PostGetMultipleCompressedAccountProofsV2ResponseResult { pub context: Context, - pub value: SignatureInfoListWithError, + pub value: ::std::vec::Vec, } - impl PostGetLatestNonVotingSignaturesResponseResult { - pub fn builder() -> builder::PostGetLatestNonVotingSignaturesResponseResult { + impl PostGetMultipleCompressedAccountProofsV2ResponseResult { + pub fn builder() -> builder::PostGetMultipleCompressedAccountProofsV2ResponseResult { Default::default() } } - ///`PostGetMultipleAccountInterfacesBody` + ///`PostGetMultipleCompressedAccountsBody` /// ///
JSON schema /// @@ -20629,22 +20810,46 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getMultipleAccountInterfaces" + /// "getMultipleCompressedAccounts" /// ] /// }, /// "params": { - /// "description": "Request for getMultipleAccountInterfaces", - /// "type": "object", - /// "required": [ - /// "addresses" + /// "description": "Request for compressed account data", + /// "default": { + /// "addresses": null, + /// "hashes": [ + /// "11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs", + /// "1117mWrzzrZr312ebPDHu8tbfMwFNvCvMbr6WepCNG" + /// ] + /// }, + /// "examples": [ + /// { + /// "addresses": null, + /// "hashes": [ + /// "11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs", + /// "1117mWrzzrZr312ebPDHu8tbfMwFNvCvMbr6WepCNG" + /// ] + /// } /// ], + /// "type": "object", /// "properties": { /// "addresses": { - /// "description": "List of account addresses to look up (max 100)\nServer auto-detects account type (account, token, mint) based on program owner and data", - /// "type": "array", + /// "type": [ + /// "array", + /// "null" + /// ], /// "items": { /// "$ref": "#/components/schemas/SerializablePubkey" /// } + /// }, + /// "hashes": { + /// "type": [ + /// "array", + /// "null" + /// ], + /// "items": { + /// "$ref": "#/components/schemas/Hash" + /// } /// } /// }, /// "additionalProperties": false @@ -20654,17 +20859,17 @@ All endpoints return AccountV2.*/ /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetMultipleAccountInterfacesBody { + pub struct PostGetMultipleCompressedAccountsBody { ///An ID to identify the request. - pub id: PostGetMultipleAccountInterfacesBodyId, + pub id: PostGetMultipleCompressedAccountsBodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetMultipleAccountInterfacesBodyJsonrpc, + pub jsonrpc: PostGetMultipleCompressedAccountsBodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetMultipleAccountInterfacesBodyMethod, - pub params: PostGetMultipleAccountInterfacesBodyParams, + pub method: PostGetMultipleCompressedAccountsBodyMethod, + pub params: PostGetMultipleCompressedAccountsBodyParams, } - impl PostGetMultipleAccountInterfacesBody { - pub fn builder() -> builder::PostGetMultipleAccountInterfacesBody { + impl PostGetMultipleCompressedAccountsBody { + pub fn builder() -> builder::PostGetMultipleCompressedAccountsBody { Default::default() } } @@ -20694,18 +20899,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetMultipleAccountInterfacesBodyId { + pub enum PostGetMultipleCompressedAccountsBodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetMultipleAccountInterfacesBodyId { + impl ::std::fmt::Display for PostGetMultipleCompressedAccountsBodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetMultipleAccountInterfacesBodyId { + impl ::std::str::FromStr for PostGetMultipleCompressedAccountsBodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -20716,7 +20921,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetMultipleAccountInterfacesBodyId { + impl ::std::convert::TryFrom<&str> for PostGetMultipleCompressedAccountsBodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -20725,7 +20930,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleAccountInterfacesBodyId { + for PostGetMultipleCompressedAccountsBodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -20734,7 +20939,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleAccountInterfacesBodyId { + for PostGetMultipleCompressedAccountsBodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -20768,18 +20973,18 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetMultipleAccountInterfacesBodyJsonrpc { + pub enum PostGetMultipleCompressedAccountsBodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetMultipleAccountInterfacesBodyJsonrpc { + impl ::std::fmt::Display for PostGetMultipleCompressedAccountsBodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetMultipleAccountInterfacesBodyJsonrpc { + impl ::std::str::FromStr for PostGetMultipleCompressedAccountsBodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -20790,7 +20995,7 @@ All endpoints return AccountV2.*/ } } } - impl ::std::convert::TryFrom<&str> for PostGetMultipleAccountInterfacesBodyJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetMultipleCompressedAccountsBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -20799,7 +21004,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleAccountInterfacesBodyJsonrpc { + for PostGetMultipleCompressedAccountsBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -20808,7 +21013,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleAccountInterfacesBodyJsonrpc { + for PostGetMultipleCompressedAccountsBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -20825,7 +21030,7 @@ All endpoints return AccountV2.*/ /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getMultipleAccountInterfaces" + /// "getMultipleCompressedAccounts" /// ] ///} /// ``` @@ -20842,31 +21047,33 @@ All endpoints return AccountV2.*/ PartialEq, PartialOrd )] - pub enum PostGetMultipleAccountInterfacesBodyMethod { - #[serde(rename = "getMultipleAccountInterfaces")] - GetMultipleAccountInterfaces, + pub enum PostGetMultipleCompressedAccountsBodyMethod { + #[serde(rename = "getMultipleCompressedAccounts")] + GetMultipleCompressedAccounts, } - impl ::std::fmt::Display for PostGetMultipleAccountInterfacesBodyMethod { + impl ::std::fmt::Display for PostGetMultipleCompressedAccountsBodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetMultipleAccountInterfaces => { - f.write_str("getMultipleAccountInterfaces") + Self::GetMultipleCompressedAccounts => { + f.write_str("getMultipleCompressedAccounts") } } } } - impl ::std::str::FromStr for PostGetMultipleAccountInterfacesBodyMethod { + impl ::std::str::FromStr for PostGetMultipleCompressedAccountsBodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getMultipleAccountInterfaces" => Ok(Self::GetMultipleAccountInterfaces), + "getMultipleCompressedAccounts" => { + Ok(Self::GetMultipleCompressedAccounts) + } _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> for PostGetMultipleAccountInterfacesBodyMethod { + impl ::std::convert::TryFrom<&str> for PostGetMultipleCompressedAccountsBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -20875,7 +21082,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleAccountInterfacesBodyMethod { + for PostGetMultipleCompressedAccountsBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -20884,7 +21091,7 @@ All endpoints return AccountV2.*/ } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleAccountInterfacesBodyMethod { + for PostGetMultipleCompressedAccountsBodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -20892,24 +21099,48 @@ All endpoints return AccountV2.*/ value.parse() } } - ///Request for getMultipleAccountInterfaces + ///Request for compressed account data /// ///
JSON schema /// /// ```json ///{ - /// "description": "Request for getMultipleAccountInterfaces", - /// "type": "object", - /// "required": [ - /// "addresses" + /// "description": "Request for compressed account data", + /// "default": { + /// "addresses": null, + /// "hashes": [ + /// "11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs", + /// "1117mWrzzrZr312ebPDHu8tbfMwFNvCvMbr6WepCNG" + /// ] + /// }, + /// "examples": [ + /// { + /// "addresses": null, + /// "hashes": [ + /// "11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs", + /// "1117mWrzzrZr312ebPDHu8tbfMwFNvCvMbr6WepCNG" + /// ] + /// } /// ], + /// "type": "object", /// "properties": { /// "addresses": { - /// "description": "List of account addresses to look up (max 100)\nServer auto-detects account type (account, token, mint) based on program owner and data", - /// "type": "array", + /// "type": [ + /// "array", + /// "null" + /// ], /// "items": { /// "$ref": "#/components/schemas/SerializablePubkey" /// } + /// }, + /// "hashes": { + /// "type": [ + /// "array", + /// "null" + /// ], + /// "items": { + /// "$ref": "#/components/schemas/Hash" + /// } /// } /// }, /// "additionalProperties": false @@ -20918,17 +21149,31 @@ All endpoints return AccountV2.*/ ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetMultipleAccountInterfacesBodyParams { - /**List of account addresses to look up (max 100) -Server auto-detects account type (account, token, mint) based on program owner and data*/ - pub addresses: ::std::vec::Vec, + pub struct PostGetMultipleCompressedAccountsBodyParams { + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub addresses: ::std::option::Option<::std::vec::Vec>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub hashes: ::std::option::Option<::std::vec::Vec>, } - impl PostGetMultipleAccountInterfacesBodyParams { - pub fn builder() -> builder::PostGetMultipleAccountInterfacesBodyParams { + impl ::std::default::Default for PostGetMultipleCompressedAccountsBodyParams { + fn default() -> Self { + PostGetMultipleCompressedAccountsBodyParams { + addresses: ::std::option::Option::None, + hashes: ::std::option::Option::Some( + vec![ + Hash("11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs".to_string()), + Hash("1117mWrzzrZr312ebPDHu8tbfMwFNvCvMbr6WepCNG".to_string()) + ], + ), + } + } + } + impl PostGetMultipleCompressedAccountsBodyParams { + pub fn builder() -> builder::PostGetMultipleCompressedAccountsBodyParams { Default::default() } } - ///`PostGetMultipleAccountInterfacesResponse` + ///`PostGetMultipleCompressedAccountsResponse` /// ///
JSON schema /// @@ -20966,7 +21211,6 @@ Server auto-detects account type (account, token, mint) based on program owner a /// ] /// }, /// "result": { - /// "description": "Response for getMultipleAccountInterfaces", /// "type": "object", /// "required": [ /// "context", @@ -20977,48 +21221,34 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "description": "List of typed results (Some for found accounts, None for not found)", - /// "type": "array", - /// "items": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/InterfaceResult" - /// } - /// ] - /// } - /// ] - /// } + /// "$ref": "#/components/schemas/AccountList" /// } - /// } + /// }, + /// "additionalProperties": false /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetMultipleAccountInterfacesResponse { + pub struct PostGetMultipleCompressedAccountsResponse { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option, + pub error: ::std::option::Option, ///An ID to identify the response. - pub id: PostGetMultipleAccountInterfacesResponseId, + pub id: PostGetMultipleCompressedAccountsResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetMultipleAccountInterfacesResponseJsonrpc, + pub jsonrpc: PostGetMultipleCompressedAccountsResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub result: ::std::option::Option< - PostGetMultipleAccountInterfacesResponseResult, + PostGetMultipleCompressedAccountsResponseResult, >, } - impl PostGetMultipleAccountInterfacesResponse { - pub fn builder() -> builder::PostGetMultipleAccountInterfacesResponse { + impl PostGetMultipleCompressedAccountsResponse { + pub fn builder() -> builder::PostGetMultipleCompressedAccountsResponse { Default::default() } } - ///`PostGetMultipleAccountInterfacesResponseError` + ///`PostGetMultipleCompressedAccountsResponseError` /// ///
JSON schema /// @@ -21037,13 +21267,13 @@ Server auto-detects account type (account, token, mint) based on program owner a /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetMultipleAccountInterfacesResponseError { + pub struct PostGetMultipleCompressedAccountsResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default for PostGetMultipleAccountInterfacesResponseError { + impl ::std::default::Default for PostGetMultipleCompressedAccountsResponseError { fn default() -> Self { Self { code: Default::default(), @@ -21051,8 +21281,8 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl PostGetMultipleAccountInterfacesResponseError { - pub fn builder() -> builder::PostGetMultipleAccountInterfacesResponseError { + impl PostGetMultipleCompressedAccountsResponseError { + pub fn builder() -> builder::PostGetMultipleCompressedAccountsResponseError { Default::default() } } @@ -21082,18 +21312,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleAccountInterfacesResponseId { + pub enum PostGetMultipleCompressedAccountsResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetMultipleAccountInterfacesResponseId { + impl ::std::fmt::Display for PostGetMultipleCompressedAccountsResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetMultipleAccountInterfacesResponseId { + impl ::std::str::FromStr for PostGetMultipleCompressedAccountsResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -21104,7 +21334,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> for PostGetMultipleAccountInterfacesResponseId { + impl ::std::convert::TryFrom<&str> for PostGetMultipleCompressedAccountsResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -21113,7 +21343,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleAccountInterfacesResponseId { + for PostGetMultipleCompressedAccountsResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -21122,7 +21352,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleAccountInterfacesResponseId { + for PostGetMultipleCompressedAccountsResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -21156,18 +21386,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleAccountInterfacesResponseJsonrpc { + pub enum PostGetMultipleCompressedAccountsResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetMultipleAccountInterfacesResponseJsonrpc { + impl ::std::fmt::Display for PostGetMultipleCompressedAccountsResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetMultipleAccountInterfacesResponseJsonrpc { + impl ::std::str::FromStr for PostGetMultipleCompressedAccountsResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -21179,7 +21409,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&str> - for PostGetMultipleAccountInterfacesResponseJsonrpc { + for PostGetMultipleCompressedAccountsResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -21188,7 +21418,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleAccountInterfacesResponseJsonrpc { + for PostGetMultipleCompressedAccountsResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -21197,7 +21427,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleAccountInterfacesResponseJsonrpc { + for PostGetMultipleCompressedAccountsResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -21205,13 +21435,12 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - ///Response for getMultipleAccountInterfaces + ///`PostGetMultipleCompressedAccountsResponseResult` /// ///
JSON schema /// /// ```json ///{ - /// "description": "Response for getMultipleAccountInterfaces", /// "type": "object", /// "required": [ /// "context", @@ -21222,39 +21451,25 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "description": "List of typed results (Some for found accounts, None for not found)", - /// "type": "array", - /// "items": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/InterfaceResult" - /// } - /// ] - /// } - /// ] - /// } + /// "$ref": "#/components/schemas/AccountList" /// } - /// } + /// }, + /// "additionalProperties": false ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetMultipleAccountInterfacesResponseResult { + #[serde(deny_unknown_fields)] + pub struct PostGetMultipleCompressedAccountsResponseResult { pub context: Context, - ///List of typed results (Some for found accounts, None for not found) - pub value: ::std::vec::Vec<::std::option::Option>, + pub value: AccountList, } - impl PostGetMultipleAccountInterfacesResponseResult { - pub fn builder() -> builder::PostGetMultipleAccountInterfacesResponseResult { + impl PostGetMultipleCompressedAccountsResponseResult { + pub fn builder() -> builder::PostGetMultipleCompressedAccountsResponseResult { Default::default() } } - ///`PostGetMultipleCompressedAccountProofsBody` + ///`PostGetMultipleCompressedAccountsV2Body` /// ///
JSON schema /// @@ -21286,31 +21501,66 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getMultipleCompressedAccountProofs" + /// "getMultipleCompressedAccountsV2" /// ] /// }, /// "params": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/Hash" - /// } + /// "description": "Request for compressed account data", + /// "default": { + /// "addresses": null, + /// "hashes": [ + /// "1119DWteoLSdjvrT6g6L8C2PfDD2faiTQUpsjY2RiF", + /// "111BuZ6b86gm7XhxjvTakhRvxSMjXp2GqgifkNUmDK" + /// ] + /// }, + /// "examples": [ + /// { + /// "addresses": null, + /// "hashes": [ + /// "1119DWteoLSdjvrT6g6L8C2PfDD2faiTQUpsjY2RiF", + /// "111BuZ6b86gm7XhxjvTakhRvxSMjXp2GqgifkNUmDK" + /// ] + /// } + /// ], + /// "type": "object", + /// "properties": { + /// "addresses": { + /// "type": [ + /// "array", + /// "null" + /// ], + /// "items": { + /// "$ref": "#/components/schemas/SerializablePubkey" + /// } + /// }, + /// "hashes": { + /// "type": [ + /// "array", + /// "null" + /// ], + /// "items": { + /// "$ref": "#/components/schemas/Hash" + /// } + /// } + /// }, + /// "additionalProperties": false /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetMultipleCompressedAccountProofsBody { + pub struct PostGetMultipleCompressedAccountsV2Body { ///An ID to identify the request. - pub id: PostGetMultipleCompressedAccountProofsBodyId, + pub id: PostGetMultipleCompressedAccountsV2BodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetMultipleCompressedAccountProofsBodyJsonrpc, + pub jsonrpc: PostGetMultipleCompressedAccountsV2BodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetMultipleCompressedAccountProofsBodyMethod, - pub params: ::std::vec::Vec, + pub method: PostGetMultipleCompressedAccountsV2BodyMethod, + pub params: PostGetMultipleCompressedAccountsV2BodyParams, } - impl PostGetMultipleCompressedAccountProofsBody { - pub fn builder() -> builder::PostGetMultipleCompressedAccountProofsBody { + impl PostGetMultipleCompressedAccountsV2Body { + pub fn builder() -> builder::PostGetMultipleCompressedAccountsV2Body { Default::default() } } @@ -21340,18 +21590,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleCompressedAccountProofsBodyId { + pub enum PostGetMultipleCompressedAccountsV2BodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetMultipleCompressedAccountProofsBodyId { + impl ::std::fmt::Display for PostGetMultipleCompressedAccountsV2BodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetMultipleCompressedAccountProofsBodyId { + impl ::std::str::FromStr for PostGetMultipleCompressedAccountsV2BodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -21362,7 +21612,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> for PostGetMultipleCompressedAccountProofsBodyId { + impl ::std::convert::TryFrom<&str> for PostGetMultipleCompressedAccountsV2BodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -21371,7 +21621,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleCompressedAccountProofsBodyId { + for PostGetMultipleCompressedAccountsV2BodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -21380,7 +21630,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleCompressedAccountProofsBodyId { + for PostGetMultipleCompressedAccountsV2BodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -21414,18 +21664,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleCompressedAccountProofsBodyJsonrpc { + pub enum PostGetMultipleCompressedAccountsV2BodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetMultipleCompressedAccountProofsBodyJsonrpc { + impl ::std::fmt::Display for PostGetMultipleCompressedAccountsV2BodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetMultipleCompressedAccountProofsBodyJsonrpc { + impl ::std::str::FromStr for PostGetMultipleCompressedAccountsV2BodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -21437,7 +21687,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&str> - for PostGetMultipleCompressedAccountProofsBodyJsonrpc { + for PostGetMultipleCompressedAccountsV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -21446,7 +21696,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleCompressedAccountProofsBodyJsonrpc { + for PostGetMultipleCompressedAccountsV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -21455,7 +21705,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleCompressedAccountProofsBodyJsonrpc { + for PostGetMultipleCompressedAccountsV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -21472,7 +21722,7 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getMultipleCompressedAccountProofs" + /// "getMultipleCompressedAccountsV2" /// ] ///} /// ``` @@ -21489,34 +21739,34 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleCompressedAccountProofsBodyMethod { - #[serde(rename = "getMultipleCompressedAccountProofs")] - GetMultipleCompressedAccountProofs, + pub enum PostGetMultipleCompressedAccountsV2BodyMethod { + #[serde(rename = "getMultipleCompressedAccountsV2")] + GetMultipleCompressedAccountsV2, } - impl ::std::fmt::Display for PostGetMultipleCompressedAccountProofsBodyMethod { + impl ::std::fmt::Display for PostGetMultipleCompressedAccountsV2BodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetMultipleCompressedAccountProofs => { - f.write_str("getMultipleCompressedAccountProofs") + Self::GetMultipleCompressedAccountsV2 => { + f.write_str("getMultipleCompressedAccountsV2") } } } } - impl ::std::str::FromStr for PostGetMultipleCompressedAccountProofsBodyMethod { + impl ::std::str::FromStr for PostGetMultipleCompressedAccountsV2BodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getMultipleCompressedAccountProofs" => { - Ok(Self::GetMultipleCompressedAccountProofs) + "getMultipleCompressedAccountsV2" => { + Ok(Self::GetMultipleCompressedAccountsV2) } _ => Err("invalid value".into()), } } } impl ::std::convert::TryFrom<&str> - for PostGetMultipleCompressedAccountProofsBodyMethod { + for PostGetMultipleCompressedAccountsV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -21525,7 +21775,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleCompressedAccountProofsBodyMethod { + for PostGetMultipleCompressedAccountsV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -21534,7 +21784,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleCompressedAccountProofsBodyMethod { + for PostGetMultipleCompressedAccountsV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -21542,7 +21792,81 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - ///`PostGetMultipleCompressedAccountProofsResponse` + ///Request for compressed account data + /// + ///
JSON schema + /// + /// ```json + ///{ + /// "description": "Request for compressed account data", + /// "default": { + /// "addresses": null, + /// "hashes": [ + /// "1119DWteoLSdjvrT6g6L8C2PfDD2faiTQUpsjY2RiF", + /// "111BuZ6b86gm7XhxjvTakhRvxSMjXp2GqgifkNUmDK" + /// ] + /// }, + /// "examples": [ + /// { + /// "addresses": null, + /// "hashes": [ + /// "1119DWteoLSdjvrT6g6L8C2PfDD2faiTQUpsjY2RiF", + /// "111BuZ6b86gm7XhxjvTakhRvxSMjXp2GqgifkNUmDK" + /// ] + /// } + /// ], + /// "type": "object", + /// "properties": { + /// "addresses": { + /// "type": [ + /// "array", + /// "null" + /// ], + /// "items": { + /// "$ref": "#/components/schemas/SerializablePubkey" + /// } + /// }, + /// "hashes": { + /// "type": [ + /// "array", + /// "null" + /// ], + /// "items": { + /// "$ref": "#/components/schemas/Hash" + /// } + /// } + /// }, + /// "additionalProperties": false + ///} + /// ``` + ///
+ #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + #[serde(deny_unknown_fields)] + pub struct PostGetMultipleCompressedAccountsV2BodyParams { + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub addresses: ::std::option::Option<::std::vec::Vec>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub hashes: ::std::option::Option<::std::vec::Vec>, + } + impl ::std::default::Default for PostGetMultipleCompressedAccountsV2BodyParams { + fn default() -> Self { + PostGetMultipleCompressedAccountsV2BodyParams { + addresses: ::std::option::Option::None, + hashes: ::std::option::Option::Some( + vec![ + Hash("1119DWteoLSdjvrT6g6L8C2PfDD2faiTQUpsjY2RiF".to_string()), + Hash("111BuZ6b86gm7XhxjvTakhRvxSMjXp2GqgifkNUmDK".to_string()) + ], + ), + } + } + } + impl PostGetMultipleCompressedAccountsV2BodyParams { + pub fn builder() -> builder::PostGetMultipleCompressedAccountsV2BodyParams { + Default::default() + } + } + ///`PostGetMultipleCompressedAccountsV2Response` /// ///
JSON schema /// @@ -21590,10 +21914,7 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/GetCompressedAccountProofResponseValue" - /// } + /// "$ref": "#/components/schemas/AccountListV2" /// } /// }, /// "additionalProperties": false @@ -21603,26 +21924,26 @@ Server auto-detects account type (account, token, mint) based on program owner a /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetMultipleCompressedAccountProofsResponse { + pub struct PostGetMultipleCompressedAccountsV2Response { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub error: ::std::option::Option< - PostGetMultipleCompressedAccountProofsResponseError, + PostGetMultipleCompressedAccountsV2ResponseError, >, ///An ID to identify the response. - pub id: PostGetMultipleCompressedAccountProofsResponseId, + pub id: PostGetMultipleCompressedAccountsV2ResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetMultipleCompressedAccountProofsResponseJsonrpc, + pub jsonrpc: PostGetMultipleCompressedAccountsV2ResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub result: ::std::option::Option< - PostGetMultipleCompressedAccountProofsResponseResult, + PostGetMultipleCompressedAccountsV2ResponseResult, >, } - impl PostGetMultipleCompressedAccountProofsResponse { - pub fn builder() -> builder::PostGetMultipleCompressedAccountProofsResponse { + impl PostGetMultipleCompressedAccountsV2Response { + pub fn builder() -> builder::PostGetMultipleCompressedAccountsV2Response { Default::default() } } - ///`PostGetMultipleCompressedAccountProofsResponseError` + ///`PostGetMultipleCompressedAccountsV2ResponseError` /// ///
JSON schema /// @@ -21641,14 +21962,13 @@ Server auto-detects account type (account, token, mint) based on program owner a /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetMultipleCompressedAccountProofsResponseError { + pub struct PostGetMultipleCompressedAccountsV2ResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default - for PostGetMultipleCompressedAccountProofsResponseError { + impl ::std::default::Default for PostGetMultipleCompressedAccountsV2ResponseError { fn default() -> Self { Self { code: Default::default(), @@ -21656,8 +21976,8 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl PostGetMultipleCompressedAccountProofsResponseError { - pub fn builder() -> builder::PostGetMultipleCompressedAccountProofsResponseError { + impl PostGetMultipleCompressedAccountsV2ResponseError { + pub fn builder() -> builder::PostGetMultipleCompressedAccountsV2ResponseError { Default::default() } } @@ -21687,18 +22007,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleCompressedAccountProofsResponseId { + pub enum PostGetMultipleCompressedAccountsV2ResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetMultipleCompressedAccountProofsResponseId { + impl ::std::fmt::Display for PostGetMultipleCompressedAccountsV2ResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetMultipleCompressedAccountProofsResponseId { + impl ::std::str::FromStr for PostGetMultipleCompressedAccountsV2ResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -21710,7 +22030,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&str> - for PostGetMultipleCompressedAccountProofsResponseId { + for PostGetMultipleCompressedAccountsV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -21719,7 +22039,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleCompressedAccountProofsResponseId { + for PostGetMultipleCompressedAccountsV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -21728,7 +22048,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleCompressedAccountProofsResponseId { + for PostGetMultipleCompressedAccountsV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -21762,18 +22082,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleCompressedAccountProofsResponseJsonrpc { + pub enum PostGetMultipleCompressedAccountsV2ResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetMultipleCompressedAccountProofsResponseJsonrpc { + impl ::std::fmt::Display for PostGetMultipleCompressedAccountsV2ResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetMultipleCompressedAccountProofsResponseJsonrpc { + impl ::std::str::FromStr for PostGetMultipleCompressedAccountsV2ResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -21785,7 +22105,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&str> - for PostGetMultipleCompressedAccountProofsResponseJsonrpc { + for PostGetMultipleCompressedAccountsV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -21794,7 +22114,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleCompressedAccountProofsResponseJsonrpc { + for PostGetMultipleCompressedAccountsV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -21803,7 +22123,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleCompressedAccountProofsResponseJsonrpc { + for PostGetMultipleCompressedAccountsV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -21811,7 +22131,7 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - ///`PostGetMultipleCompressedAccountProofsResponseResult` + ///`PostGetMultipleCompressedAccountsV2ResponseResult` /// ///
JSON schema /// @@ -21827,10 +22147,7 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/GetCompressedAccountProofResponseValue" - /// } + /// "$ref": "#/components/schemas/AccountListV2" /// } /// }, /// "additionalProperties": false @@ -21839,16 +22156,16 @@ Server auto-detects account type (account, token, mint) based on program owner a ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetMultipleCompressedAccountProofsResponseResult { + pub struct PostGetMultipleCompressedAccountsV2ResponseResult { pub context: Context, - pub value: ::std::vec::Vec, + pub value: AccountListV2, } - impl PostGetMultipleCompressedAccountProofsResponseResult { - pub fn builder() -> builder::PostGetMultipleCompressedAccountProofsResponseResult { + impl PostGetMultipleCompressedAccountsV2ResponseResult { + pub fn builder() -> builder::PostGetMultipleCompressedAccountsV2ResponseResult { Default::default() } } - ///`PostGetMultipleCompressedAccountProofsV2Body` + ///`PostGetMultipleNewAddressProofsBody` /// ///
JSON schema /// @@ -21880,13 +22197,13 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getMultipleCompressedAccountProofsV2" + /// "getMultipleNewAddressProofs" /// ] /// }, /// "params": { /// "type": "array", /// "items": { - /// "$ref": "#/components/schemas/Hash" + /// "$ref": "#/components/schemas/SerializablePubkey" /// } /// } /// } @@ -21894,17 +22211,17 @@ Server auto-detects account type (account, token, mint) based on program owner a /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetMultipleCompressedAccountProofsV2Body { + pub struct PostGetMultipleNewAddressProofsBody { ///An ID to identify the request. - pub id: PostGetMultipleCompressedAccountProofsV2BodyId, + pub id: PostGetMultipleNewAddressProofsBodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetMultipleCompressedAccountProofsV2BodyJsonrpc, + pub jsonrpc: PostGetMultipleNewAddressProofsBodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetMultipleCompressedAccountProofsV2BodyMethod, - pub params: ::std::vec::Vec, + pub method: PostGetMultipleNewAddressProofsBodyMethod, + pub params: ::std::vec::Vec, } - impl PostGetMultipleCompressedAccountProofsV2Body { - pub fn builder() -> builder::PostGetMultipleCompressedAccountProofsV2Body { + impl PostGetMultipleNewAddressProofsBody { + pub fn builder() -> builder::PostGetMultipleNewAddressProofsBody { Default::default() } } @@ -21934,18 +22251,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleCompressedAccountProofsV2BodyId { + pub enum PostGetMultipleNewAddressProofsBodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetMultipleCompressedAccountProofsV2BodyId { + impl ::std::fmt::Display for PostGetMultipleNewAddressProofsBodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetMultipleCompressedAccountProofsV2BodyId { + impl ::std::str::FromStr for PostGetMultipleNewAddressProofsBodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -21956,8 +22273,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> - for PostGetMultipleCompressedAccountProofsV2BodyId { + impl ::std::convert::TryFrom<&str> for PostGetMultipleNewAddressProofsBodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -21966,7 +22282,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleCompressedAccountProofsV2BodyId { + for PostGetMultipleNewAddressProofsBodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -21975,7 +22291,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleCompressedAccountProofsV2BodyId { + for PostGetMultipleNewAddressProofsBodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -22009,18 +22325,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleCompressedAccountProofsV2BodyJsonrpc { + pub enum PostGetMultipleNewAddressProofsBodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetMultipleCompressedAccountProofsV2BodyJsonrpc { + impl ::std::fmt::Display for PostGetMultipleNewAddressProofsBodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetMultipleCompressedAccountProofsV2BodyJsonrpc { + impl ::std::str::FromStr for PostGetMultipleNewAddressProofsBodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -22031,8 +22347,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> - for PostGetMultipleCompressedAccountProofsV2BodyJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetMultipleNewAddressProofsBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -22041,7 +22356,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleCompressedAccountProofsV2BodyJsonrpc { + for PostGetMultipleNewAddressProofsBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -22050,7 +22365,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleCompressedAccountProofsV2BodyJsonrpc { + for PostGetMultipleNewAddressProofsBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -22067,7 +22382,7 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getMultipleCompressedAccountProofsV2" + /// "getMultipleNewAddressProofs" /// ] ///} /// ``` @@ -22084,34 +22399,31 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleCompressedAccountProofsV2BodyMethod { - #[serde(rename = "getMultipleCompressedAccountProofsV2")] - GetMultipleCompressedAccountProofsV2, + pub enum PostGetMultipleNewAddressProofsBodyMethod { + #[serde(rename = "getMultipleNewAddressProofs")] + GetMultipleNewAddressProofs, } - impl ::std::fmt::Display for PostGetMultipleCompressedAccountProofsV2BodyMethod { + impl ::std::fmt::Display for PostGetMultipleNewAddressProofsBodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetMultipleCompressedAccountProofsV2 => { - f.write_str("getMultipleCompressedAccountProofsV2") + Self::GetMultipleNewAddressProofs => { + f.write_str("getMultipleNewAddressProofs") } } } } - impl ::std::str::FromStr for PostGetMultipleCompressedAccountProofsV2BodyMethod { + impl ::std::str::FromStr for PostGetMultipleNewAddressProofsBodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getMultipleCompressedAccountProofsV2" => { - Ok(Self::GetMultipleCompressedAccountProofsV2) - } + "getMultipleNewAddressProofs" => Ok(Self::GetMultipleNewAddressProofs), _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> - for PostGetMultipleCompressedAccountProofsV2BodyMethod { + impl ::std::convert::TryFrom<&str> for PostGetMultipleNewAddressProofsBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -22120,7 +22432,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleCompressedAccountProofsV2BodyMethod { + for PostGetMultipleNewAddressProofsBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -22129,7 +22441,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleCompressedAccountProofsV2BodyMethod { + for PostGetMultipleNewAddressProofsBodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -22137,7 +22449,7 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - ///`PostGetMultipleCompressedAccountProofsV2Response` + ///`PostGetMultipleNewAddressProofsResponse` /// ///
JSON schema /// @@ -22187,37 +22499,32 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "value": { /// "type": "array", /// "items": { - /// "$ref": "#/components/schemas/GetCompressedAccountProofResponseValueV2" + /// "$ref": "#/components/schemas/MerkleContextWithNewAddressProof" /// } /// } - /// }, - /// "additionalProperties": false + /// } /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetMultipleCompressedAccountProofsV2Response { + pub struct PostGetMultipleNewAddressProofsResponse { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option< - PostGetMultipleCompressedAccountProofsV2ResponseError, - >, + pub error: ::std::option::Option, ///An ID to identify the response. - pub id: PostGetMultipleCompressedAccountProofsV2ResponseId, + pub id: PostGetMultipleNewAddressProofsResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetMultipleCompressedAccountProofsV2ResponseJsonrpc, + pub jsonrpc: PostGetMultipleNewAddressProofsResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub result: ::std::option::Option< - PostGetMultipleCompressedAccountProofsV2ResponseResult, - >, + pub result: ::std::option::Option, } - impl PostGetMultipleCompressedAccountProofsV2Response { - pub fn builder() -> builder::PostGetMultipleCompressedAccountProofsV2Response { + impl PostGetMultipleNewAddressProofsResponse { + pub fn builder() -> builder::PostGetMultipleNewAddressProofsResponse { Default::default() } } - ///`PostGetMultipleCompressedAccountProofsV2ResponseError` + ///`PostGetMultipleNewAddressProofsResponseError` /// ///
JSON schema /// @@ -22236,14 +22543,13 @@ Server auto-detects account type (account, token, mint) based on program owner a /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetMultipleCompressedAccountProofsV2ResponseError { + pub struct PostGetMultipleNewAddressProofsResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default - for PostGetMultipleCompressedAccountProofsV2ResponseError { + impl ::std::default::Default for PostGetMultipleNewAddressProofsResponseError { fn default() -> Self { Self { code: Default::default(), @@ -22251,8 +22557,8 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl PostGetMultipleCompressedAccountProofsV2ResponseError { - pub fn builder() -> builder::PostGetMultipleCompressedAccountProofsV2ResponseError { + impl PostGetMultipleNewAddressProofsResponseError { + pub fn builder() -> builder::PostGetMultipleNewAddressProofsResponseError { Default::default() } } @@ -22282,18 +22588,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleCompressedAccountProofsV2ResponseId { + pub enum PostGetMultipleNewAddressProofsResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetMultipleCompressedAccountProofsV2ResponseId { + impl ::std::fmt::Display for PostGetMultipleNewAddressProofsResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetMultipleCompressedAccountProofsV2ResponseId { + impl ::std::str::FromStr for PostGetMultipleNewAddressProofsResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -22304,8 +22610,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> - for PostGetMultipleCompressedAccountProofsV2ResponseId { + impl ::std::convert::TryFrom<&str> for PostGetMultipleNewAddressProofsResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -22314,7 +22619,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleCompressedAccountProofsV2ResponseId { + for PostGetMultipleNewAddressProofsResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -22323,7 +22628,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleCompressedAccountProofsV2ResponseId { + for PostGetMultipleNewAddressProofsResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -22357,20 +22662,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleCompressedAccountProofsV2ResponseJsonrpc { + pub enum PostGetMultipleNewAddressProofsResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display - for PostGetMultipleCompressedAccountProofsV2ResponseJsonrpc { + impl ::std::fmt::Display for PostGetMultipleNewAddressProofsResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr - for PostGetMultipleCompressedAccountProofsV2ResponseJsonrpc { + impl ::std::str::FromStr for PostGetMultipleNewAddressProofsResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -22382,7 +22685,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&str> - for PostGetMultipleCompressedAccountProofsV2ResponseJsonrpc { + for PostGetMultipleNewAddressProofsResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -22391,7 +22694,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleCompressedAccountProofsV2ResponseJsonrpc { + for PostGetMultipleNewAddressProofsResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -22400,7 +22703,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleCompressedAccountProofsV2ResponseJsonrpc { + for PostGetMultipleNewAddressProofsResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -22408,7 +22711,7 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - ///`PostGetMultipleCompressedAccountProofsV2ResponseResult` + ///`PostGetMultipleNewAddressProofsResponseResult` /// ///
JSON schema /// @@ -22426,26 +22729,24 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "value": { /// "type": "array", /// "items": { - /// "$ref": "#/components/schemas/GetCompressedAccountProofResponseValueV2" + /// "$ref": "#/components/schemas/MerkleContextWithNewAddressProof" /// } /// } - /// }, - /// "additionalProperties": false + /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(deny_unknown_fields)] - pub struct PostGetMultipleCompressedAccountProofsV2ResponseResult { + pub struct PostGetMultipleNewAddressProofsResponseResult { pub context: Context, - pub value: ::std::vec::Vec, + pub value: ::std::vec::Vec, } - impl PostGetMultipleCompressedAccountProofsV2ResponseResult { - pub fn builder() -> builder::PostGetMultipleCompressedAccountProofsV2ResponseResult { + impl PostGetMultipleNewAddressProofsResponseResult { + pub fn builder() -> builder::PostGetMultipleNewAddressProofsResponseResult { Default::default() } } - ///`PostGetMultipleCompressedAccountsBody` + ///`PostGetMultipleNewAddressProofsV2Body` /// ///
JSON schema /// @@ -22477,66 +22778,31 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getMultipleCompressedAccounts" + /// "getMultipleNewAddressProofsV2" /// ] /// }, /// "params": { - /// "description": "Request for compressed account data", - /// "default": { - /// "addresses": null, - /// "hashes": [ - /// "11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs", - /// "1117mWrzzrZr312ebPDHu8tbfMwFNvCvMbr6WepCNG" - /// ] - /// }, - /// "examples": [ - /// { - /// "addresses": null, - /// "hashes": [ - /// "11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs", - /// "1117mWrzzrZr312ebPDHu8tbfMwFNvCvMbr6WepCNG" - /// ] - /// } - /// ], - /// "type": "object", - /// "properties": { - /// "addresses": { - /// "type": [ - /// "array", - /// "null" - /// ], - /// "items": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// } - /// }, - /// "hashes": { - /// "type": [ - /// "array", - /// "null" - /// ], - /// "items": { - /// "$ref": "#/components/schemas/Hash" - /// } - /// } - /// }, - /// "additionalProperties": false + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/AddressWithTree" + /// } /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetMultipleCompressedAccountsBody { + pub struct PostGetMultipleNewAddressProofsV2Body { ///An ID to identify the request. - pub id: PostGetMultipleCompressedAccountsBodyId, + pub id: PostGetMultipleNewAddressProofsV2BodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetMultipleCompressedAccountsBodyJsonrpc, + pub jsonrpc: PostGetMultipleNewAddressProofsV2BodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetMultipleCompressedAccountsBodyMethod, - pub params: PostGetMultipleCompressedAccountsBodyParams, + pub method: PostGetMultipleNewAddressProofsV2BodyMethod, + pub params: ::std::vec::Vec, } - impl PostGetMultipleCompressedAccountsBody { - pub fn builder() -> builder::PostGetMultipleCompressedAccountsBody { + impl PostGetMultipleNewAddressProofsV2Body { + pub fn builder() -> builder::PostGetMultipleNewAddressProofsV2Body { Default::default() } } @@ -22566,18 +22832,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleCompressedAccountsBodyId { + pub enum PostGetMultipleNewAddressProofsV2BodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetMultipleCompressedAccountsBodyId { + impl ::std::fmt::Display for PostGetMultipleNewAddressProofsV2BodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetMultipleCompressedAccountsBodyId { + impl ::std::str::FromStr for PostGetMultipleNewAddressProofsV2BodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -22588,7 +22854,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> for PostGetMultipleCompressedAccountsBodyId { + impl ::std::convert::TryFrom<&str> for PostGetMultipleNewAddressProofsV2BodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -22597,7 +22863,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleCompressedAccountsBodyId { + for PostGetMultipleNewAddressProofsV2BodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -22606,7 +22872,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleCompressedAccountsBodyId { + for PostGetMultipleNewAddressProofsV2BodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -22640,18 +22906,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleCompressedAccountsBodyJsonrpc { + pub enum PostGetMultipleNewAddressProofsV2BodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetMultipleCompressedAccountsBodyJsonrpc { + impl ::std::fmt::Display for PostGetMultipleNewAddressProofsV2BodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetMultipleCompressedAccountsBodyJsonrpc { + impl ::std::str::FromStr for PostGetMultipleNewAddressProofsV2BodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -22662,7 +22928,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> for PostGetMultipleCompressedAccountsBodyJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetMultipleNewAddressProofsV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -22671,7 +22937,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleCompressedAccountsBodyJsonrpc { + for PostGetMultipleNewAddressProofsV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -22680,7 +22946,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleCompressedAccountsBodyJsonrpc { + for PostGetMultipleNewAddressProofsV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -22697,7 +22963,7 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getMultipleCompressedAccounts" + /// "getMultipleNewAddressProofsV2" /// ] ///} /// ``` @@ -22714,33 +22980,33 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleCompressedAccountsBodyMethod { - #[serde(rename = "getMultipleCompressedAccounts")] - GetMultipleCompressedAccounts, + pub enum PostGetMultipleNewAddressProofsV2BodyMethod { + #[serde(rename = "getMultipleNewAddressProofsV2")] + GetMultipleNewAddressProofsV2, } - impl ::std::fmt::Display for PostGetMultipleCompressedAccountsBodyMethod { + impl ::std::fmt::Display for PostGetMultipleNewAddressProofsV2BodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetMultipleCompressedAccounts => { - f.write_str("getMultipleCompressedAccounts") + Self::GetMultipleNewAddressProofsV2 => { + f.write_str("getMultipleNewAddressProofsV2") } } } } - impl ::std::str::FromStr for PostGetMultipleCompressedAccountsBodyMethod { + impl ::std::str::FromStr for PostGetMultipleNewAddressProofsV2BodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getMultipleCompressedAccounts" => { - Ok(Self::GetMultipleCompressedAccounts) + "getMultipleNewAddressProofsV2" => { + Ok(Self::GetMultipleNewAddressProofsV2) } _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> for PostGetMultipleCompressedAccountsBodyMethod { + impl ::std::convert::TryFrom<&str> for PostGetMultipleNewAddressProofsV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -22749,7 +23015,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleCompressedAccountsBodyMethod { + for PostGetMultipleNewAddressProofsV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -22758,7 +23024,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleCompressedAccountsBodyMethod { + for PostGetMultipleNewAddressProofsV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -22766,81 +23032,7 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - ///Request for compressed account data - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "Request for compressed account data", - /// "default": { - /// "addresses": null, - /// "hashes": [ - /// "11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs", - /// "1117mWrzzrZr312ebPDHu8tbfMwFNvCvMbr6WepCNG" - /// ] - /// }, - /// "examples": [ - /// { - /// "addresses": null, - /// "hashes": [ - /// "11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs", - /// "1117mWrzzrZr312ebPDHu8tbfMwFNvCvMbr6WepCNG" - /// ] - /// } - /// ], - /// "type": "object", - /// "properties": { - /// "addresses": { - /// "type": [ - /// "array", - /// "null" - /// ], - /// "items": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// } - /// }, - /// "hashes": { - /// "type": [ - /// "array", - /// "null" - /// ], - /// "items": { - /// "$ref": "#/components/schemas/Hash" - /// } - /// } - /// }, - /// "additionalProperties": false - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(deny_unknown_fields)] - pub struct PostGetMultipleCompressedAccountsBodyParams { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub addresses: ::std::option::Option<::std::vec::Vec>, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub hashes: ::std::option::Option<::std::vec::Vec>, - } - impl ::std::default::Default for PostGetMultipleCompressedAccountsBodyParams { - fn default() -> Self { - PostGetMultipleCompressedAccountsBodyParams { - addresses: ::std::option::Option::None, - hashes: ::std::option::Option::Some( - vec![ - Hash("11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs".to_string()), - Hash("1117mWrzzrZr312ebPDHu8tbfMwFNvCvMbr6WepCNG".to_string()) - ], - ), - } - } - } - impl PostGetMultipleCompressedAccountsBodyParams { - pub fn builder() -> builder::PostGetMultipleCompressedAccountsBodyParams { - Default::default() - } - } - ///`PostGetMultipleCompressedAccountsResponse` + ///`PostGetMultipleNewAddressProofsV2Response` /// ///
JSON schema /// @@ -22888,34 +23080,36 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/AccountList" + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/MerkleContextWithNewAddressProof" + /// } /// } - /// }, - /// "additionalProperties": false + /// } /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetMultipleCompressedAccountsResponse { + pub struct PostGetMultipleNewAddressProofsV2Response { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option, + pub error: ::std::option::Option, ///An ID to identify the response. - pub id: PostGetMultipleCompressedAccountsResponseId, + pub id: PostGetMultipleNewAddressProofsV2ResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetMultipleCompressedAccountsResponseJsonrpc, + pub jsonrpc: PostGetMultipleNewAddressProofsV2ResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub result: ::std::option::Option< - PostGetMultipleCompressedAccountsResponseResult, + PostGetMultipleNewAddressProofsV2ResponseResult, >, } - impl PostGetMultipleCompressedAccountsResponse { - pub fn builder() -> builder::PostGetMultipleCompressedAccountsResponse { + impl PostGetMultipleNewAddressProofsV2Response { + pub fn builder() -> builder::PostGetMultipleNewAddressProofsV2Response { Default::default() } } - ///`PostGetMultipleCompressedAccountsResponseError` + ///`PostGetMultipleNewAddressProofsV2ResponseError` /// ///
JSON schema /// @@ -22934,13 +23128,13 @@ Server auto-detects account type (account, token, mint) based on program owner a /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetMultipleCompressedAccountsResponseError { + pub struct PostGetMultipleNewAddressProofsV2ResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default for PostGetMultipleCompressedAccountsResponseError { + impl ::std::default::Default for PostGetMultipleNewAddressProofsV2ResponseError { fn default() -> Self { Self { code: Default::default(), @@ -22948,8 +23142,8 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl PostGetMultipleCompressedAccountsResponseError { - pub fn builder() -> builder::PostGetMultipleCompressedAccountsResponseError { + impl PostGetMultipleNewAddressProofsV2ResponseError { + pub fn builder() -> builder::PostGetMultipleNewAddressProofsV2ResponseError { Default::default() } } @@ -22979,18 +23173,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleCompressedAccountsResponseId { + pub enum PostGetMultipleNewAddressProofsV2ResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetMultipleCompressedAccountsResponseId { + impl ::std::fmt::Display for PostGetMultipleNewAddressProofsV2ResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetMultipleCompressedAccountsResponseId { + impl ::std::str::FromStr for PostGetMultipleNewAddressProofsV2ResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -23001,7 +23195,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> for PostGetMultipleCompressedAccountsResponseId { + impl ::std::convert::TryFrom<&str> for PostGetMultipleNewAddressProofsV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -23010,7 +23204,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleCompressedAccountsResponseId { + for PostGetMultipleNewAddressProofsV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -23019,7 +23213,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleCompressedAccountsResponseId { + for PostGetMultipleNewAddressProofsV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -23053,18 +23247,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleCompressedAccountsResponseJsonrpc { + pub enum PostGetMultipleNewAddressProofsV2ResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetMultipleCompressedAccountsResponseJsonrpc { + impl ::std::fmt::Display for PostGetMultipleNewAddressProofsV2ResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetMultipleCompressedAccountsResponseJsonrpc { + impl ::std::str::FromStr for PostGetMultipleNewAddressProofsV2ResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -23076,7 +23270,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&str> - for PostGetMultipleCompressedAccountsResponseJsonrpc { + for PostGetMultipleNewAddressProofsV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -23085,7 +23279,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleCompressedAccountsResponseJsonrpc { + for PostGetMultipleNewAddressProofsV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -23094,7 +23288,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleCompressedAccountsResponseJsonrpc { + for PostGetMultipleNewAddressProofsV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -23102,7 +23296,7 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - ///`PostGetMultipleCompressedAccountsResponseResult` + ///`PostGetMultipleNewAddressProofsV2ResponseResult` /// ///
JSON schema /// @@ -23118,25 +23312,26 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/AccountList" + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/MerkleContextWithNewAddressProof" + /// } /// } - /// }, - /// "additionalProperties": false + /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(deny_unknown_fields)] - pub struct PostGetMultipleCompressedAccountsResponseResult { + pub struct PostGetMultipleNewAddressProofsV2ResponseResult { pub context: Context, - pub value: AccountList, + pub value: ::std::vec::Vec, } - impl PostGetMultipleCompressedAccountsResponseResult { - pub fn builder() -> builder::PostGetMultipleCompressedAccountsResponseResult { + impl PostGetMultipleNewAddressProofsV2ResponseResult { + pub fn builder() -> builder::PostGetMultipleNewAddressProofsV2ResponseResult { Default::default() } } - ///`PostGetMultipleCompressedAccountsV2Body` + ///`PostGetQueueElementsBody` /// ///
JSON schema /// @@ -23168,46 +23363,59 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getMultipleCompressedAccountsV2" + /// "getQueueElements" /// ] /// }, /// "params": { - /// "description": "Request for compressed account data", - /// "default": { - /// "addresses": null, - /// "hashes": [ - /// "1119DWteoLSdjvrT6g6L8C2PfDD2faiTQUpsjY2RiF", - /// "111BuZ6b86gm7XhxjvTakhRvxSMjXp2GqgifkNUmDK" - /// ] - /// }, - /// "examples": [ - /// { - /// "addresses": null, - /// "hashes": [ - /// "1119DWteoLSdjvrT6g6L8C2PfDD2faiTQUpsjY2RiF", - /// "111BuZ6b86gm7XhxjvTakhRvxSMjXp2GqgifkNUmDK" - /// ] - /// } - /// ], /// "type": "object", + /// "required": [ + /// "tree" + /// ], /// "properties": { - /// "addresses": { - /// "type": [ - /// "array", - /// "null" - /// ], - /// "items": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// } + /// "addressQueue": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/QueueRequest" + /// } + /// ] + /// } + /// ] /// }, - /// "hashes": { - /// "type": [ - /// "array", - /// "null" - /// ], - /// "items": { - /// "$ref": "#/components/schemas/Hash" - /// } + /// "inputQueue": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/QueueRequest" + /// } + /// ] + /// } + /// ] + /// }, + /// "outputQueue": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/QueueRequest" + /// } + /// ] + /// } + /// ] + /// }, + /// "tree": { + /// "$ref": "#/components/schemas/Hash" /// } /// }, /// "additionalProperties": false @@ -23217,17 +23425,17 @@ Server auto-detects account type (account, token, mint) based on program owner a /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetMultipleCompressedAccountsV2Body { + pub struct PostGetQueueElementsBody { ///An ID to identify the request. - pub id: PostGetMultipleCompressedAccountsV2BodyId, + pub id: PostGetQueueElementsBodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetMultipleCompressedAccountsV2BodyJsonrpc, + pub jsonrpc: PostGetQueueElementsBodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetMultipleCompressedAccountsV2BodyMethod, - pub params: PostGetMultipleCompressedAccountsV2BodyParams, + pub method: PostGetQueueElementsBodyMethod, + pub params: PostGetQueueElementsBodyParams, } - impl PostGetMultipleCompressedAccountsV2Body { - pub fn builder() -> builder::PostGetMultipleCompressedAccountsV2Body { + impl PostGetQueueElementsBody { + pub fn builder() -> builder::PostGetQueueElementsBody { Default::default() } } @@ -23257,18 +23465,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleCompressedAccountsV2BodyId { + pub enum PostGetQueueElementsBodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetMultipleCompressedAccountsV2BodyId { + impl ::std::fmt::Display for PostGetQueueElementsBodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetMultipleCompressedAccountsV2BodyId { + impl ::std::str::FromStr for PostGetQueueElementsBodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -23279,7 +23487,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> for PostGetMultipleCompressedAccountsV2BodyId { + impl ::std::convert::TryFrom<&str> for PostGetQueueElementsBodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -23287,8 +23495,7 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleCompressedAccountsV2BodyId { + impl ::std::convert::TryFrom<&::std::string::String> for PostGetQueueElementsBodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -23296,8 +23503,7 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleCompressedAccountsV2BodyId { + impl ::std::convert::TryFrom<::std::string::String> for PostGetQueueElementsBodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -23331,18 +23537,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleCompressedAccountsV2BodyJsonrpc { + pub enum PostGetQueueElementsBodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetMultipleCompressedAccountsV2BodyJsonrpc { + impl ::std::fmt::Display for PostGetQueueElementsBodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetMultipleCompressedAccountsV2BodyJsonrpc { + impl ::std::str::FromStr for PostGetQueueElementsBodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -23353,8 +23559,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> - for PostGetMultipleCompressedAccountsV2BodyJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetQueueElementsBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -23363,7 +23568,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleCompressedAccountsV2BodyJsonrpc { + for PostGetQueueElementsBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -23372,7 +23577,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleCompressedAccountsV2BodyJsonrpc { + for PostGetQueueElementsBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -23389,7 +23594,7 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getMultipleCompressedAccountsV2" + /// "getQueueElements" /// ] ///} /// ``` @@ -23406,34 +23611,29 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleCompressedAccountsV2BodyMethod { - #[serde(rename = "getMultipleCompressedAccountsV2")] - GetMultipleCompressedAccountsV2, + pub enum PostGetQueueElementsBodyMethod { + #[serde(rename = "getQueueElements")] + GetQueueElements, } - impl ::std::fmt::Display for PostGetMultipleCompressedAccountsV2BodyMethod { + impl ::std::fmt::Display for PostGetQueueElementsBodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetMultipleCompressedAccountsV2 => { - f.write_str("getMultipleCompressedAccountsV2") - } + Self::GetQueueElements => f.write_str("getQueueElements"), } } } - impl ::std::str::FromStr for PostGetMultipleCompressedAccountsV2BodyMethod { + impl ::std::str::FromStr for PostGetQueueElementsBodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getMultipleCompressedAccountsV2" => { - Ok(Self::GetMultipleCompressedAccountsV2) - } + "getQueueElements" => Ok(Self::GetQueueElements), _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> - for PostGetMultipleCompressedAccountsV2BodyMethod { + impl ::std::convert::TryFrom<&str> for PostGetQueueElementsBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -23442,7 +23642,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleCompressedAccountsV2BodyMethod { + for PostGetQueueElementsBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -23451,7 +23651,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleCompressedAccountsV2BodyMethod { + for PostGetQueueElementsBodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -23459,48 +23659,61 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - ///Request for compressed account data + ///`PostGetQueueElementsBodyParams` /// ///
JSON schema /// /// ```json ///{ - /// "description": "Request for compressed account data", - /// "default": { - /// "addresses": null, - /// "hashes": [ - /// "1119DWteoLSdjvrT6g6L8C2PfDD2faiTQUpsjY2RiF", - /// "111BuZ6b86gm7XhxjvTakhRvxSMjXp2GqgifkNUmDK" - /// ] - /// }, - /// "examples": [ - /// { - /// "addresses": null, - /// "hashes": [ - /// "1119DWteoLSdjvrT6g6L8C2PfDD2faiTQUpsjY2RiF", - /// "111BuZ6b86gm7XhxjvTakhRvxSMjXp2GqgifkNUmDK" - /// ] - /// } - /// ], /// "type": "object", + /// "required": [ + /// "tree" + /// ], /// "properties": { - /// "addresses": { - /// "type": [ - /// "array", - /// "null" - /// ], - /// "items": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// } + /// "addressQueue": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/QueueRequest" + /// } + /// ] + /// } + /// ] /// }, - /// "hashes": { - /// "type": [ - /// "array", - /// "null" - /// ], - /// "items": { - /// "$ref": "#/components/schemas/Hash" - /// } + /// "inputQueue": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/QueueRequest" + /// } + /// ] + /// } + /// ] + /// }, + /// "outputQueue": { + /// "oneOf": [ + /// { + /// "type": "null" + /// }, + /// { + /// "allOf": [ + /// { + /// "$ref": "#/components/schemas/QueueRequest" + /// } + /// ] + /// } + /// ] + /// }, + /// "tree": { + /// "$ref": "#/components/schemas/Hash" /// } /// }, /// "additionalProperties": false @@ -23509,31 +23722,33 @@ Server auto-detects account type (account, token, mint) based on program owner a ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetMultipleCompressedAccountsV2BodyParams { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub addresses: ::std::option::Option<::std::vec::Vec>, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub hashes: ::std::option::Option<::std::vec::Vec>, - } - impl ::std::default::Default for PostGetMultipleCompressedAccountsV2BodyParams { - fn default() -> Self { - PostGetMultipleCompressedAccountsV2BodyParams { - addresses: ::std::option::Option::None, - hashes: ::std::option::Option::Some( - vec![ - Hash("1119DWteoLSdjvrT6g6L8C2PfDD2faiTQUpsjY2RiF".to_string()), - Hash("111BuZ6b86gm7XhxjvTakhRvxSMjXp2GqgifkNUmDK".to_string()) - ], - ), - } - } + pub struct PostGetQueueElementsBodyParams { + #[serde( + rename = "addressQueue", + default, + skip_serializing_if = "::std::option::Option::is_none" + )] + pub address_queue: ::std::option::Option, + #[serde( + rename = "inputQueue", + default, + skip_serializing_if = "::std::option::Option::is_none" + )] + pub input_queue: ::std::option::Option, + #[serde( + rename = "outputQueue", + default, + skip_serializing_if = "::std::option::Option::is_none" + )] + pub output_queue: ::std::option::Option, + pub tree: Hash, } - impl PostGetMultipleCompressedAccountsV2BodyParams { - pub fn builder() -> builder::PostGetMultipleCompressedAccountsV2BodyParams { + impl PostGetQueueElementsBodyParams { + pub fn builder() -> builder::PostGetQueueElementsBodyParams { Default::default() } } - ///`PostGetMultipleCompressedAccountsV2Response` + ///`PostGetQueueElementsResponse` /// ///
JSON schema /// @@ -23573,15 +23788,17 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "result": { /// "type": "object", /// "required": [ - /// "context", - /// "value" + /// "context" /// ], /// "properties": { + /// "addressQueue": { + /// "$ref": "#/components/schemas/AddressQueueData" + /// }, /// "context": { /// "$ref": "#/components/schemas/Context" /// }, - /// "value": { - /// "$ref": "#/components/schemas/AccountListV2" + /// "stateQueue": { + /// "$ref": "#/components/schemas/StateQueueData" /// } /// }, /// "additionalProperties": false @@ -23591,26 +23808,22 @@ Server auto-detects account type (account, token, mint) based on program owner a /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetMultipleCompressedAccountsV2Response { + pub struct PostGetQueueElementsResponse { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option< - PostGetMultipleCompressedAccountsV2ResponseError, - >, + pub error: ::std::option::Option, ///An ID to identify the response. - pub id: PostGetMultipleCompressedAccountsV2ResponseId, + pub id: PostGetQueueElementsResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetMultipleCompressedAccountsV2ResponseJsonrpc, + pub jsonrpc: PostGetQueueElementsResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub result: ::std::option::Option< - PostGetMultipleCompressedAccountsV2ResponseResult, - >, + pub result: ::std::option::Option, } - impl PostGetMultipleCompressedAccountsV2Response { - pub fn builder() -> builder::PostGetMultipleCompressedAccountsV2Response { + impl PostGetQueueElementsResponse { + pub fn builder() -> builder::PostGetQueueElementsResponse { Default::default() } } - ///`PostGetMultipleCompressedAccountsV2ResponseError` + ///`PostGetQueueElementsResponseError` /// ///
JSON schema /// @@ -23629,13 +23842,13 @@ Server auto-detects account type (account, token, mint) based on program owner a /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetMultipleCompressedAccountsV2ResponseError { + pub struct PostGetQueueElementsResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default for PostGetMultipleCompressedAccountsV2ResponseError { + impl ::std::default::Default for PostGetQueueElementsResponseError { fn default() -> Self { Self { code: Default::default(), @@ -23643,8 +23856,8 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl PostGetMultipleCompressedAccountsV2ResponseError { - pub fn builder() -> builder::PostGetMultipleCompressedAccountsV2ResponseError { + impl PostGetQueueElementsResponseError { + pub fn builder() -> builder::PostGetQueueElementsResponseError { Default::default() } } @@ -23674,18 +23887,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleCompressedAccountsV2ResponseId { + pub enum PostGetQueueElementsResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetMultipleCompressedAccountsV2ResponseId { + impl ::std::fmt::Display for PostGetQueueElementsResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetMultipleCompressedAccountsV2ResponseId { + impl ::std::str::FromStr for PostGetQueueElementsResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -23696,8 +23909,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> - for PostGetMultipleCompressedAccountsV2ResponseId { + impl ::std::convert::TryFrom<&str> for PostGetQueueElementsResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -23706,7 +23918,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleCompressedAccountsV2ResponseId { + for PostGetQueueElementsResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -23715,7 +23927,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleCompressedAccountsV2ResponseId { + for PostGetQueueElementsResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -23749,18 +23961,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleCompressedAccountsV2ResponseJsonrpc { + pub enum PostGetQueueElementsResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetMultipleCompressedAccountsV2ResponseJsonrpc { + impl ::std::fmt::Display for PostGetQueueElementsResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetMultipleCompressedAccountsV2ResponseJsonrpc { + impl ::std::str::FromStr for PostGetQueueElementsResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -23771,8 +23983,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> - for PostGetMultipleCompressedAccountsV2ResponseJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetQueueElementsResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -23781,7 +23992,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleCompressedAccountsV2ResponseJsonrpc { + for PostGetQueueElementsResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -23790,7 +24001,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleCompressedAccountsV2ResponseJsonrpc { + for PostGetQueueElementsResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -23798,7 +24009,7 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - ///`PostGetMultipleCompressedAccountsV2ResponseResult` + ///`PostGetQueueElementsResponseResult` /// ///
JSON schema /// @@ -23806,15 +24017,17 @@ Server auto-detects account type (account, token, mint) based on program owner a ///{ /// "type": "object", /// "required": [ - /// "context", - /// "value" + /// "context" /// ], /// "properties": { + /// "addressQueue": { + /// "$ref": "#/components/schemas/AddressQueueData" + /// }, /// "context": { /// "$ref": "#/components/schemas/Context" /// }, - /// "value": { - /// "$ref": "#/components/schemas/AccountListV2" + /// "stateQueue": { + /// "$ref": "#/components/schemas/StateQueueData" /// } /// }, /// "additionalProperties": false @@ -23823,16 +24036,27 @@ Server auto-detects account type (account, token, mint) based on program owner a ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetMultipleCompressedAccountsV2ResponseResult { + pub struct PostGetQueueElementsResponseResult { + #[serde( + rename = "addressQueue", + default, + skip_serializing_if = "::std::option::Option::is_none" + )] + pub address_queue: ::std::option::Option, pub context: Context, - pub value: AccountListV2, + #[serde( + rename = "stateQueue", + default, + skip_serializing_if = "::std::option::Option::is_none" + )] + pub state_queue: ::std::option::Option, } - impl PostGetMultipleCompressedAccountsV2ResponseResult { - pub fn builder() -> builder::PostGetMultipleCompressedAccountsV2ResponseResult { + impl PostGetQueueElementsResponseResult { + pub fn builder() -> builder::PostGetQueueElementsResponseResult { Default::default() } } - ///`PostGetMultipleNewAddressProofsBody` + ///`PostGetQueueInfoBody` /// ///
JSON schema /// @@ -23864,31 +24088,40 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getMultipleNewAddressProofs" + /// "getQueueInfo" /// ] /// }, /// "params": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// } + /// "type": "object", + /// "properties": { + /// "trees": { + /// "type": [ + /// "array", + /// "null" + /// ], + /// "items": { + /// "type": "string" + /// } + /// } + /// }, + /// "additionalProperties": false /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetMultipleNewAddressProofsBody { + pub struct PostGetQueueInfoBody { ///An ID to identify the request. - pub id: PostGetMultipleNewAddressProofsBodyId, + pub id: PostGetQueueInfoBodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetMultipleNewAddressProofsBodyJsonrpc, + pub jsonrpc: PostGetQueueInfoBodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetMultipleNewAddressProofsBodyMethod, - pub params: ::std::vec::Vec, + pub method: PostGetQueueInfoBodyMethod, + pub params: PostGetQueueInfoBodyParams, } - impl PostGetMultipleNewAddressProofsBody { - pub fn builder() -> builder::PostGetMultipleNewAddressProofsBody { + impl PostGetQueueInfoBody { + pub fn builder() -> builder::PostGetQueueInfoBody { Default::default() } } @@ -23918,18 +24151,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleNewAddressProofsBodyId { + pub enum PostGetQueueInfoBodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetMultipleNewAddressProofsBodyId { + impl ::std::fmt::Display for PostGetQueueInfoBodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetMultipleNewAddressProofsBodyId { + impl ::std::str::FromStr for PostGetQueueInfoBodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -23940,7 +24173,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> for PostGetMultipleNewAddressProofsBodyId { + impl ::std::convert::TryFrom<&str> for PostGetQueueInfoBodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -23948,8 +24181,7 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleNewAddressProofsBodyId { + impl ::std::convert::TryFrom<&::std::string::String> for PostGetQueueInfoBodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -23957,8 +24189,7 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleNewAddressProofsBodyId { + impl ::std::convert::TryFrom<::std::string::String> for PostGetQueueInfoBodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -23992,18 +24223,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleNewAddressProofsBodyJsonrpc { + pub enum PostGetQueueInfoBodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetMultipleNewAddressProofsBodyJsonrpc { + impl ::std::fmt::Display for PostGetQueueInfoBodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetMultipleNewAddressProofsBodyJsonrpc { + impl ::std::str::FromStr for PostGetQueueInfoBodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -24014,7 +24245,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> for PostGetMultipleNewAddressProofsBodyJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetQueueInfoBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -24023,7 +24254,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleNewAddressProofsBodyJsonrpc { + for PostGetQueueInfoBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -24031,8 +24262,7 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleNewAddressProofsBodyJsonrpc { + impl ::std::convert::TryFrom<::std::string::String> for PostGetQueueInfoBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -24049,7 +24279,7 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getMultipleNewAddressProofs" + /// "getQueueInfo" /// ] ///} /// ``` @@ -24066,31 +24296,29 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleNewAddressProofsBodyMethod { - #[serde(rename = "getMultipleNewAddressProofs")] - GetMultipleNewAddressProofs, + pub enum PostGetQueueInfoBodyMethod { + #[serde(rename = "getQueueInfo")] + GetQueueInfo, } - impl ::std::fmt::Display for PostGetMultipleNewAddressProofsBodyMethod { + impl ::std::fmt::Display for PostGetQueueInfoBodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetMultipleNewAddressProofs => { - f.write_str("getMultipleNewAddressProofs") - } + Self::GetQueueInfo => f.write_str("getQueueInfo"), } } } - impl ::std::str::FromStr for PostGetMultipleNewAddressProofsBodyMethod { + impl ::std::str::FromStr for PostGetQueueInfoBodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getMultipleNewAddressProofs" => Ok(Self::GetMultipleNewAddressProofs), + "getQueueInfo" => Ok(Self::GetQueueInfo), _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> for PostGetMultipleNewAddressProofsBodyMethod { + impl ::std::convert::TryFrom<&str> for PostGetQueueInfoBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -24098,8 +24326,7 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleNewAddressProofsBodyMethod { + impl ::std::convert::TryFrom<&::std::string::String> for PostGetQueueInfoBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -24107,8 +24334,7 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleNewAddressProofsBodyMethod { + impl ::std::convert::TryFrom<::std::string::String> for PostGetQueueInfoBodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -24116,7 +24342,45 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - ///`PostGetMultipleNewAddressProofsResponse` + ///`PostGetQueueInfoBodyParams` + /// + ///
JSON schema + /// + /// ```json + ///{ + /// "type": "object", + /// "properties": { + /// "trees": { + /// "type": [ + /// "array", + /// "null" + /// ], + /// "items": { + /// "type": "string" + /// } + /// } + /// }, + /// "additionalProperties": false + ///} + /// ``` + ///
+ #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + #[serde(deny_unknown_fields)] + pub struct PostGetQueueInfoBodyParams { + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub trees: ::std::option::Option<::std::vec::Vec<::std::string::String>>, + } + impl ::std::default::Default for PostGetQueueInfoBodyParams { + fn default() -> Self { + Self { trees: Default::default() } + } + } + impl PostGetQueueInfoBodyParams { + pub fn builder() -> builder::PostGetQueueInfoBodyParams { + Default::default() + } + } + ///`PostGetQueueInfoResponse` /// ///
JSON schema /// @@ -24156,18 +24420,20 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "result": { /// "type": "object", /// "required": [ - /// "context", - /// "value" + /// "queues", + /// "slot" /// ], /// "properties": { - /// "context": { - /// "$ref": "#/components/schemas/Context" - /// }, - /// "value": { + /// "queues": { /// "type": "array", /// "items": { - /// "$ref": "#/components/schemas/MerkleContextWithNewAddressProof" + /// "$ref": "#/components/schemas/QueueInfo" /// } + /// }, + /// "slot": { + /// "type": "integer", + /// "format": "uint64", + /// "minimum": 0.0 /// } /// } /// } @@ -24176,22 +24442,22 @@ Server auto-detects account type (account, token, mint) based on program owner a /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetMultipleNewAddressProofsResponse { + pub struct PostGetQueueInfoResponse { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option, + pub error: ::std::option::Option, ///An ID to identify the response. - pub id: PostGetMultipleNewAddressProofsResponseId, + pub id: PostGetQueueInfoResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetMultipleNewAddressProofsResponseJsonrpc, + pub jsonrpc: PostGetQueueInfoResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub result: ::std::option::Option, + pub result: ::std::option::Option, } - impl PostGetMultipleNewAddressProofsResponse { - pub fn builder() -> builder::PostGetMultipleNewAddressProofsResponse { + impl PostGetQueueInfoResponse { + pub fn builder() -> builder::PostGetQueueInfoResponse { Default::default() } } - ///`PostGetMultipleNewAddressProofsResponseError` + ///`PostGetQueueInfoResponseError` /// ///
JSON schema /// @@ -24210,13 +24476,13 @@ Server auto-detects account type (account, token, mint) based on program owner a /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetMultipleNewAddressProofsResponseError { + pub struct PostGetQueueInfoResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default for PostGetMultipleNewAddressProofsResponseError { + impl ::std::default::Default for PostGetQueueInfoResponseError { fn default() -> Self { Self { code: Default::default(), @@ -24224,8 +24490,8 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl PostGetMultipleNewAddressProofsResponseError { - pub fn builder() -> builder::PostGetMultipleNewAddressProofsResponseError { + impl PostGetQueueInfoResponseError { + pub fn builder() -> builder::PostGetQueueInfoResponseError { Default::default() } } @@ -24255,18 +24521,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleNewAddressProofsResponseId { + pub enum PostGetQueueInfoResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetMultipleNewAddressProofsResponseId { + impl ::std::fmt::Display for PostGetQueueInfoResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetMultipleNewAddressProofsResponseId { + impl ::std::str::FromStr for PostGetQueueInfoResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -24277,7 +24543,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> for PostGetMultipleNewAddressProofsResponseId { + impl ::std::convert::TryFrom<&str> for PostGetQueueInfoResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -24285,8 +24551,7 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleNewAddressProofsResponseId { + impl ::std::convert::TryFrom<&::std::string::String> for PostGetQueueInfoResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -24294,8 +24559,7 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleNewAddressProofsResponseId { + impl ::std::convert::TryFrom<::std::string::String> for PostGetQueueInfoResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -24329,18 +24593,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleNewAddressProofsResponseJsonrpc { + pub enum PostGetQueueInfoResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetMultipleNewAddressProofsResponseJsonrpc { + impl ::std::fmt::Display for PostGetQueueInfoResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetMultipleNewAddressProofsResponseJsonrpc { + impl ::std::str::FromStr for PostGetQueueInfoResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -24351,8 +24615,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> - for PostGetMultipleNewAddressProofsResponseJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetQueueInfoResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -24361,7 +24624,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleNewAddressProofsResponseJsonrpc { + for PostGetQueueInfoResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -24370,7 +24633,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleNewAddressProofsResponseJsonrpc { + for PostGetQueueInfoResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -24378,7 +24641,7 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - ///`PostGetMultipleNewAddressProofsResponseResult` + ///`PostGetQueueInfoResponseResult` /// ///
JSON schema /// @@ -24386,34 +24649,36 @@ Server auto-detects account type (account, token, mint) based on program owner a ///{ /// "type": "object", /// "required": [ - /// "context", - /// "value" + /// "queues", + /// "slot" /// ], /// "properties": { - /// "context": { - /// "$ref": "#/components/schemas/Context" - /// }, - /// "value": { + /// "queues": { /// "type": "array", /// "items": { - /// "$ref": "#/components/schemas/MerkleContextWithNewAddressProof" + /// "$ref": "#/components/schemas/QueueInfo" /// } + /// }, + /// "slot": { + /// "type": "integer", + /// "format": "uint64", + /// "minimum": 0.0 /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetMultipleNewAddressProofsResponseResult { - pub context: Context, - pub value: ::std::vec::Vec, + pub struct PostGetQueueInfoResponseResult { + pub queues: ::std::vec::Vec, + pub slot: u64, } - impl PostGetMultipleNewAddressProofsResponseResult { - pub fn builder() -> builder::PostGetMultipleNewAddressProofsResponseResult { + impl PostGetQueueInfoResponseResult { + pub fn builder() -> builder::PostGetQueueInfoResponseResult { Default::default() } } - ///`PostGetMultipleNewAddressProofsV2Body` + ///`PostGetTransactionWithCompressionInfoBody` /// ///
JSON schema /// @@ -24445,31 +24710,37 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getMultipleNewAddressProofsV2" + /// "getTransactionWithCompressionInfo" /// ] /// }, /// "params": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/AddressWithTree" - /// } + /// "type": "object", + /// "required": [ + /// "signature" + /// ], + /// "properties": { + /// "signature": { + /// "$ref": "#/components/schemas/SerializableSignature" + /// } + /// }, + /// "additionalProperties": false /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetMultipleNewAddressProofsV2Body { + pub struct PostGetTransactionWithCompressionInfoBody { ///An ID to identify the request. - pub id: PostGetMultipleNewAddressProofsV2BodyId, + pub id: PostGetTransactionWithCompressionInfoBodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetMultipleNewAddressProofsV2BodyJsonrpc, + pub jsonrpc: PostGetTransactionWithCompressionInfoBodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetMultipleNewAddressProofsV2BodyMethod, - pub params: ::std::vec::Vec, + pub method: PostGetTransactionWithCompressionInfoBodyMethod, + pub params: PostGetTransactionWithCompressionInfoBodyParams, } - impl PostGetMultipleNewAddressProofsV2Body { - pub fn builder() -> builder::PostGetMultipleNewAddressProofsV2Body { + impl PostGetTransactionWithCompressionInfoBody { + pub fn builder() -> builder::PostGetTransactionWithCompressionInfoBody { Default::default() } } @@ -24499,18 +24770,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleNewAddressProofsV2BodyId { + pub enum PostGetTransactionWithCompressionInfoBodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetMultipleNewAddressProofsV2BodyId { + impl ::std::fmt::Display for PostGetTransactionWithCompressionInfoBodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetMultipleNewAddressProofsV2BodyId { + impl ::std::str::FromStr for PostGetTransactionWithCompressionInfoBodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -24521,7 +24792,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> for PostGetMultipleNewAddressProofsV2BodyId { + impl ::std::convert::TryFrom<&str> for PostGetTransactionWithCompressionInfoBodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -24530,7 +24801,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleNewAddressProofsV2BodyId { + for PostGetTransactionWithCompressionInfoBodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -24539,7 +24810,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleNewAddressProofsV2BodyId { + for PostGetTransactionWithCompressionInfoBodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -24573,18 +24844,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleNewAddressProofsV2BodyJsonrpc { + pub enum PostGetTransactionWithCompressionInfoBodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetMultipleNewAddressProofsV2BodyJsonrpc { + impl ::std::fmt::Display for PostGetTransactionWithCompressionInfoBodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetMultipleNewAddressProofsV2BodyJsonrpc { + impl ::std::str::FromStr for PostGetTransactionWithCompressionInfoBodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -24595,7 +24866,8 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> for PostGetMultipleNewAddressProofsV2BodyJsonrpc { + impl ::std::convert::TryFrom<&str> + for PostGetTransactionWithCompressionInfoBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -24604,7 +24876,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleNewAddressProofsV2BodyJsonrpc { + for PostGetTransactionWithCompressionInfoBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -24613,7 +24885,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleNewAddressProofsV2BodyJsonrpc { + for PostGetTransactionWithCompressionInfoBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -24630,7 +24902,7 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getMultipleNewAddressProofsV2" + /// "getTransactionWithCompressionInfo" /// ] ///} /// ``` @@ -24647,33 +24919,34 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleNewAddressProofsV2BodyMethod { - #[serde(rename = "getMultipleNewAddressProofsV2")] - GetMultipleNewAddressProofsV2, + pub enum PostGetTransactionWithCompressionInfoBodyMethod { + #[serde(rename = "getTransactionWithCompressionInfo")] + GetTransactionWithCompressionInfo, } - impl ::std::fmt::Display for PostGetMultipleNewAddressProofsV2BodyMethod { + impl ::std::fmt::Display for PostGetTransactionWithCompressionInfoBodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetMultipleNewAddressProofsV2 => { - f.write_str("getMultipleNewAddressProofsV2") + Self::GetTransactionWithCompressionInfo => { + f.write_str("getTransactionWithCompressionInfo") } } } } - impl ::std::str::FromStr for PostGetMultipleNewAddressProofsV2BodyMethod { + impl ::std::str::FromStr for PostGetTransactionWithCompressionInfoBodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getMultipleNewAddressProofsV2" => { - Ok(Self::GetMultipleNewAddressProofsV2) + "getTransactionWithCompressionInfo" => { + Ok(Self::GetTransactionWithCompressionInfo) } _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> for PostGetMultipleNewAddressProofsV2BodyMethod { + impl ::std::convert::TryFrom<&str> + for PostGetTransactionWithCompressionInfoBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -24682,7 +24955,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleNewAddressProofsV2BodyMethod { + for PostGetTransactionWithCompressionInfoBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -24691,7 +24964,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleNewAddressProofsV2BodyMethod { + for PostGetTransactionWithCompressionInfoBodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -24699,7 +24972,36 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - ///`PostGetMultipleNewAddressProofsV2Response` + ///`PostGetTransactionWithCompressionInfoBodyParams` + /// + ///
JSON schema + /// + /// ```json + ///{ + /// "type": "object", + /// "required": [ + /// "signature" + /// ], + /// "properties": { + /// "signature": { + /// "$ref": "#/components/schemas/SerializableSignature" + /// } + /// }, + /// "additionalProperties": false + ///} + /// ``` + ///
+ #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + #[serde(deny_unknown_fields)] + pub struct PostGetTransactionWithCompressionInfoBodyParams { + pub signature: SerializableSignature, + } + impl PostGetTransactionWithCompressionInfoBodyParams { + pub fn builder() -> builder::PostGetTransactionWithCompressionInfoBodyParams { + Default::default() + } + } + ///`PostGetTransactionWithCompressionInfoResponse` /// ///
JSON schema /// @@ -24737,20 +25039,34 @@ Server auto-detects account type (account, token, mint) based on program owner a /// ] /// }, /// "result": { + /// "description": "A Solana transaction with additional compression information", /// "type": "object", - /// "required": [ - /// "context", - /// "value" - /// ], /// "properties": { - /// "context": { - /// "$ref": "#/components/schemas/Context" + /// "compression_info": { + /// "type": "object", + /// "required": [ + /// "closedAccounts", + /// "openedAccounts" + /// ], + /// "properties": { + /// "closedAccounts": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/AccountWithOptionalTokenData" + /// } + /// }, + /// "openedAccounts": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/AccountWithOptionalTokenData" + /// } + /// } + /// }, + /// "additionalProperties": false /// }, - /// "value": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/MerkleContextWithNewAddressProof" - /// } + /// "transaction": { + /// "description": "An encoded confirmed transaction with status meta", + /// "type": "object" /// } /// } /// } @@ -24759,24 +25075,26 @@ Server auto-detects account type (account, token, mint) based on program owner a /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetMultipleNewAddressProofsV2Response { + pub struct PostGetTransactionWithCompressionInfoResponse { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option, + pub error: ::std::option::Option< + PostGetTransactionWithCompressionInfoResponseError, + >, ///An ID to identify the response. - pub id: PostGetMultipleNewAddressProofsV2ResponseId, + pub id: PostGetTransactionWithCompressionInfoResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetMultipleNewAddressProofsV2ResponseJsonrpc, + pub jsonrpc: PostGetTransactionWithCompressionInfoResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub result: ::std::option::Option< - PostGetMultipleNewAddressProofsV2ResponseResult, + PostGetTransactionWithCompressionInfoResponseResult, >, } - impl PostGetMultipleNewAddressProofsV2Response { - pub fn builder() -> builder::PostGetMultipleNewAddressProofsV2Response { + impl PostGetTransactionWithCompressionInfoResponse { + pub fn builder() -> builder::PostGetTransactionWithCompressionInfoResponse { Default::default() } } - ///`PostGetMultipleNewAddressProofsV2ResponseError` + ///`PostGetTransactionWithCompressionInfoResponseError` /// ///
JSON schema /// @@ -24795,13 +25113,13 @@ Server auto-detects account type (account, token, mint) based on program owner a /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetMultipleNewAddressProofsV2ResponseError { + pub struct PostGetTransactionWithCompressionInfoResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default for PostGetMultipleNewAddressProofsV2ResponseError { + impl ::std::default::Default for PostGetTransactionWithCompressionInfoResponseError { fn default() -> Self { Self { code: Default::default(), @@ -24809,8 +25127,8 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl PostGetMultipleNewAddressProofsV2ResponseError { - pub fn builder() -> builder::PostGetMultipleNewAddressProofsV2ResponseError { + impl PostGetTransactionWithCompressionInfoResponseError { + pub fn builder() -> builder::PostGetTransactionWithCompressionInfoResponseError { Default::default() } } @@ -24840,18 +25158,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleNewAddressProofsV2ResponseId { + pub enum PostGetTransactionWithCompressionInfoResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetMultipleNewAddressProofsV2ResponseId { + impl ::std::fmt::Display for PostGetTransactionWithCompressionInfoResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetMultipleNewAddressProofsV2ResponseId { + impl ::std::str::FromStr for PostGetTransactionWithCompressionInfoResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -24862,7 +25180,8 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> for PostGetMultipleNewAddressProofsV2ResponseId { + impl ::std::convert::TryFrom<&str> + for PostGetTransactionWithCompressionInfoResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -24871,7 +25190,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleNewAddressProofsV2ResponseId { + for PostGetTransactionWithCompressionInfoResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -24880,7 +25199,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleNewAddressProofsV2ResponseId { + for PostGetTransactionWithCompressionInfoResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -24914,18 +25233,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetMultipleNewAddressProofsV2ResponseJsonrpc { + pub enum PostGetTransactionWithCompressionInfoResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetMultipleNewAddressProofsV2ResponseJsonrpc { + impl ::std::fmt::Display for PostGetTransactionWithCompressionInfoResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetMultipleNewAddressProofsV2ResponseJsonrpc { + impl ::std::str::FromStr for PostGetTransactionWithCompressionInfoResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -24937,7 +25256,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&str> - for PostGetMultipleNewAddressProofsV2ResponseJsonrpc { + for PostGetTransactionWithCompressionInfoResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -24946,7 +25265,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetMultipleNewAddressProofsV2ResponseJsonrpc { + for PostGetTransactionWithCompressionInfoResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -24955,7 +25274,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetMultipleNewAddressProofsV2ResponseJsonrpc { + for PostGetTransactionWithCompressionInfoResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -24963,7 +25282,70 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - ///`PostGetMultipleNewAddressProofsV2ResponseResult` + ///A Solana transaction with additional compression information + /// + ///
JSON schema + /// + /// ```json + ///{ + /// "description": "A Solana transaction with additional compression information", + /// "type": "object", + /// "properties": { + /// "compression_info": { + /// "type": "object", + /// "required": [ + /// "closedAccounts", + /// "openedAccounts" + /// ], + /// "properties": { + /// "closedAccounts": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/AccountWithOptionalTokenData" + /// } + /// }, + /// "openedAccounts": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/AccountWithOptionalTokenData" + /// } + /// } + /// }, + /// "additionalProperties": false + /// }, + /// "transaction": { + /// "description": "An encoded confirmed transaction with status meta", + /// "type": "object" + /// } + /// } + ///} + /// ``` + ///
+ #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + pub struct PostGetTransactionWithCompressionInfoResponseResult { + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub compression_info: ::std::option::Option< + PostGetTransactionWithCompressionInfoResponseResultCompressionInfo, + >, + ///An encoded confirmed transaction with status meta + #[serde(default, skip_serializing_if = "::serde_json::Map::is_empty")] + pub transaction: ::serde_json::Map<::std::string::String, ::serde_json::Value>, + } + impl ::std::default::Default + for PostGetTransactionWithCompressionInfoResponseResult { + fn default() -> Self { + Self { + compression_info: Default::default(), + transaction: Default::default(), + } + } + } + impl PostGetTransactionWithCompressionInfoResponseResult { + pub fn builder() -> builder::PostGetTransactionWithCompressionInfoResponseResult { + Default::default() + } + } + ///`PostGetTransactionWithCompressionInfoResponseResultCompressionInfo` /// ///
JSON schema /// @@ -24971,34 +25353,41 @@ Server auto-detects account type (account, token, mint) based on program owner a ///{ /// "type": "object", /// "required": [ - /// "context", - /// "value" + /// "closedAccounts", + /// "openedAccounts" /// ], /// "properties": { - /// "context": { - /// "$ref": "#/components/schemas/Context" + /// "closedAccounts": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/AccountWithOptionalTokenData" + /// } /// }, - /// "value": { + /// "openedAccounts": { /// "type": "array", /// "items": { - /// "$ref": "#/components/schemas/MerkleContextWithNewAddressProof" + /// "$ref": "#/components/schemas/AccountWithOptionalTokenData" /// } /// } - /// } + /// }, + /// "additionalProperties": false ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetMultipleNewAddressProofsV2ResponseResult { - pub context: Context, - pub value: ::std::vec::Vec, + #[serde(deny_unknown_fields)] + pub struct PostGetTransactionWithCompressionInfoResponseResultCompressionInfo { + #[serde(rename = "closedAccounts")] + pub closed_accounts: ::std::vec::Vec, + #[serde(rename = "openedAccounts")] + pub opened_accounts: ::std::vec::Vec, } - impl PostGetMultipleNewAddressProofsV2ResponseResult { - pub fn builder() -> builder::PostGetMultipleNewAddressProofsV2ResponseResult { + impl PostGetTransactionWithCompressionInfoResponseResultCompressionInfo { + pub fn builder() -> builder::PostGetTransactionWithCompressionInfoResponseResultCompressionInfo { Default::default() } } - ///`PostGetQueueElementsBody` + ///`PostGetTransactionWithCompressionInfoV2Body` /// ///
JSON schema /// @@ -25030,59 +25419,17 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getQueueElements" + /// "getTransactionWithCompressionInfoV2" /// ] /// }, /// "params": { /// "type": "object", /// "required": [ - /// "tree" + /// "signature" /// ], /// "properties": { - /// "addressQueue": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/QueueRequest" - /// } - /// ] - /// } - /// ] - /// }, - /// "inputQueue": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/QueueRequest" - /// } - /// ] - /// } - /// ] - /// }, - /// "outputQueue": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/QueueRequest" - /// } - /// ] - /// } - /// ] - /// }, - /// "tree": { - /// "$ref": "#/components/schemas/Hash" + /// "signature": { + /// "$ref": "#/components/schemas/SerializableSignature" /// } /// }, /// "additionalProperties": false @@ -25092,17 +25439,17 @@ Server auto-detects account type (account, token, mint) based on program owner a /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetQueueElementsBody { + pub struct PostGetTransactionWithCompressionInfoV2Body { ///An ID to identify the request. - pub id: PostGetQueueElementsBodyId, + pub id: PostGetTransactionWithCompressionInfoV2BodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetQueueElementsBodyJsonrpc, + pub jsonrpc: PostGetTransactionWithCompressionInfoV2BodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetQueueElementsBodyMethod, - pub params: PostGetQueueElementsBodyParams, + pub method: PostGetTransactionWithCompressionInfoV2BodyMethod, + pub params: PostGetTransactionWithCompressionInfoV2BodyParams, } - impl PostGetQueueElementsBody { - pub fn builder() -> builder::PostGetQueueElementsBody { + impl PostGetTransactionWithCompressionInfoV2Body { + pub fn builder() -> builder::PostGetTransactionWithCompressionInfoV2Body { Default::default() } } @@ -25132,18 +25479,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetQueueElementsBodyId { + pub enum PostGetTransactionWithCompressionInfoV2BodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetQueueElementsBodyId { + impl ::std::fmt::Display for PostGetTransactionWithCompressionInfoV2BodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetQueueElementsBodyId { + impl ::std::str::FromStr for PostGetTransactionWithCompressionInfoV2BodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -25154,7 +25501,8 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> for PostGetQueueElementsBodyId { + impl ::std::convert::TryFrom<&str> + for PostGetTransactionWithCompressionInfoV2BodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -25162,7 +25510,8 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - impl ::std::convert::TryFrom<&::std::string::String> for PostGetQueueElementsBodyId { + impl ::std::convert::TryFrom<&::std::string::String> + for PostGetTransactionWithCompressionInfoV2BodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -25170,7 +25519,8 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - impl ::std::convert::TryFrom<::std::string::String> for PostGetQueueElementsBodyId { + impl ::std::convert::TryFrom<::std::string::String> + for PostGetTransactionWithCompressionInfoV2BodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -25204,18 +25554,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetQueueElementsBodyJsonrpc { + pub enum PostGetTransactionWithCompressionInfoV2BodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetQueueElementsBodyJsonrpc { + impl ::std::fmt::Display for PostGetTransactionWithCompressionInfoV2BodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetQueueElementsBodyJsonrpc { + impl ::std::str::FromStr for PostGetTransactionWithCompressionInfoV2BodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -25226,7 +25576,8 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> for PostGetQueueElementsBodyJsonrpc { + impl ::std::convert::TryFrom<&str> + for PostGetTransactionWithCompressionInfoV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -25235,7 +25586,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetQueueElementsBodyJsonrpc { + for PostGetTransactionWithCompressionInfoV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -25244,7 +25595,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetQueueElementsBodyJsonrpc { + for PostGetTransactionWithCompressionInfoV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -25261,7 +25612,7 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getQueueElements" + /// "getTransactionWithCompressionInfoV2" /// ] ///} /// ``` @@ -25278,29 +25629,34 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetQueueElementsBodyMethod { - #[serde(rename = "getQueueElements")] - GetQueueElements, + pub enum PostGetTransactionWithCompressionInfoV2BodyMethod { + #[serde(rename = "getTransactionWithCompressionInfoV2")] + GetTransactionWithCompressionInfoV2, } - impl ::std::fmt::Display for PostGetQueueElementsBodyMethod { + impl ::std::fmt::Display for PostGetTransactionWithCompressionInfoV2BodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetQueueElements => f.write_str("getQueueElements"), + Self::GetTransactionWithCompressionInfoV2 => { + f.write_str("getTransactionWithCompressionInfoV2") + } } } } - impl ::std::str::FromStr for PostGetQueueElementsBodyMethod { + impl ::std::str::FromStr for PostGetTransactionWithCompressionInfoV2BodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getQueueElements" => Ok(Self::GetQueueElements), + "getTransactionWithCompressionInfoV2" => { + Ok(Self::GetTransactionWithCompressionInfoV2) + } _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> for PostGetQueueElementsBodyMethod { + impl ::std::convert::TryFrom<&str> + for PostGetTransactionWithCompressionInfoV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -25309,7 +25665,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetQueueElementsBodyMethod { + for PostGetTransactionWithCompressionInfoV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -25318,7 +25674,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetQueueElementsBodyMethod { + for PostGetTransactionWithCompressionInfoV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -25326,7 +25682,7 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - ///`PostGetQueueElementsBodyParams` + ///`PostGetTransactionWithCompressionInfoV2BodyParams` /// ///
JSON schema /// @@ -25334,53 +25690,11 @@ Server auto-detects account type (account, token, mint) based on program owner a ///{ /// "type": "object", /// "required": [ - /// "tree" + /// "signature" /// ], /// "properties": { - /// "addressQueue": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/QueueRequest" - /// } - /// ] - /// } - /// ] - /// }, - /// "inputQueue": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/QueueRequest" - /// } - /// ] - /// } - /// ] - /// }, - /// "outputQueue": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/QueueRequest" - /// } - /// ] - /// } - /// ] - /// }, - /// "tree": { - /// "$ref": "#/components/schemas/Hash" + /// "signature": { + /// "$ref": "#/components/schemas/SerializableSignature" /// } /// }, /// "additionalProperties": false @@ -25389,33 +25703,15 @@ Server auto-detects account type (account, token, mint) based on program owner a ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetQueueElementsBodyParams { - #[serde( - rename = "addressQueue", - default, - skip_serializing_if = "::std::option::Option::is_none" - )] - pub address_queue: ::std::option::Option, - #[serde( - rename = "inputQueue", - default, - skip_serializing_if = "::std::option::Option::is_none" - )] - pub input_queue: ::std::option::Option, - #[serde( - rename = "outputQueue", - default, - skip_serializing_if = "::std::option::Option::is_none" - )] - pub output_queue: ::std::option::Option, - pub tree: Hash, + pub struct PostGetTransactionWithCompressionInfoV2BodyParams { + pub signature: SerializableSignature, } - impl PostGetQueueElementsBodyParams { - pub fn builder() -> builder::PostGetQueueElementsBodyParams { + impl PostGetTransactionWithCompressionInfoV2BodyParams { + pub fn builder() -> builder::PostGetTransactionWithCompressionInfoV2BodyParams { Default::default() } } - ///`PostGetQueueElementsResponse` + ///`PostGetTransactionWithCompressionInfoV2Response` /// ///
JSON schema /// @@ -25453,44 +25749,62 @@ Server auto-detects account type (account, token, mint) based on program owner a /// ] /// }, /// "result": { + /// "description": "A Solana transaction with additional compression information", /// "type": "object", - /// "required": [ - /// "context" - /// ], /// "properties": { - /// "addressQueue": { - /// "$ref": "#/components/schemas/AddressQueueData" - /// }, - /// "context": { - /// "$ref": "#/components/schemas/Context" + /// "compression_info": { + /// "type": "object", + /// "required": [ + /// "closedAccounts", + /// "openedAccounts" + /// ], + /// "properties": { + /// "closedAccounts": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/ClosedAccountWithOptionalTokenDataV2" + /// } + /// }, + /// "openedAccounts": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/AccountWithOptionalTokenDataV2" + /// } + /// } + /// }, + /// "additionalProperties": false /// }, - /// "stateQueue": { - /// "$ref": "#/components/schemas/StateQueueData" + /// "transaction": { + /// "description": "An encoded confirmed transaction with status meta", + /// "type": "object" /// } - /// }, - /// "additionalProperties": false + /// } /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetQueueElementsResponse { + pub struct PostGetTransactionWithCompressionInfoV2Response { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option, + pub error: ::std::option::Option< + PostGetTransactionWithCompressionInfoV2ResponseError, + >, ///An ID to identify the response. - pub id: PostGetQueueElementsResponseId, + pub id: PostGetTransactionWithCompressionInfoV2ResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetQueueElementsResponseJsonrpc, + pub jsonrpc: PostGetTransactionWithCompressionInfoV2ResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub result: ::std::option::Option, + pub result: ::std::option::Option< + PostGetTransactionWithCompressionInfoV2ResponseResult, + >, } - impl PostGetQueueElementsResponse { - pub fn builder() -> builder::PostGetQueueElementsResponse { + impl PostGetTransactionWithCompressionInfoV2Response { + pub fn builder() -> builder::PostGetTransactionWithCompressionInfoV2Response { Default::default() } } - ///`PostGetQueueElementsResponseError` + ///`PostGetTransactionWithCompressionInfoV2ResponseError` /// ///
JSON schema /// @@ -25509,13 +25823,14 @@ Server auto-detects account type (account, token, mint) based on program owner a /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetQueueElementsResponseError { + pub struct PostGetTransactionWithCompressionInfoV2ResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default for PostGetQueueElementsResponseError { + impl ::std::default::Default + for PostGetTransactionWithCompressionInfoV2ResponseError { fn default() -> Self { Self { code: Default::default(), @@ -25523,8 +25838,8 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl PostGetQueueElementsResponseError { - pub fn builder() -> builder::PostGetQueueElementsResponseError { + impl PostGetTransactionWithCompressionInfoV2ResponseError { + pub fn builder() -> builder::PostGetTransactionWithCompressionInfoV2ResponseError { Default::default() } } @@ -25554,18 +25869,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetQueueElementsResponseId { + pub enum PostGetTransactionWithCompressionInfoV2ResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetQueueElementsResponseId { + impl ::std::fmt::Display for PostGetTransactionWithCompressionInfoV2ResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetQueueElementsResponseId { + impl ::std::str::FromStr for PostGetTransactionWithCompressionInfoV2ResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -25576,7 +25891,8 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> for PostGetQueueElementsResponseId { + impl ::std::convert::TryFrom<&str> + for PostGetTransactionWithCompressionInfoV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -25585,7 +25901,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetQueueElementsResponseId { + for PostGetTransactionWithCompressionInfoV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -25594,7 +25910,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetQueueElementsResponseId { + for PostGetTransactionWithCompressionInfoV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -25628,18 +25944,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetQueueElementsResponseJsonrpc { + pub enum PostGetTransactionWithCompressionInfoV2ResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetQueueElementsResponseJsonrpc { + impl ::std::fmt::Display for PostGetTransactionWithCompressionInfoV2ResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetQueueElementsResponseJsonrpc { + impl ::std::str::FromStr for PostGetTransactionWithCompressionInfoV2ResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -25650,7 +25966,8 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> for PostGetQueueElementsResponseJsonrpc { + impl ::std::convert::TryFrom<&str> + for PostGetTransactionWithCompressionInfoV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -25659,7 +25976,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetQueueElementsResponseJsonrpc { + for PostGetTransactionWithCompressionInfoV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -25668,7 +25985,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetQueueElementsResponseJsonrpc { + for PostGetTransactionWithCompressionInfoV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -25676,7 +25993,70 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - ///`PostGetQueueElementsResponseResult` + ///A Solana transaction with additional compression information + /// + ///
JSON schema + /// + /// ```json + ///{ + /// "description": "A Solana transaction with additional compression information", + /// "type": "object", + /// "properties": { + /// "compression_info": { + /// "type": "object", + /// "required": [ + /// "closedAccounts", + /// "openedAccounts" + /// ], + /// "properties": { + /// "closedAccounts": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/ClosedAccountWithOptionalTokenDataV2" + /// } + /// }, + /// "openedAccounts": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/AccountWithOptionalTokenDataV2" + /// } + /// } + /// }, + /// "additionalProperties": false + /// }, + /// "transaction": { + /// "description": "An encoded confirmed transaction with status meta", + /// "type": "object" + /// } + /// } + ///} + /// ``` + ///
+ #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + pub struct PostGetTransactionWithCompressionInfoV2ResponseResult { + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub compression_info: ::std::option::Option< + PostGetTransactionWithCompressionInfoV2ResponseResultCompressionInfo, + >, + ///An encoded confirmed transaction with status meta + #[serde(default, skip_serializing_if = "::serde_json::Map::is_empty")] + pub transaction: ::serde_json::Map<::std::string::String, ::serde_json::Value>, + } + impl ::std::default::Default + for PostGetTransactionWithCompressionInfoV2ResponseResult { + fn default() -> Self { + Self { + compression_info: Default::default(), + transaction: Default::default(), + } + } + } + impl PostGetTransactionWithCompressionInfoV2ResponseResult { + pub fn builder() -> builder::PostGetTransactionWithCompressionInfoV2ResponseResult { + Default::default() + } + } + ///`PostGetTransactionWithCompressionInfoV2ResponseResultCompressionInfo` /// ///
JSON schema /// @@ -25684,17 +26064,21 @@ Server auto-detects account type (account, token, mint) based on program owner a ///{ /// "type": "object", /// "required": [ - /// "context" + /// "closedAccounts", + /// "openedAccounts" /// ], /// "properties": { - /// "addressQueue": { - /// "$ref": "#/components/schemas/AddressQueueData" - /// }, - /// "context": { - /// "$ref": "#/components/schemas/Context" + /// "closedAccounts": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/ClosedAccountWithOptionalTokenDataV2" + /// } /// }, - /// "stateQueue": { - /// "$ref": "#/components/schemas/StateQueueData" + /// "openedAccounts": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/AccountWithOptionalTokenDataV2" + /// } /// } /// }, /// "additionalProperties": false @@ -25703,27 +26087,18 @@ Server auto-detects account type (account, token, mint) based on program owner a ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetQueueElementsResponseResult { - #[serde( - rename = "addressQueue", - default, - skip_serializing_if = "::std::option::Option::is_none" - )] - pub address_queue: ::std::option::Option, - pub context: Context, - #[serde( - rename = "stateQueue", - default, - skip_serializing_if = "::std::option::Option::is_none" - )] - pub state_queue: ::std::option::Option, + pub struct PostGetTransactionWithCompressionInfoV2ResponseResultCompressionInfo { + #[serde(rename = "closedAccounts")] + pub closed_accounts: ::std::vec::Vec, + #[serde(rename = "openedAccounts")] + pub opened_accounts: ::std::vec::Vec, } - impl PostGetQueueElementsResponseResult { - pub fn builder() -> builder::PostGetQueueElementsResponseResult { + impl PostGetTransactionWithCompressionInfoV2ResponseResultCompressionInfo { + pub fn builder() -> builder::PostGetTransactionWithCompressionInfoV2ResponseResultCompressionInfo { Default::default() } } - ///`PostGetQueueInfoBody` + ///`PostGetValidityProofBody` /// ///
JSON schema /// @@ -25755,19 +26130,22 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getQueueInfo" + /// "getValidityProof" /// ] /// }, /// "params": { /// "type": "object", /// "properties": { - /// "trees": { - /// "type": [ - /// "array", - /// "null" - /// ], + /// "hashes": { + /// "type": "array", /// "items": { - /// "type": "string" + /// "$ref": "#/components/schemas/Hash" + /// } + /// }, + /// "newAddressesWithTrees": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/AddressWithTree" /// } /// } /// }, @@ -25778,17 +26156,17 @@ Server auto-detects account type (account, token, mint) based on program owner a /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetQueueInfoBody { + pub struct PostGetValidityProofBody { ///An ID to identify the request. - pub id: PostGetQueueInfoBodyId, + pub id: PostGetValidityProofBodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetQueueInfoBodyJsonrpc, + pub jsonrpc: PostGetValidityProofBodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetQueueInfoBodyMethod, - pub params: PostGetQueueInfoBodyParams, + pub method: PostGetValidityProofBodyMethod, + pub params: PostGetValidityProofBodyParams, } - impl PostGetQueueInfoBody { - pub fn builder() -> builder::PostGetQueueInfoBody { + impl PostGetValidityProofBody { + pub fn builder() -> builder::PostGetValidityProofBody { Default::default() } } @@ -25818,18 +26196,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetQueueInfoBodyId { + pub enum PostGetValidityProofBodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetQueueInfoBodyId { + impl ::std::fmt::Display for PostGetValidityProofBodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetQueueInfoBodyId { + impl ::std::str::FromStr for PostGetValidityProofBodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -25840,7 +26218,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> for PostGetQueueInfoBodyId { + impl ::std::convert::TryFrom<&str> for PostGetValidityProofBodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -25848,7 +26226,7 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - impl ::std::convert::TryFrom<&::std::string::String> for PostGetQueueInfoBodyId { + impl ::std::convert::TryFrom<&::std::string::String> for PostGetValidityProofBodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -25856,7 +26234,7 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - impl ::std::convert::TryFrom<::std::string::String> for PostGetQueueInfoBodyId { + impl ::std::convert::TryFrom<::std::string::String> for PostGetValidityProofBodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -25890,18 +26268,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetQueueInfoBodyJsonrpc { + pub enum PostGetValidityProofBodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetQueueInfoBodyJsonrpc { + impl ::std::fmt::Display for PostGetValidityProofBodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetQueueInfoBodyJsonrpc { + impl ::std::str::FromStr for PostGetValidityProofBodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -25912,7 +26290,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> for PostGetQueueInfoBodyJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetValidityProofBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -25921,7 +26299,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetQueueInfoBodyJsonrpc { + for PostGetValidityProofBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -25929,7 +26307,8 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - impl ::std::convert::TryFrom<::std::string::String> for PostGetQueueInfoBodyJsonrpc { + impl ::std::convert::TryFrom<::std::string::String> + for PostGetValidityProofBodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -25946,7 +26325,7 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getQueueInfo" + /// "getValidityProof" /// ] ///} /// ``` @@ -25963,29 +26342,29 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetQueueInfoBodyMethod { - #[serde(rename = "getQueueInfo")] - GetQueueInfo, + pub enum PostGetValidityProofBodyMethod { + #[serde(rename = "getValidityProof")] + GetValidityProof, } - impl ::std::fmt::Display for PostGetQueueInfoBodyMethod { + impl ::std::fmt::Display for PostGetValidityProofBodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetQueueInfo => f.write_str("getQueueInfo"), + Self::GetValidityProof => f.write_str("getValidityProof"), } } } - impl ::std::str::FromStr for PostGetQueueInfoBodyMethod { + impl ::std::str::FromStr for PostGetValidityProofBodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getQueueInfo" => Ok(Self::GetQueueInfo), + "getValidityProof" => Ok(Self::GetValidityProof), _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> for PostGetQueueInfoBodyMethod { + impl ::std::convert::TryFrom<&str> for PostGetValidityProofBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -25993,7 +26372,8 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - impl ::std::convert::TryFrom<&::std::string::String> for PostGetQueueInfoBodyMethod { + impl ::std::convert::TryFrom<&::std::string::String> + for PostGetValidityProofBodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -26001,7 +26381,8 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - impl ::std::convert::TryFrom<::std::string::String> for PostGetQueueInfoBodyMethod { + impl ::std::convert::TryFrom<::std::string::String> + for PostGetValidityProofBodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -26009,7 +26390,7 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - ///`PostGetQueueInfoBodyParams` + ///`PostGetValidityProofBodyParams` /// ///
JSON schema /// @@ -26017,13 +26398,16 @@ Server auto-detects account type (account, token, mint) based on program owner a ///{ /// "type": "object", /// "properties": { - /// "trees": { - /// "type": [ - /// "array", - /// "null" - /// ], + /// "hashes": { + /// "type": "array", /// "items": { - /// "type": "string" + /// "$ref": "#/components/schemas/Hash" + /// } + /// }, + /// "newAddressesWithTrees": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/AddressWithTree" /// } /// } /// }, @@ -26033,21 +26417,30 @@ Server auto-detects account type (account, token, mint) based on program owner a ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetQueueInfoBodyParams { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub trees: ::std::option::Option<::std::vec::Vec<::std::string::String>>, + pub struct PostGetValidityProofBodyParams { + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub hashes: ::std::vec::Vec, + #[serde( + rename = "newAddressesWithTrees", + default, + skip_serializing_if = "::std::vec::Vec::is_empty" + )] + pub new_addresses_with_trees: ::std::vec::Vec, } - impl ::std::default::Default for PostGetQueueInfoBodyParams { + impl ::std::default::Default for PostGetValidityProofBodyParams { fn default() -> Self { - Self { trees: Default::default() } + Self { + hashes: Default::default(), + new_addresses_with_trees: Default::default(), + } } } - impl PostGetQueueInfoBodyParams { - pub fn builder() -> builder::PostGetQueueInfoBodyParams { + impl PostGetValidityProofBodyParams { + pub fn builder() -> builder::PostGetValidityProofBodyParams { Default::default() } } - ///`PostGetQueueInfoResponse` + ///`PostGetValidityProofResponse` /// ///
JSON schema /// @@ -26087,44 +26480,40 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "result": { /// "type": "object", /// "required": [ - /// "queues", - /// "slot" + /// "context", + /// "value" /// ], /// "properties": { - /// "queues": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/QueueInfo" - /// } + /// "context": { + /// "$ref": "#/components/schemas/Context" /// }, - /// "slot": { - /// "type": "integer", - /// "format": "uint64", - /// "minimum": 0.0 + /// "value": { + /// "$ref": "#/components/schemas/CompressedProofWithContext" /// } - /// } + /// }, + /// "additionalProperties": false /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetQueueInfoResponse { + pub struct PostGetValidityProofResponse { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option, + pub error: ::std::option::Option, ///An ID to identify the response. - pub id: PostGetQueueInfoResponseId, + pub id: PostGetValidityProofResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetQueueInfoResponseJsonrpc, + pub jsonrpc: PostGetValidityProofResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub result: ::std::option::Option, + pub result: ::std::option::Option, } - impl PostGetQueueInfoResponse { - pub fn builder() -> builder::PostGetQueueInfoResponse { + impl PostGetValidityProofResponse { + pub fn builder() -> builder::PostGetValidityProofResponse { Default::default() } } - ///`PostGetQueueInfoResponseError` + ///`PostGetValidityProofResponseError` /// ///
JSON schema /// @@ -26143,13 +26532,13 @@ Server auto-detects account type (account, token, mint) based on program owner a /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetQueueInfoResponseError { + pub struct PostGetValidityProofResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default for PostGetQueueInfoResponseError { + impl ::std::default::Default for PostGetValidityProofResponseError { fn default() -> Self { Self { code: Default::default(), @@ -26157,8 +26546,8 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl PostGetQueueInfoResponseError { - pub fn builder() -> builder::PostGetQueueInfoResponseError { + impl PostGetValidityProofResponseError { + pub fn builder() -> builder::PostGetValidityProofResponseError { Default::default() } } @@ -26188,18 +26577,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetQueueInfoResponseId { + pub enum PostGetValidityProofResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetQueueInfoResponseId { + impl ::std::fmt::Display for PostGetValidityProofResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetQueueInfoResponseId { + impl ::std::str::FromStr for PostGetValidityProofResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -26210,7 +26599,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> for PostGetQueueInfoResponseId { + impl ::std::convert::TryFrom<&str> for PostGetValidityProofResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -26218,7 +26607,8 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - impl ::std::convert::TryFrom<&::std::string::String> for PostGetQueueInfoResponseId { + impl ::std::convert::TryFrom<&::std::string::String> + for PostGetValidityProofResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -26226,7 +26616,8 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - impl ::std::convert::TryFrom<::std::string::String> for PostGetQueueInfoResponseId { + impl ::std::convert::TryFrom<::std::string::String> + for PostGetValidityProofResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -26260,18 +26651,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetQueueInfoResponseJsonrpc { + pub enum PostGetValidityProofResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetQueueInfoResponseJsonrpc { + impl ::std::fmt::Display for PostGetValidityProofResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetQueueInfoResponseJsonrpc { + impl ::std::str::FromStr for PostGetValidityProofResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -26282,7 +26673,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> for PostGetQueueInfoResponseJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetValidityProofResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -26291,7 +26682,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetQueueInfoResponseJsonrpc { + for PostGetValidityProofResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -26300,7 +26691,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetQueueInfoResponseJsonrpc { + for PostGetValidityProofResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -26308,7 +26699,7 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - ///`PostGetQueueInfoResponseResult` + ///`PostGetValidityProofResponseResult` /// ///
JSON schema /// @@ -26316,36 +26707,33 @@ Server auto-detects account type (account, token, mint) based on program owner a ///{ /// "type": "object", /// "required": [ - /// "queues", - /// "slot" + /// "context", + /// "value" /// ], /// "properties": { - /// "queues": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/QueueInfo" - /// } + /// "context": { + /// "$ref": "#/components/schemas/Context" /// }, - /// "slot": { - /// "type": "integer", - /// "format": "uint64", - /// "minimum": 0.0 + /// "value": { + /// "$ref": "#/components/schemas/CompressedProofWithContext" /// } - /// } + /// }, + /// "additionalProperties": false ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetQueueInfoResponseResult { - pub queues: ::std::vec::Vec, - pub slot: u64, + #[serde(deny_unknown_fields)] + pub struct PostGetValidityProofResponseResult { + pub context: Context, + pub value: CompressedProofWithContext, } - impl PostGetQueueInfoResponseResult { - pub fn builder() -> builder::PostGetQueueInfoResponseResult { + impl PostGetValidityProofResponseResult { + pub fn builder() -> builder::PostGetValidityProofResponseResult { Default::default() } } - ///`PostGetTokenAccountInterfaceBody` + ///`PostGetValidityProofV2Body` /// ///
JSON schema /// @@ -26377,18 +26765,23 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getTokenAccountInterface" + /// "getValidityProofV2" /// ] /// }, /// "params": { - /// "description": "Request for getTokenAccountInterface", /// "type": "object", - /// "required": [ - /// "address" - /// ], /// "properties": { - /// "address": { - /// "$ref": "#/components/schemas/SerializablePubkey" + /// "hashes": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/Hash" + /// } + /// }, + /// "newAddressesWithTrees": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/AddressWithTree" + /// } /// } /// }, /// "additionalProperties": false @@ -26398,17 +26791,17 @@ Server auto-detects account type (account, token, mint) based on program owner a /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetTokenAccountInterfaceBody { + pub struct PostGetValidityProofV2Body { ///An ID to identify the request. - pub id: PostGetTokenAccountInterfaceBodyId, + pub id: PostGetValidityProofV2BodyId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetTokenAccountInterfaceBodyJsonrpc, + pub jsonrpc: PostGetValidityProofV2BodyJsonrpc, ///The name of the method to invoke. - pub method: PostGetTokenAccountInterfaceBodyMethod, - pub params: PostGetTokenAccountInterfaceBodyParams, + pub method: PostGetValidityProofV2BodyMethod, + pub params: PostGetValidityProofV2BodyParams, } - impl PostGetTokenAccountInterfaceBody { - pub fn builder() -> builder::PostGetTokenAccountInterfaceBody { + impl PostGetValidityProofV2Body { + pub fn builder() -> builder::PostGetValidityProofV2Body { Default::default() } } @@ -26438,18 +26831,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetTokenAccountInterfaceBodyId { + pub enum PostGetValidityProofV2BodyId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetTokenAccountInterfaceBodyId { + impl ::std::fmt::Display for PostGetValidityProofV2BodyId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetTokenAccountInterfaceBodyId { + impl ::std::str::FromStr for PostGetValidityProofV2BodyId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -26460,7 +26853,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> for PostGetTokenAccountInterfaceBodyId { + impl ::std::convert::TryFrom<&str> for PostGetValidityProofV2BodyId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -26469,7 +26862,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetTokenAccountInterfaceBodyId { + for PostGetValidityProofV2BodyId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -26478,7 +26871,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetTokenAccountInterfaceBodyId { + for PostGetValidityProofV2BodyId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -26512,18 +26905,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetTokenAccountInterfaceBodyJsonrpc { + pub enum PostGetValidityProofV2BodyJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetTokenAccountInterfaceBodyJsonrpc { + impl ::std::fmt::Display for PostGetValidityProofV2BodyJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetTokenAccountInterfaceBodyJsonrpc { + impl ::std::str::FromStr for PostGetValidityProofV2BodyJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -26534,7 +26927,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> for PostGetTokenAccountInterfaceBodyJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetValidityProofV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -26543,7 +26936,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetTokenAccountInterfaceBodyJsonrpc { + for PostGetValidityProofV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -26552,7 +26945,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetTokenAccountInterfaceBodyJsonrpc { + for PostGetValidityProofV2BodyJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -26569,7 +26962,7 @@ Server auto-detects account type (account, token, mint) based on program owner a /// "description": "The name of the method to invoke.", /// "type": "string", /// "enum": [ - /// "getTokenAccountInterface" + /// "getValidityProofV2" /// ] ///} /// ``` @@ -26586,29 +26979,29 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetTokenAccountInterfaceBodyMethod { - #[serde(rename = "getTokenAccountInterface")] - GetTokenAccountInterface, + pub enum PostGetValidityProofV2BodyMethod { + #[serde(rename = "getValidityProofV2")] + GetValidityProofV2, } - impl ::std::fmt::Display for PostGetTokenAccountInterfaceBodyMethod { + impl ::std::fmt::Display for PostGetValidityProofV2BodyMethod { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { - Self::GetTokenAccountInterface => f.write_str("getTokenAccountInterface"), + Self::GetValidityProofV2 => f.write_str("getValidityProofV2"), } } } - impl ::std::str::FromStr for PostGetTokenAccountInterfaceBodyMethod { + impl ::std::str::FromStr for PostGetValidityProofV2BodyMethod { type Err = self::error::ConversionError; fn from_str( value: &str, ) -> ::std::result::Result { match value { - "getTokenAccountInterface" => Ok(Self::GetTokenAccountInterface), + "getValidityProofV2" => Ok(Self::GetValidityProofV2), _ => Err("invalid value".into()), } } } - impl ::std::convert::TryFrom<&str> for PostGetTokenAccountInterfaceBodyMethod { + impl ::std::convert::TryFrom<&str> for PostGetValidityProofV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -26617,7 +27010,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetTokenAccountInterfaceBodyMethod { + for PostGetValidityProofV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -26626,7 +27019,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetTokenAccountInterfaceBodyMethod { + for PostGetValidityProofV2BodyMethod { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -26634,20 +27027,25 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - ///Request for getTokenAccountInterface + ///`PostGetValidityProofV2BodyParams` /// ///
JSON schema /// /// ```json ///{ - /// "description": "Request for getTokenAccountInterface", /// "type": "object", - /// "required": [ - /// "address" - /// ], /// "properties": { - /// "address": { - /// "$ref": "#/components/schemas/SerializablePubkey" + /// "hashes": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/Hash" + /// } + /// }, + /// "newAddressesWithTrees": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/AddressWithTree" + /// } /// } /// }, /// "additionalProperties": false @@ -26656,15 +27054,30 @@ Server auto-detects account type (account, token, mint) based on program owner a ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetTokenAccountInterfaceBodyParams { - pub address: SerializablePubkey, + pub struct PostGetValidityProofV2BodyParams { + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub hashes: ::std::vec::Vec, + #[serde( + rename = "newAddressesWithTrees", + default, + skip_serializing_if = "::std::vec::Vec::is_empty" + )] + pub new_addresses_with_trees: ::std::vec::Vec, + } + impl ::std::default::Default for PostGetValidityProofV2BodyParams { + fn default() -> Self { + Self { + hashes: Default::default(), + new_addresses_with_trees: Default::default(), + } + } } - impl PostGetTokenAccountInterfaceBodyParams { - pub fn builder() -> builder::PostGetTokenAccountInterfaceBodyParams { + impl PostGetValidityProofV2BodyParams { + pub fn builder() -> builder::PostGetValidityProofV2BodyParams { Default::default() } } - ///`PostGetTokenAccountInterfaceResponse` + ///`PostGetValidityProofV2Response` /// ///
JSON schema /// @@ -26702,41 +27115,42 @@ Server auto-detects account type (account, token, mint) based on program owner a /// ] /// }, /// "result": { - /// "description": "Response for getTokenAccountInterface", /// "type": "object", /// "required": [ - /// "context" + /// "context", + /// "value" /// ], /// "properties": { /// "context": { /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/TokenAccountInterface" + /// "$ref": "#/components/schemas/CompressedProofWithContextV2" /// } - /// } + /// }, + /// "additionalProperties": false /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetTokenAccountInterfaceResponse { + pub struct PostGetValidityProofV2Response { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option, + pub error: ::std::option::Option, ///An ID to identify the response. - pub id: PostGetTokenAccountInterfaceResponseId, + pub id: PostGetValidityProofV2ResponseId, ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetTokenAccountInterfaceResponseJsonrpc, + pub jsonrpc: PostGetValidityProofV2ResponseJsonrpc, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub result: ::std::option::Option, + pub result: ::std::option::Option, } - impl PostGetTokenAccountInterfaceResponse { - pub fn builder() -> builder::PostGetTokenAccountInterfaceResponse { + impl PostGetValidityProofV2Response { + pub fn builder() -> builder::PostGetValidityProofV2Response { Default::default() } } - ///`PostGetTokenAccountInterfaceResponseError` + ///`PostGetValidityProofV2ResponseError` /// ///
JSON schema /// @@ -26755,13 +27169,13 @@ Server auto-detects account type (account, token, mint) based on program owner a /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetTokenAccountInterfaceResponseError { + pub struct PostGetValidityProofV2ResponseError { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub code: ::std::option::Option, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option<::std::string::String>, } - impl ::std::default::Default for PostGetTokenAccountInterfaceResponseError { + impl ::std::default::Default for PostGetValidityProofV2ResponseError { fn default() -> Self { Self { code: Default::default(), @@ -26769,8 +27183,8 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl PostGetTokenAccountInterfaceResponseError { - pub fn builder() -> builder::PostGetTokenAccountInterfaceResponseError { + impl PostGetValidityProofV2ResponseError { + pub fn builder() -> builder::PostGetValidityProofV2ResponseError { Default::default() } } @@ -26800,18 +27214,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetTokenAccountInterfaceResponseId { + pub enum PostGetValidityProofV2ResponseId { #[serde(rename = "test-account")] TestAccount, } - impl ::std::fmt::Display for PostGetTokenAccountInterfaceResponseId { + impl ::std::fmt::Display for PostGetValidityProofV2ResponseId { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::TestAccount => f.write_str("test-account"), } } } - impl ::std::str::FromStr for PostGetTokenAccountInterfaceResponseId { + impl ::std::str::FromStr for PostGetValidityProofV2ResponseId { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -26822,7 +27236,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> for PostGetTokenAccountInterfaceResponseId { + impl ::std::convert::TryFrom<&str> for PostGetValidityProofV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -26831,7 +27245,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetTokenAccountInterfaceResponseId { + for PostGetValidityProofV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -26840,7 +27254,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetTokenAccountInterfaceResponseId { + for PostGetValidityProofV2ResponseId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -26874,18 +27288,18 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetTokenAccountInterfaceResponseJsonrpc { + pub enum PostGetValidityProofV2ResponseJsonrpc { #[serde(rename = "2.0")] X20, } - impl ::std::fmt::Display for PostGetTokenAccountInterfaceResponseJsonrpc { + impl ::std::fmt::Display for PostGetValidityProofV2ResponseJsonrpc { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::X20 => f.write_str("2.0"), } } } - impl ::std::str::FromStr for PostGetTokenAccountInterfaceResponseJsonrpc { + impl ::std::str::FromStr for PostGetValidityProofV2ResponseJsonrpc { type Err = self::error::ConversionError; fn from_str( value: &str, @@ -26896,7 +27310,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } } - impl ::std::convert::TryFrom<&str> for PostGetTokenAccountInterfaceResponseJsonrpc { + impl ::std::convert::TryFrom<&str> for PostGetValidityProofV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &str, @@ -26905,7 +27319,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<&::std::string::String> - for PostGetTokenAccountInterfaceResponseJsonrpc { + for PostGetValidityProofV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -26914,7 +27328,7 @@ Server auto-detects account type (account, token, mint) based on program owner a } } impl ::std::convert::TryFrom<::std::string::String> - for PostGetTokenAccountInterfaceResponseJsonrpc { + for PostGetValidityProofV2ResponseJsonrpc { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -26922,40 +27336,41 @@ Server auto-detects account type (account, token, mint) based on program owner a value.parse() } } - ///Response for getTokenAccountInterface + ///`PostGetValidityProofV2ResponseResult` /// ///
JSON schema /// /// ```json ///{ - /// "description": "Response for getTokenAccountInterface", /// "type": "object", /// "required": [ - /// "context" + /// "context", + /// "value" /// ], /// "properties": { /// "context": { /// "$ref": "#/components/schemas/Context" /// }, /// "value": { - /// "$ref": "#/components/schemas/TokenAccountInterface" + /// "$ref": "#/components/schemas/CompressedProofWithContextV2" /// } - /// } + /// }, + /// "additionalProperties": false ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetTokenAccountInterfaceResponseResult { + #[serde(deny_unknown_fields)] + pub struct PostGetValidityProofV2ResponseResult { pub context: Context, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub value: ::std::option::Option, + pub value: CompressedProofWithContextV2, } - impl PostGetTokenAccountInterfaceResponseResult { - pub fn builder() -> builder::PostGetTokenAccountInterfaceResponseResult { + impl PostGetValidityProofV2ResponseResult { + pub fn builder() -> builder::PostGetValidityProofV2ResponseResult { Default::default() } } - ///`PostGetTokenAccountInterfacesBody` + ///`QueueInfo` /// ///
JSON schema /// @@ -26963,154 +27378,154 @@ Server auto-detects account type (account, token, mint) based on program owner a ///{ /// "type": "object", /// "required": [ - /// "id", - /// "jsonrpc", - /// "method", - /// "params" + /// "queue", + /// "queueSize", + /// "queueType", + /// "tree" /// ], /// "properties": { - /// "id": { - /// "description": "An ID to identify the request.", - /// "type": "string", - /// "enum": [ - /// "test-account" - /// ] + /// "queue": { + /// "type": "string" /// }, - /// "jsonrpc": { - /// "description": "The version of the JSON-RPC protocol.", - /// "type": "string", - /// "enum": [ - /// "2.0" - /// ] + /// "queueSize": { + /// "type": "integer", + /// "format": "uint64", + /// "minimum": 0.0 /// }, - /// "method": { - /// "description": "The name of the method to invoke.", - /// "type": "string", - /// "enum": [ - /// "getTokenAccountInterfaces" - /// ] + /// "queueType": { + /// "type": "integer", + /// "format": "uint8", + /// "minimum": 0.0 /// }, - /// "params": { - /// "description": "Request for getTokenAccountInterfaces (batch)", - /// "type": "object", - /// "required": [ - /// "addresses" - /// ], - /// "properties": { - /// "addresses": { - /// "description": "List of token account addresses to look up (max 100)", - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// } - /// } - /// }, - /// "additionalProperties": false + /// "tree": { + /// "type": "string" /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetTokenAccountInterfacesBody { - ///An ID to identify the request. - pub id: PostGetTokenAccountInterfacesBodyId, - ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetTokenAccountInterfacesBodyJsonrpc, - ///The name of the method to invoke. - pub method: PostGetTokenAccountInterfacesBodyMethod, - pub params: PostGetTokenAccountInterfacesBodyParams, + pub struct QueueInfo { + pub queue: ::std::string::String, + #[serde(rename = "queueSize")] + pub queue_size: u64, + #[serde(rename = "queueType")] + pub queue_type: u8, + pub tree: ::std::string::String, } - impl PostGetTokenAccountInterfacesBody { - pub fn builder() -> builder::PostGetTokenAccountInterfacesBody { + impl QueueInfo { + pub fn builder() -> builder::QueueInfo { Default::default() } } - ///An ID to identify the request. + ///Parameters for requesting queue elements /// ///
JSON schema /// /// ```json ///{ - /// "description": "An ID to identify the request.", - /// "type": "string", - /// "enum": [ - /// "test-account" - /// ] + /// "description": "Parameters for requesting queue elements", + /// "type": "object", + /// "required": [ + /// "limit" + /// ], + /// "properties": { + /// "limit": { + /// "type": "integer", + /// "format": "uint16", + /// "minimum": 0.0 + /// }, + /// "startIndex": { + /// "type": [ + /// "integer", + /// "null" + /// ], + /// "format": "uint64", + /// "minimum": 0.0 + /// }, + /// "zkpBatchSize": { + /// "type": [ + /// "integer", + /// "null" + /// ], + /// "format": "uint16", + /// "minimum": 0.0 + /// } + /// }, + /// "additionalProperties": false ///} /// ``` ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum PostGetTokenAccountInterfacesBodyId { - #[serde(rename = "test-account")] - TestAccount, - } - impl ::std::fmt::Display for PostGetTokenAccountInterfacesBodyId { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::TestAccount => f.write_str("test-account"), - } - } - } - impl ::std::str::FromStr for PostGetTokenAccountInterfacesBodyId { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "test-account" => Ok(Self::TestAccount), - _ => Err("invalid value".into()), - } - } + #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + #[serde(deny_unknown_fields)] + pub struct QueueRequest { + pub limit: u16, + #[serde( + rename = "startIndex", + default, + skip_serializing_if = "::std::option::Option::is_none" + )] + pub start_index: ::std::option::Option, + #[serde( + rename = "zkpBatchSize", + default, + skip_serializing_if = "::std::option::Option::is_none" + )] + pub zkp_batch_size: ::std::option::Option, } - impl ::std::convert::TryFrom<&str> for PostGetTokenAccountInterfacesBodyId { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() + impl QueueRequest { + pub fn builder() -> builder::QueueRequest { + Default::default() } } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetTokenAccountInterfacesBodyId { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() - } + ///`RootIndex` + /// + ///
JSON schema + /// + /// ```json + ///{ + /// "type": "object", + /// "required": [ + /// "proveByIndex", + /// "rootIndex" + /// ], + /// "properties": { + /// "proveByIndex": { + /// "type": "boolean" + /// }, + /// "rootIndex": { + /// "type": "integer", + /// "format": "uint64", + /// "minimum": 0.0 + /// } + /// } + ///} + /// ``` + ///
+ #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + pub struct RootIndex { + #[serde(rename = "proveByIndex")] + pub prove_by_index: bool, + #[serde(rename = "rootIndex")] + pub root_index: u64, } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetTokenAccountInterfacesBodyId { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() + impl RootIndex { + pub fn builder() -> builder::RootIndex { + Default::default() } } - ///The version of the JSON-RPC protocol. + ///A Solana public key represented as a base58 string. /// ///
JSON schema /// /// ```json ///{ - /// "description": "The version of the JSON-RPC protocol.", - /// "type": "string", - /// "enum": [ - /// "2.0" - /// ] + /// "description": "A Solana public key represented as a base58 string.", + /// "default": "111FJo4zLAGU9nzTWa6EnbV4VAmtG4FR8kcokrtZYr", + /// "examples": [ + /// "111FJo4zLAGU9nzTWa6EnbV4VAmtG4FR8kcokrtZYr" + /// ], + /// "type": "string" ///} /// ``` ///
@@ -27118,7 +27533,6 @@ Server auto-detects account type (account, token, mint) based on program owner a ::serde::Deserialize, ::serde::Serialize, Clone, - Copy, Debug, Eq, Hash, @@ -27126,65 +27540,47 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetTokenAccountInterfacesBodyJsonrpc { - #[serde(rename = "2.0")] - X20, - } - impl ::std::fmt::Display for PostGetTokenAccountInterfacesBodyJsonrpc { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::X20 => f.write_str("2.0"), - } + #[serde(transparent)] + pub struct SerializablePubkey(pub ::std::string::String); + impl ::std::ops::Deref for SerializablePubkey { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { + &self.0 } } - impl ::std::str::FromStr for PostGetTokenAccountInterfacesBodyJsonrpc { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "2.0" => Ok(Self::X20), - _ => Err("invalid value".into()), - } + impl ::std::convert::From for ::std::string::String { + fn from(value: SerializablePubkey) -> Self { + value.0 } } - impl ::std::convert::TryFrom<&str> for PostGetTokenAccountInterfacesBodyJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() + impl ::std::convert::From<::std::string::String> for SerializablePubkey { + fn from(value: ::std::string::String) -> Self { + Self(value) } } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetTokenAccountInterfacesBodyJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() + impl ::std::str::FromStr for SerializablePubkey { + type Err = ::std::convert::Infallible; + fn from_str(value: &str) -> ::std::result::Result { + Ok(Self(value.to_string())) } } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetTokenAccountInterfacesBodyJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() + impl ::std::fmt::Display for SerializablePubkey { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + self.0.fmt(f) } } - ///The name of the method to invoke. + ///A Solana transaction signature. /// ///
JSON schema /// /// ```json ///{ - /// "description": "The name of the method to invoke.", - /// "type": "string", - /// "enum": [ - /// "getTokenAccountInterfaces" - /// ] + /// "description": "A Solana transaction signature.", + /// "default": "5J8H5sTvEhnGcB4R8K1n7mfoiWUD9RzPVGES7e3WxC7c", + /// "examples": [ + /// "5J8H5sTvEhnGcB4R8K1n7mfoiWUD9RzPVGES7e3WxC7c" + /// ], + /// "type": "string" ///} /// ``` ///
@@ -27192,7 +27588,6 @@ Server auto-detects account type (account, token, mint) based on program owner a ::serde::Deserialize, ::serde::Serialize, Clone, - Copy, Debug, Eq, Hash, @@ -27200,92 +27595,74 @@ Server auto-detects account type (account, token, mint) based on program owner a PartialEq, PartialOrd )] - pub enum PostGetTokenAccountInterfacesBodyMethod { - #[serde(rename = "getTokenAccountInterfaces")] - GetTokenAccountInterfaces, - } - impl ::std::fmt::Display for PostGetTokenAccountInterfacesBodyMethod { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::GetTokenAccountInterfaces => { - f.write_str("getTokenAccountInterfaces") - } - } + #[serde(transparent)] + pub struct SerializableSignature(pub ::std::string::String); + impl ::std::ops::Deref for SerializableSignature { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { + &self.0 } } - impl ::std::str::FromStr for PostGetTokenAccountInterfacesBodyMethod { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "getTokenAccountInterfaces" => Ok(Self::GetTokenAccountInterfaces), - _ => Err("invalid value".into()), - } + impl ::std::convert::From for ::std::string::String { + fn from(value: SerializableSignature) -> Self { + value.0 } } - impl ::std::convert::TryFrom<&str> for PostGetTokenAccountInterfacesBodyMethod { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() + impl ::std::convert::From<::std::string::String> for SerializableSignature { + fn from(value: ::std::string::String) -> Self { + Self(value) } } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetTokenAccountInterfacesBodyMethod { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() + impl ::std::str::FromStr for SerializableSignature { + type Err = ::std::convert::Infallible; + fn from_str(value: &str) -> ::std::result::Result { + Ok(Self(value.to_string())) } } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetTokenAccountInterfacesBodyMethod { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() + impl ::std::fmt::Display for SerializableSignature { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + self.0.fmt(f) } } - ///Request for getTokenAccountInterfaces (batch) + ///`SignatureInfo` /// ///
JSON schema /// /// ```json ///{ - /// "description": "Request for getTokenAccountInterfaces (batch)", /// "type": "object", /// "required": [ - /// "addresses" + /// "blockTime", + /// "signature", + /// "slot" /// ], /// "properties": { - /// "addresses": { - /// "description": "List of token account addresses to look up (max 100)", - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// } + /// "blockTime": { + /// "$ref": "#/components/schemas/UnixTimestamp" + /// }, + /// "signature": { + /// "$ref": "#/components/schemas/SerializableSignature" + /// }, + /// "slot": { + /// "$ref": "#/components/schemas/UnsignedInteger" /// } - /// }, - /// "additionalProperties": false + /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(deny_unknown_fields)] - pub struct PostGetTokenAccountInterfacesBodyParams { - ///List of token account addresses to look up (max 100) - pub addresses: ::std::vec::Vec, + pub struct SignatureInfo { + #[serde(rename = "blockTime")] + pub block_time: UnixTimestamp, + pub signature: SerializableSignature, + pub slot: UnsignedInteger, } - impl PostGetTokenAccountInterfacesBodyParams { - pub fn builder() -> builder::PostGetTokenAccountInterfacesBodyParams { + impl SignatureInfo { + pub fn builder() -> builder::SignatureInfo { Default::default() } } - ///`PostGetTokenAccountInterfacesResponse` + ///`SignatureInfoList` /// ///
JSON schema /// @@ -27293,63 +27670,13 @@ Server auto-detects account type (account, token, mint) based on program owner a ///{ /// "type": "object", /// "required": [ - /// "id", - /// "jsonrpc" + /// "items" /// ], /// "properties": { - /// "error": { - /// "type": "object", - /// "properties": { - /// "code": { - /// "type": "integer" - /// }, - /// "message": { - /// "type": "string" - /// } - /// } - /// }, - /// "id": { - /// "description": "An ID to identify the response.", - /// "type": "string", - /// "enum": [ - /// "test-account" - /// ] - /// }, - /// "jsonrpc": { - /// "description": "The version of the JSON-RPC protocol.", - /// "type": "string", - /// "enum": [ - /// "2.0" - /// ] - /// }, - /// "result": { - /// "description": "Response for getTokenAccountInterfaces (batch)", - /// "type": "object", - /// "required": [ - /// "context", - /// "value" - /// ], - /// "properties": { - /// "context": { - /// "$ref": "#/components/schemas/Context" - /// }, - /// "value": { - /// "type": "array", - /// "items": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/TokenAccountInterface" - /// } - /// ] - /// } - /// ] - /// } - /// } + /// "items": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/SignatureInfo" /// } /// } /// } @@ -27357,255 +27684,214 @@ Server auto-detects account type (account, token, mint) based on program owner a /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetTokenAccountInterfacesResponse { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option, - ///An ID to identify the response. - pub id: PostGetTokenAccountInterfacesResponseId, - ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetTokenAccountInterfacesResponseJsonrpc, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub result: ::std::option::Option, + pub struct SignatureInfoList { + pub items: ::std::vec::Vec, } - impl PostGetTokenAccountInterfacesResponse { - pub fn builder() -> builder::PostGetTokenAccountInterfacesResponse { + impl SignatureInfoList { + pub fn builder() -> builder::SignatureInfoList { Default::default() } } - ///`PostGetTokenAccountInterfacesResponseError` + ///`SignatureInfoListWithError` /// ///
JSON schema /// /// ```json ///{ /// "type": "object", + /// "required": [ + /// "items" + /// ], /// "properties": { - /// "code": { - /// "type": "integer" - /// }, - /// "message": { - /// "type": "string" + /// "items": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/SignatureInfoWithError" + /// } /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetTokenAccountInterfacesResponseError { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub code: ::std::option::Option, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub message: ::std::option::Option<::std::string::String>, - } - impl ::std::default::Default for PostGetTokenAccountInterfacesResponseError { - fn default() -> Self { - Self { - code: Default::default(), - message: Default::default(), - } - } + pub struct SignatureInfoListWithError { + pub items: ::std::vec::Vec, } - impl PostGetTokenAccountInterfacesResponseError { - pub fn builder() -> builder::PostGetTokenAccountInterfacesResponseError { + impl SignatureInfoListWithError { + pub fn builder() -> builder::SignatureInfoListWithError { Default::default() } } - ///An ID to identify the response. + ///`SignatureInfoWithError` /// ///
JSON schema /// /// ```json ///{ - /// "description": "An ID to identify the response.", - /// "type": "string", - /// "enum": [ - /// "test-account" - /// ] + /// "type": "object", + /// "required": [ + /// "blockTime", + /// "signature", + /// "slot" + /// ], + /// "properties": { + /// "blockTime": { + /// "$ref": "#/components/schemas/UnixTimestamp" + /// }, + /// "error": { + /// "type": [ + /// "string", + /// "null" + /// ] + /// }, + /// "signature": { + /// "$ref": "#/components/schemas/SerializableSignature" + /// }, + /// "slot": { + /// "$ref": "#/components/schemas/UnsignedInteger" + /// } + /// } ///} /// ``` ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum PostGetTokenAccountInterfacesResponseId { - #[serde(rename = "test-account")] - TestAccount, - } - impl ::std::fmt::Display for PostGetTokenAccountInterfacesResponseId { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::TestAccount => f.write_str("test-account"), - } - } - } - impl ::std::str::FromStr for PostGetTokenAccountInterfacesResponseId { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "test-account" => Ok(Self::TestAccount), - _ => Err("invalid value".into()), - } - } - } - impl ::std::convert::TryFrom<&str> for PostGetTokenAccountInterfacesResponseId { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetTokenAccountInterfacesResponseId { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() - } + #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + pub struct SignatureInfoWithError { + #[serde(rename = "blockTime")] + pub block_time: UnixTimestamp, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub error: ::std::option::Option<::std::string::String>, + pub signature: SerializableSignature, + pub slot: UnsignedInteger, } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetTokenAccountInterfacesResponseId { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() + impl SignatureInfoWithError { + pub fn builder() -> builder::SignatureInfoWithError { + Default::default() } } - ///The version of the JSON-RPC protocol. + ///Nested Solana account fields (matches getAccountInfo shape) /// ///
JSON schema /// /// ```json ///{ - /// "description": "The version of the JSON-RPC protocol.", - /// "type": "string", - /// "enum": [ - /// "2.0" - /// ] + /// "description": "Nested Solana account fields (matches getAccountInfo shape)", + /// "type": "object", + /// "required": [ + /// "data", + /// "executable", + /// "lamports", + /// "owner", + /// "rentEpoch", + /// "space" + /// ], + /// "properties": { + /// "data": { + /// "$ref": "#/components/schemas/Base64String" + /// }, + /// "executable": { + /// "type": "boolean" + /// }, + /// "lamports": { + /// "$ref": "#/components/schemas/UnsignedInteger" + /// }, + /// "owner": { + /// "$ref": "#/components/schemas/SerializablePubkey" + /// }, + /// "rentEpoch": { + /// "$ref": "#/components/schemas/UnsignedInteger" + /// }, + /// "space": { + /// "$ref": "#/components/schemas/UnsignedInteger" + /// } + /// } ///} /// ``` ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum PostGetTokenAccountInterfacesResponseJsonrpc { - #[serde(rename = "2.0")] - X20, - } - impl ::std::fmt::Display for PostGetTokenAccountInterfacesResponseJsonrpc { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::X20 => f.write_str("2.0"), - } - } - } - impl ::std::str::FromStr for PostGetTokenAccountInterfacesResponseJsonrpc { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "2.0" => Ok(Self::X20), - _ => Err("invalid value".into()), - } - } - } - impl ::std::convert::TryFrom<&str> for PostGetTokenAccountInterfacesResponseJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetTokenAccountInterfacesResponseJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() - } + #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + pub struct SolanaAccountData { + pub data: Base64String, + pub executable: bool, + pub lamports: UnsignedInteger, + pub owner: SerializablePubkey, + #[serde(rename = "rentEpoch")] + pub rent_epoch: UnsignedInteger, + pub space: UnsignedInteger, } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetTokenAccountInterfacesResponseJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() + impl SolanaAccountData { + pub fn builder() -> builder::SolanaAccountData { + Default::default() } } - ///Response for getTokenAccountInterfaces (batch) + ///State queue data with shared tree nodes for output and input queues /// ///
JSON schema /// /// ```json ///{ - /// "description": "Response for getTokenAccountInterfaces (batch)", + /// "description": "State queue data with shared tree nodes for output and input queues", /// "type": "object", /// "required": [ - /// "context", - /// "value" + /// "initialRoot", + /// "rootSeq" /// ], /// "properties": { - /// "context": { - /// "$ref": "#/components/schemas/Context" + /// "initialRoot": { + /// "$ref": "#/components/schemas/Hash" /// }, - /// "value": { + /// "inputQueue": { + /// "$ref": "#/components/schemas/InputQueueData" + /// }, + /// "nodes": { + /// "description": "Shared deduplicated tree nodes for state queues (output + input)", /// "type": "array", /// "items": { - /// "oneOf": [ - /// { - /// "type": "null" - /// }, - /// { - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/TokenAccountInterface" - /// } - /// ] - /// } - /// ] + /// "$ref": "#/components/schemas/Node" /// } + /// }, + /// "outputQueue": { + /// "$ref": "#/components/schemas/OutputQueueData" + /// }, + /// "rootSeq": { + /// "description": "Sequence number of the root", + /// "type": "integer", + /// "format": "uint64", + /// "minimum": 0.0 /// } - /// } + /// }, + /// "additionalProperties": false ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetTokenAccountInterfacesResponseResult { - pub context: Context, - pub value: ::std::vec::Vec<::std::option::Option>, + #[serde(deny_unknown_fields)] + pub struct StateQueueData { + #[serde(rename = "initialRoot")] + pub initial_root: Hash, + #[serde( + rename = "inputQueue", + default, + skip_serializing_if = "::std::option::Option::is_none" + )] + pub input_queue: ::std::option::Option, + ///Shared deduplicated tree nodes for state queues (output + input) + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub nodes: ::std::vec::Vec, + #[serde( + rename = "outputQueue", + default, + skip_serializing_if = "::std::option::Option::is_none" + )] + pub output_queue: ::std::option::Option, + ///Sequence number of the root + #[serde(rename = "rootSeq")] + pub root_seq: u64, } - impl PostGetTokenAccountInterfacesResponseResult { - pub fn builder() -> builder::PostGetTokenAccountInterfacesResponseResult { + impl StateQueueData { + pub fn builder() -> builder::StateQueueData { Default::default() } } - ///`PostGetTransactionWithCompressionInfoBody` + ///`TokenAccount` /// ///
JSON schema /// @@ -27613,293 +27899,133 @@ Server auto-detects account type (account, token, mint) based on program owner a ///{ /// "type": "object", /// "required": [ - /// "id", - /// "jsonrpc", - /// "method", - /// "params" + /// "account", + /// "tokenData" /// ], /// "properties": { - /// "id": { - /// "description": "An ID to identify the request.", - /// "type": "string", - /// "enum": [ - /// "test-account" - /// ] - /// }, - /// "jsonrpc": { - /// "description": "The version of the JSON-RPC protocol.", - /// "type": "string", - /// "enum": [ - /// "2.0" - /// ] - /// }, - /// "method": { - /// "description": "The name of the method to invoke.", - /// "type": "string", - /// "enum": [ - /// "getTransactionWithCompressionInfo" - /// ] + /// "account": { + /// "$ref": "#/components/schemas/Account" /// }, - /// "params": { - /// "type": "object", - /// "required": [ - /// "signature" - /// ], - /// "properties": { - /// "signature": { - /// "$ref": "#/components/schemas/SerializableSignature" - /// } - /// }, - /// "additionalProperties": false + /// "tokenData": { + /// "$ref": "#/components/schemas/TokenData" /// } - /// } + /// }, + /// "additionalProperties": false ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetTransactionWithCompressionInfoBody { - ///An ID to identify the request. - pub id: PostGetTransactionWithCompressionInfoBodyId, - ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetTransactionWithCompressionInfoBodyJsonrpc, - ///The name of the method to invoke. - pub method: PostGetTransactionWithCompressionInfoBodyMethod, - pub params: PostGetTransactionWithCompressionInfoBodyParams, + #[serde(deny_unknown_fields)] + pub struct TokenAccount { + pub account: Account, + #[serde(rename = "tokenData")] + pub token_data: TokenData, } - impl PostGetTransactionWithCompressionInfoBody { - pub fn builder() -> builder::PostGetTransactionWithCompressionInfoBody { + impl TokenAccount { + pub fn builder() -> builder::TokenAccount { Default::default() } } - ///An ID to identify the request. + ///`TokenAccountBalance` /// ///
JSON schema /// /// ```json ///{ - /// "description": "An ID to identify the request.", - /// "type": "string", - /// "enum": [ - /// "test-account" - /// ] + /// "type": "object", + /// "required": [ + /// "amount" + /// ], + /// "properties": { + /// "amount": { + /// "$ref": "#/components/schemas/UnsignedInteger" + /// } + /// }, + /// "additionalProperties": false ///} /// ``` ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum PostGetTransactionWithCompressionInfoBodyId { - #[serde(rename = "test-account")] - TestAccount, - } - impl ::std::fmt::Display for PostGetTransactionWithCompressionInfoBodyId { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::TestAccount => f.write_str("test-account"), - } - } - } - impl ::std::str::FromStr for PostGetTransactionWithCompressionInfoBodyId { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "test-account" => Ok(Self::TestAccount), - _ => Err("invalid value".into()), - } - } - } - impl ::std::convert::TryFrom<&str> for PostGetTransactionWithCompressionInfoBodyId { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetTransactionWithCompressionInfoBodyId { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() - } + #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + #[serde(deny_unknown_fields)] + pub struct TokenAccountBalance { + pub amount: UnsignedInteger, } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetTransactionWithCompressionInfoBodyId { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() + impl TokenAccountBalance { + pub fn builder() -> builder::TokenAccountBalance { + Default::default() } } - ///The version of the JSON-RPC protocol. + ///`TokenAccountList` /// ///
JSON schema /// /// ```json ///{ - /// "description": "The version of the JSON-RPC protocol.", - /// "type": "string", - /// "enum": [ - /// "2.0" - /// ] + /// "type": "object", + /// "required": [ + /// "items" + /// ], + /// "properties": { + /// "cursor": { + /// "$ref": "#/components/schemas/Base58String" + /// }, + /// "items": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/TokenAccount" + /// } + /// } + /// } ///} /// ``` ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum PostGetTransactionWithCompressionInfoBodyJsonrpc { - #[serde(rename = "2.0")] - X20, - } - impl ::std::fmt::Display for PostGetTransactionWithCompressionInfoBodyJsonrpc { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::X20 => f.write_str("2.0"), - } - } - } - impl ::std::str::FromStr for PostGetTransactionWithCompressionInfoBodyJsonrpc { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "2.0" => Ok(Self::X20), - _ => Err("invalid value".into()), - } - } - } - impl ::std::convert::TryFrom<&str> - for PostGetTransactionWithCompressionInfoBodyJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetTransactionWithCompressionInfoBodyJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() - } + #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + pub struct TokenAccountList { + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub cursor: ::std::option::Option, + pub items: ::std::vec::Vec, } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetTransactionWithCompressionInfoBodyJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() + impl TokenAccountList { + pub fn builder() -> builder::TokenAccountList { + Default::default() } } - ///The name of the method to invoke. + ///`TokenAccountListV2` /// ///
JSON schema /// /// ```json ///{ - /// "description": "The name of the method to invoke.", - /// "type": "string", - /// "enum": [ - /// "getTransactionWithCompressionInfo" - /// ] + /// "type": "object", + /// "required": [ + /// "items" + /// ], + /// "properties": { + /// "cursor": { + /// "$ref": "#/components/schemas/Base58String" + /// }, + /// "items": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/TokenAccountV2" + /// } + /// } + /// } ///} /// ``` ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum PostGetTransactionWithCompressionInfoBodyMethod { - #[serde(rename = "getTransactionWithCompressionInfo")] - GetTransactionWithCompressionInfo, - } - impl ::std::fmt::Display for PostGetTransactionWithCompressionInfoBodyMethod { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::GetTransactionWithCompressionInfo => { - f.write_str("getTransactionWithCompressionInfo") - } - } - } - } - impl ::std::str::FromStr for PostGetTransactionWithCompressionInfoBodyMethod { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "getTransactionWithCompressionInfo" => { - Ok(Self::GetTransactionWithCompressionInfo) - } - _ => Err("invalid value".into()), - } - } - } - impl ::std::convert::TryFrom<&str> - for PostGetTransactionWithCompressionInfoBodyMethod { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetTransactionWithCompressionInfoBodyMethod { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() - } + #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + pub struct TokenAccountListV2 { + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub cursor: ::std::option::Option, + pub items: ::std::vec::Vec, } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetTransactionWithCompressionInfoBodyMethod { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() + impl TokenAccountListV2 { + pub fn builder() -> builder::TokenAccountListV2 { + Default::default() } } - ///`PostGetTransactionWithCompressionInfoBodyParams` + ///`TokenAccountV2` /// ///
JSON schema /// @@ -27907,11 +28033,15 @@ Server auto-detects account type (account, token, mint) based on program owner a ///{ /// "type": "object", /// "required": [ - /// "signature" + /// "account", + /// "tokenData" /// ], /// "properties": { - /// "signature": { - /// "$ref": "#/components/schemas/SerializableSignature" + /// "account": { + /// "$ref": "#/components/schemas/AccountV2" + /// }, + /// "tokenData": { + /// "$ref": "#/components/schemas/TokenData" /// } /// }, /// "additionalProperties": false @@ -27920,15 +28050,17 @@ Server auto-detects account type (account, token, mint) based on program owner a ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] - pub struct PostGetTransactionWithCompressionInfoBodyParams { - pub signature: SerializableSignature, + pub struct TokenAccountV2 { + pub account: AccountV2, + #[serde(rename = "tokenData")] + pub token_data: TokenData, } - impl PostGetTransactionWithCompressionInfoBodyParams { - pub fn builder() -> builder::PostGetTransactionWithCompressionInfoBodyParams { + impl TokenAccountV2 { + pub fn builder() -> builder::TokenAccountV2 { Default::default() } } - ///`PostGetTransactionWithCompressionInfoResponse` + ///`TokenBalance` /// ///
JSON schema /// @@ -27936,385 +28068,153 @@ Server auto-detects account type (account, token, mint) based on program owner a ///{ /// "type": "object", /// "required": [ - /// "id", - /// "jsonrpc" + /// "balance", + /// "mint" /// ], /// "properties": { - /// "error": { - /// "type": "object", - /// "properties": { - /// "code": { - /// "type": "integer" - /// }, - /// "message": { - /// "type": "string" - /// } - /// } - /// }, - /// "id": { - /// "description": "An ID to identify the response.", - /// "type": "string", - /// "enum": [ - /// "test-account" - /// ] - /// }, - /// "jsonrpc": { - /// "description": "The version of the JSON-RPC protocol.", - /// "type": "string", - /// "enum": [ - /// "2.0" - /// ] + /// "balance": { + /// "$ref": "#/components/schemas/UnsignedInteger" /// }, - /// "result": { - /// "description": "A Solana transaction with additional compression information", - /// "type": "object", - /// "properties": { - /// "compression_info": { - /// "type": "object", - /// "required": [ - /// "closedAccounts", - /// "openedAccounts" - /// ], - /// "properties": { - /// "closedAccounts": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/AccountWithOptionalTokenData" - /// } - /// }, - /// "openedAccounts": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/AccountWithOptionalTokenData" - /// } - /// } - /// }, - /// "additionalProperties": false - /// }, - /// "transaction": { - /// "description": "An encoded confirmed transaction with status meta", - /// "type": "object" - /// } - /// } + /// "mint": { + /// "$ref": "#/components/schemas/SerializablePubkey" /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetTransactionWithCompressionInfoResponse { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option< - PostGetTransactionWithCompressionInfoResponseError, - >, - ///An ID to identify the response. - pub id: PostGetTransactionWithCompressionInfoResponseId, - ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetTransactionWithCompressionInfoResponseJsonrpc, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub result: ::std::option::Option< - PostGetTransactionWithCompressionInfoResponseResult, - >, + pub struct TokenBalance { + pub balance: UnsignedInteger, + pub mint: SerializablePubkey, } - impl PostGetTransactionWithCompressionInfoResponse { - pub fn builder() -> builder::PostGetTransactionWithCompressionInfoResponse { + impl TokenBalance { + pub fn builder() -> builder::TokenBalance { Default::default() } } - ///`PostGetTransactionWithCompressionInfoResponseError` + ///`TokenBalanceList` /// ///
JSON schema /// /// ```json ///{ /// "type": "object", + /// "required": [ + /// "token_balances" + /// ], /// "properties": { - /// "code": { - /// "type": "integer" + /// "cursor": { + /// "$ref": "#/components/schemas/Base58String" /// }, - /// "message": { - /// "type": "string" + /// "token_balances": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/TokenBalance" + /// } /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetTransactionWithCompressionInfoResponseError { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub code: ::std::option::Option, + pub struct TokenBalanceList { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub message: ::std::option::Option<::std::string::String>, - } - impl ::std::default::Default for PostGetTransactionWithCompressionInfoResponseError { - fn default() -> Self { - Self { - code: Default::default(), - message: Default::default(), - } - } + pub cursor: ::std::option::Option, + pub token_balances: ::std::vec::Vec, } - impl PostGetTransactionWithCompressionInfoResponseError { - pub fn builder() -> builder::PostGetTransactionWithCompressionInfoResponseError { + impl TokenBalanceList { + pub fn builder() -> builder::TokenBalanceList { Default::default() } } - ///An ID to identify the response. + ///`TokenBalanceListV2` /// ///
JSON schema /// /// ```json ///{ - /// "description": "An ID to identify the response.", - /// "type": "string", - /// "enum": [ - /// "test-account" - /// ] + /// "type": "object", + /// "required": [ + /// "items" + /// ], + /// "properties": { + /// "cursor": { + /// "$ref": "#/components/schemas/Base58String" + /// }, + /// "items": { + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/TokenBalance" + /// } + /// } + /// } ///} /// ``` ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum PostGetTransactionWithCompressionInfoResponseId { - #[serde(rename = "test-account")] - TestAccount, - } - impl ::std::fmt::Display for PostGetTransactionWithCompressionInfoResponseId { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::TestAccount => f.write_str("test-account"), - } - } - } - impl ::std::str::FromStr for PostGetTransactionWithCompressionInfoResponseId { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "test-account" => Ok(Self::TestAccount), - _ => Err("invalid value".into()), - } - } - } - impl ::std::convert::TryFrom<&str> - for PostGetTransactionWithCompressionInfoResponseId { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetTransactionWithCompressionInfoResponseId { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() - } + #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + pub struct TokenBalanceListV2 { + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub cursor: ::std::option::Option, + pub items: ::std::vec::Vec, } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetTransactionWithCompressionInfoResponseId { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() + impl TokenBalanceListV2 { + pub fn builder() -> builder::TokenBalanceListV2 { + Default::default() } } - ///The version of the JSON-RPC protocol. + ///`TokenData` /// ///
JSON schema /// /// ```json ///{ - /// "description": "The version of the JSON-RPC protocol.", - /// "type": "string", - /// "enum": [ - /// "2.0" - /// ] - ///} - /// ``` - ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum PostGetTransactionWithCompressionInfoResponseJsonrpc { - #[serde(rename = "2.0")] - X20, - } - impl ::std::fmt::Display for PostGetTransactionWithCompressionInfoResponseJsonrpc { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::X20 => f.write_str("2.0"), - } - } - } - impl ::std::str::FromStr for PostGetTransactionWithCompressionInfoResponseJsonrpc { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "2.0" => Ok(Self::X20), - _ => Err("invalid value".into()), - } - } - } - impl ::std::convert::TryFrom<&str> - for PostGetTransactionWithCompressionInfoResponseJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetTransactionWithCompressionInfoResponseJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetTransactionWithCompressionInfoResponseJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - ///A Solana transaction with additional compression information - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "A Solana transaction with additional compression information", - /// "type": "object", - /// "properties": { - /// "compression_info": { - /// "type": "object", - /// "required": [ - /// "closedAccounts", - /// "openedAccounts" - /// ], - /// "properties": { - /// "closedAccounts": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/AccountWithOptionalTokenData" - /// } - /// }, - /// "openedAccounts": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/AccountWithOptionalTokenData" - /// } - /// } - /// }, - /// "additionalProperties": false - /// }, - /// "transaction": { - /// "description": "An encoded confirmed transaction with status meta", - /// "type": "object" - /// } - /// } + /// "type": "object", + /// "required": [ + /// "amount", + /// "mint", + /// "owner", + /// "state" + /// ], + /// "properties": { + /// "amount": { + /// "$ref": "#/components/schemas/UnsignedInteger" + /// }, + /// "delegate": { + /// "$ref": "#/components/schemas/SerializablePubkey" + /// }, + /// "mint": { + /// "$ref": "#/components/schemas/SerializablePubkey" + /// }, + /// "owner": { + /// "$ref": "#/components/schemas/SerializablePubkey" + /// }, + /// "state": { + /// "$ref": "#/components/schemas/AccountState" + /// }, + /// "tlv": { + /// "$ref": "#/components/schemas/Base64String" + /// } + /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetTransactionWithCompressionInfoResponseResult { + pub struct TokenData { + pub amount: UnsignedInteger, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub compression_info: ::std::option::Option< - PostGetTransactionWithCompressionInfoResponseResultCompressionInfo, - >, - ///An encoded confirmed transaction with status meta - #[serde(default, skip_serializing_if = "::serde_json::Map::is_empty")] - pub transaction: ::serde_json::Map<::std::string::String, ::serde_json::Value>, - } - impl ::std::default::Default - for PostGetTransactionWithCompressionInfoResponseResult { - fn default() -> Self { - Self { - compression_info: Default::default(), - transaction: Default::default(), - } - } - } - impl PostGetTransactionWithCompressionInfoResponseResult { - pub fn builder() -> builder::PostGetTransactionWithCompressionInfoResponseResult { - Default::default() - } - } - ///`PostGetTransactionWithCompressionInfoResponseResultCompressionInfo` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "closedAccounts", - /// "openedAccounts" - /// ], - /// "properties": { - /// "closedAccounts": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/AccountWithOptionalTokenData" - /// } - /// }, - /// "openedAccounts": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/AccountWithOptionalTokenData" - /// } - /// } - /// }, - /// "additionalProperties": false - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(deny_unknown_fields)] - pub struct PostGetTransactionWithCompressionInfoResponseResultCompressionInfo { - #[serde(rename = "closedAccounts")] - pub closed_accounts: ::std::vec::Vec, - #[serde(rename = "openedAccounts")] - pub opened_accounts: ::std::vec::Vec, + pub delegate: ::std::option::Option, + pub mint: SerializablePubkey, + pub owner: SerializablePubkey, + pub state: AccountState, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub tlv: ::std::option::Option, } - impl PostGetTransactionWithCompressionInfoResponseResultCompressionInfo { - pub fn builder() -> builder::PostGetTransactionWithCompressionInfoResponseResultCompressionInfo { + impl TokenData { + pub fn builder() -> builder::TokenData { Default::default() } } - ///`PostGetTransactionWithCompressionInfoV2Body` + ///`TreeContextInfo` /// ///
JSON schema /// @@ -28322,3891 +28222,165 @@ Server auto-detects account type (account, token, mint) based on program owner a ///{ /// "type": "object", /// "required": [ - /// "id", - /// "jsonrpc", - /// "method", - /// "params" + /// "queue", + /// "tree", + /// "treeType" /// ], /// "properties": { - /// "id": { - /// "description": "An ID to identify the request.", - /// "type": "string", - /// "enum": [ - /// "test-account" - /// ] + /// "cpiContext": { + /// "$ref": "#/components/schemas/SerializablePubkey" /// }, - /// "jsonrpc": { - /// "description": "The version of the JSON-RPC protocol.", - /// "type": "string", - /// "enum": [ - /// "2.0" - /// ] + /// "queue": { + /// "$ref": "#/components/schemas/SerializablePubkey" /// }, - /// "method": { - /// "description": "The name of the method to invoke.", - /// "type": "string", - /// "enum": [ - /// "getTransactionWithCompressionInfoV2" - /// ] + /// "tree": { + /// "$ref": "#/components/schemas/SerializablePubkey" /// }, - /// "params": { - /// "type": "object", - /// "required": [ - /// "signature" - /// ], - /// "properties": { - /// "signature": { - /// "$ref": "#/components/schemas/SerializableSignature" - /// } - /// }, - /// "additionalProperties": false + /// "treeType": { + /// "type": "integer", + /// "format": "uint16", + /// "minimum": 0.0 /// } /// } ///} /// ``` ///
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetTransactionWithCompressionInfoV2Body { - ///An ID to identify the request. - pub id: PostGetTransactionWithCompressionInfoV2BodyId, - ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetTransactionWithCompressionInfoV2BodyJsonrpc, - ///The name of the method to invoke. - pub method: PostGetTransactionWithCompressionInfoV2BodyMethod, - pub params: PostGetTransactionWithCompressionInfoV2BodyParams, + pub struct TreeContextInfo { + #[serde( + rename = "cpiContext", + default, + skip_serializing_if = "::std::option::Option::is_none" + )] + pub cpi_context: ::std::option::Option, + pub queue: SerializablePubkey, + pub tree: SerializablePubkey, + #[serde(rename = "treeType")] + pub tree_type: u16, } - impl PostGetTransactionWithCompressionInfoV2Body { - pub fn builder() -> builder::PostGetTransactionWithCompressionInfoV2Body { + impl TreeContextInfo { + pub fn builder() -> builder::TreeContextInfo { Default::default() } } - ///An ID to identify the request. + ///An Unix timestamp (seconds) /// ///
JSON schema /// /// ```json ///{ - /// "description": "An ID to identify the request.", - /// "type": "string", - /// "enum": [ - /// "test-account" - /// ] + /// "description": "An Unix timestamp (seconds)", + /// "default": 1714081554, + /// "examples": [ + /// 1714081554 + /// ], + /// "type": "integer" ///} /// ``` ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum PostGetTransactionWithCompressionInfoV2BodyId { - #[serde(rename = "test-account")] - TestAccount, - } - impl ::std::fmt::Display for PostGetTransactionWithCompressionInfoV2BodyId { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::TestAccount => f.write_str("test-account"), - } - } - } - impl ::std::str::FromStr for PostGetTransactionWithCompressionInfoV2BodyId { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "test-account" => Ok(Self::TestAccount), - _ => Err("invalid value".into()), - } - } - } - impl ::std::convert::TryFrom<&str> - for PostGetTransactionWithCompressionInfoV2BodyId { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetTransactionWithCompressionInfoV2BodyId { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetTransactionWithCompressionInfoV2BodyId { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() + #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + #[serde(transparent)] + pub struct UnixTimestamp(pub i64); + impl ::std::ops::Deref for UnixTimestamp { + type Target = i64; + fn deref(&self) -> &i64 { + &self.0 } } - ///The version of the JSON-RPC protocol. - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "The version of the JSON-RPC protocol.", - /// "type": "string", - /// "enum": [ - /// "2.0" - /// ] - ///} - /// ``` - ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum PostGetTransactionWithCompressionInfoV2BodyJsonrpc { - #[serde(rename = "2.0")] - X20, - } - impl ::std::fmt::Display for PostGetTransactionWithCompressionInfoV2BodyJsonrpc { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::X20 => f.write_str("2.0"), - } + impl ::std::convert::From for i64 { + fn from(value: UnixTimestamp) -> Self { + value.0 } } - impl ::std::str::FromStr for PostGetTransactionWithCompressionInfoV2BodyJsonrpc { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "2.0" => Ok(Self::X20), - _ => Err("invalid value".into()), - } + impl ::std::convert::From for UnixTimestamp { + fn from(value: i64) -> Self { + Self(value) } } - impl ::std::convert::TryFrom<&str> - for PostGetTransactionWithCompressionInfoV2BodyJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() + impl ::std::str::FromStr for UnixTimestamp { + type Err = ::Err; + fn from_str(value: &str) -> ::std::result::Result { + Ok(Self(value.parse()?)) } } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetTransactionWithCompressionInfoV2BodyJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { + impl ::std::convert::TryFrom<&str> for UnixTimestamp { + type Error = ::Err; + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetTransactionWithCompressionInfoV2BodyJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { + impl ::std::convert::TryFrom for UnixTimestamp { + type Error = ::Err; + fn try_from(value: String) -> ::std::result::Result { value.parse() } } - ///The name of the method to invoke. - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "The name of the method to invoke.", - /// "type": "string", - /// "enum": [ - /// "getTransactionWithCompressionInfoV2" - /// ] - ///} - /// ``` - ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum PostGetTransactionWithCompressionInfoV2BodyMethod { - #[serde(rename = "getTransactionWithCompressionInfoV2")] - GetTransactionWithCompressionInfoV2, - } - impl ::std::fmt::Display for PostGetTransactionWithCompressionInfoV2BodyMethod { + impl ::std::fmt::Display for UnixTimestamp { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::GetTransactionWithCompressionInfoV2 => { - f.write_str("getTransactionWithCompressionInfoV2") - } - } - } - } - impl ::std::str::FromStr for PostGetTransactionWithCompressionInfoV2BodyMethod { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "getTransactionWithCompressionInfoV2" => { - Ok(Self::GetTransactionWithCompressionInfoV2) - } - _ => Err("invalid value".into()), - } - } - } - impl ::std::convert::TryFrom<&str> - for PostGetTransactionWithCompressionInfoV2BodyMethod { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetTransactionWithCompressionInfoV2BodyMethod { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetTransactionWithCompressionInfoV2BodyMethod { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - ///`PostGetTransactionWithCompressionInfoV2BodyParams` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "signature" - /// ], - /// "properties": { - /// "signature": { - /// "$ref": "#/components/schemas/SerializableSignature" - /// } - /// }, - /// "additionalProperties": false - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(deny_unknown_fields)] - pub struct PostGetTransactionWithCompressionInfoV2BodyParams { - pub signature: SerializableSignature, - } - impl PostGetTransactionWithCompressionInfoV2BodyParams { - pub fn builder() -> builder::PostGetTransactionWithCompressionInfoV2BodyParams { - Default::default() + self.0.fmt(f) } } - ///`PostGetTransactionWithCompressionInfoV2Response` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "id", - /// "jsonrpc" - /// ], - /// "properties": { - /// "error": { - /// "type": "object", - /// "properties": { - /// "code": { - /// "type": "integer" - /// }, - /// "message": { - /// "type": "string" - /// } - /// } - /// }, - /// "id": { - /// "description": "An ID to identify the response.", - /// "type": "string", - /// "enum": [ - /// "test-account" - /// ] - /// }, - /// "jsonrpc": { - /// "description": "The version of the JSON-RPC protocol.", - /// "type": "string", - /// "enum": [ - /// "2.0" - /// ] - /// }, - /// "result": { - /// "description": "A Solana transaction with additional compression information", - /// "type": "object", - /// "properties": { - /// "compression_info": { - /// "type": "object", - /// "required": [ - /// "closedAccounts", - /// "openedAccounts" - /// ], - /// "properties": { - /// "closedAccounts": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/ClosedAccountWithOptionalTokenDataV2" - /// } - /// }, - /// "openedAccounts": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/AccountWithOptionalTokenDataV2" - /// } - /// } - /// }, - /// "additionalProperties": false - /// }, - /// "transaction": { - /// "description": "An encoded confirmed transaction with status meta", - /// "type": "object" - /// } - /// } - /// } - /// } - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetTransactionWithCompressionInfoV2Response { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option< - PostGetTransactionWithCompressionInfoV2ResponseError, - >, - ///An ID to identify the response. - pub id: PostGetTransactionWithCompressionInfoV2ResponseId, - ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetTransactionWithCompressionInfoV2ResponseJsonrpc, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub result: ::std::option::Option< - PostGetTransactionWithCompressionInfoV2ResponseResult, - >, - } - impl PostGetTransactionWithCompressionInfoV2Response { - pub fn builder() -> builder::PostGetTransactionWithCompressionInfoV2Response { - Default::default() - } - } - ///`PostGetTransactionWithCompressionInfoV2ResponseError` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "properties": { - /// "code": { - /// "type": "integer" - /// }, - /// "message": { - /// "type": "string" - /// } - /// } - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetTransactionWithCompressionInfoV2ResponseError { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub code: ::std::option::Option, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub message: ::std::option::Option<::std::string::String>, - } - impl ::std::default::Default - for PostGetTransactionWithCompressionInfoV2ResponseError { - fn default() -> Self { - Self { - code: Default::default(), - message: Default::default(), - } - } - } - impl PostGetTransactionWithCompressionInfoV2ResponseError { - pub fn builder() -> builder::PostGetTransactionWithCompressionInfoV2ResponseError { - Default::default() - } - } - ///An ID to identify the response. - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "An ID to identify the response.", - /// "type": "string", - /// "enum": [ - /// "test-account" - /// ] - ///} - /// ``` - ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum PostGetTransactionWithCompressionInfoV2ResponseId { - #[serde(rename = "test-account")] - TestAccount, - } - impl ::std::fmt::Display for PostGetTransactionWithCompressionInfoV2ResponseId { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::TestAccount => f.write_str("test-account"), - } - } - } - impl ::std::str::FromStr for PostGetTransactionWithCompressionInfoV2ResponseId { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "test-account" => Ok(Self::TestAccount), - _ => Err("invalid value".into()), - } - } - } - impl ::std::convert::TryFrom<&str> - for PostGetTransactionWithCompressionInfoV2ResponseId { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetTransactionWithCompressionInfoV2ResponseId { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetTransactionWithCompressionInfoV2ResponseId { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - ///The version of the JSON-RPC protocol. - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "The version of the JSON-RPC protocol.", - /// "type": "string", - /// "enum": [ - /// "2.0" - /// ] - ///} - /// ``` - ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum PostGetTransactionWithCompressionInfoV2ResponseJsonrpc { - #[serde(rename = "2.0")] - X20, - } - impl ::std::fmt::Display for PostGetTransactionWithCompressionInfoV2ResponseJsonrpc { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::X20 => f.write_str("2.0"), - } - } - } - impl ::std::str::FromStr for PostGetTransactionWithCompressionInfoV2ResponseJsonrpc { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "2.0" => Ok(Self::X20), - _ => Err("invalid value".into()), - } - } - } - impl ::std::convert::TryFrom<&str> - for PostGetTransactionWithCompressionInfoV2ResponseJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetTransactionWithCompressionInfoV2ResponseJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetTransactionWithCompressionInfoV2ResponseJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - ///A Solana transaction with additional compression information - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "A Solana transaction with additional compression information", - /// "type": "object", - /// "properties": { - /// "compression_info": { - /// "type": "object", - /// "required": [ - /// "closedAccounts", - /// "openedAccounts" - /// ], - /// "properties": { - /// "closedAccounts": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/ClosedAccountWithOptionalTokenDataV2" - /// } - /// }, - /// "openedAccounts": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/AccountWithOptionalTokenDataV2" - /// } - /// } - /// }, - /// "additionalProperties": false - /// }, - /// "transaction": { - /// "description": "An encoded confirmed transaction with status meta", - /// "type": "object" - /// } - /// } - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetTransactionWithCompressionInfoV2ResponseResult { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub compression_info: ::std::option::Option< - PostGetTransactionWithCompressionInfoV2ResponseResultCompressionInfo, - >, - ///An encoded confirmed transaction with status meta - #[serde(default, skip_serializing_if = "::serde_json::Map::is_empty")] - pub transaction: ::serde_json::Map<::std::string::String, ::serde_json::Value>, - } - impl ::std::default::Default - for PostGetTransactionWithCompressionInfoV2ResponseResult { - fn default() -> Self { - Self { - compression_info: Default::default(), - transaction: Default::default(), - } - } - } - impl PostGetTransactionWithCompressionInfoV2ResponseResult { - pub fn builder() -> builder::PostGetTransactionWithCompressionInfoV2ResponseResult { - Default::default() - } - } - ///`PostGetTransactionWithCompressionInfoV2ResponseResultCompressionInfo` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "closedAccounts", - /// "openedAccounts" - /// ], - /// "properties": { - /// "closedAccounts": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/ClosedAccountWithOptionalTokenDataV2" - /// } - /// }, - /// "openedAccounts": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/AccountWithOptionalTokenDataV2" - /// } - /// } - /// }, - /// "additionalProperties": false - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(deny_unknown_fields)] - pub struct PostGetTransactionWithCompressionInfoV2ResponseResultCompressionInfo { - #[serde(rename = "closedAccounts")] - pub closed_accounts: ::std::vec::Vec, - #[serde(rename = "openedAccounts")] - pub opened_accounts: ::std::vec::Vec, - } - impl PostGetTransactionWithCompressionInfoV2ResponseResultCompressionInfo { - pub fn builder() -> builder::PostGetTransactionWithCompressionInfoV2ResponseResultCompressionInfo { - Default::default() - } - } - ///`PostGetValidityProofBody` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "id", - /// "jsonrpc", - /// "method", - /// "params" - /// ], - /// "properties": { - /// "id": { - /// "description": "An ID to identify the request.", - /// "type": "string", - /// "enum": [ - /// "test-account" - /// ] - /// }, - /// "jsonrpc": { - /// "description": "The version of the JSON-RPC protocol.", - /// "type": "string", - /// "enum": [ - /// "2.0" - /// ] - /// }, - /// "method": { - /// "description": "The name of the method to invoke.", - /// "type": "string", - /// "enum": [ - /// "getValidityProof" - /// ] - /// }, - /// "params": { - /// "type": "object", - /// "properties": { - /// "hashes": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/Hash" - /// } - /// }, - /// "newAddressesWithTrees": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/AddressWithTree" - /// } - /// } - /// }, - /// "additionalProperties": false - /// } - /// } - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetValidityProofBody { - ///An ID to identify the request. - pub id: PostGetValidityProofBodyId, - ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetValidityProofBodyJsonrpc, - ///The name of the method to invoke. - pub method: PostGetValidityProofBodyMethod, - pub params: PostGetValidityProofBodyParams, - } - impl PostGetValidityProofBody { - pub fn builder() -> builder::PostGetValidityProofBody { - Default::default() - } - } - ///An ID to identify the request. - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "An ID to identify the request.", - /// "type": "string", - /// "enum": [ - /// "test-account" - /// ] - ///} - /// ``` - ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum PostGetValidityProofBodyId { - #[serde(rename = "test-account")] - TestAccount, - } - impl ::std::fmt::Display for PostGetValidityProofBodyId { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::TestAccount => f.write_str("test-account"), - } - } - } - impl ::std::str::FromStr for PostGetValidityProofBodyId { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "test-account" => Ok(Self::TestAccount), - _ => Err("invalid value".into()), - } - } - } - impl ::std::convert::TryFrom<&str> for PostGetValidityProofBodyId { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<&::std::string::String> for PostGetValidityProofBodyId { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<::std::string::String> for PostGetValidityProofBodyId { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - ///The version of the JSON-RPC protocol. - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "The version of the JSON-RPC protocol.", - /// "type": "string", - /// "enum": [ - /// "2.0" - /// ] - ///} - /// ``` - ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum PostGetValidityProofBodyJsonrpc { - #[serde(rename = "2.0")] - X20, - } - impl ::std::fmt::Display for PostGetValidityProofBodyJsonrpc { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::X20 => f.write_str("2.0"), - } - } - } - impl ::std::str::FromStr for PostGetValidityProofBodyJsonrpc { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "2.0" => Ok(Self::X20), - _ => Err("invalid value".into()), - } - } - } - impl ::std::convert::TryFrom<&str> for PostGetValidityProofBodyJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetValidityProofBodyJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetValidityProofBodyJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - ///The name of the method to invoke. - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "The name of the method to invoke.", - /// "type": "string", - /// "enum": [ - /// "getValidityProof" - /// ] - ///} - /// ``` - ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum PostGetValidityProofBodyMethod { - #[serde(rename = "getValidityProof")] - GetValidityProof, - } - impl ::std::fmt::Display for PostGetValidityProofBodyMethod { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::GetValidityProof => f.write_str("getValidityProof"), - } - } - } - impl ::std::str::FromStr for PostGetValidityProofBodyMethod { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "getValidityProof" => Ok(Self::GetValidityProof), - _ => Err("invalid value".into()), - } - } - } - impl ::std::convert::TryFrom<&str> for PostGetValidityProofBodyMethod { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetValidityProofBodyMethod { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetValidityProofBodyMethod { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - ///`PostGetValidityProofBodyParams` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "properties": { - /// "hashes": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/Hash" - /// } - /// }, - /// "newAddressesWithTrees": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/AddressWithTree" - /// } - /// } - /// }, - /// "additionalProperties": false - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(deny_unknown_fields)] - pub struct PostGetValidityProofBodyParams { - #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] - pub hashes: ::std::vec::Vec, - #[serde( - rename = "newAddressesWithTrees", - default, - skip_serializing_if = "::std::vec::Vec::is_empty" - )] - pub new_addresses_with_trees: ::std::vec::Vec, - } - impl ::std::default::Default for PostGetValidityProofBodyParams { - fn default() -> Self { - Self { - hashes: Default::default(), - new_addresses_with_trees: Default::default(), - } - } - } - impl PostGetValidityProofBodyParams { - pub fn builder() -> builder::PostGetValidityProofBodyParams { - Default::default() - } - } - ///`PostGetValidityProofResponse` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "id", - /// "jsonrpc" - /// ], - /// "properties": { - /// "error": { - /// "type": "object", - /// "properties": { - /// "code": { - /// "type": "integer" - /// }, - /// "message": { - /// "type": "string" - /// } - /// } - /// }, - /// "id": { - /// "description": "An ID to identify the response.", - /// "type": "string", - /// "enum": [ - /// "test-account" - /// ] - /// }, - /// "jsonrpc": { - /// "description": "The version of the JSON-RPC protocol.", - /// "type": "string", - /// "enum": [ - /// "2.0" - /// ] - /// }, - /// "result": { - /// "type": "object", - /// "required": [ - /// "context", - /// "value" - /// ], - /// "properties": { - /// "context": { - /// "$ref": "#/components/schemas/Context" - /// }, - /// "value": { - /// "$ref": "#/components/schemas/CompressedProofWithContext" - /// } - /// }, - /// "additionalProperties": false - /// } - /// } - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetValidityProofResponse { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option, - ///An ID to identify the response. - pub id: PostGetValidityProofResponseId, - ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetValidityProofResponseJsonrpc, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub result: ::std::option::Option, - } - impl PostGetValidityProofResponse { - pub fn builder() -> builder::PostGetValidityProofResponse { - Default::default() - } - } - ///`PostGetValidityProofResponseError` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "properties": { - /// "code": { - /// "type": "integer" - /// }, - /// "message": { - /// "type": "string" - /// } - /// } - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetValidityProofResponseError { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub code: ::std::option::Option, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub message: ::std::option::Option<::std::string::String>, - } - impl ::std::default::Default for PostGetValidityProofResponseError { - fn default() -> Self { - Self { - code: Default::default(), - message: Default::default(), - } - } - } - impl PostGetValidityProofResponseError { - pub fn builder() -> builder::PostGetValidityProofResponseError { - Default::default() - } - } - ///An ID to identify the response. - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "An ID to identify the response.", - /// "type": "string", - /// "enum": [ - /// "test-account" - /// ] - ///} - /// ``` - ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum PostGetValidityProofResponseId { - #[serde(rename = "test-account")] - TestAccount, - } - impl ::std::fmt::Display for PostGetValidityProofResponseId { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::TestAccount => f.write_str("test-account"), - } - } - } - impl ::std::str::FromStr for PostGetValidityProofResponseId { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "test-account" => Ok(Self::TestAccount), - _ => Err("invalid value".into()), - } - } - } - impl ::std::convert::TryFrom<&str> for PostGetValidityProofResponseId { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetValidityProofResponseId { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetValidityProofResponseId { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - ///The version of the JSON-RPC protocol. - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "The version of the JSON-RPC protocol.", - /// "type": "string", - /// "enum": [ - /// "2.0" - /// ] - ///} - /// ``` - ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum PostGetValidityProofResponseJsonrpc { - #[serde(rename = "2.0")] - X20, - } - impl ::std::fmt::Display for PostGetValidityProofResponseJsonrpc { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::X20 => f.write_str("2.0"), - } - } - } - impl ::std::str::FromStr for PostGetValidityProofResponseJsonrpc { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "2.0" => Ok(Self::X20), - _ => Err("invalid value".into()), - } - } - } - impl ::std::convert::TryFrom<&str> for PostGetValidityProofResponseJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetValidityProofResponseJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetValidityProofResponseJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - ///`PostGetValidityProofResponseResult` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "context", - /// "value" - /// ], - /// "properties": { - /// "context": { - /// "$ref": "#/components/schemas/Context" - /// }, - /// "value": { - /// "$ref": "#/components/schemas/CompressedProofWithContext" - /// } - /// }, - /// "additionalProperties": false - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(deny_unknown_fields)] - pub struct PostGetValidityProofResponseResult { - pub context: Context, - pub value: CompressedProofWithContext, - } - impl PostGetValidityProofResponseResult { - pub fn builder() -> builder::PostGetValidityProofResponseResult { - Default::default() - } - } - ///`PostGetValidityProofV2Body` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "id", - /// "jsonrpc", - /// "method", - /// "params" - /// ], - /// "properties": { - /// "id": { - /// "description": "An ID to identify the request.", - /// "type": "string", - /// "enum": [ - /// "test-account" - /// ] - /// }, - /// "jsonrpc": { - /// "description": "The version of the JSON-RPC protocol.", - /// "type": "string", - /// "enum": [ - /// "2.0" - /// ] - /// }, - /// "method": { - /// "description": "The name of the method to invoke.", - /// "type": "string", - /// "enum": [ - /// "getValidityProofV2" - /// ] - /// }, - /// "params": { - /// "type": "object", - /// "properties": { - /// "hashes": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/Hash" - /// } - /// }, - /// "newAddressesWithTrees": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/AddressWithTree" - /// } - /// } - /// }, - /// "additionalProperties": false - /// } - /// } - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetValidityProofV2Body { - ///An ID to identify the request. - pub id: PostGetValidityProofV2BodyId, - ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetValidityProofV2BodyJsonrpc, - ///The name of the method to invoke. - pub method: PostGetValidityProofV2BodyMethod, - pub params: PostGetValidityProofV2BodyParams, - } - impl PostGetValidityProofV2Body { - pub fn builder() -> builder::PostGetValidityProofV2Body { - Default::default() - } - } - ///An ID to identify the request. - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "An ID to identify the request.", - /// "type": "string", - /// "enum": [ - /// "test-account" - /// ] - ///} - /// ``` - ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum PostGetValidityProofV2BodyId { - #[serde(rename = "test-account")] - TestAccount, - } - impl ::std::fmt::Display for PostGetValidityProofV2BodyId { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::TestAccount => f.write_str("test-account"), - } - } - } - impl ::std::str::FromStr for PostGetValidityProofV2BodyId { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "test-account" => Ok(Self::TestAccount), - _ => Err("invalid value".into()), - } - } - } - impl ::std::convert::TryFrom<&str> for PostGetValidityProofV2BodyId { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetValidityProofV2BodyId { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetValidityProofV2BodyId { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - ///The version of the JSON-RPC protocol. - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "The version of the JSON-RPC protocol.", - /// "type": "string", - /// "enum": [ - /// "2.0" - /// ] - ///} - /// ``` - ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum PostGetValidityProofV2BodyJsonrpc { - #[serde(rename = "2.0")] - X20, - } - impl ::std::fmt::Display for PostGetValidityProofV2BodyJsonrpc { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::X20 => f.write_str("2.0"), - } - } - } - impl ::std::str::FromStr for PostGetValidityProofV2BodyJsonrpc { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "2.0" => Ok(Self::X20), - _ => Err("invalid value".into()), - } - } - } - impl ::std::convert::TryFrom<&str> for PostGetValidityProofV2BodyJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetValidityProofV2BodyJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetValidityProofV2BodyJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - ///The name of the method to invoke. - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "The name of the method to invoke.", - /// "type": "string", - /// "enum": [ - /// "getValidityProofV2" - /// ] - ///} - /// ``` - ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum PostGetValidityProofV2BodyMethod { - #[serde(rename = "getValidityProofV2")] - GetValidityProofV2, - } - impl ::std::fmt::Display for PostGetValidityProofV2BodyMethod { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::GetValidityProofV2 => f.write_str("getValidityProofV2"), - } - } - } - impl ::std::str::FromStr for PostGetValidityProofV2BodyMethod { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "getValidityProofV2" => Ok(Self::GetValidityProofV2), - _ => Err("invalid value".into()), - } - } - } - impl ::std::convert::TryFrom<&str> for PostGetValidityProofV2BodyMethod { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetValidityProofV2BodyMethod { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetValidityProofV2BodyMethod { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - ///`PostGetValidityProofV2BodyParams` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "properties": { - /// "hashes": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/Hash" - /// } - /// }, - /// "newAddressesWithTrees": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/AddressWithTree" - /// } - /// } - /// }, - /// "additionalProperties": false - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(deny_unknown_fields)] - pub struct PostGetValidityProofV2BodyParams { - #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] - pub hashes: ::std::vec::Vec, - #[serde( - rename = "newAddressesWithTrees", - default, - skip_serializing_if = "::std::vec::Vec::is_empty" - )] - pub new_addresses_with_trees: ::std::vec::Vec, - } - impl ::std::default::Default for PostGetValidityProofV2BodyParams { - fn default() -> Self { - Self { - hashes: Default::default(), - new_addresses_with_trees: Default::default(), - } - } - } - impl PostGetValidityProofV2BodyParams { - pub fn builder() -> builder::PostGetValidityProofV2BodyParams { - Default::default() - } - } - ///`PostGetValidityProofV2Response` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "id", - /// "jsonrpc" - /// ], - /// "properties": { - /// "error": { - /// "type": "object", - /// "properties": { - /// "code": { - /// "type": "integer" - /// }, - /// "message": { - /// "type": "string" - /// } - /// } - /// }, - /// "id": { - /// "description": "An ID to identify the response.", - /// "type": "string", - /// "enum": [ - /// "test-account" - /// ] - /// }, - /// "jsonrpc": { - /// "description": "The version of the JSON-RPC protocol.", - /// "type": "string", - /// "enum": [ - /// "2.0" - /// ] - /// }, - /// "result": { - /// "type": "object", - /// "required": [ - /// "context", - /// "value" - /// ], - /// "properties": { - /// "context": { - /// "$ref": "#/components/schemas/Context" - /// }, - /// "value": { - /// "$ref": "#/components/schemas/CompressedProofWithContextV2" - /// } - /// }, - /// "additionalProperties": false - /// } - /// } - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetValidityProofV2Response { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option, - ///An ID to identify the response. - pub id: PostGetValidityProofV2ResponseId, - ///The version of the JSON-RPC protocol. - pub jsonrpc: PostGetValidityProofV2ResponseJsonrpc, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub result: ::std::option::Option, - } - impl PostGetValidityProofV2Response { - pub fn builder() -> builder::PostGetValidityProofV2Response { - Default::default() - } - } - ///`PostGetValidityProofV2ResponseError` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "properties": { - /// "code": { - /// "type": "integer" - /// }, - /// "message": { - /// "type": "string" - /// } - /// } - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct PostGetValidityProofV2ResponseError { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub code: ::std::option::Option, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub message: ::std::option::Option<::std::string::String>, - } - impl ::std::default::Default for PostGetValidityProofV2ResponseError { - fn default() -> Self { - Self { - code: Default::default(), - message: Default::default(), - } - } - } - impl PostGetValidityProofV2ResponseError { - pub fn builder() -> builder::PostGetValidityProofV2ResponseError { - Default::default() - } - } - ///An ID to identify the response. - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "An ID to identify the response.", - /// "type": "string", - /// "enum": [ - /// "test-account" - /// ] - ///} - /// ``` - ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum PostGetValidityProofV2ResponseId { - #[serde(rename = "test-account")] - TestAccount, - } - impl ::std::fmt::Display for PostGetValidityProofV2ResponseId { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::TestAccount => f.write_str("test-account"), - } - } - } - impl ::std::str::FromStr for PostGetValidityProofV2ResponseId { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "test-account" => Ok(Self::TestAccount), - _ => Err("invalid value".into()), - } - } - } - impl ::std::convert::TryFrom<&str> for PostGetValidityProofV2ResponseId { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetValidityProofV2ResponseId { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetValidityProofV2ResponseId { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - ///The version of the JSON-RPC protocol. - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "The version of the JSON-RPC protocol.", - /// "type": "string", - /// "enum": [ - /// "2.0" - /// ] - ///} - /// ``` - ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum PostGetValidityProofV2ResponseJsonrpc { - #[serde(rename = "2.0")] - X20, - } - impl ::std::fmt::Display for PostGetValidityProofV2ResponseJsonrpc { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::X20 => f.write_str("2.0"), - } - } - } - impl ::std::str::FromStr for PostGetValidityProofV2ResponseJsonrpc { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "2.0" => Ok(Self::X20), - _ => Err("invalid value".into()), - } - } - } - impl ::std::convert::TryFrom<&str> for PostGetValidityProofV2ResponseJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<&::std::string::String> - for PostGetValidityProofV2ResponseJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<::std::string::String> - for PostGetValidityProofV2ResponseJsonrpc { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - ///`PostGetValidityProofV2ResponseResult` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "context", - /// "value" - /// ], - /// "properties": { - /// "context": { - /// "$ref": "#/components/schemas/Context" - /// }, - /// "value": { - /// "$ref": "#/components/schemas/CompressedProofWithContextV2" - /// } - /// }, - /// "additionalProperties": false - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(deny_unknown_fields)] - pub struct PostGetValidityProofV2ResponseResult { - pub context: Context, - pub value: CompressedProofWithContextV2, - } - impl PostGetValidityProofV2ResponseResult { - pub fn builder() -> builder::PostGetValidityProofV2ResponseResult { - Default::default() - } - } - ///`QueueInfo` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "queue", - /// "queueSize", - /// "queueType", - /// "tree" - /// ], - /// "properties": { - /// "queue": { - /// "type": "string" - /// }, - /// "queueSize": { - /// "type": "integer", - /// "format": "uint64", - /// "minimum": 0.0 - /// }, - /// "queueType": { - /// "type": "integer", - /// "format": "uint8", - /// "minimum": 0.0 - /// }, - /// "tree": { - /// "type": "string" - /// } - /// } - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct QueueInfo { - pub queue: ::std::string::String, - #[serde(rename = "queueSize")] - pub queue_size: u64, - #[serde(rename = "queueType")] - pub queue_type: u8, - pub tree: ::std::string::String, - } - impl QueueInfo { - pub fn builder() -> builder::QueueInfo { - Default::default() - } - } - ///Parameters for requesting queue elements - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "Parameters for requesting queue elements", - /// "type": "object", - /// "required": [ - /// "limit" - /// ], - /// "properties": { - /// "limit": { - /// "type": "integer", - /// "format": "uint16", - /// "minimum": 0.0 - /// }, - /// "startIndex": { - /// "type": [ - /// "integer", - /// "null" - /// ], - /// "format": "uint64", - /// "minimum": 0.0 - /// }, - /// "zkpBatchSize": { - /// "type": [ - /// "integer", - /// "null" - /// ], - /// "format": "uint16", - /// "minimum": 0.0 - /// } - /// }, - /// "additionalProperties": false - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(deny_unknown_fields)] - pub struct QueueRequest { - pub limit: u16, - #[serde( - rename = "startIndex", - default, - skip_serializing_if = "::std::option::Option::is_none" - )] - pub start_index: ::std::option::Option, - #[serde( - rename = "zkpBatchSize", - default, - skip_serializing_if = "::std::option::Option::is_none" - )] - pub zkp_batch_size: ::std::option::Option, - } - impl QueueRequest { - pub fn builder() -> builder::QueueRequest { - Default::default() - } - } - ///`RootIndex` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "proveByIndex", - /// "rootIndex" - /// ], - /// "properties": { - /// "proveByIndex": { - /// "type": "boolean" - /// }, - /// "rootIndex": { - /// "type": "integer", - /// "format": "uint64", - /// "minimum": 0.0 - /// } - /// } - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct RootIndex { - #[serde(rename = "proveByIndex")] - pub prove_by_index: bool, - #[serde(rename = "rootIndex")] - pub root_index: u64, - } - impl RootIndex { - pub fn builder() -> builder::RootIndex { - Default::default() - } - } - ///A Solana public key represented as a base58 string. - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "A Solana public key represented as a base58 string.", - /// "default": "111FJo4zLAGU9nzTWa6EnbV4VAmtG4FR8kcokrtZYr", - /// "examples": [ - /// "111FJo4zLAGU9nzTWa6EnbV4VAmtG4FR8kcokrtZYr" - /// ], - /// "type": "string" - ///} - /// ``` - ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - #[serde(transparent)] - pub struct SerializablePubkey(pub ::std::string::String); - impl ::std::ops::Deref for SerializablePubkey { - type Target = ::std::string::String; - fn deref(&self) -> &::std::string::String { - &self.0 - } - } - impl ::std::convert::From for ::std::string::String { - fn from(value: SerializablePubkey) -> Self { - value.0 - } - } - impl ::std::convert::From<::std::string::String> for SerializablePubkey { - fn from(value: ::std::string::String) -> Self { - Self(value) - } - } - impl ::std::str::FromStr for SerializablePubkey { - type Err = ::std::convert::Infallible; - fn from_str(value: &str) -> ::std::result::Result { - Ok(Self(value.to_string())) - } - } - impl ::std::fmt::Display for SerializablePubkey { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - self.0.fmt(f) - } - } - ///A Solana transaction signature. - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "A Solana transaction signature.", - /// "default": "5J8H5sTvEhnGcB4R8K1n7mfoiWUD9RzPVGES7e3WxC7c", - /// "examples": [ - /// "5J8H5sTvEhnGcB4R8K1n7mfoiWUD9RzPVGES7e3WxC7c" - /// ], - /// "type": "string" - ///} - /// ``` - ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - #[serde(transparent)] - pub struct SerializableSignature(pub ::std::string::String); - impl ::std::ops::Deref for SerializableSignature { - type Target = ::std::string::String; - fn deref(&self) -> &::std::string::String { - &self.0 - } - } - impl ::std::convert::From for ::std::string::String { - fn from(value: SerializableSignature) -> Self { - value.0 - } - } - impl ::std::convert::From<::std::string::String> for SerializableSignature { - fn from(value: ::std::string::String) -> Self { - Self(value) - } - } - impl ::std::str::FromStr for SerializableSignature { - type Err = ::std::convert::Infallible; - fn from_str(value: &str) -> ::std::result::Result { - Ok(Self(value.to_string())) - } - } - impl ::std::fmt::Display for SerializableSignature { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - self.0.fmt(f) - } - } - ///`SignatureInfo` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "blockTime", - /// "signature", - /// "slot" - /// ], - /// "properties": { - /// "blockTime": { - /// "$ref": "#/components/schemas/UnixTimestamp" - /// }, - /// "signature": { - /// "$ref": "#/components/schemas/SerializableSignature" - /// }, - /// "slot": { - /// "$ref": "#/components/schemas/UnsignedInteger" - /// } - /// } - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct SignatureInfo { - #[serde(rename = "blockTime")] - pub block_time: UnixTimestamp, - pub signature: SerializableSignature, - pub slot: UnsignedInteger, - } - impl SignatureInfo { - pub fn builder() -> builder::SignatureInfo { - Default::default() - } - } - ///`SignatureInfoList` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "items" - /// ], - /// "properties": { - /// "items": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/SignatureInfo" - /// } - /// } - /// } - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct SignatureInfoList { - pub items: ::std::vec::Vec, - } - impl SignatureInfoList { - pub fn builder() -> builder::SignatureInfoList { - Default::default() - } - } - ///`SignatureInfoListWithError` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "items" - /// ], - /// "properties": { - /// "items": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/SignatureInfoWithError" - /// } - /// } - /// } - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct SignatureInfoListWithError { - pub items: ::std::vec::Vec, - } - impl SignatureInfoListWithError { - pub fn builder() -> builder::SignatureInfoListWithError { - Default::default() - } - } - ///`SignatureInfoWithError` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "blockTime", - /// "signature", - /// "slot" - /// ], - /// "properties": { - /// "blockTime": { - /// "$ref": "#/components/schemas/UnixTimestamp" - /// }, - /// "error": { - /// "type": [ - /// "string", - /// "null" - /// ] - /// }, - /// "signature": { - /// "$ref": "#/components/schemas/SerializableSignature" - /// }, - /// "slot": { - /// "$ref": "#/components/schemas/UnsignedInteger" - /// } - /// } - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct SignatureInfoWithError { - #[serde(rename = "blockTime")] - pub block_time: UnixTimestamp, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub error: ::std::option::Option<::std::string::String>, - pub signature: SerializableSignature, - pub slot: UnsignedInteger, - } - impl SignatureInfoWithError { - pub fn builder() -> builder::SignatureInfoWithError { - Default::default() - } - } - ///Nested Solana account fields (matches getAccountInfo shape) - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "Nested Solana account fields (matches getAccountInfo shape)", - /// "type": "object", - /// "required": [ - /// "data", - /// "executable", - /// "lamports", - /// "owner", - /// "rentEpoch", - /// "space" - /// ], - /// "properties": { - /// "data": { - /// "$ref": "#/components/schemas/Base64String" - /// }, - /// "executable": { - /// "type": "boolean" - /// }, - /// "lamports": { - /// "$ref": "#/components/schemas/UnsignedInteger" - /// }, - /// "owner": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// }, - /// "rentEpoch": { - /// "$ref": "#/components/schemas/UnsignedInteger" - /// }, - /// "space": { - /// "$ref": "#/components/schemas/UnsignedInteger" - /// } - /// } - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct SolanaAccountData { - pub data: Base64String, - pub executable: bool, - pub lamports: UnsignedInteger, - pub owner: SerializablePubkey, - #[serde(rename = "rentEpoch")] - pub rent_epoch: UnsignedInteger, - pub space: UnsignedInteger, - } - impl SolanaAccountData { - pub fn builder() -> builder::SolanaAccountData { - Default::default() - } - } - ///State queue data with shared tree nodes for output and input queues - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "State queue data with shared tree nodes for output and input queues", - /// "type": "object", - /// "required": [ - /// "initialRoot", - /// "rootSeq" - /// ], - /// "properties": { - /// "initialRoot": { - /// "$ref": "#/components/schemas/Hash" - /// }, - /// "inputQueue": { - /// "$ref": "#/components/schemas/InputQueueData" - /// }, - /// "nodes": { - /// "description": "Shared deduplicated tree nodes for state queues (output + input)", - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/Node" - /// } - /// }, - /// "outputQueue": { - /// "$ref": "#/components/schemas/OutputQueueData" - /// }, - /// "rootSeq": { - /// "description": "Sequence number of the root", - /// "type": "integer", - /// "format": "uint64", - /// "minimum": 0.0 - /// } - /// }, - /// "additionalProperties": false - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(deny_unknown_fields)] - pub struct StateQueueData { - #[serde(rename = "initialRoot")] - pub initial_root: Hash, - #[serde( - rename = "inputQueue", - default, - skip_serializing_if = "::std::option::Option::is_none" - )] - pub input_queue: ::std::option::Option, - ///Shared deduplicated tree nodes for state queues (output + input) - #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] - pub nodes: ::std::vec::Vec, - #[serde( - rename = "outputQueue", - default, - skip_serializing_if = "::std::option::Option::is_none" - )] - pub output_queue: ::std::option::Option, - ///Sequence number of the root - #[serde(rename = "rootSeq")] - pub root_seq: u64, - } - impl StateQueueData { - pub fn builder() -> builder::StateQueueData { - Default::default() - } - } - ///`TokenAccount` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "account", - /// "tokenData" - /// ], - /// "properties": { - /// "account": { - /// "$ref": "#/components/schemas/Account" - /// }, - /// "tokenData": { - /// "$ref": "#/components/schemas/TokenData" - /// } - /// }, - /// "additionalProperties": false - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(deny_unknown_fields)] - pub struct TokenAccount { - pub account: Account, - #[serde(rename = "tokenData")] - pub token_data: TokenData, - } - impl TokenAccount { - pub fn builder() -> builder::TokenAccount { - Default::default() - } - } - ///`TokenAccountBalance` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "amount" - /// ], - /// "properties": { - /// "amount": { - /// "$ref": "#/components/schemas/UnsignedInteger" - /// } - /// }, - /// "additionalProperties": false - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(deny_unknown_fields)] - pub struct TokenAccountBalance { - pub amount: UnsignedInteger, - } - impl TokenAccountBalance { - pub fn builder() -> builder::TokenAccountBalance { - Default::default() - } - } - ///`TokenAccountInterface` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "allOf": [ - /// { - /// "$ref": "#/components/schemas/AccountInterface" - /// }, - /// { - /// "type": "object", - /// "required": [ - /// "tokenData" - /// ], - /// "properties": { - /// "tokenData": { - /// "$ref": "#/components/schemas/TokenData" - /// } - /// } - /// } - /// ] - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct TokenAccountInterface { - pub account: SolanaAccountData, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub cold: ::std::option::Option, - pub key: SerializablePubkey, - #[serde(rename = "tokenData")] - pub token_data: TokenData, - } - impl TokenAccountInterface { - pub fn builder() -> builder::TokenAccountInterface { - Default::default() - } - } - ///`TokenAccountList` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "items" - /// ], - /// "properties": { - /// "cursor": { - /// "$ref": "#/components/schemas/Base58String" - /// }, - /// "items": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/TokenAccount" - /// } - /// } - /// } - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct TokenAccountList { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub cursor: ::std::option::Option, - pub items: ::std::vec::Vec, - } - impl TokenAccountList { - pub fn builder() -> builder::TokenAccountList { - Default::default() - } - } - ///`TokenAccountListV2` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "items" - /// ], - /// "properties": { - /// "cursor": { - /// "$ref": "#/components/schemas/Base58String" - /// }, - /// "items": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/TokenAccountV2" - /// } - /// } - /// } - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct TokenAccountListV2 { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub cursor: ::std::option::Option, - pub items: ::std::vec::Vec, - } - impl TokenAccountListV2 { - pub fn builder() -> builder::TokenAccountListV2 { - Default::default() - } - } - ///`TokenAccountV2` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "account", - /// "tokenData" - /// ], - /// "properties": { - /// "account": { - /// "$ref": "#/components/schemas/AccountV2" - /// }, - /// "tokenData": { - /// "$ref": "#/components/schemas/TokenData" - /// } - /// }, - /// "additionalProperties": false - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(deny_unknown_fields)] - pub struct TokenAccountV2 { - pub account: AccountV2, - #[serde(rename = "tokenData")] - pub token_data: TokenData, - } - impl TokenAccountV2 { - pub fn builder() -> builder::TokenAccountV2 { - Default::default() - } - } - ///`TokenBalance` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "balance", - /// "mint" - /// ], - /// "properties": { - /// "balance": { - /// "$ref": "#/components/schemas/UnsignedInteger" - /// }, - /// "mint": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// } - /// } - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct TokenBalance { - pub balance: UnsignedInteger, - pub mint: SerializablePubkey, - } - impl TokenBalance { - pub fn builder() -> builder::TokenBalance { - Default::default() - } - } - ///`TokenBalanceList` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "token_balances" - /// ], - /// "properties": { - /// "cursor": { - /// "$ref": "#/components/schemas/Base58String" - /// }, - /// "token_balances": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/TokenBalance" - /// } - /// } - /// } - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct TokenBalanceList { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub cursor: ::std::option::Option, - pub token_balances: ::std::vec::Vec, - } - impl TokenBalanceList { - pub fn builder() -> builder::TokenBalanceList { - Default::default() - } - } - ///`TokenBalanceListV2` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "items" - /// ], - /// "properties": { - /// "cursor": { - /// "$ref": "#/components/schemas/Base58String" - /// }, - /// "items": { - /// "type": "array", - /// "items": { - /// "$ref": "#/components/schemas/TokenBalance" - /// } - /// } - /// } - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct TokenBalanceListV2 { - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub cursor: ::std::option::Option, - pub items: ::std::vec::Vec, - } - impl TokenBalanceListV2 { - pub fn builder() -> builder::TokenBalanceListV2 { - Default::default() - } - } - ///`TokenData` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "amount", - /// "mint", - /// "owner", - /// "state" - /// ], - /// "properties": { - /// "amount": { - /// "$ref": "#/components/schemas/UnsignedInteger" - /// }, - /// "delegate": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// }, - /// "mint": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// }, - /// "owner": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// }, - /// "state": { - /// "$ref": "#/components/schemas/AccountState" - /// }, - /// "tlv": { - /// "$ref": "#/components/schemas/Base64String" - /// } - /// } - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct TokenData { - pub amount: UnsignedInteger, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub delegate: ::std::option::Option, - pub mint: SerializablePubkey, - pub owner: SerializablePubkey, - pub state: AccountState, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub tlv: ::std::option::Option, - } - impl TokenData { - pub fn builder() -> builder::TokenData { - Default::default() - } - } - ///`TreeContextInfo` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "type": "object", - /// "required": [ - /// "queue", - /// "tree", - /// "treeType" - /// ], - /// "properties": { - /// "cpiContext": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// }, - /// "queue": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// }, - /// "tree": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// }, - /// "treeType": { - /// "type": "integer", - /// "format": "uint16", - /// "minimum": 0.0 - /// } - /// } - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct TreeContextInfo { - #[serde( - rename = "cpiContext", - default, - skip_serializing_if = "::std::option::Option::is_none" - )] - pub cpi_context: ::std::option::Option, - pub queue: SerializablePubkey, - pub tree: SerializablePubkey, - #[serde(rename = "treeType")] - pub tree_type: u16, - } - impl TreeContextInfo { - pub fn builder() -> builder::TreeContextInfo { - Default::default() - } - } - ///Merkle tree info for compressed accounts - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "Merkle tree info for compressed accounts", - /// "type": "object", - /// "required": [ - /// "queue", - /// "slotCreated", - /// "tree", - /// "treeType" - /// ], - /// "properties": { - /// "queue": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// }, - /// "seq": { - /// "$ref": "#/components/schemas/UnsignedInteger" - /// }, - /// "slotCreated": { - /// "$ref": "#/components/schemas/UnsignedInteger" - /// }, - /// "tree": { - /// "$ref": "#/components/schemas/SerializablePubkey" - /// }, - /// "treeType": { - /// "$ref": "#/components/schemas/TreeType" - /// } - /// } - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - pub struct TreeInfo { - pub queue: SerializablePubkey, - #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub seq: ::std::option::Option, - #[serde(rename = "slotCreated")] - pub slot_created: UnsignedInteger, - pub tree: SerializablePubkey, - #[serde(rename = "treeType")] - pub tree_type: TreeType, - } - impl TreeInfo { - pub fn builder() -> builder::TreeInfo { - Default::default() - } - } - /**Tree type enum matching light-protocol's TreeType. -Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "Tree type enum matching light-protocol's TreeType.\nValues match light-compressed-account::TreeType: StateV1=1, StateV2=3", - /// "type": "string", - /// "enum": [ - /// "stateV1", - /// "stateV2" - /// ] - ///} - /// ``` - ///
- #[derive( - ::serde::Deserialize, - ::serde::Serialize, - Clone, - Copy, - Debug, - Eq, - Hash, - Ord, - PartialEq, - PartialOrd - )] - pub enum TreeType { - #[serde(rename = "stateV1")] - StateV1, - #[serde(rename = "stateV2")] - StateV2, - } - impl ::std::fmt::Display for TreeType { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - match *self { - Self::StateV1 => f.write_str("stateV1"), - Self::StateV2 => f.write_str("stateV2"), - } - } - } - impl ::std::str::FromStr for TreeType { - type Err = self::error::ConversionError; - fn from_str( - value: &str, - ) -> ::std::result::Result { - match value { - "stateV1" => Ok(Self::StateV1), - "stateV2" => Ok(Self::StateV2), - _ => Err("invalid value".into()), - } - } - } - impl ::std::convert::TryFrom<&str> for TreeType { - type Error = self::error::ConversionError; - fn try_from( - value: &str, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<&::std::string::String> for TreeType { - type Error = self::error::ConversionError; - fn try_from( - value: &::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom<::std::string::String> for TreeType { - type Error = self::error::ConversionError; - fn try_from( - value: ::std::string::String, - ) -> ::std::result::Result { - value.parse() - } - } - ///An Unix timestamp (seconds) - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "description": "An Unix timestamp (seconds)", - /// "default": 1714081554, - /// "examples": [ - /// 1714081554 - /// ], - /// "type": "integer" - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(transparent)] - pub struct UnixTimestamp(pub i64); - impl ::std::ops::Deref for UnixTimestamp { - type Target = i64; - fn deref(&self) -> &i64 { - &self.0 - } - } - impl ::std::convert::From for i64 { - fn from(value: UnixTimestamp) -> Self { - value.0 - } - } - impl ::std::convert::From for UnixTimestamp { - fn from(value: i64) -> Self { - Self(value) - } - } - impl ::std::str::FromStr for UnixTimestamp { - type Err = ::Err; - fn from_str(value: &str) -> ::std::result::Result { - Ok(Self(value.parse()?)) - } - } - impl ::std::convert::TryFrom<&str> for UnixTimestamp { - type Error = ::Err; - fn try_from(value: &str) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom for UnixTimestamp { - type Error = ::Err; - fn try_from(value: String) -> ::std::result::Result { - value.parse() - } - } - impl ::std::fmt::Display for UnixTimestamp { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - self.0.fmt(f) - } - } - ///`UnsignedInteger` - /// - ///
JSON schema - /// - /// ```json - ///{ - /// "default": 100, - /// "examples": [ - /// 100 - /// ], - /// "type": "integer", - /// "format": "uint64" - ///} - /// ``` - ///
- #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] - #[serde(transparent)] - pub struct UnsignedInteger(pub u64); - impl ::std::ops::Deref for UnsignedInteger { - type Target = u64; - fn deref(&self) -> &u64 { - &self.0 - } - } - impl ::std::convert::From for u64 { - fn from(value: UnsignedInteger) -> Self { - value.0 - } - } - impl ::std::convert::From for UnsignedInteger { - fn from(value: u64) -> Self { - Self(value) - } - } - impl ::std::str::FromStr for UnsignedInteger { - type Err = ::Err; - fn from_str(value: &str) -> ::std::result::Result { - Ok(Self(value.parse()?)) - } - } - impl ::std::convert::TryFrom<&str> for UnsignedInteger { - type Error = ::Err; - fn try_from(value: &str) -> ::std::result::Result { - value.parse() - } - } - impl ::std::convert::TryFrom for UnsignedInteger { - type Error = ::Err; - fn try_from(value: String) -> ::std::result::Result { - value.parse() - } - } - impl ::std::fmt::Display for UnsignedInteger { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - self.0.fmt(f) - } - } - /// Types for composing complex structures. - pub mod builder { - #[derive(Clone, Debug)] - pub struct Account { - address: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - data: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - hash: ::std::result::Result, - lamports: ::std::result::Result< - super::UnsignedInteger, - ::std::string::String, - >, - leaf_index: ::std::result::Result< - super::UnsignedInteger, - ::std::string::String, - >, - owner: ::std::result::Result< - super::SerializablePubkey, - ::std::string::String, - >, - seq: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - slot_created: ::std::result::Result< - super::UnsignedInteger, - ::std::string::String, - >, - tree: ::std::result::Result< - super::SerializablePubkey, - ::std::string::String, - >, - } - impl ::std::default::Default for Account { - fn default() -> Self { - Self { - address: Ok(Default::default()), - data: Ok(Default::default()), - hash: Err("no value supplied for hash".to_string()), - lamports: Err("no value supplied for lamports".to_string()), - leaf_index: Err("no value supplied for leaf_index".to_string()), - owner: Err("no value supplied for owner".to_string()), - seq: Ok(Default::default()), - slot_created: Err("no value supplied for slot_created".to_string()), - tree: Err("no value supplied for tree".to_string()), - } - } - } - impl Account { - pub fn address(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - ::std::option::Option, - >, - T::Error: ::std::fmt::Display, - { - self.address = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for address: {e}") - }); - self - } - pub fn data(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::option::Option>, - T::Error: ::std::fmt::Display, - { - self.data = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for data: {e}") - }); - self - } - pub fn hash(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.hash = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for hash: {e}") - }); - self - } - pub fn lamports(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.lamports = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for lamports: {e}") - }); - self - } - pub fn leaf_index(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.leaf_index = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for leaf_index: {e}") - }); - self - } - pub fn owner(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.owner = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for owner: {e}") - }); - self - } - pub fn seq(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - ::std::option::Option, - >, - T::Error: ::std::fmt::Display, - { - self.seq = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for seq: {e}") - }); - self - } - pub fn slot_created(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.slot_created = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for slot_created: {e}") - }); - self - } - pub fn tree(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.tree = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for tree: {e}") - }); - self - } - } - impl ::std::convert::TryFrom for super::Account { - type Error = super::error::ConversionError; - fn try_from( - value: Account, - ) -> ::std::result::Result { - Ok(Self { - address: value.address?, - data: value.data?, - hash: value.hash?, - lamports: value.lamports?, - leaf_index: value.leaf_index?, - owner: value.owner?, - seq: value.seq?, - slot_created: value.slot_created?, - tree: value.tree?, - }) - } - } - impl ::std::convert::From for Account { - fn from(value: super::Account) -> Self { - Self { - address: Ok(value.address), - data: Ok(value.data), - hash: Ok(value.hash), - lamports: Ok(value.lamports), - leaf_index: Ok(value.leaf_index), - owner: Ok(value.owner), - seq: Ok(value.seq), - slot_created: Ok(value.slot_created), - tree: Ok(value.tree), - } - } - } - #[derive(Clone, Debug)] - pub struct AccountContext { - in_output_queue: ::std::result::Result, - nullified_in_tree: ::std::result::Result, - nullifier: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - nullifier_queue_index: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - queue: ::std::result::Result< - super::SerializablePubkey, - ::std::string::String, - >, - spent: ::std::result::Result, - tree_type: ::std::result::Result, - tx_hash: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - } - impl ::std::default::Default for AccountContext { - fn default() -> Self { - Self { - in_output_queue: Err( - "no value supplied for in_output_queue".to_string(), - ), - nullified_in_tree: Err( - "no value supplied for nullified_in_tree".to_string(), - ), - nullifier: Ok(Default::default()), - nullifier_queue_index: Ok(Default::default()), - queue: Err("no value supplied for queue".to_string()), - spent: Err("no value supplied for spent".to_string()), - tree_type: Err("no value supplied for tree_type".to_string()), - tx_hash: Ok(Default::default()), - } - } - } - impl AccountContext { - pub fn in_output_queue(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.in_output_queue = value - .try_into() - .map_err(|e| { - format!( - "error converting supplied value for in_output_queue: {e}" - ) - }); - self - } - pub fn nullified_in_tree(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.nullified_in_tree = value - .try_into() - .map_err(|e| { - format!( - "error converting supplied value for nullified_in_tree: {e}" - ) - }); - self - } - pub fn nullifier(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::option::Option>, - T::Error: ::std::fmt::Display, - { - self.nullifier = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for nullifier: {e}") - }); - self - } - pub fn nullifier_queue_index(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - ::std::option::Option, - >, - T::Error: ::std::fmt::Display, - { - self.nullifier_queue_index = value - .try_into() - .map_err(|e| { - format!( - "error converting supplied value for nullifier_queue_index: {e}" - ) - }); - self - } - pub fn queue(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.queue = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for queue: {e}") - }); - self - } - pub fn spent(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.spent = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for spent: {e}") - }); - self - } - pub fn tree_type(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.tree_type = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for tree_type: {e}") - }); - self - } - pub fn tx_hash(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::option::Option>, - T::Error: ::std::fmt::Display, - { - self.tx_hash = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for tx_hash: {e}") - }); - self - } - } - impl ::std::convert::TryFrom for super::AccountContext { - type Error = super::error::ConversionError; - fn try_from( - value: AccountContext, - ) -> ::std::result::Result { - Ok(Self { - in_output_queue: value.in_output_queue?, - nullified_in_tree: value.nullified_in_tree?, - nullifier: value.nullifier?, - nullifier_queue_index: value.nullifier_queue_index?, - queue: value.queue?, - spent: value.spent?, - tree_type: value.tree_type?, - tx_hash: value.tx_hash?, - }) - } - } - impl ::std::convert::From for AccountContext { - fn from(value: super::AccountContext) -> Self { - Self { - in_output_queue: Ok(value.in_output_queue), - nullified_in_tree: Ok(value.nullified_in_tree), - nullifier: Ok(value.nullifier), - nullifier_queue_index: Ok(value.nullifier_queue_index), - queue: Ok(value.queue), - spent: Ok(value.spent), - tree_type: Ok(value.tree_type), - tx_hash: Ok(value.tx_hash), - } - } - } - #[derive(Clone, Debug)] - pub struct AccountData { - data: ::std::result::Result, - data_hash: ::std::result::Result, - discriminator: ::std::result::Result< - super::UnsignedInteger, - ::std::string::String, - >, - } - impl ::std::default::Default for AccountData { - fn default() -> Self { - Self { - data: Err("no value supplied for data".to_string()), - data_hash: Err("no value supplied for data_hash".to_string()), - discriminator: Err("no value supplied for discriminator".to_string()), - } - } - } - impl AccountData { - pub fn data(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.data = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for data: {e}") - }); - self - } - pub fn data_hash(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.data_hash = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for data_hash: {e}") - }); - self - } - pub fn discriminator(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.discriminator = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for discriminator: {e}") - }); - self - } - } - impl ::std::convert::TryFrom for super::AccountData { - type Error = super::error::ConversionError; - fn try_from( - value: AccountData, - ) -> ::std::result::Result { - Ok(Self { - data: value.data?, - data_hash: value.data_hash?, - discriminator: value.discriminator?, - }) - } - } - impl ::std::convert::From for AccountData { - fn from(value: super::AccountData) -> Self { - Self { - data: Ok(value.data), - data_hash: Ok(value.data_hash), - discriminator: Ok(value.discriminator), - } - } - } - #[derive(Clone, Debug)] - pub struct AccountInterface { - account: ::std::result::Result< - super::SolanaAccountData, - ::std::string::String, - >, - cold: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - key: ::std::result::Result, - } - impl ::std::default::Default for AccountInterface { - fn default() -> Self { - Self { - account: Err("no value supplied for account".to_string()), - cold: Ok(Default::default()), - key: Err("no value supplied for key".to_string()), - } - } - } - impl AccountInterface { - pub fn account(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.account = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for account: {e}") - }); - self - } - pub fn cold(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::option::Option>, - T::Error: ::std::fmt::Display, - { - self.cold = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for cold: {e}") - }); - self - } - pub fn key(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.key = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for key: {e}") - }); - self - } - } - impl ::std::convert::TryFrom for super::AccountInterface { - type Error = super::error::ConversionError; - fn try_from( - value: AccountInterface, - ) -> ::std::result::Result { - Ok(Self { - account: value.account?, - cold: value.cold?, - key: value.key?, - }) - } - } - impl ::std::convert::From for AccountInterface { - fn from(value: super::AccountInterface) -> Self { - Self { - account: Ok(value.account), - cold: Ok(value.cold), - key: Ok(value.key), - } - } - } - #[derive(Clone, Debug)] - pub struct AccountList { - items: ::std::result::Result< - ::std::vec::Vec<::std::option::Option>, - ::std::string::String, - >, - } - impl ::std::default::Default for AccountList { - fn default() -> Self { - Self { - items: Err("no value supplied for items".to_string()), - } - } - } - impl AccountList { - pub fn items(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - ::std::vec::Vec<::std::option::Option>, - >, - T::Error: ::std::fmt::Display, - { - self.items = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for items: {e}") - }); - self - } - } - impl ::std::convert::TryFrom for super::AccountList { - type Error = super::error::ConversionError; - fn try_from( - value: AccountList, - ) -> ::std::result::Result { - Ok(Self { items: value.items? }) - } - } - impl ::std::convert::From for AccountList { - fn from(value: super::AccountList) -> Self { - Self { items: Ok(value.items) } - } - } - #[derive(Clone, Debug)] - pub struct AccountListV2 { - items: ::std::result::Result< - ::std::vec::Vec<::std::option::Option>, - ::std::string::String, - >, - } - impl ::std::default::Default for AccountListV2 { - fn default() -> Self { - Self { - items: Err("no value supplied for items".to_string()), - } - } - } - impl AccountListV2 { - pub fn items(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - ::std::vec::Vec<::std::option::Option>, - >, - T::Error: ::std::fmt::Display, - { - self.items = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for items: {e}") - }); - self - } - } - impl ::std::convert::TryFrom for super::AccountListV2 { - type Error = super::error::ConversionError; - fn try_from( - value: AccountListV2, - ) -> ::std::result::Result { - Ok(Self { items: value.items? }) - } + ///`UnsignedInteger` + /// + ///
JSON schema + /// + /// ```json + ///{ + /// "default": 100, + /// "examples": [ + /// 100 + /// ], + /// "type": "integer", + /// "format": "uint64" + ///} + /// ``` + ///
+ #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + #[serde(transparent)] + pub struct UnsignedInteger(pub u64); + impl ::std::ops::Deref for UnsignedInteger { + type Target = u64; + fn deref(&self) -> &u64 { + &self.0 } - impl ::std::convert::From for AccountListV2 { - fn from(value: super::AccountListV2) -> Self { - Self { items: Ok(value.items) } - } + } + impl ::std::convert::From for u64 { + fn from(value: UnsignedInteger) -> Self { + value.0 } - #[derive(Clone, Debug)] - pub struct AccountProofInputs { - hash: ::std::result::Result<::std::string::String, ::std::string::String>, - leaf_index: ::std::result::Result, - merkle_context: ::std::result::Result< - super::MerkleContextV2, - ::std::string::String, - >, - root: ::std::result::Result<::std::string::String, ::std::string::String>, - root_index: ::std::result::Result, + } + impl ::std::convert::From for UnsignedInteger { + fn from(value: u64) -> Self { + Self(value) } - impl ::std::default::Default for AccountProofInputs { - fn default() -> Self { - Self { - hash: Err("no value supplied for hash".to_string()), - leaf_index: Err("no value supplied for leaf_index".to_string()), - merkle_context: Err( - "no value supplied for merkle_context".to_string(), - ), - root: Err("no value supplied for root".to_string()), - root_index: Err("no value supplied for root_index".to_string()), - } - } + } + impl ::std::str::FromStr for UnsignedInteger { + type Err = ::Err; + fn from_str(value: &str) -> ::std::result::Result { + Ok(Self(value.parse()?)) } - impl AccountProofInputs { - pub fn hash(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::string::String>, - T::Error: ::std::fmt::Display, - { - self.hash = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for hash: {e}") - }); - self - } - pub fn leaf_index(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.leaf_index = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for leaf_index: {e}") - }); - self - } - pub fn merkle_context(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.merkle_context = value - .try_into() - .map_err(|e| { - format!( - "error converting supplied value for merkle_context: {e}" - ) - }); - self - } - pub fn root(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::string::String>, - T::Error: ::std::fmt::Display, - { - self.root = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for root: {e}") - }); - self - } - pub fn root_index(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.root_index = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for root_index: {e}") - }); - self - } + } + impl ::std::convert::TryFrom<&str> for UnsignedInteger { + type Error = ::Err; + fn try_from(value: &str) -> ::std::result::Result { + value.parse() } - impl ::std::convert::TryFrom for super::AccountProofInputs { - type Error = super::error::ConversionError; - fn try_from( - value: AccountProofInputs, - ) -> ::std::result::Result { - Ok(Self { - hash: value.hash?, - leaf_index: value.leaf_index?, - merkle_context: value.merkle_context?, - root: value.root?, - root_index: value.root_index?, - }) - } + } + impl ::std::convert::TryFrom for UnsignedInteger { + type Error = ::Err; + fn try_from(value: String) -> ::std::result::Result { + value.parse() } - impl ::std::convert::From for AccountProofInputs { - fn from(value: super::AccountProofInputs) -> Self { - Self { - hash: Ok(value.hash), - leaf_index: Ok(value.leaf_index), - merkle_context: Ok(value.merkle_context), - root: Ok(value.root), - root_index: Ok(value.root_index), - } - } + } + impl ::std::fmt::Display for UnsignedInteger { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + self.0.fmt(f) } + } + /// Types for composing complex structures. + pub mod builder { #[derive(Clone, Debug)] - pub struct AccountV2 { + pub struct Account { address: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -32224,15 +28398,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ super::UnsignedInteger, ::std::string::String, >, - merkle_context: ::std::result::Result< - super::MerkleContextV2, - ::std::string::String, - >, owner: ::std::result::Result< super::SerializablePubkey, ::std::string::String, >, - prove_by_index: ::std::result::Result, seq: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -32241,8 +28410,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ super::UnsignedInteger, ::std::string::String, >, + tree: ::std::result::Result< + super::SerializablePubkey, + ::std::string::String, + >, } - impl ::std::default::Default for AccountV2 { + impl ::std::default::Default for Account { fn default() -> Self { Self { address: Ok(Default::default()), @@ -32250,19 +28423,14 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ hash: Err("no value supplied for hash".to_string()), lamports: Err("no value supplied for lamports".to_string()), leaf_index: Err("no value supplied for leaf_index".to_string()), - merkle_context: Err( - "no value supplied for merkle_context".to_string(), - ), owner: Err("no value supplied for owner".to_string()), - prove_by_index: Err( - "no value supplied for prove_by_index".to_string(), - ), seq: Ok(Default::default()), slot_created: Err("no value supplied for slot_created".to_string()), + tree: Err("no value supplied for tree".to_string()), } } } - impl AccountV2 { + impl Account { pub fn address(mut self, value: T) -> Self where T: ::std::convert::TryInto< @@ -32308,760 +28476,387 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ { self.lamports = value .try_into() - .map_err(|e| { - format!("error converting supplied value for lamports: {e}") - }); - self - } - pub fn leaf_index(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.leaf_index = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for leaf_index: {e}") - }); - self - } - pub fn merkle_context(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.merkle_context = value - .try_into() - .map_err(|e| { - format!( - "error converting supplied value for merkle_context: {e}" - ) - }); - self - } - pub fn owner(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.owner = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for owner: {e}") - }); - self - } - pub fn prove_by_index(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.prove_by_index = value - .try_into() - .map_err(|e| { - format!( - "error converting supplied value for prove_by_index: {e}" - ) - }); - self - } - pub fn seq(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - ::std::option::Option, - >, - T::Error: ::std::fmt::Display, - { - self.seq = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for seq: {e}") - }); - self - } - pub fn slot_created(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.slot_created = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for slot_created: {e}") - }); - self - } - } - impl ::std::convert::TryFrom for super::AccountV2 { - type Error = super::error::ConversionError; - fn try_from( - value: AccountV2, - ) -> ::std::result::Result { - Ok(Self { - address: value.address?, - data: value.data?, - hash: value.hash?, - lamports: value.lamports?, - leaf_index: value.leaf_index?, - merkle_context: value.merkle_context?, - owner: value.owner?, - prove_by_index: value.prove_by_index?, - seq: value.seq?, - slot_created: value.slot_created?, - }) - } - } - impl ::std::convert::From for AccountV2 { - fn from(value: super::AccountV2) -> Self { - Self { - address: Ok(value.address), - data: Ok(value.data), - hash: Ok(value.hash), - lamports: Ok(value.lamports), - leaf_index: Ok(value.leaf_index), - merkle_context: Ok(value.merkle_context), - owner: Ok(value.owner), - prove_by_index: Ok(value.prove_by_index), - seq: Ok(value.seq), - slot_created: Ok(value.slot_created), - } - } - } - #[derive(Clone, Debug)] - pub struct AccountWithContext { - account: ::std::result::Result, - context: ::std::result::Result, - } - impl ::std::default::Default for AccountWithContext { - fn default() -> Self { - Self { - account: Err("no value supplied for account".to_string()), - context: Err("no value supplied for context".to_string()), - } - } - } - impl AccountWithContext { - pub fn account(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.account = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for account: {e}") - }); - self - } - pub fn context(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.context = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for context: {e}") - }); - self - } - } - impl ::std::convert::TryFrom for super::AccountWithContext { - type Error = super::error::ConversionError; - fn try_from( - value: AccountWithContext, - ) -> ::std::result::Result { - Ok(Self { - account: value.account?, - context: value.context?, - }) - } - } - impl ::std::convert::From for AccountWithContext { - fn from(value: super::AccountWithContext) -> Self { - Self { - account: Ok(value.account), - context: Ok(value.context), - } - } - } - #[derive(Clone, Debug)] - pub struct AccountWithOptionalTokenData { - account: ::std::result::Result, - optional_token_data: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - } - impl ::std::default::Default for AccountWithOptionalTokenData { - fn default() -> Self { - Self { - account: Err("no value supplied for account".to_string()), - optional_token_data: Ok(Default::default()), - } - } - } - impl AccountWithOptionalTokenData { - pub fn account(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.account = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for account: {e}") - }); - self - } - pub fn optional_token_data(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::option::Option>, - T::Error: ::std::fmt::Display, - { - self.optional_token_data = value - .try_into() - .map_err(|e| { - format!( - "error converting supplied value for optional_token_data: {e}" - ) - }); - self - } - } - impl ::std::convert::TryFrom - for super::AccountWithOptionalTokenData { - type Error = super::error::ConversionError; - fn try_from( - value: AccountWithOptionalTokenData, - ) -> ::std::result::Result { - Ok(Self { - account: value.account?, - optional_token_data: value.optional_token_data?, - }) - } - } - impl ::std::convert::From - for AccountWithOptionalTokenData { - fn from(value: super::AccountWithOptionalTokenData) -> Self { - Self { - account: Ok(value.account), - optional_token_data: Ok(value.optional_token_data), - } - } - } - #[derive(Clone, Debug)] - pub struct AccountWithOptionalTokenDataV2 { - account: ::std::result::Result, - optional_token_data: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - } - impl ::std::default::Default for AccountWithOptionalTokenDataV2 { - fn default() -> Self { - Self { - account: Err("no value supplied for account".to_string()), - optional_token_data: Ok(Default::default()), - } - } - } - impl AccountWithOptionalTokenDataV2 { - pub fn account(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.account = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for account: {e}") - }); - self - } - pub fn optional_token_data(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::option::Option>, - T::Error: ::std::fmt::Display, - { - self.optional_token_data = value - .try_into() - .map_err(|e| { - format!( - "error converting supplied value for optional_token_data: {e}" - ) - }); - self - } - } - impl ::std::convert::TryFrom - for super::AccountWithOptionalTokenDataV2 { - type Error = super::error::ConversionError; - fn try_from( - value: AccountWithOptionalTokenDataV2, - ) -> ::std::result::Result { - Ok(Self { - account: value.account?, - optional_token_data: value.optional_token_data?, - }) - } - } - impl ::std::convert::From - for AccountWithOptionalTokenDataV2 { - fn from(value: super::AccountWithOptionalTokenDataV2) -> Self { - Self { - account: Ok(value.account), - optional_token_data: Ok(value.optional_token_data), - } - } - } - #[derive(Clone, Debug)] - pub struct AddressProofInputs { - address: ::std::result::Result<::std::string::String, ::std::string::String>, - merkle_context: ::std::result::Result< - super::MerkleContextV2, - ::std::string::String, - >, - root: ::std::result::Result<::std::string::String, ::std::string::String>, - root_index: ::std::result::Result, - } - impl ::std::default::Default for AddressProofInputs { - fn default() -> Self { - Self { - address: Err("no value supplied for address".to_string()), - merkle_context: Err( - "no value supplied for merkle_context".to_string(), - ), - root: Err("no value supplied for root".to_string()), - root_index: Err("no value supplied for root_index".to_string()), - } + .map_err(|e| { + format!("error converting supplied value for lamports: {e}") + }); + self } - } - impl AddressProofInputs { - pub fn address(mut self, value: T) -> Self + pub fn leaf_index(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::string::String>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.address = value + self.leaf_index = value .try_into() .map_err(|e| { - format!("error converting supplied value for address: {e}") + format!("error converting supplied value for leaf_index: {e}") }); self } - pub fn merkle_context(mut self, value: T) -> Self + pub fn owner(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.merkle_context = value + self.owner = value .try_into() .map_err(|e| { - format!( - "error converting supplied value for merkle_context: {e}" - ) + format!("error converting supplied value for owner: {e}") }); self } - pub fn root(mut self, value: T) -> Self + pub fn seq(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::string::String>, + T: ::std::convert::TryInto< + ::std::option::Option, + >, T::Error: ::std::fmt::Display, { - self.root = value + self.seq = value .try_into() .map_err(|e| { - format!("error converting supplied value for root: {e}") + format!("error converting supplied value for seq: {e}") }); self } - pub fn root_index(mut self, value: T) -> Self + pub fn slot_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.root_index = value + self.slot_created = value .try_into() .map_err(|e| { - format!("error converting supplied value for root_index: {e}") + format!("error converting supplied value for slot_created: {e}") + }); + self + } + pub fn tree(mut self, value: T) -> Self + where + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, + { + self.tree = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for tree: {e}") }); self } } - impl ::std::convert::TryFrom for super::AddressProofInputs { + impl ::std::convert::TryFrom for super::Account { type Error = super::error::ConversionError; fn try_from( - value: AddressProofInputs, + value: Account, ) -> ::std::result::Result { Ok(Self { address: value.address?, - merkle_context: value.merkle_context?, - root: value.root?, - root_index: value.root_index?, + data: value.data?, + hash: value.hash?, + lamports: value.lamports?, + leaf_index: value.leaf_index?, + owner: value.owner?, + seq: value.seq?, + slot_created: value.slot_created?, + tree: value.tree?, }) } } - impl ::std::convert::From for AddressProofInputs { - fn from(value: super::AddressProofInputs) -> Self { + impl ::std::convert::From for Account { + fn from(value: super::Account) -> Self { Self { address: Ok(value.address), - merkle_context: Ok(value.merkle_context), - root: Ok(value.root), - root_index: Ok(value.root_index), + data: Ok(value.data), + hash: Ok(value.hash), + lamports: Ok(value.lamports), + leaf_index: Ok(value.leaf_index), + owner: Ok(value.owner), + seq: Ok(value.seq), + slot_created: Ok(value.slot_created), + tree: Ok(value.tree), } } } #[derive(Clone, Debug)] - pub struct AddressQueueData { - addresses: ::std::result::Result< - ::std::vec::Vec, - ::std::string::String, - >, - initial_root: ::std::result::Result, - leaves_hash_chains: ::std::result::Result< - ::std::vec::Vec, - ::std::string::String, - >, - low_element_indices: ::std::result::Result< - ::std::vec::Vec, - ::std::string::String, - >, - low_element_next_indices: ::std::result::Result< - ::std::vec::Vec, - ::std::string::String, - >, - low_element_next_values: ::std::result::Result< - ::std::vec::Vec, - ::std::string::String, - >, - low_element_values: ::std::result::Result< - ::std::vec::Vec, + pub struct AccountContext { + in_output_queue: ::std::result::Result, + nullified_in_tree: ::std::result::Result, + nullifier: ::std::result::Result< + ::std::option::Option, ::std::string::String, >, - nodes: ::std::result::Result< - ::std::vec::Vec, + nullifier_queue_index: ::std::result::Result< + ::std::option::Option, ::std::string::String, >, - queue_indices: ::std::result::Result< - ::std::vec::Vec, + queue: ::std::result::Result< + super::SerializablePubkey, ::std::string::String, >, - root_seq: ::std::result::Result, - start_index: ::std::result::Result, - subtrees: ::std::result::Result< - ::std::vec::Vec, + spent: ::std::result::Result, + tree_type: ::std::result::Result, + tx_hash: ::std::result::Result< + ::std::option::Option, ::std::string::String, >, } - impl ::std::default::Default for AddressQueueData { + impl ::std::default::Default for AccountContext { fn default() -> Self { Self { - addresses: Err("no value supplied for addresses".to_string()), - initial_root: Err("no value supplied for initial_root".to_string()), - leaves_hash_chains: Err( - "no value supplied for leaves_hash_chains".to_string(), - ), - low_element_indices: Err( - "no value supplied for low_element_indices".to_string(), - ), - low_element_next_indices: Err( - "no value supplied for low_element_next_indices".to_string(), - ), - low_element_next_values: Err( - "no value supplied for low_element_next_values".to_string(), - ), - low_element_values: Err( - "no value supplied for low_element_values".to_string(), + in_output_queue: Err( + "no value supplied for in_output_queue".to_string(), ), - nodes: Err("no value supplied for nodes".to_string()), - queue_indices: Err( - "no value supplied for queue_indices".to_string(), + nullified_in_tree: Err( + "no value supplied for nullified_in_tree".to_string(), ), - root_seq: Err("no value supplied for root_seq".to_string()), - start_index: Err("no value supplied for start_index".to_string()), - subtrees: Err("no value supplied for subtrees".to_string()), + nullifier: Ok(Default::default()), + nullifier_queue_index: Ok(Default::default()), + queue: Err("no value supplied for queue".to_string()), + spent: Err("no value supplied for spent".to_string()), + tree_type: Err("no value supplied for tree_type".to_string()), + tx_hash: Ok(Default::default()), } } } - impl AddressQueueData { - pub fn addresses(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::vec::Vec>, - T::Error: ::std::fmt::Display, - { - self.addresses = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for addresses: {e}") - }); - self - } - pub fn initial_root(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.initial_root = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for initial_root: {e}") - }); - self - } - pub fn leaves_hash_chains(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::vec::Vec>, - T::Error: ::std::fmt::Display, - { - self.leaves_hash_chains = value - .try_into() - .map_err(|e| { - format!( - "error converting supplied value for leaves_hash_chains: {e}" - ) - }); - self - } - pub fn low_element_indices(mut self, value: T) -> Self + impl AccountContext { + pub fn in_output_queue(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.low_element_indices = value + self.in_output_queue = value .try_into() .map_err(|e| { format!( - "error converting supplied value for low_element_indices: {e}" + "error converting supplied value for in_output_queue: {e}" ) }); self } - pub fn low_element_next_indices(mut self, value: T) -> Self + pub fn nullified_in_tree(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.low_element_next_indices = value + self.nullified_in_tree = value .try_into() .map_err(|e| { format!( - "error converting supplied value for low_element_next_indices: {e}" + "error converting supplied value for nullified_in_tree: {e}" ) }); self } - pub fn low_element_next_values(mut self, value: T) -> Self + pub fn nullifier(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto<::std::option::Option>, T::Error: ::std::fmt::Display, { - self.low_element_next_values = value + self.nullifier = value .try_into() .map_err(|e| { - format!( - "error converting supplied value for low_element_next_values: {e}" - ) + format!("error converting supplied value for nullifier: {e}") }); self } - pub fn low_element_values(mut self, value: T) -> Self + pub fn nullifier_queue_index(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto< + ::std::option::Option, + >, T::Error: ::std::fmt::Display, { - self.low_element_values = value + self.nullifier_queue_index = value .try_into() .map_err(|e| { format!( - "error converting supplied value for low_element_values: {e}" + "error converting supplied value for nullifier_queue_index: {e}" ) }); self } - pub fn nodes(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::vec::Vec>, - T::Error: ::std::fmt::Display, - { - self.nodes = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for nodes: {e}") - }); - self - } - pub fn queue_indices(mut self, value: T) -> Self + pub fn queue(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.queue_indices = value + self.queue = value .try_into() .map_err(|e| { - format!("error converting supplied value for queue_indices: {e}") + format!("error converting supplied value for queue: {e}") }); self } - pub fn root_seq(mut self, value: T) -> Self + pub fn spent(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.root_seq = value + self.spent = value .try_into() .map_err(|e| { - format!("error converting supplied value for root_seq: {e}") + format!("error converting supplied value for spent: {e}") }); self } - pub fn start_index(mut self, value: T) -> Self + pub fn tree_type(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.start_index = value + self.tree_type = value .try_into() .map_err(|e| { - format!("error converting supplied value for start_index: {e}") + format!("error converting supplied value for tree_type: {e}") }); self } - pub fn subtrees(mut self, value: T) -> Self + pub fn tx_hash(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto<::std::option::Option>, T::Error: ::std::fmt::Display, { - self.subtrees = value + self.tx_hash = value .try_into() .map_err(|e| { - format!("error converting supplied value for subtrees: {e}") + format!("error converting supplied value for tx_hash: {e}") }); self } } - impl ::std::convert::TryFrom for super::AddressQueueData { + impl ::std::convert::TryFrom for super::AccountContext { type Error = super::error::ConversionError; fn try_from( - value: AddressQueueData, + value: AccountContext, ) -> ::std::result::Result { Ok(Self { - addresses: value.addresses?, - initial_root: value.initial_root?, - leaves_hash_chains: value.leaves_hash_chains?, - low_element_indices: value.low_element_indices?, - low_element_next_indices: value.low_element_next_indices?, - low_element_next_values: value.low_element_next_values?, - low_element_values: value.low_element_values?, - nodes: value.nodes?, - queue_indices: value.queue_indices?, - root_seq: value.root_seq?, - start_index: value.start_index?, - subtrees: value.subtrees?, + in_output_queue: value.in_output_queue?, + nullified_in_tree: value.nullified_in_tree?, + nullifier: value.nullifier?, + nullifier_queue_index: value.nullifier_queue_index?, + queue: value.queue?, + spent: value.spent?, + tree_type: value.tree_type?, + tx_hash: value.tx_hash?, }) } } - impl ::std::convert::From for AddressQueueData { - fn from(value: super::AddressQueueData) -> Self { + impl ::std::convert::From for AccountContext { + fn from(value: super::AccountContext) -> Self { Self { - addresses: Ok(value.addresses), - initial_root: Ok(value.initial_root), - leaves_hash_chains: Ok(value.leaves_hash_chains), - low_element_indices: Ok(value.low_element_indices), - low_element_next_indices: Ok(value.low_element_next_indices), - low_element_next_values: Ok(value.low_element_next_values), - low_element_values: Ok(value.low_element_values), - nodes: Ok(value.nodes), - queue_indices: Ok(value.queue_indices), - root_seq: Ok(value.root_seq), - start_index: Ok(value.start_index), - subtrees: Ok(value.subtrees), + in_output_queue: Ok(value.in_output_queue), + nullified_in_tree: Ok(value.nullified_in_tree), + nullifier: Ok(value.nullifier), + nullifier_queue_index: Ok(value.nullifier_queue_index), + queue: Ok(value.queue), + spent: Ok(value.spent), + tree_type: Ok(value.tree_type), + tx_hash: Ok(value.tx_hash), } } } #[derive(Clone, Debug)] - pub struct AddressWithTree { - address: ::std::result::Result< - super::SerializablePubkey, - ::std::string::String, - >, - tree: ::std::result::Result< - super::SerializablePubkey, + pub struct AccountData { + data: ::std::result::Result, + data_hash: ::std::result::Result, + discriminator: ::std::result::Result< + super::UnsignedInteger, ::std::string::String, >, } - impl ::std::default::Default for AddressWithTree { + impl ::std::default::Default for AccountData { fn default() -> Self { Self { - address: Err("no value supplied for address".to_string()), - tree: Err("no value supplied for tree".to_string()), + data: Err("no value supplied for data".to_string()), + data_hash: Err("no value supplied for data_hash".to_string()), + discriminator: Err("no value supplied for discriminator".to_string()), } } } - impl AddressWithTree { - pub fn address(mut self, value: T) -> Self + impl AccountData { + pub fn data(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.address = value + self.data = value .try_into() .map_err(|e| { - format!("error converting supplied value for address: {e}") + format!("error converting supplied value for data: {e}") }); self } - pub fn tree(mut self, value: T) -> Self + pub fn data_hash(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.tree = value + self.data_hash = value .try_into() .map_err(|e| { - format!("error converting supplied value for tree: {e}") + format!("error converting supplied value for data_hash: {e}") + }); + self + } + pub fn discriminator(mut self, value: T) -> Self + where + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, + { + self.discriminator = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for discriminator: {e}") }); self } } - impl ::std::convert::TryFrom for super::AddressWithTree { + impl ::std::convert::TryFrom for super::AccountData { type Error = super::error::ConversionError; fn try_from( - value: AddressWithTree, + value: AccountData, ) -> ::std::result::Result { Ok(Self { - address: value.address?, - tree: value.tree?, + data: value.data?, + data_hash: value.data_hash?, + discriminator: value.discriminator?, }) } } - impl ::std::convert::From for AddressWithTree { - fn from(value: super::AddressWithTree) -> Self { + impl ::std::convert::From for AccountData { + fn from(value: super::AccountData) -> Self { Self { - address: Ok(value.address), - tree: Ok(value.tree), + data: Ok(value.data), + data_hash: Ok(value.data_hash), + discriminator: Ok(value.discriminator), } } } #[derive(Clone, Debug)] - pub struct ClosedAccountV2 { - account: ::std::result::Result, - nullifier: ::std::result::Result, - tx_hash: ::std::result::Result, + pub struct AccountInterface { + account: ::std::result::Result< + super::SolanaAccountData, + ::std::string::String, + >, + cold: ::std::result::Result< + ::std::option::Option<::std::vec::Vec>, + ::std::string::String, + >, + key: ::std::result::Result, } - impl ::std::default::Default for ClosedAccountV2 { + impl ::std::default::Default for AccountInterface { fn default() -> Self { Self { account: Err("no value supplied for account".to_string()), - nullifier: Err("no value supplied for nullifier".to_string()), - tx_hash: Err("no value supplied for tx_hash".to_string()), + cold: Ok(Default::default()), + key: Err("no value supplied for key".to_string()), } } } - impl ClosedAccountV2 { + impl AccountInterface { pub fn account(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.account = value @@ -33071,776 +28866,715 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }); self } - pub fn nullifier(mut self, value: T) -> Self + pub fn cold(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + ::std::option::Option<::std::vec::Vec>, + >, T::Error: ::std::fmt::Display, { - self.nullifier = value + self.cold = value .try_into() .map_err(|e| { - format!("error converting supplied value for nullifier: {e}") + format!("error converting supplied value for cold: {e}") }); self } - pub fn tx_hash(mut self, value: T) -> Self + pub fn key(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.tx_hash = value + self.key = value .try_into() .map_err(|e| { - format!("error converting supplied value for tx_hash: {e}") + format!("error converting supplied value for key: {e}") }); self } } - impl ::std::convert::TryFrom for super::ClosedAccountV2 { + impl ::std::convert::TryFrom for super::AccountInterface { type Error = super::error::ConversionError; fn try_from( - value: ClosedAccountV2, + value: AccountInterface, ) -> ::std::result::Result { Ok(Self { account: value.account?, - nullifier: value.nullifier?, - tx_hash: value.tx_hash?, + cold: value.cold?, + key: value.key?, }) } } - impl ::std::convert::From for ClosedAccountV2 { - fn from(value: super::ClosedAccountV2) -> Self { + impl ::std::convert::From for AccountInterface { + fn from(value: super::AccountInterface) -> Self { Self { account: Ok(value.account), - nullifier: Ok(value.nullifier), - tx_hash: Ok(value.tx_hash), + cold: Ok(value.cold), + key: Ok(value.key), } } } #[derive(Clone, Debug)] - pub struct ClosedAccountWithOptionalTokenDataV2 { - account: ::std::result::Result< - super::ClosedAccountV2, - ::std::string::String, - >, - optional_token_data: ::std::result::Result< - ::std::option::Option, + pub struct AccountList { + items: ::std::result::Result< + ::std::vec::Vec<::std::option::Option>, ::std::string::String, >, } - impl ::std::default::Default for ClosedAccountWithOptionalTokenDataV2 { + impl ::std::default::Default for AccountList { fn default() -> Self { Self { - account: Err("no value supplied for account".to_string()), - optional_token_data: Ok(Default::default()), + items: Err("no value supplied for items".to_string()), } } } - impl ClosedAccountWithOptionalTokenDataV2 { - pub fn account(mut self, value: T) -> Self + impl AccountList { + pub fn items(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + ::std::vec::Vec<::std::option::Option>, + >, T::Error: ::std::fmt::Display, { - self.account = value + self.items = value .try_into() .map_err(|e| { - format!("error converting supplied value for account: {e}") + format!("error converting supplied value for items: {e}") }); self } - pub fn optional_token_data(mut self, value: T) -> Self + } + impl ::std::convert::TryFrom for super::AccountList { + type Error = super::error::ConversionError; + fn try_from( + value: AccountList, + ) -> ::std::result::Result { + Ok(Self { items: value.items? }) + } + } + impl ::std::convert::From for AccountList { + fn from(value: super::AccountList) -> Self { + Self { items: Ok(value.items) } + } + } + #[derive(Clone, Debug)] + pub struct AccountListV2 { + items: ::std::result::Result< + ::std::vec::Vec<::std::option::Option>, + ::std::string::String, + >, + } + impl ::std::default::Default for AccountListV2 { + fn default() -> Self { + Self { + items: Err("no value supplied for items".to_string()), + } + } + } + impl AccountListV2 { + pub fn items(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto< + ::std::vec::Vec<::std::option::Option>, + >, T::Error: ::std::fmt::Display, { - self.optional_token_data = value + self.items = value .try_into() .map_err(|e| { - format!( - "error converting supplied value for optional_token_data: {e}" - ) + format!("error converting supplied value for items: {e}") }); self } } - impl ::std::convert::TryFrom - for super::ClosedAccountWithOptionalTokenDataV2 { + impl ::std::convert::TryFrom for super::AccountListV2 { type Error = super::error::ConversionError; fn try_from( - value: ClosedAccountWithOptionalTokenDataV2, + value: AccountListV2, ) -> ::std::result::Result { - Ok(Self { - account: value.account?, - optional_token_data: value.optional_token_data?, - }) + Ok(Self { items: value.items? }) } } - impl ::std::convert::From - for ClosedAccountWithOptionalTokenDataV2 { - fn from(value: super::ClosedAccountWithOptionalTokenDataV2) -> Self { - Self { - account: Ok(value.account), - optional_token_data: Ok(value.optional_token_data), - } + impl ::std::convert::From for AccountListV2 { + fn from(value: super::AccountListV2) -> Self { + Self { items: Ok(value.items) } } } #[derive(Clone, Debug)] - pub struct ColdData { - data: ::std::result::Result, - discriminator: ::std::result::Result< - ::std::vec::Vec, + pub struct AccountProofInputs { + hash: ::std::result::Result<::std::string::String, ::std::string::String>, + leaf_index: ::std::result::Result, + merkle_context: ::std::result::Result< + super::MerkleContextV2, ::std::string::String, >, + root: ::std::result::Result<::std::string::String, ::std::string::String>, + root_index: ::std::result::Result, } - impl ::std::default::Default for ColdData { + impl ::std::default::Default for AccountProofInputs { fn default() -> Self { Self { - data: Err("no value supplied for data".to_string()), - discriminator: Err("no value supplied for discriminator".to_string()), + hash: Err("no value supplied for hash".to_string()), + leaf_index: Err("no value supplied for leaf_index".to_string()), + merkle_context: Err( + "no value supplied for merkle_context".to_string(), + ), + root: Err("no value supplied for root".to_string()), + root_index: Err("no value supplied for root_index".to_string()), } } } - impl ColdData { - pub fn data(mut self, value: T) -> Self + impl AccountProofInputs { + pub fn hash(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::string::String>, T::Error: ::std::fmt::Display, { - self.data = value + self.hash = value .try_into() .map_err(|e| { - format!("error converting supplied value for data: {e}") + format!("error converting supplied value for hash: {e}") }); self } - pub fn discriminator(mut self, value: T) -> Self + pub fn leaf_index(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.discriminator = value + self.leaf_index = value .try_into() .map_err(|e| { - format!("error converting supplied value for discriminator: {e}") + format!("error converting supplied value for leaf_index: {e}") }); self } - } - impl ::std::convert::TryFrom for super::ColdData { - type Error = super::error::ConversionError; - fn try_from( - value: ColdData, - ) -> ::std::result::Result { - Ok(Self { - data: value.data?, - discriminator: value.discriminator?, - }) - } - } - impl ::std::convert::From for ColdData { - fn from(value: super::ColdData) -> Self { - Self { - data: Ok(value.data), - discriminator: Ok(value.discriminator), - } - } - } - #[derive(Clone, Debug)] - pub struct CompressedProof { - a: ::std::result::Result<::std::vec::Vec, ::std::string::String>, - b: ::std::result::Result<::std::vec::Vec, ::std::string::String>, - c: ::std::result::Result<::std::vec::Vec, ::std::string::String>, - } - impl ::std::default::Default for CompressedProof { - fn default() -> Self { - Self { - a: Err("no value supplied for a".to_string()), - b: Err("no value supplied for b".to_string()), - c: Err("no value supplied for c".to_string()), - } - } - } - impl CompressedProof { - pub fn a(mut self, value: T) -> Self + pub fn merkle_context(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.a = value + self.merkle_context = value .try_into() - .map_err(|e| format!("error converting supplied value for a: {e}")); + .map_err(|e| { + format!( + "error converting supplied value for merkle_context: {e}" + ) + }); self } - pub fn b(mut self, value: T) -> Self + pub fn root(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto<::std::string::String>, T::Error: ::std::fmt::Display, { - self.b = value + self.root = value .try_into() - .map_err(|e| format!("error converting supplied value for b: {e}")); + .map_err(|e| { + format!("error converting supplied value for root: {e}") + }); self } - pub fn c(mut self, value: T) -> Self + pub fn root_index(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.c = value + self.root_index = value .try_into() - .map_err(|e| format!("error converting supplied value for c: {e}")); + .map_err(|e| { + format!("error converting supplied value for root_index: {e}") + }); self } } - impl ::std::convert::TryFrom for super::CompressedProof { + impl ::std::convert::TryFrom for super::AccountProofInputs { type Error = super::error::ConversionError; fn try_from( - value: CompressedProof, + value: AccountProofInputs, ) -> ::std::result::Result { Ok(Self { - a: value.a?, - b: value.b?, - c: value.c?, + hash: value.hash?, + leaf_index: value.leaf_index?, + merkle_context: value.merkle_context?, + root: value.root?, + root_index: value.root_index?, }) } } - impl ::std::convert::From for CompressedProof { - fn from(value: super::CompressedProof) -> Self { + impl ::std::convert::From for AccountProofInputs { + fn from(value: super::AccountProofInputs) -> Self { Self { - a: Ok(value.a), - b: Ok(value.b), - c: Ok(value.c), + hash: Ok(value.hash), + leaf_index: Ok(value.leaf_index), + merkle_context: Ok(value.merkle_context), + root: Ok(value.root), + root_index: Ok(value.root_index), } } } #[derive(Clone, Debug)] - pub struct CompressedProofWithContext { - compressed_proof: ::std::result::Result< - super::CompressedProof, + pub struct AccountV2 { + address: ::std::result::Result< + ::std::option::Option, ::std::string::String, >, - leaf_indices: ::std::result::Result< - ::std::vec::Vec, + data: ::std::result::Result< + ::std::option::Option, ::std::string::String, >, - leaves: ::std::result::Result< - ::std::vec::Vec<::std::string::String>, + hash: ::std::result::Result, + lamports: ::std::result::Result< + super::UnsignedInteger, ::std::string::String, >, - merkle_trees: ::std::result::Result< - ::std::vec::Vec<::std::string::String>, + leaf_index: ::std::result::Result< + super::UnsignedInteger, ::std::string::String, >, - root_indices: ::std::result::Result< - ::std::vec::Vec, + merkle_context: ::std::result::Result< + super::MerkleContextV2, ::std::string::String, >, - roots: ::std::result::Result< - ::std::vec::Vec<::std::string::String>, + owner: ::std::result::Result< + super::SerializablePubkey, + ::std::string::String, + >, + prove_by_index: ::std::result::Result, + seq: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + slot_created: ::std::result::Result< + super::UnsignedInteger, ::std::string::String, >, } - impl ::std::default::Default for CompressedProofWithContext { + impl ::std::default::Default for AccountV2 { fn default() -> Self { Self { - compressed_proof: Err( - "no value supplied for compressed_proof".to_string(), + address: Ok(Default::default()), + data: Ok(Default::default()), + hash: Err("no value supplied for hash".to_string()), + lamports: Err("no value supplied for lamports".to_string()), + leaf_index: Err("no value supplied for leaf_index".to_string()), + merkle_context: Err( + "no value supplied for merkle_context".to_string(), ), - leaf_indices: Err("no value supplied for leaf_indices".to_string()), - leaves: Err("no value supplied for leaves".to_string()), - merkle_trees: Err("no value supplied for merkle_trees".to_string()), - root_indices: Err("no value supplied for root_indices".to_string()), - roots: Err("no value supplied for roots".to_string()), + owner: Err("no value supplied for owner".to_string()), + prove_by_index: Err( + "no value supplied for prove_by_index".to_string(), + ), + seq: Ok(Default::default()), + slot_created: Err("no value supplied for slot_created".to_string()), } } } - impl CompressedProofWithContext { - pub fn compressed_proof(mut self, value: T) -> Self + impl AccountV2 { + pub fn address(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + ::std::option::Option, + >, T::Error: ::std::fmt::Display, { - self.compressed_proof = value + self.address = value .try_into() .map_err(|e| { - format!( - "error converting supplied value for compressed_proof: {e}" - ) + format!("error converting supplied value for address: {e}") }); self } - pub fn leaf_indices(mut self, value: T) -> Self + pub fn data(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto<::std::option::Option>, T::Error: ::std::fmt::Display, { - self.leaf_indices = value + self.data = value .try_into() .map_err(|e| { - format!("error converting supplied value for leaf_indices: {e}") + format!("error converting supplied value for data: {e}") }); self } - pub fn leaves(mut self, value: T) -> Self + pub fn hash(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec<::std::string::String>>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.leaves = value + self.hash = value .try_into() .map_err(|e| { - format!("error converting supplied value for leaves: {e}") + format!("error converting supplied value for hash: {e}") }); self } - pub fn merkle_trees(mut self, value: T) -> Self + pub fn lamports(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec<::std::string::String>>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.merkle_trees = value + self.lamports = value .try_into() .map_err(|e| { - format!("error converting supplied value for merkle_trees: {e}") + format!("error converting supplied value for lamports: {e}") }); self } - pub fn root_indices(mut self, value: T) -> Self + pub fn leaf_index(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.root_indices = value + self.leaf_index = value .try_into() .map_err(|e| { - format!("error converting supplied value for root_indices: {e}") + format!("error converting supplied value for leaf_index: {e}") }); self } - pub fn roots(mut self, value: T) -> Self + pub fn merkle_context(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec<::std::string::String>>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.roots = value + self.merkle_context = value .try_into() .map_err(|e| { - format!("error converting supplied value for roots: {e}") + format!( + "error converting supplied value for merkle_context: {e}" + ) }); self } - } - impl ::std::convert::TryFrom - for super::CompressedProofWithContext { - type Error = super::error::ConversionError; - fn try_from( - value: CompressedProofWithContext, - ) -> ::std::result::Result { - Ok(Self { - compressed_proof: value.compressed_proof?, - leaf_indices: value.leaf_indices?, - leaves: value.leaves?, - merkle_trees: value.merkle_trees?, - root_indices: value.root_indices?, - roots: value.roots?, - }) - } - } - impl ::std::convert::From - for CompressedProofWithContext { - fn from(value: super::CompressedProofWithContext) -> Self { - Self { - compressed_proof: Ok(value.compressed_proof), - leaf_indices: Ok(value.leaf_indices), - leaves: Ok(value.leaves), - merkle_trees: Ok(value.merkle_trees), - root_indices: Ok(value.root_indices), - roots: Ok(value.roots), - } - } - } - #[derive(Clone, Debug)] - pub struct CompressedProofWithContextV2 { - accounts: ::std::result::Result< - ::std::vec::Vec, - ::std::string::String, - >, - addresses: ::std::result::Result< - ::std::vec::Vec, - ::std::string::String, - >, - compressed_proof: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - } - impl ::std::default::Default for CompressedProofWithContextV2 { - fn default() -> Self { - Self { - accounts: Err("no value supplied for accounts".to_string()), - addresses: Err("no value supplied for addresses".to_string()), - compressed_proof: Ok(Default::default()), - } - } - } - impl CompressedProofWithContextV2 { - pub fn accounts(mut self, value: T) -> Self + pub fn owner(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.accounts = value + self.owner = value .try_into() .map_err(|e| { - format!("error converting supplied value for accounts: {e}") + format!("error converting supplied value for owner: {e}") }); self } - pub fn addresses(mut self, value: T) -> Self + pub fn prove_by_index(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.addresses = value + self.prove_by_index = value .try_into() .map_err(|e| { - format!("error converting supplied value for addresses: {e}") + format!( + "error converting supplied value for prove_by_index: {e}" + ) }); self } - pub fn compressed_proof(mut self, value: T) -> Self + pub fn seq(mut self, value: T) -> Self where T: ::std::convert::TryInto< - ::std::option::Option, + ::std::option::Option, >, T::Error: ::std::fmt::Display, { - self.compressed_proof = value + self.seq = value .try_into() .map_err(|e| { - format!( - "error converting supplied value for compressed_proof: {e}" - ) + format!("error converting supplied value for seq: {e}") + }); + self + } + pub fn slot_created(mut self, value: T) -> Self + where + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, + { + self.slot_created = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for slot_created: {e}") }); self } } - impl ::std::convert::TryFrom - for super::CompressedProofWithContextV2 { + impl ::std::convert::TryFrom for super::AccountV2 { type Error = super::error::ConversionError; fn try_from( - value: CompressedProofWithContextV2, + value: AccountV2, ) -> ::std::result::Result { Ok(Self { - accounts: value.accounts?, - addresses: value.addresses?, - compressed_proof: value.compressed_proof?, + address: value.address?, + data: value.data?, + hash: value.hash?, + lamports: value.lamports?, + leaf_index: value.leaf_index?, + merkle_context: value.merkle_context?, + owner: value.owner?, + prove_by_index: value.prove_by_index?, + seq: value.seq?, + slot_created: value.slot_created?, }) } } - impl ::std::convert::From - for CompressedProofWithContextV2 { - fn from(value: super::CompressedProofWithContextV2) -> Self { + impl ::std::convert::From for AccountV2 { + fn from(value: super::AccountV2) -> Self { Self { - accounts: Ok(value.accounts), - addresses: Ok(value.addresses), - compressed_proof: Ok(value.compressed_proof), + address: Ok(value.address), + data: Ok(value.data), + hash: Ok(value.hash), + lamports: Ok(value.lamports), + leaf_index: Ok(value.leaf_index), + merkle_context: Ok(value.merkle_context), + owner: Ok(value.owner), + prove_by_index: Ok(value.prove_by_index), + seq: Ok(value.seq), + slot_created: Ok(value.slot_created), } } } #[derive(Clone, Debug)] - pub struct CompressionInfoV2 { - closed_accounts: ::std::result::Result< - ::std::vec::Vec, - ::std::string::String, - >, - opened_accounts: ::std::result::Result< - ::std::vec::Vec, - ::std::string::String, - >, + pub struct AccountWithContext { + account: ::std::result::Result, + context: ::std::result::Result, } - impl ::std::default::Default for CompressionInfoV2 { + impl ::std::default::Default for AccountWithContext { fn default() -> Self { Self { - closed_accounts: Err( - "no value supplied for closed_accounts".to_string(), - ), - opened_accounts: Err( - "no value supplied for opened_accounts".to_string(), - ), + account: Err("no value supplied for account".to_string()), + context: Err("no value supplied for context".to_string()), } } } - impl CompressionInfoV2 { - pub fn closed_accounts(mut self, value: T) -> Self + impl AccountWithContext { + pub fn account(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - ::std::vec::Vec, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.closed_accounts = value + self.account = value .try_into() .map_err(|e| { - format!( - "error converting supplied value for closed_accounts: {e}" - ) + format!("error converting supplied value for account: {e}") }); self } - pub fn opened_accounts(mut self, value: T) -> Self + pub fn context(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - ::std::vec::Vec, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.opened_accounts = value + self.context = value .try_into() .map_err(|e| { - format!( - "error converting supplied value for opened_accounts: {e}" - ) + format!("error converting supplied value for context: {e}") }); self } } - impl ::std::convert::TryFrom for super::CompressionInfoV2 { + impl ::std::convert::TryFrom for super::AccountWithContext { type Error = super::error::ConversionError; fn try_from( - value: CompressionInfoV2, + value: AccountWithContext, ) -> ::std::result::Result { Ok(Self { - closed_accounts: value.closed_accounts?, - opened_accounts: value.opened_accounts?, + account: value.account?, + context: value.context?, }) } } - impl ::std::convert::From for CompressionInfoV2 { - fn from(value: super::CompressionInfoV2) -> Self { - Self { - closed_accounts: Ok(value.closed_accounts), - opened_accounts: Ok(value.opened_accounts), - } - } - } - #[derive(Clone, Debug)] - pub struct Context { - slot: ::std::result::Result, - } - impl ::std::default::Default for Context { - fn default() -> Self { + impl ::std::convert::From for AccountWithContext { + fn from(value: super::AccountWithContext) -> Self { Self { - slot: Err("no value supplied for slot".to_string()), + account: Ok(value.account), + context: Ok(value.context), } } } - impl Context { - pub fn slot(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.slot = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for slot: {e}") - }); - self - } - } - impl ::std::convert::TryFrom for super::Context { - type Error = super::error::ConversionError; - fn try_from( - value: Context, - ) -> ::std::result::Result { - Ok(Self { slot: value.slot? }) - } - } - impl ::std::convert::From for Context { - fn from(value: super::Context) -> Self { - Self { slot: Ok(value.slot) } - } - } #[derive(Clone, Debug)] - pub struct DataSlice { - length: ::std::result::Result, - offset: ::std::result::Result, + pub struct AccountWithOptionalTokenData { + account: ::std::result::Result, + optional_token_data: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, } - impl ::std::default::Default for DataSlice { + impl ::std::default::Default for AccountWithOptionalTokenData { fn default() -> Self { Self { - length: Err("no value supplied for length".to_string()), - offset: Err("no value supplied for offset".to_string()), + account: Err("no value supplied for account".to_string()), + optional_token_data: Ok(Default::default()), } } } - impl DataSlice { - pub fn length(mut self, value: T) -> Self + impl AccountWithOptionalTokenData { + pub fn account(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.length = value + self.account = value .try_into() .map_err(|e| { - format!("error converting supplied value for length: {e}") + format!("error converting supplied value for account: {e}") }); self } - pub fn offset(mut self, value: T) -> Self + pub fn optional_token_data(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::option::Option>, T::Error: ::std::fmt::Display, { - self.offset = value + self.optional_token_data = value .try_into() .map_err(|e| { - format!("error converting supplied value for offset: {e}") + format!( + "error converting supplied value for optional_token_data: {e}" + ) }); self } } - impl ::std::convert::TryFrom for super::DataSlice { + impl ::std::convert::TryFrom + for super::AccountWithOptionalTokenData { type Error = super::error::ConversionError; fn try_from( - value: DataSlice, + value: AccountWithOptionalTokenData, ) -> ::std::result::Result { Ok(Self { - length: value.length?, - offset: value.offset?, + account: value.account?, + optional_token_data: value.optional_token_data?, }) } } - impl ::std::convert::From for DataSlice { - fn from(value: super::DataSlice) -> Self { + impl ::std::convert::From + for AccountWithOptionalTokenData { + fn from(value: super::AccountWithOptionalTokenData) -> Self { Self { - length: Ok(value.length), - offset: Ok(value.offset), + account: Ok(value.account), + optional_token_data: Ok(value.optional_token_data), } } } #[derive(Clone, Debug)] - pub struct FilterSelector { - memcmp: ::std::result::Result< - ::std::option::Option, + pub struct AccountWithOptionalTokenDataV2 { + account: ::std::result::Result, + optional_token_data: ::std::result::Result< + ::std::option::Option, ::std::string::String, >, } - impl ::std::default::Default for FilterSelector { + impl ::std::default::Default for AccountWithOptionalTokenDataV2 { fn default() -> Self { Self { - memcmp: Ok(Default::default()), + account: Err("no value supplied for account".to_string()), + optional_token_data: Ok(Default::default()), } } } - impl FilterSelector { - pub fn memcmp(mut self, value: T) -> Self + impl AccountWithOptionalTokenDataV2 { + pub fn account(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.memcmp = value + self.account = value .try_into() .map_err(|e| { - format!("error converting supplied value for memcmp: {e}") + format!("error converting supplied value for account: {e}") + }); + self + } + pub fn optional_token_data(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, + { + self.optional_token_data = value + .try_into() + .map_err(|e| { + format!( + "error converting supplied value for optional_token_data: {e}" + ) }); self } } - impl ::std::convert::TryFrom for super::FilterSelector { + impl ::std::convert::TryFrom + for super::AccountWithOptionalTokenDataV2 { type Error = super::error::ConversionError; fn try_from( - value: FilterSelector, + value: AccountWithOptionalTokenDataV2, ) -> ::std::result::Result { - Ok(Self { memcmp: value.memcmp? }) + Ok(Self { + account: value.account?, + optional_token_data: value.optional_token_data?, + }) } } - impl ::std::convert::From for FilterSelector { - fn from(value: super::FilterSelector) -> Self { - Self { memcmp: Ok(value.memcmp) } + impl ::std::convert::From + for AccountWithOptionalTokenDataV2 { + fn from(value: super::AccountWithOptionalTokenDataV2) -> Self { + Self { + account: Ok(value.account), + optional_token_data: Ok(value.optional_token_data), + } } } #[derive(Clone, Debug)] - pub struct GetCompressedAccountProofResponseValue { - hash: ::std::result::Result, - leaf_index: ::std::result::Result, - merkle_tree: ::std::result::Result< - super::SerializablePubkey, - ::std::string::String, - >, - proof: ::std::result::Result< - ::std::vec::Vec, + pub struct AddressProofInputs { + address: ::std::result::Result<::std::string::String, ::std::string::String>, + merkle_context: ::std::result::Result< + super::MerkleContextV2, ::std::string::String, >, - root: ::std::result::Result, - root_seq: ::std::result::Result, + root: ::std::result::Result<::std::string::String, ::std::string::String>, + root_index: ::std::result::Result, } - impl ::std::default::Default for GetCompressedAccountProofResponseValue { + impl ::std::default::Default for AddressProofInputs { fn default() -> Self { Self { - hash: Err("no value supplied for hash".to_string()), - leaf_index: Err("no value supplied for leaf_index".to_string()), - merkle_tree: Err("no value supplied for merkle_tree".to_string()), - proof: Err("no value supplied for proof".to_string()), + address: Err("no value supplied for address".to_string()), + merkle_context: Err( + "no value supplied for merkle_context".to_string(), + ), root: Err("no value supplied for root".to_string()), - root_seq: Err("no value supplied for root_seq".to_string()), + root_index: Err("no value supplied for root_index".to_string()), } } } - impl GetCompressedAccountProofResponseValue { - pub fn hash(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.hash = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for hash: {e}") - }); - self - } - pub fn leaf_index(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.leaf_index = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for leaf_index: {e}") - }); - self - } - pub fn merkle_tree(mut self, value: T) -> Self + impl AddressProofInputs { + pub fn address(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::string::String>, T::Error: ::std::fmt::Display, { - self.merkle_tree = value + self.address = value .try_into() .map_err(|e| { - format!("error converting supplied value for merkle_tree: {e}") + format!("error converting supplied value for address: {e}") }); self } - pub fn proof(mut self, value: T) -> Self + pub fn merkle_context(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.proof = value + self.merkle_context = value .try_into() .map_err(|e| { - format!("error converting supplied value for proof: {e}") + format!( + "error converting supplied value for merkle_context: {e}" + ) }); self } pub fn root(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::string::String>, T::Error: ::std::fmt::Display, { self.root = value @@ -33850,139 +29584,230 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }); self } - pub fn root_seq(mut self, value: T) -> Self + pub fn root_index(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.root_seq = value + self.root_index = value .try_into() .map_err(|e| { - format!("error converting supplied value for root_seq: {e}") + format!("error converting supplied value for root_index: {e}") }); self } } - impl ::std::convert::TryFrom - for super::GetCompressedAccountProofResponseValue { + impl ::std::convert::TryFrom for super::AddressProofInputs { type Error = super::error::ConversionError; fn try_from( - value: GetCompressedAccountProofResponseValue, + value: AddressProofInputs, ) -> ::std::result::Result { Ok(Self { - hash: value.hash?, - leaf_index: value.leaf_index?, - merkle_tree: value.merkle_tree?, - proof: value.proof?, + address: value.address?, + merkle_context: value.merkle_context?, root: value.root?, - root_seq: value.root_seq?, + root_index: value.root_index?, }) } } - impl ::std::convert::From - for GetCompressedAccountProofResponseValue { - fn from(value: super::GetCompressedAccountProofResponseValue) -> Self { + impl ::std::convert::From for AddressProofInputs { + fn from(value: super::AddressProofInputs) -> Self { Self { - hash: Ok(value.hash), - leaf_index: Ok(value.leaf_index), - merkle_tree: Ok(value.merkle_tree), - proof: Ok(value.proof), + address: Ok(value.address), + merkle_context: Ok(value.merkle_context), root: Ok(value.root), - root_seq: Ok(value.root_seq), + root_index: Ok(value.root_index), } } } #[derive(Clone, Debug)] - pub struct GetCompressedAccountProofResponseValueV2 { - hash: ::std::result::Result, - leaf_index: ::std::result::Result, - proof: ::std::result::Result< + pub struct AddressQueueData { + addresses: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + initial_root: ::std::result::Result, + leaves_hash_chains: ::std::result::Result< ::std::vec::Vec, ::std::string::String, >, - prove_by_index: ::std::result::Result, - root: ::std::result::Result, + low_element_indices: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + low_element_next_indices: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + low_element_next_values: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + low_element_values: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + nodes: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + queue_indices: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, root_seq: ::std::result::Result, - tree_context: ::std::result::Result< - super::TreeContextInfo, + start_index: ::std::result::Result, + subtrees: ::std::result::Result< + ::std::vec::Vec, ::std::string::String, >, } - impl ::std::default::Default for GetCompressedAccountProofResponseValueV2 { + impl ::std::default::Default for AddressQueueData { fn default() -> Self { Self { - hash: Err("no value supplied for hash".to_string()), - leaf_index: Err("no value supplied for leaf_index".to_string()), - proof: Err("no value supplied for proof".to_string()), - prove_by_index: Err( - "no value supplied for prove_by_index".to_string(), + addresses: Err("no value supplied for addresses".to_string()), + initial_root: Err("no value supplied for initial_root".to_string()), + leaves_hash_chains: Err( + "no value supplied for leaves_hash_chains".to_string(), + ), + low_element_indices: Err( + "no value supplied for low_element_indices".to_string(), + ), + low_element_next_indices: Err( + "no value supplied for low_element_next_indices".to_string(), + ), + low_element_next_values: Err( + "no value supplied for low_element_next_values".to_string(), + ), + low_element_values: Err( + "no value supplied for low_element_values".to_string(), + ), + nodes: Err("no value supplied for nodes".to_string()), + queue_indices: Err( + "no value supplied for queue_indices".to_string(), ), - root: Err("no value supplied for root".to_string()), root_seq: Err("no value supplied for root_seq".to_string()), - tree_context: Err("no value supplied for tree_context".to_string()), + start_index: Err("no value supplied for start_index".to_string()), + subtrees: Err("no value supplied for subtrees".to_string()), } } } - impl GetCompressedAccountProofResponseValueV2 { - pub fn hash(mut self, value: T) -> Self + impl AddressQueueData { + pub fn addresses(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, + { + self.addresses = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for addresses: {e}") + }); + self + } + pub fn initial_root(mut self, value: T) -> Self where T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.hash = value + self.initial_root = value .try_into() .map_err(|e| { - format!("error converting supplied value for hash: {e}") + format!("error converting supplied value for initial_root: {e}") }); self } - pub fn leaf_index(mut self, value: T) -> Self + pub fn leaves_hash_chains(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { - self.leaf_index = value + self.leaves_hash_chains = value .try_into() .map_err(|e| { - format!("error converting supplied value for leaf_index: {e}") + format!( + "error converting supplied value for leaves_hash_chains: {e}" + ) }); self } - pub fn proof(mut self, value: T) -> Self + pub fn low_element_indices(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, + { + self.low_element_indices = value + .try_into() + .map_err(|e| { + format!( + "error converting supplied value for low_element_indices: {e}" + ) + }); + self + } + pub fn low_element_next_indices(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, + { + self.low_element_next_indices = value + .try_into() + .map_err(|e| { + format!( + "error converting supplied value for low_element_next_indices: {e}" + ) + }); + self + } + pub fn low_element_next_values(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { - self.proof = value + self.low_element_next_values = value .try_into() .map_err(|e| { - format!("error converting supplied value for proof: {e}") + format!( + "error converting supplied value for low_element_next_values: {e}" + ) }); self } - pub fn prove_by_index(mut self, value: T) -> Self + pub fn low_element_values(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { - self.prove_by_index = value + self.low_element_values = value .try_into() .map_err(|e| { format!( - "error converting supplied value for prove_by_index: {e}" + "error converting supplied value for low_element_values: {e}" ) }); self } - pub fn root(mut self, value: T) -> Self + pub fn nodes(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { - self.root = value + self.nodes = value .try_into() .map_err(|e| { - format!("error converting supplied value for root: {e}") + format!("error converting supplied value for nodes: {e}") + }); + self + } + pub fn queue_indices(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, + { + self.queue_indices = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for queue_indices: {e}") }); self } @@ -33998,2385 +29823,2230 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }); self } - pub fn tree_context(mut self, value: T) -> Self + pub fn start_index(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.tree_context = value + self.start_index = value .try_into() .map_err(|e| { - format!("error converting supplied value for tree_context: {e}") + format!("error converting supplied value for start_index: {e}") + }); + self + } + pub fn subtrees(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, + { + self.subtrees = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for subtrees: {e}") }); self } } - impl ::std::convert::TryFrom - for super::GetCompressedAccountProofResponseValueV2 { + impl ::std::convert::TryFrom for super::AddressQueueData { type Error = super::error::ConversionError; fn try_from( - value: GetCompressedAccountProofResponseValueV2, + value: AddressQueueData, ) -> ::std::result::Result { Ok(Self { - hash: value.hash?, - leaf_index: value.leaf_index?, - proof: value.proof?, - prove_by_index: value.prove_by_index?, - root: value.root?, + addresses: value.addresses?, + initial_root: value.initial_root?, + leaves_hash_chains: value.leaves_hash_chains?, + low_element_indices: value.low_element_indices?, + low_element_next_indices: value.low_element_next_indices?, + low_element_next_values: value.low_element_next_values?, + low_element_values: value.low_element_values?, + nodes: value.nodes?, + queue_indices: value.queue_indices?, root_seq: value.root_seq?, - tree_context: value.tree_context?, + start_index: value.start_index?, + subtrees: value.subtrees?, }) } } - impl ::std::convert::From - for GetCompressedAccountProofResponseValueV2 { - fn from(value: super::GetCompressedAccountProofResponseValueV2) -> Self { + impl ::std::convert::From for AddressQueueData { + fn from(value: super::AddressQueueData) -> Self { Self { - hash: Ok(value.hash), - leaf_index: Ok(value.leaf_index), - proof: Ok(value.proof), - prove_by_index: Ok(value.prove_by_index), - root: Ok(value.root), + addresses: Ok(value.addresses), + initial_root: Ok(value.initial_root), + leaves_hash_chains: Ok(value.leaves_hash_chains), + low_element_indices: Ok(value.low_element_indices), + low_element_next_indices: Ok(value.low_element_next_indices), + low_element_next_values: Ok(value.low_element_next_values), + low_element_values: Ok(value.low_element_values), + nodes: Ok(value.nodes), + queue_indices: Ok(value.queue_indices), root_seq: Ok(value.root_seq), - tree_context: Ok(value.tree_context), + start_index: Ok(value.start_index), + subtrees: Ok(value.subtrees), } } } #[derive(Clone, Debug)] - pub struct InputQueueData { - account_hashes: ::std::result::Result< - ::std::vec::Vec, - ::std::string::String, - >, - first_queue_index: ::std::result::Result, - leaf_indices: ::std::result::Result< - ::std::vec::Vec, - ::std::string::String, - >, - leaves: ::std::result::Result< - ::std::vec::Vec, - ::std::string::String, - >, - leaves_hash_chains: ::std::result::Result< - ::std::vec::Vec, - ::std::string::String, - >, - nullifiers: ::std::result::Result< - ::std::vec::Vec, + pub struct AddressWithTree { + address: ::std::result::Result< + super::SerializablePubkey, ::std::string::String, >, - tx_hashes: ::std::result::Result< - ::std::vec::Vec, + tree: ::std::result::Result< + super::SerializablePubkey, ::std::string::String, >, } - impl ::std::default::Default for InputQueueData { + impl ::std::default::Default for AddressWithTree { fn default() -> Self { Self { - account_hashes: Err( - "no value supplied for account_hashes".to_string(), - ), - first_queue_index: Err( - "no value supplied for first_queue_index".to_string(), - ), - leaf_indices: Err("no value supplied for leaf_indices".to_string()), - leaves: Err("no value supplied for leaves".to_string()), - leaves_hash_chains: Err( - "no value supplied for leaves_hash_chains".to_string(), - ), - nullifiers: Err("no value supplied for nullifiers".to_string()), - tx_hashes: Err("no value supplied for tx_hashes".to_string()), + address: Err("no value supplied for address".to_string()), + tree: Err("no value supplied for tree".to_string()), } } - } - impl InputQueueData { - pub fn account_hashes(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::vec::Vec>, - T::Error: ::std::fmt::Display, - { - self.account_hashes = value - .try_into() - .map_err(|e| { - format!( - "error converting supplied value for account_hashes: {e}" - ) - }); - self - } - pub fn first_queue_index(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.first_queue_index = value - .try_into() - .map_err(|e| { - format!( - "error converting supplied value for first_queue_index: {e}" - ) - }); - self - } - pub fn leaf_indices(mut self, value: T) -> Self + } + impl AddressWithTree { + pub fn address(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.leaf_indices = value + self.address = value .try_into() .map_err(|e| { - format!("error converting supplied value for leaf_indices: {e}") + format!("error converting supplied value for address: {e}") }); self } - pub fn leaves(mut self, value: T) -> Self + pub fn tree(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.leaves = value + self.tree = value .try_into() .map_err(|e| { - format!("error converting supplied value for leaves: {e}") + format!("error converting supplied value for tree: {e}") }); self } - pub fn leaves_hash_chains(mut self, value: T) -> Self + } + impl ::std::convert::TryFrom for super::AddressWithTree { + type Error = super::error::ConversionError; + fn try_from( + value: AddressWithTree, + ) -> ::std::result::Result { + Ok(Self { + address: value.address?, + tree: value.tree?, + }) + } + } + impl ::std::convert::From for AddressWithTree { + fn from(value: super::AddressWithTree) -> Self { + Self { + address: Ok(value.address), + tree: Ok(value.tree), + } + } + } + #[derive(Clone, Debug)] + pub struct ClosedAccountV2 { + account: ::std::result::Result, + nullifier: ::std::result::Result, + tx_hash: ::std::result::Result, + } + impl ::std::default::Default for ClosedAccountV2 { + fn default() -> Self { + Self { + account: Err("no value supplied for account".to_string()), + nullifier: Err("no value supplied for nullifier".to_string()), + tx_hash: Err("no value supplied for tx_hash".to_string()), + } + } + } + impl ClosedAccountV2 { + pub fn account(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.leaves_hash_chains = value + self.account = value .try_into() .map_err(|e| { - format!( - "error converting supplied value for leaves_hash_chains: {e}" - ) + format!("error converting supplied value for account: {e}") }); self } - pub fn nullifiers(mut self, value: T) -> Self + pub fn nullifier(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.nullifiers = value + self.nullifier = value .try_into() .map_err(|e| { - format!("error converting supplied value for nullifiers: {e}") + format!("error converting supplied value for nullifier: {e}") }); self } - pub fn tx_hashes(mut self, value: T) -> Self + pub fn tx_hash(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.tx_hashes = value + self.tx_hash = value .try_into() .map_err(|e| { - format!("error converting supplied value for tx_hashes: {e}") + format!("error converting supplied value for tx_hash: {e}") }); self } } - impl ::std::convert::TryFrom for super::InputQueueData { + impl ::std::convert::TryFrom for super::ClosedAccountV2 { type Error = super::error::ConversionError; fn try_from( - value: InputQueueData, + value: ClosedAccountV2, ) -> ::std::result::Result { Ok(Self { - account_hashes: value.account_hashes?, - first_queue_index: value.first_queue_index?, - leaf_indices: value.leaf_indices?, - leaves: value.leaves?, - leaves_hash_chains: value.leaves_hash_chains?, - nullifiers: value.nullifiers?, - tx_hashes: value.tx_hashes?, + account: value.account?, + nullifier: value.nullifier?, + tx_hash: value.tx_hash?, }) } } - impl ::std::convert::From for InputQueueData { - fn from(value: super::InputQueueData) -> Self { + impl ::std::convert::From for ClosedAccountV2 { + fn from(value: super::ClosedAccountV2) -> Self { Self { - account_hashes: Ok(value.account_hashes), - first_queue_index: Ok(value.first_queue_index), - leaf_indices: Ok(value.leaf_indices), - leaves: Ok(value.leaves), - leaves_hash_chains: Ok(value.leaves_hash_chains), - nullifiers: Ok(value.nullifiers), - tx_hashes: Ok(value.tx_hashes), + account: Ok(value.account), + nullifier: Ok(value.nullifier), + tx_hash: Ok(value.tx_hash), } } } #[derive(Clone, Debug)] - pub struct Memcmp { - bytes: ::std::result::Result, - offset: ::std::result::Result, + pub struct ClosedAccountWithOptionalTokenDataV2 { + account: ::std::result::Result< + super::ClosedAccountV2, + ::std::string::String, + >, + optional_token_data: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, } - impl ::std::default::Default for Memcmp { + impl ::std::default::Default for ClosedAccountWithOptionalTokenDataV2 { fn default() -> Self { Self { - bytes: Err("no value supplied for bytes".to_string()), - offset: Err("no value supplied for offset".to_string()), + account: Err("no value supplied for account".to_string()), + optional_token_data: Ok(Default::default()), } } } - impl Memcmp { - pub fn bytes(mut self, value: T) -> Self + impl ClosedAccountWithOptionalTokenDataV2 { + pub fn account(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.bytes = value + self.account = value .try_into() .map_err(|e| { - format!("error converting supplied value for bytes: {e}") + format!("error converting supplied value for account: {e}") }); self } - pub fn offset(mut self, value: T) -> Self + pub fn optional_token_data(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::option::Option>, T::Error: ::std::fmt::Display, { - self.offset = value + self.optional_token_data = value .try_into() .map_err(|e| { - format!("error converting supplied value for offset: {e}") + format!( + "error converting supplied value for optional_token_data: {e}" + ) }); self } } - impl ::std::convert::TryFrom for super::Memcmp { + impl ::std::convert::TryFrom + for super::ClosedAccountWithOptionalTokenDataV2 { type Error = super::error::ConversionError; fn try_from( - value: Memcmp, + value: ClosedAccountWithOptionalTokenDataV2, ) -> ::std::result::Result { Ok(Self { - bytes: value.bytes?, - offset: value.offset?, + account: value.account?, + optional_token_data: value.optional_token_data?, }) } } - impl ::std::convert::From for Memcmp { - fn from(value: super::Memcmp) -> Self { + impl ::std::convert::From + for ClosedAccountWithOptionalTokenDataV2 { + fn from(value: super::ClosedAccountWithOptionalTokenDataV2) -> Self { Self { - bytes: Ok(value.bytes), - offset: Ok(value.offset), + account: Ok(value.account), + optional_token_data: Ok(value.optional_token_data), } } } #[derive(Clone, Debug)] - pub struct MerkleContextV2 { - cpi_context: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - next_tree_context: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - queue: ::std::result::Result< - super::SerializablePubkey, - ::std::string::String, - >, - tree: ::std::result::Result< - super::SerializablePubkey, - ::std::string::String, - >, - tree_type: ::std::result::Result, + pub struct CompressedProof { + a: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + b: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + c: ::std::result::Result<::std::vec::Vec, ::std::string::String>, } - impl ::std::default::Default for MerkleContextV2 { + impl ::std::default::Default for CompressedProof { fn default() -> Self { Self { - cpi_context: Ok(Default::default()), - next_tree_context: Ok(Default::default()), - queue: Err("no value supplied for queue".to_string()), - tree: Err("no value supplied for tree".to_string()), - tree_type: Err("no value supplied for tree_type".to_string()), + a: Err("no value supplied for a".to_string()), + b: Err("no value supplied for b".to_string()), + c: Err("no value supplied for c".to_string()), } } } - impl MerkleContextV2 { - pub fn cpi_context(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - ::std::option::Option, - >, - T::Error: ::std::fmt::Display, - { - self.cpi_context = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for cpi_context: {e}") - }); - self - } - pub fn next_tree_context(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - ::std::option::Option, - >, - T::Error: ::std::fmt::Display, - { - self.next_tree_context = value - .try_into() - .map_err(|e| { - format!( - "error converting supplied value for next_tree_context: {e}" - ) - }); - self - } - pub fn queue(mut self, value: T) -> Self + impl CompressedProof { + pub fn a(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { - self.queue = value + self.a = value .try_into() - .map_err(|e| { - format!("error converting supplied value for queue: {e}") - }); + .map_err(|e| format!("error converting supplied value for a: {e}")); self } - pub fn tree(mut self, value: T) -> Self + pub fn b(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { - self.tree = value + self.b = value .try_into() - .map_err(|e| { - format!("error converting supplied value for tree: {e}") - }); + .map_err(|e| format!("error converting supplied value for b: {e}")); self } - pub fn tree_type(mut self, value: T) -> Self + pub fn c(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { - self.tree_type = value + self.c = value .try_into() - .map_err(|e| { - format!("error converting supplied value for tree_type: {e}") - }); + .map_err(|e| format!("error converting supplied value for c: {e}")); self } } - impl ::std::convert::TryFrom for super::MerkleContextV2 { + impl ::std::convert::TryFrom for super::CompressedProof { type Error = super::error::ConversionError; fn try_from( - value: MerkleContextV2, + value: CompressedProof, ) -> ::std::result::Result { Ok(Self { - cpi_context: value.cpi_context?, - next_tree_context: value.next_tree_context?, - queue: value.queue?, - tree: value.tree?, - tree_type: value.tree_type?, + a: value.a?, + b: value.b?, + c: value.c?, }) } } - impl ::std::convert::From for MerkleContextV2 { - fn from(value: super::MerkleContextV2) -> Self { + impl ::std::convert::From for CompressedProof { + fn from(value: super::CompressedProof) -> Self { Self { - cpi_context: Ok(value.cpi_context), - next_tree_context: Ok(value.next_tree_context), - queue: Ok(value.queue), - tree: Ok(value.tree), - tree_type: Ok(value.tree_type), + a: Ok(value.a), + b: Ok(value.b), + c: Ok(value.c), } } } #[derive(Clone, Debug)] - pub struct MerkleContextWithNewAddressProof { - address: ::std::result::Result< - super::SerializablePubkey, + pub struct CompressedProofWithContext { + compressed_proof: ::std::result::Result< + super::CompressedProof, ::std::string::String, >, - higher_range_address: ::std::result::Result< - super::SerializablePubkey, + leaf_indices: ::std::result::Result< + ::std::vec::Vec, ::std::string::String, >, - low_element_leaf_index: ::std::result::Result, - lower_range_address: ::std::result::Result< - super::SerializablePubkey, + leaves: ::std::result::Result< + ::std::vec::Vec<::std::string::String>, ::std::string::String, >, - merkle_tree: ::std::result::Result< - super::SerializablePubkey, + merkle_trees: ::std::result::Result< + ::std::vec::Vec<::std::string::String>, ::std::string::String, >, - next_index: ::std::result::Result, - proof: ::std::result::Result< - ::std::vec::Vec, + root_indices: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + roots: ::std::result::Result< + ::std::vec::Vec<::std::string::String>, ::std::string::String, >, - root: ::std::result::Result, - root_seq: ::std::result::Result, } - impl ::std::default::Default for MerkleContextWithNewAddressProof { + impl ::std::default::Default for CompressedProofWithContext { fn default() -> Self { Self { - address: Err("no value supplied for address".to_string()), - higher_range_address: Err( - "no value supplied for higher_range_address".to_string(), - ), - low_element_leaf_index: Err( - "no value supplied for low_element_leaf_index".to_string(), - ), - lower_range_address: Err( - "no value supplied for lower_range_address".to_string(), + compressed_proof: Err( + "no value supplied for compressed_proof".to_string(), ), - merkle_tree: Err("no value supplied for merkle_tree".to_string()), - next_index: Err("no value supplied for next_index".to_string()), - proof: Err("no value supplied for proof".to_string()), - root: Err("no value supplied for root".to_string()), - root_seq: Err("no value supplied for root_seq".to_string()), + leaf_indices: Err("no value supplied for leaf_indices".to_string()), + leaves: Err("no value supplied for leaves".to_string()), + merkle_trees: Err("no value supplied for merkle_trees".to_string()), + root_indices: Err("no value supplied for root_indices".to_string()), + roots: Err("no value supplied for roots".to_string()), } } } - impl MerkleContextWithNewAddressProof { - pub fn address(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.address = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for address: {e}") - }); - self - } - pub fn higher_range_address(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.higher_range_address = value - .try_into() - .map_err(|e| { - format!( - "error converting supplied value for higher_range_address: {e}" - ) - }); - self - } - pub fn low_element_leaf_index(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.low_element_leaf_index = value - .try_into() - .map_err(|e| { - format!( - "error converting supplied value for low_element_leaf_index: {e}" - ) - }); - self - } - pub fn lower_range_address(mut self, value: T) -> Self + impl CompressedProofWithContext { + pub fn compressed_proof(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.lower_range_address = value + self.compressed_proof = value .try_into() .map_err(|e| { format!( - "error converting supplied value for lower_range_address: {e}" + "error converting supplied value for compressed_proof: {e}" ) }); self } - pub fn merkle_tree(mut self, value: T) -> Self + pub fn leaf_indices(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { - self.merkle_tree = value + self.leaf_indices = value .try_into() .map_err(|e| { - format!("error converting supplied value for merkle_tree: {e}") + format!("error converting supplied value for leaf_indices: {e}") }); self } - pub fn next_index(mut self, value: T) -> Self + pub fn leaves(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::vec::Vec<::std::string::String>>, T::Error: ::std::fmt::Display, { - self.next_index = value + self.leaves = value .try_into() .map_err(|e| { - format!("error converting supplied value for next_index: {e}") + format!("error converting supplied value for leaves: {e}") }); self } - pub fn proof(mut self, value: T) -> Self + pub fn merkle_trees(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto<::std::vec::Vec<::std::string::String>>, T::Error: ::std::fmt::Display, { - self.proof = value + self.merkle_trees = value .try_into() .map_err(|e| { - format!("error converting supplied value for proof: {e}") + format!("error converting supplied value for merkle_trees: {e}") }); self } - pub fn root(mut self, value: T) -> Self + pub fn root_indices(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { - self.root = value + self.root_indices = value .try_into() .map_err(|e| { - format!("error converting supplied value for root: {e}") + format!("error converting supplied value for root_indices: {e}") }); self } - pub fn root_seq(mut self, value: T) -> Self + pub fn roots(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::vec::Vec<::std::string::String>>, T::Error: ::std::fmt::Display, { - self.root_seq = value + self.roots = value .try_into() .map_err(|e| { - format!("error converting supplied value for root_seq: {e}") + format!("error converting supplied value for roots: {e}") }); self } } - impl ::std::convert::TryFrom - for super::MerkleContextWithNewAddressProof { + impl ::std::convert::TryFrom + for super::CompressedProofWithContext { type Error = super::error::ConversionError; fn try_from( - value: MerkleContextWithNewAddressProof, + value: CompressedProofWithContext, ) -> ::std::result::Result { Ok(Self { - address: value.address?, - higher_range_address: value.higher_range_address?, - low_element_leaf_index: value.low_element_leaf_index?, - lower_range_address: value.lower_range_address?, - merkle_tree: value.merkle_tree?, - next_index: value.next_index?, - proof: value.proof?, - root: value.root?, - root_seq: value.root_seq?, + compressed_proof: value.compressed_proof?, + leaf_indices: value.leaf_indices?, + leaves: value.leaves?, + merkle_trees: value.merkle_trees?, + root_indices: value.root_indices?, + roots: value.roots?, }) } } - impl ::std::convert::From - for MerkleContextWithNewAddressProof { - fn from(value: super::MerkleContextWithNewAddressProof) -> Self { + impl ::std::convert::From + for CompressedProofWithContext { + fn from(value: super::CompressedProofWithContext) -> Self { Self { - address: Ok(value.address), - higher_range_address: Ok(value.higher_range_address), - low_element_leaf_index: Ok(value.low_element_leaf_index), - lower_range_address: Ok(value.lower_range_address), - merkle_tree: Ok(value.merkle_tree), - next_index: Ok(value.next_index), - proof: Ok(value.proof), - root: Ok(value.root), - root_seq: Ok(value.root_seq), + compressed_proof: Ok(value.compressed_proof), + leaf_indices: Ok(value.leaf_indices), + leaves: Ok(value.leaves), + merkle_trees: Ok(value.merkle_trees), + root_indices: Ok(value.root_indices), + roots: Ok(value.roots), } } } #[derive(Clone, Debug)] - pub struct Node { - hash: ::std::result::Result, - index: ::std::result::Result, + pub struct CompressedProofWithContextV2 { + accounts: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + addresses: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + compressed_proof: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, } - impl ::std::default::Default for Node { + impl ::std::default::Default for CompressedProofWithContextV2 { fn default() -> Self { Self { - hash: Err("no value supplied for hash".to_string()), - index: Err("no value supplied for index".to_string()), + accounts: Err("no value supplied for accounts".to_string()), + addresses: Err("no value supplied for addresses".to_string()), + compressed_proof: Ok(Default::default()), } } } - impl Node { - pub fn hash(mut self, value: T) -> Self + impl CompressedProofWithContextV2 { + pub fn accounts(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { - self.hash = value + self.accounts = value .try_into() .map_err(|e| { - format!("error converting supplied value for hash: {e}") + format!("error converting supplied value for accounts: {e}") + }); + self + } + pub fn addresses(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, + { + self.addresses = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for addresses: {e}") }); self } - pub fn index(mut self, value: T) -> Self + pub fn compressed_proof(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + ::std::option::Option, + >, T::Error: ::std::fmt::Display, { - self.index = value + self.compressed_proof = value .try_into() .map_err(|e| { - format!("error converting supplied value for index: {e}") + format!( + "error converting supplied value for compressed_proof: {e}" + ) }); self } } - impl ::std::convert::TryFrom for super::Node { + impl ::std::convert::TryFrom + for super::CompressedProofWithContextV2 { type Error = super::error::ConversionError; fn try_from( - value: Node, + value: CompressedProofWithContextV2, ) -> ::std::result::Result { Ok(Self { - hash: value.hash?, - index: value.index?, + accounts: value.accounts?, + addresses: value.addresses?, + compressed_proof: value.compressed_proof?, }) } } - impl ::std::convert::From for Node { - fn from(value: super::Node) -> Self { + impl ::std::convert::From + for CompressedProofWithContextV2 { + fn from(value: super::CompressedProofWithContextV2) -> Self { Self { - hash: Ok(value.hash), - index: Ok(value.index), + accounts: Ok(value.accounts), + addresses: Ok(value.addresses), + compressed_proof: Ok(value.compressed_proof), } } } #[derive(Clone, Debug)] - pub struct OutputQueueData { - account_hashes: ::std::result::Result< - ::std::vec::Vec, - ::std::string::String, - >, - first_queue_index: ::std::result::Result, - leaf_indices: ::std::result::Result< - ::std::vec::Vec, - ::std::string::String, - >, - leaves: ::std::result::Result< - ::std::vec::Vec, + pub struct CompressionInfoV2 { + closed_accounts: ::std::result::Result< + ::std::vec::Vec, ::std::string::String, >, - leaves_hash_chains: ::std::result::Result< - ::std::vec::Vec, + opened_accounts: ::std::result::Result< + ::std::vec::Vec, ::std::string::String, >, - next_index: ::std::result::Result, } - impl ::std::default::Default for OutputQueueData { + impl ::std::default::Default for CompressionInfoV2 { fn default() -> Self { Self { - account_hashes: Err( - "no value supplied for account_hashes".to_string(), - ), - first_queue_index: Err( - "no value supplied for first_queue_index".to_string(), + closed_accounts: Err( + "no value supplied for closed_accounts".to_string(), ), - leaf_indices: Err("no value supplied for leaf_indices".to_string()), - leaves: Err("no value supplied for leaves".to_string()), - leaves_hash_chains: Err( - "no value supplied for leaves_hash_chains".to_string(), + opened_accounts: Err( + "no value supplied for opened_accounts".to_string(), ), - next_index: Err("no value supplied for next_index".to_string()), } } } - impl OutputQueueData { - pub fn account_hashes(mut self, value: T) -> Self + impl CompressionInfoV2 { + pub fn closed_accounts(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto< + ::std::vec::Vec, + >, T::Error: ::std::fmt::Display, { - self.account_hashes = value + self.closed_accounts = value .try_into() .map_err(|e| { format!( - "error converting supplied value for account_hashes: {e}" + "error converting supplied value for closed_accounts: {e}" ) }); self } - pub fn first_queue_index(mut self, value: T) -> Self + pub fn opened_accounts(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + ::std::vec::Vec, + >, T::Error: ::std::fmt::Display, { - self.first_queue_index = value + self.opened_accounts = value .try_into() .map_err(|e| { format!( - "error converting supplied value for first_queue_index: {e}" + "error converting supplied value for opened_accounts: {e}" ) }); self } - pub fn leaf_indices(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::vec::Vec>, - T::Error: ::std::fmt::Display, - { - self.leaf_indices = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for leaf_indices: {e}") - }); - self + } + impl ::std::convert::TryFrom for super::CompressionInfoV2 { + type Error = super::error::ConversionError; + fn try_from( + value: CompressionInfoV2, + ) -> ::std::result::Result { + Ok(Self { + closed_accounts: value.closed_accounts?, + opened_accounts: value.opened_accounts?, + }) } - pub fn leaves(mut self, value: T) -> Self + } + impl ::std::convert::From for CompressionInfoV2 { + fn from(value: super::CompressionInfoV2) -> Self { + Self { + closed_accounts: Ok(value.closed_accounts), + opened_accounts: Ok(value.opened_accounts), + } + } + } + #[derive(Clone, Debug)] + pub struct Context { + slot: ::std::result::Result, + } + impl ::std::default::Default for Context { + fn default() -> Self { + Self { + slot: Err("no value supplied for slot".to_string()), + } + } + } + impl Context { + pub fn slot(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.leaves = value + self.slot = value .try_into() .map_err(|e| { - format!("error converting supplied value for leaves: {e}") + format!("error converting supplied value for slot: {e}") }); self } - pub fn leaves_hash_chains(mut self, value: T) -> Self + } + impl ::std::convert::TryFrom for super::Context { + type Error = super::error::ConversionError; + fn try_from( + value: Context, + ) -> ::std::result::Result { + Ok(Self { slot: value.slot? }) + } + } + impl ::std::convert::From for Context { + fn from(value: super::Context) -> Self { + Self { slot: Ok(value.slot) } + } + } + #[derive(Clone, Debug)] + pub struct DataSlice { + length: ::std::result::Result, + offset: ::std::result::Result, + } + impl ::std::default::Default for DataSlice { + fn default() -> Self { + Self { + length: Err("no value supplied for length".to_string()), + offset: Err("no value supplied for offset".to_string()), + } + } + } + impl DataSlice { + pub fn length(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.leaves_hash_chains = value + self.length = value .try_into() .map_err(|e| { - format!( - "error converting supplied value for leaves_hash_chains: {e}" - ) + format!("error converting supplied value for length: {e}") }); self } - pub fn next_index(mut self, value: T) -> Self + pub fn offset(mut self, value: T) -> Self where T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.next_index = value + self.offset = value .try_into() .map_err(|e| { - format!("error converting supplied value for next_index: {e}") + format!("error converting supplied value for offset: {e}") }); self } } - impl ::std::convert::TryFrom for super::OutputQueueData { + impl ::std::convert::TryFrom for super::DataSlice { type Error = super::error::ConversionError; fn try_from( - value: OutputQueueData, + value: DataSlice, ) -> ::std::result::Result { Ok(Self { - account_hashes: value.account_hashes?, - first_queue_index: value.first_queue_index?, - leaf_indices: value.leaf_indices?, - leaves: value.leaves?, - leaves_hash_chains: value.leaves_hash_chains?, - next_index: value.next_index?, + length: value.length?, + offset: value.offset?, }) } } - impl ::std::convert::From for OutputQueueData { - fn from(value: super::OutputQueueData) -> Self { + impl ::std::convert::From for DataSlice { + fn from(value: super::DataSlice) -> Self { Self { - account_hashes: Ok(value.account_hashes), - first_queue_index: Ok(value.first_queue_index), - leaf_indices: Ok(value.leaf_indices), - leaves: Ok(value.leaves), - leaves_hash_chains: Ok(value.leaves_hash_chains), - next_index: Ok(value.next_index), + length: Ok(value.length), + offset: Ok(value.offset), } } } #[derive(Clone, Debug)] - pub struct OwnerBalance { - balance: ::std::result::Result< - super::UnsignedInteger, - ::std::string::String, - >, - owner: ::std::result::Result< - super::SerializablePubkey, + pub struct FilterSelector { + memcmp: ::std::result::Result< + ::std::option::Option, ::std::string::String, >, } - impl ::std::default::Default for OwnerBalance { + impl ::std::default::Default for FilterSelector { fn default() -> Self { Self { - balance: Err("no value supplied for balance".to_string()), - owner: Err("no value supplied for owner".to_string()), + memcmp: Ok(Default::default()), } } } - impl OwnerBalance { - pub fn balance(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.balance = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for balance: {e}") - }); - self - } - pub fn owner(mut self, value: T) -> Self + impl FilterSelector { + pub fn memcmp(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::option::Option>, T::Error: ::std::fmt::Display, { - self.owner = value + self.memcmp = value .try_into() .map_err(|e| { - format!("error converting supplied value for owner: {e}") + format!("error converting supplied value for memcmp: {e}") }); self } } - impl ::std::convert::TryFrom for super::OwnerBalance { + impl ::std::convert::TryFrom for super::FilterSelector { type Error = super::error::ConversionError; fn try_from( - value: OwnerBalance, + value: FilterSelector, ) -> ::std::result::Result { - Ok(Self { - balance: value.balance?, - owner: value.owner?, - }) + Ok(Self { memcmp: value.memcmp? }) } } - impl ::std::convert::From for OwnerBalance { - fn from(value: super::OwnerBalance) -> Self { - Self { - balance: Ok(value.balance), - owner: Ok(value.owner), - } + impl ::std::convert::From for FilterSelector { + fn from(value: super::FilterSelector) -> Self { + Self { memcmp: Ok(value.memcmp) } } } #[derive(Clone, Debug)] - pub struct OwnerBalanceList { - cursor: ::std::result::Result< - ::std::option::Option, + pub struct GetCompressedAccountProofResponseValue { + hash: ::std::result::Result, + leaf_index: ::std::result::Result, + merkle_tree: ::std::result::Result< + super::SerializablePubkey, ::std::string::String, >, - items: ::std::result::Result< - ::std::vec::Vec, + proof: ::std::result::Result< + ::std::vec::Vec, ::std::string::String, >, + root: ::std::result::Result, + root_seq: ::std::result::Result, } - impl ::std::default::Default for OwnerBalanceList { + impl ::std::default::Default for GetCompressedAccountProofResponseValue { fn default() -> Self { Self { - cursor: Ok(Default::default()), - items: Err("no value supplied for items".to_string()), + hash: Err("no value supplied for hash".to_string()), + leaf_index: Err("no value supplied for leaf_index".to_string()), + merkle_tree: Err("no value supplied for merkle_tree".to_string()), + proof: Err("no value supplied for proof".to_string()), + root: Err("no value supplied for root".to_string()), + root_seq: Err("no value supplied for root_seq".to_string()), } } } - impl OwnerBalanceList { - pub fn cursor(mut self, value: T) -> Self + impl GetCompressedAccountProofResponseValue { + pub fn hash(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.cursor = value + self.hash = value .try_into() .map_err(|e| { - format!("error converting supplied value for cursor: {e}") + format!("error converting supplied value for hash: {e}") }); self } - pub fn items(mut self, value: T) -> Self + pub fn leaf_index(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.items = value + self.leaf_index = value .try_into() .map_err(|e| { - format!("error converting supplied value for items: {e}") + format!("error converting supplied value for leaf_index: {e}") }); self } - } - impl ::std::convert::TryFrom for super::OwnerBalanceList { - type Error = super::error::ConversionError; - fn try_from( - value: OwnerBalanceList, - ) -> ::std::result::Result { - Ok(Self { - cursor: value.cursor?, - items: value.items?, - }) - } - } - impl ::std::convert::From for OwnerBalanceList { - fn from(value: super::OwnerBalanceList) -> Self { - Self { - cursor: Ok(value.cursor), - items: Ok(value.items), - } + pub fn merkle_tree(mut self, value: T) -> Self + where + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, + { + self.merkle_tree = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for merkle_tree: {e}") + }); + self } - } - #[derive(Clone, Debug)] - pub struct OwnerBalancesResponse { - context: ::std::result::Result, - value: ::std::result::Result, - } - impl ::std::default::Default for OwnerBalancesResponse { - fn default() -> Self { - Self { - context: Err("no value supplied for context".to_string()), - value: Err("no value supplied for value".to_string()), - } + pub fn proof(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, + { + self.proof = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for proof: {e}") + }); + self } - } - impl OwnerBalancesResponse { - pub fn context(mut self, value: T) -> Self + pub fn root(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.context = value + self.root = value .try_into() .map_err(|e| { - format!("error converting supplied value for context: {e}") + format!("error converting supplied value for root: {e}") }); self } - pub fn value(mut self, value: T) -> Self + pub fn root_seq(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.value = value + self.root_seq = value .try_into() .map_err(|e| { - format!("error converting supplied value for value: {e}") + format!("error converting supplied value for root_seq: {e}") }); self } } - impl ::std::convert::TryFrom - for super::OwnerBalancesResponse { + impl ::std::convert::TryFrom + for super::GetCompressedAccountProofResponseValue { type Error = super::error::ConversionError; fn try_from( - value: OwnerBalancesResponse, + value: GetCompressedAccountProofResponseValue, ) -> ::std::result::Result { Ok(Self { - context: value.context?, - value: value.value?, + hash: value.hash?, + leaf_index: value.leaf_index?, + merkle_tree: value.merkle_tree?, + proof: value.proof?, + root: value.root?, + root_seq: value.root_seq?, }) } } - impl ::std::convert::From - for OwnerBalancesResponse { - fn from(value: super::OwnerBalancesResponse) -> Self { + impl ::std::convert::From + for GetCompressedAccountProofResponseValue { + fn from(value: super::GetCompressedAccountProofResponseValue) -> Self { Self { - context: Ok(value.context), - value: Ok(value.value), + hash: Ok(value.hash), + leaf_index: Ok(value.leaf_index), + merkle_tree: Ok(value.merkle_tree), + proof: Ok(value.proof), + root: Ok(value.root), + root_seq: Ok(value.root_seq), } } } #[derive(Clone, Debug)] - pub struct PaginatedAccountList { - cursor: ::std::result::Result< - ::std::option::Option, + pub struct GetCompressedAccountProofResponseValueV2 { + hash: ::std::result::Result, + leaf_index: ::std::result::Result, + proof: ::std::result::Result< + ::std::vec::Vec, ::std::string::String, >, - items: ::std::result::Result< - ::std::vec::Vec, + prove_by_index: ::std::result::Result, + root: ::std::result::Result, + root_seq: ::std::result::Result, + tree_context: ::std::result::Result< + super::TreeContextInfo, ::std::string::String, >, } - impl ::std::default::Default for PaginatedAccountList { + impl ::std::default::Default for GetCompressedAccountProofResponseValueV2 { fn default() -> Self { Self { - cursor: Ok(Default::default()), - items: Err("no value supplied for items".to_string()), + hash: Err("no value supplied for hash".to_string()), + leaf_index: Err("no value supplied for leaf_index".to_string()), + proof: Err("no value supplied for proof".to_string()), + prove_by_index: Err( + "no value supplied for prove_by_index".to_string(), + ), + root: Err("no value supplied for root".to_string()), + root_seq: Err("no value supplied for root_seq".to_string()), + tree_context: Err("no value supplied for tree_context".to_string()), } } } - impl PaginatedAccountList { - pub fn cursor(mut self, value: T) -> Self + impl GetCompressedAccountProofResponseValueV2 { + pub fn hash(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.cursor = value + self.hash = value .try_into() .map_err(|e| { - format!("error converting supplied value for cursor: {e}") + format!("error converting supplied value for hash: {e}") }); self } - pub fn items(mut self, value: T) -> Self + pub fn leaf_index(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.items = value + self.leaf_index = value .try_into() .map_err(|e| { - format!("error converting supplied value for items: {e}") + format!("error converting supplied value for leaf_index: {e}") }); self } - } - impl ::std::convert::TryFrom - for super::PaginatedAccountList { - type Error = super::error::ConversionError; - fn try_from( - value: PaginatedAccountList, - ) -> ::std::result::Result { - Ok(Self { - cursor: value.cursor?, - items: value.items?, - }) + pub fn proof(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, + { + self.proof = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for proof: {e}") + }); + self } - } - impl ::std::convert::From for PaginatedAccountList { - fn from(value: super::PaginatedAccountList) -> Self { - Self { - cursor: Ok(value.cursor), - items: Ok(value.items), - } + pub fn prove_by_index(mut self, value: T) -> Self + where + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, + { + self.prove_by_index = value + .try_into() + .map_err(|e| { + format!( + "error converting supplied value for prove_by_index: {e}" + ) + }); + self } - } - #[derive(Clone, Debug)] - pub struct PaginatedAccountListV2 { - cursor: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - items: ::std::result::Result< - ::std::vec::Vec, - ::std::string::String, - >, - } - impl ::std::default::Default for PaginatedAccountListV2 { - fn default() -> Self { - Self { - cursor: Ok(Default::default()), - items: Err("no value supplied for items".to_string()), - } + pub fn root(mut self, value: T) -> Self + where + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, + { + self.root = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for root: {e}") + }); + self } - } - impl PaginatedAccountListV2 { - pub fn cursor(mut self, value: T) -> Self + pub fn root_seq(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.cursor = value + self.root_seq = value .try_into() .map_err(|e| { - format!("error converting supplied value for cursor: {e}") + format!("error converting supplied value for root_seq: {e}") }); self } - pub fn items(mut self, value: T) -> Self + pub fn tree_context(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.items = value + self.tree_context = value .try_into() .map_err(|e| { - format!("error converting supplied value for items: {e}") + format!("error converting supplied value for tree_context: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PaginatedAccountListV2 { + impl ::std::convert::TryFrom + for super::GetCompressedAccountProofResponseValueV2 { type Error = super::error::ConversionError; fn try_from( - value: PaginatedAccountListV2, + value: GetCompressedAccountProofResponseValueV2, ) -> ::std::result::Result { Ok(Self { - cursor: value.cursor?, - items: value.items?, + hash: value.hash?, + leaf_index: value.leaf_index?, + proof: value.proof?, + prove_by_index: value.prove_by_index?, + root: value.root?, + root_seq: value.root_seq?, + tree_context: value.tree_context?, }) } } - impl ::std::convert::From - for PaginatedAccountListV2 { - fn from(value: super::PaginatedAccountListV2) -> Self { + impl ::std::convert::From + for GetCompressedAccountProofResponseValueV2 { + fn from(value: super::GetCompressedAccountProofResponseValueV2) -> Self { Self { - cursor: Ok(value.cursor), - items: Ok(value.items), + hash: Ok(value.hash), + leaf_index: Ok(value.leaf_index), + proof: Ok(value.proof), + prove_by_index: Ok(value.prove_by_index), + root: Ok(value.root), + root_seq: Ok(value.root_seq), + tree_context: Ok(value.tree_context), } } } #[derive(Clone, Debug)] - pub struct PaginatedSignatureInfoList { - cursor: ::std::result::Result< - ::std::option::Option<::std::string::String>, + pub struct InputQueueData { + account_hashes: ::std::result::Result< + ::std::vec::Vec, ::std::string::String, >, - items: ::std::result::Result< - ::std::vec::Vec, + first_queue_index: ::std::result::Result, + leaf_indices: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + leaves: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + leaves_hash_chains: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + nullifiers: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + tx_hashes: ::std::result::Result< + ::std::vec::Vec, ::std::string::String, >, } - impl ::std::default::Default for PaginatedSignatureInfoList { + impl ::std::default::Default for InputQueueData { fn default() -> Self { Self { - cursor: Ok(Default::default()), - items: Err("no value supplied for items".to_string()), + account_hashes: Err( + "no value supplied for account_hashes".to_string(), + ), + first_queue_index: Err( + "no value supplied for first_queue_index".to_string(), + ), + leaf_indices: Err("no value supplied for leaf_indices".to_string()), + leaves: Err("no value supplied for leaves".to_string()), + leaves_hash_chains: Err( + "no value supplied for leaves_hash_chains".to_string(), + ), + nullifiers: Err("no value supplied for nullifiers".to_string()), + tx_hashes: Err("no value supplied for tx_hashes".to_string()), } } } - impl PaginatedSignatureInfoList { - pub fn cursor(mut self, value: T) -> Self + impl InputQueueData { + pub fn account_hashes(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { - self.cursor = value + self.account_hashes = value .try_into() .map_err(|e| { - format!("error converting supplied value for cursor: {e}") + format!( + "error converting supplied value for account_hashes: {e}" + ) }); self } - pub fn items(mut self, value: T) -> Self + pub fn first_queue_index(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.items = value + self.first_queue_index = value .try_into() .map_err(|e| { - format!("error converting supplied value for items: {e}") + format!( + "error converting supplied value for first_queue_index: {e}" + ) }); self } - } - impl ::std::convert::TryFrom - for super::PaginatedSignatureInfoList { - type Error = super::error::ConversionError; - fn try_from( - value: PaginatedSignatureInfoList, - ) -> ::std::result::Result { - Ok(Self { - cursor: value.cursor?, - items: value.items?, - }) - } - } - impl ::std::convert::From - for PaginatedSignatureInfoList { - fn from(value: super::PaginatedSignatureInfoList) -> Self { - Self { - cursor: Ok(value.cursor), - items: Ok(value.items), - } - } - } - #[derive(Clone, Debug)] - pub struct PostGetAccountInterfaceBody { - id: ::std::result::Result< - super::PostGetAccountInterfaceBodyId, - ::std::string::String, - >, - jsonrpc: ::std::result::Result< - super::PostGetAccountInterfaceBodyJsonrpc, - ::std::string::String, - >, - method: ::std::result::Result< - super::PostGetAccountInterfaceBodyMethod, - ::std::string::String, - >, - params: ::std::result::Result< - super::PostGetAccountInterfaceBodyParams, - ::std::string::String, - >, - } - impl ::std::default::Default for PostGetAccountInterfaceBody { - fn default() -> Self { - Self { - id: Err("no value supplied for id".to_string()), - jsonrpc: Err("no value supplied for jsonrpc".to_string()), - method: Err("no value supplied for method".to_string()), - params: Err("no value supplied for params".to_string()), - } + pub fn leaf_indices(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, + { + self.leaf_indices = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for leaf_indices: {e}") + }); + self } - } - impl PostGetAccountInterfaceBody { - pub fn id(mut self, value: T) -> Self + pub fn leaves(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { - self.id = value + self.leaves = value .try_into() - .map_err(|e| format!("error converting supplied value for id: {e}")); + .map_err(|e| { + format!("error converting supplied value for leaves: {e}") + }); self } - pub fn jsonrpc(mut self, value: T) -> Self + pub fn leaves_hash_chains(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { - self.jsonrpc = value + self.leaves_hash_chains = value .try_into() .map_err(|e| { - format!("error converting supplied value for jsonrpc: {e}") + format!( + "error converting supplied value for leaves_hash_chains: {e}" + ) }); self } - pub fn method(mut self, value: T) -> Self + pub fn nullifiers(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { - self.method = value + self.nullifiers = value .try_into() .map_err(|e| { - format!("error converting supplied value for method: {e}") + format!("error converting supplied value for nullifiers: {e}") }); self } - pub fn params(mut self, value: T) -> Self + pub fn tx_hashes(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { - self.params = value + self.tx_hashes = value .try_into() .map_err(|e| { - format!("error converting supplied value for params: {e}") + format!("error converting supplied value for tx_hashes: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetAccountInterfaceBody { + impl ::std::convert::TryFrom for super::InputQueueData { type Error = super::error::ConversionError; fn try_from( - value: PostGetAccountInterfaceBody, + value: InputQueueData, ) -> ::std::result::Result { Ok(Self { - id: value.id?, - jsonrpc: value.jsonrpc?, - method: value.method?, - params: value.params?, + account_hashes: value.account_hashes?, + first_queue_index: value.first_queue_index?, + leaf_indices: value.leaf_indices?, + leaves: value.leaves?, + leaves_hash_chains: value.leaves_hash_chains?, + nullifiers: value.nullifiers?, + tx_hashes: value.tx_hashes?, }) } } - impl ::std::convert::From - for PostGetAccountInterfaceBody { - fn from(value: super::PostGetAccountInterfaceBody) -> Self { + impl ::std::convert::From for InputQueueData { + fn from(value: super::InputQueueData) -> Self { Self { - id: Ok(value.id), - jsonrpc: Ok(value.jsonrpc), - method: Ok(value.method), - params: Ok(value.params), + account_hashes: Ok(value.account_hashes), + first_queue_index: Ok(value.first_queue_index), + leaf_indices: Ok(value.leaf_indices), + leaves: Ok(value.leaves), + leaves_hash_chains: Ok(value.leaves_hash_chains), + nullifiers: Ok(value.nullifiers), + tx_hashes: Ok(value.tx_hashes), } } } #[derive(Clone, Debug)] - pub struct PostGetAccountInterfaceBodyParams { - address: ::std::result::Result< - super::SerializablePubkey, - ::std::string::String, - >, + pub struct Memcmp { + bytes: ::std::result::Result, + offset: ::std::result::Result, } - impl ::std::default::Default for PostGetAccountInterfaceBodyParams { + impl ::std::default::Default for Memcmp { fn default() -> Self { Self { - address: Err("no value supplied for address".to_string()), + bytes: Err("no value supplied for bytes".to_string()), + offset: Err("no value supplied for offset".to_string()), } } } - impl PostGetAccountInterfaceBodyParams { - pub fn address(mut self, value: T) -> Self + impl Memcmp { + pub fn bytes(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.address = value + self.bytes = value .try_into() .map_err(|e| { - format!("error converting supplied value for address: {e}") + format!("error converting supplied value for bytes: {e}") + }); + self + } + pub fn offset(mut self, value: T) -> Self + where + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, + { + self.offset = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for offset: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetAccountInterfaceBodyParams { + impl ::std::convert::TryFrom for super::Memcmp { type Error = super::error::ConversionError; fn try_from( - value: PostGetAccountInterfaceBodyParams, + value: Memcmp, ) -> ::std::result::Result { - Ok(Self { address: value.address? }) + Ok(Self { + bytes: value.bytes?, + offset: value.offset?, + }) } } - impl ::std::convert::From - for PostGetAccountInterfaceBodyParams { - fn from(value: super::PostGetAccountInterfaceBodyParams) -> Self { - Self { address: Ok(value.address) } + impl ::std::convert::From for Memcmp { + fn from(value: super::Memcmp) -> Self { + Self { + bytes: Ok(value.bytes), + offset: Ok(value.offset), + } } } #[derive(Clone, Debug)] - pub struct PostGetAccountInterfaceResponse { - error: ::std::result::Result< - ::std::option::Option, + pub struct MerkleContextV2 { + cpi_context: ::std::result::Result< + ::std::option::Option, ::std::string::String, >, - id: ::std::result::Result< - super::PostGetAccountInterfaceResponseId, + next_tree_context: ::std::result::Result< + ::std::option::Option, ::std::string::String, >, - jsonrpc: ::std::result::Result< - super::PostGetAccountInterfaceResponseJsonrpc, + queue: ::std::result::Result< + super::SerializablePubkey, ::std::string::String, >, - result: ::std::result::Result< - ::std::option::Option, + tree: ::std::result::Result< + super::SerializablePubkey, ::std::string::String, >, + tree_type: ::std::result::Result, } - impl ::std::default::Default for PostGetAccountInterfaceResponse { + impl ::std::default::Default for MerkleContextV2 { fn default() -> Self { Self { - error: Ok(Default::default()), - id: Err("no value supplied for id".to_string()), - jsonrpc: Err("no value supplied for jsonrpc".to_string()), - result: Ok(Default::default()), + cpi_context: Ok(Default::default()), + next_tree_context: Ok(Default::default()), + queue: Err("no value supplied for queue".to_string()), + tree: Err("no value supplied for tree".to_string()), + tree_type: Err("no value supplied for tree_type".to_string()), } } } - impl PostGetAccountInterfaceResponse { - pub fn error(mut self, value: T) -> Self + impl MerkleContextV2 { + pub fn cpi_context(mut self, value: T) -> Self where T: ::std::convert::TryInto< - ::std::option::Option, + ::std::option::Option, >, T::Error: ::std::fmt::Display, { - self.error = value + self.cpi_context = value .try_into() .map_err(|e| { - format!("error converting supplied value for error: {e}") + format!("error converting supplied value for cpi_context: {e}") }); self } - pub fn id(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.id = value - .try_into() - .map_err(|e| format!("error converting supplied value for id: {e}")); - self - } - pub fn jsonrpc(mut self, value: T) -> Self + pub fn next_tree_context(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetAccountInterfaceResponseJsonrpc, + ::std::option::Option, >, T::Error: ::std::fmt::Display, { - self.jsonrpc = value + self.next_tree_context = value .try_into() .map_err(|e| { - format!("error converting supplied value for jsonrpc: {e}") + format!( + "error converting supplied value for next_tree_context: {e}" + ) }); self } - pub fn result(mut self, value: T) -> Self + pub fn queue(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - ::std::option::Option, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.result = value + self.queue = value .try_into() .map_err(|e| { - format!("error converting supplied value for result: {e}") + format!("error converting supplied value for queue: {e}") }); self } - } - impl ::std::convert::TryFrom - for super::PostGetAccountInterfaceResponse { - type Error = super::error::ConversionError; - fn try_from( - value: PostGetAccountInterfaceResponse, - ) -> ::std::result::Result { - Ok(Self { - error: value.error?, - id: value.id?, - jsonrpc: value.jsonrpc?, - result: value.result?, - }) - } - } - impl ::std::convert::From - for PostGetAccountInterfaceResponse { - fn from(value: super::PostGetAccountInterfaceResponse) -> Self { - Self { - error: Ok(value.error), - id: Ok(value.id), - jsonrpc: Ok(value.jsonrpc), - result: Ok(value.result), - } - } - } - #[derive(Clone, Debug)] - pub struct PostGetAccountInterfaceResponseError { - code: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - message: ::std::result::Result< - ::std::option::Option<::std::string::String>, - ::std::string::String, - >, - } - impl ::std::default::Default for PostGetAccountInterfaceResponseError { - fn default() -> Self { - Self { - code: Ok(Default::default()), - message: Ok(Default::default()), - } - } - } - impl PostGetAccountInterfaceResponseError { - pub fn code(mut self, value: T) -> Self + pub fn tree(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.code = value + self.tree = value .try_into() .map_err(|e| { - format!("error converting supplied value for code: {e}") + format!("error converting supplied value for tree: {e}") }); self } - pub fn message(mut self, value: T) -> Self + pub fn tree_type(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.message = value + self.tree_type = value .try_into() .map_err(|e| { - format!("error converting supplied value for message: {e}") + format!("error converting supplied value for tree_type: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetAccountInterfaceResponseError { + impl ::std::convert::TryFrom for super::MerkleContextV2 { type Error = super::error::ConversionError; fn try_from( - value: PostGetAccountInterfaceResponseError, + value: MerkleContextV2, ) -> ::std::result::Result { Ok(Self { - code: value.code?, - message: value.message?, + cpi_context: value.cpi_context?, + next_tree_context: value.next_tree_context?, + queue: value.queue?, + tree: value.tree?, + tree_type: value.tree_type?, }) } } - impl ::std::convert::From - for PostGetAccountInterfaceResponseError { - fn from(value: super::PostGetAccountInterfaceResponseError) -> Self { + impl ::std::convert::From for MerkleContextV2 { + fn from(value: super::MerkleContextV2) -> Self { Self { - code: Ok(value.code), - message: Ok(value.message), + cpi_context: Ok(value.cpi_context), + next_tree_context: Ok(value.next_tree_context), + queue: Ok(value.queue), + tree: Ok(value.tree), + tree_type: Ok(value.tree_type), } } } #[derive(Clone, Debug)] - pub struct PostGetAccountInterfaceResponseResult { - context: ::std::result::Result, - value: ::std::result::Result< - ::std::option::Option, + pub struct MerkleContextWithNewAddressProof { + address: ::std::result::Result< + super::SerializablePubkey, + ::std::string::String, + >, + higher_range_address: ::std::result::Result< + super::SerializablePubkey, + ::std::string::String, + >, + low_element_leaf_index: ::std::result::Result, + lower_range_address: ::std::result::Result< + super::SerializablePubkey, + ::std::string::String, + >, + merkle_tree: ::std::result::Result< + super::SerializablePubkey, + ::std::string::String, + >, + next_index: ::std::result::Result, + proof: ::std::result::Result< + ::std::vec::Vec, ::std::string::String, >, + root: ::std::result::Result, + root_seq: ::std::result::Result, } - impl ::std::default::Default for PostGetAccountInterfaceResponseResult { + impl ::std::default::Default for MerkleContextWithNewAddressProof { fn default() -> Self { Self { - context: Err("no value supplied for context".to_string()), - value: Ok(Default::default()), + address: Err("no value supplied for address".to_string()), + higher_range_address: Err( + "no value supplied for higher_range_address".to_string(), + ), + low_element_leaf_index: Err( + "no value supplied for low_element_leaf_index".to_string(), + ), + lower_range_address: Err( + "no value supplied for lower_range_address".to_string(), + ), + merkle_tree: Err("no value supplied for merkle_tree".to_string()), + next_index: Err("no value supplied for next_index".to_string()), + proof: Err("no value supplied for proof".to_string()), + root: Err("no value supplied for root".to_string()), + root_seq: Err("no value supplied for root_seq".to_string()), } } - } - impl PostGetAccountInterfaceResponseResult { - pub fn context(mut self, value: T) -> Self + } + impl MerkleContextWithNewAddressProof { + pub fn address(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.context = value + self.address = value .try_into() .map_err(|e| { - format!("error converting supplied value for context: {e}") + format!("error converting supplied value for address: {e}") }); self } - pub fn value(mut self, value: T) -> Self + pub fn higher_range_address(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - ::std::option::Option, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.value = value + self.higher_range_address = value .try_into() .map_err(|e| { - format!("error converting supplied value for value: {e}") + format!( + "error converting supplied value for higher_range_address: {e}" + ) }); self } - } - impl ::std::convert::TryFrom - for super::PostGetAccountInterfaceResponseResult { - type Error = super::error::ConversionError; - fn try_from( - value: PostGetAccountInterfaceResponseResult, - ) -> ::std::result::Result { - Ok(Self { - context: value.context?, - value: value.value?, - }) + pub fn low_element_leaf_index(mut self, value: T) -> Self + where + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, + { + self.low_element_leaf_index = value + .try_into() + .map_err(|e| { + format!( + "error converting supplied value for low_element_leaf_index: {e}" + ) + }); + self } - } - impl ::std::convert::From - for PostGetAccountInterfaceResponseResult { - fn from(value: super::PostGetAccountInterfaceResponseResult) -> Self { - Self { - context: Ok(value.context), - value: Ok(value.value), - } + pub fn lower_range_address(mut self, value: T) -> Self + where + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, + { + self.lower_range_address = value + .try_into() + .map_err(|e| { + format!( + "error converting supplied value for lower_range_address: {e}" + ) + }); + self } - } - #[derive(Clone, Debug)] - pub struct PostGetAccountInterfacesBody { - id: ::std::result::Result< - super::PostGetAccountInterfacesBodyId, - ::std::string::String, - >, - jsonrpc: ::std::result::Result< - super::PostGetAccountInterfacesBodyJsonrpc, - ::std::string::String, - >, - method: ::std::result::Result< - super::PostGetAccountInterfacesBodyMethod, - ::std::string::String, - >, - params: ::std::result::Result< - super::PostGetAccountInterfacesBodyParams, - ::std::string::String, - >, - } - impl ::std::default::Default for PostGetAccountInterfacesBody { - fn default() -> Self { - Self { - id: Err("no value supplied for id".to_string()), - jsonrpc: Err("no value supplied for jsonrpc".to_string()), - method: Err("no value supplied for method".to_string()), - params: Err("no value supplied for params".to_string()), - } + pub fn merkle_tree(mut self, value: T) -> Self + where + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, + { + self.merkle_tree = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for merkle_tree: {e}") + }); + self } - } - impl PostGetAccountInterfacesBody { - pub fn id(mut self, value: T) -> Self + pub fn next_index(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.id = value + self.next_index = value .try_into() - .map_err(|e| format!("error converting supplied value for id: {e}")); + .map_err(|e| { + format!("error converting supplied value for next_index: {e}") + }); self } - pub fn jsonrpc(mut self, value: T) -> Self + pub fn proof(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { - self.jsonrpc = value + self.proof = value .try_into() .map_err(|e| { - format!("error converting supplied value for jsonrpc: {e}") + format!("error converting supplied value for proof: {e}") }); self } - pub fn method(mut self, value: T) -> Self + pub fn root(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.method = value + self.root = value .try_into() .map_err(|e| { - format!("error converting supplied value for method: {e}") + format!("error converting supplied value for root: {e}") }); self } - pub fn params(mut self, value: T) -> Self + pub fn root_seq(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.params = value + self.root_seq = value .try_into() .map_err(|e| { - format!("error converting supplied value for params: {e}") + format!("error converting supplied value for root_seq: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetAccountInterfacesBody { + impl ::std::convert::TryFrom + for super::MerkleContextWithNewAddressProof { type Error = super::error::ConversionError; fn try_from( - value: PostGetAccountInterfacesBody, + value: MerkleContextWithNewAddressProof, ) -> ::std::result::Result { Ok(Self { - id: value.id?, - jsonrpc: value.jsonrpc?, - method: value.method?, - params: value.params?, + address: value.address?, + higher_range_address: value.higher_range_address?, + low_element_leaf_index: value.low_element_leaf_index?, + lower_range_address: value.lower_range_address?, + merkle_tree: value.merkle_tree?, + next_index: value.next_index?, + proof: value.proof?, + root: value.root?, + root_seq: value.root_seq?, }) } } - impl ::std::convert::From - for PostGetAccountInterfacesBody { - fn from(value: super::PostGetAccountInterfacesBody) -> Self { + impl ::std::convert::From + for MerkleContextWithNewAddressProof { + fn from(value: super::MerkleContextWithNewAddressProof) -> Self { Self { - id: Ok(value.id), - jsonrpc: Ok(value.jsonrpc), - method: Ok(value.method), - params: Ok(value.params), + address: Ok(value.address), + higher_range_address: Ok(value.higher_range_address), + low_element_leaf_index: Ok(value.low_element_leaf_index), + lower_range_address: Ok(value.lower_range_address), + merkle_tree: Ok(value.merkle_tree), + next_index: Ok(value.next_index), + proof: Ok(value.proof), + root: Ok(value.root), + root_seq: Ok(value.root_seq), } } } #[derive(Clone, Debug)] - pub struct PostGetAccountInterfacesBodyParams { - addresses: ::std::result::Result< - ::std::vec::Vec, - ::std::string::String, - >, + pub struct Node { + hash: ::std::result::Result, + index: ::std::result::Result, } - impl ::std::default::Default for PostGetAccountInterfacesBodyParams { + impl ::std::default::Default for Node { fn default() -> Self { Self { - addresses: Err("no value supplied for addresses".to_string()), + hash: Err("no value supplied for hash".to_string()), + index: Err("no value supplied for index".to_string()), } } } - impl PostGetAccountInterfacesBodyParams { - pub fn addresses(mut self, value: T) -> Self + impl Node { + pub fn hash(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.addresses = value + self.hash = value .try_into() .map_err(|e| { - format!("error converting supplied value for addresses: {e}") + format!("error converting supplied value for hash: {e}") + }); + self + } + pub fn index(mut self, value: T) -> Self + where + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, + { + self.index = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for index: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetAccountInterfacesBodyParams { + impl ::std::convert::TryFrom for super::Node { type Error = super::error::ConversionError; fn try_from( - value: PostGetAccountInterfacesBodyParams, + value: Node, ) -> ::std::result::Result { Ok(Self { - addresses: value.addresses?, + hash: value.hash?, + index: value.index?, }) } } - impl ::std::convert::From - for PostGetAccountInterfacesBodyParams { - fn from(value: super::PostGetAccountInterfacesBodyParams) -> Self { + impl ::std::convert::From for Node { + fn from(value: super::Node) -> Self { Self { - addresses: Ok(value.addresses), + hash: Ok(value.hash), + index: Ok(value.index), } } } #[derive(Clone, Debug)] - pub struct PostGetAccountInterfacesResponse { - error: ::std::result::Result< - ::std::option::Option, + pub struct OutputQueueData { + account_hashes: ::std::result::Result< + ::std::vec::Vec, ::std::string::String, >, - id: ::std::result::Result< - super::PostGetAccountInterfacesResponseId, + first_queue_index: ::std::result::Result, + leaf_indices: ::std::result::Result< + ::std::vec::Vec, ::std::string::String, >, - jsonrpc: ::std::result::Result< - super::PostGetAccountInterfacesResponseJsonrpc, + leaves: ::std::result::Result< + ::std::vec::Vec, ::std::string::String, >, - result: ::std::result::Result< - ::std::option::Option, + leaves_hash_chains: ::std::result::Result< + ::std::vec::Vec, ::std::string::String, >, + next_index: ::std::result::Result, } - impl ::std::default::Default for PostGetAccountInterfacesResponse { + impl ::std::default::Default for OutputQueueData { fn default() -> Self { Self { - error: Ok(Default::default()), - id: Err("no value supplied for id".to_string()), - jsonrpc: Err("no value supplied for jsonrpc".to_string()), - result: Ok(Default::default()), + account_hashes: Err( + "no value supplied for account_hashes".to_string(), + ), + first_queue_index: Err( + "no value supplied for first_queue_index".to_string(), + ), + leaf_indices: Err("no value supplied for leaf_indices".to_string()), + leaves: Err("no value supplied for leaves".to_string()), + leaves_hash_chains: Err( + "no value supplied for leaves_hash_chains".to_string(), + ), + next_index: Err("no value supplied for next_index".to_string()), } } } - impl PostGetAccountInterfacesResponse { - pub fn error(mut self, value: T) -> Self + impl OutputQueueData { + pub fn account_hashes(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - ::std::option::Option, - >, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { - self.error = value + self.account_hashes = value .try_into() .map_err(|e| { - format!("error converting supplied value for error: {e}") + format!( + "error converting supplied value for account_hashes: {e}" + ) }); self } - pub fn id(mut self, value: T) -> Self + pub fn first_queue_index(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.id = value + self.first_queue_index = value .try_into() - .map_err(|e| format!("error converting supplied value for id: {e}")); + .map_err(|e| { + format!( + "error converting supplied value for first_queue_index: {e}" + ) + }); self } - pub fn jsonrpc(mut self, value: T) -> Self + pub fn leaf_indices(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetAccountInterfacesResponseJsonrpc, - >, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { - self.jsonrpc = value + self.leaf_indices = value .try_into() .map_err(|e| { - format!("error converting supplied value for jsonrpc: {e}") + format!("error converting supplied value for leaf_indices: {e}") }); self } - pub fn result(mut self, value: T) -> Self + pub fn leaves(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - ::std::option::Option, - >, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { - self.result = value + self.leaves = value .try_into() .map_err(|e| { - format!("error converting supplied value for result: {e}") + format!("error converting supplied value for leaves: {e}") }); self } - } - impl ::std::convert::TryFrom - for super::PostGetAccountInterfacesResponse { - type Error = super::error::ConversionError; - fn try_from( - value: PostGetAccountInterfacesResponse, - ) -> ::std::result::Result { - Ok(Self { - error: value.error?, - id: value.id?, - jsonrpc: value.jsonrpc?, - result: value.result?, - }) - } - } - impl ::std::convert::From - for PostGetAccountInterfacesResponse { - fn from(value: super::PostGetAccountInterfacesResponse) -> Self { - Self { - error: Ok(value.error), - id: Ok(value.id), - jsonrpc: Ok(value.jsonrpc), - result: Ok(value.result), - } - } - } - #[derive(Clone, Debug)] - pub struct PostGetAccountInterfacesResponseError { - code: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - message: ::std::result::Result< - ::std::option::Option<::std::string::String>, - ::std::string::String, - >, - } - impl ::std::default::Default for PostGetAccountInterfacesResponseError { - fn default() -> Self { - Self { - code: Ok(Default::default()), - message: Ok(Default::default()), - } - } - } - impl PostGetAccountInterfacesResponseError { - pub fn code(mut self, value: T) -> Self + pub fn leaves_hash_chains(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { - self.code = value + self.leaves_hash_chains = value .try_into() .map_err(|e| { - format!("error converting supplied value for code: {e}") + format!( + "error converting supplied value for leaves_hash_chains: {e}" + ) }); self } - pub fn message(mut self, value: T) -> Self + pub fn next_index(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.message = value + self.next_index = value .try_into() .map_err(|e| { - format!("error converting supplied value for message: {e}") + format!("error converting supplied value for next_index: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetAccountInterfacesResponseError { + impl ::std::convert::TryFrom for super::OutputQueueData { type Error = super::error::ConversionError; fn try_from( - value: PostGetAccountInterfacesResponseError, + value: OutputQueueData, ) -> ::std::result::Result { Ok(Self { - code: value.code?, - message: value.message?, + account_hashes: value.account_hashes?, + first_queue_index: value.first_queue_index?, + leaf_indices: value.leaf_indices?, + leaves: value.leaves?, + leaves_hash_chains: value.leaves_hash_chains?, + next_index: value.next_index?, }) } } - impl ::std::convert::From - for PostGetAccountInterfacesResponseError { - fn from(value: super::PostGetAccountInterfacesResponseError) -> Self { + impl ::std::convert::From for OutputQueueData { + fn from(value: super::OutputQueueData) -> Self { Self { - code: Ok(value.code), - message: Ok(value.message), + account_hashes: Ok(value.account_hashes), + first_queue_index: Ok(value.first_queue_index), + leaf_indices: Ok(value.leaf_indices), + leaves: Ok(value.leaves), + leaves_hash_chains: Ok(value.leaves_hash_chains), + next_index: Ok(value.next_index), } } } #[derive(Clone, Debug)] - pub struct PostGetAccountInterfacesResponseResult { - context: ::std::result::Result, - value: ::std::result::Result< - ::std::vec::Vec<::std::option::Option>, + pub struct OwnerBalance { + balance: ::std::result::Result< + super::UnsignedInteger, + ::std::string::String, + >, + owner: ::std::result::Result< + super::SerializablePubkey, ::std::string::String, >, } - impl ::std::default::Default for PostGetAccountInterfacesResponseResult { + impl ::std::default::Default for OwnerBalance { fn default() -> Self { Self { - context: Err("no value supplied for context".to_string()), - value: Err("no value supplied for value".to_string()), + balance: Err("no value supplied for balance".to_string()), + owner: Err("no value supplied for owner".to_string()), } } } - impl PostGetAccountInterfacesResponseResult { - pub fn context(mut self, value: T) -> Self + impl OwnerBalance { + pub fn balance(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.context = value + self.balance = value .try_into() .map_err(|e| { - format!("error converting supplied value for context: {e}") + format!("error converting supplied value for balance: {e}") }); self } - pub fn value(mut self, value: T) -> Self + pub fn owner(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - ::std::vec::Vec<::std::option::Option>, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.value = value + self.owner = value .try_into() .map_err(|e| { - format!("error converting supplied value for value: {e}") + format!("error converting supplied value for owner: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetAccountInterfacesResponseResult { + impl ::std::convert::TryFrom for super::OwnerBalance { type Error = super::error::ConversionError; fn try_from( - value: PostGetAccountInterfacesResponseResult, + value: OwnerBalance, ) -> ::std::result::Result { Ok(Self { - context: value.context?, - value: value.value?, + balance: value.balance?, + owner: value.owner?, }) } } - impl ::std::convert::From - for PostGetAccountInterfacesResponseResult { - fn from(value: super::PostGetAccountInterfacesResponseResult) -> Self { + impl ::std::convert::From for OwnerBalance { + fn from(value: super::OwnerBalance) -> Self { Self { - context: Ok(value.context), - value: Ok(value.value), + balance: Ok(value.balance), + owner: Ok(value.owner), } } } #[derive(Clone, Debug)] - pub struct PostGetAtaInterfaceBody { - id: ::std::result::Result< - super::PostGetAtaInterfaceBodyId, - ::std::string::String, - >, - jsonrpc: ::std::result::Result< - super::PostGetAtaInterfaceBodyJsonrpc, - ::std::string::String, - >, - method: ::std::result::Result< - super::PostGetAtaInterfaceBodyMethod, + pub struct OwnerBalanceList { + cursor: ::std::result::Result< + ::std::option::Option, ::std::string::String, >, - params: ::std::result::Result< - super::PostGetAtaInterfaceBodyParams, + items: ::std::result::Result< + ::std::vec::Vec, ::std::string::String, >, } - impl ::std::default::Default for PostGetAtaInterfaceBody { + impl ::std::default::Default for OwnerBalanceList { fn default() -> Self { Self { - id: Err("no value supplied for id".to_string()), - jsonrpc: Err("no value supplied for jsonrpc".to_string()), - method: Err("no value supplied for method".to_string()), - params: Err("no value supplied for params".to_string()), + cursor: Ok(Default::default()), + items: Err("no value supplied for items".to_string()), } } } - impl PostGetAtaInterfaceBody { - pub fn id(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.id = value - .try_into() - .map_err(|e| format!("error converting supplied value for id: {e}")); - self - } - pub fn jsonrpc(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.jsonrpc = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for jsonrpc: {e}") - }); - self - } - pub fn method(mut self, value: T) -> Self + impl OwnerBalanceList { + pub fn cursor(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::option::Option>, T::Error: ::std::fmt::Display, { - self.method = value + self.cursor = value .try_into() .map_err(|e| { - format!("error converting supplied value for method: {e}") + format!("error converting supplied value for cursor: {e}") }); self } - pub fn params(mut self, value: T) -> Self + pub fn items(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { - self.params = value + self.items = value .try_into() .map_err(|e| { - format!("error converting supplied value for params: {e}") + format!("error converting supplied value for items: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetAtaInterfaceBody { + impl ::std::convert::TryFrom for super::OwnerBalanceList { type Error = super::error::ConversionError; fn try_from( - value: PostGetAtaInterfaceBody, + value: OwnerBalanceList, ) -> ::std::result::Result { Ok(Self { - id: value.id?, - jsonrpc: value.jsonrpc?, - method: value.method?, - params: value.params?, + cursor: value.cursor?, + items: value.items?, }) } } - impl ::std::convert::From - for PostGetAtaInterfaceBody { - fn from(value: super::PostGetAtaInterfaceBody) -> Self { + impl ::std::convert::From for OwnerBalanceList { + fn from(value: super::OwnerBalanceList) -> Self { Self { - id: Ok(value.id), - jsonrpc: Ok(value.jsonrpc), - method: Ok(value.method), - params: Ok(value.params), + cursor: Ok(value.cursor), + items: Ok(value.items), } } } #[derive(Clone, Debug)] - pub struct PostGetAtaInterfaceBodyParams { - mint: ::std::result::Result< - super::SerializablePubkey, - ::std::string::String, - >, - owner: ::std::result::Result< - super::SerializablePubkey, - ::std::string::String, - >, + pub struct OwnerBalancesResponse { + context: ::std::result::Result, + value: ::std::result::Result, } - impl ::std::default::Default for PostGetAtaInterfaceBodyParams { + impl ::std::default::Default for OwnerBalancesResponse { fn default() -> Self { Self { - mint: Err("no value supplied for mint".to_string()), - owner: Err("no value supplied for owner".to_string()), + context: Err("no value supplied for context".to_string()), + value: Err("no value supplied for value".to_string()), } } } - impl PostGetAtaInterfaceBodyParams { - pub fn mint(mut self, value: T) -> Self + impl OwnerBalancesResponse { + pub fn context(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.mint = value + self.context = value .try_into() .map_err(|e| { - format!("error converting supplied value for mint: {e}") + format!("error converting supplied value for context: {e}") }); self } - pub fn owner(mut self, value: T) -> Self + pub fn value(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.owner = value + self.value = value .try_into() .map_err(|e| { - format!("error converting supplied value for owner: {e}") + format!("error converting supplied value for value: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetAtaInterfaceBodyParams { + impl ::std::convert::TryFrom + for super::OwnerBalancesResponse { type Error = super::error::ConversionError; fn try_from( - value: PostGetAtaInterfaceBodyParams, + value: OwnerBalancesResponse, ) -> ::std::result::Result { Ok(Self { - mint: value.mint?, - owner: value.owner?, + context: value.context?, + value: value.value?, }) } } - impl ::std::convert::From - for PostGetAtaInterfaceBodyParams { - fn from(value: super::PostGetAtaInterfaceBodyParams) -> Self { + impl ::std::convert::From + for OwnerBalancesResponse { + fn from(value: super::OwnerBalancesResponse) -> Self { Self { - mint: Ok(value.mint), - owner: Ok(value.owner), + context: Ok(value.context), + value: Ok(value.value), } } } #[derive(Clone, Debug)] - pub struct PostGetAtaInterfaceResponse { - error: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - id: ::std::result::Result< - super::PostGetAtaInterfaceResponseId, - ::std::string::String, - >, - jsonrpc: ::std::result::Result< - super::PostGetAtaInterfaceResponseJsonrpc, + pub struct PaginatedAccountList { + cursor: ::std::result::Result< + ::std::option::Option, ::std::string::String, >, - result: ::std::result::Result< - ::std::option::Option, + items: ::std::result::Result< + ::std::vec::Vec, ::std::string::String, >, } - impl ::std::default::Default for PostGetAtaInterfaceResponse { + impl ::std::default::Default for PaginatedAccountList { fn default() -> Self { Self { - error: Ok(Default::default()), - id: Err("no value supplied for id".to_string()), - jsonrpc: Err("no value supplied for jsonrpc".to_string()), - result: Ok(Default::default()), + cursor: Ok(Default::default()), + items: Err("no value supplied for items".to_string()), } } } - impl PostGetAtaInterfaceResponse { - pub fn error(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - ::std::option::Option, - >, - T::Error: ::std::fmt::Display, - { - self.error = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for error: {e}") - }); - self - } - pub fn id(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.id = value - .try_into() - .map_err(|e| format!("error converting supplied value for id: {e}")); - self - } - pub fn jsonrpc(mut self, value: T) -> Self + impl PaginatedAccountList { + pub fn cursor(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::option::Option>, T::Error: ::std::fmt::Display, { - self.jsonrpc = value + self.cursor = value .try_into() .map_err(|e| { - format!("error converting supplied value for jsonrpc: {e}") + format!("error converting supplied value for cursor: {e}") }); self } - pub fn result(mut self, value: T) -> Self + pub fn items(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - ::std::option::Option, - >, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { - self.result = value + self.items = value .try_into() .map_err(|e| { - format!("error converting supplied value for result: {e}") + format!("error converting supplied value for items: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetAtaInterfaceResponse { + impl ::std::convert::TryFrom + for super::PaginatedAccountList { type Error = super::error::ConversionError; fn try_from( - value: PostGetAtaInterfaceResponse, + value: PaginatedAccountList, ) -> ::std::result::Result { Ok(Self { - error: value.error?, - id: value.id?, - jsonrpc: value.jsonrpc?, - result: value.result?, + cursor: value.cursor?, + items: value.items?, }) } } - impl ::std::convert::From - for PostGetAtaInterfaceResponse { - fn from(value: super::PostGetAtaInterfaceResponse) -> Self { + impl ::std::convert::From for PaginatedAccountList { + fn from(value: super::PaginatedAccountList) -> Self { Self { - error: Ok(value.error), - id: Ok(value.id), - jsonrpc: Ok(value.jsonrpc), - result: Ok(value.result), + cursor: Ok(value.cursor), + items: Ok(value.items), } } } #[derive(Clone, Debug)] - pub struct PostGetAtaInterfaceResponseError { - code: ::std::result::Result< - ::std::option::Option, + pub struct PaginatedAccountListV2 { + cursor: ::std::result::Result< + ::std::option::Option, ::std::string::String, >, - message: ::std::result::Result< - ::std::option::Option<::std::string::String>, + items: ::std::result::Result< + ::std::vec::Vec, ::std::string::String, >, } - impl ::std::default::Default for PostGetAtaInterfaceResponseError { + impl ::std::default::Default for PaginatedAccountListV2 { fn default() -> Self { Self { - code: Ok(Default::default()), - message: Ok(Default::default()), + cursor: Ok(Default::default()), + items: Err("no value supplied for items".to_string()), } } } - impl PostGetAtaInterfaceResponseError { - pub fn code(mut self, value: T) -> Self + impl PaginatedAccountListV2 { + pub fn cursor(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto<::std::option::Option>, T::Error: ::std::fmt::Display, { - self.code = value + self.cursor = value .try_into() .map_err(|e| { - format!("error converting supplied value for code: {e}") + format!("error converting supplied value for cursor: {e}") }); self } - pub fn message(mut self, value: T) -> Self + pub fn items(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { - self.message = value + self.items = value .try_into() .map_err(|e| { - format!("error converting supplied value for message: {e}") + format!("error converting supplied value for items: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetAtaInterfaceResponseError { + impl ::std::convert::TryFrom + for super::PaginatedAccountListV2 { type Error = super::error::ConversionError; fn try_from( - value: PostGetAtaInterfaceResponseError, + value: PaginatedAccountListV2, ) -> ::std::result::Result { Ok(Self { - code: value.code?, - message: value.message?, + cursor: value.cursor?, + items: value.items?, }) } } - impl ::std::convert::From - for PostGetAtaInterfaceResponseError { - fn from(value: super::PostGetAtaInterfaceResponseError) -> Self { + impl ::std::convert::From + for PaginatedAccountListV2 { + fn from(value: super::PaginatedAccountListV2) -> Self { Self { - code: Ok(value.code), - message: Ok(value.message), + cursor: Ok(value.cursor), + items: Ok(value.items), } } } #[derive(Clone, Debug)] - pub struct PostGetAtaInterfaceResponseResult { - context: ::std::result::Result, - value: ::std::result::Result< - ::std::option::Option, + pub struct PaginatedSignatureInfoList { + cursor: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + items: ::std::result::Result< + ::std::vec::Vec, ::std::string::String, >, } - impl ::std::default::Default for PostGetAtaInterfaceResponseResult { + impl ::std::default::Default for PaginatedSignatureInfoList { fn default() -> Self { Self { - context: Err("no value supplied for context".to_string()), - value: Ok(Default::default()), + cursor: Ok(Default::default()), + items: Err("no value supplied for items".to_string()), } } } - impl PostGetAtaInterfaceResponseResult { - pub fn context(mut self, value: T) -> Self + impl PaginatedSignatureInfoList { + pub fn cursor(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: ::std::fmt::Display, { - self.context = value + self.cursor = value .try_into() .map_err(|e| { - format!("error converting supplied value for context: {e}") + format!("error converting supplied value for cursor: {e}") }); self } - pub fn value(mut self, value: T) -> Self + pub fn items(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - ::std::option::Option, - >, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { - self.value = value + self.items = value .try_into() .map_err(|e| { - format!("error converting supplied value for value: {e}") + format!("error converting supplied value for items: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetAtaInterfaceResponseResult { + impl ::std::convert::TryFrom + for super::PaginatedSignatureInfoList { type Error = super::error::ConversionError; fn try_from( - value: PostGetAtaInterfaceResponseResult, + value: PaginatedSignatureInfoList, ) -> ::std::result::Result { Ok(Self { - context: value.context?, - value: value.value?, + cursor: value.cursor?, + items: value.items?, }) } } - impl ::std::convert::From - for PostGetAtaInterfaceResponseResult { - fn from(value: super::PostGetAtaInterfaceResponseResult) -> Self { + impl ::std::convert::From + for PaginatedSignatureInfoList { + fn from(value: super::PaginatedSignatureInfoList) -> Self { Self { - context: Ok(value.context), - value: Ok(value.value), + cursor: Ok(value.cursor), + items: Ok(value.items), } } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountBalanceBody { + pub struct PostGetAccountInterfaceBody { id: ::std::result::Result< - super::PostGetCompressedAccountBalanceBodyId, + super::PostGetAccountInterfaceBodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedAccountBalanceBodyJsonrpc, + super::PostGetAccountInterfaceBodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetCompressedAccountBalanceBodyMethod, + super::PostGetAccountInterfaceBodyMethod, ::std::string::String, >, params: ::std::result::Result< - super::PostGetCompressedAccountBalanceBodyParams, + super::PostGetAccountInterfaceBodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedAccountBalanceBody { + impl ::std::default::Default for PostGetAccountInterfaceBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -36386,10 +32056,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedAccountBalanceBody { + impl PostGetAccountInterfaceBody { pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.id = value @@ -36399,9 +32069,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn jsonrpc(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetCompressedAccountBalanceBodyJsonrpc, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.jsonrpc = value @@ -36413,9 +32081,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn method(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetCompressedAccountBalanceBodyMethod, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.method = value @@ -36427,9 +32093,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn params(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetCompressedAccountBalanceBodyParams, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.params = value @@ -36440,11 +32104,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountBalanceBody { + impl ::std::convert::TryFrom + for super::PostGetAccountInterfaceBody { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountBalanceBody, + value: PostGetAccountInterfaceBody, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -36454,9 +32118,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedAccountBalanceBody { - fn from(value: super::PostGetCompressedAccountBalanceBody) -> Self { + impl ::std::convert::From + for PostGetAccountInterfaceBody { + fn from(value: super::PostGetAccountInterfaceBody) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -36466,30 +32130,23 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountBalanceBodyParams { + pub struct PostGetAccountInterfaceBodyParams { address: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - hash: ::std::result::Result< - ::std::option::Option, + super::SerializablePubkey, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedAccountBalanceBodyParams { + impl ::std::default::Default for PostGetAccountInterfaceBodyParams { fn default() -> Self { Self { - address: Ok(Default::default()), - hash: Ok(Default::default()), + address: Err("no value supplied for address".to_string()), } } } - impl PostGetCompressedAccountBalanceBodyParams { + impl PostGetAccountInterfaceBodyParams { pub fn address(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - ::std::option::Option, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.address = value @@ -36499,64 +32156,42 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }); self } - pub fn hash(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::option::Option>, - T::Error: ::std::fmt::Display, - { - self.hash = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for hash: {e}") - }); - self - } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountBalanceBodyParams { + impl ::std::convert::TryFrom + for super::PostGetAccountInterfaceBodyParams { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountBalanceBodyParams, + value: PostGetAccountInterfaceBodyParams, ) -> ::std::result::Result { - Ok(Self { - address: value.address?, - hash: value.hash?, - }) + Ok(Self { address: value.address? }) } } - impl ::std::convert::From - for PostGetCompressedAccountBalanceBodyParams { - fn from(value: super::PostGetCompressedAccountBalanceBodyParams) -> Self { - Self { - address: Ok(value.address), - hash: Ok(value.hash), - } + impl ::std::convert::From + for PostGetAccountInterfaceBodyParams { + fn from(value: super::PostGetAccountInterfaceBodyParams) -> Self { + Self { address: Ok(value.address) } } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountBalanceResponse { + pub struct PostGetAccountInterfaceResponse { error: ::std::result::Result< - ::std::option::Option< - super::PostGetCompressedAccountBalanceResponseError, - >, + ::std::option::Option, ::std::string::String, >, id: ::std::result::Result< - super::PostGetCompressedAccountBalanceResponseId, + super::PostGetAccountInterfaceResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedAccountBalanceResponseJsonrpc, + super::PostGetAccountInterfaceResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< - ::std::option::Option< - super::PostGetCompressedAccountBalanceResponseResult, - >, + ::std::option::Option, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedAccountBalanceResponse { + impl ::std::default::Default for PostGetAccountInterfaceResponse { fn default() -> Self { Self { error: Ok(Default::default()), @@ -36566,13 +32201,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedAccountBalanceResponse { + impl PostGetAccountInterfaceResponse { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< - ::std::option::Option< - super::PostGetCompressedAccountBalanceResponseError, - >, + ::std::option::Option, >, T::Error: ::std::fmt::Display, { @@ -36585,9 +32218,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetCompressedAccountBalanceResponseId, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.id = value @@ -36598,7 +32229,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedAccountBalanceResponseJsonrpc, + super::PostGetAccountInterfaceResponseJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -36612,9 +32243,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn result(mut self, value: T) -> Self where T: ::std::convert::TryInto< - ::std::option::Option< - super::PostGetCompressedAccountBalanceResponseResult, - >, + ::std::option::Option, >, T::Error: ::std::fmt::Display, { @@ -36626,11 +32255,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountBalanceResponse { + impl ::std::convert::TryFrom + for super::PostGetAccountInterfaceResponse { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountBalanceResponse, + value: PostGetAccountInterfaceResponse, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -36640,9 +32269,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedAccountBalanceResponse { - fn from(value: super::PostGetCompressedAccountBalanceResponse) -> Self { + impl ::std::convert::From + for PostGetAccountInterfaceResponse { + fn from(value: super::PostGetAccountInterfaceResponse) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -36652,7 +32281,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountBalanceResponseError { + pub struct PostGetAccountInterfaceResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -36662,7 +32291,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedAccountBalanceResponseError { + impl ::std::default::Default for PostGetAccountInterfaceResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -36670,7 +32299,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedAccountBalanceResponseError { + impl PostGetAccountInterfaceResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -36696,11 +32325,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountBalanceResponseError { + impl ::std::convert::TryFrom + for super::PostGetAccountInterfaceResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountBalanceResponseError, + value: PostGetAccountInterfaceResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -36708,9 +32337,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedAccountBalanceResponseError { - fn from(value: super::PostGetCompressedAccountBalanceResponseError) -> Self { + impl ::std::convert::From + for PostGetAccountInterfaceResponseError { + fn from(value: super::PostGetAccountInterfaceResponseError) -> Self { Self { code: Ok(value.code), message: Ok(value.message), @@ -36718,19 +32347,22 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountBalanceResponseResult { + pub struct PostGetAccountInterfaceResponseResult { context: ::std::result::Result, - value: ::std::result::Result, + value: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, } - impl ::std::default::Default for PostGetCompressedAccountBalanceResponseResult { + impl ::std::default::Default for PostGetAccountInterfaceResponseResult { fn default() -> Self { Self { context: Err("no value supplied for context".to_string()), - value: Err("no value supplied for value".to_string()), + value: Ok(Default::default()), } } } - impl PostGetCompressedAccountBalanceResponseResult { + impl PostGetAccountInterfaceResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -36739,236 +32371,66 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self.context = value .try_into() .map_err(|e| { - format!("error converting supplied value for context: {e}") - }); - self - } - pub fn value(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.value = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for value: {e}") - }); - self - } - } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountBalanceResponseResult { - type Error = super::error::ConversionError; - fn try_from( - value: PostGetCompressedAccountBalanceResponseResult, - ) -> ::std::result::Result { - Ok(Self { - context: value.context?, - value: value.value?, - }) - } - } - impl ::std::convert::From - for PostGetCompressedAccountBalanceResponseResult { - fn from( - value: super::PostGetCompressedAccountBalanceResponseResult, - ) -> Self { - Self { - context: Ok(value.context), - value: Ok(value.value), - } - } - } - #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountBody { - id: ::std::result::Result< - super::PostGetCompressedAccountBodyId, - ::std::string::String, - >, - jsonrpc: ::std::result::Result< - super::PostGetCompressedAccountBodyJsonrpc, - ::std::string::String, - >, - method: ::std::result::Result< - super::PostGetCompressedAccountBodyMethod, - ::std::string::String, - >, - params: ::std::result::Result< - super::PostGetCompressedAccountBodyParams, - ::std::string::String, - >, - } - impl ::std::default::Default for PostGetCompressedAccountBody { - fn default() -> Self { - Self { - id: Err("no value supplied for id".to_string()), - jsonrpc: Err("no value supplied for jsonrpc".to_string()), - method: Err("no value supplied for method".to_string()), - params: Err("no value supplied for params".to_string()), - } - } - } - impl PostGetCompressedAccountBody { - pub fn id(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.id = value - .try_into() - .map_err(|e| format!("error converting supplied value for id: {e}")); - self - } - pub fn jsonrpc(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.jsonrpc = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for jsonrpc: {e}") - }); - self - } - pub fn method(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.method = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for method: {e}") - }); - self - } - pub fn params(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.params = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for params: {e}") - }); - self - } - } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountBody { - type Error = super::error::ConversionError; - fn try_from( - value: PostGetCompressedAccountBody, - ) -> ::std::result::Result { - Ok(Self { - id: value.id?, - jsonrpc: value.jsonrpc?, - method: value.method?, - params: value.params?, - }) - } - } - impl ::std::convert::From - for PostGetCompressedAccountBody { - fn from(value: super::PostGetCompressedAccountBody) -> Self { - Self { - id: Ok(value.id), - jsonrpc: Ok(value.jsonrpc), - method: Ok(value.method), - params: Ok(value.params), - } - } - } - #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountBodyParams { - address: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - hash: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - } - impl ::std::default::Default for PostGetCompressedAccountBodyParams { - fn default() -> Self { - Self { - address: Ok(Default::default()), - hash: Ok(Default::default()), - } - } - } - impl PostGetCompressedAccountBodyParams { - pub fn address(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - ::std::option::Option, - >, - T::Error: ::std::fmt::Display, - { - self.address = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for address: {e}") + format!("error converting supplied value for context: {e}") }); self } - pub fn hash(mut self, value: T) -> Self + pub fn value(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto< + ::std::option::Option, + >, T::Error: ::std::fmt::Display, { - self.hash = value + self.value = value .try_into() .map_err(|e| { - format!("error converting supplied value for hash: {e}") + format!("error converting supplied value for value: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountBodyParams { + impl ::std::convert::TryFrom + for super::PostGetAccountInterfaceResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountBodyParams, + value: PostGetAccountInterfaceResponseResult, ) -> ::std::result::Result { Ok(Self { - address: value.address?, - hash: value.hash?, + context: value.context?, + value: value.value?, }) } } - impl ::std::convert::From - for PostGetCompressedAccountBodyParams { - fn from(value: super::PostGetCompressedAccountBodyParams) -> Self { + impl ::std::convert::From + for PostGetAccountInterfaceResponseResult { + fn from(value: super::PostGetAccountInterfaceResponseResult) -> Self { Self { - address: Ok(value.address), - hash: Ok(value.hash), + context: Ok(value.context), + value: Ok(value.value), } } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountProofBody { + pub struct PostGetCompressedAccountBalanceBody { id: ::std::result::Result< - super::PostGetCompressedAccountProofBodyId, + super::PostGetCompressedAccountBalanceBodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedAccountProofBodyJsonrpc, + super::PostGetCompressedAccountBalanceBodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetCompressedAccountProofBodyMethod, + super::PostGetCompressedAccountBalanceBodyMethod, ::std::string::String, >, params: ::std::result::Result< - super::PostGetCompressedAccountProofBodyParams, + super::PostGetCompressedAccountBalanceBodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedAccountProofBody { + impl ::std::default::Default for PostGetCompressedAccountBalanceBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -36978,10 +32440,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedAccountProofBody { + impl PostGetCompressedAccountBalanceBody { pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.id = value @@ -36992,7 +32454,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedAccountProofBodyJsonrpc, + super::PostGetCompressedAccountBalanceBodyJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -37006,7 +32468,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn method(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedAccountProofBodyMethod, + super::PostGetCompressedAccountBalanceBodyMethod, >, T::Error: ::std::fmt::Display, { @@ -37020,7 +32482,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn params(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedAccountProofBodyParams, + super::PostGetCompressedAccountBalanceBodyParams, >, T::Error: ::std::fmt::Display, { @@ -37032,11 +32494,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountProofBody { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountBalanceBody { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountProofBody, + value: PostGetCompressedAccountBalanceBody, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -37046,9 +32508,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedAccountProofBody { - fn from(value: super::PostGetCompressedAccountProofBody) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountBalanceBody { + fn from(value: super::PostGetCompressedAccountBalanceBody) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -37058,20 +32520,42 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountProofBodyParams { - hash: ::std::result::Result, + pub struct PostGetCompressedAccountBalanceBodyParams { + address: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + hash: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, } - impl ::std::default::Default for PostGetCompressedAccountProofBodyParams { + impl ::std::default::Default for PostGetCompressedAccountBalanceBodyParams { fn default() -> Self { Self { - hash: Err("no value supplied for hash".to_string()), + address: Ok(Default::default()), + hash: Ok(Default::default()), } } } - impl PostGetCompressedAccountProofBodyParams { + impl PostGetCompressedAccountBalanceBodyParams { + pub fn address(mut self, value: T) -> Self + where + T: ::std::convert::TryInto< + ::std::option::Option, + >, + T::Error: ::std::fmt::Display, + { + self.address = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for address: {e}") + }); + self + } pub fn hash(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::option::Option>, T::Error: ::std::fmt::Display, { self.hash = value @@ -37082,43 +32566,51 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountProofBodyParams { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountBalanceBodyParams { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountProofBodyParams, + value: PostGetCompressedAccountBalanceBodyParams, ) -> ::std::result::Result { - Ok(Self { hash: value.hash? }) + Ok(Self { + address: value.address?, + hash: value.hash?, + }) } } - impl ::std::convert::From - for PostGetCompressedAccountProofBodyParams { - fn from(value: super::PostGetCompressedAccountProofBodyParams) -> Self { - Self { hash: Ok(value.hash) } + impl ::std::convert::From + for PostGetCompressedAccountBalanceBodyParams { + fn from(value: super::PostGetCompressedAccountBalanceBodyParams) -> Self { + Self { + address: Ok(value.address), + hash: Ok(value.hash), + } } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountProofResponse { + pub struct PostGetCompressedAccountBalanceResponse { error: ::std::result::Result< - ::std::option::Option, + ::std::option::Option< + super::PostGetCompressedAccountBalanceResponseError, + >, ::std::string::String, >, id: ::std::result::Result< - super::PostGetCompressedAccountProofResponseId, + super::PostGetCompressedAccountBalanceResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedAccountProofResponseJsonrpc, + super::PostGetCompressedAccountBalanceResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< ::std::option::Option< - super::PostGetCompressedAccountProofResponseResult, + super::PostGetCompressedAccountBalanceResponseResult, >, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedAccountProofResponse { + impl ::std::default::Default for PostGetCompressedAccountBalanceResponse { fn default() -> Self { Self { error: Ok(Default::default()), @@ -37128,12 +32620,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedAccountProofResponse { + impl PostGetCompressedAccountBalanceResponse { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressedAccountProofResponseError, + super::PostGetCompressedAccountBalanceResponseError, >, >, T::Error: ::std::fmt::Display, @@ -37148,7 +32640,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedAccountProofResponseId, + super::PostGetCompressedAccountBalanceResponseId, >, T::Error: ::std::fmt::Display, { @@ -37160,7 +32652,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedAccountProofResponseJsonrpc, + super::PostGetCompressedAccountBalanceResponseJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -37175,7 +32667,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressedAccountProofResponseResult, + super::PostGetCompressedAccountBalanceResponseResult, >, >, T::Error: ::std::fmt::Display, @@ -37188,11 +32680,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountProofResponse { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountBalanceResponse { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountProofResponse, + value: PostGetCompressedAccountBalanceResponse, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -37202,9 +32694,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedAccountProofResponse { - fn from(value: super::PostGetCompressedAccountProofResponse) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountBalanceResponse { + fn from(value: super::PostGetCompressedAccountBalanceResponse) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -37214,7 +32706,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountProofResponseError { + pub struct PostGetCompressedAccountBalanceResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -37224,7 +32716,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedAccountProofResponseError { + impl ::std::default::Default for PostGetCompressedAccountBalanceResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -37232,7 +32724,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedAccountProofResponseError { + impl PostGetCompressedAccountBalanceResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -37258,11 +32750,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountProofResponseError { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountBalanceResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountProofResponseError, + value: PostGetCompressedAccountBalanceResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -37270,9 +32762,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedAccountProofResponseError { - fn from(value: super::PostGetCompressedAccountProofResponseError) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountBalanceResponseError { + fn from(value: super::PostGetCompressedAccountBalanceResponseError) -> Self { Self { code: Ok(value.code), message: Ok(value.message), @@ -37280,14 +32772,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountProofResponseResult { + pub struct PostGetCompressedAccountBalanceResponseResult { context: ::std::result::Result, - value: ::std::result::Result< - super::GetCompressedAccountProofResponseValue, - ::std::string::String, - >, + value: ::std::result::Result, } - impl ::std::default::Default for PostGetCompressedAccountProofResponseResult { + impl ::std::default::Default for PostGetCompressedAccountBalanceResponseResult { fn default() -> Self { Self { context: Err("no value supplied for context".to_string()), @@ -37295,7 +32784,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedAccountProofResponseResult { + impl PostGetCompressedAccountBalanceResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -37310,9 +32799,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn value(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::GetCompressedAccountProofResponseValue, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.value = value @@ -37323,11 +32810,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountProofResponseResult { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountBalanceResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountProofResponseResult, + value: PostGetCompressedAccountBalanceResponseResult, ) -> ::std::result::Result { Ok(Self { context: value.context?, @@ -37335,9 +32822,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedAccountProofResponseResult { - fn from(value: super::PostGetCompressedAccountProofResponseResult) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountBalanceResponseResult { + fn from( + value: super::PostGetCompressedAccountBalanceResponseResult, + ) -> Self { Self { context: Ok(value.context), value: Ok(value.value), @@ -37345,25 +32834,25 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountProofV2Body { + pub struct PostGetCompressedAccountBody { id: ::std::result::Result< - super::PostGetCompressedAccountProofV2BodyId, + super::PostGetCompressedAccountBodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedAccountProofV2BodyJsonrpc, + super::PostGetCompressedAccountBodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetCompressedAccountProofV2BodyMethod, + super::PostGetCompressedAccountBodyMethod, ::std::string::String, >, params: ::std::result::Result< - super::PostGetCompressedAccountProofV2BodyParams, + super::PostGetCompressedAccountBodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedAccountProofV2Body { + impl ::std::default::Default for PostGetCompressedAccountBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -37373,10 +32862,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedAccountProofV2Body { + impl PostGetCompressedAccountBody { pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.id = value @@ -37386,9 +32875,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn jsonrpc(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetCompressedAccountProofV2BodyJsonrpc, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.jsonrpc = value @@ -37400,9 +32887,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn method(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetCompressedAccountProofV2BodyMethod, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.method = value @@ -37414,9 +32899,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn params(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetCompressedAccountProofV2BodyParams, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.params = value @@ -37427,11 +32910,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountProofV2Body { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountBody { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountProofV2Body, + value: PostGetCompressedAccountBody, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -37441,9 +32924,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedAccountProofV2Body { - fn from(value: super::PostGetCompressedAccountProofV2Body) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountBody { + fn from(value: super::PostGetCompressedAccountBody) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -37453,20 +32936,42 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountProofV2BodyParams { - hash: ::std::result::Result, + pub struct PostGetCompressedAccountBodyParams { + address: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + hash: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, } - impl ::std::default::Default for PostGetCompressedAccountProofV2BodyParams { + impl ::std::default::Default for PostGetCompressedAccountBodyParams { fn default() -> Self { Self { - hash: Err("no value supplied for hash".to_string()), + address: Ok(Default::default()), + hash: Ok(Default::default()), } } } - impl PostGetCompressedAccountProofV2BodyParams { + impl PostGetCompressedAccountBodyParams { + pub fn address(mut self, value: T) -> Self + where + T: ::std::convert::TryInto< + ::std::option::Option, + >, + T::Error: ::std::fmt::Display, + { + self.address = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for address: {e}") + }); + self + } pub fn hash(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::option::Option>, T::Error: ::std::fmt::Display, { self.hash = value @@ -37477,76 +32982,60 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountProofV2BodyParams { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountBodyParams { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountProofV2BodyParams, + value: PostGetCompressedAccountBodyParams, ) -> ::std::result::Result { - Ok(Self { hash: value.hash? }) + Ok(Self { + address: value.address?, + hash: value.hash?, + }) } } - impl ::std::convert::From - for PostGetCompressedAccountProofV2BodyParams { - fn from(value: super::PostGetCompressedAccountProofV2BodyParams) -> Self { - Self { hash: Ok(value.hash) } + impl ::std::convert::From + for PostGetCompressedAccountBodyParams { + fn from(value: super::PostGetCompressedAccountBodyParams) -> Self { + Self { + address: Ok(value.address), + hash: Ok(value.hash), + } } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountProofV2Response { - error: ::std::result::Result< - ::std::option::Option< - super::PostGetCompressedAccountProofV2ResponseError, - >, - ::std::string::String, - >, + pub struct PostGetCompressedAccountProofBody { id: ::std::result::Result< - super::PostGetCompressedAccountProofV2ResponseId, + super::PostGetCompressedAccountProofBodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedAccountProofV2ResponseJsonrpc, + super::PostGetCompressedAccountProofBodyJsonrpc, ::std::string::String, >, - result: ::std::result::Result< - ::std::option::Option< - super::PostGetCompressedAccountProofV2ResponseResult, - >, + method: ::std::result::Result< + super::PostGetCompressedAccountProofBodyMethod, + ::std::string::String, + >, + params: ::std::result::Result< + super::PostGetCompressedAccountProofBodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedAccountProofV2Response { + impl ::std::default::Default for PostGetCompressedAccountProofBody { fn default() -> Self { Self { - error: Ok(Default::default()), id: Err("no value supplied for id".to_string()), jsonrpc: Err("no value supplied for jsonrpc".to_string()), - result: Ok(Default::default()), + method: Err("no value supplied for method".to_string()), + params: Err("no value supplied for params".to_string()), } } } - impl PostGetCompressedAccountProofV2Response { - pub fn error(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - ::std::option::Option< - super::PostGetCompressedAccountProofV2ResponseError, - >, - >, - T::Error: ::std::fmt::Display, - { - self.error = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for error: {e}") - }); - self - } + impl PostGetCompressedAccountProofBody { pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetCompressedAccountProofV2ResponseId, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.id = value @@ -37557,7 +33046,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedAccountProofV2ResponseJsonrpc, + super::PostGetCompressedAccountProofBodyJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -37568,201 +33057,122 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }); self } - pub fn result(mut self, value: T) -> Self + pub fn method(mut self, value: T) -> Self where T: ::std::convert::TryInto< - ::std::option::Option< - super::PostGetCompressedAccountProofV2ResponseResult, - >, + super::PostGetCompressedAccountProofBodyMethod, >, T::Error: ::std::fmt::Display, { - self.result = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for result: {e}") - }); - self - } - } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountProofV2Response { - type Error = super::error::ConversionError; - fn try_from( - value: PostGetCompressedAccountProofV2Response, - ) -> ::std::result::Result { - Ok(Self { - error: value.error?, - id: value.id?, - jsonrpc: value.jsonrpc?, - result: value.result?, - }) - } - } - impl ::std::convert::From - for PostGetCompressedAccountProofV2Response { - fn from(value: super::PostGetCompressedAccountProofV2Response) -> Self { - Self { - error: Ok(value.error), - id: Ok(value.id), - jsonrpc: Ok(value.jsonrpc), - result: Ok(value.result), - } - } - } - #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountProofV2ResponseError { - code: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - message: ::std::result::Result< - ::std::option::Option<::std::string::String>, - ::std::string::String, - >, - } - impl ::std::default::Default for PostGetCompressedAccountProofV2ResponseError { - fn default() -> Self { - Self { - code: Ok(Default::default()), - message: Ok(Default::default()), - } - } - } - impl PostGetCompressedAccountProofV2ResponseError { - pub fn code(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::option::Option>, - T::Error: ::std::fmt::Display, - { - self.code = value + self.method = value .try_into() .map_err(|e| { - format!("error converting supplied value for code: {e}") + format!("error converting supplied value for method: {e}") }); self } - pub fn message(mut self, value: T) -> Self + pub fn params(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T: ::std::convert::TryInto< + super::PostGetCompressedAccountProofBodyParams, + >, T::Error: ::std::fmt::Display, { - self.message = value + self.params = value .try_into() .map_err(|e| { - format!("error converting supplied value for message: {e}") + format!("error converting supplied value for params: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountProofV2ResponseError { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountProofBody { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountProofV2ResponseError, + value: PostGetCompressedAccountProofBody, ) -> ::std::result::Result { Ok(Self { - code: value.code?, - message: value.message?, + id: value.id?, + jsonrpc: value.jsonrpc?, + method: value.method?, + params: value.params?, }) } } - impl ::std::convert::From - for PostGetCompressedAccountProofV2ResponseError { - fn from(value: super::PostGetCompressedAccountProofV2ResponseError) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountProofBody { + fn from(value: super::PostGetCompressedAccountProofBody) -> Self { Self { - code: Ok(value.code), - message: Ok(value.message), + id: Ok(value.id), + jsonrpc: Ok(value.jsonrpc), + method: Ok(value.method), + params: Ok(value.params), } } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountProofV2ResponseResult { - context: ::std::result::Result, - value: ::std::result::Result< - super::GetCompressedAccountProofResponseValueV2, - ::std::string::String, - >, + pub struct PostGetCompressedAccountProofBodyParams { + hash: ::std::result::Result, } - impl ::std::default::Default for PostGetCompressedAccountProofV2ResponseResult { + impl ::std::default::Default for PostGetCompressedAccountProofBodyParams { fn default() -> Self { Self { - context: Err("no value supplied for context".to_string()), - value: Err("no value supplied for value".to_string()), + hash: Err("no value supplied for hash".to_string()), } } } - impl PostGetCompressedAccountProofV2ResponseResult { - pub fn context(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.context = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for context: {e}") - }); - self - } - pub fn value(mut self, value: T) -> Self + impl PostGetCompressedAccountProofBodyParams { + pub fn hash(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::GetCompressedAccountProofResponseValueV2, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.value = value + self.hash = value .try_into() .map_err(|e| { - format!("error converting supplied value for value: {e}") + format!("error converting supplied value for hash: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountProofV2ResponseResult { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountProofBodyParams { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountProofV2ResponseResult, + value: PostGetCompressedAccountProofBodyParams, ) -> ::std::result::Result { - Ok(Self { - context: value.context?, - value: value.value?, - }) - } - } - impl ::std::convert::From - for PostGetCompressedAccountProofV2ResponseResult { - fn from( - value: super::PostGetCompressedAccountProofV2ResponseResult, - ) -> Self { - Self { - context: Ok(value.context), - value: Ok(value.value), - } + Ok(Self { hash: value.hash? }) + } + } + impl ::std::convert::From + for PostGetCompressedAccountProofBodyParams { + fn from(value: super::PostGetCompressedAccountProofBodyParams) -> Self { + Self { hash: Ok(value.hash) } } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountResponse { + pub struct PostGetCompressedAccountProofResponse { error: ::std::result::Result< - ::std::option::Option, + ::std::option::Option, ::std::string::String, >, id: ::std::result::Result< - super::PostGetCompressedAccountResponseId, + super::PostGetCompressedAccountProofResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedAccountResponseJsonrpc, + super::PostGetCompressedAccountProofResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< - ::std::option::Option, + ::std::option::Option< + super::PostGetCompressedAccountProofResponseResult, + >, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedAccountResponse { + impl ::std::default::Default for PostGetCompressedAccountProofResponse { fn default() -> Self { Self { error: Ok(Default::default()), @@ -37772,11 +33182,13 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedAccountResponse { + impl PostGetCompressedAccountProofResponse { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< - ::std::option::Option, + ::std::option::Option< + super::PostGetCompressedAccountProofResponseError, + >, >, T::Error: ::std::fmt::Display, { @@ -37789,7 +33201,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + super::PostGetCompressedAccountProofResponseId, + >, T::Error: ::std::fmt::Display, { self.id = value @@ -37800,7 +33214,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedAccountResponseJsonrpc, + super::PostGetCompressedAccountProofResponseJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -37814,7 +33228,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn result(mut self, value: T) -> Self where T: ::std::convert::TryInto< - ::std::option::Option, + ::std::option::Option< + super::PostGetCompressedAccountProofResponseResult, + >, >, T::Error: ::std::fmt::Display, { @@ -37826,11 +33242,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountResponse { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountProofResponse { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountResponse, + value: PostGetCompressedAccountProofResponse, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -37840,9 +33256,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedAccountResponse { - fn from(value: super::PostGetCompressedAccountResponse) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountProofResponse { + fn from(value: super::PostGetCompressedAccountProofResponse) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -37852,7 +33268,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountResponseError { + pub struct PostGetCompressedAccountProofResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -37862,7 +33278,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedAccountResponseError { + impl ::std::default::Default for PostGetCompressedAccountProofResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -37870,7 +33286,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedAccountResponseError { + impl PostGetCompressedAccountProofResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -37896,11 +33312,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountResponseError { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountProofResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountResponseError, + value: PostGetCompressedAccountProofResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -37908,9 +33324,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedAccountResponseError { - fn from(value: super::PostGetCompressedAccountResponseError) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountProofResponseError { + fn from(value: super::PostGetCompressedAccountProofResponseError) -> Self { Self { code: Ok(value.code), message: Ok(value.message), @@ -37918,22 +33334,22 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountResponseResult { + pub struct PostGetCompressedAccountProofResponseResult { context: ::std::result::Result, value: ::std::result::Result< - ::std::option::Option, + super::GetCompressedAccountProofResponseValue, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedAccountResponseResult { + impl ::std::default::Default for PostGetCompressedAccountProofResponseResult { fn default() -> Self { Self { context: Err("no value supplied for context".to_string()), - value: Ok(Default::default()), + value: Err("no value supplied for value".to_string()), } } } - impl PostGetCompressedAccountResponseResult { + impl PostGetCompressedAccountProofResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -37948,7 +33364,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn value(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto< + super::GetCompressedAccountProofResponseValue, + >, T::Error: ::std::fmt::Display, { self.value = value @@ -37959,11 +33377,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountResponseResult { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountProofResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountResponseResult, + value: PostGetCompressedAccountProofResponseResult, ) -> ::std::result::Result { Ok(Self { context: value.context?, @@ -37971,9 +33389,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedAccountResponseResult { - fn from(value: super::PostGetCompressedAccountResponseResult) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountProofResponseResult { + fn from(value: super::PostGetCompressedAccountProofResponseResult) -> Self { Self { context: Ok(value.context), value: Ok(value.value), @@ -37981,25 +33399,25 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountV2Body { + pub struct PostGetCompressedAccountProofV2Body { id: ::std::result::Result< - super::PostGetCompressedAccountV2BodyId, + super::PostGetCompressedAccountProofV2BodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedAccountV2BodyJsonrpc, + super::PostGetCompressedAccountProofV2BodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetCompressedAccountV2BodyMethod, + super::PostGetCompressedAccountProofV2BodyMethod, ::std::string::String, >, params: ::std::result::Result< - super::PostGetCompressedAccountV2BodyParams, + super::PostGetCompressedAccountProofV2BodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedAccountV2Body { + impl ::std::default::Default for PostGetCompressedAccountProofV2Body { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -38009,10 +33427,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedAccountV2Body { + impl PostGetCompressedAccountProofV2Body { pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.id = value @@ -38022,7 +33440,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn jsonrpc(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + super::PostGetCompressedAccountProofV2BodyJsonrpc, + >, T::Error: ::std::fmt::Display, { self.jsonrpc = value @@ -38034,7 +33454,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn method(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + super::PostGetCompressedAccountProofV2BodyMethod, + >, T::Error: ::std::fmt::Display, { self.method = value @@ -38046,7 +33468,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn params(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + super::PostGetCompressedAccountProofV2BodyParams, + >, T::Error: ::std::fmt::Display, { self.params = value @@ -38057,11 +33481,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountV2Body { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountProofV2Body { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountV2Body, + value: PostGetCompressedAccountProofV2Body, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -38071,9 +33495,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedAccountV2Body { - fn from(value: super::PostGetCompressedAccountV2Body) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountProofV2Body { + fn from(value: super::PostGetCompressedAccountProofV2Body) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -38083,42 +33507,20 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountV2BodyParams { - address: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - hash: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, + pub struct PostGetCompressedAccountProofV2BodyParams { + hash: ::std::result::Result, } - impl ::std::default::Default for PostGetCompressedAccountV2BodyParams { + impl ::std::default::Default for PostGetCompressedAccountProofV2BodyParams { fn default() -> Self { Self { - address: Ok(Default::default()), - hash: Ok(Default::default()), + hash: Err("no value supplied for hash".to_string()), } } } - impl PostGetCompressedAccountV2BodyParams { - pub fn address(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - ::std::option::Option, - >, - T::Error: ::std::fmt::Display, - { - self.address = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for address: {e}") - }); - self - } + impl PostGetCompressedAccountProofV2BodyParams { pub fn hash(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.hash = value @@ -38129,47 +33531,45 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountV2BodyParams { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountProofV2BodyParams { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountV2BodyParams, + value: PostGetCompressedAccountProofV2BodyParams, ) -> ::std::result::Result { - Ok(Self { - address: value.address?, - hash: value.hash?, - }) + Ok(Self { hash: value.hash? }) } } - impl ::std::convert::From - for PostGetCompressedAccountV2BodyParams { - fn from(value: super::PostGetCompressedAccountV2BodyParams) -> Self { - Self { - address: Ok(value.address), - hash: Ok(value.hash), - } + impl ::std::convert::From + for PostGetCompressedAccountProofV2BodyParams { + fn from(value: super::PostGetCompressedAccountProofV2BodyParams) -> Self { + Self { hash: Ok(value.hash) } } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountV2Response { + pub struct PostGetCompressedAccountProofV2Response { error: ::std::result::Result< - ::std::option::Option, + ::std::option::Option< + super::PostGetCompressedAccountProofV2ResponseError, + >, ::std::string::String, >, id: ::std::result::Result< - super::PostGetCompressedAccountV2ResponseId, + super::PostGetCompressedAccountProofV2ResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedAccountV2ResponseJsonrpc, + super::PostGetCompressedAccountProofV2ResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< - ::std::option::Option, + ::std::option::Option< + super::PostGetCompressedAccountProofV2ResponseResult, + >, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedAccountV2Response { + impl ::std::default::Default for PostGetCompressedAccountProofV2Response { fn default() -> Self { Self { error: Ok(Default::default()), @@ -38179,11 +33579,13 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedAccountV2Response { + impl PostGetCompressedAccountProofV2Response { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< - ::std::option::Option, + ::std::option::Option< + super::PostGetCompressedAccountProofV2ResponseError, + >, >, T::Error: ::std::fmt::Display, { @@ -38196,7 +33598,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + super::PostGetCompressedAccountProofV2ResponseId, + >, T::Error: ::std::fmt::Display, { self.id = value @@ -38207,7 +33611,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedAccountV2ResponseJsonrpc, + super::PostGetCompressedAccountProofV2ResponseJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -38222,7 +33626,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressedAccountV2ResponseResult, + super::PostGetCompressedAccountProofV2ResponseResult, >, >, T::Error: ::std::fmt::Display, @@ -38235,11 +33639,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountV2Response { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountProofV2Response { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountV2Response, + value: PostGetCompressedAccountProofV2Response, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -38249,9 +33653,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedAccountV2Response { - fn from(value: super::PostGetCompressedAccountV2Response) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountProofV2Response { + fn from(value: super::PostGetCompressedAccountProofV2Response) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -38261,7 +33665,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountV2ResponseError { + pub struct PostGetCompressedAccountProofV2ResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -38271,7 +33675,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedAccountV2ResponseError { + impl ::std::default::Default for PostGetCompressedAccountProofV2ResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -38279,7 +33683,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedAccountV2ResponseError { + impl PostGetCompressedAccountProofV2ResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -38305,11 +33709,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountV2ResponseError { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountProofV2ResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountV2ResponseError, + value: PostGetCompressedAccountProofV2ResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -38317,9 +33721,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedAccountV2ResponseError { - fn from(value: super::PostGetCompressedAccountV2ResponseError) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountProofV2ResponseError { + fn from(value: super::PostGetCompressedAccountProofV2ResponseError) -> Self { Self { code: Ok(value.code), message: Ok(value.message), @@ -38327,22 +33731,22 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountV2ResponseResult { + pub struct PostGetCompressedAccountProofV2ResponseResult { context: ::std::result::Result, value: ::std::result::Result< - ::std::option::Option, + super::GetCompressedAccountProofResponseValueV2, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedAccountV2ResponseResult { + impl ::std::default::Default for PostGetCompressedAccountProofV2ResponseResult { fn default() -> Self { Self { context: Err("no value supplied for context".to_string()), - value: Ok(Default::default()), + value: Err("no value supplied for value".to_string()), } } } - impl PostGetCompressedAccountV2ResponseResult { + impl PostGetCompressedAccountProofV2ResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -38357,7 +33761,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn value(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto< + super::GetCompressedAccountProofResponseValueV2, + >, T::Error: ::std::fmt::Display, { self.value = value @@ -38368,11 +33774,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountV2ResponseResult { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountProofV2ResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountV2ResponseResult, + value: PostGetCompressedAccountProofV2ResponseResult, ) -> ::std::result::Result { Ok(Self { context: value.context?, @@ -38380,9 +33786,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedAccountV2ResponseResult { - fn from(value: super::PostGetCompressedAccountV2ResponseResult) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountProofV2ResponseResult { + fn from( + value: super::PostGetCompressedAccountProofV2ResponseResult, + ) -> Self { Self { context: Ok(value.context), value: Ok(value.value), @@ -38390,262 +33798,25 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountsByOwnerBody { - id: ::std::result::Result< - super::PostGetCompressedAccountsByOwnerBodyId, - ::std::string::String, - >, - jsonrpc: ::std::result::Result< - super::PostGetCompressedAccountsByOwnerBodyJsonrpc, - ::std::string::String, - >, - method: ::std::result::Result< - super::PostGetCompressedAccountsByOwnerBodyMethod, - ::std::string::String, - >, - params: ::std::result::Result< - super::PostGetCompressedAccountsByOwnerBodyParams, - ::std::string::String, - >, - } - impl ::std::default::Default for PostGetCompressedAccountsByOwnerBody { - fn default() -> Self { - Self { - id: Err("no value supplied for id".to_string()), - jsonrpc: Err("no value supplied for jsonrpc".to_string()), - method: Err("no value supplied for method".to_string()), - params: Err("no value supplied for params".to_string()), - } - } - } - impl PostGetCompressedAccountsByOwnerBody { - pub fn id(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - super::PostGetCompressedAccountsByOwnerBodyId, - >, - T::Error: ::std::fmt::Display, - { - self.id = value - .try_into() - .map_err(|e| format!("error converting supplied value for id: {e}")); - self - } - pub fn jsonrpc(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - super::PostGetCompressedAccountsByOwnerBodyJsonrpc, - >, - T::Error: ::std::fmt::Display, - { - self.jsonrpc = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for jsonrpc: {e}") - }); - self - } - pub fn method(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - super::PostGetCompressedAccountsByOwnerBodyMethod, - >, - T::Error: ::std::fmt::Display, - { - self.method = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for method: {e}") - }); - self - } - pub fn params(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - super::PostGetCompressedAccountsByOwnerBodyParams, - >, - T::Error: ::std::fmt::Display, - { - self.params = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for params: {e}") - }); - self - } - } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountsByOwnerBody { - type Error = super::error::ConversionError; - fn try_from( - value: PostGetCompressedAccountsByOwnerBody, - ) -> ::std::result::Result { - Ok(Self { - id: value.id?, - jsonrpc: value.jsonrpc?, - method: value.method?, - params: value.params?, - }) - } - } - impl ::std::convert::From - for PostGetCompressedAccountsByOwnerBody { - fn from(value: super::PostGetCompressedAccountsByOwnerBody) -> Self { - Self { - id: Ok(value.id), - jsonrpc: Ok(value.jsonrpc), - method: Ok(value.method), - params: Ok(value.params), - } - } - } - #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountsByOwnerBodyParams { - cursor: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - data_slice: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - filters: ::std::result::Result< - ::std::vec::Vec, - ::std::string::String, - >, - limit: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - owner: ::std::result::Result< - super::SerializablePubkey, - ::std::string::String, - >, - } - impl ::std::default::Default for PostGetCompressedAccountsByOwnerBodyParams { - fn default() -> Self { - Self { - cursor: Ok(Default::default()), - data_slice: Ok(Default::default()), - filters: Ok(Default::default()), - limit: Ok(Default::default()), - owner: Err("no value supplied for owner".to_string()), - } - } - } - impl PostGetCompressedAccountsByOwnerBodyParams { - pub fn cursor(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::option::Option>, - T::Error: ::std::fmt::Display, - { - self.cursor = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for cursor: {e}") - }); - self - } - pub fn data_slice(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::option::Option>, - T::Error: ::std::fmt::Display, - { - self.data_slice = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for data_slice: {e}") - }); - self - } - pub fn filters(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::vec::Vec>, - T::Error: ::std::fmt::Display, - { - self.filters = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for filters: {e}") - }); - self - } - pub fn limit(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::option::Option>, - T::Error: ::std::fmt::Display, - { - self.limit = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for limit: {e}") - }); - self - } - pub fn owner(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.owner = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for owner: {e}") - }); - self - } - } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountsByOwnerBodyParams { - type Error = super::error::ConversionError; - fn try_from( - value: PostGetCompressedAccountsByOwnerBodyParams, - ) -> ::std::result::Result { - Ok(Self { - cursor: value.cursor?, - data_slice: value.data_slice?, - filters: value.filters?, - limit: value.limit?, - owner: value.owner?, - }) - } - } - impl ::std::convert::From - for PostGetCompressedAccountsByOwnerBodyParams { - fn from(value: super::PostGetCompressedAccountsByOwnerBodyParams) -> Self { - Self { - cursor: Ok(value.cursor), - data_slice: Ok(value.data_slice), - filters: Ok(value.filters), - limit: Ok(value.limit), - owner: Ok(value.owner), - } - } - } - #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountsByOwnerResponse { + pub struct PostGetCompressedAccountResponse { error: ::std::result::Result< - ::std::option::Option< - super::PostGetCompressedAccountsByOwnerResponseError, - >, + ::std::option::Option, ::std::string::String, >, id: ::std::result::Result< - super::PostGetCompressedAccountsByOwnerResponseId, + super::PostGetCompressedAccountResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedAccountsByOwnerResponseJsonrpc, + super::PostGetCompressedAccountResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< - ::std::option::Option< - super::PostGetCompressedAccountsByOwnerResponseResult, - >, + ::std::option::Option, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedAccountsByOwnerResponse { + impl ::std::default::Default for PostGetCompressedAccountResponse { fn default() -> Self { Self { error: Ok(Default::default()), @@ -38655,13 +33826,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedAccountsByOwnerResponse { + impl PostGetCompressedAccountResponse { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< - ::std::option::Option< - super::PostGetCompressedAccountsByOwnerResponseError, - >, + ::std::option::Option, >, T::Error: ::std::fmt::Display, { @@ -38674,9 +33843,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetCompressedAccountsByOwnerResponseId, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.id = value @@ -38687,7 +33854,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedAccountsByOwnerResponseJsonrpc, + super::PostGetCompressedAccountResponseJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -38701,9 +33868,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn result(mut self, value: T) -> Self where T: ::std::convert::TryInto< - ::std::option::Option< - super::PostGetCompressedAccountsByOwnerResponseResult, - >, + ::std::option::Option, >, T::Error: ::std::fmt::Display, { @@ -38715,11 +33880,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountsByOwnerResponse { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountResponse { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountsByOwnerResponse, + value: PostGetCompressedAccountResponse, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -38729,9 +33894,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedAccountsByOwnerResponse { - fn from(value: super::PostGetCompressedAccountsByOwnerResponse) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountResponse { + fn from(value: super::PostGetCompressedAccountResponse) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -38741,7 +33906,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountsByOwnerResponseError { + pub struct PostGetCompressedAccountResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -38751,7 +33916,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedAccountsByOwnerResponseError { + impl ::std::default::Default for PostGetCompressedAccountResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -38759,7 +33924,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedAccountsByOwnerResponseError { + impl PostGetCompressedAccountResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -38785,11 +33950,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountsByOwnerResponseError { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountsByOwnerResponseError, + value: PostGetCompressedAccountResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -38797,11 +33962,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedAccountsByOwnerResponseError { - fn from( - value: super::PostGetCompressedAccountsByOwnerResponseError, - ) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountResponseError { + fn from(value: super::PostGetCompressedAccountResponseError) -> Self { Self { code: Ok(value.code), message: Ok(value.message), @@ -38809,22 +33972,22 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountsByOwnerResponseResult { + pub struct PostGetCompressedAccountResponseResult { context: ::std::result::Result, value: ::std::result::Result< - super::PaginatedAccountList, + ::std::option::Option, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedAccountsByOwnerResponseResult { + impl ::std::default::Default for PostGetCompressedAccountResponseResult { fn default() -> Self { Self { context: Err("no value supplied for context".to_string()), - value: Err("no value supplied for value".to_string()), + value: Ok(Default::default()), } } } - impl PostGetCompressedAccountsByOwnerResponseResult { + impl PostGetCompressedAccountResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -38839,7 +34002,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn value(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::option::Option>, T::Error: ::std::fmt::Display, { self.value = value @@ -38850,11 +34013,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountsByOwnerResponseResult { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountsByOwnerResponseResult, + value: PostGetCompressedAccountResponseResult, ) -> ::std::result::Result { Ok(Self { context: value.context?, @@ -38862,11 +34025,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedAccountsByOwnerResponseResult { - fn from( - value: super::PostGetCompressedAccountsByOwnerResponseResult, - ) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountResponseResult { + fn from(value: super::PostGetCompressedAccountResponseResult) -> Self { Self { context: Ok(value.context), value: Ok(value.value), @@ -38874,25 +34035,25 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountsByOwnerV2Body { + pub struct PostGetCompressedAccountV2Body { id: ::std::result::Result< - super::PostGetCompressedAccountsByOwnerV2BodyId, + super::PostGetCompressedAccountV2BodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedAccountsByOwnerV2BodyJsonrpc, + super::PostGetCompressedAccountV2BodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetCompressedAccountsByOwnerV2BodyMethod, + super::PostGetCompressedAccountV2BodyMethod, ::std::string::String, >, params: ::std::result::Result< - super::PostGetCompressedAccountsByOwnerV2BodyParams, + super::PostGetCompressedAccountV2BodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedAccountsByOwnerV2Body { + impl ::std::default::Default for PostGetCompressedAccountV2Body { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -38902,12 +34063,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedAccountsByOwnerV2Body { + impl PostGetCompressedAccountV2Body { pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetCompressedAccountsByOwnerV2BodyId, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.id = value @@ -38917,9 +34076,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn jsonrpc(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetCompressedAccountsByOwnerV2BodyJsonrpc, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.jsonrpc = value @@ -38931,9 +34088,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn method(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetCompressedAccountsByOwnerV2BodyMethod, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.method = value @@ -38945,9 +34100,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn params(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetCompressedAccountsByOwnerV2BodyParams, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.params = value @@ -38958,11 +34111,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountsByOwnerV2Body { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountV2Body { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountsByOwnerV2Body, + value: PostGetCompressedAccountV2Body, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -38972,9 +34125,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedAccountsByOwnerV2Body { - fn from(value: super::PostGetCompressedAccountsByOwnerV2Body) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountV2Body { + fn from(value: super::PostGetCompressedAccountV2Body) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -38984,152 +34137,93 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountsByOwnerV2BodyParams { - cursor: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - data_slice: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - filters: ::std::result::Result< - ::std::vec::Vec, - ::std::string::String, - >, - limit: ::std::result::Result< - ::std::option::Option, + pub struct PostGetCompressedAccountV2BodyParams { + address: ::std::result::Result< + ::std::option::Option, ::std::string::String, >, - owner: ::std::result::Result< - super::SerializablePubkey, + hash: ::std::result::Result< + ::std::option::Option, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedAccountsByOwnerV2BodyParams { + impl ::std::default::Default for PostGetCompressedAccountV2BodyParams { fn default() -> Self { Self { - cursor: Ok(Default::default()), - data_slice: Ok(Default::default()), - filters: Ok(Default::default()), - limit: Ok(Default::default()), - owner: Err("no value supplied for owner".to_string()), + address: Ok(Default::default()), + hash: Ok(Default::default()), } } } - impl PostGetCompressedAccountsByOwnerV2BodyParams { - pub fn cursor(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::option::Option>, - T::Error: ::std::fmt::Display, - { - self.cursor = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for cursor: {e}") - }); - self - } - pub fn data_slice(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::option::Option>, - T::Error: ::std::fmt::Display, - { - self.data_slice = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for data_slice: {e}") - }); - self - } - pub fn filters(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::vec::Vec>, - T::Error: ::std::fmt::Display, - { - self.filters = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for filters: {e}") - }); - self - } - pub fn limit(mut self, value: T) -> Self + impl PostGetCompressedAccountV2BodyParams { + pub fn address(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto< + ::std::option::Option, + >, T::Error: ::std::fmt::Display, { - self.limit = value + self.address = value .try_into() .map_err(|e| { - format!("error converting supplied value for limit: {e}") + format!("error converting supplied value for address: {e}") }); self } - pub fn owner(mut self, value: T) -> Self + pub fn hash(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::option::Option>, T::Error: ::std::fmt::Display, { - self.owner = value + self.hash = value .try_into() .map_err(|e| { - format!("error converting supplied value for owner: {e}") + format!("error converting supplied value for hash: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountsByOwnerV2BodyParams { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountV2BodyParams { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountsByOwnerV2BodyParams, + value: PostGetCompressedAccountV2BodyParams, ) -> ::std::result::Result { Ok(Self { - cursor: value.cursor?, - data_slice: value.data_slice?, - filters: value.filters?, - limit: value.limit?, - owner: value.owner?, + address: value.address?, + hash: value.hash?, }) } } - impl ::std::convert::From - for PostGetCompressedAccountsByOwnerV2BodyParams { - fn from(value: super::PostGetCompressedAccountsByOwnerV2BodyParams) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountV2BodyParams { + fn from(value: super::PostGetCompressedAccountV2BodyParams) -> Self { Self { - cursor: Ok(value.cursor), - data_slice: Ok(value.data_slice), - filters: Ok(value.filters), - limit: Ok(value.limit), - owner: Ok(value.owner), + address: Ok(value.address), + hash: Ok(value.hash), } } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountsByOwnerV2Response { + pub struct PostGetCompressedAccountV2Response { error: ::std::result::Result< - ::std::option::Option< - super::PostGetCompressedAccountsByOwnerV2ResponseError, - >, + ::std::option::Option, ::std::string::String, >, id: ::std::result::Result< - super::PostGetCompressedAccountsByOwnerV2ResponseId, + super::PostGetCompressedAccountV2ResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedAccountsByOwnerV2ResponseJsonrpc, + super::PostGetCompressedAccountV2ResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< - ::std::option::Option< - super::PostGetCompressedAccountsByOwnerV2ResponseResult, - >, + ::std::option::Option, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedAccountsByOwnerV2Response { + impl ::std::default::Default for PostGetCompressedAccountV2Response { fn default() -> Self { Self { error: Ok(Default::default()), @@ -39139,13 +34233,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedAccountsByOwnerV2Response { + impl PostGetCompressedAccountV2Response { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< - ::std::option::Option< - super::PostGetCompressedAccountsByOwnerV2ResponseError, - >, + ::std::option::Option, >, T::Error: ::std::fmt::Display, { @@ -39158,9 +34250,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetCompressedAccountsByOwnerV2ResponseId, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.id = value @@ -39171,7 +34261,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedAccountsByOwnerV2ResponseJsonrpc, + super::PostGetCompressedAccountV2ResponseJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -39186,7 +34276,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressedAccountsByOwnerV2ResponseResult, + super::PostGetCompressedAccountV2ResponseResult, >, >, T::Error: ::std::fmt::Display, @@ -39199,11 +34289,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountsByOwnerV2Response { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountV2Response { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountsByOwnerV2Response, + value: PostGetCompressedAccountV2Response, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -39213,9 +34303,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedAccountsByOwnerV2Response { - fn from(value: super::PostGetCompressedAccountsByOwnerV2Response) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountV2Response { + fn from(value: super::PostGetCompressedAccountV2Response) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -39225,7 +34315,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountsByOwnerV2ResponseError { + pub struct PostGetCompressedAccountV2ResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -39235,8 +34325,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::string::String, >, } - impl ::std::default::Default - for PostGetCompressedAccountsByOwnerV2ResponseError { + impl ::std::default::Default for PostGetCompressedAccountV2ResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -39244,7 +34333,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedAccountsByOwnerV2ResponseError { + impl PostGetCompressedAccountV2ResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -39270,11 +34359,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountsByOwnerV2ResponseError { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountV2ResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountsByOwnerV2ResponseError, + value: PostGetCompressedAccountV2ResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -39282,11 +34371,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedAccountsByOwnerV2ResponseError { - fn from( - value: super::PostGetCompressedAccountsByOwnerV2ResponseError, - ) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountV2ResponseError { + fn from(value: super::PostGetCompressedAccountV2ResponseError) -> Self { Self { code: Ok(value.code), message: Ok(value.message), @@ -39294,23 +34381,22 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedAccountsByOwnerV2ResponseResult { + pub struct PostGetCompressedAccountV2ResponseResult { context: ::std::result::Result, value: ::std::result::Result< - super::PaginatedAccountListV2, + ::std::option::Option, ::std::string::String, >, } - impl ::std::default::Default - for PostGetCompressedAccountsByOwnerV2ResponseResult { + impl ::std::default::Default for PostGetCompressedAccountV2ResponseResult { fn default() -> Self { Self { context: Err("no value supplied for context".to_string()), - value: Err("no value supplied for value".to_string()), + value: Ok(Default::default()), } } } - impl PostGetCompressedAccountsByOwnerV2ResponseResult { + impl PostGetCompressedAccountV2ResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -39325,7 +34411,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn value(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::option::Option>, T::Error: ::std::fmt::Display, { self.value = value @@ -39336,11 +34422,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedAccountsByOwnerV2ResponseResult { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountV2ResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedAccountsByOwnerV2ResponseResult, + value: PostGetCompressedAccountV2ResponseResult, ) -> ::std::result::Result { Ok(Self { context: value.context?, @@ -39348,12 +34434,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From< - super::PostGetCompressedAccountsByOwnerV2ResponseResult, - > for PostGetCompressedAccountsByOwnerV2ResponseResult { - fn from( - value: super::PostGetCompressedAccountsByOwnerV2ResponseResult, - ) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountV2ResponseResult { + fn from(value: super::PostGetCompressedAccountV2ResponseResult) -> Self { Self { context: Ok(value.context), value: Ok(value.value), @@ -39361,25 +34444,25 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedBalanceByOwnerBody { + pub struct PostGetCompressedAccountsByOwnerBody { id: ::std::result::Result< - super::PostGetCompressedBalanceByOwnerBodyId, + super::PostGetCompressedAccountsByOwnerBodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedBalanceByOwnerBodyJsonrpc, + super::PostGetCompressedAccountsByOwnerBodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetCompressedBalanceByOwnerBodyMethod, + super::PostGetCompressedAccountsByOwnerBodyMethod, ::std::string::String, >, params: ::std::result::Result< - super::PostGetCompressedBalanceByOwnerBodyParams, + super::PostGetCompressedAccountsByOwnerBodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedBalanceByOwnerBody { + impl ::std::default::Default for PostGetCompressedAccountsByOwnerBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -39389,10 +34472,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedBalanceByOwnerBody { + impl PostGetCompressedAccountsByOwnerBody { pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + super::PostGetCompressedAccountsByOwnerBodyId, + >, T::Error: ::std::fmt::Display, { self.id = value @@ -39403,7 +34488,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedBalanceByOwnerBodyJsonrpc, + super::PostGetCompressedAccountsByOwnerBodyJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -39417,7 +34502,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn method(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedBalanceByOwnerBodyMethod, + super::PostGetCompressedAccountsByOwnerBodyMethod, >, T::Error: ::std::fmt::Display, { @@ -39431,7 +34516,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn params(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedBalanceByOwnerBodyParams, + super::PostGetCompressedAccountsByOwnerBodyParams, >, T::Error: ::std::fmt::Display, { @@ -39443,11 +34528,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedBalanceByOwnerBody { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountsByOwnerBody { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedBalanceByOwnerBody, + value: PostGetCompressedAccountsByOwnerBody, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -39457,9 +34542,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedBalanceByOwnerBody { - fn from(value: super::PostGetCompressedBalanceByOwnerBody) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountsByOwnerBody { + fn from(value: super::PostGetCompressedAccountsByOwnerBody) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -39469,20 +34554,88 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedBalanceByOwnerBodyParams { + pub struct PostGetCompressedAccountsByOwnerBodyParams { + cursor: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + data_slice: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + filters: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + limit: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, owner: ::std::result::Result< super::SerializablePubkey, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedBalanceByOwnerBodyParams { + impl ::std::default::Default for PostGetCompressedAccountsByOwnerBodyParams { fn default() -> Self { Self { + cursor: Ok(Default::default()), + data_slice: Ok(Default::default()), + filters: Ok(Default::default()), + limit: Ok(Default::default()), owner: Err("no value supplied for owner".to_string()), } } } - impl PostGetCompressedBalanceByOwnerBodyParams { + impl PostGetCompressedAccountsByOwnerBodyParams { + pub fn cursor(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, + { + self.cursor = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for cursor: {e}") + }); + self + } + pub fn data_slice(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, + { + self.data_slice = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for data_slice: {e}") + }); + self + } + pub fn filters(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, + { + self.filters = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for filters: {e}") + }); + self + } + pub fn limit(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, + { + self.limit = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for limit: {e}") + }); + self + } pub fn owner(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -39496,45 +34649,57 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedBalanceByOwnerBodyParams { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountsByOwnerBodyParams { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedBalanceByOwnerBodyParams, + value: PostGetCompressedAccountsByOwnerBodyParams, ) -> ::std::result::Result { - Ok(Self { owner: value.owner? }) + Ok(Self { + cursor: value.cursor?, + data_slice: value.data_slice?, + filters: value.filters?, + limit: value.limit?, + owner: value.owner?, + }) } } - impl ::std::convert::From - for PostGetCompressedBalanceByOwnerBodyParams { - fn from(value: super::PostGetCompressedBalanceByOwnerBodyParams) -> Self { - Self { owner: Ok(value.owner) } + impl ::std::convert::From + for PostGetCompressedAccountsByOwnerBodyParams { + fn from(value: super::PostGetCompressedAccountsByOwnerBodyParams) -> Self { + Self { + cursor: Ok(value.cursor), + data_slice: Ok(value.data_slice), + filters: Ok(value.filters), + limit: Ok(value.limit), + owner: Ok(value.owner), + } } } #[derive(Clone, Debug)] - pub struct PostGetCompressedBalanceByOwnerResponse { + pub struct PostGetCompressedAccountsByOwnerResponse { error: ::std::result::Result< ::std::option::Option< - super::PostGetCompressedBalanceByOwnerResponseError, + super::PostGetCompressedAccountsByOwnerResponseError, >, ::std::string::String, >, id: ::std::result::Result< - super::PostGetCompressedBalanceByOwnerResponseId, + super::PostGetCompressedAccountsByOwnerResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedBalanceByOwnerResponseJsonrpc, + super::PostGetCompressedAccountsByOwnerResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< ::std::option::Option< - super::PostGetCompressedBalanceByOwnerResponseResult, + super::PostGetCompressedAccountsByOwnerResponseResult, >, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedBalanceByOwnerResponse { + impl ::std::default::Default for PostGetCompressedAccountsByOwnerResponse { fn default() -> Self { Self { error: Ok(Default::default()), @@ -39544,12 +34709,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedBalanceByOwnerResponse { + impl PostGetCompressedAccountsByOwnerResponse { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressedBalanceByOwnerResponseError, + super::PostGetCompressedAccountsByOwnerResponseError, >, >, T::Error: ::std::fmt::Display, @@ -39564,7 +34729,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedBalanceByOwnerResponseId, + super::PostGetCompressedAccountsByOwnerResponseId, >, T::Error: ::std::fmt::Display, { @@ -39576,7 +34741,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedBalanceByOwnerResponseJsonrpc, + super::PostGetCompressedAccountsByOwnerResponseJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -39591,7 +34756,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressedBalanceByOwnerResponseResult, + super::PostGetCompressedAccountsByOwnerResponseResult, >, >, T::Error: ::std::fmt::Display, @@ -39604,11 +34769,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedBalanceByOwnerResponse { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountsByOwnerResponse { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedBalanceByOwnerResponse, + value: PostGetCompressedAccountsByOwnerResponse, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -39618,9 +34783,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedBalanceByOwnerResponse { - fn from(value: super::PostGetCompressedBalanceByOwnerResponse) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountsByOwnerResponse { + fn from(value: super::PostGetCompressedAccountsByOwnerResponse) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -39630,7 +34795,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedBalanceByOwnerResponseError { + pub struct PostGetCompressedAccountsByOwnerResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -39640,7 +34805,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedBalanceByOwnerResponseError { + impl ::std::default::Default for PostGetCompressedAccountsByOwnerResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -39648,7 +34813,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedBalanceByOwnerResponseError { + impl PostGetCompressedAccountsByOwnerResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -39674,11 +34839,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedBalanceByOwnerResponseError { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountsByOwnerResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedBalanceByOwnerResponseError, + value: PostGetCompressedAccountsByOwnerResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -39686,9 +34851,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedBalanceByOwnerResponseError { - fn from(value: super::PostGetCompressedBalanceByOwnerResponseError) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountsByOwnerResponseError { + fn from( + value: super::PostGetCompressedAccountsByOwnerResponseError, + ) -> Self { Self { code: Ok(value.code), message: Ok(value.message), @@ -39696,11 +34863,14 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedBalanceByOwnerResponseResult { + pub struct PostGetCompressedAccountsByOwnerResponseResult { context: ::std::result::Result, - value: ::std::result::Result, + value: ::std::result::Result< + super::PaginatedAccountList, + ::std::string::String, + >, } - impl ::std::default::Default for PostGetCompressedBalanceByOwnerResponseResult { + impl ::std::default::Default for PostGetCompressedAccountsByOwnerResponseResult { fn default() -> Self { Self { context: Err("no value supplied for context".to_string()), @@ -39708,7 +34878,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedBalanceByOwnerResponseResult { + impl PostGetCompressedAccountsByOwnerResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -39723,7 +34893,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn value(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.value = value @@ -39734,11 +34904,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedBalanceByOwnerResponseResult { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountsByOwnerResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedBalanceByOwnerResponseResult, + value: PostGetCompressedAccountsByOwnerResponseResult, ) -> ::std::result::Result { Ok(Self { context: value.context?, @@ -39746,10 +34916,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedBalanceByOwnerResponseResult { + impl ::std::convert::From + for PostGetCompressedAccountsByOwnerResponseResult { fn from( - value: super::PostGetCompressedBalanceByOwnerResponseResult, + value: super::PostGetCompressedAccountsByOwnerResponseResult, ) -> Self { Self { context: Ok(value.context), @@ -39758,25 +34928,25 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedMintTokenHoldersBody { + pub struct PostGetCompressedAccountsByOwnerV2Body { id: ::std::result::Result< - super::PostGetCompressedMintTokenHoldersBodyId, + super::PostGetCompressedAccountsByOwnerV2BodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedMintTokenHoldersBodyJsonrpc, + super::PostGetCompressedAccountsByOwnerV2BodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetCompressedMintTokenHoldersBodyMethod, + super::PostGetCompressedAccountsByOwnerV2BodyMethod, ::std::string::String, >, params: ::std::result::Result< - super::PostGetCompressedMintTokenHoldersBodyParams, + super::PostGetCompressedAccountsByOwnerV2BodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedMintTokenHoldersBody { + impl ::std::default::Default for PostGetCompressedAccountsByOwnerV2Body { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -39786,11 +34956,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedMintTokenHoldersBody { + impl PostGetCompressedAccountsByOwnerV2Body { pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedMintTokenHoldersBodyId, + super::PostGetCompressedAccountsByOwnerV2BodyId, >, T::Error: ::std::fmt::Display, { @@ -39802,7 +34972,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedMintTokenHoldersBodyJsonrpc, + super::PostGetCompressedAccountsByOwnerV2BodyJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -39816,7 +34986,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn method(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedMintTokenHoldersBodyMethod, + super::PostGetCompressedAccountsByOwnerV2BodyMethod, >, T::Error: ::std::fmt::Display, { @@ -39830,7 +35000,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn params(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedMintTokenHoldersBodyParams, + super::PostGetCompressedAccountsByOwnerV2BodyParams, >, T::Error: ::std::fmt::Display, { @@ -39842,11 +35012,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedMintTokenHoldersBody { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountsByOwnerV2Body { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedMintTokenHoldersBody, + value: PostGetCompressedAccountsByOwnerV2Body, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -39856,9 +35026,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedMintTokenHoldersBody { - fn from(value: super::PostGetCompressedMintTokenHoldersBody) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountsByOwnerV2Body { + fn from(value: super::PostGetCompressedAccountsByOwnerV2Body) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -39868,33 +35038,43 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedMintTokenHoldersBodyParams { + pub struct PostGetCompressedAccountsByOwnerV2BodyParams { cursor: ::std::result::Result< - ::std::option::Option, + ::std::option::Option, + ::std::string::String, + >, + data_slice: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + filters: ::std::result::Result< + ::std::vec::Vec, ::std::string::String, >, limit: ::std::result::Result< ::std::option::Option, ::std::string::String, >, - mint: ::std::result::Result< + owner: ::std::result::Result< super::SerializablePubkey, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedMintTokenHoldersBodyParams { + impl ::std::default::Default for PostGetCompressedAccountsByOwnerV2BodyParams { fn default() -> Self { Self { cursor: Ok(Default::default()), + data_slice: Ok(Default::default()), + filters: Ok(Default::default()), limit: Ok(Default::default()), - mint: Err("no value supplied for mint".to_string()), + owner: Err("no value supplied for owner".to_string()), } } } - impl PostGetCompressedMintTokenHoldersBodyParams { + impl PostGetCompressedAccountsByOwnerV2BodyParams { pub fn cursor(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto<::std::option::Option>, T::Error: ::std::fmt::Display, { self.cursor = value @@ -39904,6 +35084,30 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }); self } + pub fn data_slice(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, + { + self.data_slice = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for data_slice: {e}") + }); + self + } + pub fn filters(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, + { + self.filters = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for filters: {e}") + }); + self + } pub fn limit(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -39916,66 +35120,70 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }); self } - pub fn mint(mut self, value: T) -> Self + pub fn owner(mut self, value: T) -> Self where T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.mint = value + self.owner = value .try_into() .map_err(|e| { - format!("error converting supplied value for mint: {e}") + format!("error converting supplied value for owner: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedMintTokenHoldersBodyParams { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountsByOwnerV2BodyParams { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedMintTokenHoldersBodyParams, + value: PostGetCompressedAccountsByOwnerV2BodyParams, ) -> ::std::result::Result { Ok(Self { cursor: value.cursor?, + data_slice: value.data_slice?, + filters: value.filters?, limit: value.limit?, - mint: value.mint?, + owner: value.owner?, }) } } - impl ::std::convert::From - for PostGetCompressedMintTokenHoldersBodyParams { - fn from(value: super::PostGetCompressedMintTokenHoldersBodyParams) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountsByOwnerV2BodyParams { + fn from(value: super::PostGetCompressedAccountsByOwnerV2BodyParams) -> Self { Self { cursor: Ok(value.cursor), + data_slice: Ok(value.data_slice), + filters: Ok(value.filters), limit: Ok(value.limit), - mint: Ok(value.mint), + owner: Ok(value.owner), } } } #[derive(Clone, Debug)] - pub struct PostGetCompressedMintTokenHoldersResponse { + pub struct PostGetCompressedAccountsByOwnerV2Response { error: ::std::result::Result< ::std::option::Option< - super::PostGetCompressedMintTokenHoldersResponseError, + super::PostGetCompressedAccountsByOwnerV2ResponseError, >, ::std::string::String, >, id: ::std::result::Result< - super::PostGetCompressedMintTokenHoldersResponseId, + super::PostGetCompressedAccountsByOwnerV2ResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedMintTokenHoldersResponseJsonrpc, + super::PostGetCompressedAccountsByOwnerV2ResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< ::std::option::Option< - super::PostGetCompressedMintTokenHoldersResponseResult, + super::PostGetCompressedAccountsByOwnerV2ResponseResult, >, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedMintTokenHoldersResponse { + impl ::std::default::Default for PostGetCompressedAccountsByOwnerV2Response { fn default() -> Self { Self { error: Ok(Default::default()), @@ -39985,12 +35193,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedMintTokenHoldersResponse { + impl PostGetCompressedAccountsByOwnerV2Response { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressedMintTokenHoldersResponseError, + super::PostGetCompressedAccountsByOwnerV2ResponseError, >, >, T::Error: ::std::fmt::Display, @@ -40005,7 +35213,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedMintTokenHoldersResponseId, + super::PostGetCompressedAccountsByOwnerV2ResponseId, >, T::Error: ::std::fmt::Display, { @@ -40017,7 +35225,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedMintTokenHoldersResponseJsonrpc, + super::PostGetCompressedAccountsByOwnerV2ResponseJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -40032,7 +35240,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressedMintTokenHoldersResponseResult, + super::PostGetCompressedAccountsByOwnerV2ResponseResult, >, >, T::Error: ::std::fmt::Display, @@ -40045,11 +35253,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedMintTokenHoldersResponse { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountsByOwnerV2Response { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedMintTokenHoldersResponse, + value: PostGetCompressedAccountsByOwnerV2Response, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -40059,9 +35267,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedMintTokenHoldersResponse { - fn from(value: super::PostGetCompressedMintTokenHoldersResponse) -> Self { + impl ::std::convert::From + for PostGetCompressedAccountsByOwnerV2Response { + fn from(value: super::PostGetCompressedAccountsByOwnerV2Response) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -40071,7 +35279,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedMintTokenHoldersResponseError { + pub struct PostGetCompressedAccountsByOwnerV2ResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -40081,7 +35289,8 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedMintTokenHoldersResponseError { + impl ::std::default::Default + for PostGetCompressedAccountsByOwnerV2ResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -40089,7 +35298,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedMintTokenHoldersResponseError { + impl PostGetCompressedAccountsByOwnerV2ResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -40115,11 +35324,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedMintTokenHoldersResponseError { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountsByOwnerV2ResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedMintTokenHoldersResponseError, + value: PostGetCompressedAccountsByOwnerV2ResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -40127,10 +35336,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedMintTokenHoldersResponseError { + impl ::std::convert::From + for PostGetCompressedAccountsByOwnerV2ResponseError { fn from( - value: super::PostGetCompressedMintTokenHoldersResponseError, + value: super::PostGetCompressedAccountsByOwnerV2ResponseError, ) -> Self { Self { code: Ok(value.code), @@ -40139,12 +35348,15 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedMintTokenHoldersResponseResult { + pub struct PostGetCompressedAccountsByOwnerV2ResponseResult { context: ::std::result::Result, - value: ::std::result::Result, + value: ::std::result::Result< + super::PaginatedAccountListV2, + ::std::string::String, + >, } impl ::std::default::Default - for PostGetCompressedMintTokenHoldersResponseResult { + for PostGetCompressedAccountsByOwnerV2ResponseResult { fn default() -> Self { Self { context: Err("no value supplied for context".to_string()), @@ -40152,7 +35364,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedMintTokenHoldersResponseResult { + impl PostGetCompressedAccountsByOwnerV2ResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -40167,7 +35379,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn value(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.value = value @@ -40178,11 +35390,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedMintTokenHoldersResponseResult { + impl ::std::convert::TryFrom + for super::PostGetCompressedAccountsByOwnerV2ResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedMintTokenHoldersResponseResult, + value: PostGetCompressedAccountsByOwnerV2ResponseResult, ) -> ::std::result::Result { Ok(Self { context: value.context?, @@ -40190,10 +35402,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedMintTokenHoldersResponseResult { + impl ::std::convert::From< + super::PostGetCompressedAccountsByOwnerV2ResponseResult, + > for PostGetCompressedAccountsByOwnerV2ResponseResult { fn from( - value: super::PostGetCompressedMintTokenHoldersResponseResult, + value: super::PostGetCompressedAccountsByOwnerV2ResponseResult, ) -> Self { Self { context: Ok(value.context), @@ -40202,25 +35415,25 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenAccountBalanceBody { + pub struct PostGetCompressedBalanceByOwnerBody { id: ::std::result::Result< - super::PostGetCompressedTokenAccountBalanceBodyId, + super::PostGetCompressedBalanceByOwnerBodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedTokenAccountBalanceBodyJsonrpc, + super::PostGetCompressedBalanceByOwnerBodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetCompressedTokenAccountBalanceBodyMethod, + super::PostGetCompressedBalanceByOwnerBodyMethod, ::std::string::String, >, params: ::std::result::Result< - super::PostGetCompressedTokenAccountBalanceBodyParams, + super::PostGetCompressedBalanceByOwnerBodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedTokenAccountBalanceBody { + impl ::std::default::Default for PostGetCompressedBalanceByOwnerBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -40230,12 +35443,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenAccountBalanceBody { + impl PostGetCompressedBalanceByOwnerBody { pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountBalanceBodyId, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.id = value @@ -40246,7 +35457,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountBalanceBodyJsonrpc, + super::PostGetCompressedBalanceByOwnerBodyJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -40260,7 +35471,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn method(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountBalanceBodyMethod, + super::PostGetCompressedBalanceByOwnerBodyMethod, >, T::Error: ::std::fmt::Display, { @@ -40274,7 +35485,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn params(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountBalanceBodyParams, + super::PostGetCompressedBalanceByOwnerBodyParams, >, T::Error: ::std::fmt::Display, { @@ -40286,11 +35497,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedTokenAccountBalanceBody { + impl ::std::convert::TryFrom + for super::PostGetCompressedBalanceByOwnerBody { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenAccountBalanceBody, + value: PostGetCompressedBalanceByOwnerBody, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -40300,9 +35511,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedTokenAccountBalanceBody { - fn from(value: super::PostGetCompressedTokenAccountBalanceBody) -> Self { + impl ::std::convert::From + for PostGetCompressedBalanceByOwnerBody { + fn from(value: super::PostGetCompressedBalanceByOwnerBody) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -40312,99 +35523,72 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenAccountBalanceBodyParams { - address: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - hash: ::std::result::Result< - ::std::option::Option, + pub struct PostGetCompressedBalanceByOwnerBodyParams { + owner: ::std::result::Result< + super::SerializablePubkey, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedTokenAccountBalanceBodyParams { + impl ::std::default::Default for PostGetCompressedBalanceByOwnerBodyParams { fn default() -> Self { Self { - address: Ok(Default::default()), - hash: Ok(Default::default()), + owner: Err("no value supplied for owner".to_string()), } } } - impl PostGetCompressedTokenAccountBalanceBodyParams { - pub fn address(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - ::std::option::Option, - >, - T::Error: ::std::fmt::Display, - { - self.address = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for address: {e}") - }); - self - } - pub fn hash(mut self, value: T) -> Self + impl PostGetCompressedBalanceByOwnerBodyParams { + pub fn owner(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.hash = value + self.owner = value .try_into() .map_err(|e| { - format!("error converting supplied value for hash: {e}") + format!("error converting supplied value for owner: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedTokenAccountBalanceBodyParams { + impl ::std::convert::TryFrom + for super::PostGetCompressedBalanceByOwnerBodyParams { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenAccountBalanceBodyParams, + value: PostGetCompressedBalanceByOwnerBodyParams, ) -> ::std::result::Result { - Ok(Self { - address: value.address?, - hash: value.hash?, - }) + Ok(Self { owner: value.owner? }) } } - impl ::std::convert::From - for PostGetCompressedTokenAccountBalanceBodyParams { - fn from( - value: super::PostGetCompressedTokenAccountBalanceBodyParams, - ) -> Self { - Self { - address: Ok(value.address), - hash: Ok(value.hash), - } + impl ::std::convert::From + for PostGetCompressedBalanceByOwnerBodyParams { + fn from(value: super::PostGetCompressedBalanceByOwnerBodyParams) -> Self { + Self { owner: Ok(value.owner) } } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenAccountBalanceResponse { + pub struct PostGetCompressedBalanceByOwnerResponse { error: ::std::result::Result< ::std::option::Option< - super::PostGetCompressedTokenAccountBalanceResponseError, + super::PostGetCompressedBalanceByOwnerResponseError, >, ::std::string::String, >, id: ::std::result::Result< - super::PostGetCompressedTokenAccountBalanceResponseId, + super::PostGetCompressedBalanceByOwnerResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedTokenAccountBalanceResponseJsonrpc, + super::PostGetCompressedBalanceByOwnerResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< ::std::option::Option< - super::PostGetCompressedTokenAccountBalanceResponseResult, + super::PostGetCompressedBalanceByOwnerResponseResult, >, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedTokenAccountBalanceResponse { + impl ::std::default::Default for PostGetCompressedBalanceByOwnerResponse { fn default() -> Self { Self { error: Ok(Default::default()), @@ -40414,12 +35598,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenAccountBalanceResponse { + impl PostGetCompressedBalanceByOwnerResponse { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressedTokenAccountBalanceResponseError, + super::PostGetCompressedBalanceByOwnerResponseError, >, >, T::Error: ::std::fmt::Display, @@ -40434,7 +35618,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountBalanceResponseId, + super::PostGetCompressedBalanceByOwnerResponseId, >, T::Error: ::std::fmt::Display, { @@ -40446,7 +35630,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountBalanceResponseJsonrpc, + super::PostGetCompressedBalanceByOwnerResponseJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -40461,7 +35645,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressedTokenAccountBalanceResponseResult, + super::PostGetCompressedBalanceByOwnerResponseResult, >, >, T::Error: ::std::fmt::Display, @@ -40474,11 +35658,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedTokenAccountBalanceResponse { + impl ::std::convert::TryFrom + for super::PostGetCompressedBalanceByOwnerResponse { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenAccountBalanceResponse, + value: PostGetCompressedBalanceByOwnerResponse, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -40488,9 +35672,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedTokenAccountBalanceResponse { - fn from(value: super::PostGetCompressedTokenAccountBalanceResponse) -> Self { + impl ::std::convert::From + for PostGetCompressedBalanceByOwnerResponse { + fn from(value: super::PostGetCompressedBalanceByOwnerResponse) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -40500,7 +35684,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenAccountBalanceResponseError { + pub struct PostGetCompressedBalanceByOwnerResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -40510,8 +35694,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::string::String, >, } - impl ::std::default::Default - for PostGetCompressedTokenAccountBalanceResponseError { + impl ::std::default::Default for PostGetCompressedBalanceByOwnerResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -40519,7 +35702,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenAccountBalanceResponseError { + impl PostGetCompressedBalanceByOwnerResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -40545,11 +35728,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedTokenAccountBalanceResponseError { + impl ::std::convert::TryFrom + for super::PostGetCompressedBalanceByOwnerResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenAccountBalanceResponseError, + value: PostGetCompressedBalanceByOwnerResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -40557,12 +35740,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From< - super::PostGetCompressedTokenAccountBalanceResponseError, - > for PostGetCompressedTokenAccountBalanceResponseError { - fn from( - value: super::PostGetCompressedTokenAccountBalanceResponseError, - ) -> Self { + impl ::std::convert::From + for PostGetCompressedBalanceByOwnerResponseError { + fn from(value: super::PostGetCompressedBalanceByOwnerResponseError) -> Self { Self { code: Ok(value.code), message: Ok(value.message), @@ -40570,15 +35750,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenAccountBalanceResponseResult { + pub struct PostGetCompressedBalanceByOwnerResponseResult { context: ::std::result::Result, - value: ::std::result::Result< - super::TokenAccountBalance, - ::std::string::String, - >, + value: ::std::result::Result, } - impl ::std::default::Default - for PostGetCompressedTokenAccountBalanceResponseResult { + impl ::std::default::Default for PostGetCompressedBalanceByOwnerResponseResult { fn default() -> Self { Self { context: Err("no value supplied for context".to_string()), @@ -40586,7 +35762,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenAccountBalanceResponseResult { + impl PostGetCompressedBalanceByOwnerResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -40601,7 +35777,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn value(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.value = value @@ -40612,11 +35788,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedTokenAccountBalanceResponseResult { + impl ::std::convert::TryFrom + for super::PostGetCompressedBalanceByOwnerResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenAccountBalanceResponseResult, + value: PostGetCompressedBalanceByOwnerResponseResult, ) -> ::std::result::Result { Ok(Self { context: value.context?, @@ -40624,11 +35800,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From< - super::PostGetCompressedTokenAccountBalanceResponseResult, - > for PostGetCompressedTokenAccountBalanceResponseResult { + impl ::std::convert::From + for PostGetCompressedBalanceByOwnerResponseResult { fn from( - value: super::PostGetCompressedTokenAccountBalanceResponseResult, + value: super::PostGetCompressedBalanceByOwnerResponseResult, ) -> Self { Self { context: Ok(value.context), @@ -40637,25 +35812,25 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByDelegateBody { + pub struct PostGetCompressedMintTokenHoldersBody { id: ::std::result::Result< - super::PostGetCompressedTokenAccountsByDelegateBodyId, + super::PostGetCompressedMintTokenHoldersBodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedTokenAccountsByDelegateBodyJsonrpc, + super::PostGetCompressedMintTokenHoldersBodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetCompressedTokenAccountsByDelegateBodyMethod, + super::PostGetCompressedMintTokenHoldersBodyMethod, ::std::string::String, >, params: ::std::result::Result< - super::PostGetCompressedTokenAccountsByDelegateBodyParams, + super::PostGetCompressedMintTokenHoldersBodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedTokenAccountsByDelegateBody { + impl ::std::default::Default for PostGetCompressedMintTokenHoldersBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -40665,11 +35840,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenAccountsByDelegateBody { + impl PostGetCompressedMintTokenHoldersBody { pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountsByDelegateBodyId, + super::PostGetCompressedMintTokenHoldersBodyId, >, T::Error: ::std::fmt::Display, { @@ -40681,7 +35856,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountsByDelegateBodyJsonrpc, + super::PostGetCompressedMintTokenHoldersBodyJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -40695,7 +35870,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn method(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountsByDelegateBodyMethod, + super::PostGetCompressedMintTokenHoldersBodyMethod, >, T::Error: ::std::fmt::Display, { @@ -40709,7 +35884,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn params(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountsByDelegateBodyParams, + super::PostGetCompressedMintTokenHoldersBodyParams, >, T::Error: ::std::fmt::Display, { @@ -40721,11 +35896,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedTokenAccountsByDelegateBody { + impl ::std::convert::TryFrom + for super::PostGetCompressedMintTokenHoldersBody { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenAccountsByDelegateBody, + value: PostGetCompressedMintTokenHoldersBody, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -40735,9 +35910,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedTokenAccountsByDelegateBody { - fn from(value: super::PostGetCompressedTokenAccountsByDelegateBody) -> Self { + impl ::std::convert::From + for PostGetCompressedMintTokenHoldersBody { + fn from(value: super::PostGetCompressedMintTokenHoldersBody) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -40747,36 +35922,30 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByDelegateBodyParams { + pub struct PostGetCompressedMintTokenHoldersBodyParams { cursor: ::std::result::Result< ::std::option::Option, ::std::string::String, >, - delegate: ::std::result::Result< - super::SerializablePubkey, - ::std::string::String, - >, limit: ::std::result::Result< ::std::option::Option, ::std::string::String, >, mint: ::std::result::Result< - ::std::option::Option, + super::SerializablePubkey, ::std::string::String, >, } - impl ::std::default::Default - for PostGetCompressedTokenAccountsByDelegateBodyParams { + impl ::std::default::Default for PostGetCompressedMintTokenHoldersBodyParams { fn default() -> Self { Self { cursor: Ok(Default::default()), - delegate: Err("no value supplied for delegate".to_string()), limit: Ok(Default::default()), - mint: Ok(Default::default()), + mint: Err("no value supplied for mint".to_string()), } } } - impl PostGetCompressedTokenAccountsByDelegateBodyParams { + impl PostGetCompressedMintTokenHoldersBodyParams { pub fn cursor(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -40789,18 +35958,6 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }); self } - pub fn delegate(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.delegate = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for delegate: {e}") - }); - self - } pub fn limit(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -40815,9 +35972,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn mint(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - ::std::option::Option, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.mint = value @@ -40828,59 +35983,53 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedTokenAccountsByDelegateBodyParams { + impl ::std::convert::TryFrom + for super::PostGetCompressedMintTokenHoldersBodyParams { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenAccountsByDelegateBodyParams, + value: PostGetCompressedMintTokenHoldersBodyParams, ) -> ::std::result::Result { Ok(Self { cursor: value.cursor?, - delegate: value.delegate?, limit: value.limit?, mint: value.mint?, }) } } - impl ::std::convert::From< - super::PostGetCompressedTokenAccountsByDelegateBodyParams, - > for PostGetCompressedTokenAccountsByDelegateBodyParams { - fn from( - value: super::PostGetCompressedTokenAccountsByDelegateBodyParams, - ) -> Self { + impl ::std::convert::From + for PostGetCompressedMintTokenHoldersBodyParams { + fn from(value: super::PostGetCompressedMintTokenHoldersBodyParams) -> Self { Self { cursor: Ok(value.cursor), - delegate: Ok(value.delegate), limit: Ok(value.limit), mint: Ok(value.mint), } } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByDelegateResponse { + pub struct PostGetCompressedMintTokenHoldersResponse { error: ::std::result::Result< ::std::option::Option< - super::PostGetCompressedTokenAccountsByDelegateResponseError, + super::PostGetCompressedMintTokenHoldersResponseError, >, ::std::string::String, >, id: ::std::result::Result< - super::PostGetCompressedTokenAccountsByDelegateResponseId, + super::PostGetCompressedMintTokenHoldersResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedTokenAccountsByDelegateResponseJsonrpc, + super::PostGetCompressedMintTokenHoldersResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< ::std::option::Option< - super::PostGetCompressedTokenAccountsByDelegateResponseResult, + super::PostGetCompressedMintTokenHoldersResponseResult, >, ::std::string::String, >, } - impl ::std::default::Default - for PostGetCompressedTokenAccountsByDelegateResponse { + impl ::std::default::Default for PostGetCompressedMintTokenHoldersResponse { fn default() -> Self { Self { error: Ok(Default::default()), @@ -40890,12 +36039,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenAccountsByDelegateResponse { + impl PostGetCompressedMintTokenHoldersResponse { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressedTokenAccountsByDelegateResponseError, + super::PostGetCompressedMintTokenHoldersResponseError, >, >, T::Error: ::std::fmt::Display, @@ -40910,7 +36059,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountsByDelegateResponseId, + super::PostGetCompressedMintTokenHoldersResponseId, >, T::Error: ::std::fmt::Display, { @@ -40922,7 +36071,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountsByDelegateResponseJsonrpc, + super::PostGetCompressedMintTokenHoldersResponseJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -40937,7 +36086,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressedTokenAccountsByDelegateResponseResult, + super::PostGetCompressedMintTokenHoldersResponseResult, >, >, T::Error: ::std::fmt::Display, @@ -40950,11 +36099,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedTokenAccountsByDelegateResponse { + impl ::std::convert::TryFrom + for super::PostGetCompressedMintTokenHoldersResponse { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenAccountsByDelegateResponse, + value: PostGetCompressedMintTokenHoldersResponse, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -40964,12 +36113,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From< - super::PostGetCompressedTokenAccountsByDelegateResponse, - > for PostGetCompressedTokenAccountsByDelegateResponse { - fn from( - value: super::PostGetCompressedTokenAccountsByDelegateResponse, - ) -> Self { + impl ::std::convert::From + for PostGetCompressedMintTokenHoldersResponse { + fn from(value: super::PostGetCompressedMintTokenHoldersResponse) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -40979,7 +36125,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByDelegateResponseError { + pub struct PostGetCompressedMintTokenHoldersResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -40989,8 +36135,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::string::String, >, } - impl ::std::default::Default - for PostGetCompressedTokenAccountsByDelegateResponseError { + impl ::std::default::Default for PostGetCompressedMintTokenHoldersResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -40998,7 +36143,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenAccountsByDelegateResponseError { + impl PostGetCompressedMintTokenHoldersResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -41024,12 +36169,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom< - PostGetCompressedTokenAccountsByDelegateResponseError, - > for super::PostGetCompressedTokenAccountsByDelegateResponseError { + impl ::std::convert::TryFrom + for super::PostGetCompressedMintTokenHoldersResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenAccountsByDelegateResponseError, + value: PostGetCompressedMintTokenHoldersResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -41037,11 +36181,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From< - super::PostGetCompressedTokenAccountsByDelegateResponseError, - > for PostGetCompressedTokenAccountsByDelegateResponseError { + impl ::std::convert::From + for PostGetCompressedMintTokenHoldersResponseError { fn from( - value: super::PostGetCompressedTokenAccountsByDelegateResponseError, + value: super::PostGetCompressedMintTokenHoldersResponseError, ) -> Self { Self { code: Ok(value.code), @@ -41050,12 +36193,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByDelegateResponseResult { + pub struct PostGetCompressedMintTokenHoldersResponseResult { context: ::std::result::Result, - value: ::std::result::Result, + value: ::std::result::Result, } impl ::std::default::Default - for PostGetCompressedTokenAccountsByDelegateResponseResult { + for PostGetCompressedMintTokenHoldersResponseResult { fn default() -> Self { Self { context: Err("no value supplied for context".to_string()), @@ -41063,7 +36206,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenAccountsByDelegateResponseResult { + impl PostGetCompressedMintTokenHoldersResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -41078,7 +36221,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn value(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.value = value @@ -41089,12 +36232,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom< - PostGetCompressedTokenAccountsByDelegateResponseResult, - > for super::PostGetCompressedTokenAccountsByDelegateResponseResult { + impl ::std::convert::TryFrom + for super::PostGetCompressedMintTokenHoldersResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenAccountsByDelegateResponseResult, + value: PostGetCompressedMintTokenHoldersResponseResult, ) -> ::std::result::Result { Ok(Self { context: value.context?, @@ -41102,11 +36244,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From< - super::PostGetCompressedTokenAccountsByDelegateResponseResult, - > for PostGetCompressedTokenAccountsByDelegateResponseResult { + impl ::std::convert::From + for PostGetCompressedMintTokenHoldersResponseResult { fn from( - value: super::PostGetCompressedTokenAccountsByDelegateResponseResult, + value: super::PostGetCompressedMintTokenHoldersResponseResult, ) -> Self { Self { context: Ok(value.context), @@ -41115,25 +36256,25 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByDelegateV2Body { + pub struct PostGetCompressedTokenAccountBalanceBody { id: ::std::result::Result< - super::PostGetCompressedTokenAccountsByDelegateV2BodyId, + super::PostGetCompressedTokenAccountBalanceBodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedTokenAccountsByDelegateV2BodyJsonrpc, + super::PostGetCompressedTokenAccountBalanceBodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetCompressedTokenAccountsByDelegateV2BodyMethod, + super::PostGetCompressedTokenAccountBalanceBodyMethod, ::std::string::String, >, params: ::std::result::Result< - super::PostGetCompressedTokenAccountsByDelegateV2BodyParams, + super::PostGetCompressedTokenAccountBalanceBodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedTokenAccountsByDelegateV2Body { + impl ::std::default::Default for PostGetCompressedTokenAccountBalanceBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -41143,11 +36284,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenAccountsByDelegateV2Body { + impl PostGetCompressedTokenAccountBalanceBody { pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountsByDelegateV2BodyId, + super::PostGetCompressedTokenAccountBalanceBodyId, >, T::Error: ::std::fmt::Display, { @@ -41159,7 +36300,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountsByDelegateV2BodyJsonrpc, + super::PostGetCompressedTokenAccountBalanceBodyJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -41173,7 +36314,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn method(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountsByDelegateV2BodyMethod, + super::PostGetCompressedTokenAccountBalanceBodyMethod, >, T::Error: ::std::fmt::Display, { @@ -41187,7 +36328,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn params(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountsByDelegateV2BodyParams, + super::PostGetCompressedTokenAccountBalanceBodyParams, >, T::Error: ::std::fmt::Display, { @@ -41199,11 +36340,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedTokenAccountsByDelegateV2Body { + impl ::std::convert::TryFrom + for super::PostGetCompressedTokenAccountBalanceBody { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenAccountsByDelegateV2Body, + value: PostGetCompressedTokenAccountBalanceBody, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -41213,11 +36354,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedTokenAccountsByDelegateV2Body { - fn from( - value: super::PostGetCompressedTokenAccountsByDelegateV2Body, - ) -> Self { + impl ::std::convert::From + for PostGetCompressedTokenAccountBalanceBody { + fn from(value: super::PostGetCompressedTokenAccountBalanceBody) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -41227,141 +36366,99 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByDelegateV2BodyParams { - cursor: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - delegate: ::std::result::Result< - super::SerializablePubkey, - ::std::string::String, - >, - limit: ::std::result::Result< - ::std::option::Option, + pub struct PostGetCompressedTokenAccountBalanceBodyParams { + address: ::std::result::Result< + ::std::option::Option, ::std::string::String, >, - mint: ::std::result::Result< - ::std::option::Option, + hash: ::std::result::Result< + ::std::option::Option, ::std::string::String, >, } - impl ::std::default::Default - for PostGetCompressedTokenAccountsByDelegateV2BodyParams { + impl ::std::default::Default for PostGetCompressedTokenAccountBalanceBodyParams { fn default() -> Self { Self { - cursor: Ok(Default::default()), - delegate: Err("no value supplied for delegate".to_string()), - limit: Ok(Default::default()), - mint: Ok(Default::default()), + address: Ok(Default::default()), + hash: Ok(Default::default()), } } } - impl PostGetCompressedTokenAccountsByDelegateV2BodyParams { - pub fn cursor(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::option::Option>, - T::Error: ::std::fmt::Display, - { - self.cursor = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for cursor: {e}") - }); - self - } - pub fn delegate(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.delegate = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for delegate: {e}") - }); - self - } - pub fn limit(mut self, value: T) -> Self + impl PostGetCompressedTokenAccountBalanceBodyParams { + pub fn address(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto< + ::std::option::Option, + >, T::Error: ::std::fmt::Display, { - self.limit = value + self.address = value .try_into() .map_err(|e| { - format!("error converting supplied value for limit: {e}") + format!("error converting supplied value for address: {e}") }); self } - pub fn mint(mut self, value: T) -> Self + pub fn hash(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - ::std::option::Option, - >, + T: ::std::convert::TryInto<::std::option::Option>, T::Error: ::std::fmt::Display, { - self.mint = value + self.hash = value .try_into() .map_err(|e| { - format!("error converting supplied value for mint: {e}") + format!("error converting supplied value for hash: {e}") }); self } } - impl ::std::convert::TryFrom< - PostGetCompressedTokenAccountsByDelegateV2BodyParams, - > for super::PostGetCompressedTokenAccountsByDelegateV2BodyParams { + impl ::std::convert::TryFrom + for super::PostGetCompressedTokenAccountBalanceBodyParams { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenAccountsByDelegateV2BodyParams, + value: PostGetCompressedTokenAccountBalanceBodyParams, ) -> ::std::result::Result { Ok(Self { - cursor: value.cursor?, - delegate: value.delegate?, - limit: value.limit?, - mint: value.mint?, + address: value.address?, + hash: value.hash?, }) } } - impl ::std::convert::From< - super::PostGetCompressedTokenAccountsByDelegateV2BodyParams, - > for PostGetCompressedTokenAccountsByDelegateV2BodyParams { + impl ::std::convert::From + for PostGetCompressedTokenAccountBalanceBodyParams { fn from( - value: super::PostGetCompressedTokenAccountsByDelegateV2BodyParams, + value: super::PostGetCompressedTokenAccountBalanceBodyParams, ) -> Self { Self { - cursor: Ok(value.cursor), - delegate: Ok(value.delegate), - limit: Ok(value.limit), - mint: Ok(value.mint), + address: Ok(value.address), + hash: Ok(value.hash), } } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByDelegateV2Response { + pub struct PostGetCompressedTokenAccountBalanceResponse { error: ::std::result::Result< ::std::option::Option< - super::PostGetCompressedTokenAccountsByDelegateV2ResponseError, + super::PostGetCompressedTokenAccountBalanceResponseError, >, ::std::string::String, >, id: ::std::result::Result< - super::PostGetCompressedTokenAccountsByDelegateV2ResponseId, + super::PostGetCompressedTokenAccountBalanceResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedTokenAccountsByDelegateV2ResponseJsonrpc, + super::PostGetCompressedTokenAccountBalanceResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< ::std::option::Option< - super::PostGetCompressedTokenAccountsByDelegateV2ResponseResult, + super::PostGetCompressedTokenAccountBalanceResponseResult, >, ::std::string::String, >, } - impl ::std::default::Default - for PostGetCompressedTokenAccountsByDelegateV2Response { + impl ::std::default::Default for PostGetCompressedTokenAccountBalanceResponse { fn default() -> Self { Self { error: Ok(Default::default()), @@ -41371,12 +36468,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenAccountsByDelegateV2Response { + impl PostGetCompressedTokenAccountBalanceResponse { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressedTokenAccountsByDelegateV2ResponseError, + super::PostGetCompressedTokenAccountBalanceResponseError, >, >, T::Error: ::std::fmt::Display, @@ -41391,7 +36488,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountsByDelegateV2ResponseId, + super::PostGetCompressedTokenAccountBalanceResponseId, >, T::Error: ::std::fmt::Display, { @@ -41403,7 +36500,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountsByDelegateV2ResponseJsonrpc, + super::PostGetCompressedTokenAccountBalanceResponseJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -41418,7 +36515,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressedTokenAccountsByDelegateV2ResponseResult, + super::PostGetCompressedTokenAccountBalanceResponseResult, >, >, T::Error: ::std::fmt::Display, @@ -41431,11 +36528,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedTokenAccountsByDelegateV2Response { + impl ::std::convert::TryFrom + for super::PostGetCompressedTokenAccountBalanceResponse { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenAccountsByDelegateV2Response, + value: PostGetCompressedTokenAccountBalanceResponse, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -41445,12 +36542,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From< - super::PostGetCompressedTokenAccountsByDelegateV2Response, - > for PostGetCompressedTokenAccountsByDelegateV2Response { - fn from( - value: super::PostGetCompressedTokenAccountsByDelegateV2Response, - ) -> Self { + impl ::std::convert::From + for PostGetCompressedTokenAccountBalanceResponse { + fn from(value: super::PostGetCompressedTokenAccountBalanceResponse) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -41460,7 +36554,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByDelegateV2ResponseError { + pub struct PostGetCompressedTokenAccountBalanceResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -41471,7 +36565,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ >, } impl ::std::default::Default - for PostGetCompressedTokenAccountsByDelegateV2ResponseError { + for PostGetCompressedTokenAccountBalanceResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -41479,7 +36573,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenAccountsByDelegateV2ResponseError { + impl PostGetCompressedTokenAccountBalanceResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -41505,12 +36599,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom< - PostGetCompressedTokenAccountsByDelegateV2ResponseError, - > for super::PostGetCompressedTokenAccountsByDelegateV2ResponseError { + impl ::std::convert::TryFrom + for super::PostGetCompressedTokenAccountBalanceResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenAccountsByDelegateV2ResponseError, + value: PostGetCompressedTokenAccountBalanceResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -41519,10 +36612,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::From< - super::PostGetCompressedTokenAccountsByDelegateV2ResponseError, - > for PostGetCompressedTokenAccountsByDelegateV2ResponseError { + super::PostGetCompressedTokenAccountBalanceResponseError, + > for PostGetCompressedTokenAccountBalanceResponseError { fn from( - value: super::PostGetCompressedTokenAccountsByDelegateV2ResponseError, + value: super::PostGetCompressedTokenAccountBalanceResponseError, ) -> Self { Self { code: Ok(value.code), @@ -41531,15 +36624,15 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByDelegateV2ResponseResult { + pub struct PostGetCompressedTokenAccountBalanceResponseResult { context: ::std::result::Result, value: ::std::result::Result< - super::TokenAccountListV2, + super::TokenAccountBalance, ::std::string::String, >, } impl ::std::default::Default - for PostGetCompressedTokenAccountsByDelegateV2ResponseResult { + for PostGetCompressedTokenAccountBalanceResponseResult { fn default() -> Self { Self { context: Err("no value supplied for context".to_string()), @@ -41547,7 +36640,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenAccountsByDelegateV2ResponseResult { + impl PostGetCompressedTokenAccountBalanceResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -41562,7 +36655,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn value(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.value = value @@ -41573,12 +36666,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom< - PostGetCompressedTokenAccountsByDelegateV2ResponseResult, - > for super::PostGetCompressedTokenAccountsByDelegateV2ResponseResult { + impl ::std::convert::TryFrom + for super::PostGetCompressedTokenAccountBalanceResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenAccountsByDelegateV2ResponseResult, + value: PostGetCompressedTokenAccountBalanceResponseResult, ) -> ::std::result::Result { Ok(Self { context: value.context?, @@ -41587,10 +36679,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::From< - super::PostGetCompressedTokenAccountsByDelegateV2ResponseResult, - > for PostGetCompressedTokenAccountsByDelegateV2ResponseResult { + super::PostGetCompressedTokenAccountBalanceResponseResult, + > for PostGetCompressedTokenAccountBalanceResponseResult { fn from( - value: super::PostGetCompressedTokenAccountsByDelegateV2ResponseResult, + value: super::PostGetCompressedTokenAccountBalanceResponseResult, ) -> Self { Self { context: Ok(value.context), @@ -41599,25 +36691,25 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByOwnerBody { + pub struct PostGetCompressedTokenAccountsByDelegateBody { id: ::std::result::Result< - super::PostGetCompressedTokenAccountsByOwnerBodyId, + super::PostGetCompressedTokenAccountsByDelegateBodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedTokenAccountsByOwnerBodyJsonrpc, + super::PostGetCompressedTokenAccountsByDelegateBodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetCompressedTokenAccountsByOwnerBodyMethod, + super::PostGetCompressedTokenAccountsByDelegateBodyMethod, ::std::string::String, >, params: ::std::result::Result< - super::PostGetCompressedTokenAccountsByOwnerBodyParams, + super::PostGetCompressedTokenAccountsByDelegateBodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedTokenAccountsByOwnerBody { + impl ::std::default::Default for PostGetCompressedTokenAccountsByDelegateBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -41627,11 +36719,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenAccountsByOwnerBody { + impl PostGetCompressedTokenAccountsByDelegateBody { pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountsByOwnerBodyId, + super::PostGetCompressedTokenAccountsByDelegateBodyId, >, T::Error: ::std::fmt::Display, { @@ -41643,7 +36735,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountsByOwnerBodyJsonrpc, + super::PostGetCompressedTokenAccountsByDelegateBodyJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -41657,7 +36749,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn method(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountsByOwnerBodyMethod, + super::PostGetCompressedTokenAccountsByDelegateBodyMethod, >, T::Error: ::std::fmt::Display, { @@ -41671,7 +36763,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn params(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountsByOwnerBodyParams, + super::PostGetCompressedTokenAccountsByDelegateBodyParams, >, T::Error: ::std::fmt::Display, { @@ -41683,11 +36775,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedTokenAccountsByOwnerBody { + impl ::std::convert::TryFrom + for super::PostGetCompressedTokenAccountsByDelegateBody { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenAccountsByOwnerBody, + value: PostGetCompressedTokenAccountsByDelegateBody, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -41697,9 +36789,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedTokenAccountsByOwnerBody { - fn from(value: super::PostGetCompressedTokenAccountsByOwnerBody) -> Self { + impl ::std::convert::From + for PostGetCompressedTokenAccountsByDelegateBody { + fn from(value: super::PostGetCompressedTokenAccountsByDelegateBody) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -41709,11 +36801,15 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByOwnerBodyParams { + pub struct PostGetCompressedTokenAccountsByDelegateBodyParams { cursor: ::std::result::Result< ::std::option::Option, ::std::string::String, >, + delegate: ::std::result::Result< + super::SerializablePubkey, + ::std::string::String, + >, limit: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -41722,23 +36818,19 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::option::Option, ::std::string::String, >, - owner: ::std::result::Result< - super::SerializablePubkey, - ::std::string::String, - >, } impl ::std::default::Default - for PostGetCompressedTokenAccountsByOwnerBodyParams { + for PostGetCompressedTokenAccountsByDelegateBodyParams { fn default() -> Self { Self { cursor: Ok(Default::default()), + delegate: Err("no value supplied for delegate".to_string()), limit: Ok(Default::default()), mint: Ok(Default::default()), - owner: Err("no value supplied for owner".to_string()), } } } - impl PostGetCompressedTokenAccountsByOwnerBodyParams { + impl PostGetCompressedTokenAccountsByDelegateBodyParams { pub fn cursor(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -41751,6 +36843,18 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }); self } + pub fn delegate(mut self, value: T) -> Self + where + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, + { + self.delegate = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for delegate: {e}") + }); + self + } pub fn limit(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -41777,70 +36881,60 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }); self } - pub fn owner(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.owner = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for owner: {e}") - }); - self - } } - impl ::std::convert::TryFrom - for super::PostGetCompressedTokenAccountsByOwnerBodyParams { + impl ::std::convert::TryFrom + for super::PostGetCompressedTokenAccountsByDelegateBodyParams { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenAccountsByOwnerBodyParams, + value: PostGetCompressedTokenAccountsByDelegateBodyParams, ) -> ::std::result::Result { Ok(Self { cursor: value.cursor?, + delegate: value.delegate?, limit: value.limit?, mint: value.mint?, - owner: value.owner?, }) } } - impl ::std::convert::From - for PostGetCompressedTokenAccountsByOwnerBodyParams { + impl ::std::convert::From< + super::PostGetCompressedTokenAccountsByDelegateBodyParams, + > for PostGetCompressedTokenAccountsByDelegateBodyParams { fn from( - value: super::PostGetCompressedTokenAccountsByOwnerBodyParams, + value: super::PostGetCompressedTokenAccountsByDelegateBodyParams, ) -> Self { Self { cursor: Ok(value.cursor), + delegate: Ok(value.delegate), limit: Ok(value.limit), mint: Ok(value.mint), - owner: Ok(value.owner), } } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByOwnerResponse { + pub struct PostGetCompressedTokenAccountsByDelegateResponse { error: ::std::result::Result< ::std::option::Option< - super::PostGetCompressedTokenAccountsByOwnerResponseError, + super::PostGetCompressedTokenAccountsByDelegateResponseError, >, ::std::string::String, >, id: ::std::result::Result< - super::PostGetCompressedTokenAccountsByOwnerResponseId, + super::PostGetCompressedTokenAccountsByDelegateResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedTokenAccountsByOwnerResponseJsonrpc, + super::PostGetCompressedTokenAccountsByDelegateResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< ::std::option::Option< - super::PostGetCompressedTokenAccountsByOwnerResponseResult, + super::PostGetCompressedTokenAccountsByDelegateResponseResult, >, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedTokenAccountsByOwnerResponse { + impl ::std::default::Default + for PostGetCompressedTokenAccountsByDelegateResponse { fn default() -> Self { Self { error: Ok(Default::default()), @@ -41850,12 +36944,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenAccountsByOwnerResponse { + impl PostGetCompressedTokenAccountsByDelegateResponse { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressedTokenAccountsByOwnerResponseError, + super::PostGetCompressedTokenAccountsByDelegateResponseError, >, >, T::Error: ::std::fmt::Display, @@ -41870,7 +36964,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountsByOwnerResponseId, + super::PostGetCompressedTokenAccountsByDelegateResponseId, >, T::Error: ::std::fmt::Display, { @@ -41882,7 +36976,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountsByOwnerResponseJsonrpc, + super::PostGetCompressedTokenAccountsByDelegateResponseJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -41897,7 +36991,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressedTokenAccountsByOwnerResponseResult, + super::PostGetCompressedTokenAccountsByDelegateResponseResult, >, >, T::Error: ::std::fmt::Display, @@ -41910,11 +37004,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedTokenAccountsByOwnerResponse { + impl ::std::convert::TryFrom + for super::PostGetCompressedTokenAccountsByDelegateResponse { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenAccountsByOwnerResponse, + value: PostGetCompressedTokenAccountsByDelegateResponse, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -41924,10 +37018,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedTokenAccountsByOwnerResponse { + impl ::std::convert::From< + super::PostGetCompressedTokenAccountsByDelegateResponse, + > for PostGetCompressedTokenAccountsByDelegateResponse { fn from( - value: super::PostGetCompressedTokenAccountsByOwnerResponse, + value: super::PostGetCompressedTokenAccountsByDelegateResponse, ) -> Self { Self { error: Ok(value.error), @@ -41938,7 +37033,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByOwnerResponseError { + pub struct PostGetCompressedTokenAccountsByDelegateResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -41949,7 +37044,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ >, } impl ::std::default::Default - for PostGetCompressedTokenAccountsByOwnerResponseError { + for PostGetCompressedTokenAccountsByDelegateResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -41957,7 +37052,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenAccountsByOwnerResponseError { + impl PostGetCompressedTokenAccountsByDelegateResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -41983,11 +37078,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedTokenAccountsByOwnerResponseError { + impl ::std::convert::TryFrom< + PostGetCompressedTokenAccountsByDelegateResponseError, + > for super::PostGetCompressedTokenAccountsByDelegateResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenAccountsByOwnerResponseError, + value: PostGetCompressedTokenAccountsByDelegateResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -41996,10 +37092,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::From< - super::PostGetCompressedTokenAccountsByOwnerResponseError, - > for PostGetCompressedTokenAccountsByOwnerResponseError { + super::PostGetCompressedTokenAccountsByDelegateResponseError, + > for PostGetCompressedTokenAccountsByDelegateResponseError { fn from( - value: super::PostGetCompressedTokenAccountsByOwnerResponseError, + value: super::PostGetCompressedTokenAccountsByDelegateResponseError, ) -> Self { Self { code: Ok(value.code), @@ -42008,12 +37104,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByOwnerResponseResult { + pub struct PostGetCompressedTokenAccountsByDelegateResponseResult { context: ::std::result::Result, value: ::std::result::Result, } impl ::std::default::Default - for PostGetCompressedTokenAccountsByOwnerResponseResult { + for PostGetCompressedTokenAccountsByDelegateResponseResult { fn default() -> Self { Self { context: Err("no value supplied for context".to_string()), @@ -42021,7 +37117,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenAccountsByOwnerResponseResult { + impl PostGetCompressedTokenAccountsByDelegateResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -42047,11 +37143,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedTokenAccountsByOwnerResponseResult { + impl ::std::convert::TryFrom< + PostGetCompressedTokenAccountsByDelegateResponseResult, + > for super::PostGetCompressedTokenAccountsByDelegateResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenAccountsByOwnerResponseResult, + value: PostGetCompressedTokenAccountsByDelegateResponseResult, ) -> ::std::result::Result { Ok(Self { context: value.context?, @@ -42060,10 +37157,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::From< - super::PostGetCompressedTokenAccountsByOwnerResponseResult, - > for PostGetCompressedTokenAccountsByOwnerResponseResult { + super::PostGetCompressedTokenAccountsByDelegateResponseResult, + > for PostGetCompressedTokenAccountsByDelegateResponseResult { fn from( - value: super::PostGetCompressedTokenAccountsByOwnerResponseResult, + value: super::PostGetCompressedTokenAccountsByDelegateResponseResult, ) -> Self { Self { context: Ok(value.context), @@ -42072,25 +37169,25 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByOwnerV2Body { + pub struct PostGetCompressedTokenAccountsByDelegateV2Body { id: ::std::result::Result< - super::PostGetCompressedTokenAccountsByOwnerV2BodyId, + super::PostGetCompressedTokenAccountsByDelegateV2BodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedTokenAccountsByOwnerV2BodyJsonrpc, + super::PostGetCompressedTokenAccountsByDelegateV2BodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetCompressedTokenAccountsByOwnerV2BodyMethod, + super::PostGetCompressedTokenAccountsByDelegateV2BodyMethod, ::std::string::String, >, params: ::std::result::Result< - super::PostGetCompressedTokenAccountsByOwnerV2BodyParams, + super::PostGetCompressedTokenAccountsByDelegateV2BodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedTokenAccountsByOwnerV2Body { + impl ::std::default::Default for PostGetCompressedTokenAccountsByDelegateV2Body { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -42100,11 +37197,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenAccountsByOwnerV2Body { + impl PostGetCompressedTokenAccountsByDelegateV2Body { pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountsByOwnerV2BodyId, + super::PostGetCompressedTokenAccountsByDelegateV2BodyId, >, T::Error: ::std::fmt::Display, { @@ -42116,7 +37213,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountsByOwnerV2BodyJsonrpc, + super::PostGetCompressedTokenAccountsByDelegateV2BodyJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -42130,7 +37227,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn method(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountsByOwnerV2BodyMethod, + super::PostGetCompressedTokenAccountsByDelegateV2BodyMethod, >, T::Error: ::std::fmt::Display, { @@ -42144,7 +37241,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn params(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountsByOwnerV2BodyParams, + super::PostGetCompressedTokenAccountsByDelegateV2BodyParams, >, T::Error: ::std::fmt::Display, { @@ -42156,11 +37253,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedTokenAccountsByOwnerV2Body { + impl ::std::convert::TryFrom + for super::PostGetCompressedTokenAccountsByDelegateV2Body { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenAccountsByOwnerV2Body, + value: PostGetCompressedTokenAccountsByDelegateV2Body, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -42170,9 +37267,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedTokenAccountsByOwnerV2Body { - fn from(value: super::PostGetCompressedTokenAccountsByOwnerV2Body) -> Self { + impl ::std::convert::From + for PostGetCompressedTokenAccountsByDelegateV2Body { + fn from( + value: super::PostGetCompressedTokenAccountsByDelegateV2Body, + ) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -42182,11 +37281,15 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByOwnerV2BodyParams { + pub struct PostGetCompressedTokenAccountsByDelegateV2BodyParams { cursor: ::std::result::Result< ::std::option::Option, ::std::string::String, >, + delegate: ::std::result::Result< + super::SerializablePubkey, + ::std::string::String, + >, limit: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -42195,23 +37298,19 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::option::Option, ::std::string::String, >, - owner: ::std::result::Result< - super::SerializablePubkey, - ::std::string::String, - >, } impl ::std::default::Default - for PostGetCompressedTokenAccountsByOwnerV2BodyParams { + for PostGetCompressedTokenAccountsByDelegateV2BodyParams { fn default() -> Self { Self { cursor: Ok(Default::default()), + delegate: Err("no value supplied for delegate".to_string()), limit: Ok(Default::default()), mint: Ok(Default::default()), - owner: Err("no value supplied for owner".to_string()), } } } - impl PostGetCompressedTokenAccountsByOwnerV2BodyParams { + impl PostGetCompressedTokenAccountsByDelegateV2BodyParams { pub fn cursor(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -42224,6 +37323,18 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }); self } + pub fn delegate(mut self, value: T) -> Self + where + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, + { + self.delegate = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for delegate: {e}") + }); + self + } pub fn limit(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -42250,72 +37361,61 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }); self } - pub fn owner(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.owner = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for owner: {e}") - }); - self - } } - impl ::std::convert::TryFrom - for super::PostGetCompressedTokenAccountsByOwnerV2BodyParams { + impl ::std::convert::TryFrom< + PostGetCompressedTokenAccountsByDelegateV2BodyParams, + > for super::PostGetCompressedTokenAccountsByDelegateV2BodyParams { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenAccountsByOwnerV2BodyParams, + value: PostGetCompressedTokenAccountsByDelegateV2BodyParams, ) -> ::std::result::Result { Ok(Self { cursor: value.cursor?, + delegate: value.delegate?, limit: value.limit?, mint: value.mint?, - owner: value.owner?, }) } } impl ::std::convert::From< - super::PostGetCompressedTokenAccountsByOwnerV2BodyParams, - > for PostGetCompressedTokenAccountsByOwnerV2BodyParams { + super::PostGetCompressedTokenAccountsByDelegateV2BodyParams, + > for PostGetCompressedTokenAccountsByDelegateV2BodyParams { fn from( - value: super::PostGetCompressedTokenAccountsByOwnerV2BodyParams, + value: super::PostGetCompressedTokenAccountsByDelegateV2BodyParams, ) -> Self { Self { cursor: Ok(value.cursor), + delegate: Ok(value.delegate), limit: Ok(value.limit), mint: Ok(value.mint), - owner: Ok(value.owner), } } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByOwnerV2Response { + pub struct PostGetCompressedTokenAccountsByDelegateV2Response { error: ::std::result::Result< ::std::option::Option< - super::PostGetCompressedTokenAccountsByOwnerV2ResponseError, + super::PostGetCompressedTokenAccountsByDelegateV2ResponseError, >, ::std::string::String, >, id: ::std::result::Result< - super::PostGetCompressedTokenAccountsByOwnerV2ResponseId, + super::PostGetCompressedTokenAccountsByDelegateV2ResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedTokenAccountsByOwnerV2ResponseJsonrpc, + super::PostGetCompressedTokenAccountsByDelegateV2ResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< ::std::option::Option< - super::PostGetCompressedTokenAccountsByOwnerV2ResponseResult, + super::PostGetCompressedTokenAccountsByDelegateV2ResponseResult, >, ::std::string::String, >, } impl ::std::default::Default - for PostGetCompressedTokenAccountsByOwnerV2Response { + for PostGetCompressedTokenAccountsByDelegateV2Response { fn default() -> Self { Self { error: Ok(Default::default()), @@ -42325,12 +37425,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenAccountsByOwnerV2Response { + impl PostGetCompressedTokenAccountsByDelegateV2Response { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressedTokenAccountsByOwnerV2ResponseError, + super::PostGetCompressedTokenAccountsByDelegateV2ResponseError, >, >, T::Error: ::std::fmt::Display, @@ -42345,7 +37445,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountsByOwnerV2ResponseId, + super::PostGetCompressedTokenAccountsByDelegateV2ResponseId, >, T::Error: ::std::fmt::Display, { @@ -42357,7 +37457,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenAccountsByOwnerV2ResponseJsonrpc, + super::PostGetCompressedTokenAccountsByDelegateV2ResponseJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -42372,7 +37472,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressedTokenAccountsByOwnerV2ResponseResult, + super::PostGetCompressedTokenAccountsByDelegateV2ResponseResult, >, >, T::Error: ::std::fmt::Display, @@ -42385,11 +37485,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedTokenAccountsByOwnerV2Response { + impl ::std::convert::TryFrom + for super::PostGetCompressedTokenAccountsByDelegateV2Response { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenAccountsByOwnerV2Response, + value: PostGetCompressedTokenAccountsByDelegateV2Response, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -42399,10 +37499,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedTokenAccountsByOwnerV2Response { + impl ::std::convert::From< + super::PostGetCompressedTokenAccountsByDelegateV2Response, + > for PostGetCompressedTokenAccountsByDelegateV2Response { fn from( - value: super::PostGetCompressedTokenAccountsByOwnerV2Response, + value: super::PostGetCompressedTokenAccountsByDelegateV2Response, ) -> Self { Self { error: Ok(value.error), @@ -42413,7 +37514,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByOwnerV2ResponseError { + pub struct PostGetCompressedTokenAccountsByDelegateV2ResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -42424,7 +37525,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ >, } impl ::std::default::Default - for PostGetCompressedTokenAccountsByOwnerV2ResponseError { + for PostGetCompressedTokenAccountsByDelegateV2ResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -42432,7 +37533,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenAccountsByOwnerV2ResponseError { + impl PostGetCompressedTokenAccountsByDelegateV2ResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -42459,11 +37560,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::TryFrom< - PostGetCompressedTokenAccountsByOwnerV2ResponseError, - > for super::PostGetCompressedTokenAccountsByOwnerV2ResponseError { + PostGetCompressedTokenAccountsByDelegateV2ResponseError, + > for super::PostGetCompressedTokenAccountsByDelegateV2ResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenAccountsByOwnerV2ResponseError, + value: PostGetCompressedTokenAccountsByDelegateV2ResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -42472,10 +37573,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::From< - super::PostGetCompressedTokenAccountsByOwnerV2ResponseError, - > for PostGetCompressedTokenAccountsByOwnerV2ResponseError { + super::PostGetCompressedTokenAccountsByDelegateV2ResponseError, + > for PostGetCompressedTokenAccountsByDelegateV2ResponseError { fn from( - value: super::PostGetCompressedTokenAccountsByOwnerV2ResponseError, + value: super::PostGetCompressedTokenAccountsByDelegateV2ResponseError, ) -> Self { Self { code: Ok(value.code), @@ -42484,7 +37585,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenAccountsByOwnerV2ResponseResult { + pub struct PostGetCompressedTokenAccountsByDelegateV2ResponseResult { context: ::std::result::Result, value: ::std::result::Result< super::TokenAccountListV2, @@ -42492,7 +37593,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ >, } impl ::std::default::Default - for PostGetCompressedTokenAccountsByOwnerV2ResponseResult { + for PostGetCompressedTokenAccountsByDelegateV2ResponseResult { fn default() -> Self { Self { context: Err("no value supplied for context".to_string()), @@ -42500,7 +37601,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenAccountsByOwnerV2ResponseResult { + impl PostGetCompressedTokenAccountsByDelegateV2ResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -42527,11 +37628,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::TryFrom< - PostGetCompressedTokenAccountsByOwnerV2ResponseResult, - > for super::PostGetCompressedTokenAccountsByOwnerV2ResponseResult { + PostGetCompressedTokenAccountsByDelegateV2ResponseResult, + > for super::PostGetCompressedTokenAccountsByDelegateV2ResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenAccountsByOwnerV2ResponseResult, + value: PostGetCompressedTokenAccountsByDelegateV2ResponseResult, ) -> ::std::result::Result { Ok(Self { context: value.context?, @@ -42540,10 +37641,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::From< - super::PostGetCompressedTokenAccountsByOwnerV2ResponseResult, - > for PostGetCompressedTokenAccountsByOwnerV2ResponseResult { + super::PostGetCompressedTokenAccountsByDelegateV2ResponseResult, + > for PostGetCompressedTokenAccountsByDelegateV2ResponseResult { fn from( - value: super::PostGetCompressedTokenAccountsByOwnerV2ResponseResult, + value: super::PostGetCompressedTokenAccountsByDelegateV2ResponseResult, ) -> Self { Self { context: Ok(value.context), @@ -42552,25 +37653,25 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenBalancesByOwnerBody { + pub struct PostGetCompressedTokenAccountsByOwnerBody { id: ::std::result::Result< - super::PostGetCompressedTokenBalancesByOwnerBodyId, + super::PostGetCompressedTokenAccountsByOwnerBodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedTokenBalancesByOwnerBodyJsonrpc, + super::PostGetCompressedTokenAccountsByOwnerBodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetCompressedTokenBalancesByOwnerBodyMethod, + super::PostGetCompressedTokenAccountsByOwnerBodyMethod, ::std::string::String, >, params: ::std::result::Result< - super::PostGetCompressedTokenBalancesByOwnerBodyParams, + super::PostGetCompressedTokenAccountsByOwnerBodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedTokenBalancesByOwnerBody { + impl ::std::default::Default for PostGetCompressedTokenAccountsByOwnerBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -42580,11 +37681,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenBalancesByOwnerBody { + impl PostGetCompressedTokenAccountsByOwnerBody { pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenBalancesByOwnerBodyId, + super::PostGetCompressedTokenAccountsByOwnerBodyId, >, T::Error: ::std::fmt::Display, { @@ -42596,7 +37697,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenBalancesByOwnerBodyJsonrpc, + super::PostGetCompressedTokenAccountsByOwnerBodyJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -42610,7 +37711,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn method(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenBalancesByOwnerBodyMethod, + super::PostGetCompressedTokenAccountsByOwnerBodyMethod, >, T::Error: ::std::fmt::Display, { @@ -42624,7 +37725,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn params(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenBalancesByOwnerBodyParams, + super::PostGetCompressedTokenAccountsByOwnerBodyParams, >, T::Error: ::std::fmt::Display, { @@ -42636,11 +37737,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedTokenBalancesByOwnerBody { + impl ::std::convert::TryFrom + for super::PostGetCompressedTokenAccountsByOwnerBody { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenBalancesByOwnerBody, + value: PostGetCompressedTokenAccountsByOwnerBody, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -42650,9 +37751,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedTokenBalancesByOwnerBody { - fn from(value: super::PostGetCompressedTokenBalancesByOwnerBody) -> Self { + impl ::std::convert::From + for PostGetCompressedTokenAccountsByOwnerBody { + fn from(value: super::PostGetCompressedTokenAccountsByOwnerBody) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -42662,7 +37763,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenBalancesByOwnerBodyParams { + pub struct PostGetCompressedTokenAccountsByOwnerBodyParams { cursor: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -42681,7 +37782,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ >, } impl ::std::default::Default - for PostGetCompressedTokenBalancesByOwnerBodyParams { + for PostGetCompressedTokenAccountsByOwnerBodyParams { fn default() -> Self { Self { cursor: Ok(Default::default()), @@ -42691,7 +37792,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenBalancesByOwnerBodyParams { + impl PostGetCompressedTokenAccountsByOwnerBodyParams { pub fn cursor(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -42743,11 +37844,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedTokenBalancesByOwnerBodyParams { + impl ::std::convert::TryFrom + for super::PostGetCompressedTokenAccountsByOwnerBodyParams { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenBalancesByOwnerBodyParams, + value: PostGetCompressedTokenAccountsByOwnerBodyParams, ) -> ::std::result::Result { Ok(Self { cursor: value.cursor?, @@ -42757,10 +37858,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedTokenBalancesByOwnerBodyParams { + impl ::std::convert::From + for PostGetCompressedTokenAccountsByOwnerBodyParams { fn from( - value: super::PostGetCompressedTokenBalancesByOwnerBodyParams, + value: super::PostGetCompressedTokenAccountsByOwnerBodyParams, ) -> Self { Self { cursor: Ok(value.cursor), @@ -42771,29 +37872,29 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenBalancesByOwnerResponse { + pub struct PostGetCompressedTokenAccountsByOwnerResponse { error: ::std::result::Result< ::std::option::Option< - super::PostGetCompressedTokenBalancesByOwnerResponseError, + super::PostGetCompressedTokenAccountsByOwnerResponseError, >, ::std::string::String, >, id: ::std::result::Result< - super::PostGetCompressedTokenBalancesByOwnerResponseId, + super::PostGetCompressedTokenAccountsByOwnerResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedTokenBalancesByOwnerResponseJsonrpc, + super::PostGetCompressedTokenAccountsByOwnerResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< ::std::option::Option< - super::PostGetCompressedTokenBalancesByOwnerResponseResult, + super::PostGetCompressedTokenAccountsByOwnerResponseResult, >, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedTokenBalancesByOwnerResponse { + impl ::std::default::Default for PostGetCompressedTokenAccountsByOwnerResponse { fn default() -> Self { Self { error: Ok(Default::default()), @@ -42803,12 +37904,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenBalancesByOwnerResponse { + impl PostGetCompressedTokenAccountsByOwnerResponse { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressedTokenBalancesByOwnerResponseError, + super::PostGetCompressedTokenAccountsByOwnerResponseError, >, >, T::Error: ::std::fmt::Display, @@ -42823,7 +37924,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenBalancesByOwnerResponseId, + super::PostGetCompressedTokenAccountsByOwnerResponseId, >, T::Error: ::std::fmt::Display, { @@ -42835,7 +37936,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenBalancesByOwnerResponseJsonrpc, + super::PostGetCompressedTokenAccountsByOwnerResponseJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -42850,7 +37951,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressedTokenBalancesByOwnerResponseResult, + super::PostGetCompressedTokenAccountsByOwnerResponseResult, >, >, T::Error: ::std::fmt::Display, @@ -42863,11 +37964,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedTokenBalancesByOwnerResponse { + impl ::std::convert::TryFrom + for super::PostGetCompressedTokenAccountsByOwnerResponse { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenBalancesByOwnerResponse, + value: PostGetCompressedTokenAccountsByOwnerResponse, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -42877,10 +37978,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedTokenBalancesByOwnerResponse { + impl ::std::convert::From + for PostGetCompressedTokenAccountsByOwnerResponse { fn from( - value: super::PostGetCompressedTokenBalancesByOwnerResponse, + value: super::PostGetCompressedTokenAccountsByOwnerResponse, ) -> Self { Self { error: Ok(value.error), @@ -42891,7 +37992,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenBalancesByOwnerResponseError { + pub struct PostGetCompressedTokenAccountsByOwnerResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -42902,7 +38003,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ >, } impl ::std::default::Default - for PostGetCompressedTokenBalancesByOwnerResponseError { + for PostGetCompressedTokenAccountsByOwnerResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -42910,7 +38011,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenBalancesByOwnerResponseError { + impl PostGetCompressedTokenAccountsByOwnerResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -42936,11 +38037,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedTokenBalancesByOwnerResponseError { + impl ::std::convert::TryFrom + for super::PostGetCompressedTokenAccountsByOwnerResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenBalancesByOwnerResponseError, + value: PostGetCompressedTokenAccountsByOwnerResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -42949,10 +38050,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::From< - super::PostGetCompressedTokenBalancesByOwnerResponseError, - > for PostGetCompressedTokenBalancesByOwnerResponseError { + super::PostGetCompressedTokenAccountsByOwnerResponseError, + > for PostGetCompressedTokenAccountsByOwnerResponseError { fn from( - value: super::PostGetCompressedTokenBalancesByOwnerResponseError, + value: super::PostGetCompressedTokenAccountsByOwnerResponseError, ) -> Self { Self { code: Ok(value.code), @@ -42961,12 +38062,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenBalancesByOwnerResponseResult { + pub struct PostGetCompressedTokenAccountsByOwnerResponseResult { context: ::std::result::Result, - value: ::std::result::Result, + value: ::std::result::Result, } impl ::std::default::Default - for PostGetCompressedTokenBalancesByOwnerResponseResult { + for PostGetCompressedTokenAccountsByOwnerResponseResult { fn default() -> Self { Self { context: Err("no value supplied for context".to_string()), @@ -42974,7 +38075,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenBalancesByOwnerResponseResult { + impl PostGetCompressedTokenAccountsByOwnerResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -42989,7 +38090,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn value(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.value = value @@ -43000,11 +38101,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedTokenBalancesByOwnerResponseResult { + impl ::std::convert::TryFrom + for super::PostGetCompressedTokenAccountsByOwnerResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenBalancesByOwnerResponseResult, + value: PostGetCompressedTokenAccountsByOwnerResponseResult, ) -> ::std::result::Result { Ok(Self { context: value.context?, @@ -43013,10 +38114,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::From< - super::PostGetCompressedTokenBalancesByOwnerResponseResult, - > for PostGetCompressedTokenBalancesByOwnerResponseResult { + super::PostGetCompressedTokenAccountsByOwnerResponseResult, + > for PostGetCompressedTokenAccountsByOwnerResponseResult { fn from( - value: super::PostGetCompressedTokenBalancesByOwnerResponseResult, + value: super::PostGetCompressedTokenAccountsByOwnerResponseResult, ) -> Self { Self { context: Ok(value.context), @@ -43025,25 +38126,25 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenBalancesByOwnerV2Body { + pub struct PostGetCompressedTokenAccountsByOwnerV2Body { id: ::std::result::Result< - super::PostGetCompressedTokenBalancesByOwnerV2BodyId, + super::PostGetCompressedTokenAccountsByOwnerV2BodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedTokenBalancesByOwnerV2BodyJsonrpc, + super::PostGetCompressedTokenAccountsByOwnerV2BodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetCompressedTokenBalancesByOwnerV2BodyMethod, + super::PostGetCompressedTokenAccountsByOwnerV2BodyMethod, ::std::string::String, >, params: ::std::result::Result< - super::PostGetCompressedTokenBalancesByOwnerV2BodyParams, + super::PostGetCompressedTokenAccountsByOwnerV2BodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressedTokenBalancesByOwnerV2Body { + impl ::std::default::Default for PostGetCompressedTokenAccountsByOwnerV2Body { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -43053,11 +38154,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenBalancesByOwnerV2Body { + impl PostGetCompressedTokenAccountsByOwnerV2Body { pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenBalancesByOwnerV2BodyId, + super::PostGetCompressedTokenAccountsByOwnerV2BodyId, >, T::Error: ::std::fmt::Display, { @@ -43069,7 +38170,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenBalancesByOwnerV2BodyJsonrpc, + super::PostGetCompressedTokenAccountsByOwnerV2BodyJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -43083,7 +38184,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn method(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenBalancesByOwnerV2BodyMethod, + super::PostGetCompressedTokenAccountsByOwnerV2BodyMethod, >, T::Error: ::std::fmt::Display, { @@ -43097,7 +38198,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn params(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenBalancesByOwnerV2BodyParams, + super::PostGetCompressedTokenAccountsByOwnerV2BodyParams, >, T::Error: ::std::fmt::Display, { @@ -43109,11 +38210,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedTokenBalancesByOwnerV2Body { + impl ::std::convert::TryFrom + for super::PostGetCompressedTokenAccountsByOwnerV2Body { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenBalancesByOwnerV2Body, + value: PostGetCompressedTokenAccountsByOwnerV2Body, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -43123,9 +38224,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedTokenBalancesByOwnerV2Body { - fn from(value: super::PostGetCompressedTokenBalancesByOwnerV2Body) -> Self { + impl ::std::convert::From + for PostGetCompressedTokenAccountsByOwnerV2Body { + fn from(value: super::PostGetCompressedTokenAccountsByOwnerV2Body) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -43135,7 +38236,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenBalancesByOwnerV2BodyParams { + pub struct PostGetCompressedTokenAccountsByOwnerV2BodyParams { cursor: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -43154,7 +38255,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ >, } impl ::std::default::Default - for PostGetCompressedTokenBalancesByOwnerV2BodyParams { + for PostGetCompressedTokenAccountsByOwnerV2BodyParams { fn default() -> Self { Self { cursor: Ok(Default::default()), @@ -43164,7 +38265,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenBalancesByOwnerV2BodyParams { + impl PostGetCompressedTokenAccountsByOwnerV2BodyParams { pub fn cursor(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -43216,11 +38317,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedTokenBalancesByOwnerV2BodyParams { + impl ::std::convert::TryFrom + for super::PostGetCompressedTokenAccountsByOwnerV2BodyParams { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenBalancesByOwnerV2BodyParams, + value: PostGetCompressedTokenAccountsByOwnerV2BodyParams, ) -> ::std::result::Result { Ok(Self { cursor: value.cursor?, @@ -43231,10 +38332,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::From< - super::PostGetCompressedTokenBalancesByOwnerV2BodyParams, - > for PostGetCompressedTokenBalancesByOwnerV2BodyParams { + super::PostGetCompressedTokenAccountsByOwnerV2BodyParams, + > for PostGetCompressedTokenAccountsByOwnerV2BodyParams { fn from( - value: super::PostGetCompressedTokenBalancesByOwnerV2BodyParams, + value: super::PostGetCompressedTokenAccountsByOwnerV2BodyParams, ) -> Self { Self { cursor: Ok(value.cursor), @@ -43245,30 +38346,30 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenBalancesByOwnerV2Response { + pub struct PostGetCompressedTokenAccountsByOwnerV2Response { error: ::std::result::Result< ::std::option::Option< - super::PostGetCompressedTokenBalancesByOwnerV2ResponseError, + super::PostGetCompressedTokenAccountsByOwnerV2ResponseError, >, ::std::string::String, >, id: ::std::result::Result< - super::PostGetCompressedTokenBalancesByOwnerV2ResponseId, + super::PostGetCompressedTokenAccountsByOwnerV2ResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressedTokenBalancesByOwnerV2ResponseJsonrpc, + super::PostGetCompressedTokenAccountsByOwnerV2ResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< ::std::option::Option< - super::PostGetCompressedTokenBalancesByOwnerV2ResponseResult, + super::PostGetCompressedTokenAccountsByOwnerV2ResponseResult, >, ::std::string::String, >, } impl ::std::default::Default - for PostGetCompressedTokenBalancesByOwnerV2Response { + for PostGetCompressedTokenAccountsByOwnerV2Response { fn default() -> Self { Self { error: Ok(Default::default()), @@ -43278,12 +38379,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenBalancesByOwnerV2Response { + impl PostGetCompressedTokenAccountsByOwnerV2Response { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressedTokenBalancesByOwnerV2ResponseError, + super::PostGetCompressedTokenAccountsByOwnerV2ResponseError, >, >, T::Error: ::std::fmt::Display, @@ -43298,7 +38399,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenBalancesByOwnerV2ResponseId, + super::PostGetCompressedTokenAccountsByOwnerV2ResponseId, >, T::Error: ::std::fmt::Display, { @@ -43310,7 +38411,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressedTokenBalancesByOwnerV2ResponseJsonrpc, + super::PostGetCompressedTokenAccountsByOwnerV2ResponseJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -43325,7 +38426,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressedTokenBalancesByOwnerV2ResponseResult, + super::PostGetCompressedTokenAccountsByOwnerV2ResponseResult, >, >, T::Error: ::std::fmt::Display, @@ -43338,11 +38439,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressedTokenBalancesByOwnerV2Response { + impl ::std::convert::TryFrom + for super::PostGetCompressedTokenAccountsByOwnerV2Response { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenBalancesByOwnerV2Response, + value: PostGetCompressedTokenAccountsByOwnerV2Response, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -43352,10 +38453,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressedTokenBalancesByOwnerV2Response { + impl ::std::convert::From + for PostGetCompressedTokenAccountsByOwnerV2Response { fn from( - value: super::PostGetCompressedTokenBalancesByOwnerV2Response, + value: super::PostGetCompressedTokenAccountsByOwnerV2Response, ) -> Self { Self { error: Ok(value.error), @@ -43366,7 +38467,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenBalancesByOwnerV2ResponseError { + pub struct PostGetCompressedTokenAccountsByOwnerV2ResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -43377,7 +38478,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ >, } impl ::std::default::Default - for PostGetCompressedTokenBalancesByOwnerV2ResponseError { + for PostGetCompressedTokenAccountsByOwnerV2ResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -43385,7 +38486,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenBalancesByOwnerV2ResponseError { + impl PostGetCompressedTokenAccountsByOwnerV2ResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -43412,11 +38513,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::TryFrom< - PostGetCompressedTokenBalancesByOwnerV2ResponseError, - > for super::PostGetCompressedTokenBalancesByOwnerV2ResponseError { + PostGetCompressedTokenAccountsByOwnerV2ResponseError, + > for super::PostGetCompressedTokenAccountsByOwnerV2ResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenBalancesByOwnerV2ResponseError, + value: PostGetCompressedTokenAccountsByOwnerV2ResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -43425,10 +38526,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::From< - super::PostGetCompressedTokenBalancesByOwnerV2ResponseError, - > for PostGetCompressedTokenBalancesByOwnerV2ResponseError { + super::PostGetCompressedTokenAccountsByOwnerV2ResponseError, + > for PostGetCompressedTokenAccountsByOwnerV2ResponseError { fn from( - value: super::PostGetCompressedTokenBalancesByOwnerV2ResponseError, + value: super::PostGetCompressedTokenAccountsByOwnerV2ResponseError, ) -> Self { Self { code: Ok(value.code), @@ -43437,15 +38538,15 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressedTokenBalancesByOwnerV2ResponseResult { + pub struct PostGetCompressedTokenAccountsByOwnerV2ResponseResult { context: ::std::result::Result, value: ::std::result::Result< - super::TokenBalanceListV2, + super::TokenAccountListV2, ::std::string::String, >, } impl ::std::default::Default - for PostGetCompressedTokenBalancesByOwnerV2ResponseResult { + for PostGetCompressedTokenAccountsByOwnerV2ResponseResult { fn default() -> Self { Self { context: Err("no value supplied for context".to_string()), @@ -43453,7 +38554,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressedTokenBalancesByOwnerV2ResponseResult { + impl PostGetCompressedTokenAccountsByOwnerV2ResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -43468,7 +38569,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn value(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.value = value @@ -43480,11 +38581,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::TryFrom< - PostGetCompressedTokenBalancesByOwnerV2ResponseResult, - > for super::PostGetCompressedTokenBalancesByOwnerV2ResponseResult { + PostGetCompressedTokenAccountsByOwnerV2ResponseResult, + > for super::PostGetCompressedTokenAccountsByOwnerV2ResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressedTokenBalancesByOwnerV2ResponseResult, + value: PostGetCompressedTokenAccountsByOwnerV2ResponseResult, ) -> ::std::result::Result { Ok(Self { context: value.context?, @@ -43493,10 +38594,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::From< - super::PostGetCompressedTokenBalancesByOwnerV2ResponseResult, - > for PostGetCompressedTokenBalancesByOwnerV2ResponseResult { + super::PostGetCompressedTokenAccountsByOwnerV2ResponseResult, + > for PostGetCompressedTokenAccountsByOwnerV2ResponseResult { fn from( - value: super::PostGetCompressedTokenBalancesByOwnerV2ResponseResult, + value: super::PostGetCompressedTokenAccountsByOwnerV2ResponseResult, ) -> Self { Self { context: Ok(value.context), @@ -43505,25 +38606,25 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressionSignaturesForAccountBody { + pub struct PostGetCompressedTokenBalancesByOwnerBody { id: ::std::result::Result< - super::PostGetCompressionSignaturesForAccountBodyId, + super::PostGetCompressedTokenBalancesByOwnerBodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressionSignaturesForAccountBodyJsonrpc, + super::PostGetCompressedTokenBalancesByOwnerBodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetCompressionSignaturesForAccountBodyMethod, + super::PostGetCompressedTokenBalancesByOwnerBodyMethod, ::std::string::String, >, params: ::std::result::Result< - super::PostGetCompressionSignaturesForAccountBodyParams, + super::PostGetCompressedTokenBalancesByOwnerBodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressionSignaturesForAccountBody { + impl ::std::default::Default for PostGetCompressedTokenBalancesByOwnerBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -43533,11 +38634,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressionSignaturesForAccountBody { + impl PostGetCompressedTokenBalancesByOwnerBody { pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressionSignaturesForAccountBodyId, + super::PostGetCompressedTokenBalancesByOwnerBodyId, >, T::Error: ::std::fmt::Display, { @@ -43549,7 +38650,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressionSignaturesForAccountBodyJsonrpc, + super::PostGetCompressedTokenBalancesByOwnerBodyJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -43563,7 +38664,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn method(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressionSignaturesForAccountBodyMethod, + super::PostGetCompressedTokenBalancesByOwnerBodyMethod, >, T::Error: ::std::fmt::Display, { @@ -43577,7 +38678,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn params(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressionSignaturesForAccountBodyParams, + super::PostGetCompressedTokenBalancesByOwnerBodyParams, >, T::Error: ::std::fmt::Display, { @@ -43589,11 +38690,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressionSignaturesForAccountBody { + impl ::std::convert::TryFrom + for super::PostGetCompressedTokenBalancesByOwnerBody { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressionSignaturesForAccountBody, + value: PostGetCompressedTokenBalancesByOwnerBody, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -43603,9 +38704,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressionSignaturesForAccountBody { - fn from(value: super::PostGetCompressionSignaturesForAccountBody) -> Self { + impl ::std::convert::From + for PostGetCompressedTokenBalancesByOwnerBody { + fn from(value: super::PostGetCompressedTokenBalancesByOwnerBody) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -43615,73 +38716,138 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressionSignaturesForAccountBodyParams { - hash: ::std::result::Result, + pub struct PostGetCompressedTokenBalancesByOwnerBodyParams { + cursor: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + limit: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + mint: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + owner: ::std::result::Result< + super::SerializablePubkey, + ::std::string::String, + >, } impl ::std::default::Default - for PostGetCompressionSignaturesForAccountBodyParams { + for PostGetCompressedTokenBalancesByOwnerBodyParams { fn default() -> Self { Self { - hash: Err("no value supplied for hash".to_string()), + cursor: Ok(Default::default()), + limit: Ok(Default::default()), + mint: Ok(Default::default()), + owner: Err("no value supplied for owner".to_string()), } } } - impl PostGetCompressionSignaturesForAccountBodyParams { - pub fn hash(mut self, value: T) -> Self + impl PostGetCompressedTokenBalancesByOwnerBodyParams { + pub fn cursor(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::option::Option>, T::Error: ::std::fmt::Display, { - self.hash = value + self.cursor = value .try_into() .map_err(|e| { - format!("error converting supplied value for hash: {e}") + format!("error converting supplied value for cursor: {e}") + }); + self + } + pub fn limit(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, + { + self.limit = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for limit: {e}") + }); + self + } + pub fn mint(mut self, value: T) -> Self + where + T: ::std::convert::TryInto< + ::std::option::Option, + >, + T::Error: ::std::fmt::Display, + { + self.mint = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for mint: {e}") + }); + self + } + pub fn owner(mut self, value: T) -> Self + where + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, + { + self.owner = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for owner: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetCompressionSignaturesForAccountBodyParams { + impl ::std::convert::TryFrom + for super::PostGetCompressedTokenBalancesByOwnerBodyParams { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressionSignaturesForAccountBodyParams, + value: PostGetCompressedTokenBalancesByOwnerBodyParams, ) -> ::std::result::Result { - Ok(Self { hash: value.hash? }) + Ok(Self { + cursor: value.cursor?, + limit: value.limit?, + mint: value.mint?, + owner: value.owner?, + }) } } - impl ::std::convert::From< - super::PostGetCompressionSignaturesForAccountBodyParams, - > for PostGetCompressionSignaturesForAccountBodyParams { + impl ::std::convert::From + for PostGetCompressedTokenBalancesByOwnerBodyParams { fn from( - value: super::PostGetCompressionSignaturesForAccountBodyParams, + value: super::PostGetCompressedTokenBalancesByOwnerBodyParams, ) -> Self { - Self { hash: Ok(value.hash) } + Self { + cursor: Ok(value.cursor), + limit: Ok(value.limit), + mint: Ok(value.mint), + owner: Ok(value.owner), + } } } #[derive(Clone, Debug)] - pub struct PostGetCompressionSignaturesForAccountResponse { + pub struct PostGetCompressedTokenBalancesByOwnerResponse { error: ::std::result::Result< ::std::option::Option< - super::PostGetCompressionSignaturesForAccountResponseError, + super::PostGetCompressedTokenBalancesByOwnerResponseError, >, ::std::string::String, >, id: ::std::result::Result< - super::PostGetCompressionSignaturesForAccountResponseId, + super::PostGetCompressedTokenBalancesByOwnerResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressionSignaturesForAccountResponseJsonrpc, + super::PostGetCompressedTokenBalancesByOwnerResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< ::std::option::Option< - super::PostGetCompressionSignaturesForAccountResponseResult, + super::PostGetCompressedTokenBalancesByOwnerResponseResult, >, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressionSignaturesForAccountResponse { + impl ::std::default::Default for PostGetCompressedTokenBalancesByOwnerResponse { fn default() -> Self { Self { error: Ok(Default::default()), @@ -43691,12 +38857,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressionSignaturesForAccountResponse { + impl PostGetCompressedTokenBalancesByOwnerResponse { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressionSignaturesForAccountResponseError, + super::PostGetCompressedTokenBalancesByOwnerResponseError, >, >, T::Error: ::std::fmt::Display, @@ -43711,7 +38877,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressionSignaturesForAccountResponseId, + super::PostGetCompressedTokenBalancesByOwnerResponseId, >, T::Error: ::std::fmt::Display, { @@ -43723,7 +38889,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressionSignaturesForAccountResponseJsonrpc, + super::PostGetCompressedTokenBalancesByOwnerResponseJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -43738,7 +38904,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressionSignaturesForAccountResponseResult, + super::PostGetCompressedTokenBalancesByOwnerResponseResult, >, >, T::Error: ::std::fmt::Display, @@ -43751,11 +38917,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressionSignaturesForAccountResponse { + impl ::std::convert::TryFrom + for super::PostGetCompressedTokenBalancesByOwnerResponse { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressionSignaturesForAccountResponse, + value: PostGetCompressedTokenBalancesByOwnerResponse, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -43765,10 +38931,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressionSignaturesForAccountResponse { + impl ::std::convert::From + for PostGetCompressedTokenBalancesByOwnerResponse { fn from( - value: super::PostGetCompressionSignaturesForAccountResponse, + value: super::PostGetCompressedTokenBalancesByOwnerResponse, ) -> Self { Self { error: Ok(value.error), @@ -43779,7 +38945,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressionSignaturesForAccountResponseError { + pub struct PostGetCompressedTokenBalancesByOwnerResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -43790,7 +38956,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ >, } impl ::std::default::Default - for PostGetCompressionSignaturesForAccountResponseError { + for PostGetCompressedTokenBalancesByOwnerResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -43798,7 +38964,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressionSignaturesForAccountResponseError { + impl PostGetCompressedTokenBalancesByOwnerResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -43824,11 +38990,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressionSignaturesForAccountResponseError { + impl ::std::convert::TryFrom + for super::PostGetCompressedTokenBalancesByOwnerResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressionSignaturesForAccountResponseError, + value: PostGetCompressedTokenBalancesByOwnerResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -43837,10 +39003,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::From< - super::PostGetCompressionSignaturesForAccountResponseError, - > for PostGetCompressionSignaturesForAccountResponseError { + super::PostGetCompressedTokenBalancesByOwnerResponseError, + > for PostGetCompressedTokenBalancesByOwnerResponseError { fn from( - value: super::PostGetCompressionSignaturesForAccountResponseError, + value: super::PostGetCompressedTokenBalancesByOwnerResponseError, ) -> Self { Self { code: Ok(value.code), @@ -43849,15 +39015,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressionSignaturesForAccountResponseResult { + pub struct PostGetCompressedTokenBalancesByOwnerResponseResult { context: ::std::result::Result, - value: ::std::result::Result< - super::SignatureInfoList, - ::std::string::String, - >, + value: ::std::result::Result, } impl ::std::default::Default - for PostGetCompressionSignaturesForAccountResponseResult { + for PostGetCompressedTokenBalancesByOwnerResponseResult { fn default() -> Self { Self { context: Err("no value supplied for context".to_string()), @@ -43865,7 +39028,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressionSignaturesForAccountResponseResult { + impl PostGetCompressedTokenBalancesByOwnerResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -43880,7 +39043,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn value(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.value = value @@ -43891,12 +39054,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom< - PostGetCompressionSignaturesForAccountResponseResult, - > for super::PostGetCompressionSignaturesForAccountResponseResult { + impl ::std::convert::TryFrom + for super::PostGetCompressedTokenBalancesByOwnerResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressionSignaturesForAccountResponseResult, + value: PostGetCompressedTokenBalancesByOwnerResponseResult, ) -> ::std::result::Result { Ok(Self { context: value.context?, @@ -43905,10 +39067,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::From< - super::PostGetCompressionSignaturesForAccountResponseResult, - > for PostGetCompressionSignaturesForAccountResponseResult { + super::PostGetCompressedTokenBalancesByOwnerResponseResult, + > for PostGetCompressedTokenBalancesByOwnerResponseResult { fn from( - value: super::PostGetCompressionSignaturesForAccountResponseResult, + value: super::PostGetCompressedTokenBalancesByOwnerResponseResult, ) -> Self { Self { context: Ok(value.context), @@ -43917,25 +39079,25 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressionSignaturesForAddressBody { + pub struct PostGetCompressedTokenBalancesByOwnerV2Body { id: ::std::result::Result< - super::PostGetCompressionSignaturesForAddressBodyId, + super::PostGetCompressedTokenBalancesByOwnerV2BodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressionSignaturesForAddressBodyJsonrpc, + super::PostGetCompressedTokenBalancesByOwnerV2BodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetCompressionSignaturesForAddressBodyMethod, + super::PostGetCompressedTokenBalancesByOwnerV2BodyMethod, ::std::string::String, >, params: ::std::result::Result< - super::PostGetCompressionSignaturesForAddressBodyParams, + super::PostGetCompressedTokenBalancesByOwnerV2BodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressionSignaturesForAddressBody { + impl ::std::default::Default for PostGetCompressedTokenBalancesByOwnerV2Body { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -43945,11 +39107,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressionSignaturesForAddressBody { + impl PostGetCompressedTokenBalancesByOwnerV2Body { pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressionSignaturesForAddressBodyId, + super::PostGetCompressedTokenBalancesByOwnerV2BodyId, >, T::Error: ::std::fmt::Display, { @@ -43961,7 +39123,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressionSignaturesForAddressBodyJsonrpc, + super::PostGetCompressedTokenBalancesByOwnerV2BodyJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -43975,7 +39137,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn method(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressionSignaturesForAddressBodyMethod, + super::PostGetCompressedTokenBalancesByOwnerV2BodyMethod, >, T::Error: ::std::fmt::Display, { @@ -43989,7 +39151,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn params(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressionSignaturesForAddressBodyParams, + super::PostGetCompressedTokenBalancesByOwnerV2BodyParams, >, T::Error: ::std::fmt::Display, { @@ -44001,11 +39163,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressionSignaturesForAddressBody { + impl ::std::convert::TryFrom + for super::PostGetCompressedTokenBalancesByOwnerV2Body { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressionSignaturesForAddressBody, + value: PostGetCompressedTokenBalancesByOwnerV2Body, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -44015,9 +39177,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressionSignaturesForAddressBody { - fn from(value: super::PostGetCompressionSignaturesForAddressBody) -> Self { + impl ::std::convert::From + for PostGetCompressedTokenBalancesByOwnerV2Body { + fn from(value: super::PostGetCompressedTokenBalancesByOwnerV2Body) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -44027,118 +39189,140 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressionSignaturesForAddressBodyParams { - address: ::std::result::Result< - super::SerializablePubkey, - ::std::string::String, - >, + pub struct PostGetCompressedTokenBalancesByOwnerV2BodyParams { cursor: ::std::result::Result< - ::std::option::Option<::std::string::String>, + ::std::option::Option, ::std::string::String, >, limit: ::std::result::Result< ::std::option::Option, ::std::string::String, >, + mint: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + owner: ::std::result::Result< + super::SerializablePubkey, + ::std::string::String, + >, } impl ::std::default::Default - for PostGetCompressionSignaturesForAddressBodyParams { + for PostGetCompressedTokenBalancesByOwnerV2BodyParams { fn default() -> Self { Self { - address: Err("no value supplied for address".to_string()), cursor: Ok(Default::default()), limit: Ok(Default::default()), + mint: Ok(Default::default()), + owner: Err("no value supplied for owner".to_string()), } } } - impl PostGetCompressionSignaturesForAddressBodyParams { - pub fn address(mut self, value: T) -> Self + impl PostGetCompressedTokenBalancesByOwnerV2BodyParams { + pub fn cursor(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::option::Option>, T::Error: ::std::fmt::Display, { - self.address = value + self.cursor = value .try_into() .map_err(|e| { - format!("error converting supplied value for address: {e}") + format!("error converting supplied value for cursor: {e}") }); self } - pub fn cursor(mut self, value: T) -> Self + pub fn limit(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T: ::std::convert::TryInto<::std::option::Option>, T::Error: ::std::fmt::Display, { - self.cursor = value + self.limit = value .try_into() .map_err(|e| { - format!("error converting supplied value for cursor: {e}") + format!("error converting supplied value for limit: {e}") }); self } - pub fn limit(mut self, value: T) -> Self + pub fn mint(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto< + ::std::option::Option, + >, T::Error: ::std::fmt::Display, { - self.limit = value + self.mint = value .try_into() .map_err(|e| { - format!("error converting supplied value for limit: {e}") + format!("error converting supplied value for mint: {e}") + }); + self + } + pub fn owner(mut self, value: T) -> Self + where + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, + { + self.owner = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for owner: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetCompressionSignaturesForAddressBodyParams { + impl ::std::convert::TryFrom + for super::PostGetCompressedTokenBalancesByOwnerV2BodyParams { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressionSignaturesForAddressBodyParams, + value: PostGetCompressedTokenBalancesByOwnerV2BodyParams, ) -> ::std::result::Result { Ok(Self { - address: value.address?, cursor: value.cursor?, limit: value.limit?, + mint: value.mint?, + owner: value.owner?, }) } } impl ::std::convert::From< - super::PostGetCompressionSignaturesForAddressBodyParams, - > for PostGetCompressionSignaturesForAddressBodyParams { + super::PostGetCompressedTokenBalancesByOwnerV2BodyParams, + > for PostGetCompressedTokenBalancesByOwnerV2BodyParams { fn from( - value: super::PostGetCompressionSignaturesForAddressBodyParams, + value: super::PostGetCompressedTokenBalancesByOwnerV2BodyParams, ) -> Self { Self { - address: Ok(value.address), cursor: Ok(value.cursor), limit: Ok(value.limit), + mint: Ok(value.mint), + owner: Ok(value.owner), } } } #[derive(Clone, Debug)] - pub struct PostGetCompressionSignaturesForAddressResponse { + pub struct PostGetCompressedTokenBalancesByOwnerV2Response { error: ::std::result::Result< ::std::option::Option< - super::PostGetCompressionSignaturesForAddressResponseError, + super::PostGetCompressedTokenBalancesByOwnerV2ResponseError, >, ::std::string::String, >, id: ::std::result::Result< - super::PostGetCompressionSignaturesForAddressResponseId, + super::PostGetCompressedTokenBalancesByOwnerV2ResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressionSignaturesForAddressResponseJsonrpc, + super::PostGetCompressedTokenBalancesByOwnerV2ResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< ::std::option::Option< - super::PostGetCompressionSignaturesForAddressResponseResult, + super::PostGetCompressedTokenBalancesByOwnerV2ResponseResult, >, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressionSignaturesForAddressResponse { + impl ::std::default::Default + for PostGetCompressedTokenBalancesByOwnerV2Response { fn default() -> Self { Self { error: Ok(Default::default()), @@ -44148,12 +39332,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressionSignaturesForAddressResponse { + impl PostGetCompressedTokenBalancesByOwnerV2Response { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressionSignaturesForAddressResponseError, + super::PostGetCompressedTokenBalancesByOwnerV2ResponseError, >, >, T::Error: ::std::fmt::Display, @@ -44168,7 +39352,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressionSignaturesForAddressResponseId, + super::PostGetCompressedTokenBalancesByOwnerV2ResponseId, >, T::Error: ::std::fmt::Display, { @@ -44180,7 +39364,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressionSignaturesForAddressResponseJsonrpc, + super::PostGetCompressedTokenBalancesByOwnerV2ResponseJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -44195,7 +39379,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressionSignaturesForAddressResponseResult, + super::PostGetCompressedTokenBalancesByOwnerV2ResponseResult, >, >, T::Error: ::std::fmt::Display, @@ -44208,11 +39392,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressionSignaturesForAddressResponse { + impl ::std::convert::TryFrom + for super::PostGetCompressedTokenBalancesByOwnerV2Response { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressionSignaturesForAddressResponse, + value: PostGetCompressedTokenBalancesByOwnerV2Response, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -44222,10 +39406,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressionSignaturesForAddressResponse { + impl ::std::convert::From + for PostGetCompressedTokenBalancesByOwnerV2Response { fn from( - value: super::PostGetCompressionSignaturesForAddressResponse, + value: super::PostGetCompressedTokenBalancesByOwnerV2Response, ) -> Self { Self { error: Ok(value.error), @@ -44236,7 +39420,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressionSignaturesForAddressResponseError { + pub struct PostGetCompressedTokenBalancesByOwnerV2ResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -44247,7 +39431,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ >, } impl ::std::default::Default - for PostGetCompressionSignaturesForAddressResponseError { + for PostGetCompressedTokenBalancesByOwnerV2ResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -44255,7 +39439,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressionSignaturesForAddressResponseError { + impl PostGetCompressedTokenBalancesByOwnerV2ResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -44281,11 +39465,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressionSignaturesForAddressResponseError { + impl ::std::convert::TryFrom< + PostGetCompressedTokenBalancesByOwnerV2ResponseError, + > for super::PostGetCompressedTokenBalancesByOwnerV2ResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressionSignaturesForAddressResponseError, + value: PostGetCompressedTokenBalancesByOwnerV2ResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -44294,10 +39479,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::From< - super::PostGetCompressionSignaturesForAddressResponseError, - > for PostGetCompressionSignaturesForAddressResponseError { + super::PostGetCompressedTokenBalancesByOwnerV2ResponseError, + > for PostGetCompressedTokenBalancesByOwnerV2ResponseError { fn from( - value: super::PostGetCompressionSignaturesForAddressResponseError, + value: super::PostGetCompressedTokenBalancesByOwnerV2ResponseError, ) -> Self { Self { code: Ok(value.code), @@ -44306,15 +39491,15 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressionSignaturesForAddressResponseResult { + pub struct PostGetCompressedTokenBalancesByOwnerV2ResponseResult { context: ::std::result::Result, value: ::std::result::Result< - super::PaginatedSignatureInfoList, + super::TokenBalanceListV2, ::std::string::String, >, } impl ::std::default::Default - for PostGetCompressionSignaturesForAddressResponseResult { + for PostGetCompressedTokenBalancesByOwnerV2ResponseResult { fn default() -> Self { Self { context: Err("no value supplied for context".to_string()), @@ -44322,7 +39507,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressionSignaturesForAddressResponseResult { + impl PostGetCompressedTokenBalancesByOwnerV2ResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -44337,7 +39522,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn value(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.value = value @@ -44349,11 +39534,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::TryFrom< - PostGetCompressionSignaturesForAddressResponseResult, - > for super::PostGetCompressionSignaturesForAddressResponseResult { + PostGetCompressedTokenBalancesByOwnerV2ResponseResult, + > for super::PostGetCompressedTokenBalancesByOwnerV2ResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressionSignaturesForAddressResponseResult, + value: PostGetCompressedTokenBalancesByOwnerV2ResponseResult, ) -> ::std::result::Result { Ok(Self { context: value.context?, @@ -44362,10 +39547,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::From< - super::PostGetCompressionSignaturesForAddressResponseResult, - > for PostGetCompressionSignaturesForAddressResponseResult { + super::PostGetCompressedTokenBalancesByOwnerV2ResponseResult, + > for PostGetCompressedTokenBalancesByOwnerV2ResponseResult { fn from( - value: super::PostGetCompressionSignaturesForAddressResponseResult, + value: super::PostGetCompressedTokenBalancesByOwnerV2ResponseResult, ) -> Self { Self { context: Ok(value.context), @@ -44374,25 +39559,25 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressionSignaturesForOwnerBody { + pub struct PostGetCompressionSignaturesForAccountBody { id: ::std::result::Result< - super::PostGetCompressionSignaturesForOwnerBodyId, + super::PostGetCompressionSignaturesForAccountBodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressionSignaturesForOwnerBodyJsonrpc, + super::PostGetCompressionSignaturesForAccountBodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetCompressionSignaturesForOwnerBodyMethod, + super::PostGetCompressionSignaturesForAccountBodyMethod, ::std::string::String, >, params: ::std::result::Result< - super::PostGetCompressionSignaturesForOwnerBodyParams, + super::PostGetCompressionSignaturesForAccountBodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressionSignaturesForOwnerBody { + impl ::std::default::Default for PostGetCompressionSignaturesForAccountBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -44402,11 +39587,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressionSignaturesForOwnerBody { + impl PostGetCompressionSignaturesForAccountBody { pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressionSignaturesForOwnerBodyId, + super::PostGetCompressionSignaturesForAccountBodyId, >, T::Error: ::std::fmt::Display, { @@ -44418,7 +39603,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressionSignaturesForOwnerBodyJsonrpc, + super::PostGetCompressionSignaturesForAccountBodyJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -44432,7 +39617,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn method(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressionSignaturesForOwnerBodyMethod, + super::PostGetCompressionSignaturesForAccountBodyMethod, >, T::Error: ::std::fmt::Display, { @@ -44446,7 +39631,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn params(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressionSignaturesForOwnerBodyParams, + super::PostGetCompressionSignaturesForAccountBodyParams, >, T::Error: ::std::fmt::Display, { @@ -44458,11 +39643,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressionSignaturesForOwnerBody { + impl ::std::convert::TryFrom + for super::PostGetCompressionSignaturesForAccountBody { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressionSignaturesForOwnerBody, + value: PostGetCompressionSignaturesForAccountBody, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -44472,128 +39657,85 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressionSignaturesForOwnerBody { - fn from(value: super::PostGetCompressionSignaturesForOwnerBody) -> Self { + impl ::std::convert::From + for PostGetCompressionSignaturesForAccountBody { + fn from(value: super::PostGetCompressionSignaturesForAccountBody) -> Self { Self { id: Ok(value.id), - jsonrpc: Ok(value.jsonrpc), - method: Ok(value.method), - params: Ok(value.params), - } - } - } - #[derive(Clone, Debug)] - pub struct PostGetCompressionSignaturesForOwnerBodyParams { - cursor: ::std::result::Result< - ::std::option::Option<::std::string::String>, - ::std::string::String, - >, - limit: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - owner: ::std::result::Result< - super::SerializablePubkey, - ::std::string::String, - >, + jsonrpc: Ok(value.jsonrpc), + method: Ok(value.method), + params: Ok(value.params), + } + } } - impl ::std::default::Default for PostGetCompressionSignaturesForOwnerBodyParams { + #[derive(Clone, Debug)] + pub struct PostGetCompressionSignaturesForAccountBodyParams { + hash: ::std::result::Result, + } + impl ::std::default::Default + for PostGetCompressionSignaturesForAccountBodyParams { fn default() -> Self { Self { - cursor: Ok(Default::default()), - limit: Ok(Default::default()), - owner: Err("no value supplied for owner".to_string()), + hash: Err("no value supplied for hash".to_string()), } } } - impl PostGetCompressionSignaturesForOwnerBodyParams { - pub fn cursor(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: ::std::fmt::Display, - { - self.cursor = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for cursor: {e}") - }); - self - } - pub fn limit(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::option::Option>, - T::Error: ::std::fmt::Display, - { - self.limit = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for limit: {e}") - }); - self - } - pub fn owner(mut self, value: T) -> Self + impl PostGetCompressionSignaturesForAccountBodyParams { + pub fn hash(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.owner = value + self.hash = value .try_into() .map_err(|e| { - format!("error converting supplied value for owner: {e}") + format!("error converting supplied value for hash: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetCompressionSignaturesForOwnerBodyParams { + impl ::std::convert::TryFrom + for super::PostGetCompressionSignaturesForAccountBodyParams { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressionSignaturesForOwnerBodyParams, + value: PostGetCompressionSignaturesForAccountBodyParams, ) -> ::std::result::Result { - Ok(Self { - cursor: value.cursor?, - limit: value.limit?, - owner: value.owner?, - }) + Ok(Self { hash: value.hash? }) } } - impl ::std::convert::From - for PostGetCompressionSignaturesForOwnerBodyParams { + impl ::std::convert::From< + super::PostGetCompressionSignaturesForAccountBodyParams, + > for PostGetCompressionSignaturesForAccountBodyParams { fn from( - value: super::PostGetCompressionSignaturesForOwnerBodyParams, + value: super::PostGetCompressionSignaturesForAccountBodyParams, ) -> Self { - Self { - cursor: Ok(value.cursor), - limit: Ok(value.limit), - owner: Ok(value.owner), - } + Self { hash: Ok(value.hash) } } } #[derive(Clone, Debug)] - pub struct PostGetCompressionSignaturesForOwnerResponse { + pub struct PostGetCompressionSignaturesForAccountResponse { error: ::std::result::Result< ::std::option::Option< - super::PostGetCompressionSignaturesForOwnerResponseError, + super::PostGetCompressionSignaturesForAccountResponseError, >, ::std::string::String, >, id: ::std::result::Result< - super::PostGetCompressionSignaturesForOwnerResponseId, + super::PostGetCompressionSignaturesForAccountResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressionSignaturesForOwnerResponseJsonrpc, + super::PostGetCompressionSignaturesForAccountResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< ::std::option::Option< - super::PostGetCompressionSignaturesForOwnerResponseResult, + super::PostGetCompressionSignaturesForAccountResponseResult, >, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressionSignaturesForOwnerResponse { + impl ::std::default::Default for PostGetCompressionSignaturesForAccountResponse { fn default() -> Self { Self { error: Ok(Default::default()), @@ -44603,12 +39745,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressionSignaturesForOwnerResponse { + impl PostGetCompressionSignaturesForAccountResponse { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressionSignaturesForOwnerResponseError, + super::PostGetCompressionSignaturesForAccountResponseError, >, >, T::Error: ::std::fmt::Display, @@ -44623,7 +39765,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressionSignaturesForOwnerResponseId, + super::PostGetCompressionSignaturesForAccountResponseId, >, T::Error: ::std::fmt::Display, { @@ -44635,7 +39777,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressionSignaturesForOwnerResponseJsonrpc, + super::PostGetCompressionSignaturesForAccountResponseJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -44650,7 +39792,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressionSignaturesForOwnerResponseResult, + super::PostGetCompressionSignaturesForAccountResponseResult, >, >, T::Error: ::std::fmt::Display, @@ -44663,11 +39805,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressionSignaturesForOwnerResponse { + impl ::std::convert::TryFrom + for super::PostGetCompressionSignaturesForAccountResponse { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressionSignaturesForOwnerResponse, + value: PostGetCompressionSignaturesForAccountResponse, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -44677,9 +39819,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressionSignaturesForOwnerResponse { - fn from(value: super::PostGetCompressionSignaturesForOwnerResponse) -> Self { + impl ::std::convert::From + for PostGetCompressionSignaturesForAccountResponse { + fn from( + value: super::PostGetCompressionSignaturesForAccountResponse, + ) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -44689,7 +39833,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressionSignaturesForOwnerResponseError { + pub struct PostGetCompressionSignaturesForAccountResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -44700,7 +39844,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ >, } impl ::std::default::Default - for PostGetCompressionSignaturesForOwnerResponseError { + for PostGetCompressionSignaturesForAccountResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -44708,7 +39852,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressionSignaturesForOwnerResponseError { + impl PostGetCompressionSignaturesForAccountResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -44734,11 +39878,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressionSignaturesForOwnerResponseError { + impl ::std::convert::TryFrom + for super::PostGetCompressionSignaturesForAccountResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressionSignaturesForOwnerResponseError, + value: PostGetCompressionSignaturesForAccountResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -44747,10 +39891,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::From< - super::PostGetCompressionSignaturesForOwnerResponseError, - > for PostGetCompressionSignaturesForOwnerResponseError { + super::PostGetCompressionSignaturesForAccountResponseError, + > for PostGetCompressionSignaturesForAccountResponseError { fn from( - value: super::PostGetCompressionSignaturesForOwnerResponseError, + value: super::PostGetCompressionSignaturesForAccountResponseError, ) -> Self { Self { code: Ok(value.code), @@ -44759,15 +39903,15 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressionSignaturesForOwnerResponseResult { + pub struct PostGetCompressionSignaturesForAccountResponseResult { context: ::std::result::Result, value: ::std::result::Result< - super::PaginatedSignatureInfoList, + super::SignatureInfoList, ::std::string::String, >, } impl ::std::default::Default - for PostGetCompressionSignaturesForOwnerResponseResult { + for PostGetCompressionSignaturesForAccountResponseResult { fn default() -> Self { Self { context: Err("no value supplied for context".to_string()), @@ -44775,7 +39919,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressionSignaturesForOwnerResponseResult { + impl PostGetCompressionSignaturesForAccountResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -44790,7 +39934,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn value(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.value = value @@ -44801,11 +39945,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressionSignaturesForOwnerResponseResult { + impl ::std::convert::TryFrom< + PostGetCompressionSignaturesForAccountResponseResult, + > for super::PostGetCompressionSignaturesForAccountResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressionSignaturesForOwnerResponseResult, + value: PostGetCompressionSignaturesForAccountResponseResult, ) -> ::std::result::Result { Ok(Self { context: value.context?, @@ -44814,10 +39959,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::From< - super::PostGetCompressionSignaturesForOwnerResponseResult, - > for PostGetCompressionSignaturesForOwnerResponseResult { + super::PostGetCompressionSignaturesForAccountResponseResult, + > for PostGetCompressionSignaturesForAccountResponseResult { fn from( - value: super::PostGetCompressionSignaturesForOwnerResponseResult, + value: super::PostGetCompressionSignaturesForAccountResponseResult, ) -> Self { Self { context: Ok(value.context), @@ -44826,25 +39971,25 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressionSignaturesForTokenOwnerBody { + pub struct PostGetCompressionSignaturesForAddressBody { id: ::std::result::Result< - super::PostGetCompressionSignaturesForTokenOwnerBodyId, + super::PostGetCompressionSignaturesForAddressBodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressionSignaturesForTokenOwnerBodyJsonrpc, + super::PostGetCompressionSignaturesForAddressBodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetCompressionSignaturesForTokenOwnerBodyMethod, + super::PostGetCompressionSignaturesForAddressBodyMethod, ::std::string::String, >, params: ::std::result::Result< - super::PostGetCompressionSignaturesForTokenOwnerBodyParams, + super::PostGetCompressionSignaturesForAddressBodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetCompressionSignaturesForTokenOwnerBody { + impl ::std::default::Default for PostGetCompressionSignaturesForAddressBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -44854,11 +39999,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressionSignaturesForTokenOwnerBody { + impl PostGetCompressionSignaturesForAddressBody { pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressionSignaturesForTokenOwnerBodyId, + super::PostGetCompressionSignaturesForAddressBodyId, >, T::Error: ::std::fmt::Display, { @@ -44870,7 +40015,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressionSignaturesForTokenOwnerBodyJsonrpc, + super::PostGetCompressionSignaturesForAddressBodyJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -44884,7 +40029,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn method(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressionSignaturesForTokenOwnerBodyMethod, + super::PostGetCompressionSignaturesForAddressBodyMethod, >, T::Error: ::std::fmt::Display, { @@ -44898,7 +40043,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn params(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressionSignaturesForTokenOwnerBodyParams, + super::PostGetCompressionSignaturesForAddressBodyParams, >, T::Error: ::std::fmt::Display, { @@ -44910,11 +40055,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressionSignaturesForTokenOwnerBody { + impl ::std::convert::TryFrom + for super::PostGetCompressionSignaturesForAddressBody { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressionSignaturesForTokenOwnerBody, + value: PostGetCompressionSignaturesForAddressBody, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -44924,11 +40069,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetCompressionSignaturesForTokenOwnerBody { - fn from( - value: super::PostGetCompressionSignaturesForTokenOwnerBody, - ) -> Self { + impl ::std::convert::From + for PostGetCompressionSignaturesForAddressBody { + fn from(value: super::PostGetCompressionSignaturesForAddressBody) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -44938,7 +40081,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressionSignaturesForTokenOwnerBodyParams { + pub struct PostGetCompressionSignaturesForAddressBodyParams { + address: ::std::result::Result< + super::SerializablePubkey, + ::std::string::String, + >, cursor: ::std::result::Result< ::std::option::Option<::std::string::String>, ::std::string::String, @@ -44947,110 +40094,105 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::option::Option, ::std::string::String, >, - owner: ::std::result::Result< - super::SerializablePubkey, - ::std::string::String, - >, } impl ::std::default::Default - for PostGetCompressionSignaturesForTokenOwnerBodyParams { + for PostGetCompressionSignaturesForAddressBodyParams { fn default() -> Self { Self { + address: Err("no value supplied for address".to_string()), cursor: Ok(Default::default()), limit: Ok(Default::default()), - owner: Err("no value supplied for owner".to_string()), } } } - impl PostGetCompressionSignaturesForTokenOwnerBodyParams { - pub fn cursor(mut self, value: T) -> Self + impl PostGetCompressionSignaturesForAddressBodyParams { + pub fn address(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.cursor = value + self.address = value .try_into() .map_err(|e| { - format!("error converting supplied value for cursor: {e}") + format!("error converting supplied value for address: {e}") }); self } - pub fn limit(mut self, value: T) -> Self + pub fn cursor(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: ::std::fmt::Display, { - self.limit = value + self.cursor = value .try_into() .map_err(|e| { - format!("error converting supplied value for limit: {e}") + format!("error converting supplied value for cursor: {e}") }); self } - pub fn owner(mut self, value: T) -> Self + pub fn limit(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::option::Option>, T::Error: ::std::fmt::Display, { - self.owner = value + self.limit = value .try_into() .map_err(|e| { - format!("error converting supplied value for owner: {e}") + format!("error converting supplied value for limit: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetCompressionSignaturesForTokenOwnerBodyParams { + impl ::std::convert::TryFrom + for super::PostGetCompressionSignaturesForAddressBodyParams { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressionSignaturesForTokenOwnerBodyParams, + value: PostGetCompressionSignaturesForAddressBodyParams, ) -> ::std::result::Result { Ok(Self { + address: value.address?, cursor: value.cursor?, limit: value.limit?, - owner: value.owner?, }) } } impl ::std::convert::From< - super::PostGetCompressionSignaturesForTokenOwnerBodyParams, - > for PostGetCompressionSignaturesForTokenOwnerBodyParams { + super::PostGetCompressionSignaturesForAddressBodyParams, + > for PostGetCompressionSignaturesForAddressBodyParams { fn from( - value: super::PostGetCompressionSignaturesForTokenOwnerBodyParams, + value: super::PostGetCompressionSignaturesForAddressBodyParams, ) -> Self { Self { + address: Ok(value.address), cursor: Ok(value.cursor), limit: Ok(value.limit), - owner: Ok(value.owner), } } } #[derive(Clone, Debug)] - pub struct PostGetCompressionSignaturesForTokenOwnerResponse { + pub struct PostGetCompressionSignaturesForAddressResponse { error: ::std::result::Result< ::std::option::Option< - super::PostGetCompressionSignaturesForTokenOwnerResponseError, + super::PostGetCompressionSignaturesForAddressResponseError, >, ::std::string::String, >, id: ::std::result::Result< - super::PostGetCompressionSignaturesForTokenOwnerResponseId, + super::PostGetCompressionSignaturesForAddressResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetCompressionSignaturesForTokenOwnerResponseJsonrpc, + super::PostGetCompressionSignaturesForAddressResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< ::std::option::Option< - super::PostGetCompressionSignaturesForTokenOwnerResponseResult, + super::PostGetCompressionSignaturesForAddressResponseResult, >, ::std::string::String, >, } - impl ::std::default::Default - for PostGetCompressionSignaturesForTokenOwnerResponse { + impl ::std::default::Default for PostGetCompressionSignaturesForAddressResponse { fn default() -> Self { Self { error: Ok(Default::default()), @@ -45060,12 +40202,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressionSignaturesForTokenOwnerResponse { + impl PostGetCompressionSignaturesForAddressResponse { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressionSignaturesForTokenOwnerResponseError, + super::PostGetCompressionSignaturesForAddressResponseError, >, >, T::Error: ::std::fmt::Display, @@ -45080,7 +40222,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressionSignaturesForTokenOwnerResponseId, + super::PostGetCompressionSignaturesForAddressResponseId, >, T::Error: ::std::fmt::Display, { @@ -45092,7 +40234,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetCompressionSignaturesForTokenOwnerResponseJsonrpc, + super::PostGetCompressionSignaturesForAddressResponseJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -45107,7 +40249,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetCompressionSignaturesForTokenOwnerResponseResult, + super::PostGetCompressionSignaturesForAddressResponseResult, >, >, T::Error: ::std::fmt::Display, @@ -45120,11 +40262,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetCompressionSignaturesForTokenOwnerResponse { + impl ::std::convert::TryFrom + for super::PostGetCompressionSignaturesForAddressResponse { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressionSignaturesForTokenOwnerResponse, + value: PostGetCompressionSignaturesForAddressResponse, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -45134,11 +40276,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From< - super::PostGetCompressionSignaturesForTokenOwnerResponse, - > for PostGetCompressionSignaturesForTokenOwnerResponse { + impl ::std::convert::From + for PostGetCompressionSignaturesForAddressResponse { fn from( - value: super::PostGetCompressionSignaturesForTokenOwnerResponse, + value: super::PostGetCompressionSignaturesForAddressResponse, ) -> Self { Self { error: Ok(value.error), @@ -45149,7 +40290,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressionSignaturesForTokenOwnerResponseError { + pub struct PostGetCompressionSignaturesForAddressResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -45160,7 +40301,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ >, } impl ::std::default::Default - for PostGetCompressionSignaturesForTokenOwnerResponseError { + for PostGetCompressionSignaturesForAddressResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -45168,7 +40309,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressionSignaturesForTokenOwnerResponseError { + impl PostGetCompressionSignaturesForAddressResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -45194,12 +40335,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom< - PostGetCompressionSignaturesForTokenOwnerResponseError, - > for super::PostGetCompressionSignaturesForTokenOwnerResponseError { + impl ::std::convert::TryFrom + for super::PostGetCompressionSignaturesForAddressResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressionSignaturesForTokenOwnerResponseError, + value: PostGetCompressionSignaturesForAddressResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -45208,10 +40348,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::From< - super::PostGetCompressionSignaturesForTokenOwnerResponseError, - > for PostGetCompressionSignaturesForTokenOwnerResponseError { + super::PostGetCompressionSignaturesForAddressResponseError, + > for PostGetCompressionSignaturesForAddressResponseError { fn from( - value: super::PostGetCompressionSignaturesForTokenOwnerResponseError, + value: super::PostGetCompressionSignaturesForAddressResponseError, ) -> Self { Self { code: Ok(value.code), @@ -45220,7 +40360,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetCompressionSignaturesForTokenOwnerResponseResult { + pub struct PostGetCompressionSignaturesForAddressResponseResult { context: ::std::result::Result, value: ::std::result::Result< super::PaginatedSignatureInfoList, @@ -45228,7 +40368,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ >, } impl ::std::default::Default - for PostGetCompressionSignaturesForTokenOwnerResponseResult { + for PostGetCompressionSignaturesForAddressResponseResult { fn default() -> Self { Self { context: Err("no value supplied for context".to_string()), @@ -45236,7 +40376,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetCompressionSignaturesForTokenOwnerResponseResult { + impl PostGetCompressionSignaturesForAddressResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -45263,11 +40403,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::TryFrom< - PostGetCompressionSignaturesForTokenOwnerResponseResult, - > for super::PostGetCompressionSignaturesForTokenOwnerResponseResult { + PostGetCompressionSignaturesForAddressResponseResult, + > for super::PostGetCompressionSignaturesForAddressResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetCompressionSignaturesForTokenOwnerResponseResult, + value: PostGetCompressionSignaturesForAddressResponseResult, ) -> ::std::result::Result { Ok(Self { context: value.context?, @@ -45276,10 +40416,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::From< - super::PostGetCompressionSignaturesForTokenOwnerResponseResult, - > for PostGetCompressionSignaturesForTokenOwnerResponseResult { + super::PostGetCompressionSignaturesForAddressResponseResult, + > for PostGetCompressionSignaturesForAddressResponseResult { fn from( - value: super::PostGetCompressionSignaturesForTokenOwnerResponseResult, + value: super::PostGetCompressionSignaturesForAddressResponseResult, ) -> Self { Self { context: Ok(value.context), @@ -45288,33 +40428,40 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetIndexerHealthBody { + pub struct PostGetCompressionSignaturesForOwnerBody { id: ::std::result::Result< - super::PostGetIndexerHealthBodyId, + super::PostGetCompressionSignaturesForOwnerBodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetIndexerHealthBodyJsonrpc, + super::PostGetCompressionSignaturesForOwnerBodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetIndexerHealthBodyMethod, + super::PostGetCompressionSignaturesForOwnerBodyMethod, + ::std::string::String, + >, + params: ::std::result::Result< + super::PostGetCompressionSignaturesForOwnerBodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetIndexerHealthBody { + impl ::std::default::Default for PostGetCompressionSignaturesForOwnerBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), jsonrpc: Err("no value supplied for jsonrpc".to_string()), method: Err("no value supplied for method".to_string()), + params: Err("no value supplied for params".to_string()), } } } - impl PostGetIndexerHealthBody { + impl PostGetCompressionSignaturesForOwnerBody { pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + super::PostGetCompressionSignaturesForOwnerBodyId, + >, T::Error: ::std::fmt::Display, { self.id = value @@ -45324,7 +40471,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn jsonrpc(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + super::PostGetCompressionSignaturesForOwnerBodyJsonrpc, + >, T::Error: ::std::fmt::Display, { self.jsonrpc = value @@ -45336,7 +40485,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn method(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + super::PostGetCompressionSignaturesForOwnerBodyMethod, + >, T::Error: ::std::fmt::Display, { self.method = value @@ -45346,66 +40497,173 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }); self } + pub fn params(mut self, value: T) -> Self + where + T: ::std::convert::TryInto< + super::PostGetCompressionSignaturesForOwnerBodyParams, + >, + T::Error: ::std::fmt::Display, + { + self.params = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for params: {e}") + }); + self + } } - impl ::std::convert::TryFrom - for super::PostGetIndexerHealthBody { + impl ::std::convert::TryFrom + for super::PostGetCompressionSignaturesForOwnerBody { type Error = super::error::ConversionError; fn try_from( - value: PostGetIndexerHealthBody, + value: PostGetCompressionSignaturesForOwnerBody, ) -> ::std::result::Result { Ok(Self { id: value.id?, jsonrpc: value.jsonrpc?, method: value.method?, + params: value.params?, }) } } - impl ::std::convert::From - for PostGetIndexerHealthBody { - fn from(value: super::PostGetIndexerHealthBody) -> Self { + impl ::std::convert::From + for PostGetCompressionSignaturesForOwnerBody { + fn from(value: super::PostGetCompressionSignaturesForOwnerBody) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), method: Ok(value.method), + params: Ok(value.params), } } } #[derive(Clone, Debug)] - pub struct PostGetIndexerHealthResponse { + pub struct PostGetCompressionSignaturesForOwnerBodyParams { + cursor: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + limit: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + owner: ::std::result::Result< + super::SerializablePubkey, + ::std::string::String, + >, + } + impl ::std::default::Default for PostGetCompressionSignaturesForOwnerBodyParams { + fn default() -> Self { + Self { + cursor: Ok(Default::default()), + limit: Ok(Default::default()), + owner: Err("no value supplied for owner".to_string()), + } + } + } + impl PostGetCompressionSignaturesForOwnerBodyParams { + pub fn cursor(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, + { + self.cursor = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for cursor: {e}") + }); + self + } + pub fn limit(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, + { + self.limit = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for limit: {e}") + }); + self + } + pub fn owner(mut self, value: T) -> Self + where + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, + { + self.owner = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for owner: {e}") + }); + self + } + } + impl ::std::convert::TryFrom + for super::PostGetCompressionSignaturesForOwnerBodyParams { + type Error = super::error::ConversionError; + fn try_from( + value: PostGetCompressionSignaturesForOwnerBodyParams, + ) -> ::std::result::Result { + Ok(Self { + cursor: value.cursor?, + limit: value.limit?, + owner: value.owner?, + }) + } + } + impl ::std::convert::From + for PostGetCompressionSignaturesForOwnerBodyParams { + fn from( + value: super::PostGetCompressionSignaturesForOwnerBodyParams, + ) -> Self { + Self { + cursor: Ok(value.cursor), + limit: Ok(value.limit), + owner: Ok(value.owner), + } + } + } + #[derive(Clone, Debug)] + pub struct PostGetCompressionSignaturesForOwnerResponse { error: ::std::result::Result< - ::std::option::Option, + ::std::option::Option< + super::PostGetCompressionSignaturesForOwnerResponseError, + >, ::std::string::String, >, id: ::std::result::Result< - super::PostGetIndexerHealthResponseId, + super::PostGetCompressionSignaturesForOwnerResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetIndexerHealthResponseJsonrpc, + super::PostGetCompressionSignaturesForOwnerResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< - super::PostGetIndexerHealthResponseResult, + ::std::option::Option< + super::PostGetCompressionSignaturesForOwnerResponseResult, + >, ::std::string::String, >, } - impl ::std::default::Default for PostGetIndexerHealthResponse { + impl ::std::default::Default for PostGetCompressionSignaturesForOwnerResponse { fn default() -> Self { Self { error: Ok(Default::default()), id: Err("no value supplied for id".to_string()), jsonrpc: Err("no value supplied for jsonrpc".to_string()), - result: Ok( - super::defaults::post_get_indexer_health_response_result(), - ), + result: Ok(Default::default()), } } } - impl PostGetIndexerHealthResponse { + impl PostGetCompressionSignaturesForOwnerResponse { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< - ::std::option::Option, + ::std::option::Option< + super::PostGetCompressionSignaturesForOwnerResponseError, + >, >, T::Error: ::std::fmt::Display, { @@ -45418,7 +40676,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + super::PostGetCompressionSignaturesForOwnerResponseId, + >, T::Error: ::std::fmt::Display, { self.id = value @@ -45428,7 +40688,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn jsonrpc(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + super::PostGetCompressionSignaturesForOwnerResponseJsonrpc, + >, T::Error: ::std::fmt::Display, { self.jsonrpc = value @@ -45440,7 +40702,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn result(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + ::std::option::Option< + super::PostGetCompressionSignaturesForOwnerResponseResult, + >, + >, T::Error: ::std::fmt::Display, { self.result = value @@ -45451,11 +40717,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetIndexerHealthResponse { + impl ::std::convert::TryFrom + for super::PostGetCompressionSignaturesForOwnerResponse { type Error = super::error::ConversionError; fn try_from( - value: PostGetIndexerHealthResponse, + value: PostGetCompressionSignaturesForOwnerResponse, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -45465,9 +40731,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetIndexerHealthResponse { - fn from(value: super::PostGetIndexerHealthResponse) -> Self { + impl ::std::convert::From + for PostGetCompressionSignaturesForOwnerResponse { + fn from(value: super::PostGetCompressionSignaturesForOwnerResponse) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -45477,7 +40743,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetIndexerHealthResponseError { + pub struct PostGetCompressionSignaturesForOwnerResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -45487,7 +40753,8 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::string::String, >, } - impl ::std::default::Default for PostGetIndexerHealthResponseError { + impl ::std::default::Default + for PostGetCompressionSignaturesForOwnerResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -45495,7 +40762,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetIndexerHealthResponseError { + impl PostGetCompressionSignaturesForOwnerResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -45521,11 +40788,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetIndexerHealthResponseError { + impl ::std::convert::TryFrom + for super::PostGetCompressionSignaturesForOwnerResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetIndexerHealthResponseError, + value: PostGetCompressionSignaturesForOwnerResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -45533,9 +40800,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetIndexerHealthResponseError { - fn from(value: super::PostGetIndexerHealthResponseError) -> Self { + impl ::std::convert::From< + super::PostGetCompressionSignaturesForOwnerResponseError, + > for PostGetCompressionSignaturesForOwnerResponseError { + fn from( + value: super::PostGetCompressionSignaturesForOwnerResponseError, + ) -> Self { Self { code: Ok(value.code), message: Ok(value.message), @@ -45543,33 +40813,107 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetIndexerSlotBody { + pub struct PostGetCompressionSignaturesForOwnerResponseResult { + context: ::std::result::Result, + value: ::std::result::Result< + super::PaginatedSignatureInfoList, + ::std::string::String, + >, + } + impl ::std::default::Default + for PostGetCompressionSignaturesForOwnerResponseResult { + fn default() -> Self { + Self { + context: Err("no value supplied for context".to_string()), + value: Err("no value supplied for value".to_string()), + } + } + } + impl PostGetCompressionSignaturesForOwnerResponseResult { + pub fn context(mut self, value: T) -> Self + where + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, + { + self.context = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for context: {e}") + }); + self + } + pub fn value(mut self, value: T) -> Self + where + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, + { + self.value = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for value: {e}") + }); + self + } + } + impl ::std::convert::TryFrom + for super::PostGetCompressionSignaturesForOwnerResponseResult { + type Error = super::error::ConversionError; + fn try_from( + value: PostGetCompressionSignaturesForOwnerResponseResult, + ) -> ::std::result::Result { + Ok(Self { + context: value.context?, + value: value.value?, + }) + } + } + impl ::std::convert::From< + super::PostGetCompressionSignaturesForOwnerResponseResult, + > for PostGetCompressionSignaturesForOwnerResponseResult { + fn from( + value: super::PostGetCompressionSignaturesForOwnerResponseResult, + ) -> Self { + Self { + context: Ok(value.context), + value: Ok(value.value), + } + } + } + #[derive(Clone, Debug)] + pub struct PostGetCompressionSignaturesForTokenOwnerBody { id: ::std::result::Result< - super::PostGetIndexerSlotBodyId, + super::PostGetCompressionSignaturesForTokenOwnerBodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetIndexerSlotBodyJsonrpc, + super::PostGetCompressionSignaturesForTokenOwnerBodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetIndexerSlotBodyMethod, + super::PostGetCompressionSignaturesForTokenOwnerBodyMethod, + ::std::string::String, + >, + params: ::std::result::Result< + super::PostGetCompressionSignaturesForTokenOwnerBodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetIndexerSlotBody { + impl ::std::default::Default for PostGetCompressionSignaturesForTokenOwnerBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), jsonrpc: Err("no value supplied for jsonrpc".to_string()), method: Err("no value supplied for method".to_string()), + params: Err("no value supplied for params".to_string()), } } } - impl PostGetIndexerSlotBody { + impl PostGetCompressionSignaturesForTokenOwnerBody { pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + super::PostGetCompressionSignaturesForTokenOwnerBodyId, + >, T::Error: ::std::fmt::Display, { self.id = value @@ -45579,7 +40923,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn jsonrpc(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + super::PostGetCompressionSignaturesForTokenOwnerBodyJsonrpc, + >, T::Error: ::std::fmt::Display, { self.jsonrpc = value @@ -45591,7 +40937,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn method(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + super::PostGetCompressionSignaturesForTokenOwnerBodyMethod, + >, T::Error: ::std::fmt::Display, { self.method = value @@ -45601,61 +40949,178 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }); self } + pub fn params(mut self, value: T) -> Self + where + T: ::std::convert::TryInto< + super::PostGetCompressionSignaturesForTokenOwnerBodyParams, + >, + T::Error: ::std::fmt::Display, + { + self.params = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for params: {e}") + }); + self + } } - impl ::std::convert::TryFrom - for super::PostGetIndexerSlotBody { + impl ::std::convert::TryFrom + for super::PostGetCompressionSignaturesForTokenOwnerBody { type Error = super::error::ConversionError; fn try_from( - value: PostGetIndexerSlotBody, + value: PostGetCompressionSignaturesForTokenOwnerBody, ) -> ::std::result::Result { Ok(Self { id: value.id?, jsonrpc: value.jsonrpc?, method: value.method?, + params: value.params?, }) } } - impl ::std::convert::From - for PostGetIndexerSlotBody { - fn from(value: super::PostGetIndexerSlotBody) -> Self { + impl ::std::convert::From + for PostGetCompressionSignaturesForTokenOwnerBody { + fn from( + value: super::PostGetCompressionSignaturesForTokenOwnerBody, + ) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), method: Ok(value.method), + params: Ok(value.params), } } } #[derive(Clone, Debug)] - pub struct PostGetIndexerSlotResponse { + pub struct PostGetCompressionSignaturesForTokenOwnerBodyParams { + cursor: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + limit: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + owner: ::std::result::Result< + super::SerializablePubkey, + ::std::string::String, + >, + } + impl ::std::default::Default + for PostGetCompressionSignaturesForTokenOwnerBodyParams { + fn default() -> Self { + Self { + cursor: Ok(Default::default()), + limit: Ok(Default::default()), + owner: Err("no value supplied for owner".to_string()), + } + } + } + impl PostGetCompressionSignaturesForTokenOwnerBodyParams { + pub fn cursor(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, + { + self.cursor = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for cursor: {e}") + }); + self + } + pub fn limit(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, + { + self.limit = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for limit: {e}") + }); + self + } + pub fn owner(mut self, value: T) -> Self + where + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, + { + self.owner = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for owner: {e}") + }); + self + } + } + impl ::std::convert::TryFrom + for super::PostGetCompressionSignaturesForTokenOwnerBodyParams { + type Error = super::error::ConversionError; + fn try_from( + value: PostGetCompressionSignaturesForTokenOwnerBodyParams, + ) -> ::std::result::Result { + Ok(Self { + cursor: value.cursor?, + limit: value.limit?, + owner: value.owner?, + }) + } + } + impl ::std::convert::From< + super::PostGetCompressionSignaturesForTokenOwnerBodyParams, + > for PostGetCompressionSignaturesForTokenOwnerBodyParams { + fn from( + value: super::PostGetCompressionSignaturesForTokenOwnerBodyParams, + ) -> Self { + Self { + cursor: Ok(value.cursor), + limit: Ok(value.limit), + owner: Ok(value.owner), + } + } + } + #[derive(Clone, Debug)] + pub struct PostGetCompressionSignaturesForTokenOwnerResponse { error: ::std::result::Result< - ::std::option::Option, + ::std::option::Option< + super::PostGetCompressionSignaturesForTokenOwnerResponseError, + >, ::std::string::String, >, id: ::std::result::Result< - super::PostGetIndexerSlotResponseId, + super::PostGetCompressionSignaturesForTokenOwnerResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetIndexerSlotResponseJsonrpc, + super::PostGetCompressionSignaturesForTokenOwnerResponseJsonrpc, + ::std::string::String, + >, + result: ::std::result::Result< + ::std::option::Option< + super::PostGetCompressionSignaturesForTokenOwnerResponseResult, + >, ::std::string::String, >, - result: ::std::result::Result, } - impl ::std::default::Default for PostGetIndexerSlotResponse { + impl ::std::default::Default + for PostGetCompressionSignaturesForTokenOwnerResponse { fn default() -> Self { Self { error: Ok(Default::default()), id: Err("no value supplied for id".to_string()), jsonrpc: Err("no value supplied for jsonrpc".to_string()), - result: Ok(super::defaults::default_u64::()), + result: Ok(Default::default()), } } } - impl PostGetIndexerSlotResponse { + impl PostGetCompressionSignaturesForTokenOwnerResponse { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< - ::std::option::Option, + ::std::option::Option< + super::PostGetCompressionSignaturesForTokenOwnerResponseError, + >, >, T::Error: ::std::fmt::Display, { @@ -45668,7 +41133,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + super::PostGetCompressionSignaturesForTokenOwnerResponseId, + >, T::Error: ::std::fmt::Display, { self.id = value @@ -45678,7 +41145,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn jsonrpc(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + super::PostGetCompressionSignaturesForTokenOwnerResponseJsonrpc, + >, T::Error: ::std::fmt::Display, { self.jsonrpc = value @@ -45690,7 +41159,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn result(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + ::std::option::Option< + super::PostGetCompressionSignaturesForTokenOwnerResponseResult, + >, + >, T::Error: ::std::fmt::Display, { self.result = value @@ -45701,11 +41174,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetIndexerSlotResponse { + impl ::std::convert::TryFrom + for super::PostGetCompressionSignaturesForTokenOwnerResponse { type Error = super::error::ConversionError; fn try_from( - value: PostGetIndexerSlotResponse, + value: PostGetCompressionSignaturesForTokenOwnerResponse, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -45715,9 +41188,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetIndexerSlotResponse { - fn from(value: super::PostGetIndexerSlotResponse) -> Self { + impl ::std::convert::From< + super::PostGetCompressionSignaturesForTokenOwnerResponse, + > for PostGetCompressionSignaturesForTokenOwnerResponse { + fn from( + value: super::PostGetCompressionSignaturesForTokenOwnerResponse, + ) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -45727,7 +41203,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetIndexerSlotResponseError { + pub struct PostGetCompressionSignaturesForTokenOwnerResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -45737,7 +41213,8 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::string::String, >, } - impl ::std::default::Default for PostGetIndexerSlotResponseError { + impl ::std::default::Default + for PostGetCompressionSignaturesForTokenOwnerResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -45745,7 +41222,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetIndexerSlotResponseError { + impl PostGetCompressionSignaturesForTokenOwnerResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -45771,11 +41248,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetIndexerSlotResponseError { + impl ::std::convert::TryFrom< + PostGetCompressionSignaturesForTokenOwnerResponseError, + > for super::PostGetCompressionSignaturesForTokenOwnerResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetIndexerSlotResponseError, + value: PostGetCompressionSignaturesForTokenOwnerResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -45783,9 +41261,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetIndexerSlotResponseError { - fn from(value: super::PostGetIndexerSlotResponseError) -> Self { + impl ::std::convert::From< + super::PostGetCompressionSignaturesForTokenOwnerResponseError, + > for PostGetCompressionSignaturesForTokenOwnerResponseError { + fn from( + value: super::PostGetCompressionSignaturesForTokenOwnerResponseError, + ) -> Self { Self { code: Ok(value.code), message: Ok(value.message), @@ -45793,221 +41274,192 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetLatestCompressionSignaturesBody { - id: ::std::result::Result< - super::PostGetLatestCompressionSignaturesBodyId, - ::std::string::String, - >, - jsonrpc: ::std::result::Result< - super::PostGetLatestCompressionSignaturesBodyJsonrpc, - ::std::string::String, - >, - method: ::std::result::Result< - super::PostGetLatestCompressionSignaturesBodyMethod, - ::std::string::String, - >, - params: ::std::result::Result< - super::PostGetLatestCompressionSignaturesBodyParams, + pub struct PostGetCompressionSignaturesForTokenOwnerResponseResult { + context: ::std::result::Result, + value: ::std::result::Result< + super::PaginatedSignatureInfoList, ::std::string::String, >, } - impl ::std::default::Default for PostGetLatestCompressionSignaturesBody { + impl ::std::default::Default + for PostGetCompressionSignaturesForTokenOwnerResponseResult { fn default() -> Self { Self { - id: Err("no value supplied for id".to_string()), - jsonrpc: Err("no value supplied for jsonrpc".to_string()), - method: Err("no value supplied for method".to_string()), - params: Err("no value supplied for params".to_string()), + context: Err("no value supplied for context".to_string()), + value: Err("no value supplied for value".to_string()), } } } - impl PostGetLatestCompressionSignaturesBody { - pub fn id(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - super::PostGetLatestCompressionSignaturesBodyId, - >, - T::Error: ::std::fmt::Display, - { - self.id = value - .try_into() - .map_err(|e| format!("error converting supplied value for id: {e}")); - self - } - pub fn jsonrpc(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - super::PostGetLatestCompressionSignaturesBodyJsonrpc, - >, - T::Error: ::std::fmt::Display, - { - self.jsonrpc = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for jsonrpc: {e}") - }); - self - } - pub fn method(mut self, value: T) -> Self + impl PostGetCompressionSignaturesForTokenOwnerResponseResult { + pub fn context(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetLatestCompressionSignaturesBodyMethod, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.method = value + self.context = value .try_into() .map_err(|e| { - format!("error converting supplied value for method: {e}") + format!("error converting supplied value for context: {e}") }); self } - pub fn params(mut self, value: T) -> Self + pub fn value(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetLatestCompressionSignaturesBodyParams, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.params = value + self.value = value .try_into() .map_err(|e| { - format!("error converting supplied value for params: {e}") + format!("error converting supplied value for value: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetLatestCompressionSignaturesBody { + impl ::std::convert::TryFrom< + PostGetCompressionSignaturesForTokenOwnerResponseResult, + > for super::PostGetCompressionSignaturesForTokenOwnerResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetLatestCompressionSignaturesBody, + value: PostGetCompressionSignaturesForTokenOwnerResponseResult, ) -> ::std::result::Result { Ok(Self { - id: value.id?, - jsonrpc: value.jsonrpc?, - method: value.method?, - params: value.params?, + context: value.context?, + value: value.value?, }) } } - impl ::std::convert::From - for PostGetLatestCompressionSignaturesBody { - fn from(value: super::PostGetLatestCompressionSignaturesBody) -> Self { + impl ::std::convert::From< + super::PostGetCompressionSignaturesForTokenOwnerResponseResult, + > for PostGetCompressionSignaturesForTokenOwnerResponseResult { + fn from( + value: super::PostGetCompressionSignaturesForTokenOwnerResponseResult, + ) -> Self { Self { - id: Ok(value.id), - jsonrpc: Ok(value.jsonrpc), - method: Ok(value.method), - params: Ok(value.params), + context: Ok(value.context), + value: Ok(value.value), } } } #[derive(Clone, Debug)] - pub struct PostGetLatestCompressionSignaturesBodyParams { - cursor: ::std::result::Result< - ::std::option::Option<::std::string::String>, + pub struct PostGetIndexerHealthBody { + id: ::std::result::Result< + super::PostGetIndexerHealthBodyId, ::std::string::String, >, - limit: ::std::result::Result< - ::std::option::Option, + jsonrpc: ::std::result::Result< + super::PostGetIndexerHealthBodyJsonrpc, + ::std::string::String, + >, + method: ::std::result::Result< + super::PostGetIndexerHealthBodyMethod, ::std::string::String, >, } - impl ::std::default::Default for PostGetLatestCompressionSignaturesBodyParams { + impl ::std::default::Default for PostGetIndexerHealthBody { fn default() -> Self { Self { - cursor: Ok(Default::default()), - limit: Ok(Default::default()), + id: Err("no value supplied for id".to_string()), + jsonrpc: Err("no value supplied for jsonrpc".to_string()), + method: Err("no value supplied for method".to_string()), } } } - impl PostGetLatestCompressionSignaturesBodyParams { - pub fn cursor(mut self, value: T) -> Self + impl PostGetIndexerHealthBody { + pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.cursor = value + self.id = value + .try_into() + .map_err(|e| format!("error converting supplied value for id: {e}")); + self + } + pub fn jsonrpc(mut self, value: T) -> Self + where + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, + { + self.jsonrpc = value .try_into() .map_err(|e| { - format!("error converting supplied value for cursor: {e}") + format!("error converting supplied value for jsonrpc: {e}") }); self } - pub fn limit(mut self, value: T) -> Self + pub fn method(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.limit = value + self.method = value .try_into() .map_err(|e| { - format!("error converting supplied value for limit: {e}") + format!("error converting supplied value for method: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetLatestCompressionSignaturesBodyParams { + impl ::std::convert::TryFrom + for super::PostGetIndexerHealthBody { type Error = super::error::ConversionError; fn try_from( - value: PostGetLatestCompressionSignaturesBodyParams, + value: PostGetIndexerHealthBody, ) -> ::std::result::Result { Ok(Self { - cursor: value.cursor?, - limit: value.limit?, + id: value.id?, + jsonrpc: value.jsonrpc?, + method: value.method?, }) } } - impl ::std::convert::From - for PostGetLatestCompressionSignaturesBodyParams { - fn from(value: super::PostGetLatestCompressionSignaturesBodyParams) -> Self { + impl ::std::convert::From + for PostGetIndexerHealthBody { + fn from(value: super::PostGetIndexerHealthBody) -> Self { Self { - cursor: Ok(value.cursor), - limit: Ok(value.limit), + id: Ok(value.id), + jsonrpc: Ok(value.jsonrpc), + method: Ok(value.method), } } } #[derive(Clone, Debug)] - pub struct PostGetLatestCompressionSignaturesResponse { + pub struct PostGetIndexerHealthResponse { error: ::std::result::Result< - ::std::option::Option< - super::PostGetLatestCompressionSignaturesResponseError, - >, + ::std::option::Option, ::std::string::String, >, id: ::std::result::Result< - super::PostGetLatestCompressionSignaturesResponseId, + super::PostGetIndexerHealthResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetLatestCompressionSignaturesResponseJsonrpc, + super::PostGetIndexerHealthResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< - ::std::option::Option< - super::PostGetLatestCompressionSignaturesResponseResult, - >, + super::PostGetIndexerHealthResponseResult, ::std::string::String, >, } - impl ::std::default::Default for PostGetLatestCompressionSignaturesResponse { + impl ::std::default::Default for PostGetIndexerHealthResponse { fn default() -> Self { Self { error: Ok(Default::default()), id: Err("no value supplied for id".to_string()), jsonrpc: Err("no value supplied for jsonrpc".to_string()), - result: Ok(Default::default()), + result: Ok( + super::defaults::post_get_indexer_health_response_result(), + ), } } } - impl PostGetLatestCompressionSignaturesResponse { + impl PostGetIndexerHealthResponse { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< - ::std::option::Option< - super::PostGetLatestCompressionSignaturesResponseError, - >, + ::std::option::Option, >, T::Error: ::std::fmt::Display, { @@ -46020,9 +41472,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetLatestCompressionSignaturesResponseId, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.id = value @@ -46032,9 +41482,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn jsonrpc(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetLatestCompressionSignaturesResponseJsonrpc, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.jsonrpc = value @@ -46046,11 +41494,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn result(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - ::std::option::Option< - super::PostGetLatestCompressionSignaturesResponseResult, - >, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.result = value @@ -46061,11 +41505,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetLatestCompressionSignaturesResponse { + impl ::std::convert::TryFrom + for super::PostGetIndexerHealthResponse { type Error = super::error::ConversionError; fn try_from( - value: PostGetLatestCompressionSignaturesResponse, + value: PostGetIndexerHealthResponse, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -46075,9 +41519,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetLatestCompressionSignaturesResponse { - fn from(value: super::PostGetLatestCompressionSignaturesResponse) -> Self { + impl ::std::convert::From + for PostGetIndexerHealthResponse { + fn from(value: super::PostGetIndexerHealthResponse) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -46087,7 +41531,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetLatestCompressionSignaturesResponseError { + pub struct PostGetIndexerHealthResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -46097,8 +41541,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::string::String, >, } - impl ::std::default::Default - for PostGetLatestCompressionSignaturesResponseError { + impl ::std::default::Default for PostGetIndexerHealthResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -46106,7 +41549,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetLatestCompressionSignaturesResponseError { + impl PostGetIndexerHealthResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -46132,11 +41575,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetLatestCompressionSignaturesResponseError { + impl ::std::convert::TryFrom + for super::PostGetIndexerHealthResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetLatestCompressionSignaturesResponseError, + value: PostGetIndexerHealthResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -46144,11 +41587,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetLatestCompressionSignaturesResponseError { - fn from( - value: super::PostGetLatestCompressionSignaturesResponseError, - ) -> Self { + impl ::std::convert::From + for PostGetIndexerHealthResponseError { + fn from(value: super::PostGetIndexerHealthResponseError) -> Self { Self { code: Ok(value.code), message: Ok(value.message), @@ -46156,107 +41597,33 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetLatestCompressionSignaturesResponseResult { - context: ::std::result::Result, - value: ::std::result::Result< - super::PaginatedSignatureInfoList, - ::std::string::String, - >, - } - impl ::std::default::Default - for PostGetLatestCompressionSignaturesResponseResult { - fn default() -> Self { - Self { - context: Err("no value supplied for context".to_string()), - value: Err("no value supplied for value".to_string()), - } - } - } - impl PostGetLatestCompressionSignaturesResponseResult { - pub fn context(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.context = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for context: {e}") - }); - self - } - pub fn value(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.value = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for value: {e}") - }); - self - } - } - impl ::std::convert::TryFrom - for super::PostGetLatestCompressionSignaturesResponseResult { - type Error = super::error::ConversionError; - fn try_from( - value: PostGetLatestCompressionSignaturesResponseResult, - ) -> ::std::result::Result { - Ok(Self { - context: value.context?, - value: value.value?, - }) - } - } - impl ::std::convert::From< - super::PostGetLatestCompressionSignaturesResponseResult, - > for PostGetLatestCompressionSignaturesResponseResult { - fn from( - value: super::PostGetLatestCompressionSignaturesResponseResult, - ) -> Self { - Self { - context: Ok(value.context), - value: Ok(value.value), - } - } - } - #[derive(Clone, Debug)] - pub struct PostGetLatestNonVotingSignaturesBody { + pub struct PostGetIndexerSlotBody { id: ::std::result::Result< - super::PostGetLatestNonVotingSignaturesBodyId, + super::PostGetIndexerSlotBodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetLatestNonVotingSignaturesBodyJsonrpc, + super::PostGetIndexerSlotBodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetLatestNonVotingSignaturesBodyMethod, - ::std::string::String, - >, - params: ::std::result::Result< - super::PostGetLatestNonVotingSignaturesBodyParams, + super::PostGetIndexerSlotBodyMethod, ::std::string::String, >, } - impl ::std::default::Default for PostGetLatestNonVotingSignaturesBody { + impl ::std::default::Default for PostGetIndexerSlotBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), jsonrpc: Err("no value supplied for jsonrpc".to_string()), method: Err("no value supplied for method".to_string()), - params: Err("no value supplied for params".to_string()), } } } - impl PostGetLatestNonVotingSignaturesBody { + impl PostGetIndexerSlotBody { pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetLatestNonVotingSignaturesBodyId, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.id = value @@ -46266,9 +41633,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn jsonrpc(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetLatestNonVotingSignaturesBodyJsonrpc, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.jsonrpc = value @@ -46280,9 +41645,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn method(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetLatestNonVotingSignaturesBodyMethod, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.method = value @@ -46292,152 +41655,61 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }); self } - pub fn params(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - super::PostGetLatestNonVotingSignaturesBodyParams, - >, - T::Error: ::std::fmt::Display, - { - self.params = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for params: {e}") - }); - self - } } - impl ::std::convert::TryFrom - for super::PostGetLatestNonVotingSignaturesBody { + impl ::std::convert::TryFrom + for super::PostGetIndexerSlotBody { type Error = super::error::ConversionError; fn try_from( - value: PostGetLatestNonVotingSignaturesBody, + value: PostGetIndexerSlotBody, ) -> ::std::result::Result { Ok(Self { id: value.id?, jsonrpc: value.jsonrpc?, method: value.method?, - params: value.params?, }) } } - impl ::std::convert::From - for PostGetLatestNonVotingSignaturesBody { - fn from(value: super::PostGetLatestNonVotingSignaturesBody) -> Self { + impl ::std::convert::From + for PostGetIndexerSlotBody { + fn from(value: super::PostGetIndexerSlotBody) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), method: Ok(value.method), - params: Ok(value.params), - } - } - } - #[derive(Clone, Debug)] - pub struct PostGetLatestNonVotingSignaturesBodyParams { - cursor: ::std::result::Result< - ::std::option::Option<::std::string::String>, - ::std::string::String, - >, - limit: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - } - impl ::std::default::Default for PostGetLatestNonVotingSignaturesBodyParams { - fn default() -> Self { - Self { - cursor: Ok(Default::default()), - limit: Ok(Default::default()), - } - } - } - impl PostGetLatestNonVotingSignaturesBodyParams { - pub fn cursor(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: ::std::fmt::Display, - { - self.cursor = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for cursor: {e}") - }); - self - } - pub fn limit(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::option::Option>, - T::Error: ::std::fmt::Display, - { - self.limit = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for limit: {e}") - }); - self - } - } - impl ::std::convert::TryFrom - for super::PostGetLatestNonVotingSignaturesBodyParams { - type Error = super::error::ConversionError; - fn try_from( - value: PostGetLatestNonVotingSignaturesBodyParams, - ) -> ::std::result::Result { - Ok(Self { - cursor: value.cursor?, - limit: value.limit?, - }) - } - } - impl ::std::convert::From - for PostGetLatestNonVotingSignaturesBodyParams { - fn from(value: super::PostGetLatestNonVotingSignaturesBodyParams) -> Self { - Self { - cursor: Ok(value.cursor), - limit: Ok(value.limit), } } } #[derive(Clone, Debug)] - pub struct PostGetLatestNonVotingSignaturesResponse { + pub struct PostGetIndexerSlotResponse { error: ::std::result::Result< - ::std::option::Option< - super::PostGetLatestNonVotingSignaturesResponseError, - >, + ::std::option::Option, ::std::string::String, >, id: ::std::result::Result< - super::PostGetLatestNonVotingSignaturesResponseId, + super::PostGetIndexerSlotResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetLatestNonVotingSignaturesResponseJsonrpc, - ::std::string::String, - >, - result: ::std::result::Result< - ::std::option::Option< - super::PostGetLatestNonVotingSignaturesResponseResult, - >, + super::PostGetIndexerSlotResponseJsonrpc, ::std::string::String, >, + result: ::std::result::Result, } - impl ::std::default::Default for PostGetLatestNonVotingSignaturesResponse { + impl ::std::default::Default for PostGetIndexerSlotResponse { fn default() -> Self { Self { error: Ok(Default::default()), id: Err("no value supplied for id".to_string()), jsonrpc: Err("no value supplied for jsonrpc".to_string()), - result: Ok(Default::default()), + result: Ok(super::defaults::default_u64::()), } } } - impl PostGetLatestNonVotingSignaturesResponse { + impl PostGetIndexerSlotResponse { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< - ::std::option::Option< - super::PostGetLatestNonVotingSignaturesResponseError, - >, + ::std::option::Option, >, T::Error: ::std::fmt::Display, { @@ -46450,9 +41722,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetLatestNonVotingSignaturesResponseId, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.id = value @@ -46462,9 +41732,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn jsonrpc(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetLatestNonVotingSignaturesResponseJsonrpc, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.jsonrpc = value @@ -46476,11 +41744,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn result(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - ::std::option::Option< - super::PostGetLatestNonVotingSignaturesResponseResult, - >, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.result = value @@ -46491,11 +41755,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetLatestNonVotingSignaturesResponse { + impl ::std::convert::TryFrom + for super::PostGetIndexerSlotResponse { type Error = super::error::ConversionError; fn try_from( - value: PostGetLatestNonVotingSignaturesResponse, + value: PostGetIndexerSlotResponse, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -46505,9 +41769,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetLatestNonVotingSignaturesResponse { - fn from(value: super::PostGetLatestNonVotingSignaturesResponse) -> Self { + impl ::std::convert::From + for PostGetIndexerSlotResponse { + fn from(value: super::PostGetIndexerSlotResponse) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -46517,7 +41781,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetLatestNonVotingSignaturesResponseError { + pub struct PostGetIndexerSlotResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -46527,7 +41791,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::string::String, >, } - impl ::std::default::Default for PostGetLatestNonVotingSignaturesResponseError { + impl ::std::default::Default for PostGetIndexerSlotResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -46535,7 +41799,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetLatestNonVotingSignaturesResponseError { + impl PostGetIndexerSlotResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -46561,11 +41825,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetLatestNonVotingSignaturesResponseError { + impl ::std::convert::TryFrom + for super::PostGetIndexerSlotResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetLatestNonVotingSignaturesResponseError, + value: PostGetIndexerSlotResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -46573,11 +41837,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetLatestNonVotingSignaturesResponseError { - fn from( - value: super::PostGetLatestNonVotingSignaturesResponseError, - ) -> Self { + impl ::std::convert::From + for PostGetIndexerSlotResponseError { + fn from(value: super::PostGetIndexerSlotResponseError) -> Self { Self { code: Ok(value.code), message: Ok(value.message), @@ -46585,90 +41847,25 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetLatestNonVotingSignaturesResponseResult { - context: ::std::result::Result, - value: ::std::result::Result< - super::SignatureInfoListWithError, - ::std::string::String, - >, - } - impl ::std::default::Default for PostGetLatestNonVotingSignaturesResponseResult { - fn default() -> Self { - Self { - context: Err("no value supplied for context".to_string()), - value: Err("no value supplied for value".to_string()), - } - } - } - impl PostGetLatestNonVotingSignaturesResponseResult { - pub fn context(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.context = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for context: {e}") - }); - self - } - pub fn value(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.value = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for value: {e}") - }); - self - } - } - impl ::std::convert::TryFrom - for super::PostGetLatestNonVotingSignaturesResponseResult { - type Error = super::error::ConversionError; - fn try_from( - value: PostGetLatestNonVotingSignaturesResponseResult, - ) -> ::std::result::Result { - Ok(Self { - context: value.context?, - value: value.value?, - }) - } - } - impl ::std::convert::From - for PostGetLatestNonVotingSignaturesResponseResult { - fn from( - value: super::PostGetLatestNonVotingSignaturesResponseResult, - ) -> Self { - Self { - context: Ok(value.context), - value: Ok(value.value), - } - } - } - #[derive(Clone, Debug)] - pub struct PostGetMultipleAccountInterfacesBody { + pub struct PostGetLatestCompressionSignaturesBody { id: ::std::result::Result< - super::PostGetMultipleAccountInterfacesBodyId, + super::PostGetLatestCompressionSignaturesBodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetMultipleAccountInterfacesBodyJsonrpc, + super::PostGetLatestCompressionSignaturesBodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetMultipleAccountInterfacesBodyMethod, + super::PostGetLatestCompressionSignaturesBodyMethod, ::std::string::String, >, params: ::std::result::Result< - super::PostGetMultipleAccountInterfacesBodyParams, + super::PostGetLatestCompressionSignaturesBodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetMultipleAccountInterfacesBody { + impl ::std::default::Default for PostGetLatestCompressionSignaturesBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -46678,11 +41875,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleAccountInterfacesBody { + impl PostGetLatestCompressionSignaturesBody { pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleAccountInterfacesBodyId, + super::PostGetLatestCompressionSignaturesBodyId, >, T::Error: ::std::fmt::Display, { @@ -46694,7 +41891,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleAccountInterfacesBodyJsonrpc, + super::PostGetLatestCompressionSignaturesBodyJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -46708,7 +41905,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn method(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleAccountInterfacesBodyMethod, + super::PostGetLatestCompressionSignaturesBodyMethod, >, T::Error: ::std::fmt::Display, { @@ -46722,7 +41919,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn params(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleAccountInterfacesBodyParams, + super::PostGetLatestCompressionSignaturesBodyParams, >, T::Error: ::std::fmt::Display, { @@ -46734,11 +41931,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetMultipleAccountInterfacesBody { + impl ::std::convert::TryFrom + for super::PostGetLatestCompressionSignaturesBody { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleAccountInterfacesBody, + value: PostGetLatestCompressionSignaturesBody, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -46748,9 +41945,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetMultipleAccountInterfacesBody { - fn from(value: super::PostGetMultipleAccountInterfacesBody) -> Self { + impl ::std::convert::From + for PostGetLatestCompressionSignaturesBody { + fn from(value: super::PostGetLatestCompressionSignaturesBody) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -46760,76 +41957,95 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetMultipleAccountInterfacesBodyParams { - addresses: ::std::result::Result< - ::std::vec::Vec, + pub struct PostGetLatestCompressionSignaturesBodyParams { + cursor: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + limit: ::std::result::Result< + ::std::option::Option, ::std::string::String, >, } - impl ::std::default::Default for PostGetMultipleAccountInterfacesBodyParams { + impl ::std::default::Default for PostGetLatestCompressionSignaturesBodyParams { fn default() -> Self { Self { - addresses: Err("no value supplied for addresses".to_string()), + cursor: Ok(Default::default()), + limit: Ok(Default::default()), } } } - impl PostGetMultipleAccountInterfacesBodyParams { - pub fn addresses(mut self, value: T) -> Self + impl PostGetLatestCompressionSignaturesBodyParams { + pub fn cursor(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: ::std::fmt::Display, { - self.addresses = value + self.cursor = value .try_into() .map_err(|e| { - format!("error converting supplied value for addresses: {e}") + format!("error converting supplied value for cursor: {e}") + }); + self + } + pub fn limit(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, + { + self.limit = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for limit: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetMultipleAccountInterfacesBodyParams { + impl ::std::convert::TryFrom + for super::PostGetLatestCompressionSignaturesBodyParams { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleAccountInterfacesBodyParams, + value: PostGetLatestCompressionSignaturesBodyParams, ) -> ::std::result::Result { Ok(Self { - addresses: value.addresses?, + cursor: value.cursor?, + limit: value.limit?, }) } } - impl ::std::convert::From - for PostGetMultipleAccountInterfacesBodyParams { - fn from(value: super::PostGetMultipleAccountInterfacesBodyParams) -> Self { + impl ::std::convert::From + for PostGetLatestCompressionSignaturesBodyParams { + fn from(value: super::PostGetLatestCompressionSignaturesBodyParams) -> Self { Self { - addresses: Ok(value.addresses), + cursor: Ok(value.cursor), + limit: Ok(value.limit), } } } #[derive(Clone, Debug)] - pub struct PostGetMultipleAccountInterfacesResponse { + pub struct PostGetLatestCompressionSignaturesResponse { error: ::std::result::Result< ::std::option::Option< - super::PostGetMultipleAccountInterfacesResponseError, + super::PostGetLatestCompressionSignaturesResponseError, >, ::std::string::String, >, id: ::std::result::Result< - super::PostGetMultipleAccountInterfacesResponseId, + super::PostGetLatestCompressionSignaturesResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetMultipleAccountInterfacesResponseJsonrpc, + super::PostGetLatestCompressionSignaturesResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< ::std::option::Option< - super::PostGetMultipleAccountInterfacesResponseResult, + super::PostGetLatestCompressionSignaturesResponseResult, >, ::std::string::String, >, } - impl ::std::default::Default for PostGetMultipleAccountInterfacesResponse { + impl ::std::default::Default for PostGetLatestCompressionSignaturesResponse { fn default() -> Self { Self { error: Ok(Default::default()), @@ -46839,12 +42055,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleAccountInterfacesResponse { + impl PostGetLatestCompressionSignaturesResponse { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetMultipleAccountInterfacesResponseError, + super::PostGetLatestCompressionSignaturesResponseError, >, >, T::Error: ::std::fmt::Display, @@ -46859,7 +42075,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleAccountInterfacesResponseId, + super::PostGetLatestCompressionSignaturesResponseId, >, T::Error: ::std::fmt::Display, { @@ -46871,7 +42087,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleAccountInterfacesResponseJsonrpc, + super::PostGetLatestCompressionSignaturesResponseJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -46886,7 +42102,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetMultipleAccountInterfacesResponseResult, + super::PostGetLatestCompressionSignaturesResponseResult, >, >, T::Error: ::std::fmt::Display, @@ -46899,11 +42115,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetMultipleAccountInterfacesResponse { + impl ::std::convert::TryFrom + for super::PostGetLatestCompressionSignaturesResponse { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleAccountInterfacesResponse, + value: PostGetLatestCompressionSignaturesResponse, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -46913,9 +42129,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetMultipleAccountInterfacesResponse { - fn from(value: super::PostGetMultipleAccountInterfacesResponse) -> Self { + impl ::std::convert::From + for PostGetLatestCompressionSignaturesResponse { + fn from(value: super::PostGetLatestCompressionSignaturesResponse) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -46925,7 +42141,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetMultipleAccountInterfacesResponseError { + pub struct PostGetLatestCompressionSignaturesResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -46935,7 +42151,8 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::string::String, >, } - impl ::std::default::Default for PostGetMultipleAccountInterfacesResponseError { + impl ::std::default::Default + for PostGetLatestCompressionSignaturesResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -46943,7 +42160,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleAccountInterfacesResponseError { + impl PostGetLatestCompressionSignaturesResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -46969,11 +42186,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetMultipleAccountInterfacesResponseError { + impl ::std::convert::TryFrom + for super::PostGetLatestCompressionSignaturesResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleAccountInterfacesResponseError, + value: PostGetLatestCompressionSignaturesResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -46981,10 +42198,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetMultipleAccountInterfacesResponseError { + impl ::std::convert::From + for PostGetLatestCompressionSignaturesResponseError { fn from( - value: super::PostGetMultipleAccountInterfacesResponseError, + value: super::PostGetLatestCompressionSignaturesResponseError, ) -> Self { Self { code: Ok(value.code), @@ -46993,14 +42210,15 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetMultipleAccountInterfacesResponseResult { + pub struct PostGetLatestCompressionSignaturesResponseResult { context: ::std::result::Result, value: ::std::result::Result< - ::std::vec::Vec<::std::option::Option>, + super::PaginatedSignatureInfoList, ::std::string::String, >, } - impl ::std::default::Default for PostGetMultipleAccountInterfacesResponseResult { + impl ::std::default::Default + for PostGetLatestCompressionSignaturesResponseResult { fn default() -> Self { Self { context: Err("no value supplied for context".to_string()), @@ -47008,7 +42226,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleAccountInterfacesResponseResult { + impl PostGetLatestCompressionSignaturesResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -47023,9 +42241,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn value(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - ::std::vec::Vec<::std::option::Option>, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.value = value @@ -47036,11 +42252,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetMultipleAccountInterfacesResponseResult { + impl ::std::convert::TryFrom + for super::PostGetLatestCompressionSignaturesResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleAccountInterfacesResponseResult, + value: PostGetLatestCompressionSignaturesResponseResult, ) -> ::std::result::Result { Ok(Self { context: value.context?, @@ -47048,10 +42264,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetMultipleAccountInterfacesResponseResult { + impl ::std::convert::From< + super::PostGetLatestCompressionSignaturesResponseResult, + > for PostGetLatestCompressionSignaturesResponseResult { fn from( - value: super::PostGetMultipleAccountInterfacesResponseResult, + value: super::PostGetLatestCompressionSignaturesResponseResult, ) -> Self { Self { context: Ok(value.context), @@ -47060,25 +42277,25 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetMultipleCompressedAccountProofsBody { + pub struct PostGetLatestNonVotingSignaturesBody { id: ::std::result::Result< - super::PostGetMultipleCompressedAccountProofsBodyId, + super::PostGetLatestNonVotingSignaturesBodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetMultipleCompressedAccountProofsBodyJsonrpc, + super::PostGetLatestNonVotingSignaturesBodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetMultipleCompressedAccountProofsBodyMethod, + super::PostGetLatestNonVotingSignaturesBodyMethod, ::std::string::String, >, params: ::std::result::Result< - ::std::vec::Vec, + super::PostGetLatestNonVotingSignaturesBodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetMultipleCompressedAccountProofsBody { + impl ::std::default::Default for PostGetLatestNonVotingSignaturesBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -47088,11 +42305,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleCompressedAccountProofsBody { + impl PostGetLatestNonVotingSignaturesBody { pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleCompressedAccountProofsBodyId, + super::PostGetLatestNonVotingSignaturesBodyId, >, T::Error: ::std::fmt::Display, { @@ -47104,7 +42321,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleCompressedAccountProofsBodyJsonrpc, + super::PostGetLatestNonVotingSignaturesBodyJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -47118,7 +42335,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn method(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleCompressedAccountProofsBodyMethod, + super::PostGetLatestNonVotingSignaturesBodyMethod, >, T::Error: ::std::fmt::Display, { @@ -47131,7 +42348,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn params(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto< + super::PostGetLatestNonVotingSignaturesBodyParams, + >, T::Error: ::std::fmt::Display, { self.params = value @@ -47142,11 +42361,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetMultipleCompressedAccountProofsBody { + impl ::std::convert::TryFrom + for super::PostGetLatestNonVotingSignaturesBody { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleCompressedAccountProofsBody, + value: PostGetLatestNonVotingSignaturesBody, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -47156,9 +42375,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetMultipleCompressedAccountProofsBody { - fn from(value: super::PostGetMultipleCompressedAccountProofsBody) -> Self { + impl ::std::convert::From + for PostGetLatestNonVotingSignaturesBody { + fn from(value: super::PostGetLatestNonVotingSignaturesBody) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -47168,29 +42387,95 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetMultipleCompressedAccountProofsResponse { + pub struct PostGetLatestNonVotingSignaturesBodyParams { + cursor: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + limit: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + } + impl ::std::default::Default for PostGetLatestNonVotingSignaturesBodyParams { + fn default() -> Self { + Self { + cursor: Ok(Default::default()), + limit: Ok(Default::default()), + } + } + } + impl PostGetLatestNonVotingSignaturesBodyParams { + pub fn cursor(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, + { + self.cursor = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for cursor: {e}") + }); + self + } + pub fn limit(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, + { + self.limit = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for limit: {e}") + }); + self + } + } + impl ::std::convert::TryFrom + for super::PostGetLatestNonVotingSignaturesBodyParams { + type Error = super::error::ConversionError; + fn try_from( + value: PostGetLatestNonVotingSignaturesBodyParams, + ) -> ::std::result::Result { + Ok(Self { + cursor: value.cursor?, + limit: value.limit?, + }) + } + } + impl ::std::convert::From + for PostGetLatestNonVotingSignaturesBodyParams { + fn from(value: super::PostGetLatestNonVotingSignaturesBodyParams) -> Self { + Self { + cursor: Ok(value.cursor), + limit: Ok(value.limit), + } + } + } + #[derive(Clone, Debug)] + pub struct PostGetLatestNonVotingSignaturesResponse { error: ::std::result::Result< ::std::option::Option< - super::PostGetMultipleCompressedAccountProofsResponseError, + super::PostGetLatestNonVotingSignaturesResponseError, >, ::std::string::String, >, id: ::std::result::Result< - super::PostGetMultipleCompressedAccountProofsResponseId, + super::PostGetLatestNonVotingSignaturesResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetMultipleCompressedAccountProofsResponseJsonrpc, + super::PostGetLatestNonVotingSignaturesResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< ::std::option::Option< - super::PostGetMultipleCompressedAccountProofsResponseResult, + super::PostGetLatestNonVotingSignaturesResponseResult, >, ::std::string::String, >, } - impl ::std::default::Default for PostGetMultipleCompressedAccountProofsResponse { + impl ::std::default::Default for PostGetLatestNonVotingSignaturesResponse { fn default() -> Self { Self { error: Ok(Default::default()), @@ -47200,12 +42485,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleCompressedAccountProofsResponse { + impl PostGetLatestNonVotingSignaturesResponse { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetMultipleCompressedAccountProofsResponseError, + super::PostGetLatestNonVotingSignaturesResponseError, >, >, T::Error: ::std::fmt::Display, @@ -47220,7 +42505,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleCompressedAccountProofsResponseId, + super::PostGetLatestNonVotingSignaturesResponseId, >, T::Error: ::std::fmt::Display, { @@ -47232,7 +42517,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleCompressedAccountProofsResponseJsonrpc, + super::PostGetLatestNonVotingSignaturesResponseJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -47247,7 +42532,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetMultipleCompressedAccountProofsResponseResult, + super::PostGetLatestNonVotingSignaturesResponseResult, >, >, T::Error: ::std::fmt::Display, @@ -47260,11 +42545,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetMultipleCompressedAccountProofsResponse { + impl ::std::convert::TryFrom + for super::PostGetLatestNonVotingSignaturesResponse { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleCompressedAccountProofsResponse, + value: PostGetLatestNonVotingSignaturesResponse, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -47274,11 +42559,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetMultipleCompressedAccountProofsResponse { - fn from( - value: super::PostGetMultipleCompressedAccountProofsResponse, - ) -> Self { + impl ::std::convert::From + for PostGetLatestNonVotingSignaturesResponse { + fn from(value: super::PostGetLatestNonVotingSignaturesResponse) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -47288,7 +42571,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetMultipleCompressedAccountProofsResponseError { + pub struct PostGetLatestNonVotingSignaturesResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -47298,8 +42581,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::string::String, >, } - impl ::std::default::Default - for PostGetMultipleCompressedAccountProofsResponseError { + impl ::std::default::Default for PostGetLatestNonVotingSignaturesResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -47307,7 +42589,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleCompressedAccountProofsResponseError { + impl PostGetLatestNonVotingSignaturesResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -47333,11 +42615,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetMultipleCompressedAccountProofsResponseError { + impl ::std::convert::TryFrom + for super::PostGetLatestNonVotingSignaturesResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleCompressedAccountProofsResponseError, + value: PostGetLatestNonVotingSignaturesResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -47345,11 +42627,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From< - super::PostGetMultipleCompressedAccountProofsResponseError, - > for PostGetMultipleCompressedAccountProofsResponseError { + impl ::std::convert::From + for PostGetLatestNonVotingSignaturesResponseError { fn from( - value: super::PostGetMultipleCompressedAccountProofsResponseError, + value: super::PostGetLatestNonVotingSignaturesResponseError, ) -> Self { Self { code: Ok(value.code), @@ -47358,15 +42639,14 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetMultipleCompressedAccountProofsResponseResult { + pub struct PostGetLatestNonVotingSignaturesResponseResult { context: ::std::result::Result, value: ::std::result::Result< - ::std::vec::Vec, + super::SignatureInfoListWithError, ::std::string::String, >, } - impl ::std::default::Default - for PostGetMultipleCompressedAccountProofsResponseResult { + impl ::std::default::Default for PostGetLatestNonVotingSignaturesResponseResult { fn default() -> Self { Self { context: Err("no value supplied for context".to_string()), @@ -47374,7 +42654,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleCompressedAccountProofsResponseResult { + impl PostGetLatestNonVotingSignaturesResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -47389,9 +42669,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn value(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - ::std::vec::Vec, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.value = value @@ -47402,12 +42680,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom< - PostGetMultipleCompressedAccountProofsResponseResult, - > for super::PostGetMultipleCompressedAccountProofsResponseResult { + impl ::std::convert::TryFrom + for super::PostGetLatestNonVotingSignaturesResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleCompressedAccountProofsResponseResult, + value: PostGetLatestNonVotingSignaturesResponseResult, ) -> ::std::result::Result { Ok(Self { context: value.context?, @@ -47415,11 +42692,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From< - super::PostGetMultipleCompressedAccountProofsResponseResult, - > for PostGetMultipleCompressedAccountProofsResponseResult { + impl ::std::convert::From + for PostGetLatestNonVotingSignaturesResponseResult { fn from( - value: super::PostGetMultipleCompressedAccountProofsResponseResult, + value: super::PostGetLatestNonVotingSignaturesResponseResult, ) -> Self { Self { context: Ok(value.context), @@ -47428,25 +42704,25 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetMultipleCompressedAccountProofsV2Body { + pub struct PostGetMultipleAccountInterfacesBody { id: ::std::result::Result< - super::PostGetMultipleCompressedAccountProofsV2BodyId, + super::PostGetMultipleAccountInterfacesBodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetMultipleCompressedAccountProofsV2BodyJsonrpc, + super::PostGetMultipleAccountInterfacesBodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetMultipleCompressedAccountProofsV2BodyMethod, + super::PostGetMultipleAccountInterfacesBodyMethod, ::std::string::String, >, params: ::std::result::Result< - ::std::vec::Vec, + super::PostGetMultipleAccountInterfacesBodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetMultipleCompressedAccountProofsV2Body { + impl ::std::default::Default for PostGetMultipleAccountInterfacesBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -47456,11 +42732,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleCompressedAccountProofsV2Body { + impl PostGetMultipleAccountInterfacesBody { pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleCompressedAccountProofsV2BodyId, + super::PostGetMultipleAccountInterfacesBodyId, >, T::Error: ::std::fmt::Display, { @@ -47472,7 +42748,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleCompressedAccountProofsV2BodyJsonrpc, + super::PostGetMultipleAccountInterfacesBodyJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -47486,7 +42762,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn method(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleCompressedAccountProofsV2BodyMethod, + super::PostGetMultipleAccountInterfacesBodyMethod, >, T::Error: ::std::fmt::Display, { @@ -47499,7 +42775,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn params(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto< + super::PostGetMultipleAccountInterfacesBodyParams, + >, T::Error: ::std::fmt::Display, { self.params = value @@ -47510,11 +42788,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetMultipleCompressedAccountProofsV2Body { + impl ::std::convert::TryFrom + for super::PostGetMultipleAccountInterfacesBody { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleCompressedAccountProofsV2Body, + value: PostGetMultipleAccountInterfacesBody, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -47524,9 +42802,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetMultipleCompressedAccountProofsV2Body { - fn from(value: super::PostGetMultipleCompressedAccountProofsV2Body) -> Self { + impl ::std::convert::From + for PostGetMultipleAccountInterfacesBody { + fn from(value: super::PostGetMultipleAccountInterfacesBody) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -47536,30 +42814,76 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetMultipleCompressedAccountProofsV2Response { + pub struct PostGetMultipleAccountInterfacesBodyParams { + addresses: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + } + impl ::std::default::Default for PostGetMultipleAccountInterfacesBodyParams { + fn default() -> Self { + Self { + addresses: Err("no value supplied for addresses".to_string()), + } + } + } + impl PostGetMultipleAccountInterfacesBodyParams { + pub fn addresses(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, + { + self.addresses = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for addresses: {e}") + }); + self + } + } + impl ::std::convert::TryFrom + for super::PostGetMultipleAccountInterfacesBodyParams { + type Error = super::error::ConversionError; + fn try_from( + value: PostGetMultipleAccountInterfacesBodyParams, + ) -> ::std::result::Result { + Ok(Self { + addresses: value.addresses?, + }) + } + } + impl ::std::convert::From + for PostGetMultipleAccountInterfacesBodyParams { + fn from(value: super::PostGetMultipleAccountInterfacesBodyParams) -> Self { + Self { + addresses: Ok(value.addresses), + } + } + } + #[derive(Clone, Debug)] + pub struct PostGetMultipleAccountInterfacesResponse { error: ::std::result::Result< ::std::option::Option< - super::PostGetMultipleCompressedAccountProofsV2ResponseError, + super::PostGetMultipleAccountInterfacesResponseError, >, ::std::string::String, >, id: ::std::result::Result< - super::PostGetMultipleCompressedAccountProofsV2ResponseId, + super::PostGetMultipleAccountInterfacesResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetMultipleCompressedAccountProofsV2ResponseJsonrpc, + super::PostGetMultipleAccountInterfacesResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< ::std::option::Option< - super::PostGetMultipleCompressedAccountProofsV2ResponseResult, + super::PostGetMultipleAccountInterfacesResponseResult, >, ::std::string::String, >, } - impl ::std::default::Default - for PostGetMultipleCompressedAccountProofsV2Response { + impl ::std::default::Default for PostGetMultipleAccountInterfacesResponse { fn default() -> Self { Self { error: Ok(Default::default()), @@ -47569,12 +42893,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleCompressedAccountProofsV2Response { + impl PostGetMultipleAccountInterfacesResponse { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetMultipleCompressedAccountProofsV2ResponseError, + super::PostGetMultipleAccountInterfacesResponseError, >, >, T::Error: ::std::fmt::Display, @@ -47589,7 +42913,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleCompressedAccountProofsV2ResponseId, + super::PostGetMultipleAccountInterfacesResponseId, >, T::Error: ::std::fmt::Display, { @@ -47601,7 +42925,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleCompressedAccountProofsV2ResponseJsonrpc, + super::PostGetMultipleAccountInterfacesResponseJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -47616,7 +42940,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetMultipleCompressedAccountProofsV2ResponseResult, + super::PostGetMultipleAccountInterfacesResponseResult, >, >, T::Error: ::std::fmt::Display, @@ -47629,11 +42953,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetMultipleCompressedAccountProofsV2Response { + impl ::std::convert::TryFrom + for super::PostGetMultipleAccountInterfacesResponse { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleCompressedAccountProofsV2Response, + value: PostGetMultipleAccountInterfacesResponse, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -47643,12 +42967,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From< - super::PostGetMultipleCompressedAccountProofsV2Response, - > for PostGetMultipleCompressedAccountProofsV2Response { - fn from( - value: super::PostGetMultipleCompressedAccountProofsV2Response, - ) -> Self { + impl ::std::convert::From + for PostGetMultipleAccountInterfacesResponse { + fn from(value: super::PostGetMultipleAccountInterfacesResponse) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -47658,7 +42979,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetMultipleCompressedAccountProofsV2ResponseError { + pub struct PostGetMultipleAccountInterfacesResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -47668,8 +42989,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::string::String, >, } - impl ::std::default::Default - for PostGetMultipleCompressedAccountProofsV2ResponseError { + impl ::std::default::Default for PostGetMultipleAccountInterfacesResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -47677,7 +42997,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleCompressedAccountProofsV2ResponseError { + impl PostGetMultipleAccountInterfacesResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -47703,12 +43023,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom< - PostGetMultipleCompressedAccountProofsV2ResponseError, - > for super::PostGetMultipleCompressedAccountProofsV2ResponseError { + impl ::std::convert::TryFrom + for super::PostGetMultipleAccountInterfacesResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleCompressedAccountProofsV2ResponseError, + value: PostGetMultipleAccountInterfacesResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -47716,11 +43035,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From< - super::PostGetMultipleCompressedAccountProofsV2ResponseError, - > for PostGetMultipleCompressedAccountProofsV2ResponseError { + impl ::std::convert::From + for PostGetMultipleAccountInterfacesResponseError { fn from( - value: super::PostGetMultipleCompressedAccountProofsV2ResponseError, + value: super::PostGetMultipleAccountInterfacesResponseError, ) -> Self { Self { code: Ok(value.code), @@ -47729,15 +43047,14 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetMultipleCompressedAccountProofsV2ResponseResult { + pub struct PostGetMultipleAccountInterfacesResponseResult { context: ::std::result::Result, value: ::std::result::Result< - ::std::vec::Vec, + ::std::vec::Vec<::std::option::Option>, ::std::string::String, >, } - impl ::std::default::Default - for PostGetMultipleCompressedAccountProofsV2ResponseResult { + impl ::std::default::Default for PostGetMultipleAccountInterfacesResponseResult { fn default() -> Self { Self { context: Err("no value supplied for context".to_string()), @@ -47745,7 +43062,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleCompressedAccountProofsV2ResponseResult { + impl PostGetMultipleAccountInterfacesResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -47761,7 +43078,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn value(mut self, value: T) -> Self where T: ::std::convert::TryInto< - ::std::vec::Vec, + ::std::vec::Vec<::std::option::Option>, >, T::Error: ::std::fmt::Display, { @@ -47773,12 +43090,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom< - PostGetMultipleCompressedAccountProofsV2ResponseResult, - > for super::PostGetMultipleCompressedAccountProofsV2ResponseResult { + impl ::std::convert::TryFrom + for super::PostGetMultipleAccountInterfacesResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleCompressedAccountProofsV2ResponseResult, + value: PostGetMultipleAccountInterfacesResponseResult, ) -> ::std::result::Result { Ok(Self { context: value.context?, @@ -47786,11 +43102,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From< - super::PostGetMultipleCompressedAccountProofsV2ResponseResult, - > for PostGetMultipleCompressedAccountProofsV2ResponseResult { + impl ::std::convert::From + for PostGetMultipleAccountInterfacesResponseResult { fn from( - value: super::PostGetMultipleCompressedAccountProofsV2ResponseResult, + value: super::PostGetMultipleAccountInterfacesResponseResult, ) -> Self { Self { context: Ok(value.context), @@ -47799,25 +43114,25 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetMultipleCompressedAccountsBody { + pub struct PostGetMultipleCompressedAccountProofsBody { id: ::std::result::Result< - super::PostGetMultipleCompressedAccountsBodyId, + super::PostGetMultipleCompressedAccountProofsBodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetMultipleCompressedAccountsBodyJsonrpc, + super::PostGetMultipleCompressedAccountProofsBodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetMultipleCompressedAccountsBodyMethod, + super::PostGetMultipleCompressedAccountProofsBodyMethod, ::std::string::String, >, params: ::std::result::Result< - super::PostGetMultipleCompressedAccountsBodyParams, + ::std::vec::Vec, ::std::string::String, >, } - impl ::std::default::Default for PostGetMultipleCompressedAccountsBody { + impl ::std::default::Default for PostGetMultipleCompressedAccountProofsBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -47827,11 +43142,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleCompressedAccountsBody { + impl PostGetMultipleCompressedAccountProofsBody { pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleCompressedAccountsBodyId, + super::PostGetMultipleCompressedAccountProofsBodyId, >, T::Error: ::std::fmt::Display, { @@ -47843,7 +43158,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleCompressedAccountsBodyJsonrpc, + super::PostGetMultipleCompressedAccountProofsBodyJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -47857,7 +43172,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn method(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleCompressedAccountsBodyMethod, + super::PostGetMultipleCompressedAccountProofsBodyMethod, >, T::Error: ::std::fmt::Display, { @@ -47870,9 +43185,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn params(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetMultipleCompressedAccountsBodyParams, - >, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { self.params = value @@ -47883,11 +43196,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetMultipleCompressedAccountsBody { + impl ::std::convert::TryFrom + for super::PostGetMultipleCompressedAccountProofsBody { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleCompressedAccountsBody, + value: PostGetMultipleCompressedAccountProofsBody, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -47897,9 +43210,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetMultipleCompressedAccountsBody { - fn from(value: super::PostGetMultipleCompressedAccountsBody) -> Self { + impl ::std::convert::From + for PostGetMultipleCompressedAccountProofsBody { + fn from(value: super::PostGetMultipleCompressedAccountProofsBody) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -47909,99 +43222,29 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetMultipleCompressedAccountsBodyParams { - addresses: ::std::result::Result< - ::std::option::Option<::std::vec::Vec>, - ::std::string::String, - >, - hashes: ::std::result::Result< - ::std::option::Option<::std::vec::Vec>, - ::std::string::String, - >, - } - impl ::std::default::Default for PostGetMultipleCompressedAccountsBodyParams { - fn default() -> Self { - Self { - addresses: Ok(Default::default()), - hashes: Ok(Default::default()), - } - } - } - impl PostGetMultipleCompressedAccountsBodyParams { - pub fn addresses(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - ::std::option::Option<::std::vec::Vec>, - >, - T::Error: ::std::fmt::Display, - { - self.addresses = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for addresses: {e}") - }); - self - } - pub fn hashes(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - ::std::option::Option<::std::vec::Vec>, - >, - T::Error: ::std::fmt::Display, - { - self.hashes = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for hashes: {e}") - }); - self - } - } - impl ::std::convert::TryFrom - for super::PostGetMultipleCompressedAccountsBodyParams { - type Error = super::error::ConversionError; - fn try_from( - value: PostGetMultipleCompressedAccountsBodyParams, - ) -> ::std::result::Result { - Ok(Self { - addresses: value.addresses?, - hashes: value.hashes?, - }) - } - } - impl ::std::convert::From - for PostGetMultipleCompressedAccountsBodyParams { - fn from(value: super::PostGetMultipleCompressedAccountsBodyParams) -> Self { - Self { - addresses: Ok(value.addresses), - hashes: Ok(value.hashes), - } - } - } - #[derive(Clone, Debug)] - pub struct PostGetMultipleCompressedAccountsResponse { + pub struct PostGetMultipleCompressedAccountProofsResponse { error: ::std::result::Result< ::std::option::Option< - super::PostGetMultipleCompressedAccountsResponseError, + super::PostGetMultipleCompressedAccountProofsResponseError, >, ::std::string::String, >, id: ::std::result::Result< - super::PostGetMultipleCompressedAccountsResponseId, + super::PostGetMultipleCompressedAccountProofsResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetMultipleCompressedAccountsResponseJsonrpc, + super::PostGetMultipleCompressedAccountProofsResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< ::std::option::Option< - super::PostGetMultipleCompressedAccountsResponseResult, + super::PostGetMultipleCompressedAccountProofsResponseResult, >, ::std::string::String, >, } - impl ::std::default::Default for PostGetMultipleCompressedAccountsResponse { + impl ::std::default::Default for PostGetMultipleCompressedAccountProofsResponse { fn default() -> Self { Self { error: Ok(Default::default()), @@ -48011,12 +43254,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleCompressedAccountsResponse { + impl PostGetMultipleCompressedAccountProofsResponse { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetMultipleCompressedAccountsResponseError, + super::PostGetMultipleCompressedAccountProofsResponseError, >, >, T::Error: ::std::fmt::Display, @@ -48031,7 +43274,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleCompressedAccountsResponseId, + super::PostGetMultipleCompressedAccountProofsResponseId, >, T::Error: ::std::fmt::Display, { @@ -48043,7 +43286,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleCompressedAccountsResponseJsonrpc, + super::PostGetMultipleCompressedAccountProofsResponseJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -48058,7 +43301,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetMultipleCompressedAccountsResponseResult, + super::PostGetMultipleCompressedAccountProofsResponseResult, >, >, T::Error: ::std::fmt::Display, @@ -48071,11 +43314,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetMultipleCompressedAccountsResponse { + impl ::std::convert::TryFrom + for super::PostGetMultipleCompressedAccountProofsResponse { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleCompressedAccountsResponse, + value: PostGetMultipleCompressedAccountProofsResponse, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -48085,9 +43328,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetMultipleCompressedAccountsResponse { - fn from(value: super::PostGetMultipleCompressedAccountsResponse) -> Self { + impl ::std::convert::From + for PostGetMultipleCompressedAccountProofsResponse { + fn from( + value: super::PostGetMultipleCompressedAccountProofsResponse, + ) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -48097,7 +43342,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetMultipleCompressedAccountsResponseError { + pub struct PostGetMultipleCompressedAccountProofsResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -48107,7 +43352,8 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::string::String, >, } - impl ::std::default::Default for PostGetMultipleCompressedAccountsResponseError { + impl ::std::default::Default + for PostGetMultipleCompressedAccountProofsResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -48115,7 +43361,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleCompressedAccountsResponseError { + impl PostGetMultipleCompressedAccountProofsResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -48141,11 +43387,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetMultipleCompressedAccountsResponseError { + impl ::std::convert::TryFrom + for super::PostGetMultipleCompressedAccountProofsResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleCompressedAccountsResponseError, + value: PostGetMultipleCompressedAccountProofsResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -48153,10 +43399,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetMultipleCompressedAccountsResponseError { + impl ::std::convert::From< + super::PostGetMultipleCompressedAccountProofsResponseError, + > for PostGetMultipleCompressedAccountProofsResponseError { fn from( - value: super::PostGetMultipleCompressedAccountsResponseError, + value: super::PostGetMultipleCompressedAccountProofsResponseError, ) -> Self { Self { code: Ok(value.code), @@ -48165,12 +43412,15 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetMultipleCompressedAccountsResponseResult { + pub struct PostGetMultipleCompressedAccountProofsResponseResult { context: ::std::result::Result, - value: ::std::result::Result, + value: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, } impl ::std::default::Default - for PostGetMultipleCompressedAccountsResponseResult { + for PostGetMultipleCompressedAccountProofsResponseResult { fn default() -> Self { Self { context: Err("no value supplied for context".to_string()), @@ -48178,7 +43428,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleCompressedAccountsResponseResult { + impl PostGetMultipleCompressedAccountProofsResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -48193,7 +43443,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn value(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + ::std::vec::Vec, + >, T::Error: ::std::fmt::Display, { self.value = value @@ -48204,11 +43456,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetMultipleCompressedAccountsResponseResult { + impl ::std::convert::TryFrom< + PostGetMultipleCompressedAccountProofsResponseResult, + > for super::PostGetMultipleCompressedAccountProofsResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleCompressedAccountsResponseResult, + value: PostGetMultipleCompressedAccountProofsResponseResult, ) -> ::std::result::Result { Ok(Self { context: value.context?, @@ -48216,10 +43469,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetMultipleCompressedAccountsResponseResult { + impl ::std::convert::From< + super::PostGetMultipleCompressedAccountProofsResponseResult, + > for PostGetMultipleCompressedAccountProofsResponseResult { fn from( - value: super::PostGetMultipleCompressedAccountsResponseResult, + value: super::PostGetMultipleCompressedAccountProofsResponseResult, ) -> Self { Self { context: Ok(value.context), @@ -48228,25 +43482,25 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetMultipleCompressedAccountsV2Body { + pub struct PostGetMultipleCompressedAccountProofsV2Body { id: ::std::result::Result< - super::PostGetMultipleCompressedAccountsV2BodyId, + super::PostGetMultipleCompressedAccountProofsV2BodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetMultipleCompressedAccountsV2BodyJsonrpc, + super::PostGetMultipleCompressedAccountProofsV2BodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetMultipleCompressedAccountsV2BodyMethod, + super::PostGetMultipleCompressedAccountProofsV2BodyMethod, ::std::string::String, >, params: ::std::result::Result< - super::PostGetMultipleCompressedAccountsV2BodyParams, + ::std::vec::Vec, ::std::string::String, >, } - impl ::std::default::Default for PostGetMultipleCompressedAccountsV2Body { + impl ::std::default::Default for PostGetMultipleCompressedAccountProofsV2Body { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -48256,11 +43510,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleCompressedAccountsV2Body { + impl PostGetMultipleCompressedAccountProofsV2Body { pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleCompressedAccountsV2BodyId, + super::PostGetMultipleCompressedAccountProofsV2BodyId, >, T::Error: ::std::fmt::Display, { @@ -48272,7 +43526,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleCompressedAccountsV2BodyJsonrpc, + super::PostGetMultipleCompressedAccountProofsV2BodyJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -48286,7 +43540,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn method(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleCompressedAccountsV2BodyMethod, + super::PostGetMultipleCompressedAccountProofsV2BodyMethod, >, T::Error: ::std::fmt::Display, { @@ -48299,9 +43553,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn params(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetMultipleCompressedAccountsV2BodyParams, - >, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { self.params = value @@ -48312,11 +43564,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetMultipleCompressedAccountsV2Body { + impl ::std::convert::TryFrom + for super::PostGetMultipleCompressedAccountProofsV2Body { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleCompressedAccountsV2Body, + value: PostGetMultipleCompressedAccountProofsV2Body, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -48326,9 +43578,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetMultipleCompressedAccountsV2Body { - fn from(value: super::PostGetMultipleCompressedAccountsV2Body) -> Self { + impl ::std::convert::From + for PostGetMultipleCompressedAccountProofsV2Body { + fn from(value: super::PostGetMultipleCompressedAccountProofsV2Body) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -48338,101 +43590,30 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetMultipleCompressedAccountsV2BodyParams { - addresses: ::std::result::Result< - ::std::option::Option<::std::vec::Vec>, - ::std::string::String, - >, - hashes: ::std::result::Result< - ::std::option::Option<::std::vec::Vec>, - ::std::string::String, - >, - } - impl ::std::default::Default for PostGetMultipleCompressedAccountsV2BodyParams { - fn default() -> Self { - Self { - addresses: Ok(Default::default()), - hashes: Ok(Default::default()), - } - } - } - impl PostGetMultipleCompressedAccountsV2BodyParams { - pub fn addresses(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - ::std::option::Option<::std::vec::Vec>, - >, - T::Error: ::std::fmt::Display, - { - self.addresses = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for addresses: {e}") - }); - self - } - pub fn hashes(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - ::std::option::Option<::std::vec::Vec>, - >, - T::Error: ::std::fmt::Display, - { - self.hashes = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for hashes: {e}") - }); - self - } - } - impl ::std::convert::TryFrom - for super::PostGetMultipleCompressedAccountsV2BodyParams { - type Error = super::error::ConversionError; - fn try_from( - value: PostGetMultipleCompressedAccountsV2BodyParams, - ) -> ::std::result::Result { - Ok(Self { - addresses: value.addresses?, - hashes: value.hashes?, - }) - } - } - impl ::std::convert::From - for PostGetMultipleCompressedAccountsV2BodyParams { - fn from( - value: super::PostGetMultipleCompressedAccountsV2BodyParams, - ) -> Self { - Self { - addresses: Ok(value.addresses), - hashes: Ok(value.hashes), - } - } - } - #[derive(Clone, Debug)] - pub struct PostGetMultipleCompressedAccountsV2Response { + pub struct PostGetMultipleCompressedAccountProofsV2Response { error: ::std::result::Result< ::std::option::Option< - super::PostGetMultipleCompressedAccountsV2ResponseError, + super::PostGetMultipleCompressedAccountProofsV2ResponseError, >, ::std::string::String, >, id: ::std::result::Result< - super::PostGetMultipleCompressedAccountsV2ResponseId, + super::PostGetMultipleCompressedAccountProofsV2ResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetMultipleCompressedAccountsV2ResponseJsonrpc, + super::PostGetMultipleCompressedAccountProofsV2ResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< ::std::option::Option< - super::PostGetMultipleCompressedAccountsV2ResponseResult, + super::PostGetMultipleCompressedAccountProofsV2ResponseResult, >, ::std::string::String, >, } - impl ::std::default::Default for PostGetMultipleCompressedAccountsV2Response { + impl ::std::default::Default + for PostGetMultipleCompressedAccountProofsV2Response { fn default() -> Self { Self { error: Ok(Default::default()), @@ -48442,12 +43623,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleCompressedAccountsV2Response { + impl PostGetMultipleCompressedAccountProofsV2Response { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetMultipleCompressedAccountsV2ResponseError, + super::PostGetMultipleCompressedAccountProofsV2ResponseError, >, >, T::Error: ::std::fmt::Display, @@ -48462,7 +43643,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleCompressedAccountsV2ResponseId, + super::PostGetMultipleCompressedAccountProofsV2ResponseId, >, T::Error: ::std::fmt::Display, { @@ -48474,7 +43655,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleCompressedAccountsV2ResponseJsonrpc, + super::PostGetMultipleCompressedAccountProofsV2ResponseJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -48489,7 +43670,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetMultipleCompressedAccountsV2ResponseResult, + super::PostGetMultipleCompressedAccountProofsV2ResponseResult, >, >, T::Error: ::std::fmt::Display, @@ -48502,11 +43683,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetMultipleCompressedAccountsV2Response { + impl ::std::convert::TryFrom + for super::PostGetMultipleCompressedAccountProofsV2Response { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleCompressedAccountsV2Response, + value: PostGetMultipleCompressedAccountProofsV2Response, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -48516,9 +43697,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetMultipleCompressedAccountsV2Response { - fn from(value: super::PostGetMultipleCompressedAccountsV2Response) -> Self { + impl ::std::convert::From< + super::PostGetMultipleCompressedAccountProofsV2Response, + > for PostGetMultipleCompressedAccountProofsV2Response { + fn from( + value: super::PostGetMultipleCompressedAccountProofsV2Response, + ) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -48528,7 +43712,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetMultipleCompressedAccountsV2ResponseError { + pub struct PostGetMultipleCompressedAccountProofsV2ResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -48539,7 +43723,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ >, } impl ::std::default::Default - for PostGetMultipleCompressedAccountsV2ResponseError { + for PostGetMultipleCompressedAccountProofsV2ResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -48547,7 +43731,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleCompressedAccountsV2ResponseError { + impl PostGetMultipleCompressedAccountProofsV2ResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -48573,11 +43757,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetMultipleCompressedAccountsV2ResponseError { + impl ::std::convert::TryFrom< + PostGetMultipleCompressedAccountProofsV2ResponseError, + > for super::PostGetMultipleCompressedAccountProofsV2ResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleCompressedAccountsV2ResponseError, + value: PostGetMultipleCompressedAccountProofsV2ResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -48586,10 +43771,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::From< - super::PostGetMultipleCompressedAccountsV2ResponseError, - > for PostGetMultipleCompressedAccountsV2ResponseError { + super::PostGetMultipleCompressedAccountProofsV2ResponseError, + > for PostGetMultipleCompressedAccountProofsV2ResponseError { fn from( - value: super::PostGetMultipleCompressedAccountsV2ResponseError, + value: super::PostGetMultipleCompressedAccountProofsV2ResponseError, ) -> Self { Self { code: Ok(value.code), @@ -48598,12 +43783,15 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetMultipleCompressedAccountsV2ResponseResult { + pub struct PostGetMultipleCompressedAccountProofsV2ResponseResult { context: ::std::result::Result, - value: ::std::result::Result, + value: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, } impl ::std::default::Default - for PostGetMultipleCompressedAccountsV2ResponseResult { + for PostGetMultipleCompressedAccountProofsV2ResponseResult { fn default() -> Self { Self { context: Err("no value supplied for context".to_string()), @@ -48611,7 +43799,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleCompressedAccountsV2ResponseResult { + impl PostGetMultipleCompressedAccountProofsV2ResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -48626,7 +43814,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn value(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + ::std::vec::Vec, + >, T::Error: ::std::fmt::Display, { self.value = value @@ -48637,11 +43827,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetMultipleCompressedAccountsV2ResponseResult { + impl ::std::convert::TryFrom< + PostGetMultipleCompressedAccountProofsV2ResponseResult, + > for super::PostGetMultipleCompressedAccountProofsV2ResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleCompressedAccountsV2ResponseResult, + value: PostGetMultipleCompressedAccountProofsV2ResponseResult, ) -> ::std::result::Result { Ok(Self { context: value.context?, @@ -48650,10 +43841,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } impl ::std::convert::From< - super::PostGetMultipleCompressedAccountsV2ResponseResult, - > for PostGetMultipleCompressedAccountsV2ResponseResult { + super::PostGetMultipleCompressedAccountProofsV2ResponseResult, + > for PostGetMultipleCompressedAccountProofsV2ResponseResult { fn from( - value: super::PostGetMultipleCompressedAccountsV2ResponseResult, + value: super::PostGetMultipleCompressedAccountProofsV2ResponseResult, ) -> Self { Self { context: Ok(value.context), @@ -48662,25 +43853,25 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetMultipleNewAddressProofsBody { + pub struct PostGetMultipleCompressedAccountsBody { id: ::std::result::Result< - super::PostGetMultipleNewAddressProofsBodyId, + super::PostGetMultipleCompressedAccountsBodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetMultipleNewAddressProofsBodyJsonrpc, + super::PostGetMultipleCompressedAccountsBodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetMultipleNewAddressProofsBodyMethod, + super::PostGetMultipleCompressedAccountsBodyMethod, ::std::string::String, >, params: ::std::result::Result< - ::std::vec::Vec, + super::PostGetMultipleCompressedAccountsBodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetMultipleNewAddressProofsBody { + impl ::std::default::Default for PostGetMultipleCompressedAccountsBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -48690,10 +43881,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleNewAddressProofsBody { + impl PostGetMultipleCompressedAccountsBody { pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + super::PostGetMultipleCompressedAccountsBodyId, + >, T::Error: ::std::fmt::Display, { self.id = value @@ -48704,7 +43897,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleNewAddressProofsBodyJsonrpc, + super::PostGetMultipleCompressedAccountsBodyJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -48718,7 +43911,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn method(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleNewAddressProofsBodyMethod, + super::PostGetMultipleCompressedAccountsBodyMethod, >, T::Error: ::std::fmt::Display, { @@ -48731,7 +43924,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn params(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto< + super::PostGetMultipleCompressedAccountsBodyParams, + >, T::Error: ::std::fmt::Display, { self.params = value @@ -48742,11 +43937,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetMultipleNewAddressProofsBody { + impl ::std::convert::TryFrom + for super::PostGetMultipleCompressedAccountsBody { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleNewAddressProofsBody, + value: PostGetMultipleCompressedAccountsBody, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -48756,41 +43951,111 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetMultipleNewAddressProofsBody { - fn from(value: super::PostGetMultipleNewAddressProofsBody) -> Self { + impl ::std::convert::From + for PostGetMultipleCompressedAccountsBody { + fn from(value: super::PostGetMultipleCompressedAccountsBody) -> Self { + Self { + id: Ok(value.id), + jsonrpc: Ok(value.jsonrpc), + method: Ok(value.method), + params: Ok(value.params), + } + } + } + #[derive(Clone, Debug)] + pub struct PostGetMultipleCompressedAccountsBodyParams { + addresses: ::std::result::Result< + ::std::option::Option<::std::vec::Vec>, + ::std::string::String, + >, + hashes: ::std::result::Result< + ::std::option::Option<::std::vec::Vec>, + ::std::string::String, + >, + } + impl ::std::default::Default for PostGetMultipleCompressedAccountsBodyParams { + fn default() -> Self { + Self { + addresses: Ok(Default::default()), + hashes: Ok(Default::default()), + } + } + } + impl PostGetMultipleCompressedAccountsBodyParams { + pub fn addresses(mut self, value: T) -> Self + where + T: ::std::convert::TryInto< + ::std::option::Option<::std::vec::Vec>, + >, + T::Error: ::std::fmt::Display, + { + self.addresses = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for addresses: {e}") + }); + self + } + pub fn hashes(mut self, value: T) -> Self + where + T: ::std::convert::TryInto< + ::std::option::Option<::std::vec::Vec>, + >, + T::Error: ::std::fmt::Display, + { + self.hashes = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for hashes: {e}") + }); + self + } + } + impl ::std::convert::TryFrom + for super::PostGetMultipleCompressedAccountsBodyParams { + type Error = super::error::ConversionError; + fn try_from( + value: PostGetMultipleCompressedAccountsBodyParams, + ) -> ::std::result::Result { + Ok(Self { + addresses: value.addresses?, + hashes: value.hashes?, + }) + } + } + impl ::std::convert::From + for PostGetMultipleCompressedAccountsBodyParams { + fn from(value: super::PostGetMultipleCompressedAccountsBodyParams) -> Self { Self { - id: Ok(value.id), - jsonrpc: Ok(value.jsonrpc), - method: Ok(value.method), - params: Ok(value.params), + addresses: Ok(value.addresses), + hashes: Ok(value.hashes), } } } #[derive(Clone, Debug)] - pub struct PostGetMultipleNewAddressProofsResponse { + pub struct PostGetMultipleCompressedAccountsResponse { error: ::std::result::Result< ::std::option::Option< - super::PostGetMultipleNewAddressProofsResponseError, + super::PostGetMultipleCompressedAccountsResponseError, >, ::std::string::String, >, id: ::std::result::Result< - super::PostGetMultipleNewAddressProofsResponseId, + super::PostGetMultipleCompressedAccountsResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetMultipleNewAddressProofsResponseJsonrpc, + super::PostGetMultipleCompressedAccountsResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< ::std::option::Option< - super::PostGetMultipleNewAddressProofsResponseResult, + super::PostGetMultipleCompressedAccountsResponseResult, >, ::std::string::String, >, } - impl ::std::default::Default for PostGetMultipleNewAddressProofsResponse { + impl ::std::default::Default for PostGetMultipleCompressedAccountsResponse { fn default() -> Self { Self { error: Ok(Default::default()), @@ -48800,12 +44065,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleNewAddressProofsResponse { + impl PostGetMultipleCompressedAccountsResponse { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetMultipleNewAddressProofsResponseError, + super::PostGetMultipleCompressedAccountsResponseError, >, >, T::Error: ::std::fmt::Display, @@ -48820,7 +44085,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleNewAddressProofsResponseId, + super::PostGetMultipleCompressedAccountsResponseId, >, T::Error: ::std::fmt::Display, { @@ -48832,7 +44097,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleNewAddressProofsResponseJsonrpc, + super::PostGetMultipleCompressedAccountsResponseJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -48847,7 +44112,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetMultipleNewAddressProofsResponseResult, + super::PostGetMultipleCompressedAccountsResponseResult, >, >, T::Error: ::std::fmt::Display, @@ -48860,11 +44125,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetMultipleNewAddressProofsResponse { + impl ::std::convert::TryFrom + for super::PostGetMultipleCompressedAccountsResponse { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleNewAddressProofsResponse, + value: PostGetMultipleCompressedAccountsResponse, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -48874,9 +44139,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetMultipleNewAddressProofsResponse { - fn from(value: super::PostGetMultipleNewAddressProofsResponse) -> Self { + impl ::std::convert::From + for PostGetMultipleCompressedAccountsResponse { + fn from(value: super::PostGetMultipleCompressedAccountsResponse) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -48886,7 +44151,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetMultipleNewAddressProofsResponseError { + pub struct PostGetMultipleCompressedAccountsResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -48896,7 +44161,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::string::String, >, } - impl ::std::default::Default for PostGetMultipleNewAddressProofsResponseError { + impl ::std::default::Default for PostGetMultipleCompressedAccountsResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -48904,7 +44169,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleNewAddressProofsResponseError { + impl PostGetMultipleCompressedAccountsResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -48930,11 +44195,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetMultipleNewAddressProofsResponseError { + impl ::std::convert::TryFrom + for super::PostGetMultipleCompressedAccountsResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleNewAddressProofsResponseError, + value: PostGetMultipleCompressedAccountsResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -48942,9 +44207,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetMultipleNewAddressProofsResponseError { - fn from(value: super::PostGetMultipleNewAddressProofsResponseError) -> Self { + impl ::std::convert::From + for PostGetMultipleCompressedAccountsResponseError { + fn from( + value: super::PostGetMultipleCompressedAccountsResponseError, + ) -> Self { Self { code: Ok(value.code), message: Ok(value.message), @@ -48952,14 +44219,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetMultipleNewAddressProofsResponseResult { + pub struct PostGetMultipleCompressedAccountsResponseResult { context: ::std::result::Result, - value: ::std::result::Result< - ::std::vec::Vec, - ::std::string::String, - >, + value: ::std::result::Result, } - impl ::std::default::Default for PostGetMultipleNewAddressProofsResponseResult { + impl ::std::default::Default + for PostGetMultipleCompressedAccountsResponseResult { fn default() -> Self { Self { context: Err("no value supplied for context".to_string()), @@ -48967,7 +44232,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleNewAddressProofsResponseResult { + impl PostGetMultipleCompressedAccountsResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -48982,9 +44247,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn value(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - ::std::vec::Vec, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.value = value @@ -48995,11 +44258,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetMultipleNewAddressProofsResponseResult { + impl ::std::convert::TryFrom + for super::PostGetMultipleCompressedAccountsResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleNewAddressProofsResponseResult, + value: PostGetMultipleCompressedAccountsResponseResult, ) -> ::std::result::Result { Ok(Self { context: value.context?, @@ -49007,10 +44270,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetMultipleNewAddressProofsResponseResult { + impl ::std::convert::From + for PostGetMultipleCompressedAccountsResponseResult { fn from( - value: super::PostGetMultipleNewAddressProofsResponseResult, + value: super::PostGetMultipleCompressedAccountsResponseResult, ) -> Self { Self { context: Ok(value.context), @@ -49019,25 +44282,25 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetMultipleNewAddressProofsV2Body { + pub struct PostGetMultipleCompressedAccountsV2Body { id: ::std::result::Result< - super::PostGetMultipleNewAddressProofsV2BodyId, + super::PostGetMultipleCompressedAccountsV2BodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetMultipleNewAddressProofsV2BodyJsonrpc, + super::PostGetMultipleCompressedAccountsV2BodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetMultipleNewAddressProofsV2BodyMethod, + super::PostGetMultipleCompressedAccountsV2BodyMethod, ::std::string::String, >, params: ::std::result::Result< - ::std::vec::Vec, + super::PostGetMultipleCompressedAccountsV2BodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetMultipleNewAddressProofsV2Body { + impl ::std::default::Default for PostGetMultipleCompressedAccountsV2Body { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -49047,11 +44310,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleNewAddressProofsV2Body { + impl PostGetMultipleCompressedAccountsV2Body { pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleNewAddressProofsV2BodyId, + super::PostGetMultipleCompressedAccountsV2BodyId, >, T::Error: ::std::fmt::Display, { @@ -49063,7 +44326,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleNewAddressProofsV2BodyJsonrpc, + super::PostGetMultipleCompressedAccountsV2BodyJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -49077,7 +44340,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn method(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleNewAddressProofsV2BodyMethod, + super::PostGetMultipleCompressedAccountsV2BodyMethod, >, T::Error: ::std::fmt::Display, { @@ -49090,7 +44353,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn params(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto< + super::PostGetMultipleCompressedAccountsV2BodyParams, + >, T::Error: ::std::fmt::Display, { self.params = value @@ -49101,11 +44366,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetMultipleNewAddressProofsV2Body { + impl ::std::convert::TryFrom + for super::PostGetMultipleCompressedAccountsV2Body { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleNewAddressProofsV2Body, + value: PostGetMultipleCompressedAccountsV2Body, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -49115,9 +44380,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetMultipleNewAddressProofsV2Body { - fn from(value: super::PostGetMultipleNewAddressProofsV2Body) -> Self { + impl ::std::convert::From + for PostGetMultipleCompressedAccountsV2Body { + fn from(value: super::PostGetMultipleCompressedAccountsV2Body) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -49127,29 +44392,101 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetMultipleNewAddressProofsV2Response { + pub struct PostGetMultipleCompressedAccountsV2BodyParams { + addresses: ::std::result::Result< + ::std::option::Option<::std::vec::Vec>, + ::std::string::String, + >, + hashes: ::std::result::Result< + ::std::option::Option<::std::vec::Vec>, + ::std::string::String, + >, + } + impl ::std::default::Default for PostGetMultipleCompressedAccountsV2BodyParams { + fn default() -> Self { + Self { + addresses: Ok(Default::default()), + hashes: Ok(Default::default()), + } + } + } + impl PostGetMultipleCompressedAccountsV2BodyParams { + pub fn addresses(mut self, value: T) -> Self + where + T: ::std::convert::TryInto< + ::std::option::Option<::std::vec::Vec>, + >, + T::Error: ::std::fmt::Display, + { + self.addresses = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for addresses: {e}") + }); + self + } + pub fn hashes(mut self, value: T) -> Self + where + T: ::std::convert::TryInto< + ::std::option::Option<::std::vec::Vec>, + >, + T::Error: ::std::fmt::Display, + { + self.hashes = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for hashes: {e}") + }); + self + } + } + impl ::std::convert::TryFrom + for super::PostGetMultipleCompressedAccountsV2BodyParams { + type Error = super::error::ConversionError; + fn try_from( + value: PostGetMultipleCompressedAccountsV2BodyParams, + ) -> ::std::result::Result { + Ok(Self { + addresses: value.addresses?, + hashes: value.hashes?, + }) + } + } + impl ::std::convert::From + for PostGetMultipleCompressedAccountsV2BodyParams { + fn from( + value: super::PostGetMultipleCompressedAccountsV2BodyParams, + ) -> Self { + Self { + addresses: Ok(value.addresses), + hashes: Ok(value.hashes), + } + } + } + #[derive(Clone, Debug)] + pub struct PostGetMultipleCompressedAccountsV2Response { error: ::std::result::Result< ::std::option::Option< - super::PostGetMultipleNewAddressProofsV2ResponseError, + super::PostGetMultipleCompressedAccountsV2ResponseError, >, ::std::string::String, >, id: ::std::result::Result< - super::PostGetMultipleNewAddressProofsV2ResponseId, + super::PostGetMultipleCompressedAccountsV2ResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetMultipleNewAddressProofsV2ResponseJsonrpc, + super::PostGetMultipleCompressedAccountsV2ResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< ::std::option::Option< - super::PostGetMultipleNewAddressProofsV2ResponseResult, + super::PostGetMultipleCompressedAccountsV2ResponseResult, >, ::std::string::String, >, } - impl ::std::default::Default for PostGetMultipleNewAddressProofsV2Response { + impl ::std::default::Default for PostGetMultipleCompressedAccountsV2Response { fn default() -> Self { Self { error: Ok(Default::default()), @@ -49159,12 +44496,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleNewAddressProofsV2Response { + impl PostGetMultipleCompressedAccountsV2Response { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetMultipleNewAddressProofsV2ResponseError, + super::PostGetMultipleCompressedAccountsV2ResponseError, >, >, T::Error: ::std::fmt::Display, @@ -49179,7 +44516,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn id(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleNewAddressProofsV2ResponseId, + super::PostGetMultipleCompressedAccountsV2ResponseId, >, T::Error: ::std::fmt::Display, { @@ -49191,7 +44528,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn jsonrpc(mut self, value: T) -> Self where T: ::std::convert::TryInto< - super::PostGetMultipleNewAddressProofsV2ResponseJsonrpc, + super::PostGetMultipleCompressedAccountsV2ResponseJsonrpc, >, T::Error: ::std::fmt::Display, { @@ -49206,7 +44543,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ where T: ::std::convert::TryInto< ::std::option::Option< - super::PostGetMultipleNewAddressProofsV2ResponseResult, + super::PostGetMultipleCompressedAccountsV2ResponseResult, >, >, T::Error: ::std::fmt::Display, @@ -49219,11 +44556,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetMultipleNewAddressProofsV2Response { + impl ::std::convert::TryFrom + for super::PostGetMultipleCompressedAccountsV2Response { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleNewAddressProofsV2Response, + value: PostGetMultipleCompressedAccountsV2Response, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -49233,9 +44570,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetMultipleNewAddressProofsV2Response { - fn from(value: super::PostGetMultipleNewAddressProofsV2Response) -> Self { + impl ::std::convert::From + for PostGetMultipleCompressedAccountsV2Response { + fn from(value: super::PostGetMultipleCompressedAccountsV2Response) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -49245,7 +44582,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetMultipleNewAddressProofsV2ResponseError { + pub struct PostGetMultipleCompressedAccountsV2ResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -49255,7 +44592,8 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::string::String, >, } - impl ::std::default::Default for PostGetMultipleNewAddressProofsV2ResponseError { + impl ::std::default::Default + for PostGetMultipleCompressedAccountsV2ResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -49263,7 +44601,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleNewAddressProofsV2ResponseError { + impl PostGetMultipleCompressedAccountsV2ResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -49289,11 +44627,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetMultipleNewAddressProofsV2ResponseError { + impl ::std::convert::TryFrom + for super::PostGetMultipleCompressedAccountsV2ResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleNewAddressProofsV2ResponseError, + value: PostGetMultipleCompressedAccountsV2ResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -49301,10 +44639,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetMultipleNewAddressProofsV2ResponseError { + impl ::std::convert::From< + super::PostGetMultipleCompressedAccountsV2ResponseError, + > for PostGetMultipleCompressedAccountsV2ResponseError { fn from( - value: super::PostGetMultipleNewAddressProofsV2ResponseError, + value: super::PostGetMultipleCompressedAccountsV2ResponseError, ) -> Self { Self { code: Ok(value.code), @@ -49313,15 +44652,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetMultipleNewAddressProofsV2ResponseResult { + pub struct PostGetMultipleCompressedAccountsV2ResponseResult { context: ::std::result::Result, - value: ::std::result::Result< - ::std::vec::Vec, - ::std::string::String, - >, + value: ::std::result::Result, } impl ::std::default::Default - for PostGetMultipleNewAddressProofsV2ResponseResult { + for PostGetMultipleCompressedAccountsV2ResponseResult { fn default() -> Self { Self { context: Err("no value supplied for context".to_string()), @@ -49329,7 +44665,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetMultipleNewAddressProofsV2ResponseResult { + impl PostGetMultipleCompressedAccountsV2ResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -49344,9 +44680,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn value(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - ::std::vec::Vec, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.value = value @@ -49357,11 +44691,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetMultipleNewAddressProofsV2ResponseResult { + impl ::std::convert::TryFrom + for super::PostGetMultipleCompressedAccountsV2ResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetMultipleNewAddressProofsV2ResponseResult, + value: PostGetMultipleCompressedAccountsV2ResponseResult, ) -> ::std::result::Result { Ok(Self { context: value.context?, @@ -49369,10 +44703,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetMultipleNewAddressProofsV2ResponseResult { + impl ::std::convert::From< + super::PostGetMultipleCompressedAccountsV2ResponseResult, + > for PostGetMultipleCompressedAccountsV2ResponseResult { fn from( - value: super::PostGetMultipleNewAddressProofsV2ResponseResult, + value: super::PostGetMultipleCompressedAccountsV2ResponseResult, ) -> Self { Self { context: Ok(value.context), @@ -49381,25 +44716,25 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetQueueElementsBody { + pub struct PostGetMultipleNewAddressProofsBody { id: ::std::result::Result< - super::PostGetQueueElementsBodyId, + super::PostGetMultipleNewAddressProofsBodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetQueueElementsBodyJsonrpc, + super::PostGetMultipleNewAddressProofsBodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetQueueElementsBodyMethod, + super::PostGetMultipleNewAddressProofsBodyMethod, ::std::string::String, >, params: ::std::result::Result< - super::PostGetQueueElementsBodyParams, + ::std::vec::Vec, ::std::string::String, >, } - impl ::std::default::Default for PostGetQueueElementsBody { + impl ::std::default::Default for PostGetMultipleNewAddressProofsBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -49409,10 +44744,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetQueueElementsBody { + impl PostGetMultipleNewAddressProofsBody { pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.id = value @@ -49422,7 +44757,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn jsonrpc(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + super::PostGetMultipleNewAddressProofsBodyJsonrpc, + >, T::Error: ::std::fmt::Display, { self.jsonrpc = value @@ -49434,7 +44771,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn method(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + super::PostGetMultipleNewAddressProofsBodyMethod, + >, T::Error: ::std::fmt::Display, { self.method = value @@ -49446,7 +44785,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn params(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { self.params = value @@ -49457,11 +44796,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetQueueElementsBody { + impl ::std::convert::TryFrom + for super::PostGetMultipleNewAddressProofsBody { type Error = super::error::ConversionError; fn try_from( - value: PostGetQueueElementsBody, + value: PostGetMultipleNewAddressProofsBody, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -49471,9 +44810,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetQueueElementsBody { - fn from(value: super::PostGetQueueElementsBody) -> Self { + impl ::std::convert::From + for PostGetMultipleNewAddressProofsBody { + fn from(value: super::PostGetMultipleNewAddressProofsBody) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -49483,126 +44822,29 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetQueueElementsBodyParams { - address_queue: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - input_queue: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - output_queue: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - tree: ::std::result::Result, - } - impl ::std::default::Default for PostGetQueueElementsBodyParams { - fn default() -> Self { - Self { - address_queue: Ok(Default::default()), - input_queue: Ok(Default::default()), - output_queue: Ok(Default::default()), - tree: Err("no value supplied for tree".to_string()), - } - } - } - impl PostGetQueueElementsBodyParams { - pub fn address_queue(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::option::Option>, - T::Error: ::std::fmt::Display, - { - self.address_queue = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for address_queue: {e}") - }); - self - } - pub fn input_queue(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::option::Option>, - T::Error: ::std::fmt::Display, - { - self.input_queue = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for input_queue: {e}") - }); - self - } - pub fn output_queue(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::option::Option>, - T::Error: ::std::fmt::Display, - { - self.output_queue = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for output_queue: {e}") - }); - self - } - pub fn tree(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.tree = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for tree: {e}") - }); - self - } - } - impl ::std::convert::TryFrom - for super::PostGetQueueElementsBodyParams { - type Error = super::error::ConversionError; - fn try_from( - value: PostGetQueueElementsBodyParams, - ) -> ::std::result::Result { - Ok(Self { - address_queue: value.address_queue?, - input_queue: value.input_queue?, - output_queue: value.output_queue?, - tree: value.tree?, - }) - } - } - impl ::std::convert::From - for PostGetQueueElementsBodyParams { - fn from(value: super::PostGetQueueElementsBodyParams) -> Self { - Self { - address_queue: Ok(value.address_queue), - input_queue: Ok(value.input_queue), - output_queue: Ok(value.output_queue), - tree: Ok(value.tree), - } - } - } - #[derive(Clone, Debug)] - pub struct PostGetQueueElementsResponse { + pub struct PostGetMultipleNewAddressProofsResponse { error: ::std::result::Result< - ::std::option::Option, + ::std::option::Option< + super::PostGetMultipleNewAddressProofsResponseError, + >, ::std::string::String, >, id: ::std::result::Result< - super::PostGetQueueElementsResponseId, + super::PostGetMultipleNewAddressProofsResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetQueueElementsResponseJsonrpc, + super::PostGetMultipleNewAddressProofsResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< - ::std::option::Option, + ::std::option::Option< + super::PostGetMultipleNewAddressProofsResponseResult, + >, ::std::string::String, >, } - impl ::std::default::Default for PostGetQueueElementsResponse { + impl ::std::default::Default for PostGetMultipleNewAddressProofsResponse { fn default() -> Self { Self { error: Ok(Default::default()), @@ -49612,11 +44854,13 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetQueueElementsResponse { + impl PostGetMultipleNewAddressProofsResponse { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< - ::std::option::Option, + ::std::option::Option< + super::PostGetMultipleNewAddressProofsResponseError, + >, >, T::Error: ::std::fmt::Display, { @@ -49629,7 +44873,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + super::PostGetMultipleNewAddressProofsResponseId, + >, T::Error: ::std::fmt::Display, { self.id = value @@ -49639,7 +44885,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn jsonrpc(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + super::PostGetMultipleNewAddressProofsResponseJsonrpc, + >, T::Error: ::std::fmt::Display, { self.jsonrpc = value @@ -49652,7 +44900,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn result(mut self, value: T) -> Self where T: ::std::convert::TryInto< - ::std::option::Option, + ::std::option::Option< + super::PostGetMultipleNewAddressProofsResponseResult, + >, >, T::Error: ::std::fmt::Display, { @@ -49664,11 +44914,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetQueueElementsResponse { + impl ::std::convert::TryFrom + for super::PostGetMultipleNewAddressProofsResponse { type Error = super::error::ConversionError; fn try_from( - value: PostGetQueueElementsResponse, + value: PostGetMultipleNewAddressProofsResponse, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -49678,9 +44928,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetQueueElementsResponse { - fn from(value: super::PostGetQueueElementsResponse) -> Self { + impl ::std::convert::From + for PostGetMultipleNewAddressProofsResponse { + fn from(value: super::PostGetMultipleNewAddressProofsResponse) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -49690,7 +44940,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetQueueElementsResponseError { + pub struct PostGetMultipleNewAddressProofsResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -49700,7 +44950,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::string::String, >, } - impl ::std::default::Default for PostGetQueueElementsResponseError { + impl ::std::default::Default for PostGetMultipleNewAddressProofsResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -49708,7 +44958,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetQueueElementsResponseError { + impl PostGetMultipleNewAddressProofsResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -49734,11 +44984,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetQueueElementsResponseError { + impl ::std::convert::TryFrom + for super::PostGetMultipleNewAddressProofsResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetQueueElementsResponseError, + value: PostGetMultipleNewAddressProofsResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -49746,9 +44996,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetQueueElementsResponseError { - fn from(value: super::PostGetQueueElementsResponseError) -> Self { + impl ::std::convert::From + for PostGetMultipleNewAddressProofsResponseError { + fn from(value: super::PostGetMultipleNewAddressProofsResponseError) -> Self { Self { code: Ok(value.code), message: Ok(value.message), @@ -49756,41 +45006,22 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetQueueElementsResponseResult { - address_queue: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, + pub struct PostGetMultipleNewAddressProofsResponseResult { context: ::std::result::Result, - state_queue: ::std::result::Result< - ::std::option::Option, + value: ::std::result::Result< + ::std::vec::Vec, ::std::string::String, >, } - impl ::std::default::Default for PostGetQueueElementsResponseResult { + impl ::std::default::Default for PostGetMultipleNewAddressProofsResponseResult { fn default() -> Self { Self { - address_queue: Ok(Default::default()), context: Err("no value supplied for context".to_string()), - state_queue: Ok(Default::default()), + value: Err("no value supplied for value".to_string()), } } } - impl PostGetQueueElementsResponseResult { - pub fn address_queue(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - ::std::option::Option, - >, - T::Error: ::std::fmt::Display, - { - self.address_queue = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for address_queue: {e}") - }); - self - } + impl PostGetMultipleNewAddressProofsResponseResult { pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -49803,62 +45034,64 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }); self } - pub fn state_queue(mut self, value: T) -> Self + pub fn value(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto< + ::std::vec::Vec, + >, T::Error: ::std::fmt::Display, { - self.state_queue = value + self.value = value .try_into() .map_err(|e| { - format!("error converting supplied value for state_queue: {e}") + format!("error converting supplied value for value: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetQueueElementsResponseResult { + impl ::std::convert::TryFrom + for super::PostGetMultipleNewAddressProofsResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetQueueElementsResponseResult, + value: PostGetMultipleNewAddressProofsResponseResult, ) -> ::std::result::Result { Ok(Self { - address_queue: value.address_queue?, context: value.context?, - state_queue: value.state_queue?, + value: value.value?, }) } } - impl ::std::convert::From - for PostGetQueueElementsResponseResult { - fn from(value: super::PostGetQueueElementsResponseResult) -> Self { + impl ::std::convert::From + for PostGetMultipleNewAddressProofsResponseResult { + fn from( + value: super::PostGetMultipleNewAddressProofsResponseResult, + ) -> Self { Self { - address_queue: Ok(value.address_queue), context: Ok(value.context), - state_queue: Ok(value.state_queue), + value: Ok(value.value), } } } #[derive(Clone, Debug)] - pub struct PostGetQueueInfoBody { + pub struct PostGetMultipleNewAddressProofsV2Body { id: ::std::result::Result< - super::PostGetQueueInfoBodyId, + super::PostGetMultipleNewAddressProofsV2BodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetQueueInfoBodyJsonrpc, + super::PostGetMultipleNewAddressProofsV2BodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetQueueInfoBodyMethod, + super::PostGetMultipleNewAddressProofsV2BodyMethod, ::std::string::String, >, params: ::std::result::Result< - super::PostGetQueueInfoBodyParams, + ::std::vec::Vec, ::std::string::String, >, } - impl ::std::default::Default for PostGetQueueInfoBody { + impl ::std::default::Default for PostGetMultipleNewAddressProofsV2Body { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -49868,10 +45101,12 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetQueueInfoBody { + impl PostGetMultipleNewAddressProofsV2Body { pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + super::PostGetMultipleNewAddressProofsV2BodyId, + >, T::Error: ::std::fmt::Display, { self.id = value @@ -49881,7 +45116,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn jsonrpc(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + super::PostGetMultipleNewAddressProofsV2BodyJsonrpc, + >, T::Error: ::std::fmt::Display, { self.jsonrpc = value @@ -49893,7 +45130,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn method(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + super::PostGetMultipleNewAddressProofsV2BodyMethod, + >, T::Error: ::std::fmt::Display, { self.method = value @@ -49905,7 +45144,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn params(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { self.params = value @@ -49916,11 +45155,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetQueueInfoBody { + impl ::std::convert::TryFrom + for super::PostGetMultipleNewAddressProofsV2Body { type Error = super::error::ConversionError; fn try_from( - value: PostGetQueueInfoBody, + value: PostGetMultipleNewAddressProofsV2Body, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -49930,8 +45169,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From for PostGetQueueInfoBody { - fn from(value: super::PostGetQueueInfoBody) -> Self { + impl ::std::convert::From + for PostGetMultipleNewAddressProofsV2Body { + fn from(value: super::PostGetMultipleNewAddressProofsV2Body) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -49941,70 +45181,29 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetQueueInfoBodyParams { - trees: ::std::result::Result< - ::std::option::Option<::std::vec::Vec<::std::string::String>>, - ::std::string::String, - >, - } - impl ::std::default::Default for PostGetQueueInfoBodyParams { - fn default() -> Self { - Self { - trees: Ok(Default::default()), - } - } - } - impl PostGetQueueInfoBodyParams { - pub fn trees(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - ::std::option::Option<::std::vec::Vec<::std::string::String>>, - >, - T::Error: ::std::fmt::Display, - { - self.trees = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for trees: {e}") - }); - self - } - } - impl ::std::convert::TryFrom - for super::PostGetQueueInfoBodyParams { - type Error = super::error::ConversionError; - fn try_from( - value: PostGetQueueInfoBodyParams, - ) -> ::std::result::Result { - Ok(Self { trees: value.trees? }) - } - } - impl ::std::convert::From - for PostGetQueueInfoBodyParams { - fn from(value: super::PostGetQueueInfoBodyParams) -> Self { - Self { trees: Ok(value.trees) } - } - } - #[derive(Clone, Debug)] - pub struct PostGetQueueInfoResponse { + pub struct PostGetMultipleNewAddressProofsV2Response { error: ::std::result::Result< - ::std::option::Option, + ::std::option::Option< + super::PostGetMultipleNewAddressProofsV2ResponseError, + >, ::std::string::String, >, id: ::std::result::Result< - super::PostGetQueueInfoResponseId, + super::PostGetMultipleNewAddressProofsV2ResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetQueueInfoResponseJsonrpc, + super::PostGetMultipleNewAddressProofsV2ResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< - ::std::option::Option, + ::std::option::Option< + super::PostGetMultipleNewAddressProofsV2ResponseResult, + >, ::std::string::String, >, } - impl ::std::default::Default for PostGetQueueInfoResponse { + impl ::std::default::Default for PostGetMultipleNewAddressProofsV2Response { fn default() -> Self { Self { error: Ok(Default::default()), @@ -50014,11 +45213,13 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetQueueInfoResponse { + impl PostGetMultipleNewAddressProofsV2Response { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< - ::std::option::Option, + ::std::option::Option< + super::PostGetMultipleNewAddressProofsV2ResponseError, + >, >, T::Error: ::std::fmt::Display, { @@ -50031,7 +45232,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + super::PostGetMultipleNewAddressProofsV2ResponseId, + >, T::Error: ::std::fmt::Display, { self.id = value @@ -50041,7 +45244,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn jsonrpc(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + super::PostGetMultipleNewAddressProofsV2ResponseJsonrpc, + >, T::Error: ::std::fmt::Display, { self.jsonrpc = value @@ -50054,7 +45259,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn result(mut self, value: T) -> Self where T: ::std::convert::TryInto< - ::std::option::Option, + ::std::option::Option< + super::PostGetMultipleNewAddressProofsV2ResponseResult, + >, >, T::Error: ::std::fmt::Display, { @@ -50066,11 +45273,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetQueueInfoResponse { + impl ::std::convert::TryFrom + for super::PostGetMultipleNewAddressProofsV2Response { type Error = super::error::ConversionError; fn try_from( - value: PostGetQueueInfoResponse, + value: PostGetMultipleNewAddressProofsV2Response, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -50080,9 +45287,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetQueueInfoResponse { - fn from(value: super::PostGetQueueInfoResponse) -> Self { + impl ::std::convert::From + for PostGetMultipleNewAddressProofsV2Response { + fn from(value: super::PostGetMultipleNewAddressProofsV2Response) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -50092,7 +45299,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetQueueInfoResponseError { + pub struct PostGetMultipleNewAddressProofsV2ResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -50102,7 +45309,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::string::String, >, } - impl ::std::default::Default for PostGetQueueInfoResponseError { + impl ::std::default::Default for PostGetMultipleNewAddressProofsV2ResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -50110,7 +45317,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetQueueInfoResponseError { + impl PostGetMultipleNewAddressProofsV2ResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -50136,11 +45343,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetQueueInfoResponseError { + impl ::std::convert::TryFrom + for super::PostGetMultipleNewAddressProofsV2ResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetQueueInfoResponseError, + value: PostGetMultipleNewAddressProofsV2ResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -50148,9 +45355,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetQueueInfoResponseError { - fn from(value: super::PostGetQueueInfoResponseError) -> Self { + impl ::std::convert::From + for PostGetMultipleNewAddressProofsV2ResponseError { + fn from( + value: super::PostGetMultipleNewAddressProofsV2ResponseError, + ) -> Self { Self { code: Ok(value.code), message: Ok(value.message), @@ -50158,88 +45367,93 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetQueueInfoResponseResult { - queues: ::std::result::Result< - ::std::vec::Vec, + pub struct PostGetMultipleNewAddressProofsV2ResponseResult { + context: ::std::result::Result, + value: ::std::result::Result< + ::std::vec::Vec, ::std::string::String, >, - slot: ::std::result::Result, } - impl ::std::default::Default for PostGetQueueInfoResponseResult { + impl ::std::default::Default + for PostGetMultipleNewAddressProofsV2ResponseResult { fn default() -> Self { Self { - queues: Err("no value supplied for queues".to_string()), - slot: Err("no value supplied for slot".to_string()), + context: Err("no value supplied for context".to_string()), + value: Err("no value supplied for value".to_string()), } } } - impl PostGetQueueInfoResponseResult { - pub fn queues(mut self, value: T) -> Self + impl PostGetMultipleNewAddressProofsV2ResponseResult { + pub fn context(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.queues = value + self.context = value .try_into() .map_err(|e| { - format!("error converting supplied value for queues: {e}") + format!("error converting supplied value for context: {e}") }); self } - pub fn slot(mut self, value: T) -> Self + pub fn value(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto< + ::std::vec::Vec, + >, T::Error: ::std::fmt::Display, { - self.slot = value + self.value = value .try_into() .map_err(|e| { - format!("error converting supplied value for slot: {e}") + format!("error converting supplied value for value: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetQueueInfoResponseResult { + impl ::std::convert::TryFrom + for super::PostGetMultipleNewAddressProofsV2ResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetQueueInfoResponseResult, + value: PostGetMultipleNewAddressProofsV2ResponseResult, ) -> ::std::result::Result { Ok(Self { - queues: value.queues?, - slot: value.slot?, + context: value.context?, + value: value.value?, }) } } - impl ::std::convert::From - for PostGetQueueInfoResponseResult { - fn from(value: super::PostGetQueueInfoResponseResult) -> Self { + impl ::std::convert::From + for PostGetMultipleNewAddressProofsV2ResponseResult { + fn from( + value: super::PostGetMultipleNewAddressProofsV2ResponseResult, + ) -> Self { Self { - queues: Ok(value.queues), - slot: Ok(value.slot), + context: Ok(value.context), + value: Ok(value.value), } } } #[derive(Clone, Debug)] - pub struct PostGetTokenAccountInterfaceBody { + pub struct PostGetQueueElementsBody { id: ::std::result::Result< - super::PostGetTokenAccountInterfaceBodyId, + super::PostGetQueueElementsBodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetTokenAccountInterfaceBodyJsonrpc, + super::PostGetQueueElementsBodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetTokenAccountInterfaceBodyMethod, + super::PostGetQueueElementsBodyMethod, ::std::string::String, >, params: ::std::result::Result< - super::PostGetTokenAccountInterfaceBodyParams, + super::PostGetQueueElementsBodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetTokenAccountInterfaceBody { + impl ::std::default::Default for PostGetQueueElementsBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -50249,10 +45463,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetTokenAccountInterfaceBody { + impl PostGetQueueElementsBody { pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.id = value @@ -50262,9 +45476,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn jsonrpc(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetTokenAccountInterfaceBodyJsonrpc, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.jsonrpc = value @@ -50276,9 +45488,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn method(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetTokenAccountInterfaceBodyMethod, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.method = value @@ -50290,9 +45500,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn params(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetTokenAccountInterfaceBodyParams, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.params = value @@ -50303,11 +45511,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetTokenAccountInterfaceBody { + impl ::std::convert::TryFrom + for super::PostGetQueueElementsBody { type Error = super::error::ConversionError; fn try_from( - value: PostGetTokenAccountInterfaceBody, + value: PostGetQueueElementsBody, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -50317,9 +45525,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetTokenAccountInterfaceBody { - fn from(value: super::PostGetTokenAccountInterfaceBody) -> Self { + impl ::std::convert::From + for PostGetQueueElementsBody { + fn from(value: super::PostGetQueueElementsBody) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -50329,68 +45537,126 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetTokenAccountInterfaceBodyParams { - address: ::std::result::Result< - super::SerializablePubkey, + pub struct PostGetQueueElementsBodyParams { + address_queue: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + input_queue: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + output_queue: ::std::result::Result< + ::std::option::Option, ::std::string::String, >, + tree: ::std::result::Result, } - impl ::std::default::Default for PostGetTokenAccountInterfaceBodyParams { + impl ::std::default::Default for PostGetQueueElementsBodyParams { fn default() -> Self { Self { - address: Err("no value supplied for address".to_string()), + address_queue: Ok(Default::default()), + input_queue: Ok(Default::default()), + output_queue: Ok(Default::default()), + tree: Err("no value supplied for tree".to_string()), } } } - impl PostGetTokenAccountInterfaceBodyParams { - pub fn address(mut self, value: T) -> Self + impl PostGetQueueElementsBodyParams { + pub fn address_queue(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::option::Option>, T::Error: ::std::fmt::Display, { - self.address = value + self.address_queue = value .try_into() .map_err(|e| { - format!("error converting supplied value for address: {e}") + format!("error converting supplied value for address_queue: {e}") + }); + self + } + pub fn input_queue(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, + { + self.input_queue = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for input_queue: {e}") + }); + self + } + pub fn output_queue(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, + { + self.output_queue = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for output_queue: {e}") + }); + self + } + pub fn tree(mut self, value: T) -> Self + where + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, + { + self.tree = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for tree: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetTokenAccountInterfaceBodyParams { + impl ::std::convert::TryFrom + for super::PostGetQueueElementsBodyParams { type Error = super::error::ConversionError; fn try_from( - value: PostGetTokenAccountInterfaceBodyParams, + value: PostGetQueueElementsBodyParams, ) -> ::std::result::Result { - Ok(Self { address: value.address? }) + Ok(Self { + address_queue: value.address_queue?, + input_queue: value.input_queue?, + output_queue: value.output_queue?, + tree: value.tree?, + }) } } - impl ::std::convert::From - for PostGetTokenAccountInterfaceBodyParams { - fn from(value: super::PostGetTokenAccountInterfaceBodyParams) -> Self { - Self { address: Ok(value.address) } + impl ::std::convert::From + for PostGetQueueElementsBodyParams { + fn from(value: super::PostGetQueueElementsBodyParams) -> Self { + Self { + address_queue: Ok(value.address_queue), + input_queue: Ok(value.input_queue), + output_queue: Ok(value.output_queue), + tree: Ok(value.tree), + } } } #[derive(Clone, Debug)] - pub struct PostGetTokenAccountInterfaceResponse { + pub struct PostGetQueueElementsResponse { error: ::std::result::Result< - ::std::option::Option, + ::std::option::Option, ::std::string::String, >, id: ::std::result::Result< - super::PostGetTokenAccountInterfaceResponseId, + super::PostGetQueueElementsResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetTokenAccountInterfaceResponseJsonrpc, + super::PostGetQueueElementsResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< - ::std::option::Option, + ::std::option::Option, ::std::string::String, >, } - impl ::std::default::Default for PostGetTokenAccountInterfaceResponse { + impl ::std::default::Default for PostGetQueueElementsResponse { fn default() -> Self { Self { error: Ok(Default::default()), @@ -50400,13 +45666,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetTokenAccountInterfaceResponse { + impl PostGetQueueElementsResponse { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< - ::std::option::Option< - super::PostGetTokenAccountInterfaceResponseError, - >, + ::std::option::Option, >, T::Error: ::std::fmt::Display, { @@ -50419,9 +45683,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetTokenAccountInterfaceResponseId, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.id = value @@ -50431,9 +45693,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn jsonrpc(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetTokenAccountInterfaceResponseJsonrpc, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.jsonrpc = value @@ -50446,9 +45706,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn result(mut self, value: T) -> Self where T: ::std::convert::TryInto< - ::std::option::Option< - super::PostGetTokenAccountInterfaceResponseResult, - >, + ::std::option::Option, >, T::Error: ::std::fmt::Display, { @@ -50460,11 +45718,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetTokenAccountInterfaceResponse { + impl ::std::convert::TryFrom + for super::PostGetQueueElementsResponse { type Error = super::error::ConversionError; fn try_from( - value: PostGetTokenAccountInterfaceResponse, + value: PostGetQueueElementsResponse, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -50474,9 +45732,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetTokenAccountInterfaceResponse { - fn from(value: super::PostGetTokenAccountInterfaceResponse) -> Self { + impl ::std::convert::From + for PostGetQueueElementsResponse { + fn from(value: super::PostGetQueueElementsResponse) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -50486,7 +45744,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetTokenAccountInterfaceResponseError { + pub struct PostGetQueueElementsResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -50496,7 +45754,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::string::String, >, } - impl ::std::default::Default for PostGetTokenAccountInterfaceResponseError { + impl ::std::default::Default for PostGetQueueElementsResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -50504,7 +45762,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetTokenAccountInterfaceResponseError { + impl PostGetQueueElementsResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -50530,11 +45788,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetTokenAccountInterfaceResponseError { + impl ::std::convert::TryFrom + for super::PostGetQueueElementsResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetTokenAccountInterfaceResponseError, + value: PostGetQueueElementsResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -50542,9 +45800,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetTokenAccountInterfaceResponseError { - fn from(value: super::PostGetTokenAccountInterfaceResponseError) -> Self { + impl ::std::convert::From + for PostGetQueueElementsResponseError { + fn from(value: super::PostGetQueueElementsResponseError) -> Self { Self { code: Ok(value.code), message: Ok(value.message), @@ -50552,22 +45810,41 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetTokenAccountInterfaceResponseResult { + pub struct PostGetQueueElementsResponseResult { + address_queue: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, context: ::std::result::Result, - value: ::std::result::Result< - ::std::option::Option, + state_queue: ::std::result::Result< + ::std::option::Option, ::std::string::String, >, } - impl ::std::default::Default for PostGetTokenAccountInterfaceResponseResult { + impl ::std::default::Default for PostGetQueueElementsResponseResult { fn default() -> Self { Self { + address_queue: Ok(Default::default()), context: Err("no value supplied for context".to_string()), - value: Ok(Default::default()), + state_queue: Ok(Default::default()), } } } - impl PostGetTokenAccountInterfaceResponseResult { + impl PostGetQueueElementsResponseResult { + pub fn address_queue(mut self, value: T) -> Self + where + T: ::std::convert::TryInto< + ::std::option::Option, + >, + T::Error: ::std::fmt::Display, + { + self.address_queue = value + .try_into() + .map_err(|e| { + format!("error converting supplied value for address_queue: {e}") + }); + self + } pub fn context(mut self, value: T) -> Self where T: ::std::convert::TryInto, @@ -50580,62 +45857,62 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }); self } - pub fn value(mut self, value: T) -> Self + pub fn state_queue(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - ::std::option::Option, - >, + T: ::std::convert::TryInto<::std::option::Option>, T::Error: ::std::fmt::Display, { - self.value = value + self.state_queue = value .try_into() .map_err(|e| { - format!("error converting supplied value for value: {e}") + format!("error converting supplied value for state_queue: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetTokenAccountInterfaceResponseResult { + impl ::std::convert::TryFrom + for super::PostGetQueueElementsResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetTokenAccountInterfaceResponseResult, + value: PostGetQueueElementsResponseResult, ) -> ::std::result::Result { Ok(Self { + address_queue: value.address_queue?, context: value.context?, - value: value.value?, + state_queue: value.state_queue?, }) } } - impl ::std::convert::From - for PostGetTokenAccountInterfaceResponseResult { - fn from(value: super::PostGetTokenAccountInterfaceResponseResult) -> Self { + impl ::std::convert::From + for PostGetQueueElementsResponseResult { + fn from(value: super::PostGetQueueElementsResponseResult) -> Self { Self { + address_queue: Ok(value.address_queue), context: Ok(value.context), - value: Ok(value.value), + state_queue: Ok(value.state_queue), } } } #[derive(Clone, Debug)] - pub struct PostGetTokenAccountInterfacesBody { + pub struct PostGetQueueInfoBody { id: ::std::result::Result< - super::PostGetTokenAccountInterfacesBodyId, + super::PostGetQueueInfoBodyId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetTokenAccountInterfacesBodyJsonrpc, + super::PostGetQueueInfoBodyJsonrpc, ::std::string::String, >, method: ::std::result::Result< - super::PostGetTokenAccountInterfacesBodyMethod, + super::PostGetQueueInfoBodyMethod, ::std::string::String, >, params: ::std::result::Result< - super::PostGetTokenAccountInterfacesBodyParams, + super::PostGetQueueInfoBodyParams, ::std::string::String, >, } - impl ::std::default::Default for PostGetTokenAccountInterfacesBody { + impl ::std::default::Default for PostGetQueueInfoBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -50645,10 +45922,10 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetTokenAccountInterfacesBody { + impl PostGetQueueInfoBody { pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.id = value @@ -50658,9 +45935,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn jsonrpc(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetTokenAccountInterfacesBodyJsonrpc, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.jsonrpc = value @@ -50672,9 +45947,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn method(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetTokenAccountInterfacesBodyMethod, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.method = value @@ -50686,9 +45959,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn params(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetTokenAccountInterfacesBodyParams, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.params = value @@ -50699,11 +45970,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetTokenAccountInterfacesBody { + impl ::std::convert::TryFrom + for super::PostGetQueueInfoBody { type Error = super::error::ConversionError; fn try_from( - value: PostGetTokenAccountInterfacesBody, + value: PostGetQueueInfoBody, ) -> ::std::result::Result { Ok(Self { id: value.id?, @@ -50713,9 +45984,8 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetTokenAccountInterfacesBody { - fn from(value: super::PostGetTokenAccountInterfacesBody) -> Self { + impl ::std::convert::From for PostGetQueueInfoBody { + fn from(value: super::PostGetQueueInfoBody) -> Self { Self { id: Ok(value.id), jsonrpc: Ok(value.jsonrpc), @@ -50725,74 +45995,70 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetTokenAccountInterfacesBodyParams { - addresses: ::std::result::Result< - ::std::vec::Vec, + pub struct PostGetQueueInfoBodyParams { + trees: ::std::result::Result< + ::std::option::Option<::std::vec::Vec<::std::string::String>>, ::std::string::String, >, } - impl ::std::default::Default for PostGetTokenAccountInterfacesBodyParams { + impl ::std::default::Default for PostGetQueueInfoBodyParams { fn default() -> Self { Self { - addresses: Err("no value supplied for addresses".to_string()), + trees: Ok(Default::default()), } } } - impl PostGetTokenAccountInterfacesBodyParams { - pub fn addresses(mut self, value: T) -> Self + impl PostGetQueueInfoBodyParams { + pub fn trees(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::vec::Vec>, + T: ::std::convert::TryInto< + ::std::option::Option<::std::vec::Vec<::std::string::String>>, + >, T::Error: ::std::fmt::Display, { - self.addresses = value + self.trees = value .try_into() .map_err(|e| { - format!("error converting supplied value for addresses: {e}") + format!("error converting supplied value for trees: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetTokenAccountInterfacesBodyParams { + impl ::std::convert::TryFrom + for super::PostGetQueueInfoBodyParams { type Error = super::error::ConversionError; fn try_from( - value: PostGetTokenAccountInterfacesBodyParams, + value: PostGetQueueInfoBodyParams, ) -> ::std::result::Result { - Ok(Self { - addresses: value.addresses?, - }) + Ok(Self { trees: value.trees? }) } } - impl ::std::convert::From - for PostGetTokenAccountInterfacesBodyParams { - fn from(value: super::PostGetTokenAccountInterfacesBodyParams) -> Self { - Self { - addresses: Ok(value.addresses), - } + impl ::std::convert::From + for PostGetQueueInfoBodyParams { + fn from(value: super::PostGetQueueInfoBodyParams) -> Self { + Self { trees: Ok(value.trees) } } } #[derive(Clone, Debug)] - pub struct PostGetTokenAccountInterfacesResponse { + pub struct PostGetQueueInfoResponse { error: ::std::result::Result< - ::std::option::Option, + ::std::option::Option, ::std::string::String, >, id: ::std::result::Result< - super::PostGetTokenAccountInterfacesResponseId, + super::PostGetQueueInfoResponseId, ::std::string::String, >, jsonrpc: ::std::result::Result< - super::PostGetTokenAccountInterfacesResponseJsonrpc, + super::PostGetQueueInfoResponseJsonrpc, ::std::string::String, >, result: ::std::result::Result< - ::std::option::Option< - super::PostGetTokenAccountInterfacesResponseResult, - >, + ::std::option::Option, ::std::string::String, >, } - impl ::std::default::Default for PostGetTokenAccountInterfacesResponse { + impl ::std::default::Default for PostGetQueueInfoResponse { fn default() -> Self { Self { error: Ok(Default::default()), @@ -50802,13 +46068,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetTokenAccountInterfacesResponse { + impl PostGetQueueInfoResponse { pub fn error(mut self, value: T) -> Self where T: ::std::convert::TryInto< - ::std::option::Option< - super::PostGetTokenAccountInterfacesResponseError, - >, + ::std::option::Option, >, T::Error: ::std::fmt::Display, { @@ -50821,9 +46085,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetTokenAccountInterfacesResponseId, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.id = value @@ -50833,9 +46095,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } pub fn jsonrpc(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - super::PostGetTokenAccountInterfacesResponseJsonrpc, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { self.jsonrpc = value @@ -50848,9 +46108,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ pub fn result(mut self, value: T) -> Self where T: ::std::convert::TryInto< - ::std::option::Option< - super::PostGetTokenAccountInterfacesResponseResult, - >, + ::std::option::Option, >, T::Error: ::std::fmt::Display, { @@ -50862,11 +46120,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetTokenAccountInterfacesResponse { + impl ::std::convert::TryFrom + for super::PostGetQueueInfoResponse { type Error = super::error::ConversionError; fn try_from( - value: PostGetTokenAccountInterfacesResponse, + value: PostGetQueueInfoResponse, ) -> ::std::result::Result { Ok(Self { error: value.error?, @@ -50876,9 +46134,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetTokenAccountInterfacesResponse { - fn from(value: super::PostGetTokenAccountInterfacesResponse) -> Self { + impl ::std::convert::From + for PostGetQueueInfoResponse { + fn from(value: super::PostGetQueueInfoResponse) -> Self { Self { error: Ok(value.error), id: Ok(value.id), @@ -50888,7 +46146,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetTokenAccountInterfacesResponseError { + pub struct PostGetQueueInfoResponseError { code: ::std::result::Result< ::std::option::Option, ::std::string::String, @@ -50898,7 +46156,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ ::std::string::String, >, } - impl ::std::default::Default for PostGetTokenAccountInterfacesResponseError { + impl ::std::default::Default for PostGetQueueInfoResponseError { fn default() -> Self { Self { code: Ok(Default::default()), @@ -50906,7 +46164,7 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - impl PostGetTokenAccountInterfacesResponseError { + impl PostGetQueueInfoResponseError { pub fn code(mut self, value: T) -> Self where T: ::std::convert::TryInto<::std::option::Option>, @@ -50932,11 +46190,11 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ self } } - impl ::std::convert::TryFrom - for super::PostGetTokenAccountInterfacesResponseError { + impl ::std::convert::TryFrom + for super::PostGetQueueInfoResponseError { type Error = super::error::ConversionError; fn try_from( - value: PostGetTokenAccountInterfacesResponseError, + value: PostGetQueueInfoResponseError, ) -> ::std::result::Result { Ok(Self { code: value.code?, @@ -50944,9 +46202,9 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ }) } } - impl ::std::convert::From - for PostGetTokenAccountInterfacesResponseError { - fn from(value: super::PostGetTokenAccountInterfacesResponseError) -> Self { + impl ::std::convert::From + for PostGetQueueInfoResponseError { + fn from(value: super::PostGetQueueInfoResponseError) -> Self { Self { code: Ok(value.code), message: Ok(value.message), @@ -50954,67 +46212,65 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct PostGetTokenAccountInterfacesResponseResult { - context: ::std::result::Result, - value: ::std::result::Result< - ::std::vec::Vec<::std::option::Option>, + pub struct PostGetQueueInfoResponseResult { + queues: ::std::result::Result< + ::std::vec::Vec, ::std::string::String, >, + slot: ::std::result::Result, } - impl ::std::default::Default for PostGetTokenAccountInterfacesResponseResult { + impl ::std::default::Default for PostGetQueueInfoResponseResult { fn default() -> Self { Self { - context: Err("no value supplied for context".to_string()), - value: Err("no value supplied for value".to_string()), + queues: Err("no value supplied for queues".to_string()), + slot: Err("no value supplied for slot".to_string()), } } } - impl PostGetTokenAccountInterfacesResponseResult { - pub fn context(mut self, value: T) -> Self + impl PostGetQueueInfoResponseResult { + pub fn queues(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::vec::Vec>, T::Error: ::std::fmt::Display, { - self.context = value + self.queues = value .try_into() .map_err(|e| { - format!("error converting supplied value for context: {e}") + format!("error converting supplied value for queues: {e}") }); self } - pub fn value(mut self, value: T) -> Self + pub fn slot(mut self, value: T) -> Self where - T: ::std::convert::TryInto< - ::std::vec::Vec<::std::option::Option>, - >, + T: ::std::convert::TryInto, T::Error: ::std::fmt::Display, { - self.value = value + self.slot = value .try_into() .map_err(|e| { - format!("error converting supplied value for value: {e}") + format!("error converting supplied value for slot: {e}") }); self } } - impl ::std::convert::TryFrom - for super::PostGetTokenAccountInterfacesResponseResult { + impl ::std::convert::TryFrom + for super::PostGetQueueInfoResponseResult { type Error = super::error::ConversionError; fn try_from( - value: PostGetTokenAccountInterfacesResponseResult, + value: PostGetQueueInfoResponseResult, ) -> ::std::result::Result { Ok(Self { - context: value.context?, - value: value.value?, + queues: value.queues?, + slot: value.slot?, }) } } - impl ::std::convert::From - for PostGetTokenAccountInterfacesResponseResult { - fn from(value: super::PostGetTokenAccountInterfacesResponseResult) -> Self { + impl ::std::convert::From + for PostGetQueueInfoResponseResult { + fn from(value: super::PostGetQueueInfoResponseResult) -> Self { Self { - context: Ok(value.context), - value: Ok(value.value), + queues: Ok(value.queues), + slot: Ok(value.slot), } } } @@ -53706,104 +48962,6 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } #[derive(Clone, Debug)] - pub struct TokenAccountInterface { - account: ::std::result::Result< - super::SolanaAccountData, - ::std::string::String, - >, - cold: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - key: ::std::result::Result, - token_data: ::std::result::Result, - } - impl ::std::default::Default for TokenAccountInterface { - fn default() -> Self { - Self { - account: Err("no value supplied for account".to_string()), - cold: Ok(Default::default()), - key: Err("no value supplied for key".to_string()), - token_data: Err("no value supplied for token_data".to_string()), - } - } - } - impl TokenAccountInterface { - pub fn account(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.account = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for account: {e}") - }); - self - } - pub fn cold(mut self, value: T) -> Self - where - T: ::std::convert::TryInto<::std::option::Option>, - T::Error: ::std::fmt::Display, - { - self.cold = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for cold: {e}") - }); - self - } - pub fn key(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.key = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for key: {e}") - }); - self - } - pub fn token_data(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.token_data = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for token_data: {e}") - }); - self - } - } - impl ::std::convert::TryFrom - for super::TokenAccountInterface { - type Error = super::error::ConversionError; - fn try_from( - value: TokenAccountInterface, - ) -> ::std::result::Result { - Ok(Self { - account: value.account?, - cold: value.cold?, - key: value.key?, - token_data: value.token_data?, - }) - } - } - impl ::std::convert::From - for TokenAccountInterface { - fn from(value: super::TokenAccountInterface) -> Self { - Self { - account: Ok(value.account), - cold: Ok(value.cold), - key: Ok(value.key), - token_data: Ok(value.token_data), - } - } - } - #[derive(Clone, Debug)] pub struct TokenAccountList { cursor: ::std::result::Result< ::std::option::Option, @@ -54422,126 +49580,6 @@ Values match light-compressed-account::TreeType: StateV1=1, StateV2=3*/ } } } - #[derive(Clone, Debug)] - pub struct TreeInfo { - queue: ::std::result::Result< - super::SerializablePubkey, - ::std::string::String, - >, - seq: ::std::result::Result< - ::std::option::Option, - ::std::string::String, - >, - slot_created: ::std::result::Result< - super::UnsignedInteger, - ::std::string::String, - >, - tree: ::std::result::Result< - super::SerializablePubkey, - ::std::string::String, - >, - tree_type: ::std::result::Result, - } - impl ::std::default::Default for TreeInfo { - fn default() -> Self { - Self { - queue: Err("no value supplied for queue".to_string()), - seq: Ok(Default::default()), - slot_created: Err("no value supplied for slot_created".to_string()), - tree: Err("no value supplied for tree".to_string()), - tree_type: Err("no value supplied for tree_type".to_string()), - } - } - } - impl TreeInfo { - pub fn queue(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.queue = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for queue: {e}") - }); - self - } - pub fn seq(mut self, value: T) -> Self - where - T: ::std::convert::TryInto< - ::std::option::Option, - >, - T::Error: ::std::fmt::Display, - { - self.seq = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for seq: {e}") - }); - self - } - pub fn slot_created(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.slot_created = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for slot_created: {e}") - }); - self - } - pub fn tree(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.tree = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for tree: {e}") - }); - self - } - pub fn tree_type(mut self, value: T) -> Self - where - T: ::std::convert::TryInto, - T::Error: ::std::fmt::Display, - { - self.tree_type = value - .try_into() - .map_err(|e| { - format!("error converting supplied value for tree_type: {e}") - }); - self - } - } - impl ::std::convert::TryFrom for super::TreeInfo { - type Error = super::error::ConversionError; - fn try_from( - value: TreeInfo, - ) -> ::std::result::Result { - Ok(Self { - queue: value.queue?, - seq: value.seq?, - slot_created: value.slot_created?, - tree: value.tree?, - tree_type: value.tree_type?, - }) - } - } - impl ::std::convert::From for TreeInfo { - fn from(value: super::TreeInfo) -> Self { - Self { - queue: Ok(value.queue), - seq: Ok(value.seq), - slot_created: Ok(value.slot_created), - tree: Ok(value.tree), - tree_type: Ok(value.tree_type), - } - } - } } /// Generation of default values for serde. pub mod defaults { @@ -54623,28 +49661,6 @@ let response = client.post_get_account_interface() pub fn post_get_account_interface(&self) -> builder::PostGetAccountInterface<'_> { builder::PostGetAccountInterface::new(self) } - /**Sends a `POST` request to `/getAccountInterfaces` - -```ignore -let response = client.post_get_account_interfaces() - .body(body) - .send() - .await; -```*/ - pub fn post_get_account_interfaces(&self) -> builder::PostGetAccountInterfaces<'_> { - builder::PostGetAccountInterfaces::new(self) - } - /**Sends a `POST` request to `/getAtaInterface` - -```ignore -let response = client.post_get_ata_interface() - .body(body) - .send() - .await; -```*/ - pub fn post_get_ata_interface(&self) -> builder::PostGetAtaInterface<'_> { - builder::PostGetAtaInterface::new(self) - } /**Sends a `POST` request to `/getCompressedAccount` ```ignore @@ -55064,32 +50080,6 @@ let response = client.post_get_queue_info() pub fn post_get_queue_info(&self) -> builder::PostGetQueueInfo<'_> { builder::PostGetQueueInfo::new(self) } - /**Sends a `POST` request to `/getTokenAccountInterface` - -```ignore -let response = client.post_get_token_account_interface() - .body(body) - .send() - .await; -```*/ - pub fn post_get_token_account_interface( - &self, - ) -> builder::PostGetTokenAccountInterface<'_> { - builder::PostGetTokenAccountInterface::new(self) - } - /**Sends a `POST` request to `/getTokenAccountInterfaces` - -```ignore -let response = client.post_get_token_account_interfaces() - .body(body) - .send() - .await; -```*/ - pub fn post_get_token_account_interfaces( - &self, - ) -> builder::PostGetTokenAccountInterfaces<'_> { - builder::PostGetTokenAccountInterfaces::new(self) - } /**Sends a `POST` request to `/getTransactionWithCompressionInfo` ```ignore @@ -55251,211 +50241,6 @@ pub mod builder { } } } - /**Builder for [`Client::post_get_account_interfaces`] - -[`Client::post_get_account_interfaces`]: super::Client::post_get_account_interfaces*/ - #[derive(Debug, Clone)] - pub struct PostGetAccountInterfaces<'a> { - client: &'a super::Client, - body: Result, - } - impl<'a> PostGetAccountInterfaces<'a> { - pub fn new(client: &'a super::Client) -> Self { - Self { - client: client, - body: Ok(::std::default::Default::default()), - } - } - pub fn body(mut self, value: V) -> Self - where - V: std::convert::TryInto, - >::Error: std::fmt::Display, - { - self.body = value - .try_into() - .map(From::from) - .map_err(|s| { - format!( - "conversion to `PostGetAccountInterfacesBody` for body failed: {}", - s - ) - }); - self - } - pub fn body_map(mut self, f: F) -> Self - where - F: std::ops::FnOnce( - types::builder::PostGetAccountInterfacesBody, - ) -> types::builder::PostGetAccountInterfacesBody, - { - self.body = self.body.map(f); - self - } - ///Sends a `POST` request to `/getAccountInterfaces` - pub async fn send( - self, - ) -> Result< - ResponseValue, - Error, - > { - let Self { client, body } = self; - let body = body - .and_then(|v| { - types::PostGetAccountInterfacesBody::try_from(v) - .map_err(|e| e.to_string()) - }) - .map_err(Error::InvalidRequest)?; - let url = format!("{}/getAccountInterfaces", client.baseurl,); - let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize); - header_map - .append( - ::reqwest::header::HeaderName::from_static("api-version"), - ::reqwest::header::HeaderValue::from_static( - super::Client::api_version(), - ), - ); - #[allow(unused_mut)] - let mut request = client - .client - .post(url) - .header( - ::reqwest::header::ACCEPT, - ::reqwest::header::HeaderValue::from_static("application/json"), - ) - .json(&body) - .headers(header_map) - .build()?; - let info = OperationInfo { - operation_id: "post_get_account_interfaces", - }; - client.pre(&mut request, &info).await?; - let result = client.exec(request, &info).await; - client.post(&result, &info).await?; - let response = result?; - match response.status().as_u16() { - 200u16 => ResponseValue::from_response(response).await, - 429u16 => { - Err( - Error::ErrorResponse( - ResponseValue::from_response(response).await?, - ), - ) - } - 500u16 => { - Err( - Error::ErrorResponse( - ResponseValue::from_response(response).await?, - ), - ) - } - _ => Err(Error::UnexpectedResponse(response)), - } - } - } - /**Builder for [`Client::post_get_ata_interface`] - -[`Client::post_get_ata_interface`]: super::Client::post_get_ata_interface*/ - #[derive(Debug, Clone)] - pub struct PostGetAtaInterface<'a> { - client: &'a super::Client, - body: Result, - } - impl<'a> PostGetAtaInterface<'a> { - pub fn new(client: &'a super::Client) -> Self { - Self { - client: client, - body: Ok(::std::default::Default::default()), - } - } - pub fn body(mut self, value: V) -> Self - where - V: std::convert::TryInto, - >::Error: std::fmt::Display, - { - self.body = value - .try_into() - .map(From::from) - .map_err(|s| { - format!( - "conversion to `PostGetAtaInterfaceBody` for body failed: {}", s - ) - }); - self - } - pub fn body_map(mut self, f: F) -> Self - where - F: std::ops::FnOnce( - types::builder::PostGetAtaInterfaceBody, - ) -> types::builder::PostGetAtaInterfaceBody, - { - self.body = self.body.map(f); - self - } - ///Sends a `POST` request to `/getAtaInterface` - pub async fn send( - self, - ) -> Result< - ResponseValue, - Error, - > { - let Self { client, body } = self; - let body = body - .and_then(|v| { - types::PostGetAtaInterfaceBody::try_from(v) - .map_err(|e| e.to_string()) - }) - .map_err(Error::InvalidRequest)?; - let url = format!("{}/getAtaInterface", client.baseurl,); - let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize); - header_map - .append( - ::reqwest::header::HeaderName::from_static("api-version"), - ::reqwest::header::HeaderValue::from_static( - super::Client::api_version(), - ), - ); - #[allow(unused_mut)] - let mut request = client - .client - .post(url) - .header( - ::reqwest::header::ACCEPT, - ::reqwest::header::HeaderValue::from_static("application/json"), - ) - .json(&body) - .headers(header_map) - .build()?; - let info = OperationInfo { - operation_id: "post_get_ata_interface", - }; - client.pre(&mut request, &info).await?; - let result = client.exec(request, &info).await; - client.post(&result, &info).await?; - let response = result?; - match response.status().as_u16() { - 200u16 => ResponseValue::from_response(response).await, - 429u16 => { - Err( - Error::ErrorResponse( - ResponseValue::from_response(response).await?, - ), - ) - } - 500u16 => { - Err( - Error::ErrorResponse( - ResponseValue::from_response(response).await?, - ), - ) - } - _ => Err(Error::UnexpectedResponse(response)), - } - } - } /**Builder for [`Client::post_get_compressed_account`] [`Client::post_get_compressed_account`]: super::Client::post_get_compressed_account*/ @@ -58268,118 +53053,15 @@ pub mod builder { } } } - /**Builder for [`Client::post_get_multiple_compressed_accounts`] - -[`Client::post_get_multiple_compressed_accounts`]: super::Client::post_get_multiple_compressed_accounts*/ - #[derive(Debug, Clone)] - pub struct PostGetMultipleCompressedAccounts<'a> { - client: &'a super::Client, - body: Result, - } - impl<'a> PostGetMultipleCompressedAccounts<'a> { - pub fn new(client: &'a super::Client) -> Self { - Self { - client: client, - body: Ok(::std::default::Default::default()), - } - } - pub fn body(mut self, value: V) -> Self - where - V: std::convert::TryInto, - >::Error: std::fmt::Display, - { - self.body = value - .try_into() - .map(From::from) - .map_err(|s| { - format!( - "conversion to `PostGetMultipleCompressedAccountsBody` for body failed: {}", - s - ) - }); - self - } - pub fn body_map(mut self, f: F) -> Self - where - F: std::ops::FnOnce( - types::builder::PostGetMultipleCompressedAccountsBody, - ) -> types::builder::PostGetMultipleCompressedAccountsBody, - { - self.body = self.body.map(f); - self - } - ///Sends a `POST` request to `/getMultipleCompressedAccounts` - pub async fn send( - self, - ) -> Result< - ResponseValue, - Error, - > { - let Self { client, body } = self; - let body = body - .and_then(|v| { - types::PostGetMultipleCompressedAccountsBody::try_from(v) - .map_err(|e| e.to_string()) - }) - .map_err(Error::InvalidRequest)?; - let url = format!("{}/getMultipleCompressedAccounts", client.baseurl,); - let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize); - header_map - .append( - ::reqwest::header::HeaderName::from_static("api-version"), - ::reqwest::header::HeaderValue::from_static( - super::Client::api_version(), - ), - ); - #[allow(unused_mut)] - let mut request = client - .client - .post(url) - .header( - ::reqwest::header::ACCEPT, - ::reqwest::header::HeaderValue::from_static("application/json"), - ) - .json(&body) - .headers(header_map) - .build()?; - let info = OperationInfo { - operation_id: "post_get_multiple_compressed_accounts", - }; - client.pre(&mut request, &info).await?; - let result = client.exec(request, &info).await; - client.post(&result, &info).await?; - let response = result?; - match response.status().as_u16() { - 200u16 => ResponseValue::from_response(response).await, - 429u16 => { - Err( - Error::ErrorResponse( - ResponseValue::from_response(response).await?, - ), - ) - } - 500u16 => { - Err( - Error::ErrorResponse( - ResponseValue::from_response(response).await?, - ), - ) - } - _ => Err(Error::UnexpectedResponse(response)), - } - } - } - /**Builder for [`Client::post_get_multiple_compressed_accounts_v2`] + /**Builder for [`Client::post_get_multiple_compressed_accounts`] -[`Client::post_get_multiple_compressed_accounts_v2`]: super::Client::post_get_multiple_compressed_accounts_v2*/ +[`Client::post_get_multiple_compressed_accounts`]: super::Client::post_get_multiple_compressed_accounts*/ #[derive(Debug, Clone)] - pub struct PostGetMultipleCompressedAccountsV2<'a> { + pub struct PostGetMultipleCompressedAccounts<'a> { client: &'a super::Client, - body: Result, + body: Result, } - impl<'a> PostGetMultipleCompressedAccountsV2<'a> { + impl<'a> PostGetMultipleCompressedAccounts<'a> { pub fn new(client: &'a super::Client) -> Self { Self { client: client, @@ -58388,9 +53070,9 @@ pub mod builder { } pub fn body(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto, >::Error: std::fmt::Display, { self.body = value @@ -58398,7 +53080,7 @@ pub mod builder { .map(From::from) .map_err(|s| { format!( - "conversion to `PostGetMultipleCompressedAccountsV2Body` for body failed: {}", + "conversion to `PostGetMultipleCompressedAccountsBody` for body failed: {}", s ) }); @@ -58407,27 +53089,27 @@ pub mod builder { pub fn body_map(mut self, f: F) -> Self where F: std::ops::FnOnce( - types::builder::PostGetMultipleCompressedAccountsV2Body, - ) -> types::builder::PostGetMultipleCompressedAccountsV2Body, + types::builder::PostGetMultipleCompressedAccountsBody, + ) -> types::builder::PostGetMultipleCompressedAccountsBody, { self.body = self.body.map(f); self } - ///Sends a `POST` request to `/getMultipleCompressedAccountsV2` + ///Sends a `POST` request to `/getMultipleCompressedAccounts` pub async fn send( self, ) -> Result< - ResponseValue, - Error, + ResponseValue, + Error, > { let Self { client, body } = self; let body = body .and_then(|v| { - types::PostGetMultipleCompressedAccountsV2Body::try_from(v) + types::PostGetMultipleCompressedAccountsBody::try_from(v) .map_err(|e| e.to_string()) }) .map_err(Error::InvalidRequest)?; - let url = format!("{}/getMultipleCompressedAccountsV2", client.baseurl,); + let url = format!("{}/getMultipleCompressedAccounts", client.baseurl,); let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize); header_map .append( @@ -58448,7 +53130,7 @@ pub mod builder { .headers(header_map) .build()?; let info = OperationInfo { - operation_id: "post_get_multiple_compressed_accounts_v2", + operation_id: "post_get_multiple_compressed_accounts", }; client.pre(&mut request, &info).await?; let result = client.exec(request, &info).await; @@ -58474,15 +53156,15 @@ pub mod builder { } } } - /**Builder for [`Client::post_get_multiple_new_address_proofs`] + /**Builder for [`Client::post_get_multiple_compressed_accounts_v2`] -[`Client::post_get_multiple_new_address_proofs`]: super::Client::post_get_multiple_new_address_proofs*/ +[`Client::post_get_multiple_compressed_accounts_v2`]: super::Client::post_get_multiple_compressed_accounts_v2*/ #[derive(Debug, Clone)] - pub struct PostGetMultipleNewAddressProofs<'a> { + pub struct PostGetMultipleCompressedAccountsV2<'a> { client: &'a super::Client, - body: Result, + body: Result, } - impl<'a> PostGetMultipleNewAddressProofs<'a> { + impl<'a> PostGetMultipleCompressedAccountsV2<'a> { pub fn new(client: &'a super::Client) -> Self { Self { client: client, @@ -58491,9 +53173,9 @@ pub mod builder { } pub fn body(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto, >::Error: std::fmt::Display, { self.body = value @@ -58501,7 +53183,7 @@ pub mod builder { .map(From::from) .map_err(|s| { format!( - "conversion to `PostGetMultipleNewAddressProofsBody` for body failed: {}", + "conversion to `PostGetMultipleCompressedAccountsV2Body` for body failed: {}", s ) }); @@ -58510,27 +53192,27 @@ pub mod builder { pub fn body_map(mut self, f: F) -> Self where F: std::ops::FnOnce( - types::builder::PostGetMultipleNewAddressProofsBody, - ) -> types::builder::PostGetMultipleNewAddressProofsBody, + types::builder::PostGetMultipleCompressedAccountsV2Body, + ) -> types::builder::PostGetMultipleCompressedAccountsV2Body, { self.body = self.body.map(f); self } - ///Sends a `POST` request to `/getMultipleNewAddressProofs` + ///Sends a `POST` request to `/getMultipleCompressedAccountsV2` pub async fn send( self, ) -> Result< - ResponseValue, - Error, + ResponseValue, + Error, > { let Self { client, body } = self; let body = body .and_then(|v| { - types::PostGetMultipleNewAddressProofsBody::try_from(v) + types::PostGetMultipleCompressedAccountsV2Body::try_from(v) .map_err(|e| e.to_string()) }) .map_err(Error::InvalidRequest)?; - let url = format!("{}/getMultipleNewAddressProofs", client.baseurl,); + let url = format!("{}/getMultipleCompressedAccountsV2", client.baseurl,); let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize); header_map .append( @@ -58551,7 +53233,7 @@ pub mod builder { .headers(header_map) .build()?; let info = OperationInfo { - operation_id: "post_get_multiple_new_address_proofs", + operation_id: "post_get_multiple_compressed_accounts_v2", }; client.pre(&mut request, &info).await?; let result = client.exec(request, &info).await; @@ -58577,15 +53259,15 @@ pub mod builder { } } } - /**Builder for [`Client::post_get_multiple_new_address_proofs_v2`] + /**Builder for [`Client::post_get_multiple_new_address_proofs`] -[`Client::post_get_multiple_new_address_proofs_v2`]: super::Client::post_get_multiple_new_address_proofs_v2*/ +[`Client::post_get_multiple_new_address_proofs`]: super::Client::post_get_multiple_new_address_proofs*/ #[derive(Debug, Clone)] - pub struct PostGetMultipleNewAddressProofsV2<'a> { + pub struct PostGetMultipleNewAddressProofs<'a> { client: &'a super::Client, - body: Result, + body: Result, } - impl<'a> PostGetMultipleNewAddressProofsV2<'a> { + impl<'a> PostGetMultipleNewAddressProofs<'a> { pub fn new(client: &'a super::Client) -> Self { Self { client: client, @@ -58594,9 +53276,9 @@ pub mod builder { } pub fn body(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto, >::Error: std::fmt::Display, { self.body = value @@ -58604,7 +53286,7 @@ pub mod builder { .map(From::from) .map_err(|s| { format!( - "conversion to `PostGetMultipleNewAddressProofsV2Body` for body failed: {}", + "conversion to `PostGetMultipleNewAddressProofsBody` for body failed: {}", s ) }); @@ -58613,27 +53295,27 @@ pub mod builder { pub fn body_map(mut self, f: F) -> Self where F: std::ops::FnOnce( - types::builder::PostGetMultipleNewAddressProofsV2Body, - ) -> types::builder::PostGetMultipleNewAddressProofsV2Body, + types::builder::PostGetMultipleNewAddressProofsBody, + ) -> types::builder::PostGetMultipleNewAddressProofsBody, { self.body = self.body.map(f); self } - ///Sends a `POST` request to `/getMultipleNewAddressProofsV2` + ///Sends a `POST` request to `/getMultipleNewAddressProofs` pub async fn send( self, ) -> Result< - ResponseValue, - Error, + ResponseValue, + Error, > { let Self { client, body } = self; let body = body .and_then(|v| { - types::PostGetMultipleNewAddressProofsV2Body::try_from(v) + types::PostGetMultipleNewAddressProofsBody::try_from(v) .map_err(|e| e.to_string()) }) .map_err(Error::InvalidRequest)?; - let url = format!("{}/getMultipleNewAddressProofsV2", client.baseurl,); + let url = format!("{}/getMultipleNewAddressProofs", client.baseurl,); let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize); header_map .append( @@ -58654,7 +53336,7 @@ pub mod builder { .headers(header_map) .build()?; let info = OperationInfo { - operation_id: "post_get_multiple_new_address_proofs_v2", + operation_id: "post_get_multiple_new_address_proofs", }; client.pre(&mut request, &info).await?; let result = client.exec(request, &info).await; @@ -58680,15 +53362,15 @@ pub mod builder { } } } - /**Builder for [`Client::post_get_queue_elements`] + /**Builder for [`Client::post_get_multiple_new_address_proofs_v2`] -[`Client::post_get_queue_elements`]: super::Client::post_get_queue_elements*/ +[`Client::post_get_multiple_new_address_proofs_v2`]: super::Client::post_get_multiple_new_address_proofs_v2*/ #[derive(Debug, Clone)] - pub struct PostGetQueueElements<'a> { + pub struct PostGetMultipleNewAddressProofsV2<'a> { client: &'a super::Client, - body: Result, + body: Result, } - impl<'a> PostGetQueueElements<'a> { + impl<'a> PostGetMultipleNewAddressProofsV2<'a> { pub fn new(client: &'a super::Client) -> Self { Self { client: client, @@ -58697,9 +53379,9 @@ pub mod builder { } pub fn body(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto, >::Error: std::fmt::Display, { self.body = value @@ -58707,7 +53389,8 @@ pub mod builder { .map(From::from) .map_err(|s| { format!( - "conversion to `PostGetQueueElementsBody` for body failed: {}", s + "conversion to `PostGetMultipleNewAddressProofsV2Body` for body failed: {}", + s ) }); self @@ -58715,128 +53398,27 @@ pub mod builder { pub fn body_map(mut self, f: F) -> Self where F: std::ops::FnOnce( - types::builder::PostGetQueueElementsBody, - ) -> types::builder::PostGetQueueElementsBody, + types::builder::PostGetMultipleNewAddressProofsV2Body, + ) -> types::builder::PostGetMultipleNewAddressProofsV2Body, { self.body = self.body.map(f); self } - ///Sends a `POST` request to `/getQueueElements` + ///Sends a `POST` request to `/getMultipleNewAddressProofsV2` pub async fn send( self, ) -> Result< - ResponseValue, - Error, + ResponseValue, + Error, > { let Self { client, body } = self; let body = body .and_then(|v| { - types::PostGetQueueElementsBody::try_from(v) + types::PostGetMultipleNewAddressProofsV2Body::try_from(v) .map_err(|e| e.to_string()) }) .map_err(Error::InvalidRequest)?; - let url = format!("{}/getQueueElements", client.baseurl,); - let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize); - header_map - .append( - ::reqwest::header::HeaderName::from_static("api-version"), - ::reqwest::header::HeaderValue::from_static( - super::Client::api_version(), - ), - ); - #[allow(unused_mut)] - let mut request = client - .client - .post(url) - .header( - ::reqwest::header::ACCEPT, - ::reqwest::header::HeaderValue::from_static("application/json"), - ) - .json(&body) - .headers(header_map) - .build()?; - let info = OperationInfo { - operation_id: "post_get_queue_elements", - }; - client.pre(&mut request, &info).await?; - let result = client.exec(request, &info).await; - client.post(&result, &info).await?; - let response = result?; - match response.status().as_u16() { - 200u16 => ResponseValue::from_response(response).await, - 429u16 => { - Err( - Error::ErrorResponse( - ResponseValue::from_response(response).await?, - ), - ) - } - 500u16 => { - Err( - Error::ErrorResponse( - ResponseValue::from_response(response).await?, - ), - ) - } - _ => Err(Error::UnexpectedResponse(response)), - } - } - } - /**Builder for [`Client::post_get_queue_info`] - -[`Client::post_get_queue_info`]: super::Client::post_get_queue_info*/ - #[derive(Debug, Clone)] - pub struct PostGetQueueInfo<'a> { - client: &'a super::Client, - body: Result, - } - impl<'a> PostGetQueueInfo<'a> { - pub fn new(client: &'a super::Client) -> Self { - Self { - client: client, - body: Ok(::std::default::Default::default()), - } - } - pub fn body(mut self, value: V) -> Self - where - V: std::convert::TryInto, - >::Error: std::fmt::Display, - { - self.body = value - .try_into() - .map(From::from) - .map_err(|s| { - format!( - "conversion to `PostGetQueueInfoBody` for body failed: {}", s - ) - }); - self - } - pub fn body_map(mut self, f: F) -> Self - where - F: std::ops::FnOnce( - types::builder::PostGetQueueInfoBody, - ) -> types::builder::PostGetQueueInfoBody, - { - self.body = self.body.map(f); - self - } - ///Sends a `POST` request to `/getQueueInfo` - pub async fn send( - self, - ) -> Result< - ResponseValue, - Error, - > { - let Self { client, body } = self; - let body = body - .and_then(|v| { - types::PostGetQueueInfoBody::try_from(v).map_err(|e| e.to_string()) - }) - .map_err(Error::InvalidRequest)?; - let url = format!("{}/getQueueInfo", client.baseurl,); + let url = format!("{}/getMultipleNewAddressProofsV2", client.baseurl,); let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize); header_map .append( @@ -58857,7 +53439,7 @@ pub mod builder { .headers(header_map) .build()?; let info = OperationInfo { - operation_id: "post_get_queue_info", + operation_id: "post_get_multiple_new_address_proofs_v2", }; client.pre(&mut request, &info).await?; let result = client.exec(request, &info).await; @@ -58883,15 +53465,15 @@ pub mod builder { } } } - /**Builder for [`Client::post_get_token_account_interface`] + /**Builder for [`Client::post_get_queue_elements`] -[`Client::post_get_token_account_interface`]: super::Client::post_get_token_account_interface*/ +[`Client::post_get_queue_elements`]: super::Client::post_get_queue_elements*/ #[derive(Debug, Clone)] - pub struct PostGetTokenAccountInterface<'a> { + pub struct PostGetQueueElements<'a> { client: &'a super::Client, - body: Result, + body: Result, } - impl<'a> PostGetTokenAccountInterface<'a> { + impl<'a> PostGetQueueElements<'a> { pub fn new(client: &'a super::Client) -> Self { Self { client: client, @@ -58900,9 +53482,9 @@ pub mod builder { } pub fn body(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto, >::Error: std::fmt::Display, { self.body = value @@ -58910,8 +53492,7 @@ pub mod builder { .map(From::from) .map_err(|s| { format!( - "conversion to `PostGetTokenAccountInterfaceBody` for body failed: {}", - s + "conversion to `PostGetQueueElementsBody` for body failed: {}", s ) }); self @@ -58919,27 +53500,27 @@ pub mod builder { pub fn body_map(mut self, f: F) -> Self where F: std::ops::FnOnce( - types::builder::PostGetTokenAccountInterfaceBody, - ) -> types::builder::PostGetTokenAccountInterfaceBody, + types::builder::PostGetQueueElementsBody, + ) -> types::builder::PostGetQueueElementsBody, { self.body = self.body.map(f); self } - ///Sends a `POST` request to `/getTokenAccountInterface` + ///Sends a `POST` request to `/getQueueElements` pub async fn send( self, ) -> Result< - ResponseValue, - Error, + ResponseValue, + Error, > { let Self { client, body } = self; let body = body .and_then(|v| { - types::PostGetTokenAccountInterfaceBody::try_from(v) + types::PostGetQueueElementsBody::try_from(v) .map_err(|e| e.to_string()) }) .map_err(Error::InvalidRequest)?; - let url = format!("{}/getTokenAccountInterface", client.baseurl,); + let url = format!("{}/getQueueElements", client.baseurl,); let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize); header_map .append( @@ -58960,7 +53541,7 @@ pub mod builder { .headers(header_map) .build()?; let info = OperationInfo { - operation_id: "post_get_token_account_interface", + operation_id: "post_get_queue_elements", }; client.pre(&mut request, &info).await?; let result = client.exec(request, &info).await; @@ -58986,15 +53567,15 @@ pub mod builder { } } } - /**Builder for [`Client::post_get_token_account_interfaces`] + /**Builder for [`Client::post_get_queue_info`] -[`Client::post_get_token_account_interfaces`]: super::Client::post_get_token_account_interfaces*/ +[`Client::post_get_queue_info`]: super::Client::post_get_queue_info*/ #[derive(Debug, Clone)] - pub struct PostGetTokenAccountInterfaces<'a> { + pub struct PostGetQueueInfo<'a> { client: &'a super::Client, - body: Result, + body: Result, } - impl<'a> PostGetTokenAccountInterfaces<'a> { + impl<'a> PostGetQueueInfo<'a> { pub fn new(client: &'a super::Client) -> Self { Self { client: client, @@ -59003,9 +53584,9 @@ pub mod builder { } pub fn body(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto, >::Error: std::fmt::Display, { self.body = value @@ -59013,8 +53594,7 @@ pub mod builder { .map(From::from) .map_err(|s| { format!( - "conversion to `PostGetTokenAccountInterfacesBody` for body failed: {}", - s + "conversion to `PostGetQueueInfoBody` for body failed: {}", s ) }); self @@ -59022,27 +53602,26 @@ pub mod builder { pub fn body_map(mut self, f: F) -> Self where F: std::ops::FnOnce( - types::builder::PostGetTokenAccountInterfacesBody, - ) -> types::builder::PostGetTokenAccountInterfacesBody, + types::builder::PostGetQueueInfoBody, + ) -> types::builder::PostGetQueueInfoBody, { self.body = self.body.map(f); self } - ///Sends a `POST` request to `/getTokenAccountInterfaces` + ///Sends a `POST` request to `/getQueueInfo` pub async fn send( self, ) -> Result< - ResponseValue, - Error, + ResponseValue, + Error, > { let Self { client, body } = self; let body = body .and_then(|v| { - types::PostGetTokenAccountInterfacesBody::try_from(v) - .map_err(|e| e.to_string()) + types::PostGetQueueInfoBody::try_from(v).map_err(|e| e.to_string()) }) .map_err(Error::InvalidRequest)?; - let url = format!("{}/getTokenAccountInterfaces", client.baseurl,); + let url = format!("{}/getQueueInfo", client.baseurl,); let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize); header_map .append( @@ -59063,7 +53642,7 @@ pub mod builder { .headers(header_map) .build()?; let info = OperationInfo { - operation_id: "post_get_token_account_interfaces", + operation_id: "post_get_queue_info", }; client.pre(&mut request, &info).await?; let result = client.exec(request, &info).await; diff --git a/sdk-libs/photon-api/src/lib.rs b/sdk-libs/photon-api/src/lib.rs index 63d10a0b1c..d909ee2ad0 100644 --- a/sdk-libs/photon-api/src/lib.rs +++ b/sdk-libs/photon-api/src/lib.rs @@ -370,28 +370,6 @@ pub mod apis { } } - pub fn make_get_token_account_interface_body( - params: types::PostGetTokenAccountInterfaceBodyParams, - ) -> types::PostGetTokenAccountInterfaceBody { - types::PostGetTokenAccountInterfaceBody { - id: types::PostGetTokenAccountInterfaceBodyId::TestAccount, - jsonrpc: types::PostGetTokenAccountInterfaceBodyJsonrpc::X20, - method: types::PostGetTokenAccountInterfaceBodyMethod::GetTokenAccountInterface, - params, - } - } - - pub fn make_get_ata_interface_body( - params: types::PostGetAtaInterfaceBodyParams, - ) -> types::PostGetAtaInterfaceBody { - types::PostGetAtaInterfaceBody { - id: types::PostGetAtaInterfaceBodyId::TestAccount, - jsonrpc: types::PostGetAtaInterfaceBodyJsonrpc::X20, - method: types::PostGetAtaInterfaceBodyMethod::GetAtaInterface, - params, - } - } - pub fn make_get_multiple_account_interfaces_body( params: types::PostGetMultipleAccountInterfacesBodyParams, ) -> types::PostGetMultipleAccountInterfacesBody { @@ -600,18 +578,6 @@ pub mod apis { types::PostGetAccountInterfaceBody, types::PostGetAccountInterfaceResponse ); - api_call!( - get_token_account_interface_post, - "getTokenAccountInterface", - types::PostGetTokenAccountInterfaceBody, - types::PostGetTokenAccountInterfaceResponse - ); - api_call!( - get_ata_interface_post, - "getAtaInterface", - types::PostGetAtaInterfaceBody, - types::PostGetAtaInterfaceResponse - ); api_call!( get_multiple_account_interfaces_post, "getMultipleAccountInterfaces", diff --git a/sdk-tests/anchor-semi-manual-test/tests/stress_test.rs b/sdk-tests/anchor-semi-manual-test/tests/stress_test.rs index fe049be82a..976695115a 100644 --- a/sdk-tests/anchor-semi-manual-test/tests/stress_test.rs +++ b/sdk-tests/anchor-semi-manual-test/tests/stress_test.rs @@ -19,7 +19,7 @@ use light_batched_merkle_tree::{ }; use light_client::interface::{ create_load_instructions, get_create_accounts_proof, AccountInterface, AccountSpec, - ColdContext, CreateAccountsProofInput, PdaSpec, + CreateAccountsProofInput, PdaSpec, }; use light_compressible::rent::SLOTS_PER_EPOCH; use light_program_test::{ @@ -311,7 +311,7 @@ async fn decompress_all(ctx: &mut StressTestContext, pdas: &TestPdas, cached: &C let vault_interface = AccountInterface { key: vault_iface.key, account: vault_iface.account.clone(), - cold: Some(ColdContext::Account(vault_compressed.account.clone())), + cold: Some(vault_compressed.account.clone()), }; let vault_spec = PdaSpec::new(vault_interface, vault_variant, ctx.program_id); @@ -340,7 +340,7 @@ async fn decompress_all(ctx: &mut StressTestContext, pdas: &TestPdas, cached: &C let specs: Vec> = vec![ AccountSpec::Pda(record_spec), AccountSpec::Pda(zc_spec), - AccountSpec::Ata(ata_interface), + AccountSpec::Ata(Box::new(ata_interface)), AccountSpec::Pda(vault_spec), AccountSpec::Mint(mint_a_ai), AccountSpec::Mint(mint_b_ai), diff --git a/sdk-tests/anchor-semi-manual-test/tests/test_create_all.rs b/sdk-tests/anchor-semi-manual-test/tests/test_create_all.rs index e596f2c5a1..d819332045 100644 --- a/sdk-tests/anchor-semi-manual-test/tests/test_create_all.rs +++ b/sdk-tests/anchor-semi-manual-test/tests/test_create_all.rs @@ -7,7 +7,7 @@ use anchor_semi_manual_test::{ }; use light_client::interface::{ create_load_instructions, get_create_accounts_proof, AccountInterface, AccountSpec, - ColdContext, CreateAccountsProofInput, PdaSpec, + CreateAccountsProofInput, PdaSpec, }; use light_compressible::rent::SLOTS_PER_EPOCH; use light_program_test::{program_test::TestRpc, Rpc}; @@ -303,14 +303,14 @@ async fn test_create_all_derive() { let vault_interface = AccountInterface { key: vault_iface.key, account: vault_iface.account.clone(), - cold: Some(ColdContext::Account(vault_compressed.account.clone())), + cold: Some(vault_compressed.account.clone()), }; let vault_spec = PdaSpec::new(vault_interface, vault_variant, program_id); let specs: Vec> = vec![ AccountSpec::Pda(record_spec), AccountSpec::Pda(zc_spec), - AccountSpec::Ata(ata_interface), + AccountSpec::Ata(Box::new(ata_interface)), AccountSpec::Pda(vault_spec), AccountSpec::Mint(mint_a_ai), AccountSpec::Mint(mint_b_ai), diff --git a/sdk-tests/anchor-semi-manual-test/tests/test_create_ata.rs b/sdk-tests/anchor-semi-manual-test/tests/test_create_ata.rs index c6f80552fa..f13586606d 100644 --- a/sdk-tests/anchor-semi-manual-test/tests/test_create_ata.rs +++ b/sdk-tests/anchor-semi-manual-test/tests/test_create_ata.rs @@ -102,7 +102,8 @@ async fn test_create_ata_derive() { .expect("ATA interface should exist"); assert!(ata_interface.is_cold(), "ATA should be cold"); - let specs: Vec> = vec![AccountSpec::Ata(ata_interface)]; + let specs: Vec> = + vec![AccountSpec::Ata(Box::new(ata_interface))]; let ixs = create_load_instructions(&specs, payer.pubkey(), env.config_pda, &rpc) .await diff --git a/sdk-tests/anchor-semi-manual-test/tests/test_create_token_vault.rs b/sdk-tests/anchor-semi-manual-test/tests/test_create_token_vault.rs index 74e9e8ef9f..b642ca7357 100644 --- a/sdk-tests/anchor-semi-manual-test/tests/test_create_token_vault.rs +++ b/sdk-tests/anchor-semi-manual-test/tests/test_create_token_vault.rs @@ -5,8 +5,7 @@ use anchor_semi_manual_test::{ CreateTokenVaultParams, LightAccountVariant, VaultSeeds, VAULT_AUTH_SEED, VAULT_SEED, }; use light_client::interface::{ - create_load_instructions, get_create_accounts_proof, AccountInterface, AccountSpec, - ColdContext, PdaSpec, + create_load_instructions, get_create_accounts_proof, AccountInterface, AccountSpec, PdaSpec, }; use light_compressible::rent::SLOTS_PER_EPOCH; use light_program_test::{program_test::TestRpc, Rpc}; @@ -123,7 +122,7 @@ async fn test_create_token_vault_derive() { let vault_interface = AccountInterface { key: vault_iface.key, account: vault_iface.account.clone(), - cold: Some(ColdContext::Account(vault_compressed.account.clone())), + cold: Some(vault_compressed.account.clone()), }; let vault_spec = PdaSpec::new(vault_interface, vault_variant, program_id); diff --git a/sdk-tests/csdk-anchor-full-derived-test-sdk/src/lib.rs b/sdk-tests/csdk-anchor-full-derived-test-sdk/src/lib.rs index f773c00577..81dc07dda2 100644 --- a/sdk-tests/csdk-anchor-full-derived-test-sdk/src/lib.rs +++ b/sdk-tests/csdk-anchor-full-derived-test-sdk/src/lib.rs @@ -14,8 +14,8 @@ use csdk_anchor_full_derived_test::{ }, }; use light_client::interface::{ - matches_discriminator, AccountInterface, AccountSpec, AccountToFetch, ColdContext, - LightProgramInterface, PdaSpec, + matches_discriminator, AccountInterface, AccountSpec, AccountToFetch, LightProgramInterface, + PdaSpec, }; use light_sdk::LightDiscriminator; use solana_pubkey::Pubkey; @@ -223,21 +223,17 @@ impl AmmSdk { }) }; - // For token vaults, convert ColdContext::Token to ColdContext::Account - // because they're decompressed as PDAs, not as token accounts + // For token vaults, the cold field already contains the CompressedAccount directly let interface = if account.is_cold() { - let compressed_account = match &account.cold { - Some(ColdContext::Token(ct)) => ct.account.clone(), - Some(ColdContext::Account(ca)) => ca.clone(), - Some(ColdContext::Mint(_)) => { - return Err(AmmSdkError::MissingField("unexpected Mint cold context")) - } - None => return Err(AmmSdkError::MissingField("cold_context")), - }; + let compressed_account = account + .cold + .as_ref() + .ok_or(AmmSdkError::MissingField("cold_context"))? + .clone(); AccountInterface { key: account.key, account: account.account.clone(), // Keep original owner (SPL Token) - cold: Some(ColdContext::Account(compressed_account)), + cold: Some(compressed_account), } } else { account.clone() diff --git a/sdk-tests/csdk-anchor-full-derived-test/tests/amm_stress_test.rs b/sdk-tests/csdk-anchor-full-derived-test/tests/amm_stress_test.rs index 4b22c9622f..ba1b8026f5 100644 --- a/sdk-tests/csdk-anchor-full-derived-test/tests/amm_stress_test.rs +++ b/sdk-tests/csdk-anchor-full-derived-test/tests/amm_stress_test.rs @@ -556,9 +556,9 @@ async fn decompress_all(ctx: &mut AmmTestContext, pdas: &AmmPdas) { ); let mut all_specs = specs; - all_specs.push(AccountSpec::Ata(creator_lp_interface)); - all_specs.push(AccountSpec::Ata(creator_token_0_interface)); - all_specs.push(AccountSpec::Ata(creator_token_1_interface)); + all_specs.push(AccountSpec::Ata(Box::new(creator_lp_interface))); + all_specs.push(AccountSpec::Ata(Box::new(creator_token_0_interface))); + all_specs.push(AccountSpec::Ata(Box::new(creator_token_1_interface))); all_specs.push(AccountSpec::Mint(mint_0_account_iface)); all_specs.push(AccountSpec::Mint(mint_1_account_iface)); diff --git a/sdk-tests/csdk-anchor-full-derived-test/tests/amm_test.rs b/sdk-tests/csdk-anchor-full-derived-test/tests/amm_test.rs index bbb0e21b9d..c3fc87673b 100644 --- a/sdk-tests/csdk-anchor-full-derived-test/tests/amm_test.rs +++ b/sdk-tests/csdk-anchor-full-derived-test/tests/amm_test.rs @@ -666,7 +666,7 @@ async fn test_amm_full_lifecycle() { // add ata use light_client::interface::AccountSpec; let mut all_specs = specs; - all_specs.push(AccountSpec::Ata(creator_lp_interface)); + all_specs.push(AccountSpec::Ata(Box::new(creator_lp_interface))); let decompress_ixs = create_load_instructions(&all_specs, ctx.payer.pubkey(), ctx.config_pda, &ctx.rpc) diff --git a/sdk-tests/csdk-anchor-full-derived-test/tests/basic_test.rs b/sdk-tests/csdk-anchor-full-derived-test/tests/basic_test.rs index 2e225a8923..97c01e9a24 100644 --- a/sdk-tests/csdk-anchor-full-derived-test/tests/basic_test.rs +++ b/sdk-tests/csdk-anchor-full-derived-test/tests/basic_test.rs @@ -354,7 +354,7 @@ async fn test_create_pdas_and_mint_auto() { }; use light_account::TokenDataWithSeeds; use light_client::interface::{ - create_load_instructions, AccountInterface, AccountSpec, ColdContext, PdaSpec, + create_load_instructions, AccountInterface, AccountSpec, PdaSpec, }; // Fetch unified interfaces (hot/cold transparent) @@ -422,11 +422,11 @@ async fn test_create_pdas_and_mint_auto() { let vault_compressed = vault_interface .compressed() .expect("cold vault must have compressed data"); - // Convert TokenAccountInterface to AccountInterface with ColdContext::Account + // Convert TokenAccountInterface to AccountInterface with compressed account let vault_interface_for_pda = AccountInterface { key: vault_interface.key, account: vault_interface.account.clone(), - cold: Some(ColdContext::Account(vault_compressed.account.clone())), + cold: Some(vault_compressed.account.clone()), }; let vault_spec = PdaSpec::new(vault_interface_for_pda, vault_variant, program_id); @@ -446,7 +446,7 @@ async fn test_create_pdas_and_mint_auto() { // Use TokenAccountInterface directly for ATA // (no separate AtaSpec needed - TokenAccountInterface has all the data) - // Fetch mint via get_mint_interface to get ColdContext::Mint + // Fetch mint via get_mint_interface let mint_account_interface = light_client::interface::AccountInterface::from( rpc.get_mint_interface(&mint_pda, None) .await @@ -464,7 +464,7 @@ async fn test_create_pdas_and_mint_auto() { AccountSpec::Pda(user_spec), AccountSpec::Pda(game_spec), AccountSpec::Pda(vault_spec), - AccountSpec::Ata(ata_interface.clone()), + AccountSpec::Ata(Box::new(ata_interface.clone())), AccountSpec::Mint(mint_account_interface), ]; diff --git a/sdk-tests/csdk-anchor-full-derived-test/tests/d10_token_accounts_test.rs b/sdk-tests/csdk-anchor-full-derived-test/tests/d10_token_accounts_test.rs index 47fcd342df..96abb0c3c2 100644 --- a/sdk-tests/csdk-anchor-full-derived-test/tests/d10_token_accounts_test.rs +++ b/sdk-tests/csdk-anchor-full-derived-test/tests/d10_token_accounts_test.rs @@ -546,7 +546,8 @@ async fn test_d10_single_ata_markonly_lifecycle() { ); // Build AccountSpec for ATA decompression - let specs: Vec> = vec![AccountSpec::Ata(ata_interface)]; + let specs: Vec> = + vec![AccountSpec::Ata(Box::new(ata_interface))]; // Create decompression instructions let decompress_instructions = diff --git a/sdk-tests/csdk-anchor-full-derived-test/tests/integration_tests.rs b/sdk-tests/csdk-anchor-full-derived-test/tests/integration_tests.rs index be2beb2773..5cb8b82b1c 100644 --- a/sdk-tests/csdk-anchor-full-derived-test/tests/integration_tests.rs +++ b/sdk-tests/csdk-anchor-full-derived-test/tests/integration_tests.rs @@ -237,7 +237,7 @@ impl TestContext { expected_owner: Pubkey, expected_amount: u64, ) { - use light_client::interface::{AccountInterface, ColdContext}; + use light_client::interface::AccountInterface; // Fetch token account interface let vault_interface = self @@ -263,11 +263,11 @@ impl TestContext { .compressed() .expect("cold vault must have compressed data"); - // Convert to AccountInterface with ColdContext::Account + // Convert to AccountInterface with compressed account let vault_interface_for_pda = AccountInterface { key: vault_interface.key, account: vault_interface.account.clone(), - cold: Some(ColdContext::Account(vault_compressed.account.clone())), + cold: Some(vault_compressed.account.clone()), }; // Create PdaSpec and decompress diff --git a/sdk-tests/pinocchio-light-program-test/tests/stress_test.rs b/sdk-tests/pinocchio-light-program-test/tests/stress_test.rs index 42ca690d3d..916cf02617 100644 --- a/sdk-tests/pinocchio-light-program-test/tests/stress_test.rs +++ b/sdk-tests/pinocchio-light-program-test/tests/stress_test.rs @@ -14,7 +14,7 @@ use light_batched_merkle_tree::{ }; use light_client::interface::{ create_load_instructions, get_create_accounts_proof, AccountInterface, AccountSpec, - ColdContext, CreateAccountsProofInput, PdaSpec, + CreateAccountsProofInput, PdaSpec, }; use light_compressible::rent::SLOTS_PER_EPOCH; use light_program_test::{ @@ -299,7 +299,7 @@ async fn decompress_all(ctx: &mut StressTestContext, pdas: &TestPdas, cached: &C let vault_interface = AccountInterface { key: vault_iface.key, account: vault_iface.account.clone(), - cold: Some(ColdContext::Account(vault_compressed.account.clone())), + cold: Some(vault_compressed.account.clone()), }; let vault_spec = PdaSpec::new(vault_interface, vault_variant, ctx.program_id); @@ -317,7 +317,7 @@ async fn decompress_all(ctx: &mut StressTestContext, pdas: &TestPdas, cached: &C let specs: Vec> = vec![ AccountSpec::Pda(record_spec), AccountSpec::Pda(zc_spec), - AccountSpec::Ata(ata_interface), + AccountSpec::Ata(Box::new(ata_interface)), AccountSpec::Pda(vault_spec), AccountSpec::Mint(mint_ai), ]; diff --git a/sdk-tests/pinocchio-light-program-test/tests/test_create_all.rs b/sdk-tests/pinocchio-light-program-test/tests/test_create_all.rs index 7130ccea37..0d413a2bdc 100644 --- a/sdk-tests/pinocchio-light-program-test/tests/test_create_all.rs +++ b/sdk-tests/pinocchio-light-program-test/tests/test_create_all.rs @@ -3,7 +3,7 @@ mod shared; use light_account_pinocchio::token::TokenDataWithSeeds; use light_client::interface::{ create_load_instructions, get_create_accounts_proof, AccountInterface, AccountSpec, - ColdContext, CreateAccountsProofInput, PdaSpec, + CreateAccountsProofInput, PdaSpec, }; use light_compressible::rent::SLOTS_PER_EPOCH; use light_program_test::{program_test::TestRpc, Rpc}; @@ -277,7 +277,7 @@ async fn test_create_all_derive() { let vault_interface = AccountInterface { key: vault_iface.key, account: vault_iface.account.clone(), - cold: Some(ColdContext::Account(vault_compressed.account.clone())), + cold: Some(vault_compressed.account.clone()), }; let vault_spec = PdaSpec::new(vault_interface, vault_variant, program_id); @@ -294,7 +294,7 @@ async fn test_create_all_derive() { let specs: Vec> = vec![ AccountSpec::Pda(record_spec), AccountSpec::Pda(zc_spec), - AccountSpec::Ata(ata_interface), + AccountSpec::Ata(Box::new(ata_interface)), AccountSpec::Pda(vault_spec), AccountSpec::Mint(mint_ai), ]; diff --git a/sdk-tests/pinocchio-light-program-test/tests/test_create_ata.rs b/sdk-tests/pinocchio-light-program-test/tests/test_create_ata.rs index 94ac8ded7d..0e2aa6d0f9 100644 --- a/sdk-tests/pinocchio-light-program-test/tests/test_create_ata.rs +++ b/sdk-tests/pinocchio-light-program-test/tests/test_create_ata.rs @@ -92,7 +92,8 @@ async fn test_create_ata_derive() { .expect("ATA interface should exist"); assert!(ata_interface.is_cold(), "ATA should be cold"); - let specs: Vec> = vec![AccountSpec::Ata(ata_interface)]; + let specs: Vec> = + vec![AccountSpec::Ata(Box::new(ata_interface))]; let ixs = create_load_instructions(&specs, payer.pubkey(), env.config_pda, &rpc) .await diff --git a/sdk-tests/pinocchio-light-program-test/tests/test_create_token_vault.rs b/sdk-tests/pinocchio-light-program-test/tests/test_create_token_vault.rs index 5bfcbc8959..3e83ba60fc 100644 --- a/sdk-tests/pinocchio-light-program-test/tests/test_create_token_vault.rs +++ b/sdk-tests/pinocchio-light-program-test/tests/test_create_token_vault.rs @@ -1,8 +1,7 @@ mod shared; use light_client::interface::{ - create_load_instructions, get_create_accounts_proof, AccountInterface, AccountSpec, - ColdContext, PdaSpec, + create_load_instructions, get_create_accounts_proof, AccountInterface, AccountSpec, PdaSpec, }; use light_compressible::rent::SLOTS_PER_EPOCH; use light_program_test::{program_test::TestRpc, Rpc}; @@ -115,7 +114,7 @@ async fn test_create_token_vault_derive() { let vault_interface = AccountInterface { key: vault_iface.key, account: vault_iface.account.clone(), - cold: Some(ColdContext::Account(vault_compressed.account.clone())), + cold: Some(vault_compressed.account.clone()), }; let vault_spec = PdaSpec::new(vault_interface, vault_variant, program_id); From b2155abb068a804841071b5b9150b321475a9a74 Mon Sep 17 00:00:00 2001 From: Sergey Timoshin Date: Wed, 11 Feb 2026 15:55:22 +0000 Subject: [PATCH 3/3] format --- sdk-libs/client/src/rpc/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk-libs/client/src/rpc/client.rs b/sdk-libs/client/src/rpc/client.rs index ec4f0c5aec..82d543c002 100644 --- a/sdk-libs/client/src/rpc/client.rs +++ b/sdk-libs/client/src/rpc/client.rs @@ -1183,7 +1183,7 @@ impl Rpc for LightClient { ai.account.lamports, ai.account.owner, ); - + if compressed.address.is_none() { compressed.address = Some(compressed_address); }