From cf071c7b1a704a9ecdc05a8fd151b05c476ba74d Mon Sep 17 00:00:00 2001 From: Dmytro Kozhevin Date: Thu, 13 Mar 2025 20:32:03 -0400 Subject: [PATCH 1/5] Regenerate XDR to pick up CAP-67 changes. --- src/curr/generated.rs | 2657 ++++++++++------- src/curr/str.rs | 44 +- src/next/generated.rs | 1861 ++++++------ src/next/str.rs | 44 +- xdr-json/curr/AuthenticatedMessage.json | 65 +- xdr-json/curr/AuthenticatedMessageV0.json | 65 +- xdr-json/curr/BucketEntry.json | 5 +- xdr-json/curr/BucketListType.json | 5 +- xdr-json/curr/BucketMetadata.json | 5 +- xdr-json/curr/BucketMetadataExt.json | 5 +- xdr-json/curr/ColdArchiveBucketEntry.json | 5 +- xdr-json/curr/DontHave.json | 4 +- xdr-json/curr/HotArchiveBucketEntry.json | 5 +- xdr-json/curr/LedgerCloseMeta.json | 116 +- xdr-json/curr/LedgerCloseMetaV0.json | 116 +- xdr-json/curr/LedgerCloseMetaV1.json | 116 +- xdr-json/curr/MessageType.json | 4 +- xdr-json/curr/ScAddressType.json | 7 +- .../SignedTimeSlicedSurveyRequestMessage.json | 3 +- ...SignedTimeSlicedSurveyResponseMessage.json | 3 +- xdr-json/curr/StellarMessage.json | 65 +- xdr-json/curr/SurveyMessageCommandType.json | 3 +- xdr-json/curr/SurveyMessageResponseType.json | 6 +- xdr-json/curr/SurveyRequestMessage.json | 3 +- xdr-json/curr/SurveyResponseBody.json | 106 +- xdr-json/curr/SurveyResponseMessage.json | 3 +- .../curr/TimeSlicedSurveyRequestMessage.json | 3 +- .../curr/TimeSlicedSurveyResponseMessage.json | 3 +- xdr-json/curr/TransactionMeta.json | 116 +- xdr-json/curr/TransactionResultMeta.json | 116 +- xdr-json/next/AuthenticatedMessage.json | 65 +- xdr-json/next/AuthenticatedMessageV0.json | 65 +- xdr-json/next/DontHave.json | 4 +- xdr-json/next/LedgerCloseMeta.json | 116 +- xdr-json/next/LedgerCloseMetaV0.json | 116 +- xdr-json/next/LedgerCloseMetaV1.json | 116 +- xdr-json/next/LedgerEntryChangeType.json | 2 +- xdr-json/next/MessageType.json | 4 +- xdr-json/next/ScAddressType.json | 7 +- .../SignedTimeSlicedSurveyRequestMessage.json | 3 +- ...SignedTimeSlicedSurveyResponseMessage.json | 3 +- xdr-json/next/StellarMessage.json | 65 +- xdr-json/next/SurveyMessageCommandType.json | 3 +- xdr-json/next/SurveyMessageResponseType.json | 6 +- xdr-json/next/SurveyRequestMessage.json | 3 +- xdr-json/next/SurveyResponseBody.json | 106 +- xdr-json/next/SurveyResponseMessage.json | 3 +- .../next/TimeSlicedSurveyRequestMessage.json | 3 +- .../next/TimeSlicedSurveyResponseMessage.json | 3 +- xdr-json/next/TransactionMeta.json | 116 +- xdr-json/next/TransactionResultMeta.json | 116 +- xdr/curr | 2 +- xdr/curr-version | 2 +- xdr/next | 2 +- xdr/next-version | 2 +- 55 files changed, 3821 insertions(+), 2671 deletions(-) diff --git a/src/curr/generated.rs b/src/curr/generated.rs index f2fa49b5..66f2e1c6 100644 --- a/src/curr/generated.rs +++ b/src/curr/generated.rs @@ -38,7 +38,7 @@ pub const XDR_FILES_SHA256: [(&str, &str); 12] = [ ), ( "xdr/curr/Stellar-contract.x", - "7f665e4103e146a88fcdabce879aaaacd3bf9283feb194cc47ff986264c1e315", + "0511d486382c966a0006fc3e05ad1315c7a4f900421150fa4a40a331302473df", ), ( "xdr/curr/Stellar-internal.x", @@ -46,23 +46,23 @@ pub const XDR_FILES_SHA256: [(&str, &str); 12] = [ ), ( "xdr/curr/Stellar-ledger-entries.x", - "008deaa72ebaae56ba02a740230e5abfe475c5fff52f68eb086deb1fb6f91d1e", + "201b736d88f35a58c7a3071fe50d951fbdad2c8fb0f0a2e40e86304247f33f85", ), ( "xdr/curr/Stellar-ledger.x", - "c2ac5bde5da28d4d02e2ea455f3bc5d5133adf271d374010cebe4e314c8504e8", + "74485d73a0eb1868940ac491410497fee8ea57b1778029e494c82b329002dadf", ), ( "xdr/curr/Stellar-overlay.x", - "25d52fd28c91d2377796c6c1ee05b0731f47648751e2b5a33481d64ef4eb7322", + "8c9b9c13c86fa4672f03d741705b41e7221be0fc48e1ea6eeb1ba07d31ec0723", ), ( "xdr/curr/Stellar-transaction.x", - "2f6b1dbab1cc0e01c5f1f7fca2e0a14e6d7ad56e6f04449a7123080ed40e3dbc", + "fdd854ea6ce450500c331a6613d714d9b2f00d2adc86210a8f709e8a9ef4c641", ), ( "xdr/curr/Stellar-types.x", - "253f515fc5e06bc938105e92a4c7f562251d4ebc178d39d6e6751e6b85fe1064", + "20bfd8e2ed1f2935b292615334fa88bf74c3bc4e6dc4fb7daefd8e47ef6f6c08", ), ]; @@ -8958,7 +8958,10 @@ impl WriteXdr for ContractExecutable { /// enum SCAddressType /// { /// SC_ADDRESS_TYPE_ACCOUNT = 0, -/// SC_ADDRESS_TYPE_CONTRACT = 1 +/// SC_ADDRESS_TYPE_CONTRACT = 1, +/// SC_ADDRESS_TYPE_MUXED_ACCOUNT = 2, +/// SC_ADDRESS_TYPE_CLAIMABLE_BALANCE = 3, +/// SC_ADDRESS_TYPE_LIQUIDITY_POOL = 4 /// }; /// ``` /// @@ -8975,22 +8978,40 @@ impl WriteXdr for ContractExecutable { pub enum ScAddressType { Account = 0, Contract = 1, + MuxedAccount = 2, + ClaimableBalance = 3, + LiquidityPool = 4, } impl ScAddressType { - pub const VARIANTS: [ScAddressType; 2] = [ScAddressType::Account, ScAddressType::Contract]; - pub const VARIANTS_STR: [&'static str; 2] = ["Account", "Contract"]; + pub const VARIANTS: [ScAddressType; 5] = [ + ScAddressType::Account, + ScAddressType::Contract, + ScAddressType::MuxedAccount, + ScAddressType::ClaimableBalance, + ScAddressType::LiquidityPool, + ]; + pub const VARIANTS_STR: [&'static str; 5] = [ + "Account", + "Contract", + "MuxedAccount", + "ClaimableBalance", + "LiquidityPool", + ]; #[must_use] pub const fn name(&self) -> &'static str { match self { Self::Account => "Account", Self::Contract => "Contract", + Self::MuxedAccount => "MuxedAccount", + Self::ClaimableBalance => "ClaimableBalance", + Self::LiquidityPool => "LiquidityPool", } } #[must_use] - pub const fn variants() -> [ScAddressType; 2] { + pub const fn variants() -> [ScAddressType; 5] { Self::VARIANTS } } @@ -9023,6 +9044,9 @@ impl TryFrom for ScAddressType { let e = match i { 0 => ScAddressType::Account, 1 => ScAddressType::Contract, + 2 => ScAddressType::MuxedAccount, + 3 => ScAddressType::ClaimableBalance, + 4 => ScAddressType::LiquidityPool, #[allow(unreachable_patterns)] _ => return Err(Error::Invalid), }; @@ -9058,6 +9082,52 @@ impl WriteXdr for ScAddressType { } } +/// MuxedEd25519Account is an XDR Struct defines as: +/// +/// ```text +/// struct MuxedEd25519Account +/// { +/// uint64 id; +/// uint256 ed25519; +/// }; +/// ``` +/// +#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] +#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] +#[cfg_attr( + all(feature = "serde", feature = "alloc"), + derive(serde::Serialize, serde::Deserialize), + serde(rename_all = "snake_case") +)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] +pub struct MuxedEd25519Account { + pub id: u64, + pub ed25519: Uint256, +} + +impl ReadXdr for MuxedEd25519Account { + #[cfg(feature = "std")] + fn read_xdr(r: &mut Limited) -> Result { + r.with_limited_depth(|r| { + Ok(Self { + id: u64::read_xdr(r)?, + ed25519: Uint256::read_xdr(r)?, + }) + }) + } +} + +impl WriteXdr for MuxedEd25519Account { + #[cfg(feature = "std")] + fn write_xdr(&self, w: &mut Limited) -> Result<()> { + w.with_limited_depth(|w| { + self.id.write_xdr(w)?; + self.ed25519.write_xdr(w)?; + Ok(()) + }) + } +} + /// ScAddress is an XDR Union defines as: /// /// ```text @@ -9067,6 +9137,12 @@ impl WriteXdr for ScAddressType { /// AccountID accountId; /// case SC_ADDRESS_TYPE_CONTRACT: /// Hash contractId; +/// case SC_ADDRESS_TYPE_MUXED_ACCOUNT: +/// MuxedEd25519Account muxedAccount; +/// case SC_ADDRESS_TYPE_CLAIMABLE_BALANCE: +/// ClaimableBalanceID claimableBalanceId; +/// case SC_ADDRESS_TYPE_LIQUIDITY_POOL: +/// PoolID liquidityPoolId; /// }; /// ``` /// @@ -9081,17 +9157,35 @@ impl WriteXdr for ScAddressType { pub enum ScAddress { Account(AccountId), Contract(Hash), + MuxedAccount(MuxedEd25519Account), + ClaimableBalance(ClaimableBalanceId), + LiquidityPool(PoolId), } impl ScAddress { - pub const VARIANTS: [ScAddressType; 2] = [ScAddressType::Account, ScAddressType::Contract]; - pub const VARIANTS_STR: [&'static str; 2] = ["Account", "Contract"]; + pub const VARIANTS: [ScAddressType; 5] = [ + ScAddressType::Account, + ScAddressType::Contract, + ScAddressType::MuxedAccount, + ScAddressType::ClaimableBalance, + ScAddressType::LiquidityPool, + ]; + pub const VARIANTS_STR: [&'static str; 5] = [ + "Account", + "Contract", + "MuxedAccount", + "ClaimableBalance", + "LiquidityPool", + ]; #[must_use] pub const fn name(&self) -> &'static str { match self { Self::Account(_) => "Account", Self::Contract(_) => "Contract", + Self::MuxedAccount(_) => "MuxedAccount", + Self::ClaimableBalance(_) => "ClaimableBalance", + Self::LiquidityPool(_) => "LiquidityPool", } } @@ -9101,11 +9195,14 @@ impl ScAddress { match self { Self::Account(_) => ScAddressType::Account, Self::Contract(_) => ScAddressType::Contract, + Self::MuxedAccount(_) => ScAddressType::MuxedAccount, + Self::ClaimableBalance(_) => ScAddressType::ClaimableBalance, + Self::LiquidityPool(_) => ScAddressType::LiquidityPool, } } #[must_use] - pub const fn variants() -> [ScAddressType; 2] { + pub const fn variants() -> [ScAddressType; 5] { Self::VARIANTS } } @@ -9141,6 +9238,13 @@ impl ReadXdr for ScAddress { let v = match dv { ScAddressType::Account => Self::Account(AccountId::read_xdr(r)?), ScAddressType::Contract => Self::Contract(Hash::read_xdr(r)?), + ScAddressType::MuxedAccount => { + Self::MuxedAccount(MuxedEd25519Account::read_xdr(r)?) + } + ScAddressType::ClaimableBalance => { + Self::ClaimableBalance(ClaimableBalanceId::read_xdr(r)?) + } + ScAddressType::LiquidityPool => Self::LiquidityPool(PoolId::read_xdr(r)?), #[allow(unreachable_patterns)] _ => return Err(Error::Invalid), }; @@ -9158,6 +9262,9 @@ impl WriteXdr for ScAddress { match self { Self::Account(v) => v.write_xdr(w)?, Self::Contract(v) => v.write_xdr(w)?, + Self::MuxedAccount(v) => v.write_xdr(w)?, + Self::ClaimableBalance(v) => v.write_xdr(w)?, + Self::LiquidityPool(v) => v.write_xdr(w)?, }; Ok(()) }) @@ -11032,62 +11139,6 @@ impl AsRef<[u8]> for DataValue { } } -/// PoolId is an XDR Typedef defines as: -/// -/// ```text -/// typedef Hash PoolID; -/// ``` -/// -#[derive(Clone, Hash, PartialEq, Eq, PartialOrd, Ord)] -#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] -#[cfg_attr( - all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), - serde(rename_all = "snake_case") -)] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] -#[derive(Debug)] -pub struct PoolId(pub Hash); - -impl From for Hash { - #[must_use] - fn from(x: PoolId) -> Self { - x.0 - } -} - -impl From for PoolId { - #[must_use] - fn from(x: Hash) -> Self { - PoolId(x) - } -} - -impl AsRef for PoolId { - #[must_use] - fn as_ref(&self) -> &Hash { - &self.0 - } -} - -impl ReadXdr for PoolId { - #[cfg(feature = "std")] - fn read_xdr(r: &mut Limited) -> Result { - r.with_limited_depth(|r| { - let i = Hash::read_xdr(r)?; - let v = PoolId(i); - Ok(v) - }) - } -} - -impl WriteXdr for PoolId { - #[cfg(feature = "std")] - fn write_xdr(&self, w: &mut Limited) -> Result<()> { - w.with_limited_depth(|w| self.0.write_xdr(w)) - } -} - /// AssetCode4 is an XDR Typedef defines as: /// /// ```text @@ -14858,211 +14909,6 @@ impl WriteXdr for Claimant { } } -/// ClaimableBalanceIdType is an XDR Enum defines as: -/// -/// ```text -/// enum ClaimableBalanceIDType -/// { -/// CLAIMABLE_BALANCE_ID_TYPE_V0 = 0 -/// }; -/// ``` -/// -// enum -#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] -#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] -#[cfg_attr( - all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), - serde(rename_all = "snake_case") -)] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] -#[repr(i32)] -pub enum ClaimableBalanceIdType { - ClaimableBalanceIdTypeV0 = 0, -} - -impl ClaimableBalanceIdType { - pub const VARIANTS: [ClaimableBalanceIdType; 1] = - [ClaimableBalanceIdType::ClaimableBalanceIdTypeV0]; - pub const VARIANTS_STR: [&'static str; 1] = ["ClaimableBalanceIdTypeV0"]; - - #[must_use] - pub const fn name(&self) -> &'static str { - match self { - Self::ClaimableBalanceIdTypeV0 => "ClaimableBalanceIdTypeV0", - } - } - - #[must_use] - pub const fn variants() -> [ClaimableBalanceIdType; 1] { - Self::VARIANTS - } -} - -impl Name for ClaimableBalanceIdType { - #[must_use] - fn name(&self) -> &'static str { - Self::name(self) - } -} - -impl Variants for ClaimableBalanceIdType { - fn variants() -> slice::Iter<'static, ClaimableBalanceIdType> { - Self::VARIANTS.iter() - } -} - -impl Enum for ClaimableBalanceIdType {} - -impl fmt::Display for ClaimableBalanceIdType { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.write_str(self.name()) - } -} - -impl TryFrom for ClaimableBalanceIdType { - type Error = Error; - - fn try_from(i: i32) -> Result { - let e = match i { - 0 => ClaimableBalanceIdType::ClaimableBalanceIdTypeV0, - #[allow(unreachable_patterns)] - _ => return Err(Error::Invalid), - }; - Ok(e) - } -} - -impl From for i32 { - #[must_use] - fn from(e: ClaimableBalanceIdType) -> Self { - e as Self - } -} - -impl ReadXdr for ClaimableBalanceIdType { - #[cfg(feature = "std")] - fn read_xdr(r: &mut Limited) -> Result { - r.with_limited_depth(|r| { - let e = i32::read_xdr(r)?; - let v: Self = e.try_into()?; - Ok(v) - }) - } -} - -impl WriteXdr for ClaimableBalanceIdType { - #[cfg(feature = "std")] - fn write_xdr(&self, w: &mut Limited) -> Result<()> { - w.with_limited_depth(|w| { - let i: i32 = (*self).into(); - i.write_xdr(w) - }) - } -} - -/// ClaimableBalanceId is an XDR Union defines as: -/// -/// ```text -/// union ClaimableBalanceID switch (ClaimableBalanceIDType type) -/// { -/// case CLAIMABLE_BALANCE_ID_TYPE_V0: -/// Hash v0; -/// }; -/// ``` -/// -// union with discriminant ClaimableBalanceIdType -#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] -#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] -#[cfg_attr( - all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) -)] -#[allow(clippy::large_enum_variant)] -pub enum ClaimableBalanceId { - ClaimableBalanceIdTypeV0(Hash), -} - -impl ClaimableBalanceId { - pub const VARIANTS: [ClaimableBalanceIdType; 1] = - [ClaimableBalanceIdType::ClaimableBalanceIdTypeV0]; - pub const VARIANTS_STR: [&'static str; 1] = ["ClaimableBalanceIdTypeV0"]; - - #[must_use] - pub const fn name(&self) -> &'static str { - match self { - Self::ClaimableBalanceIdTypeV0(_) => "ClaimableBalanceIdTypeV0", - } - } - - #[must_use] - pub const fn discriminant(&self) -> ClaimableBalanceIdType { - #[allow(clippy::match_same_arms)] - match self { - Self::ClaimableBalanceIdTypeV0(_) => ClaimableBalanceIdType::ClaimableBalanceIdTypeV0, - } - } - - #[must_use] - pub const fn variants() -> [ClaimableBalanceIdType; 1] { - Self::VARIANTS - } -} - -impl Name for ClaimableBalanceId { - #[must_use] - fn name(&self) -> &'static str { - Self::name(self) - } -} - -impl Discriminant for ClaimableBalanceId { - #[must_use] - fn discriminant(&self) -> ClaimableBalanceIdType { - Self::discriminant(self) - } -} - -impl Variants for ClaimableBalanceId { - fn variants() -> slice::Iter<'static, ClaimableBalanceIdType> { - Self::VARIANTS.iter() - } -} - -impl Union for ClaimableBalanceId {} - -impl ReadXdr for ClaimableBalanceId { - #[cfg(feature = "std")] - fn read_xdr(r: &mut Limited) -> Result { - r.with_limited_depth(|r| { - let dv: ClaimableBalanceIdType = ::read_xdr(r)?; - #[allow(clippy::match_same_arms, clippy::match_wildcard_for_single_variants)] - let v = match dv { - ClaimableBalanceIdType::ClaimableBalanceIdTypeV0 => { - Self::ClaimableBalanceIdTypeV0(Hash::read_xdr(r)?) - } - #[allow(unreachable_patterns)] - _ => return Err(Error::Invalid), - }; - Ok(v) - }) - } -} - -impl WriteXdr for ClaimableBalanceId { - #[cfg(feature = "std")] - fn write_xdr(&self, w: &mut Limited) -> Result<()> { - w.with_limited_depth(|w| { - self.discriminant().write_xdr(w)?; - #[allow(clippy::match_same_arms)] - match self { - Self::ClaimableBalanceIdTypeV0(v) => v.write_xdr(w)?, - }; - Ok(()) - }) - } -} - /// ClaimableBalanceFlags is an XDR Enum defines as: /// /// ```text @@ -17693,7 +17539,8 @@ impl WriteXdr for EnvelopeType { /// enum BucketListType /// { /// LIVE = 0, -/// HOT_ARCHIVE = 1 +/// HOT_ARCHIVE = 1, +/// COLD_ARCHIVE = 2 /// }; /// ``` /// @@ -17710,22 +17557,28 @@ impl WriteXdr for EnvelopeType { pub enum BucketListType { Live = 0, HotArchive = 1, + ColdArchive = 2, } impl BucketListType { - pub const VARIANTS: [BucketListType; 2] = [BucketListType::Live, BucketListType::HotArchive]; - pub const VARIANTS_STR: [&'static str; 2] = ["Live", "HotArchive"]; + pub const VARIANTS: [BucketListType; 3] = [ + BucketListType::Live, + BucketListType::HotArchive, + BucketListType::ColdArchive, + ]; + pub const VARIANTS_STR: [&'static str; 3] = ["Live", "HotArchive", "ColdArchive"]; #[must_use] pub const fn name(&self) -> &'static str { match self { Self::Live => "Live", Self::HotArchive => "HotArchive", + Self::ColdArchive => "ColdArchive", } } #[must_use] - pub const fn variants() -> [BucketListType; 2] { + pub const fn variants() -> [BucketListType; 3] { Self::VARIANTS } } @@ -17758,6 +17611,7 @@ impl TryFrom for BucketListType { let e = match i { 0 => BucketListType::Live, 1 => BucketListType::HotArchive, + 2 => BucketListType::ColdArchive, #[allow(unreachable_patterns)] _ => return Err(Error::Invalid), }; @@ -22864,6 +22718,181 @@ impl WriteXdr for TransactionMetaV3 { } } +/// OperationMetaV2 is an XDR Struct defines as: +/// +/// ```text +/// struct OperationMetaV2 +/// { +/// ExtensionPoint ext; +/// +/// LedgerEntryChanges changes; +/// +/// ContractEvent events<>; +/// DiagnosticEvent diagnosticEvents<>; +/// }; +/// ``` +/// +#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] +#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] +#[cfg_attr( + all(feature = "serde", feature = "alloc"), + derive(serde::Serialize, serde::Deserialize), + serde(rename_all = "snake_case") +)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] +pub struct OperationMetaV2 { + pub ext: ExtensionPoint, + pub changes: LedgerEntryChanges, + pub events: VecM, + pub diagnostic_events: VecM, +} + +impl ReadXdr for OperationMetaV2 { + #[cfg(feature = "std")] + fn read_xdr(r: &mut Limited) -> Result { + r.with_limited_depth(|r| { + Ok(Self { + ext: ExtensionPoint::read_xdr(r)?, + changes: LedgerEntryChanges::read_xdr(r)?, + events: VecM::::read_xdr(r)?, + diagnostic_events: VecM::::read_xdr(r)?, + }) + }) + } +} + +impl WriteXdr for OperationMetaV2 { + #[cfg(feature = "std")] + fn write_xdr(&self, w: &mut Limited) -> Result<()> { + w.with_limited_depth(|w| { + self.ext.write_xdr(w)?; + self.changes.write_xdr(w)?; + self.events.write_xdr(w)?; + self.diagnostic_events.write_xdr(w)?; + Ok(()) + }) + } +} + +/// SorobanTransactionMetaV2 is an XDR Struct defines as: +/// +/// ```text +/// struct SorobanTransactionMetaV2 +/// { +/// SorobanTransactionMetaExt ext; +/// +/// SCVal returnValue; +/// }; +/// ``` +/// +#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] +#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] +#[cfg_attr( + all(feature = "serde", feature = "alloc"), + derive(serde::Serialize, serde::Deserialize), + serde(rename_all = "snake_case") +)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] +pub struct SorobanTransactionMetaV2 { + pub ext: SorobanTransactionMetaExt, + pub return_value: ScVal, +} + +impl ReadXdr for SorobanTransactionMetaV2 { + #[cfg(feature = "std")] + fn read_xdr(r: &mut Limited) -> Result { + r.with_limited_depth(|r| { + Ok(Self { + ext: SorobanTransactionMetaExt::read_xdr(r)?, + return_value: ScVal::read_xdr(r)?, + }) + }) + } +} + +impl WriteXdr for SorobanTransactionMetaV2 { + #[cfg(feature = "std")] + fn write_xdr(&self, w: &mut Limited) -> Result<()> { + w.with_limited_depth(|w| { + self.ext.write_xdr(w)?; + self.return_value.write_xdr(w)?; + Ok(()) + }) + } +} + +/// TransactionMetaV4 is an XDR Struct defines as: +/// +/// ```text +/// struct TransactionMetaV4 +/// { +/// ExtensionPoint ext; +/// +/// LedgerEntryChanges txChangesBefore; // tx level changes before operations +/// // are applied if any +/// OperationMetaV2 operations<>; // meta for each operation +/// LedgerEntryChanges txChangesAfter; // tx level changes after operations are +/// // applied if any +/// SorobanTransactionMetaV2* sorobanMeta; // Soroban-specific meta (only for +/// // Soroban transactions). +/// +/// ContractEvent events<>; // Used for transaction-level events (like fee payment) +/// DiagnosticEvent txDiagnosticEvents<>; // Used for transaction-level diagnostic +/// // information +/// }; +/// ``` +/// +#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] +#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] +#[cfg_attr( + all(feature = "serde", feature = "alloc"), + derive(serde::Serialize, serde::Deserialize), + serde(rename_all = "snake_case") +)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] +pub struct TransactionMetaV4 { + pub ext: ExtensionPoint, + pub tx_changes_before: LedgerEntryChanges, + pub operations: VecM, + pub tx_changes_after: LedgerEntryChanges, + pub soroban_meta: Option, + pub events: VecM, + pub tx_diagnostic_events: VecM, +} + +impl ReadXdr for TransactionMetaV4 { + #[cfg(feature = "std")] + fn read_xdr(r: &mut Limited) -> Result { + r.with_limited_depth(|r| { + Ok(Self { + ext: ExtensionPoint::read_xdr(r)?, + tx_changes_before: LedgerEntryChanges::read_xdr(r)?, + operations: VecM::::read_xdr(r)?, + tx_changes_after: LedgerEntryChanges::read_xdr(r)?, + soroban_meta: Option::::read_xdr(r)?, + events: VecM::::read_xdr(r)?, + tx_diagnostic_events: VecM::::read_xdr(r)?, + }) + }) + } +} + +impl WriteXdr for TransactionMetaV4 { + #[cfg(feature = "std")] + fn write_xdr(&self, w: &mut Limited) -> Result<()> { + w.with_limited_depth(|w| { + self.ext.write_xdr(w)?; + self.tx_changes_before.write_xdr(w)?; + self.operations.write_xdr(w)?; + self.tx_changes_after.write_xdr(w)?; + self.soroban_meta.write_xdr(w)?; + self.events.write_xdr(w)?; + self.tx_diagnostic_events.write_xdr(w)?; + Ok(()) + }) + } +} + /// InvokeHostFunctionSuccessPreImage is an XDR Struct defines as: /// /// ```text @@ -22923,6 +22952,8 @@ impl WriteXdr for InvokeHostFunctionSuccessPreImage { /// TransactionMetaV2 v2; /// case 3: /// TransactionMetaV3 v3; +/// case 4: +/// TransactionMetaV4 v4; /// }; /// ``` /// @@ -22941,11 +22972,12 @@ pub enum TransactionMeta { V1(TransactionMetaV1), V2(TransactionMetaV2), V3(TransactionMetaV3), + V4(TransactionMetaV4), } impl TransactionMeta { - pub const VARIANTS: [i32; 4] = [0, 1, 2, 3]; - pub const VARIANTS_STR: [&'static str; 4] = ["V0", "V1", "V2", "V3"]; + pub const VARIANTS: [i32; 5] = [0, 1, 2, 3, 4]; + pub const VARIANTS_STR: [&'static str; 5] = ["V0", "V1", "V2", "V3", "V4"]; #[must_use] pub const fn name(&self) -> &'static str { @@ -22954,6 +22986,7 @@ impl TransactionMeta { Self::V1(_) => "V1", Self::V2(_) => "V2", Self::V3(_) => "V3", + Self::V4(_) => "V4", } } @@ -22965,11 +22998,12 @@ impl TransactionMeta { Self::V1(_) => 1, Self::V2(_) => 2, Self::V3(_) => 3, + Self::V4(_) => 4, } } #[must_use] - pub const fn variants() -> [i32; 4] { + pub const fn variants() -> [i32; 5] { Self::VARIANTS } } @@ -23007,6 +23041,7 @@ impl ReadXdr for TransactionMeta { 1 => Self::V1(TransactionMetaV1::read_xdr(r)?), 2 => Self::V2(TransactionMetaV2::read_xdr(r)?), 3 => Self::V3(TransactionMetaV3::read_xdr(r)?), + 4 => Self::V4(TransactionMetaV4::read_xdr(r)?), #[allow(unreachable_patterns)] _ => return Err(Error::Invalid), }; @@ -23026,6 +23061,7 @@ impl WriteXdr for TransactionMeta { Self::V1(v) => v.write_xdr(w)?, Self::V2(v) => v.write_xdr(w)?, Self::V3(v) => v.write_xdr(w)?, + Self::V4(v) => v.write_xdr(w)?, }; Ok(()) }) @@ -24279,8 +24315,8 @@ impl WriteXdr for PeerAddress { /// // new messages /// HELLO = 13, /// -/// SURVEY_REQUEST = 14, -/// SURVEY_RESPONSE = 15, +/// // SURVEY_REQUEST (14) removed and replaced by TIME_SLICED_SURVEY_REQUEST +/// // SURVEY_RESPONSE (15) removed and replaced by TIME_SLICED_SURVEY_RESPONSE /// /// SEND_MORE = 16, /// SEND_MORE_EXTENDED = 20, @@ -24319,8 +24355,6 @@ pub enum MessageType { ScpMessage = 11, GetScpState = 12, Hello = 13, - SurveyRequest = 14, - SurveyResponse = 15, SendMore = 16, SendMoreExtended = 20, FloodAdvert = 18, @@ -24332,7 +24366,7 @@ pub enum MessageType { } impl MessageType { - pub const VARIANTS: [MessageType; 23] = [ + pub const VARIANTS: [MessageType; 21] = [ MessageType::ErrorMsg, MessageType::Auth, MessageType::DontHave, @@ -24346,8 +24380,6 @@ impl MessageType { MessageType::ScpMessage, MessageType::GetScpState, MessageType::Hello, - MessageType::SurveyRequest, - MessageType::SurveyResponse, MessageType::SendMore, MessageType::SendMoreExtended, MessageType::FloodAdvert, @@ -24357,7 +24389,7 @@ impl MessageType { MessageType::TimeSlicedSurveyStartCollecting, MessageType::TimeSlicedSurveyStopCollecting, ]; - pub const VARIANTS_STR: [&'static str; 23] = [ + pub const VARIANTS_STR: [&'static str; 21] = [ "ErrorMsg", "Auth", "DontHave", @@ -24371,8 +24403,6 @@ impl MessageType { "ScpMessage", "GetScpState", "Hello", - "SurveyRequest", - "SurveyResponse", "SendMore", "SendMoreExtended", "FloodAdvert", @@ -24399,8 +24429,6 @@ impl MessageType { Self::ScpMessage => "ScpMessage", Self::GetScpState => "GetScpState", Self::Hello => "Hello", - Self::SurveyRequest => "SurveyRequest", - Self::SurveyResponse => "SurveyResponse", Self::SendMore => "SendMore", Self::SendMoreExtended => "SendMoreExtended", Self::FloodAdvert => "FloodAdvert", @@ -24413,7 +24441,7 @@ impl MessageType { } #[must_use] - pub const fn variants() -> [MessageType; 23] { + pub const fn variants() -> [MessageType; 21] { Self::VARIANTS } } @@ -24457,8 +24485,6 @@ impl TryFrom for MessageType { 11 => MessageType::ScpMessage, 12 => MessageType::GetScpState, 13 => MessageType::Hello, - 14 => MessageType::SurveyRequest, - 15 => MessageType::SurveyResponse, 16 => MessageType::SendMore, 20 => MessageType::SendMoreExtended, 18 => MessageType::FloodAdvert, @@ -24553,7 +24579,6 @@ impl WriteXdr for DontHave { /// ```text /// enum SurveyMessageCommandType /// { -/// SURVEY_TOPOLOGY = 0, /// TIME_SLICED_SURVEY_TOPOLOGY = 1 /// }; /// ``` @@ -24569,27 +24594,23 @@ impl WriteXdr for DontHave { #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum SurveyMessageCommandType { - SurveyTopology = 0, TimeSlicedSurveyTopology = 1, } impl SurveyMessageCommandType { - pub const VARIANTS: [SurveyMessageCommandType; 2] = [ - SurveyMessageCommandType::SurveyTopology, - SurveyMessageCommandType::TimeSlicedSurveyTopology, - ]; - pub const VARIANTS_STR: [&'static str; 2] = ["SurveyTopology", "TimeSlicedSurveyTopology"]; + pub const VARIANTS: [SurveyMessageCommandType; 1] = + [SurveyMessageCommandType::TimeSlicedSurveyTopology]; + pub const VARIANTS_STR: [&'static str; 1] = ["TimeSlicedSurveyTopology"]; #[must_use] pub const fn name(&self) -> &'static str { match self { - Self::SurveyTopology => "SurveyTopology", Self::TimeSlicedSurveyTopology => "TimeSlicedSurveyTopology", } } #[must_use] - pub const fn variants() -> [SurveyMessageCommandType; 2] { + pub const fn variants() -> [SurveyMessageCommandType; 1] { Self::VARIANTS } } @@ -24620,7 +24641,6 @@ impl TryFrom for SurveyMessageCommandType { fn try_from(i: i32) -> Result { let e = match i { - 0 => SurveyMessageCommandType::SurveyTopology, 1 => SurveyMessageCommandType::TimeSlicedSurveyTopology, #[allow(unreachable_patterns)] _ => return Err(Error::Invalid), @@ -24662,8 +24682,6 @@ impl WriteXdr for SurveyMessageCommandType { /// ```text /// enum SurveyMessageResponseType /// { -/// SURVEY_TOPOLOGY_RESPONSE_V0 = 0, -/// SURVEY_TOPOLOGY_RESPONSE_V1 = 1, /// SURVEY_TOPOLOGY_RESPONSE_V2 = 2 /// }; /// ``` @@ -24679,30 +24697,23 @@ impl WriteXdr for SurveyMessageCommandType { #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum SurveyMessageResponseType { - V0 = 0, - V1 = 1, - V2 = 2, + SurveyTopologyResponseV2 = 2, } impl SurveyMessageResponseType { - pub const VARIANTS: [SurveyMessageResponseType; 3] = [ - SurveyMessageResponseType::V0, - SurveyMessageResponseType::V1, - SurveyMessageResponseType::V2, - ]; - pub const VARIANTS_STR: [&'static str; 3] = ["V0", "V1", "V2"]; + pub const VARIANTS: [SurveyMessageResponseType; 1] = + [SurveyMessageResponseType::SurveyTopologyResponseV2]; + pub const VARIANTS_STR: [&'static str; 1] = ["SurveyTopologyResponseV2"]; #[must_use] pub const fn name(&self) -> &'static str { match self { - Self::V0 => "V0", - Self::V1 => "V1", - Self::V2 => "V2", + Self::SurveyTopologyResponseV2 => "SurveyTopologyResponseV2", } } #[must_use] - pub const fn variants() -> [SurveyMessageResponseType; 3] { + pub const fn variants() -> [SurveyMessageResponseType; 1] { Self::VARIANTS } } @@ -24733,9 +24744,7 @@ impl TryFrom for SurveyMessageResponseType { fn try_from(i: i32) -> Result { let e = match i { - 0 => SurveyMessageResponseType::V0, - 1 => SurveyMessageResponseType::V1, - 2 => SurveyMessageResponseType::V2, + 2 => SurveyMessageResponseType::SurveyTopologyResponseV2, #[allow(unreachable_patterns)] _ => return Err(Error::Invalid), }; @@ -25075,52 +25084,6 @@ impl WriteXdr for TimeSlicedSurveyRequestMessage { } } -/// SignedSurveyRequestMessage is an XDR Struct defines as: -/// -/// ```text -/// struct SignedSurveyRequestMessage -/// { -/// Signature requestSignature; -/// SurveyRequestMessage request; -/// }; -/// ``` -/// -#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] -#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] -#[cfg_attr( - all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), - serde(rename_all = "snake_case") -)] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] -pub struct SignedSurveyRequestMessage { - pub request_signature: Signature, - pub request: SurveyRequestMessage, -} - -impl ReadXdr for SignedSurveyRequestMessage { - #[cfg(feature = "std")] - fn read_xdr(r: &mut Limited) -> Result { - r.with_limited_depth(|r| { - Ok(Self { - request_signature: Signature::read_xdr(r)?, - request: SurveyRequestMessage::read_xdr(r)?, - }) - }) - } -} - -impl WriteXdr for SignedSurveyRequestMessage { - #[cfg(feature = "std")] - fn write_xdr(&self, w: &mut Limited) -> Result<()> { - w.with_limited_depth(|w| { - self.request_signature.write_xdr(w)?; - self.request.write_xdr(w)?; - Ok(()) - }) - } -} - /// SignedTimeSlicedSurveyRequestMessage is an XDR Struct defines as: /// /// ```text @@ -25377,52 +25340,6 @@ impl WriteXdr for TimeSlicedSurveyResponseMessage { } } -/// SignedSurveyResponseMessage is an XDR Struct defines as: -/// -/// ```text -/// struct SignedSurveyResponseMessage -/// { -/// Signature responseSignature; -/// SurveyResponseMessage response; -/// }; -/// ``` -/// -#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] -#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] -#[cfg_attr( - all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), - serde(rename_all = "snake_case") -)] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] -pub struct SignedSurveyResponseMessage { - pub response_signature: Signature, - pub response: SurveyResponseMessage, -} - -impl ReadXdr for SignedSurveyResponseMessage { - #[cfg(feature = "std")] - fn read_xdr(r: &mut Limited) -> Result { - r.with_limited_depth(|r| { - Ok(Self { - response_signature: Signature::read_xdr(r)?, - response: SurveyResponseMessage::read_xdr(r)?, - }) - }) - } -} - -impl WriteXdr for SignedSurveyResponseMessage { - #[cfg(feature = "std")] - fn write_xdr(&self, w: &mut Limited) -> Result<()> { - w.with_limited_depth(|w| { - self.response_signature.write_xdr(w)?; - self.response.write_xdr(w)?; - Ok(()) - }) - } -} - /// SignedTimeSlicedSurveyResponseMessage is an XDR Struct defines as: /// /// ```text @@ -25569,112 +25486,6 @@ impl WriteXdr for PeerStats { } } -/// PeerStatList is an XDR Typedef defines as: -/// -/// ```text -/// typedef PeerStats PeerStatList<25>; -/// ``` -/// -#[derive(Clone, Hash, PartialEq, Eq, PartialOrd, Ord)] -#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] -#[derive(Default)] -#[cfg_attr( - all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), - serde(rename_all = "snake_case") -)] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] -#[derive(Debug)] -pub struct PeerStatList(pub VecM); - -impl From for VecM { - #[must_use] - fn from(x: PeerStatList) -> Self { - x.0 - } -} - -impl From> for PeerStatList { - #[must_use] - fn from(x: VecM) -> Self { - PeerStatList(x) - } -} - -impl AsRef> for PeerStatList { - #[must_use] - fn as_ref(&self) -> &VecM { - &self.0 - } -} - -impl ReadXdr for PeerStatList { - #[cfg(feature = "std")] - fn read_xdr(r: &mut Limited) -> Result { - r.with_limited_depth(|r| { - let i = VecM::::read_xdr(r)?; - let v = PeerStatList(i); - Ok(v) - }) - } -} - -impl WriteXdr for PeerStatList { - #[cfg(feature = "std")] - fn write_xdr(&self, w: &mut Limited) -> Result<()> { - w.with_limited_depth(|w| self.0.write_xdr(w)) - } -} - -impl Deref for PeerStatList { - type Target = VecM; - fn deref(&self) -> &Self::Target { - &self.0 - } -} - -impl From for Vec { - #[must_use] - fn from(x: PeerStatList) -> Self { - x.0 .0 - } -} - -impl TryFrom> for PeerStatList { - type Error = Error; - fn try_from(x: Vec) -> Result { - Ok(PeerStatList(x.try_into()?)) - } -} - -#[cfg(feature = "alloc")] -impl TryFrom<&Vec> for PeerStatList { - type Error = Error; - fn try_from(x: &Vec) -> Result { - Ok(PeerStatList(x.try_into()?)) - } -} - -impl AsRef> for PeerStatList { - #[must_use] - fn as_ref(&self) -> &Vec { - &self.0 .0 - } -} - -impl AsRef<[PeerStats]> for PeerStatList { - #[cfg(feature = "alloc")] - #[must_use] - fn as_ref(&self) -> &[PeerStats] { - &self.0 .0 - } - #[cfg(not(feature = "alloc"))] - #[must_use] - fn as_ref(&self) -> &[PeerStats] { - self.0 .0 - } -} - /// TimeSlicedNodeData is an XDR Struct defines as: /// /// ```text @@ -25911,125 +25722,6 @@ impl AsRef<[TimeSlicedPeerData]> for TimeSlicedPeerDataList { } } -/// TopologyResponseBodyV0 is an XDR Struct defines as: -/// -/// ```text -/// struct TopologyResponseBodyV0 -/// { -/// PeerStatList inboundPeers; -/// PeerStatList outboundPeers; -/// -/// uint32 totalInboundPeerCount; -/// uint32 totalOutboundPeerCount; -/// }; -/// ``` -/// -#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] -#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] -#[cfg_attr( - all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), - serde(rename_all = "snake_case") -)] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] -pub struct TopologyResponseBodyV0 { - pub inbound_peers: PeerStatList, - pub outbound_peers: PeerStatList, - pub total_inbound_peer_count: u32, - pub total_outbound_peer_count: u32, -} - -impl ReadXdr for TopologyResponseBodyV0 { - #[cfg(feature = "std")] - fn read_xdr(r: &mut Limited) -> Result { - r.with_limited_depth(|r| { - Ok(Self { - inbound_peers: PeerStatList::read_xdr(r)?, - outbound_peers: PeerStatList::read_xdr(r)?, - total_inbound_peer_count: u32::read_xdr(r)?, - total_outbound_peer_count: u32::read_xdr(r)?, - }) - }) - } -} - -impl WriteXdr for TopologyResponseBodyV0 { - #[cfg(feature = "std")] - fn write_xdr(&self, w: &mut Limited) -> Result<()> { - w.with_limited_depth(|w| { - self.inbound_peers.write_xdr(w)?; - self.outbound_peers.write_xdr(w)?; - self.total_inbound_peer_count.write_xdr(w)?; - self.total_outbound_peer_count.write_xdr(w)?; - Ok(()) - }) - } -} - -/// TopologyResponseBodyV1 is an XDR Struct defines as: -/// -/// ```text -/// struct TopologyResponseBodyV1 -/// { -/// PeerStatList inboundPeers; -/// PeerStatList outboundPeers; -/// -/// uint32 totalInboundPeerCount; -/// uint32 totalOutboundPeerCount; -/// -/// uint32 maxInboundPeerCount; -/// uint32 maxOutboundPeerCount; -/// }; -/// ``` -/// -#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] -#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] -#[cfg_attr( - all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), - serde(rename_all = "snake_case") -)] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] -pub struct TopologyResponseBodyV1 { - pub inbound_peers: PeerStatList, - pub outbound_peers: PeerStatList, - pub total_inbound_peer_count: u32, - pub total_outbound_peer_count: u32, - pub max_inbound_peer_count: u32, - pub max_outbound_peer_count: u32, -} - -impl ReadXdr for TopologyResponseBodyV1 { - #[cfg(feature = "std")] - fn read_xdr(r: &mut Limited) -> Result { - r.with_limited_depth(|r| { - Ok(Self { - inbound_peers: PeerStatList::read_xdr(r)?, - outbound_peers: PeerStatList::read_xdr(r)?, - total_inbound_peer_count: u32::read_xdr(r)?, - total_outbound_peer_count: u32::read_xdr(r)?, - max_inbound_peer_count: u32::read_xdr(r)?, - max_outbound_peer_count: u32::read_xdr(r)?, - }) - }) - } -} - -impl WriteXdr for TopologyResponseBodyV1 { - #[cfg(feature = "std")] - fn write_xdr(&self, w: &mut Limited) -> Result<()> { - w.with_limited_depth(|w| { - self.inbound_peers.write_xdr(w)?; - self.outbound_peers.write_xdr(w)?; - self.total_inbound_peer_count.write_xdr(w)?; - self.total_outbound_peer_count.write_xdr(w)?; - self.max_inbound_peer_count.write_xdr(w)?; - self.max_outbound_peer_count.write_xdr(w)?; - Ok(()) - }) - } -} - /// TopologyResponseBodyV2 is an XDR Struct defines as: /// /// ```text @@ -26085,10 +25777,6 @@ impl WriteXdr for TopologyResponseBodyV2 { /// ```text /// union SurveyResponseBody switch (SurveyMessageResponseType type) /// { -/// case SURVEY_TOPOLOGY_RESPONSE_V0: -/// TopologyResponseBodyV0 topologyResponseBodyV0; -/// case SURVEY_TOPOLOGY_RESPONSE_V1: -/// TopologyResponseBodyV1 topologyResponseBodyV1; /// case SURVEY_TOPOLOGY_RESPONSE_V2: /// TopologyResponseBodyV2 topologyResponseBodyV2; /// }; @@ -26105,25 +25793,18 @@ impl WriteXdr for TopologyResponseBodyV2 { #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum SurveyResponseBody { - V0(TopologyResponseBodyV0), - V1(TopologyResponseBodyV1), - V2(TopologyResponseBodyV2), + SurveyTopologyResponseV2(TopologyResponseBodyV2), } impl SurveyResponseBody { - pub const VARIANTS: [SurveyMessageResponseType; 3] = [ - SurveyMessageResponseType::V0, - SurveyMessageResponseType::V1, - SurveyMessageResponseType::V2, - ]; - pub const VARIANTS_STR: [&'static str; 3] = ["V0", "V1", "V2"]; + pub const VARIANTS: [SurveyMessageResponseType; 1] = + [SurveyMessageResponseType::SurveyTopologyResponseV2]; + pub const VARIANTS_STR: [&'static str; 1] = ["SurveyTopologyResponseV2"]; #[must_use] pub const fn name(&self) -> &'static str { match self { - Self::V0(_) => "V0", - Self::V1(_) => "V1", - Self::V2(_) => "V2", + Self::SurveyTopologyResponseV2(_) => "SurveyTopologyResponseV2", } } @@ -26131,14 +25812,14 @@ impl SurveyResponseBody { pub const fn discriminant(&self) -> SurveyMessageResponseType { #[allow(clippy::match_same_arms)] match self { - Self::V0(_) => SurveyMessageResponseType::V0, - Self::V1(_) => SurveyMessageResponseType::V1, - Self::V2(_) => SurveyMessageResponseType::V2, + Self::SurveyTopologyResponseV2(_) => { + SurveyMessageResponseType::SurveyTopologyResponseV2 + } } } #[must_use] - pub const fn variants() -> [SurveyMessageResponseType; 3] { + pub const fn variants() -> [SurveyMessageResponseType; 1] { Self::VARIANTS } } @@ -26173,9 +25854,9 @@ impl ReadXdr for SurveyResponseBody { ::read_xdr(r)?; #[allow(clippy::match_same_arms, clippy::match_wildcard_for_single_variants)] let v = match dv { - SurveyMessageResponseType::V0 => Self::V0(TopologyResponseBodyV0::read_xdr(r)?), - SurveyMessageResponseType::V1 => Self::V1(TopologyResponseBodyV1::read_xdr(r)?), - SurveyMessageResponseType::V2 => Self::V2(TopologyResponseBodyV2::read_xdr(r)?), + SurveyMessageResponseType::SurveyTopologyResponseV2 => { + Self::SurveyTopologyResponseV2(TopologyResponseBodyV2::read_xdr(r)?) + } #[allow(unreachable_patterns)] _ => return Err(Error::Invalid), }; @@ -26191,9 +25872,7 @@ impl WriteXdr for SurveyResponseBody { self.discriminant().write_xdr(w)?; #[allow(clippy::match_same_arms)] match self { - Self::V0(v) => v.write_xdr(w)?, - Self::V1(v) => v.write_xdr(w)?, - Self::V2(v) => v.write_xdr(w)?, + Self::SurveyTopologyResponseV2(v) => v.write_xdr(w)?, }; Ok(()) }) @@ -26538,12 +26217,6 @@ impl WriteXdr for FloodDemand { /// case TRANSACTION: /// TransactionEnvelope transaction; /// -/// case SURVEY_REQUEST: -/// SignedSurveyRequestMessage signedSurveyRequestMessage; -/// -/// case SURVEY_RESPONSE: -/// SignedSurveyResponseMessage signedSurveyResponseMessage; -/// /// case TIME_SLICED_SURVEY_REQUEST: /// SignedTimeSlicedSurveyRequestMessage signedTimeSlicedSurveyRequestMessage; /// @@ -26599,8 +26272,6 @@ pub enum StellarMessage { TxSet(TransactionSet), GeneralizedTxSet(GeneralizedTransactionSet), Transaction(TransactionEnvelope), - SurveyRequest(SignedSurveyRequestMessage), - SurveyResponse(SignedSurveyResponseMessage), TimeSlicedSurveyRequest(SignedTimeSlicedSurveyRequestMessage), TimeSlicedSurveyResponse(SignedTimeSlicedSurveyResponseMessage), TimeSlicedSurveyStartCollecting(SignedTimeSlicedSurveyStartCollectingMessage), @@ -26616,7 +26287,7 @@ pub enum StellarMessage { } impl StellarMessage { - pub const VARIANTS: [MessageType; 23] = [ + pub const VARIANTS: [MessageType; 21] = [ MessageType::ErrorMsg, MessageType::Hello, MessageType::Auth, @@ -26626,8 +26297,6 @@ impl StellarMessage { MessageType::TxSet, MessageType::GeneralizedTxSet, MessageType::Transaction, - MessageType::SurveyRequest, - MessageType::SurveyResponse, MessageType::TimeSlicedSurveyRequest, MessageType::TimeSlicedSurveyResponse, MessageType::TimeSlicedSurveyStartCollecting, @@ -26641,7 +26310,7 @@ impl StellarMessage { MessageType::FloodAdvert, MessageType::FloodDemand, ]; - pub const VARIANTS_STR: [&'static str; 23] = [ + pub const VARIANTS_STR: [&'static str; 21] = [ "ErrorMsg", "Hello", "Auth", @@ -26651,8 +26320,6 @@ impl StellarMessage { "TxSet", "GeneralizedTxSet", "Transaction", - "SurveyRequest", - "SurveyResponse", "TimeSlicedSurveyRequest", "TimeSlicedSurveyResponse", "TimeSlicedSurveyStartCollecting", @@ -26679,8 +26346,6 @@ impl StellarMessage { Self::TxSet(_) => "TxSet", Self::GeneralizedTxSet(_) => "GeneralizedTxSet", Self::Transaction(_) => "Transaction", - Self::SurveyRequest(_) => "SurveyRequest", - Self::SurveyResponse(_) => "SurveyResponse", Self::TimeSlicedSurveyRequest(_) => "TimeSlicedSurveyRequest", Self::TimeSlicedSurveyResponse(_) => "TimeSlicedSurveyResponse", Self::TimeSlicedSurveyStartCollecting(_) => "TimeSlicedSurveyStartCollecting", @@ -26709,8 +26374,6 @@ impl StellarMessage { Self::TxSet(_) => MessageType::TxSet, Self::GeneralizedTxSet(_) => MessageType::GeneralizedTxSet, Self::Transaction(_) => MessageType::Transaction, - Self::SurveyRequest(_) => MessageType::SurveyRequest, - Self::SurveyResponse(_) => MessageType::SurveyResponse, Self::TimeSlicedSurveyRequest(_) => MessageType::TimeSlicedSurveyRequest, Self::TimeSlicedSurveyResponse(_) => MessageType::TimeSlicedSurveyResponse, Self::TimeSlicedSurveyStartCollecting(_) => { @@ -26729,7 +26392,7 @@ impl StellarMessage { } #[must_use] - pub const fn variants() -> [MessageType; 23] { + pub const fn variants() -> [MessageType; 21] { Self::VARIANTS } } @@ -26774,12 +26437,6 @@ impl ReadXdr for StellarMessage { Self::GeneralizedTxSet(GeneralizedTransactionSet::read_xdr(r)?) } MessageType::Transaction => Self::Transaction(TransactionEnvelope::read_xdr(r)?), - MessageType::SurveyRequest => { - Self::SurveyRequest(SignedSurveyRequestMessage::read_xdr(r)?) - } - MessageType::SurveyResponse => { - Self::SurveyResponse(SignedSurveyResponseMessage::read_xdr(r)?) - } MessageType::TimeSlicedSurveyRequest => Self::TimeSlicedSurveyRequest( SignedTimeSlicedSurveyRequestMessage::read_xdr(r)?, ), @@ -26830,8 +26487,6 @@ impl WriteXdr for StellarMessage { Self::TxSet(v) => v.write_xdr(w)?, Self::GeneralizedTxSet(v) => v.write_xdr(w)?, Self::Transaction(v) => v.write_xdr(w)?, - Self::SurveyRequest(v) => v.write_xdr(w)?, - Self::SurveyResponse(v) => v.write_xdr(w)?, Self::TimeSlicedSurveyRequest(v) => v.write_xdr(w)?, Self::TimeSlicedSurveyResponse(v) => v.write_xdr(w)?, Self::TimeSlicedSurveyStartCollecting(v) => v.write_xdr(w)?, @@ -32070,6 +31725,544 @@ impl WriteXdr for LedgerFootprint { } } +/// ArchivalProofType is an XDR Enum defines as: +/// +/// ```text +/// enum ArchivalProofType +/// { +/// EXISTENCE = 0, +/// NONEXISTENCE = 1 +/// }; +/// ``` +/// +// enum +#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] +#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] +#[cfg_attr( + all(feature = "serde", feature = "alloc"), + derive(serde::Serialize, serde::Deserialize), + serde(rename_all = "snake_case") +)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] +#[repr(i32)] +pub enum ArchivalProofType { + Existence = 0, + Nonexistence = 1, +} + +impl ArchivalProofType { + pub const VARIANTS: [ArchivalProofType; 2] = [ + ArchivalProofType::Existence, + ArchivalProofType::Nonexistence, + ]; + pub const VARIANTS_STR: [&'static str; 2] = ["Existence", "Nonexistence"]; + + #[must_use] + pub const fn name(&self) -> &'static str { + match self { + Self::Existence => "Existence", + Self::Nonexistence => "Nonexistence", + } + } + + #[must_use] + pub const fn variants() -> [ArchivalProofType; 2] { + Self::VARIANTS + } +} + +impl Name for ArchivalProofType { + #[must_use] + fn name(&self) -> &'static str { + Self::name(self) + } +} + +impl Variants for ArchivalProofType { + fn variants() -> slice::Iter<'static, ArchivalProofType> { + Self::VARIANTS.iter() + } +} + +impl Enum for ArchivalProofType {} + +impl fmt::Display for ArchivalProofType { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.write_str(self.name()) + } +} + +impl TryFrom for ArchivalProofType { + type Error = Error; + + fn try_from(i: i32) -> Result { + let e = match i { + 0 => ArchivalProofType::Existence, + 1 => ArchivalProofType::Nonexistence, + #[allow(unreachable_patterns)] + _ => return Err(Error::Invalid), + }; + Ok(e) + } +} + +impl From for i32 { + #[must_use] + fn from(e: ArchivalProofType) -> Self { + e as Self + } +} + +impl ReadXdr for ArchivalProofType { + #[cfg(feature = "std")] + fn read_xdr(r: &mut Limited) -> Result { + r.with_limited_depth(|r| { + let e = i32::read_xdr(r)?; + let v: Self = e.try_into()?; + Ok(v) + }) + } +} + +impl WriteXdr for ArchivalProofType { + #[cfg(feature = "std")] + fn write_xdr(&self, w: &mut Limited) -> Result<()> { + w.with_limited_depth(|w| { + let i: i32 = (*self).into(); + i.write_xdr(w) + }) + } +} + +/// ArchivalProofNode is an XDR Struct defines as: +/// +/// ```text +/// struct ArchivalProofNode +/// { +/// uint32 index; +/// Hash hash; +/// }; +/// ``` +/// +#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] +#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] +#[cfg_attr( + all(feature = "serde", feature = "alloc"), + derive(serde::Serialize, serde::Deserialize), + serde(rename_all = "snake_case") +)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] +pub struct ArchivalProofNode { + pub index: u32, + pub hash: Hash, +} + +impl ReadXdr for ArchivalProofNode { + #[cfg(feature = "std")] + fn read_xdr(r: &mut Limited) -> Result { + r.with_limited_depth(|r| { + Ok(Self { + index: u32::read_xdr(r)?, + hash: Hash::read_xdr(r)?, + }) + }) + } +} + +impl WriteXdr for ArchivalProofNode { + #[cfg(feature = "std")] + fn write_xdr(&self, w: &mut Limited) -> Result<()> { + w.with_limited_depth(|w| { + self.index.write_xdr(w)?; + self.hash.write_xdr(w)?; + Ok(()) + }) + } +} + +/// ProofLevel is an XDR Typedef defines as: +/// +/// ```text +/// typedef ArchivalProofNode ProofLevel<>; +/// ``` +/// +#[derive(Clone, Hash, PartialEq, Eq, PartialOrd, Ord)] +#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] +#[derive(Default)] +#[cfg_attr( + all(feature = "serde", feature = "alloc"), + derive(serde::Serialize, serde::Deserialize), + serde(rename_all = "snake_case") +)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] +#[derive(Debug)] +pub struct ProofLevel(pub VecM); + +impl From for VecM { + #[must_use] + fn from(x: ProofLevel) -> Self { + x.0 + } +} + +impl From> for ProofLevel { + #[must_use] + fn from(x: VecM) -> Self { + ProofLevel(x) + } +} + +impl AsRef> for ProofLevel { + #[must_use] + fn as_ref(&self) -> &VecM { + &self.0 + } +} + +impl ReadXdr for ProofLevel { + #[cfg(feature = "std")] + fn read_xdr(r: &mut Limited) -> Result { + r.with_limited_depth(|r| { + let i = VecM::::read_xdr(r)?; + let v = ProofLevel(i); + Ok(v) + }) + } +} + +impl WriteXdr for ProofLevel { + #[cfg(feature = "std")] + fn write_xdr(&self, w: &mut Limited) -> Result<()> { + w.with_limited_depth(|w| self.0.write_xdr(w)) + } +} + +impl Deref for ProofLevel { + type Target = VecM; + fn deref(&self) -> &Self::Target { + &self.0 + } +} + +impl From for Vec { + #[must_use] + fn from(x: ProofLevel) -> Self { + x.0 .0 + } +} + +impl TryFrom> for ProofLevel { + type Error = Error; + fn try_from(x: Vec) -> Result { + Ok(ProofLevel(x.try_into()?)) + } +} + +#[cfg(feature = "alloc")] +impl TryFrom<&Vec> for ProofLevel { + type Error = Error; + fn try_from(x: &Vec) -> Result { + Ok(ProofLevel(x.try_into()?)) + } +} + +impl AsRef> for ProofLevel { + #[must_use] + fn as_ref(&self) -> &Vec { + &self.0 .0 + } +} + +impl AsRef<[ArchivalProofNode]> for ProofLevel { + #[cfg(feature = "alloc")] + #[must_use] + fn as_ref(&self) -> &[ArchivalProofNode] { + &self.0 .0 + } + #[cfg(not(feature = "alloc"))] + #[must_use] + fn as_ref(&self) -> &[ArchivalProofNode] { + self.0 .0 + } +} + +/// NonexistenceProofBody is an XDR Struct defines as: +/// +/// ```text +/// struct NonexistenceProofBody +/// { +/// ColdArchiveBucketEntry entriesToProve<>; +/// +/// // Vector of vectors, where proofLevels[level] +/// // contains all HashNodes that correspond with that level +/// ProofLevel proofLevels<>; +/// }; +/// ``` +/// +#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] +#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] +#[cfg_attr( + all(feature = "serde", feature = "alloc"), + derive(serde::Serialize, serde::Deserialize), + serde(rename_all = "snake_case") +)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] +pub struct NonexistenceProofBody { + pub entries_to_prove: VecM, + pub proof_levels: VecM, +} + +impl ReadXdr for NonexistenceProofBody { + #[cfg(feature = "std")] + fn read_xdr(r: &mut Limited) -> Result { + r.with_limited_depth(|r| { + Ok(Self { + entries_to_prove: VecM::::read_xdr(r)?, + proof_levels: VecM::::read_xdr(r)?, + }) + }) + } +} + +impl WriteXdr for NonexistenceProofBody { + #[cfg(feature = "std")] + fn write_xdr(&self, w: &mut Limited) -> Result<()> { + w.with_limited_depth(|w| { + self.entries_to_prove.write_xdr(w)?; + self.proof_levels.write_xdr(w)?; + Ok(()) + }) + } +} + +/// ExistenceProofBody is an XDR Struct defines as: +/// +/// ```text +/// struct ExistenceProofBody +/// { +/// LedgerKey keysToProve<>; +/// +/// // Bounds for each key being proved, where bound[n] +/// // corresponds to keysToProve[n] +/// ColdArchiveBucketEntry lowBoundEntries<>; +/// ColdArchiveBucketEntry highBoundEntries<>; +/// +/// // Vector of vectors, where proofLevels[level] +/// // contains all HashNodes that correspond with that level +/// ProofLevel proofLevels<>; +/// }; +/// ``` +/// +#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] +#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] +#[cfg_attr( + all(feature = "serde", feature = "alloc"), + derive(serde::Serialize, serde::Deserialize), + serde(rename_all = "snake_case") +)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] +pub struct ExistenceProofBody { + pub keys_to_prove: VecM, + pub low_bound_entries: VecM, + pub high_bound_entries: VecM, + pub proof_levels: VecM, +} + +impl ReadXdr for ExistenceProofBody { + #[cfg(feature = "std")] + fn read_xdr(r: &mut Limited) -> Result { + r.with_limited_depth(|r| { + Ok(Self { + keys_to_prove: VecM::::read_xdr(r)?, + low_bound_entries: VecM::::read_xdr(r)?, + high_bound_entries: VecM::::read_xdr(r)?, + proof_levels: VecM::::read_xdr(r)?, + }) + }) + } +} + +impl WriteXdr for ExistenceProofBody { + #[cfg(feature = "std")] + fn write_xdr(&self, w: &mut Limited) -> Result<()> { + w.with_limited_depth(|w| { + self.keys_to_prove.write_xdr(w)?; + self.low_bound_entries.write_xdr(w)?; + self.high_bound_entries.write_xdr(w)?; + self.proof_levels.write_xdr(w)?; + Ok(()) + }) + } +} + +/// ArchivalProofBody is an XDR NestedUnion defines as: +/// +/// ```text +/// union switch (ArchivalProofType t) +/// { +/// case EXISTENCE: +/// NonexistenceProofBody nonexistenceProof; +/// case NONEXISTENCE: +/// ExistenceProofBody existenceProof; +/// } +/// ``` +/// +// union with discriminant ArchivalProofType +#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] +#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] +#[cfg_attr( + all(feature = "serde", feature = "alloc"), + derive(serde::Serialize, serde::Deserialize), + serde(rename_all = "snake_case") +)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] +#[allow(clippy::large_enum_variant)] +pub enum ArchivalProofBody { + Existence(NonexistenceProofBody), + Nonexistence(ExistenceProofBody), +} + +impl ArchivalProofBody { + pub const VARIANTS: [ArchivalProofType; 2] = [ + ArchivalProofType::Existence, + ArchivalProofType::Nonexistence, + ]; + pub const VARIANTS_STR: [&'static str; 2] = ["Existence", "Nonexistence"]; + + #[must_use] + pub const fn name(&self) -> &'static str { + match self { + Self::Existence(_) => "Existence", + Self::Nonexistence(_) => "Nonexistence", + } + } + + #[must_use] + pub const fn discriminant(&self) -> ArchivalProofType { + #[allow(clippy::match_same_arms)] + match self { + Self::Existence(_) => ArchivalProofType::Existence, + Self::Nonexistence(_) => ArchivalProofType::Nonexistence, + } + } + + #[must_use] + pub const fn variants() -> [ArchivalProofType; 2] { + Self::VARIANTS + } +} + +impl Name for ArchivalProofBody { + #[must_use] + fn name(&self) -> &'static str { + Self::name(self) + } +} + +impl Discriminant for ArchivalProofBody { + #[must_use] + fn discriminant(&self) -> ArchivalProofType { + Self::discriminant(self) + } +} + +impl Variants for ArchivalProofBody { + fn variants() -> slice::Iter<'static, ArchivalProofType> { + Self::VARIANTS.iter() + } +} + +impl Union for ArchivalProofBody {} + +impl ReadXdr for ArchivalProofBody { + #[cfg(feature = "std")] + fn read_xdr(r: &mut Limited) -> Result { + r.with_limited_depth(|r| { + let dv: ArchivalProofType = ::read_xdr(r)?; + #[allow(clippy::match_same_arms, clippy::match_wildcard_for_single_variants)] + let v = match dv { + ArchivalProofType::Existence => { + Self::Existence(NonexistenceProofBody::read_xdr(r)?) + } + ArchivalProofType::Nonexistence => { + Self::Nonexistence(ExistenceProofBody::read_xdr(r)?) + } + #[allow(unreachable_patterns)] + _ => return Err(Error::Invalid), + }; + Ok(v) + }) + } +} + +impl WriteXdr for ArchivalProofBody { + #[cfg(feature = "std")] + fn write_xdr(&self, w: &mut Limited) -> Result<()> { + w.with_limited_depth(|w| { + self.discriminant().write_xdr(w)?; + #[allow(clippy::match_same_arms)] + match self { + Self::Existence(v) => v.write_xdr(w)?, + Self::Nonexistence(v) => v.write_xdr(w)?, + }; + Ok(()) + }) + } +} + +/// ArchivalProof is an XDR Struct defines as: +/// +/// ```text +/// struct ArchivalProof +/// { +/// uint32 epoch; // AST Subtree for this proof +/// +/// union switch (ArchivalProofType t) +/// { +/// case EXISTENCE: +/// NonexistenceProofBody nonexistenceProof; +/// case NONEXISTENCE: +/// ExistenceProofBody existenceProof; +/// } body; +/// }; +/// ``` +/// +#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] +#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] +#[cfg_attr( + all(feature = "serde", feature = "alloc"), + derive(serde::Serialize, serde::Deserialize), + serde(rename_all = "snake_case") +)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] +pub struct ArchivalProof { + pub epoch: u32, + pub body: ArchivalProofBody, +} + +impl ReadXdr for ArchivalProof { + #[cfg(feature = "std")] + fn read_xdr(r: &mut Limited) -> Result { + r.with_limited_depth(|r| { + Ok(Self { + epoch: u32::read_xdr(r)?, + body: ArchivalProofBody::read_xdr(r)?, + }) + }) + } +} + +impl WriteXdr for ArchivalProof { + #[cfg(feature = "std")] + fn write_xdr(&self, w: &mut Limited) -> Result<()> { + w.with_limited_depth(|w| { + self.epoch.write_xdr(w)?; + self.body.write_xdr(w)?; + Ok(()) + }) + } +} + /// SorobanResources is an XDR Struct defines as: /// /// ```text @@ -45742,6 +45935,267 @@ impl WriteXdr for SerializedBinaryFuseFilter { } } +/// PoolId is an XDR Typedef defines as: +/// +/// ```text +/// typedef Hash PoolID; +/// ``` +/// +#[derive(Clone, Hash, PartialEq, Eq, PartialOrd, Ord)] +#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] +#[cfg_attr( + all(feature = "serde", feature = "alloc"), + derive(serde::Serialize, serde::Deserialize), + serde(rename_all = "snake_case") +)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] +#[derive(Debug)] +pub struct PoolId(pub Hash); + +impl From for Hash { + #[must_use] + fn from(x: PoolId) -> Self { + x.0 + } +} + +impl From for PoolId { + #[must_use] + fn from(x: Hash) -> Self { + PoolId(x) + } +} + +impl AsRef for PoolId { + #[must_use] + fn as_ref(&self) -> &Hash { + &self.0 + } +} + +impl ReadXdr for PoolId { + #[cfg(feature = "std")] + fn read_xdr(r: &mut Limited) -> Result { + r.with_limited_depth(|r| { + let i = Hash::read_xdr(r)?; + let v = PoolId(i); + Ok(v) + }) + } +} + +impl WriteXdr for PoolId { + #[cfg(feature = "std")] + fn write_xdr(&self, w: &mut Limited) -> Result<()> { + w.with_limited_depth(|w| self.0.write_xdr(w)) + } +} + +/// ClaimableBalanceIdType is an XDR Enum defines as: +/// +/// ```text +/// enum ClaimableBalanceIDType +/// { +/// CLAIMABLE_BALANCE_ID_TYPE_V0 = 0 +/// }; +/// ``` +/// +// enum +#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] +#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] +#[cfg_attr( + all(feature = "serde", feature = "alloc"), + derive(serde::Serialize, serde::Deserialize), + serde(rename_all = "snake_case") +)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] +#[repr(i32)] +pub enum ClaimableBalanceIdType { + ClaimableBalanceIdTypeV0 = 0, +} + +impl ClaimableBalanceIdType { + pub const VARIANTS: [ClaimableBalanceIdType; 1] = + [ClaimableBalanceIdType::ClaimableBalanceIdTypeV0]; + pub const VARIANTS_STR: [&'static str; 1] = ["ClaimableBalanceIdTypeV0"]; + + #[must_use] + pub const fn name(&self) -> &'static str { + match self { + Self::ClaimableBalanceIdTypeV0 => "ClaimableBalanceIdTypeV0", + } + } + + #[must_use] + pub const fn variants() -> [ClaimableBalanceIdType; 1] { + Self::VARIANTS + } +} + +impl Name for ClaimableBalanceIdType { + #[must_use] + fn name(&self) -> &'static str { + Self::name(self) + } +} + +impl Variants for ClaimableBalanceIdType { + fn variants() -> slice::Iter<'static, ClaimableBalanceIdType> { + Self::VARIANTS.iter() + } +} + +impl Enum for ClaimableBalanceIdType {} + +impl fmt::Display for ClaimableBalanceIdType { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.write_str(self.name()) + } +} + +impl TryFrom for ClaimableBalanceIdType { + type Error = Error; + + fn try_from(i: i32) -> Result { + let e = match i { + 0 => ClaimableBalanceIdType::ClaimableBalanceIdTypeV0, + #[allow(unreachable_patterns)] + _ => return Err(Error::Invalid), + }; + Ok(e) + } +} + +impl From for i32 { + #[must_use] + fn from(e: ClaimableBalanceIdType) -> Self { + e as Self + } +} + +impl ReadXdr for ClaimableBalanceIdType { + #[cfg(feature = "std")] + fn read_xdr(r: &mut Limited) -> Result { + r.with_limited_depth(|r| { + let e = i32::read_xdr(r)?; + let v: Self = e.try_into()?; + Ok(v) + }) + } +} + +impl WriteXdr for ClaimableBalanceIdType { + #[cfg(feature = "std")] + fn write_xdr(&self, w: &mut Limited) -> Result<()> { + w.with_limited_depth(|w| { + let i: i32 = (*self).into(); + i.write_xdr(w) + }) + } +} + +/// ClaimableBalanceId is an XDR Union defines as: +/// +/// ```text +/// union ClaimableBalanceID switch (ClaimableBalanceIDType type) +/// { +/// case CLAIMABLE_BALANCE_ID_TYPE_V0: +/// Hash v0; +/// }; +/// ``` +/// +// union with discriminant ClaimableBalanceIdType +#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] +#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] +#[cfg_attr( + all(feature = "serde", feature = "alloc"), + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[allow(clippy::large_enum_variant)] +pub enum ClaimableBalanceId { + ClaimableBalanceIdTypeV0(Hash), +} + +impl ClaimableBalanceId { + pub const VARIANTS: [ClaimableBalanceIdType; 1] = + [ClaimableBalanceIdType::ClaimableBalanceIdTypeV0]; + pub const VARIANTS_STR: [&'static str; 1] = ["ClaimableBalanceIdTypeV0"]; + + #[must_use] + pub const fn name(&self) -> &'static str { + match self { + Self::ClaimableBalanceIdTypeV0(_) => "ClaimableBalanceIdTypeV0", + } + } + + #[must_use] + pub const fn discriminant(&self) -> ClaimableBalanceIdType { + #[allow(clippy::match_same_arms)] + match self { + Self::ClaimableBalanceIdTypeV0(_) => ClaimableBalanceIdType::ClaimableBalanceIdTypeV0, + } + } + + #[must_use] + pub const fn variants() -> [ClaimableBalanceIdType; 1] { + Self::VARIANTS + } +} + +impl Name for ClaimableBalanceId { + #[must_use] + fn name(&self) -> &'static str { + Self::name(self) + } +} + +impl Discriminant for ClaimableBalanceId { + #[must_use] + fn discriminant(&self) -> ClaimableBalanceIdType { + Self::discriminant(self) + } +} + +impl Variants for ClaimableBalanceId { + fn variants() -> slice::Iter<'static, ClaimableBalanceIdType> { + Self::VARIANTS.iter() + } +} + +impl Union for ClaimableBalanceId {} + +impl ReadXdr for ClaimableBalanceId { + #[cfg(feature = "std")] + fn read_xdr(r: &mut Limited) -> Result { + r.with_limited_depth(|r| { + let dv: ClaimableBalanceIdType = ::read_xdr(r)?; + #[allow(clippy::match_same_arms, clippy::match_wildcard_for_single_variants)] + let v = match dv { + ClaimableBalanceIdType::ClaimableBalanceIdTypeV0 => { + Self::ClaimableBalanceIdTypeV0(Hash::read_xdr(r)?) + } + #[allow(unreachable_patterns)] + _ => return Err(Error::Invalid), + }; + Ok(v) + }) + } +} + +impl WriteXdr for ClaimableBalanceId { + #[cfg(feature = "std")] + fn write_xdr(&self, w: &mut Limited) -> Result<()> { + w.with_limited_depth(|w| { + self.discriminant().write_xdr(w)?; + #[allow(clippy::match_same_arms)] + match self { + Self::ClaimableBalanceIdTypeV0(v) => v.write_xdr(w)?, + }; + Ok(()) + }) + } +} + #[derive(Clone, Copy, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( all(feature = "serde", feature = "alloc"), @@ -45815,6 +46269,7 @@ pub enum TypeVariant { ContractExecutableType, ContractExecutable, ScAddressType, + MuxedEd25519Account, ScAddress, ScVec, ScMap, @@ -45835,7 +46290,6 @@ pub enum TypeVariant { String64, SequenceNumber, DataValue, - PoolId, AssetCode4, AssetCode12, AssetType, @@ -45876,8 +46330,6 @@ pub enum TypeVariant { ClaimantType, Claimant, ClaimantV0, - ClaimableBalanceIdType, - ClaimableBalanceId, ClaimableBalanceFlags, ClaimableBalanceEntryExtensionV1, ClaimableBalanceEntryExtensionV1Ext, @@ -45972,6 +46424,9 @@ pub enum TypeVariant { SorobanTransactionMetaExt, SorobanTransactionMeta, TransactionMetaV3, + OperationMetaV2, + SorobanTransactionMetaV2, + TransactionMetaV4, InvokeHostFunctionSuccessPreImage, TransactionMeta, TransactionResultMeta, @@ -46001,20 +46456,15 @@ pub enum TypeVariant { SignedTimeSlicedSurveyStopCollectingMessage, SurveyRequestMessage, TimeSlicedSurveyRequestMessage, - SignedSurveyRequestMessage, SignedTimeSlicedSurveyRequestMessage, EncryptedBody, SurveyResponseMessage, TimeSlicedSurveyResponseMessage, - SignedSurveyResponseMessage, SignedTimeSlicedSurveyResponseMessage, PeerStats, - PeerStatList, TimeSlicedNodeData, TimeSlicedPeerData, TimeSlicedPeerDataList, - TopologyResponseBodyV0, - TopologyResponseBodyV1, TopologyResponseBodyV2, SurveyResponseBody, TxAdvertVector, @@ -46086,6 +46536,13 @@ pub enum TypeVariant { PreconditionType, Preconditions, LedgerFootprint, + ArchivalProofType, + ArchivalProofNode, + ProofLevel, + NonexistenceProofBody, + ExistenceProofBody, + ArchivalProof, + ArchivalProofBody, SorobanResources, SorobanTransactionData, TransactionV0, @@ -46202,10 +46659,13 @@ pub enum TypeVariant { ShortHashSeed, BinaryFuseFilterType, SerializedBinaryFuseFilter, + PoolId, + ClaimableBalanceIdType, + ClaimableBalanceId, } impl TypeVariant { - pub const VARIANTS: [TypeVariant; 452] = [ + pub const VARIANTS: [TypeVariant; 458] = [ TypeVariant::Value, TypeVariant::ScpBallot, TypeVariant::ScpStatementType, @@ -46271,6 +46731,7 @@ impl TypeVariant { TypeVariant::ContractExecutableType, TypeVariant::ContractExecutable, TypeVariant::ScAddressType, + TypeVariant::MuxedEd25519Account, TypeVariant::ScAddress, TypeVariant::ScVec, TypeVariant::ScMap, @@ -46291,7 +46752,6 @@ impl TypeVariant { TypeVariant::String64, TypeVariant::SequenceNumber, TypeVariant::DataValue, - TypeVariant::PoolId, TypeVariant::AssetCode4, TypeVariant::AssetCode12, TypeVariant::AssetType, @@ -46332,8 +46792,6 @@ impl TypeVariant { TypeVariant::ClaimantType, TypeVariant::Claimant, TypeVariant::ClaimantV0, - TypeVariant::ClaimableBalanceIdType, - TypeVariant::ClaimableBalanceId, TypeVariant::ClaimableBalanceFlags, TypeVariant::ClaimableBalanceEntryExtensionV1, TypeVariant::ClaimableBalanceEntryExtensionV1Ext, @@ -46428,6 +46886,9 @@ impl TypeVariant { TypeVariant::SorobanTransactionMetaExt, TypeVariant::SorobanTransactionMeta, TypeVariant::TransactionMetaV3, + TypeVariant::OperationMetaV2, + TypeVariant::SorobanTransactionMetaV2, + TypeVariant::TransactionMetaV4, TypeVariant::InvokeHostFunctionSuccessPreImage, TypeVariant::TransactionMeta, TypeVariant::TransactionResultMeta, @@ -46457,20 +46918,15 @@ impl TypeVariant { TypeVariant::SignedTimeSlicedSurveyStopCollectingMessage, TypeVariant::SurveyRequestMessage, TypeVariant::TimeSlicedSurveyRequestMessage, - TypeVariant::SignedSurveyRequestMessage, TypeVariant::SignedTimeSlicedSurveyRequestMessage, TypeVariant::EncryptedBody, TypeVariant::SurveyResponseMessage, TypeVariant::TimeSlicedSurveyResponseMessage, - TypeVariant::SignedSurveyResponseMessage, TypeVariant::SignedTimeSlicedSurveyResponseMessage, TypeVariant::PeerStats, - TypeVariant::PeerStatList, TypeVariant::TimeSlicedNodeData, TypeVariant::TimeSlicedPeerData, TypeVariant::TimeSlicedPeerDataList, - TypeVariant::TopologyResponseBodyV0, - TypeVariant::TopologyResponseBodyV1, TypeVariant::TopologyResponseBodyV2, TypeVariant::SurveyResponseBody, TypeVariant::TxAdvertVector, @@ -46542,6 +46998,13 @@ impl TypeVariant { TypeVariant::PreconditionType, TypeVariant::Preconditions, TypeVariant::LedgerFootprint, + TypeVariant::ArchivalProofType, + TypeVariant::ArchivalProofNode, + TypeVariant::ProofLevel, + TypeVariant::NonexistenceProofBody, + TypeVariant::ExistenceProofBody, + TypeVariant::ArchivalProof, + TypeVariant::ArchivalProofBody, TypeVariant::SorobanResources, TypeVariant::SorobanTransactionData, TypeVariant::TransactionV0, @@ -46658,8 +47121,11 @@ impl TypeVariant { TypeVariant::ShortHashSeed, TypeVariant::BinaryFuseFilterType, TypeVariant::SerializedBinaryFuseFilter, + TypeVariant::PoolId, + TypeVariant::ClaimableBalanceIdType, + TypeVariant::ClaimableBalanceId, ]; - pub const VARIANTS_STR: [&'static str; 452] = [ + pub const VARIANTS_STR: [&'static str; 458] = [ "Value", "ScpBallot", "ScpStatementType", @@ -46725,6 +47191,7 @@ impl TypeVariant { "ContractExecutableType", "ContractExecutable", "ScAddressType", + "MuxedEd25519Account", "ScAddress", "ScVec", "ScMap", @@ -46745,7 +47212,6 @@ impl TypeVariant { "String64", "SequenceNumber", "DataValue", - "PoolId", "AssetCode4", "AssetCode12", "AssetType", @@ -46786,8 +47252,6 @@ impl TypeVariant { "ClaimantType", "Claimant", "ClaimantV0", - "ClaimableBalanceIdType", - "ClaimableBalanceId", "ClaimableBalanceFlags", "ClaimableBalanceEntryExtensionV1", "ClaimableBalanceEntryExtensionV1Ext", @@ -46882,6 +47346,9 @@ impl TypeVariant { "SorobanTransactionMetaExt", "SorobanTransactionMeta", "TransactionMetaV3", + "OperationMetaV2", + "SorobanTransactionMetaV2", + "TransactionMetaV4", "InvokeHostFunctionSuccessPreImage", "TransactionMeta", "TransactionResultMeta", @@ -46911,20 +47378,15 @@ impl TypeVariant { "SignedTimeSlicedSurveyStopCollectingMessage", "SurveyRequestMessage", "TimeSlicedSurveyRequestMessage", - "SignedSurveyRequestMessage", "SignedTimeSlicedSurveyRequestMessage", "EncryptedBody", "SurveyResponseMessage", "TimeSlicedSurveyResponseMessage", - "SignedSurveyResponseMessage", "SignedTimeSlicedSurveyResponseMessage", "PeerStats", - "PeerStatList", "TimeSlicedNodeData", "TimeSlicedPeerData", "TimeSlicedPeerDataList", - "TopologyResponseBodyV0", - "TopologyResponseBodyV1", "TopologyResponseBodyV2", "SurveyResponseBody", "TxAdvertVector", @@ -46996,6 +47458,13 @@ impl TypeVariant { "PreconditionType", "Preconditions", "LedgerFootprint", + "ArchivalProofType", + "ArchivalProofNode", + "ProofLevel", + "NonexistenceProofBody", + "ExistenceProofBody", + "ArchivalProof", + "ArchivalProofBody", "SorobanResources", "SorobanTransactionData", "TransactionV0", @@ -47112,6 +47581,9 @@ impl TypeVariant { "ShortHashSeed", "BinaryFuseFilterType", "SerializedBinaryFuseFilter", + "PoolId", + "ClaimableBalanceIdType", + "ClaimableBalanceId", ]; #[must_use] @@ -47183,6 +47655,7 @@ impl TypeVariant { Self::ContractExecutableType => "ContractExecutableType", Self::ContractExecutable => "ContractExecutable", Self::ScAddressType => "ScAddressType", + Self::MuxedEd25519Account => "MuxedEd25519Account", Self::ScAddress => "ScAddress", Self::ScVec => "ScVec", Self::ScMap => "ScMap", @@ -47203,7 +47676,6 @@ impl TypeVariant { Self::String64 => "String64", Self::SequenceNumber => "SequenceNumber", Self::DataValue => "DataValue", - Self::PoolId => "PoolId", Self::AssetCode4 => "AssetCode4", Self::AssetCode12 => "AssetCode12", Self::AssetType => "AssetType", @@ -47244,8 +47716,6 @@ impl TypeVariant { Self::ClaimantType => "ClaimantType", Self::Claimant => "Claimant", Self::ClaimantV0 => "ClaimantV0", - Self::ClaimableBalanceIdType => "ClaimableBalanceIdType", - Self::ClaimableBalanceId => "ClaimableBalanceId", Self::ClaimableBalanceFlags => "ClaimableBalanceFlags", Self::ClaimableBalanceEntryExtensionV1 => "ClaimableBalanceEntryExtensionV1", Self::ClaimableBalanceEntryExtensionV1Ext => "ClaimableBalanceEntryExtensionV1Ext", @@ -47342,6 +47812,9 @@ impl TypeVariant { Self::SorobanTransactionMetaExt => "SorobanTransactionMetaExt", Self::SorobanTransactionMeta => "SorobanTransactionMeta", Self::TransactionMetaV3 => "TransactionMetaV3", + Self::OperationMetaV2 => "OperationMetaV2", + Self::SorobanTransactionMetaV2 => "SorobanTransactionMetaV2", + Self::TransactionMetaV4 => "TransactionMetaV4", Self::InvokeHostFunctionSuccessPreImage => "InvokeHostFunctionSuccessPreImage", Self::TransactionMeta => "TransactionMeta", Self::TransactionResultMeta => "TransactionResultMeta", @@ -47377,20 +47850,15 @@ impl TypeVariant { } Self::SurveyRequestMessage => "SurveyRequestMessage", Self::TimeSlicedSurveyRequestMessage => "TimeSlicedSurveyRequestMessage", - Self::SignedSurveyRequestMessage => "SignedSurveyRequestMessage", Self::SignedTimeSlicedSurveyRequestMessage => "SignedTimeSlicedSurveyRequestMessage", Self::EncryptedBody => "EncryptedBody", Self::SurveyResponseMessage => "SurveyResponseMessage", Self::TimeSlicedSurveyResponseMessage => "TimeSlicedSurveyResponseMessage", - Self::SignedSurveyResponseMessage => "SignedSurveyResponseMessage", Self::SignedTimeSlicedSurveyResponseMessage => "SignedTimeSlicedSurveyResponseMessage", Self::PeerStats => "PeerStats", - Self::PeerStatList => "PeerStatList", Self::TimeSlicedNodeData => "TimeSlicedNodeData", Self::TimeSlicedPeerData => "TimeSlicedPeerData", Self::TimeSlicedPeerDataList => "TimeSlicedPeerDataList", - Self::TopologyResponseBodyV0 => "TopologyResponseBodyV0", - Self::TopologyResponseBodyV1 => "TopologyResponseBodyV1", Self::TopologyResponseBodyV2 => "TopologyResponseBodyV2", Self::SurveyResponseBody => "SurveyResponseBody", Self::TxAdvertVector => "TxAdvertVector", @@ -47462,6 +47930,13 @@ impl TypeVariant { Self::PreconditionType => "PreconditionType", Self::Preconditions => "Preconditions", Self::LedgerFootprint => "LedgerFootprint", + Self::ArchivalProofType => "ArchivalProofType", + Self::ArchivalProofNode => "ArchivalProofNode", + Self::ProofLevel => "ProofLevel", + Self::NonexistenceProofBody => "NonexistenceProofBody", + Self::ExistenceProofBody => "ExistenceProofBody", + Self::ArchivalProof => "ArchivalProof", + Self::ArchivalProofBody => "ArchivalProofBody", Self::SorobanResources => "SorobanResources", Self::SorobanTransactionData => "SorobanTransactionData", Self::TransactionV0 => "TransactionV0", @@ -47582,12 +48057,15 @@ impl TypeVariant { Self::ShortHashSeed => "ShortHashSeed", Self::BinaryFuseFilterType => "BinaryFuseFilterType", Self::SerializedBinaryFuseFilter => "SerializedBinaryFuseFilter", + Self::PoolId => "PoolId", + Self::ClaimableBalanceIdType => "ClaimableBalanceIdType", + Self::ClaimableBalanceId => "ClaimableBalanceId", } } #[must_use] #[allow(clippy::too_many_lines)] - pub const fn variants() -> [TypeVariant; 452] { + pub const fn variants() -> [TypeVariant; 458] { Self::VARIANTS } @@ -47683,6 +48161,7 @@ impl TypeVariant { Self::ContractExecutableType => gen.into_root_schema_for::(), Self::ContractExecutable => gen.into_root_schema_for::(), Self::ScAddressType => gen.into_root_schema_for::(), + Self::MuxedEd25519Account => gen.into_root_schema_for::(), Self::ScAddress => gen.into_root_schema_for::(), Self::ScVec => gen.into_root_schema_for::(), Self::ScMap => gen.into_root_schema_for::(), @@ -47705,7 +48184,6 @@ impl TypeVariant { Self::String64 => gen.into_root_schema_for::(), Self::SequenceNumber => gen.into_root_schema_for::(), Self::DataValue => gen.into_root_schema_for::(), - Self::PoolId => gen.into_root_schema_for::(), Self::AssetCode4 => gen.into_root_schema_for::(), Self::AssetCode12 => gen.into_root_schema_for::(), Self::AssetType => gen.into_root_schema_for::(), @@ -47754,8 +48232,6 @@ impl TypeVariant { Self::ClaimantType => gen.into_root_schema_for::(), Self::Claimant => gen.into_root_schema_for::(), Self::ClaimantV0 => gen.into_root_schema_for::(), - Self::ClaimableBalanceIdType => gen.into_root_schema_for::(), - Self::ClaimableBalanceId => gen.into_root_schema_for::(), Self::ClaimableBalanceFlags => gen.into_root_schema_for::(), Self::ClaimableBalanceEntryExtensionV1 => { gen.into_root_schema_for::() @@ -47890,6 +48366,11 @@ impl TypeVariant { } Self::SorobanTransactionMeta => gen.into_root_schema_for::(), Self::TransactionMetaV3 => gen.into_root_schema_for::(), + Self::OperationMetaV2 => gen.into_root_schema_for::(), + Self::SorobanTransactionMetaV2 => { + gen.into_root_schema_for::() + } + Self::TransactionMetaV4 => gen.into_root_schema_for::(), Self::InvokeHostFunctionSuccessPreImage => { gen.into_root_schema_for::() } @@ -47935,9 +48416,6 @@ impl TypeVariant { Self::TimeSlicedSurveyRequestMessage => { gen.into_root_schema_for::() } - Self::SignedSurveyRequestMessage => { - gen.into_root_schema_for::() - } Self::SignedTimeSlicedSurveyRequestMessage => { gen.into_root_schema_for::() } @@ -47946,19 +48424,13 @@ impl TypeVariant { Self::TimeSlicedSurveyResponseMessage => { gen.into_root_schema_for::() } - Self::SignedSurveyResponseMessage => { - gen.into_root_schema_for::() - } Self::SignedTimeSlicedSurveyResponseMessage => { gen.into_root_schema_for::() } Self::PeerStats => gen.into_root_schema_for::(), - Self::PeerStatList => gen.into_root_schema_for::(), Self::TimeSlicedNodeData => gen.into_root_schema_for::(), Self::TimeSlicedPeerData => gen.into_root_schema_for::(), Self::TimeSlicedPeerDataList => gen.into_root_schema_for::(), - Self::TopologyResponseBodyV0 => gen.into_root_schema_for::(), - Self::TopologyResponseBodyV1 => gen.into_root_schema_for::(), Self::TopologyResponseBodyV2 => gen.into_root_schema_for::(), Self::SurveyResponseBody => gen.into_root_schema_for::(), Self::TxAdvertVector => gen.into_root_schema_for::(), @@ -48060,6 +48532,13 @@ impl TypeVariant { Self::PreconditionType => gen.into_root_schema_for::(), Self::Preconditions => gen.into_root_schema_for::(), Self::LedgerFootprint => gen.into_root_schema_for::(), + Self::ArchivalProofType => gen.into_root_schema_for::(), + Self::ArchivalProofNode => gen.into_root_schema_for::(), + Self::ProofLevel => gen.into_root_schema_for::(), + Self::NonexistenceProofBody => gen.into_root_schema_for::(), + Self::ExistenceProofBody => gen.into_root_schema_for::(), + Self::ArchivalProof => gen.into_root_schema_for::(), + Self::ArchivalProofBody => gen.into_root_schema_for::(), Self::SorobanResources => gen.into_root_schema_for::(), Self::SorobanTransactionData => gen.into_root_schema_for::(), Self::TransactionV0 => gen.into_root_schema_for::(), @@ -48256,6 +48735,9 @@ impl TypeVariant { Self::SerializedBinaryFuseFilter => { gen.into_root_schema_for::() } + Self::PoolId => gen.into_root_schema_for::(), + Self::ClaimableBalanceIdType => gen.into_root_schema_for::(), + Self::ClaimableBalanceId => gen.into_root_schema_for::(), } } } @@ -48347,6 +48829,7 @@ impl core::str::FromStr for TypeVariant { "ContractExecutableType" => Ok(Self::ContractExecutableType), "ContractExecutable" => Ok(Self::ContractExecutable), "ScAddressType" => Ok(Self::ScAddressType), + "MuxedEd25519Account" => Ok(Self::MuxedEd25519Account), "ScAddress" => Ok(Self::ScAddress), "ScVec" => Ok(Self::ScVec), "ScMap" => Ok(Self::ScMap), @@ -48367,7 +48850,6 @@ impl core::str::FromStr for TypeVariant { "String64" => Ok(Self::String64), "SequenceNumber" => Ok(Self::SequenceNumber), "DataValue" => Ok(Self::DataValue), - "PoolId" => Ok(Self::PoolId), "AssetCode4" => Ok(Self::AssetCode4), "AssetCode12" => Ok(Self::AssetCode12), "AssetType" => Ok(Self::AssetType), @@ -48408,8 +48890,6 @@ impl core::str::FromStr for TypeVariant { "ClaimantType" => Ok(Self::ClaimantType), "Claimant" => Ok(Self::Claimant), "ClaimantV0" => Ok(Self::ClaimantV0), - "ClaimableBalanceIdType" => Ok(Self::ClaimableBalanceIdType), - "ClaimableBalanceId" => Ok(Self::ClaimableBalanceId), "ClaimableBalanceFlags" => Ok(Self::ClaimableBalanceFlags), "ClaimableBalanceEntryExtensionV1" => Ok(Self::ClaimableBalanceEntryExtensionV1), "ClaimableBalanceEntryExtensionV1Ext" => Ok(Self::ClaimableBalanceEntryExtensionV1Ext), @@ -48506,6 +48986,9 @@ impl core::str::FromStr for TypeVariant { "SorobanTransactionMetaExt" => Ok(Self::SorobanTransactionMetaExt), "SorobanTransactionMeta" => Ok(Self::SorobanTransactionMeta), "TransactionMetaV3" => Ok(Self::TransactionMetaV3), + "OperationMetaV2" => Ok(Self::OperationMetaV2), + "SorobanTransactionMetaV2" => Ok(Self::SorobanTransactionMetaV2), + "TransactionMetaV4" => Ok(Self::TransactionMetaV4), "InvokeHostFunctionSuccessPreImage" => Ok(Self::InvokeHostFunctionSuccessPreImage), "TransactionMeta" => Ok(Self::TransactionMeta), "TransactionResultMeta" => Ok(Self::TransactionResultMeta), @@ -48543,24 +49026,19 @@ impl core::str::FromStr for TypeVariant { } "SurveyRequestMessage" => Ok(Self::SurveyRequestMessage), "TimeSlicedSurveyRequestMessage" => Ok(Self::TimeSlicedSurveyRequestMessage), - "SignedSurveyRequestMessage" => Ok(Self::SignedSurveyRequestMessage), "SignedTimeSlicedSurveyRequestMessage" => { Ok(Self::SignedTimeSlicedSurveyRequestMessage) } "EncryptedBody" => Ok(Self::EncryptedBody), "SurveyResponseMessage" => Ok(Self::SurveyResponseMessage), "TimeSlicedSurveyResponseMessage" => Ok(Self::TimeSlicedSurveyResponseMessage), - "SignedSurveyResponseMessage" => Ok(Self::SignedSurveyResponseMessage), "SignedTimeSlicedSurveyResponseMessage" => { Ok(Self::SignedTimeSlicedSurveyResponseMessage) } "PeerStats" => Ok(Self::PeerStats), - "PeerStatList" => Ok(Self::PeerStatList), "TimeSlicedNodeData" => Ok(Self::TimeSlicedNodeData), "TimeSlicedPeerData" => Ok(Self::TimeSlicedPeerData), "TimeSlicedPeerDataList" => Ok(Self::TimeSlicedPeerDataList), - "TopologyResponseBodyV0" => Ok(Self::TopologyResponseBodyV0), - "TopologyResponseBodyV1" => Ok(Self::TopologyResponseBodyV1), "TopologyResponseBodyV2" => Ok(Self::TopologyResponseBodyV2), "SurveyResponseBody" => Ok(Self::SurveyResponseBody), "TxAdvertVector" => Ok(Self::TxAdvertVector), @@ -48632,6 +49110,13 @@ impl core::str::FromStr for TypeVariant { "PreconditionType" => Ok(Self::PreconditionType), "Preconditions" => Ok(Self::Preconditions), "LedgerFootprint" => Ok(Self::LedgerFootprint), + "ArchivalProofType" => Ok(Self::ArchivalProofType), + "ArchivalProofNode" => Ok(Self::ArchivalProofNode), + "ProofLevel" => Ok(Self::ProofLevel), + "NonexistenceProofBody" => Ok(Self::NonexistenceProofBody), + "ExistenceProofBody" => Ok(Self::ExistenceProofBody), + "ArchivalProof" => Ok(Self::ArchivalProof), + "ArchivalProofBody" => Ok(Self::ArchivalProofBody), "SorobanResources" => Ok(Self::SorobanResources), "SorobanTransactionData" => Ok(Self::SorobanTransactionData), "TransactionV0" => Ok(Self::TransactionV0), @@ -48756,6 +49241,9 @@ impl core::str::FromStr for TypeVariant { "ShortHashSeed" => Ok(Self::ShortHashSeed), "BinaryFuseFilterType" => Ok(Self::BinaryFuseFilterType), "SerializedBinaryFuseFilter" => Ok(Self::SerializedBinaryFuseFilter), + "PoolId" => Ok(Self::PoolId), + "ClaimableBalanceIdType" => Ok(Self::ClaimableBalanceIdType), + "ClaimableBalanceId" => Ok(Self::ClaimableBalanceId), _ => Err(Error::Invalid), } } @@ -48835,6 +49323,7 @@ pub enum Type { ContractExecutableType(Box), ContractExecutable(Box), ScAddressType(Box), + MuxedEd25519Account(Box), ScAddress(Box), ScVec(Box), ScMap(Box), @@ -48855,7 +49344,6 @@ pub enum Type { String64(Box), SequenceNumber(Box), DataValue(Box), - PoolId(Box), AssetCode4(Box), AssetCode12(Box), AssetType(Box), @@ -48896,8 +49384,6 @@ pub enum Type { ClaimantType(Box), Claimant(Box), ClaimantV0(Box), - ClaimableBalanceIdType(Box), - ClaimableBalanceId(Box), ClaimableBalanceFlags(Box), ClaimableBalanceEntryExtensionV1(Box), ClaimableBalanceEntryExtensionV1Ext(Box), @@ -48992,6 +49478,9 @@ pub enum Type { SorobanTransactionMetaExt(Box), SorobanTransactionMeta(Box), TransactionMetaV3(Box), + OperationMetaV2(Box), + SorobanTransactionMetaV2(Box), + TransactionMetaV4(Box), InvokeHostFunctionSuccessPreImage(Box), TransactionMeta(Box), TransactionResultMeta(Box), @@ -49021,20 +49510,15 @@ pub enum Type { SignedTimeSlicedSurveyStopCollectingMessage(Box), SurveyRequestMessage(Box), TimeSlicedSurveyRequestMessage(Box), - SignedSurveyRequestMessage(Box), SignedTimeSlicedSurveyRequestMessage(Box), EncryptedBody(Box), SurveyResponseMessage(Box), TimeSlicedSurveyResponseMessage(Box), - SignedSurveyResponseMessage(Box), SignedTimeSlicedSurveyResponseMessage(Box), PeerStats(Box), - PeerStatList(Box), TimeSlicedNodeData(Box), TimeSlicedPeerData(Box), TimeSlicedPeerDataList(Box), - TopologyResponseBodyV0(Box), - TopologyResponseBodyV1(Box), TopologyResponseBodyV2(Box), SurveyResponseBody(Box), TxAdvertVector(Box), @@ -49106,6 +49590,13 @@ pub enum Type { PreconditionType(Box), Preconditions(Box), LedgerFootprint(Box), + ArchivalProofType(Box), + ArchivalProofNode(Box), + ProofLevel(Box), + NonexistenceProofBody(Box), + ExistenceProofBody(Box), + ArchivalProof(Box), + ArchivalProofBody(Box), SorobanResources(Box), SorobanTransactionData(Box), TransactionV0(Box), @@ -49222,10 +49713,13 @@ pub enum Type { ShortHashSeed(Box), BinaryFuseFilterType(Box), SerializedBinaryFuseFilter(Box), + PoolId(Box), + ClaimableBalanceIdType(Box), + ClaimableBalanceId(Box), } impl Type { - pub const VARIANTS: [TypeVariant; 452] = [ + pub const VARIANTS: [TypeVariant; 458] = [ TypeVariant::Value, TypeVariant::ScpBallot, TypeVariant::ScpStatementType, @@ -49291,6 +49785,7 @@ impl Type { TypeVariant::ContractExecutableType, TypeVariant::ContractExecutable, TypeVariant::ScAddressType, + TypeVariant::MuxedEd25519Account, TypeVariant::ScAddress, TypeVariant::ScVec, TypeVariant::ScMap, @@ -49311,7 +49806,6 @@ impl Type { TypeVariant::String64, TypeVariant::SequenceNumber, TypeVariant::DataValue, - TypeVariant::PoolId, TypeVariant::AssetCode4, TypeVariant::AssetCode12, TypeVariant::AssetType, @@ -49352,8 +49846,6 @@ impl Type { TypeVariant::ClaimantType, TypeVariant::Claimant, TypeVariant::ClaimantV0, - TypeVariant::ClaimableBalanceIdType, - TypeVariant::ClaimableBalanceId, TypeVariant::ClaimableBalanceFlags, TypeVariant::ClaimableBalanceEntryExtensionV1, TypeVariant::ClaimableBalanceEntryExtensionV1Ext, @@ -49448,6 +49940,9 @@ impl Type { TypeVariant::SorobanTransactionMetaExt, TypeVariant::SorobanTransactionMeta, TypeVariant::TransactionMetaV3, + TypeVariant::OperationMetaV2, + TypeVariant::SorobanTransactionMetaV2, + TypeVariant::TransactionMetaV4, TypeVariant::InvokeHostFunctionSuccessPreImage, TypeVariant::TransactionMeta, TypeVariant::TransactionResultMeta, @@ -49477,20 +49972,15 @@ impl Type { TypeVariant::SignedTimeSlicedSurveyStopCollectingMessage, TypeVariant::SurveyRequestMessage, TypeVariant::TimeSlicedSurveyRequestMessage, - TypeVariant::SignedSurveyRequestMessage, TypeVariant::SignedTimeSlicedSurveyRequestMessage, TypeVariant::EncryptedBody, TypeVariant::SurveyResponseMessage, TypeVariant::TimeSlicedSurveyResponseMessage, - TypeVariant::SignedSurveyResponseMessage, TypeVariant::SignedTimeSlicedSurveyResponseMessage, TypeVariant::PeerStats, - TypeVariant::PeerStatList, TypeVariant::TimeSlicedNodeData, TypeVariant::TimeSlicedPeerData, TypeVariant::TimeSlicedPeerDataList, - TypeVariant::TopologyResponseBodyV0, - TypeVariant::TopologyResponseBodyV1, TypeVariant::TopologyResponseBodyV2, TypeVariant::SurveyResponseBody, TypeVariant::TxAdvertVector, @@ -49562,6 +50052,13 @@ impl Type { TypeVariant::PreconditionType, TypeVariant::Preconditions, TypeVariant::LedgerFootprint, + TypeVariant::ArchivalProofType, + TypeVariant::ArchivalProofNode, + TypeVariant::ProofLevel, + TypeVariant::NonexistenceProofBody, + TypeVariant::ExistenceProofBody, + TypeVariant::ArchivalProof, + TypeVariant::ArchivalProofBody, TypeVariant::SorobanResources, TypeVariant::SorobanTransactionData, TypeVariant::TransactionV0, @@ -49678,8 +50175,11 @@ impl Type { TypeVariant::ShortHashSeed, TypeVariant::BinaryFuseFilterType, TypeVariant::SerializedBinaryFuseFilter, + TypeVariant::PoolId, + TypeVariant::ClaimableBalanceIdType, + TypeVariant::ClaimableBalanceId, ]; - pub const VARIANTS_STR: [&'static str; 452] = [ + pub const VARIANTS_STR: [&'static str; 458] = [ "Value", "ScpBallot", "ScpStatementType", @@ -49745,6 +50245,7 @@ impl Type { "ContractExecutableType", "ContractExecutable", "ScAddressType", + "MuxedEd25519Account", "ScAddress", "ScVec", "ScMap", @@ -49765,7 +50266,6 @@ impl Type { "String64", "SequenceNumber", "DataValue", - "PoolId", "AssetCode4", "AssetCode12", "AssetType", @@ -49806,8 +50306,6 @@ impl Type { "ClaimantType", "Claimant", "ClaimantV0", - "ClaimableBalanceIdType", - "ClaimableBalanceId", "ClaimableBalanceFlags", "ClaimableBalanceEntryExtensionV1", "ClaimableBalanceEntryExtensionV1Ext", @@ -49902,6 +50400,9 @@ impl Type { "SorobanTransactionMetaExt", "SorobanTransactionMeta", "TransactionMetaV3", + "OperationMetaV2", + "SorobanTransactionMetaV2", + "TransactionMetaV4", "InvokeHostFunctionSuccessPreImage", "TransactionMeta", "TransactionResultMeta", @@ -49931,20 +50432,15 @@ impl Type { "SignedTimeSlicedSurveyStopCollectingMessage", "SurveyRequestMessage", "TimeSlicedSurveyRequestMessage", - "SignedSurveyRequestMessage", "SignedTimeSlicedSurveyRequestMessage", "EncryptedBody", "SurveyResponseMessage", "TimeSlicedSurveyResponseMessage", - "SignedSurveyResponseMessage", "SignedTimeSlicedSurveyResponseMessage", "PeerStats", - "PeerStatList", "TimeSlicedNodeData", "TimeSlicedPeerData", "TimeSlicedPeerDataList", - "TopologyResponseBodyV0", - "TopologyResponseBodyV1", "TopologyResponseBodyV2", "SurveyResponseBody", "TxAdvertVector", @@ -50016,6 +50512,13 @@ impl Type { "PreconditionType", "Preconditions", "LedgerFootprint", + "ArchivalProofType", + "ArchivalProofNode", + "ProofLevel", + "NonexistenceProofBody", + "ExistenceProofBody", + "ArchivalProof", + "ArchivalProofBody", "SorobanResources", "SorobanTransactionData", "TransactionV0", @@ -50132,6 +50635,9 @@ impl Type { "ShortHashSeed", "BinaryFuseFilterType", "SerializedBinaryFuseFilter", + "PoolId", + "ClaimableBalanceIdType", + "ClaimableBalanceId", ]; #[cfg(feature = "std")] @@ -50411,6 +50917,11 @@ impl Type { TypeVariant::ScAddressType => r.with_limited_depth(|r| { Ok(Self::ScAddressType(Box::new(ScAddressType::read_xdr(r)?))) }), + TypeVariant::MuxedEd25519Account => r.with_limited_depth(|r| { + Ok(Self::MuxedEd25519Account(Box::new( + MuxedEd25519Account::read_xdr(r)?, + ))) + }), TypeVariant::ScAddress => { r.with_limited_depth(|r| Ok(Self::ScAddress(Box::new(ScAddress::read_xdr(r)?)))) } @@ -50483,9 +50994,6 @@ impl Type { TypeVariant::DataValue => { r.with_limited_depth(|r| Ok(Self::DataValue(Box::new(DataValue::read_xdr(r)?)))) } - TypeVariant::PoolId => { - r.with_limited_depth(|r| Ok(Self::PoolId(Box::new(PoolId::read_xdr(r)?)))) - } TypeVariant::AssetCode4 => { r.with_limited_depth(|r| Ok(Self::AssetCode4(Box::new(AssetCode4::read_xdr(r)?)))) } @@ -50640,16 +51148,6 @@ impl Type { TypeVariant::ClaimantV0 => { r.with_limited_depth(|r| Ok(Self::ClaimantV0(Box::new(ClaimantV0::read_xdr(r)?)))) } - TypeVariant::ClaimableBalanceIdType => r.with_limited_depth(|r| { - Ok(Self::ClaimableBalanceIdType(Box::new( - ClaimableBalanceIdType::read_xdr(r)?, - ))) - }), - TypeVariant::ClaimableBalanceId => r.with_limited_depth(|r| { - Ok(Self::ClaimableBalanceId(Box::new( - ClaimableBalanceId::read_xdr(r)?, - ))) - }), TypeVariant::ClaimableBalanceFlags => r.with_limited_depth(|r| { Ok(Self::ClaimableBalanceFlags(Box::new( ClaimableBalanceFlags::read_xdr(r)?, @@ -51082,6 +51580,21 @@ impl Type { TransactionMetaV3::read_xdr(r)?, ))) }), + TypeVariant::OperationMetaV2 => r.with_limited_depth(|r| { + Ok(Self::OperationMetaV2(Box::new(OperationMetaV2::read_xdr( + r, + )?))) + }), + TypeVariant::SorobanTransactionMetaV2 => r.with_limited_depth(|r| { + Ok(Self::SorobanTransactionMetaV2(Box::new( + SorobanTransactionMetaV2::read_xdr(r)?, + ))) + }), + TypeVariant::TransactionMetaV4 => r.with_limited_depth(|r| { + Ok(Self::TransactionMetaV4(Box::new( + TransactionMetaV4::read_xdr(r)?, + ))) + }), TypeVariant::InvokeHostFunctionSuccessPreImage => r.with_limited_depth(|r| { Ok(Self::InvokeHostFunctionSuccessPreImage(Box::new( InvokeHostFunctionSuccessPreImage::read_xdr(r)?, @@ -51207,11 +51720,6 @@ impl Type { TimeSlicedSurveyRequestMessage::read_xdr(r)?, ))) }), - TypeVariant::SignedSurveyRequestMessage => r.with_limited_depth(|r| { - Ok(Self::SignedSurveyRequestMessage(Box::new( - SignedSurveyRequestMessage::read_xdr(r)?, - ))) - }), TypeVariant::SignedTimeSlicedSurveyRequestMessage => r.with_limited_depth(|r| { Ok(Self::SignedTimeSlicedSurveyRequestMessage(Box::new( SignedTimeSlicedSurveyRequestMessage::read_xdr(r)?, @@ -51230,11 +51738,6 @@ impl Type { TimeSlicedSurveyResponseMessage::read_xdr(r)?, ))) }), - TypeVariant::SignedSurveyResponseMessage => r.with_limited_depth(|r| { - Ok(Self::SignedSurveyResponseMessage(Box::new( - SignedSurveyResponseMessage::read_xdr(r)?, - ))) - }), TypeVariant::SignedTimeSlicedSurveyResponseMessage => r.with_limited_depth(|r| { Ok(Self::SignedTimeSlicedSurveyResponseMessage(Box::new( SignedTimeSlicedSurveyResponseMessage::read_xdr(r)?, @@ -51243,9 +51746,6 @@ impl Type { TypeVariant::PeerStats => { r.with_limited_depth(|r| Ok(Self::PeerStats(Box::new(PeerStats::read_xdr(r)?)))) } - TypeVariant::PeerStatList => r.with_limited_depth(|r| { - Ok(Self::PeerStatList(Box::new(PeerStatList::read_xdr(r)?))) - }), TypeVariant::TimeSlicedNodeData => r.with_limited_depth(|r| { Ok(Self::TimeSlicedNodeData(Box::new( TimeSlicedNodeData::read_xdr(r)?, @@ -51261,16 +51761,6 @@ impl Type { TimeSlicedPeerDataList::read_xdr(r)?, ))) }), - TypeVariant::TopologyResponseBodyV0 => r.with_limited_depth(|r| { - Ok(Self::TopologyResponseBodyV0(Box::new( - TopologyResponseBodyV0::read_xdr(r)?, - ))) - }), - TypeVariant::TopologyResponseBodyV1 => r.with_limited_depth(|r| { - Ok(Self::TopologyResponseBodyV1(Box::new( - TopologyResponseBodyV1::read_xdr(r)?, - ))) - }), TypeVariant::TopologyResponseBodyV2 => r.with_limited_depth(|r| { Ok(Self::TopologyResponseBodyV2(Box::new( TopologyResponseBodyV2::read_xdr(r)?, @@ -51580,6 +52070,37 @@ impl Type { r, )?))) }), + TypeVariant::ArchivalProofType => r.with_limited_depth(|r| { + Ok(Self::ArchivalProofType(Box::new( + ArchivalProofType::read_xdr(r)?, + ))) + }), + TypeVariant::ArchivalProofNode => r.with_limited_depth(|r| { + Ok(Self::ArchivalProofNode(Box::new( + ArchivalProofNode::read_xdr(r)?, + ))) + }), + TypeVariant::ProofLevel => { + r.with_limited_depth(|r| Ok(Self::ProofLevel(Box::new(ProofLevel::read_xdr(r)?)))) + } + TypeVariant::NonexistenceProofBody => r.with_limited_depth(|r| { + Ok(Self::NonexistenceProofBody(Box::new( + NonexistenceProofBody::read_xdr(r)?, + ))) + }), + TypeVariant::ExistenceProofBody => r.with_limited_depth(|r| { + Ok(Self::ExistenceProofBody(Box::new( + ExistenceProofBody::read_xdr(r)?, + ))) + }), + TypeVariant::ArchivalProof => r.with_limited_depth(|r| { + Ok(Self::ArchivalProof(Box::new(ArchivalProof::read_xdr(r)?))) + }), + TypeVariant::ArchivalProofBody => r.with_limited_depth(|r| { + Ok(Self::ArchivalProofBody(Box::new( + ArchivalProofBody::read_xdr(r)?, + ))) + }), TypeVariant::SorobanResources => r.with_limited_depth(|r| { Ok(Self::SorobanResources(Box::new( SorobanResources::read_xdr(r)?, @@ -52104,6 +52625,19 @@ impl Type { SerializedBinaryFuseFilter::read_xdr(r)?, ))) }), + TypeVariant::PoolId => { + r.with_limited_depth(|r| Ok(Self::PoolId(Box::new(PoolId::read_xdr(r)?)))) + } + TypeVariant::ClaimableBalanceIdType => r.with_limited_depth(|r| { + Ok(Self::ClaimableBalanceIdType(Box::new( + ClaimableBalanceIdType::read_xdr(r)?, + ))) + }), + TypeVariant::ClaimableBalanceId => r.with_limited_depth(|r| { + Ok(Self::ClaimableBalanceId(Box::new( + ClaimableBalanceId::read_xdr(r)?, + ))) + }), } } @@ -52427,6 +52961,10 @@ impl Type { ReadXdrIter::<_, ScAddressType>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::ScAddressType(Box::new(t)))), ), + TypeVariant::MuxedEd25519Account => Box::new( + ReadXdrIter::<_, MuxedEd25519Account>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::MuxedEd25519Account(Box::new(t)))), + ), TypeVariant::ScAddress => Box::new( ReadXdrIter::<_, ScAddress>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::ScAddress(Box::new(t)))), @@ -52507,10 +53045,6 @@ impl Type { ReadXdrIter::<_, DataValue>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::DataValue(Box::new(t)))), ), - TypeVariant::PoolId => Box::new( - ReadXdrIter::<_, PoolId>::new(&mut r.inner, r.limits.clone()) - .map(|r| r.map(|t| Self::PoolId(Box::new(t)))), - ), TypeVariant::AssetCode4 => Box::new( ReadXdrIter::<_, AssetCode4>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::AssetCode4(Box::new(t)))), @@ -52671,14 +53205,6 @@ impl Type { ReadXdrIter::<_, ClaimantV0>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::ClaimantV0(Box::new(t)))), ), - TypeVariant::ClaimableBalanceIdType => Box::new( - ReadXdrIter::<_, ClaimableBalanceIdType>::new(&mut r.inner, r.limits.clone()) - .map(|r| r.map(|t| Self::ClaimableBalanceIdType(Box::new(t)))), - ), - TypeVariant::ClaimableBalanceId => Box::new( - ReadXdrIter::<_, ClaimableBalanceId>::new(&mut r.inner, r.limits.clone()) - .map(|r| r.map(|t| Self::ClaimableBalanceId(Box::new(t)))), - ), TypeVariant::ClaimableBalanceFlags => Box::new( ReadXdrIter::<_, ClaimableBalanceFlags>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::ClaimableBalanceFlags(Box::new(t)))), @@ -53076,6 +53602,18 @@ impl Type { ReadXdrIter::<_, TransactionMetaV3>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::TransactionMetaV3(Box::new(t)))), ), + TypeVariant::OperationMetaV2 => Box::new( + ReadXdrIter::<_, OperationMetaV2>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::OperationMetaV2(Box::new(t)))), + ), + TypeVariant::SorobanTransactionMetaV2 => Box::new( + ReadXdrIter::<_, SorobanTransactionMetaV2>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::SorobanTransactionMetaV2(Box::new(t)))), + ), + TypeVariant::TransactionMetaV4 => Box::new( + ReadXdrIter::<_, TransactionMetaV4>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::TransactionMetaV4(Box::new(t)))), + ), TypeVariant::InvokeHostFunctionSuccessPreImage => Box::new( ReadXdrIter::<_, InvokeHostFunctionSuccessPreImage>::new( &mut r.inner, @@ -53212,10 +53750,6 @@ impl Type { ) .map(|r| r.map(|t| Self::TimeSlicedSurveyRequestMessage(Box::new(t)))), ), - TypeVariant::SignedSurveyRequestMessage => Box::new( - ReadXdrIter::<_, SignedSurveyRequestMessage>::new(&mut r.inner, r.limits.clone()) - .map(|r| r.map(|t| Self::SignedSurveyRequestMessage(Box::new(t)))), - ), TypeVariant::SignedTimeSlicedSurveyRequestMessage => Box::new( ReadXdrIter::<_, SignedTimeSlicedSurveyRequestMessage>::new( &mut r.inner, @@ -53238,10 +53772,6 @@ impl Type { ) .map(|r| r.map(|t| Self::TimeSlicedSurveyResponseMessage(Box::new(t)))), ), - TypeVariant::SignedSurveyResponseMessage => Box::new( - ReadXdrIter::<_, SignedSurveyResponseMessage>::new(&mut r.inner, r.limits.clone()) - .map(|r| r.map(|t| Self::SignedSurveyResponseMessage(Box::new(t)))), - ), TypeVariant::SignedTimeSlicedSurveyResponseMessage => Box::new( ReadXdrIter::<_, SignedTimeSlicedSurveyResponseMessage>::new( &mut r.inner, @@ -53253,10 +53783,6 @@ impl Type { ReadXdrIter::<_, PeerStats>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::PeerStats(Box::new(t)))), ), - TypeVariant::PeerStatList => Box::new( - ReadXdrIter::<_, PeerStatList>::new(&mut r.inner, r.limits.clone()) - .map(|r| r.map(|t| Self::PeerStatList(Box::new(t)))), - ), TypeVariant::TimeSlicedNodeData => Box::new( ReadXdrIter::<_, TimeSlicedNodeData>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::TimeSlicedNodeData(Box::new(t)))), @@ -53269,14 +53795,6 @@ impl Type { ReadXdrIter::<_, TimeSlicedPeerDataList>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::TimeSlicedPeerDataList(Box::new(t)))), ), - TypeVariant::TopologyResponseBodyV0 => Box::new( - ReadXdrIter::<_, TopologyResponseBodyV0>::new(&mut r.inner, r.limits.clone()) - .map(|r| r.map(|t| Self::TopologyResponseBodyV0(Box::new(t)))), - ), - TypeVariant::TopologyResponseBodyV1 => Box::new( - ReadXdrIter::<_, TopologyResponseBodyV1>::new(&mut r.inner, r.limits.clone()) - .map(|r| r.map(|t| Self::TopologyResponseBodyV1(Box::new(t)))), - ), TypeVariant::TopologyResponseBodyV2 => Box::new( ReadXdrIter::<_, TopologyResponseBodyV2>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::TopologyResponseBodyV2(Box::new(t)))), @@ -53573,6 +54091,34 @@ impl Type { ReadXdrIter::<_, LedgerFootprint>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::LedgerFootprint(Box::new(t)))), ), + TypeVariant::ArchivalProofType => Box::new( + ReadXdrIter::<_, ArchivalProofType>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::ArchivalProofType(Box::new(t)))), + ), + TypeVariant::ArchivalProofNode => Box::new( + ReadXdrIter::<_, ArchivalProofNode>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::ArchivalProofNode(Box::new(t)))), + ), + TypeVariant::ProofLevel => Box::new( + ReadXdrIter::<_, ProofLevel>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::ProofLevel(Box::new(t)))), + ), + TypeVariant::NonexistenceProofBody => Box::new( + ReadXdrIter::<_, NonexistenceProofBody>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::NonexistenceProofBody(Box::new(t)))), + ), + TypeVariant::ExistenceProofBody => Box::new( + ReadXdrIter::<_, ExistenceProofBody>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::ExistenceProofBody(Box::new(t)))), + ), + TypeVariant::ArchivalProof => Box::new( + ReadXdrIter::<_, ArchivalProof>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::ArchivalProof(Box::new(t)))), + ), + TypeVariant::ArchivalProofBody => Box::new( + ReadXdrIter::<_, ArchivalProofBody>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::ArchivalProofBody(Box::new(t)))), + ), TypeVariant::SorobanResources => Box::new( ReadXdrIter::<_, SorobanResources>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::SorobanResources(Box::new(t)))), @@ -54093,6 +54639,18 @@ impl Type { ReadXdrIter::<_, SerializedBinaryFuseFilter>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::SerializedBinaryFuseFilter(Box::new(t)))), ), + TypeVariant::PoolId => Box::new( + ReadXdrIter::<_, PoolId>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::PoolId(Box::new(t)))), + ), + TypeVariant::ClaimableBalanceIdType => Box::new( + ReadXdrIter::<_, ClaimableBalanceIdType>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::ClaimableBalanceIdType(Box::new(t)))), + ), + TypeVariant::ClaimableBalanceId => Box::new( + ReadXdrIter::<_, ClaimableBalanceId>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::ClaimableBalanceId(Box::new(t)))), + ), } } @@ -54408,6 +54966,10 @@ impl Type { ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::ScAddressType(Box::new(t.0)))), ), + TypeVariant::MuxedEd25519Account => Box::new( + ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::MuxedEd25519Account(Box::new(t.0)))), + ), TypeVariant::ScAddress => Box::new( ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::ScAddress(Box::new(t.0)))), @@ -54491,10 +55053,6 @@ impl Type { ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::DataValue(Box::new(t.0)))), ), - TypeVariant::PoolId => Box::new( - ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) - .map(|r| r.map(|t| Self::PoolId(Box::new(t.0)))), - ), TypeVariant::AssetCode4 => Box::new( ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::AssetCode4(Box::new(t.0)))), @@ -54676,17 +55234,6 @@ impl Type { ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::ClaimantV0(Box::new(t.0)))), ), - TypeVariant::ClaimableBalanceIdType => Box::new( - ReadXdrIter::<_, Frame>::new( - &mut r.inner, - r.limits.clone(), - ) - .map(|r| r.map(|t| Self::ClaimableBalanceIdType(Box::new(t.0)))), - ), - TypeVariant::ClaimableBalanceId => Box::new( - ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) - .map(|r| r.map(|t| Self::ClaimableBalanceId(Box::new(t.0)))), - ), TypeVariant::ClaimableBalanceFlags => Box::new( ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::ClaimableBalanceFlags(Box::new(t.0)))), @@ -55162,6 +55709,21 @@ impl Type { ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::TransactionMetaV3(Box::new(t.0)))), ), + TypeVariant::OperationMetaV2 => Box::new( + ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::OperationMetaV2(Box::new(t.0)))), + ), + TypeVariant::SorobanTransactionMetaV2 => Box::new( + ReadXdrIter::<_, Frame>::new( + &mut r.inner, + r.limits.clone(), + ) + .map(|r| r.map(|t| Self::SorobanTransactionMetaV2(Box::new(t.0)))), + ), + TypeVariant::TransactionMetaV4 => Box::new( + ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::TransactionMetaV4(Box::new(t.0)))), + ), TypeVariant::InvokeHostFunctionSuccessPreImage => Box::new( ReadXdrIter::<_, Frame>::new( &mut r.inner, @@ -55306,13 +55868,6 @@ impl Type { ) .map(|r| r.map(|t| Self::TimeSlicedSurveyRequestMessage(Box::new(t.0)))), ), - TypeVariant::SignedSurveyRequestMessage => Box::new( - ReadXdrIter::<_, Frame>::new( - &mut r.inner, - r.limits.clone(), - ) - .map(|r| r.map(|t| Self::SignedSurveyRequestMessage(Box::new(t.0)))), - ), TypeVariant::SignedTimeSlicedSurveyRequestMessage => Box::new( ReadXdrIter::<_, Frame>::new( &mut r.inner, @@ -55335,13 +55890,6 @@ impl Type { ) .map(|r| r.map(|t| Self::TimeSlicedSurveyResponseMessage(Box::new(t.0)))), ), - TypeVariant::SignedSurveyResponseMessage => Box::new( - ReadXdrIter::<_, Frame>::new( - &mut r.inner, - r.limits.clone(), - ) - .map(|r| r.map(|t| Self::SignedSurveyResponseMessage(Box::new(t.0)))), - ), TypeVariant::SignedTimeSlicedSurveyResponseMessage => Box::new( ReadXdrIter::<_, Frame>::new( &mut r.inner, @@ -55353,10 +55901,6 @@ impl Type { ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::PeerStats(Box::new(t.0)))), ), - TypeVariant::PeerStatList => Box::new( - ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) - .map(|r| r.map(|t| Self::PeerStatList(Box::new(t.0)))), - ), TypeVariant::TimeSlicedNodeData => Box::new( ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::TimeSlicedNodeData(Box::new(t.0)))), @@ -55372,20 +55916,6 @@ impl Type { ) .map(|r| r.map(|t| Self::TimeSlicedPeerDataList(Box::new(t.0)))), ), - TypeVariant::TopologyResponseBodyV0 => Box::new( - ReadXdrIter::<_, Frame>::new( - &mut r.inner, - r.limits.clone(), - ) - .map(|r| r.map(|t| Self::TopologyResponseBodyV0(Box::new(t.0)))), - ), - TypeVariant::TopologyResponseBodyV1 => Box::new( - ReadXdrIter::<_, Frame>::new( - &mut r.inner, - r.limits.clone(), - ) - .map(|r| r.map(|t| Self::TopologyResponseBodyV1(Box::new(t.0)))), - ), TypeVariant::TopologyResponseBodyV2 => Box::new( ReadXdrIter::<_, Frame>::new( &mut r.inner, @@ -55745,6 +56275,34 @@ impl Type { ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::LedgerFootprint(Box::new(t.0)))), ), + TypeVariant::ArchivalProofType => Box::new( + ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::ArchivalProofType(Box::new(t.0)))), + ), + TypeVariant::ArchivalProofNode => Box::new( + ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::ArchivalProofNode(Box::new(t.0)))), + ), + TypeVariant::ProofLevel => Box::new( + ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::ProofLevel(Box::new(t.0)))), + ), + TypeVariant::NonexistenceProofBody => Box::new( + ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::NonexistenceProofBody(Box::new(t.0)))), + ), + TypeVariant::ExistenceProofBody => Box::new( + ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::ExistenceProofBody(Box::new(t.0)))), + ), + TypeVariant::ArchivalProof => Box::new( + ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::ArchivalProof(Box::new(t.0)))), + ), + TypeVariant::ArchivalProofBody => Box::new( + ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::ArchivalProofBody(Box::new(t.0)))), + ), TypeVariant::SorobanResources => Box::new( ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::SorobanResources(Box::new(t.0)))), @@ -56358,6 +56916,21 @@ impl Type { ) .map(|r| r.map(|t| Self::SerializedBinaryFuseFilter(Box::new(t.0)))), ), + TypeVariant::PoolId => Box::new( + ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::PoolId(Box::new(t.0)))), + ), + TypeVariant::ClaimableBalanceIdType => Box::new( + ReadXdrIter::<_, Frame>::new( + &mut r.inner, + r.limits.clone(), + ) + .map(|r| r.map(|t| Self::ClaimableBalanceIdType(Box::new(t.0)))), + ), + TypeVariant::ClaimableBalanceId => Box::new( + ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::ClaimableBalanceId(Box::new(t.0)))), + ), } } @@ -56629,6 +57202,10 @@ impl Type { ReadXdrIter::<_, ScAddressType>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::ScAddressType(Box::new(t)))), ), + TypeVariant::MuxedEd25519Account => Box::new( + ReadXdrIter::<_, MuxedEd25519Account>::new(dec, r.limits.clone()) + .map(|r| r.map(|t| Self::MuxedEd25519Account(Box::new(t)))), + ), TypeVariant::ScAddress => Box::new( ReadXdrIter::<_, ScAddress>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::ScAddress(Box::new(t)))), @@ -56709,10 +57286,6 @@ impl Type { ReadXdrIter::<_, DataValue>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::DataValue(Box::new(t)))), ), - TypeVariant::PoolId => Box::new( - ReadXdrIter::<_, PoolId>::new(dec, r.limits.clone()) - .map(|r| r.map(|t| Self::PoolId(Box::new(t)))), - ), TypeVariant::AssetCode4 => Box::new( ReadXdrIter::<_, AssetCode4>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::AssetCode4(Box::new(t)))), @@ -56873,14 +57446,6 @@ impl Type { ReadXdrIter::<_, ClaimantV0>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::ClaimantV0(Box::new(t)))), ), - TypeVariant::ClaimableBalanceIdType => Box::new( - ReadXdrIter::<_, ClaimableBalanceIdType>::new(dec, r.limits.clone()) - .map(|r| r.map(|t| Self::ClaimableBalanceIdType(Box::new(t)))), - ), - TypeVariant::ClaimableBalanceId => Box::new( - ReadXdrIter::<_, ClaimableBalanceId>::new(dec, r.limits.clone()) - .map(|r| r.map(|t| Self::ClaimableBalanceId(Box::new(t)))), - ), TypeVariant::ClaimableBalanceFlags => Box::new( ReadXdrIter::<_, ClaimableBalanceFlags>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::ClaimableBalanceFlags(Box::new(t)))), @@ -57260,6 +57825,18 @@ impl Type { ReadXdrIter::<_, TransactionMetaV3>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::TransactionMetaV3(Box::new(t)))), ), + TypeVariant::OperationMetaV2 => Box::new( + ReadXdrIter::<_, OperationMetaV2>::new(dec, r.limits.clone()) + .map(|r| r.map(|t| Self::OperationMetaV2(Box::new(t)))), + ), + TypeVariant::SorobanTransactionMetaV2 => Box::new( + ReadXdrIter::<_, SorobanTransactionMetaV2>::new(dec, r.limits.clone()) + .map(|r| r.map(|t| Self::SorobanTransactionMetaV2(Box::new(t)))), + ), + TypeVariant::TransactionMetaV4 => Box::new( + ReadXdrIter::<_, TransactionMetaV4>::new(dec, r.limits.clone()) + .map(|r| r.map(|t| Self::TransactionMetaV4(Box::new(t)))), + ), TypeVariant::InvokeHostFunctionSuccessPreImage => Box::new( ReadXdrIter::<_, InvokeHostFunctionSuccessPreImage>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::InvokeHostFunctionSuccessPreImage(Box::new(t)))), @@ -57387,10 +57964,6 @@ impl Type { ReadXdrIter::<_, TimeSlicedSurveyRequestMessage>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::TimeSlicedSurveyRequestMessage(Box::new(t)))), ), - TypeVariant::SignedSurveyRequestMessage => Box::new( - ReadXdrIter::<_, SignedSurveyRequestMessage>::new(dec, r.limits.clone()) - .map(|r| r.map(|t| Self::SignedSurveyRequestMessage(Box::new(t)))), - ), TypeVariant::SignedTimeSlicedSurveyRequestMessage => Box::new( ReadXdrIter::<_, SignedTimeSlicedSurveyRequestMessage>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::SignedTimeSlicedSurveyRequestMessage(Box::new(t)))), @@ -57407,10 +57980,6 @@ impl Type { ReadXdrIter::<_, TimeSlicedSurveyResponseMessage>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::TimeSlicedSurveyResponseMessage(Box::new(t)))), ), - TypeVariant::SignedSurveyResponseMessage => Box::new( - ReadXdrIter::<_, SignedSurveyResponseMessage>::new(dec, r.limits.clone()) - .map(|r| r.map(|t| Self::SignedSurveyResponseMessage(Box::new(t)))), - ), TypeVariant::SignedTimeSlicedSurveyResponseMessage => Box::new( ReadXdrIter::<_, SignedTimeSlicedSurveyResponseMessage>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::SignedTimeSlicedSurveyResponseMessage(Box::new(t)))), @@ -57419,10 +57988,6 @@ impl Type { ReadXdrIter::<_, PeerStats>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::PeerStats(Box::new(t)))), ), - TypeVariant::PeerStatList => Box::new( - ReadXdrIter::<_, PeerStatList>::new(dec, r.limits.clone()) - .map(|r| r.map(|t| Self::PeerStatList(Box::new(t)))), - ), TypeVariant::TimeSlicedNodeData => Box::new( ReadXdrIter::<_, TimeSlicedNodeData>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::TimeSlicedNodeData(Box::new(t)))), @@ -57435,14 +58000,6 @@ impl Type { ReadXdrIter::<_, TimeSlicedPeerDataList>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::TimeSlicedPeerDataList(Box::new(t)))), ), - TypeVariant::TopologyResponseBodyV0 => Box::new( - ReadXdrIter::<_, TopologyResponseBodyV0>::new(dec, r.limits.clone()) - .map(|r| r.map(|t| Self::TopologyResponseBodyV0(Box::new(t)))), - ), - TypeVariant::TopologyResponseBodyV1 => Box::new( - ReadXdrIter::<_, TopologyResponseBodyV1>::new(dec, r.limits.clone()) - .map(|r| r.map(|t| Self::TopologyResponseBodyV1(Box::new(t)))), - ), TypeVariant::TopologyResponseBodyV2 => Box::new( ReadXdrIter::<_, TopologyResponseBodyV2>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::TopologyResponseBodyV2(Box::new(t)))), @@ -57727,6 +58284,34 @@ impl Type { ReadXdrIter::<_, LedgerFootprint>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::LedgerFootprint(Box::new(t)))), ), + TypeVariant::ArchivalProofType => Box::new( + ReadXdrIter::<_, ArchivalProofType>::new(dec, r.limits.clone()) + .map(|r| r.map(|t| Self::ArchivalProofType(Box::new(t)))), + ), + TypeVariant::ArchivalProofNode => Box::new( + ReadXdrIter::<_, ArchivalProofNode>::new(dec, r.limits.clone()) + .map(|r| r.map(|t| Self::ArchivalProofNode(Box::new(t)))), + ), + TypeVariant::ProofLevel => Box::new( + ReadXdrIter::<_, ProofLevel>::new(dec, r.limits.clone()) + .map(|r| r.map(|t| Self::ProofLevel(Box::new(t)))), + ), + TypeVariant::NonexistenceProofBody => Box::new( + ReadXdrIter::<_, NonexistenceProofBody>::new(dec, r.limits.clone()) + .map(|r| r.map(|t| Self::NonexistenceProofBody(Box::new(t)))), + ), + TypeVariant::ExistenceProofBody => Box::new( + ReadXdrIter::<_, ExistenceProofBody>::new(dec, r.limits.clone()) + .map(|r| r.map(|t| Self::ExistenceProofBody(Box::new(t)))), + ), + TypeVariant::ArchivalProof => Box::new( + ReadXdrIter::<_, ArchivalProof>::new(dec, r.limits.clone()) + .map(|r| r.map(|t| Self::ArchivalProof(Box::new(t)))), + ), + TypeVariant::ArchivalProofBody => Box::new( + ReadXdrIter::<_, ArchivalProofBody>::new(dec, r.limits.clone()) + .map(|r| r.map(|t| Self::ArchivalProofBody(Box::new(t)))), + ), TypeVariant::SorobanResources => Box::new( ReadXdrIter::<_, SorobanResources>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::SorobanResources(Box::new(t)))), @@ -58199,6 +58784,18 @@ impl Type { ReadXdrIter::<_, SerializedBinaryFuseFilter>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::SerializedBinaryFuseFilter(Box::new(t)))), ), + TypeVariant::PoolId => Box::new( + ReadXdrIter::<_, PoolId>::new(dec, r.limits.clone()) + .map(|r| r.map(|t| Self::PoolId(Box::new(t)))), + ), + TypeVariant::ClaimableBalanceIdType => Box::new( + ReadXdrIter::<_, ClaimableBalanceIdType>::new(dec, r.limits.clone()) + .map(|r| r.map(|t| Self::ClaimableBalanceIdType(Box::new(t)))), + ), + TypeVariant::ClaimableBalanceId => Box::new( + ReadXdrIter::<_, ClaimableBalanceId>::new(dec, r.limits.clone()) + .map(|r| r.map(|t| Self::ClaimableBalanceId(Box::new(t)))), + ), } } @@ -58411,6 +59008,9 @@ impl Type { TypeVariant::ScAddressType => { Ok(Self::ScAddressType(Box::new(serde_json::from_reader(r)?))) } + TypeVariant::MuxedEd25519Account => Ok(Self::MuxedEd25519Account(Box::new( + serde_json::from_reader(r)?, + ))), TypeVariant::ScAddress => Ok(Self::ScAddress(Box::new(serde_json::from_reader(r)?))), TypeVariant::ScVec => Ok(Self::ScVec(Box::new(serde_json::from_reader(r)?))), TypeVariant::ScMap => Ok(Self::ScMap(Box::new(serde_json::from_reader(r)?))), @@ -58445,7 +59045,6 @@ impl Type { Ok(Self::SequenceNumber(Box::new(serde_json::from_reader(r)?))) } TypeVariant::DataValue => Ok(Self::DataValue(Box::new(serde_json::from_reader(r)?))), - TypeVariant::PoolId => Ok(Self::PoolId(Box::new(serde_json::from_reader(r)?))), TypeVariant::AssetCode4 => Ok(Self::AssetCode4(Box::new(serde_json::from_reader(r)?))), TypeVariant::AssetCode12 => { Ok(Self::AssetCode12(Box::new(serde_json::from_reader(r)?))) @@ -58542,12 +59141,6 @@ impl Type { } TypeVariant::Claimant => Ok(Self::Claimant(Box::new(serde_json::from_reader(r)?))), TypeVariant::ClaimantV0 => Ok(Self::ClaimantV0(Box::new(serde_json::from_reader(r)?))), - TypeVariant::ClaimableBalanceIdType => Ok(Self::ClaimableBalanceIdType(Box::new( - serde_json::from_reader(r)?, - ))), - TypeVariant::ClaimableBalanceId => Ok(Self::ClaimableBalanceId(Box::new( - serde_json::from_reader(r)?, - ))), TypeVariant::ClaimableBalanceFlags => Ok(Self::ClaimableBalanceFlags(Box::new( serde_json::from_reader(r)?, ))), @@ -58826,6 +59419,15 @@ impl Type { TypeVariant::TransactionMetaV3 => Ok(Self::TransactionMetaV3(Box::new( serde_json::from_reader(r)?, ))), + TypeVariant::OperationMetaV2 => { + Ok(Self::OperationMetaV2(Box::new(serde_json::from_reader(r)?))) + } + TypeVariant::SorobanTransactionMetaV2 => Ok(Self::SorobanTransactionMetaV2(Box::new( + serde_json::from_reader(r)?, + ))), + TypeVariant::TransactionMetaV4 => Ok(Self::TransactionMetaV4(Box::new( + serde_json::from_reader(r)?, + ))), TypeVariant::InvokeHostFunctionSuccessPreImage => Ok( Self::InvokeHostFunctionSuccessPreImage(Box::new(serde_json::from_reader(r)?)), ), @@ -58901,9 +59503,6 @@ impl Type { TypeVariant::TimeSlicedSurveyRequestMessage => Ok( Self::TimeSlicedSurveyRequestMessage(Box::new(serde_json::from_reader(r)?)), ), - TypeVariant::SignedSurveyRequestMessage => Ok(Self::SignedSurveyRequestMessage( - Box::new(serde_json::from_reader(r)?), - )), TypeVariant::SignedTimeSlicedSurveyRequestMessage => Ok( Self::SignedTimeSlicedSurveyRequestMessage(Box::new(serde_json::from_reader(r)?)), ), @@ -58916,16 +59515,10 @@ impl Type { TypeVariant::TimeSlicedSurveyResponseMessage => Ok( Self::TimeSlicedSurveyResponseMessage(Box::new(serde_json::from_reader(r)?)), ), - TypeVariant::SignedSurveyResponseMessage => Ok(Self::SignedSurveyResponseMessage( - Box::new(serde_json::from_reader(r)?), - )), TypeVariant::SignedTimeSlicedSurveyResponseMessage => Ok( Self::SignedTimeSlicedSurveyResponseMessage(Box::new(serde_json::from_reader(r)?)), ), TypeVariant::PeerStats => Ok(Self::PeerStats(Box::new(serde_json::from_reader(r)?))), - TypeVariant::PeerStatList => { - Ok(Self::PeerStatList(Box::new(serde_json::from_reader(r)?))) - } TypeVariant::TimeSlicedNodeData => Ok(Self::TimeSlicedNodeData(Box::new( serde_json::from_reader(r)?, ))), @@ -58935,12 +59528,6 @@ impl Type { TypeVariant::TimeSlicedPeerDataList => Ok(Self::TimeSlicedPeerDataList(Box::new( serde_json::from_reader(r)?, ))), - TypeVariant::TopologyResponseBodyV0 => Ok(Self::TopologyResponseBodyV0(Box::new( - serde_json::from_reader(r)?, - ))), - TypeVariant::TopologyResponseBodyV1 => Ok(Self::TopologyResponseBodyV1(Box::new( - serde_json::from_reader(r)?, - ))), TypeVariant::TopologyResponseBodyV2 => Ok(Self::TopologyResponseBodyV2(Box::new( serde_json::from_reader(r)?, ))), @@ -59142,6 +59729,25 @@ impl Type { TypeVariant::LedgerFootprint => { Ok(Self::LedgerFootprint(Box::new(serde_json::from_reader(r)?))) } + TypeVariant::ArchivalProofType => Ok(Self::ArchivalProofType(Box::new( + serde_json::from_reader(r)?, + ))), + TypeVariant::ArchivalProofNode => Ok(Self::ArchivalProofNode(Box::new( + serde_json::from_reader(r)?, + ))), + TypeVariant::ProofLevel => Ok(Self::ProofLevel(Box::new(serde_json::from_reader(r)?))), + TypeVariant::NonexistenceProofBody => Ok(Self::NonexistenceProofBody(Box::new( + serde_json::from_reader(r)?, + ))), + TypeVariant::ExistenceProofBody => Ok(Self::ExistenceProofBody(Box::new( + serde_json::from_reader(r)?, + ))), + TypeVariant::ArchivalProof => { + Ok(Self::ArchivalProof(Box::new(serde_json::from_reader(r)?))) + } + TypeVariant::ArchivalProofBody => Ok(Self::ArchivalProofBody(Box::new( + serde_json::from_reader(r)?, + ))), TypeVariant::SorobanResources => Ok(Self::SorobanResources(Box::new( serde_json::from_reader(r)?, ))), @@ -59466,6 +60072,13 @@ impl Type { TypeVariant::SerializedBinaryFuseFilter => Ok(Self::SerializedBinaryFuseFilter( Box::new(serde_json::from_reader(r)?), )), + TypeVariant::PoolId => Ok(Self::PoolId(Box::new(serde_json::from_reader(r)?))), + TypeVariant::ClaimableBalanceIdType => Ok(Self::ClaimableBalanceIdType(Box::new( + serde_json::from_reader(r)?, + ))), + TypeVariant::ClaimableBalanceId => Ok(Self::ClaimableBalanceId(Box::new( + serde_json::from_reader(r)?, + ))), } } @@ -59683,6 +60296,9 @@ impl Type { TypeVariant::ScAddressType => Ok(Self::ScAddressType(Box::new( serde::de::Deserialize::deserialize(r)?, ))), + TypeVariant::MuxedEd25519Account => Ok(Self::MuxedEd25519Account(Box::new( + serde::de::Deserialize::deserialize(r)?, + ))), TypeVariant::ScAddress => Ok(Self::ScAddress(Box::new( serde::de::Deserialize::deserialize(r)?, ))), @@ -59743,9 +60359,6 @@ impl Type { TypeVariant::DataValue => Ok(Self::DataValue(Box::new( serde::de::Deserialize::deserialize(r)?, ))), - TypeVariant::PoolId => Ok(Self::PoolId(Box::new(serde::de::Deserialize::deserialize( - r, - )?))), TypeVariant::AssetCode4 => Ok(Self::AssetCode4(Box::new( serde::de::Deserialize::deserialize(r)?, ))), @@ -59866,12 +60479,6 @@ impl Type { TypeVariant::ClaimantV0 => Ok(Self::ClaimantV0(Box::new( serde::de::Deserialize::deserialize(r)?, ))), - TypeVariant::ClaimableBalanceIdType => Ok(Self::ClaimableBalanceIdType(Box::new( - serde::de::Deserialize::deserialize(r)?, - ))), - TypeVariant::ClaimableBalanceId => Ok(Self::ClaimableBalanceId(Box::new( - serde::de::Deserialize::deserialize(r)?, - ))), TypeVariant::ClaimableBalanceFlags => Ok(Self::ClaimableBalanceFlags(Box::new( serde::de::Deserialize::deserialize(r)?, ))), @@ -60166,6 +60773,15 @@ impl Type { TypeVariant::TransactionMetaV3 => Ok(Self::TransactionMetaV3(Box::new( serde::de::Deserialize::deserialize(r)?, ))), + TypeVariant::OperationMetaV2 => Ok(Self::OperationMetaV2(Box::new( + serde::de::Deserialize::deserialize(r)?, + ))), + TypeVariant::SorobanTransactionMetaV2 => Ok(Self::SorobanTransactionMetaV2(Box::new( + serde::de::Deserialize::deserialize(r)?, + ))), + TypeVariant::TransactionMetaV4 => Ok(Self::TransactionMetaV4(Box::new( + serde::de::Deserialize::deserialize(r)?, + ))), TypeVariant::InvokeHostFunctionSuccessPreImage => { Ok(Self::InvokeHostFunctionSuccessPreImage(Box::new( serde::de::Deserialize::deserialize(r)?, @@ -60265,9 +60881,6 @@ impl Type { serde::de::Deserialize::deserialize(r)?, ))) } - TypeVariant::SignedSurveyRequestMessage => Ok(Self::SignedSurveyRequestMessage( - Box::new(serde::de::Deserialize::deserialize(r)?), - )), TypeVariant::SignedTimeSlicedSurveyRequestMessage => { Ok(Self::SignedTimeSlicedSurveyRequestMessage(Box::new( serde::de::Deserialize::deserialize(r)?, @@ -60284,9 +60897,6 @@ impl Type { serde::de::Deserialize::deserialize(r)?, ))) } - TypeVariant::SignedSurveyResponseMessage => Ok(Self::SignedSurveyResponseMessage( - Box::new(serde::de::Deserialize::deserialize(r)?), - )), TypeVariant::SignedTimeSlicedSurveyResponseMessage => { Ok(Self::SignedTimeSlicedSurveyResponseMessage(Box::new( serde::de::Deserialize::deserialize(r)?, @@ -60295,9 +60905,6 @@ impl Type { TypeVariant::PeerStats => Ok(Self::PeerStats(Box::new( serde::de::Deserialize::deserialize(r)?, ))), - TypeVariant::PeerStatList => Ok(Self::PeerStatList(Box::new( - serde::de::Deserialize::deserialize(r)?, - ))), TypeVariant::TimeSlicedNodeData => Ok(Self::TimeSlicedNodeData(Box::new( serde::de::Deserialize::deserialize(r)?, ))), @@ -60307,12 +60914,6 @@ impl Type { TypeVariant::TimeSlicedPeerDataList => Ok(Self::TimeSlicedPeerDataList(Box::new( serde::de::Deserialize::deserialize(r)?, ))), - TypeVariant::TopologyResponseBodyV0 => Ok(Self::TopologyResponseBodyV0(Box::new( - serde::de::Deserialize::deserialize(r)?, - ))), - TypeVariant::TopologyResponseBodyV1 => Ok(Self::TopologyResponseBodyV1(Box::new( - serde::de::Deserialize::deserialize(r)?, - ))), TypeVariant::TopologyResponseBodyV2 => Ok(Self::TopologyResponseBodyV2(Box::new( serde::de::Deserialize::deserialize(r)?, ))), @@ -60530,6 +61131,27 @@ impl Type { TypeVariant::LedgerFootprint => Ok(Self::LedgerFootprint(Box::new( serde::de::Deserialize::deserialize(r)?, ))), + TypeVariant::ArchivalProofType => Ok(Self::ArchivalProofType(Box::new( + serde::de::Deserialize::deserialize(r)?, + ))), + TypeVariant::ArchivalProofNode => Ok(Self::ArchivalProofNode(Box::new( + serde::de::Deserialize::deserialize(r)?, + ))), + TypeVariant::ProofLevel => Ok(Self::ProofLevel(Box::new( + serde::de::Deserialize::deserialize(r)?, + ))), + TypeVariant::NonexistenceProofBody => Ok(Self::NonexistenceProofBody(Box::new( + serde::de::Deserialize::deserialize(r)?, + ))), + TypeVariant::ExistenceProofBody => Ok(Self::ExistenceProofBody(Box::new( + serde::de::Deserialize::deserialize(r)?, + ))), + TypeVariant::ArchivalProof => Ok(Self::ArchivalProof(Box::new( + serde::de::Deserialize::deserialize(r)?, + ))), + TypeVariant::ArchivalProofBody => Ok(Self::ArchivalProofBody(Box::new( + serde::de::Deserialize::deserialize(r)?, + ))), TypeVariant::SorobanResources => Ok(Self::SorobanResources(Box::new( serde::de::Deserialize::deserialize(r)?, ))), @@ -60910,6 +61532,15 @@ impl Type { TypeVariant::SerializedBinaryFuseFilter => Ok(Self::SerializedBinaryFuseFilter( Box::new(serde::de::Deserialize::deserialize(r)?), )), + TypeVariant::PoolId => Ok(Self::PoolId(Box::new(serde::de::Deserialize::deserialize( + r, + )?))), + TypeVariant::ClaimableBalanceIdType => Ok(Self::ClaimableBalanceIdType(Box::new( + serde::de::Deserialize::deserialize(r)?, + ))), + TypeVariant::ClaimableBalanceId => Ok(Self::ClaimableBalanceId(Box::new( + serde::de::Deserialize::deserialize(r)?, + ))), } } @@ -60984,6 +61615,7 @@ impl Type { Self::ContractExecutableType(ref v) => v.as_ref(), Self::ContractExecutable(ref v) => v.as_ref(), Self::ScAddressType(ref v) => v.as_ref(), + Self::MuxedEd25519Account(ref v) => v.as_ref(), Self::ScAddress(ref v) => v.as_ref(), Self::ScVec(ref v) => v.as_ref(), Self::ScMap(ref v) => v.as_ref(), @@ -61004,7 +61636,6 @@ impl Type { Self::String64(ref v) => v.as_ref(), Self::SequenceNumber(ref v) => v.as_ref(), Self::DataValue(ref v) => v.as_ref(), - Self::PoolId(ref v) => v.as_ref(), Self::AssetCode4(ref v) => v.as_ref(), Self::AssetCode12(ref v) => v.as_ref(), Self::AssetType(ref v) => v.as_ref(), @@ -61045,8 +61676,6 @@ impl Type { Self::ClaimantType(ref v) => v.as_ref(), Self::Claimant(ref v) => v.as_ref(), Self::ClaimantV0(ref v) => v.as_ref(), - Self::ClaimableBalanceIdType(ref v) => v.as_ref(), - Self::ClaimableBalanceId(ref v) => v.as_ref(), Self::ClaimableBalanceFlags(ref v) => v.as_ref(), Self::ClaimableBalanceEntryExtensionV1(ref v) => v.as_ref(), Self::ClaimableBalanceEntryExtensionV1Ext(ref v) => v.as_ref(), @@ -61141,6 +61770,9 @@ impl Type { Self::SorobanTransactionMetaExt(ref v) => v.as_ref(), Self::SorobanTransactionMeta(ref v) => v.as_ref(), Self::TransactionMetaV3(ref v) => v.as_ref(), + Self::OperationMetaV2(ref v) => v.as_ref(), + Self::SorobanTransactionMetaV2(ref v) => v.as_ref(), + Self::TransactionMetaV4(ref v) => v.as_ref(), Self::InvokeHostFunctionSuccessPreImage(ref v) => v.as_ref(), Self::TransactionMeta(ref v) => v.as_ref(), Self::TransactionResultMeta(ref v) => v.as_ref(), @@ -61170,20 +61802,15 @@ impl Type { Self::SignedTimeSlicedSurveyStopCollectingMessage(ref v) => v.as_ref(), Self::SurveyRequestMessage(ref v) => v.as_ref(), Self::TimeSlicedSurveyRequestMessage(ref v) => v.as_ref(), - Self::SignedSurveyRequestMessage(ref v) => v.as_ref(), Self::SignedTimeSlicedSurveyRequestMessage(ref v) => v.as_ref(), Self::EncryptedBody(ref v) => v.as_ref(), Self::SurveyResponseMessage(ref v) => v.as_ref(), Self::TimeSlicedSurveyResponseMessage(ref v) => v.as_ref(), - Self::SignedSurveyResponseMessage(ref v) => v.as_ref(), Self::SignedTimeSlicedSurveyResponseMessage(ref v) => v.as_ref(), Self::PeerStats(ref v) => v.as_ref(), - Self::PeerStatList(ref v) => v.as_ref(), Self::TimeSlicedNodeData(ref v) => v.as_ref(), Self::TimeSlicedPeerData(ref v) => v.as_ref(), Self::TimeSlicedPeerDataList(ref v) => v.as_ref(), - Self::TopologyResponseBodyV0(ref v) => v.as_ref(), - Self::TopologyResponseBodyV1(ref v) => v.as_ref(), Self::TopologyResponseBodyV2(ref v) => v.as_ref(), Self::SurveyResponseBody(ref v) => v.as_ref(), Self::TxAdvertVector(ref v) => v.as_ref(), @@ -61255,6 +61882,13 @@ impl Type { Self::PreconditionType(ref v) => v.as_ref(), Self::Preconditions(ref v) => v.as_ref(), Self::LedgerFootprint(ref v) => v.as_ref(), + Self::ArchivalProofType(ref v) => v.as_ref(), + Self::ArchivalProofNode(ref v) => v.as_ref(), + Self::ProofLevel(ref v) => v.as_ref(), + Self::NonexistenceProofBody(ref v) => v.as_ref(), + Self::ExistenceProofBody(ref v) => v.as_ref(), + Self::ArchivalProof(ref v) => v.as_ref(), + Self::ArchivalProofBody(ref v) => v.as_ref(), Self::SorobanResources(ref v) => v.as_ref(), Self::SorobanTransactionData(ref v) => v.as_ref(), Self::TransactionV0(ref v) => v.as_ref(), @@ -61371,6 +62005,9 @@ impl Type { Self::ShortHashSeed(ref v) => v.as_ref(), Self::BinaryFuseFilterType(ref v) => v.as_ref(), Self::SerializedBinaryFuseFilter(ref v) => v.as_ref(), + Self::PoolId(ref v) => v.as_ref(), + Self::ClaimableBalanceIdType(ref v) => v.as_ref(), + Self::ClaimableBalanceId(ref v) => v.as_ref(), } } @@ -61447,6 +62084,7 @@ impl Type { Self::ContractExecutableType(_) => "ContractExecutableType", Self::ContractExecutable(_) => "ContractExecutable", Self::ScAddressType(_) => "ScAddressType", + Self::MuxedEd25519Account(_) => "MuxedEd25519Account", Self::ScAddress(_) => "ScAddress", Self::ScVec(_) => "ScVec", Self::ScMap(_) => "ScMap", @@ -61467,7 +62105,6 @@ impl Type { Self::String64(_) => "String64", Self::SequenceNumber(_) => "SequenceNumber", Self::DataValue(_) => "DataValue", - Self::PoolId(_) => "PoolId", Self::AssetCode4(_) => "AssetCode4", Self::AssetCode12(_) => "AssetCode12", Self::AssetType(_) => "AssetType", @@ -61508,8 +62145,6 @@ impl Type { Self::ClaimantType(_) => "ClaimantType", Self::Claimant(_) => "Claimant", Self::ClaimantV0(_) => "ClaimantV0", - Self::ClaimableBalanceIdType(_) => "ClaimableBalanceIdType", - Self::ClaimableBalanceId(_) => "ClaimableBalanceId", Self::ClaimableBalanceFlags(_) => "ClaimableBalanceFlags", Self::ClaimableBalanceEntryExtensionV1(_) => "ClaimableBalanceEntryExtensionV1", Self::ClaimableBalanceEntryExtensionV1Ext(_) => "ClaimableBalanceEntryExtensionV1Ext", @@ -61606,6 +62241,9 @@ impl Type { Self::SorobanTransactionMetaExt(_) => "SorobanTransactionMetaExt", Self::SorobanTransactionMeta(_) => "SorobanTransactionMeta", Self::TransactionMetaV3(_) => "TransactionMetaV3", + Self::OperationMetaV2(_) => "OperationMetaV2", + Self::SorobanTransactionMetaV2(_) => "SorobanTransactionMetaV2", + Self::TransactionMetaV4(_) => "TransactionMetaV4", Self::InvokeHostFunctionSuccessPreImage(_) => "InvokeHostFunctionSuccessPreImage", Self::TransactionMeta(_) => "TransactionMeta", Self::TransactionResultMeta(_) => "TransactionResultMeta", @@ -61643,22 +62281,17 @@ impl Type { } Self::SurveyRequestMessage(_) => "SurveyRequestMessage", Self::TimeSlicedSurveyRequestMessage(_) => "TimeSlicedSurveyRequestMessage", - Self::SignedSurveyRequestMessage(_) => "SignedSurveyRequestMessage", Self::SignedTimeSlicedSurveyRequestMessage(_) => "SignedTimeSlicedSurveyRequestMessage", Self::EncryptedBody(_) => "EncryptedBody", Self::SurveyResponseMessage(_) => "SurveyResponseMessage", Self::TimeSlicedSurveyResponseMessage(_) => "TimeSlicedSurveyResponseMessage", - Self::SignedSurveyResponseMessage(_) => "SignedSurveyResponseMessage", Self::SignedTimeSlicedSurveyResponseMessage(_) => { "SignedTimeSlicedSurveyResponseMessage" } Self::PeerStats(_) => "PeerStats", - Self::PeerStatList(_) => "PeerStatList", Self::TimeSlicedNodeData(_) => "TimeSlicedNodeData", Self::TimeSlicedPeerData(_) => "TimeSlicedPeerData", Self::TimeSlicedPeerDataList(_) => "TimeSlicedPeerDataList", - Self::TopologyResponseBodyV0(_) => "TopologyResponseBodyV0", - Self::TopologyResponseBodyV1(_) => "TopologyResponseBodyV1", Self::TopologyResponseBodyV2(_) => "TopologyResponseBodyV2", Self::SurveyResponseBody(_) => "SurveyResponseBody", Self::TxAdvertVector(_) => "TxAdvertVector", @@ -61730,6 +62363,13 @@ impl Type { Self::PreconditionType(_) => "PreconditionType", Self::Preconditions(_) => "Preconditions", Self::LedgerFootprint(_) => "LedgerFootprint", + Self::ArchivalProofType(_) => "ArchivalProofType", + Self::ArchivalProofNode(_) => "ArchivalProofNode", + Self::ProofLevel(_) => "ProofLevel", + Self::NonexistenceProofBody(_) => "NonexistenceProofBody", + Self::ExistenceProofBody(_) => "ExistenceProofBody", + Self::ArchivalProof(_) => "ArchivalProof", + Self::ArchivalProofBody(_) => "ArchivalProofBody", Self::SorobanResources(_) => "SorobanResources", Self::SorobanTransactionData(_) => "SorobanTransactionData", Self::TransactionV0(_) => "TransactionV0", @@ -61854,12 +62494,15 @@ impl Type { Self::ShortHashSeed(_) => "ShortHashSeed", Self::BinaryFuseFilterType(_) => "BinaryFuseFilterType", Self::SerializedBinaryFuseFilter(_) => "SerializedBinaryFuseFilter", + Self::PoolId(_) => "PoolId", + Self::ClaimableBalanceIdType(_) => "ClaimableBalanceIdType", + Self::ClaimableBalanceId(_) => "ClaimableBalanceId", } } #[must_use] #[allow(clippy::too_many_lines)] - pub const fn variants() -> [TypeVariant; 452] { + pub const fn variants() -> [TypeVariant; 458] { Self::VARIANTS } @@ -61940,6 +62583,7 @@ impl Type { Self::ContractExecutableType(_) => TypeVariant::ContractExecutableType, Self::ContractExecutable(_) => TypeVariant::ContractExecutable, Self::ScAddressType(_) => TypeVariant::ScAddressType, + Self::MuxedEd25519Account(_) => TypeVariant::MuxedEd25519Account, Self::ScAddress(_) => TypeVariant::ScAddress, Self::ScVec(_) => TypeVariant::ScVec, Self::ScMap(_) => TypeVariant::ScMap, @@ -61960,7 +62604,6 @@ impl Type { Self::String64(_) => TypeVariant::String64, Self::SequenceNumber(_) => TypeVariant::SequenceNumber, Self::DataValue(_) => TypeVariant::DataValue, - Self::PoolId(_) => TypeVariant::PoolId, Self::AssetCode4(_) => TypeVariant::AssetCode4, Self::AssetCode12(_) => TypeVariant::AssetCode12, Self::AssetType(_) => TypeVariant::AssetType, @@ -62001,8 +62644,6 @@ impl Type { Self::ClaimantType(_) => TypeVariant::ClaimantType, Self::Claimant(_) => TypeVariant::Claimant, Self::ClaimantV0(_) => TypeVariant::ClaimantV0, - Self::ClaimableBalanceIdType(_) => TypeVariant::ClaimableBalanceIdType, - Self::ClaimableBalanceId(_) => TypeVariant::ClaimableBalanceId, Self::ClaimableBalanceFlags(_) => TypeVariant::ClaimableBalanceFlags, Self::ClaimableBalanceEntryExtensionV1(_) => { TypeVariant::ClaimableBalanceEntryExtensionV1 @@ -62109,6 +62750,9 @@ impl Type { Self::SorobanTransactionMetaExt(_) => TypeVariant::SorobanTransactionMetaExt, Self::SorobanTransactionMeta(_) => TypeVariant::SorobanTransactionMeta, Self::TransactionMetaV3(_) => TypeVariant::TransactionMetaV3, + Self::OperationMetaV2(_) => TypeVariant::OperationMetaV2, + Self::SorobanTransactionMetaV2(_) => TypeVariant::SorobanTransactionMetaV2, + Self::TransactionMetaV4(_) => TypeVariant::TransactionMetaV4, Self::InvokeHostFunctionSuccessPreImage(_) => { TypeVariant::InvokeHostFunctionSuccessPreImage } @@ -62148,7 +62792,6 @@ impl Type { } Self::SurveyRequestMessage(_) => TypeVariant::SurveyRequestMessage, Self::TimeSlicedSurveyRequestMessage(_) => TypeVariant::TimeSlicedSurveyRequestMessage, - Self::SignedSurveyRequestMessage(_) => TypeVariant::SignedSurveyRequestMessage, Self::SignedTimeSlicedSurveyRequestMessage(_) => { TypeVariant::SignedTimeSlicedSurveyRequestMessage } @@ -62157,17 +62800,13 @@ impl Type { Self::TimeSlicedSurveyResponseMessage(_) => { TypeVariant::TimeSlicedSurveyResponseMessage } - Self::SignedSurveyResponseMessage(_) => TypeVariant::SignedSurveyResponseMessage, Self::SignedTimeSlicedSurveyResponseMessage(_) => { TypeVariant::SignedTimeSlicedSurveyResponseMessage } Self::PeerStats(_) => TypeVariant::PeerStats, - Self::PeerStatList(_) => TypeVariant::PeerStatList, Self::TimeSlicedNodeData(_) => TypeVariant::TimeSlicedNodeData, Self::TimeSlicedPeerData(_) => TypeVariant::TimeSlicedPeerData, Self::TimeSlicedPeerDataList(_) => TypeVariant::TimeSlicedPeerDataList, - Self::TopologyResponseBodyV0(_) => TypeVariant::TopologyResponseBodyV0, - Self::TopologyResponseBodyV1(_) => TypeVariant::TopologyResponseBodyV1, Self::TopologyResponseBodyV2(_) => TypeVariant::TopologyResponseBodyV2, Self::SurveyResponseBody(_) => TypeVariant::SurveyResponseBody, Self::TxAdvertVector(_) => TypeVariant::TxAdvertVector, @@ -62243,6 +62882,13 @@ impl Type { Self::PreconditionType(_) => TypeVariant::PreconditionType, Self::Preconditions(_) => TypeVariant::Preconditions, Self::LedgerFootprint(_) => TypeVariant::LedgerFootprint, + Self::ArchivalProofType(_) => TypeVariant::ArchivalProofType, + Self::ArchivalProofNode(_) => TypeVariant::ArchivalProofNode, + Self::ProofLevel(_) => TypeVariant::ProofLevel, + Self::NonexistenceProofBody(_) => TypeVariant::NonexistenceProofBody, + Self::ExistenceProofBody(_) => TypeVariant::ExistenceProofBody, + Self::ArchivalProof(_) => TypeVariant::ArchivalProof, + Self::ArchivalProofBody(_) => TypeVariant::ArchivalProofBody, Self::SorobanResources(_) => TypeVariant::SorobanResources, Self::SorobanTransactionData(_) => TypeVariant::SorobanTransactionData, Self::TransactionV0(_) => TypeVariant::TransactionV0, @@ -62385,6 +63031,9 @@ impl Type { Self::ShortHashSeed(_) => TypeVariant::ShortHashSeed, Self::BinaryFuseFilterType(_) => TypeVariant::BinaryFuseFilterType, Self::SerializedBinaryFuseFilter(_) => TypeVariant::SerializedBinaryFuseFilter, + Self::PoolId(_) => TypeVariant::PoolId, + Self::ClaimableBalanceIdType(_) => TypeVariant::ClaimableBalanceIdType, + Self::ClaimableBalanceId(_) => TypeVariant::ClaimableBalanceId, } } } @@ -62472,6 +63121,7 @@ impl WriteXdr for Type { Self::ContractExecutableType(v) => v.write_xdr(w), Self::ContractExecutable(v) => v.write_xdr(w), Self::ScAddressType(v) => v.write_xdr(w), + Self::MuxedEd25519Account(v) => v.write_xdr(w), Self::ScAddress(v) => v.write_xdr(w), Self::ScVec(v) => v.write_xdr(w), Self::ScMap(v) => v.write_xdr(w), @@ -62492,7 +63142,6 @@ impl WriteXdr for Type { Self::String64(v) => v.write_xdr(w), Self::SequenceNumber(v) => v.write_xdr(w), Self::DataValue(v) => v.write_xdr(w), - Self::PoolId(v) => v.write_xdr(w), Self::AssetCode4(v) => v.write_xdr(w), Self::AssetCode12(v) => v.write_xdr(w), Self::AssetType(v) => v.write_xdr(w), @@ -62533,8 +63182,6 @@ impl WriteXdr for Type { Self::ClaimantType(v) => v.write_xdr(w), Self::Claimant(v) => v.write_xdr(w), Self::ClaimantV0(v) => v.write_xdr(w), - Self::ClaimableBalanceIdType(v) => v.write_xdr(w), - Self::ClaimableBalanceId(v) => v.write_xdr(w), Self::ClaimableBalanceFlags(v) => v.write_xdr(w), Self::ClaimableBalanceEntryExtensionV1(v) => v.write_xdr(w), Self::ClaimableBalanceEntryExtensionV1Ext(v) => v.write_xdr(w), @@ -62629,6 +63276,9 @@ impl WriteXdr for Type { Self::SorobanTransactionMetaExt(v) => v.write_xdr(w), Self::SorobanTransactionMeta(v) => v.write_xdr(w), Self::TransactionMetaV3(v) => v.write_xdr(w), + Self::OperationMetaV2(v) => v.write_xdr(w), + Self::SorobanTransactionMetaV2(v) => v.write_xdr(w), + Self::TransactionMetaV4(v) => v.write_xdr(w), Self::InvokeHostFunctionSuccessPreImage(v) => v.write_xdr(w), Self::TransactionMeta(v) => v.write_xdr(w), Self::TransactionResultMeta(v) => v.write_xdr(w), @@ -62658,20 +63308,15 @@ impl WriteXdr for Type { Self::SignedTimeSlicedSurveyStopCollectingMessage(v) => v.write_xdr(w), Self::SurveyRequestMessage(v) => v.write_xdr(w), Self::TimeSlicedSurveyRequestMessage(v) => v.write_xdr(w), - Self::SignedSurveyRequestMessage(v) => v.write_xdr(w), Self::SignedTimeSlicedSurveyRequestMessage(v) => v.write_xdr(w), Self::EncryptedBody(v) => v.write_xdr(w), Self::SurveyResponseMessage(v) => v.write_xdr(w), Self::TimeSlicedSurveyResponseMessage(v) => v.write_xdr(w), - Self::SignedSurveyResponseMessage(v) => v.write_xdr(w), Self::SignedTimeSlicedSurveyResponseMessage(v) => v.write_xdr(w), Self::PeerStats(v) => v.write_xdr(w), - Self::PeerStatList(v) => v.write_xdr(w), Self::TimeSlicedNodeData(v) => v.write_xdr(w), Self::TimeSlicedPeerData(v) => v.write_xdr(w), Self::TimeSlicedPeerDataList(v) => v.write_xdr(w), - Self::TopologyResponseBodyV0(v) => v.write_xdr(w), - Self::TopologyResponseBodyV1(v) => v.write_xdr(w), Self::TopologyResponseBodyV2(v) => v.write_xdr(w), Self::SurveyResponseBody(v) => v.write_xdr(w), Self::TxAdvertVector(v) => v.write_xdr(w), @@ -62743,6 +63388,13 @@ impl WriteXdr for Type { Self::PreconditionType(v) => v.write_xdr(w), Self::Preconditions(v) => v.write_xdr(w), Self::LedgerFootprint(v) => v.write_xdr(w), + Self::ArchivalProofType(v) => v.write_xdr(w), + Self::ArchivalProofNode(v) => v.write_xdr(w), + Self::ProofLevel(v) => v.write_xdr(w), + Self::NonexistenceProofBody(v) => v.write_xdr(w), + Self::ExistenceProofBody(v) => v.write_xdr(w), + Self::ArchivalProof(v) => v.write_xdr(w), + Self::ArchivalProofBody(v) => v.write_xdr(w), Self::SorobanResources(v) => v.write_xdr(w), Self::SorobanTransactionData(v) => v.write_xdr(w), Self::TransactionV0(v) => v.write_xdr(w), @@ -62859,6 +63511,9 @@ impl WriteXdr for Type { Self::ShortHashSeed(v) => v.write_xdr(w), Self::BinaryFuseFilterType(v) => v.write_xdr(w), Self::SerializedBinaryFuseFilter(v) => v.write_xdr(w), + Self::PoolId(v) => v.write_xdr(w), + Self::ClaimableBalanceIdType(v) => v.write_xdr(w), + Self::ClaimableBalanceId(v) => v.write_xdr(w), } } } diff --git a/src/curr/str.rs b/src/curr/str.rs index c8fe36cb..718f45f9 100644 --- a/src/curr/str.rs +++ b/src/curr/str.rs @@ -21,12 +21,13 @@ //# //# ## Other //# - ClaimableBalanceId +//# - PoolId #![cfg(feature = "alloc")] use super::{ AccountId, AssetCode, AssetCode12, AssetCode4, ClaimableBalanceId, Error, Hash, MuxedAccount, - MuxedAccountMed25519, NodeId, PublicKey, ScAddress, SignerKey, SignerKeyEd25519SignedPayload, - Uint256, + MuxedAccountMed25519, MuxedEd25519Account, NodeId, PoolId, PublicKey, ScAddress, SignerKey, + SignerKeyEd25519SignedPayload, Uint256, }; impl From for Error { @@ -71,6 +72,19 @@ impl core::str::FromStr for AccountId { } } +impl core::fmt::Display for PoolId { + fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { + self.0.fmt(f) + } +} + +impl core::str::FromStr for PoolId { + type Err = Error; + fn from_str(s: &str) -> core::result::Result { + Ok(PoolId(Hash::from_str(s)?)) + } +} + impl core::fmt::Display for MuxedAccountMed25519 { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { let MuxedAccountMed25519 { @@ -241,8 +255,13 @@ impl core::str::FromStr for ScAddress { stellar_strkey::Strkey::Contract(stellar_strkey::Contract(h)) => { Ok(ScAddress::Contract(Hash(h))) } - stellar_strkey::Strkey::MuxedAccountEd25519(_) - | stellar_strkey::Strkey::PrivateKeyEd25519(_) + stellar_strkey::Strkey::MuxedAccountEd25519(muxed_ed25519) => { + Ok(ScAddress::MuxedAccount(MuxedEd25519Account { + id: muxed_ed25519.id, + ed25519: Uint256(muxed_ed25519.ed25519), + })) + } + stellar_strkey::Strkey::PrivateKeyEd25519(_) | stellar_strkey::Strkey::PreAuthTx(_) | stellar_strkey::Strkey::HashX(_) | stellar_strkey::Strkey::SignedPayloadEd25519(_) => Err(Error::Invalid), @@ -253,14 +272,25 @@ impl core::str::FromStr for ScAddress { impl core::fmt::Display for ScAddress { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { match self { - ScAddress::Account(a) => a.fmt(f)?, + ScAddress::Account(a) => a.fmt(f), ScAddress::Contract(Hash(h)) => { let k = stellar_strkey::Contract(*h); let s = k.to_string(); - f.write_str(&s)?; + f.write_str(&s) + } + ScAddress::MuxedAccount(muxed_ed25519_account) => { + let k = stellar_strkey::Strkey::MuxedAccountEd25519( + stellar_strkey::ed25519::MuxedAccount { + ed25519: muxed_ed25519_account.ed25519.0.clone(), + id: muxed_ed25519_account.id, + }, + ); + let s = k.to_string(); + f.write_str(&s) } + ScAddress::ClaimableBalance(claimable_balance_id) => claimable_balance_id.fmt(f), + ScAddress::LiquidityPool(pool_id) => pool_id.fmt(f), } - Ok(()) } } diff --git a/src/next/generated.rs b/src/next/generated.rs index 24216cb4..02ce04cf 100644 --- a/src/next/generated.rs +++ b/src/next/generated.rs @@ -38,7 +38,7 @@ pub const XDR_FILES_SHA256: [(&str, &str); 12] = [ ), ( "xdr/next/Stellar-contract.x", - "7f665e4103e146a88fcdabce879aaaacd3bf9283feb194cc47ff986264c1e315", + "0511d486382c966a0006fc3e05ad1315c7a4f900421150fa4a40a331302473df", ), ( "xdr/next/Stellar-internal.x", @@ -46,15 +46,15 @@ pub const XDR_FILES_SHA256: [(&str, &str); 12] = [ ), ( "xdr/next/Stellar-ledger-entries.x", - "cac8002a0daf8d0bb547082a2a2ecf5b735f53f76870ec6c15186c789051c0a4", + "23390e4fab61886a9a76117d0fb3e48796e10a1002117088ee9a4bb5ccd98660", ), ( "xdr/next/Stellar-ledger.x", - "e7d06f732f440f07b92ad7f730e4a7a5ea1f8a5a3ee9d8ba437573d3d5351b08", + "976e066f61bb5f52d595f1f0ed261d83ea049f0787e3918a297e92a2ee75bcb0", ), ( "xdr/next/Stellar-overlay.x", - "25d52fd28c91d2377796c6c1ee05b0731f47648751e2b5a33481d64ef4eb7322", + "8c9b9c13c86fa4672f03d741705b41e7221be0fc48e1ea6eeb1ba07d31ec0723", ), ( "xdr/next/Stellar-transaction.x", @@ -62,7 +62,7 @@ pub const XDR_FILES_SHA256: [(&str, &str); 12] = [ ), ( "xdr/next/Stellar-types.x", - "afe02efc4e6767ed8909c3b4350c4045449b614ce487adcf7e9f816f309bf6f8", + "04b9ba7076e895930c6900b10adb635baefc93a68380f46ba1830deac6dace5c", ), ]; @@ -9088,7 +9088,10 @@ impl WriteXdr for ContractExecutable { /// enum SCAddressType /// { /// SC_ADDRESS_TYPE_ACCOUNT = 0, -/// SC_ADDRESS_TYPE_CONTRACT = 1 +/// SC_ADDRESS_TYPE_CONTRACT = 1, +/// SC_ADDRESS_TYPE_MUXED_ACCOUNT = 2, +/// SC_ADDRESS_TYPE_CLAIMABLE_BALANCE = 3, +/// SC_ADDRESS_TYPE_LIQUIDITY_POOL = 4 /// }; /// ``` /// @@ -9105,22 +9108,40 @@ impl WriteXdr for ContractExecutable { pub enum ScAddressType { Account = 0, Contract = 1, + MuxedAccount = 2, + ClaimableBalance = 3, + LiquidityPool = 4, } impl ScAddressType { - pub const VARIANTS: [ScAddressType; 2] = [ScAddressType::Account, ScAddressType::Contract]; - pub const VARIANTS_STR: [&'static str; 2] = ["Account", "Contract"]; + pub const VARIANTS: [ScAddressType; 5] = [ + ScAddressType::Account, + ScAddressType::Contract, + ScAddressType::MuxedAccount, + ScAddressType::ClaimableBalance, + ScAddressType::LiquidityPool, + ]; + pub const VARIANTS_STR: [&'static str; 5] = [ + "Account", + "Contract", + "MuxedAccount", + "ClaimableBalance", + "LiquidityPool", + ]; #[must_use] pub const fn name(&self) -> &'static str { match self { Self::Account => "Account", Self::Contract => "Contract", + Self::MuxedAccount => "MuxedAccount", + Self::ClaimableBalance => "ClaimableBalance", + Self::LiquidityPool => "LiquidityPool", } } #[must_use] - pub const fn variants() -> [ScAddressType; 2] { + pub const fn variants() -> [ScAddressType; 5] { Self::VARIANTS } } @@ -9153,6 +9174,9 @@ impl TryFrom for ScAddressType { let e = match i { 0 => ScAddressType::Account, 1 => ScAddressType::Contract, + 2 => ScAddressType::MuxedAccount, + 3 => ScAddressType::ClaimableBalance, + 4 => ScAddressType::LiquidityPool, #[allow(unreachable_patterns)] _ => return Err(Error::Invalid), }; @@ -9188,6 +9212,52 @@ impl WriteXdr for ScAddressType { } } +/// MuxedEd25519Account is an XDR Struct defines as: +/// +/// ```text +/// struct MuxedEd25519Account +/// { +/// uint64 id; +/// uint256 ed25519; +/// }; +/// ``` +/// +#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] +#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] +#[cfg_attr( + all(feature = "serde", feature = "alloc"), + derive(serde::Serialize, serde::Deserialize), + serde(rename_all = "snake_case") +)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] +pub struct MuxedEd25519Account { + pub id: u64, + pub ed25519: Uint256, +} + +impl ReadXdr for MuxedEd25519Account { + #[cfg(feature = "std")] + fn read_xdr(r: &mut Limited) -> Result { + r.with_limited_depth(|r| { + Ok(Self { + id: u64::read_xdr(r)?, + ed25519: Uint256::read_xdr(r)?, + }) + }) + } +} + +impl WriteXdr for MuxedEd25519Account { + #[cfg(feature = "std")] + fn write_xdr(&self, w: &mut Limited) -> Result<()> { + w.with_limited_depth(|w| { + self.id.write_xdr(w)?; + self.ed25519.write_xdr(w)?; + Ok(()) + }) + } +} + /// ScAddress is an XDR Union defines as: /// /// ```text @@ -9197,6 +9267,12 @@ impl WriteXdr for ScAddressType { /// AccountID accountId; /// case SC_ADDRESS_TYPE_CONTRACT: /// Hash contractId; +/// case SC_ADDRESS_TYPE_MUXED_ACCOUNT: +/// MuxedEd25519Account muxedAccount; +/// case SC_ADDRESS_TYPE_CLAIMABLE_BALANCE: +/// ClaimableBalanceID claimableBalanceId; +/// case SC_ADDRESS_TYPE_LIQUIDITY_POOL: +/// PoolID liquidityPoolId; /// }; /// ``` /// @@ -9211,17 +9287,35 @@ impl WriteXdr for ScAddressType { pub enum ScAddress { Account(AccountId), Contract(Hash), + MuxedAccount(MuxedEd25519Account), + ClaimableBalance(ClaimableBalanceId), + LiquidityPool(PoolId), } impl ScAddress { - pub const VARIANTS: [ScAddressType; 2] = [ScAddressType::Account, ScAddressType::Contract]; - pub const VARIANTS_STR: [&'static str; 2] = ["Account", "Contract"]; + pub const VARIANTS: [ScAddressType; 5] = [ + ScAddressType::Account, + ScAddressType::Contract, + ScAddressType::MuxedAccount, + ScAddressType::ClaimableBalance, + ScAddressType::LiquidityPool, + ]; + pub const VARIANTS_STR: [&'static str; 5] = [ + "Account", + "Contract", + "MuxedAccount", + "ClaimableBalance", + "LiquidityPool", + ]; #[must_use] pub const fn name(&self) -> &'static str { match self { Self::Account(_) => "Account", Self::Contract(_) => "Contract", + Self::MuxedAccount(_) => "MuxedAccount", + Self::ClaimableBalance(_) => "ClaimableBalance", + Self::LiquidityPool(_) => "LiquidityPool", } } @@ -9231,11 +9325,14 @@ impl ScAddress { match self { Self::Account(_) => ScAddressType::Account, Self::Contract(_) => ScAddressType::Contract, + Self::MuxedAccount(_) => ScAddressType::MuxedAccount, + Self::ClaimableBalance(_) => ScAddressType::ClaimableBalance, + Self::LiquidityPool(_) => ScAddressType::LiquidityPool, } } #[must_use] - pub const fn variants() -> [ScAddressType; 2] { + pub const fn variants() -> [ScAddressType; 5] { Self::VARIANTS } } @@ -9271,6 +9368,13 @@ impl ReadXdr for ScAddress { let v = match dv { ScAddressType::Account => Self::Account(AccountId::read_xdr(r)?), ScAddressType::Contract => Self::Contract(Hash::read_xdr(r)?), + ScAddressType::MuxedAccount => { + Self::MuxedAccount(MuxedEd25519Account::read_xdr(r)?) + } + ScAddressType::ClaimableBalance => { + Self::ClaimableBalance(ClaimableBalanceId::read_xdr(r)?) + } + ScAddressType::LiquidityPool => Self::LiquidityPool(PoolId::read_xdr(r)?), #[allow(unreachable_patterns)] _ => return Err(Error::Invalid), }; @@ -9288,6 +9392,9 @@ impl WriteXdr for ScAddress { match self { Self::Account(v) => v.write_xdr(w)?, Self::Contract(v) => v.write_xdr(w)?, + Self::MuxedAccount(v) => v.write_xdr(w)?, + Self::ClaimableBalance(v) => v.write_xdr(w)?, + Self::LiquidityPool(v) => v.write_xdr(w)?, }; Ok(()) }) @@ -11162,62 +11269,6 @@ impl AsRef<[u8]> for DataValue { } } -/// PoolId is an XDR Typedef defines as: -/// -/// ```text -/// typedef Hash PoolID; -/// ``` -/// -#[derive(Clone, Hash, PartialEq, Eq, PartialOrd, Ord)] -#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] -#[cfg_attr( - all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), - serde(rename_all = "snake_case") -)] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] -#[derive(Debug)] -pub struct PoolId(pub Hash); - -impl From for Hash { - #[must_use] - fn from(x: PoolId) -> Self { - x.0 - } -} - -impl From for PoolId { - #[must_use] - fn from(x: Hash) -> Self { - PoolId(x) - } -} - -impl AsRef for PoolId { - #[must_use] - fn as_ref(&self) -> &Hash { - &self.0 - } -} - -impl ReadXdr for PoolId { - #[cfg(feature = "std")] - fn read_xdr(r: &mut Limited) -> Result { - r.with_limited_depth(|r| { - let i = Hash::read_xdr(r)?; - let v = PoolId(i); - Ok(v) - }) - } -} - -impl WriteXdr for PoolId { - #[cfg(feature = "std")] - fn write_xdr(&self, w: &mut Limited) -> Result<()> { - w.with_limited_depth(|w| self.0.write_xdr(w)) - } -} - /// AssetCode4 is an XDR Typedef defines as: /// /// ```text @@ -14988,211 +15039,6 @@ impl WriteXdr for Claimant { } } -/// ClaimableBalanceIdType is an XDR Enum defines as: -/// -/// ```text -/// enum ClaimableBalanceIDType -/// { -/// CLAIMABLE_BALANCE_ID_TYPE_V0 = 0 -/// }; -/// ``` -/// -// enum -#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] -#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] -#[cfg_attr( - all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), - serde(rename_all = "snake_case") -)] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] -#[repr(i32)] -pub enum ClaimableBalanceIdType { - ClaimableBalanceIdTypeV0 = 0, -} - -impl ClaimableBalanceIdType { - pub const VARIANTS: [ClaimableBalanceIdType; 1] = - [ClaimableBalanceIdType::ClaimableBalanceIdTypeV0]; - pub const VARIANTS_STR: [&'static str; 1] = ["ClaimableBalanceIdTypeV0"]; - - #[must_use] - pub const fn name(&self) -> &'static str { - match self { - Self::ClaimableBalanceIdTypeV0 => "ClaimableBalanceIdTypeV0", - } - } - - #[must_use] - pub const fn variants() -> [ClaimableBalanceIdType; 1] { - Self::VARIANTS - } -} - -impl Name for ClaimableBalanceIdType { - #[must_use] - fn name(&self) -> &'static str { - Self::name(self) - } -} - -impl Variants for ClaimableBalanceIdType { - fn variants() -> slice::Iter<'static, ClaimableBalanceIdType> { - Self::VARIANTS.iter() - } -} - -impl Enum for ClaimableBalanceIdType {} - -impl fmt::Display for ClaimableBalanceIdType { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.write_str(self.name()) - } -} - -impl TryFrom for ClaimableBalanceIdType { - type Error = Error; - - fn try_from(i: i32) -> Result { - let e = match i { - 0 => ClaimableBalanceIdType::ClaimableBalanceIdTypeV0, - #[allow(unreachable_patterns)] - _ => return Err(Error::Invalid), - }; - Ok(e) - } -} - -impl From for i32 { - #[must_use] - fn from(e: ClaimableBalanceIdType) -> Self { - e as Self - } -} - -impl ReadXdr for ClaimableBalanceIdType { - #[cfg(feature = "std")] - fn read_xdr(r: &mut Limited) -> Result { - r.with_limited_depth(|r| { - let e = i32::read_xdr(r)?; - let v: Self = e.try_into()?; - Ok(v) - }) - } -} - -impl WriteXdr for ClaimableBalanceIdType { - #[cfg(feature = "std")] - fn write_xdr(&self, w: &mut Limited) -> Result<()> { - w.with_limited_depth(|w| { - let i: i32 = (*self).into(); - i.write_xdr(w) - }) - } -} - -/// ClaimableBalanceId is an XDR Union defines as: -/// -/// ```text -/// union ClaimableBalanceID switch (ClaimableBalanceIDType type) -/// { -/// case CLAIMABLE_BALANCE_ID_TYPE_V0: -/// Hash v0; -/// }; -/// ``` -/// -// union with discriminant ClaimableBalanceIdType -#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] -#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] -#[cfg_attr( - all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) -)] -#[allow(clippy::large_enum_variant)] -pub enum ClaimableBalanceId { - ClaimableBalanceIdTypeV0(Hash), -} - -impl ClaimableBalanceId { - pub const VARIANTS: [ClaimableBalanceIdType; 1] = - [ClaimableBalanceIdType::ClaimableBalanceIdTypeV0]; - pub const VARIANTS_STR: [&'static str; 1] = ["ClaimableBalanceIdTypeV0"]; - - #[must_use] - pub const fn name(&self) -> &'static str { - match self { - Self::ClaimableBalanceIdTypeV0(_) => "ClaimableBalanceIdTypeV0", - } - } - - #[must_use] - pub const fn discriminant(&self) -> ClaimableBalanceIdType { - #[allow(clippy::match_same_arms)] - match self { - Self::ClaimableBalanceIdTypeV0(_) => ClaimableBalanceIdType::ClaimableBalanceIdTypeV0, - } - } - - #[must_use] - pub const fn variants() -> [ClaimableBalanceIdType; 1] { - Self::VARIANTS - } -} - -impl Name for ClaimableBalanceId { - #[must_use] - fn name(&self) -> &'static str { - Self::name(self) - } -} - -impl Discriminant for ClaimableBalanceId { - #[must_use] - fn discriminant(&self) -> ClaimableBalanceIdType { - Self::discriminant(self) - } -} - -impl Variants for ClaimableBalanceId { - fn variants() -> slice::Iter<'static, ClaimableBalanceIdType> { - Self::VARIANTS.iter() - } -} - -impl Union for ClaimableBalanceId {} - -impl ReadXdr for ClaimableBalanceId { - #[cfg(feature = "std")] - fn read_xdr(r: &mut Limited) -> Result { - r.with_limited_depth(|r| { - let dv: ClaimableBalanceIdType = ::read_xdr(r)?; - #[allow(clippy::match_same_arms, clippy::match_wildcard_for_single_variants)] - let v = match dv { - ClaimableBalanceIdType::ClaimableBalanceIdTypeV0 => { - Self::ClaimableBalanceIdTypeV0(Hash::read_xdr(r)?) - } - #[allow(unreachable_patterns)] - _ => return Err(Error::Invalid), - }; - Ok(v) - }) - } -} - -impl WriteXdr for ClaimableBalanceId { - #[cfg(feature = "std")] - fn write_xdr(&self, w: &mut Limited) -> Result<()> { - w.with_limited_depth(|w| { - self.discriminant().write_xdr(w)?; - #[allow(clippy::match_same_arms)] - match self { - Self::ClaimableBalanceIdTypeV0(v) => v.write_xdr(w)?, - }; - Ok(()) - }) - } -} - /// ClaimableBalanceFlags is an XDR Enum defines as: /// /// ```text @@ -21980,9 +21826,9 @@ impl WriteXdr for ScpHistoryEntry { /// ```text /// enum LedgerEntryChangeType /// { -/// LEDGER_ENTRY_CREATED = 0, // entry was added to the ledger -/// LEDGER_ENTRY_UPDATED = 1, // entry was modified in the ledger -/// LEDGER_ENTRY_REMOVED = 2, // entry was removed from the ledger +/// LEDGER_ENTRY_CREATED = 0, // entry was added to the ledger +/// LEDGER_ENTRY_UPDATED = 1, // entry was modified in the ledger +/// LEDGER_ENTRY_REMOVED = 2, // entry was removed from the ledger /// LEDGER_ENTRY_STATE = 3, // value of the entry /// LEDGER_ENTRY_RESTORED = 4 // archived entry was restored in the ledger /// }; @@ -23171,6 +23017,181 @@ impl WriteXdr for TransactionMetaV3 { } } +/// OperationMetaV2 is an XDR Struct defines as: +/// +/// ```text +/// struct OperationMetaV2 +/// { +/// ExtensionPoint ext; +/// +/// LedgerEntryChanges changes; +/// +/// ContractEvent events<>; +/// DiagnosticEvent diagnosticEvents<>; +/// }; +/// ``` +/// +#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] +#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] +#[cfg_attr( + all(feature = "serde", feature = "alloc"), + derive(serde::Serialize, serde::Deserialize), + serde(rename_all = "snake_case") +)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] +pub struct OperationMetaV2 { + pub ext: ExtensionPoint, + pub changes: LedgerEntryChanges, + pub events: VecM, + pub diagnostic_events: VecM, +} + +impl ReadXdr for OperationMetaV2 { + #[cfg(feature = "std")] + fn read_xdr(r: &mut Limited) -> Result { + r.with_limited_depth(|r| { + Ok(Self { + ext: ExtensionPoint::read_xdr(r)?, + changes: LedgerEntryChanges::read_xdr(r)?, + events: VecM::::read_xdr(r)?, + diagnostic_events: VecM::::read_xdr(r)?, + }) + }) + } +} + +impl WriteXdr for OperationMetaV2 { + #[cfg(feature = "std")] + fn write_xdr(&self, w: &mut Limited) -> Result<()> { + w.with_limited_depth(|w| { + self.ext.write_xdr(w)?; + self.changes.write_xdr(w)?; + self.events.write_xdr(w)?; + self.diagnostic_events.write_xdr(w)?; + Ok(()) + }) + } +} + +/// SorobanTransactionMetaV2 is an XDR Struct defines as: +/// +/// ```text +/// struct SorobanTransactionMetaV2 +/// { +/// SorobanTransactionMetaExt ext; +/// +/// SCVal returnValue; +/// }; +/// ``` +/// +#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] +#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] +#[cfg_attr( + all(feature = "serde", feature = "alloc"), + derive(serde::Serialize, serde::Deserialize), + serde(rename_all = "snake_case") +)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] +pub struct SorobanTransactionMetaV2 { + pub ext: SorobanTransactionMetaExt, + pub return_value: ScVal, +} + +impl ReadXdr for SorobanTransactionMetaV2 { + #[cfg(feature = "std")] + fn read_xdr(r: &mut Limited) -> Result { + r.with_limited_depth(|r| { + Ok(Self { + ext: SorobanTransactionMetaExt::read_xdr(r)?, + return_value: ScVal::read_xdr(r)?, + }) + }) + } +} + +impl WriteXdr for SorobanTransactionMetaV2 { + #[cfg(feature = "std")] + fn write_xdr(&self, w: &mut Limited) -> Result<()> { + w.with_limited_depth(|w| { + self.ext.write_xdr(w)?; + self.return_value.write_xdr(w)?; + Ok(()) + }) + } +} + +/// TransactionMetaV4 is an XDR Struct defines as: +/// +/// ```text +/// struct TransactionMetaV4 +/// { +/// ExtensionPoint ext; +/// +/// LedgerEntryChanges txChangesBefore; // tx level changes before operations +/// // are applied if any +/// OperationMetaV2 operations<>; // meta for each operation +/// LedgerEntryChanges txChangesAfter; // tx level changes after operations are +/// // applied if any +/// SorobanTransactionMetaV2* sorobanMeta; // Soroban-specific meta (only for +/// // Soroban transactions). +/// +/// ContractEvent events<>; // Used for transaction-level events (like fee payment) +/// DiagnosticEvent txDiagnosticEvents<>; // Used for transaction-level diagnostic +/// // information +/// }; +/// ``` +/// +#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] +#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] +#[cfg_attr( + all(feature = "serde", feature = "alloc"), + derive(serde::Serialize, serde::Deserialize), + serde(rename_all = "snake_case") +)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] +pub struct TransactionMetaV4 { + pub ext: ExtensionPoint, + pub tx_changes_before: LedgerEntryChanges, + pub operations: VecM, + pub tx_changes_after: LedgerEntryChanges, + pub soroban_meta: Option, + pub events: VecM, + pub tx_diagnostic_events: VecM, +} + +impl ReadXdr for TransactionMetaV4 { + #[cfg(feature = "std")] + fn read_xdr(r: &mut Limited) -> Result { + r.with_limited_depth(|r| { + Ok(Self { + ext: ExtensionPoint::read_xdr(r)?, + tx_changes_before: LedgerEntryChanges::read_xdr(r)?, + operations: VecM::::read_xdr(r)?, + tx_changes_after: LedgerEntryChanges::read_xdr(r)?, + soroban_meta: Option::::read_xdr(r)?, + events: VecM::::read_xdr(r)?, + tx_diagnostic_events: VecM::::read_xdr(r)?, + }) + }) + } +} + +impl WriteXdr for TransactionMetaV4 { + #[cfg(feature = "std")] + fn write_xdr(&self, w: &mut Limited) -> Result<()> { + w.with_limited_depth(|w| { + self.ext.write_xdr(w)?; + self.tx_changes_before.write_xdr(w)?; + self.operations.write_xdr(w)?; + self.tx_changes_after.write_xdr(w)?; + self.soroban_meta.write_xdr(w)?; + self.events.write_xdr(w)?; + self.tx_diagnostic_events.write_xdr(w)?; + Ok(()) + }) + } +} + /// InvokeHostFunctionSuccessPreImage is an XDR Struct defines as: /// /// ```text @@ -23230,6 +23251,8 @@ impl WriteXdr for InvokeHostFunctionSuccessPreImage { /// TransactionMetaV2 v2; /// case 3: /// TransactionMetaV3 v3; +/// case 4: +/// TransactionMetaV4 v4; /// }; /// ``` /// @@ -23248,11 +23271,12 @@ pub enum TransactionMeta { V1(TransactionMetaV1), V2(TransactionMetaV2), V3(TransactionMetaV3), + V4(TransactionMetaV4), } impl TransactionMeta { - pub const VARIANTS: [i32; 4] = [0, 1, 2, 3]; - pub const VARIANTS_STR: [&'static str; 4] = ["V0", "V1", "V2", "V3"]; + pub const VARIANTS: [i32; 5] = [0, 1, 2, 3, 4]; + pub const VARIANTS_STR: [&'static str; 5] = ["V0", "V1", "V2", "V3", "V4"]; #[must_use] pub const fn name(&self) -> &'static str { @@ -23261,6 +23285,7 @@ impl TransactionMeta { Self::V1(_) => "V1", Self::V2(_) => "V2", Self::V3(_) => "V3", + Self::V4(_) => "V4", } } @@ -23272,11 +23297,12 @@ impl TransactionMeta { Self::V1(_) => 1, Self::V2(_) => 2, Self::V3(_) => 3, + Self::V4(_) => 4, } } #[must_use] - pub const fn variants() -> [i32; 4] { + pub const fn variants() -> [i32; 5] { Self::VARIANTS } } @@ -23314,6 +23340,7 @@ impl ReadXdr for TransactionMeta { 1 => Self::V1(TransactionMetaV1::read_xdr(r)?), 2 => Self::V2(TransactionMetaV2::read_xdr(r)?), 3 => Self::V3(TransactionMetaV3::read_xdr(r)?), + 4 => Self::V4(TransactionMetaV4::read_xdr(r)?), #[allow(unreachable_patterns)] _ => return Err(Error::Invalid), }; @@ -23333,6 +23360,7 @@ impl WriteXdr for TransactionMeta { Self::V1(v) => v.write_xdr(w)?, Self::V2(v) => v.write_xdr(w)?, Self::V3(v) => v.write_xdr(w)?, + Self::V4(v) => v.write_xdr(w)?, }; Ok(()) }) @@ -24588,8 +24616,8 @@ impl WriteXdr for PeerAddress { /// // new messages /// HELLO = 13, /// -/// SURVEY_REQUEST = 14, -/// SURVEY_RESPONSE = 15, +/// // SURVEY_REQUEST (14) removed and replaced by TIME_SLICED_SURVEY_REQUEST +/// // SURVEY_RESPONSE (15) removed and replaced by TIME_SLICED_SURVEY_RESPONSE /// /// SEND_MORE = 16, /// SEND_MORE_EXTENDED = 20, @@ -24628,8 +24656,6 @@ pub enum MessageType { ScpMessage = 11, GetScpState = 12, Hello = 13, - SurveyRequest = 14, - SurveyResponse = 15, SendMore = 16, SendMoreExtended = 20, FloodAdvert = 18, @@ -24641,7 +24667,7 @@ pub enum MessageType { } impl MessageType { - pub const VARIANTS: [MessageType; 23] = [ + pub const VARIANTS: [MessageType; 21] = [ MessageType::ErrorMsg, MessageType::Auth, MessageType::DontHave, @@ -24655,8 +24681,6 @@ impl MessageType { MessageType::ScpMessage, MessageType::GetScpState, MessageType::Hello, - MessageType::SurveyRequest, - MessageType::SurveyResponse, MessageType::SendMore, MessageType::SendMoreExtended, MessageType::FloodAdvert, @@ -24666,7 +24690,7 @@ impl MessageType { MessageType::TimeSlicedSurveyStartCollecting, MessageType::TimeSlicedSurveyStopCollecting, ]; - pub const VARIANTS_STR: [&'static str; 23] = [ + pub const VARIANTS_STR: [&'static str; 21] = [ "ErrorMsg", "Auth", "DontHave", @@ -24680,8 +24704,6 @@ impl MessageType { "ScpMessage", "GetScpState", "Hello", - "SurveyRequest", - "SurveyResponse", "SendMore", "SendMoreExtended", "FloodAdvert", @@ -24708,8 +24730,6 @@ impl MessageType { Self::ScpMessage => "ScpMessage", Self::GetScpState => "GetScpState", Self::Hello => "Hello", - Self::SurveyRequest => "SurveyRequest", - Self::SurveyResponse => "SurveyResponse", Self::SendMore => "SendMore", Self::SendMoreExtended => "SendMoreExtended", Self::FloodAdvert => "FloodAdvert", @@ -24722,7 +24742,7 @@ impl MessageType { } #[must_use] - pub const fn variants() -> [MessageType; 23] { + pub const fn variants() -> [MessageType; 21] { Self::VARIANTS } } @@ -24766,8 +24786,6 @@ impl TryFrom for MessageType { 11 => MessageType::ScpMessage, 12 => MessageType::GetScpState, 13 => MessageType::Hello, - 14 => MessageType::SurveyRequest, - 15 => MessageType::SurveyResponse, 16 => MessageType::SendMore, 20 => MessageType::SendMoreExtended, 18 => MessageType::FloodAdvert, @@ -24862,7 +24880,6 @@ impl WriteXdr for DontHave { /// ```text /// enum SurveyMessageCommandType /// { -/// SURVEY_TOPOLOGY = 0, /// TIME_SLICED_SURVEY_TOPOLOGY = 1 /// }; /// ``` @@ -24878,27 +24895,23 @@ impl WriteXdr for DontHave { #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum SurveyMessageCommandType { - SurveyTopology = 0, TimeSlicedSurveyTopology = 1, } impl SurveyMessageCommandType { - pub const VARIANTS: [SurveyMessageCommandType; 2] = [ - SurveyMessageCommandType::SurveyTopology, - SurveyMessageCommandType::TimeSlicedSurveyTopology, - ]; - pub const VARIANTS_STR: [&'static str; 2] = ["SurveyTopology", "TimeSlicedSurveyTopology"]; + pub const VARIANTS: [SurveyMessageCommandType; 1] = + [SurveyMessageCommandType::TimeSlicedSurveyTopology]; + pub const VARIANTS_STR: [&'static str; 1] = ["TimeSlicedSurveyTopology"]; #[must_use] pub const fn name(&self) -> &'static str { match self { - Self::SurveyTopology => "SurveyTopology", Self::TimeSlicedSurveyTopology => "TimeSlicedSurveyTopology", } } #[must_use] - pub const fn variants() -> [SurveyMessageCommandType; 2] { + pub const fn variants() -> [SurveyMessageCommandType; 1] { Self::VARIANTS } } @@ -24929,7 +24942,6 @@ impl TryFrom for SurveyMessageCommandType { fn try_from(i: i32) -> Result { let e = match i { - 0 => SurveyMessageCommandType::SurveyTopology, 1 => SurveyMessageCommandType::TimeSlicedSurveyTopology, #[allow(unreachable_patterns)] _ => return Err(Error::Invalid), @@ -24971,8 +24983,6 @@ impl WriteXdr for SurveyMessageCommandType { /// ```text /// enum SurveyMessageResponseType /// { -/// SURVEY_TOPOLOGY_RESPONSE_V0 = 0, -/// SURVEY_TOPOLOGY_RESPONSE_V1 = 1, /// SURVEY_TOPOLOGY_RESPONSE_V2 = 2 /// }; /// ``` @@ -24988,30 +24998,23 @@ impl WriteXdr for SurveyMessageCommandType { #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum SurveyMessageResponseType { - V0 = 0, - V1 = 1, - V2 = 2, + SurveyTopologyResponseV2 = 2, } impl SurveyMessageResponseType { - pub const VARIANTS: [SurveyMessageResponseType; 3] = [ - SurveyMessageResponseType::V0, - SurveyMessageResponseType::V1, - SurveyMessageResponseType::V2, - ]; - pub const VARIANTS_STR: [&'static str; 3] = ["V0", "V1", "V2"]; + pub const VARIANTS: [SurveyMessageResponseType; 1] = + [SurveyMessageResponseType::SurveyTopologyResponseV2]; + pub const VARIANTS_STR: [&'static str; 1] = ["SurveyTopologyResponseV2"]; #[must_use] pub const fn name(&self) -> &'static str { match self { - Self::V0 => "V0", - Self::V1 => "V1", - Self::V2 => "V2", + Self::SurveyTopologyResponseV2 => "SurveyTopologyResponseV2", } } #[must_use] - pub const fn variants() -> [SurveyMessageResponseType; 3] { + pub const fn variants() -> [SurveyMessageResponseType; 1] { Self::VARIANTS } } @@ -25042,9 +25045,7 @@ impl TryFrom for SurveyMessageResponseType { fn try_from(i: i32) -> Result { let e = match i { - 0 => SurveyMessageResponseType::V0, - 1 => SurveyMessageResponseType::V1, - 2 => SurveyMessageResponseType::V2, + 2 => SurveyMessageResponseType::SurveyTopologyResponseV2, #[allow(unreachable_patterns)] _ => return Err(Error::Invalid), }; @@ -25384,52 +25385,6 @@ impl WriteXdr for TimeSlicedSurveyRequestMessage { } } -/// SignedSurveyRequestMessage is an XDR Struct defines as: -/// -/// ```text -/// struct SignedSurveyRequestMessage -/// { -/// Signature requestSignature; -/// SurveyRequestMessage request; -/// }; -/// ``` -/// -#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] -#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] -#[cfg_attr( - all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), - serde(rename_all = "snake_case") -)] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] -pub struct SignedSurveyRequestMessage { - pub request_signature: Signature, - pub request: SurveyRequestMessage, -} - -impl ReadXdr for SignedSurveyRequestMessage { - #[cfg(feature = "std")] - fn read_xdr(r: &mut Limited) -> Result { - r.with_limited_depth(|r| { - Ok(Self { - request_signature: Signature::read_xdr(r)?, - request: SurveyRequestMessage::read_xdr(r)?, - }) - }) - } -} - -impl WriteXdr for SignedSurveyRequestMessage { - #[cfg(feature = "std")] - fn write_xdr(&self, w: &mut Limited) -> Result<()> { - w.with_limited_depth(|w| { - self.request_signature.write_xdr(w)?; - self.request.write_xdr(w)?; - Ok(()) - }) - } -} - /// SignedTimeSlicedSurveyRequestMessage is an XDR Struct defines as: /// /// ```text @@ -25686,52 +25641,6 @@ impl WriteXdr for TimeSlicedSurveyResponseMessage { } } -/// SignedSurveyResponseMessage is an XDR Struct defines as: -/// -/// ```text -/// struct SignedSurveyResponseMessage -/// { -/// Signature responseSignature; -/// SurveyResponseMessage response; -/// }; -/// ``` -/// -#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] -#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] -#[cfg_attr( - all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), - serde(rename_all = "snake_case") -)] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] -pub struct SignedSurveyResponseMessage { - pub response_signature: Signature, - pub response: SurveyResponseMessage, -} - -impl ReadXdr for SignedSurveyResponseMessage { - #[cfg(feature = "std")] - fn read_xdr(r: &mut Limited) -> Result { - r.with_limited_depth(|r| { - Ok(Self { - response_signature: Signature::read_xdr(r)?, - response: SurveyResponseMessage::read_xdr(r)?, - }) - }) - } -} - -impl WriteXdr for SignedSurveyResponseMessage { - #[cfg(feature = "std")] - fn write_xdr(&self, w: &mut Limited) -> Result<()> { - w.with_limited_depth(|w| { - self.response_signature.write_xdr(w)?; - self.response.write_xdr(w)?; - Ok(()) - }) - } -} - /// SignedTimeSlicedSurveyResponseMessage is an XDR Struct defines as: /// /// ```text @@ -25878,112 +25787,6 @@ impl WriteXdr for PeerStats { } } -/// PeerStatList is an XDR Typedef defines as: -/// -/// ```text -/// typedef PeerStats PeerStatList<25>; -/// ``` -/// -#[derive(Clone, Hash, PartialEq, Eq, PartialOrd, Ord)] -#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] -#[derive(Default)] -#[cfg_attr( - all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), - serde(rename_all = "snake_case") -)] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] -#[derive(Debug)] -pub struct PeerStatList(pub VecM); - -impl From for VecM { - #[must_use] - fn from(x: PeerStatList) -> Self { - x.0 - } -} - -impl From> for PeerStatList { - #[must_use] - fn from(x: VecM) -> Self { - PeerStatList(x) - } -} - -impl AsRef> for PeerStatList { - #[must_use] - fn as_ref(&self) -> &VecM { - &self.0 - } -} - -impl ReadXdr for PeerStatList { - #[cfg(feature = "std")] - fn read_xdr(r: &mut Limited) -> Result { - r.with_limited_depth(|r| { - let i = VecM::::read_xdr(r)?; - let v = PeerStatList(i); - Ok(v) - }) - } -} - -impl WriteXdr for PeerStatList { - #[cfg(feature = "std")] - fn write_xdr(&self, w: &mut Limited) -> Result<()> { - w.with_limited_depth(|w| self.0.write_xdr(w)) - } -} - -impl Deref for PeerStatList { - type Target = VecM; - fn deref(&self) -> &Self::Target { - &self.0 - } -} - -impl From for Vec { - #[must_use] - fn from(x: PeerStatList) -> Self { - x.0 .0 - } -} - -impl TryFrom> for PeerStatList { - type Error = Error; - fn try_from(x: Vec) -> Result { - Ok(PeerStatList(x.try_into()?)) - } -} - -#[cfg(feature = "alloc")] -impl TryFrom<&Vec> for PeerStatList { - type Error = Error; - fn try_from(x: &Vec) -> Result { - Ok(PeerStatList(x.try_into()?)) - } -} - -impl AsRef> for PeerStatList { - #[must_use] - fn as_ref(&self) -> &Vec { - &self.0 .0 - } -} - -impl AsRef<[PeerStats]> for PeerStatList { - #[cfg(feature = "alloc")] - #[must_use] - fn as_ref(&self) -> &[PeerStats] { - &self.0 .0 - } - #[cfg(not(feature = "alloc"))] - #[must_use] - fn as_ref(&self) -> &[PeerStats] { - self.0 .0 - } -} - /// TimeSlicedNodeData is an XDR Struct defines as: /// /// ```text @@ -26220,125 +26023,6 @@ impl AsRef<[TimeSlicedPeerData]> for TimeSlicedPeerDataList { } } -/// TopologyResponseBodyV0 is an XDR Struct defines as: -/// -/// ```text -/// struct TopologyResponseBodyV0 -/// { -/// PeerStatList inboundPeers; -/// PeerStatList outboundPeers; -/// -/// uint32 totalInboundPeerCount; -/// uint32 totalOutboundPeerCount; -/// }; -/// ``` -/// -#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] -#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] -#[cfg_attr( - all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), - serde(rename_all = "snake_case") -)] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] -pub struct TopologyResponseBodyV0 { - pub inbound_peers: PeerStatList, - pub outbound_peers: PeerStatList, - pub total_inbound_peer_count: u32, - pub total_outbound_peer_count: u32, -} - -impl ReadXdr for TopologyResponseBodyV0 { - #[cfg(feature = "std")] - fn read_xdr(r: &mut Limited) -> Result { - r.with_limited_depth(|r| { - Ok(Self { - inbound_peers: PeerStatList::read_xdr(r)?, - outbound_peers: PeerStatList::read_xdr(r)?, - total_inbound_peer_count: u32::read_xdr(r)?, - total_outbound_peer_count: u32::read_xdr(r)?, - }) - }) - } -} - -impl WriteXdr for TopologyResponseBodyV0 { - #[cfg(feature = "std")] - fn write_xdr(&self, w: &mut Limited) -> Result<()> { - w.with_limited_depth(|w| { - self.inbound_peers.write_xdr(w)?; - self.outbound_peers.write_xdr(w)?; - self.total_inbound_peer_count.write_xdr(w)?; - self.total_outbound_peer_count.write_xdr(w)?; - Ok(()) - }) - } -} - -/// TopologyResponseBodyV1 is an XDR Struct defines as: -/// -/// ```text -/// struct TopologyResponseBodyV1 -/// { -/// PeerStatList inboundPeers; -/// PeerStatList outboundPeers; -/// -/// uint32 totalInboundPeerCount; -/// uint32 totalOutboundPeerCount; -/// -/// uint32 maxInboundPeerCount; -/// uint32 maxOutboundPeerCount; -/// }; -/// ``` -/// -#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] -#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] -#[cfg_attr( - all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), - serde(rename_all = "snake_case") -)] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] -pub struct TopologyResponseBodyV1 { - pub inbound_peers: PeerStatList, - pub outbound_peers: PeerStatList, - pub total_inbound_peer_count: u32, - pub total_outbound_peer_count: u32, - pub max_inbound_peer_count: u32, - pub max_outbound_peer_count: u32, -} - -impl ReadXdr for TopologyResponseBodyV1 { - #[cfg(feature = "std")] - fn read_xdr(r: &mut Limited) -> Result { - r.with_limited_depth(|r| { - Ok(Self { - inbound_peers: PeerStatList::read_xdr(r)?, - outbound_peers: PeerStatList::read_xdr(r)?, - total_inbound_peer_count: u32::read_xdr(r)?, - total_outbound_peer_count: u32::read_xdr(r)?, - max_inbound_peer_count: u32::read_xdr(r)?, - max_outbound_peer_count: u32::read_xdr(r)?, - }) - }) - } -} - -impl WriteXdr for TopologyResponseBodyV1 { - #[cfg(feature = "std")] - fn write_xdr(&self, w: &mut Limited) -> Result<()> { - w.with_limited_depth(|w| { - self.inbound_peers.write_xdr(w)?; - self.outbound_peers.write_xdr(w)?; - self.total_inbound_peer_count.write_xdr(w)?; - self.total_outbound_peer_count.write_xdr(w)?; - self.max_inbound_peer_count.write_xdr(w)?; - self.max_outbound_peer_count.write_xdr(w)?; - Ok(()) - }) - } -} - /// TopologyResponseBodyV2 is an XDR Struct defines as: /// /// ```text @@ -26394,10 +26078,6 @@ impl WriteXdr for TopologyResponseBodyV2 { /// ```text /// union SurveyResponseBody switch (SurveyMessageResponseType type) /// { -/// case SURVEY_TOPOLOGY_RESPONSE_V0: -/// TopologyResponseBodyV0 topologyResponseBodyV0; -/// case SURVEY_TOPOLOGY_RESPONSE_V1: -/// TopologyResponseBodyV1 topologyResponseBodyV1; /// case SURVEY_TOPOLOGY_RESPONSE_V2: /// TopologyResponseBodyV2 topologyResponseBodyV2; /// }; @@ -26414,25 +26094,18 @@ impl WriteXdr for TopologyResponseBodyV2 { #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum SurveyResponseBody { - V0(TopologyResponseBodyV0), - V1(TopologyResponseBodyV1), - V2(TopologyResponseBodyV2), + SurveyTopologyResponseV2(TopologyResponseBodyV2), } impl SurveyResponseBody { - pub const VARIANTS: [SurveyMessageResponseType; 3] = [ - SurveyMessageResponseType::V0, - SurveyMessageResponseType::V1, - SurveyMessageResponseType::V2, - ]; - pub const VARIANTS_STR: [&'static str; 3] = ["V0", "V1", "V2"]; + pub const VARIANTS: [SurveyMessageResponseType; 1] = + [SurveyMessageResponseType::SurveyTopologyResponseV2]; + pub const VARIANTS_STR: [&'static str; 1] = ["SurveyTopologyResponseV2"]; #[must_use] pub const fn name(&self) -> &'static str { match self { - Self::V0(_) => "V0", - Self::V1(_) => "V1", - Self::V2(_) => "V2", + Self::SurveyTopologyResponseV2(_) => "SurveyTopologyResponseV2", } } @@ -26440,14 +26113,14 @@ impl SurveyResponseBody { pub const fn discriminant(&self) -> SurveyMessageResponseType { #[allow(clippy::match_same_arms)] match self { - Self::V0(_) => SurveyMessageResponseType::V0, - Self::V1(_) => SurveyMessageResponseType::V1, - Self::V2(_) => SurveyMessageResponseType::V2, + Self::SurveyTopologyResponseV2(_) => { + SurveyMessageResponseType::SurveyTopologyResponseV2 + } } } #[must_use] - pub const fn variants() -> [SurveyMessageResponseType; 3] { + pub const fn variants() -> [SurveyMessageResponseType; 1] { Self::VARIANTS } } @@ -26482,9 +26155,9 @@ impl ReadXdr for SurveyResponseBody { ::read_xdr(r)?; #[allow(clippy::match_same_arms, clippy::match_wildcard_for_single_variants)] let v = match dv { - SurveyMessageResponseType::V0 => Self::V0(TopologyResponseBodyV0::read_xdr(r)?), - SurveyMessageResponseType::V1 => Self::V1(TopologyResponseBodyV1::read_xdr(r)?), - SurveyMessageResponseType::V2 => Self::V2(TopologyResponseBodyV2::read_xdr(r)?), + SurveyMessageResponseType::SurveyTopologyResponseV2 => { + Self::SurveyTopologyResponseV2(TopologyResponseBodyV2::read_xdr(r)?) + } #[allow(unreachable_patterns)] _ => return Err(Error::Invalid), }; @@ -26500,9 +26173,7 @@ impl WriteXdr for SurveyResponseBody { self.discriminant().write_xdr(w)?; #[allow(clippy::match_same_arms)] match self { - Self::V0(v) => v.write_xdr(w)?, - Self::V1(v) => v.write_xdr(w)?, - Self::V2(v) => v.write_xdr(w)?, + Self::SurveyTopologyResponseV2(v) => v.write_xdr(w)?, }; Ok(()) }) @@ -26847,12 +26518,6 @@ impl WriteXdr for FloodDemand { /// case TRANSACTION: /// TransactionEnvelope transaction; /// -/// case SURVEY_REQUEST: -/// SignedSurveyRequestMessage signedSurveyRequestMessage; -/// -/// case SURVEY_RESPONSE: -/// SignedSurveyResponseMessage signedSurveyResponseMessage; -/// /// case TIME_SLICED_SURVEY_REQUEST: /// SignedTimeSlicedSurveyRequestMessage signedTimeSlicedSurveyRequestMessage; /// @@ -26908,8 +26573,6 @@ pub enum StellarMessage { TxSet(TransactionSet), GeneralizedTxSet(GeneralizedTransactionSet), Transaction(TransactionEnvelope), - SurveyRequest(SignedSurveyRequestMessage), - SurveyResponse(SignedSurveyResponseMessage), TimeSlicedSurveyRequest(SignedTimeSlicedSurveyRequestMessage), TimeSlicedSurveyResponse(SignedTimeSlicedSurveyResponseMessage), TimeSlicedSurveyStartCollecting(SignedTimeSlicedSurveyStartCollectingMessage), @@ -26925,7 +26588,7 @@ pub enum StellarMessage { } impl StellarMessage { - pub const VARIANTS: [MessageType; 23] = [ + pub const VARIANTS: [MessageType; 21] = [ MessageType::ErrorMsg, MessageType::Hello, MessageType::Auth, @@ -26935,8 +26598,6 @@ impl StellarMessage { MessageType::TxSet, MessageType::GeneralizedTxSet, MessageType::Transaction, - MessageType::SurveyRequest, - MessageType::SurveyResponse, MessageType::TimeSlicedSurveyRequest, MessageType::TimeSlicedSurveyResponse, MessageType::TimeSlicedSurveyStartCollecting, @@ -26950,7 +26611,7 @@ impl StellarMessage { MessageType::FloodAdvert, MessageType::FloodDemand, ]; - pub const VARIANTS_STR: [&'static str; 23] = [ + pub const VARIANTS_STR: [&'static str; 21] = [ "ErrorMsg", "Hello", "Auth", @@ -26960,8 +26621,6 @@ impl StellarMessage { "TxSet", "GeneralizedTxSet", "Transaction", - "SurveyRequest", - "SurveyResponse", "TimeSlicedSurveyRequest", "TimeSlicedSurveyResponse", "TimeSlicedSurveyStartCollecting", @@ -26988,8 +26647,6 @@ impl StellarMessage { Self::TxSet(_) => "TxSet", Self::GeneralizedTxSet(_) => "GeneralizedTxSet", Self::Transaction(_) => "Transaction", - Self::SurveyRequest(_) => "SurveyRequest", - Self::SurveyResponse(_) => "SurveyResponse", Self::TimeSlicedSurveyRequest(_) => "TimeSlicedSurveyRequest", Self::TimeSlicedSurveyResponse(_) => "TimeSlicedSurveyResponse", Self::TimeSlicedSurveyStartCollecting(_) => "TimeSlicedSurveyStartCollecting", @@ -27018,8 +26675,6 @@ impl StellarMessage { Self::TxSet(_) => MessageType::TxSet, Self::GeneralizedTxSet(_) => MessageType::GeneralizedTxSet, Self::Transaction(_) => MessageType::Transaction, - Self::SurveyRequest(_) => MessageType::SurveyRequest, - Self::SurveyResponse(_) => MessageType::SurveyResponse, Self::TimeSlicedSurveyRequest(_) => MessageType::TimeSlicedSurveyRequest, Self::TimeSlicedSurveyResponse(_) => MessageType::TimeSlicedSurveyResponse, Self::TimeSlicedSurveyStartCollecting(_) => { @@ -27038,7 +26693,7 @@ impl StellarMessage { } #[must_use] - pub const fn variants() -> [MessageType; 23] { + pub const fn variants() -> [MessageType; 21] { Self::VARIANTS } } @@ -27083,12 +26738,6 @@ impl ReadXdr for StellarMessage { Self::GeneralizedTxSet(GeneralizedTransactionSet::read_xdr(r)?) } MessageType::Transaction => Self::Transaction(TransactionEnvelope::read_xdr(r)?), - MessageType::SurveyRequest => { - Self::SurveyRequest(SignedSurveyRequestMessage::read_xdr(r)?) - } - MessageType::SurveyResponse => { - Self::SurveyResponse(SignedSurveyResponseMessage::read_xdr(r)?) - } MessageType::TimeSlicedSurveyRequest => Self::TimeSlicedSurveyRequest( SignedTimeSlicedSurveyRequestMessage::read_xdr(r)?, ), @@ -27139,8 +26788,6 @@ impl WriteXdr for StellarMessage { Self::TxSet(v) => v.write_xdr(w)?, Self::GeneralizedTxSet(v) => v.write_xdr(w)?, Self::Transaction(v) => v.write_xdr(w)?, - Self::SurveyRequest(v) => v.write_xdr(w)?, - Self::SurveyResponse(v) => v.write_xdr(w)?, Self::TimeSlicedSurveyRequest(v) => v.write_xdr(w)?, Self::TimeSlicedSurveyResponse(v) => v.write_xdr(w)?, Self::TimeSlicedSurveyStartCollecting(v) => v.write_xdr(w)?, @@ -46221,6 +45868,267 @@ impl WriteXdr for SerializedBinaryFuseFilter { } } +/// PoolId is an XDR Typedef defines as: +/// +/// ```text +/// typedef Hash PoolID; +/// ``` +/// +#[derive(Clone, Hash, PartialEq, Eq, PartialOrd, Ord)] +#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] +#[cfg_attr( + all(feature = "serde", feature = "alloc"), + derive(serde::Serialize, serde::Deserialize), + serde(rename_all = "snake_case") +)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] +#[derive(Debug)] +pub struct PoolId(pub Hash); + +impl From for Hash { + #[must_use] + fn from(x: PoolId) -> Self { + x.0 + } +} + +impl From for PoolId { + #[must_use] + fn from(x: Hash) -> Self { + PoolId(x) + } +} + +impl AsRef for PoolId { + #[must_use] + fn as_ref(&self) -> &Hash { + &self.0 + } +} + +impl ReadXdr for PoolId { + #[cfg(feature = "std")] + fn read_xdr(r: &mut Limited) -> Result { + r.with_limited_depth(|r| { + let i = Hash::read_xdr(r)?; + let v = PoolId(i); + Ok(v) + }) + } +} + +impl WriteXdr for PoolId { + #[cfg(feature = "std")] + fn write_xdr(&self, w: &mut Limited) -> Result<()> { + w.with_limited_depth(|w| self.0.write_xdr(w)) + } +} + +/// ClaimableBalanceIdType is an XDR Enum defines as: +/// +/// ```text +/// enum ClaimableBalanceIDType +/// { +/// CLAIMABLE_BALANCE_ID_TYPE_V0 = 0 +/// }; +/// ``` +/// +// enum +#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] +#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] +#[cfg_attr( + all(feature = "serde", feature = "alloc"), + derive(serde::Serialize, serde::Deserialize), + serde(rename_all = "snake_case") +)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] +#[repr(i32)] +pub enum ClaimableBalanceIdType { + ClaimableBalanceIdTypeV0 = 0, +} + +impl ClaimableBalanceIdType { + pub const VARIANTS: [ClaimableBalanceIdType; 1] = + [ClaimableBalanceIdType::ClaimableBalanceIdTypeV0]; + pub const VARIANTS_STR: [&'static str; 1] = ["ClaimableBalanceIdTypeV0"]; + + #[must_use] + pub const fn name(&self) -> &'static str { + match self { + Self::ClaimableBalanceIdTypeV0 => "ClaimableBalanceIdTypeV0", + } + } + + #[must_use] + pub const fn variants() -> [ClaimableBalanceIdType; 1] { + Self::VARIANTS + } +} + +impl Name for ClaimableBalanceIdType { + #[must_use] + fn name(&self) -> &'static str { + Self::name(self) + } +} + +impl Variants for ClaimableBalanceIdType { + fn variants() -> slice::Iter<'static, ClaimableBalanceIdType> { + Self::VARIANTS.iter() + } +} + +impl Enum for ClaimableBalanceIdType {} + +impl fmt::Display for ClaimableBalanceIdType { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.write_str(self.name()) + } +} + +impl TryFrom for ClaimableBalanceIdType { + type Error = Error; + + fn try_from(i: i32) -> Result { + let e = match i { + 0 => ClaimableBalanceIdType::ClaimableBalanceIdTypeV0, + #[allow(unreachable_patterns)] + _ => return Err(Error::Invalid), + }; + Ok(e) + } +} + +impl From for i32 { + #[must_use] + fn from(e: ClaimableBalanceIdType) -> Self { + e as Self + } +} + +impl ReadXdr for ClaimableBalanceIdType { + #[cfg(feature = "std")] + fn read_xdr(r: &mut Limited) -> Result { + r.with_limited_depth(|r| { + let e = i32::read_xdr(r)?; + let v: Self = e.try_into()?; + Ok(v) + }) + } +} + +impl WriteXdr for ClaimableBalanceIdType { + #[cfg(feature = "std")] + fn write_xdr(&self, w: &mut Limited) -> Result<()> { + w.with_limited_depth(|w| { + let i: i32 = (*self).into(); + i.write_xdr(w) + }) + } +} + +/// ClaimableBalanceId is an XDR Union defines as: +/// +/// ```text +/// union ClaimableBalanceID switch (ClaimableBalanceIDType type) +/// { +/// case CLAIMABLE_BALANCE_ID_TYPE_V0: +/// Hash v0; +/// }; +/// ``` +/// +// union with discriminant ClaimableBalanceIdType +#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] +#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] +#[cfg_attr( + all(feature = "serde", feature = "alloc"), + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[allow(clippy::large_enum_variant)] +pub enum ClaimableBalanceId { + ClaimableBalanceIdTypeV0(Hash), +} + +impl ClaimableBalanceId { + pub const VARIANTS: [ClaimableBalanceIdType; 1] = + [ClaimableBalanceIdType::ClaimableBalanceIdTypeV0]; + pub const VARIANTS_STR: [&'static str; 1] = ["ClaimableBalanceIdTypeV0"]; + + #[must_use] + pub const fn name(&self) -> &'static str { + match self { + Self::ClaimableBalanceIdTypeV0(_) => "ClaimableBalanceIdTypeV0", + } + } + + #[must_use] + pub const fn discriminant(&self) -> ClaimableBalanceIdType { + #[allow(clippy::match_same_arms)] + match self { + Self::ClaimableBalanceIdTypeV0(_) => ClaimableBalanceIdType::ClaimableBalanceIdTypeV0, + } + } + + #[must_use] + pub const fn variants() -> [ClaimableBalanceIdType; 1] { + Self::VARIANTS + } +} + +impl Name for ClaimableBalanceId { + #[must_use] + fn name(&self) -> &'static str { + Self::name(self) + } +} + +impl Discriminant for ClaimableBalanceId { + #[must_use] + fn discriminant(&self) -> ClaimableBalanceIdType { + Self::discriminant(self) + } +} + +impl Variants for ClaimableBalanceId { + fn variants() -> slice::Iter<'static, ClaimableBalanceIdType> { + Self::VARIANTS.iter() + } +} + +impl Union for ClaimableBalanceId {} + +impl ReadXdr for ClaimableBalanceId { + #[cfg(feature = "std")] + fn read_xdr(r: &mut Limited) -> Result { + r.with_limited_depth(|r| { + let dv: ClaimableBalanceIdType = ::read_xdr(r)?; + #[allow(clippy::match_same_arms, clippy::match_wildcard_for_single_variants)] + let v = match dv { + ClaimableBalanceIdType::ClaimableBalanceIdTypeV0 => { + Self::ClaimableBalanceIdTypeV0(Hash::read_xdr(r)?) + } + #[allow(unreachable_patterns)] + _ => return Err(Error::Invalid), + }; + Ok(v) + }) + } +} + +impl WriteXdr for ClaimableBalanceId { + #[cfg(feature = "std")] + fn write_xdr(&self, w: &mut Limited) -> Result<()> { + w.with_limited_depth(|w| { + self.discriminant().write_xdr(w)?; + #[allow(clippy::match_same_arms)] + match self { + Self::ClaimableBalanceIdTypeV0(v) => v.write_xdr(w)?, + }; + Ok(()) + }) + } +} + #[derive(Clone, Copy, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( all(feature = "serde", feature = "alloc"), @@ -46296,6 +46204,7 @@ pub enum TypeVariant { ContractExecutableType, ContractExecutable, ScAddressType, + MuxedEd25519Account, ScAddress, ScVec, ScMap, @@ -46316,7 +46225,6 @@ pub enum TypeVariant { String64, SequenceNumber, DataValue, - PoolId, AssetCode4, AssetCode12, AssetType, @@ -46357,8 +46265,6 @@ pub enum TypeVariant { ClaimantType, Claimant, ClaimantV0, - ClaimableBalanceIdType, - ClaimableBalanceId, ClaimableBalanceFlags, ClaimableBalanceEntryExtensionV1, ClaimableBalanceEntryExtensionV1Ext, @@ -46455,6 +46361,9 @@ pub enum TypeVariant { SorobanTransactionMetaExt, SorobanTransactionMeta, TransactionMetaV3, + OperationMetaV2, + SorobanTransactionMetaV2, + TransactionMetaV4, InvokeHostFunctionSuccessPreImage, TransactionMeta, TransactionResultMeta, @@ -46484,20 +46393,15 @@ pub enum TypeVariant { SignedTimeSlicedSurveyStopCollectingMessage, SurveyRequestMessage, TimeSlicedSurveyRequestMessage, - SignedSurveyRequestMessage, SignedTimeSlicedSurveyRequestMessage, EncryptedBody, SurveyResponseMessage, TimeSlicedSurveyResponseMessage, - SignedSurveyResponseMessage, SignedTimeSlicedSurveyResponseMessage, PeerStats, - PeerStatList, TimeSlicedNodeData, TimeSlicedPeerData, TimeSlicedPeerDataList, - TopologyResponseBodyV0, - TopologyResponseBodyV1, TopologyResponseBodyV2, SurveyResponseBody, TxAdvertVector, @@ -46687,10 +46591,13 @@ pub enum TypeVariant { ShortHashSeed, BinaryFuseFilterType, SerializedBinaryFuseFilter, + PoolId, + ClaimableBalanceIdType, + ClaimableBalanceId, } impl TypeVariant { - pub const VARIANTS: [TypeVariant; 458] = [ + pub const VARIANTS: [TypeVariant; 457] = [ TypeVariant::Value, TypeVariant::ScpBallot, TypeVariant::ScpStatementType, @@ -46758,6 +46665,7 @@ impl TypeVariant { TypeVariant::ContractExecutableType, TypeVariant::ContractExecutable, TypeVariant::ScAddressType, + TypeVariant::MuxedEd25519Account, TypeVariant::ScAddress, TypeVariant::ScVec, TypeVariant::ScMap, @@ -46778,7 +46686,6 @@ impl TypeVariant { TypeVariant::String64, TypeVariant::SequenceNumber, TypeVariant::DataValue, - TypeVariant::PoolId, TypeVariant::AssetCode4, TypeVariant::AssetCode12, TypeVariant::AssetType, @@ -46819,8 +46726,6 @@ impl TypeVariant { TypeVariant::ClaimantType, TypeVariant::Claimant, TypeVariant::ClaimantV0, - TypeVariant::ClaimableBalanceIdType, - TypeVariant::ClaimableBalanceId, TypeVariant::ClaimableBalanceFlags, TypeVariant::ClaimableBalanceEntryExtensionV1, TypeVariant::ClaimableBalanceEntryExtensionV1Ext, @@ -46917,6 +46822,9 @@ impl TypeVariant { TypeVariant::SorobanTransactionMetaExt, TypeVariant::SorobanTransactionMeta, TypeVariant::TransactionMetaV3, + TypeVariant::OperationMetaV2, + TypeVariant::SorobanTransactionMetaV2, + TypeVariant::TransactionMetaV4, TypeVariant::InvokeHostFunctionSuccessPreImage, TypeVariant::TransactionMeta, TypeVariant::TransactionResultMeta, @@ -46946,20 +46854,15 @@ impl TypeVariant { TypeVariant::SignedTimeSlicedSurveyStopCollectingMessage, TypeVariant::SurveyRequestMessage, TypeVariant::TimeSlicedSurveyRequestMessage, - TypeVariant::SignedSurveyRequestMessage, TypeVariant::SignedTimeSlicedSurveyRequestMessage, TypeVariant::EncryptedBody, TypeVariant::SurveyResponseMessage, TypeVariant::TimeSlicedSurveyResponseMessage, - TypeVariant::SignedSurveyResponseMessage, TypeVariant::SignedTimeSlicedSurveyResponseMessage, TypeVariant::PeerStats, - TypeVariant::PeerStatList, TypeVariant::TimeSlicedNodeData, TypeVariant::TimeSlicedPeerData, TypeVariant::TimeSlicedPeerDataList, - TypeVariant::TopologyResponseBodyV0, - TypeVariant::TopologyResponseBodyV1, TypeVariant::TopologyResponseBodyV2, TypeVariant::SurveyResponseBody, TypeVariant::TxAdvertVector, @@ -47149,8 +47052,11 @@ impl TypeVariant { TypeVariant::ShortHashSeed, TypeVariant::BinaryFuseFilterType, TypeVariant::SerializedBinaryFuseFilter, + TypeVariant::PoolId, + TypeVariant::ClaimableBalanceIdType, + TypeVariant::ClaimableBalanceId, ]; - pub const VARIANTS_STR: [&'static str; 458] = [ + pub const VARIANTS_STR: [&'static str; 457] = [ "Value", "ScpBallot", "ScpStatementType", @@ -47218,6 +47124,7 @@ impl TypeVariant { "ContractExecutableType", "ContractExecutable", "ScAddressType", + "MuxedEd25519Account", "ScAddress", "ScVec", "ScMap", @@ -47238,7 +47145,6 @@ impl TypeVariant { "String64", "SequenceNumber", "DataValue", - "PoolId", "AssetCode4", "AssetCode12", "AssetType", @@ -47279,8 +47185,6 @@ impl TypeVariant { "ClaimantType", "Claimant", "ClaimantV0", - "ClaimableBalanceIdType", - "ClaimableBalanceId", "ClaimableBalanceFlags", "ClaimableBalanceEntryExtensionV1", "ClaimableBalanceEntryExtensionV1Ext", @@ -47377,6 +47281,9 @@ impl TypeVariant { "SorobanTransactionMetaExt", "SorobanTransactionMeta", "TransactionMetaV3", + "OperationMetaV2", + "SorobanTransactionMetaV2", + "TransactionMetaV4", "InvokeHostFunctionSuccessPreImage", "TransactionMeta", "TransactionResultMeta", @@ -47406,20 +47313,15 @@ impl TypeVariant { "SignedTimeSlicedSurveyStopCollectingMessage", "SurveyRequestMessage", "TimeSlicedSurveyRequestMessage", - "SignedSurveyRequestMessage", "SignedTimeSlicedSurveyRequestMessage", "EncryptedBody", "SurveyResponseMessage", "TimeSlicedSurveyResponseMessage", - "SignedSurveyResponseMessage", "SignedTimeSlicedSurveyResponseMessage", "PeerStats", - "PeerStatList", "TimeSlicedNodeData", "TimeSlicedPeerData", "TimeSlicedPeerDataList", - "TopologyResponseBodyV0", - "TopologyResponseBodyV1", "TopologyResponseBodyV2", "SurveyResponseBody", "TxAdvertVector", @@ -47609,6 +47511,9 @@ impl TypeVariant { "ShortHashSeed", "BinaryFuseFilterType", "SerializedBinaryFuseFilter", + "PoolId", + "ClaimableBalanceIdType", + "ClaimableBalanceId", ]; #[must_use] @@ -47684,6 +47589,7 @@ impl TypeVariant { Self::ContractExecutableType => "ContractExecutableType", Self::ContractExecutable => "ContractExecutable", Self::ScAddressType => "ScAddressType", + Self::MuxedEd25519Account => "MuxedEd25519Account", Self::ScAddress => "ScAddress", Self::ScVec => "ScVec", Self::ScMap => "ScMap", @@ -47704,7 +47610,6 @@ impl TypeVariant { Self::String64 => "String64", Self::SequenceNumber => "SequenceNumber", Self::DataValue => "DataValue", - Self::PoolId => "PoolId", Self::AssetCode4 => "AssetCode4", Self::AssetCode12 => "AssetCode12", Self::AssetType => "AssetType", @@ -47745,8 +47650,6 @@ impl TypeVariant { Self::ClaimantType => "ClaimantType", Self::Claimant => "Claimant", Self::ClaimantV0 => "ClaimantV0", - Self::ClaimableBalanceIdType => "ClaimableBalanceIdType", - Self::ClaimableBalanceId => "ClaimableBalanceId", Self::ClaimableBalanceFlags => "ClaimableBalanceFlags", Self::ClaimableBalanceEntryExtensionV1 => "ClaimableBalanceEntryExtensionV1", Self::ClaimableBalanceEntryExtensionV1Ext => "ClaimableBalanceEntryExtensionV1Ext", @@ -47845,6 +47748,9 @@ impl TypeVariant { Self::SorobanTransactionMetaExt => "SorobanTransactionMetaExt", Self::SorobanTransactionMeta => "SorobanTransactionMeta", Self::TransactionMetaV3 => "TransactionMetaV3", + Self::OperationMetaV2 => "OperationMetaV2", + Self::SorobanTransactionMetaV2 => "SorobanTransactionMetaV2", + Self::TransactionMetaV4 => "TransactionMetaV4", Self::InvokeHostFunctionSuccessPreImage => "InvokeHostFunctionSuccessPreImage", Self::TransactionMeta => "TransactionMeta", Self::TransactionResultMeta => "TransactionResultMeta", @@ -47880,20 +47786,15 @@ impl TypeVariant { } Self::SurveyRequestMessage => "SurveyRequestMessage", Self::TimeSlicedSurveyRequestMessage => "TimeSlicedSurveyRequestMessage", - Self::SignedSurveyRequestMessage => "SignedSurveyRequestMessage", Self::SignedTimeSlicedSurveyRequestMessage => "SignedTimeSlicedSurveyRequestMessage", Self::EncryptedBody => "EncryptedBody", Self::SurveyResponseMessage => "SurveyResponseMessage", Self::TimeSlicedSurveyResponseMessage => "TimeSlicedSurveyResponseMessage", - Self::SignedSurveyResponseMessage => "SignedSurveyResponseMessage", Self::SignedTimeSlicedSurveyResponseMessage => "SignedTimeSlicedSurveyResponseMessage", Self::PeerStats => "PeerStats", - Self::PeerStatList => "PeerStatList", Self::TimeSlicedNodeData => "TimeSlicedNodeData", Self::TimeSlicedPeerData => "TimeSlicedPeerData", Self::TimeSlicedPeerDataList => "TimeSlicedPeerDataList", - Self::TopologyResponseBodyV0 => "TopologyResponseBodyV0", - Self::TopologyResponseBodyV1 => "TopologyResponseBodyV1", Self::TopologyResponseBodyV2 => "TopologyResponseBodyV2", Self::SurveyResponseBody => "SurveyResponseBody", Self::TxAdvertVector => "TxAdvertVector", @@ -48087,12 +47988,15 @@ impl TypeVariant { Self::ShortHashSeed => "ShortHashSeed", Self::BinaryFuseFilterType => "BinaryFuseFilterType", Self::SerializedBinaryFuseFilter => "SerializedBinaryFuseFilter", + Self::PoolId => "PoolId", + Self::ClaimableBalanceIdType => "ClaimableBalanceIdType", + Self::ClaimableBalanceId => "ClaimableBalanceId", } } #[must_use] #[allow(clippy::too_many_lines)] - pub const fn variants() -> [TypeVariant; 458] { + pub const fn variants() -> [TypeVariant; 457] { Self::VARIANTS } @@ -48194,6 +48098,7 @@ impl TypeVariant { Self::ContractExecutableType => gen.into_root_schema_for::(), Self::ContractExecutable => gen.into_root_schema_for::(), Self::ScAddressType => gen.into_root_schema_for::(), + Self::MuxedEd25519Account => gen.into_root_schema_for::(), Self::ScAddress => gen.into_root_schema_for::(), Self::ScVec => gen.into_root_schema_for::(), Self::ScMap => gen.into_root_schema_for::(), @@ -48216,7 +48121,6 @@ impl TypeVariant { Self::String64 => gen.into_root_schema_for::(), Self::SequenceNumber => gen.into_root_schema_for::(), Self::DataValue => gen.into_root_schema_for::(), - Self::PoolId => gen.into_root_schema_for::(), Self::AssetCode4 => gen.into_root_schema_for::(), Self::AssetCode12 => gen.into_root_schema_for::(), Self::AssetType => gen.into_root_schema_for::(), @@ -48265,8 +48169,6 @@ impl TypeVariant { Self::ClaimantType => gen.into_root_schema_for::(), Self::Claimant => gen.into_root_schema_for::(), Self::ClaimantV0 => gen.into_root_schema_for::(), - Self::ClaimableBalanceIdType => gen.into_root_schema_for::(), - Self::ClaimableBalanceId => gen.into_root_schema_for::(), Self::ClaimableBalanceFlags => gen.into_root_schema_for::(), Self::ClaimableBalanceEntryExtensionV1 => { gen.into_root_schema_for::() @@ -48405,6 +48307,11 @@ impl TypeVariant { } Self::SorobanTransactionMeta => gen.into_root_schema_for::(), Self::TransactionMetaV3 => gen.into_root_schema_for::(), + Self::OperationMetaV2 => gen.into_root_schema_for::(), + Self::SorobanTransactionMetaV2 => { + gen.into_root_schema_for::() + } + Self::TransactionMetaV4 => gen.into_root_schema_for::(), Self::InvokeHostFunctionSuccessPreImage => { gen.into_root_schema_for::() } @@ -48450,9 +48357,6 @@ impl TypeVariant { Self::TimeSlicedSurveyRequestMessage => { gen.into_root_schema_for::() } - Self::SignedSurveyRequestMessage => { - gen.into_root_schema_for::() - } Self::SignedTimeSlicedSurveyRequestMessage => { gen.into_root_schema_for::() } @@ -48461,19 +48365,13 @@ impl TypeVariant { Self::TimeSlicedSurveyResponseMessage => { gen.into_root_schema_for::() } - Self::SignedSurveyResponseMessage => { - gen.into_root_schema_for::() - } Self::SignedTimeSlicedSurveyResponseMessage => { gen.into_root_schema_for::() } Self::PeerStats => gen.into_root_schema_for::(), - Self::PeerStatList => gen.into_root_schema_for::(), Self::TimeSlicedNodeData => gen.into_root_schema_for::(), Self::TimeSlicedPeerData => gen.into_root_schema_for::(), Self::TimeSlicedPeerDataList => gen.into_root_schema_for::(), - Self::TopologyResponseBodyV0 => gen.into_root_schema_for::(), - Self::TopologyResponseBodyV1 => gen.into_root_schema_for::(), Self::TopologyResponseBodyV2 => gen.into_root_schema_for::(), Self::SurveyResponseBody => gen.into_root_schema_for::(), Self::TxAdvertVector => gen.into_root_schema_for::(), @@ -48775,6 +48673,9 @@ impl TypeVariant { Self::SerializedBinaryFuseFilter => { gen.into_root_schema_for::() } + Self::PoolId => gen.into_root_schema_for::(), + Self::ClaimableBalanceIdType => gen.into_root_schema_for::(), + Self::ClaimableBalanceId => gen.into_root_schema_for::(), } } } @@ -48872,6 +48773,7 @@ impl core::str::FromStr for TypeVariant { "ContractExecutableType" => Ok(Self::ContractExecutableType), "ContractExecutable" => Ok(Self::ContractExecutable), "ScAddressType" => Ok(Self::ScAddressType), + "MuxedEd25519Account" => Ok(Self::MuxedEd25519Account), "ScAddress" => Ok(Self::ScAddress), "ScVec" => Ok(Self::ScVec), "ScMap" => Ok(Self::ScMap), @@ -48892,7 +48794,6 @@ impl core::str::FromStr for TypeVariant { "String64" => Ok(Self::String64), "SequenceNumber" => Ok(Self::SequenceNumber), "DataValue" => Ok(Self::DataValue), - "PoolId" => Ok(Self::PoolId), "AssetCode4" => Ok(Self::AssetCode4), "AssetCode12" => Ok(Self::AssetCode12), "AssetType" => Ok(Self::AssetType), @@ -48933,8 +48834,6 @@ impl core::str::FromStr for TypeVariant { "ClaimantType" => Ok(Self::ClaimantType), "Claimant" => Ok(Self::Claimant), "ClaimantV0" => Ok(Self::ClaimantV0), - "ClaimableBalanceIdType" => Ok(Self::ClaimableBalanceIdType), - "ClaimableBalanceId" => Ok(Self::ClaimableBalanceId), "ClaimableBalanceFlags" => Ok(Self::ClaimableBalanceFlags), "ClaimableBalanceEntryExtensionV1" => Ok(Self::ClaimableBalanceEntryExtensionV1), "ClaimableBalanceEntryExtensionV1Ext" => Ok(Self::ClaimableBalanceEntryExtensionV1Ext), @@ -49033,6 +48932,9 @@ impl core::str::FromStr for TypeVariant { "SorobanTransactionMetaExt" => Ok(Self::SorobanTransactionMetaExt), "SorobanTransactionMeta" => Ok(Self::SorobanTransactionMeta), "TransactionMetaV3" => Ok(Self::TransactionMetaV3), + "OperationMetaV2" => Ok(Self::OperationMetaV2), + "SorobanTransactionMetaV2" => Ok(Self::SorobanTransactionMetaV2), + "TransactionMetaV4" => Ok(Self::TransactionMetaV4), "InvokeHostFunctionSuccessPreImage" => Ok(Self::InvokeHostFunctionSuccessPreImage), "TransactionMeta" => Ok(Self::TransactionMeta), "TransactionResultMeta" => Ok(Self::TransactionResultMeta), @@ -49070,24 +48972,19 @@ impl core::str::FromStr for TypeVariant { } "SurveyRequestMessage" => Ok(Self::SurveyRequestMessage), "TimeSlicedSurveyRequestMessage" => Ok(Self::TimeSlicedSurveyRequestMessage), - "SignedSurveyRequestMessage" => Ok(Self::SignedSurveyRequestMessage), "SignedTimeSlicedSurveyRequestMessage" => { Ok(Self::SignedTimeSlicedSurveyRequestMessage) } "EncryptedBody" => Ok(Self::EncryptedBody), "SurveyResponseMessage" => Ok(Self::SurveyResponseMessage), "TimeSlicedSurveyResponseMessage" => Ok(Self::TimeSlicedSurveyResponseMessage), - "SignedSurveyResponseMessage" => Ok(Self::SignedSurveyResponseMessage), "SignedTimeSlicedSurveyResponseMessage" => { Ok(Self::SignedTimeSlicedSurveyResponseMessage) } "PeerStats" => Ok(Self::PeerStats), - "PeerStatList" => Ok(Self::PeerStatList), "TimeSlicedNodeData" => Ok(Self::TimeSlicedNodeData), "TimeSlicedPeerData" => Ok(Self::TimeSlicedPeerData), "TimeSlicedPeerDataList" => Ok(Self::TimeSlicedPeerDataList), - "TopologyResponseBodyV0" => Ok(Self::TopologyResponseBodyV0), - "TopologyResponseBodyV1" => Ok(Self::TopologyResponseBodyV1), "TopologyResponseBodyV2" => Ok(Self::TopologyResponseBodyV2), "SurveyResponseBody" => Ok(Self::SurveyResponseBody), "TxAdvertVector" => Ok(Self::TxAdvertVector), @@ -49285,6 +49182,9 @@ impl core::str::FromStr for TypeVariant { "ShortHashSeed" => Ok(Self::ShortHashSeed), "BinaryFuseFilterType" => Ok(Self::BinaryFuseFilterType), "SerializedBinaryFuseFilter" => Ok(Self::SerializedBinaryFuseFilter), + "PoolId" => Ok(Self::PoolId), + "ClaimableBalanceIdType" => Ok(Self::ClaimableBalanceIdType), + "ClaimableBalanceId" => Ok(Self::ClaimableBalanceId), _ => Err(Error::Invalid), } } @@ -49366,6 +49266,7 @@ pub enum Type { ContractExecutableType(Box), ContractExecutable(Box), ScAddressType(Box), + MuxedEd25519Account(Box), ScAddress(Box), ScVec(Box), ScMap(Box), @@ -49386,7 +49287,6 @@ pub enum Type { String64(Box), SequenceNumber(Box), DataValue(Box), - PoolId(Box), AssetCode4(Box), AssetCode12(Box), AssetType(Box), @@ -49427,8 +49327,6 @@ pub enum Type { ClaimantType(Box), Claimant(Box), ClaimantV0(Box), - ClaimableBalanceIdType(Box), - ClaimableBalanceId(Box), ClaimableBalanceFlags(Box), ClaimableBalanceEntryExtensionV1(Box), ClaimableBalanceEntryExtensionV1Ext(Box), @@ -49525,6 +49423,9 @@ pub enum Type { SorobanTransactionMetaExt(Box), SorobanTransactionMeta(Box), TransactionMetaV3(Box), + OperationMetaV2(Box), + SorobanTransactionMetaV2(Box), + TransactionMetaV4(Box), InvokeHostFunctionSuccessPreImage(Box), TransactionMeta(Box), TransactionResultMeta(Box), @@ -49554,20 +49455,15 @@ pub enum Type { SignedTimeSlicedSurveyStopCollectingMessage(Box), SurveyRequestMessage(Box), TimeSlicedSurveyRequestMessage(Box), - SignedSurveyRequestMessage(Box), SignedTimeSlicedSurveyRequestMessage(Box), EncryptedBody(Box), SurveyResponseMessage(Box), TimeSlicedSurveyResponseMessage(Box), - SignedSurveyResponseMessage(Box), SignedTimeSlicedSurveyResponseMessage(Box), PeerStats(Box), - PeerStatList(Box), TimeSlicedNodeData(Box), TimeSlicedPeerData(Box), TimeSlicedPeerDataList(Box), - TopologyResponseBodyV0(Box), - TopologyResponseBodyV1(Box), TopologyResponseBodyV2(Box), SurveyResponseBody(Box), TxAdvertVector(Box), @@ -49757,10 +49653,13 @@ pub enum Type { ShortHashSeed(Box), BinaryFuseFilterType(Box), SerializedBinaryFuseFilter(Box), + PoolId(Box), + ClaimableBalanceIdType(Box), + ClaimableBalanceId(Box), } impl Type { - pub const VARIANTS: [TypeVariant; 458] = [ + pub const VARIANTS: [TypeVariant; 457] = [ TypeVariant::Value, TypeVariant::ScpBallot, TypeVariant::ScpStatementType, @@ -49828,6 +49727,7 @@ impl Type { TypeVariant::ContractExecutableType, TypeVariant::ContractExecutable, TypeVariant::ScAddressType, + TypeVariant::MuxedEd25519Account, TypeVariant::ScAddress, TypeVariant::ScVec, TypeVariant::ScMap, @@ -49848,7 +49748,6 @@ impl Type { TypeVariant::String64, TypeVariant::SequenceNumber, TypeVariant::DataValue, - TypeVariant::PoolId, TypeVariant::AssetCode4, TypeVariant::AssetCode12, TypeVariant::AssetType, @@ -49889,8 +49788,6 @@ impl Type { TypeVariant::ClaimantType, TypeVariant::Claimant, TypeVariant::ClaimantV0, - TypeVariant::ClaimableBalanceIdType, - TypeVariant::ClaimableBalanceId, TypeVariant::ClaimableBalanceFlags, TypeVariant::ClaimableBalanceEntryExtensionV1, TypeVariant::ClaimableBalanceEntryExtensionV1Ext, @@ -49987,6 +49884,9 @@ impl Type { TypeVariant::SorobanTransactionMetaExt, TypeVariant::SorobanTransactionMeta, TypeVariant::TransactionMetaV3, + TypeVariant::OperationMetaV2, + TypeVariant::SorobanTransactionMetaV2, + TypeVariant::TransactionMetaV4, TypeVariant::InvokeHostFunctionSuccessPreImage, TypeVariant::TransactionMeta, TypeVariant::TransactionResultMeta, @@ -50016,20 +49916,15 @@ impl Type { TypeVariant::SignedTimeSlicedSurveyStopCollectingMessage, TypeVariant::SurveyRequestMessage, TypeVariant::TimeSlicedSurveyRequestMessage, - TypeVariant::SignedSurveyRequestMessage, TypeVariant::SignedTimeSlicedSurveyRequestMessage, TypeVariant::EncryptedBody, TypeVariant::SurveyResponseMessage, TypeVariant::TimeSlicedSurveyResponseMessage, - TypeVariant::SignedSurveyResponseMessage, TypeVariant::SignedTimeSlicedSurveyResponseMessage, TypeVariant::PeerStats, - TypeVariant::PeerStatList, TypeVariant::TimeSlicedNodeData, TypeVariant::TimeSlicedPeerData, TypeVariant::TimeSlicedPeerDataList, - TypeVariant::TopologyResponseBodyV0, - TypeVariant::TopologyResponseBodyV1, TypeVariant::TopologyResponseBodyV2, TypeVariant::SurveyResponseBody, TypeVariant::TxAdvertVector, @@ -50219,8 +50114,11 @@ impl Type { TypeVariant::ShortHashSeed, TypeVariant::BinaryFuseFilterType, TypeVariant::SerializedBinaryFuseFilter, + TypeVariant::PoolId, + TypeVariant::ClaimableBalanceIdType, + TypeVariant::ClaimableBalanceId, ]; - pub const VARIANTS_STR: [&'static str; 458] = [ + pub const VARIANTS_STR: [&'static str; 457] = [ "Value", "ScpBallot", "ScpStatementType", @@ -50288,6 +50186,7 @@ impl Type { "ContractExecutableType", "ContractExecutable", "ScAddressType", + "MuxedEd25519Account", "ScAddress", "ScVec", "ScMap", @@ -50308,7 +50207,6 @@ impl Type { "String64", "SequenceNumber", "DataValue", - "PoolId", "AssetCode4", "AssetCode12", "AssetType", @@ -50349,8 +50247,6 @@ impl Type { "ClaimantType", "Claimant", "ClaimantV0", - "ClaimableBalanceIdType", - "ClaimableBalanceId", "ClaimableBalanceFlags", "ClaimableBalanceEntryExtensionV1", "ClaimableBalanceEntryExtensionV1Ext", @@ -50447,6 +50343,9 @@ impl Type { "SorobanTransactionMetaExt", "SorobanTransactionMeta", "TransactionMetaV3", + "OperationMetaV2", + "SorobanTransactionMetaV2", + "TransactionMetaV4", "InvokeHostFunctionSuccessPreImage", "TransactionMeta", "TransactionResultMeta", @@ -50476,20 +50375,15 @@ impl Type { "SignedTimeSlicedSurveyStopCollectingMessage", "SurveyRequestMessage", "TimeSlicedSurveyRequestMessage", - "SignedSurveyRequestMessage", "SignedTimeSlicedSurveyRequestMessage", "EncryptedBody", "SurveyResponseMessage", "TimeSlicedSurveyResponseMessage", - "SignedSurveyResponseMessage", "SignedTimeSlicedSurveyResponseMessage", "PeerStats", - "PeerStatList", "TimeSlicedNodeData", "TimeSlicedPeerData", "TimeSlicedPeerDataList", - "TopologyResponseBodyV0", - "TopologyResponseBodyV1", "TopologyResponseBodyV2", "SurveyResponseBody", "TxAdvertVector", @@ -50679,6 +50573,9 @@ impl Type { "ShortHashSeed", "BinaryFuseFilterType", "SerializedBinaryFuseFilter", + "PoolId", + "ClaimableBalanceIdType", + "ClaimableBalanceId", ]; #[cfg(feature = "std")] @@ -50968,6 +50865,11 @@ impl Type { TypeVariant::ScAddressType => r.with_limited_depth(|r| { Ok(Self::ScAddressType(Box::new(ScAddressType::read_xdr(r)?))) }), + TypeVariant::MuxedEd25519Account => r.with_limited_depth(|r| { + Ok(Self::MuxedEd25519Account(Box::new( + MuxedEd25519Account::read_xdr(r)?, + ))) + }), TypeVariant::ScAddress => { r.with_limited_depth(|r| Ok(Self::ScAddress(Box::new(ScAddress::read_xdr(r)?)))) } @@ -51040,9 +50942,6 @@ impl Type { TypeVariant::DataValue => { r.with_limited_depth(|r| Ok(Self::DataValue(Box::new(DataValue::read_xdr(r)?)))) } - TypeVariant::PoolId => { - r.with_limited_depth(|r| Ok(Self::PoolId(Box::new(PoolId::read_xdr(r)?)))) - } TypeVariant::AssetCode4 => { r.with_limited_depth(|r| Ok(Self::AssetCode4(Box::new(AssetCode4::read_xdr(r)?)))) } @@ -51197,16 +51096,6 @@ impl Type { TypeVariant::ClaimantV0 => { r.with_limited_depth(|r| Ok(Self::ClaimantV0(Box::new(ClaimantV0::read_xdr(r)?)))) } - TypeVariant::ClaimableBalanceIdType => r.with_limited_depth(|r| { - Ok(Self::ClaimableBalanceIdType(Box::new( - ClaimableBalanceIdType::read_xdr(r)?, - ))) - }), - TypeVariant::ClaimableBalanceId => r.with_limited_depth(|r| { - Ok(Self::ClaimableBalanceId(Box::new( - ClaimableBalanceId::read_xdr(r)?, - ))) - }), TypeVariant::ClaimableBalanceFlags => r.with_limited_depth(|r| { Ok(Self::ClaimableBalanceFlags(Box::new( ClaimableBalanceFlags::read_xdr(r)?, @@ -51649,6 +51538,21 @@ impl Type { TransactionMetaV3::read_xdr(r)?, ))) }), + TypeVariant::OperationMetaV2 => r.with_limited_depth(|r| { + Ok(Self::OperationMetaV2(Box::new(OperationMetaV2::read_xdr( + r, + )?))) + }), + TypeVariant::SorobanTransactionMetaV2 => r.with_limited_depth(|r| { + Ok(Self::SorobanTransactionMetaV2(Box::new( + SorobanTransactionMetaV2::read_xdr(r)?, + ))) + }), + TypeVariant::TransactionMetaV4 => r.with_limited_depth(|r| { + Ok(Self::TransactionMetaV4(Box::new( + TransactionMetaV4::read_xdr(r)?, + ))) + }), TypeVariant::InvokeHostFunctionSuccessPreImage => r.with_limited_depth(|r| { Ok(Self::InvokeHostFunctionSuccessPreImage(Box::new( InvokeHostFunctionSuccessPreImage::read_xdr(r)?, @@ -51774,11 +51678,6 @@ impl Type { TimeSlicedSurveyRequestMessage::read_xdr(r)?, ))) }), - TypeVariant::SignedSurveyRequestMessage => r.with_limited_depth(|r| { - Ok(Self::SignedSurveyRequestMessage(Box::new( - SignedSurveyRequestMessage::read_xdr(r)?, - ))) - }), TypeVariant::SignedTimeSlicedSurveyRequestMessage => r.with_limited_depth(|r| { Ok(Self::SignedTimeSlicedSurveyRequestMessage(Box::new( SignedTimeSlicedSurveyRequestMessage::read_xdr(r)?, @@ -51797,11 +51696,6 @@ impl Type { TimeSlicedSurveyResponseMessage::read_xdr(r)?, ))) }), - TypeVariant::SignedSurveyResponseMessage => r.with_limited_depth(|r| { - Ok(Self::SignedSurveyResponseMessage(Box::new( - SignedSurveyResponseMessage::read_xdr(r)?, - ))) - }), TypeVariant::SignedTimeSlicedSurveyResponseMessage => r.with_limited_depth(|r| { Ok(Self::SignedTimeSlicedSurveyResponseMessage(Box::new( SignedTimeSlicedSurveyResponseMessage::read_xdr(r)?, @@ -51810,9 +51704,6 @@ impl Type { TypeVariant::PeerStats => { r.with_limited_depth(|r| Ok(Self::PeerStats(Box::new(PeerStats::read_xdr(r)?)))) } - TypeVariant::PeerStatList => r.with_limited_depth(|r| { - Ok(Self::PeerStatList(Box::new(PeerStatList::read_xdr(r)?))) - }), TypeVariant::TimeSlicedNodeData => r.with_limited_depth(|r| { Ok(Self::TimeSlicedNodeData(Box::new( TimeSlicedNodeData::read_xdr(r)?, @@ -51828,16 +51719,6 @@ impl Type { TimeSlicedPeerDataList::read_xdr(r)?, ))) }), - TypeVariant::TopologyResponseBodyV0 => r.with_limited_depth(|r| { - Ok(Self::TopologyResponseBodyV0(Box::new( - TopologyResponseBodyV0::read_xdr(r)?, - ))) - }), - TypeVariant::TopologyResponseBodyV1 => r.with_limited_depth(|r| { - Ok(Self::TopologyResponseBodyV1(Box::new( - TopologyResponseBodyV1::read_xdr(r)?, - ))) - }), TypeVariant::TopologyResponseBodyV2 => r.with_limited_depth(|r| { Ok(Self::TopologyResponseBodyV2(Box::new( TopologyResponseBodyV2::read_xdr(r)?, @@ -52681,6 +52562,19 @@ impl Type { SerializedBinaryFuseFilter::read_xdr(r)?, ))) }), + TypeVariant::PoolId => { + r.with_limited_depth(|r| Ok(Self::PoolId(Box::new(PoolId::read_xdr(r)?)))) + } + TypeVariant::ClaimableBalanceIdType => r.with_limited_depth(|r| { + Ok(Self::ClaimableBalanceIdType(Box::new( + ClaimableBalanceIdType::read_xdr(r)?, + ))) + }), + TypeVariant::ClaimableBalanceId => r.with_limited_depth(|r| { + Ok(Self::ClaimableBalanceId(Box::new( + ClaimableBalanceId::read_xdr(r)?, + ))) + }), } } @@ -53018,6 +52912,10 @@ impl Type { ReadXdrIter::<_, ScAddressType>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::ScAddressType(Box::new(t)))), ), + TypeVariant::MuxedEd25519Account => Box::new( + ReadXdrIter::<_, MuxedEd25519Account>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::MuxedEd25519Account(Box::new(t)))), + ), TypeVariant::ScAddress => Box::new( ReadXdrIter::<_, ScAddress>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::ScAddress(Box::new(t)))), @@ -53098,10 +52996,6 @@ impl Type { ReadXdrIter::<_, DataValue>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::DataValue(Box::new(t)))), ), - TypeVariant::PoolId => Box::new( - ReadXdrIter::<_, PoolId>::new(&mut r.inner, r.limits.clone()) - .map(|r| r.map(|t| Self::PoolId(Box::new(t)))), - ), TypeVariant::AssetCode4 => Box::new( ReadXdrIter::<_, AssetCode4>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::AssetCode4(Box::new(t)))), @@ -53262,14 +53156,6 @@ impl Type { ReadXdrIter::<_, ClaimantV0>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::ClaimantV0(Box::new(t)))), ), - TypeVariant::ClaimableBalanceIdType => Box::new( - ReadXdrIter::<_, ClaimableBalanceIdType>::new(&mut r.inner, r.limits.clone()) - .map(|r| r.map(|t| Self::ClaimableBalanceIdType(Box::new(t)))), - ), - TypeVariant::ClaimableBalanceId => Box::new( - ReadXdrIter::<_, ClaimableBalanceId>::new(&mut r.inner, r.limits.clone()) - .map(|r| r.map(|t| Self::ClaimableBalanceId(Box::new(t)))), - ), TypeVariant::ClaimableBalanceFlags => Box::new( ReadXdrIter::<_, ClaimableBalanceFlags>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::ClaimableBalanceFlags(Box::new(t)))), @@ -53675,6 +53561,18 @@ impl Type { ReadXdrIter::<_, TransactionMetaV3>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::TransactionMetaV3(Box::new(t)))), ), + TypeVariant::OperationMetaV2 => Box::new( + ReadXdrIter::<_, OperationMetaV2>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::OperationMetaV2(Box::new(t)))), + ), + TypeVariant::SorobanTransactionMetaV2 => Box::new( + ReadXdrIter::<_, SorobanTransactionMetaV2>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::SorobanTransactionMetaV2(Box::new(t)))), + ), + TypeVariant::TransactionMetaV4 => Box::new( + ReadXdrIter::<_, TransactionMetaV4>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::TransactionMetaV4(Box::new(t)))), + ), TypeVariant::InvokeHostFunctionSuccessPreImage => Box::new( ReadXdrIter::<_, InvokeHostFunctionSuccessPreImage>::new( &mut r.inner, @@ -53811,10 +53709,6 @@ impl Type { ) .map(|r| r.map(|t| Self::TimeSlicedSurveyRequestMessage(Box::new(t)))), ), - TypeVariant::SignedSurveyRequestMessage => Box::new( - ReadXdrIter::<_, SignedSurveyRequestMessage>::new(&mut r.inner, r.limits.clone()) - .map(|r| r.map(|t| Self::SignedSurveyRequestMessage(Box::new(t)))), - ), TypeVariant::SignedTimeSlicedSurveyRequestMessage => Box::new( ReadXdrIter::<_, SignedTimeSlicedSurveyRequestMessage>::new( &mut r.inner, @@ -53837,10 +53731,6 @@ impl Type { ) .map(|r| r.map(|t| Self::TimeSlicedSurveyResponseMessage(Box::new(t)))), ), - TypeVariant::SignedSurveyResponseMessage => Box::new( - ReadXdrIter::<_, SignedSurveyResponseMessage>::new(&mut r.inner, r.limits.clone()) - .map(|r| r.map(|t| Self::SignedSurveyResponseMessage(Box::new(t)))), - ), TypeVariant::SignedTimeSlicedSurveyResponseMessage => Box::new( ReadXdrIter::<_, SignedTimeSlicedSurveyResponseMessage>::new( &mut r.inner, @@ -53852,10 +53742,6 @@ impl Type { ReadXdrIter::<_, PeerStats>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::PeerStats(Box::new(t)))), ), - TypeVariant::PeerStatList => Box::new( - ReadXdrIter::<_, PeerStatList>::new(&mut r.inner, r.limits.clone()) - .map(|r| r.map(|t| Self::PeerStatList(Box::new(t)))), - ), TypeVariant::TimeSlicedNodeData => Box::new( ReadXdrIter::<_, TimeSlicedNodeData>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::TimeSlicedNodeData(Box::new(t)))), @@ -53868,14 +53754,6 @@ impl Type { ReadXdrIter::<_, TimeSlicedPeerDataList>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::TimeSlicedPeerDataList(Box::new(t)))), ), - TypeVariant::TopologyResponseBodyV0 => Box::new( - ReadXdrIter::<_, TopologyResponseBodyV0>::new(&mut r.inner, r.limits.clone()) - .map(|r| r.map(|t| Self::TopologyResponseBodyV0(Box::new(t)))), - ), - TypeVariant::TopologyResponseBodyV1 => Box::new( - ReadXdrIter::<_, TopologyResponseBodyV1>::new(&mut r.inner, r.limits.clone()) - .map(|r| r.map(|t| Self::TopologyResponseBodyV1(Box::new(t)))), - ), TypeVariant::TopologyResponseBodyV2 => Box::new( ReadXdrIter::<_, TopologyResponseBodyV2>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::TopologyResponseBodyV2(Box::new(t)))), @@ -54700,6 +54578,18 @@ impl Type { ReadXdrIter::<_, SerializedBinaryFuseFilter>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::SerializedBinaryFuseFilter(Box::new(t)))), ), + TypeVariant::PoolId => Box::new( + ReadXdrIter::<_, PoolId>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::PoolId(Box::new(t)))), + ), + TypeVariant::ClaimableBalanceIdType => Box::new( + ReadXdrIter::<_, ClaimableBalanceIdType>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::ClaimableBalanceIdType(Box::new(t)))), + ), + TypeVariant::ClaimableBalanceId => Box::new( + ReadXdrIter::<_, ClaimableBalanceId>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::ClaimableBalanceId(Box::new(t)))), + ), } } @@ -55029,6 +54919,10 @@ impl Type { ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::ScAddressType(Box::new(t.0)))), ), + TypeVariant::MuxedEd25519Account => Box::new( + ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::MuxedEd25519Account(Box::new(t.0)))), + ), TypeVariant::ScAddress => Box::new( ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::ScAddress(Box::new(t.0)))), @@ -55112,10 +55006,6 @@ impl Type { ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::DataValue(Box::new(t.0)))), ), - TypeVariant::PoolId => Box::new( - ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) - .map(|r| r.map(|t| Self::PoolId(Box::new(t.0)))), - ), TypeVariant::AssetCode4 => Box::new( ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::AssetCode4(Box::new(t.0)))), @@ -55297,17 +55187,6 @@ impl Type { ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::ClaimantV0(Box::new(t.0)))), ), - TypeVariant::ClaimableBalanceIdType => Box::new( - ReadXdrIter::<_, Frame>::new( - &mut r.inner, - r.limits.clone(), - ) - .map(|r| r.map(|t| Self::ClaimableBalanceIdType(Box::new(t.0)))), - ), - TypeVariant::ClaimableBalanceId => Box::new( - ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) - .map(|r| r.map(|t| Self::ClaimableBalanceId(Box::new(t.0)))), - ), TypeVariant::ClaimableBalanceFlags => Box::new( ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::ClaimableBalanceFlags(Box::new(t.0)))), @@ -55794,6 +55673,21 @@ impl Type { ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::TransactionMetaV3(Box::new(t.0)))), ), + TypeVariant::OperationMetaV2 => Box::new( + ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::OperationMetaV2(Box::new(t.0)))), + ), + TypeVariant::SorobanTransactionMetaV2 => Box::new( + ReadXdrIter::<_, Frame>::new( + &mut r.inner, + r.limits.clone(), + ) + .map(|r| r.map(|t| Self::SorobanTransactionMetaV2(Box::new(t.0)))), + ), + TypeVariant::TransactionMetaV4 => Box::new( + ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::TransactionMetaV4(Box::new(t.0)))), + ), TypeVariant::InvokeHostFunctionSuccessPreImage => Box::new( ReadXdrIter::<_, Frame>::new( &mut r.inner, @@ -55938,13 +55832,6 @@ impl Type { ) .map(|r| r.map(|t| Self::TimeSlicedSurveyRequestMessage(Box::new(t.0)))), ), - TypeVariant::SignedSurveyRequestMessage => Box::new( - ReadXdrIter::<_, Frame>::new( - &mut r.inner, - r.limits.clone(), - ) - .map(|r| r.map(|t| Self::SignedSurveyRequestMessage(Box::new(t.0)))), - ), TypeVariant::SignedTimeSlicedSurveyRequestMessage => Box::new( ReadXdrIter::<_, Frame>::new( &mut r.inner, @@ -55967,13 +55854,6 @@ impl Type { ) .map(|r| r.map(|t| Self::TimeSlicedSurveyResponseMessage(Box::new(t.0)))), ), - TypeVariant::SignedSurveyResponseMessage => Box::new( - ReadXdrIter::<_, Frame>::new( - &mut r.inner, - r.limits.clone(), - ) - .map(|r| r.map(|t| Self::SignedSurveyResponseMessage(Box::new(t.0)))), - ), TypeVariant::SignedTimeSlicedSurveyResponseMessage => Box::new( ReadXdrIter::<_, Frame>::new( &mut r.inner, @@ -55985,10 +55865,6 @@ impl Type { ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::PeerStats(Box::new(t.0)))), ), - TypeVariant::PeerStatList => Box::new( - ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) - .map(|r| r.map(|t| Self::PeerStatList(Box::new(t.0)))), - ), TypeVariant::TimeSlicedNodeData => Box::new( ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::TimeSlicedNodeData(Box::new(t.0)))), @@ -56004,20 +55880,6 @@ impl Type { ) .map(|r| r.map(|t| Self::TimeSlicedPeerDataList(Box::new(t.0)))), ), - TypeVariant::TopologyResponseBodyV0 => Box::new( - ReadXdrIter::<_, Frame>::new( - &mut r.inner, - r.limits.clone(), - ) - .map(|r| r.map(|t| Self::TopologyResponseBodyV0(Box::new(t.0)))), - ), - TypeVariant::TopologyResponseBodyV1 => Box::new( - ReadXdrIter::<_, Frame>::new( - &mut r.inner, - r.limits.clone(), - ) - .map(|r| r.map(|t| Self::TopologyResponseBodyV1(Box::new(t.0)))), - ), TypeVariant::TopologyResponseBodyV2 => Box::new( ReadXdrIter::<_, Frame>::new( &mut r.inner, @@ -57001,6 +56863,21 @@ impl Type { ) .map(|r| r.map(|t| Self::SerializedBinaryFuseFilter(Box::new(t.0)))), ), + TypeVariant::PoolId => Box::new( + ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::PoolId(Box::new(t.0)))), + ), + TypeVariant::ClaimableBalanceIdType => Box::new( + ReadXdrIter::<_, Frame>::new( + &mut r.inner, + r.limits.clone(), + ) + .map(|r| r.map(|t| Self::ClaimableBalanceIdType(Box::new(t.0)))), + ), + TypeVariant::ClaimableBalanceId => Box::new( + ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::ClaimableBalanceId(Box::new(t.0)))), + ), } } @@ -57283,6 +57160,10 @@ impl Type { ReadXdrIter::<_, ScAddressType>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::ScAddressType(Box::new(t)))), ), + TypeVariant::MuxedEd25519Account => Box::new( + ReadXdrIter::<_, MuxedEd25519Account>::new(dec, r.limits.clone()) + .map(|r| r.map(|t| Self::MuxedEd25519Account(Box::new(t)))), + ), TypeVariant::ScAddress => Box::new( ReadXdrIter::<_, ScAddress>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::ScAddress(Box::new(t)))), @@ -57363,10 +57244,6 @@ impl Type { ReadXdrIter::<_, DataValue>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::DataValue(Box::new(t)))), ), - TypeVariant::PoolId => Box::new( - ReadXdrIter::<_, PoolId>::new(dec, r.limits.clone()) - .map(|r| r.map(|t| Self::PoolId(Box::new(t)))), - ), TypeVariant::AssetCode4 => Box::new( ReadXdrIter::<_, AssetCode4>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::AssetCode4(Box::new(t)))), @@ -57527,14 +57404,6 @@ impl Type { ReadXdrIter::<_, ClaimantV0>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::ClaimantV0(Box::new(t)))), ), - TypeVariant::ClaimableBalanceIdType => Box::new( - ReadXdrIter::<_, ClaimableBalanceIdType>::new(dec, r.limits.clone()) - .map(|r| r.map(|t| Self::ClaimableBalanceIdType(Box::new(t)))), - ), - TypeVariant::ClaimableBalanceId => Box::new( - ReadXdrIter::<_, ClaimableBalanceId>::new(dec, r.limits.clone()) - .map(|r| r.map(|t| Self::ClaimableBalanceId(Box::new(t)))), - ), TypeVariant::ClaimableBalanceFlags => Box::new( ReadXdrIter::<_, ClaimableBalanceFlags>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::ClaimableBalanceFlags(Box::new(t)))), @@ -57922,6 +57791,18 @@ impl Type { ReadXdrIter::<_, TransactionMetaV3>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::TransactionMetaV3(Box::new(t)))), ), + TypeVariant::OperationMetaV2 => Box::new( + ReadXdrIter::<_, OperationMetaV2>::new(dec, r.limits.clone()) + .map(|r| r.map(|t| Self::OperationMetaV2(Box::new(t)))), + ), + TypeVariant::SorobanTransactionMetaV2 => Box::new( + ReadXdrIter::<_, SorobanTransactionMetaV2>::new(dec, r.limits.clone()) + .map(|r| r.map(|t| Self::SorobanTransactionMetaV2(Box::new(t)))), + ), + TypeVariant::TransactionMetaV4 => Box::new( + ReadXdrIter::<_, TransactionMetaV4>::new(dec, r.limits.clone()) + .map(|r| r.map(|t| Self::TransactionMetaV4(Box::new(t)))), + ), TypeVariant::InvokeHostFunctionSuccessPreImage => Box::new( ReadXdrIter::<_, InvokeHostFunctionSuccessPreImage>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::InvokeHostFunctionSuccessPreImage(Box::new(t)))), @@ -58049,10 +57930,6 @@ impl Type { ReadXdrIter::<_, TimeSlicedSurveyRequestMessage>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::TimeSlicedSurveyRequestMessage(Box::new(t)))), ), - TypeVariant::SignedSurveyRequestMessage => Box::new( - ReadXdrIter::<_, SignedSurveyRequestMessage>::new(dec, r.limits.clone()) - .map(|r| r.map(|t| Self::SignedSurveyRequestMessage(Box::new(t)))), - ), TypeVariant::SignedTimeSlicedSurveyRequestMessage => Box::new( ReadXdrIter::<_, SignedTimeSlicedSurveyRequestMessage>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::SignedTimeSlicedSurveyRequestMessage(Box::new(t)))), @@ -58069,10 +57946,6 @@ impl Type { ReadXdrIter::<_, TimeSlicedSurveyResponseMessage>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::TimeSlicedSurveyResponseMessage(Box::new(t)))), ), - TypeVariant::SignedSurveyResponseMessage => Box::new( - ReadXdrIter::<_, SignedSurveyResponseMessage>::new(dec, r.limits.clone()) - .map(|r| r.map(|t| Self::SignedSurveyResponseMessage(Box::new(t)))), - ), TypeVariant::SignedTimeSlicedSurveyResponseMessage => Box::new( ReadXdrIter::<_, SignedTimeSlicedSurveyResponseMessage>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::SignedTimeSlicedSurveyResponseMessage(Box::new(t)))), @@ -58081,10 +57954,6 @@ impl Type { ReadXdrIter::<_, PeerStats>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::PeerStats(Box::new(t)))), ), - TypeVariant::PeerStatList => Box::new( - ReadXdrIter::<_, PeerStatList>::new(dec, r.limits.clone()) - .map(|r| r.map(|t| Self::PeerStatList(Box::new(t)))), - ), TypeVariant::TimeSlicedNodeData => Box::new( ReadXdrIter::<_, TimeSlicedNodeData>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::TimeSlicedNodeData(Box::new(t)))), @@ -58097,14 +57966,6 @@ impl Type { ReadXdrIter::<_, TimeSlicedPeerDataList>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::TimeSlicedPeerDataList(Box::new(t)))), ), - TypeVariant::TopologyResponseBodyV0 => Box::new( - ReadXdrIter::<_, TopologyResponseBodyV0>::new(dec, r.limits.clone()) - .map(|r| r.map(|t| Self::TopologyResponseBodyV0(Box::new(t)))), - ), - TypeVariant::TopologyResponseBodyV1 => Box::new( - ReadXdrIter::<_, TopologyResponseBodyV1>::new(dec, r.limits.clone()) - .map(|r| r.map(|t| Self::TopologyResponseBodyV1(Box::new(t)))), - ), TypeVariant::TopologyResponseBodyV2 => Box::new( ReadXdrIter::<_, TopologyResponseBodyV2>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::TopologyResponseBodyV2(Box::new(t)))), @@ -58869,6 +58730,18 @@ impl Type { ReadXdrIter::<_, SerializedBinaryFuseFilter>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::SerializedBinaryFuseFilter(Box::new(t)))), ), + TypeVariant::PoolId => Box::new( + ReadXdrIter::<_, PoolId>::new(dec, r.limits.clone()) + .map(|r| r.map(|t| Self::PoolId(Box::new(t)))), + ), + TypeVariant::ClaimableBalanceIdType => Box::new( + ReadXdrIter::<_, ClaimableBalanceIdType>::new(dec, r.limits.clone()) + .map(|r| r.map(|t| Self::ClaimableBalanceIdType(Box::new(t)))), + ), + TypeVariant::ClaimableBalanceId => Box::new( + ReadXdrIter::<_, ClaimableBalanceId>::new(dec, r.limits.clone()) + .map(|r| r.map(|t| Self::ClaimableBalanceId(Box::new(t)))), + ), } } @@ -59087,6 +58960,9 @@ impl Type { TypeVariant::ScAddressType => { Ok(Self::ScAddressType(Box::new(serde_json::from_reader(r)?))) } + TypeVariant::MuxedEd25519Account => Ok(Self::MuxedEd25519Account(Box::new( + serde_json::from_reader(r)?, + ))), TypeVariant::ScAddress => Ok(Self::ScAddress(Box::new(serde_json::from_reader(r)?))), TypeVariant::ScVec => Ok(Self::ScVec(Box::new(serde_json::from_reader(r)?))), TypeVariant::ScMap => Ok(Self::ScMap(Box::new(serde_json::from_reader(r)?))), @@ -59121,7 +58997,6 @@ impl Type { Ok(Self::SequenceNumber(Box::new(serde_json::from_reader(r)?))) } TypeVariant::DataValue => Ok(Self::DataValue(Box::new(serde_json::from_reader(r)?))), - TypeVariant::PoolId => Ok(Self::PoolId(Box::new(serde_json::from_reader(r)?))), TypeVariant::AssetCode4 => Ok(Self::AssetCode4(Box::new(serde_json::from_reader(r)?))), TypeVariant::AssetCode12 => { Ok(Self::AssetCode12(Box::new(serde_json::from_reader(r)?))) @@ -59218,12 +59093,6 @@ impl Type { } TypeVariant::Claimant => Ok(Self::Claimant(Box::new(serde_json::from_reader(r)?))), TypeVariant::ClaimantV0 => Ok(Self::ClaimantV0(Box::new(serde_json::from_reader(r)?))), - TypeVariant::ClaimableBalanceIdType => Ok(Self::ClaimableBalanceIdType(Box::new( - serde_json::from_reader(r)?, - ))), - TypeVariant::ClaimableBalanceId => Ok(Self::ClaimableBalanceId(Box::new( - serde_json::from_reader(r)?, - ))), TypeVariant::ClaimableBalanceFlags => Ok(Self::ClaimableBalanceFlags(Box::new( serde_json::from_reader(r)?, ))), @@ -59508,6 +59377,15 @@ impl Type { TypeVariant::TransactionMetaV3 => Ok(Self::TransactionMetaV3(Box::new( serde_json::from_reader(r)?, ))), + TypeVariant::OperationMetaV2 => { + Ok(Self::OperationMetaV2(Box::new(serde_json::from_reader(r)?))) + } + TypeVariant::SorobanTransactionMetaV2 => Ok(Self::SorobanTransactionMetaV2(Box::new( + serde_json::from_reader(r)?, + ))), + TypeVariant::TransactionMetaV4 => Ok(Self::TransactionMetaV4(Box::new( + serde_json::from_reader(r)?, + ))), TypeVariant::InvokeHostFunctionSuccessPreImage => Ok( Self::InvokeHostFunctionSuccessPreImage(Box::new(serde_json::from_reader(r)?)), ), @@ -59583,9 +59461,6 @@ impl Type { TypeVariant::TimeSlicedSurveyRequestMessage => Ok( Self::TimeSlicedSurveyRequestMessage(Box::new(serde_json::from_reader(r)?)), ), - TypeVariant::SignedSurveyRequestMessage => Ok(Self::SignedSurveyRequestMessage( - Box::new(serde_json::from_reader(r)?), - )), TypeVariant::SignedTimeSlicedSurveyRequestMessage => Ok( Self::SignedTimeSlicedSurveyRequestMessage(Box::new(serde_json::from_reader(r)?)), ), @@ -59598,16 +59473,10 @@ impl Type { TypeVariant::TimeSlicedSurveyResponseMessage => Ok( Self::TimeSlicedSurveyResponseMessage(Box::new(serde_json::from_reader(r)?)), ), - TypeVariant::SignedSurveyResponseMessage => Ok(Self::SignedSurveyResponseMessage( - Box::new(serde_json::from_reader(r)?), - )), TypeVariant::SignedTimeSlicedSurveyResponseMessage => Ok( Self::SignedTimeSlicedSurveyResponseMessage(Box::new(serde_json::from_reader(r)?)), ), TypeVariant::PeerStats => Ok(Self::PeerStats(Box::new(serde_json::from_reader(r)?))), - TypeVariant::PeerStatList => { - Ok(Self::PeerStatList(Box::new(serde_json::from_reader(r)?))) - } TypeVariant::TimeSlicedNodeData => Ok(Self::TimeSlicedNodeData(Box::new( serde_json::from_reader(r)?, ))), @@ -59617,12 +59486,6 @@ impl Type { TypeVariant::TimeSlicedPeerDataList => Ok(Self::TimeSlicedPeerDataList(Box::new( serde_json::from_reader(r)?, ))), - TypeVariant::TopologyResponseBodyV0 => Ok(Self::TopologyResponseBodyV0(Box::new( - serde_json::from_reader(r)?, - ))), - TypeVariant::TopologyResponseBodyV1 => Ok(Self::TopologyResponseBodyV1(Box::new( - serde_json::from_reader(r)?, - ))), TypeVariant::TopologyResponseBodyV2 => Ok(Self::TopologyResponseBodyV2(Box::new( serde_json::from_reader(r)?, ))), @@ -60154,6 +60017,13 @@ impl Type { TypeVariant::SerializedBinaryFuseFilter => Ok(Self::SerializedBinaryFuseFilter( Box::new(serde_json::from_reader(r)?), )), + TypeVariant::PoolId => Ok(Self::PoolId(Box::new(serde_json::from_reader(r)?))), + TypeVariant::ClaimableBalanceIdType => Ok(Self::ClaimableBalanceIdType(Box::new( + serde_json::from_reader(r)?, + ))), + TypeVariant::ClaimableBalanceId => Ok(Self::ClaimableBalanceId(Box::new( + serde_json::from_reader(r)?, + ))), } } @@ -60381,6 +60251,9 @@ impl Type { TypeVariant::ScAddressType => Ok(Self::ScAddressType(Box::new( serde::de::Deserialize::deserialize(r)?, ))), + TypeVariant::MuxedEd25519Account => Ok(Self::MuxedEd25519Account(Box::new( + serde::de::Deserialize::deserialize(r)?, + ))), TypeVariant::ScAddress => Ok(Self::ScAddress(Box::new( serde::de::Deserialize::deserialize(r)?, ))), @@ -60441,9 +60314,6 @@ impl Type { TypeVariant::DataValue => Ok(Self::DataValue(Box::new( serde::de::Deserialize::deserialize(r)?, ))), - TypeVariant::PoolId => Ok(Self::PoolId(Box::new(serde::de::Deserialize::deserialize( - r, - )?))), TypeVariant::AssetCode4 => Ok(Self::AssetCode4(Box::new( serde::de::Deserialize::deserialize(r)?, ))), @@ -60564,12 +60434,6 @@ impl Type { TypeVariant::ClaimantV0 => Ok(Self::ClaimantV0(Box::new( serde::de::Deserialize::deserialize(r)?, ))), - TypeVariant::ClaimableBalanceIdType => Ok(Self::ClaimableBalanceIdType(Box::new( - serde::de::Deserialize::deserialize(r)?, - ))), - TypeVariant::ClaimableBalanceId => Ok(Self::ClaimableBalanceId(Box::new( - serde::de::Deserialize::deserialize(r)?, - ))), TypeVariant::ClaimableBalanceFlags => Ok(Self::ClaimableBalanceFlags(Box::new( serde::de::Deserialize::deserialize(r)?, ))), @@ -60870,6 +60734,15 @@ impl Type { TypeVariant::TransactionMetaV3 => Ok(Self::TransactionMetaV3(Box::new( serde::de::Deserialize::deserialize(r)?, ))), + TypeVariant::OperationMetaV2 => Ok(Self::OperationMetaV2(Box::new( + serde::de::Deserialize::deserialize(r)?, + ))), + TypeVariant::SorobanTransactionMetaV2 => Ok(Self::SorobanTransactionMetaV2(Box::new( + serde::de::Deserialize::deserialize(r)?, + ))), + TypeVariant::TransactionMetaV4 => Ok(Self::TransactionMetaV4(Box::new( + serde::de::Deserialize::deserialize(r)?, + ))), TypeVariant::InvokeHostFunctionSuccessPreImage => { Ok(Self::InvokeHostFunctionSuccessPreImage(Box::new( serde::de::Deserialize::deserialize(r)?, @@ -60969,9 +60842,6 @@ impl Type { serde::de::Deserialize::deserialize(r)?, ))) } - TypeVariant::SignedSurveyRequestMessage => Ok(Self::SignedSurveyRequestMessage( - Box::new(serde::de::Deserialize::deserialize(r)?), - )), TypeVariant::SignedTimeSlicedSurveyRequestMessage => { Ok(Self::SignedTimeSlicedSurveyRequestMessage(Box::new( serde::de::Deserialize::deserialize(r)?, @@ -60988,9 +60858,6 @@ impl Type { serde::de::Deserialize::deserialize(r)?, ))) } - TypeVariant::SignedSurveyResponseMessage => Ok(Self::SignedSurveyResponseMessage( - Box::new(serde::de::Deserialize::deserialize(r)?), - )), TypeVariant::SignedTimeSlicedSurveyResponseMessage => { Ok(Self::SignedTimeSlicedSurveyResponseMessage(Box::new( serde::de::Deserialize::deserialize(r)?, @@ -60999,9 +60866,6 @@ impl Type { TypeVariant::PeerStats => Ok(Self::PeerStats(Box::new( serde::de::Deserialize::deserialize(r)?, ))), - TypeVariant::PeerStatList => Ok(Self::PeerStatList(Box::new( - serde::de::Deserialize::deserialize(r)?, - ))), TypeVariant::TimeSlicedNodeData => Ok(Self::TimeSlicedNodeData(Box::new( serde::de::Deserialize::deserialize(r)?, ))), @@ -61011,12 +60875,6 @@ impl Type { TypeVariant::TimeSlicedPeerDataList => Ok(Self::TimeSlicedPeerDataList(Box::new( serde::de::Deserialize::deserialize(r)?, ))), - TypeVariant::TopologyResponseBodyV0 => Ok(Self::TopologyResponseBodyV0(Box::new( - serde::de::Deserialize::deserialize(r)?, - ))), - TypeVariant::TopologyResponseBodyV1 => Ok(Self::TopologyResponseBodyV1(Box::new( - serde::de::Deserialize::deserialize(r)?, - ))), TypeVariant::TopologyResponseBodyV2 => Ok(Self::TopologyResponseBodyV2(Box::new( serde::de::Deserialize::deserialize(r)?, ))), @@ -61620,6 +61478,15 @@ impl Type { TypeVariant::SerializedBinaryFuseFilter => Ok(Self::SerializedBinaryFuseFilter( Box::new(serde::de::Deserialize::deserialize(r)?), )), + TypeVariant::PoolId => Ok(Self::PoolId(Box::new(serde::de::Deserialize::deserialize( + r, + )?))), + TypeVariant::ClaimableBalanceIdType => Ok(Self::ClaimableBalanceIdType(Box::new( + serde::de::Deserialize::deserialize(r)?, + ))), + TypeVariant::ClaimableBalanceId => Ok(Self::ClaimableBalanceId(Box::new( + serde::de::Deserialize::deserialize(r)?, + ))), } } @@ -61696,6 +61563,7 @@ impl Type { Self::ContractExecutableType(ref v) => v.as_ref(), Self::ContractExecutable(ref v) => v.as_ref(), Self::ScAddressType(ref v) => v.as_ref(), + Self::MuxedEd25519Account(ref v) => v.as_ref(), Self::ScAddress(ref v) => v.as_ref(), Self::ScVec(ref v) => v.as_ref(), Self::ScMap(ref v) => v.as_ref(), @@ -61716,7 +61584,6 @@ impl Type { Self::String64(ref v) => v.as_ref(), Self::SequenceNumber(ref v) => v.as_ref(), Self::DataValue(ref v) => v.as_ref(), - Self::PoolId(ref v) => v.as_ref(), Self::AssetCode4(ref v) => v.as_ref(), Self::AssetCode12(ref v) => v.as_ref(), Self::AssetType(ref v) => v.as_ref(), @@ -61757,8 +61624,6 @@ impl Type { Self::ClaimantType(ref v) => v.as_ref(), Self::Claimant(ref v) => v.as_ref(), Self::ClaimantV0(ref v) => v.as_ref(), - Self::ClaimableBalanceIdType(ref v) => v.as_ref(), - Self::ClaimableBalanceId(ref v) => v.as_ref(), Self::ClaimableBalanceFlags(ref v) => v.as_ref(), Self::ClaimableBalanceEntryExtensionV1(ref v) => v.as_ref(), Self::ClaimableBalanceEntryExtensionV1Ext(ref v) => v.as_ref(), @@ -61855,6 +61720,9 @@ impl Type { Self::SorobanTransactionMetaExt(ref v) => v.as_ref(), Self::SorobanTransactionMeta(ref v) => v.as_ref(), Self::TransactionMetaV3(ref v) => v.as_ref(), + Self::OperationMetaV2(ref v) => v.as_ref(), + Self::SorobanTransactionMetaV2(ref v) => v.as_ref(), + Self::TransactionMetaV4(ref v) => v.as_ref(), Self::InvokeHostFunctionSuccessPreImage(ref v) => v.as_ref(), Self::TransactionMeta(ref v) => v.as_ref(), Self::TransactionResultMeta(ref v) => v.as_ref(), @@ -61884,20 +61752,15 @@ impl Type { Self::SignedTimeSlicedSurveyStopCollectingMessage(ref v) => v.as_ref(), Self::SurveyRequestMessage(ref v) => v.as_ref(), Self::TimeSlicedSurveyRequestMessage(ref v) => v.as_ref(), - Self::SignedSurveyRequestMessage(ref v) => v.as_ref(), Self::SignedTimeSlicedSurveyRequestMessage(ref v) => v.as_ref(), Self::EncryptedBody(ref v) => v.as_ref(), Self::SurveyResponseMessage(ref v) => v.as_ref(), Self::TimeSlicedSurveyResponseMessage(ref v) => v.as_ref(), - Self::SignedSurveyResponseMessage(ref v) => v.as_ref(), Self::SignedTimeSlicedSurveyResponseMessage(ref v) => v.as_ref(), Self::PeerStats(ref v) => v.as_ref(), - Self::PeerStatList(ref v) => v.as_ref(), Self::TimeSlicedNodeData(ref v) => v.as_ref(), Self::TimeSlicedPeerData(ref v) => v.as_ref(), Self::TimeSlicedPeerDataList(ref v) => v.as_ref(), - Self::TopologyResponseBodyV0(ref v) => v.as_ref(), - Self::TopologyResponseBodyV1(ref v) => v.as_ref(), Self::TopologyResponseBodyV2(ref v) => v.as_ref(), Self::SurveyResponseBody(ref v) => v.as_ref(), Self::TxAdvertVector(ref v) => v.as_ref(), @@ -62087,6 +61950,9 @@ impl Type { Self::ShortHashSeed(ref v) => v.as_ref(), Self::BinaryFuseFilterType(ref v) => v.as_ref(), Self::SerializedBinaryFuseFilter(ref v) => v.as_ref(), + Self::PoolId(ref v) => v.as_ref(), + Self::ClaimableBalanceIdType(ref v) => v.as_ref(), + Self::ClaimableBalanceId(ref v) => v.as_ref(), } } @@ -62167,6 +62033,7 @@ impl Type { Self::ContractExecutableType(_) => "ContractExecutableType", Self::ContractExecutable(_) => "ContractExecutable", Self::ScAddressType(_) => "ScAddressType", + Self::MuxedEd25519Account(_) => "MuxedEd25519Account", Self::ScAddress(_) => "ScAddress", Self::ScVec(_) => "ScVec", Self::ScMap(_) => "ScMap", @@ -62187,7 +62054,6 @@ impl Type { Self::String64(_) => "String64", Self::SequenceNumber(_) => "SequenceNumber", Self::DataValue(_) => "DataValue", - Self::PoolId(_) => "PoolId", Self::AssetCode4(_) => "AssetCode4", Self::AssetCode12(_) => "AssetCode12", Self::AssetType(_) => "AssetType", @@ -62228,8 +62094,6 @@ impl Type { Self::ClaimantType(_) => "ClaimantType", Self::Claimant(_) => "Claimant", Self::ClaimantV0(_) => "ClaimantV0", - Self::ClaimableBalanceIdType(_) => "ClaimableBalanceIdType", - Self::ClaimableBalanceId(_) => "ClaimableBalanceId", Self::ClaimableBalanceFlags(_) => "ClaimableBalanceFlags", Self::ClaimableBalanceEntryExtensionV1(_) => "ClaimableBalanceEntryExtensionV1", Self::ClaimableBalanceEntryExtensionV1Ext(_) => "ClaimableBalanceEntryExtensionV1Ext", @@ -62328,6 +62192,9 @@ impl Type { Self::SorobanTransactionMetaExt(_) => "SorobanTransactionMetaExt", Self::SorobanTransactionMeta(_) => "SorobanTransactionMeta", Self::TransactionMetaV3(_) => "TransactionMetaV3", + Self::OperationMetaV2(_) => "OperationMetaV2", + Self::SorobanTransactionMetaV2(_) => "SorobanTransactionMetaV2", + Self::TransactionMetaV4(_) => "TransactionMetaV4", Self::InvokeHostFunctionSuccessPreImage(_) => "InvokeHostFunctionSuccessPreImage", Self::TransactionMeta(_) => "TransactionMeta", Self::TransactionResultMeta(_) => "TransactionResultMeta", @@ -62365,22 +62232,17 @@ impl Type { } Self::SurveyRequestMessage(_) => "SurveyRequestMessage", Self::TimeSlicedSurveyRequestMessage(_) => "TimeSlicedSurveyRequestMessage", - Self::SignedSurveyRequestMessage(_) => "SignedSurveyRequestMessage", Self::SignedTimeSlicedSurveyRequestMessage(_) => "SignedTimeSlicedSurveyRequestMessage", Self::EncryptedBody(_) => "EncryptedBody", Self::SurveyResponseMessage(_) => "SurveyResponseMessage", Self::TimeSlicedSurveyResponseMessage(_) => "TimeSlicedSurveyResponseMessage", - Self::SignedSurveyResponseMessage(_) => "SignedSurveyResponseMessage", Self::SignedTimeSlicedSurveyResponseMessage(_) => { "SignedTimeSlicedSurveyResponseMessage" } Self::PeerStats(_) => "PeerStats", - Self::PeerStatList(_) => "PeerStatList", Self::TimeSlicedNodeData(_) => "TimeSlicedNodeData", Self::TimeSlicedPeerData(_) => "TimeSlicedPeerData", Self::TimeSlicedPeerDataList(_) => "TimeSlicedPeerDataList", - Self::TopologyResponseBodyV0(_) => "TopologyResponseBodyV0", - Self::TopologyResponseBodyV1(_) => "TopologyResponseBodyV1", Self::TopologyResponseBodyV2(_) => "TopologyResponseBodyV2", Self::SurveyResponseBody(_) => "SurveyResponseBody", Self::TxAdvertVector(_) => "TxAdvertVector", @@ -62578,12 +62440,15 @@ impl Type { Self::ShortHashSeed(_) => "ShortHashSeed", Self::BinaryFuseFilterType(_) => "BinaryFuseFilterType", Self::SerializedBinaryFuseFilter(_) => "SerializedBinaryFuseFilter", + Self::PoolId(_) => "PoolId", + Self::ClaimableBalanceIdType(_) => "ClaimableBalanceIdType", + Self::ClaimableBalanceId(_) => "ClaimableBalanceId", } } #[must_use] #[allow(clippy::too_many_lines)] - pub const fn variants() -> [TypeVariant; 458] { + pub const fn variants() -> [TypeVariant; 457] { Self::VARIANTS } @@ -62670,6 +62535,7 @@ impl Type { Self::ContractExecutableType(_) => TypeVariant::ContractExecutableType, Self::ContractExecutable(_) => TypeVariant::ContractExecutable, Self::ScAddressType(_) => TypeVariant::ScAddressType, + Self::MuxedEd25519Account(_) => TypeVariant::MuxedEd25519Account, Self::ScAddress(_) => TypeVariant::ScAddress, Self::ScVec(_) => TypeVariant::ScVec, Self::ScMap(_) => TypeVariant::ScMap, @@ -62690,7 +62556,6 @@ impl Type { Self::String64(_) => TypeVariant::String64, Self::SequenceNumber(_) => TypeVariant::SequenceNumber, Self::DataValue(_) => TypeVariant::DataValue, - Self::PoolId(_) => TypeVariant::PoolId, Self::AssetCode4(_) => TypeVariant::AssetCode4, Self::AssetCode12(_) => TypeVariant::AssetCode12, Self::AssetType(_) => TypeVariant::AssetType, @@ -62731,8 +62596,6 @@ impl Type { Self::ClaimantType(_) => TypeVariant::ClaimantType, Self::Claimant(_) => TypeVariant::Claimant, Self::ClaimantV0(_) => TypeVariant::ClaimantV0, - Self::ClaimableBalanceIdType(_) => TypeVariant::ClaimableBalanceIdType, - Self::ClaimableBalanceId(_) => TypeVariant::ClaimableBalanceId, Self::ClaimableBalanceFlags(_) => TypeVariant::ClaimableBalanceFlags, Self::ClaimableBalanceEntryExtensionV1(_) => { TypeVariant::ClaimableBalanceEntryExtensionV1 @@ -62841,6 +62704,9 @@ impl Type { Self::SorobanTransactionMetaExt(_) => TypeVariant::SorobanTransactionMetaExt, Self::SorobanTransactionMeta(_) => TypeVariant::SorobanTransactionMeta, Self::TransactionMetaV3(_) => TypeVariant::TransactionMetaV3, + Self::OperationMetaV2(_) => TypeVariant::OperationMetaV2, + Self::SorobanTransactionMetaV2(_) => TypeVariant::SorobanTransactionMetaV2, + Self::TransactionMetaV4(_) => TypeVariant::TransactionMetaV4, Self::InvokeHostFunctionSuccessPreImage(_) => { TypeVariant::InvokeHostFunctionSuccessPreImage } @@ -62880,7 +62746,6 @@ impl Type { } Self::SurveyRequestMessage(_) => TypeVariant::SurveyRequestMessage, Self::TimeSlicedSurveyRequestMessage(_) => TypeVariant::TimeSlicedSurveyRequestMessage, - Self::SignedSurveyRequestMessage(_) => TypeVariant::SignedSurveyRequestMessage, Self::SignedTimeSlicedSurveyRequestMessage(_) => { TypeVariant::SignedTimeSlicedSurveyRequestMessage } @@ -62889,17 +62754,13 @@ impl Type { Self::TimeSlicedSurveyResponseMessage(_) => { TypeVariant::TimeSlicedSurveyResponseMessage } - Self::SignedSurveyResponseMessage(_) => TypeVariant::SignedSurveyResponseMessage, Self::SignedTimeSlicedSurveyResponseMessage(_) => { TypeVariant::SignedTimeSlicedSurveyResponseMessage } Self::PeerStats(_) => TypeVariant::PeerStats, - Self::PeerStatList(_) => TypeVariant::PeerStatList, Self::TimeSlicedNodeData(_) => TypeVariant::TimeSlicedNodeData, Self::TimeSlicedPeerData(_) => TypeVariant::TimeSlicedPeerData, Self::TimeSlicedPeerDataList(_) => TypeVariant::TimeSlicedPeerDataList, - Self::TopologyResponseBodyV0(_) => TypeVariant::TopologyResponseBodyV0, - Self::TopologyResponseBodyV1(_) => TypeVariant::TopologyResponseBodyV1, Self::TopologyResponseBodyV2(_) => TypeVariant::TopologyResponseBodyV2, Self::SurveyResponseBody(_) => TypeVariant::SurveyResponseBody, Self::TxAdvertVector(_) => TypeVariant::TxAdvertVector, @@ -63119,6 +62980,9 @@ impl Type { Self::ShortHashSeed(_) => TypeVariant::ShortHashSeed, Self::BinaryFuseFilterType(_) => TypeVariant::BinaryFuseFilterType, Self::SerializedBinaryFuseFilter(_) => TypeVariant::SerializedBinaryFuseFilter, + Self::PoolId(_) => TypeVariant::PoolId, + Self::ClaimableBalanceIdType(_) => TypeVariant::ClaimableBalanceIdType, + Self::ClaimableBalanceId(_) => TypeVariant::ClaimableBalanceId, } } } @@ -63208,6 +63072,7 @@ impl WriteXdr for Type { Self::ContractExecutableType(v) => v.write_xdr(w), Self::ContractExecutable(v) => v.write_xdr(w), Self::ScAddressType(v) => v.write_xdr(w), + Self::MuxedEd25519Account(v) => v.write_xdr(w), Self::ScAddress(v) => v.write_xdr(w), Self::ScVec(v) => v.write_xdr(w), Self::ScMap(v) => v.write_xdr(w), @@ -63228,7 +63093,6 @@ impl WriteXdr for Type { Self::String64(v) => v.write_xdr(w), Self::SequenceNumber(v) => v.write_xdr(w), Self::DataValue(v) => v.write_xdr(w), - Self::PoolId(v) => v.write_xdr(w), Self::AssetCode4(v) => v.write_xdr(w), Self::AssetCode12(v) => v.write_xdr(w), Self::AssetType(v) => v.write_xdr(w), @@ -63269,8 +63133,6 @@ impl WriteXdr for Type { Self::ClaimantType(v) => v.write_xdr(w), Self::Claimant(v) => v.write_xdr(w), Self::ClaimantV0(v) => v.write_xdr(w), - Self::ClaimableBalanceIdType(v) => v.write_xdr(w), - Self::ClaimableBalanceId(v) => v.write_xdr(w), Self::ClaimableBalanceFlags(v) => v.write_xdr(w), Self::ClaimableBalanceEntryExtensionV1(v) => v.write_xdr(w), Self::ClaimableBalanceEntryExtensionV1Ext(v) => v.write_xdr(w), @@ -63367,6 +63229,9 @@ impl WriteXdr for Type { Self::SorobanTransactionMetaExt(v) => v.write_xdr(w), Self::SorobanTransactionMeta(v) => v.write_xdr(w), Self::TransactionMetaV3(v) => v.write_xdr(w), + Self::OperationMetaV2(v) => v.write_xdr(w), + Self::SorobanTransactionMetaV2(v) => v.write_xdr(w), + Self::TransactionMetaV4(v) => v.write_xdr(w), Self::InvokeHostFunctionSuccessPreImage(v) => v.write_xdr(w), Self::TransactionMeta(v) => v.write_xdr(w), Self::TransactionResultMeta(v) => v.write_xdr(w), @@ -63396,20 +63261,15 @@ impl WriteXdr for Type { Self::SignedTimeSlicedSurveyStopCollectingMessage(v) => v.write_xdr(w), Self::SurveyRequestMessage(v) => v.write_xdr(w), Self::TimeSlicedSurveyRequestMessage(v) => v.write_xdr(w), - Self::SignedSurveyRequestMessage(v) => v.write_xdr(w), Self::SignedTimeSlicedSurveyRequestMessage(v) => v.write_xdr(w), Self::EncryptedBody(v) => v.write_xdr(w), Self::SurveyResponseMessage(v) => v.write_xdr(w), Self::TimeSlicedSurveyResponseMessage(v) => v.write_xdr(w), - Self::SignedSurveyResponseMessage(v) => v.write_xdr(w), Self::SignedTimeSlicedSurveyResponseMessage(v) => v.write_xdr(w), Self::PeerStats(v) => v.write_xdr(w), - Self::PeerStatList(v) => v.write_xdr(w), Self::TimeSlicedNodeData(v) => v.write_xdr(w), Self::TimeSlicedPeerData(v) => v.write_xdr(w), Self::TimeSlicedPeerDataList(v) => v.write_xdr(w), - Self::TopologyResponseBodyV0(v) => v.write_xdr(w), - Self::TopologyResponseBodyV1(v) => v.write_xdr(w), Self::TopologyResponseBodyV2(v) => v.write_xdr(w), Self::SurveyResponseBody(v) => v.write_xdr(w), Self::TxAdvertVector(v) => v.write_xdr(w), @@ -63599,6 +63459,9 @@ impl WriteXdr for Type { Self::ShortHashSeed(v) => v.write_xdr(w), Self::BinaryFuseFilterType(v) => v.write_xdr(w), Self::SerializedBinaryFuseFilter(v) => v.write_xdr(w), + Self::PoolId(v) => v.write_xdr(w), + Self::ClaimableBalanceIdType(v) => v.write_xdr(w), + Self::ClaimableBalanceId(v) => v.write_xdr(w), } } } diff --git a/src/next/str.rs b/src/next/str.rs index 098dd4e3..7750e342 100644 --- a/src/next/str.rs +++ b/src/next/str.rs @@ -21,12 +21,13 @@ //# //# ## Other //# - ClaimableBalanceId +//# - PoolId #![cfg(feature = "alloc")] use super::{ AccountId, AssetCode, AssetCode12, AssetCode4, ClaimableBalanceId, Error, Hash, MuxedAccount, - MuxedAccountMed25519, NodeId, PublicKey, ScAddress, SignerKey, SignerKeyEd25519SignedPayload, - Uint256, + MuxedAccountMed25519, MuxedEd25519Account, NodeId, PoolId, PublicKey, ScAddress, SignerKey, + SignerKeyEd25519SignedPayload, Uint256, }; impl From for Error { @@ -71,6 +72,19 @@ impl core::str::FromStr for AccountId { } } +impl core::fmt::Display for PoolId { + fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { + self.0.fmt(f) + } +} + +impl core::str::FromStr for PoolId { + type Err = Error; + fn from_str(s: &str) -> core::result::Result { + Ok(PoolId(Hash::from_str(s)?)) + } +} + impl core::fmt::Display for MuxedAccountMed25519 { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { let MuxedAccountMed25519 { @@ -241,8 +255,13 @@ impl core::str::FromStr for ScAddress { stellar_strkey::Strkey::Contract(stellar_strkey::Contract(h)) => { Ok(ScAddress::Contract(Hash(h))) } - stellar_strkey::Strkey::MuxedAccountEd25519(_) - | stellar_strkey::Strkey::PrivateKeyEd25519(_) + stellar_strkey::Strkey::MuxedAccountEd25519(muxed_ed25519) => { + Ok(ScAddress::MuxedAccount(MuxedEd25519Account { + id: muxed_ed25519.id, + ed25519: Uint256(muxed_ed25519.ed25519), + })) + } + stellar_strkey::Strkey::PrivateKeyEd25519(_) | stellar_strkey::Strkey::PreAuthTx(_) | stellar_strkey::Strkey::HashX(_) | stellar_strkey::Strkey::SignedPayloadEd25519(_) => Err(Error::Invalid), @@ -253,14 +272,25 @@ impl core::str::FromStr for ScAddress { impl core::fmt::Display for ScAddress { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { match self { - ScAddress::Account(a) => a.fmt(f)?, + ScAddress::Account(a) => a.fmt(f), ScAddress::Contract(Hash(h)) => { let k = stellar_strkey::Contract(*h); let s = k.to_string(); - f.write_str(&s)?; + f.write_str(&s) + } + ScAddress::MuxedAccount(muxed_ed25519_account) => { + let k = stellar_strkey::Strkey::MuxedAccountEd25519( + stellar_strkey::ed25519::MuxedAccount { + ed25519: muxed_ed25519_account.ed25519.0.clone(), + id: muxed_ed25519_account.id, + }, + ); + let s = k.to_string(); + f.write_str(&s) } + ScAddress::ClaimableBalance(claimable_balance_id) => claimable_balance_id.fmt(f), + ScAddress::LiquidityPool(pool_id) => pool_id.fmt(f), } - Ok(()) } } diff --git a/xdr-json/curr/AuthenticatedMessage.json b/xdr-json/curr/AuthenticatedMessage.json index ab69c02a..e3f6fd5e 100644 --- a/xdr-json/curr/AuthenticatedMessage.json +++ b/xdr-json/curr/AuthenticatedMessage.json @@ -1660,7 +1660,7 @@ ] }, "MessageType": { - "description": "MessageType is an XDR Enum defines as:\n\n```text enum MessageType { ERROR_MSG = 0, AUTH = 2, DONT_HAVE = 3, // GET_PEERS (4) is deprecated\n\nPEERS = 5,\n\nGET_TX_SET = 6, // gets a particular txset by hash TX_SET = 7, GENERALIZED_TX_SET = 17,\n\nTRANSACTION = 8, // pass on a tx you have heard about\n\n// SCP GET_SCP_QUORUMSET = 9, SCP_QUORUMSET = 10, SCP_MESSAGE = 11, GET_SCP_STATE = 12,\n\n// new messages HELLO = 13,\n\nSURVEY_REQUEST = 14, SURVEY_RESPONSE = 15,\n\nSEND_MORE = 16, SEND_MORE_EXTENDED = 20,\n\nFLOOD_ADVERT = 18, FLOOD_DEMAND = 19,\n\nTIME_SLICED_SURVEY_REQUEST = 21, TIME_SLICED_SURVEY_RESPONSE = 22, TIME_SLICED_SURVEY_START_COLLECTING = 23, TIME_SLICED_SURVEY_STOP_COLLECTING = 24 }; ```", + "description": "MessageType is an XDR Enum defines as:\n\n```text enum MessageType { ERROR_MSG = 0, AUTH = 2, DONT_HAVE = 3, // GET_PEERS (4) is deprecated\n\nPEERS = 5,\n\nGET_TX_SET = 6, // gets a particular txset by hash TX_SET = 7, GENERALIZED_TX_SET = 17,\n\nTRANSACTION = 8, // pass on a tx you have heard about\n\n// SCP GET_SCP_QUORUMSET = 9, SCP_QUORUMSET = 10, SCP_MESSAGE = 11, GET_SCP_STATE = 12,\n\n// new messages HELLO = 13,\n\n// SURVEY_REQUEST (14) removed and replaced by TIME_SLICED_SURVEY_REQUEST // SURVEY_RESPONSE (15) removed and replaced by TIME_SLICED_SURVEY_RESPONSE\n\nSEND_MORE = 16, SEND_MORE_EXTENDED = 20,\n\nFLOOD_ADVERT = 18, FLOOD_DEMAND = 19,\n\nTIME_SLICED_SURVEY_REQUEST = 21, TIME_SLICED_SURVEY_RESPONSE = 22, TIME_SLICED_SURVEY_START_COLLECTING = 23, TIME_SLICED_SURVEY_STOP_COLLECTING = 24 }; ```", "type": "string", "enum": [ "error_msg", @@ -1676,8 +1676,6 @@ "scp_message", "get_scp_state", "hello", - "survey_request", - "survey_response", "send_more", "send_more_extended", "flood_advert", @@ -3326,38 +3324,6 @@ "contentEncoding": "hex", "contentMediaType": "application/binary" }, - "SignedSurveyRequestMessage": { - "description": "SignedSurveyRequestMessage is an XDR Struct defines as:\n\n```text struct SignedSurveyRequestMessage { Signature requestSignature; SurveyRequestMessage request; }; ```", - "type": "object", - "required": [ - "request", - "request_signature" - ], - "properties": { - "request": { - "$ref": "#/definitions/SurveyRequestMessage" - }, - "request_signature": { - "$ref": "#/definitions/Signature" - } - } - }, - "SignedSurveyResponseMessage": { - "description": "SignedSurveyResponseMessage is an XDR Struct defines as:\n\n```text struct SignedSurveyResponseMessage { Signature responseSignature; SurveyResponseMessage response; }; ```", - "type": "object", - "required": [ - "response", - "response_signature" - ], - "properties": { - "response": { - "$ref": "#/definitions/SurveyResponseMessage" - }, - "response_signature": { - "$ref": "#/definitions/Signature" - } - } - }, "SignedTimeSlicedSurveyRequestMessage": { "description": "SignedTimeSlicedSurveyRequestMessage is an XDR Struct defines as:\n\n```text struct SignedTimeSlicedSurveyRequestMessage { Signature requestSignature; TimeSlicedSurveyRequestMessage request; }; ```", "type": "object", @@ -3622,7 +3588,7 @@ } }, "StellarMessage": { - "description": "StellarMessage is an XDR Union defines as:\n\n```text union StellarMessage switch (MessageType type) { case ERROR_MSG: Error error; case HELLO: Hello hello; case AUTH: Auth auth; case DONT_HAVE: DontHave dontHave; case PEERS: PeerAddress peers<100>;\n\ncase GET_TX_SET: uint256 txSetHash; case TX_SET: TransactionSet txSet; case GENERALIZED_TX_SET: GeneralizedTransactionSet generalizedTxSet;\n\ncase TRANSACTION: TransactionEnvelope transaction;\n\ncase SURVEY_REQUEST: SignedSurveyRequestMessage signedSurveyRequestMessage;\n\ncase SURVEY_RESPONSE: SignedSurveyResponseMessage signedSurveyResponseMessage;\n\ncase TIME_SLICED_SURVEY_REQUEST: SignedTimeSlicedSurveyRequestMessage signedTimeSlicedSurveyRequestMessage;\n\ncase TIME_SLICED_SURVEY_RESPONSE: SignedTimeSlicedSurveyResponseMessage signedTimeSlicedSurveyResponseMessage;\n\ncase TIME_SLICED_SURVEY_START_COLLECTING: SignedTimeSlicedSurveyStartCollectingMessage signedTimeSlicedSurveyStartCollectingMessage;\n\ncase TIME_SLICED_SURVEY_STOP_COLLECTING: SignedTimeSlicedSurveyStopCollectingMessage signedTimeSlicedSurveyStopCollectingMessage;\n\n// SCP case GET_SCP_QUORUMSET: uint256 qSetHash; case SCP_QUORUMSET: SCPQuorumSet qSet; case SCP_MESSAGE: SCPEnvelope envelope; case GET_SCP_STATE: uint32 getSCPLedgerSeq; // ledger seq requested ; if 0, requests the latest case SEND_MORE: SendMore sendMoreMessage; case SEND_MORE_EXTENDED: SendMoreExtended sendMoreExtendedMessage; // Pull mode case FLOOD_ADVERT: FloodAdvert floodAdvert; case FLOOD_DEMAND: FloodDemand floodDemand; }; ```", + "description": "StellarMessage is an XDR Union defines as:\n\n```text union StellarMessage switch (MessageType type) { case ERROR_MSG: Error error; case HELLO: Hello hello; case AUTH: Auth auth; case DONT_HAVE: DontHave dontHave; case PEERS: PeerAddress peers<100>;\n\ncase GET_TX_SET: uint256 txSetHash; case TX_SET: TransactionSet txSet; case GENERALIZED_TX_SET: GeneralizedTransactionSet generalizedTxSet;\n\ncase TRANSACTION: TransactionEnvelope transaction;\n\ncase TIME_SLICED_SURVEY_REQUEST: SignedTimeSlicedSurveyRequestMessage signedTimeSlicedSurveyRequestMessage;\n\ncase TIME_SLICED_SURVEY_RESPONSE: SignedTimeSlicedSurveyResponseMessage signedTimeSlicedSurveyResponseMessage;\n\ncase TIME_SLICED_SURVEY_START_COLLECTING: SignedTimeSlicedSurveyStartCollectingMessage signedTimeSlicedSurveyStartCollectingMessage;\n\ncase TIME_SLICED_SURVEY_STOP_COLLECTING: SignedTimeSlicedSurveyStopCollectingMessage signedTimeSlicedSurveyStopCollectingMessage;\n\n// SCP case GET_SCP_QUORUMSET: uint256 qSetHash; case SCP_QUORUMSET: SCPQuorumSet qSet; case SCP_MESSAGE: SCPEnvelope envelope; case GET_SCP_STATE: uint32 getSCPLedgerSeq; // ledger seq requested ; if 0, requests the latest case SEND_MORE: SendMore sendMoreMessage; case SEND_MORE_EXTENDED: SendMoreExtended sendMoreExtendedMessage; // Pull mode case FLOOD_ADVERT: FloodAdvert floodAdvert; case FLOOD_DEMAND: FloodDemand floodDemand; }; ```", "oneOf": [ { "type": "object", @@ -3740,30 +3706,6 @@ }, "additionalProperties": false }, - { - "type": "object", - "required": [ - "survey_request" - ], - "properties": { - "survey_request": { - "$ref": "#/definitions/SignedSurveyRequestMessage" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "survey_response" - ], - "properties": { - "survey_response": { - "$ref": "#/definitions/SignedSurveyResponseMessage" - } - }, - "additionalProperties": false - }, { "type": "object", "required": [ @@ -3945,10 +3887,9 @@ "maxLength": 64 }, "SurveyMessageCommandType": { - "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", + "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", "type": "string", "enum": [ - "survey_topology", "time_sliced_survey_topology" ] }, diff --git a/xdr-json/curr/AuthenticatedMessageV0.json b/xdr-json/curr/AuthenticatedMessageV0.json index 5cef39f8..6e0d2f50 100644 --- a/xdr-json/curr/AuthenticatedMessageV0.json +++ b/xdr-json/curr/AuthenticatedMessageV0.json @@ -1643,7 +1643,7 @@ ] }, "MessageType": { - "description": "MessageType is an XDR Enum defines as:\n\n```text enum MessageType { ERROR_MSG = 0, AUTH = 2, DONT_HAVE = 3, // GET_PEERS (4) is deprecated\n\nPEERS = 5,\n\nGET_TX_SET = 6, // gets a particular txset by hash TX_SET = 7, GENERALIZED_TX_SET = 17,\n\nTRANSACTION = 8, // pass on a tx you have heard about\n\n// SCP GET_SCP_QUORUMSET = 9, SCP_QUORUMSET = 10, SCP_MESSAGE = 11, GET_SCP_STATE = 12,\n\n// new messages HELLO = 13,\n\nSURVEY_REQUEST = 14, SURVEY_RESPONSE = 15,\n\nSEND_MORE = 16, SEND_MORE_EXTENDED = 20,\n\nFLOOD_ADVERT = 18, FLOOD_DEMAND = 19,\n\nTIME_SLICED_SURVEY_REQUEST = 21, TIME_SLICED_SURVEY_RESPONSE = 22, TIME_SLICED_SURVEY_START_COLLECTING = 23, TIME_SLICED_SURVEY_STOP_COLLECTING = 24 }; ```", + "description": "MessageType is an XDR Enum defines as:\n\n```text enum MessageType { ERROR_MSG = 0, AUTH = 2, DONT_HAVE = 3, // GET_PEERS (4) is deprecated\n\nPEERS = 5,\n\nGET_TX_SET = 6, // gets a particular txset by hash TX_SET = 7, GENERALIZED_TX_SET = 17,\n\nTRANSACTION = 8, // pass on a tx you have heard about\n\n// SCP GET_SCP_QUORUMSET = 9, SCP_QUORUMSET = 10, SCP_MESSAGE = 11, GET_SCP_STATE = 12,\n\n// new messages HELLO = 13,\n\n// SURVEY_REQUEST (14) removed and replaced by TIME_SLICED_SURVEY_REQUEST // SURVEY_RESPONSE (15) removed and replaced by TIME_SLICED_SURVEY_RESPONSE\n\nSEND_MORE = 16, SEND_MORE_EXTENDED = 20,\n\nFLOOD_ADVERT = 18, FLOOD_DEMAND = 19,\n\nTIME_SLICED_SURVEY_REQUEST = 21, TIME_SLICED_SURVEY_RESPONSE = 22, TIME_SLICED_SURVEY_START_COLLECTING = 23, TIME_SLICED_SURVEY_STOP_COLLECTING = 24 }; ```", "type": "string", "enum": [ "error_msg", @@ -1659,8 +1659,6 @@ "scp_message", "get_scp_state", "hello", - "survey_request", - "survey_response", "send_more", "send_more_extended", "flood_advert", @@ -3309,38 +3307,6 @@ "contentEncoding": "hex", "contentMediaType": "application/binary" }, - "SignedSurveyRequestMessage": { - "description": "SignedSurveyRequestMessage is an XDR Struct defines as:\n\n```text struct SignedSurveyRequestMessage { Signature requestSignature; SurveyRequestMessage request; }; ```", - "type": "object", - "required": [ - "request", - "request_signature" - ], - "properties": { - "request": { - "$ref": "#/definitions/SurveyRequestMessage" - }, - "request_signature": { - "$ref": "#/definitions/Signature" - } - } - }, - "SignedSurveyResponseMessage": { - "description": "SignedSurveyResponseMessage is an XDR Struct defines as:\n\n```text struct SignedSurveyResponseMessage { Signature responseSignature; SurveyResponseMessage response; }; ```", - "type": "object", - "required": [ - "response", - "response_signature" - ], - "properties": { - "response": { - "$ref": "#/definitions/SurveyResponseMessage" - }, - "response_signature": { - "$ref": "#/definitions/Signature" - } - } - }, "SignedTimeSlicedSurveyRequestMessage": { "description": "SignedTimeSlicedSurveyRequestMessage is an XDR Struct defines as:\n\n```text struct SignedTimeSlicedSurveyRequestMessage { Signature requestSignature; TimeSlicedSurveyRequestMessage request; }; ```", "type": "object", @@ -3605,7 +3571,7 @@ } }, "StellarMessage": { - "description": "StellarMessage is an XDR Union defines as:\n\n```text union StellarMessage switch (MessageType type) { case ERROR_MSG: Error error; case HELLO: Hello hello; case AUTH: Auth auth; case DONT_HAVE: DontHave dontHave; case PEERS: PeerAddress peers<100>;\n\ncase GET_TX_SET: uint256 txSetHash; case TX_SET: TransactionSet txSet; case GENERALIZED_TX_SET: GeneralizedTransactionSet generalizedTxSet;\n\ncase TRANSACTION: TransactionEnvelope transaction;\n\ncase SURVEY_REQUEST: SignedSurveyRequestMessage signedSurveyRequestMessage;\n\ncase SURVEY_RESPONSE: SignedSurveyResponseMessage signedSurveyResponseMessage;\n\ncase TIME_SLICED_SURVEY_REQUEST: SignedTimeSlicedSurveyRequestMessage signedTimeSlicedSurveyRequestMessage;\n\ncase TIME_SLICED_SURVEY_RESPONSE: SignedTimeSlicedSurveyResponseMessage signedTimeSlicedSurveyResponseMessage;\n\ncase TIME_SLICED_SURVEY_START_COLLECTING: SignedTimeSlicedSurveyStartCollectingMessage signedTimeSlicedSurveyStartCollectingMessage;\n\ncase TIME_SLICED_SURVEY_STOP_COLLECTING: SignedTimeSlicedSurveyStopCollectingMessage signedTimeSlicedSurveyStopCollectingMessage;\n\n// SCP case GET_SCP_QUORUMSET: uint256 qSetHash; case SCP_QUORUMSET: SCPQuorumSet qSet; case SCP_MESSAGE: SCPEnvelope envelope; case GET_SCP_STATE: uint32 getSCPLedgerSeq; // ledger seq requested ; if 0, requests the latest case SEND_MORE: SendMore sendMoreMessage; case SEND_MORE_EXTENDED: SendMoreExtended sendMoreExtendedMessage; // Pull mode case FLOOD_ADVERT: FloodAdvert floodAdvert; case FLOOD_DEMAND: FloodDemand floodDemand; }; ```", + "description": "StellarMessage is an XDR Union defines as:\n\n```text union StellarMessage switch (MessageType type) { case ERROR_MSG: Error error; case HELLO: Hello hello; case AUTH: Auth auth; case DONT_HAVE: DontHave dontHave; case PEERS: PeerAddress peers<100>;\n\ncase GET_TX_SET: uint256 txSetHash; case TX_SET: TransactionSet txSet; case GENERALIZED_TX_SET: GeneralizedTransactionSet generalizedTxSet;\n\ncase TRANSACTION: TransactionEnvelope transaction;\n\ncase TIME_SLICED_SURVEY_REQUEST: SignedTimeSlicedSurveyRequestMessage signedTimeSlicedSurveyRequestMessage;\n\ncase TIME_SLICED_SURVEY_RESPONSE: SignedTimeSlicedSurveyResponseMessage signedTimeSlicedSurveyResponseMessage;\n\ncase TIME_SLICED_SURVEY_START_COLLECTING: SignedTimeSlicedSurveyStartCollectingMessage signedTimeSlicedSurveyStartCollectingMessage;\n\ncase TIME_SLICED_SURVEY_STOP_COLLECTING: SignedTimeSlicedSurveyStopCollectingMessage signedTimeSlicedSurveyStopCollectingMessage;\n\n// SCP case GET_SCP_QUORUMSET: uint256 qSetHash; case SCP_QUORUMSET: SCPQuorumSet qSet; case SCP_MESSAGE: SCPEnvelope envelope; case GET_SCP_STATE: uint32 getSCPLedgerSeq; // ledger seq requested ; if 0, requests the latest case SEND_MORE: SendMore sendMoreMessage; case SEND_MORE_EXTENDED: SendMoreExtended sendMoreExtendedMessage; // Pull mode case FLOOD_ADVERT: FloodAdvert floodAdvert; case FLOOD_DEMAND: FloodDemand floodDemand; }; ```", "oneOf": [ { "type": "object", @@ -3723,30 +3689,6 @@ }, "additionalProperties": false }, - { - "type": "object", - "required": [ - "survey_request" - ], - "properties": { - "survey_request": { - "$ref": "#/definitions/SignedSurveyRequestMessage" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "survey_response" - ], - "properties": { - "survey_response": { - "$ref": "#/definitions/SignedSurveyResponseMessage" - } - }, - "additionalProperties": false - }, { "type": "object", "required": [ @@ -3928,10 +3870,9 @@ "maxLength": 64 }, "SurveyMessageCommandType": { - "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", + "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", "type": "string", "enum": [ - "survey_topology", "time_sliced_survey_topology" ] }, diff --git a/xdr-json/curr/BucketEntry.json b/xdr-json/curr/BucketEntry.json index 4b4e5859..3b9797f8 100644 --- a/xdr-json/curr/BucketEntry.json +++ b/xdr-json/curr/BucketEntry.json @@ -336,11 +336,12 @@ "type": "string" }, "BucketListType": { - "description": "BucketListType is an XDR Enum defines as:\n\n```text enum BucketListType { LIVE = 0, HOT_ARCHIVE = 1 }; ```", + "description": "BucketListType is an XDR Enum defines as:\n\n```text enum BucketListType { LIVE = 0, HOT_ARCHIVE = 1, COLD_ARCHIVE = 2 }; ```", "type": "string", "enum": [ "live", - "hot_archive" + "hot_archive", + "cold_archive" ] }, "BucketMetadata": { diff --git a/xdr-json/curr/BucketListType.json b/xdr-json/curr/BucketListType.json index 8dbf81b4..5268c98c 100644 --- a/xdr-json/curr/BucketListType.json +++ b/xdr-json/curr/BucketListType.json @@ -1,10 +1,11 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "BucketListType", - "description": "BucketListType is an XDR Enum defines as:\n\n```text enum BucketListType { LIVE = 0, HOT_ARCHIVE = 1 }; ```", + "description": "BucketListType is an XDR Enum defines as:\n\n```text enum BucketListType { LIVE = 0, HOT_ARCHIVE = 1, COLD_ARCHIVE = 2 }; ```", "type": "string", "enum": [ "live", - "hot_archive" + "hot_archive", + "cold_archive" ] } \ No newline at end of file diff --git a/xdr-json/curr/BucketMetadata.json b/xdr-json/curr/BucketMetadata.json index 81604063..6abffcef 100644 --- a/xdr-json/curr/BucketMetadata.json +++ b/xdr-json/curr/BucketMetadata.json @@ -19,11 +19,12 @@ }, "definitions": { "BucketListType": { - "description": "BucketListType is an XDR Enum defines as:\n\n```text enum BucketListType { LIVE = 0, HOT_ARCHIVE = 1 }; ```", + "description": "BucketListType is an XDR Enum defines as:\n\n```text enum BucketListType { LIVE = 0, HOT_ARCHIVE = 1, COLD_ARCHIVE = 2 }; ```", "type": "string", "enum": [ "live", - "hot_archive" + "hot_archive", + "cold_archive" ] }, "BucketMetadataExt": { diff --git a/xdr-json/curr/BucketMetadataExt.json b/xdr-json/curr/BucketMetadataExt.json index 69e3bb5c..c979dce2 100644 --- a/xdr-json/curr/BucketMetadataExt.json +++ b/xdr-json/curr/BucketMetadataExt.json @@ -24,11 +24,12 @@ ], "definitions": { "BucketListType": { - "description": "BucketListType is an XDR Enum defines as:\n\n```text enum BucketListType { LIVE = 0, HOT_ARCHIVE = 1 }; ```", + "description": "BucketListType is an XDR Enum defines as:\n\n```text enum BucketListType { LIVE = 0, HOT_ARCHIVE = 1, COLD_ARCHIVE = 2 }; ```", "type": "string", "enum": [ "live", - "hot_archive" + "hot_archive", + "cold_archive" ] } } diff --git a/xdr-json/curr/ColdArchiveBucketEntry.json b/xdr-json/curr/ColdArchiveBucketEntry.json index e743ea2f..49d85df5 100644 --- a/xdr-json/curr/ColdArchiveBucketEntry.json +++ b/xdr-json/curr/ColdArchiveBucketEntry.json @@ -348,11 +348,12 @@ "type": "string" }, "BucketListType": { - "description": "BucketListType is an XDR Enum defines as:\n\n```text enum BucketListType { LIVE = 0, HOT_ARCHIVE = 1 }; ```", + "description": "BucketListType is an XDR Enum defines as:\n\n```text enum BucketListType { LIVE = 0, HOT_ARCHIVE = 1, COLD_ARCHIVE = 2 }; ```", "type": "string", "enum": [ "live", - "hot_archive" + "hot_archive", + "cold_archive" ] }, "BucketMetadata": { diff --git a/xdr-json/curr/DontHave.json b/xdr-json/curr/DontHave.json index a37d49c1..c720bbeb 100644 --- a/xdr-json/curr/DontHave.json +++ b/xdr-json/curr/DontHave.json @@ -21,7 +21,7 @@ }, "definitions": { "MessageType": { - "description": "MessageType is an XDR Enum defines as:\n\n```text enum MessageType { ERROR_MSG = 0, AUTH = 2, DONT_HAVE = 3, // GET_PEERS (4) is deprecated\n\nPEERS = 5,\n\nGET_TX_SET = 6, // gets a particular txset by hash TX_SET = 7, GENERALIZED_TX_SET = 17,\n\nTRANSACTION = 8, // pass on a tx you have heard about\n\n// SCP GET_SCP_QUORUMSET = 9, SCP_QUORUMSET = 10, SCP_MESSAGE = 11, GET_SCP_STATE = 12,\n\n// new messages HELLO = 13,\n\nSURVEY_REQUEST = 14, SURVEY_RESPONSE = 15,\n\nSEND_MORE = 16, SEND_MORE_EXTENDED = 20,\n\nFLOOD_ADVERT = 18, FLOOD_DEMAND = 19,\n\nTIME_SLICED_SURVEY_REQUEST = 21, TIME_SLICED_SURVEY_RESPONSE = 22, TIME_SLICED_SURVEY_START_COLLECTING = 23, TIME_SLICED_SURVEY_STOP_COLLECTING = 24 }; ```", + "description": "MessageType is an XDR Enum defines as:\n\n```text enum MessageType { ERROR_MSG = 0, AUTH = 2, DONT_HAVE = 3, // GET_PEERS (4) is deprecated\n\nPEERS = 5,\n\nGET_TX_SET = 6, // gets a particular txset by hash TX_SET = 7, GENERALIZED_TX_SET = 17,\n\nTRANSACTION = 8, // pass on a tx you have heard about\n\n// SCP GET_SCP_QUORUMSET = 9, SCP_QUORUMSET = 10, SCP_MESSAGE = 11, GET_SCP_STATE = 12,\n\n// new messages HELLO = 13,\n\n// SURVEY_REQUEST (14) removed and replaced by TIME_SLICED_SURVEY_REQUEST // SURVEY_RESPONSE (15) removed and replaced by TIME_SLICED_SURVEY_RESPONSE\n\nSEND_MORE = 16, SEND_MORE_EXTENDED = 20,\n\nFLOOD_ADVERT = 18, FLOOD_DEMAND = 19,\n\nTIME_SLICED_SURVEY_REQUEST = 21, TIME_SLICED_SURVEY_RESPONSE = 22, TIME_SLICED_SURVEY_START_COLLECTING = 23, TIME_SLICED_SURVEY_STOP_COLLECTING = 24 }; ```", "type": "string", "enum": [ "error_msg", @@ -37,8 +37,6 @@ "scp_message", "get_scp_state", "hello", - "survey_request", - "survey_response", "send_more", "send_more_extended", "flood_advert", diff --git a/xdr-json/curr/HotArchiveBucketEntry.json b/xdr-json/curr/HotArchiveBucketEntry.json index ee1f0f0f..7f8d9caf 100644 --- a/xdr-json/curr/HotArchiveBucketEntry.json +++ b/xdr-json/curr/HotArchiveBucketEntry.json @@ -336,11 +336,12 @@ "type": "string" }, "BucketListType": { - "description": "BucketListType is an XDR Enum defines as:\n\n```text enum BucketListType { LIVE = 0, HOT_ARCHIVE = 1 }; ```", + "description": "BucketListType is an XDR Enum defines as:\n\n```text enum BucketListType { LIVE = 0, HOT_ARCHIVE = 1, COLD_ARCHIVE = 2 }; ```", "type": "string", "enum": [ "live", - "hot_archive" + "hot_archive", + "cold_archive" ] }, "BucketMetadata": { diff --git a/xdr-json/curr/LedgerCloseMeta.json b/xdr-json/curr/LedgerCloseMeta.json index 1155c268..8034f638 100644 --- a/xdr-json/curr/LedgerCloseMeta.json +++ b/xdr-json/curr/LedgerCloseMeta.json @@ -4344,6 +4344,38 @@ } } }, + "OperationMetaV2": { + "description": "OperationMetaV2 is an XDR Struct defines as:\n\n```text struct OperationMetaV2 { ExtensionPoint ext;\n\nLedgerEntryChanges changes;\n\nContractEvent events<>; DiagnosticEvent diagnosticEvents<>; }; ```", + "type": "object", + "required": [ + "changes", + "diagnostic_events", + "events", + "ext" + ], + "properties": { + "changes": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "diagnostic_events": { + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticEvent" + }, + "maxItems": 4294967295 + }, + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/ContractEvent" + }, + "maxItems": 4294967295 + }, + "ext": { + "$ref": "#/definitions/ExtensionPoint" + } + } + }, "OperationResult": { "description": "OperationResult is an XDR Union defines as:\n\n```text union OperationResult switch (OperationResultCode code) { case opINNER: union switch (OperationType type) { case CREATE_ACCOUNT: CreateAccountResult createAccountResult; case PAYMENT: PaymentResult paymentResult; case PATH_PAYMENT_STRICT_RECEIVE: PathPaymentStrictReceiveResult pathPaymentStrictReceiveResult; case MANAGE_SELL_OFFER: ManageSellOfferResult manageSellOfferResult; case CREATE_PASSIVE_SELL_OFFER: ManageSellOfferResult createPassiveSellOfferResult; case SET_OPTIONS: SetOptionsResult setOptionsResult; case CHANGE_TRUST: ChangeTrustResult changeTrustResult; case ALLOW_TRUST: AllowTrustResult allowTrustResult; case ACCOUNT_MERGE: AccountMergeResult accountMergeResult; case INFLATION: InflationResult inflationResult; case MANAGE_DATA: ManageDataResult manageDataResult; case BUMP_SEQUENCE: BumpSequenceResult bumpSeqResult; case MANAGE_BUY_OFFER: ManageBuyOfferResult manageBuyOfferResult; case PATH_PAYMENT_STRICT_SEND: PathPaymentStrictSendResult pathPaymentStrictSendResult; case CREATE_CLAIMABLE_BALANCE: CreateClaimableBalanceResult createClaimableBalanceResult; case CLAIM_CLAIMABLE_BALANCE: ClaimClaimableBalanceResult claimClaimableBalanceResult; case BEGIN_SPONSORING_FUTURE_RESERVES: BeginSponsoringFutureReservesResult beginSponsoringFutureReservesResult; case END_SPONSORING_FUTURE_RESERVES: EndSponsoringFutureReservesResult endSponsoringFutureReservesResult; case REVOKE_SPONSORSHIP: RevokeSponsorshipResult revokeSponsorshipResult; case CLAWBACK: ClawbackResult clawbackResult; case CLAWBACK_CLAIMABLE_BALANCE: ClawbackClaimableBalanceResult clawbackClaimableBalanceResult; case SET_TRUST_LINE_FLAGS: SetTrustLineFlagsResult setTrustLineFlagsResult; case LIQUIDITY_POOL_DEPOSIT: LiquidityPoolDepositResult liquidityPoolDepositResult; case LIQUIDITY_POOL_WITHDRAW: LiquidityPoolWithdrawResult liquidityPoolWithdrawResult; case INVOKE_HOST_FUNCTION: InvokeHostFunctionResult invokeHostFunctionResult; case EXTEND_FOOTPRINT_TTL: ExtendFootprintTTLResult extendFootprintTTLResult; case RESTORE_FOOTPRINT: RestoreFootprintResult restoreFootprintResult; } tr; case opBAD_AUTH: case opNO_ACCOUNT: case opNOT_SUPPORTED: case opTOO_MANY_SUBENTRIES: case opEXCEEDED_WORK_LIMIT: case opTOO_MANY_SPONSORING: void; }; ```", "oneOf": [ @@ -6418,6 +6450,22 @@ } } }, + "SorobanTransactionMetaV2": { + "description": "SorobanTransactionMetaV2 is an XDR Struct defines as:\n\n```text struct SorobanTransactionMetaV2 { SorobanTransactionMetaExt ext;\n\nSCVal returnValue; }; ```", + "type": "object", + "required": [ + "ext", + "return_value" + ], + "properties": { + "ext": { + "$ref": "#/definitions/SorobanTransactionMetaExt" + }, + "return_value": { + "$ref": "#/definitions/ScVal" + } + } + }, "SponsorshipDescriptor": { "description": "SponsorshipDescriptor is an XDR Typedef defines as:\n\n```text typedef AccountID* SponsorshipDescriptor; ```", "anyOf": [ @@ -6703,7 +6751,7 @@ ] }, "TransactionMeta": { - "description": "TransactionMeta is an XDR Union defines as:\n\n```text union TransactionMeta switch (int v) { case 0: OperationMeta operations<>; case 1: TransactionMetaV1 v1; case 2: TransactionMetaV2 v2; case 3: TransactionMetaV3 v3; }; ```", + "description": "TransactionMeta is an XDR Union defines as:\n\n```text union TransactionMeta switch (int v) { case 0: OperationMeta operations<>; case 1: TransactionMetaV1 v1; case 2: TransactionMetaV2 v2; case 3: TransactionMetaV3 v3; case 4: TransactionMetaV4 v4; }; ```", "oneOf": [ { "type": "object", @@ -6756,6 +6804,18 @@ } }, "additionalProperties": false + }, + { + "type": "object", + "required": [ + "v4" + ], + "properties": { + "v4": { + "$ref": "#/definitions/TransactionMetaV4" + } + }, + "additionalProperties": false } ] }, @@ -6841,6 +6901,60 @@ } } }, + "TransactionMetaV4": { + "description": "TransactionMetaV4 is an XDR Struct defines as:\n\n```text struct TransactionMetaV4 { ExtensionPoint ext;\n\nLedgerEntryChanges txChangesBefore; // tx level changes before operations // are applied if any OperationMetaV2 operations<>; // meta for each operation LedgerEntryChanges txChangesAfter; // tx level changes after operations are // applied if any SorobanTransactionMetaV2* sorobanMeta; // Soroban-specific meta (only for // Soroban transactions).\n\nContractEvent events<>; // Used for transaction-level events (like fee payment) DiagnosticEvent txDiagnosticEvents<>; // Used for transaction-level diagnostic // information }; ```", + "type": "object", + "required": [ + "events", + "ext", + "operations", + "tx_changes_after", + "tx_changes_before", + "tx_diagnostic_events" + ], + "properties": { + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/ContractEvent" + }, + "maxItems": 4294967295 + }, + "ext": { + "$ref": "#/definitions/ExtensionPoint" + }, + "operations": { + "type": "array", + "items": { + "$ref": "#/definitions/OperationMetaV2" + }, + "maxItems": 4294967295 + }, + "soroban_meta": { + "anyOf": [ + { + "$ref": "#/definitions/SorobanTransactionMetaV2" + }, + { + "type": "null" + } + ] + }, + "tx_changes_after": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "tx_changes_before": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "tx_diagnostic_events": { + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticEvent" + }, + "maxItems": 4294967295 + } + } + }, "TransactionPhase": { "description": "TransactionPhase is an XDR Union defines as:\n\n```text union TransactionPhase switch (int v) { case 0: TxSetComponent v0Components<>; }; ```", "oneOf": [ diff --git a/xdr-json/curr/LedgerCloseMetaV0.json b/xdr-json/curr/LedgerCloseMetaV0.json index 36355379..10262980 100644 --- a/xdr-json/curr/LedgerCloseMetaV0.json +++ b/xdr-json/curr/LedgerCloseMetaV0.json @@ -4192,6 +4192,38 @@ } } }, + "OperationMetaV2": { + "description": "OperationMetaV2 is an XDR Struct defines as:\n\n```text struct OperationMetaV2 { ExtensionPoint ext;\n\nLedgerEntryChanges changes;\n\nContractEvent events<>; DiagnosticEvent diagnosticEvents<>; }; ```", + "type": "object", + "required": [ + "changes", + "diagnostic_events", + "events", + "ext" + ], + "properties": { + "changes": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "diagnostic_events": { + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticEvent" + }, + "maxItems": 4294967295 + }, + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/ContractEvent" + }, + "maxItems": 4294967295 + }, + "ext": { + "$ref": "#/definitions/ExtensionPoint" + } + } + }, "OperationResult": { "description": "OperationResult is an XDR Union defines as:\n\n```text union OperationResult switch (OperationResultCode code) { case opINNER: union switch (OperationType type) { case CREATE_ACCOUNT: CreateAccountResult createAccountResult; case PAYMENT: PaymentResult paymentResult; case PATH_PAYMENT_STRICT_RECEIVE: PathPaymentStrictReceiveResult pathPaymentStrictReceiveResult; case MANAGE_SELL_OFFER: ManageSellOfferResult manageSellOfferResult; case CREATE_PASSIVE_SELL_OFFER: ManageSellOfferResult createPassiveSellOfferResult; case SET_OPTIONS: SetOptionsResult setOptionsResult; case CHANGE_TRUST: ChangeTrustResult changeTrustResult; case ALLOW_TRUST: AllowTrustResult allowTrustResult; case ACCOUNT_MERGE: AccountMergeResult accountMergeResult; case INFLATION: InflationResult inflationResult; case MANAGE_DATA: ManageDataResult manageDataResult; case BUMP_SEQUENCE: BumpSequenceResult bumpSeqResult; case MANAGE_BUY_OFFER: ManageBuyOfferResult manageBuyOfferResult; case PATH_PAYMENT_STRICT_SEND: PathPaymentStrictSendResult pathPaymentStrictSendResult; case CREATE_CLAIMABLE_BALANCE: CreateClaimableBalanceResult createClaimableBalanceResult; case CLAIM_CLAIMABLE_BALANCE: ClaimClaimableBalanceResult claimClaimableBalanceResult; case BEGIN_SPONSORING_FUTURE_RESERVES: BeginSponsoringFutureReservesResult beginSponsoringFutureReservesResult; case END_SPONSORING_FUTURE_RESERVES: EndSponsoringFutureReservesResult endSponsoringFutureReservesResult; case REVOKE_SPONSORSHIP: RevokeSponsorshipResult revokeSponsorshipResult; case CLAWBACK: ClawbackResult clawbackResult; case CLAWBACK_CLAIMABLE_BALANCE: ClawbackClaimableBalanceResult clawbackClaimableBalanceResult; case SET_TRUST_LINE_FLAGS: SetTrustLineFlagsResult setTrustLineFlagsResult; case LIQUIDITY_POOL_DEPOSIT: LiquidityPoolDepositResult liquidityPoolDepositResult; case LIQUIDITY_POOL_WITHDRAW: LiquidityPoolWithdrawResult liquidityPoolWithdrawResult; case INVOKE_HOST_FUNCTION: InvokeHostFunctionResult invokeHostFunctionResult; case EXTEND_FOOTPRINT_TTL: ExtendFootprintTTLResult extendFootprintTTLResult; case RESTORE_FOOTPRINT: RestoreFootprintResult restoreFootprintResult; } tr; case opBAD_AUTH: case opNO_ACCOUNT: case opNOT_SUPPORTED: case opTOO_MANY_SUBENTRIES: case opEXCEEDED_WORK_LIMIT: case opTOO_MANY_SPONSORING: void; }; ```", "oneOf": [ @@ -6266,6 +6298,22 @@ } } }, + "SorobanTransactionMetaV2": { + "description": "SorobanTransactionMetaV2 is an XDR Struct defines as:\n\n```text struct SorobanTransactionMetaV2 { SorobanTransactionMetaExt ext;\n\nSCVal returnValue; }; ```", + "type": "object", + "required": [ + "ext", + "return_value" + ], + "properties": { + "ext": { + "$ref": "#/definitions/SorobanTransactionMetaExt" + }, + "return_value": { + "$ref": "#/definitions/ScVal" + } + } + }, "SponsorshipDescriptor": { "description": "SponsorshipDescriptor is an XDR Typedef defines as:\n\n```text typedef AccountID* SponsorshipDescriptor; ```", "anyOf": [ @@ -6551,7 +6599,7 @@ ] }, "TransactionMeta": { - "description": "TransactionMeta is an XDR Union defines as:\n\n```text union TransactionMeta switch (int v) { case 0: OperationMeta operations<>; case 1: TransactionMetaV1 v1; case 2: TransactionMetaV2 v2; case 3: TransactionMetaV3 v3; }; ```", + "description": "TransactionMeta is an XDR Union defines as:\n\n```text union TransactionMeta switch (int v) { case 0: OperationMeta operations<>; case 1: TransactionMetaV1 v1; case 2: TransactionMetaV2 v2; case 3: TransactionMetaV3 v3; case 4: TransactionMetaV4 v4; }; ```", "oneOf": [ { "type": "object", @@ -6604,6 +6652,18 @@ } }, "additionalProperties": false + }, + { + "type": "object", + "required": [ + "v4" + ], + "properties": { + "v4": { + "$ref": "#/definitions/TransactionMetaV4" + } + }, + "additionalProperties": false } ] }, @@ -6689,6 +6749,60 @@ } } }, + "TransactionMetaV4": { + "description": "TransactionMetaV4 is an XDR Struct defines as:\n\n```text struct TransactionMetaV4 { ExtensionPoint ext;\n\nLedgerEntryChanges txChangesBefore; // tx level changes before operations // are applied if any OperationMetaV2 operations<>; // meta for each operation LedgerEntryChanges txChangesAfter; // tx level changes after operations are // applied if any SorobanTransactionMetaV2* sorobanMeta; // Soroban-specific meta (only for // Soroban transactions).\n\nContractEvent events<>; // Used for transaction-level events (like fee payment) DiagnosticEvent txDiagnosticEvents<>; // Used for transaction-level diagnostic // information }; ```", + "type": "object", + "required": [ + "events", + "ext", + "operations", + "tx_changes_after", + "tx_changes_before", + "tx_diagnostic_events" + ], + "properties": { + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/ContractEvent" + }, + "maxItems": 4294967295 + }, + "ext": { + "$ref": "#/definitions/ExtensionPoint" + }, + "operations": { + "type": "array", + "items": { + "$ref": "#/definitions/OperationMetaV2" + }, + "maxItems": 4294967295 + }, + "soroban_meta": { + "anyOf": [ + { + "$ref": "#/definitions/SorobanTransactionMetaV2" + }, + { + "type": "null" + } + ] + }, + "tx_changes_after": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "tx_changes_before": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "tx_diagnostic_events": { + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticEvent" + }, + "maxItems": 4294967295 + } + } + }, "TransactionResult": { "description": "TransactionResult is an XDR Struct defines as:\n\n```text struct TransactionResult { int64 feeCharged; // actual fee charged for the transaction\n\nunion switch (TransactionResultCode code) { case txFEE_BUMP_INNER_SUCCESS: case txFEE_BUMP_INNER_FAILED: InnerTransactionResultPair innerResultPair; case txSUCCESS: case txFAILED: OperationResult results<>; case txTOO_EARLY: case txTOO_LATE: case txMISSING_OPERATION: case txBAD_SEQ: case txBAD_AUTH: case txINSUFFICIENT_BALANCE: case txNO_ACCOUNT: case txINSUFFICIENT_FEE: case txBAD_AUTH_EXTRA: case txINTERNAL_ERROR: case txNOT_SUPPORTED: // case txFEE_BUMP_INNER_FAILED: handled above case txBAD_SPONSORSHIP: case txBAD_MIN_SEQ_AGE_OR_GAP: case txMALFORMED: case txSOROBAN_INVALID: void; } result;\n\n// reserved for future use union switch (int v) { case 0: void; } ext; }; ```", "type": "object", diff --git a/xdr-json/curr/LedgerCloseMetaV1.json b/xdr-json/curr/LedgerCloseMetaV1.json index bebb8449..6ebac383 100644 --- a/xdr-json/curr/LedgerCloseMetaV1.json +++ b/xdr-json/curr/LedgerCloseMetaV1.json @@ -4275,6 +4275,38 @@ } } }, + "OperationMetaV2": { + "description": "OperationMetaV2 is an XDR Struct defines as:\n\n```text struct OperationMetaV2 { ExtensionPoint ext;\n\nLedgerEntryChanges changes;\n\nContractEvent events<>; DiagnosticEvent diagnosticEvents<>; }; ```", + "type": "object", + "required": [ + "changes", + "diagnostic_events", + "events", + "ext" + ], + "properties": { + "changes": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "diagnostic_events": { + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticEvent" + }, + "maxItems": 4294967295 + }, + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/ContractEvent" + }, + "maxItems": 4294967295 + }, + "ext": { + "$ref": "#/definitions/ExtensionPoint" + } + } + }, "OperationResult": { "description": "OperationResult is an XDR Union defines as:\n\n```text union OperationResult switch (OperationResultCode code) { case opINNER: union switch (OperationType type) { case CREATE_ACCOUNT: CreateAccountResult createAccountResult; case PAYMENT: PaymentResult paymentResult; case PATH_PAYMENT_STRICT_RECEIVE: PathPaymentStrictReceiveResult pathPaymentStrictReceiveResult; case MANAGE_SELL_OFFER: ManageSellOfferResult manageSellOfferResult; case CREATE_PASSIVE_SELL_OFFER: ManageSellOfferResult createPassiveSellOfferResult; case SET_OPTIONS: SetOptionsResult setOptionsResult; case CHANGE_TRUST: ChangeTrustResult changeTrustResult; case ALLOW_TRUST: AllowTrustResult allowTrustResult; case ACCOUNT_MERGE: AccountMergeResult accountMergeResult; case INFLATION: InflationResult inflationResult; case MANAGE_DATA: ManageDataResult manageDataResult; case BUMP_SEQUENCE: BumpSequenceResult bumpSeqResult; case MANAGE_BUY_OFFER: ManageBuyOfferResult manageBuyOfferResult; case PATH_PAYMENT_STRICT_SEND: PathPaymentStrictSendResult pathPaymentStrictSendResult; case CREATE_CLAIMABLE_BALANCE: CreateClaimableBalanceResult createClaimableBalanceResult; case CLAIM_CLAIMABLE_BALANCE: ClaimClaimableBalanceResult claimClaimableBalanceResult; case BEGIN_SPONSORING_FUTURE_RESERVES: BeginSponsoringFutureReservesResult beginSponsoringFutureReservesResult; case END_SPONSORING_FUTURE_RESERVES: EndSponsoringFutureReservesResult endSponsoringFutureReservesResult; case REVOKE_SPONSORSHIP: RevokeSponsorshipResult revokeSponsorshipResult; case CLAWBACK: ClawbackResult clawbackResult; case CLAWBACK_CLAIMABLE_BALANCE: ClawbackClaimableBalanceResult clawbackClaimableBalanceResult; case SET_TRUST_LINE_FLAGS: SetTrustLineFlagsResult setTrustLineFlagsResult; case LIQUIDITY_POOL_DEPOSIT: LiquidityPoolDepositResult liquidityPoolDepositResult; case LIQUIDITY_POOL_WITHDRAW: LiquidityPoolWithdrawResult liquidityPoolWithdrawResult; case INVOKE_HOST_FUNCTION: InvokeHostFunctionResult invokeHostFunctionResult; case EXTEND_FOOTPRINT_TTL: ExtendFootprintTTLResult extendFootprintTTLResult; case RESTORE_FOOTPRINT: RestoreFootprintResult restoreFootprintResult; } tr; case opBAD_AUTH: case opNO_ACCOUNT: case opNOT_SUPPORTED: case opTOO_MANY_SUBENTRIES: case opEXCEEDED_WORK_LIMIT: case opTOO_MANY_SPONSORING: void; }; ```", "oneOf": [ @@ -6349,6 +6381,22 @@ } } }, + "SorobanTransactionMetaV2": { + "description": "SorobanTransactionMetaV2 is an XDR Struct defines as:\n\n```text struct SorobanTransactionMetaV2 { SorobanTransactionMetaExt ext;\n\nSCVal returnValue; }; ```", + "type": "object", + "required": [ + "ext", + "return_value" + ], + "properties": { + "ext": { + "$ref": "#/definitions/SorobanTransactionMetaExt" + }, + "return_value": { + "$ref": "#/definitions/ScVal" + } + } + }, "SponsorshipDescriptor": { "description": "SponsorshipDescriptor is an XDR Typedef defines as:\n\n```text typedef AccountID* SponsorshipDescriptor; ```", "anyOf": [ @@ -6634,7 +6682,7 @@ ] }, "TransactionMeta": { - "description": "TransactionMeta is an XDR Union defines as:\n\n```text union TransactionMeta switch (int v) { case 0: OperationMeta operations<>; case 1: TransactionMetaV1 v1; case 2: TransactionMetaV2 v2; case 3: TransactionMetaV3 v3; }; ```", + "description": "TransactionMeta is an XDR Union defines as:\n\n```text union TransactionMeta switch (int v) { case 0: OperationMeta operations<>; case 1: TransactionMetaV1 v1; case 2: TransactionMetaV2 v2; case 3: TransactionMetaV3 v3; case 4: TransactionMetaV4 v4; }; ```", "oneOf": [ { "type": "object", @@ -6687,6 +6735,18 @@ } }, "additionalProperties": false + }, + { + "type": "object", + "required": [ + "v4" + ], + "properties": { + "v4": { + "$ref": "#/definitions/TransactionMetaV4" + } + }, + "additionalProperties": false } ] }, @@ -6772,6 +6832,60 @@ } } }, + "TransactionMetaV4": { + "description": "TransactionMetaV4 is an XDR Struct defines as:\n\n```text struct TransactionMetaV4 { ExtensionPoint ext;\n\nLedgerEntryChanges txChangesBefore; // tx level changes before operations // are applied if any OperationMetaV2 operations<>; // meta for each operation LedgerEntryChanges txChangesAfter; // tx level changes after operations are // applied if any SorobanTransactionMetaV2* sorobanMeta; // Soroban-specific meta (only for // Soroban transactions).\n\nContractEvent events<>; // Used for transaction-level events (like fee payment) DiagnosticEvent txDiagnosticEvents<>; // Used for transaction-level diagnostic // information }; ```", + "type": "object", + "required": [ + "events", + "ext", + "operations", + "tx_changes_after", + "tx_changes_before", + "tx_diagnostic_events" + ], + "properties": { + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/ContractEvent" + }, + "maxItems": 4294967295 + }, + "ext": { + "$ref": "#/definitions/ExtensionPoint" + }, + "operations": { + "type": "array", + "items": { + "$ref": "#/definitions/OperationMetaV2" + }, + "maxItems": 4294967295 + }, + "soroban_meta": { + "anyOf": [ + { + "$ref": "#/definitions/SorobanTransactionMetaV2" + }, + { + "type": "null" + } + ] + }, + "tx_changes_after": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "tx_changes_before": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "tx_diagnostic_events": { + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticEvent" + }, + "maxItems": 4294967295 + } + } + }, "TransactionPhase": { "description": "TransactionPhase is an XDR Union defines as:\n\n```text union TransactionPhase switch (int v) { case 0: TxSetComponent v0Components<>; }; ```", "oneOf": [ diff --git a/xdr-json/curr/MessageType.json b/xdr-json/curr/MessageType.json index 871507a8..8099d6ed 100644 --- a/xdr-json/curr/MessageType.json +++ b/xdr-json/curr/MessageType.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "MessageType", - "description": "MessageType is an XDR Enum defines as:\n\n```text enum MessageType { ERROR_MSG = 0, AUTH = 2, DONT_HAVE = 3, // GET_PEERS (4) is deprecated\n\nPEERS = 5,\n\nGET_TX_SET = 6, // gets a particular txset by hash TX_SET = 7, GENERALIZED_TX_SET = 17,\n\nTRANSACTION = 8, // pass on a tx you have heard about\n\n// SCP GET_SCP_QUORUMSET = 9, SCP_QUORUMSET = 10, SCP_MESSAGE = 11, GET_SCP_STATE = 12,\n\n// new messages HELLO = 13,\n\nSURVEY_REQUEST = 14, SURVEY_RESPONSE = 15,\n\nSEND_MORE = 16, SEND_MORE_EXTENDED = 20,\n\nFLOOD_ADVERT = 18, FLOOD_DEMAND = 19,\n\nTIME_SLICED_SURVEY_REQUEST = 21, TIME_SLICED_SURVEY_RESPONSE = 22, TIME_SLICED_SURVEY_START_COLLECTING = 23, TIME_SLICED_SURVEY_STOP_COLLECTING = 24 }; ```", + "description": "MessageType is an XDR Enum defines as:\n\n```text enum MessageType { ERROR_MSG = 0, AUTH = 2, DONT_HAVE = 3, // GET_PEERS (4) is deprecated\n\nPEERS = 5,\n\nGET_TX_SET = 6, // gets a particular txset by hash TX_SET = 7, GENERALIZED_TX_SET = 17,\n\nTRANSACTION = 8, // pass on a tx you have heard about\n\n// SCP GET_SCP_QUORUMSET = 9, SCP_QUORUMSET = 10, SCP_MESSAGE = 11, GET_SCP_STATE = 12,\n\n// new messages HELLO = 13,\n\n// SURVEY_REQUEST (14) removed and replaced by TIME_SLICED_SURVEY_REQUEST // SURVEY_RESPONSE (15) removed and replaced by TIME_SLICED_SURVEY_RESPONSE\n\nSEND_MORE = 16, SEND_MORE_EXTENDED = 20,\n\nFLOOD_ADVERT = 18, FLOOD_DEMAND = 19,\n\nTIME_SLICED_SURVEY_REQUEST = 21, TIME_SLICED_SURVEY_RESPONSE = 22, TIME_SLICED_SURVEY_START_COLLECTING = 23, TIME_SLICED_SURVEY_STOP_COLLECTING = 24 }; ```", "type": "string", "enum": [ "error_msg", @@ -17,8 +17,6 @@ "scp_message", "get_scp_state", "hello", - "survey_request", - "survey_response", "send_more", "send_more_extended", "flood_advert", diff --git a/xdr-json/curr/ScAddressType.json b/xdr-json/curr/ScAddressType.json index e5bc5e87..852c3795 100644 --- a/xdr-json/curr/ScAddressType.json +++ b/xdr-json/curr/ScAddressType.json @@ -1,10 +1,13 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "ScAddressType", - "description": "ScAddressType is an XDR Enum defines as:\n\n```text enum SCAddressType { SC_ADDRESS_TYPE_ACCOUNT = 0, SC_ADDRESS_TYPE_CONTRACT = 1 }; ```", + "description": "ScAddressType is an XDR Enum defines as:\n\n```text enum SCAddressType { SC_ADDRESS_TYPE_ACCOUNT = 0, SC_ADDRESS_TYPE_CONTRACT = 1, SC_ADDRESS_TYPE_MUXED_ACCOUNT = 2, SC_ADDRESS_TYPE_CLAIMABLE_BALANCE = 3, SC_ADDRESS_TYPE_LIQUIDITY_POOL = 4 }; ```", "type": "string", "enum": [ "account", - "contract" + "contract", + "muxed_account", + "claimable_balance", + "liquidity_pool" ] } \ No newline at end of file diff --git a/xdr-json/curr/SignedTimeSlicedSurveyRequestMessage.json b/xdr-json/curr/SignedTimeSlicedSurveyRequestMessage.json index 57be8b1b..806a354a 100644 --- a/xdr-json/curr/SignedTimeSlicedSurveyRequestMessage.json +++ b/xdr-json/curr/SignedTimeSlicedSurveyRequestMessage.json @@ -46,10 +46,9 @@ "contentMediaType": "application/binary" }, "SurveyMessageCommandType": { - "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", + "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", "type": "string", "enum": [ - "survey_topology", "time_sliced_survey_topology" ] }, diff --git a/xdr-json/curr/SignedTimeSlicedSurveyResponseMessage.json b/xdr-json/curr/SignedTimeSlicedSurveyResponseMessage.json index 80ca9a04..6c245738 100644 --- a/xdr-json/curr/SignedTimeSlicedSurveyResponseMessage.json +++ b/xdr-json/curr/SignedTimeSlicedSurveyResponseMessage.json @@ -34,10 +34,9 @@ "contentMediaType": "application/binary" }, "SurveyMessageCommandType": { - "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", + "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", "type": "string", "enum": [ - "survey_topology", "time_sliced_survey_topology" ] }, diff --git a/xdr-json/curr/StellarMessage.json b/xdr-json/curr/StellarMessage.json index c1edd90b..afe44f02 100644 --- a/xdr-json/curr/StellarMessage.json +++ b/xdr-json/curr/StellarMessage.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "StellarMessage", - "description": "StellarMessage is an XDR Union defines as:\n\n```text union StellarMessage switch (MessageType type) { case ERROR_MSG: Error error; case HELLO: Hello hello; case AUTH: Auth auth; case DONT_HAVE: DontHave dontHave; case PEERS: PeerAddress peers<100>;\n\ncase GET_TX_SET: uint256 txSetHash; case TX_SET: TransactionSet txSet; case GENERALIZED_TX_SET: GeneralizedTransactionSet generalizedTxSet;\n\ncase TRANSACTION: TransactionEnvelope transaction;\n\ncase SURVEY_REQUEST: SignedSurveyRequestMessage signedSurveyRequestMessage;\n\ncase SURVEY_RESPONSE: SignedSurveyResponseMessage signedSurveyResponseMessage;\n\ncase TIME_SLICED_SURVEY_REQUEST: SignedTimeSlicedSurveyRequestMessage signedTimeSlicedSurveyRequestMessage;\n\ncase TIME_SLICED_SURVEY_RESPONSE: SignedTimeSlicedSurveyResponseMessage signedTimeSlicedSurveyResponseMessage;\n\ncase TIME_SLICED_SURVEY_START_COLLECTING: SignedTimeSlicedSurveyStartCollectingMessage signedTimeSlicedSurveyStartCollectingMessage;\n\ncase TIME_SLICED_SURVEY_STOP_COLLECTING: SignedTimeSlicedSurveyStopCollectingMessage signedTimeSlicedSurveyStopCollectingMessage;\n\n// SCP case GET_SCP_QUORUMSET: uint256 qSetHash; case SCP_QUORUMSET: SCPQuorumSet qSet; case SCP_MESSAGE: SCPEnvelope envelope; case GET_SCP_STATE: uint32 getSCPLedgerSeq; // ledger seq requested ; if 0, requests the latest case SEND_MORE: SendMore sendMoreMessage; case SEND_MORE_EXTENDED: SendMoreExtended sendMoreExtendedMessage; // Pull mode case FLOOD_ADVERT: FloodAdvert floodAdvert; case FLOOD_DEMAND: FloodDemand floodDemand; }; ```", + "description": "StellarMessage is an XDR Union defines as:\n\n```text union StellarMessage switch (MessageType type) { case ERROR_MSG: Error error; case HELLO: Hello hello; case AUTH: Auth auth; case DONT_HAVE: DontHave dontHave; case PEERS: PeerAddress peers<100>;\n\ncase GET_TX_SET: uint256 txSetHash; case TX_SET: TransactionSet txSet; case GENERALIZED_TX_SET: GeneralizedTransactionSet generalizedTxSet;\n\ncase TRANSACTION: TransactionEnvelope transaction;\n\ncase TIME_SLICED_SURVEY_REQUEST: SignedTimeSlicedSurveyRequestMessage signedTimeSlicedSurveyRequestMessage;\n\ncase TIME_SLICED_SURVEY_RESPONSE: SignedTimeSlicedSurveyResponseMessage signedTimeSlicedSurveyResponseMessage;\n\ncase TIME_SLICED_SURVEY_START_COLLECTING: SignedTimeSlicedSurveyStartCollectingMessage signedTimeSlicedSurveyStartCollectingMessage;\n\ncase TIME_SLICED_SURVEY_STOP_COLLECTING: SignedTimeSlicedSurveyStopCollectingMessage signedTimeSlicedSurveyStopCollectingMessage;\n\n// SCP case GET_SCP_QUORUMSET: uint256 qSetHash; case SCP_QUORUMSET: SCPQuorumSet qSet; case SCP_MESSAGE: SCPEnvelope envelope; case GET_SCP_STATE: uint32 getSCPLedgerSeq; // ledger seq requested ; if 0, requests the latest case SEND_MORE: SendMore sendMoreMessage; case SEND_MORE_EXTENDED: SendMoreExtended sendMoreExtendedMessage; // Pull mode case FLOOD_ADVERT: FloodAdvert floodAdvert; case FLOOD_DEMAND: FloodDemand floodDemand; }; ```", "oneOf": [ { "type": "object", @@ -119,30 +119,6 @@ }, "additionalProperties": false }, - { - "type": "object", - "required": [ - "survey_request" - ], - "properties": { - "survey_request": { - "$ref": "#/definitions/SignedSurveyRequestMessage" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "survey_response" - ], - "properties": { - "survey_response": { - "$ref": "#/definitions/SignedSurveyResponseMessage" - } - }, - "additionalProperties": false - }, { "type": "object", "required": [ @@ -1897,7 +1873,7 @@ ] }, "MessageType": { - "description": "MessageType is an XDR Enum defines as:\n\n```text enum MessageType { ERROR_MSG = 0, AUTH = 2, DONT_HAVE = 3, // GET_PEERS (4) is deprecated\n\nPEERS = 5,\n\nGET_TX_SET = 6, // gets a particular txset by hash TX_SET = 7, GENERALIZED_TX_SET = 17,\n\nTRANSACTION = 8, // pass on a tx you have heard about\n\n// SCP GET_SCP_QUORUMSET = 9, SCP_QUORUMSET = 10, SCP_MESSAGE = 11, GET_SCP_STATE = 12,\n\n// new messages HELLO = 13,\n\nSURVEY_REQUEST = 14, SURVEY_RESPONSE = 15,\n\nSEND_MORE = 16, SEND_MORE_EXTENDED = 20,\n\nFLOOD_ADVERT = 18, FLOOD_DEMAND = 19,\n\nTIME_SLICED_SURVEY_REQUEST = 21, TIME_SLICED_SURVEY_RESPONSE = 22, TIME_SLICED_SURVEY_START_COLLECTING = 23, TIME_SLICED_SURVEY_STOP_COLLECTING = 24 }; ```", + "description": "MessageType is an XDR Enum defines as:\n\n```text enum MessageType { ERROR_MSG = 0, AUTH = 2, DONT_HAVE = 3, // GET_PEERS (4) is deprecated\n\nPEERS = 5,\n\nGET_TX_SET = 6, // gets a particular txset by hash TX_SET = 7, GENERALIZED_TX_SET = 17,\n\nTRANSACTION = 8, // pass on a tx you have heard about\n\n// SCP GET_SCP_QUORUMSET = 9, SCP_QUORUMSET = 10, SCP_MESSAGE = 11, GET_SCP_STATE = 12,\n\n// new messages HELLO = 13,\n\n// SURVEY_REQUEST (14) removed and replaced by TIME_SLICED_SURVEY_REQUEST // SURVEY_RESPONSE (15) removed and replaced by TIME_SLICED_SURVEY_RESPONSE\n\nSEND_MORE = 16, SEND_MORE_EXTENDED = 20,\n\nFLOOD_ADVERT = 18, FLOOD_DEMAND = 19,\n\nTIME_SLICED_SURVEY_REQUEST = 21, TIME_SLICED_SURVEY_RESPONSE = 22, TIME_SLICED_SURVEY_START_COLLECTING = 23, TIME_SLICED_SURVEY_STOP_COLLECTING = 24 }; ```", "type": "string", "enum": [ "error_msg", @@ -1913,8 +1889,6 @@ "scp_message", "get_scp_state", "hello", - "survey_request", - "survey_response", "send_more", "send_more_extended", "flood_advert", @@ -3563,38 +3537,6 @@ "contentEncoding": "hex", "contentMediaType": "application/binary" }, - "SignedSurveyRequestMessage": { - "description": "SignedSurveyRequestMessage is an XDR Struct defines as:\n\n```text struct SignedSurveyRequestMessage { Signature requestSignature; SurveyRequestMessage request; }; ```", - "type": "object", - "required": [ - "request", - "request_signature" - ], - "properties": { - "request": { - "$ref": "#/definitions/SurveyRequestMessage" - }, - "request_signature": { - "$ref": "#/definitions/Signature" - } - } - }, - "SignedSurveyResponseMessage": { - "description": "SignedSurveyResponseMessage is an XDR Struct defines as:\n\n```text struct SignedSurveyResponseMessage { Signature responseSignature; SurveyResponseMessage response; }; ```", - "type": "object", - "required": [ - "response", - "response_signature" - ], - "properties": { - "response": { - "$ref": "#/definitions/SurveyResponseMessage" - }, - "response_signature": { - "$ref": "#/definitions/Signature" - } - } - }, "SignedTimeSlicedSurveyRequestMessage": { "description": "SignedTimeSlicedSurveyRequestMessage is an XDR Struct defines as:\n\n```text struct SignedTimeSlicedSurveyRequestMessage { Signature requestSignature; TimeSlicedSurveyRequestMessage request; }; ```", "type": "object", @@ -3887,10 +3829,9 @@ "maxLength": 64 }, "SurveyMessageCommandType": { - "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", + "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", "type": "string", "enum": [ - "survey_topology", "time_sliced_survey_topology" ] }, diff --git a/xdr-json/curr/SurveyMessageCommandType.json b/xdr-json/curr/SurveyMessageCommandType.json index 0c6dad8c..9a725a46 100644 --- a/xdr-json/curr/SurveyMessageCommandType.json +++ b/xdr-json/curr/SurveyMessageCommandType.json @@ -1,10 +1,9 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "SurveyMessageCommandType", - "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", + "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", "type": "string", "enum": [ - "survey_topology", "time_sliced_survey_topology" ] } \ No newline at end of file diff --git a/xdr-json/curr/SurveyMessageResponseType.json b/xdr-json/curr/SurveyMessageResponseType.json index 96787321..fe2acdc1 100644 --- a/xdr-json/curr/SurveyMessageResponseType.json +++ b/xdr-json/curr/SurveyMessageResponseType.json @@ -1,11 +1,9 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "SurveyMessageResponseType", - "description": "SurveyMessageResponseType is an XDR Enum defines as:\n\n```text enum SurveyMessageResponseType { SURVEY_TOPOLOGY_RESPONSE_V0 = 0, SURVEY_TOPOLOGY_RESPONSE_V1 = 1, SURVEY_TOPOLOGY_RESPONSE_V2 = 2 }; ```", + "description": "SurveyMessageResponseType is an XDR Enum defines as:\n\n```text enum SurveyMessageResponseType { SURVEY_TOPOLOGY_RESPONSE_V2 = 2 }; ```", "type": "string", "enum": [ - "v0", - "v1", - "v2" + "survey_topology_response_v2" ] } \ No newline at end of file diff --git a/xdr-json/curr/SurveyRequestMessage.json b/xdr-json/curr/SurveyRequestMessage.json index 76ae3d6f..3f8be2a1 100644 --- a/xdr-json/curr/SurveyRequestMessage.json +++ b/xdr-json/curr/SurveyRequestMessage.json @@ -53,10 +53,9 @@ "type": "string" }, "SurveyMessageCommandType": { - "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", + "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", "type": "string", "enum": [ - "survey_topology", "time_sliced_survey_topology" ] } diff --git a/xdr-json/curr/SurveyResponseBody.json b/xdr-json/curr/SurveyResponseBody.json index e91c1de8..93696fae 100644 --- a/xdr-json/curr/SurveyResponseBody.json +++ b/xdr-json/curr/SurveyResponseBody.json @@ -1,39 +1,15 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "SurveyResponseBody", - "description": "SurveyResponseBody is an XDR Union defines as:\n\n```text union SurveyResponseBody switch (SurveyMessageResponseType type) { case SURVEY_TOPOLOGY_RESPONSE_V0: TopologyResponseBodyV0 topologyResponseBodyV0; case SURVEY_TOPOLOGY_RESPONSE_V1: TopologyResponseBodyV1 topologyResponseBodyV1; case SURVEY_TOPOLOGY_RESPONSE_V2: TopologyResponseBodyV2 topologyResponseBodyV2; }; ```", + "description": "SurveyResponseBody is an XDR Union defines as:\n\n```text union SurveyResponseBody switch (SurveyMessageResponseType type) { case SURVEY_TOPOLOGY_RESPONSE_V2: TopologyResponseBodyV2 topologyResponseBodyV2; }; ```", "oneOf": [ { "type": "object", "required": [ - "v0" + "survey_topology_response_v2" ], "properties": { - "v0": { - "$ref": "#/definitions/TopologyResponseBodyV0" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "v1" - ], - "properties": { - "v1": { - "$ref": "#/definitions/TopologyResponseBodyV1" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "v2" - ], - "properties": { - "v2": { + "survey_topology_response_v2": { "$ref": "#/definitions/TopologyResponseBodyV2" } }, @@ -44,14 +20,6 @@ "NodeId": { "type": "string" }, - "PeerStatList": { - "description": "PeerStatList is an XDR Typedef defines as:\n\n```text typedef PeerStats PeerStatList<25>; ```", - "type": "array", - "items": { - "$ref": "#/definitions/PeerStats" - }, - "maxItems": 25 - }, "PeerStats": { "description": "PeerStats is an XDR Struct defines as:\n\n```text struct PeerStats { NodeID id; string versionStr<100>; uint64 messagesRead; uint64 messagesWritten; uint64 bytesRead; uint64 bytesWritten; uint64 secondsConnected;\n\nuint64 uniqueFloodBytesRecv; uint64 duplicateFloodBytesRecv; uint64 uniqueFetchBytesRecv; uint64 duplicateFetchBytesRecv;\n\nuint64 uniqueFloodMessageRecv; uint64 duplicateFloodMessageRecv; uint64 uniqueFetchMessageRecv; uint64 duplicateFetchMessageRecv; }; ```", "type": "object", @@ -242,74 +210,6 @@ }, "maxItems": 25 }, - "TopologyResponseBodyV0": { - "description": "TopologyResponseBodyV0 is an XDR Struct defines as:\n\n```text struct TopologyResponseBodyV0 { PeerStatList inboundPeers; PeerStatList outboundPeers;\n\nuint32 totalInboundPeerCount; uint32 totalOutboundPeerCount; }; ```", - "type": "object", - "required": [ - "inbound_peers", - "outbound_peers", - "total_inbound_peer_count", - "total_outbound_peer_count" - ], - "properties": { - "inbound_peers": { - "$ref": "#/definitions/PeerStatList" - }, - "outbound_peers": { - "$ref": "#/definitions/PeerStatList" - }, - "total_inbound_peer_count": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "total_outbound_peer_count": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - } - } - }, - "TopologyResponseBodyV1": { - "description": "TopologyResponseBodyV1 is an XDR Struct defines as:\n\n```text struct TopologyResponseBodyV1 { PeerStatList inboundPeers; PeerStatList outboundPeers;\n\nuint32 totalInboundPeerCount; uint32 totalOutboundPeerCount;\n\nuint32 maxInboundPeerCount; uint32 maxOutboundPeerCount; }; ```", - "type": "object", - "required": [ - "inbound_peers", - "max_inbound_peer_count", - "max_outbound_peer_count", - "outbound_peers", - "total_inbound_peer_count", - "total_outbound_peer_count" - ], - "properties": { - "inbound_peers": { - "$ref": "#/definitions/PeerStatList" - }, - "max_inbound_peer_count": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "max_outbound_peer_count": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "outbound_peers": { - "$ref": "#/definitions/PeerStatList" - }, - "total_inbound_peer_count": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "total_outbound_peer_count": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - } - } - }, "TopologyResponseBodyV2": { "description": "TopologyResponseBodyV2 is an XDR Struct defines as:\n\n```text struct TopologyResponseBodyV2 { TimeSlicedPeerDataList inboundPeers; TimeSlicedPeerDataList outboundPeers; TimeSlicedNodeData nodeData; }; ```", "type": "object", diff --git a/xdr-json/curr/SurveyResponseMessage.json b/xdr-json/curr/SurveyResponseMessage.json index 6ccb4d3d..55c9ecb1 100644 --- a/xdr-json/curr/SurveyResponseMessage.json +++ b/xdr-json/curr/SurveyResponseMessage.json @@ -41,10 +41,9 @@ "type": "string" }, "SurveyMessageCommandType": { - "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", + "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", "type": "string", "enum": [ - "survey_topology", "time_sliced_survey_topology" ] } diff --git a/xdr-json/curr/TimeSlicedSurveyRequestMessage.json b/xdr-json/curr/TimeSlicedSurveyRequestMessage.json index 7a84ccce..a751bf77 100644 --- a/xdr-json/curr/TimeSlicedSurveyRequestMessage.json +++ b/xdr-json/curr/TimeSlicedSurveyRequestMessage.json @@ -53,10 +53,9 @@ "type": "string" }, "SurveyMessageCommandType": { - "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", + "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", "type": "string", "enum": [ - "survey_topology", "time_sliced_survey_topology" ] }, diff --git a/xdr-json/curr/TimeSlicedSurveyResponseMessage.json b/xdr-json/curr/TimeSlicedSurveyResponseMessage.json index c35ef943..fd975288 100644 --- a/xdr-json/curr/TimeSlicedSurveyResponseMessage.json +++ b/xdr-json/curr/TimeSlicedSurveyResponseMessage.json @@ -29,10 +29,9 @@ "type": "string" }, "SurveyMessageCommandType": { - "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", + "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", "type": "string", "enum": [ - "survey_topology", "time_sliced_survey_topology" ] }, diff --git a/xdr-json/curr/TransactionMeta.json b/xdr-json/curr/TransactionMeta.json index 499d43ba..eef18dbe 100644 --- a/xdr-json/curr/TransactionMeta.json +++ b/xdr-json/curr/TransactionMeta.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "TransactionMeta", - "description": "TransactionMeta is an XDR Union defines as:\n\n```text union TransactionMeta switch (int v) { case 0: OperationMeta operations<>; case 1: TransactionMetaV1 v1; case 2: TransactionMetaV2 v2; case 3: TransactionMetaV3 v3; }; ```", + "description": "TransactionMeta is an XDR Union defines as:\n\n```text union TransactionMeta switch (int v) { case 0: OperationMeta operations<>; case 1: TransactionMetaV1 v1; case 2: TransactionMetaV2 v2; case 3: TransactionMetaV3 v3; case 4: TransactionMetaV4 v4; }; ```", "oneOf": [ { "type": "object", @@ -54,6 +54,18 @@ } }, "additionalProperties": false + }, + { + "type": "object", + "required": [ + "v4" + ], + "properties": { + "v4": { + "$ref": "#/definitions/TransactionMetaV4" + } + }, + "additionalProperties": false } ], "definitions": { @@ -2083,6 +2095,38 @@ } } }, + "OperationMetaV2": { + "description": "OperationMetaV2 is an XDR Struct defines as:\n\n```text struct OperationMetaV2 { ExtensionPoint ext;\n\nLedgerEntryChanges changes;\n\nContractEvent events<>; DiagnosticEvent diagnosticEvents<>; }; ```", + "type": "object", + "required": [ + "changes", + "diagnostic_events", + "events", + "ext" + ], + "properties": { + "changes": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "diagnostic_events": { + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticEvent" + }, + "maxItems": 4294967295 + }, + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/ContractEvent" + }, + "maxItems": 4294967295 + }, + "ext": { + "$ref": "#/definitions/ExtensionPoint" + } + } + }, "PoolId": { "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", "type": "string", @@ -2716,6 +2760,22 @@ } } }, + "SorobanTransactionMetaV2": { + "description": "SorobanTransactionMetaV2 is an XDR Struct defines as:\n\n```text struct SorobanTransactionMetaV2 { SorobanTransactionMetaExt ext;\n\nSCVal returnValue; }; ```", + "type": "object", + "required": [ + "ext", + "return_value" + ], + "properties": { + "ext": { + "$ref": "#/definitions/SorobanTransactionMetaExt" + }, + "return_value": { + "$ref": "#/definitions/ScVal" + } + } + }, "SponsorshipDescriptor": { "description": "SponsorshipDescriptor is an XDR Typedef defines as:\n\n```text typedef AccountID* SponsorshipDescriptor; ```", "anyOf": [ @@ -2901,6 +2961,60 @@ } } }, + "TransactionMetaV4": { + "description": "TransactionMetaV4 is an XDR Struct defines as:\n\n```text struct TransactionMetaV4 { ExtensionPoint ext;\n\nLedgerEntryChanges txChangesBefore; // tx level changes before operations // are applied if any OperationMetaV2 operations<>; // meta for each operation LedgerEntryChanges txChangesAfter; // tx level changes after operations are // applied if any SorobanTransactionMetaV2* sorobanMeta; // Soroban-specific meta (only for // Soroban transactions).\n\nContractEvent events<>; // Used for transaction-level events (like fee payment) DiagnosticEvent txDiagnosticEvents<>; // Used for transaction-level diagnostic // information }; ```", + "type": "object", + "required": [ + "events", + "ext", + "operations", + "tx_changes_after", + "tx_changes_before", + "tx_diagnostic_events" + ], + "properties": { + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/ContractEvent" + }, + "maxItems": 4294967295 + }, + "ext": { + "$ref": "#/definitions/ExtensionPoint" + }, + "operations": { + "type": "array", + "items": { + "$ref": "#/definitions/OperationMetaV2" + }, + "maxItems": 4294967295 + }, + "soroban_meta": { + "anyOf": [ + { + "$ref": "#/definitions/SorobanTransactionMetaV2" + }, + { + "type": "null" + } + ] + }, + "tx_changes_after": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "tx_changes_before": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "tx_diagnostic_events": { + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticEvent" + }, + "maxItems": 4294967295 + } + } + }, "TrustLineAsset": { "description": "TrustLineAsset is an XDR Union defines as:\n\n```text union TrustLineAsset switch (AssetType type) { case ASSET_TYPE_NATIVE: // Not credit void;\n\ncase ASSET_TYPE_CREDIT_ALPHANUM4: AlphaNum4 alphaNum4;\n\ncase ASSET_TYPE_CREDIT_ALPHANUM12: AlphaNum12 alphaNum12;\n\ncase ASSET_TYPE_POOL_SHARE: PoolID liquidityPoolID;\n\n// add other asset types here in the future }; ```", "oneOf": [ diff --git a/xdr-json/curr/TransactionResultMeta.json b/xdr-json/curr/TransactionResultMeta.json index 0bd09e2f..bc59e701 100644 --- a/xdr-json/curr/TransactionResultMeta.json +++ b/xdr-json/curr/TransactionResultMeta.json @@ -2696,6 +2696,38 @@ } } }, + "OperationMetaV2": { + "description": "OperationMetaV2 is an XDR Struct defines as:\n\n```text struct OperationMetaV2 { ExtensionPoint ext;\n\nLedgerEntryChanges changes;\n\nContractEvent events<>; DiagnosticEvent diagnosticEvents<>; }; ```", + "type": "object", + "required": [ + "changes", + "diagnostic_events", + "events", + "ext" + ], + "properties": { + "changes": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "diagnostic_events": { + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticEvent" + }, + "maxItems": 4294967295 + }, + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/ContractEvent" + }, + "maxItems": 4294967295 + }, + "ext": { + "$ref": "#/definitions/ExtensionPoint" + } + } + }, "OperationResult": { "description": "OperationResult is an XDR Union defines as:\n\n```text union OperationResult switch (OperationResultCode code) { case opINNER: union switch (OperationType type) { case CREATE_ACCOUNT: CreateAccountResult createAccountResult; case PAYMENT: PaymentResult paymentResult; case PATH_PAYMENT_STRICT_RECEIVE: PathPaymentStrictReceiveResult pathPaymentStrictReceiveResult; case MANAGE_SELL_OFFER: ManageSellOfferResult manageSellOfferResult; case CREATE_PASSIVE_SELL_OFFER: ManageSellOfferResult createPassiveSellOfferResult; case SET_OPTIONS: SetOptionsResult setOptionsResult; case CHANGE_TRUST: ChangeTrustResult changeTrustResult; case ALLOW_TRUST: AllowTrustResult allowTrustResult; case ACCOUNT_MERGE: AccountMergeResult accountMergeResult; case INFLATION: InflationResult inflationResult; case MANAGE_DATA: ManageDataResult manageDataResult; case BUMP_SEQUENCE: BumpSequenceResult bumpSeqResult; case MANAGE_BUY_OFFER: ManageBuyOfferResult manageBuyOfferResult; case PATH_PAYMENT_STRICT_SEND: PathPaymentStrictSendResult pathPaymentStrictSendResult; case CREATE_CLAIMABLE_BALANCE: CreateClaimableBalanceResult createClaimableBalanceResult; case CLAIM_CLAIMABLE_BALANCE: ClaimClaimableBalanceResult claimClaimableBalanceResult; case BEGIN_SPONSORING_FUTURE_RESERVES: BeginSponsoringFutureReservesResult beginSponsoringFutureReservesResult; case END_SPONSORING_FUTURE_RESERVES: EndSponsoringFutureReservesResult endSponsoringFutureReservesResult; case REVOKE_SPONSORSHIP: RevokeSponsorshipResult revokeSponsorshipResult; case CLAWBACK: ClawbackResult clawbackResult; case CLAWBACK_CLAIMABLE_BALANCE: ClawbackClaimableBalanceResult clawbackClaimableBalanceResult; case SET_TRUST_LINE_FLAGS: SetTrustLineFlagsResult setTrustLineFlagsResult; case LIQUIDITY_POOL_DEPOSIT: LiquidityPoolDepositResult liquidityPoolDepositResult; case LIQUIDITY_POOL_WITHDRAW: LiquidityPoolWithdrawResult liquidityPoolWithdrawResult; case INVOKE_HOST_FUNCTION: InvokeHostFunctionResult invokeHostFunctionResult; case EXTEND_FOOTPRINT_TTL: ExtendFootprintTTLResult extendFootprintTTLResult; case RESTORE_FOOTPRINT: RestoreFootprintResult restoreFootprintResult; } tr; case opBAD_AUTH: case opNO_ACCOUNT: case opNOT_SUPPORTED: case opTOO_MANY_SUBENTRIES: case opEXCEEDED_WORK_LIMIT: case opTOO_MANY_SPONSORING: void; }; ```", "oneOf": [ @@ -3904,6 +3936,22 @@ } } }, + "SorobanTransactionMetaV2": { + "description": "SorobanTransactionMetaV2 is an XDR Struct defines as:\n\n```text struct SorobanTransactionMetaV2 { SorobanTransactionMetaExt ext;\n\nSCVal returnValue; }; ```", + "type": "object", + "required": [ + "ext", + "return_value" + ], + "properties": { + "ext": { + "$ref": "#/definitions/SorobanTransactionMetaExt" + }, + "return_value": { + "$ref": "#/definitions/ScVal" + } + } + }, "SponsorshipDescriptor": { "description": "SponsorshipDescriptor is an XDR Typedef defines as:\n\n```text typedef AccountID* SponsorshipDescriptor; ```", "anyOf": [ @@ -4008,7 +4056,7 @@ "minimum": 0.0 }, "TransactionMeta": { - "description": "TransactionMeta is an XDR Union defines as:\n\n```text union TransactionMeta switch (int v) { case 0: OperationMeta operations<>; case 1: TransactionMetaV1 v1; case 2: TransactionMetaV2 v2; case 3: TransactionMetaV3 v3; }; ```", + "description": "TransactionMeta is an XDR Union defines as:\n\n```text union TransactionMeta switch (int v) { case 0: OperationMeta operations<>; case 1: TransactionMetaV1 v1; case 2: TransactionMetaV2 v2; case 3: TransactionMetaV3 v3; case 4: TransactionMetaV4 v4; }; ```", "oneOf": [ { "type": "object", @@ -4061,6 +4109,18 @@ } }, "additionalProperties": false + }, + { + "type": "object", + "required": [ + "v4" + ], + "properties": { + "v4": { + "$ref": "#/definitions/TransactionMetaV4" + } + }, + "additionalProperties": false } ] }, @@ -4146,6 +4206,60 @@ } } }, + "TransactionMetaV4": { + "description": "TransactionMetaV4 is an XDR Struct defines as:\n\n```text struct TransactionMetaV4 { ExtensionPoint ext;\n\nLedgerEntryChanges txChangesBefore; // tx level changes before operations // are applied if any OperationMetaV2 operations<>; // meta for each operation LedgerEntryChanges txChangesAfter; // tx level changes after operations are // applied if any SorobanTransactionMetaV2* sorobanMeta; // Soroban-specific meta (only for // Soroban transactions).\n\nContractEvent events<>; // Used for transaction-level events (like fee payment) DiagnosticEvent txDiagnosticEvents<>; // Used for transaction-level diagnostic // information }; ```", + "type": "object", + "required": [ + "events", + "ext", + "operations", + "tx_changes_after", + "tx_changes_before", + "tx_diagnostic_events" + ], + "properties": { + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/ContractEvent" + }, + "maxItems": 4294967295 + }, + "ext": { + "$ref": "#/definitions/ExtensionPoint" + }, + "operations": { + "type": "array", + "items": { + "$ref": "#/definitions/OperationMetaV2" + }, + "maxItems": 4294967295 + }, + "soroban_meta": { + "anyOf": [ + { + "$ref": "#/definitions/SorobanTransactionMetaV2" + }, + { + "type": "null" + } + ] + }, + "tx_changes_after": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "tx_changes_before": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "tx_diagnostic_events": { + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticEvent" + }, + "maxItems": 4294967295 + } + } + }, "TransactionResult": { "description": "TransactionResult is an XDR Struct defines as:\n\n```text struct TransactionResult { int64 feeCharged; // actual fee charged for the transaction\n\nunion switch (TransactionResultCode code) { case txFEE_BUMP_INNER_SUCCESS: case txFEE_BUMP_INNER_FAILED: InnerTransactionResultPair innerResultPair; case txSUCCESS: case txFAILED: OperationResult results<>; case txTOO_EARLY: case txTOO_LATE: case txMISSING_OPERATION: case txBAD_SEQ: case txBAD_AUTH: case txINSUFFICIENT_BALANCE: case txNO_ACCOUNT: case txINSUFFICIENT_FEE: case txBAD_AUTH_EXTRA: case txINTERNAL_ERROR: case txNOT_SUPPORTED: // case txFEE_BUMP_INNER_FAILED: handled above case txBAD_SPONSORSHIP: case txBAD_MIN_SEQ_AGE_OR_GAP: case txMALFORMED: case txSOROBAN_INVALID: void; } result;\n\n// reserved for future use union switch (int v) { case 0: void; } ext; }; ```", "type": "object", diff --git a/xdr-json/next/AuthenticatedMessage.json b/xdr-json/next/AuthenticatedMessage.json index d30ffc2b..752d4ff1 100644 --- a/xdr-json/next/AuthenticatedMessage.json +++ b/xdr-json/next/AuthenticatedMessage.json @@ -1670,7 +1670,7 @@ ] }, "MessageType": { - "description": "MessageType is an XDR Enum defines as:\n\n```text enum MessageType { ERROR_MSG = 0, AUTH = 2, DONT_HAVE = 3, // GET_PEERS (4) is deprecated\n\nPEERS = 5,\n\nGET_TX_SET = 6, // gets a particular txset by hash TX_SET = 7, GENERALIZED_TX_SET = 17,\n\nTRANSACTION = 8, // pass on a tx you have heard about\n\n// SCP GET_SCP_QUORUMSET = 9, SCP_QUORUMSET = 10, SCP_MESSAGE = 11, GET_SCP_STATE = 12,\n\n// new messages HELLO = 13,\n\nSURVEY_REQUEST = 14, SURVEY_RESPONSE = 15,\n\nSEND_MORE = 16, SEND_MORE_EXTENDED = 20,\n\nFLOOD_ADVERT = 18, FLOOD_DEMAND = 19,\n\nTIME_SLICED_SURVEY_REQUEST = 21, TIME_SLICED_SURVEY_RESPONSE = 22, TIME_SLICED_SURVEY_START_COLLECTING = 23, TIME_SLICED_SURVEY_STOP_COLLECTING = 24 }; ```", + "description": "MessageType is an XDR Enum defines as:\n\n```text enum MessageType { ERROR_MSG = 0, AUTH = 2, DONT_HAVE = 3, // GET_PEERS (4) is deprecated\n\nPEERS = 5,\n\nGET_TX_SET = 6, // gets a particular txset by hash TX_SET = 7, GENERALIZED_TX_SET = 17,\n\nTRANSACTION = 8, // pass on a tx you have heard about\n\n// SCP GET_SCP_QUORUMSET = 9, SCP_QUORUMSET = 10, SCP_MESSAGE = 11, GET_SCP_STATE = 12,\n\n// new messages HELLO = 13,\n\n// SURVEY_REQUEST (14) removed and replaced by TIME_SLICED_SURVEY_REQUEST // SURVEY_RESPONSE (15) removed and replaced by TIME_SLICED_SURVEY_RESPONSE\n\nSEND_MORE = 16, SEND_MORE_EXTENDED = 20,\n\nFLOOD_ADVERT = 18, FLOOD_DEMAND = 19,\n\nTIME_SLICED_SURVEY_REQUEST = 21, TIME_SLICED_SURVEY_RESPONSE = 22, TIME_SLICED_SURVEY_START_COLLECTING = 23, TIME_SLICED_SURVEY_STOP_COLLECTING = 24 }; ```", "type": "string", "enum": [ "error_msg", @@ -1686,8 +1686,6 @@ "scp_message", "get_scp_state", "hello", - "survey_request", - "survey_response", "send_more", "send_more_extended", "flood_advert", @@ -3367,38 +3365,6 @@ "contentEncoding": "hex", "contentMediaType": "application/binary" }, - "SignedSurveyRequestMessage": { - "description": "SignedSurveyRequestMessage is an XDR Struct defines as:\n\n```text struct SignedSurveyRequestMessage { Signature requestSignature; SurveyRequestMessage request; }; ```", - "type": "object", - "required": [ - "request", - "request_signature" - ], - "properties": { - "request": { - "$ref": "#/definitions/SurveyRequestMessage" - }, - "request_signature": { - "$ref": "#/definitions/Signature" - } - } - }, - "SignedSurveyResponseMessage": { - "description": "SignedSurveyResponseMessage is an XDR Struct defines as:\n\n```text struct SignedSurveyResponseMessage { Signature responseSignature; SurveyResponseMessage response; }; ```", - "type": "object", - "required": [ - "response", - "response_signature" - ], - "properties": { - "response": { - "$ref": "#/definitions/SurveyResponseMessage" - }, - "response_signature": { - "$ref": "#/definitions/Signature" - } - } - }, "SignedTimeSlicedSurveyRequestMessage": { "description": "SignedTimeSlicedSurveyRequestMessage is an XDR Struct defines as:\n\n```text struct SignedTimeSlicedSurveyRequestMessage { Signature requestSignature; TimeSlicedSurveyRequestMessage request; }; ```", "type": "object", @@ -3704,7 +3670,7 @@ ] }, "StellarMessage": { - "description": "StellarMessage is an XDR Union defines as:\n\n```text union StellarMessage switch (MessageType type) { case ERROR_MSG: Error error; case HELLO: Hello hello; case AUTH: Auth auth; case DONT_HAVE: DontHave dontHave; case PEERS: PeerAddress peers<100>;\n\ncase GET_TX_SET: uint256 txSetHash; case TX_SET: TransactionSet txSet; case GENERALIZED_TX_SET: GeneralizedTransactionSet generalizedTxSet;\n\ncase TRANSACTION: TransactionEnvelope transaction;\n\ncase SURVEY_REQUEST: SignedSurveyRequestMessage signedSurveyRequestMessage;\n\ncase SURVEY_RESPONSE: SignedSurveyResponseMessage signedSurveyResponseMessage;\n\ncase TIME_SLICED_SURVEY_REQUEST: SignedTimeSlicedSurveyRequestMessage signedTimeSlicedSurveyRequestMessage;\n\ncase TIME_SLICED_SURVEY_RESPONSE: SignedTimeSlicedSurveyResponseMessage signedTimeSlicedSurveyResponseMessage;\n\ncase TIME_SLICED_SURVEY_START_COLLECTING: SignedTimeSlicedSurveyStartCollectingMessage signedTimeSlicedSurveyStartCollectingMessage;\n\ncase TIME_SLICED_SURVEY_STOP_COLLECTING: SignedTimeSlicedSurveyStopCollectingMessage signedTimeSlicedSurveyStopCollectingMessage;\n\n// SCP case GET_SCP_QUORUMSET: uint256 qSetHash; case SCP_QUORUMSET: SCPQuorumSet qSet; case SCP_MESSAGE: SCPEnvelope envelope; case GET_SCP_STATE: uint32 getSCPLedgerSeq; // ledger seq requested ; if 0, requests the latest case SEND_MORE: SendMore sendMoreMessage; case SEND_MORE_EXTENDED: SendMoreExtended sendMoreExtendedMessage; // Pull mode case FLOOD_ADVERT: FloodAdvert floodAdvert; case FLOOD_DEMAND: FloodDemand floodDemand; }; ```", + "description": "StellarMessage is an XDR Union defines as:\n\n```text union StellarMessage switch (MessageType type) { case ERROR_MSG: Error error; case HELLO: Hello hello; case AUTH: Auth auth; case DONT_HAVE: DontHave dontHave; case PEERS: PeerAddress peers<100>;\n\ncase GET_TX_SET: uint256 txSetHash; case TX_SET: TransactionSet txSet; case GENERALIZED_TX_SET: GeneralizedTransactionSet generalizedTxSet;\n\ncase TRANSACTION: TransactionEnvelope transaction;\n\ncase TIME_SLICED_SURVEY_REQUEST: SignedTimeSlicedSurveyRequestMessage signedTimeSlicedSurveyRequestMessage;\n\ncase TIME_SLICED_SURVEY_RESPONSE: SignedTimeSlicedSurveyResponseMessage signedTimeSlicedSurveyResponseMessage;\n\ncase TIME_SLICED_SURVEY_START_COLLECTING: SignedTimeSlicedSurveyStartCollectingMessage signedTimeSlicedSurveyStartCollectingMessage;\n\ncase TIME_SLICED_SURVEY_STOP_COLLECTING: SignedTimeSlicedSurveyStopCollectingMessage signedTimeSlicedSurveyStopCollectingMessage;\n\n// SCP case GET_SCP_QUORUMSET: uint256 qSetHash; case SCP_QUORUMSET: SCPQuorumSet qSet; case SCP_MESSAGE: SCPEnvelope envelope; case GET_SCP_STATE: uint32 getSCPLedgerSeq; // ledger seq requested ; if 0, requests the latest case SEND_MORE: SendMore sendMoreMessage; case SEND_MORE_EXTENDED: SendMoreExtended sendMoreExtendedMessage; // Pull mode case FLOOD_ADVERT: FloodAdvert floodAdvert; case FLOOD_DEMAND: FloodDemand floodDemand; }; ```", "oneOf": [ { "type": "object", @@ -3822,30 +3788,6 @@ }, "additionalProperties": false }, - { - "type": "object", - "required": [ - "survey_request" - ], - "properties": { - "survey_request": { - "$ref": "#/definitions/SignedSurveyRequestMessage" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "survey_response" - ], - "properties": { - "survey_response": { - "$ref": "#/definitions/SignedSurveyResponseMessage" - } - }, - "additionalProperties": false - }, { "type": "object", "required": [ @@ -4027,10 +3969,9 @@ "maxLength": 64 }, "SurveyMessageCommandType": { - "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", + "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", "type": "string", "enum": [ - "survey_topology", "time_sliced_survey_topology" ] }, diff --git a/xdr-json/next/AuthenticatedMessageV0.json b/xdr-json/next/AuthenticatedMessageV0.json index 2fa51c2b..b619be73 100644 --- a/xdr-json/next/AuthenticatedMessageV0.json +++ b/xdr-json/next/AuthenticatedMessageV0.json @@ -1653,7 +1653,7 @@ ] }, "MessageType": { - "description": "MessageType is an XDR Enum defines as:\n\n```text enum MessageType { ERROR_MSG = 0, AUTH = 2, DONT_HAVE = 3, // GET_PEERS (4) is deprecated\n\nPEERS = 5,\n\nGET_TX_SET = 6, // gets a particular txset by hash TX_SET = 7, GENERALIZED_TX_SET = 17,\n\nTRANSACTION = 8, // pass on a tx you have heard about\n\n// SCP GET_SCP_QUORUMSET = 9, SCP_QUORUMSET = 10, SCP_MESSAGE = 11, GET_SCP_STATE = 12,\n\n// new messages HELLO = 13,\n\nSURVEY_REQUEST = 14, SURVEY_RESPONSE = 15,\n\nSEND_MORE = 16, SEND_MORE_EXTENDED = 20,\n\nFLOOD_ADVERT = 18, FLOOD_DEMAND = 19,\n\nTIME_SLICED_SURVEY_REQUEST = 21, TIME_SLICED_SURVEY_RESPONSE = 22, TIME_SLICED_SURVEY_START_COLLECTING = 23, TIME_SLICED_SURVEY_STOP_COLLECTING = 24 }; ```", + "description": "MessageType is an XDR Enum defines as:\n\n```text enum MessageType { ERROR_MSG = 0, AUTH = 2, DONT_HAVE = 3, // GET_PEERS (4) is deprecated\n\nPEERS = 5,\n\nGET_TX_SET = 6, // gets a particular txset by hash TX_SET = 7, GENERALIZED_TX_SET = 17,\n\nTRANSACTION = 8, // pass on a tx you have heard about\n\n// SCP GET_SCP_QUORUMSET = 9, SCP_QUORUMSET = 10, SCP_MESSAGE = 11, GET_SCP_STATE = 12,\n\n// new messages HELLO = 13,\n\n// SURVEY_REQUEST (14) removed and replaced by TIME_SLICED_SURVEY_REQUEST // SURVEY_RESPONSE (15) removed and replaced by TIME_SLICED_SURVEY_RESPONSE\n\nSEND_MORE = 16, SEND_MORE_EXTENDED = 20,\n\nFLOOD_ADVERT = 18, FLOOD_DEMAND = 19,\n\nTIME_SLICED_SURVEY_REQUEST = 21, TIME_SLICED_SURVEY_RESPONSE = 22, TIME_SLICED_SURVEY_START_COLLECTING = 23, TIME_SLICED_SURVEY_STOP_COLLECTING = 24 }; ```", "type": "string", "enum": [ "error_msg", @@ -1669,8 +1669,6 @@ "scp_message", "get_scp_state", "hello", - "survey_request", - "survey_response", "send_more", "send_more_extended", "flood_advert", @@ -3350,38 +3348,6 @@ "contentEncoding": "hex", "contentMediaType": "application/binary" }, - "SignedSurveyRequestMessage": { - "description": "SignedSurveyRequestMessage is an XDR Struct defines as:\n\n```text struct SignedSurveyRequestMessage { Signature requestSignature; SurveyRequestMessage request; }; ```", - "type": "object", - "required": [ - "request", - "request_signature" - ], - "properties": { - "request": { - "$ref": "#/definitions/SurveyRequestMessage" - }, - "request_signature": { - "$ref": "#/definitions/Signature" - } - } - }, - "SignedSurveyResponseMessage": { - "description": "SignedSurveyResponseMessage is an XDR Struct defines as:\n\n```text struct SignedSurveyResponseMessage { Signature responseSignature; SurveyResponseMessage response; }; ```", - "type": "object", - "required": [ - "response", - "response_signature" - ], - "properties": { - "response": { - "$ref": "#/definitions/SurveyResponseMessage" - }, - "response_signature": { - "$ref": "#/definitions/Signature" - } - } - }, "SignedTimeSlicedSurveyRequestMessage": { "description": "SignedTimeSlicedSurveyRequestMessage is an XDR Struct defines as:\n\n```text struct SignedTimeSlicedSurveyRequestMessage { Signature requestSignature; TimeSlicedSurveyRequestMessage request; }; ```", "type": "object", @@ -3687,7 +3653,7 @@ ] }, "StellarMessage": { - "description": "StellarMessage is an XDR Union defines as:\n\n```text union StellarMessage switch (MessageType type) { case ERROR_MSG: Error error; case HELLO: Hello hello; case AUTH: Auth auth; case DONT_HAVE: DontHave dontHave; case PEERS: PeerAddress peers<100>;\n\ncase GET_TX_SET: uint256 txSetHash; case TX_SET: TransactionSet txSet; case GENERALIZED_TX_SET: GeneralizedTransactionSet generalizedTxSet;\n\ncase TRANSACTION: TransactionEnvelope transaction;\n\ncase SURVEY_REQUEST: SignedSurveyRequestMessage signedSurveyRequestMessage;\n\ncase SURVEY_RESPONSE: SignedSurveyResponseMessage signedSurveyResponseMessage;\n\ncase TIME_SLICED_SURVEY_REQUEST: SignedTimeSlicedSurveyRequestMessage signedTimeSlicedSurveyRequestMessage;\n\ncase TIME_SLICED_SURVEY_RESPONSE: SignedTimeSlicedSurveyResponseMessage signedTimeSlicedSurveyResponseMessage;\n\ncase TIME_SLICED_SURVEY_START_COLLECTING: SignedTimeSlicedSurveyStartCollectingMessage signedTimeSlicedSurveyStartCollectingMessage;\n\ncase TIME_SLICED_SURVEY_STOP_COLLECTING: SignedTimeSlicedSurveyStopCollectingMessage signedTimeSlicedSurveyStopCollectingMessage;\n\n// SCP case GET_SCP_QUORUMSET: uint256 qSetHash; case SCP_QUORUMSET: SCPQuorumSet qSet; case SCP_MESSAGE: SCPEnvelope envelope; case GET_SCP_STATE: uint32 getSCPLedgerSeq; // ledger seq requested ; if 0, requests the latest case SEND_MORE: SendMore sendMoreMessage; case SEND_MORE_EXTENDED: SendMoreExtended sendMoreExtendedMessage; // Pull mode case FLOOD_ADVERT: FloodAdvert floodAdvert; case FLOOD_DEMAND: FloodDemand floodDemand; }; ```", + "description": "StellarMessage is an XDR Union defines as:\n\n```text union StellarMessage switch (MessageType type) { case ERROR_MSG: Error error; case HELLO: Hello hello; case AUTH: Auth auth; case DONT_HAVE: DontHave dontHave; case PEERS: PeerAddress peers<100>;\n\ncase GET_TX_SET: uint256 txSetHash; case TX_SET: TransactionSet txSet; case GENERALIZED_TX_SET: GeneralizedTransactionSet generalizedTxSet;\n\ncase TRANSACTION: TransactionEnvelope transaction;\n\ncase TIME_SLICED_SURVEY_REQUEST: SignedTimeSlicedSurveyRequestMessage signedTimeSlicedSurveyRequestMessage;\n\ncase TIME_SLICED_SURVEY_RESPONSE: SignedTimeSlicedSurveyResponseMessage signedTimeSlicedSurveyResponseMessage;\n\ncase TIME_SLICED_SURVEY_START_COLLECTING: SignedTimeSlicedSurveyStartCollectingMessage signedTimeSlicedSurveyStartCollectingMessage;\n\ncase TIME_SLICED_SURVEY_STOP_COLLECTING: SignedTimeSlicedSurveyStopCollectingMessage signedTimeSlicedSurveyStopCollectingMessage;\n\n// SCP case GET_SCP_QUORUMSET: uint256 qSetHash; case SCP_QUORUMSET: SCPQuorumSet qSet; case SCP_MESSAGE: SCPEnvelope envelope; case GET_SCP_STATE: uint32 getSCPLedgerSeq; // ledger seq requested ; if 0, requests the latest case SEND_MORE: SendMore sendMoreMessage; case SEND_MORE_EXTENDED: SendMoreExtended sendMoreExtendedMessage; // Pull mode case FLOOD_ADVERT: FloodAdvert floodAdvert; case FLOOD_DEMAND: FloodDemand floodDemand; }; ```", "oneOf": [ { "type": "object", @@ -3805,30 +3771,6 @@ }, "additionalProperties": false }, - { - "type": "object", - "required": [ - "survey_request" - ], - "properties": { - "survey_request": { - "$ref": "#/definitions/SignedSurveyRequestMessage" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "survey_response" - ], - "properties": { - "survey_response": { - "$ref": "#/definitions/SignedSurveyResponseMessage" - } - }, - "additionalProperties": false - }, { "type": "object", "required": [ @@ -4010,10 +3952,9 @@ "maxLength": 64 }, "SurveyMessageCommandType": { - "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", + "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", "type": "string", "enum": [ - "survey_topology", "time_sliced_survey_topology" ] }, diff --git a/xdr-json/next/DontHave.json b/xdr-json/next/DontHave.json index a37d49c1..c720bbeb 100644 --- a/xdr-json/next/DontHave.json +++ b/xdr-json/next/DontHave.json @@ -21,7 +21,7 @@ }, "definitions": { "MessageType": { - "description": "MessageType is an XDR Enum defines as:\n\n```text enum MessageType { ERROR_MSG = 0, AUTH = 2, DONT_HAVE = 3, // GET_PEERS (4) is deprecated\n\nPEERS = 5,\n\nGET_TX_SET = 6, // gets a particular txset by hash TX_SET = 7, GENERALIZED_TX_SET = 17,\n\nTRANSACTION = 8, // pass on a tx you have heard about\n\n// SCP GET_SCP_QUORUMSET = 9, SCP_QUORUMSET = 10, SCP_MESSAGE = 11, GET_SCP_STATE = 12,\n\n// new messages HELLO = 13,\n\nSURVEY_REQUEST = 14, SURVEY_RESPONSE = 15,\n\nSEND_MORE = 16, SEND_MORE_EXTENDED = 20,\n\nFLOOD_ADVERT = 18, FLOOD_DEMAND = 19,\n\nTIME_SLICED_SURVEY_REQUEST = 21, TIME_SLICED_SURVEY_RESPONSE = 22, TIME_SLICED_SURVEY_START_COLLECTING = 23, TIME_SLICED_SURVEY_STOP_COLLECTING = 24 }; ```", + "description": "MessageType is an XDR Enum defines as:\n\n```text enum MessageType { ERROR_MSG = 0, AUTH = 2, DONT_HAVE = 3, // GET_PEERS (4) is deprecated\n\nPEERS = 5,\n\nGET_TX_SET = 6, // gets a particular txset by hash TX_SET = 7, GENERALIZED_TX_SET = 17,\n\nTRANSACTION = 8, // pass on a tx you have heard about\n\n// SCP GET_SCP_QUORUMSET = 9, SCP_QUORUMSET = 10, SCP_MESSAGE = 11, GET_SCP_STATE = 12,\n\n// new messages HELLO = 13,\n\n// SURVEY_REQUEST (14) removed and replaced by TIME_SLICED_SURVEY_REQUEST // SURVEY_RESPONSE (15) removed and replaced by TIME_SLICED_SURVEY_RESPONSE\n\nSEND_MORE = 16, SEND_MORE_EXTENDED = 20,\n\nFLOOD_ADVERT = 18, FLOOD_DEMAND = 19,\n\nTIME_SLICED_SURVEY_REQUEST = 21, TIME_SLICED_SURVEY_RESPONSE = 22, TIME_SLICED_SURVEY_START_COLLECTING = 23, TIME_SLICED_SURVEY_STOP_COLLECTING = 24 }; ```", "type": "string", "enum": [ "error_msg", @@ -37,8 +37,6 @@ "scp_message", "get_scp_state", "hello", - "survey_request", - "survey_response", "send_more", "send_more_extended", "flood_advert", diff --git a/xdr-json/next/LedgerCloseMeta.json b/xdr-json/next/LedgerCloseMeta.json index 74067a5c..8518aaff 100644 --- a/xdr-json/next/LedgerCloseMeta.json +++ b/xdr-json/next/LedgerCloseMeta.json @@ -4423,6 +4423,38 @@ } } }, + "OperationMetaV2": { + "description": "OperationMetaV2 is an XDR Struct defines as:\n\n```text struct OperationMetaV2 { ExtensionPoint ext;\n\nLedgerEntryChanges changes;\n\nContractEvent events<>; DiagnosticEvent diagnosticEvents<>; }; ```", + "type": "object", + "required": [ + "changes", + "diagnostic_events", + "events", + "ext" + ], + "properties": { + "changes": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "diagnostic_events": { + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticEvent" + }, + "maxItems": 4294967295 + }, + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/ContractEvent" + }, + "maxItems": 4294967295 + }, + "ext": { + "$ref": "#/definitions/ExtensionPoint" + } + } + }, "OperationResult": { "description": "OperationResult is an XDR Union defines as:\n\n```text union OperationResult switch (OperationResultCode code) { case opINNER: union switch (OperationType type) { case CREATE_ACCOUNT: CreateAccountResult createAccountResult; case PAYMENT: PaymentResult paymentResult; case PATH_PAYMENT_STRICT_RECEIVE: PathPaymentStrictReceiveResult pathPaymentStrictReceiveResult; case MANAGE_SELL_OFFER: ManageSellOfferResult manageSellOfferResult; case CREATE_PASSIVE_SELL_OFFER: ManageSellOfferResult createPassiveSellOfferResult; case SET_OPTIONS: SetOptionsResult setOptionsResult; case CHANGE_TRUST: ChangeTrustResult changeTrustResult; case ALLOW_TRUST: AllowTrustResult allowTrustResult; case ACCOUNT_MERGE: AccountMergeResult accountMergeResult; case INFLATION: InflationResult inflationResult; case MANAGE_DATA: ManageDataResult manageDataResult; case BUMP_SEQUENCE: BumpSequenceResult bumpSeqResult; case MANAGE_BUY_OFFER: ManageBuyOfferResult manageBuyOfferResult; case PATH_PAYMENT_STRICT_SEND: PathPaymentStrictSendResult pathPaymentStrictSendResult; case CREATE_CLAIMABLE_BALANCE: CreateClaimableBalanceResult createClaimableBalanceResult; case CLAIM_CLAIMABLE_BALANCE: ClaimClaimableBalanceResult claimClaimableBalanceResult; case BEGIN_SPONSORING_FUTURE_RESERVES: BeginSponsoringFutureReservesResult beginSponsoringFutureReservesResult; case END_SPONSORING_FUTURE_RESERVES: EndSponsoringFutureReservesResult endSponsoringFutureReservesResult; case REVOKE_SPONSORSHIP: RevokeSponsorshipResult revokeSponsorshipResult; case CLAWBACK: ClawbackResult clawbackResult; case CLAWBACK_CLAIMABLE_BALANCE: ClawbackClaimableBalanceResult clawbackClaimableBalanceResult; case SET_TRUST_LINE_FLAGS: SetTrustLineFlagsResult setTrustLineFlagsResult; case LIQUIDITY_POOL_DEPOSIT: LiquidityPoolDepositResult liquidityPoolDepositResult; case LIQUIDITY_POOL_WITHDRAW: LiquidityPoolWithdrawResult liquidityPoolWithdrawResult; case INVOKE_HOST_FUNCTION: InvokeHostFunctionResult invokeHostFunctionResult; case EXTEND_FOOTPRINT_TTL: ExtendFootprintTTLResult extendFootprintTTLResult; case RESTORE_FOOTPRINT: RestoreFootprintResult restoreFootprintResult; } tr; case opBAD_AUTH: case opNO_ACCOUNT: case opNOT_SUPPORTED: case opTOO_MANY_SUBENTRIES: case opEXCEEDED_WORK_LIMIT: case opTOO_MANY_SPONSORING: void; }; ```", "oneOf": [ @@ -6569,6 +6601,22 @@ } } }, + "SorobanTransactionMetaV2": { + "description": "SorobanTransactionMetaV2 is an XDR Struct defines as:\n\n```text struct SorobanTransactionMetaV2 { SorobanTransactionMetaExt ext;\n\nSCVal returnValue; }; ```", + "type": "object", + "required": [ + "ext", + "return_value" + ], + "properties": { + "ext": { + "$ref": "#/definitions/SorobanTransactionMetaExt" + }, + "return_value": { + "$ref": "#/definitions/ScVal" + } + } + }, "SponsorshipDescriptor": { "description": "SponsorshipDescriptor is an XDR Typedef defines as:\n\n```text typedef AccountID* SponsorshipDescriptor; ```", "anyOf": [ @@ -6854,7 +6902,7 @@ ] }, "TransactionMeta": { - "description": "TransactionMeta is an XDR Union defines as:\n\n```text union TransactionMeta switch (int v) { case 0: OperationMeta operations<>; case 1: TransactionMetaV1 v1; case 2: TransactionMetaV2 v2; case 3: TransactionMetaV3 v3; }; ```", + "description": "TransactionMeta is an XDR Union defines as:\n\n```text union TransactionMeta switch (int v) { case 0: OperationMeta operations<>; case 1: TransactionMetaV1 v1; case 2: TransactionMetaV2 v2; case 3: TransactionMetaV3 v3; case 4: TransactionMetaV4 v4; }; ```", "oneOf": [ { "type": "object", @@ -6907,6 +6955,18 @@ } }, "additionalProperties": false + }, + { + "type": "object", + "required": [ + "v4" + ], + "properties": { + "v4": { + "$ref": "#/definitions/TransactionMetaV4" + } + }, + "additionalProperties": false } ] }, @@ -6992,6 +7052,60 @@ } } }, + "TransactionMetaV4": { + "description": "TransactionMetaV4 is an XDR Struct defines as:\n\n```text struct TransactionMetaV4 { ExtensionPoint ext;\n\nLedgerEntryChanges txChangesBefore; // tx level changes before operations // are applied if any OperationMetaV2 operations<>; // meta for each operation LedgerEntryChanges txChangesAfter; // tx level changes after operations are // applied if any SorobanTransactionMetaV2* sorobanMeta; // Soroban-specific meta (only for // Soroban transactions).\n\nContractEvent events<>; // Used for transaction-level events (like fee payment) DiagnosticEvent txDiagnosticEvents<>; // Used for transaction-level diagnostic // information }; ```", + "type": "object", + "required": [ + "events", + "ext", + "operations", + "tx_changes_after", + "tx_changes_before", + "tx_diagnostic_events" + ], + "properties": { + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/ContractEvent" + }, + "maxItems": 4294967295 + }, + "ext": { + "$ref": "#/definitions/ExtensionPoint" + }, + "operations": { + "type": "array", + "items": { + "$ref": "#/definitions/OperationMetaV2" + }, + "maxItems": 4294967295 + }, + "soroban_meta": { + "anyOf": [ + { + "$ref": "#/definitions/SorobanTransactionMetaV2" + }, + { + "type": "null" + } + ] + }, + "tx_changes_after": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "tx_changes_before": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "tx_diagnostic_events": { + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticEvent" + }, + "maxItems": 4294967295 + } + } + }, "TransactionPhase": { "description": "TransactionPhase is an XDR Union defines as:\n\n```text union TransactionPhase switch (int v) { case 0: TxSetComponent v0Components<>; case 1: ParallelTxsComponent parallelTxsComponent; }; ```", "oneOf": [ diff --git a/xdr-json/next/LedgerCloseMetaV0.json b/xdr-json/next/LedgerCloseMetaV0.json index ad12bf59..473168c1 100644 --- a/xdr-json/next/LedgerCloseMetaV0.json +++ b/xdr-json/next/LedgerCloseMetaV0.json @@ -4263,6 +4263,38 @@ } } }, + "OperationMetaV2": { + "description": "OperationMetaV2 is an XDR Struct defines as:\n\n```text struct OperationMetaV2 { ExtensionPoint ext;\n\nLedgerEntryChanges changes;\n\nContractEvent events<>; DiagnosticEvent diagnosticEvents<>; }; ```", + "type": "object", + "required": [ + "changes", + "diagnostic_events", + "events", + "ext" + ], + "properties": { + "changes": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "diagnostic_events": { + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticEvent" + }, + "maxItems": 4294967295 + }, + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/ContractEvent" + }, + "maxItems": 4294967295 + }, + "ext": { + "$ref": "#/definitions/ExtensionPoint" + } + } + }, "OperationResult": { "description": "OperationResult is an XDR Union defines as:\n\n```text union OperationResult switch (OperationResultCode code) { case opINNER: union switch (OperationType type) { case CREATE_ACCOUNT: CreateAccountResult createAccountResult; case PAYMENT: PaymentResult paymentResult; case PATH_PAYMENT_STRICT_RECEIVE: PathPaymentStrictReceiveResult pathPaymentStrictReceiveResult; case MANAGE_SELL_OFFER: ManageSellOfferResult manageSellOfferResult; case CREATE_PASSIVE_SELL_OFFER: ManageSellOfferResult createPassiveSellOfferResult; case SET_OPTIONS: SetOptionsResult setOptionsResult; case CHANGE_TRUST: ChangeTrustResult changeTrustResult; case ALLOW_TRUST: AllowTrustResult allowTrustResult; case ACCOUNT_MERGE: AccountMergeResult accountMergeResult; case INFLATION: InflationResult inflationResult; case MANAGE_DATA: ManageDataResult manageDataResult; case BUMP_SEQUENCE: BumpSequenceResult bumpSeqResult; case MANAGE_BUY_OFFER: ManageBuyOfferResult manageBuyOfferResult; case PATH_PAYMENT_STRICT_SEND: PathPaymentStrictSendResult pathPaymentStrictSendResult; case CREATE_CLAIMABLE_BALANCE: CreateClaimableBalanceResult createClaimableBalanceResult; case CLAIM_CLAIMABLE_BALANCE: ClaimClaimableBalanceResult claimClaimableBalanceResult; case BEGIN_SPONSORING_FUTURE_RESERVES: BeginSponsoringFutureReservesResult beginSponsoringFutureReservesResult; case END_SPONSORING_FUTURE_RESERVES: EndSponsoringFutureReservesResult endSponsoringFutureReservesResult; case REVOKE_SPONSORSHIP: RevokeSponsorshipResult revokeSponsorshipResult; case CLAWBACK: ClawbackResult clawbackResult; case CLAWBACK_CLAIMABLE_BALANCE: ClawbackClaimableBalanceResult clawbackClaimableBalanceResult; case SET_TRUST_LINE_FLAGS: SetTrustLineFlagsResult setTrustLineFlagsResult; case LIQUIDITY_POOL_DEPOSIT: LiquidityPoolDepositResult liquidityPoolDepositResult; case LIQUIDITY_POOL_WITHDRAW: LiquidityPoolWithdrawResult liquidityPoolWithdrawResult; case INVOKE_HOST_FUNCTION: InvokeHostFunctionResult invokeHostFunctionResult; case EXTEND_FOOTPRINT_TTL: ExtendFootprintTTLResult extendFootprintTTLResult; case RESTORE_FOOTPRINT: RestoreFootprintResult restoreFootprintResult; } tr; case opBAD_AUTH: case opNO_ACCOUNT: case opNOT_SUPPORTED: case opTOO_MANY_SUBENTRIES: case opEXCEEDED_WORK_LIMIT: case opTOO_MANY_SPONSORING: void; }; ```", "oneOf": [ @@ -6378,6 +6410,22 @@ } } }, + "SorobanTransactionMetaV2": { + "description": "SorobanTransactionMetaV2 is an XDR Struct defines as:\n\n```text struct SorobanTransactionMetaV2 { SorobanTransactionMetaExt ext;\n\nSCVal returnValue; }; ```", + "type": "object", + "required": [ + "ext", + "return_value" + ], + "properties": { + "ext": { + "$ref": "#/definitions/SorobanTransactionMetaExt" + }, + "return_value": { + "$ref": "#/definitions/ScVal" + } + } + }, "SponsorshipDescriptor": { "description": "SponsorshipDescriptor is an XDR Typedef defines as:\n\n```text typedef AccountID* SponsorshipDescriptor; ```", "anyOf": [ @@ -6663,7 +6711,7 @@ ] }, "TransactionMeta": { - "description": "TransactionMeta is an XDR Union defines as:\n\n```text union TransactionMeta switch (int v) { case 0: OperationMeta operations<>; case 1: TransactionMetaV1 v1; case 2: TransactionMetaV2 v2; case 3: TransactionMetaV3 v3; }; ```", + "description": "TransactionMeta is an XDR Union defines as:\n\n```text union TransactionMeta switch (int v) { case 0: OperationMeta operations<>; case 1: TransactionMetaV1 v1; case 2: TransactionMetaV2 v2; case 3: TransactionMetaV3 v3; case 4: TransactionMetaV4 v4; }; ```", "oneOf": [ { "type": "object", @@ -6716,6 +6764,18 @@ } }, "additionalProperties": false + }, + { + "type": "object", + "required": [ + "v4" + ], + "properties": { + "v4": { + "$ref": "#/definitions/TransactionMetaV4" + } + }, + "additionalProperties": false } ] }, @@ -6801,6 +6861,60 @@ } } }, + "TransactionMetaV4": { + "description": "TransactionMetaV4 is an XDR Struct defines as:\n\n```text struct TransactionMetaV4 { ExtensionPoint ext;\n\nLedgerEntryChanges txChangesBefore; // tx level changes before operations // are applied if any OperationMetaV2 operations<>; // meta for each operation LedgerEntryChanges txChangesAfter; // tx level changes after operations are // applied if any SorobanTransactionMetaV2* sorobanMeta; // Soroban-specific meta (only for // Soroban transactions).\n\nContractEvent events<>; // Used for transaction-level events (like fee payment) DiagnosticEvent txDiagnosticEvents<>; // Used for transaction-level diagnostic // information }; ```", + "type": "object", + "required": [ + "events", + "ext", + "operations", + "tx_changes_after", + "tx_changes_before", + "tx_diagnostic_events" + ], + "properties": { + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/ContractEvent" + }, + "maxItems": 4294967295 + }, + "ext": { + "$ref": "#/definitions/ExtensionPoint" + }, + "operations": { + "type": "array", + "items": { + "$ref": "#/definitions/OperationMetaV2" + }, + "maxItems": 4294967295 + }, + "soroban_meta": { + "anyOf": [ + { + "$ref": "#/definitions/SorobanTransactionMetaV2" + }, + { + "type": "null" + } + ] + }, + "tx_changes_after": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "tx_changes_before": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "tx_diagnostic_events": { + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticEvent" + }, + "maxItems": 4294967295 + } + } + }, "TransactionResult": { "description": "TransactionResult is an XDR Struct defines as:\n\n```text struct TransactionResult { int64 feeCharged; // actual fee charged for the transaction\n\nunion switch (TransactionResultCode code) { case txFEE_BUMP_INNER_SUCCESS: case txFEE_BUMP_INNER_FAILED: InnerTransactionResultPair innerResultPair; case txSUCCESS: case txFAILED: OperationResult results<>; case txTOO_EARLY: case txTOO_LATE: case txMISSING_OPERATION: case txBAD_SEQ: case txBAD_AUTH: case txINSUFFICIENT_BALANCE: case txNO_ACCOUNT: case txINSUFFICIENT_FEE: case txBAD_AUTH_EXTRA: case txINTERNAL_ERROR: case txNOT_SUPPORTED: // case txFEE_BUMP_INNER_FAILED: handled above case txBAD_SPONSORSHIP: case txBAD_MIN_SEQ_AGE_OR_GAP: case txMALFORMED: case txSOROBAN_INVALID: void; } result;\n\n// reserved for future use union switch (int v) { case 0: void; } ext; }; ```", "type": "object", diff --git a/xdr-json/next/LedgerCloseMetaV1.json b/xdr-json/next/LedgerCloseMetaV1.json index 6de411c3..2dfd7ee3 100644 --- a/xdr-json/next/LedgerCloseMetaV1.json +++ b/xdr-json/next/LedgerCloseMetaV1.json @@ -4354,6 +4354,38 @@ } } }, + "OperationMetaV2": { + "description": "OperationMetaV2 is an XDR Struct defines as:\n\n```text struct OperationMetaV2 { ExtensionPoint ext;\n\nLedgerEntryChanges changes;\n\nContractEvent events<>; DiagnosticEvent diagnosticEvents<>; }; ```", + "type": "object", + "required": [ + "changes", + "diagnostic_events", + "events", + "ext" + ], + "properties": { + "changes": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "diagnostic_events": { + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticEvent" + }, + "maxItems": 4294967295 + }, + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/ContractEvent" + }, + "maxItems": 4294967295 + }, + "ext": { + "$ref": "#/definitions/ExtensionPoint" + } + } + }, "OperationResult": { "description": "OperationResult is an XDR Union defines as:\n\n```text union OperationResult switch (OperationResultCode code) { case opINNER: union switch (OperationType type) { case CREATE_ACCOUNT: CreateAccountResult createAccountResult; case PAYMENT: PaymentResult paymentResult; case PATH_PAYMENT_STRICT_RECEIVE: PathPaymentStrictReceiveResult pathPaymentStrictReceiveResult; case MANAGE_SELL_OFFER: ManageSellOfferResult manageSellOfferResult; case CREATE_PASSIVE_SELL_OFFER: ManageSellOfferResult createPassiveSellOfferResult; case SET_OPTIONS: SetOptionsResult setOptionsResult; case CHANGE_TRUST: ChangeTrustResult changeTrustResult; case ALLOW_TRUST: AllowTrustResult allowTrustResult; case ACCOUNT_MERGE: AccountMergeResult accountMergeResult; case INFLATION: InflationResult inflationResult; case MANAGE_DATA: ManageDataResult manageDataResult; case BUMP_SEQUENCE: BumpSequenceResult bumpSeqResult; case MANAGE_BUY_OFFER: ManageBuyOfferResult manageBuyOfferResult; case PATH_PAYMENT_STRICT_SEND: PathPaymentStrictSendResult pathPaymentStrictSendResult; case CREATE_CLAIMABLE_BALANCE: CreateClaimableBalanceResult createClaimableBalanceResult; case CLAIM_CLAIMABLE_BALANCE: ClaimClaimableBalanceResult claimClaimableBalanceResult; case BEGIN_SPONSORING_FUTURE_RESERVES: BeginSponsoringFutureReservesResult beginSponsoringFutureReservesResult; case END_SPONSORING_FUTURE_RESERVES: EndSponsoringFutureReservesResult endSponsoringFutureReservesResult; case REVOKE_SPONSORSHIP: RevokeSponsorshipResult revokeSponsorshipResult; case CLAWBACK: ClawbackResult clawbackResult; case CLAWBACK_CLAIMABLE_BALANCE: ClawbackClaimableBalanceResult clawbackClaimableBalanceResult; case SET_TRUST_LINE_FLAGS: SetTrustLineFlagsResult setTrustLineFlagsResult; case LIQUIDITY_POOL_DEPOSIT: LiquidityPoolDepositResult liquidityPoolDepositResult; case LIQUIDITY_POOL_WITHDRAW: LiquidityPoolWithdrawResult liquidityPoolWithdrawResult; case INVOKE_HOST_FUNCTION: InvokeHostFunctionResult invokeHostFunctionResult; case EXTEND_FOOTPRINT_TTL: ExtendFootprintTTLResult extendFootprintTTLResult; case RESTORE_FOOTPRINT: RestoreFootprintResult restoreFootprintResult; } tr; case opBAD_AUTH: case opNO_ACCOUNT: case opNOT_SUPPORTED: case opTOO_MANY_SUBENTRIES: case opEXCEEDED_WORK_LIMIT: case opTOO_MANY_SPONSORING: void; }; ```", "oneOf": [ @@ -6500,6 +6532,22 @@ } } }, + "SorobanTransactionMetaV2": { + "description": "SorobanTransactionMetaV2 is an XDR Struct defines as:\n\n```text struct SorobanTransactionMetaV2 { SorobanTransactionMetaExt ext;\n\nSCVal returnValue; }; ```", + "type": "object", + "required": [ + "ext", + "return_value" + ], + "properties": { + "ext": { + "$ref": "#/definitions/SorobanTransactionMetaExt" + }, + "return_value": { + "$ref": "#/definitions/ScVal" + } + } + }, "SponsorshipDescriptor": { "description": "SponsorshipDescriptor is an XDR Typedef defines as:\n\n```text typedef AccountID* SponsorshipDescriptor; ```", "anyOf": [ @@ -6785,7 +6833,7 @@ ] }, "TransactionMeta": { - "description": "TransactionMeta is an XDR Union defines as:\n\n```text union TransactionMeta switch (int v) { case 0: OperationMeta operations<>; case 1: TransactionMetaV1 v1; case 2: TransactionMetaV2 v2; case 3: TransactionMetaV3 v3; }; ```", + "description": "TransactionMeta is an XDR Union defines as:\n\n```text union TransactionMeta switch (int v) { case 0: OperationMeta operations<>; case 1: TransactionMetaV1 v1; case 2: TransactionMetaV2 v2; case 3: TransactionMetaV3 v3; case 4: TransactionMetaV4 v4; }; ```", "oneOf": [ { "type": "object", @@ -6838,6 +6886,18 @@ } }, "additionalProperties": false + }, + { + "type": "object", + "required": [ + "v4" + ], + "properties": { + "v4": { + "$ref": "#/definitions/TransactionMetaV4" + } + }, + "additionalProperties": false } ] }, @@ -6923,6 +6983,60 @@ } } }, + "TransactionMetaV4": { + "description": "TransactionMetaV4 is an XDR Struct defines as:\n\n```text struct TransactionMetaV4 { ExtensionPoint ext;\n\nLedgerEntryChanges txChangesBefore; // tx level changes before operations // are applied if any OperationMetaV2 operations<>; // meta for each operation LedgerEntryChanges txChangesAfter; // tx level changes after operations are // applied if any SorobanTransactionMetaV2* sorobanMeta; // Soroban-specific meta (only for // Soroban transactions).\n\nContractEvent events<>; // Used for transaction-level events (like fee payment) DiagnosticEvent txDiagnosticEvents<>; // Used for transaction-level diagnostic // information }; ```", + "type": "object", + "required": [ + "events", + "ext", + "operations", + "tx_changes_after", + "tx_changes_before", + "tx_diagnostic_events" + ], + "properties": { + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/ContractEvent" + }, + "maxItems": 4294967295 + }, + "ext": { + "$ref": "#/definitions/ExtensionPoint" + }, + "operations": { + "type": "array", + "items": { + "$ref": "#/definitions/OperationMetaV2" + }, + "maxItems": 4294967295 + }, + "soroban_meta": { + "anyOf": [ + { + "$ref": "#/definitions/SorobanTransactionMetaV2" + }, + { + "type": "null" + } + ] + }, + "tx_changes_after": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "tx_changes_before": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "tx_diagnostic_events": { + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticEvent" + }, + "maxItems": 4294967295 + } + } + }, "TransactionPhase": { "description": "TransactionPhase is an XDR Union defines as:\n\n```text union TransactionPhase switch (int v) { case 0: TxSetComponent v0Components<>; case 1: ParallelTxsComponent parallelTxsComponent; }; ```", "oneOf": [ diff --git a/xdr-json/next/LedgerEntryChangeType.json b/xdr-json/next/LedgerEntryChangeType.json index bae71727..99196181 100644 --- a/xdr-json/next/LedgerEntryChangeType.json +++ b/xdr-json/next/LedgerEntryChangeType.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "LedgerEntryChangeType", - "description": "LedgerEntryChangeType is an XDR Enum defines as:\n\n```text enum LedgerEntryChangeType { LEDGER_ENTRY_CREATED = 0, // entry was added to the ledger LEDGER_ENTRY_UPDATED = 1, // entry was modified in the ledger LEDGER_ENTRY_REMOVED = 2, // entry was removed from the ledger LEDGER_ENTRY_STATE = 3, // value of the entry LEDGER_ENTRY_RESTORED = 4 // archived entry was restored in the ledger }; ```", + "description": "LedgerEntryChangeType is an XDR Enum defines as:\n\n```text enum LedgerEntryChangeType { LEDGER_ENTRY_CREATED = 0, // entry was added to the ledger LEDGER_ENTRY_UPDATED = 1, // entry was modified in the ledger LEDGER_ENTRY_REMOVED = 2, // entry was removed from the ledger LEDGER_ENTRY_STATE = 3, // value of the entry LEDGER_ENTRY_RESTORED = 4 // archived entry was restored in the ledger }; ```", "type": "string", "enum": [ "created", diff --git a/xdr-json/next/MessageType.json b/xdr-json/next/MessageType.json index 871507a8..8099d6ed 100644 --- a/xdr-json/next/MessageType.json +++ b/xdr-json/next/MessageType.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "MessageType", - "description": "MessageType is an XDR Enum defines as:\n\n```text enum MessageType { ERROR_MSG = 0, AUTH = 2, DONT_HAVE = 3, // GET_PEERS (4) is deprecated\n\nPEERS = 5,\n\nGET_TX_SET = 6, // gets a particular txset by hash TX_SET = 7, GENERALIZED_TX_SET = 17,\n\nTRANSACTION = 8, // pass on a tx you have heard about\n\n// SCP GET_SCP_QUORUMSET = 9, SCP_QUORUMSET = 10, SCP_MESSAGE = 11, GET_SCP_STATE = 12,\n\n// new messages HELLO = 13,\n\nSURVEY_REQUEST = 14, SURVEY_RESPONSE = 15,\n\nSEND_MORE = 16, SEND_MORE_EXTENDED = 20,\n\nFLOOD_ADVERT = 18, FLOOD_DEMAND = 19,\n\nTIME_SLICED_SURVEY_REQUEST = 21, TIME_SLICED_SURVEY_RESPONSE = 22, TIME_SLICED_SURVEY_START_COLLECTING = 23, TIME_SLICED_SURVEY_STOP_COLLECTING = 24 }; ```", + "description": "MessageType is an XDR Enum defines as:\n\n```text enum MessageType { ERROR_MSG = 0, AUTH = 2, DONT_HAVE = 3, // GET_PEERS (4) is deprecated\n\nPEERS = 5,\n\nGET_TX_SET = 6, // gets a particular txset by hash TX_SET = 7, GENERALIZED_TX_SET = 17,\n\nTRANSACTION = 8, // pass on a tx you have heard about\n\n// SCP GET_SCP_QUORUMSET = 9, SCP_QUORUMSET = 10, SCP_MESSAGE = 11, GET_SCP_STATE = 12,\n\n// new messages HELLO = 13,\n\n// SURVEY_REQUEST (14) removed and replaced by TIME_SLICED_SURVEY_REQUEST // SURVEY_RESPONSE (15) removed and replaced by TIME_SLICED_SURVEY_RESPONSE\n\nSEND_MORE = 16, SEND_MORE_EXTENDED = 20,\n\nFLOOD_ADVERT = 18, FLOOD_DEMAND = 19,\n\nTIME_SLICED_SURVEY_REQUEST = 21, TIME_SLICED_SURVEY_RESPONSE = 22, TIME_SLICED_SURVEY_START_COLLECTING = 23, TIME_SLICED_SURVEY_STOP_COLLECTING = 24 }; ```", "type": "string", "enum": [ "error_msg", @@ -17,8 +17,6 @@ "scp_message", "get_scp_state", "hello", - "survey_request", - "survey_response", "send_more", "send_more_extended", "flood_advert", diff --git a/xdr-json/next/ScAddressType.json b/xdr-json/next/ScAddressType.json index e5bc5e87..852c3795 100644 --- a/xdr-json/next/ScAddressType.json +++ b/xdr-json/next/ScAddressType.json @@ -1,10 +1,13 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "ScAddressType", - "description": "ScAddressType is an XDR Enum defines as:\n\n```text enum SCAddressType { SC_ADDRESS_TYPE_ACCOUNT = 0, SC_ADDRESS_TYPE_CONTRACT = 1 }; ```", + "description": "ScAddressType is an XDR Enum defines as:\n\n```text enum SCAddressType { SC_ADDRESS_TYPE_ACCOUNT = 0, SC_ADDRESS_TYPE_CONTRACT = 1, SC_ADDRESS_TYPE_MUXED_ACCOUNT = 2, SC_ADDRESS_TYPE_CLAIMABLE_BALANCE = 3, SC_ADDRESS_TYPE_LIQUIDITY_POOL = 4 }; ```", "type": "string", "enum": [ "account", - "contract" + "contract", + "muxed_account", + "claimable_balance", + "liquidity_pool" ] } \ No newline at end of file diff --git a/xdr-json/next/SignedTimeSlicedSurveyRequestMessage.json b/xdr-json/next/SignedTimeSlicedSurveyRequestMessage.json index 57be8b1b..806a354a 100644 --- a/xdr-json/next/SignedTimeSlicedSurveyRequestMessage.json +++ b/xdr-json/next/SignedTimeSlicedSurveyRequestMessage.json @@ -46,10 +46,9 @@ "contentMediaType": "application/binary" }, "SurveyMessageCommandType": { - "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", + "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", "type": "string", "enum": [ - "survey_topology", "time_sliced_survey_topology" ] }, diff --git a/xdr-json/next/SignedTimeSlicedSurveyResponseMessage.json b/xdr-json/next/SignedTimeSlicedSurveyResponseMessage.json index 80ca9a04..6c245738 100644 --- a/xdr-json/next/SignedTimeSlicedSurveyResponseMessage.json +++ b/xdr-json/next/SignedTimeSlicedSurveyResponseMessage.json @@ -34,10 +34,9 @@ "contentMediaType": "application/binary" }, "SurveyMessageCommandType": { - "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", + "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", "type": "string", "enum": [ - "survey_topology", "time_sliced_survey_topology" ] }, diff --git a/xdr-json/next/StellarMessage.json b/xdr-json/next/StellarMessage.json index 9e911c5b..d6b507f3 100644 --- a/xdr-json/next/StellarMessage.json +++ b/xdr-json/next/StellarMessage.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "StellarMessage", - "description": "StellarMessage is an XDR Union defines as:\n\n```text union StellarMessage switch (MessageType type) { case ERROR_MSG: Error error; case HELLO: Hello hello; case AUTH: Auth auth; case DONT_HAVE: DontHave dontHave; case PEERS: PeerAddress peers<100>;\n\ncase GET_TX_SET: uint256 txSetHash; case TX_SET: TransactionSet txSet; case GENERALIZED_TX_SET: GeneralizedTransactionSet generalizedTxSet;\n\ncase TRANSACTION: TransactionEnvelope transaction;\n\ncase SURVEY_REQUEST: SignedSurveyRequestMessage signedSurveyRequestMessage;\n\ncase SURVEY_RESPONSE: SignedSurveyResponseMessage signedSurveyResponseMessage;\n\ncase TIME_SLICED_SURVEY_REQUEST: SignedTimeSlicedSurveyRequestMessage signedTimeSlicedSurveyRequestMessage;\n\ncase TIME_SLICED_SURVEY_RESPONSE: SignedTimeSlicedSurveyResponseMessage signedTimeSlicedSurveyResponseMessage;\n\ncase TIME_SLICED_SURVEY_START_COLLECTING: SignedTimeSlicedSurveyStartCollectingMessage signedTimeSlicedSurveyStartCollectingMessage;\n\ncase TIME_SLICED_SURVEY_STOP_COLLECTING: SignedTimeSlicedSurveyStopCollectingMessage signedTimeSlicedSurveyStopCollectingMessage;\n\n// SCP case GET_SCP_QUORUMSET: uint256 qSetHash; case SCP_QUORUMSET: SCPQuorumSet qSet; case SCP_MESSAGE: SCPEnvelope envelope; case GET_SCP_STATE: uint32 getSCPLedgerSeq; // ledger seq requested ; if 0, requests the latest case SEND_MORE: SendMore sendMoreMessage; case SEND_MORE_EXTENDED: SendMoreExtended sendMoreExtendedMessage; // Pull mode case FLOOD_ADVERT: FloodAdvert floodAdvert; case FLOOD_DEMAND: FloodDemand floodDemand; }; ```", + "description": "StellarMessage is an XDR Union defines as:\n\n```text union StellarMessage switch (MessageType type) { case ERROR_MSG: Error error; case HELLO: Hello hello; case AUTH: Auth auth; case DONT_HAVE: DontHave dontHave; case PEERS: PeerAddress peers<100>;\n\ncase GET_TX_SET: uint256 txSetHash; case TX_SET: TransactionSet txSet; case GENERALIZED_TX_SET: GeneralizedTransactionSet generalizedTxSet;\n\ncase TRANSACTION: TransactionEnvelope transaction;\n\ncase TIME_SLICED_SURVEY_REQUEST: SignedTimeSlicedSurveyRequestMessage signedTimeSlicedSurveyRequestMessage;\n\ncase TIME_SLICED_SURVEY_RESPONSE: SignedTimeSlicedSurveyResponseMessage signedTimeSlicedSurveyResponseMessage;\n\ncase TIME_SLICED_SURVEY_START_COLLECTING: SignedTimeSlicedSurveyStartCollectingMessage signedTimeSlicedSurveyStartCollectingMessage;\n\ncase TIME_SLICED_SURVEY_STOP_COLLECTING: SignedTimeSlicedSurveyStopCollectingMessage signedTimeSlicedSurveyStopCollectingMessage;\n\n// SCP case GET_SCP_QUORUMSET: uint256 qSetHash; case SCP_QUORUMSET: SCPQuorumSet qSet; case SCP_MESSAGE: SCPEnvelope envelope; case GET_SCP_STATE: uint32 getSCPLedgerSeq; // ledger seq requested ; if 0, requests the latest case SEND_MORE: SendMore sendMoreMessage; case SEND_MORE_EXTENDED: SendMoreExtended sendMoreExtendedMessage; // Pull mode case FLOOD_ADVERT: FloodAdvert floodAdvert; case FLOOD_DEMAND: FloodDemand floodDemand; }; ```", "oneOf": [ { "type": "object", @@ -119,30 +119,6 @@ }, "additionalProperties": false }, - { - "type": "object", - "required": [ - "survey_request" - ], - "properties": { - "survey_request": { - "$ref": "#/definitions/SignedSurveyRequestMessage" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "survey_response" - ], - "properties": { - "survey_response": { - "$ref": "#/definitions/SignedSurveyResponseMessage" - } - }, - "additionalProperties": false - }, { "type": "object", "required": [ @@ -1907,7 +1883,7 @@ ] }, "MessageType": { - "description": "MessageType is an XDR Enum defines as:\n\n```text enum MessageType { ERROR_MSG = 0, AUTH = 2, DONT_HAVE = 3, // GET_PEERS (4) is deprecated\n\nPEERS = 5,\n\nGET_TX_SET = 6, // gets a particular txset by hash TX_SET = 7, GENERALIZED_TX_SET = 17,\n\nTRANSACTION = 8, // pass on a tx you have heard about\n\n// SCP GET_SCP_QUORUMSET = 9, SCP_QUORUMSET = 10, SCP_MESSAGE = 11, GET_SCP_STATE = 12,\n\n// new messages HELLO = 13,\n\nSURVEY_REQUEST = 14, SURVEY_RESPONSE = 15,\n\nSEND_MORE = 16, SEND_MORE_EXTENDED = 20,\n\nFLOOD_ADVERT = 18, FLOOD_DEMAND = 19,\n\nTIME_SLICED_SURVEY_REQUEST = 21, TIME_SLICED_SURVEY_RESPONSE = 22, TIME_SLICED_SURVEY_START_COLLECTING = 23, TIME_SLICED_SURVEY_STOP_COLLECTING = 24 }; ```", + "description": "MessageType is an XDR Enum defines as:\n\n```text enum MessageType { ERROR_MSG = 0, AUTH = 2, DONT_HAVE = 3, // GET_PEERS (4) is deprecated\n\nPEERS = 5,\n\nGET_TX_SET = 6, // gets a particular txset by hash TX_SET = 7, GENERALIZED_TX_SET = 17,\n\nTRANSACTION = 8, // pass on a tx you have heard about\n\n// SCP GET_SCP_QUORUMSET = 9, SCP_QUORUMSET = 10, SCP_MESSAGE = 11, GET_SCP_STATE = 12,\n\n// new messages HELLO = 13,\n\n// SURVEY_REQUEST (14) removed and replaced by TIME_SLICED_SURVEY_REQUEST // SURVEY_RESPONSE (15) removed and replaced by TIME_SLICED_SURVEY_RESPONSE\n\nSEND_MORE = 16, SEND_MORE_EXTENDED = 20,\n\nFLOOD_ADVERT = 18, FLOOD_DEMAND = 19,\n\nTIME_SLICED_SURVEY_REQUEST = 21, TIME_SLICED_SURVEY_RESPONSE = 22, TIME_SLICED_SURVEY_START_COLLECTING = 23, TIME_SLICED_SURVEY_STOP_COLLECTING = 24 }; ```", "type": "string", "enum": [ "error_msg", @@ -1923,8 +1899,6 @@ "scp_message", "get_scp_state", "hello", - "survey_request", - "survey_response", "send_more", "send_more_extended", "flood_advert", @@ -3604,38 +3578,6 @@ "contentEncoding": "hex", "contentMediaType": "application/binary" }, - "SignedSurveyRequestMessage": { - "description": "SignedSurveyRequestMessage is an XDR Struct defines as:\n\n```text struct SignedSurveyRequestMessage { Signature requestSignature; SurveyRequestMessage request; }; ```", - "type": "object", - "required": [ - "request", - "request_signature" - ], - "properties": { - "request": { - "$ref": "#/definitions/SurveyRequestMessage" - }, - "request_signature": { - "$ref": "#/definitions/Signature" - } - } - }, - "SignedSurveyResponseMessage": { - "description": "SignedSurveyResponseMessage is an XDR Struct defines as:\n\n```text struct SignedSurveyResponseMessage { Signature responseSignature; SurveyResponseMessage response; }; ```", - "type": "object", - "required": [ - "response", - "response_signature" - ], - "properties": { - "response": { - "$ref": "#/definitions/SurveyResponseMessage" - }, - "response_signature": { - "$ref": "#/definitions/Signature" - } - } - }, "SignedTimeSlicedSurveyRequestMessage": { "description": "SignedTimeSlicedSurveyRequestMessage is an XDR Struct defines as:\n\n```text struct SignedTimeSlicedSurveyRequestMessage { Signature requestSignature; TimeSlicedSurveyRequestMessage request; }; ```", "type": "object", @@ -3969,10 +3911,9 @@ "maxLength": 64 }, "SurveyMessageCommandType": { - "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", + "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", "type": "string", "enum": [ - "survey_topology", "time_sliced_survey_topology" ] }, diff --git a/xdr-json/next/SurveyMessageCommandType.json b/xdr-json/next/SurveyMessageCommandType.json index 0c6dad8c..9a725a46 100644 --- a/xdr-json/next/SurveyMessageCommandType.json +++ b/xdr-json/next/SurveyMessageCommandType.json @@ -1,10 +1,9 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "SurveyMessageCommandType", - "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", + "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", "type": "string", "enum": [ - "survey_topology", "time_sliced_survey_topology" ] } \ No newline at end of file diff --git a/xdr-json/next/SurveyMessageResponseType.json b/xdr-json/next/SurveyMessageResponseType.json index 96787321..fe2acdc1 100644 --- a/xdr-json/next/SurveyMessageResponseType.json +++ b/xdr-json/next/SurveyMessageResponseType.json @@ -1,11 +1,9 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "SurveyMessageResponseType", - "description": "SurveyMessageResponseType is an XDR Enum defines as:\n\n```text enum SurveyMessageResponseType { SURVEY_TOPOLOGY_RESPONSE_V0 = 0, SURVEY_TOPOLOGY_RESPONSE_V1 = 1, SURVEY_TOPOLOGY_RESPONSE_V2 = 2 }; ```", + "description": "SurveyMessageResponseType is an XDR Enum defines as:\n\n```text enum SurveyMessageResponseType { SURVEY_TOPOLOGY_RESPONSE_V2 = 2 }; ```", "type": "string", "enum": [ - "v0", - "v1", - "v2" + "survey_topology_response_v2" ] } \ No newline at end of file diff --git a/xdr-json/next/SurveyRequestMessage.json b/xdr-json/next/SurveyRequestMessage.json index 76ae3d6f..3f8be2a1 100644 --- a/xdr-json/next/SurveyRequestMessage.json +++ b/xdr-json/next/SurveyRequestMessage.json @@ -53,10 +53,9 @@ "type": "string" }, "SurveyMessageCommandType": { - "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", + "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", "type": "string", "enum": [ - "survey_topology", "time_sliced_survey_topology" ] } diff --git a/xdr-json/next/SurveyResponseBody.json b/xdr-json/next/SurveyResponseBody.json index e91c1de8..93696fae 100644 --- a/xdr-json/next/SurveyResponseBody.json +++ b/xdr-json/next/SurveyResponseBody.json @@ -1,39 +1,15 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "SurveyResponseBody", - "description": "SurveyResponseBody is an XDR Union defines as:\n\n```text union SurveyResponseBody switch (SurveyMessageResponseType type) { case SURVEY_TOPOLOGY_RESPONSE_V0: TopologyResponseBodyV0 topologyResponseBodyV0; case SURVEY_TOPOLOGY_RESPONSE_V1: TopologyResponseBodyV1 topologyResponseBodyV1; case SURVEY_TOPOLOGY_RESPONSE_V2: TopologyResponseBodyV2 topologyResponseBodyV2; }; ```", + "description": "SurveyResponseBody is an XDR Union defines as:\n\n```text union SurveyResponseBody switch (SurveyMessageResponseType type) { case SURVEY_TOPOLOGY_RESPONSE_V2: TopologyResponseBodyV2 topologyResponseBodyV2; }; ```", "oneOf": [ { "type": "object", "required": [ - "v0" + "survey_topology_response_v2" ], "properties": { - "v0": { - "$ref": "#/definitions/TopologyResponseBodyV0" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "v1" - ], - "properties": { - "v1": { - "$ref": "#/definitions/TopologyResponseBodyV1" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "v2" - ], - "properties": { - "v2": { + "survey_topology_response_v2": { "$ref": "#/definitions/TopologyResponseBodyV2" } }, @@ -44,14 +20,6 @@ "NodeId": { "type": "string" }, - "PeerStatList": { - "description": "PeerStatList is an XDR Typedef defines as:\n\n```text typedef PeerStats PeerStatList<25>; ```", - "type": "array", - "items": { - "$ref": "#/definitions/PeerStats" - }, - "maxItems": 25 - }, "PeerStats": { "description": "PeerStats is an XDR Struct defines as:\n\n```text struct PeerStats { NodeID id; string versionStr<100>; uint64 messagesRead; uint64 messagesWritten; uint64 bytesRead; uint64 bytesWritten; uint64 secondsConnected;\n\nuint64 uniqueFloodBytesRecv; uint64 duplicateFloodBytesRecv; uint64 uniqueFetchBytesRecv; uint64 duplicateFetchBytesRecv;\n\nuint64 uniqueFloodMessageRecv; uint64 duplicateFloodMessageRecv; uint64 uniqueFetchMessageRecv; uint64 duplicateFetchMessageRecv; }; ```", "type": "object", @@ -242,74 +210,6 @@ }, "maxItems": 25 }, - "TopologyResponseBodyV0": { - "description": "TopologyResponseBodyV0 is an XDR Struct defines as:\n\n```text struct TopologyResponseBodyV0 { PeerStatList inboundPeers; PeerStatList outboundPeers;\n\nuint32 totalInboundPeerCount; uint32 totalOutboundPeerCount; }; ```", - "type": "object", - "required": [ - "inbound_peers", - "outbound_peers", - "total_inbound_peer_count", - "total_outbound_peer_count" - ], - "properties": { - "inbound_peers": { - "$ref": "#/definitions/PeerStatList" - }, - "outbound_peers": { - "$ref": "#/definitions/PeerStatList" - }, - "total_inbound_peer_count": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "total_outbound_peer_count": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - } - } - }, - "TopologyResponseBodyV1": { - "description": "TopologyResponseBodyV1 is an XDR Struct defines as:\n\n```text struct TopologyResponseBodyV1 { PeerStatList inboundPeers; PeerStatList outboundPeers;\n\nuint32 totalInboundPeerCount; uint32 totalOutboundPeerCount;\n\nuint32 maxInboundPeerCount; uint32 maxOutboundPeerCount; }; ```", - "type": "object", - "required": [ - "inbound_peers", - "max_inbound_peer_count", - "max_outbound_peer_count", - "outbound_peers", - "total_inbound_peer_count", - "total_outbound_peer_count" - ], - "properties": { - "inbound_peers": { - "$ref": "#/definitions/PeerStatList" - }, - "max_inbound_peer_count": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "max_outbound_peer_count": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "outbound_peers": { - "$ref": "#/definitions/PeerStatList" - }, - "total_inbound_peer_count": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "total_outbound_peer_count": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - } - } - }, "TopologyResponseBodyV2": { "description": "TopologyResponseBodyV2 is an XDR Struct defines as:\n\n```text struct TopologyResponseBodyV2 { TimeSlicedPeerDataList inboundPeers; TimeSlicedPeerDataList outboundPeers; TimeSlicedNodeData nodeData; }; ```", "type": "object", diff --git a/xdr-json/next/SurveyResponseMessage.json b/xdr-json/next/SurveyResponseMessage.json index 6ccb4d3d..55c9ecb1 100644 --- a/xdr-json/next/SurveyResponseMessage.json +++ b/xdr-json/next/SurveyResponseMessage.json @@ -41,10 +41,9 @@ "type": "string" }, "SurveyMessageCommandType": { - "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", + "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", "type": "string", "enum": [ - "survey_topology", "time_sliced_survey_topology" ] } diff --git a/xdr-json/next/TimeSlicedSurveyRequestMessage.json b/xdr-json/next/TimeSlicedSurveyRequestMessage.json index 7a84ccce..a751bf77 100644 --- a/xdr-json/next/TimeSlicedSurveyRequestMessage.json +++ b/xdr-json/next/TimeSlicedSurveyRequestMessage.json @@ -53,10 +53,9 @@ "type": "string" }, "SurveyMessageCommandType": { - "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", + "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", "type": "string", "enum": [ - "survey_topology", "time_sliced_survey_topology" ] }, diff --git a/xdr-json/next/TimeSlicedSurveyResponseMessage.json b/xdr-json/next/TimeSlicedSurveyResponseMessage.json index c35ef943..fd975288 100644 --- a/xdr-json/next/TimeSlicedSurveyResponseMessage.json +++ b/xdr-json/next/TimeSlicedSurveyResponseMessage.json @@ -29,10 +29,9 @@ "type": "string" }, "SurveyMessageCommandType": { - "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", + "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", "type": "string", "enum": [ - "survey_topology", "time_sliced_survey_topology" ] }, diff --git a/xdr-json/next/TransactionMeta.json b/xdr-json/next/TransactionMeta.json index ca643829..ca9c8438 100644 --- a/xdr-json/next/TransactionMeta.json +++ b/xdr-json/next/TransactionMeta.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "TransactionMeta", - "description": "TransactionMeta is an XDR Union defines as:\n\n```text union TransactionMeta switch (int v) { case 0: OperationMeta operations<>; case 1: TransactionMetaV1 v1; case 2: TransactionMetaV2 v2; case 3: TransactionMetaV3 v3; }; ```", + "description": "TransactionMeta is an XDR Union defines as:\n\n```text union TransactionMeta switch (int v) { case 0: OperationMeta operations<>; case 1: TransactionMetaV1 v1; case 2: TransactionMetaV2 v2; case 3: TransactionMetaV3 v3; case 4: TransactionMetaV4 v4; }; ```", "oneOf": [ { "type": "object", @@ -54,6 +54,18 @@ } }, "additionalProperties": false + }, + { + "type": "object", + "required": [ + "v4" + ], + "properties": { + "v4": { + "$ref": "#/definitions/TransactionMetaV4" + } + }, + "additionalProperties": false } ], "definitions": { @@ -2154,6 +2166,38 @@ } } }, + "OperationMetaV2": { + "description": "OperationMetaV2 is an XDR Struct defines as:\n\n```text struct OperationMetaV2 { ExtensionPoint ext;\n\nLedgerEntryChanges changes;\n\nContractEvent events<>; DiagnosticEvent diagnosticEvents<>; }; ```", + "type": "object", + "required": [ + "changes", + "diagnostic_events", + "events", + "ext" + ], + "properties": { + "changes": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "diagnostic_events": { + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticEvent" + }, + "maxItems": 4294967295 + }, + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/ContractEvent" + }, + "maxItems": 4294967295 + }, + "ext": { + "$ref": "#/definitions/ExtensionPoint" + } + } + }, "PoolId": { "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", "type": "string", @@ -2787,6 +2831,22 @@ } } }, + "SorobanTransactionMetaV2": { + "description": "SorobanTransactionMetaV2 is an XDR Struct defines as:\n\n```text struct SorobanTransactionMetaV2 { SorobanTransactionMetaExt ext;\n\nSCVal returnValue; }; ```", + "type": "object", + "required": [ + "ext", + "return_value" + ], + "properties": { + "ext": { + "$ref": "#/definitions/SorobanTransactionMetaExt" + }, + "return_value": { + "$ref": "#/definitions/ScVal" + } + } + }, "SponsorshipDescriptor": { "description": "SponsorshipDescriptor is an XDR Typedef defines as:\n\n```text typedef AccountID* SponsorshipDescriptor; ```", "anyOf": [ @@ -2972,6 +3032,60 @@ } } }, + "TransactionMetaV4": { + "description": "TransactionMetaV4 is an XDR Struct defines as:\n\n```text struct TransactionMetaV4 { ExtensionPoint ext;\n\nLedgerEntryChanges txChangesBefore; // tx level changes before operations // are applied if any OperationMetaV2 operations<>; // meta for each operation LedgerEntryChanges txChangesAfter; // tx level changes after operations are // applied if any SorobanTransactionMetaV2* sorobanMeta; // Soroban-specific meta (only for // Soroban transactions).\n\nContractEvent events<>; // Used for transaction-level events (like fee payment) DiagnosticEvent txDiagnosticEvents<>; // Used for transaction-level diagnostic // information }; ```", + "type": "object", + "required": [ + "events", + "ext", + "operations", + "tx_changes_after", + "tx_changes_before", + "tx_diagnostic_events" + ], + "properties": { + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/ContractEvent" + }, + "maxItems": 4294967295 + }, + "ext": { + "$ref": "#/definitions/ExtensionPoint" + }, + "operations": { + "type": "array", + "items": { + "$ref": "#/definitions/OperationMetaV2" + }, + "maxItems": 4294967295 + }, + "soroban_meta": { + "anyOf": [ + { + "$ref": "#/definitions/SorobanTransactionMetaV2" + }, + { + "type": "null" + } + ] + }, + "tx_changes_after": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "tx_changes_before": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "tx_diagnostic_events": { + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticEvent" + }, + "maxItems": 4294967295 + } + } + }, "TrustLineAsset": { "description": "TrustLineAsset is an XDR Union defines as:\n\n```text union TrustLineAsset switch (AssetType type) { case ASSET_TYPE_NATIVE: // Not credit void;\n\ncase ASSET_TYPE_CREDIT_ALPHANUM4: AlphaNum4 alphaNum4;\n\ncase ASSET_TYPE_CREDIT_ALPHANUM12: AlphaNum12 alphaNum12;\n\ncase ASSET_TYPE_POOL_SHARE: PoolID liquidityPoolID;\n\n// add other asset types here in the future }; ```", "oneOf": [ diff --git a/xdr-json/next/TransactionResultMeta.json b/xdr-json/next/TransactionResultMeta.json index 6dfdd883..69fb2847 100644 --- a/xdr-json/next/TransactionResultMeta.json +++ b/xdr-json/next/TransactionResultMeta.json @@ -2767,6 +2767,38 @@ } } }, + "OperationMetaV2": { + "description": "OperationMetaV2 is an XDR Struct defines as:\n\n```text struct OperationMetaV2 { ExtensionPoint ext;\n\nLedgerEntryChanges changes;\n\nContractEvent events<>; DiagnosticEvent diagnosticEvents<>; }; ```", + "type": "object", + "required": [ + "changes", + "diagnostic_events", + "events", + "ext" + ], + "properties": { + "changes": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "diagnostic_events": { + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticEvent" + }, + "maxItems": 4294967295 + }, + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/ContractEvent" + }, + "maxItems": 4294967295 + }, + "ext": { + "$ref": "#/definitions/ExtensionPoint" + } + } + }, "OperationResult": { "description": "OperationResult is an XDR Union defines as:\n\n```text union OperationResult switch (OperationResultCode code) { case opINNER: union switch (OperationType type) { case CREATE_ACCOUNT: CreateAccountResult createAccountResult; case PAYMENT: PaymentResult paymentResult; case PATH_PAYMENT_STRICT_RECEIVE: PathPaymentStrictReceiveResult pathPaymentStrictReceiveResult; case MANAGE_SELL_OFFER: ManageSellOfferResult manageSellOfferResult; case CREATE_PASSIVE_SELL_OFFER: ManageSellOfferResult createPassiveSellOfferResult; case SET_OPTIONS: SetOptionsResult setOptionsResult; case CHANGE_TRUST: ChangeTrustResult changeTrustResult; case ALLOW_TRUST: AllowTrustResult allowTrustResult; case ACCOUNT_MERGE: AccountMergeResult accountMergeResult; case INFLATION: InflationResult inflationResult; case MANAGE_DATA: ManageDataResult manageDataResult; case BUMP_SEQUENCE: BumpSequenceResult bumpSeqResult; case MANAGE_BUY_OFFER: ManageBuyOfferResult manageBuyOfferResult; case PATH_PAYMENT_STRICT_SEND: PathPaymentStrictSendResult pathPaymentStrictSendResult; case CREATE_CLAIMABLE_BALANCE: CreateClaimableBalanceResult createClaimableBalanceResult; case CLAIM_CLAIMABLE_BALANCE: ClaimClaimableBalanceResult claimClaimableBalanceResult; case BEGIN_SPONSORING_FUTURE_RESERVES: BeginSponsoringFutureReservesResult beginSponsoringFutureReservesResult; case END_SPONSORING_FUTURE_RESERVES: EndSponsoringFutureReservesResult endSponsoringFutureReservesResult; case REVOKE_SPONSORSHIP: RevokeSponsorshipResult revokeSponsorshipResult; case CLAWBACK: ClawbackResult clawbackResult; case CLAWBACK_CLAIMABLE_BALANCE: ClawbackClaimableBalanceResult clawbackClaimableBalanceResult; case SET_TRUST_LINE_FLAGS: SetTrustLineFlagsResult setTrustLineFlagsResult; case LIQUIDITY_POOL_DEPOSIT: LiquidityPoolDepositResult liquidityPoolDepositResult; case LIQUIDITY_POOL_WITHDRAW: LiquidityPoolWithdrawResult liquidityPoolWithdrawResult; case INVOKE_HOST_FUNCTION: InvokeHostFunctionResult invokeHostFunctionResult; case EXTEND_FOOTPRINT_TTL: ExtendFootprintTTLResult extendFootprintTTLResult; case RESTORE_FOOTPRINT: RestoreFootprintResult restoreFootprintResult; } tr; case opBAD_AUTH: case opNO_ACCOUNT: case opNOT_SUPPORTED: case opTOO_MANY_SUBENTRIES: case opEXCEEDED_WORK_LIMIT: case opTOO_MANY_SPONSORING: void; }; ```", "oneOf": [ @@ -3975,6 +4007,22 @@ } } }, + "SorobanTransactionMetaV2": { + "description": "SorobanTransactionMetaV2 is an XDR Struct defines as:\n\n```text struct SorobanTransactionMetaV2 { SorobanTransactionMetaExt ext;\n\nSCVal returnValue; }; ```", + "type": "object", + "required": [ + "ext", + "return_value" + ], + "properties": { + "ext": { + "$ref": "#/definitions/SorobanTransactionMetaExt" + }, + "return_value": { + "$ref": "#/definitions/ScVal" + } + } + }, "SponsorshipDescriptor": { "description": "SponsorshipDescriptor is an XDR Typedef defines as:\n\n```text typedef AccountID* SponsorshipDescriptor; ```", "anyOf": [ @@ -4079,7 +4127,7 @@ "minimum": 0.0 }, "TransactionMeta": { - "description": "TransactionMeta is an XDR Union defines as:\n\n```text union TransactionMeta switch (int v) { case 0: OperationMeta operations<>; case 1: TransactionMetaV1 v1; case 2: TransactionMetaV2 v2; case 3: TransactionMetaV3 v3; }; ```", + "description": "TransactionMeta is an XDR Union defines as:\n\n```text union TransactionMeta switch (int v) { case 0: OperationMeta operations<>; case 1: TransactionMetaV1 v1; case 2: TransactionMetaV2 v2; case 3: TransactionMetaV3 v3; case 4: TransactionMetaV4 v4; }; ```", "oneOf": [ { "type": "object", @@ -4132,6 +4180,18 @@ } }, "additionalProperties": false + }, + { + "type": "object", + "required": [ + "v4" + ], + "properties": { + "v4": { + "$ref": "#/definitions/TransactionMetaV4" + } + }, + "additionalProperties": false } ] }, @@ -4217,6 +4277,60 @@ } } }, + "TransactionMetaV4": { + "description": "TransactionMetaV4 is an XDR Struct defines as:\n\n```text struct TransactionMetaV4 { ExtensionPoint ext;\n\nLedgerEntryChanges txChangesBefore; // tx level changes before operations // are applied if any OperationMetaV2 operations<>; // meta for each operation LedgerEntryChanges txChangesAfter; // tx level changes after operations are // applied if any SorobanTransactionMetaV2* sorobanMeta; // Soroban-specific meta (only for // Soroban transactions).\n\nContractEvent events<>; // Used for transaction-level events (like fee payment) DiagnosticEvent txDiagnosticEvents<>; // Used for transaction-level diagnostic // information }; ```", + "type": "object", + "required": [ + "events", + "ext", + "operations", + "tx_changes_after", + "tx_changes_before", + "tx_diagnostic_events" + ], + "properties": { + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/ContractEvent" + }, + "maxItems": 4294967295 + }, + "ext": { + "$ref": "#/definitions/ExtensionPoint" + }, + "operations": { + "type": "array", + "items": { + "$ref": "#/definitions/OperationMetaV2" + }, + "maxItems": 4294967295 + }, + "soroban_meta": { + "anyOf": [ + { + "$ref": "#/definitions/SorobanTransactionMetaV2" + }, + { + "type": "null" + } + ] + }, + "tx_changes_after": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "tx_changes_before": { + "$ref": "#/definitions/LedgerEntryChanges" + }, + "tx_diagnostic_events": { + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticEvent" + }, + "maxItems": 4294967295 + } + } + }, "TransactionResult": { "description": "TransactionResult is an XDR Struct defines as:\n\n```text struct TransactionResult { int64 feeCharged; // actual fee charged for the transaction\n\nunion switch (TransactionResultCode code) { case txFEE_BUMP_INNER_SUCCESS: case txFEE_BUMP_INNER_FAILED: InnerTransactionResultPair innerResultPair; case txSUCCESS: case txFAILED: OperationResult results<>; case txTOO_EARLY: case txTOO_LATE: case txMISSING_OPERATION: case txBAD_SEQ: case txBAD_AUTH: case txINSUFFICIENT_BALANCE: case txNO_ACCOUNT: case txINSUFFICIENT_FEE: case txBAD_AUTH_EXTRA: case txINTERNAL_ERROR: case txNOT_SUPPORTED: // case txFEE_BUMP_INNER_FAILED: handled above case txBAD_SPONSORSHIP: case txBAD_MIN_SEQ_AGE_OR_GAP: case txMALFORMED: case txSOROBAN_INVALID: void; } result;\n\n// reserved for future use union switch (int v) { case 0: void; } ext; }; ```", "type": "object", diff --git a/xdr/curr b/xdr/curr index 63d87bbb..515cb63a 160000 --- a/xdr/curr +++ b/xdr/curr @@ -1 +1 @@ -Subproject commit 63d87bbb388c964a9cc758397677ac2d6951c342 +Subproject commit 515cb63a99ad079519c59a35097b9c1e3d3deea1 diff --git a/xdr/curr-version b/xdr/curr-version index d146757c..8876ee76 100644 --- a/xdr/curr-version +++ b/xdr/curr-version @@ -1 +1 @@ -63d87bbb388c964a9cc758397677ac2d6951c342 \ No newline at end of file +515cb63a99ad079519c59a35097b9c1e3d3deea1 \ No newline at end of file diff --git a/xdr/next b/xdr/next index 5d7aebdd..c9011cc6 160000 --- a/xdr/next +++ b/xdr/next @@ -1 +1 @@ -Subproject commit 5d7aebdd9f550707b482037e75c692e3e70aac27 +Subproject commit c9011cc6cae0c239908374c98000a72ab9bf895b diff --git a/xdr/next-version b/xdr/next-version index ad41758e..537578c4 100644 --- a/xdr/next-version +++ b/xdr/next-version @@ -1 +1 @@ -5d7aebdd9f550707b482037e75c692e3e70aac27 \ No newline at end of file +c9011cc6cae0c239908374c98000a72ab9bf895b \ No newline at end of file From cf4a5be5b6bec81bb3dc04853d6363067e1ccd49 Mon Sep 17 00:00:00 2001 From: Dmytro Kozhevin Date: Thu, 13 Mar 2025 20:58:49 -0400 Subject: [PATCH 2/5] !fixup small fixes --- src/curr/str.rs | 3 ++- src/next/str.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/curr/str.rs b/src/curr/str.rs index 718f45f9..87c1f9d5 100644 --- a/src/curr/str.rs +++ b/src/curr/str.rs @@ -281,13 +281,14 @@ impl core::fmt::Display for ScAddress { ScAddress::MuxedAccount(muxed_ed25519_account) => { let k = stellar_strkey::Strkey::MuxedAccountEd25519( stellar_strkey::ed25519::MuxedAccount { - ed25519: muxed_ed25519_account.ed25519.0.clone(), + ed25519: muxed_ed25519_account.ed25519.0, id: muxed_ed25519_account.id, }, ); let s = k.to_string(); f.write_str(&s) } + // TODO: Use strkey (https://github.com/stellar/rs-stellar-xdr/issues/420) ScAddress::ClaimableBalance(claimable_balance_id) => claimable_balance_id.fmt(f), ScAddress::LiquidityPool(pool_id) => pool_id.fmt(f), } diff --git a/src/next/str.rs b/src/next/str.rs index 7750e342..6b33548c 100644 --- a/src/next/str.rs +++ b/src/next/str.rs @@ -281,13 +281,14 @@ impl core::fmt::Display for ScAddress { ScAddress::MuxedAccount(muxed_ed25519_account) => { let k = stellar_strkey::Strkey::MuxedAccountEd25519( stellar_strkey::ed25519::MuxedAccount { - ed25519: muxed_ed25519_account.ed25519.0.clone(), + ed25519: muxed_ed25519_account.ed25519.0, id: muxed_ed25519_account.id, }, ); let s = k.to_string(); f.write_str(&s) } + // TODO: Use strkey (https://github.com/stellar/rs-stellar-xdr/issues/420) ScAddress::ClaimableBalance(claimable_balance_id) => claimable_balance_id.fmt(f), ScAddress::LiquidityPool(pool_id) => pool_id.fmt(f), } From ca7650eef3dc00083f20a0be10045b6577916ff5 Mon Sep 17 00:00:00 2001 From: Dmytro Kozhevin Date: Fri, 14 Mar 2025 14:11:35 -0400 Subject: [PATCH 3/5] !fixup Add more string conversions and add/fix some tests --- Makefile | 8 +++---- src/curr/str.rs | 26 ++++++++++++++++++++++ src/next/str.rs | 26 ++++++++++++++++++++++ tests/str.rs | 57 ++++++++++++++++++++++++++++++++++++++++++++++--- 4 files changed, 110 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 6f2189e1..c4c50c43 100644 --- a/Makefile +++ b/Makefile @@ -6,10 +6,10 @@ CARGO_DOC_ARGS?=--open XDRGEN_VERSION=69b77af63a96abe7874186e392d3bcb96d8ee309 # XDRGEN_LOCAL=1 -XDRGEN_TYPES_CUSTOM_STR_IMPL_CURR=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12,ClaimableBalanceId -XDRGEN_TYPES_CUSTOM_STR_IMPL_NEXT=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12,ClaimableBalanceId -XDRGEN_TYPES_CUSTOM_JSONSCHEMA_IMPL_CURR=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12,ClaimableBalanceId -XDRGEN_TYPES_CUSTOM_JSONSCHEMA_IMPL_NEXT=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12,ClaimableBalanceId +XDRGEN_TYPES_CUSTOM_STR_IMPL_CURR=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12,ClaimableBalanceId,PoolId,MuxedEd25519Account +XDRGEN_TYPES_CUSTOM_STR_IMPL_NEXT=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12,ClaimableBalanceId,PoolId,MuxedEd25519Account +XDRGEN_TYPES_CUSTOM_JSONSCHEMA_IMPL_CURR=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12,ClaimableBalanceId,PoolId,MuxedEd25519Account +XDRGEN_TYPES_CUSTOM_JSONSCHEMA_IMPL_NEXT=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12,ClaimableBalanceId,PoolId,MuxedEd25519Account all: build test diff --git a/src/curr/str.rs b/src/curr/str.rs index 87c1f9d5..3722026a 100644 --- a/src/curr/str.rs +++ b/src/curr/str.rs @@ -244,6 +244,32 @@ impl core::fmt::Display for SignerKey { } } +impl core::str::FromStr for MuxedEd25519Account { + type Err = Error; + fn from_str(s: &str) -> core::result::Result { + let strkey = stellar_strkey::Strkey::from_str(s)?; + match strkey { + stellar_strkey::Strkey::MuxedAccountEd25519(muxed_ed25519) => Ok(MuxedEd25519Account { + id: muxed_ed25519.id, + ed25519: Uint256(muxed_ed25519.ed25519), + }), + _ => Err(Error::Invalid), + } + } +} + +impl core::fmt::Display for MuxedEd25519Account { + fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { + let k = + stellar_strkey::Strkey::MuxedAccountEd25519(stellar_strkey::ed25519::MuxedAccount { + ed25519: self.ed25519.0, + id: self.id, + }); + let s = k.to_string(); + f.write_str(&s) + } +} + impl core::str::FromStr for ScAddress { type Err = Error; fn from_str(s: &str) -> core::result::Result { diff --git a/src/next/str.rs b/src/next/str.rs index 6b33548c..174124f9 100644 --- a/src/next/str.rs +++ b/src/next/str.rs @@ -244,6 +244,32 @@ impl core::fmt::Display for SignerKey { } } +impl core::str::FromStr for MuxedEd25519Account { + type Err = Error; + fn from_str(s: &str) -> core::result::Result { + let strkey = stellar_strkey::Strkey::from_str(s)?; + match strkey { + stellar_strkey::Strkey::MuxedAccountEd25519(muxed_ed25519) => Ok(MuxedEd25519Account { + id: muxed_ed25519.id, + ed25519: Uint256(muxed_ed25519.ed25519), + }), + _ => Err(Error::Invalid), + } + } +} + +impl core::fmt::Display for MuxedEd25519Account { + fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { + let k = + stellar_strkey::Strkey::MuxedAccountEd25519(stellar_strkey::ed25519::MuxedAccount { + ed25519: self.ed25519.0, + id: self.id, + }); + let s = k.to_string(); + f.write_str(&s) + } +} + impl core::str::FromStr for ScAddress { type Err = Error; fn from_str(s: &str) -> core::result::Result { diff --git a/tests/str.rs b/tests/str.rs index 4dafa23d..0dc5f15f 100644 --- a/tests/str.rs +++ b/tests/str.rs @@ -1,6 +1,7 @@ #![cfg(feature = "curr")] #![cfg(feature = "std")] +use ::stellar_xdr::curr::MuxedEd25519Account; use stellar_xdr::curr as stellar_xdr; use stellar_xdr::{ @@ -393,10 +394,60 @@ fn sc_address_from_str_with_contract() { } #[test] -fn sc_address_from_str_with_invalid() { - let v = ScAddress::from_str( - "MA7QYNF7SOWQ3GLR2BGMZEHXAVIRZA4KVWLTJJFC7MGXUA74P7UJVAAAAAAAAAAAAAJLK", +fn sc_address_to_string_with_muxed_account() { + let s = ScAddress::MuxedAccount(MuxedEd25519Account { + id: 123456, + ed25519: Uint256([ + 0x36, 0x3e, 0xaa, 0x38, 0x67, 0x84, 0x1f, 0xba, 0xd0, 0xf4, 0xed, 0x88, 0xc7, 0x79, + 0xe4, 0xfe, 0x66, 0xe5, 0x6a, 0x24, 0x70, 0xdc, 0x98, 0xc0, 0xec, 0x9c, 0x07, 0x3d, + 0x05, 0xc7, 0xb1, 0x03, + ]), + }) + .to_string(); + assert_eq!( + s, + "MA3D5KRYM6CB7OWQ6TWYRR3Z4T7GNZLKERYNZGGA5SOAOPIFY6YQGAAAAAAAAAPCICBKU" ); +} + +#[test] +fn muxed_ed25519_account_to_string_with_muxed_account() { + let s = MuxedEd25519Account { + id: 123456, + ed25519: Uint256([ + 0x36, 0x3e, 0xaa, 0x38, 0x67, 0x84, 0x1f, 0xba, 0xd0, 0xf4, 0xed, 0x88, 0xc7, 0x79, + 0xe4, 0xfe, 0x66, 0xe5, 0x6a, 0x24, 0x70, 0xdc, 0x98, 0xc0, 0xec, 0x9c, 0x07, 0x3d, + 0x05, 0xc7, 0xb1, 0x03, + ]), + } + .to_string(); + assert_eq!( + s, + "MA3D5KRYM6CB7OWQ6TWYRR3Z4T7GNZLKERYNZGGA5SOAOPIFY6YQGAAAAAAAAAPCICBKU" + ); +} + +#[test] +fn muxed_ed25519_account_from_str_with_muxed_account() { + let v = MuxedEd25519Account::from_str( + "MA3D5KRYM6CB7OWQ6TWYRR3Z4T7GNZLKERYNZGGA5SOAOPIFY6YQGAAAAAAAAAPCICBKU", + ); + assert_eq!( + v, + Ok(MuxedEd25519Account { + id: 123456, + ed25519: Uint256([ + 0x36, 0x3e, 0xaa, 0x38, 0x67, 0x84, 0x1f, 0xba, 0xd0, 0xf4, 0xed, 0x88, 0xc7, 0x79, + 0xe4, 0xfe, 0x66, 0xe5, 0x6a, 0x24, 0x70, 0xdc, 0x98, 0xc0, 0xec, 0x9c, 0x07, 0x3d, + 0x05, 0xc7, 0xb1, 0x03, + ]) + }), + ); +} + +#[test] +fn sc_address_from_str_with_invalid() { + let v = ScAddress::from_str("XBU2RRGLXH3E5CQHTD3ODLDF2BWDCYUSSBLLZ5GNW7JXHDIYKXZWGTOG"); assert_eq!(v, Err(Error::Invalid)); } From 6318932ee5b4f37d4e20f5b02522625052cb8b22 Mon Sep 17 00:00:00 2001 From: Dmytro Kozhevin Date: Fri, 14 Mar 2025 14:18:31 -0400 Subject: [PATCH 4/5] !fixup clippy --- tests/str.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/str.rs b/tests/str.rs index 0dc5f15f..e3562396 100644 --- a/tests/str.rs +++ b/tests/str.rs @@ -396,7 +396,7 @@ fn sc_address_from_str_with_contract() { #[test] fn sc_address_to_string_with_muxed_account() { let s = ScAddress::MuxedAccount(MuxedEd25519Account { - id: 123456, + id: 123_456, ed25519: Uint256([ 0x36, 0x3e, 0xaa, 0x38, 0x67, 0x84, 0x1f, 0xba, 0xd0, 0xf4, 0xed, 0x88, 0xc7, 0x79, 0xe4, 0xfe, 0x66, 0xe5, 0x6a, 0x24, 0x70, 0xdc, 0x98, 0xc0, 0xec, 0x9c, 0x07, 0x3d, @@ -413,7 +413,7 @@ fn sc_address_to_string_with_muxed_account() { #[test] fn muxed_ed25519_account_to_string_with_muxed_account() { let s = MuxedEd25519Account { - id: 123456, + id: 123_456, ed25519: Uint256([ 0x36, 0x3e, 0xaa, 0x38, 0x67, 0x84, 0x1f, 0xba, 0xd0, 0xf4, 0xed, 0x88, 0xc7, 0x79, 0xe4, 0xfe, 0x66, 0xe5, 0x6a, 0x24, 0x70, 0xdc, 0x98, 0xc0, 0xec, 0x9c, 0x07, 0x3d, @@ -435,7 +435,7 @@ fn muxed_ed25519_account_from_str_with_muxed_account() { assert_eq!( v, Ok(MuxedEd25519Account { - id: 123456, + id: 123_456, ed25519: Uint256([ 0x36, 0x3e, 0xaa, 0x38, 0x67, 0x84, 0x1f, 0xba, 0xd0, 0xf4, 0xed, 0x88, 0xc7, 0x79, 0xe4, 0xfe, 0x66, 0xe5, 0x6a, 0x24, 0x70, 0xdc, 0x98, 0xc0, 0xec, 0x9c, 0x07, 0x3d, From 054cbce247128206bc3e21f6b60fef1e1e2d3351 Mon Sep 17 00:00:00 2001 From: Dmytro Kozhevin Date: Fri, 14 Mar 2025 15:01:37 -0400 Subject: [PATCH 5/5] !fixup regenerate XDR --- src/curr/generated.rs | 8 +- src/curr/jsonschema.rs | 2 + src/next/generated.rs | 8 +- src/next/jsonschema.rs | 2 + xdr-json/curr/AuthenticatedMessage.json | 7 +- xdr-json/curr/AuthenticatedMessageV0.json | 7 +- xdr-json/curr/BucketEntry.json | 7 +- xdr-json/curr/ClaimAtom.json | 7 +- xdr-json/curr/ClaimLiquidityAtom.json | 7 +- xdr-json/curr/ColdArchiveArchivedLeaf.json | 7 +- xdr-json/curr/ColdArchiveBucketEntry.json | 7 +- xdr-json/curr/ColdArchiveDeletedLeaf.json | 7 +- xdr-json/curr/FeeBumpTransaction.json | 7 +- xdr-json/curr/FeeBumpTransactionEnvelope.json | 7 +- xdr-json/curr/FeeBumpTransactionInnerTx.json | 7 +- xdr-json/curr/GeneralizedTransactionSet.json | 7 +- xdr-json/curr/HashIdPreimage.json | 7 +- xdr-json/curr/HashIdPreimageRevokeId.json | 7 +- xdr-json/curr/HotArchiveBucketEntry.json | 7 +- xdr-json/curr/InnerTransactionResult.json | 7 +- xdr-json/curr/InnerTransactionResultPair.json | 7 +- .../curr/InnerTransactionResultResult.json | 7 +- xdr-json/curr/LedgerCloseMeta.json | 7 +- xdr-json/curr/LedgerCloseMetaV0.json | 7 +- xdr-json/curr/LedgerCloseMetaV1.json | 7 +- xdr-json/curr/LedgerEntry.json | 7 +- xdr-json/curr/LedgerEntryChange.json | 7 +- xdr-json/curr/LedgerEntryChanges.json | 7 +- xdr-json/curr/LedgerEntryData.json | 7 +- xdr-json/curr/LedgerFootprint.json | 7 +- xdr-json/curr/LedgerKey.json | 7 +- xdr-json/curr/LedgerKeyLiquidityPool.json | 7 +- xdr-json/curr/LedgerKeyTrustLine.json | 7 +- xdr-json/curr/LiquidityPoolDepositOp.json | 7 +- xdr-json/curr/LiquidityPoolEntry.json | 7 +- xdr-json/curr/LiquidityPoolWithdrawOp.json | 7 +- xdr-json/curr/ManageBuyOfferResult.json | 7 +- xdr-json/curr/ManageOfferSuccessResult.json | 7 +- xdr-json/curr/ManageSellOfferResult.json | 7 +- xdr-json/curr/Operation.json | 7 +- xdr-json/curr/OperationBody.json | 7 +- xdr-json/curr/OperationMeta.json | 7 +- xdr-json/curr/OperationResult.json | 7 +- xdr-json/curr/OperationResultTr.json | 7 +- .../curr/PathPaymentStrictReceiveResult.json | 7 +- ...PathPaymentStrictReceiveResultSuccess.json | 7 +- .../curr/PathPaymentStrictSendResult.json | 7 +- .../PathPaymentStrictSendResultSuccess.json | 7 +- xdr-json/curr/PeerStatList.json | 113 ------------- xdr-json/curr/PersistedScpState.json | 7 +- xdr-json/curr/PersistedScpStateV0.json | 7 +- xdr-json/curr/PoolId.json | 7 +- xdr-json/curr/RevokeSponsorshipOp.json | 7 +- xdr-json/curr/SignedSurveyRequestMessage.json | 87 ---------- .../curr/SignedSurveyResponseMessage.json | 75 --------- xdr-json/curr/SorobanResources.json | 7 +- xdr-json/curr/SorobanTransactionData.json | 7 +- xdr-json/curr/StellarMessage.json | 7 +- xdr-json/curr/StoredDebugTransactionSet.json | 7 +- xdr-json/curr/StoredTransactionSet.json | 7 +- xdr-json/curr/TopologyResponseBodyV0.json | 141 ---------------- xdr-json/curr/TopologyResponseBodyV1.json | 153 ------------------ xdr-json/curr/Transaction.json | 7 +- xdr-json/curr/TransactionEnvelope.json | 7 +- xdr-json/curr/TransactionExt.json | 7 +- xdr-json/curr/TransactionHistoryEntry.json | 7 +- xdr-json/curr/TransactionHistoryEntryExt.json | 7 +- .../curr/TransactionHistoryResultEntry.json | 7 +- xdr-json/curr/TransactionMeta.json | 7 +- xdr-json/curr/TransactionMetaV1.json | 7 +- xdr-json/curr/TransactionMetaV2.json | 7 +- xdr-json/curr/TransactionMetaV3.json | 7 +- xdr-json/curr/TransactionPhase.json | 7 +- xdr-json/curr/TransactionResult.json | 7 +- xdr-json/curr/TransactionResultMeta.json | 7 +- xdr-json/curr/TransactionResultPair.json | 7 +- xdr-json/curr/TransactionResultResult.json | 7 +- xdr-json/curr/TransactionResultSet.json | 7 +- xdr-json/curr/TransactionSet.json | 7 +- xdr-json/curr/TransactionSetV1.json | 7 +- .../curr/TransactionSignaturePayload.json | 7 +- ...tionSignaturePayloadTaggedTransaction.json | 7 +- xdr-json/curr/TransactionV0.json | 7 +- xdr-json/curr/TransactionV0Envelope.json | 7 +- xdr-json/curr/TransactionV1Envelope.json | 7 +- xdr-json/curr/TrustLineAsset.json | 7 +- xdr-json/curr/TrustLineEntry.json | 7 +- xdr-json/curr/TxSetComponent.json | 7 +- .../TxSetComponentTxsMaybeDiscountedFee.json | 7 +- xdr-json/curr/UpgradeEntryMeta.json | 7 +- xdr-json/next/AuthenticatedMessage.json | 7 +- xdr-json/next/AuthenticatedMessageV0.json | 7 +- xdr-json/next/BucketEntry.json | 7 +- xdr-json/next/ClaimAtom.json | 7 +- xdr-json/next/ClaimLiquidityAtom.json | 7 +- xdr-json/next/ColdArchiveArchivedLeaf.json | 7 +- xdr-json/next/ColdArchiveBucketEntry.json | 7 +- xdr-json/next/ColdArchiveDeletedLeaf.json | 7 +- xdr-json/next/DependentTxCluster.json | 7 +- xdr-json/next/FeeBumpTransaction.json | 7 +- xdr-json/next/FeeBumpTransactionEnvelope.json | 7 +- xdr-json/next/FeeBumpTransactionInnerTx.json | 7 +- xdr-json/next/GeneralizedTransactionSet.json | 7 +- xdr-json/next/HashIdPreimage.json | 7 +- xdr-json/next/HashIdPreimageRevokeId.json | 7 +- xdr-json/next/HotArchiveBucketEntry.json | 7 +- xdr-json/next/InnerTransactionResult.json | 7 +- xdr-json/next/InnerTransactionResultPair.json | 7 +- .../next/InnerTransactionResultResult.json | 7 +- xdr-json/next/LedgerCloseMeta.json | 7 +- xdr-json/next/LedgerCloseMetaV0.json | 7 +- xdr-json/next/LedgerCloseMetaV1.json | 7 +- xdr-json/next/LedgerEntry.json | 7 +- xdr-json/next/LedgerEntryChange.json | 7 +- xdr-json/next/LedgerEntryChanges.json | 7 +- xdr-json/next/LedgerEntryData.json | 7 +- xdr-json/next/LedgerFootprint.json | 7 +- xdr-json/next/LedgerKey.json | 7 +- xdr-json/next/LedgerKeyLiquidityPool.json | 7 +- xdr-json/next/LedgerKeyTrustLine.json | 7 +- xdr-json/next/LiquidityPoolDepositOp.json | 7 +- xdr-json/next/LiquidityPoolEntry.json | 7 +- xdr-json/next/LiquidityPoolWithdrawOp.json | 7 +- xdr-json/next/ManageBuyOfferResult.json | 7 +- xdr-json/next/ManageOfferSuccessResult.json | 7 +- xdr-json/next/ManageSellOfferResult.json | 7 +- xdr-json/next/Operation.json | 7 +- xdr-json/next/OperationBody.json | 7 +- xdr-json/next/OperationMeta.json | 7 +- xdr-json/next/OperationResult.json | 7 +- xdr-json/next/OperationResultTr.json | 7 +- xdr-json/next/ParallelTxExecutionStage.json | 7 +- xdr-json/next/ParallelTxsComponent.json | 7 +- .../next/PathPaymentStrictReceiveResult.json | 7 +- ...PathPaymentStrictReceiveResultSuccess.json | 7 +- .../next/PathPaymentStrictSendResult.json | 7 +- .../PathPaymentStrictSendResultSuccess.json | 7 +- xdr-json/next/PeerStatList.json | 113 ------------- xdr-json/next/PersistedScpState.json | 7 +- xdr-json/next/PersistedScpStateV0.json | 7 +- xdr-json/next/PoolId.json | 7 +- xdr-json/next/RevokeSponsorshipOp.json | 7 +- xdr-json/next/SignedSurveyRequestMessage.json | 87 ---------- .../next/SignedSurveyResponseMessage.json | 75 --------- xdr-json/next/SorobanResources.json | 7 +- xdr-json/next/SorobanTransactionData.json | 7 +- xdr-json/next/StellarMessage.json | 7 +- xdr-json/next/StoredDebugTransactionSet.json | 7 +- xdr-json/next/StoredTransactionSet.json | 7 +- xdr-json/next/TopologyResponseBodyV0.json | 141 ---------------- xdr-json/next/TopologyResponseBodyV1.json | 153 ------------------ xdr-json/next/Transaction.json | 7 +- xdr-json/next/TransactionEnvelope.json | 7 +- xdr-json/next/TransactionExt.json | 7 +- xdr-json/next/TransactionHistoryEntry.json | 7 +- xdr-json/next/TransactionHistoryEntryExt.json | 7 +- .../next/TransactionHistoryResultEntry.json | 7 +- xdr-json/next/TransactionMeta.json | 7 +- xdr-json/next/TransactionMetaV1.json | 7 +- xdr-json/next/TransactionMetaV2.json | 7 +- xdr-json/next/TransactionMetaV3.json | 7 +- xdr-json/next/TransactionPhase.json | 7 +- xdr-json/next/TransactionResult.json | 7 +- xdr-json/next/TransactionResultMeta.json | 7 +- xdr-json/next/TransactionResultPair.json | 7 +- xdr-json/next/TransactionResultResult.json | 7 +- xdr-json/next/TransactionResultSet.json | 7 +- xdr-json/next/TransactionSet.json | 7 +- xdr-json/next/TransactionSetV1.json | 7 +- .../next/TransactionSignaturePayload.json | 7 +- ...tionSignaturePayloadTaggedTransaction.json | 7 +- xdr-json/next/TransactionV0.json | 7 +- xdr-json/next/TransactionV0Envelope.json | 7 +- xdr-json/next/TransactionV1Envelope.json | 7 +- xdr-json/next/TrustLineAsset.json | 7 +- xdr-json/next/TrustLineEntry.json | 7 +- xdr-json/next/TxSetComponent.json | 7 +- .../TxSetComponentTxsMaybeDiscountedFee.json | 7 +- xdr-json/next/UpgradeEntryMeta.json | 7 +- 179 files changed, 173 insertions(+), 2140 deletions(-) delete mode 100644 xdr-json/curr/PeerStatList.json delete mode 100644 xdr-json/curr/SignedSurveyRequestMessage.json delete mode 100644 xdr-json/curr/SignedSurveyResponseMessage.json delete mode 100644 xdr-json/curr/TopologyResponseBodyV0.json delete mode 100644 xdr-json/curr/TopologyResponseBodyV1.json delete mode 100644 xdr-json/next/PeerStatList.json delete mode 100644 xdr-json/next/SignedSurveyRequestMessage.json delete mode 100644 xdr-json/next/SignedSurveyResponseMessage.json delete mode 100644 xdr-json/next/TopologyResponseBodyV0.json delete mode 100644 xdr-json/next/TopologyResponseBodyV1.json diff --git a/src/curr/generated.rs b/src/curr/generated.rs index 66f2e1c6..4e433fd2 100644 --- a/src/curr/generated.rs +++ b/src/curr/generated.rs @@ -9096,10 +9096,8 @@ impl WriteXdr for ScAddressType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), - serde(rename_all = "snake_case") + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct MuxedEd25519Account { pub id: u64, pub ed25519: Uint256, @@ -45945,10 +45943,8 @@ impl WriteXdr for SerializedBinaryFuseFilter { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), - serde(rename_all = "snake_case") + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct PoolId(pub Hash); diff --git a/src/curr/jsonschema.rs b/src/curr/jsonschema.rs index b70c3035..1ca237c6 100644 --- a/src/curr/jsonschema.rs +++ b/src/curr/jsonschema.rs @@ -19,6 +19,7 @@ impl_json_schema_string!(PublicKey); impl_json_schema_string!(AccountId); impl_json_schema_string!(MuxedAccount); impl_json_schema_string!(MuxedAccountMed25519); +impl_json_schema_string!(MuxedEd25519Account); impl_json_schema_string!(SignerKey); impl_json_schema_string!(SignerKeyEd25519SignedPayload); impl_json_schema_string!(NodeId); @@ -27,3 +28,4 @@ impl_json_schema_string!(AssetCode); impl_json_schema_string!(AssetCode4); impl_json_schema_string!(AssetCode12); impl_json_schema_string!(ClaimableBalanceId); +impl_json_schema_string!(PoolId); diff --git a/src/next/generated.rs b/src/next/generated.rs index 02ce04cf..e09a49a3 100644 --- a/src/next/generated.rs +++ b/src/next/generated.rs @@ -9226,10 +9226,8 @@ impl WriteXdr for ScAddressType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), - serde(rename_all = "snake_case") + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct MuxedEd25519Account { pub id: u64, pub ed25519: Uint256, @@ -45878,10 +45876,8 @@ impl WriteXdr for SerializedBinaryFuseFilter { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), - serde(rename_all = "snake_case") + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct PoolId(pub Hash); diff --git a/src/next/jsonschema.rs b/src/next/jsonschema.rs index b70c3035..1ca237c6 100644 --- a/src/next/jsonschema.rs +++ b/src/next/jsonschema.rs @@ -19,6 +19,7 @@ impl_json_schema_string!(PublicKey); impl_json_schema_string!(AccountId); impl_json_schema_string!(MuxedAccount); impl_json_schema_string!(MuxedAccountMed25519); +impl_json_schema_string!(MuxedEd25519Account); impl_json_schema_string!(SignerKey); impl_json_schema_string!(SignerKeyEd25519SignedPayload); impl_json_schema_string!(NodeId); @@ -27,3 +28,4 @@ impl_json_schema_string!(AssetCode); impl_json_schema_string!(AssetCode4); impl_json_schema_string!(AssetCode12); impl_json_schema_string!(ClaimableBalanceId); +impl_json_schema_string!(PoolId); diff --git a/xdr-json/curr/AuthenticatedMessage.json b/xdr-json/curr/AuthenticatedMessage.json index e3f6fd5e..b24f271e 100644 --- a/xdr-json/curr/AuthenticatedMessage.json +++ b/xdr-json/curr/AuthenticatedMessage.json @@ -2191,12 +2191,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/curr/AuthenticatedMessageV0.json b/xdr-json/curr/AuthenticatedMessageV0.json index 6e0d2f50..c2b74a6a 100644 --- a/xdr-json/curr/AuthenticatedMessageV0.json +++ b/xdr-json/curr/AuthenticatedMessageV0.json @@ -2174,12 +2174,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/curr/BucketEntry.json b/xdr-json/curr/BucketEntry.json index 3b9797f8..ba908c7f 100644 --- a/xdr-json/curr/BucketEntry.json +++ b/xdr-json/curr/BucketEntry.json @@ -1965,12 +1965,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/ClaimAtom.json b/xdr-json/curr/ClaimAtom.json index ad3e5d12..f9e51ea2 100644 --- a/xdr-json/curr/ClaimAtom.json +++ b/xdr-json/curr/ClaimAtom.json @@ -222,12 +222,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" } } } \ No newline at end of file diff --git a/xdr-json/curr/ClaimLiquidityAtom.json b/xdr-json/curr/ClaimLiquidityAtom.json index 2b03bff8..bb82521e 100644 --- a/xdr-json/curr/ClaimLiquidityAtom.json +++ b/xdr-json/curr/ClaimLiquidityAtom.json @@ -107,12 +107,7 @@ "type": "string" }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" } } } \ No newline at end of file diff --git a/xdr-json/curr/ColdArchiveArchivedLeaf.json b/xdr-json/curr/ColdArchiveArchivedLeaf.json index ce8973c1..bc5f4847 100644 --- a/xdr-json/curr/ColdArchiveArchivedLeaf.json +++ b/xdr-json/curr/ColdArchiveArchivedLeaf.json @@ -1586,12 +1586,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/ColdArchiveBucketEntry.json b/xdr-json/curr/ColdArchiveBucketEntry.json index 49d85df5..09baaed4 100644 --- a/xdr-json/curr/ColdArchiveBucketEntry.json +++ b/xdr-json/curr/ColdArchiveBucketEntry.json @@ -2059,12 +2059,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/ColdArchiveDeletedLeaf.json b/xdr-json/curr/ColdArchiveDeletedLeaf.json index 4d12ccf4..03c97caa 100644 --- a/xdr-json/curr/ColdArchiveDeletedLeaf.json +++ b/xdr-json/curr/ColdArchiveDeletedLeaf.json @@ -448,12 +448,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "ScAddress": { "type": "string" diff --git a/xdr-json/curr/FeeBumpTransaction.json b/xdr-json/curr/FeeBumpTransaction.json index 7eb92dd5..2090ca4a 100644 --- a/xdr-json/curr/FeeBumpTransaction.json +++ b/xdr-json/curr/FeeBumpTransaction.json @@ -1824,12 +1824,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/curr/FeeBumpTransactionEnvelope.json b/xdr-json/curr/FeeBumpTransactionEnvelope.json index c3619da5..bae1ba44 100644 --- a/xdr-json/curr/FeeBumpTransactionEnvelope.json +++ b/xdr-json/curr/FeeBumpTransactionEnvelope.json @@ -1844,12 +1844,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/curr/FeeBumpTransactionInnerTx.json b/xdr-json/curr/FeeBumpTransactionInnerTx.json index 68a1475b..dd29f25b 100644 --- a/xdr-json/curr/FeeBumpTransactionInnerTx.json +++ b/xdr-json/curr/FeeBumpTransactionInnerTx.json @@ -1792,12 +1792,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/curr/GeneralizedTransactionSet.json b/xdr-json/curr/GeneralizedTransactionSet.json index e7ff3f1a..7c399777 100644 --- a/xdr-json/curr/GeneralizedTransactionSet.json +++ b/xdr-json/curr/GeneralizedTransactionSet.json @@ -1861,12 +1861,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/curr/HashIdPreimage.json b/xdr-json/curr/HashIdPreimage.json index d6ab6038..6bd737c7 100644 --- a/xdr-json/curr/HashIdPreimage.json +++ b/xdr-json/curr/HashIdPreimage.json @@ -429,12 +429,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "ScAddress": { "type": "string" diff --git a/xdr-json/curr/HashIdPreimageRevokeId.json b/xdr-json/curr/HashIdPreimageRevokeId.json index 3a44f3e1..36c9b326 100644 --- a/xdr-json/curr/HashIdPreimageRevokeId.json +++ b/xdr-json/curr/HashIdPreimageRevokeId.json @@ -107,12 +107,7 @@ "type": "string" }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "SequenceNumber": { "description": "SequenceNumber is an XDR Typedef defines as:\n\n```text typedef int64 SequenceNumber; ```", diff --git a/xdr-json/curr/HotArchiveBucketEntry.json b/xdr-json/curr/HotArchiveBucketEntry.json index 7f8d9caf..1f7d11a7 100644 --- a/xdr-json/curr/HotArchiveBucketEntry.json +++ b/xdr-json/curr/HotArchiveBucketEntry.json @@ -1965,12 +1965,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/InnerTransactionResult.json b/xdr-json/curr/InnerTransactionResult.json index c6496f81..d944b4cc 100644 --- a/xdr-json/curr/InnerTransactionResult.json +++ b/xdr-json/curr/InnerTransactionResult.json @@ -1264,12 +1264,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/InnerTransactionResultPair.json b/xdr-json/curr/InnerTransactionResultPair.json index 5d41a6cc..aa6d0c90 100644 --- a/xdr-json/curr/InnerTransactionResultPair.json +++ b/xdr-json/curr/InnerTransactionResultPair.json @@ -1284,12 +1284,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/InnerTransactionResultResult.json b/xdr-json/curr/InnerTransactionResultResult.json index 7028272d..6a31f854 100644 --- a/xdr-json/curr/InnerTransactionResultResult.json +++ b/xdr-json/curr/InnerTransactionResultResult.json @@ -1236,12 +1236,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/LedgerCloseMeta.json b/xdr-json/curr/LedgerCloseMeta.json index 8034f638..376fa95a 100644 --- a/xdr-json/curr/LedgerCloseMeta.json +++ b/xdr-json/curr/LedgerCloseMeta.json @@ -4977,12 +4977,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/curr/LedgerCloseMetaV0.json b/xdr-json/curr/LedgerCloseMetaV0.json index 10262980..50902ef6 100644 --- a/xdr-json/curr/LedgerCloseMetaV0.json +++ b/xdr-json/curr/LedgerCloseMetaV0.json @@ -4825,12 +4825,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/curr/LedgerCloseMetaV1.json b/xdr-json/curr/LedgerCloseMetaV1.json index 6ebac383..b1d5378f 100644 --- a/xdr-json/curr/LedgerCloseMetaV1.json +++ b/xdr-json/curr/LedgerCloseMetaV1.json @@ -4908,12 +4908,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/curr/LedgerEntry.json b/xdr-json/curr/LedgerEntry.json index 152672b6..e3f2f026 100644 --- a/xdr-json/curr/LedgerEntry.json +++ b/xdr-json/curr/LedgerEntry.json @@ -1568,12 +1568,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/LedgerEntryChange.json b/xdr-json/curr/LedgerEntryChange.json index 49b54fe3..7e634277 100644 --- a/xdr-json/curr/LedgerEntryChange.json +++ b/xdr-json/curr/LedgerEntryChange.json @@ -1915,12 +1915,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/LedgerEntryChanges.json b/xdr-json/curr/LedgerEntryChanges.json index 54fce4ba..736727db 100644 --- a/xdr-json/curr/LedgerEntryChanges.json +++ b/xdr-json/curr/LedgerEntryChanges.json @@ -1923,12 +1923,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/LedgerEntryData.json b/xdr-json/curr/LedgerEntryData.json index 2e3be556..b8634022 100644 --- a/xdr-json/curr/LedgerEntryData.json +++ b/xdr-json/curr/LedgerEntryData.json @@ -1500,12 +1500,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/LedgerFootprint.json b/xdr-json/curr/LedgerFootprint.json index b5e198f3..d5fb1827 100644 --- a/xdr-json/curr/LedgerFootprint.json +++ b/xdr-json/curr/LedgerFootprint.json @@ -454,12 +454,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "ScAddress": { "type": "string" diff --git a/xdr-json/curr/LedgerKey.json b/xdr-json/curr/LedgerKey.json index 15be454f..d04d1b67 100644 --- a/xdr-json/curr/LedgerKey.json +++ b/xdr-json/curr/LedgerKey.json @@ -430,12 +430,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "ScAddress": { "type": "string" diff --git a/xdr-json/curr/LedgerKeyLiquidityPool.json b/xdr-json/curr/LedgerKeyLiquidityPool.json index 7bca1a87..c8ba1548 100644 --- a/xdr-json/curr/LedgerKeyLiquidityPool.json +++ b/xdr-json/curr/LedgerKeyLiquidityPool.json @@ -13,12 +13,7 @@ }, "definitions": { "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" } } } \ No newline at end of file diff --git a/xdr-json/curr/LedgerKeyTrustLine.json b/xdr-json/curr/LedgerKeyTrustLine.json index ffcc0ae2..c21bd9a0 100644 --- a/xdr-json/curr/LedgerKeyTrustLine.json +++ b/xdr-json/curr/LedgerKeyTrustLine.json @@ -58,12 +58,7 @@ "type": "string" }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "TrustLineAsset": { "description": "TrustLineAsset is an XDR Union defines as:\n\n```text union TrustLineAsset switch (AssetType type) { case ASSET_TYPE_NATIVE: // Not credit void;\n\ncase ASSET_TYPE_CREDIT_ALPHANUM4: AlphaNum4 alphaNum4;\n\ncase ASSET_TYPE_CREDIT_ALPHANUM12: AlphaNum12 alphaNum12;\n\ncase ASSET_TYPE_POOL_SHARE: PoolID liquidityPoolID;\n\n// add other asset types here in the future }; ```", diff --git a/xdr-json/curr/LiquidityPoolDepositOp.json b/xdr-json/curr/LiquidityPoolDepositOp.json index 126e4b1b..2cc0293f 100644 --- a/xdr-json/curr/LiquidityPoolDepositOp.json +++ b/xdr-json/curr/LiquidityPoolDepositOp.json @@ -31,12 +31,7 @@ }, "definitions": { "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/LiquidityPoolEntry.json b/xdr-json/curr/LiquidityPoolEntry.json index b069e68f..64f738c7 100644 --- a/xdr-json/curr/LiquidityPoolEntry.json +++ b/xdr-json/curr/LiquidityPoolEntry.json @@ -163,12 +163,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" } } } \ No newline at end of file diff --git a/xdr-json/curr/LiquidityPoolWithdrawOp.json b/xdr-json/curr/LiquidityPoolWithdrawOp.json index 5299cf05..779d6954 100644 --- a/xdr-json/curr/LiquidityPoolWithdrawOp.json +++ b/xdr-json/curr/LiquidityPoolWithdrawOp.json @@ -28,12 +28,7 @@ }, "definitions": { "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" } } } \ No newline at end of file diff --git a/xdr-json/curr/ManageBuyOfferResult.json b/xdr-json/curr/ManageBuyOfferResult.json index 08a157a4..1d4be466 100644 --- a/xdr-json/curr/ManageBuyOfferResult.json +++ b/xdr-json/curr/ManageBuyOfferResult.json @@ -362,12 +362,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/ManageOfferSuccessResult.json b/xdr-json/curr/ManageOfferSuccessResult.json index f4f90aae..8c43a29e 100644 --- a/xdr-json/curr/ManageOfferSuccessResult.json +++ b/xdr-json/curr/ManageOfferSuccessResult.json @@ -328,12 +328,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/ManageSellOfferResult.json b/xdr-json/curr/ManageSellOfferResult.json index 8e1be6c1..ebf09076 100644 --- a/xdr-json/curr/ManageSellOfferResult.json +++ b/xdr-json/curr/ManageSellOfferResult.json @@ -362,12 +362,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/Operation.json b/xdr-json/curr/Operation.json index 408ab4bb..13718002 100644 --- a/xdr-json/curr/Operation.json +++ b/xdr-json/curr/Operation.json @@ -1642,12 +1642,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/OperationBody.json b/xdr-json/curr/OperationBody.json index 395cdab7..2283318f 100644 --- a/xdr-json/curr/OperationBody.json +++ b/xdr-json/curr/OperationBody.json @@ -1620,12 +1620,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/OperationMeta.json b/xdr-json/curr/OperationMeta.json index 28fef1a3..64cad09d 100644 --- a/xdr-json/curr/OperationMeta.json +++ b/xdr-json/curr/OperationMeta.json @@ -1935,12 +1935,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/OperationResult.json b/xdr-json/curr/OperationResult.json index c5d09087..d8ce58b0 100644 --- a/xdr-json/curr/OperationResult.json +++ b/xdr-json/curr/OperationResult.json @@ -1179,12 +1179,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/OperationResultTr.json b/xdr-json/curr/OperationResultTr.json index dcd13745..7dd90fd4 100644 --- a/xdr-json/curr/OperationResultTr.json +++ b/xdr-json/curr/OperationResultTr.json @@ -1151,12 +1151,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/PathPaymentStrictReceiveResult.json b/xdr-json/curr/PathPaymentStrictReceiveResult.json index f3f6dd2c..055ad486 100644 --- a/xdr-json/curr/PathPaymentStrictReceiveResult.json +++ b/xdr-json/curr/PathPaymentStrictReceiveResult.json @@ -287,12 +287,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "SimplePaymentResult": { "description": "SimplePaymentResult is an XDR Struct defines as:\n\n```text struct SimplePaymentResult { AccountID destination; Asset asset; int64 amount; }; ```", diff --git a/xdr-json/curr/PathPaymentStrictReceiveResultSuccess.json b/xdr-json/curr/PathPaymentStrictReceiveResultSuccess.json index 0af96f2b..3ede5366 100644 --- a/xdr-json/curr/PathPaymentStrictReceiveResultSuccess.json +++ b/xdr-json/curr/PathPaymentStrictReceiveResultSuccess.json @@ -242,12 +242,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "SimplePaymentResult": { "description": "SimplePaymentResult is an XDR Struct defines as:\n\n```text struct SimplePaymentResult { AccountID destination; Asset asset; int64 amount; }; ```", diff --git a/xdr-json/curr/PathPaymentStrictSendResult.json b/xdr-json/curr/PathPaymentStrictSendResult.json index 781fb525..d2cc2bec 100644 --- a/xdr-json/curr/PathPaymentStrictSendResult.json +++ b/xdr-json/curr/PathPaymentStrictSendResult.json @@ -287,12 +287,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "SimplePaymentResult": { "description": "SimplePaymentResult is an XDR Struct defines as:\n\n```text struct SimplePaymentResult { AccountID destination; Asset asset; int64 amount; }; ```", diff --git a/xdr-json/curr/PathPaymentStrictSendResultSuccess.json b/xdr-json/curr/PathPaymentStrictSendResultSuccess.json index 1ca58f0b..98b7068a 100644 --- a/xdr-json/curr/PathPaymentStrictSendResultSuccess.json +++ b/xdr-json/curr/PathPaymentStrictSendResultSuccess.json @@ -242,12 +242,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "SimplePaymentResult": { "description": "SimplePaymentResult is an XDR Struct defines as:\n\n```text struct SimplePaymentResult { AccountID destination; Asset asset; int64 amount; }; ```", diff --git a/xdr-json/curr/PeerStatList.json b/xdr-json/curr/PeerStatList.json deleted file mode 100644 index f4c40695..00000000 --- a/xdr-json/curr/PeerStatList.json +++ /dev/null @@ -1,113 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "title": "PeerStatList", - "description": "PeerStatList is an XDR Typedef defines as:\n\n```text typedef PeerStats PeerStatList<25>; ```", - "type": "array", - "items": { - "$ref": "#/definitions/PeerStats" - }, - "maxItems": 25, - "definitions": { - "NodeId": { - "type": "string" - }, - "PeerStats": { - "description": "PeerStats is an XDR Struct defines as:\n\n```text struct PeerStats { NodeID id; string versionStr<100>; uint64 messagesRead; uint64 messagesWritten; uint64 bytesRead; uint64 bytesWritten; uint64 secondsConnected;\n\nuint64 uniqueFloodBytesRecv; uint64 duplicateFloodBytesRecv; uint64 uniqueFetchBytesRecv; uint64 duplicateFetchBytesRecv;\n\nuint64 uniqueFloodMessageRecv; uint64 duplicateFloodMessageRecv; uint64 uniqueFetchMessageRecv; uint64 duplicateFetchMessageRecv; }; ```", - "type": "object", - "required": [ - "bytes_read", - "bytes_written", - "duplicate_fetch_bytes_recv", - "duplicate_fetch_message_recv", - "duplicate_flood_bytes_recv", - "duplicate_flood_message_recv", - "id", - "messages_read", - "messages_written", - "seconds_connected", - "unique_fetch_bytes_recv", - "unique_fetch_message_recv", - "unique_flood_bytes_recv", - "unique_flood_message_recv", - "version_str" - ], - "properties": { - "bytes_read": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "bytes_written": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "duplicate_fetch_bytes_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "duplicate_fetch_message_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "duplicate_flood_bytes_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "duplicate_flood_message_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "id": { - "$ref": "#/definitions/NodeId" - }, - "messages_read": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "messages_written": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "seconds_connected": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "unique_fetch_bytes_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "unique_fetch_message_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "unique_flood_bytes_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "unique_flood_message_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "version_str": { - "$ref": "#/definitions/StringM<100>" - } - } - }, - "StringM<100>": { - "type": "string", - "maxLength": 100 - } - } -} \ No newline at end of file diff --git a/xdr-json/curr/PersistedScpState.json b/xdr-json/curr/PersistedScpState.json index 498e8506..bc3abf37 100644 --- a/xdr-json/curr/PersistedScpState.json +++ b/xdr-json/curr/PersistedScpState.json @@ -1949,12 +1949,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/curr/PersistedScpStateV0.json b/xdr-json/curr/PersistedScpStateV0.json index 8bc1a817..4f88005d 100644 --- a/xdr-json/curr/PersistedScpStateV0.json +++ b/xdr-json/curr/PersistedScpStateV0.json @@ -1896,12 +1896,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/curr/PoolId.json b/xdr-json/curr/PoolId.json index 7447df06..bb13a29b 100644 --- a/xdr-json/curr/PoolId.json +++ b/xdr-json/curr/PoolId.json @@ -1,10 +1,5 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "PoolId", - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" } \ No newline at end of file diff --git a/xdr-json/curr/RevokeSponsorshipOp.json b/xdr-json/curr/RevokeSponsorshipOp.json index d7425cf8..ffb2b722 100644 --- a/xdr-json/curr/RevokeSponsorshipOp.json +++ b/xdr-json/curr/RevokeSponsorshipOp.json @@ -459,12 +459,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "RevokeSponsorshipOpSigner": { "description": "RevokeSponsorshipOpSigner is an XDR NestedStruct defines as:\n\n```text struct { AccountID accountID; SignerKey signerKey; } ```", diff --git a/xdr-json/curr/SignedSurveyRequestMessage.json b/xdr-json/curr/SignedSurveyRequestMessage.json deleted file mode 100644 index 784e267e..00000000 --- a/xdr-json/curr/SignedSurveyRequestMessage.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "title": "SignedSurveyRequestMessage", - "description": "SignedSurveyRequestMessage is an XDR Struct defines as:\n\n```text struct SignedSurveyRequestMessage { Signature requestSignature; SurveyRequestMessage request; }; ```", - "type": "object", - "required": [ - "request", - "request_signature" - ], - "properties": { - "request": { - "$ref": "#/definitions/SurveyRequestMessage" - }, - "request_signature": { - "$ref": "#/definitions/Signature" - } - }, - "definitions": { - "Curve25519Public": { - "description": "Curve25519Public is an XDR Struct defines as:\n\n```text struct Curve25519Public { opaque key[32]; }; ```", - "type": "object", - "required": [ - "key" - ], - "properties": { - "key": { - "type": "array", - "items": { - "type": "integer", - "format": "uint8", - "minimum": 0.0 - }, - "maxItems": 32, - "minItems": 32 - } - } - }, - "NodeId": { - "type": "string" - }, - "Signature": { - "description": "Signature is an XDR Typedef defines as:\n\n```text typedef opaque Signature<64>; ```", - "type": "string", - "maxLength": 128, - "contentEncoding": "hex", - "contentMediaType": "application/binary" - }, - "SurveyMessageCommandType": { - "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", - "type": "string", - "enum": [ - "survey_topology", - "time_sliced_survey_topology" - ] - }, - "SurveyRequestMessage": { - "description": "SurveyRequestMessage is an XDR Struct defines as:\n\n```text struct SurveyRequestMessage { NodeID surveyorPeerID; NodeID surveyedPeerID; uint32 ledgerNum; Curve25519Public encryptionKey; SurveyMessageCommandType commandType; }; ```", - "type": "object", - "required": [ - "command_type", - "encryption_key", - "ledger_num", - "surveyed_peer_id", - "surveyor_peer_id" - ], - "properties": { - "command_type": { - "$ref": "#/definitions/SurveyMessageCommandType" - }, - "encryption_key": { - "$ref": "#/definitions/Curve25519Public" - }, - "ledger_num": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "surveyed_peer_id": { - "$ref": "#/definitions/NodeId" - }, - "surveyor_peer_id": { - "$ref": "#/definitions/NodeId" - } - } - } - } -} \ No newline at end of file diff --git a/xdr-json/curr/SignedSurveyResponseMessage.json b/xdr-json/curr/SignedSurveyResponseMessage.json deleted file mode 100644 index 400e2eb6..00000000 --- a/xdr-json/curr/SignedSurveyResponseMessage.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "title": "SignedSurveyResponseMessage", - "description": "SignedSurveyResponseMessage is an XDR Struct defines as:\n\n```text struct SignedSurveyResponseMessage { Signature responseSignature; SurveyResponseMessage response; }; ```", - "type": "object", - "required": [ - "response", - "response_signature" - ], - "properties": { - "response": { - "$ref": "#/definitions/SurveyResponseMessage" - }, - "response_signature": { - "$ref": "#/definitions/Signature" - } - }, - "definitions": { - "EncryptedBody": { - "description": "EncryptedBody is an XDR Typedef defines as:\n\n```text typedef opaque EncryptedBody<64000>; ```", - "type": "string", - "maxLength": 128000, - "contentEncoding": "hex", - "contentMediaType": "application/binary" - }, - "NodeId": { - "type": "string" - }, - "Signature": { - "description": "Signature is an XDR Typedef defines as:\n\n```text typedef opaque Signature<64>; ```", - "type": "string", - "maxLength": 128, - "contentEncoding": "hex", - "contentMediaType": "application/binary" - }, - "SurveyMessageCommandType": { - "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", - "type": "string", - "enum": [ - "survey_topology", - "time_sliced_survey_topology" - ] - }, - "SurveyResponseMessage": { - "description": "SurveyResponseMessage is an XDR Struct defines as:\n\n```text struct SurveyResponseMessage { NodeID surveyorPeerID; NodeID surveyedPeerID; uint32 ledgerNum; SurveyMessageCommandType commandType; EncryptedBody encryptedBody; }; ```", - "type": "object", - "required": [ - "command_type", - "encrypted_body", - "ledger_num", - "surveyed_peer_id", - "surveyor_peer_id" - ], - "properties": { - "command_type": { - "$ref": "#/definitions/SurveyMessageCommandType" - }, - "encrypted_body": { - "$ref": "#/definitions/EncryptedBody" - }, - "ledger_num": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "surveyed_peer_id": { - "$ref": "#/definitions/NodeId" - }, - "surveyor_peer_id": { - "$ref": "#/definitions/NodeId" - } - } - } - } -} \ No newline at end of file diff --git a/xdr-json/curr/SorobanResources.json b/xdr-json/curr/SorobanResources.json index 8412f9f2..fbdd56aa 100644 --- a/xdr-json/curr/SorobanResources.json +++ b/xdr-json/curr/SorobanResources.json @@ -484,12 +484,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "ScAddress": { "type": "string" diff --git a/xdr-json/curr/SorobanTransactionData.json b/xdr-json/curr/SorobanTransactionData.json index 9c42c3e7..e33facc6 100644 --- a/xdr-json/curr/SorobanTransactionData.json +++ b/xdr-json/curr/SorobanTransactionData.json @@ -482,12 +482,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "ScAddress": { "type": "string" diff --git a/xdr-json/curr/StellarMessage.json b/xdr-json/curr/StellarMessage.json index afe44f02..52b153c0 100644 --- a/xdr-json/curr/StellarMessage.json +++ b/xdr-json/curr/StellarMessage.json @@ -2404,12 +2404,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/curr/StoredDebugTransactionSet.json b/xdr-json/curr/StoredDebugTransactionSet.json index 8db0788b..476b7fdb 100644 --- a/xdr-json/curr/StoredDebugTransactionSet.json +++ b/xdr-json/curr/StoredDebugTransactionSet.json @@ -1902,12 +1902,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/curr/StoredTransactionSet.json b/xdr-json/curr/StoredTransactionSet.json index 1fc5ee82..d8685d3c 100644 --- a/xdr-json/curr/StoredTransactionSet.json +++ b/xdr-json/curr/StoredTransactionSet.json @@ -1890,12 +1890,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/curr/TopologyResponseBodyV0.json b/xdr-json/curr/TopologyResponseBodyV0.json deleted file mode 100644 index 8ff2fd1e..00000000 --- a/xdr-json/curr/TopologyResponseBodyV0.json +++ /dev/null @@ -1,141 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "title": "TopologyResponseBodyV0", - "description": "TopologyResponseBodyV0 is an XDR Struct defines as:\n\n```text struct TopologyResponseBodyV0 { PeerStatList inboundPeers; PeerStatList outboundPeers;\n\nuint32 totalInboundPeerCount; uint32 totalOutboundPeerCount; }; ```", - "type": "object", - "required": [ - "inbound_peers", - "outbound_peers", - "total_inbound_peer_count", - "total_outbound_peer_count" - ], - "properties": { - "inbound_peers": { - "$ref": "#/definitions/PeerStatList" - }, - "outbound_peers": { - "$ref": "#/definitions/PeerStatList" - }, - "total_inbound_peer_count": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "total_outbound_peer_count": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - } - }, - "definitions": { - "NodeId": { - "type": "string" - }, - "PeerStatList": { - "description": "PeerStatList is an XDR Typedef defines as:\n\n```text typedef PeerStats PeerStatList<25>; ```", - "type": "array", - "items": { - "$ref": "#/definitions/PeerStats" - }, - "maxItems": 25 - }, - "PeerStats": { - "description": "PeerStats is an XDR Struct defines as:\n\n```text struct PeerStats { NodeID id; string versionStr<100>; uint64 messagesRead; uint64 messagesWritten; uint64 bytesRead; uint64 bytesWritten; uint64 secondsConnected;\n\nuint64 uniqueFloodBytesRecv; uint64 duplicateFloodBytesRecv; uint64 uniqueFetchBytesRecv; uint64 duplicateFetchBytesRecv;\n\nuint64 uniqueFloodMessageRecv; uint64 duplicateFloodMessageRecv; uint64 uniqueFetchMessageRecv; uint64 duplicateFetchMessageRecv; }; ```", - "type": "object", - "required": [ - "bytes_read", - "bytes_written", - "duplicate_fetch_bytes_recv", - "duplicate_fetch_message_recv", - "duplicate_flood_bytes_recv", - "duplicate_flood_message_recv", - "id", - "messages_read", - "messages_written", - "seconds_connected", - "unique_fetch_bytes_recv", - "unique_fetch_message_recv", - "unique_flood_bytes_recv", - "unique_flood_message_recv", - "version_str" - ], - "properties": { - "bytes_read": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "bytes_written": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "duplicate_fetch_bytes_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "duplicate_fetch_message_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "duplicate_flood_bytes_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "duplicate_flood_message_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "id": { - "$ref": "#/definitions/NodeId" - }, - "messages_read": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "messages_written": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "seconds_connected": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "unique_fetch_bytes_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "unique_fetch_message_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "unique_flood_bytes_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "unique_flood_message_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "version_str": { - "$ref": "#/definitions/StringM<100>" - } - } - }, - "StringM<100>": { - "type": "string", - "maxLength": 100 - } - } -} \ No newline at end of file diff --git a/xdr-json/curr/TopologyResponseBodyV1.json b/xdr-json/curr/TopologyResponseBodyV1.json deleted file mode 100644 index 4ef33ade..00000000 --- a/xdr-json/curr/TopologyResponseBodyV1.json +++ /dev/null @@ -1,153 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "title": "TopologyResponseBodyV1", - "description": "TopologyResponseBodyV1 is an XDR Struct defines as:\n\n```text struct TopologyResponseBodyV1 { PeerStatList inboundPeers; PeerStatList outboundPeers;\n\nuint32 totalInboundPeerCount; uint32 totalOutboundPeerCount;\n\nuint32 maxInboundPeerCount; uint32 maxOutboundPeerCount; }; ```", - "type": "object", - "required": [ - "inbound_peers", - "max_inbound_peer_count", - "max_outbound_peer_count", - "outbound_peers", - "total_inbound_peer_count", - "total_outbound_peer_count" - ], - "properties": { - "inbound_peers": { - "$ref": "#/definitions/PeerStatList" - }, - "max_inbound_peer_count": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "max_outbound_peer_count": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "outbound_peers": { - "$ref": "#/definitions/PeerStatList" - }, - "total_inbound_peer_count": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "total_outbound_peer_count": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - } - }, - "definitions": { - "NodeId": { - "type": "string" - }, - "PeerStatList": { - "description": "PeerStatList is an XDR Typedef defines as:\n\n```text typedef PeerStats PeerStatList<25>; ```", - "type": "array", - "items": { - "$ref": "#/definitions/PeerStats" - }, - "maxItems": 25 - }, - "PeerStats": { - "description": "PeerStats is an XDR Struct defines as:\n\n```text struct PeerStats { NodeID id; string versionStr<100>; uint64 messagesRead; uint64 messagesWritten; uint64 bytesRead; uint64 bytesWritten; uint64 secondsConnected;\n\nuint64 uniqueFloodBytesRecv; uint64 duplicateFloodBytesRecv; uint64 uniqueFetchBytesRecv; uint64 duplicateFetchBytesRecv;\n\nuint64 uniqueFloodMessageRecv; uint64 duplicateFloodMessageRecv; uint64 uniqueFetchMessageRecv; uint64 duplicateFetchMessageRecv; }; ```", - "type": "object", - "required": [ - "bytes_read", - "bytes_written", - "duplicate_fetch_bytes_recv", - "duplicate_fetch_message_recv", - "duplicate_flood_bytes_recv", - "duplicate_flood_message_recv", - "id", - "messages_read", - "messages_written", - "seconds_connected", - "unique_fetch_bytes_recv", - "unique_fetch_message_recv", - "unique_flood_bytes_recv", - "unique_flood_message_recv", - "version_str" - ], - "properties": { - "bytes_read": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "bytes_written": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "duplicate_fetch_bytes_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "duplicate_fetch_message_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "duplicate_flood_bytes_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "duplicate_flood_message_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "id": { - "$ref": "#/definitions/NodeId" - }, - "messages_read": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "messages_written": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "seconds_connected": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "unique_fetch_bytes_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "unique_fetch_message_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "unique_flood_bytes_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "unique_flood_message_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "version_str": { - "$ref": "#/definitions/StringM<100>" - } - } - }, - "StringM<100>": { - "type": "string", - "maxLength": 100 - } - } -} \ No newline at end of file diff --git a/xdr-json/curr/Transaction.json b/xdr-json/curr/Transaction.json index 08e1cf0f..dea759aa 100644 --- a/xdr-json/curr/Transaction.json +++ b/xdr-json/curr/Transaction.json @@ -1797,12 +1797,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/curr/TransactionEnvelope.json b/xdr-json/curr/TransactionEnvelope.json index ca94274e..9a0a20f4 100644 --- a/xdr-json/curr/TransactionEnvelope.json +++ b/xdr-json/curr/TransactionEnvelope.json @@ -1885,12 +1885,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/curr/TransactionExt.json b/xdr-json/curr/TransactionExt.json index c5c0c286..20d5d76a 100644 --- a/xdr-json/curr/TransactionExt.json +++ b/xdr-json/curr/TransactionExt.json @@ -484,12 +484,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "ScAddress": { "type": "string" diff --git a/xdr-json/curr/TransactionHistoryEntry.json b/xdr-json/curr/TransactionHistoryEntry.json index e90bdc39..53ade6e0 100644 --- a/xdr-json/curr/TransactionHistoryEntry.json +++ b/xdr-json/curr/TransactionHistoryEntry.json @@ -1883,12 +1883,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/curr/TransactionHistoryEntryExt.json b/xdr-json/curr/TransactionHistoryEntryExt.json index 93686632..564d8e06 100644 --- a/xdr-json/curr/TransactionHistoryEntryExt.json +++ b/xdr-json/curr/TransactionHistoryEntryExt.json @@ -1884,12 +1884,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/curr/TransactionHistoryResultEntry.json b/xdr-json/curr/TransactionHistoryResultEntry.json index 48c4466c..29686385 100644 --- a/xdr-json/curr/TransactionHistoryResultEntry.json +++ b/xdr-json/curr/TransactionHistoryResultEntry.json @@ -1306,12 +1306,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/TransactionMeta.json b/xdr-json/curr/TransactionMeta.json index eef18dbe..7f69af38 100644 --- a/xdr-json/curr/TransactionMeta.json +++ b/xdr-json/curr/TransactionMeta.json @@ -2128,12 +2128,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/TransactionMetaV1.json b/xdr-json/curr/TransactionMetaV1.json index 760805ab..020f6eaa 100644 --- a/xdr-json/curr/TransactionMetaV1.json +++ b/xdr-json/curr/TransactionMetaV1.json @@ -1955,12 +1955,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/TransactionMetaV2.json b/xdr-json/curr/TransactionMetaV2.json index d6380d0e..6eb1815b 100644 --- a/xdr-json/curr/TransactionMetaV2.json +++ b/xdr-json/curr/TransactionMetaV2.json @@ -1959,12 +1959,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/TransactionMetaV3.json b/xdr-json/curr/TransactionMetaV3.json index d3a3ae87..5aff3395 100644 --- a/xdr-json/curr/TransactionMetaV3.json +++ b/xdr-json/curr/TransactionMetaV3.json @@ -2065,12 +2065,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/TransactionPhase.json b/xdr-json/curr/TransactionPhase.json index d033150e..b1cd5d75 100644 --- a/xdr-json/curr/TransactionPhase.json +++ b/xdr-json/curr/TransactionPhase.json @@ -1865,12 +1865,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/curr/TransactionResult.json b/xdr-json/curr/TransactionResult.json index 74800ace..a920d505 100644 --- a/xdr-json/curr/TransactionResult.json +++ b/xdr-json/curr/TransactionResult.json @@ -1305,12 +1305,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/TransactionResultMeta.json b/xdr-json/curr/TransactionResultMeta.json index bc59e701..9caf1350 100644 --- a/xdr-json/curr/TransactionResultMeta.json +++ b/xdr-json/curr/TransactionResultMeta.json @@ -3232,12 +3232,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/TransactionResultPair.json b/xdr-json/curr/TransactionResultPair.json index 9d903cb2..49156383 100644 --- a/xdr-json/curr/TransactionResultPair.json +++ b/xdr-json/curr/TransactionResultPair.json @@ -1304,12 +1304,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/TransactionResultResult.json b/xdr-json/curr/TransactionResultResult.json index 9bd4a43e..673975dc 100644 --- a/xdr-json/curr/TransactionResultResult.json +++ b/xdr-json/curr/TransactionResultResult.json @@ -1365,12 +1365,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/TransactionResultSet.json b/xdr-json/curr/TransactionResultSet.json index 46c78e81..b769a8c4 100644 --- a/xdr-json/curr/TransactionResultSet.json +++ b/xdr-json/curr/TransactionResultSet.json @@ -1300,12 +1300,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/TransactionSet.json b/xdr-json/curr/TransactionSet.json index e3c72f16..01931dc6 100644 --- a/xdr-json/curr/TransactionSet.json +++ b/xdr-json/curr/TransactionSet.json @@ -1868,12 +1868,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/curr/TransactionSetV1.json b/xdr-json/curr/TransactionSetV1.json index b4591833..92df8451 100644 --- a/xdr-json/curr/TransactionSetV1.json +++ b/xdr-json/curr/TransactionSetV1.json @@ -1868,12 +1868,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/curr/TransactionSignaturePayload.json b/xdr-json/curr/TransactionSignaturePayload.json index aec3e5a5..feddee44 100644 --- a/xdr-json/curr/TransactionSignaturePayload.json +++ b/xdr-json/curr/TransactionSignaturePayload.json @@ -1844,12 +1844,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/curr/TransactionSignaturePayloadTaggedTransaction.json b/xdr-json/curr/TransactionSignaturePayloadTaggedTransaction.json index e60599e0..d7cfa4a3 100644 --- a/xdr-json/curr/TransactionSignaturePayloadTaggedTransaction.json +++ b/xdr-json/curr/TransactionSignaturePayloadTaggedTransaction.json @@ -1853,12 +1853,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/curr/TransactionV0.json b/xdr-json/curr/TransactionV0.json index 450e2c17..f0b94ea4 100644 --- a/xdr-json/curr/TransactionV0.json +++ b/xdr-json/curr/TransactionV0.json @@ -1763,12 +1763,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/TransactionV0Envelope.json b/xdr-json/curr/TransactionV0Envelope.json index ca6407b9..21640ef7 100644 --- a/xdr-json/curr/TransactionV0Envelope.json +++ b/xdr-json/curr/TransactionV0Envelope.json @@ -1751,12 +1751,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/curr/TransactionV1Envelope.json b/xdr-json/curr/TransactionV1Envelope.json index c6e1ffe0..50cf6d1c 100644 --- a/xdr-json/curr/TransactionV1Envelope.json +++ b/xdr-json/curr/TransactionV1Envelope.json @@ -1795,12 +1795,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/curr/TrustLineAsset.json b/xdr-json/curr/TrustLineAsset.json index c9ac8bde..b13f6a77 100644 --- a/xdr-json/curr/TrustLineAsset.json +++ b/xdr-json/curr/TrustLineAsset.json @@ -89,12 +89,7 @@ "type": "string" }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" } } } \ No newline at end of file diff --git a/xdr-json/curr/TrustLineEntry.json b/xdr-json/curr/TrustLineEntry.json index 6af5e201..4ffcb889 100644 --- a/xdr-json/curr/TrustLineEntry.json +++ b/xdr-json/curr/TrustLineEntry.json @@ -96,12 +96,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "TrustLineAsset": { "description": "TrustLineAsset is an XDR Union defines as:\n\n```text union TrustLineAsset switch (AssetType type) { case ASSET_TYPE_NATIVE: // Not credit void;\n\ncase ASSET_TYPE_CREDIT_ALPHANUM4: AlphaNum4 alphaNum4;\n\ncase ASSET_TYPE_CREDIT_ALPHANUM12: AlphaNum12 alphaNum12;\n\ncase ASSET_TYPE_POOL_SHARE: PoolID liquidityPoolID;\n\n// add other asset types here in the future }; ```", diff --git a/xdr-json/curr/TxSetComponent.json b/xdr-json/curr/TxSetComponent.json index 1e511fa1..81a97564 100644 --- a/xdr-json/curr/TxSetComponent.json +++ b/xdr-json/curr/TxSetComponent.json @@ -1861,12 +1861,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/curr/TxSetComponentTxsMaybeDiscountedFee.json b/xdr-json/curr/TxSetComponentTxsMaybeDiscountedFee.json index a0e39065..4d1dd226 100644 --- a/xdr-json/curr/TxSetComponentTxsMaybeDiscountedFee.json +++ b/xdr-json/curr/TxSetComponentTxsMaybeDiscountedFee.json @@ -1867,12 +1867,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/curr/UpgradeEntryMeta.json b/xdr-json/curr/UpgradeEntryMeta.json index 45d93423..b13507ce 100644 --- a/xdr-json/curr/UpgradeEntryMeta.json +++ b/xdr-json/curr/UpgradeEntryMeta.json @@ -2064,12 +2064,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/AuthenticatedMessage.json b/xdr-json/next/AuthenticatedMessage.json index 752d4ff1..270e43cb 100644 --- a/xdr-json/next/AuthenticatedMessage.json +++ b/xdr-json/next/AuthenticatedMessage.json @@ -2232,12 +2232,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/AuthenticatedMessageV0.json b/xdr-json/next/AuthenticatedMessageV0.json index b619be73..3742427b 100644 --- a/xdr-json/next/AuthenticatedMessageV0.json +++ b/xdr-json/next/AuthenticatedMessageV0.json @@ -2215,12 +2215,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/BucketEntry.json b/xdr-json/next/BucketEntry.json index 10be9a78..75cf741a 100644 --- a/xdr-json/next/BucketEntry.json +++ b/xdr-json/next/BucketEntry.json @@ -2023,12 +2023,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/ClaimAtom.json b/xdr-json/next/ClaimAtom.json index ad3e5d12..f9e51ea2 100644 --- a/xdr-json/next/ClaimAtom.json +++ b/xdr-json/next/ClaimAtom.json @@ -222,12 +222,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" } } } \ No newline at end of file diff --git a/xdr-json/next/ClaimLiquidityAtom.json b/xdr-json/next/ClaimLiquidityAtom.json index 2b03bff8..bb82521e 100644 --- a/xdr-json/next/ClaimLiquidityAtom.json +++ b/xdr-json/next/ClaimLiquidityAtom.json @@ -107,12 +107,7 @@ "type": "string" }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" } } } \ No newline at end of file diff --git a/xdr-json/next/ColdArchiveArchivedLeaf.json b/xdr-json/next/ColdArchiveArchivedLeaf.json index 112bc53a..69dabfb3 100644 --- a/xdr-json/next/ColdArchiveArchivedLeaf.json +++ b/xdr-json/next/ColdArchiveArchivedLeaf.json @@ -1643,12 +1643,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/ColdArchiveBucketEntry.json b/xdr-json/next/ColdArchiveBucketEntry.json index 311518cd..609f8428 100644 --- a/xdr-json/next/ColdArchiveBucketEntry.json +++ b/xdr-json/next/ColdArchiveBucketEntry.json @@ -2117,12 +2117,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/ColdArchiveDeletedLeaf.json b/xdr-json/next/ColdArchiveDeletedLeaf.json index a38825aa..95958f6e 100644 --- a/xdr-json/next/ColdArchiveDeletedLeaf.json +++ b/xdr-json/next/ColdArchiveDeletedLeaf.json @@ -450,12 +450,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "ScAddress": { "type": "string" diff --git a/xdr-json/next/DependentTxCluster.json b/xdr-json/next/DependentTxCluster.json index 3e620353..1e2556d3 100644 --- a/xdr-json/next/DependentTxCluster.json +++ b/xdr-json/next/DependentTxCluster.json @@ -1854,12 +1854,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/FeeBumpTransaction.json b/xdr-json/next/FeeBumpTransaction.json index d404ec60..2af7363c 100644 --- a/xdr-json/next/FeeBumpTransaction.json +++ b/xdr-json/next/FeeBumpTransaction.json @@ -1826,12 +1826,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/FeeBumpTransactionEnvelope.json b/xdr-json/next/FeeBumpTransactionEnvelope.json index 8bcb6d0c..fda680f4 100644 --- a/xdr-json/next/FeeBumpTransactionEnvelope.json +++ b/xdr-json/next/FeeBumpTransactionEnvelope.json @@ -1846,12 +1846,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/FeeBumpTransactionInnerTx.json b/xdr-json/next/FeeBumpTransactionInnerTx.json index 4fd334cd..fb553d94 100644 --- a/xdr-json/next/FeeBumpTransactionInnerTx.json +++ b/xdr-json/next/FeeBumpTransactionInnerTx.json @@ -1794,12 +1794,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/GeneralizedTransactionSet.json b/xdr-json/next/GeneralizedTransactionSet.json index 3ec74ddc..0fe08686 100644 --- a/xdr-json/next/GeneralizedTransactionSet.json +++ b/xdr-json/next/GeneralizedTransactionSet.json @@ -1902,12 +1902,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/HashIdPreimage.json b/xdr-json/next/HashIdPreimage.json index d6ab6038..6bd737c7 100644 --- a/xdr-json/next/HashIdPreimage.json +++ b/xdr-json/next/HashIdPreimage.json @@ -429,12 +429,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "ScAddress": { "type": "string" diff --git a/xdr-json/next/HashIdPreimageRevokeId.json b/xdr-json/next/HashIdPreimageRevokeId.json index 3a44f3e1..36c9b326 100644 --- a/xdr-json/next/HashIdPreimageRevokeId.json +++ b/xdr-json/next/HashIdPreimageRevokeId.json @@ -107,12 +107,7 @@ "type": "string" }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "SequenceNumber": { "description": "SequenceNumber is an XDR Typedef defines as:\n\n```text typedef int64 SequenceNumber; ```", diff --git a/xdr-json/next/HotArchiveBucketEntry.json b/xdr-json/next/HotArchiveBucketEntry.json index 2f6a46f5..4cac3f54 100644 --- a/xdr-json/next/HotArchiveBucketEntry.json +++ b/xdr-json/next/HotArchiveBucketEntry.json @@ -2023,12 +2023,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/InnerTransactionResult.json b/xdr-json/next/InnerTransactionResult.json index c6496f81..d944b4cc 100644 --- a/xdr-json/next/InnerTransactionResult.json +++ b/xdr-json/next/InnerTransactionResult.json @@ -1264,12 +1264,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/InnerTransactionResultPair.json b/xdr-json/next/InnerTransactionResultPair.json index 5d41a6cc..aa6d0c90 100644 --- a/xdr-json/next/InnerTransactionResultPair.json +++ b/xdr-json/next/InnerTransactionResultPair.json @@ -1284,12 +1284,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/InnerTransactionResultResult.json b/xdr-json/next/InnerTransactionResultResult.json index 7028272d..6a31f854 100644 --- a/xdr-json/next/InnerTransactionResultResult.json +++ b/xdr-json/next/InnerTransactionResultResult.json @@ -1236,12 +1236,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/LedgerCloseMeta.json b/xdr-json/next/LedgerCloseMeta.json index 8518aaff..9b7da6ba 100644 --- a/xdr-json/next/LedgerCloseMeta.json +++ b/xdr-json/next/LedgerCloseMeta.json @@ -5087,12 +5087,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/LedgerCloseMetaV0.json b/xdr-json/next/LedgerCloseMetaV0.json index 473168c1..93b06d42 100644 --- a/xdr-json/next/LedgerCloseMetaV0.json +++ b/xdr-json/next/LedgerCloseMetaV0.json @@ -4896,12 +4896,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/LedgerCloseMetaV1.json b/xdr-json/next/LedgerCloseMetaV1.json index 2dfd7ee3..4e5042c5 100644 --- a/xdr-json/next/LedgerCloseMetaV1.json +++ b/xdr-json/next/LedgerCloseMetaV1.json @@ -5018,12 +5018,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/LedgerEntry.json b/xdr-json/next/LedgerEntry.json index 2b462b12..0d0bcca0 100644 --- a/xdr-json/next/LedgerEntry.json +++ b/xdr-json/next/LedgerEntry.json @@ -1625,12 +1625,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/LedgerEntryChange.json b/xdr-json/next/LedgerEntryChange.json index dc1df59c..31b089b1 100644 --- a/xdr-json/next/LedgerEntryChange.json +++ b/xdr-json/next/LedgerEntryChange.json @@ -1986,12 +1986,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/LedgerEntryChanges.json b/xdr-json/next/LedgerEntryChanges.json index 3727b91a..4687353e 100644 --- a/xdr-json/next/LedgerEntryChanges.json +++ b/xdr-json/next/LedgerEntryChanges.json @@ -1994,12 +1994,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/LedgerEntryData.json b/xdr-json/next/LedgerEntryData.json index 4d40ae04..e40ad737 100644 --- a/xdr-json/next/LedgerEntryData.json +++ b/xdr-json/next/LedgerEntryData.json @@ -1557,12 +1557,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/LedgerFootprint.json b/xdr-json/next/LedgerFootprint.json index e080cc99..c284539e 100644 --- a/xdr-json/next/LedgerFootprint.json +++ b/xdr-json/next/LedgerFootprint.json @@ -456,12 +456,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "ScAddress": { "type": "string" diff --git a/xdr-json/next/LedgerKey.json b/xdr-json/next/LedgerKey.json index d11bb66e..1127c3c9 100644 --- a/xdr-json/next/LedgerKey.json +++ b/xdr-json/next/LedgerKey.json @@ -432,12 +432,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "ScAddress": { "type": "string" diff --git a/xdr-json/next/LedgerKeyLiquidityPool.json b/xdr-json/next/LedgerKeyLiquidityPool.json index 7bca1a87..c8ba1548 100644 --- a/xdr-json/next/LedgerKeyLiquidityPool.json +++ b/xdr-json/next/LedgerKeyLiquidityPool.json @@ -13,12 +13,7 @@ }, "definitions": { "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" } } } \ No newline at end of file diff --git a/xdr-json/next/LedgerKeyTrustLine.json b/xdr-json/next/LedgerKeyTrustLine.json index ffcc0ae2..c21bd9a0 100644 --- a/xdr-json/next/LedgerKeyTrustLine.json +++ b/xdr-json/next/LedgerKeyTrustLine.json @@ -58,12 +58,7 @@ "type": "string" }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "TrustLineAsset": { "description": "TrustLineAsset is an XDR Union defines as:\n\n```text union TrustLineAsset switch (AssetType type) { case ASSET_TYPE_NATIVE: // Not credit void;\n\ncase ASSET_TYPE_CREDIT_ALPHANUM4: AlphaNum4 alphaNum4;\n\ncase ASSET_TYPE_CREDIT_ALPHANUM12: AlphaNum12 alphaNum12;\n\ncase ASSET_TYPE_POOL_SHARE: PoolID liquidityPoolID;\n\n// add other asset types here in the future }; ```", diff --git a/xdr-json/next/LiquidityPoolDepositOp.json b/xdr-json/next/LiquidityPoolDepositOp.json index 126e4b1b..2cc0293f 100644 --- a/xdr-json/next/LiquidityPoolDepositOp.json +++ b/xdr-json/next/LiquidityPoolDepositOp.json @@ -31,12 +31,7 @@ }, "definitions": { "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/LiquidityPoolEntry.json b/xdr-json/next/LiquidityPoolEntry.json index b069e68f..64f738c7 100644 --- a/xdr-json/next/LiquidityPoolEntry.json +++ b/xdr-json/next/LiquidityPoolEntry.json @@ -163,12 +163,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" } } } \ No newline at end of file diff --git a/xdr-json/next/LiquidityPoolWithdrawOp.json b/xdr-json/next/LiquidityPoolWithdrawOp.json index 5299cf05..779d6954 100644 --- a/xdr-json/next/LiquidityPoolWithdrawOp.json +++ b/xdr-json/next/LiquidityPoolWithdrawOp.json @@ -28,12 +28,7 @@ }, "definitions": { "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" } } } \ No newline at end of file diff --git a/xdr-json/next/ManageBuyOfferResult.json b/xdr-json/next/ManageBuyOfferResult.json index 08a157a4..1d4be466 100644 --- a/xdr-json/next/ManageBuyOfferResult.json +++ b/xdr-json/next/ManageBuyOfferResult.json @@ -362,12 +362,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/ManageOfferSuccessResult.json b/xdr-json/next/ManageOfferSuccessResult.json index f4f90aae..8c43a29e 100644 --- a/xdr-json/next/ManageOfferSuccessResult.json +++ b/xdr-json/next/ManageOfferSuccessResult.json @@ -328,12 +328,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/ManageSellOfferResult.json b/xdr-json/next/ManageSellOfferResult.json index 8e1be6c1..ebf09076 100644 --- a/xdr-json/next/ManageSellOfferResult.json +++ b/xdr-json/next/ManageSellOfferResult.json @@ -362,12 +362,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/Operation.json b/xdr-json/next/Operation.json index 520053be..0f2f2966 100644 --- a/xdr-json/next/Operation.json +++ b/xdr-json/next/Operation.json @@ -1644,12 +1644,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/OperationBody.json b/xdr-json/next/OperationBody.json index 6512f78b..1e5b2f5b 100644 --- a/xdr-json/next/OperationBody.json +++ b/xdr-json/next/OperationBody.json @@ -1622,12 +1622,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/OperationMeta.json b/xdr-json/next/OperationMeta.json index efb8fce5..36bd9021 100644 --- a/xdr-json/next/OperationMeta.json +++ b/xdr-json/next/OperationMeta.json @@ -2006,12 +2006,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/OperationResult.json b/xdr-json/next/OperationResult.json index c5d09087..d8ce58b0 100644 --- a/xdr-json/next/OperationResult.json +++ b/xdr-json/next/OperationResult.json @@ -1179,12 +1179,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/OperationResultTr.json b/xdr-json/next/OperationResultTr.json index dcd13745..7dd90fd4 100644 --- a/xdr-json/next/OperationResultTr.json +++ b/xdr-json/next/OperationResultTr.json @@ -1151,12 +1151,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/ParallelTxExecutionStage.json b/xdr-json/next/ParallelTxExecutionStage.json index 85298b6a..6ea7d023 100644 --- a/xdr-json/next/ParallelTxExecutionStage.json +++ b/xdr-json/next/ParallelTxExecutionStage.json @@ -1862,12 +1862,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/ParallelTxsComponent.json b/xdr-json/next/ParallelTxsComponent.json index de877f37..97594d16 100644 --- a/xdr-json/next/ParallelTxsComponent.json +++ b/xdr-json/next/ParallelTxsComponent.json @@ -1885,12 +1885,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/PathPaymentStrictReceiveResult.json b/xdr-json/next/PathPaymentStrictReceiveResult.json index f3f6dd2c..055ad486 100644 --- a/xdr-json/next/PathPaymentStrictReceiveResult.json +++ b/xdr-json/next/PathPaymentStrictReceiveResult.json @@ -287,12 +287,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "SimplePaymentResult": { "description": "SimplePaymentResult is an XDR Struct defines as:\n\n```text struct SimplePaymentResult { AccountID destination; Asset asset; int64 amount; }; ```", diff --git a/xdr-json/next/PathPaymentStrictReceiveResultSuccess.json b/xdr-json/next/PathPaymentStrictReceiveResultSuccess.json index 0af96f2b..3ede5366 100644 --- a/xdr-json/next/PathPaymentStrictReceiveResultSuccess.json +++ b/xdr-json/next/PathPaymentStrictReceiveResultSuccess.json @@ -242,12 +242,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "SimplePaymentResult": { "description": "SimplePaymentResult is an XDR Struct defines as:\n\n```text struct SimplePaymentResult { AccountID destination; Asset asset; int64 amount; }; ```", diff --git a/xdr-json/next/PathPaymentStrictSendResult.json b/xdr-json/next/PathPaymentStrictSendResult.json index 781fb525..d2cc2bec 100644 --- a/xdr-json/next/PathPaymentStrictSendResult.json +++ b/xdr-json/next/PathPaymentStrictSendResult.json @@ -287,12 +287,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "SimplePaymentResult": { "description": "SimplePaymentResult is an XDR Struct defines as:\n\n```text struct SimplePaymentResult { AccountID destination; Asset asset; int64 amount; }; ```", diff --git a/xdr-json/next/PathPaymentStrictSendResultSuccess.json b/xdr-json/next/PathPaymentStrictSendResultSuccess.json index 1ca58f0b..98b7068a 100644 --- a/xdr-json/next/PathPaymentStrictSendResultSuccess.json +++ b/xdr-json/next/PathPaymentStrictSendResultSuccess.json @@ -242,12 +242,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "SimplePaymentResult": { "description": "SimplePaymentResult is an XDR Struct defines as:\n\n```text struct SimplePaymentResult { AccountID destination; Asset asset; int64 amount; }; ```", diff --git a/xdr-json/next/PeerStatList.json b/xdr-json/next/PeerStatList.json deleted file mode 100644 index f4c40695..00000000 --- a/xdr-json/next/PeerStatList.json +++ /dev/null @@ -1,113 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "title": "PeerStatList", - "description": "PeerStatList is an XDR Typedef defines as:\n\n```text typedef PeerStats PeerStatList<25>; ```", - "type": "array", - "items": { - "$ref": "#/definitions/PeerStats" - }, - "maxItems": 25, - "definitions": { - "NodeId": { - "type": "string" - }, - "PeerStats": { - "description": "PeerStats is an XDR Struct defines as:\n\n```text struct PeerStats { NodeID id; string versionStr<100>; uint64 messagesRead; uint64 messagesWritten; uint64 bytesRead; uint64 bytesWritten; uint64 secondsConnected;\n\nuint64 uniqueFloodBytesRecv; uint64 duplicateFloodBytesRecv; uint64 uniqueFetchBytesRecv; uint64 duplicateFetchBytesRecv;\n\nuint64 uniqueFloodMessageRecv; uint64 duplicateFloodMessageRecv; uint64 uniqueFetchMessageRecv; uint64 duplicateFetchMessageRecv; }; ```", - "type": "object", - "required": [ - "bytes_read", - "bytes_written", - "duplicate_fetch_bytes_recv", - "duplicate_fetch_message_recv", - "duplicate_flood_bytes_recv", - "duplicate_flood_message_recv", - "id", - "messages_read", - "messages_written", - "seconds_connected", - "unique_fetch_bytes_recv", - "unique_fetch_message_recv", - "unique_flood_bytes_recv", - "unique_flood_message_recv", - "version_str" - ], - "properties": { - "bytes_read": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "bytes_written": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "duplicate_fetch_bytes_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "duplicate_fetch_message_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "duplicate_flood_bytes_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "duplicate_flood_message_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "id": { - "$ref": "#/definitions/NodeId" - }, - "messages_read": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "messages_written": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "seconds_connected": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "unique_fetch_bytes_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "unique_fetch_message_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "unique_flood_bytes_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "unique_flood_message_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "version_str": { - "$ref": "#/definitions/StringM<100>" - } - } - }, - "StringM<100>": { - "type": "string", - "maxLength": 100 - } - } -} \ No newline at end of file diff --git a/xdr-json/next/PersistedScpState.json b/xdr-json/next/PersistedScpState.json index c53a5c45..beea8b78 100644 --- a/xdr-json/next/PersistedScpState.json +++ b/xdr-json/next/PersistedScpState.json @@ -1990,12 +1990,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/PersistedScpStateV0.json b/xdr-json/next/PersistedScpStateV0.json index 939cc715..2fe71db8 100644 --- a/xdr-json/next/PersistedScpStateV0.json +++ b/xdr-json/next/PersistedScpStateV0.json @@ -1937,12 +1937,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/PoolId.json b/xdr-json/next/PoolId.json index 7447df06..bb13a29b 100644 --- a/xdr-json/next/PoolId.json +++ b/xdr-json/next/PoolId.json @@ -1,10 +1,5 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "PoolId", - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" } \ No newline at end of file diff --git a/xdr-json/next/RevokeSponsorshipOp.json b/xdr-json/next/RevokeSponsorshipOp.json index fc34222c..ca078130 100644 --- a/xdr-json/next/RevokeSponsorshipOp.json +++ b/xdr-json/next/RevokeSponsorshipOp.json @@ -461,12 +461,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "RevokeSponsorshipOpSigner": { "description": "RevokeSponsorshipOpSigner is an XDR NestedStruct defines as:\n\n```text struct { AccountID accountID; SignerKey signerKey; } ```", diff --git a/xdr-json/next/SignedSurveyRequestMessage.json b/xdr-json/next/SignedSurveyRequestMessage.json deleted file mode 100644 index 784e267e..00000000 --- a/xdr-json/next/SignedSurveyRequestMessage.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "title": "SignedSurveyRequestMessage", - "description": "SignedSurveyRequestMessage is an XDR Struct defines as:\n\n```text struct SignedSurveyRequestMessage { Signature requestSignature; SurveyRequestMessage request; }; ```", - "type": "object", - "required": [ - "request", - "request_signature" - ], - "properties": { - "request": { - "$ref": "#/definitions/SurveyRequestMessage" - }, - "request_signature": { - "$ref": "#/definitions/Signature" - } - }, - "definitions": { - "Curve25519Public": { - "description": "Curve25519Public is an XDR Struct defines as:\n\n```text struct Curve25519Public { opaque key[32]; }; ```", - "type": "object", - "required": [ - "key" - ], - "properties": { - "key": { - "type": "array", - "items": { - "type": "integer", - "format": "uint8", - "minimum": 0.0 - }, - "maxItems": 32, - "minItems": 32 - } - } - }, - "NodeId": { - "type": "string" - }, - "Signature": { - "description": "Signature is an XDR Typedef defines as:\n\n```text typedef opaque Signature<64>; ```", - "type": "string", - "maxLength": 128, - "contentEncoding": "hex", - "contentMediaType": "application/binary" - }, - "SurveyMessageCommandType": { - "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", - "type": "string", - "enum": [ - "survey_topology", - "time_sliced_survey_topology" - ] - }, - "SurveyRequestMessage": { - "description": "SurveyRequestMessage is an XDR Struct defines as:\n\n```text struct SurveyRequestMessage { NodeID surveyorPeerID; NodeID surveyedPeerID; uint32 ledgerNum; Curve25519Public encryptionKey; SurveyMessageCommandType commandType; }; ```", - "type": "object", - "required": [ - "command_type", - "encryption_key", - "ledger_num", - "surveyed_peer_id", - "surveyor_peer_id" - ], - "properties": { - "command_type": { - "$ref": "#/definitions/SurveyMessageCommandType" - }, - "encryption_key": { - "$ref": "#/definitions/Curve25519Public" - }, - "ledger_num": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "surveyed_peer_id": { - "$ref": "#/definitions/NodeId" - }, - "surveyor_peer_id": { - "$ref": "#/definitions/NodeId" - } - } - } - } -} \ No newline at end of file diff --git a/xdr-json/next/SignedSurveyResponseMessage.json b/xdr-json/next/SignedSurveyResponseMessage.json deleted file mode 100644 index 400e2eb6..00000000 --- a/xdr-json/next/SignedSurveyResponseMessage.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "title": "SignedSurveyResponseMessage", - "description": "SignedSurveyResponseMessage is an XDR Struct defines as:\n\n```text struct SignedSurveyResponseMessage { Signature responseSignature; SurveyResponseMessage response; }; ```", - "type": "object", - "required": [ - "response", - "response_signature" - ], - "properties": { - "response": { - "$ref": "#/definitions/SurveyResponseMessage" - }, - "response_signature": { - "$ref": "#/definitions/Signature" - } - }, - "definitions": { - "EncryptedBody": { - "description": "EncryptedBody is an XDR Typedef defines as:\n\n```text typedef opaque EncryptedBody<64000>; ```", - "type": "string", - "maxLength": 128000, - "contentEncoding": "hex", - "contentMediaType": "application/binary" - }, - "NodeId": { - "type": "string" - }, - "Signature": { - "description": "Signature is an XDR Typedef defines as:\n\n```text typedef opaque Signature<64>; ```", - "type": "string", - "maxLength": 128, - "contentEncoding": "hex", - "contentMediaType": "application/binary" - }, - "SurveyMessageCommandType": { - "description": "SurveyMessageCommandType is an XDR Enum defines as:\n\n```text enum SurveyMessageCommandType { SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 }; ```", - "type": "string", - "enum": [ - "survey_topology", - "time_sliced_survey_topology" - ] - }, - "SurveyResponseMessage": { - "description": "SurveyResponseMessage is an XDR Struct defines as:\n\n```text struct SurveyResponseMessage { NodeID surveyorPeerID; NodeID surveyedPeerID; uint32 ledgerNum; SurveyMessageCommandType commandType; EncryptedBody encryptedBody; }; ```", - "type": "object", - "required": [ - "command_type", - "encrypted_body", - "ledger_num", - "surveyed_peer_id", - "surveyor_peer_id" - ], - "properties": { - "command_type": { - "$ref": "#/definitions/SurveyMessageCommandType" - }, - "encrypted_body": { - "$ref": "#/definitions/EncryptedBody" - }, - "ledger_num": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "surveyed_peer_id": { - "$ref": "#/definitions/NodeId" - }, - "surveyor_peer_id": { - "$ref": "#/definitions/NodeId" - } - } - } - } -} \ No newline at end of file diff --git a/xdr-json/next/SorobanResources.json b/xdr-json/next/SorobanResources.json index 4c1b7f79..f566a525 100644 --- a/xdr-json/next/SorobanResources.json +++ b/xdr-json/next/SorobanResources.json @@ -486,12 +486,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "ScAddress": { "type": "string" diff --git a/xdr-json/next/SorobanTransactionData.json b/xdr-json/next/SorobanTransactionData.json index 19dfef0f..260952eb 100644 --- a/xdr-json/next/SorobanTransactionData.json +++ b/xdr-json/next/SorobanTransactionData.json @@ -477,12 +477,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "ScAddress": { "type": "string" diff --git a/xdr-json/next/StellarMessage.json b/xdr-json/next/StellarMessage.json index d6b507f3..ab3e88b6 100644 --- a/xdr-json/next/StellarMessage.json +++ b/xdr-json/next/StellarMessage.json @@ -2445,12 +2445,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/StoredDebugTransactionSet.json b/xdr-json/next/StoredDebugTransactionSet.json index d0119b85..7835a989 100644 --- a/xdr-json/next/StoredDebugTransactionSet.json +++ b/xdr-json/next/StoredDebugTransactionSet.json @@ -1943,12 +1943,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/StoredTransactionSet.json b/xdr-json/next/StoredTransactionSet.json index 535d5d49..b00977da 100644 --- a/xdr-json/next/StoredTransactionSet.json +++ b/xdr-json/next/StoredTransactionSet.json @@ -1931,12 +1931,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/TopologyResponseBodyV0.json b/xdr-json/next/TopologyResponseBodyV0.json deleted file mode 100644 index 8ff2fd1e..00000000 --- a/xdr-json/next/TopologyResponseBodyV0.json +++ /dev/null @@ -1,141 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "title": "TopologyResponseBodyV0", - "description": "TopologyResponseBodyV0 is an XDR Struct defines as:\n\n```text struct TopologyResponseBodyV0 { PeerStatList inboundPeers; PeerStatList outboundPeers;\n\nuint32 totalInboundPeerCount; uint32 totalOutboundPeerCount; }; ```", - "type": "object", - "required": [ - "inbound_peers", - "outbound_peers", - "total_inbound_peer_count", - "total_outbound_peer_count" - ], - "properties": { - "inbound_peers": { - "$ref": "#/definitions/PeerStatList" - }, - "outbound_peers": { - "$ref": "#/definitions/PeerStatList" - }, - "total_inbound_peer_count": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "total_outbound_peer_count": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - } - }, - "definitions": { - "NodeId": { - "type": "string" - }, - "PeerStatList": { - "description": "PeerStatList is an XDR Typedef defines as:\n\n```text typedef PeerStats PeerStatList<25>; ```", - "type": "array", - "items": { - "$ref": "#/definitions/PeerStats" - }, - "maxItems": 25 - }, - "PeerStats": { - "description": "PeerStats is an XDR Struct defines as:\n\n```text struct PeerStats { NodeID id; string versionStr<100>; uint64 messagesRead; uint64 messagesWritten; uint64 bytesRead; uint64 bytesWritten; uint64 secondsConnected;\n\nuint64 uniqueFloodBytesRecv; uint64 duplicateFloodBytesRecv; uint64 uniqueFetchBytesRecv; uint64 duplicateFetchBytesRecv;\n\nuint64 uniqueFloodMessageRecv; uint64 duplicateFloodMessageRecv; uint64 uniqueFetchMessageRecv; uint64 duplicateFetchMessageRecv; }; ```", - "type": "object", - "required": [ - "bytes_read", - "bytes_written", - "duplicate_fetch_bytes_recv", - "duplicate_fetch_message_recv", - "duplicate_flood_bytes_recv", - "duplicate_flood_message_recv", - "id", - "messages_read", - "messages_written", - "seconds_connected", - "unique_fetch_bytes_recv", - "unique_fetch_message_recv", - "unique_flood_bytes_recv", - "unique_flood_message_recv", - "version_str" - ], - "properties": { - "bytes_read": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "bytes_written": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "duplicate_fetch_bytes_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "duplicate_fetch_message_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "duplicate_flood_bytes_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "duplicate_flood_message_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "id": { - "$ref": "#/definitions/NodeId" - }, - "messages_read": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "messages_written": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "seconds_connected": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "unique_fetch_bytes_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "unique_fetch_message_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "unique_flood_bytes_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "unique_flood_message_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "version_str": { - "$ref": "#/definitions/StringM<100>" - } - } - }, - "StringM<100>": { - "type": "string", - "maxLength": 100 - } - } -} \ No newline at end of file diff --git a/xdr-json/next/TopologyResponseBodyV1.json b/xdr-json/next/TopologyResponseBodyV1.json deleted file mode 100644 index 4ef33ade..00000000 --- a/xdr-json/next/TopologyResponseBodyV1.json +++ /dev/null @@ -1,153 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "title": "TopologyResponseBodyV1", - "description": "TopologyResponseBodyV1 is an XDR Struct defines as:\n\n```text struct TopologyResponseBodyV1 { PeerStatList inboundPeers; PeerStatList outboundPeers;\n\nuint32 totalInboundPeerCount; uint32 totalOutboundPeerCount;\n\nuint32 maxInboundPeerCount; uint32 maxOutboundPeerCount; }; ```", - "type": "object", - "required": [ - "inbound_peers", - "max_inbound_peer_count", - "max_outbound_peer_count", - "outbound_peers", - "total_inbound_peer_count", - "total_outbound_peer_count" - ], - "properties": { - "inbound_peers": { - "$ref": "#/definitions/PeerStatList" - }, - "max_inbound_peer_count": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "max_outbound_peer_count": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "outbound_peers": { - "$ref": "#/definitions/PeerStatList" - }, - "total_inbound_peer_count": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "total_outbound_peer_count": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - } - }, - "definitions": { - "NodeId": { - "type": "string" - }, - "PeerStatList": { - "description": "PeerStatList is an XDR Typedef defines as:\n\n```text typedef PeerStats PeerStatList<25>; ```", - "type": "array", - "items": { - "$ref": "#/definitions/PeerStats" - }, - "maxItems": 25 - }, - "PeerStats": { - "description": "PeerStats is an XDR Struct defines as:\n\n```text struct PeerStats { NodeID id; string versionStr<100>; uint64 messagesRead; uint64 messagesWritten; uint64 bytesRead; uint64 bytesWritten; uint64 secondsConnected;\n\nuint64 uniqueFloodBytesRecv; uint64 duplicateFloodBytesRecv; uint64 uniqueFetchBytesRecv; uint64 duplicateFetchBytesRecv;\n\nuint64 uniqueFloodMessageRecv; uint64 duplicateFloodMessageRecv; uint64 uniqueFetchMessageRecv; uint64 duplicateFetchMessageRecv; }; ```", - "type": "object", - "required": [ - "bytes_read", - "bytes_written", - "duplicate_fetch_bytes_recv", - "duplicate_fetch_message_recv", - "duplicate_flood_bytes_recv", - "duplicate_flood_message_recv", - "id", - "messages_read", - "messages_written", - "seconds_connected", - "unique_fetch_bytes_recv", - "unique_fetch_message_recv", - "unique_flood_bytes_recv", - "unique_flood_message_recv", - "version_str" - ], - "properties": { - "bytes_read": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "bytes_written": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "duplicate_fetch_bytes_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "duplicate_fetch_message_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "duplicate_flood_bytes_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "duplicate_flood_message_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "id": { - "$ref": "#/definitions/NodeId" - }, - "messages_read": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "messages_written": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "seconds_connected": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "unique_fetch_bytes_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "unique_fetch_message_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "unique_flood_bytes_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "unique_flood_message_recv": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "version_str": { - "$ref": "#/definitions/StringM<100>" - } - } - }, - "StringM<100>": { - "type": "string", - "maxLength": 100 - } - } -} \ No newline at end of file diff --git a/xdr-json/next/Transaction.json b/xdr-json/next/Transaction.json index a700f2a8..1ebb8f9f 100644 --- a/xdr-json/next/Transaction.json +++ b/xdr-json/next/Transaction.json @@ -1799,12 +1799,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/TransactionEnvelope.json b/xdr-json/next/TransactionEnvelope.json index 14071afc..5eb44e2f 100644 --- a/xdr-json/next/TransactionEnvelope.json +++ b/xdr-json/next/TransactionEnvelope.json @@ -1887,12 +1887,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/TransactionExt.json b/xdr-json/next/TransactionExt.json index b4b62b6b..3c1a9946 100644 --- a/xdr-json/next/TransactionExt.json +++ b/xdr-json/next/TransactionExt.json @@ -479,12 +479,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "ScAddress": { "type": "string" diff --git a/xdr-json/next/TransactionHistoryEntry.json b/xdr-json/next/TransactionHistoryEntry.json index a2ab711a..acafa66b 100644 --- a/xdr-json/next/TransactionHistoryEntry.json +++ b/xdr-json/next/TransactionHistoryEntry.json @@ -1924,12 +1924,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/TransactionHistoryEntryExt.json b/xdr-json/next/TransactionHistoryEntryExt.json index 9dc265ca..df5ab27f 100644 --- a/xdr-json/next/TransactionHistoryEntryExt.json +++ b/xdr-json/next/TransactionHistoryEntryExt.json @@ -1925,12 +1925,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/TransactionHistoryResultEntry.json b/xdr-json/next/TransactionHistoryResultEntry.json index 48c4466c..29686385 100644 --- a/xdr-json/next/TransactionHistoryResultEntry.json +++ b/xdr-json/next/TransactionHistoryResultEntry.json @@ -1306,12 +1306,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/TransactionMeta.json b/xdr-json/next/TransactionMeta.json index ca9c8438..8ebcf7dc 100644 --- a/xdr-json/next/TransactionMeta.json +++ b/xdr-json/next/TransactionMeta.json @@ -2199,12 +2199,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/TransactionMetaV1.json b/xdr-json/next/TransactionMetaV1.json index 776c5841..14b4d382 100644 --- a/xdr-json/next/TransactionMetaV1.json +++ b/xdr-json/next/TransactionMetaV1.json @@ -2026,12 +2026,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/TransactionMetaV2.json b/xdr-json/next/TransactionMetaV2.json index 181aa47e..a7f35803 100644 --- a/xdr-json/next/TransactionMetaV2.json +++ b/xdr-json/next/TransactionMetaV2.json @@ -2030,12 +2030,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/TransactionMetaV3.json b/xdr-json/next/TransactionMetaV3.json index 7941e616..88f2d1b0 100644 --- a/xdr-json/next/TransactionMetaV3.json +++ b/xdr-json/next/TransactionMetaV3.json @@ -2136,12 +2136,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/TransactionPhase.json b/xdr-json/next/TransactionPhase.json index fd203b5e..0ecf8e1b 100644 --- a/xdr-json/next/TransactionPhase.json +++ b/xdr-json/next/TransactionPhase.json @@ -1918,12 +1918,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/TransactionResult.json b/xdr-json/next/TransactionResult.json index 74800ace..a920d505 100644 --- a/xdr-json/next/TransactionResult.json +++ b/xdr-json/next/TransactionResult.json @@ -1305,12 +1305,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/TransactionResultMeta.json b/xdr-json/next/TransactionResultMeta.json index 69fb2847..0b665f10 100644 --- a/xdr-json/next/TransactionResultMeta.json +++ b/xdr-json/next/TransactionResultMeta.json @@ -3303,12 +3303,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/TransactionResultPair.json b/xdr-json/next/TransactionResultPair.json index 9d903cb2..49156383 100644 --- a/xdr-json/next/TransactionResultPair.json +++ b/xdr-json/next/TransactionResultPair.json @@ -1304,12 +1304,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/TransactionResultResult.json b/xdr-json/next/TransactionResultResult.json index 9bd4a43e..673975dc 100644 --- a/xdr-json/next/TransactionResultResult.json +++ b/xdr-json/next/TransactionResultResult.json @@ -1365,12 +1365,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/TransactionResultSet.json b/xdr-json/next/TransactionResultSet.json index 46c78e81..b769a8c4 100644 --- a/xdr-json/next/TransactionResultSet.json +++ b/xdr-json/next/TransactionResultSet.json @@ -1300,12 +1300,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/TransactionSet.json b/xdr-json/next/TransactionSet.json index 1e02071a..f3ffde88 100644 --- a/xdr-json/next/TransactionSet.json +++ b/xdr-json/next/TransactionSet.json @@ -1870,12 +1870,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/TransactionSetV1.json b/xdr-json/next/TransactionSetV1.json index d1f2ed43..85a05997 100644 --- a/xdr-json/next/TransactionSetV1.json +++ b/xdr-json/next/TransactionSetV1.json @@ -1909,12 +1909,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/TransactionSignaturePayload.json b/xdr-json/next/TransactionSignaturePayload.json index 4530ad7a..3abee884 100644 --- a/xdr-json/next/TransactionSignaturePayload.json +++ b/xdr-json/next/TransactionSignaturePayload.json @@ -1846,12 +1846,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/TransactionSignaturePayloadTaggedTransaction.json b/xdr-json/next/TransactionSignaturePayloadTaggedTransaction.json index c735d7bf..b4388a12 100644 --- a/xdr-json/next/TransactionSignaturePayloadTaggedTransaction.json +++ b/xdr-json/next/TransactionSignaturePayloadTaggedTransaction.json @@ -1855,12 +1855,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/TransactionV0.json b/xdr-json/next/TransactionV0.json index 4344598e..df92b678 100644 --- a/xdr-json/next/TransactionV0.json +++ b/xdr-json/next/TransactionV0.json @@ -1765,12 +1765,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/TransactionV0Envelope.json b/xdr-json/next/TransactionV0Envelope.json index 47f562e7..4e848ac4 100644 --- a/xdr-json/next/TransactionV0Envelope.json +++ b/xdr-json/next/TransactionV0Envelope.json @@ -1753,12 +1753,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", diff --git a/xdr-json/next/TransactionV1Envelope.json b/xdr-json/next/TransactionV1Envelope.json index c161f7fc..e3539f12 100644 --- a/xdr-json/next/TransactionV1Envelope.json +++ b/xdr-json/next/TransactionV1Envelope.json @@ -1797,12 +1797,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/TrustLineAsset.json b/xdr-json/next/TrustLineAsset.json index c9ac8bde..b13f6a77 100644 --- a/xdr-json/next/TrustLineAsset.json +++ b/xdr-json/next/TrustLineAsset.json @@ -89,12 +89,7 @@ "type": "string" }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" } } } \ No newline at end of file diff --git a/xdr-json/next/TrustLineEntry.json b/xdr-json/next/TrustLineEntry.json index 6af5e201..4ffcb889 100644 --- a/xdr-json/next/TrustLineEntry.json +++ b/xdr-json/next/TrustLineEntry.json @@ -96,12 +96,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "TrustLineAsset": { "description": "TrustLineAsset is an XDR Union defines as:\n\n```text union TrustLineAsset switch (AssetType type) { case ASSET_TYPE_NATIVE: // Not credit void;\n\ncase ASSET_TYPE_CREDIT_ALPHANUM4: AlphaNum4 alphaNum4;\n\ncase ASSET_TYPE_CREDIT_ALPHANUM12: AlphaNum12 alphaNum12;\n\ncase ASSET_TYPE_POOL_SHARE: PoolID liquidityPoolID;\n\n// add other asset types here in the future }; ```", diff --git a/xdr-json/next/TxSetComponent.json b/xdr-json/next/TxSetComponent.json index 1ce2fe12..05422948 100644 --- a/xdr-json/next/TxSetComponent.json +++ b/xdr-json/next/TxSetComponent.json @@ -1863,12 +1863,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/TxSetComponentTxsMaybeDiscountedFee.json b/xdr-json/next/TxSetComponentTxsMaybeDiscountedFee.json index 1f08ef90..3df45cbd 100644 --- a/xdr-json/next/TxSetComponentTxsMaybeDiscountedFee.json +++ b/xdr-json/next/TxSetComponentTxsMaybeDiscountedFee.json @@ -1869,12 +1869,7 @@ } }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Preconditions": { "description": "Preconditions is an XDR Union defines as:\n\n```text union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; }; ```", diff --git a/xdr-json/next/UpgradeEntryMeta.json b/xdr-json/next/UpgradeEntryMeta.json index 6954cba7..1dce283e 100644 --- a/xdr-json/next/UpgradeEntryMeta.json +++ b/xdr-json/next/UpgradeEntryMeta.json @@ -2135,12 +2135,7 @@ ] }, "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "type": "string", - "maxLength": 64, - "minLength": 64, - "contentEncoding": "hex", - "contentMediaType": "application/binary" + "type": "string" }, "Price": { "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```",