From df64c9232b84f97fd6f968315fa04c8db48b0f2e Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Mon, 4 Mar 2024 21:39:48 +1000 Subject: [PATCH 01/20] Add schemars::JsonSchema derives to all types --- Cargo.lock | 42 ++ Cargo.toml | 3 +- Makefile | 2 +- src/curr/generated.rs | 911 +++++++++++++++++++++++------------------- src/next/generated.rs | 911 +++++++++++++++++++++++------------------- 5 files changed, 1027 insertions(+), 842 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 29685c68..e6675654 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -244,6 +244,12 @@ dependencies = [ "syn 1.0.98", ] +[[package]] +name = "dyn-clone" +version = "1.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d6ef0072f8a535281e4876be788938b528e9a1d43900b82c2569af7da799125" + [[package]] name = "escape-bytes" version = "0.1.1" @@ -415,6 +421,30 @@ version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4501abdff3ae82a1c1b477a17252eb69cee9e66eb915c1abaa4f44d873df9f09" +[[package]] +name = "schemars" +version = "0.8.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45a28f4c49489add4ce10783f7911893516f15afe45d015608d41faca6bc4d29" +dependencies = [ + "dyn-clone", + "schemars_derive", + "serde", + "serde_json", +] + +[[package]] +name = "schemars_derive" +version = "0.8.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c767fd6fa65d9ccf9cf026122c1b555f2ef9a4f0cea69da4d7dbc3e258d30967" +dependencies = [ + "proc-macro2", + "quote", + "serde_derive_internals", + "syn 1.0.98", +] + [[package]] name = "scratch" version = "1.0.2" @@ -441,6 +471,17 @@ dependencies = [ "syn 2.0.15", ] +[[package]] +name = "serde_derive_internals" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85bf8229e7920a9f636479437026331ce11aa132b4dde37d121944a44d6e5f3c" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.98", +] + [[package]] name = "serde_json" version = "1.0.89" @@ -501,6 +542,7 @@ dependencies = [ "crate-git-revision", "escape-bytes", "hex", + "schemars", "serde", "serde_json", "serde_with", diff --git a/Cargo.toml b/Cargo.toml index 08501c81..e29ae380 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,6 +29,7 @@ arbitrary = {version = "1.1.3", features = ["derive"], optional = true} clap = { version = "4.2.4", default-features = false, features = ["std", "derive", "usage", "help"], optional = true } serde_json = { version = "1.0.89", optional = true } thiserror = { version = "1.0.37", optional = true } +schemars = { version = "0.8.16", optional = true } [dev_dependencies] serde_json = "1.0.89" @@ -42,7 +43,7 @@ next = [] # Features dependent on optional dependencies. base64 = ["std", "dep:base64"] -serde = ["alloc", "dep:serde", "dep:serde_with", "hex/serde"] +serde = ["alloc", "dep:serde", "dep:serde_with", "hex/serde", "dep:schemars"] serde_json = ["std", "serde", "dep:serde_json"] arbitrary = ["std", "dep:arbitrary"] hex = [] diff --git a/Makefile b/Makefile index 2e14d4f8..56404a5e 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ CARGO_HACK_ARGS=--feature-powerset --exclude-features default --group-features b CARGO_DOC_ARGS?=--open -XDRGEN_VERSION=e2cac557162d99b12ae73b846cf3d5bfe16636de +XDRGEN_VERSION=8cb548165a86ef3de504d68159948f852ad7e988 XDRGEN_TYPES_CUSTOM_STR_IMPL_CURR=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12 XDRGEN_TYPES_CUSTOM_STR_IMPL_NEXT=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12 diff --git a/src/curr/generated.rs b/src/curr/generated.rs index 8bde0fbc..61fc873a 100644 --- a/src/curr/generated.rs +++ b/src/curr/generated.rs @@ -931,7 +931,10 @@ impl WriteXdr for [T; N] { #[cfg(feature = "alloc")] #[derive(Debug, Clone, Hash, PartialEq, Eq, PartialOrd, Ord)] -#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] +#[cfg_attr( + feature = "serde", + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema) +)] #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] pub struct VecM(Vec); @@ -1337,7 +1340,11 @@ impl WriteXdr for VecM { #[derive(Clone, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( feature = "serde", - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] pub struct BytesM(Vec); @@ -1718,7 +1725,11 @@ impl WriteXdr for BytesM { #[derive(Clone, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( feature = "serde", - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] pub struct StringM(Vec); @@ -2088,7 +2099,7 @@ impl WriteXdr for StringM { #[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct Frame(pub T) @@ -2755,7 +2766,7 @@ mod test { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -2863,7 +2874,7 @@ impl AsRef<[u8]> for Value { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScpBallot { @@ -2911,7 +2922,7 @@ impl WriteXdr for ScpBallot { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -3027,7 +3038,7 @@ impl WriteXdr for ScpStatementType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScpNomination { @@ -3079,7 +3090,7 @@ impl WriteXdr for ScpNomination { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScpStatementPrepare { @@ -3139,7 +3150,7 @@ impl WriteXdr for ScpStatementPrepare { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScpStatementConfirm { @@ -3194,7 +3205,7 @@ impl WriteXdr for ScpStatementConfirm { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScpStatementExternalize { @@ -3269,7 +3280,7 @@ impl WriteXdr for ScpStatementExternalize { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -3423,7 +3434,7 @@ impl WriteXdr for ScpStatementPledges { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScpStatement { @@ -3471,7 +3482,7 @@ impl WriteXdr for ScpStatement { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScpEnvelope { @@ -3517,7 +3528,7 @@ impl WriteXdr for ScpEnvelope { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScpQuorumSet { @@ -3565,7 +3576,7 @@ impl WriteXdr for ScpQuorumSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ConfigSettingContractExecutionLanesV0 { @@ -3615,7 +3626,7 @@ impl WriteXdr for ConfigSettingContractExecutionLanesV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ConfigSettingContractComputeV0 { @@ -3696,7 +3707,7 @@ impl WriteXdr for ConfigSettingContractComputeV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ConfigSettingContractLedgerCostV0 { @@ -3779,7 +3790,7 @@ impl WriteXdr for ConfigSettingContractLedgerCostV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ConfigSettingContractHistoricalDataV0 { @@ -3823,7 +3834,7 @@ impl WriteXdr for ConfigSettingContractHistoricalDataV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ConfigSettingContractEventsV0 { @@ -3873,7 +3884,7 @@ impl WriteXdr for ConfigSettingContractEventsV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ConfigSettingContractBandwidthV0 { @@ -3969,7 +3980,7 @@ impl WriteXdr for ConfigSettingContractBandwidthV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -4186,7 +4197,7 @@ impl WriteXdr for ContractCostType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ContractCostParamEntry { @@ -4253,7 +4264,7 @@ impl WriteXdr for ContractCostParamEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct StateArchivalSettings { @@ -4322,7 +4333,7 @@ impl WriteXdr for StateArchivalSettings { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct EvictionIterator { @@ -4375,7 +4386,7 @@ pub const CONTRACT_COST_COUNT_LIMIT: u64 = 1024; #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -4496,7 +4507,7 @@ impl AsRef<[ContractCostParamEntry]> for ContractCostParams { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -4693,7 +4704,7 @@ impl WriteXdr for ConfigSettingId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -4919,7 +4930,7 @@ impl WriteXdr for ConfigSettingEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -5021,7 +5032,7 @@ impl WriteXdr for ScEnvMetaKind { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -5122,7 +5133,7 @@ impl WriteXdr for ScEnvMetaEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScMetaV0 { @@ -5167,7 +5178,7 @@ impl WriteXdr for ScMetaV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -5269,7 +5280,7 @@ impl WriteXdr for ScMetaKind { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -5406,7 +5417,7 @@ pub const SC_SPEC_DOC_LIMIT: u64 = 1024; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -5630,7 +5641,7 @@ impl WriteXdr for ScSpecType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecTypeOption { @@ -5672,7 +5683,7 @@ impl WriteXdr for ScSpecTypeOption { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecTypeResult { @@ -5716,7 +5727,7 @@ impl WriteXdr for ScSpecTypeResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecTypeVec { @@ -5758,7 +5769,7 @@ impl WriteXdr for ScSpecTypeVec { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecTypeMap { @@ -5802,7 +5813,7 @@ impl WriteXdr for ScSpecTypeMap { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecTypeTuple { @@ -5843,7 +5854,7 @@ impl WriteXdr for ScSpecTypeTuple { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecTypeBytesN { @@ -5884,7 +5895,7 @@ impl WriteXdr for ScSpecTypeBytesN { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecTypeUdt { @@ -5958,7 +5969,7 @@ impl WriteXdr for ScSpecTypeUdt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -6230,7 +6241,7 @@ impl WriteXdr for ScSpecTypeDef { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecUdtStructFieldV0 { @@ -6280,7 +6291,7 @@ impl WriteXdr for ScSpecUdtStructFieldV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecUdtStructV0 { @@ -6331,7 +6342,7 @@ impl WriteXdr for ScSpecUdtStructV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecUdtUnionCaseVoidV0 { @@ -6377,7 +6388,7 @@ impl WriteXdr for ScSpecUdtUnionCaseVoidV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecUdtUnionCaseTupleV0 { @@ -6426,7 +6437,7 @@ impl WriteXdr for ScSpecUdtUnionCaseTupleV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -6536,7 +6547,7 @@ impl WriteXdr for ScSpecUdtUnionCaseV0Kind { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -6649,7 +6660,7 @@ impl WriteXdr for ScSpecUdtUnionCaseV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecUdtUnionV0 { @@ -6701,7 +6712,7 @@ impl WriteXdr for ScSpecUdtUnionV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecUdtEnumCaseV0 { @@ -6751,7 +6762,7 @@ impl WriteXdr for ScSpecUdtEnumCaseV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecUdtEnumV0 { @@ -6803,7 +6814,7 @@ impl WriteXdr for ScSpecUdtEnumV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecUdtErrorEnumCaseV0 { @@ -6853,7 +6864,7 @@ impl WriteXdr for ScSpecUdtErrorEnumCaseV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecUdtErrorEnumV0 { @@ -6905,7 +6916,7 @@ impl WriteXdr for ScSpecUdtErrorEnumV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecFunctionInputV0 { @@ -6955,7 +6966,7 @@ impl WriteXdr for ScSpecFunctionInputV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecFunctionV0 { @@ -7010,7 +7021,7 @@ impl WriteXdr for ScSpecFunctionV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -7144,7 +7155,7 @@ impl WriteXdr for ScSpecEntryKind { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -7327,7 +7338,7 @@ impl WriteXdr for ScSpecEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -7546,7 +7557,7 @@ impl WriteXdr for ScValType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -7697,7 +7708,7 @@ impl WriteXdr for ScErrorType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -7858,7 +7869,7 @@ impl WriteXdr for ScErrorCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -8015,7 +8026,7 @@ impl WriteXdr for ScError { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct UInt128Parts { @@ -8059,7 +8070,7 @@ impl WriteXdr for UInt128Parts { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct Int128Parts { @@ -8105,7 +8116,7 @@ impl WriteXdr for Int128Parts { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct UInt256Parts { @@ -8157,7 +8168,7 @@ impl WriteXdr for UInt256Parts { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct Int256Parts { @@ -8209,7 +8220,7 @@ impl WriteXdr for Int256Parts { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -8319,7 +8330,7 @@ impl WriteXdr for ContractExecutableType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -8427,7 +8438,7 @@ impl WriteXdr for ContractExecutable { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -8534,7 +8545,11 @@ impl WriteXdr for ScAddressType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] #[allow(clippy::large_enum_variant)] pub enum ScAddress { @@ -8642,7 +8657,7 @@ pub const SCSYMBOL_LIMIT: u64 = 32; #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -8747,7 +8762,7 @@ impl AsRef<[ScVal]> for ScVec { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -8852,7 +8867,7 @@ impl AsRef<[ScMapEntry]> for ScMap { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -8957,7 +8972,7 @@ impl AsRef<[u8]> for ScBytes { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -9062,7 +9077,7 @@ impl AsRef<[u8]> for ScString { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -9168,7 +9183,7 @@ impl AsRef<[u8]> for ScSymbol { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScNonceKey { @@ -9209,7 +9224,7 @@ impl WriteXdr for ScNonceKey { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScContractInstance { @@ -9311,7 +9326,7 @@ impl WriteXdr for ScContractInstance { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -9563,7 +9578,7 @@ impl WriteXdr for ScVal { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScMapEntry { @@ -9611,7 +9626,7 @@ impl WriteXdr for ScMapEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -9716,7 +9731,7 @@ impl WriteXdr for StoredTransactionSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct StoredDebugTransactionSet { @@ -9765,7 +9780,7 @@ impl WriteXdr for StoredDebugTransactionSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct PersistedScpStateV0 { @@ -9814,7 +9829,7 @@ impl WriteXdr for PersistedScpStateV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct PersistedScpStateV1 { @@ -9862,7 +9877,7 @@ impl WriteXdr for PersistedScpStateV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -9962,7 +9977,11 @@ impl WriteXdr for PersistedScpState { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] pub struct Thresholds(pub [u8; 4]); @@ -10081,7 +10100,7 @@ impl AsRef<[u8]> for Thresholds { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -10186,7 +10205,7 @@ impl AsRef<[u8]> for String32 { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -10290,7 +10309,7 @@ impl AsRef<[u8]> for String64 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -10346,7 +10365,7 @@ impl WriteXdr for SequenceNumber { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -10450,7 +10469,7 @@ impl AsRef<[u8]> for DataValue { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -10505,7 +10524,11 @@ impl WriteXdr for PoolId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] pub struct AssetCode4(pub [u8; 4]); @@ -10606,7 +10629,11 @@ impl AsRef<[u8]> for AssetCode4 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] pub struct AssetCode12(pub [u8; 12]); @@ -10714,7 +10741,7 @@ impl AsRef<[u8]> for AssetCode12 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -10836,7 +10863,11 @@ impl WriteXdr for AssetType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] #[allow(clippy::large_enum_variant)] pub enum AssetCode { @@ -10939,7 +10970,7 @@ impl WriteXdr for AssetCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct AlphaNum4 { @@ -10984,7 +11015,7 @@ impl WriteXdr for AlphaNum4 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct AlphaNum12 { @@ -11038,7 +11069,7 @@ impl WriteXdr for AlphaNum12 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -11151,7 +11182,7 @@ impl WriteXdr for Asset { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct Price { @@ -11196,7 +11227,7 @@ impl WriteXdr for Price { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct Liabilities { @@ -11244,7 +11275,7 @@ impl WriteXdr for Liabilities { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -11368,7 +11399,7 @@ impl WriteXdr for ThresholdIndexes { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -11518,7 +11549,7 @@ impl WriteXdr for LedgerEntryType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct Signer { @@ -11576,7 +11607,7 @@ impl WriteXdr for Signer { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -11716,7 +11747,7 @@ pub const MAX_SIGNERS: u64 = 20; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -11782,7 +11813,7 @@ impl WriteXdr for SponsorshipDescriptor { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct AccountEntryExtensionV3 { @@ -11833,7 +11864,7 @@ impl WriteXdr for AccountEntryExtensionV3 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -11947,7 +11978,7 @@ impl WriteXdr for AccountEntryExtensionV2Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct AccountEntryExtensionV2 { @@ -12001,7 +12032,7 @@ impl WriteXdr for AccountEntryExtensionV2 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -12113,7 +12144,7 @@ impl WriteXdr for AccountEntryExtensionV1Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct AccountEntryExtensionV1 { @@ -12161,7 +12192,7 @@ impl WriteXdr for AccountEntryExtensionV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -12288,7 +12319,7 @@ impl WriteXdr for AccountEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct AccountEntry { @@ -12364,7 +12395,7 @@ impl WriteXdr for AccountEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -12503,7 +12534,7 @@ pub const MASK_TRUSTLINE_FLAGS_V17: u64 = 7; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -12616,7 +12647,7 @@ impl WriteXdr for LiquidityPoolType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -12737,7 +12768,7 @@ impl WriteXdr for TrustLineAsset { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -12842,7 +12873,7 @@ impl WriteXdr for TrustLineEntryExtensionV2Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TrustLineEntryExtensionV2 { @@ -12890,7 +12921,7 @@ impl WriteXdr for TrustLineEntryExtensionV2 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -13002,7 +13033,7 @@ impl WriteXdr for TrustLineEntryV1Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TrustLineEntryV1 { @@ -13062,7 +13093,7 @@ impl WriteXdr for TrustLineEntryV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -13193,7 +13224,7 @@ impl WriteXdr for TrustLineEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TrustLineEntry { @@ -13252,7 +13283,7 @@ impl WriteXdr for TrustLineEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -13362,7 +13393,7 @@ pub const MASK_OFFERENTRY_FLAGS: u64 = 1; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -13480,7 +13511,7 @@ impl WriteXdr for OfferEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct OfferEntry { @@ -13544,7 +13575,7 @@ impl WriteXdr for OfferEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -13652,7 +13683,7 @@ impl WriteXdr for DataEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct DataEntry { @@ -13708,7 +13739,7 @@ impl WriteXdr for DataEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -13850,7 +13881,7 @@ impl WriteXdr for ClaimPredicateType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -13992,7 +14023,7 @@ impl WriteXdr for ClaimPredicate { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -14093,7 +14124,7 @@ impl WriteXdr for ClaimantType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ClaimantV0 { @@ -14143,7 +14174,7 @@ impl WriteXdr for ClaimantV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -14242,7 +14273,7 @@ impl WriteXdr for Claimant { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -14345,7 +14376,7 @@ impl WriteXdr for ClaimableBalanceIdType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -14449,7 +14480,7 @@ impl WriteXdr for ClaimableBalanceId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -14560,7 +14591,7 @@ pub const MASK_CLAIMABLE_BALANCE_FLAGS: u64 = 0x1; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -14665,7 +14696,7 @@ impl WriteXdr for ClaimableBalanceEntryExtensionV1Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ClaimableBalanceEntryExtensionV1 { @@ -14713,7 +14744,7 @@ impl WriteXdr for ClaimableBalanceEntryExtensionV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -14836,7 +14867,7 @@ impl WriteXdr for ClaimableBalanceEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ClaimableBalanceEntry { @@ -14891,7 +14922,7 @@ impl WriteXdr for ClaimableBalanceEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LiquidityPoolConstantProductParameters { @@ -14944,7 +14975,7 @@ impl WriteXdr for LiquidityPoolConstantProductParameters { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LiquidityPoolEntryConstantProduct { @@ -15008,7 +15039,7 @@ impl WriteXdr for LiquidityPoolEntryConstantProduct { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -15128,7 +15159,7 @@ impl WriteXdr for LiquidityPoolEntryBody { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LiquidityPoolEntry { @@ -15173,7 +15204,7 @@ impl WriteXdr for LiquidityPoolEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -15283,7 +15314,7 @@ impl WriteXdr for ContractDataDurability { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ContractDataEntry { @@ -15338,7 +15369,7 @@ impl WriteXdr for ContractDataEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ContractCodeEntry { @@ -15386,7 +15417,7 @@ impl WriteXdr for ContractCodeEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TtlEntry { @@ -15432,7 +15463,7 @@ impl WriteXdr for TtlEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -15537,7 +15568,7 @@ impl WriteXdr for LedgerEntryExtensionV1Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerEntryExtensionV1 { @@ -15601,7 +15632,7 @@ impl WriteXdr for LedgerEntryExtensionV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -15780,7 +15811,7 @@ impl WriteXdr for LedgerEntryData { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -15918,7 +15949,7 @@ impl WriteXdr for LedgerEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerEntry { @@ -15965,7 +15996,7 @@ impl WriteXdr for LedgerEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerKeyAccount { @@ -16007,7 +16038,7 @@ impl WriteXdr for LedgerKeyAccount { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerKeyTrustLine { @@ -16052,7 +16083,7 @@ impl WriteXdr for LedgerKeyTrustLine { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerKeyOffer { @@ -16097,7 +16128,7 @@ impl WriteXdr for LedgerKeyOffer { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerKeyData { @@ -16141,7 +16172,7 @@ impl WriteXdr for LedgerKeyData { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerKeyClaimableBalance { @@ -16182,7 +16213,7 @@ impl WriteXdr for LedgerKeyClaimableBalance { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerKeyLiquidityPool { @@ -16225,7 +16256,7 @@ impl WriteXdr for LedgerKeyLiquidityPool { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerKeyContractData { @@ -16272,7 +16303,7 @@ impl WriteXdr for LedgerKeyContractData { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerKeyContractCode { @@ -16313,7 +16344,7 @@ impl WriteXdr for LedgerKeyContractCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerKeyConfigSetting { @@ -16355,7 +16386,7 @@ impl WriteXdr for LedgerKeyConfigSetting { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerKeyTtl { @@ -16457,7 +16488,7 @@ impl WriteXdr for LedgerKeyTtl { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -16642,7 +16673,7 @@ impl WriteXdr for LedgerKey { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -16789,7 +16820,7 @@ impl WriteXdr for EnvelopeType { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -16898,7 +16929,7 @@ impl AsRef<[u8]> for UpgradeType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -17002,7 +17033,7 @@ impl WriteXdr for StellarValueType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerCloseValueSignature { @@ -17050,7 +17081,7 @@ impl WriteXdr for LedgerCloseValueSignature { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -17171,7 +17202,7 @@ impl WriteXdr for StellarValueExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct StellarValue { @@ -17232,7 +17263,7 @@ pub const MASK_LEDGER_HEADER_FLAGS: u64 = 0x7; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -17344,7 +17375,7 @@ impl WriteXdr for LedgerHeaderFlags { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -17449,7 +17480,7 @@ impl WriteXdr for LedgerHeaderExtensionV1Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerHeaderExtensionV1 { @@ -17497,7 +17528,7 @@ impl WriteXdr for LedgerHeaderExtensionV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -17635,7 +17666,7 @@ impl WriteXdr for LedgerHeaderExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerHeader { @@ -17725,7 +17756,7 @@ impl WriteXdr for LedgerHeader { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -17859,7 +17890,7 @@ impl WriteXdr for LedgerUpgradeType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ConfigUpgradeSetKey { @@ -17920,7 +17951,7 @@ impl WriteXdr for ConfigUpgradeSetKey { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -18065,7 +18096,7 @@ impl WriteXdr for LedgerUpgrade { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ConfigUpgradeSet { @@ -18112,7 +18143,7 @@ impl WriteXdr for ConfigUpgradeSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -18229,7 +18260,7 @@ impl WriteXdr for BucketEntryType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -18336,7 +18367,7 @@ impl WriteXdr for BucketMetadataExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct BucketMetadata { @@ -18388,7 +18419,7 @@ impl WriteXdr for BucketMetadata { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -18510,7 +18541,7 @@ impl WriteXdr for BucketEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -18612,7 +18643,7 @@ impl WriteXdr for TxSetComponentType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TxSetComponentTxsMaybeDiscountedFee { @@ -18662,7 +18693,7 @@ impl WriteXdr for TxSetComponentTxsMaybeDiscountedFee { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -18769,7 +18800,7 @@ impl WriteXdr for TxSetComponent { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -18868,7 +18899,7 @@ impl WriteXdr for TransactionPhase { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionSet { @@ -18913,7 +18944,7 @@ impl WriteXdr for TransactionSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionSetV1 { @@ -18960,7 +18991,7 @@ impl WriteXdr for TransactionSetV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -19059,7 +19090,7 @@ impl WriteXdr for GeneralizedTransactionSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionResultPair { @@ -19103,7 +19134,7 @@ impl WriteXdr for TransactionResultPair { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionResultSet { @@ -19148,7 +19179,7 @@ impl WriteXdr for TransactionResultSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -19262,7 +19293,7 @@ impl WriteXdr for TransactionHistoryEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionHistoryEntry { @@ -19311,7 +19342,7 @@ impl WriteXdr for TransactionHistoryEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -19418,7 +19449,7 @@ impl WriteXdr for TransactionHistoryResultEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionHistoryResultEntry { @@ -19467,7 +19498,7 @@ impl WriteXdr for TransactionHistoryResultEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -19574,7 +19605,7 @@ impl WriteXdr for LedgerHeaderHistoryEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerHeaderHistoryEntry { @@ -19622,7 +19653,7 @@ impl WriteXdr for LedgerHeaderHistoryEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerScpMessages { @@ -19667,7 +19698,7 @@ impl WriteXdr for LedgerScpMessages { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScpHistoryEntryV0 { @@ -19713,7 +19744,7 @@ impl WriteXdr for ScpHistoryEntryV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -19815,7 +19846,7 @@ impl WriteXdr for ScpHistoryEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -19937,7 +19968,7 @@ impl WriteXdr for LedgerEntryChangeType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -20053,7 +20084,7 @@ impl WriteXdr for LedgerEntryChange { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -20160,7 +20191,7 @@ impl AsRef<[LedgerEntryChange]> for LedgerEntryChanges { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct OperationMeta { @@ -20202,7 +20233,7 @@ impl WriteXdr for OperationMeta { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionMetaV1 { @@ -20250,7 +20281,7 @@ impl WriteXdr for TransactionMetaV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionMetaV2 { @@ -20300,7 +20331,7 @@ impl WriteXdr for TransactionMetaV2 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -20411,7 +20442,7 @@ impl WriteXdr for ContractEventType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ContractEventV0 { @@ -20461,7 +20492,7 @@ impl WriteXdr for ContractEventV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -20575,7 +20606,7 @@ impl WriteXdr for ContractEventBody { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ContractEvent { @@ -20626,7 +20657,7 @@ impl WriteXdr for ContractEvent { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct DiagnosticEvent { @@ -20679,7 +20710,7 @@ impl WriteXdr for DiagnosticEvent { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SorobanTransactionMeta { @@ -20737,7 +20768,7 @@ impl WriteXdr for SorobanTransactionMeta { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionMetaV3 { @@ -20791,7 +20822,7 @@ impl WriteXdr for TransactionMetaV3 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct InvokeHostFunctionSuccessPreImage { @@ -20843,7 +20874,7 @@ impl WriteXdr for InvokeHostFunctionSuccessPreImage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -20958,7 +20989,7 @@ impl WriteXdr for TransactionMeta { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionResultMeta { @@ -21006,7 +21037,7 @@ impl WriteXdr for TransactionResultMeta { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct UpgradeEntryMeta { @@ -21063,7 +21094,7 @@ impl WriteXdr for UpgradeEntryMeta { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerCloseMetaV0 { @@ -21144,7 +21175,7 @@ impl WriteXdr for LedgerCloseMetaV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerCloseMetaV1 { @@ -21213,7 +21244,7 @@ impl WriteXdr for LedgerCloseMetaV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -21321,7 +21352,7 @@ impl WriteXdr for LedgerCloseMeta { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -21440,7 +21471,7 @@ impl WriteXdr for ErrorCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SError { @@ -21484,7 +21515,7 @@ impl WriteXdr for SError { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SendMore { @@ -21526,7 +21557,7 @@ impl WriteXdr for SendMore { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SendMoreExtended { @@ -21572,7 +21603,7 @@ impl WriteXdr for SendMoreExtended { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct AuthCert { @@ -21627,7 +21658,7 @@ impl WriteXdr for AuthCert { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct Hello { @@ -21700,7 +21731,7 @@ pub const AUTH_MSG_FLAG_FLOW_CONTROL_BYTES_REQUESTED: u64 = 200; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct Auth { @@ -21743,7 +21774,7 @@ impl WriteXdr for Auth { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -21850,7 +21881,7 @@ impl WriteXdr for IpAddrType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -21962,7 +21993,7 @@ impl WriteXdr for PeerAddressIp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct PeerAddress { @@ -22039,7 +22070,7 @@ impl WriteXdr for PeerAddress { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -22239,7 +22270,7 @@ impl WriteXdr for MessageType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct DontHave { @@ -22284,7 +22315,7 @@ impl WriteXdr for DontHave { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -22386,7 +22417,7 @@ impl WriteXdr for SurveyMessageCommandType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -22494,7 +22525,7 @@ impl WriteXdr for SurveyMessageResponseType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SurveyRequestMessage { @@ -22548,7 +22579,7 @@ impl WriteXdr for SurveyRequestMessage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SignedSurveyRequestMessage { @@ -22590,7 +22621,7 @@ impl WriteXdr for SignedSurveyRequestMessage { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -22701,7 +22732,7 @@ impl AsRef<[u8]> for EncryptedBody { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SurveyResponseMessage { @@ -22755,7 +22786,7 @@ impl WriteXdr for SurveyResponseMessage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SignedSurveyResponseMessage { @@ -22815,7 +22846,7 @@ impl WriteXdr for SignedSurveyResponseMessage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct PeerStats { @@ -22896,7 +22927,7 @@ impl WriteXdr for PeerStats { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -23007,7 +23038,7 @@ impl AsRef<[PeerStats]> for PeerStatList { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TopologyResponseBodyV0 { @@ -23064,7 +23095,7 @@ impl WriteXdr for TopologyResponseBodyV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TopologyResponseBodyV1 { @@ -23124,7 +23155,7 @@ impl WriteXdr for TopologyResponseBodyV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -23235,7 +23266,7 @@ pub const TX_ADVERT_VECTOR_MAX_SIZE: u64 = 1000; #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -23342,7 +23373,7 @@ impl AsRef<[Hash]> for TxAdvertVector { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct FloodAdvert { @@ -23389,7 +23420,7 @@ pub const TX_DEMAND_VECTOR_MAX_SIZE: u64 = 1000; #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -23496,7 +23527,7 @@ impl AsRef<[Hash]> for TxDemandVector { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct FloodDemand { @@ -23584,7 +23615,7 @@ impl WriteXdr for FloodDemand { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -23829,7 +23860,7 @@ impl WriteXdr for StellarMessage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct AuthenticatedMessageV0 { @@ -23883,7 +23914,7 @@ impl WriteXdr for AuthenticatedMessageV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -23991,7 +24022,7 @@ pub const MAX_OPS_PER_TX: u64 = 100; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -24096,7 +24127,11 @@ impl WriteXdr for LiquidityPoolParameters { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] pub struct MuxedAccountMed25519 { pub id: u64, @@ -24147,7 +24182,11 @@ impl WriteXdr for MuxedAccountMed25519 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] #[allow(clippy::large_enum_variant)] pub enum MuxedAccount { @@ -24252,7 +24291,7 @@ impl WriteXdr for MuxedAccount { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct DecoratedSignature { @@ -24323,7 +24362,7 @@ impl WriteXdr for DecoratedSignature { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -24558,7 +24597,7 @@ impl WriteXdr for OperationType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct CreateAccountOp { @@ -24604,7 +24643,7 @@ impl WriteXdr for CreateAccountOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct PaymentOp { @@ -24660,7 +24699,7 @@ impl WriteXdr for PaymentOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct PathPaymentStrictReceiveOp { @@ -24725,7 +24764,7 @@ impl WriteXdr for PathPaymentStrictReceiveOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct PathPaymentStrictSendOp { @@ -24787,7 +24826,7 @@ impl WriteXdr for PathPaymentStrictSendOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ManageSellOfferOp { @@ -24847,7 +24886,7 @@ impl WriteXdr for ManageSellOfferOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ManageBuyOfferOp { @@ -24903,7 +24942,7 @@ impl WriteXdr for ManageBuyOfferOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct CreatePassiveSellOfferOp { @@ -24968,7 +25007,7 @@ impl WriteXdr for CreatePassiveSellOfferOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SetOptionsOp { @@ -25046,7 +25085,7 @@ impl WriteXdr for SetOptionsOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -25168,7 +25207,7 @@ impl WriteXdr for ChangeTrustAsset { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ChangeTrustOp { @@ -25216,7 +25255,7 @@ impl WriteXdr for ChangeTrustOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct AllowTrustOp { @@ -25264,7 +25303,7 @@ impl WriteXdr for AllowTrustOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ManageDataOp { @@ -25308,7 +25347,7 @@ impl WriteXdr for ManageDataOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct BumpSequenceOp { @@ -25351,7 +25390,7 @@ impl WriteXdr for BumpSequenceOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct CreateClaimableBalanceOp { @@ -25398,7 +25437,7 @@ impl WriteXdr for CreateClaimableBalanceOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ClaimClaimableBalanceOp { @@ -25439,7 +25478,7 @@ impl WriteXdr for ClaimClaimableBalanceOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct BeginSponsoringFutureReservesOp { @@ -25482,7 +25521,7 @@ impl WriteXdr for BeginSponsoringFutureReservesOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -25589,7 +25628,7 @@ impl WriteXdr for RevokeSponsorshipType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct RevokeSponsorshipOpSigner { @@ -25641,7 +25680,7 @@ impl WriteXdr for RevokeSponsorshipOpSigner { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -25751,7 +25790,7 @@ impl WriteXdr for RevokeSponsorshipOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ClawbackOp { @@ -25798,7 +25837,7 @@ impl WriteXdr for ClawbackOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ClawbackClaimableBalanceOp { @@ -25843,7 +25882,7 @@ impl WriteXdr for ClawbackClaimableBalanceOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SetTrustLineFlagsOp { @@ -25905,7 +25944,7 @@ pub const LIQUIDITY_POOL_FEE_V18: u64 = 30; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LiquidityPoolDepositOp { @@ -25961,7 +26000,7 @@ impl WriteXdr for LiquidityPoolDepositOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LiquidityPoolWithdrawOp { @@ -26014,7 +26053,7 @@ impl WriteXdr for LiquidityPoolWithdrawOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -26127,7 +26166,7 @@ impl WriteXdr for HostFunctionType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -26234,7 +26273,7 @@ impl WriteXdr for ContractIdPreimageType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ContractIdPreimageFromAddress { @@ -26286,7 +26325,7 @@ impl WriteXdr for ContractIdPreimageFromAddress { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -26395,7 +26434,7 @@ impl WriteXdr for ContractIdPreimage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct CreateContractArgs { @@ -26440,7 +26479,7 @@ impl WriteXdr for CreateContractArgs { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct InvokeContractArgs { @@ -26493,7 +26532,7 @@ impl WriteXdr for InvokeContractArgs { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -26614,7 +26653,7 @@ impl WriteXdr for HostFunction { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -26724,7 +26763,7 @@ impl WriteXdr for SorobanAuthorizedFunctionType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -26836,7 +26875,7 @@ impl WriteXdr for SorobanAuthorizedFunction { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SorobanAuthorizedInvocation { @@ -26883,7 +26922,7 @@ impl WriteXdr for SorobanAuthorizedInvocation { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SorobanAddressCredentials { @@ -26935,7 +26974,7 @@ impl WriteXdr for SorobanAddressCredentials { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -27045,7 +27084,7 @@ impl WriteXdr for SorobanCredentialsType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -27154,7 +27193,7 @@ impl WriteXdr for SorobanCredentials { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SorobanAuthorizationEntry { @@ -27201,7 +27240,7 @@ impl WriteXdr for SorobanAuthorizationEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct InvokeHostFunctionOp { @@ -27246,7 +27285,7 @@ impl WriteXdr for InvokeHostFunctionOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ExtendFootprintTtlOp { @@ -27290,7 +27329,7 @@ impl WriteXdr for ExtendFootprintTtlOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct RestoreFootprintOp { @@ -27385,7 +27424,7 @@ impl WriteXdr for RestoreFootprintOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -27765,7 +27804,7 @@ impl WriteXdr for OperationBody { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct Operation { @@ -27811,7 +27850,7 @@ impl WriteXdr for Operation { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct HashIdPreimageOperationId { @@ -27862,7 +27901,7 @@ impl WriteXdr for HashIdPreimageOperationId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct HashIdPreimageRevokeId { @@ -27916,7 +27955,7 @@ impl WriteXdr for HashIdPreimageRevokeId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct HashIdPreimageContractId { @@ -27963,7 +28002,7 @@ impl WriteXdr for HashIdPreimageContractId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct HashIdPreimageSorobanAuthorization { @@ -28043,7 +28082,7 @@ impl WriteXdr for HashIdPreimageSorobanAuthorization { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -28177,7 +28216,7 @@ impl WriteXdr for HashIdPreimage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -28305,7 +28344,7 @@ impl WriteXdr for MemoType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -28430,7 +28469,7 @@ impl WriteXdr for Memo { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TimeBounds { @@ -28475,7 +28514,7 @@ impl WriteXdr for TimeBounds { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerBounds { @@ -28547,7 +28586,7 @@ impl WriteXdr for LedgerBounds { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct PreconditionsV2 { @@ -28606,7 +28645,7 @@ impl WriteXdr for PreconditionsV2 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -28722,7 +28761,7 @@ impl WriteXdr for PreconditionType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -28835,7 +28874,7 @@ impl WriteXdr for Preconditions { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerFootprint { @@ -28887,7 +28926,7 @@ impl WriteXdr for LedgerFootprint { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SorobanResources { @@ -28948,7 +28987,7 @@ impl WriteXdr for SorobanResources { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SorobanTransactionData { @@ -28997,7 +29036,7 @@ impl WriteXdr for SorobanTransactionData { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -29106,7 +29145,7 @@ impl WriteXdr for TransactionV0Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionV0 { @@ -29168,7 +29207,7 @@ impl WriteXdr for TransactionV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionV0Envelope { @@ -29216,7 +29255,7 @@ impl WriteXdr for TransactionV0Envelope { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -29343,7 +29382,7 @@ impl WriteXdr for TransactionExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct Transaction { @@ -29405,7 +29444,7 @@ impl WriteXdr for Transaction { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionV1Envelope { @@ -29451,7 +29490,7 @@ impl WriteXdr for TransactionV1Envelope { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -29551,7 +29590,7 @@ impl WriteXdr for FeeBumpTransactionInnerTx { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -29662,7 +29701,7 @@ impl WriteXdr for FeeBumpTransactionExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct FeeBumpTransaction { @@ -29715,7 +29754,7 @@ impl WriteXdr for FeeBumpTransaction { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct FeeBumpTransactionEnvelope { @@ -29765,7 +29804,7 @@ impl WriteXdr for FeeBumpTransactionEnvelope { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -29884,7 +29923,7 @@ impl WriteXdr for TransactionEnvelope { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -29996,7 +30035,7 @@ impl WriteXdr for TransactionSignaturePayloadTaggedTransaction { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionSignaturePayload { @@ -30043,7 +30082,7 @@ impl WriteXdr for TransactionSignaturePayload { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -30163,7 +30202,7 @@ impl WriteXdr for ClaimAtomType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ClaimOfferAtomV0 { @@ -30229,7 +30268,7 @@ impl WriteXdr for ClaimOfferAtomV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ClaimOfferAtom { @@ -30293,7 +30332,7 @@ impl WriteXdr for ClaimOfferAtom { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ClaimLiquidityAtom { @@ -30352,7 +30391,7 @@ impl WriteXdr for ClaimLiquidityAtom { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -30475,7 +30514,7 @@ impl WriteXdr for ClaimAtom { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -30606,7 +30645,7 @@ impl WriteXdr for CreateAccountResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -30749,7 +30788,7 @@ impl WriteXdr for CreateAccountResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -30910,7 +30949,7 @@ impl WriteXdr for PaymentResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -31100,7 +31139,7 @@ impl WriteXdr for PaymentResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -31266,7 +31305,7 @@ impl WriteXdr for PathPaymentStrictReceiveResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SimplePaymentResult { @@ -31314,7 +31353,7 @@ impl WriteXdr for SimplePaymentResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct PathPaymentStrictReceiveResultSuccess { @@ -31380,7 +31419,7 @@ impl WriteXdr for PathPaymentStrictReceiveResultSuccess { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -31593,7 +31632,7 @@ impl WriteXdr for PathPaymentStrictReceiveResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -31758,7 +31797,7 @@ impl WriteXdr for PathPaymentStrictSendResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct PathPaymentStrictSendResultSuccess { @@ -31823,7 +31862,7 @@ impl WriteXdr for PathPaymentStrictSendResultSuccess { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -32035,7 +32074,7 @@ impl WriteXdr for PathPaymentStrictSendResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -32202,7 +32241,7 @@ impl WriteXdr for ManageSellOfferResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -32317,7 +32356,7 @@ impl WriteXdr for ManageOfferEffect { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -32440,7 +32479,7 @@ impl WriteXdr for ManageOfferSuccessResultOffer { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ManageOfferSuccessResult { @@ -32499,7 +32538,7 @@ impl WriteXdr for ManageOfferSuccessResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -32708,7 +32747,7 @@ impl WriteXdr for ManageSellOfferResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -32887,7 +32926,7 @@ impl WriteXdr for ManageBuyOfferResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -33089,7 +33128,7 @@ impl WriteXdr for ManageBuyOfferResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -33256,7 +33295,7 @@ impl WriteXdr for SetOptionsResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -33443,7 +33482,7 @@ impl WriteXdr for SetOptionsResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -33598,7 +33637,7 @@ impl WriteXdr for ChangeTrustResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -33769,7 +33808,7 @@ impl WriteXdr for ChangeTrustResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -33912,7 +33951,7 @@ impl WriteXdr for AllowTrustResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -34067,7 +34106,7 @@ impl WriteXdr for AllowTrustResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -34216,7 +34255,7 @@ impl WriteXdr for AccountMergeResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -34371,7 +34410,7 @@ impl WriteXdr for AccountMergeResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -34476,7 +34515,7 @@ impl WriteXdr for InflationResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct InflationPayout { @@ -34524,7 +34563,7 @@ impl WriteXdr for InflationPayout { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -34639,7 +34678,7 @@ impl WriteXdr for InflationResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -34770,7 +34809,7 @@ impl WriteXdr for ManageDataResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -34904,7 +34943,7 @@ impl WriteXdr for ManageDataResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -35014,7 +35053,7 @@ impl WriteXdr for BumpSequenceResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -35126,7 +35165,7 @@ impl WriteXdr for BumpSequenceResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -35264,7 +35303,7 @@ impl WriteXdr for CreateClaimableBalanceResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -35410,7 +35449,7 @@ impl WriteXdr for CreateClaimableBalanceResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -35547,7 +35586,7 @@ impl WriteXdr for ClaimClaimableBalanceResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -35692,7 +35731,7 @@ impl WriteXdr for ClaimClaimableBalanceResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -35814,7 +35853,7 @@ impl WriteXdr for BeginSponsoringFutureReservesResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -35939,7 +35978,7 @@ impl WriteXdr for BeginSponsoringFutureReservesResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -36050,7 +36089,7 @@ impl WriteXdr for EndSponsoringFutureReservesResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -36166,7 +36205,7 @@ impl WriteXdr for EndSponsoringFutureReservesResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -36303,7 +36342,7 @@ impl WriteXdr for RevokeSponsorshipResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -36449,7 +36488,7 @@ impl WriteXdr for RevokeSponsorshipResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -36580,7 +36619,7 @@ impl WriteXdr for ClawbackResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -36717,7 +36756,7 @@ impl WriteXdr for ClawbackResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -36839,7 +36878,7 @@ impl WriteXdr for ClawbackClaimableBalanceResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -36969,7 +37008,7 @@ impl WriteXdr for ClawbackClaimableBalanceResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -37106,7 +37145,7 @@ impl WriteXdr for SetTrustLineFlagsResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -37259,7 +37298,7 @@ impl WriteXdr for SetTrustLineFlagsResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -37408,7 +37447,7 @@ impl WriteXdr for LiquidityPoolDepositResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -37572,7 +37611,7 @@ impl WriteXdr for LiquidityPoolDepositResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -37709,7 +37748,7 @@ impl WriteXdr for LiquidityPoolWithdrawResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -37856,7 +37895,7 @@ impl WriteXdr for LiquidityPoolWithdrawResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -37993,7 +38032,7 @@ impl WriteXdr for InvokeHostFunctionResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -38142,7 +38181,7 @@ impl WriteXdr for InvokeHostFunctionResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -38267,7 +38306,7 @@ impl WriteXdr for ExtendFootprintTtlResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -38402,7 +38441,7 @@ impl WriteXdr for ExtendFootprintTtlResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -38527,7 +38566,7 @@ impl WriteXdr for RestoreFootprintResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -38663,7 +38702,7 @@ impl WriteXdr for RestoreFootprintResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -38851,7 +38890,7 @@ impl WriteXdr for OperationResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -39239,7 +39278,7 @@ impl WriteXdr for OperationResultTr { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -39406,7 +39445,7 @@ impl WriteXdr for OperationResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -39621,7 +39660,7 @@ impl WriteXdr for TransactionResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -39841,7 +39880,7 @@ impl WriteXdr for InnerTransactionResultResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -39974,7 +40013,7 @@ impl WriteXdr for InnerTransactionResultExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct InnerTransactionResult { @@ -40022,7 +40061,7 @@ impl WriteXdr for InnerTransactionResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct InnerTransactionResultPair { @@ -40089,7 +40128,7 @@ impl WriteXdr for InnerTransactionResultPair { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -40327,7 +40366,7 @@ impl WriteXdr for TransactionResultResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -40461,7 +40500,7 @@ impl WriteXdr for TransactionResultExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionResult { @@ -40505,7 +40544,11 @@ impl WriteXdr for TransactionResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] pub struct Hash(pub [u8; 32]); @@ -40623,7 +40666,11 @@ impl AsRef<[u8]> for Hash { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] pub struct Uint256(pub [u8; 32]); @@ -40773,7 +40820,7 @@ pub type Int64 = i64; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -40828,7 +40875,7 @@ impl WriteXdr for TimePoint { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -40888,7 +40935,7 @@ impl WriteXdr for Duration { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -40993,7 +41040,7 @@ impl WriteXdr for ExtensionPoint { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -41118,7 +41165,7 @@ impl WriteXdr for CryptoKeyType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -41222,7 +41269,7 @@ impl WriteXdr for PublicKeyType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -41339,7 +41386,11 @@ impl WriteXdr for SignerKeyType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] #[allow(clippy::large_enum_variant)] pub enum PublicKey { @@ -41441,7 +41492,11 @@ impl WriteXdr for PublicKey { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] pub struct SignerKeyEd25519SignedPayload { pub ed25519: Uint256, @@ -41500,7 +41555,11 @@ impl WriteXdr for SignerKeyEd25519SignedPayload { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] #[allow(clippy::large_enum_variant)] pub enum SignerKey { @@ -41618,7 +41677,7 @@ impl WriteXdr for SignerKey { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -41722,7 +41781,11 @@ impl AsRef<[u8]> for Signature { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] pub struct SignatureHint(pub [u8; 4]); @@ -41840,7 +41903,11 @@ impl AsRef<[u8]> for SignatureHint { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] #[derive(Debug)] pub struct NodeId(pub PublicKey); @@ -41894,7 +41961,11 @@ impl WriteXdr for NodeId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] #[derive(Debug)] pub struct AccountId(pub PublicKey); @@ -41951,7 +42022,7 @@ impl WriteXdr for AccountId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct Curve25519Secret { @@ -41992,7 +42063,7 @@ impl WriteXdr for Curve25519Secret { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct Curve25519Public { @@ -42033,7 +42104,7 @@ impl WriteXdr for Curve25519Public { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct HmacSha256Key { @@ -42074,7 +42145,7 @@ impl WriteXdr for HmacSha256Key { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct HmacSha256Mac { @@ -42105,7 +42176,7 @@ impl WriteXdr for HmacSha256Mac { #[derive(Clone, Copy, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub enum TypeVariant { @@ -44267,7 +44338,7 @@ impl core::str::FromStr for TypeVariant { #[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case"), serde(untagged) )] diff --git a/src/next/generated.rs b/src/next/generated.rs index 205a26e0..7209a83c 100644 --- a/src/next/generated.rs +++ b/src/next/generated.rs @@ -931,7 +931,10 @@ impl WriteXdr for [T; N] { #[cfg(feature = "alloc")] #[derive(Debug, Clone, Hash, PartialEq, Eq, PartialOrd, Ord)] -#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] +#[cfg_attr( + feature = "serde", + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema) +)] #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] pub struct VecM(Vec); @@ -1337,7 +1340,11 @@ impl WriteXdr for VecM { #[derive(Clone, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( feature = "serde", - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] pub struct BytesM(Vec); @@ -1718,7 +1725,11 @@ impl WriteXdr for BytesM { #[derive(Clone, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( feature = "serde", - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] pub struct StringM(Vec); @@ -2088,7 +2099,7 @@ impl WriteXdr for StringM { #[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct Frame(pub T) @@ -2755,7 +2766,7 @@ mod test { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -2863,7 +2874,7 @@ impl AsRef<[u8]> for Value { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScpBallot { @@ -2911,7 +2922,7 @@ impl WriteXdr for ScpBallot { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -3027,7 +3038,7 @@ impl WriteXdr for ScpStatementType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScpNomination { @@ -3079,7 +3090,7 @@ impl WriteXdr for ScpNomination { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScpStatementPrepare { @@ -3139,7 +3150,7 @@ impl WriteXdr for ScpStatementPrepare { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScpStatementConfirm { @@ -3194,7 +3205,7 @@ impl WriteXdr for ScpStatementConfirm { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScpStatementExternalize { @@ -3269,7 +3280,7 @@ impl WriteXdr for ScpStatementExternalize { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -3423,7 +3434,7 @@ impl WriteXdr for ScpStatementPledges { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScpStatement { @@ -3471,7 +3482,7 @@ impl WriteXdr for ScpStatement { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScpEnvelope { @@ -3517,7 +3528,7 @@ impl WriteXdr for ScpEnvelope { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScpQuorumSet { @@ -3565,7 +3576,7 @@ impl WriteXdr for ScpQuorumSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ConfigSettingContractExecutionLanesV0 { @@ -3615,7 +3626,7 @@ impl WriteXdr for ConfigSettingContractExecutionLanesV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ConfigSettingContractComputeV0 { @@ -3696,7 +3707,7 @@ impl WriteXdr for ConfigSettingContractComputeV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ConfigSettingContractLedgerCostV0 { @@ -3779,7 +3790,7 @@ impl WriteXdr for ConfigSettingContractLedgerCostV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ConfigSettingContractHistoricalDataV0 { @@ -3823,7 +3834,7 @@ impl WriteXdr for ConfigSettingContractHistoricalDataV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ConfigSettingContractEventsV0 { @@ -3873,7 +3884,7 @@ impl WriteXdr for ConfigSettingContractEventsV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ConfigSettingContractBandwidthV0 { @@ -3969,7 +3980,7 @@ impl WriteXdr for ConfigSettingContractBandwidthV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -4186,7 +4197,7 @@ impl WriteXdr for ContractCostType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ContractCostParamEntry { @@ -4253,7 +4264,7 @@ impl WriteXdr for ContractCostParamEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct StateArchivalSettings { @@ -4322,7 +4333,7 @@ impl WriteXdr for StateArchivalSettings { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct EvictionIterator { @@ -4375,7 +4386,7 @@ pub const CONTRACT_COST_COUNT_LIMIT: u64 = 1024; #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -4496,7 +4507,7 @@ impl AsRef<[ContractCostParamEntry]> for ContractCostParams { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -4693,7 +4704,7 @@ impl WriteXdr for ConfigSettingId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -4919,7 +4930,7 @@ impl WriteXdr for ConfigSettingEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -5021,7 +5032,7 @@ impl WriteXdr for ScEnvMetaKind { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -5122,7 +5133,7 @@ impl WriteXdr for ScEnvMetaEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScMetaV0 { @@ -5167,7 +5178,7 @@ impl WriteXdr for ScMetaV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -5269,7 +5280,7 @@ impl WriteXdr for ScMetaKind { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -5406,7 +5417,7 @@ pub const SC_SPEC_DOC_LIMIT: u64 = 1024; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -5630,7 +5641,7 @@ impl WriteXdr for ScSpecType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecTypeOption { @@ -5672,7 +5683,7 @@ impl WriteXdr for ScSpecTypeOption { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecTypeResult { @@ -5716,7 +5727,7 @@ impl WriteXdr for ScSpecTypeResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecTypeVec { @@ -5758,7 +5769,7 @@ impl WriteXdr for ScSpecTypeVec { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecTypeMap { @@ -5802,7 +5813,7 @@ impl WriteXdr for ScSpecTypeMap { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecTypeTuple { @@ -5843,7 +5854,7 @@ impl WriteXdr for ScSpecTypeTuple { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecTypeBytesN { @@ -5884,7 +5895,7 @@ impl WriteXdr for ScSpecTypeBytesN { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecTypeUdt { @@ -5958,7 +5969,7 @@ impl WriteXdr for ScSpecTypeUdt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -6230,7 +6241,7 @@ impl WriteXdr for ScSpecTypeDef { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecUdtStructFieldV0 { @@ -6280,7 +6291,7 @@ impl WriteXdr for ScSpecUdtStructFieldV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecUdtStructV0 { @@ -6331,7 +6342,7 @@ impl WriteXdr for ScSpecUdtStructV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecUdtUnionCaseVoidV0 { @@ -6377,7 +6388,7 @@ impl WriteXdr for ScSpecUdtUnionCaseVoidV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecUdtUnionCaseTupleV0 { @@ -6426,7 +6437,7 @@ impl WriteXdr for ScSpecUdtUnionCaseTupleV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -6536,7 +6547,7 @@ impl WriteXdr for ScSpecUdtUnionCaseV0Kind { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -6649,7 +6660,7 @@ impl WriteXdr for ScSpecUdtUnionCaseV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecUdtUnionV0 { @@ -6701,7 +6712,7 @@ impl WriteXdr for ScSpecUdtUnionV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecUdtEnumCaseV0 { @@ -6751,7 +6762,7 @@ impl WriteXdr for ScSpecUdtEnumCaseV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecUdtEnumV0 { @@ -6803,7 +6814,7 @@ impl WriteXdr for ScSpecUdtEnumV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecUdtErrorEnumCaseV0 { @@ -6853,7 +6864,7 @@ impl WriteXdr for ScSpecUdtErrorEnumCaseV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecUdtErrorEnumV0 { @@ -6905,7 +6916,7 @@ impl WriteXdr for ScSpecUdtErrorEnumV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecFunctionInputV0 { @@ -6955,7 +6966,7 @@ impl WriteXdr for ScSpecFunctionInputV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScSpecFunctionV0 { @@ -7010,7 +7021,7 @@ impl WriteXdr for ScSpecFunctionV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -7144,7 +7155,7 @@ impl WriteXdr for ScSpecEntryKind { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -7327,7 +7338,7 @@ impl WriteXdr for ScSpecEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -7546,7 +7557,7 @@ impl WriteXdr for ScValType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -7697,7 +7708,7 @@ impl WriteXdr for ScErrorType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -7858,7 +7869,7 @@ impl WriteXdr for ScErrorCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -8015,7 +8026,7 @@ impl WriteXdr for ScError { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct UInt128Parts { @@ -8059,7 +8070,7 @@ impl WriteXdr for UInt128Parts { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct Int128Parts { @@ -8105,7 +8116,7 @@ impl WriteXdr for Int128Parts { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct UInt256Parts { @@ -8157,7 +8168,7 @@ impl WriteXdr for UInt256Parts { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct Int256Parts { @@ -8209,7 +8220,7 @@ impl WriteXdr for Int256Parts { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -8319,7 +8330,7 @@ impl WriteXdr for ContractExecutableType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -8427,7 +8438,7 @@ impl WriteXdr for ContractExecutable { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -8534,7 +8545,11 @@ impl WriteXdr for ScAddressType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] #[allow(clippy::large_enum_variant)] pub enum ScAddress { @@ -8642,7 +8657,7 @@ pub const SCSYMBOL_LIMIT: u64 = 32; #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -8747,7 +8762,7 @@ impl AsRef<[ScVal]> for ScVec { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -8852,7 +8867,7 @@ impl AsRef<[ScMapEntry]> for ScMap { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -8957,7 +8972,7 @@ impl AsRef<[u8]> for ScBytes { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -9062,7 +9077,7 @@ impl AsRef<[u8]> for ScString { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -9168,7 +9183,7 @@ impl AsRef<[u8]> for ScSymbol { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScNonceKey { @@ -9209,7 +9224,7 @@ impl WriteXdr for ScNonceKey { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScContractInstance { @@ -9311,7 +9326,7 @@ impl WriteXdr for ScContractInstance { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -9563,7 +9578,7 @@ impl WriteXdr for ScVal { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScMapEntry { @@ -9611,7 +9626,7 @@ impl WriteXdr for ScMapEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -9716,7 +9731,7 @@ impl WriteXdr for StoredTransactionSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct StoredDebugTransactionSet { @@ -9765,7 +9780,7 @@ impl WriteXdr for StoredDebugTransactionSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct PersistedScpStateV0 { @@ -9814,7 +9829,7 @@ impl WriteXdr for PersistedScpStateV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct PersistedScpStateV1 { @@ -9862,7 +9877,7 @@ impl WriteXdr for PersistedScpStateV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -9962,7 +9977,11 @@ impl WriteXdr for PersistedScpState { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] pub struct Thresholds(pub [u8; 4]); @@ -10081,7 +10100,7 @@ impl AsRef<[u8]> for Thresholds { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -10186,7 +10205,7 @@ impl AsRef<[u8]> for String32 { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -10290,7 +10309,7 @@ impl AsRef<[u8]> for String64 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -10346,7 +10365,7 @@ impl WriteXdr for SequenceNumber { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -10450,7 +10469,7 @@ impl AsRef<[u8]> for DataValue { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -10505,7 +10524,11 @@ impl WriteXdr for PoolId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] pub struct AssetCode4(pub [u8; 4]); @@ -10606,7 +10629,11 @@ impl AsRef<[u8]> for AssetCode4 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] pub struct AssetCode12(pub [u8; 12]); @@ -10714,7 +10741,7 @@ impl AsRef<[u8]> for AssetCode12 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -10836,7 +10863,11 @@ impl WriteXdr for AssetType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] #[allow(clippy::large_enum_variant)] pub enum AssetCode { @@ -10939,7 +10970,7 @@ impl WriteXdr for AssetCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct AlphaNum4 { @@ -10984,7 +11015,7 @@ impl WriteXdr for AlphaNum4 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct AlphaNum12 { @@ -11038,7 +11069,7 @@ impl WriteXdr for AlphaNum12 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -11151,7 +11182,7 @@ impl WriteXdr for Asset { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct Price { @@ -11196,7 +11227,7 @@ impl WriteXdr for Price { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct Liabilities { @@ -11244,7 +11275,7 @@ impl WriteXdr for Liabilities { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -11368,7 +11399,7 @@ impl WriteXdr for ThresholdIndexes { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -11518,7 +11549,7 @@ impl WriteXdr for LedgerEntryType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct Signer { @@ -11576,7 +11607,7 @@ impl WriteXdr for Signer { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -11716,7 +11747,7 @@ pub const MAX_SIGNERS: u64 = 20; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -11782,7 +11813,7 @@ impl WriteXdr for SponsorshipDescriptor { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct AccountEntryExtensionV3 { @@ -11833,7 +11864,7 @@ impl WriteXdr for AccountEntryExtensionV3 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -11947,7 +11978,7 @@ impl WriteXdr for AccountEntryExtensionV2Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct AccountEntryExtensionV2 { @@ -12001,7 +12032,7 @@ impl WriteXdr for AccountEntryExtensionV2 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -12113,7 +12144,7 @@ impl WriteXdr for AccountEntryExtensionV1Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct AccountEntryExtensionV1 { @@ -12161,7 +12192,7 @@ impl WriteXdr for AccountEntryExtensionV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -12288,7 +12319,7 @@ impl WriteXdr for AccountEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct AccountEntry { @@ -12364,7 +12395,7 @@ impl WriteXdr for AccountEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -12503,7 +12534,7 @@ pub const MASK_TRUSTLINE_FLAGS_V17: u64 = 7; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -12616,7 +12647,7 @@ impl WriteXdr for LiquidityPoolType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -12737,7 +12768,7 @@ impl WriteXdr for TrustLineAsset { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -12842,7 +12873,7 @@ impl WriteXdr for TrustLineEntryExtensionV2Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TrustLineEntryExtensionV2 { @@ -12890,7 +12921,7 @@ impl WriteXdr for TrustLineEntryExtensionV2 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -13002,7 +13033,7 @@ impl WriteXdr for TrustLineEntryV1Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TrustLineEntryV1 { @@ -13062,7 +13093,7 @@ impl WriteXdr for TrustLineEntryV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -13193,7 +13224,7 @@ impl WriteXdr for TrustLineEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TrustLineEntry { @@ -13252,7 +13283,7 @@ impl WriteXdr for TrustLineEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -13362,7 +13393,7 @@ pub const MASK_OFFERENTRY_FLAGS: u64 = 1; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -13480,7 +13511,7 @@ impl WriteXdr for OfferEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct OfferEntry { @@ -13544,7 +13575,7 @@ impl WriteXdr for OfferEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -13652,7 +13683,7 @@ impl WriteXdr for DataEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct DataEntry { @@ -13708,7 +13739,7 @@ impl WriteXdr for DataEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -13850,7 +13881,7 @@ impl WriteXdr for ClaimPredicateType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -13992,7 +14023,7 @@ impl WriteXdr for ClaimPredicate { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -14093,7 +14124,7 @@ impl WriteXdr for ClaimantType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ClaimantV0 { @@ -14143,7 +14174,7 @@ impl WriteXdr for ClaimantV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -14242,7 +14273,7 @@ impl WriteXdr for Claimant { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -14345,7 +14376,7 @@ impl WriteXdr for ClaimableBalanceIdType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -14449,7 +14480,7 @@ impl WriteXdr for ClaimableBalanceId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -14560,7 +14591,7 @@ pub const MASK_CLAIMABLE_BALANCE_FLAGS: u64 = 0x1; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -14665,7 +14696,7 @@ impl WriteXdr for ClaimableBalanceEntryExtensionV1Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ClaimableBalanceEntryExtensionV1 { @@ -14713,7 +14744,7 @@ impl WriteXdr for ClaimableBalanceEntryExtensionV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -14836,7 +14867,7 @@ impl WriteXdr for ClaimableBalanceEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ClaimableBalanceEntry { @@ -14891,7 +14922,7 @@ impl WriteXdr for ClaimableBalanceEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LiquidityPoolConstantProductParameters { @@ -14944,7 +14975,7 @@ impl WriteXdr for LiquidityPoolConstantProductParameters { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LiquidityPoolEntryConstantProduct { @@ -15008,7 +15039,7 @@ impl WriteXdr for LiquidityPoolEntryConstantProduct { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -15128,7 +15159,7 @@ impl WriteXdr for LiquidityPoolEntryBody { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LiquidityPoolEntry { @@ -15173,7 +15204,7 @@ impl WriteXdr for LiquidityPoolEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -15283,7 +15314,7 @@ impl WriteXdr for ContractDataDurability { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ContractDataEntry { @@ -15338,7 +15369,7 @@ impl WriteXdr for ContractDataEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ContractCodeEntry { @@ -15386,7 +15417,7 @@ impl WriteXdr for ContractCodeEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TtlEntry { @@ -15432,7 +15463,7 @@ impl WriteXdr for TtlEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -15537,7 +15568,7 @@ impl WriteXdr for LedgerEntryExtensionV1Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerEntryExtensionV1 { @@ -15601,7 +15632,7 @@ impl WriteXdr for LedgerEntryExtensionV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -15780,7 +15811,7 @@ impl WriteXdr for LedgerEntryData { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -15918,7 +15949,7 @@ impl WriteXdr for LedgerEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerEntry { @@ -15965,7 +15996,7 @@ impl WriteXdr for LedgerEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerKeyAccount { @@ -16007,7 +16038,7 @@ impl WriteXdr for LedgerKeyAccount { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerKeyTrustLine { @@ -16052,7 +16083,7 @@ impl WriteXdr for LedgerKeyTrustLine { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerKeyOffer { @@ -16097,7 +16128,7 @@ impl WriteXdr for LedgerKeyOffer { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerKeyData { @@ -16141,7 +16172,7 @@ impl WriteXdr for LedgerKeyData { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerKeyClaimableBalance { @@ -16182,7 +16213,7 @@ impl WriteXdr for LedgerKeyClaimableBalance { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerKeyLiquidityPool { @@ -16225,7 +16256,7 @@ impl WriteXdr for LedgerKeyLiquidityPool { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerKeyContractData { @@ -16272,7 +16303,7 @@ impl WriteXdr for LedgerKeyContractData { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerKeyContractCode { @@ -16313,7 +16344,7 @@ impl WriteXdr for LedgerKeyContractCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerKeyConfigSetting { @@ -16355,7 +16386,7 @@ impl WriteXdr for LedgerKeyConfigSetting { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerKeyTtl { @@ -16457,7 +16488,7 @@ impl WriteXdr for LedgerKeyTtl { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -16642,7 +16673,7 @@ impl WriteXdr for LedgerKey { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -16789,7 +16820,7 @@ impl WriteXdr for EnvelopeType { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -16898,7 +16929,7 @@ impl AsRef<[u8]> for UpgradeType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -17002,7 +17033,7 @@ impl WriteXdr for StellarValueType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerCloseValueSignature { @@ -17050,7 +17081,7 @@ impl WriteXdr for LedgerCloseValueSignature { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -17171,7 +17202,7 @@ impl WriteXdr for StellarValueExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct StellarValue { @@ -17232,7 +17263,7 @@ pub const MASK_LEDGER_HEADER_FLAGS: u64 = 0x7; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -17344,7 +17375,7 @@ impl WriteXdr for LedgerHeaderFlags { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -17449,7 +17480,7 @@ impl WriteXdr for LedgerHeaderExtensionV1Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerHeaderExtensionV1 { @@ -17497,7 +17528,7 @@ impl WriteXdr for LedgerHeaderExtensionV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -17635,7 +17666,7 @@ impl WriteXdr for LedgerHeaderExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerHeader { @@ -17725,7 +17756,7 @@ impl WriteXdr for LedgerHeader { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -17859,7 +17890,7 @@ impl WriteXdr for LedgerUpgradeType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ConfigUpgradeSetKey { @@ -17920,7 +17951,7 @@ impl WriteXdr for ConfigUpgradeSetKey { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -18065,7 +18096,7 @@ impl WriteXdr for LedgerUpgrade { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ConfigUpgradeSet { @@ -18112,7 +18143,7 @@ impl WriteXdr for ConfigUpgradeSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -18229,7 +18260,7 @@ impl WriteXdr for BucketEntryType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -18336,7 +18367,7 @@ impl WriteXdr for BucketMetadataExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct BucketMetadata { @@ -18388,7 +18419,7 @@ impl WriteXdr for BucketMetadata { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -18510,7 +18541,7 @@ impl WriteXdr for BucketEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -18612,7 +18643,7 @@ impl WriteXdr for TxSetComponentType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TxSetComponentTxsMaybeDiscountedFee { @@ -18662,7 +18693,7 @@ impl WriteXdr for TxSetComponentTxsMaybeDiscountedFee { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -18769,7 +18800,7 @@ impl WriteXdr for TxSetComponent { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -18868,7 +18899,7 @@ impl WriteXdr for TransactionPhase { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionSet { @@ -18913,7 +18944,7 @@ impl WriteXdr for TransactionSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionSetV1 { @@ -18960,7 +18991,7 @@ impl WriteXdr for TransactionSetV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -19059,7 +19090,7 @@ impl WriteXdr for GeneralizedTransactionSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionResultPair { @@ -19103,7 +19134,7 @@ impl WriteXdr for TransactionResultPair { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionResultSet { @@ -19148,7 +19179,7 @@ impl WriteXdr for TransactionResultSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -19262,7 +19293,7 @@ impl WriteXdr for TransactionHistoryEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionHistoryEntry { @@ -19311,7 +19342,7 @@ impl WriteXdr for TransactionHistoryEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -19418,7 +19449,7 @@ impl WriteXdr for TransactionHistoryResultEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionHistoryResultEntry { @@ -19467,7 +19498,7 @@ impl WriteXdr for TransactionHistoryResultEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -19574,7 +19605,7 @@ impl WriteXdr for LedgerHeaderHistoryEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerHeaderHistoryEntry { @@ -19622,7 +19653,7 @@ impl WriteXdr for LedgerHeaderHistoryEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerScpMessages { @@ -19667,7 +19698,7 @@ impl WriteXdr for LedgerScpMessages { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ScpHistoryEntryV0 { @@ -19713,7 +19744,7 @@ impl WriteXdr for ScpHistoryEntryV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -19815,7 +19846,7 @@ impl WriteXdr for ScpHistoryEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -19937,7 +19968,7 @@ impl WriteXdr for LedgerEntryChangeType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -20053,7 +20084,7 @@ impl WriteXdr for LedgerEntryChange { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -20160,7 +20191,7 @@ impl AsRef<[LedgerEntryChange]> for LedgerEntryChanges { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct OperationMeta { @@ -20202,7 +20233,7 @@ impl WriteXdr for OperationMeta { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionMetaV1 { @@ -20250,7 +20281,7 @@ impl WriteXdr for TransactionMetaV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionMetaV2 { @@ -20300,7 +20331,7 @@ impl WriteXdr for TransactionMetaV2 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -20411,7 +20442,7 @@ impl WriteXdr for ContractEventType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ContractEventV0 { @@ -20461,7 +20492,7 @@ impl WriteXdr for ContractEventV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -20575,7 +20606,7 @@ impl WriteXdr for ContractEventBody { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ContractEvent { @@ -20626,7 +20657,7 @@ impl WriteXdr for ContractEvent { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct DiagnosticEvent { @@ -20679,7 +20710,7 @@ impl WriteXdr for DiagnosticEvent { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SorobanTransactionMeta { @@ -20737,7 +20768,7 @@ impl WriteXdr for SorobanTransactionMeta { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionMetaV3 { @@ -20791,7 +20822,7 @@ impl WriteXdr for TransactionMetaV3 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct InvokeHostFunctionSuccessPreImage { @@ -20843,7 +20874,7 @@ impl WriteXdr for InvokeHostFunctionSuccessPreImage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -20958,7 +20989,7 @@ impl WriteXdr for TransactionMeta { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionResultMeta { @@ -21006,7 +21037,7 @@ impl WriteXdr for TransactionResultMeta { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct UpgradeEntryMeta { @@ -21063,7 +21094,7 @@ impl WriteXdr for UpgradeEntryMeta { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerCloseMetaV0 { @@ -21144,7 +21175,7 @@ impl WriteXdr for LedgerCloseMetaV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerCloseMetaV1 { @@ -21213,7 +21244,7 @@ impl WriteXdr for LedgerCloseMetaV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -21321,7 +21352,7 @@ impl WriteXdr for LedgerCloseMeta { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -21440,7 +21471,7 @@ impl WriteXdr for ErrorCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SError { @@ -21484,7 +21515,7 @@ impl WriteXdr for SError { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SendMore { @@ -21526,7 +21557,7 @@ impl WriteXdr for SendMore { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SendMoreExtended { @@ -21572,7 +21603,7 @@ impl WriteXdr for SendMoreExtended { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct AuthCert { @@ -21627,7 +21658,7 @@ impl WriteXdr for AuthCert { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct Hello { @@ -21700,7 +21731,7 @@ pub const AUTH_MSG_FLAG_FLOW_CONTROL_BYTES_REQUESTED: u64 = 200; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct Auth { @@ -21743,7 +21774,7 @@ impl WriteXdr for Auth { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -21850,7 +21881,7 @@ impl WriteXdr for IpAddrType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -21962,7 +21993,7 @@ impl WriteXdr for PeerAddressIp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct PeerAddress { @@ -22039,7 +22070,7 @@ impl WriteXdr for PeerAddress { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -22239,7 +22270,7 @@ impl WriteXdr for MessageType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct DontHave { @@ -22284,7 +22315,7 @@ impl WriteXdr for DontHave { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -22386,7 +22417,7 @@ impl WriteXdr for SurveyMessageCommandType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -22494,7 +22525,7 @@ impl WriteXdr for SurveyMessageResponseType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SurveyRequestMessage { @@ -22548,7 +22579,7 @@ impl WriteXdr for SurveyRequestMessage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SignedSurveyRequestMessage { @@ -22590,7 +22621,7 @@ impl WriteXdr for SignedSurveyRequestMessage { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -22701,7 +22732,7 @@ impl AsRef<[u8]> for EncryptedBody { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SurveyResponseMessage { @@ -22755,7 +22786,7 @@ impl WriteXdr for SurveyResponseMessage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SignedSurveyResponseMessage { @@ -22815,7 +22846,7 @@ impl WriteXdr for SignedSurveyResponseMessage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct PeerStats { @@ -22896,7 +22927,7 @@ impl WriteXdr for PeerStats { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -23007,7 +23038,7 @@ impl AsRef<[PeerStats]> for PeerStatList { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TopologyResponseBodyV0 { @@ -23064,7 +23095,7 @@ impl WriteXdr for TopologyResponseBodyV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TopologyResponseBodyV1 { @@ -23124,7 +23155,7 @@ impl WriteXdr for TopologyResponseBodyV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -23235,7 +23266,7 @@ pub const TX_ADVERT_VECTOR_MAX_SIZE: u64 = 1000; #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -23342,7 +23373,7 @@ impl AsRef<[Hash]> for TxAdvertVector { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct FloodAdvert { @@ -23389,7 +23420,7 @@ pub const TX_DEMAND_VECTOR_MAX_SIZE: u64 = 1000; #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -23496,7 +23527,7 @@ impl AsRef<[Hash]> for TxDemandVector { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct FloodDemand { @@ -23584,7 +23615,7 @@ impl WriteXdr for FloodDemand { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -23829,7 +23860,7 @@ impl WriteXdr for StellarMessage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct AuthenticatedMessageV0 { @@ -23883,7 +23914,7 @@ impl WriteXdr for AuthenticatedMessageV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -23991,7 +24022,7 @@ pub const MAX_OPS_PER_TX: u64 = 100; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -24096,7 +24127,11 @@ impl WriteXdr for LiquidityPoolParameters { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] pub struct MuxedAccountMed25519 { pub id: u64, @@ -24147,7 +24182,11 @@ impl WriteXdr for MuxedAccountMed25519 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] #[allow(clippy::large_enum_variant)] pub enum MuxedAccount { @@ -24252,7 +24291,7 @@ impl WriteXdr for MuxedAccount { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct DecoratedSignature { @@ -24323,7 +24362,7 @@ impl WriteXdr for DecoratedSignature { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -24558,7 +24597,7 @@ impl WriteXdr for OperationType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct CreateAccountOp { @@ -24604,7 +24643,7 @@ impl WriteXdr for CreateAccountOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct PaymentOp { @@ -24660,7 +24699,7 @@ impl WriteXdr for PaymentOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct PathPaymentStrictReceiveOp { @@ -24725,7 +24764,7 @@ impl WriteXdr for PathPaymentStrictReceiveOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct PathPaymentStrictSendOp { @@ -24787,7 +24826,7 @@ impl WriteXdr for PathPaymentStrictSendOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ManageSellOfferOp { @@ -24847,7 +24886,7 @@ impl WriteXdr for ManageSellOfferOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ManageBuyOfferOp { @@ -24903,7 +24942,7 @@ impl WriteXdr for ManageBuyOfferOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct CreatePassiveSellOfferOp { @@ -24968,7 +25007,7 @@ impl WriteXdr for CreatePassiveSellOfferOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SetOptionsOp { @@ -25046,7 +25085,7 @@ impl WriteXdr for SetOptionsOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -25168,7 +25207,7 @@ impl WriteXdr for ChangeTrustAsset { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ChangeTrustOp { @@ -25216,7 +25255,7 @@ impl WriteXdr for ChangeTrustOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct AllowTrustOp { @@ -25264,7 +25303,7 @@ impl WriteXdr for AllowTrustOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ManageDataOp { @@ -25308,7 +25347,7 @@ impl WriteXdr for ManageDataOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct BumpSequenceOp { @@ -25351,7 +25390,7 @@ impl WriteXdr for BumpSequenceOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct CreateClaimableBalanceOp { @@ -25398,7 +25437,7 @@ impl WriteXdr for CreateClaimableBalanceOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ClaimClaimableBalanceOp { @@ -25439,7 +25478,7 @@ impl WriteXdr for ClaimClaimableBalanceOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct BeginSponsoringFutureReservesOp { @@ -25482,7 +25521,7 @@ impl WriteXdr for BeginSponsoringFutureReservesOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -25589,7 +25628,7 @@ impl WriteXdr for RevokeSponsorshipType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct RevokeSponsorshipOpSigner { @@ -25641,7 +25680,7 @@ impl WriteXdr for RevokeSponsorshipOpSigner { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -25751,7 +25790,7 @@ impl WriteXdr for RevokeSponsorshipOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ClawbackOp { @@ -25798,7 +25837,7 @@ impl WriteXdr for ClawbackOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ClawbackClaimableBalanceOp { @@ -25843,7 +25882,7 @@ impl WriteXdr for ClawbackClaimableBalanceOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SetTrustLineFlagsOp { @@ -25905,7 +25944,7 @@ pub const LIQUIDITY_POOL_FEE_V18: u64 = 30; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LiquidityPoolDepositOp { @@ -25961,7 +26000,7 @@ impl WriteXdr for LiquidityPoolDepositOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LiquidityPoolWithdrawOp { @@ -26014,7 +26053,7 @@ impl WriteXdr for LiquidityPoolWithdrawOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -26127,7 +26166,7 @@ impl WriteXdr for HostFunctionType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -26234,7 +26273,7 @@ impl WriteXdr for ContractIdPreimageType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ContractIdPreimageFromAddress { @@ -26286,7 +26325,7 @@ impl WriteXdr for ContractIdPreimageFromAddress { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -26395,7 +26434,7 @@ impl WriteXdr for ContractIdPreimage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct CreateContractArgs { @@ -26440,7 +26479,7 @@ impl WriteXdr for CreateContractArgs { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct InvokeContractArgs { @@ -26493,7 +26532,7 @@ impl WriteXdr for InvokeContractArgs { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -26614,7 +26653,7 @@ impl WriteXdr for HostFunction { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -26724,7 +26763,7 @@ impl WriteXdr for SorobanAuthorizedFunctionType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -26836,7 +26875,7 @@ impl WriteXdr for SorobanAuthorizedFunction { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SorobanAuthorizedInvocation { @@ -26883,7 +26922,7 @@ impl WriteXdr for SorobanAuthorizedInvocation { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SorobanAddressCredentials { @@ -26935,7 +26974,7 @@ impl WriteXdr for SorobanAddressCredentials { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -27045,7 +27084,7 @@ impl WriteXdr for SorobanCredentialsType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -27154,7 +27193,7 @@ impl WriteXdr for SorobanCredentials { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SorobanAuthorizationEntry { @@ -27201,7 +27240,7 @@ impl WriteXdr for SorobanAuthorizationEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct InvokeHostFunctionOp { @@ -27246,7 +27285,7 @@ impl WriteXdr for InvokeHostFunctionOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ExtendFootprintTtlOp { @@ -27290,7 +27329,7 @@ impl WriteXdr for ExtendFootprintTtlOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct RestoreFootprintOp { @@ -27385,7 +27424,7 @@ impl WriteXdr for RestoreFootprintOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -27765,7 +27804,7 @@ impl WriteXdr for OperationBody { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct Operation { @@ -27811,7 +27850,7 @@ impl WriteXdr for Operation { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct HashIdPreimageOperationId { @@ -27862,7 +27901,7 @@ impl WriteXdr for HashIdPreimageOperationId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct HashIdPreimageRevokeId { @@ -27916,7 +27955,7 @@ impl WriteXdr for HashIdPreimageRevokeId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct HashIdPreimageContractId { @@ -27963,7 +28002,7 @@ impl WriteXdr for HashIdPreimageContractId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct HashIdPreimageSorobanAuthorization { @@ -28043,7 +28082,7 @@ impl WriteXdr for HashIdPreimageSorobanAuthorization { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -28177,7 +28216,7 @@ impl WriteXdr for HashIdPreimage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -28305,7 +28344,7 @@ impl WriteXdr for MemoType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -28430,7 +28469,7 @@ impl WriteXdr for Memo { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TimeBounds { @@ -28475,7 +28514,7 @@ impl WriteXdr for TimeBounds { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerBounds { @@ -28547,7 +28586,7 @@ impl WriteXdr for LedgerBounds { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct PreconditionsV2 { @@ -28606,7 +28645,7 @@ impl WriteXdr for PreconditionsV2 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -28722,7 +28761,7 @@ impl WriteXdr for PreconditionType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -28835,7 +28874,7 @@ impl WriteXdr for Preconditions { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct LedgerFootprint { @@ -28887,7 +28926,7 @@ impl WriteXdr for LedgerFootprint { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SorobanResources { @@ -28948,7 +28987,7 @@ impl WriteXdr for SorobanResources { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SorobanTransactionData { @@ -28997,7 +29036,7 @@ impl WriteXdr for SorobanTransactionData { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -29106,7 +29145,7 @@ impl WriteXdr for TransactionV0Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionV0 { @@ -29168,7 +29207,7 @@ impl WriteXdr for TransactionV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionV0Envelope { @@ -29216,7 +29255,7 @@ impl WriteXdr for TransactionV0Envelope { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -29343,7 +29382,7 @@ impl WriteXdr for TransactionExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct Transaction { @@ -29405,7 +29444,7 @@ impl WriteXdr for Transaction { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionV1Envelope { @@ -29451,7 +29490,7 @@ impl WriteXdr for TransactionV1Envelope { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -29551,7 +29590,7 @@ impl WriteXdr for FeeBumpTransactionInnerTx { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -29662,7 +29701,7 @@ impl WriteXdr for FeeBumpTransactionExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct FeeBumpTransaction { @@ -29715,7 +29754,7 @@ impl WriteXdr for FeeBumpTransaction { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct FeeBumpTransactionEnvelope { @@ -29765,7 +29804,7 @@ impl WriteXdr for FeeBumpTransactionEnvelope { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -29884,7 +29923,7 @@ impl WriteXdr for TransactionEnvelope { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -29996,7 +30035,7 @@ impl WriteXdr for TransactionSignaturePayloadTaggedTransaction { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionSignaturePayload { @@ -30043,7 +30082,7 @@ impl WriteXdr for TransactionSignaturePayload { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -30163,7 +30202,7 @@ impl WriteXdr for ClaimAtomType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ClaimOfferAtomV0 { @@ -30229,7 +30268,7 @@ impl WriteXdr for ClaimOfferAtomV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ClaimOfferAtom { @@ -30293,7 +30332,7 @@ impl WriteXdr for ClaimOfferAtom { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ClaimLiquidityAtom { @@ -30352,7 +30391,7 @@ impl WriteXdr for ClaimLiquidityAtom { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -30475,7 +30514,7 @@ impl WriteXdr for ClaimAtom { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -30606,7 +30645,7 @@ impl WriteXdr for CreateAccountResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -30749,7 +30788,7 @@ impl WriteXdr for CreateAccountResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -30910,7 +30949,7 @@ impl WriteXdr for PaymentResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -31100,7 +31139,7 @@ impl WriteXdr for PaymentResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -31266,7 +31305,7 @@ impl WriteXdr for PathPaymentStrictReceiveResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct SimplePaymentResult { @@ -31314,7 +31353,7 @@ impl WriteXdr for SimplePaymentResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct PathPaymentStrictReceiveResultSuccess { @@ -31380,7 +31419,7 @@ impl WriteXdr for PathPaymentStrictReceiveResultSuccess { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -31593,7 +31632,7 @@ impl WriteXdr for PathPaymentStrictReceiveResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -31758,7 +31797,7 @@ impl WriteXdr for PathPaymentStrictSendResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct PathPaymentStrictSendResultSuccess { @@ -31823,7 +31862,7 @@ impl WriteXdr for PathPaymentStrictSendResultSuccess { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -32035,7 +32074,7 @@ impl WriteXdr for PathPaymentStrictSendResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -32202,7 +32241,7 @@ impl WriteXdr for ManageSellOfferResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -32317,7 +32356,7 @@ impl WriteXdr for ManageOfferEffect { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -32440,7 +32479,7 @@ impl WriteXdr for ManageOfferSuccessResultOffer { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct ManageOfferSuccessResult { @@ -32499,7 +32538,7 @@ impl WriteXdr for ManageOfferSuccessResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -32708,7 +32747,7 @@ impl WriteXdr for ManageSellOfferResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -32887,7 +32926,7 @@ impl WriteXdr for ManageBuyOfferResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -33089,7 +33128,7 @@ impl WriteXdr for ManageBuyOfferResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -33256,7 +33295,7 @@ impl WriteXdr for SetOptionsResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -33443,7 +33482,7 @@ impl WriteXdr for SetOptionsResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -33598,7 +33637,7 @@ impl WriteXdr for ChangeTrustResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -33769,7 +33808,7 @@ impl WriteXdr for ChangeTrustResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -33912,7 +33951,7 @@ impl WriteXdr for AllowTrustResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -34067,7 +34106,7 @@ impl WriteXdr for AllowTrustResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -34216,7 +34255,7 @@ impl WriteXdr for AccountMergeResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -34371,7 +34410,7 @@ impl WriteXdr for AccountMergeResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -34476,7 +34515,7 @@ impl WriteXdr for InflationResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct InflationPayout { @@ -34524,7 +34563,7 @@ impl WriteXdr for InflationPayout { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -34639,7 +34678,7 @@ impl WriteXdr for InflationResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -34770,7 +34809,7 @@ impl WriteXdr for ManageDataResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -34904,7 +34943,7 @@ impl WriteXdr for ManageDataResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -35014,7 +35053,7 @@ impl WriteXdr for BumpSequenceResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -35126,7 +35165,7 @@ impl WriteXdr for BumpSequenceResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -35264,7 +35303,7 @@ impl WriteXdr for CreateClaimableBalanceResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -35410,7 +35449,7 @@ impl WriteXdr for CreateClaimableBalanceResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -35547,7 +35586,7 @@ impl WriteXdr for ClaimClaimableBalanceResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -35692,7 +35731,7 @@ impl WriteXdr for ClaimClaimableBalanceResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -35814,7 +35853,7 @@ impl WriteXdr for BeginSponsoringFutureReservesResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -35939,7 +35978,7 @@ impl WriteXdr for BeginSponsoringFutureReservesResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -36050,7 +36089,7 @@ impl WriteXdr for EndSponsoringFutureReservesResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -36166,7 +36205,7 @@ impl WriteXdr for EndSponsoringFutureReservesResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -36303,7 +36342,7 @@ impl WriteXdr for RevokeSponsorshipResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -36449,7 +36488,7 @@ impl WriteXdr for RevokeSponsorshipResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -36580,7 +36619,7 @@ impl WriteXdr for ClawbackResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -36717,7 +36756,7 @@ impl WriteXdr for ClawbackResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -36839,7 +36878,7 @@ impl WriteXdr for ClawbackClaimableBalanceResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -36969,7 +37008,7 @@ impl WriteXdr for ClawbackClaimableBalanceResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -37106,7 +37145,7 @@ impl WriteXdr for SetTrustLineFlagsResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -37259,7 +37298,7 @@ impl WriteXdr for SetTrustLineFlagsResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -37408,7 +37447,7 @@ impl WriteXdr for LiquidityPoolDepositResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -37572,7 +37611,7 @@ impl WriteXdr for LiquidityPoolDepositResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -37709,7 +37748,7 @@ impl WriteXdr for LiquidityPoolWithdrawResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -37856,7 +37895,7 @@ impl WriteXdr for LiquidityPoolWithdrawResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -37993,7 +38032,7 @@ impl WriteXdr for InvokeHostFunctionResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -38142,7 +38181,7 @@ impl WriteXdr for InvokeHostFunctionResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -38267,7 +38306,7 @@ impl WriteXdr for ExtendFootprintTtlResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -38402,7 +38441,7 @@ impl WriteXdr for ExtendFootprintTtlResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -38527,7 +38566,7 @@ impl WriteXdr for RestoreFootprintResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -38663,7 +38702,7 @@ impl WriteXdr for RestoreFootprintResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -38851,7 +38890,7 @@ impl WriteXdr for OperationResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -39239,7 +39278,7 @@ impl WriteXdr for OperationResultTr { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -39406,7 +39445,7 @@ impl WriteXdr for OperationResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -39621,7 +39660,7 @@ impl WriteXdr for TransactionResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -39841,7 +39880,7 @@ impl WriteXdr for InnerTransactionResultResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -39974,7 +40013,7 @@ impl WriteXdr for InnerTransactionResultExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct InnerTransactionResult { @@ -40022,7 +40061,7 @@ impl WriteXdr for InnerTransactionResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct InnerTransactionResultPair { @@ -40089,7 +40128,7 @@ impl WriteXdr for InnerTransactionResultPair { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -40327,7 +40366,7 @@ impl WriteXdr for TransactionResultResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -40461,7 +40500,7 @@ impl WriteXdr for TransactionResultExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct TransactionResult { @@ -40505,7 +40544,11 @@ impl WriteXdr for TransactionResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] pub struct Hash(pub [u8; 32]); @@ -40623,7 +40666,11 @@ impl AsRef<[u8]> for Hash { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] pub struct Uint256(pub [u8; 32]); @@ -40773,7 +40820,7 @@ pub type Int64 = i64; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -40828,7 +40875,7 @@ impl WriteXdr for TimePoint { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -40888,7 +40935,7 @@ impl WriteXdr for Duration { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[allow(clippy::large_enum_variant)] @@ -40993,7 +41040,7 @@ impl WriteXdr for ExtensionPoint { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -41118,7 +41165,7 @@ impl WriteXdr for CryptoKeyType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -41222,7 +41269,7 @@ impl WriteXdr for PublicKeyType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[repr(i32)] @@ -41339,7 +41386,11 @@ impl WriteXdr for SignerKeyType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] #[allow(clippy::large_enum_variant)] pub enum PublicKey { @@ -41441,7 +41492,11 @@ impl WriteXdr for PublicKey { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] pub struct SignerKeyEd25519SignedPayload { pub ed25519: Uint256, @@ -41500,7 +41555,11 @@ impl WriteXdr for SignerKeyEd25519SignedPayload { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] #[allow(clippy::large_enum_variant)] pub enum SignerKey { @@ -41618,7 +41677,7 @@ impl WriteXdr for SignerKey { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] #[derive(Debug)] @@ -41722,7 +41781,11 @@ impl AsRef<[u8]> for Signature { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] pub struct SignatureHint(pub [u8; 4]); @@ -41840,7 +41903,11 @@ impl AsRef<[u8]> for SignatureHint { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] #[derive(Debug)] pub struct NodeId(pub PublicKey); @@ -41894,7 +41961,11 @@ impl WriteXdr for NodeId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) + derive( + serde_with::SerializeDisplay, + serde_with::DeserializeFromStr, + schemars::JsonSchema + ) )] #[derive(Debug)] pub struct AccountId(pub PublicKey); @@ -41951,7 +42022,7 @@ impl WriteXdr for AccountId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct Curve25519Secret { @@ -41992,7 +42063,7 @@ impl WriteXdr for Curve25519Secret { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct Curve25519Public { @@ -42033,7 +42104,7 @@ impl WriteXdr for Curve25519Public { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct HmacSha256Key { @@ -42074,7 +42145,7 @@ impl WriteXdr for HmacSha256Key { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub struct HmacSha256Mac { @@ -42105,7 +42176,7 @@ impl WriteXdr for HmacSha256Mac { #[derive(Clone, Copy, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case") )] pub enum TypeVariant { @@ -44267,7 +44338,7 @@ impl core::str::FromStr for TypeVariant { #[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize), + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), serde(rename_all = "snake_case"), serde(untagged) )] From 3a547ec3836b4e8eeb15f16b707853ea19d21266 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Mon, 4 Mar 2024 21:50:51 +1000 Subject: [PATCH 02/20] add test --- Cargo.toml | 1 + tests/serde_tx_schema.rs | 3434 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 3435 insertions(+) create mode 100644 tests/serde_tx_schema.rs diff --git a/Cargo.toml b/Cargo.toml index e29ae380..96c8f82e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,6 +33,7 @@ schemars = { version = "0.8.16", optional = true } [dev_dependencies] serde_json = "1.0.89" +schemars = "0.8.16" [features] default = ["std", "curr"] diff --git a/tests/serde_tx_schema.rs b/tests/serde_tx_schema.rs new file mode 100644 index 00000000..83757f0a --- /dev/null +++ b/tests/serde_tx_schema.rs @@ -0,0 +1,3434 @@ +#![cfg(feature = "curr")] +#![cfg(all(feature = "std", feature = "serde"))] + +use stellar_xdr::curr as stellar_xdr; +use stellar_xdr::TransactionEnvelope; + +#[cfg(feature = "curr")] +#[test] +fn test_serde_tx_schema() -> Result<(), Box> { + let schema = schemars::schema_for!(TransactionEnvelope); + let s = serde_json::to_string_pretty(&schema)?; + println!("{s}"); + assert_eq!( + s, + r##"{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "TransactionEnvelope", + "description": "TransactionEnvelope is an XDR Union defines as:\n\n```text union TransactionEnvelope switch (EnvelopeType type) { case ENVELOPE_TYPE_TX_V0: TransactionV0Envelope v0; case ENVELOPE_TYPE_TX: TransactionV1Envelope v1; case ENVELOPE_TYPE_TX_FEE_BUMP: FeeBumpTransactionEnvelope feeBump; }; ```", + "oneOf": [ + { + "type": "object", + "required": [ + "tx_v0" + ], + "properties": { + "tx_v0": { + "$ref": "#/definitions/TransactionV0Envelope" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "tx" + ], + "properties": { + "tx": { + "$ref": "#/definitions/TransactionV1Envelope" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "tx_fee_bump" + ], + "properties": { + "tx_fee_bump": { + "$ref": "#/definitions/FeeBumpTransactionEnvelope" + } + }, + "additionalProperties": false + } + ], + "definitions": { + "AccountId": { + "description": "AccountId is an XDR Typedef defines as:\n\n```text typedef PublicKey AccountID; ```", + "allOf": [ + { + "$ref": "#/definitions/PublicKey" + } + ] + }, + "AllowTrustOp": { + "description": "AllowTrustOp is an XDR Struct defines as:\n\n```text struct AllowTrustOp { AccountID trustor; AssetCode asset;\n\n// One of 0, AUTHORIZED_FLAG, or AUTHORIZED_TO_MAINTAIN_LIABILITIES_FLAG uint32 authorize; }; ```", + "type": "object", + "required": [ + "asset", + "authorize", + "trustor" + ], + "properties": { + "asset": { + "$ref": "#/definitions/AssetCode" + }, + "authorize": { + "type": "integer", + "format": "uint32", + "minimum": 0.0 + }, + "trustor": { + "$ref": "#/definitions/AccountId" + } + } + }, + "AlphaNum12": { + "description": "AlphaNum12 is an XDR Struct defines as:\n\n```text struct AlphaNum12 { AssetCode12 assetCode; AccountID issuer; }; ```", + "type": "object", + "required": [ + "asset_code", + "issuer" + ], + "properties": { + "asset_code": { + "$ref": "#/definitions/AssetCode12" + }, + "issuer": { + "$ref": "#/definitions/AccountId" + } + } + }, + "AlphaNum4": { + "description": "AlphaNum4 is an XDR Struct defines as:\n\n```text struct AlphaNum4 { AssetCode4 assetCode; AccountID issuer; }; ```", + "type": "object", + "required": [ + "asset_code", + "issuer" + ], + "properties": { + "asset_code": { + "$ref": "#/definitions/AssetCode4" + }, + "issuer": { + "$ref": "#/definitions/AccountId" + } + } + }, + "Asset": { + "description": "Asset is an XDR Union defines as:\n\n```text union Asset 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\n// add other asset types here in the future }; ```", + "oneOf": [ + { + "type": "string", + "enum": [ + "native" + ] + }, + { + "type": "object", + "required": [ + "credit_alphanum4" + ], + "properties": { + "credit_alphanum4": { + "$ref": "#/definitions/AlphaNum4" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "credit_alphanum12" + ], + "properties": { + "credit_alphanum12": { + "$ref": "#/definitions/AlphaNum12" + } + }, + "additionalProperties": false + } + ] + }, + "AssetCode": { + "description": "AssetCode is an XDR Union defines as:\n\n```text union AssetCode switch (AssetType type) { case ASSET_TYPE_CREDIT_ALPHANUM4: AssetCode4 assetCode4;\n\ncase ASSET_TYPE_CREDIT_ALPHANUM12: AssetCode12 assetCode12;\n\n// add other asset types here in the future }; ```", + "oneOf": [ + { + "type": "object", + "required": [ + "CreditAlphanum4" + ], + "properties": { + "CreditAlphanum4": { + "$ref": "#/definitions/AssetCode4" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "CreditAlphanum12" + ], + "properties": { + "CreditAlphanum12": { + "$ref": "#/definitions/AssetCode12" + } + }, + "additionalProperties": false + } + ] + }, + "AssetCode12": { + "description": "AssetCode12 is an XDR Typedef defines as:\n\n```text typedef opaque AssetCode12[12]; ```", + "type": "array", + "items": { + "type": "integer", + "format": "uint8", + "minimum": 0.0 + }, + "maxItems": 12, + "minItems": 12 + }, + "AssetCode4": { + "description": "AssetCode4 is an XDR Typedef defines as:\n\n```text typedef opaque AssetCode4[4]; ```", + "type": "array", + "items": { + "type": "integer", + "format": "uint8", + "minimum": 0.0 + }, + "maxItems": 4, + "minItems": 4 + }, + "BeginSponsoringFutureReservesOp": { + "description": "BeginSponsoringFutureReservesOp is an XDR Struct defines as:\n\n```text struct BeginSponsoringFutureReservesOp { AccountID sponsoredID; }; ```", + "type": "object", + "required": [ + "sponsored_id" + ], + "properties": { + "sponsored_id": { + "$ref": "#/definitions/AccountId" + } + } + }, + "BumpSequenceOp": { + "description": "BumpSequenceOp is an XDR Struct defines as:\n\n```text struct BumpSequenceOp { SequenceNumber bumpTo; }; ```", + "type": "object", + "required": [ + "bump_to" + ], + "properties": { + "bump_to": { + "$ref": "#/definitions/SequenceNumber" + } + } + }, + "BytesM_for_4294967295": { + "type": "array", + "items": { + "type": "integer", + "format": "uint8", + "minimum": 0.0 + } + }, + "BytesM_for_64": { + "type": "array", + "items": { + "type": "integer", + "format": "uint8", + "minimum": 0.0 + } + }, + "ChangeTrustAsset": { + "description": "ChangeTrustAsset is an XDR Union defines as:\n\n```text union ChangeTrustAsset 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: LiquidityPoolParameters liquidityPool;\n\n// add other asset types here in the future }; ```", + "oneOf": [ + { + "type": "string", + "enum": [ + "native" + ] + }, + { + "type": "object", + "required": [ + "credit_alphanum4" + ], + "properties": { + "credit_alphanum4": { + "$ref": "#/definitions/AlphaNum4" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "credit_alphanum12" + ], + "properties": { + "credit_alphanum12": { + "$ref": "#/definitions/AlphaNum12" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "pool_share" + ], + "properties": { + "pool_share": { + "$ref": "#/definitions/LiquidityPoolParameters" + } + }, + "additionalProperties": false + } + ] + }, + "ChangeTrustOp": { + "description": "ChangeTrustOp is an XDR Struct defines as:\n\n```text struct ChangeTrustOp { ChangeTrustAsset line;\n\n// if limit is set to 0, deletes the trust line int64 limit; }; ```", + "type": "object", + "required": [ + "limit", + "line" + ], + "properties": { + "limit": { + "type": "integer", + "format": "int64" + }, + "line": { + "$ref": "#/definitions/ChangeTrustAsset" + } + } + }, + "ClaimClaimableBalanceOp": { + "description": "ClaimClaimableBalanceOp is an XDR Struct defines as:\n\n```text struct ClaimClaimableBalanceOp { ClaimableBalanceID balanceID; }; ```", + "type": "object", + "required": [ + "balance_id" + ], + "properties": { + "balance_id": { + "$ref": "#/definitions/ClaimableBalanceId" + } + } + }, + "ClaimPredicate": { + "description": "ClaimPredicate is an XDR Union defines as:\n\n```text union ClaimPredicate switch (ClaimPredicateType type) { case CLAIM_PREDICATE_UNCONDITIONAL: void; case CLAIM_PREDICATE_AND: ClaimPredicate andPredicates<2>; case CLAIM_PREDICATE_OR: ClaimPredicate orPredicates<2>; case CLAIM_PREDICATE_NOT: ClaimPredicate* notPredicate; case CLAIM_PREDICATE_BEFORE_ABSOLUTE_TIME: int64 absBefore; // Predicate will be true if closeTime < absBefore case CLAIM_PREDICATE_BEFORE_RELATIVE_TIME: int64 relBefore; // Seconds since closeTime of the ledger in which the // ClaimableBalanceEntry was created }; ```", + "oneOf": [ + { + "type": "string", + "enum": [ + "unconditional" + ] + }, + { + "type": "object", + "required": [ + "and" + ], + "properties": { + "and": { + "$ref": "#/definitions/VecM_for_ClaimPredicate_and_2" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "or" + ], + "properties": { + "or": { + "$ref": "#/definitions/VecM_for_ClaimPredicate_and_2" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "not" + ], + "properties": { + "not": { + "anyOf": [ + { + "$ref": "#/definitions/ClaimPredicate" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "before_absolute_time" + ], + "properties": { + "before_absolute_time": { + "type": "integer", + "format": "int64" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "before_relative_time" + ], + "properties": { + "before_relative_time": { + "type": "integer", + "format": "int64" + } + }, + "additionalProperties": false + } + ] + }, + "ClaimableBalanceId": { + "description": "ClaimableBalanceId is an XDR Union defines as:\n\n```text union ClaimableBalanceID switch (ClaimableBalanceIDType type) { case CLAIMABLE_BALANCE_ID_TYPE_V0: Hash v0; }; ```", + "oneOf": [ + { + "type": "object", + "required": [ + "claimable_balance_id_type_v0" + ], + "properties": { + "claimable_balance_id_type_v0": { + "$ref": "#/definitions/Hash" + } + }, + "additionalProperties": false + } + ] + }, + "Claimant": { + "description": "Claimant is an XDR Union defines as:\n\n```text union Claimant switch (ClaimantType type) { case CLAIMANT_TYPE_V0: struct { AccountID destination; // The account that can use this condition ClaimPredicate predicate; // Claimable if predicate is true } v0; }; ```", + "oneOf": [ + { + "type": "object", + "required": [ + "claimant_type_v0" + ], + "properties": { + "claimant_type_v0": { + "$ref": "#/definitions/ClaimantV0" + } + }, + "additionalProperties": false + } + ] + }, + "ClaimantV0": { + "description": "ClaimantV0 is an XDR NestedStruct defines as:\n\n```text struct { AccountID destination; // The account that can use this condition ClaimPredicate predicate; // Claimable if predicate is true } ```", + "type": "object", + "required": [ + "destination", + "predicate" + ], + "properties": { + "destination": { + "$ref": "#/definitions/AccountId" + }, + "predicate": { + "$ref": "#/definitions/ClaimPredicate" + } + } + }, + "ClawbackClaimableBalanceOp": { + "description": "ClawbackClaimableBalanceOp is an XDR Struct defines as:\n\n```text struct ClawbackClaimableBalanceOp { ClaimableBalanceID balanceID; }; ```", + "type": "object", + "required": [ + "balance_id" + ], + "properties": { + "balance_id": { + "$ref": "#/definitions/ClaimableBalanceId" + } + } + }, + "ClawbackOp": { + "description": "ClawbackOp is an XDR Struct defines as:\n\n```text struct ClawbackOp { Asset asset; MuxedAccount from; int64 amount; }; ```", + "type": "object", + "required": [ + "amount", + "asset", + "from" + ], + "properties": { + "amount": { + "type": "integer", + "format": "int64" + }, + "asset": { + "$ref": "#/definitions/Asset" + }, + "from": { + "$ref": "#/definitions/MuxedAccount" + } + } + }, + "ConfigSettingId": { + "description": "ConfigSettingId is an XDR Enum defines as:\n\n```text enum ConfigSettingID { CONFIG_SETTING_CONTRACT_MAX_SIZE_BYTES = 0, CONFIG_SETTING_CONTRACT_COMPUTE_V0 = 1, CONFIG_SETTING_CONTRACT_LEDGER_COST_V0 = 2, CONFIG_SETTING_CONTRACT_HISTORICAL_DATA_V0 = 3, CONFIG_SETTING_CONTRACT_EVENTS_V0 = 4, CONFIG_SETTING_CONTRACT_BANDWIDTH_V0 = 5, CONFIG_SETTING_CONTRACT_COST_PARAMS_CPU_INSTRUCTIONS = 6, CONFIG_SETTING_CONTRACT_COST_PARAMS_MEMORY_BYTES = 7, CONFIG_SETTING_CONTRACT_DATA_KEY_SIZE_BYTES = 8, CONFIG_SETTING_CONTRACT_DATA_ENTRY_SIZE_BYTES = 9, CONFIG_SETTING_STATE_ARCHIVAL = 10, CONFIG_SETTING_CONTRACT_EXECUTION_LANES = 11, CONFIG_SETTING_BUCKETLIST_SIZE_WINDOW = 12, CONFIG_SETTING_EVICTION_ITERATOR = 13 }; ```", + "type": "string", + "enum": [ + "contract_max_size_bytes", + "contract_compute_v0", + "contract_ledger_cost_v0", + "contract_historical_data_v0", + "contract_events_v0", + "contract_bandwidth_v0", + "contract_cost_params_cpu_instructions", + "contract_cost_params_memory_bytes", + "contract_data_key_size_bytes", + "contract_data_entry_size_bytes", + "state_archival", + "contract_execution_lanes", + "bucketlist_size_window", + "eviction_iterator" + ] + }, + "ContractDataDurability": { + "description": "ContractDataDurability is an XDR Enum defines as:\n\n```text enum ContractDataDurability { TEMPORARY = 0, PERSISTENT = 1 }; ```", + "type": "string", + "enum": [ + "temporary", + "persistent" + ] + }, + "ContractExecutable": { + "description": "ContractExecutable is an XDR Union defines as:\n\n```text union ContractExecutable switch (ContractExecutableType type) { case CONTRACT_EXECUTABLE_WASM: Hash wasm_hash; case CONTRACT_EXECUTABLE_STELLAR_ASSET: void; }; ```", + "oneOf": [ + { + "type": "string", + "enum": [ + "stellar_asset" + ] + }, + { + "type": "object", + "required": [ + "wasm" + ], + "properties": { + "wasm": { + "$ref": "#/definitions/Hash" + } + }, + "additionalProperties": false + } + ] + }, + "ContractIdPreimage": { + "description": "ContractIdPreimage is an XDR Union defines as:\n\n```text union ContractIDPreimage switch (ContractIDPreimageType type) { case CONTRACT_ID_PREIMAGE_FROM_ADDRESS: struct { SCAddress address; uint256 salt; } fromAddress; case CONTRACT_ID_PREIMAGE_FROM_ASSET: Asset fromAsset; }; ```", + "oneOf": [ + { + "type": "object", + "required": [ + "address" + ], + "properties": { + "address": { + "$ref": "#/definitions/ContractIdPreimageFromAddress" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "asset" + ], + "properties": { + "asset": { + "$ref": "#/definitions/Asset" + } + }, + "additionalProperties": false + } + ] + }, + "ContractIdPreimageFromAddress": { + "description": "ContractIdPreimageFromAddress is an XDR NestedStruct defines as:\n\n```text struct { SCAddress address; uint256 salt; } ```", + "type": "object", + "required": [ + "address", + "salt" + ], + "properties": { + "address": { + "$ref": "#/definitions/ScAddress" + }, + "salt": { + "$ref": "#/definitions/Uint256" + } + } + }, + "CreateAccountOp": { + "description": "CreateAccountOp is an XDR Struct defines as:\n\n```text struct CreateAccountOp { AccountID destination; // account to create int64 startingBalance; // amount they end up with }; ```", + "type": "object", + "required": [ + "destination", + "starting_balance" + ], + "properties": { + "destination": { + "$ref": "#/definitions/AccountId" + }, + "starting_balance": { + "type": "integer", + "format": "int64" + } + } + }, + "CreateClaimableBalanceOp": { + "description": "CreateClaimableBalanceOp is an XDR Struct defines as:\n\n```text struct CreateClaimableBalanceOp { Asset asset; int64 amount; Claimant claimants<10>; }; ```", + "type": "object", + "required": [ + "amount", + "asset", + "claimants" + ], + "properties": { + "amount": { + "type": "integer", + "format": "int64" + }, + "asset": { + "$ref": "#/definitions/Asset" + }, + "claimants": { + "$ref": "#/definitions/VecM_for_Claimant_and_10" + } + } + }, + "CreateContractArgs": { + "description": "CreateContractArgs is an XDR Struct defines as:\n\n```text struct CreateContractArgs { ContractIDPreimage contractIDPreimage; ContractExecutable executable; }; ```", + "type": "object", + "required": [ + "contract_id_preimage", + "executable" + ], + "properties": { + "contract_id_preimage": { + "$ref": "#/definitions/ContractIdPreimage" + }, + "executable": { + "$ref": "#/definitions/ContractExecutable" + } + } + }, + "CreatePassiveSellOfferOp": { + "description": "CreatePassiveSellOfferOp is an XDR Struct defines as:\n\n```text struct CreatePassiveSellOfferOp { Asset selling; // A Asset buying; // B int64 amount; // amount taker gets Price price; // cost of A in terms of B }; ```", + "type": "object", + "required": [ + "amount", + "buying", + "price", + "selling" + ], + "properties": { + "amount": { + "type": "integer", + "format": "int64" + }, + "buying": { + "$ref": "#/definitions/Asset" + }, + "price": { + "$ref": "#/definitions/Price" + }, + "selling": { + "$ref": "#/definitions/Asset" + } + } + }, + "DataValue": { + "description": "DataValue is an XDR Typedef defines as:\n\n```text typedef opaque DataValue<64>; ```", + "allOf": [ + { + "$ref": "#/definitions/BytesM_for_64" + } + ] + }, + "DecoratedSignature": { + "description": "DecoratedSignature is an XDR Struct defines as:\n\n```text struct DecoratedSignature { SignatureHint hint; // last 4 bytes of the public key, used as a hint Signature signature; // actual signature }; ```", + "type": "object", + "required": [ + "hint", + "signature" + ], + "properties": { + "hint": { + "$ref": "#/definitions/SignatureHint" + }, + "signature": { + "$ref": "#/definitions/Signature" + } + } + }, + "Duration": { + "description": "Duration is an XDR Typedef defines as:\n\n```text typedef uint64 Duration; ```", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + }, + "ExtendFootprintTtlOp": { + "description": "ExtendFootprintTtlOp is an XDR Struct defines as:\n\n```text struct ExtendFootprintTTLOp { ExtensionPoint ext; uint32 extendTo; }; ```", + "type": "object", + "required": [ + "ext", + "extend_to" + ], + "properties": { + "ext": { + "$ref": "#/definitions/ExtensionPoint" + }, + "extend_to": { + "type": "integer", + "format": "uint32", + "minimum": 0.0 + } + } + }, + "ExtensionPoint": { + "description": "ExtensionPoint is an XDR Union defines as:\n\n```text union ExtensionPoint switch (int v) { case 0: void; }; ```", + "type": "string", + "enum": [ + "v0" + ] + }, + "FeeBumpTransaction": { + "description": "FeeBumpTransaction is an XDR Struct defines as:\n\n```text struct FeeBumpTransaction { MuxedAccount feeSource; int64 fee; union switch (EnvelopeType type) { case ENVELOPE_TYPE_TX: TransactionV1Envelope v1; } innerTx; union switch (int v) { case 0: void; } ext; }; ```", + "type": "object", + "required": [ + "ext", + "fee", + "fee_source", + "inner_tx" + ], + "properties": { + "ext": { + "$ref": "#/definitions/FeeBumpTransactionExt" + }, + "fee": { + "type": "integer", + "format": "int64" + }, + "fee_source": { + "$ref": "#/definitions/MuxedAccount" + }, + "inner_tx": { + "$ref": "#/definitions/FeeBumpTransactionInnerTx" + } + } + }, + "FeeBumpTransactionEnvelope": { + "description": "FeeBumpTransactionEnvelope is an XDR Struct defines as:\n\n```text struct FeeBumpTransactionEnvelope { FeeBumpTransaction tx; /* Each decorated signature is a signature over the SHA256 hash of * a TransactionSignaturePayload */ DecoratedSignature signatures<20>; }; ```", + "type": "object", + "required": [ + "signatures", + "tx" + ], + "properties": { + "signatures": { + "$ref": "#/definitions/VecM_for_DecoratedSignature_and_20" + }, + "tx": { + "$ref": "#/definitions/FeeBumpTransaction" + } + } + }, + "FeeBumpTransactionExt": { + "description": "FeeBumpTransactionExt is an XDR NestedUnion defines as:\n\n```text union switch (int v) { case 0: void; } ```", + "type": "string", + "enum": [ + "v0" + ] + }, + "FeeBumpTransactionInnerTx": { + "description": "FeeBumpTransactionInnerTx is an XDR NestedUnion defines as:\n\n```text union switch (EnvelopeType type) { case ENVELOPE_TYPE_TX: TransactionV1Envelope v1; } ```", + "oneOf": [ + { + "type": "object", + "required": [ + "tx" + ], + "properties": { + "tx": { + "$ref": "#/definitions/TransactionV1Envelope" + } + }, + "additionalProperties": false + } + ] + }, + "Hash": { + "description": "Hash is an XDR Typedef defines as:\n\n```text typedef opaque Hash[32]; ```", + "type": "array", + "items": { + "type": "integer", + "format": "uint8", + "minimum": 0.0 + }, + "maxItems": 32, + "minItems": 32 + }, + "HostFunction": { + "description": "HostFunction is an XDR Union defines as:\n\n```text union HostFunction switch (HostFunctionType type) { case HOST_FUNCTION_TYPE_INVOKE_CONTRACT: InvokeContractArgs invokeContract; case HOST_FUNCTION_TYPE_CREATE_CONTRACT: CreateContractArgs createContract; case HOST_FUNCTION_TYPE_UPLOAD_CONTRACT_WASM: opaque wasm<>; }; ```", + "oneOf": [ + { + "type": "object", + "required": [ + "invoke_contract" + ], + "properties": { + "invoke_contract": { + "$ref": "#/definitions/InvokeContractArgs" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "create_contract" + ], + "properties": { + "create_contract": { + "$ref": "#/definitions/CreateContractArgs" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "upload_contract_wasm" + ], + "properties": { + "upload_contract_wasm": { + "$ref": "#/definitions/BytesM_for_4294967295" + } + }, + "additionalProperties": false + } + ] + }, + "Int128Parts": { + "description": "Int128Parts is an XDR Struct defines as:\n\n```text struct Int128Parts { int64 hi; uint64 lo; }; ```", + "type": "object", + "required": [ + "hi", + "lo" + ], + "properties": { + "hi": { + "type": "integer", + "format": "int64" + }, + "lo": { + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + } + }, + "Int256Parts": { + "description": "Int256Parts is an XDR Struct defines as:\n\n```text struct Int256Parts { int64 hi_hi; uint64 hi_lo; uint64 lo_hi; uint64 lo_lo; }; ```", + "type": "object", + "required": [ + "hi_hi", + "hi_lo", + "lo_hi", + "lo_lo" + ], + "properties": { + "hi_hi": { + "type": "integer", + "format": "int64" + }, + "hi_lo": { + "type": "integer", + "format": "uint64", + "minimum": 0.0 + }, + "lo_hi": { + "type": "integer", + "format": "uint64", + "minimum": 0.0 + }, + "lo_lo": { + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + } + }, + "InvokeContractArgs": { + "description": "InvokeContractArgs is an XDR Struct defines as:\n\n```text struct InvokeContractArgs { SCAddress contractAddress; SCSymbol functionName; SCVal args<>; }; ```", + "type": "object", + "required": [ + "args", + "contract_address", + "function_name" + ], + "properties": { + "args": { + "$ref": "#/definitions/VecM_for_ScVal_and_4294967295" + }, + "contract_address": { + "$ref": "#/definitions/ScAddress" + }, + "function_name": { + "$ref": "#/definitions/ScSymbol" + } + } + }, + "InvokeHostFunctionOp": { + "description": "InvokeHostFunctionOp is an XDR Struct defines as:\n\n```text struct InvokeHostFunctionOp { // Host function to invoke. HostFunction hostFunction; // Per-address authorizations for this host function. SorobanAuthorizationEntry auth<>; }; ```", + "type": "object", + "required": [ + "auth", + "host_function" + ], + "properties": { + "auth": { + "$ref": "#/definitions/VecM_for_SorobanAuthorizationEntry_and_4294967295" + }, + "host_function": { + "$ref": "#/definitions/HostFunction" + } + } + }, + "LedgerBounds": { + "description": "LedgerBounds is an XDR Struct defines as:\n\n```text struct LedgerBounds { uint32 minLedger; uint32 maxLedger; // 0 here means no maxLedger }; ```", + "type": "object", + "required": [ + "max_ledger", + "min_ledger" + ], + "properties": { + "max_ledger": { + "type": "integer", + "format": "uint32", + "minimum": 0.0 + }, + "min_ledger": { + "type": "integer", + "format": "uint32", + "minimum": 0.0 + } + } + }, + "LedgerFootprint": { + "description": "LedgerFootprint is an XDR Struct defines as:\n\n```text struct LedgerFootprint { LedgerKey readOnly<>; LedgerKey readWrite<>; }; ```", + "type": "object", + "required": [ + "read_only", + "read_write" + ], + "properties": { + "read_only": { + "$ref": "#/definitions/VecM_for_LedgerKey_and_4294967295" + }, + "read_write": { + "$ref": "#/definitions/VecM_for_LedgerKey_and_4294967295" + } + } + }, + "LedgerKey": { + "description": "LedgerKey is an XDR Union defines as:\n\n```text union LedgerKey switch (LedgerEntryType type) { case ACCOUNT: struct { AccountID accountID; } account;\n\ncase TRUSTLINE: struct { AccountID accountID; TrustLineAsset asset; } trustLine;\n\ncase OFFER: struct { AccountID sellerID; int64 offerID; } offer;\n\ncase DATA: struct { AccountID accountID; string64 dataName; } data;\n\ncase CLAIMABLE_BALANCE: struct { ClaimableBalanceID balanceID; } claimableBalance;\n\ncase LIQUIDITY_POOL: struct { PoolID liquidityPoolID; } liquidityPool; case CONTRACT_DATA: struct { SCAddress contract; SCVal key; ContractDataDurability durability; } contractData; case CONTRACT_CODE: struct { Hash hash; } contractCode; case CONFIG_SETTING: struct { ConfigSettingID configSettingID; } configSetting; case TTL: struct { // Hash of the LedgerKey that is associated with this TTLEntry Hash keyHash; } ttl; }; ```", + "oneOf": [ + { + "type": "object", + "required": [ + "account" + ], + "properties": { + "account": { + "$ref": "#/definitions/LedgerKeyAccount" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "trustline" + ], + "properties": { + "trustline": { + "$ref": "#/definitions/LedgerKeyTrustLine" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "offer" + ], + "properties": { + "offer": { + "$ref": "#/definitions/LedgerKeyOffer" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "data" + ], + "properties": { + "data": { + "$ref": "#/definitions/LedgerKeyData" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "claimable_balance" + ], + "properties": { + "claimable_balance": { + "$ref": "#/definitions/LedgerKeyClaimableBalance" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "liquidity_pool" + ], + "properties": { + "liquidity_pool": { + "$ref": "#/definitions/LedgerKeyLiquidityPool" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "contract_data" + ], + "properties": { + "contract_data": { + "$ref": "#/definitions/LedgerKeyContractData" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "contract_code" + ], + "properties": { + "contract_code": { + "$ref": "#/definitions/LedgerKeyContractCode" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "config_setting" + ], + "properties": { + "config_setting": { + "$ref": "#/definitions/LedgerKeyConfigSetting" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "ttl" + ], + "properties": { + "ttl": { + "$ref": "#/definitions/LedgerKeyTtl" + } + }, + "additionalProperties": false + } + ] + }, + "LedgerKeyAccount": { + "description": "LedgerKeyAccount is an XDR NestedStruct defines as:\n\n```text struct { AccountID accountID; } ```", + "type": "object", + "required": [ + "account_id" + ], + "properties": { + "account_id": { + "$ref": "#/definitions/AccountId" + } + } + }, + "LedgerKeyClaimableBalance": { + "description": "LedgerKeyClaimableBalance is an XDR NestedStruct defines as:\n\n```text struct { ClaimableBalanceID balanceID; } ```", + "type": "object", + "required": [ + "balance_id" + ], + "properties": { + "balance_id": { + "$ref": "#/definitions/ClaimableBalanceId" + } + } + }, + "LedgerKeyConfigSetting": { + "description": "LedgerKeyConfigSetting is an XDR NestedStruct defines as:\n\n```text struct { ConfigSettingID configSettingID; } ```", + "type": "object", + "required": [ + "config_setting_id" + ], + "properties": { + "config_setting_id": { + "$ref": "#/definitions/ConfigSettingId" + } + } + }, + "LedgerKeyContractCode": { + "description": "LedgerKeyContractCode is an XDR NestedStruct defines as:\n\n```text struct { Hash hash; } ```", + "type": "object", + "required": [ + "hash" + ], + "properties": { + "hash": { + "$ref": "#/definitions/Hash" + } + } + }, + "LedgerKeyContractData": { + "description": "LedgerKeyContractData is an XDR NestedStruct defines as:\n\n```text struct { SCAddress contract; SCVal key; ContractDataDurability durability; } ```", + "type": "object", + "required": [ + "contract", + "durability", + "key" + ], + "properties": { + "contract": { + "$ref": "#/definitions/ScAddress" + }, + "durability": { + "$ref": "#/definitions/ContractDataDurability" + }, + "key": { + "$ref": "#/definitions/ScVal" + } + } + }, + "LedgerKeyData": { + "description": "LedgerKeyData is an XDR NestedStruct defines as:\n\n```text struct { AccountID accountID; string64 dataName; } ```", + "type": "object", + "required": [ + "account_id", + "data_name" + ], + "properties": { + "account_id": { + "$ref": "#/definitions/AccountId" + }, + "data_name": { + "$ref": "#/definitions/String64" + } + } + }, + "LedgerKeyLiquidityPool": { + "description": "LedgerKeyLiquidityPool is an XDR NestedStruct defines as:\n\n```text struct { PoolID liquidityPoolID; } ```", + "type": "object", + "required": [ + "liquidity_pool_id" + ], + "properties": { + "liquidity_pool_id": { + "$ref": "#/definitions/PoolId" + } + } + }, + "LedgerKeyOffer": { + "description": "LedgerKeyOffer is an XDR NestedStruct defines as:\n\n```text struct { AccountID sellerID; int64 offerID; } ```", + "type": "object", + "required": [ + "offer_id", + "seller_id" + ], + "properties": { + "offer_id": { + "type": "integer", + "format": "int64" + }, + "seller_id": { + "$ref": "#/definitions/AccountId" + } + } + }, + "LedgerKeyTrustLine": { + "description": "LedgerKeyTrustLine is an XDR NestedStruct defines as:\n\n```text struct { AccountID accountID; TrustLineAsset asset; } ```", + "type": "object", + "required": [ + "account_id", + "asset" + ], + "properties": { + "account_id": { + "$ref": "#/definitions/AccountId" + }, + "asset": { + "$ref": "#/definitions/TrustLineAsset" + } + } + }, + "LedgerKeyTtl": { + "description": "LedgerKeyTtl is an XDR NestedStruct defines as:\n\n```text struct { // Hash of the LedgerKey that is associated with this TTLEntry Hash keyHash; } ```", + "type": "object", + "required": [ + "key_hash" + ], + "properties": { + "key_hash": { + "$ref": "#/definitions/Hash" + } + } + }, + "LiquidityPoolConstantProductParameters": { + "description": "LiquidityPoolConstantProductParameters is an XDR Struct defines as:\n\n```text struct LiquidityPoolConstantProductParameters { Asset assetA; // assetA < assetB Asset assetB; int32 fee; // Fee is in basis points, so the actual rate is (fee/100)% }; ```", + "type": "object", + "required": [ + "asset_a", + "asset_b", + "fee" + ], + "properties": { + "asset_a": { + "$ref": "#/definitions/Asset" + }, + "asset_b": { + "$ref": "#/definitions/Asset" + }, + "fee": { + "type": "integer", + "format": "int32" + } + } + }, + "LiquidityPoolDepositOp": { + "description": "LiquidityPoolDepositOp is an XDR Struct defines as:\n\n```text struct LiquidityPoolDepositOp { PoolID liquidityPoolID; int64 maxAmountA; // maximum amount of first asset to deposit int64 maxAmountB; // maximum amount of second asset to deposit Price minPrice; // minimum depositA/depositB Price maxPrice; // maximum depositA/depositB }; ```", + "type": "object", + "required": [ + "liquidity_pool_id", + "max_amount_a", + "max_amount_b", + "max_price", + "min_price" + ], + "properties": { + "liquidity_pool_id": { + "$ref": "#/definitions/PoolId" + }, + "max_amount_a": { + "type": "integer", + "format": "int64" + }, + "max_amount_b": { + "type": "integer", + "format": "int64" + }, + "max_price": { + "$ref": "#/definitions/Price" + }, + "min_price": { + "$ref": "#/definitions/Price" + } + } + }, + "LiquidityPoolParameters": { + "description": "LiquidityPoolParameters is an XDR Union defines as:\n\n```text union LiquidityPoolParameters switch (LiquidityPoolType type) { case LIQUIDITY_POOL_CONSTANT_PRODUCT: LiquidityPoolConstantProductParameters constantProduct; }; ```", + "oneOf": [ + { + "type": "object", + "required": [ + "liquidity_pool_constant_product" + ], + "properties": { + "liquidity_pool_constant_product": { + "$ref": "#/definitions/LiquidityPoolConstantProductParameters" + } + }, + "additionalProperties": false + } + ] + }, + "LiquidityPoolWithdrawOp": { + "description": "LiquidityPoolWithdrawOp is an XDR Struct defines as:\n\n```text struct LiquidityPoolWithdrawOp { PoolID liquidityPoolID; int64 amount; // amount of pool shares to withdraw int64 minAmountA; // minimum amount of first asset to withdraw int64 minAmountB; // minimum amount of second asset to withdraw }; ```", + "type": "object", + "required": [ + "amount", + "liquidity_pool_id", + "min_amount_a", + "min_amount_b" + ], + "properties": { + "amount": { + "type": "integer", + "format": "int64" + }, + "liquidity_pool_id": { + "$ref": "#/definitions/PoolId" + }, + "min_amount_a": { + "type": "integer", + "format": "int64" + }, + "min_amount_b": { + "type": "integer", + "format": "int64" + } + } + }, + "ManageBuyOfferOp": { + "description": "ManageBuyOfferOp is an XDR Struct defines as:\n\n```text struct ManageBuyOfferOp { Asset selling; Asset buying; int64 buyAmount; // amount being bought. if set to 0, delete the offer Price price; // price of thing being bought in terms of what you are // selling\n\n// 0=create a new offer, otherwise edit an existing offer int64 offerID; }; ```", + "type": "object", + "required": [ + "buy_amount", + "buying", + "offer_id", + "price", + "selling" + ], + "properties": { + "buy_amount": { + "type": "integer", + "format": "int64" + }, + "buying": { + "$ref": "#/definitions/Asset" + }, + "offer_id": { + "type": "integer", + "format": "int64" + }, + "price": { + "$ref": "#/definitions/Price" + }, + "selling": { + "$ref": "#/definitions/Asset" + } + } + }, + "ManageDataOp": { + "description": "ManageDataOp is an XDR Struct defines as:\n\n```text struct ManageDataOp { string64 dataName; DataValue* dataValue; // set to null to clear }; ```", + "type": "object", + "required": [ + "data_name" + ], + "properties": { + "data_name": { + "$ref": "#/definitions/String64" + }, + "data_value": { + "anyOf": [ + { + "$ref": "#/definitions/DataValue" + }, + { + "type": "null" + } + ] + } + } + }, + "ManageSellOfferOp": { + "description": "ManageSellOfferOp is an XDR Struct defines as:\n\n```text struct ManageSellOfferOp { Asset selling; Asset buying; int64 amount; // amount being sold. if set to 0, delete the offer Price price; // price of thing being sold in terms of what you are buying\n\n// 0=create a new offer, otherwise edit an existing offer int64 offerID; }; ```", + "type": "object", + "required": [ + "amount", + "buying", + "offer_id", + "price", + "selling" + ], + "properties": { + "amount": { + "type": "integer", + "format": "int64" + }, + "buying": { + "$ref": "#/definitions/Asset" + }, + "offer_id": { + "type": "integer", + "format": "int64" + }, + "price": { + "$ref": "#/definitions/Price" + }, + "selling": { + "$ref": "#/definitions/Asset" + } + } + }, + "Memo": { + "description": "Memo is an XDR Union defines as:\n\n```text union Memo switch (MemoType type) { case MEMO_NONE: void; case MEMO_TEXT: string text<28>; case MEMO_ID: uint64 id; case MEMO_HASH: Hash hash; // the hash of what to pull from the content server case MEMO_RETURN: Hash retHash; // the hash of the tx you are rejecting }; ```", + "oneOf": [ + { + "type": "string", + "enum": [ + "none" + ] + }, + { + "type": "object", + "required": [ + "text" + ], + "properties": { + "text": { + "$ref": "#/definitions/StringM_for_28" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "hash" + ], + "properties": { + "hash": { + "$ref": "#/definitions/Hash" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "return" + ], + "properties": { + "return": { + "$ref": "#/definitions/Hash" + } + }, + "additionalProperties": false + } + ] + }, + "MuxedAccount": { + "description": "MuxedAccount is an XDR Union defines as:\n\n```text union MuxedAccount switch (CryptoKeyType type) { case KEY_TYPE_ED25519: uint256 ed25519; case KEY_TYPE_MUXED_ED25519: struct { uint64 id; uint256 ed25519; } med25519; }; ```", + "oneOf": [ + { + "type": "object", + "required": [ + "Ed25519" + ], + "properties": { + "Ed25519": { + "$ref": "#/definitions/Uint256" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "MuxedEd25519" + ], + "properties": { + "MuxedEd25519": { + "$ref": "#/definitions/MuxedAccountMed25519" + } + }, + "additionalProperties": false + } + ] + }, + "MuxedAccountMed25519": { + "description": "MuxedAccountMed25519 is an XDR NestedStruct defines as:\n\n```text struct { uint64 id; uint256 ed25519; } ```", + "type": "object", + "required": [ + "ed25519", + "id" + ], + "properties": { + "ed25519": { + "$ref": "#/definitions/Uint256" + }, + "id": { + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + } + }, + "Operation": { + "description": "Operation is an XDR Struct defines as:\n\n```text struct Operation { // sourceAccount is the account used to run the operation // if not set, the runtime defaults to \"sourceAccount\" specified at // the transaction level MuxedAccount* sourceAccount;\n\nunion switch (OperationType type) { case CREATE_ACCOUNT: CreateAccountOp createAccountOp; case PAYMENT: PaymentOp paymentOp; case PATH_PAYMENT_STRICT_RECEIVE: PathPaymentStrictReceiveOp pathPaymentStrictReceiveOp; case MANAGE_SELL_OFFER: ManageSellOfferOp manageSellOfferOp; case CREATE_PASSIVE_SELL_OFFER: CreatePassiveSellOfferOp createPassiveSellOfferOp; case SET_OPTIONS: SetOptionsOp setOptionsOp; case CHANGE_TRUST: ChangeTrustOp changeTrustOp; case ALLOW_TRUST: AllowTrustOp allowTrustOp; case ACCOUNT_MERGE: MuxedAccount destination; case INFLATION: void; case MANAGE_DATA: ManageDataOp manageDataOp; case BUMP_SEQUENCE: BumpSequenceOp bumpSequenceOp; case MANAGE_BUY_OFFER: ManageBuyOfferOp manageBuyOfferOp; case PATH_PAYMENT_STRICT_SEND: PathPaymentStrictSendOp pathPaymentStrictSendOp; case CREATE_CLAIMABLE_BALANCE: CreateClaimableBalanceOp createClaimableBalanceOp; case CLAIM_CLAIMABLE_BALANCE: ClaimClaimableBalanceOp claimClaimableBalanceOp; case BEGIN_SPONSORING_FUTURE_RESERVES: BeginSponsoringFutureReservesOp beginSponsoringFutureReservesOp; case END_SPONSORING_FUTURE_RESERVES: void; case REVOKE_SPONSORSHIP: RevokeSponsorshipOp revokeSponsorshipOp; case CLAWBACK: ClawbackOp clawbackOp; case CLAWBACK_CLAIMABLE_BALANCE: ClawbackClaimableBalanceOp clawbackClaimableBalanceOp; case SET_TRUST_LINE_FLAGS: SetTrustLineFlagsOp setTrustLineFlagsOp; case LIQUIDITY_POOL_DEPOSIT: LiquidityPoolDepositOp liquidityPoolDepositOp; case LIQUIDITY_POOL_WITHDRAW: LiquidityPoolWithdrawOp liquidityPoolWithdrawOp; case INVOKE_HOST_FUNCTION: InvokeHostFunctionOp invokeHostFunctionOp; case EXTEND_FOOTPRINT_TTL: ExtendFootprintTTLOp extendFootprintTTLOp; case RESTORE_FOOTPRINT: RestoreFootprintOp restoreFootprintOp; } body; }; ```", + "type": "object", + "required": [ + "body" + ], + "properties": { + "body": { + "$ref": "#/definitions/OperationBody" + }, + "source_account": { + "anyOf": [ + { + "$ref": "#/definitions/MuxedAccount" + }, + { + "type": "null" + } + ] + } + } + }, + "OperationBody": { + "description": "OperationBody is an XDR NestedUnion defines as:\n\n```text union switch (OperationType type) { case CREATE_ACCOUNT: CreateAccountOp createAccountOp; case PAYMENT: PaymentOp paymentOp; case PATH_PAYMENT_STRICT_RECEIVE: PathPaymentStrictReceiveOp pathPaymentStrictReceiveOp; case MANAGE_SELL_OFFER: ManageSellOfferOp manageSellOfferOp; case CREATE_PASSIVE_SELL_OFFER: CreatePassiveSellOfferOp createPassiveSellOfferOp; case SET_OPTIONS: SetOptionsOp setOptionsOp; case CHANGE_TRUST: ChangeTrustOp changeTrustOp; case ALLOW_TRUST: AllowTrustOp allowTrustOp; case ACCOUNT_MERGE: MuxedAccount destination; case INFLATION: void; case MANAGE_DATA: ManageDataOp manageDataOp; case BUMP_SEQUENCE: BumpSequenceOp bumpSequenceOp; case MANAGE_BUY_OFFER: ManageBuyOfferOp manageBuyOfferOp; case PATH_PAYMENT_STRICT_SEND: PathPaymentStrictSendOp pathPaymentStrictSendOp; case CREATE_CLAIMABLE_BALANCE: CreateClaimableBalanceOp createClaimableBalanceOp; case CLAIM_CLAIMABLE_BALANCE: ClaimClaimableBalanceOp claimClaimableBalanceOp; case BEGIN_SPONSORING_FUTURE_RESERVES: BeginSponsoringFutureReservesOp beginSponsoringFutureReservesOp; case END_SPONSORING_FUTURE_RESERVES: void; case REVOKE_SPONSORSHIP: RevokeSponsorshipOp revokeSponsorshipOp; case CLAWBACK: ClawbackOp clawbackOp; case CLAWBACK_CLAIMABLE_BALANCE: ClawbackClaimableBalanceOp clawbackClaimableBalanceOp; case SET_TRUST_LINE_FLAGS: SetTrustLineFlagsOp setTrustLineFlagsOp; case LIQUIDITY_POOL_DEPOSIT: LiquidityPoolDepositOp liquidityPoolDepositOp; case LIQUIDITY_POOL_WITHDRAW: LiquidityPoolWithdrawOp liquidityPoolWithdrawOp; case INVOKE_HOST_FUNCTION: InvokeHostFunctionOp invokeHostFunctionOp; case EXTEND_FOOTPRINT_TTL: ExtendFootprintTTLOp extendFootprintTTLOp; case RESTORE_FOOTPRINT: RestoreFootprintOp restoreFootprintOp; } ```", + "oneOf": [ + { + "type": "string", + "enum": [ + "inflation", + "end_sponsoring_future_reserves" + ] + }, + { + "type": "object", + "required": [ + "create_account" + ], + "properties": { + "create_account": { + "$ref": "#/definitions/CreateAccountOp" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "payment" + ], + "properties": { + "payment": { + "$ref": "#/definitions/PaymentOp" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "path_payment_strict_receive" + ], + "properties": { + "path_payment_strict_receive": { + "$ref": "#/definitions/PathPaymentStrictReceiveOp" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "manage_sell_offer" + ], + "properties": { + "manage_sell_offer": { + "$ref": "#/definitions/ManageSellOfferOp" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "create_passive_sell_offer" + ], + "properties": { + "create_passive_sell_offer": { + "$ref": "#/definitions/CreatePassiveSellOfferOp" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "set_options" + ], + "properties": { + "set_options": { + "$ref": "#/definitions/SetOptionsOp" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "change_trust" + ], + "properties": { + "change_trust": { + "$ref": "#/definitions/ChangeTrustOp" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "allow_trust" + ], + "properties": { + "allow_trust": { + "$ref": "#/definitions/AllowTrustOp" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "account_merge" + ], + "properties": { + "account_merge": { + "$ref": "#/definitions/MuxedAccount" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "manage_data" + ], + "properties": { + "manage_data": { + "$ref": "#/definitions/ManageDataOp" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "bump_sequence" + ], + "properties": { + "bump_sequence": { + "$ref": "#/definitions/BumpSequenceOp" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "manage_buy_offer" + ], + "properties": { + "manage_buy_offer": { + "$ref": "#/definitions/ManageBuyOfferOp" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "path_payment_strict_send" + ], + "properties": { + "path_payment_strict_send": { + "$ref": "#/definitions/PathPaymentStrictSendOp" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "create_claimable_balance" + ], + "properties": { + "create_claimable_balance": { + "$ref": "#/definitions/CreateClaimableBalanceOp" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "claim_claimable_balance" + ], + "properties": { + "claim_claimable_balance": { + "$ref": "#/definitions/ClaimClaimableBalanceOp" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "begin_sponsoring_future_reserves" + ], + "properties": { + "begin_sponsoring_future_reserves": { + "$ref": "#/definitions/BeginSponsoringFutureReservesOp" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "revoke_sponsorship" + ], + "properties": { + "revoke_sponsorship": { + "$ref": "#/definitions/RevokeSponsorshipOp" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "clawback" + ], + "properties": { + "clawback": { + "$ref": "#/definitions/ClawbackOp" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "clawback_claimable_balance" + ], + "properties": { + "clawback_claimable_balance": { + "$ref": "#/definitions/ClawbackClaimableBalanceOp" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "set_trust_line_flags" + ], + "properties": { + "set_trust_line_flags": { + "$ref": "#/definitions/SetTrustLineFlagsOp" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "liquidity_pool_deposit" + ], + "properties": { + "liquidity_pool_deposit": { + "$ref": "#/definitions/LiquidityPoolDepositOp" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "liquidity_pool_withdraw" + ], + "properties": { + "liquidity_pool_withdraw": { + "$ref": "#/definitions/LiquidityPoolWithdrawOp" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "invoke_host_function" + ], + "properties": { + "invoke_host_function": { + "$ref": "#/definitions/InvokeHostFunctionOp" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "extend_footprint_ttl" + ], + "properties": { + "extend_footprint_ttl": { + "$ref": "#/definitions/ExtendFootprintTtlOp" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "restore_footprint" + ], + "properties": { + "restore_footprint": { + "$ref": "#/definitions/RestoreFootprintOp" + } + }, + "additionalProperties": false + } + ] + }, + "PathPaymentStrictReceiveOp": { + "description": "PathPaymentStrictReceiveOp is an XDR Struct defines as:\n\n```text struct PathPaymentStrictReceiveOp { Asset sendAsset; // asset we pay with int64 sendMax; // the maximum amount of sendAsset to // send (excluding fees). // The operation will fail if can't be met\n\nMuxedAccount destination; // recipient of the payment Asset destAsset; // what they end up with int64 destAmount; // amount they end up with\n\nAsset path<5>; // additional hops it must go through to get there }; ```", + "type": "object", + "required": [ + "dest_amount", + "dest_asset", + "destination", + "path", + "send_asset", + "send_max" + ], + "properties": { + "dest_amount": { + "type": "integer", + "format": "int64" + }, + "dest_asset": { + "$ref": "#/definitions/Asset" + }, + "destination": { + "$ref": "#/definitions/MuxedAccount" + }, + "path": { + "$ref": "#/definitions/VecM_for_Asset_and_5" + }, + "send_asset": { + "$ref": "#/definitions/Asset" + }, + "send_max": { + "type": "integer", + "format": "int64" + } + } + }, + "PathPaymentStrictSendOp": { + "description": "PathPaymentStrictSendOp is an XDR Struct defines as:\n\n```text struct PathPaymentStrictSendOp { Asset sendAsset; // asset we pay with int64 sendAmount; // amount of sendAsset to send (excluding fees)\n\nMuxedAccount destination; // recipient of the payment Asset destAsset; // what they end up with int64 destMin; // the minimum amount of dest asset to // be received // The operation will fail if it can't be met\n\nAsset path<5>; // additional hops it must go through to get there }; ```", + "type": "object", + "required": [ + "dest_asset", + "dest_min", + "destination", + "path", + "send_amount", + "send_asset" + ], + "properties": { + "dest_asset": { + "$ref": "#/definitions/Asset" + }, + "dest_min": { + "type": "integer", + "format": "int64" + }, + "destination": { + "$ref": "#/definitions/MuxedAccount" + }, + "path": { + "$ref": "#/definitions/VecM_for_Asset_and_5" + }, + "send_amount": { + "type": "integer", + "format": "int64" + }, + "send_asset": { + "$ref": "#/definitions/Asset" + } + } + }, + "PaymentOp": { + "description": "PaymentOp is an XDR Struct defines as:\n\n```text struct PaymentOp { MuxedAccount destination; // recipient of the payment Asset asset; // what they end up with int64 amount; // amount they end up with }; ```", + "type": "object", + "required": [ + "amount", + "asset", + "destination" + ], + "properties": { + "amount": { + "type": "integer", + "format": "int64" + }, + "asset": { + "$ref": "#/definitions/Asset" + }, + "destination": { + "$ref": "#/definitions/MuxedAccount" + } + } + }, + "PoolId": { + "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", + "allOf": [ + { + "$ref": "#/definitions/Hash" + } + ] + }, + "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; }; ```", + "oneOf": [ + { + "type": "string", + "enum": [ + "none" + ] + }, + { + "type": "object", + "required": [ + "time" + ], + "properties": { + "time": { + "$ref": "#/definitions/TimeBounds" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "v2" + ], + "properties": { + "v2": { + "$ref": "#/definitions/PreconditionsV2" + } + }, + "additionalProperties": false + } + ] + }, + "PreconditionsV2": { + "description": "PreconditionsV2 is an XDR Struct defines as:\n\n```text struct PreconditionsV2 { TimeBounds* timeBounds;\n\n// Transaction only valid for ledger numbers n such that // minLedger <= n < maxLedger (if maxLedger == 0, then // only minLedger is checked) LedgerBounds* ledgerBounds;\n\n// If NULL, only valid when sourceAccount's sequence number // is seqNum - 1. Otherwise, valid when sourceAccount's // sequence number n satisfies minSeqNum <= n < tx.seqNum. // Note that after execution the account's sequence number // is always raised to tx.seqNum, and a transaction is not // valid if tx.seqNum is too high to ensure replay protection. SequenceNumber* minSeqNum;\n\n// For the transaction to be valid, the current ledger time must // be at least minSeqAge greater than sourceAccount's seqTime. Duration minSeqAge;\n\n// For the transaction to be valid, the current ledger number // must be at least minSeqLedgerGap greater than sourceAccount's // seqLedger. uint32 minSeqLedgerGap;\n\n// For the transaction to be valid, there must be a signature // corresponding to every Signer in this array, even if the // signature is not otherwise required by the sourceAccount or // operations. SignerKey extraSigners<2>; }; ```", + "type": "object", + "required": [ + "extra_signers", + "min_seq_age", + "min_seq_ledger_gap" + ], + "properties": { + "extra_signers": { + "$ref": "#/definitions/VecM_for_SignerKey_and_2" + }, + "ledger_bounds": { + "anyOf": [ + { + "$ref": "#/definitions/LedgerBounds" + }, + { + "type": "null" + } + ] + }, + "min_seq_age": { + "$ref": "#/definitions/Duration" + }, + "min_seq_ledger_gap": { + "type": "integer", + "format": "uint32", + "minimum": 0.0 + }, + "min_seq_num": { + "anyOf": [ + { + "$ref": "#/definitions/SequenceNumber" + }, + { + "type": "null" + } + ] + }, + "time_bounds": { + "anyOf": [ + { + "$ref": "#/definitions/TimeBounds" + }, + { + "type": "null" + } + ] + } + } + }, + "Price": { + "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", + "type": "object", + "required": [ + "d", + "n" + ], + "properties": { + "d": { + "type": "integer", + "format": "int32" + }, + "n": { + "type": "integer", + "format": "int32" + } + } + }, + "PublicKey": { + "description": "PublicKey is an XDR Union defines as:\n\n```text union PublicKey switch (PublicKeyType type) { case PUBLIC_KEY_TYPE_ED25519: uint256 ed25519; }; ```", + "oneOf": [ + { + "type": "object", + "required": [ + "PublicKeyTypeEd25519" + ], + "properties": { + "PublicKeyTypeEd25519": { + "$ref": "#/definitions/Uint256" + } + }, + "additionalProperties": false + } + ] + }, + "RestoreFootprintOp": { + "description": "RestoreFootprintOp is an XDR Struct defines as:\n\n```text struct RestoreFootprintOp { ExtensionPoint ext; }; ```", + "type": "object", + "required": [ + "ext" + ], + "properties": { + "ext": { + "$ref": "#/definitions/ExtensionPoint" + } + } + }, + "RevokeSponsorshipOp": { + "description": "RevokeSponsorshipOp is an XDR Union defines as:\n\n```text union RevokeSponsorshipOp switch (RevokeSponsorshipType type) { case REVOKE_SPONSORSHIP_LEDGER_ENTRY: LedgerKey ledgerKey; case REVOKE_SPONSORSHIP_SIGNER: struct { AccountID accountID; SignerKey signerKey; } signer; }; ```", + "oneOf": [ + { + "type": "object", + "required": [ + "ledger_entry" + ], + "properties": { + "ledger_entry": { + "$ref": "#/definitions/LedgerKey" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "signer" + ], + "properties": { + "signer": { + "$ref": "#/definitions/RevokeSponsorshipOpSigner" + } + }, + "additionalProperties": false + } + ] + }, + "RevokeSponsorshipOpSigner": { + "description": "RevokeSponsorshipOpSigner is an XDR NestedStruct defines as:\n\n```text struct { AccountID accountID; SignerKey signerKey; } ```", + "type": "object", + "required": [ + "account_id", + "signer_key" + ], + "properties": { + "account_id": { + "$ref": "#/definitions/AccountId" + }, + "signer_key": { + "$ref": "#/definitions/SignerKey" + } + } + }, + "ScAddress": { + "description": "ScAddress is an XDR Union defines as:\n\n```text union SCAddress switch (SCAddressType type) { case SC_ADDRESS_TYPE_ACCOUNT: AccountID accountId; case SC_ADDRESS_TYPE_CONTRACT: Hash contractId; }; ```", + "oneOf": [ + { + "type": "object", + "required": [ + "Account" + ], + "properties": { + "Account": { + "$ref": "#/definitions/AccountId" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "Contract" + ], + "properties": { + "Contract": { + "$ref": "#/definitions/Hash" + } + }, + "additionalProperties": false + } + ] + }, + "ScBytes": { + "description": "ScBytes is an XDR Typedef defines as:\n\n```text typedef opaque SCBytes<>; ```", + "allOf": [ + { + "$ref": "#/definitions/BytesM_for_4294967295" + } + ] + }, + "ScContractInstance": { + "description": "ScContractInstance is an XDR Struct defines as:\n\n```text struct SCContractInstance { ContractExecutable executable; SCMap* storage; }; ```", + "type": "object", + "required": [ + "executable" + ], + "properties": { + "executable": { + "$ref": "#/definitions/ContractExecutable" + }, + "storage": { + "anyOf": [ + { + "$ref": "#/definitions/ScMap" + }, + { + "type": "null" + } + ] + } + } + }, + "ScError": { + "description": "ScError is an XDR Union defines as:\n\n```text union SCError switch (SCErrorType type) { case SCE_CONTRACT: uint32 contractCode; case SCE_WASM_VM: case SCE_CONTEXT: case SCE_STORAGE: case SCE_OBJECT: case SCE_CRYPTO: case SCE_EVENTS: case SCE_BUDGET: case SCE_VALUE: case SCE_AUTH: SCErrorCode code; }; ```", + "oneOf": [ + { + "type": "object", + "required": [ + "contract" + ], + "properties": { + "contract": { + "type": "integer", + "format": "uint32", + "minimum": 0.0 + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "wasm_vm" + ], + "properties": { + "wasm_vm": { + "$ref": "#/definitions/ScErrorCode" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "context" + ], + "properties": { + "context": { + "$ref": "#/definitions/ScErrorCode" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "storage" + ], + "properties": { + "storage": { + "$ref": "#/definitions/ScErrorCode" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "object" + ], + "properties": { + "object": { + "$ref": "#/definitions/ScErrorCode" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "crypto" + ], + "properties": { + "crypto": { + "$ref": "#/definitions/ScErrorCode" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "events" + ], + "properties": { + "events": { + "$ref": "#/definitions/ScErrorCode" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "budget" + ], + "properties": { + "budget": { + "$ref": "#/definitions/ScErrorCode" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "$ref": "#/definitions/ScErrorCode" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "auth" + ], + "properties": { + "auth": { + "$ref": "#/definitions/ScErrorCode" + } + }, + "additionalProperties": false + } + ] + }, + "ScErrorCode": { + "description": "ScErrorCode is an XDR Enum defines as:\n\n```text enum SCErrorCode { SCEC_ARITH_DOMAIN = 0, // Some arithmetic was undefined (overflow, divide-by-zero). SCEC_INDEX_BOUNDS = 1, // Something was indexed beyond its bounds. SCEC_INVALID_INPUT = 2, // User provided some otherwise-bad data. SCEC_MISSING_VALUE = 3, // Some value was required but not provided. SCEC_EXISTING_VALUE = 4, // Some value was provided where not allowed. SCEC_EXCEEDED_LIMIT = 5, // Some arbitrary limit -- gas or otherwise -- was hit. SCEC_INVALID_ACTION = 6, // Data was valid but action requested was not. SCEC_INTERNAL_ERROR = 7, // The host detected an error in its own logic. SCEC_UNEXPECTED_TYPE = 8, // Some type wasn't as expected. SCEC_UNEXPECTED_SIZE = 9 // Something's size wasn't as expected. }; ```", + "type": "string", + "enum": [ + "arith_domain", + "index_bounds", + "invalid_input", + "missing_value", + "existing_value", + "exceeded_limit", + "invalid_action", + "internal_error", + "unexpected_type", + "unexpected_size" + ] + }, + "ScMap": { + "description": "ScMap is an XDR Typedef defines as:\n\n```text typedef SCMapEntry SCMap<>; ```", + "allOf": [ + { + "$ref": "#/definitions/VecM_for_ScMapEntry_and_4294967295" + } + ] + }, + "ScMapEntry": { + "description": "ScMapEntry is an XDR Struct defines as:\n\n```text struct SCMapEntry { SCVal key; SCVal val; }; ```", + "type": "object", + "required": [ + "key", + "val" + ], + "properties": { + "key": { + "$ref": "#/definitions/ScVal" + }, + "val": { + "$ref": "#/definitions/ScVal" + } + } + }, + "ScNonceKey": { + "description": "ScNonceKey is an XDR Struct defines as:\n\n```text struct SCNonceKey { int64 nonce; }; ```", + "type": "object", + "required": [ + "nonce" + ], + "properties": { + "nonce": { + "type": "integer", + "format": "int64" + } + } + }, + "ScString": { + "description": "ScString is an XDR Typedef defines as:\n\n```text typedef string SCString<>; ```", + "allOf": [ + { + "$ref": "#/definitions/StringM_for_4294967295" + } + ] + }, + "ScSymbol": { + "description": "ScSymbol is an XDR Typedef defines as:\n\n```text typedef string SCSymbol; ```", + "allOf": [ + { + "$ref": "#/definitions/StringM_for_32" + } + ] + }, + "ScVal": { + "description": "ScVal is an XDR Union defines as:\n\n```text union SCVal switch (SCValType type) {\n\ncase SCV_BOOL: bool b; case SCV_VOID: void; case SCV_ERROR: SCError error;\n\ncase SCV_U32: uint32 u32; case SCV_I32: int32 i32;\n\ncase SCV_U64: uint64 u64; case SCV_I64: int64 i64; case SCV_TIMEPOINT: TimePoint timepoint; case SCV_DURATION: Duration duration;\n\ncase SCV_U128: UInt128Parts u128; case SCV_I128: Int128Parts i128;\n\ncase SCV_U256: UInt256Parts u256; case SCV_I256: Int256Parts i256;\n\ncase SCV_BYTES: SCBytes bytes; case SCV_STRING: SCString str; case SCV_SYMBOL: SCSymbol sym;\n\n// Vec and Map are recursive so need to live // behind an option, due to xdrpp limitations. case SCV_VEC: SCVec *vec; case SCV_MAP: SCMap *map;\n\ncase SCV_ADDRESS: SCAddress address;\n\n// Special SCVals reserved for system-constructed contract-data // ledger keys, not generally usable elsewhere. case SCV_LEDGER_KEY_CONTRACT_INSTANCE: void; case SCV_LEDGER_KEY_NONCE: SCNonceKey nonce_key;\n\ncase SCV_CONTRACT_INSTANCE: SCContractInstance instance; }; ```", + "oneOf": [ + { + "type": "string", + "enum": [ + "void", + "ledger_key_contract_instance" + ] + }, + { + "type": "object", + "required": [ + "bool" + ], + "properties": { + "bool": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "error" + ], + "properties": { + "error": { + "$ref": "#/definitions/ScError" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "u32" + ], + "properties": { + "u32": { + "type": "integer", + "format": "uint32", + "minimum": 0.0 + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "i32" + ], + "properties": { + "i32": { + "type": "integer", + "format": "int32" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "u64" + ], + "properties": { + "u64": { + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "i64" + ], + "properties": { + "i64": { + "type": "integer", + "format": "int64" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "timepoint" + ], + "properties": { + "timepoint": { + "$ref": "#/definitions/TimePoint" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "duration" + ], + "properties": { + "duration": { + "$ref": "#/definitions/Duration" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "u128" + ], + "properties": { + "u128": { + "$ref": "#/definitions/UInt128Parts" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "i128" + ], + "properties": { + "i128": { + "$ref": "#/definitions/Int128Parts" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "u256" + ], + "properties": { + "u256": { + "$ref": "#/definitions/UInt256Parts" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "i256" + ], + "properties": { + "i256": { + "$ref": "#/definitions/Int256Parts" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "bytes" + ], + "properties": { + "bytes": { + "$ref": "#/definitions/ScBytes" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "string" + ], + "properties": { + "string": { + "$ref": "#/definitions/ScString" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "symbol" + ], + "properties": { + "symbol": { + "$ref": "#/definitions/ScSymbol" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "vec" + ], + "properties": { + "vec": { + "anyOf": [ + { + "$ref": "#/definitions/ScVec" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "map" + ], + "properties": { + "map": { + "anyOf": [ + { + "$ref": "#/definitions/ScMap" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "address" + ], + "properties": { + "address": { + "$ref": "#/definitions/ScAddress" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "ledger_key_nonce" + ], + "properties": { + "ledger_key_nonce": { + "$ref": "#/definitions/ScNonceKey" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "contract_instance" + ], + "properties": { + "contract_instance": { + "$ref": "#/definitions/ScContractInstance" + } + }, + "additionalProperties": false + } + ] + }, + "ScVec": { + "description": "ScVec is an XDR Typedef defines as:\n\n```text typedef SCVal SCVec<>; ```", + "allOf": [ + { + "$ref": "#/definitions/VecM_for_ScVal_and_4294967295" + } + ] + }, + "SequenceNumber": { + "description": "SequenceNumber is an XDR Typedef defines as:\n\n```text typedef int64 SequenceNumber; ```", + "type": "integer", + "format": "int64" + }, + "SetOptionsOp": { + "description": "SetOptionsOp is an XDR Struct defines as:\n\n```text struct SetOptionsOp { AccountID* inflationDest; // sets the inflation destination\n\nuint32* clearFlags; // which flags to clear uint32* setFlags; // which flags to set\n\n// account threshold manipulation uint32* masterWeight; // weight of the master account uint32* lowThreshold; uint32* medThreshold; uint32* highThreshold;\n\nstring32* homeDomain; // sets the home domain\n\n// Add, update or remove a signer for the account // signer is deleted if the weight is 0 Signer* signer; }; ```", + "type": "object", + "properties": { + "clear_flags": { + "type": [ + "integer", + "null" + ], + "format": "uint32", + "minimum": 0.0 + }, + "high_threshold": { + "type": [ + "integer", + "null" + ], + "format": "uint32", + "minimum": 0.0 + }, + "home_domain": { + "anyOf": [ + { + "$ref": "#/definitions/String32" + }, + { + "type": "null" + } + ] + }, + "inflation_dest": { + "anyOf": [ + { + "$ref": "#/definitions/AccountId" + }, + { + "type": "null" + } + ] + }, + "low_threshold": { + "type": [ + "integer", + "null" + ], + "format": "uint32", + "minimum": 0.0 + }, + "master_weight": { + "type": [ + "integer", + "null" + ], + "format": "uint32", + "minimum": 0.0 + }, + "med_threshold": { + "type": [ + "integer", + "null" + ], + "format": "uint32", + "minimum": 0.0 + }, + "set_flags": { + "type": [ + "integer", + "null" + ], + "format": "uint32", + "minimum": 0.0 + }, + "signer": { + "anyOf": [ + { + "$ref": "#/definitions/Signer" + }, + { + "type": "null" + } + ] + } + } + }, + "SetTrustLineFlagsOp": { + "description": "SetTrustLineFlagsOp is an XDR Struct defines as:\n\n```text struct SetTrustLineFlagsOp { AccountID trustor; Asset asset;\n\nuint32 clearFlags; // which flags to clear uint32 setFlags; // which flags to set }; ```", + "type": "object", + "required": [ + "asset", + "clear_flags", + "set_flags", + "trustor" + ], + "properties": { + "asset": { + "$ref": "#/definitions/Asset" + }, + "clear_flags": { + "type": "integer", + "format": "uint32", + "minimum": 0.0 + }, + "set_flags": { + "type": "integer", + "format": "uint32", + "minimum": 0.0 + }, + "trustor": { + "$ref": "#/definitions/AccountId" + } + } + }, + "Signature": { + "description": "Signature is an XDR Typedef defines as:\n\n```text typedef opaque Signature<64>; ```", + "allOf": [ + { + "$ref": "#/definitions/BytesM_for_64" + } + ] + }, + "SignatureHint": { + "description": "SignatureHint is an XDR Typedef defines as:\n\n```text typedef opaque SignatureHint[4]; ```", + "type": "array", + "items": { + "type": "integer", + "format": "uint8", + "minimum": 0.0 + }, + "maxItems": 4, + "minItems": 4 + }, + "Signer": { + "description": "Signer is an XDR Struct defines as:\n\n```text struct Signer { SignerKey key; uint32 weight; // really only need 1 byte }; ```", + "type": "object", + "required": [ + "key", + "weight" + ], + "properties": { + "key": { + "$ref": "#/definitions/SignerKey" + }, + "weight": { + "type": "integer", + "format": "uint32", + "minimum": 0.0 + } + } + }, + "SignerKey": { + "description": "SignerKey is an XDR Union defines as:\n\n```text union SignerKey switch (SignerKeyType type) { case SIGNER_KEY_TYPE_ED25519: uint256 ed25519; case SIGNER_KEY_TYPE_PRE_AUTH_TX: /* SHA-256 Hash of TransactionSignaturePayload structure */ uint256 preAuthTx; case SIGNER_KEY_TYPE_HASH_X: /* Hash of random 256 bit preimage X */ uint256 hashX; case SIGNER_KEY_TYPE_ED25519_SIGNED_PAYLOAD: struct { /* Public key that must sign the payload. */ uint256 ed25519; /* Payload to be raw signed by ed25519. */ opaque payload<64>; } ed25519SignedPayload; }; ```", + "oneOf": [ + { + "type": "object", + "required": [ + "Ed25519" + ], + "properties": { + "Ed25519": { + "$ref": "#/definitions/Uint256" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "PreAuthTx" + ], + "properties": { + "PreAuthTx": { + "$ref": "#/definitions/Uint256" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "HashX" + ], + "properties": { + "HashX": { + "$ref": "#/definitions/Uint256" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "Ed25519SignedPayload" + ], + "properties": { + "Ed25519SignedPayload": { + "$ref": "#/definitions/SignerKeyEd25519SignedPayload" + } + }, + "additionalProperties": false + } + ] + }, + "SignerKeyEd25519SignedPayload": { + "description": "SignerKeyEd25519SignedPayload is an XDR NestedStruct defines as:\n\n```text struct { /* Public key that must sign the payload. */ uint256 ed25519; /* Payload to be raw signed by ed25519. */ opaque payload<64>; } ```", + "type": "object", + "required": [ + "ed25519", + "payload" + ], + "properties": { + "ed25519": { + "$ref": "#/definitions/Uint256" + }, + "payload": { + "$ref": "#/definitions/BytesM_for_64" + } + } + }, + "SorobanAddressCredentials": { + "description": "SorobanAddressCredentials is an XDR Struct defines as:\n\n```text struct SorobanAddressCredentials { SCAddress address; int64 nonce; uint32 signatureExpirationLedger; SCVal signature; }; ```", + "type": "object", + "required": [ + "address", + "nonce", + "signature", + "signature_expiration_ledger" + ], + "properties": { + "address": { + "$ref": "#/definitions/ScAddress" + }, + "nonce": { + "type": "integer", + "format": "int64" + }, + "signature": { + "$ref": "#/definitions/ScVal" + }, + "signature_expiration_ledger": { + "type": "integer", + "format": "uint32", + "minimum": 0.0 + } + } + }, + "SorobanAuthorizationEntry": { + "description": "SorobanAuthorizationEntry is an XDR Struct defines as:\n\n```text struct SorobanAuthorizationEntry { SorobanCredentials credentials; SorobanAuthorizedInvocation rootInvocation; }; ```", + "type": "object", + "required": [ + "credentials", + "root_invocation" + ], + "properties": { + "credentials": { + "$ref": "#/definitions/SorobanCredentials" + }, + "root_invocation": { + "$ref": "#/definitions/SorobanAuthorizedInvocation" + } + } + }, + "SorobanAuthorizedFunction": { + "description": "SorobanAuthorizedFunction is an XDR Union defines as:\n\n```text union SorobanAuthorizedFunction switch (SorobanAuthorizedFunctionType type) { case SOROBAN_AUTHORIZED_FUNCTION_TYPE_CONTRACT_FN: InvokeContractArgs contractFn; case SOROBAN_AUTHORIZED_FUNCTION_TYPE_CREATE_CONTRACT_HOST_FN: CreateContractArgs createContractHostFn; }; ```", + "oneOf": [ + { + "type": "object", + "required": [ + "contract_fn" + ], + "properties": { + "contract_fn": { + "$ref": "#/definitions/InvokeContractArgs" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "create_contract_host_fn" + ], + "properties": { + "create_contract_host_fn": { + "$ref": "#/definitions/CreateContractArgs" + } + }, + "additionalProperties": false + } + ] + }, + "SorobanAuthorizedInvocation": { + "description": "SorobanAuthorizedInvocation is an XDR Struct defines as:\n\n```text struct SorobanAuthorizedInvocation { SorobanAuthorizedFunction function; SorobanAuthorizedInvocation subInvocations<>; }; ```", + "type": "object", + "required": [ + "function", + "sub_invocations" + ], + "properties": { + "function": { + "$ref": "#/definitions/SorobanAuthorizedFunction" + }, + "sub_invocations": { + "$ref": "#/definitions/VecM_for_SorobanAuthorizedInvocation_and_4294967295" + } + } + }, + "SorobanCredentials": { + "description": "SorobanCredentials is an XDR Union defines as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "oneOf": [ + { + "type": "string", + "enum": [ + "source_account" + ] + }, + { + "type": "object", + "required": [ + "address" + ], + "properties": { + "address": { + "$ref": "#/definitions/SorobanAddressCredentials" + } + }, + "additionalProperties": false + } + ] + }, + "SorobanResources": { + "description": "SorobanResources is an XDR Struct defines as:\n\n```text struct SorobanResources { // The ledger footprint of the transaction. LedgerFootprint footprint; // The maximum number of instructions this transaction can use uint32 instructions;\n\n// The maximum number of bytes this transaction can read from ledger uint32 readBytes; // The maximum number of bytes this transaction can write to ledger uint32 writeBytes; }; ```", + "type": "object", + "required": [ + "footprint", + "instructions", + "read_bytes", + "write_bytes" + ], + "properties": { + "footprint": { + "$ref": "#/definitions/LedgerFootprint" + }, + "instructions": { + "type": "integer", + "format": "uint32", + "minimum": 0.0 + }, + "read_bytes": { + "type": "integer", + "format": "uint32", + "minimum": 0.0 + }, + "write_bytes": { + "type": "integer", + "format": "uint32", + "minimum": 0.0 + } + } + }, + "SorobanTransactionData": { + "description": "SorobanTransactionData is an XDR Struct defines as:\n\n```text struct SorobanTransactionData { ExtensionPoint ext; SorobanResources resources; // Amount of the transaction `fee` allocated to the Soroban resource fees. // The fraction of `resourceFee` corresponding to `resources` specified // above is *not* refundable (i.e. fees for instructions, ledger I/O), as // well as fees for the transaction size. // The remaining part of the fee is refundable and the charged value is // based on the actual consumption of refundable resources (events, ledger // rent bumps). // The `inclusionFee` used for prioritization of the transaction is defined // as `tx.fee - resourceFee`. int64 resourceFee; }; ```", + "type": "object", + "required": [ + "ext", + "resource_fee", + "resources" + ], + "properties": { + "ext": { + "$ref": "#/definitions/ExtensionPoint" + }, + "resource_fee": { + "type": "integer", + "format": "int64" + }, + "resources": { + "$ref": "#/definitions/SorobanResources" + } + } + }, + "String32": { + "description": "String32 is an XDR Typedef defines as:\n\n```text typedef string string32<32>; ```", + "allOf": [ + { + "$ref": "#/definitions/StringM_for_32" + } + ] + }, + "String64": { + "description": "String64 is an XDR Typedef defines as:\n\n```text typedef string string64<64>; ```", + "allOf": [ + { + "$ref": "#/definitions/StringM_for_64" + } + ] + }, + "StringM_for_28": { + "description": "A string type that contains arbitrary bytes.\n\nConvertible, fallibly, to/from a Rust UTF-8 String using [`TryFrom`]/[`TryInto`]/[`StringM::to_utf8_string`].\n\nConvertible, lossyly, to a Rust UTF-8 String using [`StringM::to_utf8_string_lossy`].\n\nConvertible to/from escaped printable-ASCII using [`Display`]/[`ToString`]/[`FromStr`].", + "type": "array", + "items": { + "type": "integer", + "format": "uint8", + "minimum": 0.0 + } + }, + "StringM_for_32": { + "description": "A string type that contains arbitrary bytes.\n\nConvertible, fallibly, to/from a Rust UTF-8 String using [`TryFrom`]/[`TryInto`]/[`StringM::to_utf8_string`].\n\nConvertible, lossyly, to a Rust UTF-8 String using [`StringM::to_utf8_string_lossy`].\n\nConvertible to/from escaped printable-ASCII using [`Display`]/[`ToString`]/[`FromStr`].", + "type": "array", + "items": { + "type": "integer", + "format": "uint8", + "minimum": 0.0 + } + }, + "StringM_for_4294967295": { + "description": "A string type that contains arbitrary bytes.\n\nConvertible, fallibly, to/from a Rust UTF-8 String using [`TryFrom`]/[`TryInto`]/[`StringM::to_utf8_string`].\n\nConvertible, lossyly, to a Rust UTF-8 String using [`StringM::to_utf8_string_lossy`].\n\nConvertible to/from escaped printable-ASCII using [`Display`]/[`ToString`]/[`FromStr`].", + "type": "array", + "items": { + "type": "integer", + "format": "uint8", + "minimum": 0.0 + } + }, + "StringM_for_64": { + "description": "A string type that contains arbitrary bytes.\n\nConvertible, fallibly, to/from a Rust UTF-8 String using [`TryFrom`]/[`TryInto`]/[`StringM::to_utf8_string`].\n\nConvertible, lossyly, to a Rust UTF-8 String using [`StringM::to_utf8_string_lossy`].\n\nConvertible to/from escaped printable-ASCII using [`Display`]/[`ToString`]/[`FromStr`].", + "type": "array", + "items": { + "type": "integer", + "format": "uint8", + "minimum": 0.0 + } + }, + "TimeBounds": { + "description": "TimeBounds is an XDR Struct defines as:\n\n```text struct TimeBounds { TimePoint minTime; TimePoint maxTime; // 0 here means no maxTime }; ```", + "type": "object", + "required": [ + "max_time", + "min_time" + ], + "properties": { + "max_time": { + "$ref": "#/definitions/TimePoint" + }, + "min_time": { + "$ref": "#/definitions/TimePoint" + } + } + }, + "TimePoint": { + "description": "TimePoint is an XDR Typedef defines as:\n\n```text typedef uint64 TimePoint; ```", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + }, + "Transaction": { + "description": "Transaction is an XDR Struct defines as:\n\n```text struct Transaction { // account used to run the transaction MuxedAccount sourceAccount;\n\n// the fee the sourceAccount will pay uint32 fee;\n\n// sequence number to consume in the account SequenceNumber seqNum;\n\n// validity conditions Preconditions cond;\n\nMemo memo;\n\nOperation operations;\n\n// reserved for future use union switch (int v) { case 0: void; case 1: SorobanTransactionData sorobanData; } ext; }; ```", + "type": "object", + "required": [ + "cond", + "ext", + "fee", + "memo", + "operations", + "seq_num", + "source_account" + ], + "properties": { + "cond": { + "$ref": "#/definitions/Preconditions" + }, + "ext": { + "$ref": "#/definitions/TransactionExt" + }, + "fee": { + "type": "integer", + "format": "uint32", + "minimum": 0.0 + }, + "memo": { + "$ref": "#/definitions/Memo" + }, + "operations": { + "$ref": "#/definitions/VecM_for_Operation_and_100" + }, + "seq_num": { + "$ref": "#/definitions/SequenceNumber" + }, + "source_account": { + "$ref": "#/definitions/MuxedAccount" + } + } + }, + "TransactionExt": { + "description": "TransactionExt is an XDR NestedUnion defines as:\n\n```text union switch (int v) { case 0: void; case 1: SorobanTransactionData sorobanData; } ```", + "oneOf": [ + { + "type": "string", + "enum": [ + "v0" + ] + }, + { + "type": "object", + "required": [ + "v1" + ], + "properties": { + "v1": { + "$ref": "#/definitions/SorobanTransactionData" + } + }, + "additionalProperties": false + } + ] + }, + "TransactionV0": { + "description": "TransactionV0 is an XDR Struct defines as:\n\n```text struct TransactionV0 { uint256 sourceAccountEd25519; uint32 fee; SequenceNumber seqNum; TimeBounds* timeBounds; Memo memo; Operation operations; union switch (int v) { case 0: void; } ext; }; ```", + "type": "object", + "required": [ + "ext", + "fee", + "memo", + "operations", + "seq_num", + "source_account_ed25519" + ], + "properties": { + "ext": { + "$ref": "#/definitions/TransactionV0Ext" + }, + "fee": { + "type": "integer", + "format": "uint32", + "minimum": 0.0 + }, + "memo": { + "$ref": "#/definitions/Memo" + }, + "operations": { + "$ref": "#/definitions/VecM_for_Operation_and_100" + }, + "seq_num": { + "$ref": "#/definitions/SequenceNumber" + }, + "source_account_ed25519": { + "$ref": "#/definitions/Uint256" + }, + "time_bounds": { + "anyOf": [ + { + "$ref": "#/definitions/TimeBounds" + }, + { + "type": "null" + } + ] + } + } + }, + "TransactionV0Envelope": { + "description": "TransactionV0Envelope is an XDR Struct defines as:\n\n```text struct TransactionV0Envelope { TransactionV0 tx; /* Each decorated signature is a signature over the SHA256 hash of * a TransactionSignaturePayload */ DecoratedSignature signatures<20>; }; ```", + "type": "object", + "required": [ + "signatures", + "tx" + ], + "properties": { + "signatures": { + "$ref": "#/definitions/VecM_for_DecoratedSignature_and_20" + }, + "tx": { + "$ref": "#/definitions/TransactionV0" + } + } + }, + "TransactionV0Ext": { + "description": "TransactionV0Ext is an XDR NestedUnion defines as:\n\n```text union switch (int v) { case 0: void; } ```", + "type": "string", + "enum": [ + "v0" + ] + }, + "TransactionV1Envelope": { + "description": "TransactionV1Envelope is an XDR Struct defines as:\n\n```text struct TransactionV1Envelope { Transaction tx; /* Each decorated signature is a signature over the SHA256 hash of * a TransactionSignaturePayload */ DecoratedSignature signatures<20>; }; ```", + "type": "object", + "required": [ + "signatures", + "tx" + ], + "properties": { + "signatures": { + "$ref": "#/definitions/VecM_for_DecoratedSignature_and_20" + }, + "tx": { + "$ref": "#/definitions/Transaction" + } + } + }, + "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": [ + { + "type": "string", + "enum": [ + "native" + ] + }, + { + "type": "object", + "required": [ + "credit_alphanum4" + ], + "properties": { + "credit_alphanum4": { + "$ref": "#/definitions/AlphaNum4" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "credit_alphanum12" + ], + "properties": { + "credit_alphanum12": { + "$ref": "#/definitions/AlphaNum12" + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "pool_share" + ], + "properties": { + "pool_share": { + "$ref": "#/definitions/PoolId" + } + }, + "additionalProperties": false + } + ] + }, + "UInt128Parts": { + "description": "UInt128Parts is an XDR Struct defines as:\n\n```text struct UInt128Parts { uint64 hi; uint64 lo; }; ```", + "type": "object", + "required": [ + "hi", + "lo" + ], + "properties": { + "hi": { + "type": "integer", + "format": "uint64", + "minimum": 0.0 + }, + "lo": { + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + } + }, + "UInt256Parts": { + "description": "UInt256Parts is an XDR Struct defines as:\n\n```text struct UInt256Parts { uint64 hi_hi; uint64 hi_lo; uint64 lo_hi; uint64 lo_lo; }; ```", + "type": "object", + "required": [ + "hi_hi", + "hi_lo", + "lo_hi", + "lo_lo" + ], + "properties": { + "hi_hi": { + "type": "integer", + "format": "uint64", + "minimum": 0.0 + }, + "hi_lo": { + "type": "integer", + "format": "uint64", + "minimum": 0.0 + }, + "lo_hi": { + "type": "integer", + "format": "uint64", + "minimum": 0.0 + }, + "lo_lo": { + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + } + }, + "Uint256": { + "description": "Uint256 is an XDR Typedef defines as:\n\n```text typedef opaque uint256[32]; ```", + "type": "array", + "items": { + "type": "integer", + "format": "uint8", + "minimum": 0.0 + }, + "maxItems": 32, + "minItems": 32 + }, + "VecM_for_Asset_and_5": { + "type": "array", + "items": { + "$ref": "#/definitions/Asset" + } + }, + "VecM_for_ClaimPredicate_and_2": { + "type": "array", + "items": { + "$ref": "#/definitions/ClaimPredicate" + } + }, + "VecM_for_Claimant_and_10": { + "type": "array", + "items": { + "$ref": "#/definitions/Claimant" + } + }, + "VecM_for_DecoratedSignature_and_20": { + "type": "array", + "items": { + "$ref": "#/definitions/DecoratedSignature" + } + }, + "VecM_for_LedgerKey_and_4294967295": { + "type": "array", + "items": { + "$ref": "#/definitions/LedgerKey" + } + }, + "VecM_for_Operation_and_100": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + } + }, + "VecM_for_ScMapEntry_and_4294967295": { + "type": "array", + "items": { + "$ref": "#/definitions/ScMapEntry" + } + }, + "VecM_for_ScVal_and_4294967295": { + "type": "array", + "items": { + "$ref": "#/definitions/ScVal" + } + }, + "VecM_for_SignerKey_and_2": { + "type": "array", + "items": { + "$ref": "#/definitions/SignerKey" + } + }, + "VecM_for_SorobanAuthorizationEntry_and_4294967295": { + "type": "array", + "items": { + "$ref": "#/definitions/SorobanAuthorizationEntry" + } + }, + "VecM_for_SorobanAuthorizedInvocation_and_4294967295": { + "type": "array", + "items": { + "$ref": "#/definitions/SorobanAuthorizedInvocation" + } + } + } +}"##, + ); + + Ok(()) +} From ca57d82f9912029ac191c09b852cbbcb9ac87660 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Mon, 4 Mar 2024 21:51:46 +1000 Subject: [PATCH 03/20] remove unused dev dep --- Cargo.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 96c8f82e..e29ae380 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,6 @@ schemars = { version = "0.8.16", optional = true } [dev_dependencies] serde_json = "1.0.89" -schemars = "0.8.16" [features] default = ["std", "curr"] From 3146219326e993566c00d8e26d562740b08a169b Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Mon, 4 Mar 2024 23:59:24 +1000 Subject: [PATCH 04/20] silence clippy warning --- tests/serde_tx_schema.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/serde_tx_schema.rs b/tests/serde_tx_schema.rs index 83757f0a..336dfe4e 100644 --- a/tests/serde_tx_schema.rs +++ b/tests/serde_tx_schema.rs @@ -5,6 +5,7 @@ use stellar_xdr::curr as stellar_xdr; use stellar_xdr::TransactionEnvelope; #[cfg(feature = "curr")] +#[allow(clippy::too_many_lines)] #[test] fn test_serde_tx_schema() -> Result<(), Box> { let schema = schemars::schema_for!(TransactionEnvelope); From ddb4b4d4efaaa119e289c5d069457656eeef4d6c Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Thu, 7 Mar 2024 16:33:39 +1000 Subject: [PATCH 05/20] regen with new feature and manual impls from willem --- Makefile | 3 +- src/curr/generated.rs | 2691 +++++++++++++++++++++++++++++++++-------- src/next/generated.rs | 2691 +++++++++++++++++++++++++++++++++-------- 3 files changed, 4402 insertions(+), 983 deletions(-) diff --git a/Makefile b/Makefile index 56404a5e..be3fac70 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,8 @@ CARGO_HACK_ARGS=--feature-powerset --exclude-features default --group-features b CARGO_DOC_ARGS?=--open -XDRGEN_VERSION=8cb548165a86ef3de504d68159948f852ad7e988 +XDRGEN_VERSION=8cfcc1a17472b933724c5b9501e4d33a680b09b1 +# LOCAL_XDRGEN=1 XDRGEN_TYPES_CUSTOM_STR_IMPL_CURR=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12 XDRGEN_TYPES_CUSTOM_STR_IMPL_NEXT=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12 diff --git a/src/curr/generated.rs b/src/curr/generated.rs index 61fc873a..5ef665cd 100644 --- a/src/curr/generated.rs +++ b/src/curr/generated.rs @@ -931,10 +931,7 @@ impl WriteXdr for [T; N] { #[cfg(feature = "alloc")] #[derive(Debug, Clone, Hash, PartialEq, Eq, PartialOrd, Ord)] -#[cfg_attr( - feature = "serde", - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema) -)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] pub struct VecM(Vec); @@ -959,6 +956,26 @@ impl Default for VecM { } } +#[cfg(all(feature = "schemars", feature = "serde", feature = "alloc"))] +impl schemars::JsonSchema for VecM { + fn schema_name() -> String { + format!("VecM<{}, {}>", T::schema_name(), MAX) + } + + fn is_referenceable() -> bool { + false + } + + fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { + mut_array(Vec::::json_schema(gen), |array| { + schemars::schema::ArrayValidation { + max_items: Some(MAX), + ..array + } + }) + } +} + impl VecM { pub const MAX_LEN: usize = { MAX as usize }; @@ -1340,11 +1357,7 @@ impl WriteXdr for VecM { #[derive(Clone, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( feature = "serde", - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] pub struct BytesM(Vec); @@ -1398,6 +1411,38 @@ impl Deref for BytesM { } } +#[cfg(all(feature = "schemars", feature = "serde", feature = "alloc"))] +impl schemars::JsonSchema for BytesM { + fn schema_name() -> String { + format!("BytesM<{}>", MAX) + } + + fn is_referenceable() -> bool { + false + } + + fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { + let schema_ = String::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema_ { + schema.extensions.insert( + "contentEncoding".to_owned(), + serde_json::Value::String("hex".to_string()), + ); + schema.extensions.insert( + "contentMediaType".to_owned(), + serde_json::Value::String("application/binary".to_string()), + ); + mut_string(schema.into(), |string| schemars::schema::StringValidation { + max_length: Some(((MAX.checked_mul(4).unwrap_or(u32::MAX) / 3) + 3) & !3), + min_length: Some(((MAX.checked_mul(4).unwrap_or(u32::MAX) / 3) + 3) & !3), + ..string + }) + } else { + schema_ + } + } +} + impl Default for BytesM { fn default() -> Self { Self(Vec::default()) @@ -1725,11 +1770,7 @@ impl WriteXdr for BytesM { #[derive(Clone, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( feature = "serde", - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] pub struct StringM(Vec); @@ -1790,6 +1831,26 @@ impl Default for StringM { } } +#[cfg(all(feature = "schemars", feature = "serde", feature = "alloc"))] +impl schemars::JsonSchema for StringM { + fn schema_name() -> String { + format!("StringM<{}>", MAX) + } + + fn is_referenceable() -> bool { + false + } + + fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { + mut_string(String::json_schema(gen), |string| { + schemars::schema::StringValidation { + max_length: Some(MAX), + ..string + } + }) + } +} + impl StringM { pub const MAX_LEN: usize = { MAX as usize }; @@ -2099,13 +2160,28 @@ impl WriteXdr for StringM { #[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] pub struct Frame(pub T) where T: ReadXdr; +#[cfg(all(feature = "schemars", feature = "serde", feature = "alloc"))] +impl schemars::JsonSchema for Frame { + fn schema_name() -> String { + format!("Frame<{}>", T::schema_name()) + } + + fn is_referenceable() -> bool { + false + } + + fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { + T::json_schema(gen) + } +} + impl ReadXdr for Frame where T: ReadXdr, @@ -2130,6 +2206,35 @@ where } } +fn mut_array( + schema: schemars::schema::Schema, + f: impl FnOnce(schemars::schema::ArrayValidation) -> schemars::schema::ArrayValidation, +) -> schemars::schema::Schema { + if let schemars::schema::Schema::Object(mut schema) = schema { + if let Some(array) = schema.array.clone() { + schema.array = Some(Box::new(f(*array))); + } + schema.into() + } else { + schema + } +} + +fn mut_string( + schema: schemars::schema::Schema, + f: impl FnOnce(schemars::schema::StringValidation) -> schemars::schema::StringValidation, +) -> schemars::schema::Schema { + if let schemars::schema::Schema::Object(mut schema) = schema { + let string = *schema.string.unwrap_or_default().clone(); + let s = f(string); + schema.string = Some(Box::new(s)); + + schema.into() + } else { + schema + } +} + #[cfg(all(test, feature = "std"))] mod tests { use std::io::Cursor; @@ -2766,9 +2871,13 @@ mod test { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct Value(pub BytesM); @@ -2874,9 +2983,13 @@ impl AsRef<[u8]> for Value { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScpBallot { pub counter: u32, pub value: Value, @@ -2922,9 +3035,13 @@ impl WriteXdr for ScpBallot { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ScpStatementType { Prepare = 0, @@ -3038,9 +3155,13 @@ impl WriteXdr for ScpStatementType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScpNomination { pub quorum_set_hash: Hash, pub votes: VecM, @@ -3090,9 +3211,13 @@ impl WriteXdr for ScpNomination { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScpStatementPrepare { pub quorum_set_hash: Hash, pub ballot: ScpBallot, @@ -3150,9 +3275,13 @@ impl WriteXdr for ScpStatementPrepare { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScpStatementConfirm { pub ballot: ScpBallot, pub n_prepared: u32, @@ -3205,9 +3334,13 @@ impl WriteXdr for ScpStatementConfirm { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScpStatementExternalize { pub commit: ScpBallot, pub n_h: u32, @@ -3280,9 +3413,13 @@ impl WriteXdr for ScpStatementExternalize { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ScpStatementPledges { Prepare(ScpStatementPrepare), @@ -3434,9 +3571,13 @@ impl WriteXdr for ScpStatementPledges { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScpStatement { pub node_id: NodeId, pub slot_index: u64, @@ -3482,9 +3623,13 @@ impl WriteXdr for ScpStatement { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScpEnvelope { pub statement: ScpStatement, pub signature: Signature, @@ -3528,9 +3673,13 @@ impl WriteXdr for ScpEnvelope { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScpQuorumSet { pub threshold: u32, pub validators: VecM, @@ -3576,9 +3725,13 @@ impl WriteXdr for ScpQuorumSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ConfigSettingContractExecutionLanesV0 { pub ledger_max_tx_count: u32, } @@ -3626,9 +3779,13 @@ impl WriteXdr for ConfigSettingContractExecutionLanesV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ConfigSettingContractComputeV0 { pub ledger_max_instructions: i64, pub tx_max_instructions: i64, @@ -3707,9 +3864,13 @@ impl WriteXdr for ConfigSettingContractComputeV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ConfigSettingContractLedgerCostV0 { pub ledger_max_read_ledger_entries: u32, pub ledger_max_read_bytes: u32, @@ -3790,9 +3951,13 @@ impl WriteXdr for ConfigSettingContractLedgerCostV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ConfigSettingContractHistoricalDataV0 { pub fee_historical1_kb: i64, } @@ -3834,9 +3999,13 @@ impl WriteXdr for ConfigSettingContractHistoricalDataV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ConfigSettingContractEventsV0 { pub tx_max_contract_events_size_bytes: u32, pub fee_contract_events1_kb: i64, @@ -3884,9 +4053,13 @@ impl WriteXdr for ConfigSettingContractEventsV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ConfigSettingContractBandwidthV0 { pub ledger_max_txs_size_bytes: u32, pub tx_max_size_bytes: u32, @@ -3980,9 +4153,13 @@ impl WriteXdr for ConfigSettingContractBandwidthV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ContractCostType { WasmInsnExec = 0, @@ -4197,9 +4374,13 @@ impl WriteXdr for ContractCostType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ContractCostParamEntry { pub ext: ExtensionPoint, pub const_term: i64, @@ -4264,9 +4445,13 @@ impl WriteXdr for ContractCostParamEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct StateArchivalSettings { pub max_entry_ttl: u32, pub min_temporary_ttl: u32, @@ -4333,9 +4518,13 @@ impl WriteXdr for StateArchivalSettings { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct EvictionIterator { pub bucket_list_level: u32, pub is_curr_bucket: bool, @@ -4386,9 +4575,13 @@ pub const CONTRACT_COST_COUNT_LIMIT: u64 = 1024; #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct ContractCostParams(pub VecM); @@ -4507,9 +4700,13 @@ impl AsRef<[ContractCostParamEntry]> for ContractCostParams { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ConfigSettingId { ContractMaxSizeBytes = 0, @@ -4704,9 +4901,13 @@ impl WriteXdr for ConfigSettingId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ConfigSettingEntry { ContractMaxSizeBytes(u32), @@ -4930,9 +5131,13 @@ impl WriteXdr for ConfigSettingEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ScEnvMetaKind { ScEnvMetaKindInterfaceVersion = 0, @@ -5032,9 +5237,13 @@ impl WriteXdr for ScEnvMetaKind { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ScEnvMetaEntry { ScEnvMetaKindInterfaceVersion(u64), @@ -5133,9 +5342,13 @@ impl WriteXdr for ScEnvMetaEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScMetaV0 { pub key: StringM, pub val: StringM, @@ -5178,9 +5391,13 @@ impl WriteXdr for ScMetaV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ScMetaKind { ScMetaV0 = 0, @@ -5280,9 +5497,13 @@ impl WriteXdr for ScMetaKind { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ScMetaEntry { ScMetaV0(ScMetaV0), @@ -5417,9 +5638,13 @@ pub const SC_SPEC_DOC_LIMIT: u64 = 1024; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ScSpecType { Val = 0, @@ -5641,9 +5866,13 @@ impl WriteXdr for ScSpecType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecTypeOption { pub value_type: Box, } @@ -5683,9 +5912,13 @@ impl WriteXdr for ScSpecTypeOption { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecTypeResult { pub ok_type: Box, pub error_type: Box, @@ -5727,9 +5960,13 @@ impl WriteXdr for ScSpecTypeResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecTypeVec { pub element_type: Box, } @@ -5769,9 +6006,13 @@ impl WriteXdr for ScSpecTypeVec { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecTypeMap { pub key_type: Box, pub value_type: Box, @@ -5813,9 +6054,13 @@ impl WriteXdr for ScSpecTypeMap { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecTypeTuple { pub value_types: VecM, } @@ -5854,9 +6099,13 @@ impl WriteXdr for ScSpecTypeTuple { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecTypeBytesN { pub n: u32, } @@ -5895,9 +6144,13 @@ impl WriteXdr for ScSpecTypeBytesN { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecTypeUdt { pub name: StringM<60>, } @@ -5969,9 +6222,13 @@ impl WriteXdr for ScSpecTypeUdt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ScSpecTypeDef { Val, @@ -6241,9 +6498,13 @@ impl WriteXdr for ScSpecTypeDef { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecUdtStructFieldV0 { pub doc: StringM<1024>, pub name: StringM<30>, @@ -6291,9 +6552,13 @@ impl WriteXdr for ScSpecUdtStructFieldV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecUdtStructV0 { pub doc: StringM<1024>, pub lib: StringM<80>, @@ -6342,9 +6607,13 @@ impl WriteXdr for ScSpecUdtStructV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecUdtUnionCaseVoidV0 { pub doc: StringM<1024>, pub name: StringM<60>, @@ -6388,9 +6657,13 @@ impl WriteXdr for ScSpecUdtUnionCaseVoidV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecUdtUnionCaseTupleV0 { pub doc: StringM<1024>, pub name: StringM<60>, @@ -6437,9 +6710,13 @@ impl WriteXdr for ScSpecUdtUnionCaseTupleV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ScSpecUdtUnionCaseV0Kind { VoidV0 = 0, @@ -6547,9 +6824,13 @@ impl WriteXdr for ScSpecUdtUnionCaseV0Kind { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ScSpecUdtUnionCaseV0 { VoidV0(ScSpecUdtUnionCaseVoidV0), @@ -6660,9 +6941,13 @@ impl WriteXdr for ScSpecUdtUnionCaseV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecUdtUnionV0 { pub doc: StringM<1024>, pub lib: StringM<80>, @@ -6712,9 +6997,13 @@ impl WriteXdr for ScSpecUdtUnionV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecUdtEnumCaseV0 { pub doc: StringM<1024>, pub name: StringM<60>, @@ -6762,9 +7051,13 @@ impl WriteXdr for ScSpecUdtEnumCaseV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecUdtEnumV0 { pub doc: StringM<1024>, pub lib: StringM<80>, @@ -6814,9 +7107,13 @@ impl WriteXdr for ScSpecUdtEnumV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecUdtErrorEnumCaseV0 { pub doc: StringM<1024>, pub name: StringM<60>, @@ -6864,9 +7161,13 @@ impl WriteXdr for ScSpecUdtErrorEnumCaseV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecUdtErrorEnumV0 { pub doc: StringM<1024>, pub lib: StringM<80>, @@ -6916,9 +7217,13 @@ impl WriteXdr for ScSpecUdtErrorEnumV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecFunctionInputV0 { pub doc: StringM<1024>, pub name: StringM<30>, @@ -6966,9 +7271,13 @@ impl WriteXdr for ScSpecFunctionInputV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecFunctionV0 { pub doc: StringM<1024>, pub name: ScSymbol, @@ -7021,9 +7330,13 @@ impl WriteXdr for ScSpecFunctionV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ScSpecEntryKind { FunctionV0 = 0, @@ -7155,9 +7468,13 @@ impl WriteXdr for ScSpecEntryKind { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ScSpecEntry { FunctionV0(ScSpecFunctionV0), @@ -7338,9 +7655,13 @@ impl WriteXdr for ScSpecEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ScValType { Bool = 0, @@ -7557,9 +7878,13 @@ impl WriteXdr for ScValType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ScErrorType { Contract = 0, @@ -7708,9 +8033,13 @@ impl WriteXdr for ScErrorType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ScErrorCode { ArithDomain = 0, @@ -7869,9 +8198,13 @@ impl WriteXdr for ScErrorCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ScError { Contract(u32), @@ -8026,9 +8359,13 @@ impl WriteXdr for ScError { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct UInt128Parts { pub hi: u64, pub lo: u64, @@ -8070,9 +8407,13 @@ impl WriteXdr for UInt128Parts { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct Int128Parts { pub hi: i64, pub lo: u64, @@ -8116,9 +8457,13 @@ impl WriteXdr for Int128Parts { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct UInt256Parts { pub hi_hi: u64, pub hi_lo: u64, @@ -8168,9 +8513,13 @@ impl WriteXdr for UInt256Parts { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct Int256Parts { pub hi_hi: i64, pub hi_lo: u64, @@ -8220,9 +8569,13 @@ impl WriteXdr for Int256Parts { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ContractExecutableType { Wasm = 0, @@ -8330,9 +8683,13 @@ impl WriteXdr for ContractExecutableType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ContractExecutable { Wasm(Hash), @@ -8438,9 +8795,13 @@ impl WriteXdr for ContractExecutable { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ScAddressType { Account = 0, @@ -8545,11 +8906,11 @@ impl WriteXdr for ScAddressType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] #[allow(clippy::large_enum_variant)] pub enum ScAddress { @@ -8657,9 +9018,13 @@ pub const SCSYMBOL_LIMIT: u64 = 32; #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct ScVec(pub VecM); @@ -8762,9 +9127,13 @@ impl AsRef<[ScVal]> for ScVec { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct ScMap(pub VecM); @@ -8867,9 +9236,13 @@ impl AsRef<[ScMapEntry]> for ScMap { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct ScBytes(pub BytesM); @@ -8972,9 +9345,13 @@ impl AsRef<[u8]> for ScBytes { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct ScString(pub StringM); @@ -9077,9 +9454,13 @@ impl AsRef<[u8]> for ScString { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct ScSymbol(pub StringM<32>); @@ -9183,9 +9564,13 @@ impl AsRef<[u8]> for ScSymbol { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScNonceKey { pub nonce: i64, } @@ -9224,9 +9609,13 @@ impl WriteXdr for ScNonceKey { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScContractInstance { pub executable: ContractExecutable, pub storage: Option, @@ -9326,9 +9715,13 @@ impl WriteXdr for ScContractInstance { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ScVal { Bool(bool), @@ -9578,9 +9971,13 @@ impl WriteXdr for ScVal { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScMapEntry { pub key: ScVal, pub val: ScVal, @@ -9626,9 +10023,13 @@ impl WriteXdr for ScMapEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum StoredTransactionSet { V0(TransactionSet), @@ -9731,9 +10132,13 @@ impl WriteXdr for StoredTransactionSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct StoredDebugTransactionSet { pub tx_set: StoredTransactionSet, pub ledger_seq: u32, @@ -9780,9 +10185,13 @@ impl WriteXdr for StoredDebugTransactionSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct PersistedScpStateV0 { pub scp_envelopes: VecM, pub quorum_sets: VecM, @@ -9829,9 +10238,13 @@ impl WriteXdr for PersistedScpStateV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct PersistedScpStateV1 { pub scp_envelopes: VecM, pub quorum_sets: VecM, @@ -9877,9 +10290,13 @@ impl WriteXdr for PersistedScpStateV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum PersistedScpState { V0(PersistedScpStateV0), @@ -9977,11 +10394,11 @@ impl WriteXdr for PersistedScpState { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] pub struct Thresholds(pub [u8; 4]); @@ -10100,9 +10517,13 @@ impl AsRef<[u8]> for Thresholds { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct String32(pub StringM<32>); @@ -10205,9 +10626,13 @@ impl AsRef<[u8]> for String32 { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct String64(pub StringM<64>); @@ -10309,9 +10734,13 @@ impl AsRef<[u8]> for String64 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct SequenceNumber(pub i64); @@ -10365,9 +10794,13 @@ impl WriteXdr for SequenceNumber { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct DataValue(pub BytesM<64>); @@ -10469,9 +10902,13 @@ impl AsRef<[u8]> for DataValue { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct PoolId(pub Hash); @@ -10524,11 +10961,11 @@ impl WriteXdr for PoolId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] pub struct AssetCode4(pub [u8; 4]); @@ -10629,11 +11066,11 @@ impl AsRef<[u8]> for AssetCode4 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] pub struct AssetCode12(pub [u8; 12]); @@ -10741,9 +11178,13 @@ impl AsRef<[u8]> for AssetCode12 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum AssetType { Native = 0, @@ -10863,11 +11304,11 @@ impl WriteXdr for AssetType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] #[allow(clippy::large_enum_variant)] pub enum AssetCode { @@ -10970,9 +11411,13 @@ impl WriteXdr for AssetCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct AlphaNum4 { pub asset_code: AssetCode4, pub issuer: AccountId, @@ -11015,9 +11460,13 @@ impl WriteXdr for AlphaNum4 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct AlphaNum12 { pub asset_code: AssetCode12, pub issuer: AccountId, @@ -11069,9 +11518,13 @@ impl WriteXdr for AlphaNum12 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum Asset { Native, @@ -11182,9 +11635,13 @@ impl WriteXdr for Asset { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct Price { pub n: i32, pub d: i32, @@ -11227,9 +11684,13 @@ impl WriteXdr for Price { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct Liabilities { pub buying: i64, pub selling: i64, @@ -11275,9 +11736,13 @@ impl WriteXdr for Liabilities { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ThresholdIndexes { MasterWeight = 0, @@ -11399,9 +11864,13 @@ impl WriteXdr for ThresholdIndexes { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum LedgerEntryType { Account = 0, @@ -11549,9 +12018,13 @@ impl WriteXdr for LedgerEntryType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct Signer { pub key: SignerKey, pub weight: u32, @@ -11607,9 +12080,13 @@ impl WriteXdr for Signer { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum AccountFlags { RequiredFlag = 1, @@ -11747,9 +12224,13 @@ pub const MAX_SIGNERS: u64 = 20; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct SponsorshipDescriptor(pub Option); @@ -11813,9 +12294,13 @@ impl WriteXdr for SponsorshipDescriptor { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct AccountEntryExtensionV3 { pub ext: ExtensionPoint, pub seq_ledger: u32, @@ -11864,9 +12349,13 @@ impl WriteXdr for AccountEntryExtensionV3 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum AccountEntryExtensionV2Ext { V0, @@ -11978,9 +12467,13 @@ impl WriteXdr for AccountEntryExtensionV2Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct AccountEntryExtensionV2 { pub num_sponsored: u32, pub num_sponsoring: u32, @@ -12032,9 +12525,13 @@ impl WriteXdr for AccountEntryExtensionV2 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum AccountEntryExtensionV1Ext { V0, @@ -12144,9 +12641,13 @@ impl WriteXdr for AccountEntryExtensionV1Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct AccountEntryExtensionV1 { pub liabilities: Liabilities, pub ext: AccountEntryExtensionV1Ext, @@ -12192,9 +12693,13 @@ impl WriteXdr for AccountEntryExtensionV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum AccountEntryExt { V0, @@ -12319,9 +12824,13 @@ impl WriteXdr for AccountEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct AccountEntry { pub account_id: AccountId, pub balance: i64, @@ -12395,9 +12904,13 @@ impl WriteXdr for AccountEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum TrustLineFlags { AuthorizedFlag = 1, @@ -12534,9 +13047,13 @@ pub const MASK_TRUSTLINE_FLAGS_V17: u64 = 7; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum LiquidityPoolType { LiquidityPoolConstantProduct = 0, @@ -12647,9 +13164,13 @@ impl WriteXdr for LiquidityPoolType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TrustLineAsset { Native, @@ -12768,9 +13289,13 @@ impl WriteXdr for TrustLineAsset { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TrustLineEntryExtensionV2Ext { V0, @@ -12873,9 +13398,13 @@ impl WriteXdr for TrustLineEntryExtensionV2Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TrustLineEntryExtensionV2 { pub liquidity_pool_use_count: i32, pub ext: TrustLineEntryExtensionV2Ext, @@ -12921,9 +13450,13 @@ impl WriteXdr for TrustLineEntryExtensionV2 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TrustLineEntryV1Ext { V0, @@ -13033,9 +13566,13 @@ impl WriteXdr for TrustLineEntryV1Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TrustLineEntryV1 { pub liabilities: Liabilities, pub ext: TrustLineEntryV1Ext, @@ -13093,9 +13630,13 @@ impl WriteXdr for TrustLineEntryV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TrustLineEntryExt { V0, @@ -13224,9 +13765,13 @@ impl WriteXdr for TrustLineEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TrustLineEntry { pub account_id: AccountId, pub asset: TrustLineAsset, @@ -13283,9 +13828,13 @@ impl WriteXdr for TrustLineEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum OfferEntryFlags { PassiveFlag = 1, @@ -13393,9 +13942,13 @@ pub const MASK_OFFERENTRY_FLAGS: u64 = 1; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum OfferEntryExt { V0, @@ -13511,9 +14064,13 @@ impl WriteXdr for OfferEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct OfferEntry { pub seller_id: AccountId, pub offer_id: i64, @@ -13575,9 +14132,13 @@ impl WriteXdr for OfferEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum DataEntryExt { V0, @@ -13683,9 +14244,13 @@ impl WriteXdr for DataEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct DataEntry { pub account_id: AccountId, pub data_name: String64, @@ -13739,9 +14304,13 @@ impl WriteXdr for DataEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ClaimPredicateType { Unconditional = 0, @@ -13881,9 +14450,13 @@ impl WriteXdr for ClaimPredicateType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ClaimPredicate { Unconditional, @@ -14023,9 +14596,13 @@ impl WriteXdr for ClaimPredicate { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ClaimantType { ClaimantTypeV0 = 0, @@ -14124,9 +14701,13 @@ impl WriteXdr for ClaimantType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ClaimantV0 { pub destination: AccountId, pub predicate: ClaimPredicate, @@ -14174,9 +14755,13 @@ impl WriteXdr for ClaimantV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum Claimant { ClaimantTypeV0(ClaimantV0), @@ -14273,9 +14858,13 @@ impl WriteXdr for Claimant { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ClaimableBalanceIdType { ClaimableBalanceIdTypeV0 = 0, @@ -14376,9 +14965,13 @@ impl WriteXdr for ClaimableBalanceIdType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ClaimableBalanceId { ClaimableBalanceIdTypeV0(Hash), @@ -14480,9 +15073,13 @@ impl WriteXdr for ClaimableBalanceId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ClaimableBalanceFlags { ClaimableBalanceClawbackEnabledFlag = 1, @@ -14591,9 +15188,13 @@ pub const MASK_CLAIMABLE_BALANCE_FLAGS: u64 = 0x1; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ClaimableBalanceEntryExtensionV1Ext { V0, @@ -14696,9 +15297,13 @@ impl WriteXdr for ClaimableBalanceEntryExtensionV1Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ClaimableBalanceEntryExtensionV1 { pub ext: ClaimableBalanceEntryExtensionV1Ext, pub flags: u32, @@ -14744,9 +15349,13 @@ impl WriteXdr for ClaimableBalanceEntryExtensionV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ClaimableBalanceEntryExt { V0, @@ -14867,9 +15476,13 @@ impl WriteXdr for ClaimableBalanceEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ClaimableBalanceEntry { pub balance_id: ClaimableBalanceId, pub claimants: VecM, @@ -14922,9 +15535,13 @@ impl WriteXdr for ClaimableBalanceEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LiquidityPoolConstantProductParameters { pub asset_a: Asset, pub asset_b: Asset, @@ -14975,9 +15592,13 @@ impl WriteXdr for LiquidityPoolConstantProductParameters { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LiquidityPoolEntryConstantProduct { pub params: LiquidityPoolConstantProductParameters, pub reserve_a: i64, @@ -15039,9 +15660,13 @@ impl WriteXdr for LiquidityPoolEntryConstantProduct { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LiquidityPoolEntryBody { LiquidityPoolConstantProduct(LiquidityPoolEntryConstantProduct), @@ -15159,9 +15784,13 @@ impl WriteXdr for LiquidityPoolEntryBody { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LiquidityPoolEntry { pub liquidity_pool_id: PoolId, pub body: LiquidityPoolEntryBody, @@ -15204,9 +15833,13 @@ impl WriteXdr for LiquidityPoolEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ContractDataDurability { Temporary = 0, @@ -15314,9 +15947,13 @@ impl WriteXdr for ContractDataDurability { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ContractDataEntry { pub ext: ExtensionPoint, pub contract: ScAddress, @@ -15369,9 +16006,13 @@ impl WriteXdr for ContractDataEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ContractCodeEntry { pub ext: ExtensionPoint, pub hash: Hash, @@ -15417,9 +16058,13 @@ impl WriteXdr for ContractCodeEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TtlEntry { pub key_hash: Hash, pub live_until_ledger_seq: u32, @@ -15463,9 +16108,13 @@ impl WriteXdr for TtlEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LedgerEntryExtensionV1Ext { V0, @@ -15568,9 +16217,13 @@ impl WriteXdr for LedgerEntryExtensionV1Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerEntryExtensionV1 { pub sponsoring_id: SponsorshipDescriptor, pub ext: LedgerEntryExtensionV1Ext, @@ -15632,9 +16285,13 @@ impl WriteXdr for LedgerEntryExtensionV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LedgerEntryData { Account(AccountEntry), @@ -15811,9 +16468,13 @@ impl WriteXdr for LedgerEntryData { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LedgerEntryExt { V0, @@ -15949,9 +16610,13 @@ impl WriteXdr for LedgerEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerEntry { pub last_modified_ledger_seq: u32, pub data: LedgerEntryData, @@ -15996,9 +16661,13 @@ impl WriteXdr for LedgerEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerKeyAccount { pub account_id: AccountId, } @@ -16038,9 +16707,13 @@ impl WriteXdr for LedgerKeyAccount { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerKeyTrustLine { pub account_id: AccountId, pub asset: TrustLineAsset, @@ -16083,9 +16756,13 @@ impl WriteXdr for LedgerKeyTrustLine { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerKeyOffer { pub seller_id: AccountId, pub offer_id: i64, @@ -16128,9 +16805,13 @@ impl WriteXdr for LedgerKeyOffer { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerKeyData { pub account_id: AccountId, pub data_name: String64, @@ -16172,9 +16853,13 @@ impl WriteXdr for LedgerKeyData { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerKeyClaimableBalance { pub balance_id: ClaimableBalanceId, } @@ -16213,9 +16898,13 @@ impl WriteXdr for LedgerKeyClaimableBalance { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerKeyLiquidityPool { pub liquidity_pool_id: PoolId, } @@ -16256,9 +16945,13 @@ impl WriteXdr for LedgerKeyLiquidityPool { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerKeyContractData { pub contract: ScAddress, pub key: ScVal, @@ -16303,9 +16996,13 @@ impl WriteXdr for LedgerKeyContractData { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerKeyContractCode { pub hash: Hash, } @@ -16344,9 +17041,13 @@ impl WriteXdr for LedgerKeyContractCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerKeyConfigSetting { pub config_setting_id: ConfigSettingId, } @@ -16386,9 +17087,13 @@ impl WriteXdr for LedgerKeyConfigSetting { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerKeyTtl { pub key_hash: Hash, } @@ -16488,9 +17193,13 @@ impl WriteXdr for LedgerKeyTtl { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LedgerKey { Account(LedgerKeyAccount), @@ -16673,9 +17382,13 @@ impl WriteXdr for LedgerKey { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum EnvelopeType { TxV0 = 0, @@ -16820,9 +17533,13 @@ impl WriteXdr for EnvelopeType { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct UpgradeType(pub BytesM<128>); @@ -16929,9 +17646,13 @@ impl AsRef<[u8]> for UpgradeType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum StellarValueType { Basic = 0, @@ -17033,9 +17754,13 @@ impl WriteXdr for StellarValueType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerCloseValueSignature { pub node_id: NodeId, pub signature: Signature, @@ -17081,9 +17806,13 @@ impl WriteXdr for LedgerCloseValueSignature { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum StellarValueExt { Basic, @@ -17202,9 +17931,13 @@ impl WriteXdr for StellarValueExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct StellarValue { pub tx_set_hash: Hash, pub close_time: TimePoint, @@ -17263,9 +17996,13 @@ pub const MASK_LEDGER_HEADER_FLAGS: u64 = 0x7; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum LedgerHeaderFlags { TradingFlag = 1, @@ -17375,9 +18112,13 @@ impl WriteXdr for LedgerHeaderFlags { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LedgerHeaderExtensionV1Ext { V0, @@ -17480,9 +18221,13 @@ impl WriteXdr for LedgerHeaderExtensionV1Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerHeaderExtensionV1 { pub flags: u32, pub ext: LedgerHeaderExtensionV1Ext, @@ -17528,9 +18273,13 @@ impl WriteXdr for LedgerHeaderExtensionV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LedgerHeaderExt { V0, @@ -17666,9 +18415,13 @@ impl WriteXdr for LedgerHeaderExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerHeader { pub ledger_version: u32, pub previous_ledger_hash: Hash, @@ -17756,9 +18509,13 @@ impl WriteXdr for LedgerHeader { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum LedgerUpgradeType { Version = 1, @@ -17890,9 +18647,13 @@ impl WriteXdr for LedgerUpgradeType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ConfigUpgradeSetKey { pub contract_id: Hash, pub content_hash: Hash, @@ -17951,9 +18712,13 @@ impl WriteXdr for ConfigUpgradeSetKey { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LedgerUpgrade { Version(u32), @@ -18096,9 +18861,13 @@ impl WriteXdr for LedgerUpgrade { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ConfigUpgradeSet { pub updated_entry: VecM, } @@ -18143,9 +18912,13 @@ impl WriteXdr for ConfigUpgradeSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum BucketEntryType { Metaentry = -1, @@ -18260,9 +19033,13 @@ impl WriteXdr for BucketEntryType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum BucketMetadataExt { V0, @@ -18367,9 +19144,13 @@ impl WriteXdr for BucketMetadataExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct BucketMetadata { pub ledger_version: u32, pub ext: BucketMetadataExt, @@ -18419,9 +19200,13 @@ impl WriteXdr for BucketMetadata { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum BucketEntry { Liveentry(LedgerEntry), @@ -18541,9 +19326,13 @@ impl WriteXdr for BucketEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum TxSetComponentType { TxsetCompTxsMaybeDiscountedFee = 0, @@ -18643,9 +19432,13 @@ impl WriteXdr for TxSetComponentType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TxSetComponentTxsMaybeDiscountedFee { pub base_fee: Option, pub txs: VecM, @@ -18693,9 +19486,13 @@ impl WriteXdr for TxSetComponentTxsMaybeDiscountedFee { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TxSetComponent { TxsetCompTxsMaybeDiscountedFee(TxSetComponentTxsMaybeDiscountedFee), @@ -18800,9 +19597,13 @@ impl WriteXdr for TxSetComponent { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TransactionPhase { V0(VecM), @@ -18899,9 +19700,13 @@ impl WriteXdr for TransactionPhase { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionSet { pub previous_ledger_hash: Hash, pub txs: VecM, @@ -18944,9 +19749,13 @@ impl WriteXdr for TransactionSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionSetV1 { pub previous_ledger_hash: Hash, pub phases: VecM, @@ -18991,9 +19800,13 @@ impl WriteXdr for TransactionSetV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum GeneralizedTransactionSet { V1(TransactionSetV1), @@ -19090,9 +19903,13 @@ impl WriteXdr for GeneralizedTransactionSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionResultPair { pub transaction_hash: Hash, pub result: TransactionResult, @@ -19134,9 +19951,13 @@ impl WriteXdr for TransactionResultPair { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionResultSet { pub results: VecM, } @@ -19179,9 +20000,13 @@ impl WriteXdr for TransactionResultSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TransactionHistoryEntryExt { V0, @@ -19293,9 +20118,13 @@ impl WriteXdr for TransactionHistoryEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionHistoryEntry { pub ledger_seq: u32, pub tx_set: TransactionSet, @@ -19342,9 +20171,13 @@ impl WriteXdr for TransactionHistoryEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TransactionHistoryResultEntryExt { V0, @@ -19449,9 +20282,13 @@ impl WriteXdr for TransactionHistoryResultEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionHistoryResultEntry { pub ledger_seq: u32, pub tx_result_set: TransactionResultSet, @@ -19498,9 +20335,13 @@ impl WriteXdr for TransactionHistoryResultEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LedgerHeaderHistoryEntryExt { V0, @@ -19605,9 +20446,13 @@ impl WriteXdr for LedgerHeaderHistoryEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerHeaderHistoryEntry { pub hash: Hash, pub header: LedgerHeader, @@ -19653,9 +20498,13 @@ impl WriteXdr for LedgerHeaderHistoryEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerScpMessages { pub ledger_seq: u32, pub messages: VecM, @@ -19698,9 +20547,13 @@ impl WriteXdr for LedgerScpMessages { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScpHistoryEntryV0 { pub quorum_sets: VecM, pub ledger_messages: LedgerScpMessages, @@ -19744,9 +20597,13 @@ impl WriteXdr for ScpHistoryEntryV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ScpHistoryEntry { V0(ScpHistoryEntryV0), @@ -19846,9 +20703,13 @@ impl WriteXdr for ScpHistoryEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum LedgerEntryChangeType { Created = 0, @@ -19968,9 +20829,13 @@ impl WriteXdr for LedgerEntryChangeType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LedgerEntryChange { Created(LedgerEntry), @@ -20084,9 +20949,13 @@ impl WriteXdr for LedgerEntryChange { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct LedgerEntryChanges(pub VecM); @@ -20191,9 +21060,13 @@ impl AsRef<[LedgerEntryChange]> for LedgerEntryChanges { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct OperationMeta { pub changes: LedgerEntryChanges, } @@ -20233,9 +21106,13 @@ impl WriteXdr for OperationMeta { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionMetaV1 { pub tx_changes: LedgerEntryChanges, pub operations: VecM, @@ -20281,9 +21158,13 @@ impl WriteXdr for TransactionMetaV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionMetaV2 { pub tx_changes_before: LedgerEntryChanges, pub operations: VecM, @@ -20331,9 +21212,13 @@ impl WriteXdr for TransactionMetaV2 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ContractEventType { System = 0, @@ -20442,9 +21327,13 @@ impl WriteXdr for ContractEventType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ContractEventV0 { pub topics: VecM, pub data: ScVal, @@ -20492,9 +21381,13 @@ impl WriteXdr for ContractEventV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ContractEventBody { V0(ContractEventV0), @@ -20606,9 +21499,13 @@ impl WriteXdr for ContractEventBody { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ContractEvent { pub ext: ExtensionPoint, pub contract_id: Option, @@ -20657,9 +21554,13 @@ impl WriteXdr for ContractEvent { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct DiagnosticEvent { pub in_successful_contract_call: bool, pub event: ContractEvent, @@ -20710,9 +21611,13 @@ impl WriteXdr for DiagnosticEvent { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SorobanTransactionMeta { pub ext: ExtensionPoint, pub events: VecM, @@ -20768,9 +21673,13 @@ impl WriteXdr for SorobanTransactionMeta { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionMetaV3 { pub ext: ExtensionPoint, pub tx_changes_before: LedgerEntryChanges, @@ -20822,9 +21731,13 @@ impl WriteXdr for TransactionMetaV3 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct InvokeHostFunctionSuccessPreImage { pub return_value: ScVal, pub events: VecM, @@ -20874,9 +21787,13 @@ impl WriteXdr for InvokeHostFunctionSuccessPreImage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TransactionMeta { V0(VecM), @@ -20989,9 +21906,13 @@ impl WriteXdr for TransactionMeta { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionResultMeta { pub result: TransactionResultPair, pub fee_processing: LedgerEntryChanges, @@ -21037,9 +21958,13 @@ impl WriteXdr for TransactionResultMeta { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct UpgradeEntryMeta { pub upgrade: LedgerUpgrade, pub changes: LedgerEntryChanges, @@ -21094,9 +22019,13 @@ impl WriteXdr for UpgradeEntryMeta { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerCloseMetaV0 { pub ledger_header: LedgerHeaderHistoryEntry, pub tx_set: TransactionSet, @@ -21175,9 +22104,13 @@ impl WriteXdr for LedgerCloseMetaV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerCloseMetaV1 { pub ext: ExtensionPoint, pub ledger_header: LedgerHeaderHistoryEntry, @@ -21244,9 +22177,13 @@ impl WriteXdr for LedgerCloseMetaV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LedgerCloseMeta { V0(LedgerCloseMetaV0), @@ -21352,9 +22289,13 @@ impl WriteXdr for LedgerCloseMeta { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ErrorCode { Misc = 0, @@ -21471,9 +22412,13 @@ impl WriteXdr for ErrorCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SError { pub code: ErrorCode, pub msg: StringM<100>, @@ -21515,9 +22460,13 @@ impl WriteXdr for SError { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SendMore { pub num_messages: u32, } @@ -21557,9 +22506,13 @@ impl WriteXdr for SendMore { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SendMoreExtended { pub num_messages: u32, pub num_bytes: u32, @@ -21603,9 +22556,13 @@ impl WriteXdr for SendMoreExtended { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct AuthCert { pub pubkey: Curve25519Public, pub expiration: u64, @@ -21658,9 +22615,13 @@ impl WriteXdr for AuthCert { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct Hello { pub ledger_version: u32, pub overlay_version: u32, @@ -21731,9 +22692,13 @@ pub const AUTH_MSG_FLAG_FLOW_CONTROL_BYTES_REQUESTED: u64 = 200; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct Auth { pub flags: i32, } @@ -21774,9 +22739,13 @@ impl WriteXdr for Auth { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum IpAddrType { IPv4 = 0, @@ -21881,9 +22850,13 @@ impl WriteXdr for IpAddrType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum PeerAddressIp { IPv4([u8; 4]), @@ -21993,9 +22966,13 @@ impl WriteXdr for PeerAddressIp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct PeerAddress { pub ip: PeerAddressIp, pub port: u32, @@ -22070,9 +23047,13 @@ impl WriteXdr for PeerAddress { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum MessageType { ErrorMsg = 0, @@ -22270,9 +23251,13 @@ impl WriteXdr for MessageType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct DontHave { pub type_: MessageType, pub req_hash: Uint256, @@ -22315,9 +23300,13 @@ impl WriteXdr for DontHave { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum SurveyMessageCommandType { SurveyTopology = 0, @@ -22417,9 +23406,13 @@ impl WriteXdr for SurveyMessageCommandType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum SurveyMessageResponseType { V0 = 0, @@ -22525,9 +23518,13 @@ impl WriteXdr for SurveyMessageResponseType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SurveyRequestMessage { pub surveyor_peer_id: NodeId, pub surveyed_peer_id: NodeId, @@ -22579,9 +23576,13 @@ impl WriteXdr for SurveyRequestMessage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SignedSurveyRequestMessage { pub request_signature: Signature, pub request: SurveyRequestMessage, @@ -22621,9 +23622,13 @@ impl WriteXdr for SignedSurveyRequestMessage { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct EncryptedBody(pub BytesM<64000>); @@ -22732,9 +23737,13 @@ impl AsRef<[u8]> for EncryptedBody { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SurveyResponseMessage { pub surveyor_peer_id: NodeId, pub surveyed_peer_id: NodeId, @@ -22786,9 +23795,13 @@ impl WriteXdr for SurveyResponseMessage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SignedSurveyResponseMessage { pub response_signature: Signature, pub response: SurveyResponseMessage, @@ -22846,9 +23859,13 @@ impl WriteXdr for SignedSurveyResponseMessage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct PeerStats { pub id: NodeId, pub version_str: StringM<100>, @@ -22927,9 +23944,13 @@ impl WriteXdr for PeerStats { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct PeerStatList(pub VecM); @@ -23038,9 +24059,13 @@ impl AsRef<[PeerStats]> for PeerStatList { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TopologyResponseBodyV0 { pub inbound_peers: PeerStatList, pub outbound_peers: PeerStatList, @@ -23095,9 +24120,13 @@ impl WriteXdr for TopologyResponseBodyV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TopologyResponseBodyV1 { pub inbound_peers: PeerStatList, pub outbound_peers: PeerStatList, @@ -23155,9 +24184,13 @@ impl WriteXdr for TopologyResponseBodyV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum SurveyResponseBody { V0(TopologyResponseBodyV0), @@ -23266,9 +24299,13 @@ pub const TX_ADVERT_VECTOR_MAX_SIZE: u64 = 1000; #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct TxAdvertVector(pub VecM); @@ -23373,9 +24410,13 @@ impl AsRef<[Hash]> for TxAdvertVector { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct FloodAdvert { pub tx_hashes: TxAdvertVector, } @@ -23420,9 +24461,13 @@ pub const TX_DEMAND_VECTOR_MAX_SIZE: u64 = 1000; #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct TxDemandVector(pub VecM); @@ -23527,9 +24572,13 @@ impl AsRef<[Hash]> for TxDemandVector { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct FloodDemand { pub tx_hashes: TxDemandVector, } @@ -23615,9 +24664,13 @@ impl WriteXdr for FloodDemand { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum StellarMessage { ErrorMsg(SError), @@ -23860,9 +24913,13 @@ impl WriteXdr for StellarMessage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct AuthenticatedMessageV0 { pub sequence: u64, pub message: StellarMessage, @@ -23914,9 +24971,13 @@ impl WriteXdr for AuthenticatedMessageV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum AuthenticatedMessage { V0(AuthenticatedMessageV0), @@ -24022,9 +25083,13 @@ pub const MAX_OPS_PER_TX: u64 = 100; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LiquidityPoolParameters { LiquidityPoolConstantProduct(LiquidityPoolConstantProductParameters), @@ -24127,11 +25192,11 @@ impl WriteXdr for LiquidityPoolParameters { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] pub struct MuxedAccountMed25519 { pub id: u64, @@ -24182,11 +25247,11 @@ impl WriteXdr for MuxedAccountMed25519 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] #[allow(clippy::large_enum_variant)] pub enum MuxedAccount { @@ -24291,9 +25356,13 @@ impl WriteXdr for MuxedAccount { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct DecoratedSignature { pub hint: SignatureHint, pub signature: Signature, @@ -24362,9 +25431,13 @@ impl WriteXdr for DecoratedSignature { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum OperationType { CreateAccount = 0, @@ -24597,9 +25670,13 @@ impl WriteXdr for OperationType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct CreateAccountOp { pub destination: AccountId, pub starting_balance: i64, @@ -24643,9 +25720,13 @@ impl WriteXdr for CreateAccountOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct PaymentOp { pub destination: MuxedAccount, pub asset: Asset, @@ -24699,9 +25780,13 @@ impl WriteXdr for PaymentOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct PathPaymentStrictReceiveOp { pub send_asset: Asset, pub send_max: i64, @@ -24764,9 +25849,13 @@ impl WriteXdr for PathPaymentStrictReceiveOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct PathPaymentStrictSendOp { pub send_asset: Asset, pub send_amount: i64, @@ -24826,9 +25915,13 @@ impl WriteXdr for PathPaymentStrictSendOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ManageSellOfferOp { pub selling: Asset, pub buying: Asset, @@ -24886,9 +25979,13 @@ impl WriteXdr for ManageSellOfferOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ManageBuyOfferOp { pub selling: Asset, pub buying: Asset, @@ -24942,9 +26039,13 @@ impl WriteXdr for ManageBuyOfferOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct CreatePassiveSellOfferOp { pub selling: Asset, pub buying: Asset, @@ -25007,9 +26108,13 @@ impl WriteXdr for CreatePassiveSellOfferOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SetOptionsOp { pub inflation_dest: Option, pub clear_flags: Option, @@ -25085,9 +26190,13 @@ impl WriteXdr for SetOptionsOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ChangeTrustAsset { Native, @@ -25207,9 +26316,13 @@ impl WriteXdr for ChangeTrustAsset { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ChangeTrustOp { pub line: ChangeTrustAsset, pub limit: i64, @@ -25255,9 +26368,13 @@ impl WriteXdr for ChangeTrustOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct AllowTrustOp { pub trustor: AccountId, pub asset: AssetCode, @@ -25303,9 +26420,13 @@ impl WriteXdr for AllowTrustOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ManageDataOp { pub data_name: String64, pub data_value: Option, @@ -25347,9 +26468,13 @@ impl WriteXdr for ManageDataOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct BumpSequenceOp { pub bump_to: SequenceNumber, } @@ -25390,9 +26515,13 @@ impl WriteXdr for BumpSequenceOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct CreateClaimableBalanceOp { pub asset: Asset, pub amount: i64, @@ -25437,9 +26566,13 @@ impl WriteXdr for CreateClaimableBalanceOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ClaimClaimableBalanceOp { pub balance_id: ClaimableBalanceId, } @@ -25478,9 +26611,13 @@ impl WriteXdr for ClaimClaimableBalanceOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct BeginSponsoringFutureReservesOp { pub sponsored_id: AccountId, } @@ -25521,9 +26658,13 @@ impl WriteXdr for BeginSponsoringFutureReservesOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum RevokeSponsorshipType { LedgerEntry = 0, @@ -25628,9 +26769,13 @@ impl WriteXdr for RevokeSponsorshipType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct RevokeSponsorshipOpSigner { pub account_id: AccountId, pub signer_key: SignerKey, @@ -25680,9 +26825,13 @@ impl WriteXdr for RevokeSponsorshipOpSigner { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum RevokeSponsorshipOp { LedgerEntry(LedgerKey), @@ -25790,9 +26939,13 @@ impl WriteXdr for RevokeSponsorshipOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ClawbackOp { pub asset: Asset, pub from: MuxedAccount, @@ -25837,9 +26990,13 @@ impl WriteXdr for ClawbackOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ClawbackClaimableBalanceOp { pub balance_id: ClaimableBalanceId, } @@ -25882,9 +27039,13 @@ impl WriteXdr for ClawbackClaimableBalanceOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SetTrustLineFlagsOp { pub trustor: AccountId, pub asset: Asset, @@ -25944,9 +27105,13 @@ pub const LIQUIDITY_POOL_FEE_V18: u64 = 30; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LiquidityPoolDepositOp { pub liquidity_pool_id: PoolId, pub max_amount_a: i64, @@ -26000,9 +27165,13 @@ impl WriteXdr for LiquidityPoolDepositOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LiquidityPoolWithdrawOp { pub liquidity_pool_id: PoolId, pub amount: i64, @@ -26053,9 +27222,13 @@ impl WriteXdr for LiquidityPoolWithdrawOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum HostFunctionType { InvokeContract = 0, @@ -26166,9 +27339,13 @@ impl WriteXdr for HostFunctionType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ContractIdPreimageType { Address = 0, @@ -26273,9 +27450,13 @@ impl WriteXdr for ContractIdPreimageType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ContractIdPreimageFromAddress { pub address: ScAddress, pub salt: Uint256, @@ -26325,9 +27506,13 @@ impl WriteXdr for ContractIdPreimageFromAddress { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ContractIdPreimage { Address(ContractIdPreimageFromAddress), @@ -26434,9 +27619,13 @@ impl WriteXdr for ContractIdPreimage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct CreateContractArgs { pub contract_id_preimage: ContractIdPreimage, pub executable: ContractExecutable, @@ -26479,9 +27668,13 @@ impl WriteXdr for CreateContractArgs { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct InvokeContractArgs { pub contract_address: ScAddress, pub function_name: ScSymbol, @@ -26532,9 +27725,13 @@ impl WriteXdr for InvokeContractArgs { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum HostFunction { InvokeContract(InvokeContractArgs), @@ -26653,9 +27850,13 @@ impl WriteXdr for HostFunction { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum SorobanAuthorizedFunctionType { ContractFn = 0, @@ -26763,9 +27964,13 @@ impl WriteXdr for SorobanAuthorizedFunctionType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum SorobanAuthorizedFunction { ContractFn(InvokeContractArgs), @@ -26875,9 +28080,13 @@ impl WriteXdr for SorobanAuthorizedFunction { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SorobanAuthorizedInvocation { pub function: SorobanAuthorizedFunction, pub sub_invocations: VecM, @@ -26922,9 +28131,13 @@ impl WriteXdr for SorobanAuthorizedInvocation { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SorobanAddressCredentials { pub address: ScAddress, pub nonce: i64, @@ -26974,9 +28187,13 @@ impl WriteXdr for SorobanAddressCredentials { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum SorobanCredentialsType { SourceAccount = 0, @@ -27084,9 +28301,13 @@ impl WriteXdr for SorobanCredentialsType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum SorobanCredentials { SourceAccount, @@ -27193,9 +28414,13 @@ impl WriteXdr for SorobanCredentials { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SorobanAuthorizationEntry { pub credentials: SorobanCredentials, pub root_invocation: SorobanAuthorizedInvocation, @@ -27240,9 +28465,13 @@ impl WriteXdr for SorobanAuthorizationEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct InvokeHostFunctionOp { pub host_function: HostFunction, pub auth: VecM, @@ -27285,9 +28514,13 @@ impl WriteXdr for InvokeHostFunctionOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ExtendFootprintTtlOp { pub ext: ExtensionPoint, pub extend_to: u32, @@ -27329,9 +28562,13 @@ impl WriteXdr for ExtendFootprintTtlOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct RestoreFootprintOp { pub ext: ExtensionPoint, } @@ -27424,9 +28661,13 @@ impl WriteXdr for RestoreFootprintOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum OperationBody { CreateAccount(CreateAccountOp), @@ -27804,9 +29045,13 @@ impl WriteXdr for OperationBody { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct Operation { pub source_account: Option, pub body: OperationBody, @@ -27850,9 +29095,13 @@ impl WriteXdr for Operation { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct HashIdPreimageOperationId { pub source_account: AccountId, pub seq_num: SequenceNumber, @@ -27901,9 +29150,13 @@ impl WriteXdr for HashIdPreimageOperationId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct HashIdPreimageRevokeId { pub source_account: AccountId, pub seq_num: SequenceNumber, @@ -27955,9 +29208,13 @@ impl WriteXdr for HashIdPreimageRevokeId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct HashIdPreimageContractId { pub network_id: Hash, pub contract_id_preimage: ContractIdPreimage, @@ -28002,9 +29259,13 @@ impl WriteXdr for HashIdPreimageContractId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct HashIdPreimageSorobanAuthorization { pub network_id: Hash, pub nonce: i64, @@ -28082,9 +29343,13 @@ impl WriteXdr for HashIdPreimageSorobanAuthorization { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum HashIdPreimage { OpId(HashIdPreimageOperationId), @@ -28216,9 +29481,13 @@ impl WriteXdr for HashIdPreimage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum MemoType { None = 0, @@ -28344,9 +29613,13 @@ impl WriteXdr for MemoType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum Memo { None, @@ -28469,9 +29742,13 @@ impl WriteXdr for Memo { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TimeBounds { pub min_time: TimePoint, pub max_time: TimePoint, @@ -28514,9 +29791,13 @@ impl WriteXdr for TimeBounds { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerBounds { pub min_ledger: u32, pub max_ledger: u32, @@ -28586,9 +29867,13 @@ impl WriteXdr for LedgerBounds { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct PreconditionsV2 { pub time_bounds: Option, pub ledger_bounds: Option, @@ -28645,9 +29930,13 @@ impl WriteXdr for PreconditionsV2 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum PreconditionType { None = 0, @@ -28761,9 +30050,13 @@ impl WriteXdr for PreconditionType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum Preconditions { None, @@ -28874,9 +30167,13 @@ impl WriteXdr for Preconditions { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerFootprint { pub read_only: VecM, pub read_write: VecM, @@ -28926,9 +30223,13 @@ impl WriteXdr for LedgerFootprint { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SorobanResources { pub footprint: LedgerFootprint, pub instructions: u32, @@ -28987,9 +30288,13 @@ impl WriteXdr for SorobanResources { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SorobanTransactionData { pub ext: ExtensionPoint, pub resources: SorobanResources, @@ -29036,9 +30341,13 @@ impl WriteXdr for SorobanTransactionData { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TransactionV0Ext { V0, @@ -29145,9 +30454,13 @@ impl WriteXdr for TransactionV0Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionV0 { pub source_account_ed25519: Uint256, pub fee: u32, @@ -29207,9 +30520,13 @@ impl WriteXdr for TransactionV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionV0Envelope { pub tx: TransactionV0, pub signatures: VecM, @@ -29255,9 +30572,13 @@ impl WriteXdr for TransactionV0Envelope { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TransactionExt { V0, @@ -29382,9 +30703,13 @@ impl WriteXdr for TransactionExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct Transaction { pub source_account: MuxedAccount, pub fee: u32, @@ -29444,9 +30769,13 @@ impl WriteXdr for Transaction { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionV1Envelope { pub tx: Transaction, pub signatures: VecM, @@ -29490,9 +30819,13 @@ impl WriteXdr for TransactionV1Envelope { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum FeeBumpTransactionInnerTx { Tx(TransactionV1Envelope), @@ -29590,9 +30923,13 @@ impl WriteXdr for FeeBumpTransactionInnerTx { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum FeeBumpTransactionExt { V0, @@ -29701,9 +31038,13 @@ impl WriteXdr for FeeBumpTransactionExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct FeeBumpTransaction { pub fee_source: MuxedAccount, pub fee: i64, @@ -29754,9 +31095,13 @@ impl WriteXdr for FeeBumpTransaction { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct FeeBumpTransactionEnvelope { pub tx: FeeBumpTransaction, pub signatures: VecM, @@ -29804,9 +31149,13 @@ impl WriteXdr for FeeBumpTransactionEnvelope { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TransactionEnvelope { TxV0(TransactionV0Envelope), @@ -29923,9 +31272,13 @@ impl WriteXdr for TransactionEnvelope { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TransactionSignaturePayloadTaggedTransaction { Tx(Transaction), @@ -30035,9 +31388,13 @@ impl WriteXdr for TransactionSignaturePayloadTaggedTransaction { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionSignaturePayload { pub network_id: Hash, pub tagged_transaction: TransactionSignaturePayloadTaggedTransaction, @@ -30082,9 +31439,13 @@ impl WriteXdr for TransactionSignaturePayload { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ClaimAtomType { V0 = 0, @@ -30202,9 +31563,13 @@ impl WriteXdr for ClaimAtomType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ClaimOfferAtomV0 { pub seller_ed25519: Uint256, pub offer_id: i64, @@ -30268,9 +31633,13 @@ impl WriteXdr for ClaimOfferAtomV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ClaimOfferAtom { pub seller_id: AccountId, pub offer_id: i64, @@ -30332,9 +31701,13 @@ impl WriteXdr for ClaimOfferAtom { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ClaimLiquidityAtom { pub liquidity_pool_id: PoolId, pub asset_sold: Asset, @@ -30391,9 +31764,13 @@ impl WriteXdr for ClaimLiquidityAtom { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ClaimAtom { V0(ClaimOfferAtomV0), @@ -30514,9 +31891,13 @@ impl WriteXdr for ClaimAtom { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum CreateAccountResultCode { Success = 0, @@ -30645,9 +32026,13 @@ impl WriteXdr for CreateAccountResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum CreateAccountResult { Success, @@ -30788,9 +32173,13 @@ impl WriteXdr for CreateAccountResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum PaymentResultCode { Success = 0, @@ -30949,9 +32338,13 @@ impl WriteXdr for PaymentResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum PaymentResult { Success, @@ -31139,9 +32532,13 @@ impl WriteXdr for PaymentResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum PathPaymentStrictReceiveResultCode { Success = 0, @@ -31305,9 +32702,13 @@ impl WriteXdr for PathPaymentStrictReceiveResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SimplePaymentResult { pub destination: AccountId, pub asset: Asset, @@ -31353,9 +32754,13 @@ impl WriteXdr for SimplePaymentResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct PathPaymentStrictReceiveResultSuccess { pub offers: VecM, pub last: SimplePaymentResult, @@ -31419,9 +32824,13 @@ impl WriteXdr for PathPaymentStrictReceiveResultSuccess { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum PathPaymentStrictReceiveResult { Success(PathPaymentStrictReceiveResultSuccess), @@ -31632,9 +33041,13 @@ impl WriteXdr for PathPaymentStrictReceiveResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum PathPaymentStrictSendResultCode { Success = 0, @@ -31797,9 +33210,13 @@ impl WriteXdr for PathPaymentStrictSendResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct PathPaymentStrictSendResultSuccess { pub offers: VecM, pub last: SimplePaymentResult, @@ -31862,9 +33279,13 @@ impl WriteXdr for PathPaymentStrictSendResultSuccess { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum PathPaymentStrictSendResult { Success(PathPaymentStrictSendResultSuccess), @@ -32074,9 +33495,13 @@ impl WriteXdr for PathPaymentStrictSendResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ManageSellOfferResultCode { Success = 0, @@ -32241,9 +33666,13 @@ impl WriteXdr for ManageSellOfferResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ManageOfferEffect { Created = 0, @@ -32356,9 +33785,13 @@ impl WriteXdr for ManageOfferEffect { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ManageOfferSuccessResultOffer { Created(OfferEntry), @@ -32479,9 +33912,13 @@ impl WriteXdr for ManageOfferSuccessResultOffer { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ManageOfferSuccessResult { pub offers_claimed: VecM, pub offer: ManageOfferSuccessResultOffer, @@ -32538,9 +33975,13 @@ impl WriteXdr for ManageOfferSuccessResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ManageSellOfferResult { Success(ManageOfferSuccessResult), @@ -32747,9 +34188,13 @@ impl WriteXdr for ManageSellOfferResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ManageBuyOfferResultCode { Success = 0, @@ -32926,9 +34371,13 @@ impl WriteXdr for ManageBuyOfferResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ManageBuyOfferResult { Success(ManageOfferSuccessResult), @@ -33128,9 +34577,13 @@ impl WriteXdr for ManageBuyOfferResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum SetOptionsResultCode { Success = 0, @@ -33295,9 +34748,13 @@ impl WriteXdr for SetOptionsResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum SetOptionsResult { Success, @@ -33482,9 +34939,13 @@ impl WriteXdr for SetOptionsResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ChangeTrustResultCode { Success = 0, @@ -33637,9 +35098,13 @@ impl WriteXdr for ChangeTrustResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ChangeTrustResult { Success, @@ -33808,9 +35273,13 @@ impl WriteXdr for ChangeTrustResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum AllowTrustResultCode { Success = 0, @@ -33951,9 +35420,13 @@ impl WriteXdr for AllowTrustResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum AllowTrustResult { Success, @@ -34106,9 +35579,13 @@ impl WriteXdr for AllowTrustResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum AccountMergeResultCode { Success = 0, @@ -34255,9 +35732,13 @@ impl WriteXdr for AccountMergeResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum AccountMergeResult { Success(i64), @@ -34410,9 +35891,13 @@ impl WriteXdr for AccountMergeResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum InflationResultCode { Success = 0, @@ -34515,9 +36000,13 @@ impl WriteXdr for InflationResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct InflationPayout { pub destination: AccountId, pub amount: i64, @@ -34563,9 +36052,13 @@ impl WriteXdr for InflationPayout { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum InflationResult { Success(VecM), @@ -34678,9 +36171,13 @@ impl WriteXdr for InflationResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ManageDataResultCode { Success = 0, @@ -34809,9 +36306,13 @@ impl WriteXdr for ManageDataResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ManageDataResult { Success, @@ -34943,9 +36444,13 @@ impl WriteXdr for ManageDataResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum BumpSequenceResultCode { Success = 0, @@ -35053,9 +36558,13 @@ impl WriteXdr for BumpSequenceResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum BumpSequenceResult { Success, @@ -35165,9 +36674,13 @@ impl WriteXdr for BumpSequenceResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum CreateClaimableBalanceResultCode { Success = 0, @@ -35303,9 +36816,13 @@ impl WriteXdr for CreateClaimableBalanceResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum CreateClaimableBalanceResult { Success(ClaimableBalanceId), @@ -35449,9 +36966,13 @@ impl WriteXdr for CreateClaimableBalanceResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ClaimClaimableBalanceResultCode { Success = 0, @@ -35586,9 +37107,13 @@ impl WriteXdr for ClaimClaimableBalanceResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ClaimClaimableBalanceResult { Success, @@ -35731,9 +37256,13 @@ impl WriteXdr for ClaimClaimableBalanceResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum BeginSponsoringFutureReservesResultCode { Success = 0, @@ -35853,9 +37382,13 @@ impl WriteXdr for BeginSponsoringFutureReservesResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum BeginSponsoringFutureReservesResult { Success, @@ -35978,9 +37511,13 @@ impl WriteXdr for BeginSponsoringFutureReservesResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum EndSponsoringFutureReservesResultCode { Success = 0, @@ -36089,9 +37626,13 @@ impl WriteXdr for EndSponsoringFutureReservesResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum EndSponsoringFutureReservesResult { Success, @@ -36205,9 +37746,13 @@ impl WriteXdr for EndSponsoringFutureReservesResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum RevokeSponsorshipResultCode { Success = 0, @@ -36342,9 +37887,13 @@ impl WriteXdr for RevokeSponsorshipResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum RevokeSponsorshipResult { Success, @@ -36488,9 +38037,13 @@ impl WriteXdr for RevokeSponsorshipResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ClawbackResultCode { Success = 0, @@ -36619,9 +38172,13 @@ impl WriteXdr for ClawbackResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ClawbackResult { Success, @@ -36756,9 +38313,13 @@ impl WriteXdr for ClawbackResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ClawbackClaimableBalanceResultCode { Success = 0, @@ -36878,9 +38439,13 @@ impl WriteXdr for ClawbackClaimableBalanceResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ClawbackClaimableBalanceResult { Success, @@ -37008,9 +38573,13 @@ impl WriteXdr for ClawbackClaimableBalanceResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum SetTrustLineFlagsResultCode { Success = 0, @@ -37145,9 +38714,13 @@ impl WriteXdr for SetTrustLineFlagsResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum SetTrustLineFlagsResult { Success, @@ -37298,9 +38871,13 @@ impl WriteXdr for SetTrustLineFlagsResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum LiquidityPoolDepositResultCode { Success = 0, @@ -37447,9 +39024,13 @@ impl WriteXdr for LiquidityPoolDepositResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LiquidityPoolDepositResult { Success, @@ -37611,9 +39192,13 @@ impl WriteXdr for LiquidityPoolDepositResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum LiquidityPoolWithdrawResultCode { Success = 0, @@ -37748,9 +39333,13 @@ impl WriteXdr for LiquidityPoolWithdrawResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LiquidityPoolWithdrawResult { Success, @@ -37895,9 +39484,13 @@ impl WriteXdr for LiquidityPoolWithdrawResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum InvokeHostFunctionResultCode { Success = 0, @@ -38032,9 +39625,13 @@ impl WriteXdr for InvokeHostFunctionResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum InvokeHostFunctionResult { Success(Hash), @@ -38181,9 +39778,13 @@ impl WriteXdr for InvokeHostFunctionResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ExtendFootprintTtlResultCode { Success = 0, @@ -38306,9 +39907,13 @@ impl WriteXdr for ExtendFootprintTtlResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ExtendFootprintTtlResult { Success, @@ -38441,9 +40046,13 @@ impl WriteXdr for ExtendFootprintTtlResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum RestoreFootprintResultCode { Success = 0, @@ -38566,9 +40175,13 @@ impl WriteXdr for RestoreFootprintResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum RestoreFootprintResult { Success, @@ -38702,9 +40315,13 @@ impl WriteXdr for RestoreFootprintResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum OperationResultCode { OpInner = 0, @@ -38890,9 +40507,13 @@ impl WriteXdr for OperationResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum OperationResultTr { CreateAccount(CreateAccountResult), @@ -39278,9 +40899,13 @@ impl WriteXdr for OperationResultTr { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum OperationResult { OpInner(OperationResultTr), @@ -39445,9 +41070,13 @@ impl WriteXdr for OperationResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum TransactionResultCode { TxFeeBumpInnerSuccess = 1, @@ -39660,9 +41289,13 @@ impl WriteXdr for TransactionResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum InnerTransactionResultResult { TxSuccess(VecM), @@ -39880,9 +41513,13 @@ impl WriteXdr for InnerTransactionResultResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum InnerTransactionResultExt { V0, @@ -40013,9 +41650,13 @@ impl WriteXdr for InnerTransactionResultExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct InnerTransactionResult { pub fee_charged: i64, pub result: InnerTransactionResultResult, @@ -40061,9 +41702,13 @@ impl WriteXdr for InnerTransactionResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct InnerTransactionResultPair { pub transaction_hash: Hash, pub result: InnerTransactionResult, @@ -40128,9 +41773,13 @@ impl WriteXdr for InnerTransactionResultPair { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TransactionResultResult { TxFeeBumpInnerSuccess(InnerTransactionResultPair), @@ -40366,9 +42015,13 @@ impl WriteXdr for TransactionResultResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TransactionResultExt { V0, @@ -40500,9 +42153,13 @@ impl WriteXdr for TransactionResultExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionResult { pub fee_charged: i64, pub result: TransactionResultResult, @@ -40544,11 +42201,11 @@ impl WriteXdr for TransactionResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] pub struct Hash(pub [u8; 32]); @@ -40666,11 +42323,11 @@ impl AsRef<[u8]> for Hash { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] pub struct Uint256(pub [u8; 32]); @@ -40820,9 +42477,13 @@ pub type Int64 = i64; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct TimePoint(pub u64); @@ -40875,9 +42536,13 @@ impl WriteXdr for TimePoint { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct Duration(pub u64); @@ -40935,9 +42600,13 @@ impl WriteXdr for Duration { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ExtensionPoint { V0, @@ -41040,9 +42709,13 @@ impl WriteXdr for ExtensionPoint { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum CryptoKeyType { Ed25519 = 0, @@ -41165,9 +42838,13 @@ impl WriteXdr for CryptoKeyType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum PublicKeyType { PublicKeyTypeEd25519 = 0, @@ -41269,9 +42946,13 @@ impl WriteXdr for PublicKeyType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum SignerKeyType { Ed25519 = 0, @@ -41386,11 +43067,11 @@ impl WriteXdr for SignerKeyType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] #[allow(clippy::large_enum_variant)] pub enum PublicKey { @@ -41492,11 +43173,11 @@ impl WriteXdr for PublicKey { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] pub struct SignerKeyEd25519SignedPayload { pub ed25519: Uint256, @@ -41555,11 +43236,11 @@ impl WriteXdr for SignerKeyEd25519SignedPayload { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] #[allow(clippy::large_enum_variant)] pub enum SignerKey { @@ -41677,9 +43358,13 @@ impl WriteXdr for SignerKey { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct Signature(pub BytesM<64>); @@ -41781,11 +43466,11 @@ impl AsRef<[u8]> for Signature { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] pub struct SignatureHint(pub [u8; 4]); @@ -41903,11 +43588,11 @@ impl AsRef<[u8]> for SignatureHint { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] #[derive(Debug)] pub struct NodeId(pub PublicKey); @@ -41961,11 +43646,11 @@ impl WriteXdr for NodeId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] #[derive(Debug)] pub struct AccountId(pub PublicKey); @@ -42022,9 +43707,13 @@ impl WriteXdr for AccountId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct Curve25519Secret { pub key: [u8; 32], } @@ -42063,9 +43752,13 @@ impl WriteXdr for Curve25519Secret { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct Curve25519Public { pub key: [u8; 32], } @@ -42104,9 +43797,13 @@ impl WriteXdr for Curve25519Public { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct HmacSha256Key { pub key: [u8; 32], } @@ -42145,9 +43842,13 @@ impl WriteXdr for HmacSha256Key { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct HmacSha256Mac { pub mac: [u8; 32], } @@ -42176,9 +43877,13 @@ impl WriteXdr for HmacSha256Mac { #[derive(Clone, Copy, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub enum TypeVariant { Value, ScpBallot, @@ -44338,10 +46043,14 @@ impl core::str::FromStr for TypeVariant { #[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case"), serde(untagged) )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub enum Type { Value(Box), ScpBallot(Box), diff --git a/src/next/generated.rs b/src/next/generated.rs index 7209a83c..647a234e 100644 --- a/src/next/generated.rs +++ b/src/next/generated.rs @@ -931,10 +931,7 @@ impl WriteXdr for [T; N] { #[cfg(feature = "alloc")] #[derive(Debug, Clone, Hash, PartialEq, Eq, PartialOrd, Ord)] -#[cfg_attr( - feature = "serde", - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema) -)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] pub struct VecM(Vec); @@ -959,6 +956,26 @@ impl Default for VecM { } } +#[cfg(all(feature = "schemars", feature = "serde", feature = "alloc"))] +impl schemars::JsonSchema for VecM { + fn schema_name() -> String { + format!("VecM<{}, {}>", T::schema_name(), MAX) + } + + fn is_referenceable() -> bool { + false + } + + fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { + mut_array(Vec::::json_schema(gen), |array| { + schemars::schema::ArrayValidation { + max_items: Some(MAX), + ..array + } + }) + } +} + impl VecM { pub const MAX_LEN: usize = { MAX as usize }; @@ -1340,11 +1357,7 @@ impl WriteXdr for VecM { #[derive(Clone, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( feature = "serde", - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] pub struct BytesM(Vec); @@ -1398,6 +1411,38 @@ impl Deref for BytesM { } } +#[cfg(all(feature = "schemars", feature = "serde", feature = "alloc"))] +impl schemars::JsonSchema for BytesM { + fn schema_name() -> String { + format!("BytesM<{}>", MAX) + } + + fn is_referenceable() -> bool { + false + } + + fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { + let schema_ = String::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema_ { + schema.extensions.insert( + "contentEncoding".to_owned(), + serde_json::Value::String("hex".to_string()), + ); + schema.extensions.insert( + "contentMediaType".to_owned(), + serde_json::Value::String("application/binary".to_string()), + ); + mut_string(schema.into(), |string| schemars::schema::StringValidation { + max_length: Some(((MAX.checked_mul(4).unwrap_or(u32::MAX) / 3) + 3) & !3), + min_length: Some(((MAX.checked_mul(4).unwrap_or(u32::MAX) / 3) + 3) & !3), + ..string + }) + } else { + schema_ + } + } +} + impl Default for BytesM { fn default() -> Self { Self(Vec::default()) @@ -1725,11 +1770,7 @@ impl WriteXdr for BytesM { #[derive(Clone, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( feature = "serde", - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] pub struct StringM(Vec); @@ -1790,6 +1831,26 @@ impl Default for StringM { } } +#[cfg(all(feature = "schemars", feature = "serde", feature = "alloc"))] +impl schemars::JsonSchema for StringM { + fn schema_name() -> String { + format!("StringM<{}>", MAX) + } + + fn is_referenceable() -> bool { + false + } + + fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { + mut_string(String::json_schema(gen), |string| { + schemars::schema::StringValidation { + max_length: Some(MAX), + ..string + } + }) + } +} + impl StringM { pub const MAX_LEN: usize = { MAX as usize }; @@ -2099,13 +2160,28 @@ impl WriteXdr for StringM { #[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] pub struct Frame(pub T) where T: ReadXdr; +#[cfg(all(feature = "schemars", feature = "serde", feature = "alloc"))] +impl schemars::JsonSchema for Frame { + fn schema_name() -> String { + format!("Frame<{}>", T::schema_name()) + } + + fn is_referenceable() -> bool { + false + } + + fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { + T::json_schema(gen) + } +} + impl ReadXdr for Frame where T: ReadXdr, @@ -2130,6 +2206,35 @@ where } } +fn mut_array( + schema: schemars::schema::Schema, + f: impl FnOnce(schemars::schema::ArrayValidation) -> schemars::schema::ArrayValidation, +) -> schemars::schema::Schema { + if let schemars::schema::Schema::Object(mut schema) = schema { + if let Some(array) = schema.array.clone() { + schema.array = Some(Box::new(f(*array))); + } + schema.into() + } else { + schema + } +} + +fn mut_string( + schema: schemars::schema::Schema, + f: impl FnOnce(schemars::schema::StringValidation) -> schemars::schema::StringValidation, +) -> schemars::schema::Schema { + if let schemars::schema::Schema::Object(mut schema) = schema { + let string = *schema.string.unwrap_or_default().clone(); + let s = f(string); + schema.string = Some(Box::new(s)); + + schema.into() + } else { + schema + } +} + #[cfg(all(test, feature = "std"))] mod tests { use std::io::Cursor; @@ -2766,9 +2871,13 @@ mod test { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct Value(pub BytesM); @@ -2874,9 +2983,13 @@ impl AsRef<[u8]> for Value { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScpBallot { pub counter: u32, pub value: Value, @@ -2922,9 +3035,13 @@ impl WriteXdr for ScpBallot { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ScpStatementType { Prepare = 0, @@ -3038,9 +3155,13 @@ impl WriteXdr for ScpStatementType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScpNomination { pub quorum_set_hash: Hash, pub votes: VecM, @@ -3090,9 +3211,13 @@ impl WriteXdr for ScpNomination { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScpStatementPrepare { pub quorum_set_hash: Hash, pub ballot: ScpBallot, @@ -3150,9 +3275,13 @@ impl WriteXdr for ScpStatementPrepare { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScpStatementConfirm { pub ballot: ScpBallot, pub n_prepared: u32, @@ -3205,9 +3334,13 @@ impl WriteXdr for ScpStatementConfirm { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScpStatementExternalize { pub commit: ScpBallot, pub n_h: u32, @@ -3280,9 +3413,13 @@ impl WriteXdr for ScpStatementExternalize { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ScpStatementPledges { Prepare(ScpStatementPrepare), @@ -3434,9 +3571,13 @@ impl WriteXdr for ScpStatementPledges { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScpStatement { pub node_id: NodeId, pub slot_index: u64, @@ -3482,9 +3623,13 @@ impl WriteXdr for ScpStatement { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScpEnvelope { pub statement: ScpStatement, pub signature: Signature, @@ -3528,9 +3673,13 @@ impl WriteXdr for ScpEnvelope { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScpQuorumSet { pub threshold: u32, pub validators: VecM, @@ -3576,9 +3725,13 @@ impl WriteXdr for ScpQuorumSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ConfigSettingContractExecutionLanesV0 { pub ledger_max_tx_count: u32, } @@ -3626,9 +3779,13 @@ impl WriteXdr for ConfigSettingContractExecutionLanesV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ConfigSettingContractComputeV0 { pub ledger_max_instructions: i64, pub tx_max_instructions: i64, @@ -3707,9 +3864,13 @@ impl WriteXdr for ConfigSettingContractComputeV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ConfigSettingContractLedgerCostV0 { pub ledger_max_read_ledger_entries: u32, pub ledger_max_read_bytes: u32, @@ -3790,9 +3951,13 @@ impl WriteXdr for ConfigSettingContractLedgerCostV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ConfigSettingContractHistoricalDataV0 { pub fee_historical1_kb: i64, } @@ -3834,9 +3999,13 @@ impl WriteXdr for ConfigSettingContractHistoricalDataV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ConfigSettingContractEventsV0 { pub tx_max_contract_events_size_bytes: u32, pub fee_contract_events1_kb: i64, @@ -3884,9 +4053,13 @@ impl WriteXdr for ConfigSettingContractEventsV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ConfigSettingContractBandwidthV0 { pub ledger_max_txs_size_bytes: u32, pub tx_max_size_bytes: u32, @@ -3980,9 +4153,13 @@ impl WriteXdr for ConfigSettingContractBandwidthV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ContractCostType { WasmInsnExec = 0, @@ -4197,9 +4374,13 @@ impl WriteXdr for ContractCostType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ContractCostParamEntry { pub ext: ExtensionPoint, pub const_term: i64, @@ -4264,9 +4445,13 @@ impl WriteXdr for ContractCostParamEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct StateArchivalSettings { pub max_entry_ttl: u32, pub min_temporary_ttl: u32, @@ -4333,9 +4518,13 @@ impl WriteXdr for StateArchivalSettings { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct EvictionIterator { pub bucket_list_level: u32, pub is_curr_bucket: bool, @@ -4386,9 +4575,13 @@ pub const CONTRACT_COST_COUNT_LIMIT: u64 = 1024; #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct ContractCostParams(pub VecM); @@ -4507,9 +4700,13 @@ impl AsRef<[ContractCostParamEntry]> for ContractCostParams { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ConfigSettingId { ContractMaxSizeBytes = 0, @@ -4704,9 +4901,13 @@ impl WriteXdr for ConfigSettingId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ConfigSettingEntry { ContractMaxSizeBytes(u32), @@ -4930,9 +5131,13 @@ impl WriteXdr for ConfigSettingEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ScEnvMetaKind { ScEnvMetaKindInterfaceVersion = 0, @@ -5032,9 +5237,13 @@ impl WriteXdr for ScEnvMetaKind { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ScEnvMetaEntry { ScEnvMetaKindInterfaceVersion(u64), @@ -5133,9 +5342,13 @@ impl WriteXdr for ScEnvMetaEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScMetaV0 { pub key: StringM, pub val: StringM, @@ -5178,9 +5391,13 @@ impl WriteXdr for ScMetaV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ScMetaKind { ScMetaV0 = 0, @@ -5280,9 +5497,13 @@ impl WriteXdr for ScMetaKind { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ScMetaEntry { ScMetaV0(ScMetaV0), @@ -5417,9 +5638,13 @@ pub const SC_SPEC_DOC_LIMIT: u64 = 1024; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ScSpecType { Val = 0, @@ -5641,9 +5866,13 @@ impl WriteXdr for ScSpecType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecTypeOption { pub value_type: Box, } @@ -5683,9 +5912,13 @@ impl WriteXdr for ScSpecTypeOption { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecTypeResult { pub ok_type: Box, pub error_type: Box, @@ -5727,9 +5960,13 @@ impl WriteXdr for ScSpecTypeResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecTypeVec { pub element_type: Box, } @@ -5769,9 +6006,13 @@ impl WriteXdr for ScSpecTypeVec { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecTypeMap { pub key_type: Box, pub value_type: Box, @@ -5813,9 +6054,13 @@ impl WriteXdr for ScSpecTypeMap { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecTypeTuple { pub value_types: VecM, } @@ -5854,9 +6099,13 @@ impl WriteXdr for ScSpecTypeTuple { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecTypeBytesN { pub n: u32, } @@ -5895,9 +6144,13 @@ impl WriteXdr for ScSpecTypeBytesN { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecTypeUdt { pub name: StringM<60>, } @@ -5969,9 +6222,13 @@ impl WriteXdr for ScSpecTypeUdt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ScSpecTypeDef { Val, @@ -6241,9 +6498,13 @@ impl WriteXdr for ScSpecTypeDef { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecUdtStructFieldV0 { pub doc: StringM<1024>, pub name: StringM<30>, @@ -6291,9 +6552,13 @@ impl WriteXdr for ScSpecUdtStructFieldV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecUdtStructV0 { pub doc: StringM<1024>, pub lib: StringM<80>, @@ -6342,9 +6607,13 @@ impl WriteXdr for ScSpecUdtStructV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecUdtUnionCaseVoidV0 { pub doc: StringM<1024>, pub name: StringM<60>, @@ -6388,9 +6657,13 @@ impl WriteXdr for ScSpecUdtUnionCaseVoidV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecUdtUnionCaseTupleV0 { pub doc: StringM<1024>, pub name: StringM<60>, @@ -6437,9 +6710,13 @@ impl WriteXdr for ScSpecUdtUnionCaseTupleV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ScSpecUdtUnionCaseV0Kind { VoidV0 = 0, @@ -6547,9 +6824,13 @@ impl WriteXdr for ScSpecUdtUnionCaseV0Kind { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ScSpecUdtUnionCaseV0 { VoidV0(ScSpecUdtUnionCaseVoidV0), @@ -6660,9 +6941,13 @@ impl WriteXdr for ScSpecUdtUnionCaseV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecUdtUnionV0 { pub doc: StringM<1024>, pub lib: StringM<80>, @@ -6712,9 +6997,13 @@ impl WriteXdr for ScSpecUdtUnionV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecUdtEnumCaseV0 { pub doc: StringM<1024>, pub name: StringM<60>, @@ -6762,9 +7051,13 @@ impl WriteXdr for ScSpecUdtEnumCaseV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecUdtEnumV0 { pub doc: StringM<1024>, pub lib: StringM<80>, @@ -6814,9 +7107,13 @@ impl WriteXdr for ScSpecUdtEnumV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecUdtErrorEnumCaseV0 { pub doc: StringM<1024>, pub name: StringM<60>, @@ -6864,9 +7161,13 @@ impl WriteXdr for ScSpecUdtErrorEnumCaseV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecUdtErrorEnumV0 { pub doc: StringM<1024>, pub lib: StringM<80>, @@ -6916,9 +7217,13 @@ impl WriteXdr for ScSpecUdtErrorEnumV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecFunctionInputV0 { pub doc: StringM<1024>, pub name: StringM<30>, @@ -6966,9 +7271,13 @@ impl WriteXdr for ScSpecFunctionInputV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScSpecFunctionV0 { pub doc: StringM<1024>, pub name: ScSymbol, @@ -7021,9 +7330,13 @@ impl WriteXdr for ScSpecFunctionV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ScSpecEntryKind { FunctionV0 = 0, @@ -7155,9 +7468,13 @@ impl WriteXdr for ScSpecEntryKind { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ScSpecEntry { FunctionV0(ScSpecFunctionV0), @@ -7338,9 +7655,13 @@ impl WriteXdr for ScSpecEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ScValType { Bool = 0, @@ -7557,9 +7878,13 @@ impl WriteXdr for ScValType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ScErrorType { Contract = 0, @@ -7708,9 +8033,13 @@ impl WriteXdr for ScErrorType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ScErrorCode { ArithDomain = 0, @@ -7869,9 +8198,13 @@ impl WriteXdr for ScErrorCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ScError { Contract(u32), @@ -8026,9 +8359,13 @@ impl WriteXdr for ScError { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct UInt128Parts { pub hi: u64, pub lo: u64, @@ -8070,9 +8407,13 @@ impl WriteXdr for UInt128Parts { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct Int128Parts { pub hi: i64, pub lo: u64, @@ -8116,9 +8457,13 @@ impl WriteXdr for Int128Parts { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct UInt256Parts { pub hi_hi: u64, pub hi_lo: u64, @@ -8168,9 +8513,13 @@ impl WriteXdr for UInt256Parts { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct Int256Parts { pub hi_hi: i64, pub hi_lo: u64, @@ -8220,9 +8569,13 @@ impl WriteXdr for Int256Parts { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ContractExecutableType { Wasm = 0, @@ -8330,9 +8683,13 @@ impl WriteXdr for ContractExecutableType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ContractExecutable { Wasm(Hash), @@ -8438,9 +8795,13 @@ impl WriteXdr for ContractExecutable { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ScAddressType { Account = 0, @@ -8545,11 +8906,11 @@ impl WriteXdr for ScAddressType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] #[allow(clippy::large_enum_variant)] pub enum ScAddress { @@ -8657,9 +9018,13 @@ pub const SCSYMBOL_LIMIT: u64 = 32; #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct ScVec(pub VecM); @@ -8762,9 +9127,13 @@ impl AsRef<[ScVal]> for ScVec { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct ScMap(pub VecM); @@ -8867,9 +9236,13 @@ impl AsRef<[ScMapEntry]> for ScMap { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct ScBytes(pub BytesM); @@ -8972,9 +9345,13 @@ impl AsRef<[u8]> for ScBytes { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct ScString(pub StringM); @@ -9077,9 +9454,13 @@ impl AsRef<[u8]> for ScString { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct ScSymbol(pub StringM<32>); @@ -9183,9 +9564,13 @@ impl AsRef<[u8]> for ScSymbol { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScNonceKey { pub nonce: i64, } @@ -9224,9 +9609,13 @@ impl WriteXdr for ScNonceKey { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScContractInstance { pub executable: ContractExecutable, pub storage: Option, @@ -9326,9 +9715,13 @@ impl WriteXdr for ScContractInstance { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ScVal { Bool(bool), @@ -9578,9 +9971,13 @@ impl WriteXdr for ScVal { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScMapEntry { pub key: ScVal, pub val: ScVal, @@ -9626,9 +10023,13 @@ impl WriteXdr for ScMapEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum StoredTransactionSet { V0(TransactionSet), @@ -9731,9 +10132,13 @@ impl WriteXdr for StoredTransactionSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct StoredDebugTransactionSet { pub tx_set: StoredTransactionSet, pub ledger_seq: u32, @@ -9780,9 +10185,13 @@ impl WriteXdr for StoredDebugTransactionSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct PersistedScpStateV0 { pub scp_envelopes: VecM, pub quorum_sets: VecM, @@ -9829,9 +10238,13 @@ impl WriteXdr for PersistedScpStateV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct PersistedScpStateV1 { pub scp_envelopes: VecM, pub quorum_sets: VecM, @@ -9877,9 +10290,13 @@ impl WriteXdr for PersistedScpStateV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum PersistedScpState { V0(PersistedScpStateV0), @@ -9977,11 +10394,11 @@ impl WriteXdr for PersistedScpState { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] pub struct Thresholds(pub [u8; 4]); @@ -10100,9 +10517,13 @@ impl AsRef<[u8]> for Thresholds { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct String32(pub StringM<32>); @@ -10205,9 +10626,13 @@ impl AsRef<[u8]> for String32 { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct String64(pub StringM<64>); @@ -10309,9 +10734,13 @@ impl AsRef<[u8]> for String64 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct SequenceNumber(pub i64); @@ -10365,9 +10794,13 @@ impl WriteXdr for SequenceNumber { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct DataValue(pub BytesM<64>); @@ -10469,9 +10902,13 @@ impl AsRef<[u8]> for DataValue { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct PoolId(pub Hash); @@ -10524,11 +10961,11 @@ impl WriteXdr for PoolId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] pub struct AssetCode4(pub [u8; 4]); @@ -10629,11 +11066,11 @@ impl AsRef<[u8]> for AssetCode4 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] pub struct AssetCode12(pub [u8; 12]); @@ -10741,9 +11178,13 @@ impl AsRef<[u8]> for AssetCode12 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum AssetType { Native = 0, @@ -10863,11 +11304,11 @@ impl WriteXdr for AssetType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] #[allow(clippy::large_enum_variant)] pub enum AssetCode { @@ -10970,9 +11411,13 @@ impl WriteXdr for AssetCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct AlphaNum4 { pub asset_code: AssetCode4, pub issuer: AccountId, @@ -11015,9 +11460,13 @@ impl WriteXdr for AlphaNum4 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct AlphaNum12 { pub asset_code: AssetCode12, pub issuer: AccountId, @@ -11069,9 +11518,13 @@ impl WriteXdr for AlphaNum12 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum Asset { Native, @@ -11182,9 +11635,13 @@ impl WriteXdr for Asset { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct Price { pub n: i32, pub d: i32, @@ -11227,9 +11684,13 @@ impl WriteXdr for Price { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct Liabilities { pub buying: i64, pub selling: i64, @@ -11275,9 +11736,13 @@ impl WriteXdr for Liabilities { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ThresholdIndexes { MasterWeight = 0, @@ -11399,9 +11864,13 @@ impl WriteXdr for ThresholdIndexes { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum LedgerEntryType { Account = 0, @@ -11549,9 +12018,13 @@ impl WriteXdr for LedgerEntryType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct Signer { pub key: SignerKey, pub weight: u32, @@ -11607,9 +12080,13 @@ impl WriteXdr for Signer { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum AccountFlags { RequiredFlag = 1, @@ -11747,9 +12224,13 @@ pub const MAX_SIGNERS: u64 = 20; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct SponsorshipDescriptor(pub Option); @@ -11813,9 +12294,13 @@ impl WriteXdr for SponsorshipDescriptor { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct AccountEntryExtensionV3 { pub ext: ExtensionPoint, pub seq_ledger: u32, @@ -11864,9 +12349,13 @@ impl WriteXdr for AccountEntryExtensionV3 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum AccountEntryExtensionV2Ext { V0, @@ -11978,9 +12467,13 @@ impl WriteXdr for AccountEntryExtensionV2Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct AccountEntryExtensionV2 { pub num_sponsored: u32, pub num_sponsoring: u32, @@ -12032,9 +12525,13 @@ impl WriteXdr for AccountEntryExtensionV2 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum AccountEntryExtensionV1Ext { V0, @@ -12144,9 +12641,13 @@ impl WriteXdr for AccountEntryExtensionV1Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct AccountEntryExtensionV1 { pub liabilities: Liabilities, pub ext: AccountEntryExtensionV1Ext, @@ -12192,9 +12693,13 @@ impl WriteXdr for AccountEntryExtensionV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum AccountEntryExt { V0, @@ -12319,9 +12824,13 @@ impl WriteXdr for AccountEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct AccountEntry { pub account_id: AccountId, pub balance: i64, @@ -12395,9 +12904,13 @@ impl WriteXdr for AccountEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum TrustLineFlags { AuthorizedFlag = 1, @@ -12534,9 +13047,13 @@ pub const MASK_TRUSTLINE_FLAGS_V17: u64 = 7; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum LiquidityPoolType { LiquidityPoolConstantProduct = 0, @@ -12647,9 +13164,13 @@ impl WriteXdr for LiquidityPoolType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TrustLineAsset { Native, @@ -12768,9 +13289,13 @@ impl WriteXdr for TrustLineAsset { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TrustLineEntryExtensionV2Ext { V0, @@ -12873,9 +13398,13 @@ impl WriteXdr for TrustLineEntryExtensionV2Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TrustLineEntryExtensionV2 { pub liquidity_pool_use_count: i32, pub ext: TrustLineEntryExtensionV2Ext, @@ -12921,9 +13450,13 @@ impl WriteXdr for TrustLineEntryExtensionV2 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TrustLineEntryV1Ext { V0, @@ -13033,9 +13566,13 @@ impl WriteXdr for TrustLineEntryV1Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TrustLineEntryV1 { pub liabilities: Liabilities, pub ext: TrustLineEntryV1Ext, @@ -13093,9 +13630,13 @@ impl WriteXdr for TrustLineEntryV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TrustLineEntryExt { V0, @@ -13224,9 +13765,13 @@ impl WriteXdr for TrustLineEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TrustLineEntry { pub account_id: AccountId, pub asset: TrustLineAsset, @@ -13283,9 +13828,13 @@ impl WriteXdr for TrustLineEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum OfferEntryFlags { PassiveFlag = 1, @@ -13393,9 +13942,13 @@ pub const MASK_OFFERENTRY_FLAGS: u64 = 1; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum OfferEntryExt { V0, @@ -13511,9 +14064,13 @@ impl WriteXdr for OfferEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct OfferEntry { pub seller_id: AccountId, pub offer_id: i64, @@ -13575,9 +14132,13 @@ impl WriteXdr for OfferEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum DataEntryExt { V0, @@ -13683,9 +14244,13 @@ impl WriteXdr for DataEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct DataEntry { pub account_id: AccountId, pub data_name: String64, @@ -13739,9 +14304,13 @@ impl WriteXdr for DataEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ClaimPredicateType { Unconditional = 0, @@ -13881,9 +14450,13 @@ impl WriteXdr for ClaimPredicateType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ClaimPredicate { Unconditional, @@ -14023,9 +14596,13 @@ impl WriteXdr for ClaimPredicate { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ClaimantType { ClaimantTypeV0 = 0, @@ -14124,9 +14701,13 @@ impl WriteXdr for ClaimantType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ClaimantV0 { pub destination: AccountId, pub predicate: ClaimPredicate, @@ -14174,9 +14755,13 @@ impl WriteXdr for ClaimantV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum Claimant { ClaimantTypeV0(ClaimantV0), @@ -14273,9 +14858,13 @@ impl WriteXdr for Claimant { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ClaimableBalanceIdType { ClaimableBalanceIdTypeV0 = 0, @@ -14376,9 +14965,13 @@ impl WriteXdr for ClaimableBalanceIdType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ClaimableBalanceId { ClaimableBalanceIdTypeV0(Hash), @@ -14480,9 +15073,13 @@ impl WriteXdr for ClaimableBalanceId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ClaimableBalanceFlags { ClaimableBalanceClawbackEnabledFlag = 1, @@ -14591,9 +15188,13 @@ pub const MASK_CLAIMABLE_BALANCE_FLAGS: u64 = 0x1; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ClaimableBalanceEntryExtensionV1Ext { V0, @@ -14696,9 +15297,13 @@ impl WriteXdr for ClaimableBalanceEntryExtensionV1Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ClaimableBalanceEntryExtensionV1 { pub ext: ClaimableBalanceEntryExtensionV1Ext, pub flags: u32, @@ -14744,9 +15349,13 @@ impl WriteXdr for ClaimableBalanceEntryExtensionV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ClaimableBalanceEntryExt { V0, @@ -14867,9 +15476,13 @@ impl WriteXdr for ClaimableBalanceEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ClaimableBalanceEntry { pub balance_id: ClaimableBalanceId, pub claimants: VecM, @@ -14922,9 +15535,13 @@ impl WriteXdr for ClaimableBalanceEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LiquidityPoolConstantProductParameters { pub asset_a: Asset, pub asset_b: Asset, @@ -14975,9 +15592,13 @@ impl WriteXdr for LiquidityPoolConstantProductParameters { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LiquidityPoolEntryConstantProduct { pub params: LiquidityPoolConstantProductParameters, pub reserve_a: i64, @@ -15039,9 +15660,13 @@ impl WriteXdr for LiquidityPoolEntryConstantProduct { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LiquidityPoolEntryBody { LiquidityPoolConstantProduct(LiquidityPoolEntryConstantProduct), @@ -15159,9 +15784,13 @@ impl WriteXdr for LiquidityPoolEntryBody { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LiquidityPoolEntry { pub liquidity_pool_id: PoolId, pub body: LiquidityPoolEntryBody, @@ -15204,9 +15833,13 @@ impl WriteXdr for LiquidityPoolEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ContractDataDurability { Temporary = 0, @@ -15314,9 +15947,13 @@ impl WriteXdr for ContractDataDurability { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ContractDataEntry { pub ext: ExtensionPoint, pub contract: ScAddress, @@ -15369,9 +16006,13 @@ impl WriteXdr for ContractDataEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ContractCodeEntry { pub ext: ExtensionPoint, pub hash: Hash, @@ -15417,9 +16058,13 @@ impl WriteXdr for ContractCodeEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TtlEntry { pub key_hash: Hash, pub live_until_ledger_seq: u32, @@ -15463,9 +16108,13 @@ impl WriteXdr for TtlEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LedgerEntryExtensionV1Ext { V0, @@ -15568,9 +16217,13 @@ impl WriteXdr for LedgerEntryExtensionV1Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerEntryExtensionV1 { pub sponsoring_id: SponsorshipDescriptor, pub ext: LedgerEntryExtensionV1Ext, @@ -15632,9 +16285,13 @@ impl WriteXdr for LedgerEntryExtensionV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LedgerEntryData { Account(AccountEntry), @@ -15811,9 +16468,13 @@ impl WriteXdr for LedgerEntryData { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LedgerEntryExt { V0, @@ -15949,9 +16610,13 @@ impl WriteXdr for LedgerEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerEntry { pub last_modified_ledger_seq: u32, pub data: LedgerEntryData, @@ -15996,9 +16661,13 @@ impl WriteXdr for LedgerEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerKeyAccount { pub account_id: AccountId, } @@ -16038,9 +16707,13 @@ impl WriteXdr for LedgerKeyAccount { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerKeyTrustLine { pub account_id: AccountId, pub asset: TrustLineAsset, @@ -16083,9 +16756,13 @@ impl WriteXdr for LedgerKeyTrustLine { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerKeyOffer { pub seller_id: AccountId, pub offer_id: i64, @@ -16128,9 +16805,13 @@ impl WriteXdr for LedgerKeyOffer { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerKeyData { pub account_id: AccountId, pub data_name: String64, @@ -16172,9 +16853,13 @@ impl WriteXdr for LedgerKeyData { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerKeyClaimableBalance { pub balance_id: ClaimableBalanceId, } @@ -16213,9 +16898,13 @@ impl WriteXdr for LedgerKeyClaimableBalance { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerKeyLiquidityPool { pub liquidity_pool_id: PoolId, } @@ -16256,9 +16945,13 @@ impl WriteXdr for LedgerKeyLiquidityPool { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerKeyContractData { pub contract: ScAddress, pub key: ScVal, @@ -16303,9 +16996,13 @@ impl WriteXdr for LedgerKeyContractData { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerKeyContractCode { pub hash: Hash, } @@ -16344,9 +17041,13 @@ impl WriteXdr for LedgerKeyContractCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerKeyConfigSetting { pub config_setting_id: ConfigSettingId, } @@ -16386,9 +17087,13 @@ impl WriteXdr for LedgerKeyConfigSetting { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerKeyTtl { pub key_hash: Hash, } @@ -16488,9 +17193,13 @@ impl WriteXdr for LedgerKeyTtl { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LedgerKey { Account(LedgerKeyAccount), @@ -16673,9 +17382,13 @@ impl WriteXdr for LedgerKey { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum EnvelopeType { TxV0 = 0, @@ -16820,9 +17533,13 @@ impl WriteXdr for EnvelopeType { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct UpgradeType(pub BytesM<128>); @@ -16929,9 +17646,13 @@ impl AsRef<[u8]> for UpgradeType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum StellarValueType { Basic = 0, @@ -17033,9 +17754,13 @@ impl WriteXdr for StellarValueType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerCloseValueSignature { pub node_id: NodeId, pub signature: Signature, @@ -17081,9 +17806,13 @@ impl WriteXdr for LedgerCloseValueSignature { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum StellarValueExt { Basic, @@ -17202,9 +17931,13 @@ impl WriteXdr for StellarValueExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct StellarValue { pub tx_set_hash: Hash, pub close_time: TimePoint, @@ -17263,9 +17996,13 @@ pub const MASK_LEDGER_HEADER_FLAGS: u64 = 0x7; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum LedgerHeaderFlags { TradingFlag = 1, @@ -17375,9 +18112,13 @@ impl WriteXdr for LedgerHeaderFlags { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LedgerHeaderExtensionV1Ext { V0, @@ -17480,9 +18221,13 @@ impl WriteXdr for LedgerHeaderExtensionV1Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerHeaderExtensionV1 { pub flags: u32, pub ext: LedgerHeaderExtensionV1Ext, @@ -17528,9 +18273,13 @@ impl WriteXdr for LedgerHeaderExtensionV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LedgerHeaderExt { V0, @@ -17666,9 +18415,13 @@ impl WriteXdr for LedgerHeaderExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerHeader { pub ledger_version: u32, pub previous_ledger_hash: Hash, @@ -17756,9 +18509,13 @@ impl WriteXdr for LedgerHeader { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum LedgerUpgradeType { Version = 1, @@ -17890,9 +18647,13 @@ impl WriteXdr for LedgerUpgradeType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ConfigUpgradeSetKey { pub contract_id: Hash, pub content_hash: Hash, @@ -17951,9 +18712,13 @@ impl WriteXdr for ConfigUpgradeSetKey { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LedgerUpgrade { Version(u32), @@ -18096,9 +18861,13 @@ impl WriteXdr for LedgerUpgrade { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ConfigUpgradeSet { pub updated_entry: VecM, } @@ -18143,9 +18912,13 @@ impl WriteXdr for ConfigUpgradeSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum BucketEntryType { Metaentry = -1, @@ -18260,9 +19033,13 @@ impl WriteXdr for BucketEntryType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum BucketMetadataExt { V0, @@ -18367,9 +19144,13 @@ impl WriteXdr for BucketMetadataExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct BucketMetadata { pub ledger_version: u32, pub ext: BucketMetadataExt, @@ -18419,9 +19200,13 @@ impl WriteXdr for BucketMetadata { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum BucketEntry { Liveentry(LedgerEntry), @@ -18541,9 +19326,13 @@ impl WriteXdr for BucketEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum TxSetComponentType { TxsetCompTxsMaybeDiscountedFee = 0, @@ -18643,9 +19432,13 @@ impl WriteXdr for TxSetComponentType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TxSetComponentTxsMaybeDiscountedFee { pub base_fee: Option, pub txs: VecM, @@ -18693,9 +19486,13 @@ impl WriteXdr for TxSetComponentTxsMaybeDiscountedFee { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TxSetComponent { TxsetCompTxsMaybeDiscountedFee(TxSetComponentTxsMaybeDiscountedFee), @@ -18800,9 +19597,13 @@ impl WriteXdr for TxSetComponent { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TransactionPhase { V0(VecM), @@ -18899,9 +19700,13 @@ impl WriteXdr for TransactionPhase { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionSet { pub previous_ledger_hash: Hash, pub txs: VecM, @@ -18944,9 +19749,13 @@ impl WriteXdr for TransactionSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionSetV1 { pub previous_ledger_hash: Hash, pub phases: VecM, @@ -18991,9 +19800,13 @@ impl WriteXdr for TransactionSetV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum GeneralizedTransactionSet { V1(TransactionSetV1), @@ -19090,9 +19903,13 @@ impl WriteXdr for GeneralizedTransactionSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionResultPair { pub transaction_hash: Hash, pub result: TransactionResult, @@ -19134,9 +19951,13 @@ impl WriteXdr for TransactionResultPair { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionResultSet { pub results: VecM, } @@ -19179,9 +20000,13 @@ impl WriteXdr for TransactionResultSet { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TransactionHistoryEntryExt { V0, @@ -19293,9 +20118,13 @@ impl WriteXdr for TransactionHistoryEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionHistoryEntry { pub ledger_seq: u32, pub tx_set: TransactionSet, @@ -19342,9 +20171,13 @@ impl WriteXdr for TransactionHistoryEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TransactionHistoryResultEntryExt { V0, @@ -19449,9 +20282,13 @@ impl WriteXdr for TransactionHistoryResultEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionHistoryResultEntry { pub ledger_seq: u32, pub tx_result_set: TransactionResultSet, @@ -19498,9 +20335,13 @@ impl WriteXdr for TransactionHistoryResultEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LedgerHeaderHistoryEntryExt { V0, @@ -19605,9 +20446,13 @@ impl WriteXdr for LedgerHeaderHistoryEntryExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerHeaderHistoryEntry { pub hash: Hash, pub header: LedgerHeader, @@ -19653,9 +20498,13 @@ impl WriteXdr for LedgerHeaderHistoryEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerScpMessages { pub ledger_seq: u32, pub messages: VecM, @@ -19698,9 +20547,13 @@ impl WriteXdr for LedgerScpMessages { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ScpHistoryEntryV0 { pub quorum_sets: VecM, pub ledger_messages: LedgerScpMessages, @@ -19744,9 +20597,13 @@ impl WriteXdr for ScpHistoryEntryV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ScpHistoryEntry { V0(ScpHistoryEntryV0), @@ -19846,9 +20703,13 @@ impl WriteXdr for ScpHistoryEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum LedgerEntryChangeType { Created = 0, @@ -19968,9 +20829,13 @@ impl WriteXdr for LedgerEntryChangeType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LedgerEntryChange { Created(LedgerEntry), @@ -20084,9 +20949,13 @@ impl WriteXdr for LedgerEntryChange { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct LedgerEntryChanges(pub VecM); @@ -20191,9 +21060,13 @@ impl AsRef<[LedgerEntryChange]> for LedgerEntryChanges { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct OperationMeta { pub changes: LedgerEntryChanges, } @@ -20233,9 +21106,13 @@ impl WriteXdr for OperationMeta { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionMetaV1 { pub tx_changes: LedgerEntryChanges, pub operations: VecM, @@ -20281,9 +21158,13 @@ impl WriteXdr for TransactionMetaV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionMetaV2 { pub tx_changes_before: LedgerEntryChanges, pub operations: VecM, @@ -20331,9 +21212,13 @@ impl WriteXdr for TransactionMetaV2 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ContractEventType { System = 0, @@ -20442,9 +21327,13 @@ impl WriteXdr for ContractEventType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ContractEventV0 { pub topics: VecM, pub data: ScVal, @@ -20492,9 +21381,13 @@ impl WriteXdr for ContractEventV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ContractEventBody { V0(ContractEventV0), @@ -20606,9 +21499,13 @@ impl WriteXdr for ContractEventBody { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ContractEvent { pub ext: ExtensionPoint, pub contract_id: Option, @@ -20657,9 +21554,13 @@ impl WriteXdr for ContractEvent { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct DiagnosticEvent { pub in_successful_contract_call: bool, pub event: ContractEvent, @@ -20710,9 +21611,13 @@ impl WriteXdr for DiagnosticEvent { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SorobanTransactionMeta { pub ext: ExtensionPoint, pub events: VecM, @@ -20768,9 +21673,13 @@ impl WriteXdr for SorobanTransactionMeta { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionMetaV3 { pub ext: ExtensionPoint, pub tx_changes_before: LedgerEntryChanges, @@ -20822,9 +21731,13 @@ impl WriteXdr for TransactionMetaV3 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct InvokeHostFunctionSuccessPreImage { pub return_value: ScVal, pub events: VecM, @@ -20874,9 +21787,13 @@ impl WriteXdr for InvokeHostFunctionSuccessPreImage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TransactionMeta { V0(VecM), @@ -20989,9 +21906,13 @@ impl WriteXdr for TransactionMeta { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionResultMeta { pub result: TransactionResultPair, pub fee_processing: LedgerEntryChanges, @@ -21037,9 +21958,13 @@ impl WriteXdr for TransactionResultMeta { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct UpgradeEntryMeta { pub upgrade: LedgerUpgrade, pub changes: LedgerEntryChanges, @@ -21094,9 +22019,13 @@ impl WriteXdr for UpgradeEntryMeta { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerCloseMetaV0 { pub ledger_header: LedgerHeaderHistoryEntry, pub tx_set: TransactionSet, @@ -21175,9 +22104,13 @@ impl WriteXdr for LedgerCloseMetaV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerCloseMetaV1 { pub ext: ExtensionPoint, pub ledger_header: LedgerHeaderHistoryEntry, @@ -21244,9 +22177,13 @@ impl WriteXdr for LedgerCloseMetaV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LedgerCloseMeta { V0(LedgerCloseMetaV0), @@ -21352,9 +22289,13 @@ impl WriteXdr for LedgerCloseMeta { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ErrorCode { Misc = 0, @@ -21471,9 +22412,13 @@ impl WriteXdr for ErrorCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SError { pub code: ErrorCode, pub msg: StringM<100>, @@ -21515,9 +22460,13 @@ impl WriteXdr for SError { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SendMore { pub num_messages: u32, } @@ -21557,9 +22506,13 @@ impl WriteXdr for SendMore { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SendMoreExtended { pub num_messages: u32, pub num_bytes: u32, @@ -21603,9 +22556,13 @@ impl WriteXdr for SendMoreExtended { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct AuthCert { pub pubkey: Curve25519Public, pub expiration: u64, @@ -21658,9 +22615,13 @@ impl WriteXdr for AuthCert { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct Hello { pub ledger_version: u32, pub overlay_version: u32, @@ -21731,9 +22692,13 @@ pub const AUTH_MSG_FLAG_FLOW_CONTROL_BYTES_REQUESTED: u64 = 200; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct Auth { pub flags: i32, } @@ -21774,9 +22739,13 @@ impl WriteXdr for Auth { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum IpAddrType { IPv4 = 0, @@ -21881,9 +22850,13 @@ impl WriteXdr for IpAddrType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum PeerAddressIp { IPv4([u8; 4]), @@ -21993,9 +22966,13 @@ impl WriteXdr for PeerAddressIp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct PeerAddress { pub ip: PeerAddressIp, pub port: u32, @@ -22070,9 +23047,13 @@ impl WriteXdr for PeerAddress { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum MessageType { ErrorMsg = 0, @@ -22270,9 +23251,13 @@ impl WriteXdr for MessageType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct DontHave { pub type_: MessageType, pub req_hash: Uint256, @@ -22315,9 +23300,13 @@ impl WriteXdr for DontHave { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum SurveyMessageCommandType { SurveyTopology = 0, @@ -22417,9 +23406,13 @@ impl WriteXdr for SurveyMessageCommandType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum SurveyMessageResponseType { V0 = 0, @@ -22525,9 +23518,13 @@ impl WriteXdr for SurveyMessageResponseType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SurveyRequestMessage { pub surveyor_peer_id: NodeId, pub surveyed_peer_id: NodeId, @@ -22579,9 +23576,13 @@ impl WriteXdr for SurveyRequestMessage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SignedSurveyRequestMessage { pub request_signature: Signature, pub request: SurveyRequestMessage, @@ -22621,9 +23622,13 @@ impl WriteXdr for SignedSurveyRequestMessage { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct EncryptedBody(pub BytesM<64000>); @@ -22732,9 +23737,13 @@ impl AsRef<[u8]> for EncryptedBody { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SurveyResponseMessage { pub surveyor_peer_id: NodeId, pub surveyed_peer_id: NodeId, @@ -22786,9 +23795,13 @@ impl WriteXdr for SurveyResponseMessage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SignedSurveyResponseMessage { pub response_signature: Signature, pub response: SurveyResponseMessage, @@ -22846,9 +23859,13 @@ impl WriteXdr for SignedSurveyResponseMessage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct PeerStats { pub id: NodeId, pub version_str: StringM<100>, @@ -22927,9 +23944,13 @@ impl WriteXdr for PeerStats { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct PeerStatList(pub VecM); @@ -23038,9 +24059,13 @@ impl AsRef<[PeerStats]> for PeerStatList { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TopologyResponseBodyV0 { pub inbound_peers: PeerStatList, pub outbound_peers: PeerStatList, @@ -23095,9 +24120,13 @@ impl WriteXdr for TopologyResponseBodyV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TopologyResponseBodyV1 { pub inbound_peers: PeerStatList, pub outbound_peers: PeerStatList, @@ -23155,9 +24184,13 @@ impl WriteXdr for TopologyResponseBodyV1 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum SurveyResponseBody { V0(TopologyResponseBodyV0), @@ -23266,9 +24299,13 @@ pub const TX_ADVERT_VECTOR_MAX_SIZE: u64 = 1000; #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct TxAdvertVector(pub VecM); @@ -23373,9 +24410,13 @@ impl AsRef<[Hash]> for TxAdvertVector { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct FloodAdvert { pub tx_hashes: TxAdvertVector, } @@ -23420,9 +24461,13 @@ pub const TX_DEMAND_VECTOR_MAX_SIZE: u64 = 1000; #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct TxDemandVector(pub VecM); @@ -23527,9 +24572,13 @@ impl AsRef<[Hash]> for TxDemandVector { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct FloodDemand { pub tx_hashes: TxDemandVector, } @@ -23615,9 +24664,13 @@ impl WriteXdr for FloodDemand { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum StellarMessage { ErrorMsg(SError), @@ -23860,9 +24913,13 @@ impl WriteXdr for StellarMessage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct AuthenticatedMessageV0 { pub sequence: u64, pub message: StellarMessage, @@ -23914,9 +24971,13 @@ impl WriteXdr for AuthenticatedMessageV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum AuthenticatedMessage { V0(AuthenticatedMessageV0), @@ -24022,9 +25083,13 @@ pub const MAX_OPS_PER_TX: u64 = 100; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LiquidityPoolParameters { LiquidityPoolConstantProduct(LiquidityPoolConstantProductParameters), @@ -24127,11 +25192,11 @@ impl WriteXdr for LiquidityPoolParameters { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] pub struct MuxedAccountMed25519 { pub id: u64, @@ -24182,11 +25247,11 @@ impl WriteXdr for MuxedAccountMed25519 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] #[allow(clippy::large_enum_variant)] pub enum MuxedAccount { @@ -24291,9 +25356,13 @@ impl WriteXdr for MuxedAccount { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct DecoratedSignature { pub hint: SignatureHint, pub signature: Signature, @@ -24362,9 +25431,13 @@ impl WriteXdr for DecoratedSignature { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum OperationType { CreateAccount = 0, @@ -24597,9 +25670,13 @@ impl WriteXdr for OperationType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct CreateAccountOp { pub destination: AccountId, pub starting_balance: i64, @@ -24643,9 +25720,13 @@ impl WriteXdr for CreateAccountOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct PaymentOp { pub destination: MuxedAccount, pub asset: Asset, @@ -24699,9 +25780,13 @@ impl WriteXdr for PaymentOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct PathPaymentStrictReceiveOp { pub send_asset: Asset, pub send_max: i64, @@ -24764,9 +25849,13 @@ impl WriteXdr for PathPaymentStrictReceiveOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct PathPaymentStrictSendOp { pub send_asset: Asset, pub send_amount: i64, @@ -24826,9 +25915,13 @@ impl WriteXdr for PathPaymentStrictSendOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ManageSellOfferOp { pub selling: Asset, pub buying: Asset, @@ -24886,9 +25979,13 @@ impl WriteXdr for ManageSellOfferOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ManageBuyOfferOp { pub selling: Asset, pub buying: Asset, @@ -24942,9 +26039,13 @@ impl WriteXdr for ManageBuyOfferOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct CreatePassiveSellOfferOp { pub selling: Asset, pub buying: Asset, @@ -25007,9 +26108,13 @@ impl WriteXdr for CreatePassiveSellOfferOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SetOptionsOp { pub inflation_dest: Option, pub clear_flags: Option, @@ -25085,9 +26190,13 @@ impl WriteXdr for SetOptionsOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ChangeTrustAsset { Native, @@ -25207,9 +26316,13 @@ impl WriteXdr for ChangeTrustAsset { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ChangeTrustOp { pub line: ChangeTrustAsset, pub limit: i64, @@ -25255,9 +26368,13 @@ impl WriteXdr for ChangeTrustOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct AllowTrustOp { pub trustor: AccountId, pub asset: AssetCode, @@ -25303,9 +26420,13 @@ impl WriteXdr for AllowTrustOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ManageDataOp { pub data_name: String64, pub data_value: Option, @@ -25347,9 +26468,13 @@ impl WriteXdr for ManageDataOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct BumpSequenceOp { pub bump_to: SequenceNumber, } @@ -25390,9 +26515,13 @@ impl WriteXdr for BumpSequenceOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct CreateClaimableBalanceOp { pub asset: Asset, pub amount: i64, @@ -25437,9 +26566,13 @@ impl WriteXdr for CreateClaimableBalanceOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ClaimClaimableBalanceOp { pub balance_id: ClaimableBalanceId, } @@ -25478,9 +26611,13 @@ impl WriteXdr for ClaimClaimableBalanceOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct BeginSponsoringFutureReservesOp { pub sponsored_id: AccountId, } @@ -25521,9 +26658,13 @@ impl WriteXdr for BeginSponsoringFutureReservesOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum RevokeSponsorshipType { LedgerEntry = 0, @@ -25628,9 +26769,13 @@ impl WriteXdr for RevokeSponsorshipType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct RevokeSponsorshipOpSigner { pub account_id: AccountId, pub signer_key: SignerKey, @@ -25680,9 +26825,13 @@ impl WriteXdr for RevokeSponsorshipOpSigner { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum RevokeSponsorshipOp { LedgerEntry(LedgerKey), @@ -25790,9 +26939,13 @@ impl WriteXdr for RevokeSponsorshipOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ClawbackOp { pub asset: Asset, pub from: MuxedAccount, @@ -25837,9 +26990,13 @@ impl WriteXdr for ClawbackOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ClawbackClaimableBalanceOp { pub balance_id: ClaimableBalanceId, } @@ -25882,9 +27039,13 @@ impl WriteXdr for ClawbackClaimableBalanceOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SetTrustLineFlagsOp { pub trustor: AccountId, pub asset: Asset, @@ -25944,9 +27105,13 @@ pub const LIQUIDITY_POOL_FEE_V18: u64 = 30; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LiquidityPoolDepositOp { pub liquidity_pool_id: PoolId, pub max_amount_a: i64, @@ -26000,9 +27165,13 @@ impl WriteXdr for LiquidityPoolDepositOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LiquidityPoolWithdrawOp { pub liquidity_pool_id: PoolId, pub amount: i64, @@ -26053,9 +27222,13 @@ impl WriteXdr for LiquidityPoolWithdrawOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum HostFunctionType { InvokeContract = 0, @@ -26166,9 +27339,13 @@ impl WriteXdr for HostFunctionType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ContractIdPreimageType { Address = 0, @@ -26273,9 +27450,13 @@ impl WriteXdr for ContractIdPreimageType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ContractIdPreimageFromAddress { pub address: ScAddress, pub salt: Uint256, @@ -26325,9 +27506,13 @@ impl WriteXdr for ContractIdPreimageFromAddress { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ContractIdPreimage { Address(ContractIdPreimageFromAddress), @@ -26434,9 +27619,13 @@ impl WriteXdr for ContractIdPreimage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct CreateContractArgs { pub contract_id_preimage: ContractIdPreimage, pub executable: ContractExecutable, @@ -26479,9 +27668,13 @@ impl WriteXdr for CreateContractArgs { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct InvokeContractArgs { pub contract_address: ScAddress, pub function_name: ScSymbol, @@ -26532,9 +27725,13 @@ impl WriteXdr for InvokeContractArgs { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum HostFunction { InvokeContract(InvokeContractArgs), @@ -26653,9 +27850,13 @@ impl WriteXdr for HostFunction { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum SorobanAuthorizedFunctionType { ContractFn = 0, @@ -26763,9 +27964,13 @@ impl WriteXdr for SorobanAuthorizedFunctionType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum SorobanAuthorizedFunction { ContractFn(InvokeContractArgs), @@ -26875,9 +28080,13 @@ impl WriteXdr for SorobanAuthorizedFunction { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SorobanAuthorizedInvocation { pub function: SorobanAuthorizedFunction, pub sub_invocations: VecM, @@ -26922,9 +28131,13 @@ impl WriteXdr for SorobanAuthorizedInvocation { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SorobanAddressCredentials { pub address: ScAddress, pub nonce: i64, @@ -26974,9 +28187,13 @@ impl WriteXdr for SorobanAddressCredentials { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum SorobanCredentialsType { SourceAccount = 0, @@ -27084,9 +28301,13 @@ impl WriteXdr for SorobanCredentialsType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum SorobanCredentials { SourceAccount, @@ -27193,9 +28414,13 @@ impl WriteXdr for SorobanCredentials { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SorobanAuthorizationEntry { pub credentials: SorobanCredentials, pub root_invocation: SorobanAuthorizedInvocation, @@ -27240,9 +28465,13 @@ impl WriteXdr for SorobanAuthorizationEntry { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct InvokeHostFunctionOp { pub host_function: HostFunction, pub auth: VecM, @@ -27285,9 +28514,13 @@ impl WriteXdr for InvokeHostFunctionOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ExtendFootprintTtlOp { pub ext: ExtensionPoint, pub extend_to: u32, @@ -27329,9 +28562,13 @@ impl WriteXdr for ExtendFootprintTtlOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct RestoreFootprintOp { pub ext: ExtensionPoint, } @@ -27424,9 +28661,13 @@ impl WriteXdr for RestoreFootprintOp { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum OperationBody { CreateAccount(CreateAccountOp), @@ -27804,9 +29045,13 @@ impl WriteXdr for OperationBody { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct Operation { pub source_account: Option, pub body: OperationBody, @@ -27850,9 +29095,13 @@ impl WriteXdr for Operation { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct HashIdPreimageOperationId { pub source_account: AccountId, pub seq_num: SequenceNumber, @@ -27901,9 +29150,13 @@ impl WriteXdr for HashIdPreimageOperationId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct HashIdPreimageRevokeId { pub source_account: AccountId, pub seq_num: SequenceNumber, @@ -27955,9 +29208,13 @@ impl WriteXdr for HashIdPreimageRevokeId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct HashIdPreimageContractId { pub network_id: Hash, pub contract_id_preimage: ContractIdPreimage, @@ -28002,9 +29259,13 @@ impl WriteXdr for HashIdPreimageContractId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct HashIdPreimageSorobanAuthorization { pub network_id: Hash, pub nonce: i64, @@ -28082,9 +29343,13 @@ impl WriteXdr for HashIdPreimageSorobanAuthorization { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum HashIdPreimage { OpId(HashIdPreimageOperationId), @@ -28216,9 +29481,13 @@ impl WriteXdr for HashIdPreimage { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum MemoType { None = 0, @@ -28344,9 +29613,13 @@ impl WriteXdr for MemoType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum Memo { None, @@ -28469,9 +29742,13 @@ impl WriteXdr for Memo { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TimeBounds { pub min_time: TimePoint, pub max_time: TimePoint, @@ -28514,9 +29791,13 @@ impl WriteXdr for TimeBounds { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerBounds { pub min_ledger: u32, pub max_ledger: u32, @@ -28586,9 +29867,13 @@ impl WriteXdr for LedgerBounds { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct PreconditionsV2 { pub time_bounds: Option, pub ledger_bounds: Option, @@ -28645,9 +29930,13 @@ impl WriteXdr for PreconditionsV2 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum PreconditionType { None = 0, @@ -28761,9 +30050,13 @@ impl WriteXdr for PreconditionType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum Preconditions { None, @@ -28874,9 +30167,13 @@ impl WriteXdr for Preconditions { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct LedgerFootprint { pub read_only: VecM, pub read_write: VecM, @@ -28926,9 +30223,13 @@ impl WriteXdr for LedgerFootprint { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SorobanResources { pub footprint: LedgerFootprint, pub instructions: u32, @@ -28987,9 +30288,13 @@ impl WriteXdr for SorobanResources { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SorobanTransactionData { pub ext: ExtensionPoint, pub resources: SorobanResources, @@ -29036,9 +30341,13 @@ impl WriteXdr for SorobanTransactionData { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TransactionV0Ext { V0, @@ -29145,9 +30454,13 @@ impl WriteXdr for TransactionV0Ext { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionV0 { pub source_account_ed25519: Uint256, pub fee: u32, @@ -29207,9 +30520,13 @@ impl WriteXdr for TransactionV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionV0Envelope { pub tx: TransactionV0, pub signatures: VecM, @@ -29255,9 +30572,13 @@ impl WriteXdr for TransactionV0Envelope { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TransactionExt { V0, @@ -29382,9 +30703,13 @@ impl WriteXdr for TransactionExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct Transaction { pub source_account: MuxedAccount, pub fee: u32, @@ -29444,9 +30769,13 @@ impl WriteXdr for Transaction { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionV1Envelope { pub tx: Transaction, pub signatures: VecM, @@ -29490,9 +30819,13 @@ impl WriteXdr for TransactionV1Envelope { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum FeeBumpTransactionInnerTx { Tx(TransactionV1Envelope), @@ -29590,9 +30923,13 @@ impl WriteXdr for FeeBumpTransactionInnerTx { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum FeeBumpTransactionExt { V0, @@ -29701,9 +31038,13 @@ impl WriteXdr for FeeBumpTransactionExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct FeeBumpTransaction { pub fee_source: MuxedAccount, pub fee: i64, @@ -29754,9 +31095,13 @@ impl WriteXdr for FeeBumpTransaction { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct FeeBumpTransactionEnvelope { pub tx: FeeBumpTransaction, pub signatures: VecM, @@ -29804,9 +31149,13 @@ impl WriteXdr for FeeBumpTransactionEnvelope { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TransactionEnvelope { TxV0(TransactionV0Envelope), @@ -29923,9 +31272,13 @@ impl WriteXdr for TransactionEnvelope { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TransactionSignaturePayloadTaggedTransaction { Tx(Transaction), @@ -30035,9 +31388,13 @@ impl WriteXdr for TransactionSignaturePayloadTaggedTransaction { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionSignaturePayload { pub network_id: Hash, pub tagged_transaction: TransactionSignaturePayloadTaggedTransaction, @@ -30082,9 +31439,13 @@ impl WriteXdr for TransactionSignaturePayload { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ClaimAtomType { V0 = 0, @@ -30202,9 +31563,13 @@ impl WriteXdr for ClaimAtomType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ClaimOfferAtomV0 { pub seller_ed25519: Uint256, pub offer_id: i64, @@ -30268,9 +31633,13 @@ impl WriteXdr for ClaimOfferAtomV0 { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ClaimOfferAtom { pub seller_id: AccountId, pub offer_id: i64, @@ -30332,9 +31701,13 @@ impl WriteXdr for ClaimOfferAtom { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ClaimLiquidityAtom { pub liquidity_pool_id: PoolId, pub asset_sold: Asset, @@ -30391,9 +31764,13 @@ impl WriteXdr for ClaimLiquidityAtom { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ClaimAtom { V0(ClaimOfferAtomV0), @@ -30514,9 +31891,13 @@ impl WriteXdr for ClaimAtom { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum CreateAccountResultCode { Success = 0, @@ -30645,9 +32026,13 @@ impl WriteXdr for CreateAccountResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum CreateAccountResult { Success, @@ -30788,9 +32173,13 @@ impl WriteXdr for CreateAccountResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum PaymentResultCode { Success = 0, @@ -30949,9 +32338,13 @@ impl WriteXdr for PaymentResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum PaymentResult { Success, @@ -31139,9 +32532,13 @@ impl WriteXdr for PaymentResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum PathPaymentStrictReceiveResultCode { Success = 0, @@ -31305,9 +32702,13 @@ impl WriteXdr for PathPaymentStrictReceiveResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct SimplePaymentResult { pub destination: AccountId, pub asset: Asset, @@ -31353,9 +32754,13 @@ impl WriteXdr for SimplePaymentResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct PathPaymentStrictReceiveResultSuccess { pub offers: VecM, pub last: SimplePaymentResult, @@ -31419,9 +32824,13 @@ impl WriteXdr for PathPaymentStrictReceiveResultSuccess { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum PathPaymentStrictReceiveResult { Success(PathPaymentStrictReceiveResultSuccess), @@ -31632,9 +33041,13 @@ impl WriteXdr for PathPaymentStrictReceiveResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum PathPaymentStrictSendResultCode { Success = 0, @@ -31797,9 +33210,13 @@ impl WriteXdr for PathPaymentStrictSendResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct PathPaymentStrictSendResultSuccess { pub offers: VecM, pub last: SimplePaymentResult, @@ -31862,9 +33279,13 @@ impl WriteXdr for PathPaymentStrictSendResultSuccess { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum PathPaymentStrictSendResult { Success(PathPaymentStrictSendResultSuccess), @@ -32074,9 +33495,13 @@ impl WriteXdr for PathPaymentStrictSendResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ManageSellOfferResultCode { Success = 0, @@ -32241,9 +33666,13 @@ impl WriteXdr for ManageSellOfferResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ManageOfferEffect { Created = 0, @@ -32356,9 +33785,13 @@ impl WriteXdr for ManageOfferEffect { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ManageOfferSuccessResultOffer { Created(OfferEntry), @@ -32479,9 +33912,13 @@ impl WriteXdr for ManageOfferSuccessResultOffer { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct ManageOfferSuccessResult { pub offers_claimed: VecM, pub offer: ManageOfferSuccessResultOffer, @@ -32538,9 +33975,13 @@ impl WriteXdr for ManageOfferSuccessResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ManageSellOfferResult { Success(ManageOfferSuccessResult), @@ -32747,9 +34188,13 @@ impl WriteXdr for ManageSellOfferResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ManageBuyOfferResultCode { Success = 0, @@ -32926,9 +34371,13 @@ impl WriteXdr for ManageBuyOfferResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ManageBuyOfferResult { Success(ManageOfferSuccessResult), @@ -33128,9 +34577,13 @@ impl WriteXdr for ManageBuyOfferResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum SetOptionsResultCode { Success = 0, @@ -33295,9 +34748,13 @@ impl WriteXdr for SetOptionsResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum SetOptionsResult { Success, @@ -33482,9 +34939,13 @@ impl WriteXdr for SetOptionsResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ChangeTrustResultCode { Success = 0, @@ -33637,9 +35098,13 @@ impl WriteXdr for ChangeTrustResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ChangeTrustResult { Success, @@ -33808,9 +35273,13 @@ impl WriteXdr for ChangeTrustResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum AllowTrustResultCode { Success = 0, @@ -33951,9 +35420,13 @@ impl WriteXdr for AllowTrustResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum AllowTrustResult { Success, @@ -34106,9 +35579,13 @@ impl WriteXdr for AllowTrustResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum AccountMergeResultCode { Success = 0, @@ -34255,9 +35732,13 @@ impl WriteXdr for AccountMergeResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum AccountMergeResult { Success(i64), @@ -34410,9 +35891,13 @@ impl WriteXdr for AccountMergeResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum InflationResultCode { Success = 0, @@ -34515,9 +36000,13 @@ impl WriteXdr for InflationResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct InflationPayout { pub destination: AccountId, pub amount: i64, @@ -34563,9 +36052,13 @@ impl WriteXdr for InflationPayout { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum InflationResult { Success(VecM), @@ -34678,9 +36171,13 @@ impl WriteXdr for InflationResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ManageDataResultCode { Success = 0, @@ -34809,9 +36306,13 @@ impl WriteXdr for ManageDataResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ManageDataResult { Success, @@ -34943,9 +36444,13 @@ impl WriteXdr for ManageDataResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum BumpSequenceResultCode { Success = 0, @@ -35053,9 +36558,13 @@ impl WriteXdr for BumpSequenceResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum BumpSequenceResult { Success, @@ -35165,9 +36674,13 @@ impl WriteXdr for BumpSequenceResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum CreateClaimableBalanceResultCode { Success = 0, @@ -35303,9 +36816,13 @@ impl WriteXdr for CreateClaimableBalanceResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum CreateClaimableBalanceResult { Success(ClaimableBalanceId), @@ -35449,9 +36966,13 @@ impl WriteXdr for CreateClaimableBalanceResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ClaimClaimableBalanceResultCode { Success = 0, @@ -35586,9 +37107,13 @@ impl WriteXdr for ClaimClaimableBalanceResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ClaimClaimableBalanceResult { Success, @@ -35731,9 +37256,13 @@ impl WriteXdr for ClaimClaimableBalanceResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum BeginSponsoringFutureReservesResultCode { Success = 0, @@ -35853,9 +37382,13 @@ impl WriteXdr for BeginSponsoringFutureReservesResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum BeginSponsoringFutureReservesResult { Success, @@ -35978,9 +37511,13 @@ impl WriteXdr for BeginSponsoringFutureReservesResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum EndSponsoringFutureReservesResultCode { Success = 0, @@ -36089,9 +37626,13 @@ impl WriteXdr for EndSponsoringFutureReservesResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum EndSponsoringFutureReservesResult { Success, @@ -36205,9 +37746,13 @@ impl WriteXdr for EndSponsoringFutureReservesResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum RevokeSponsorshipResultCode { Success = 0, @@ -36342,9 +37887,13 @@ impl WriteXdr for RevokeSponsorshipResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum RevokeSponsorshipResult { Success, @@ -36488,9 +38037,13 @@ impl WriteXdr for RevokeSponsorshipResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ClawbackResultCode { Success = 0, @@ -36619,9 +38172,13 @@ impl WriteXdr for ClawbackResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ClawbackResult { Success, @@ -36756,9 +38313,13 @@ impl WriteXdr for ClawbackResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ClawbackClaimableBalanceResultCode { Success = 0, @@ -36878,9 +38439,13 @@ impl WriteXdr for ClawbackClaimableBalanceResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ClawbackClaimableBalanceResult { Success, @@ -37008,9 +38573,13 @@ impl WriteXdr for ClawbackClaimableBalanceResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum SetTrustLineFlagsResultCode { Success = 0, @@ -37145,9 +38714,13 @@ impl WriteXdr for SetTrustLineFlagsResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum SetTrustLineFlagsResult { Success, @@ -37298,9 +38871,13 @@ impl WriteXdr for SetTrustLineFlagsResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum LiquidityPoolDepositResultCode { Success = 0, @@ -37447,9 +39024,13 @@ impl WriteXdr for LiquidityPoolDepositResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LiquidityPoolDepositResult { Success, @@ -37611,9 +39192,13 @@ impl WriteXdr for LiquidityPoolDepositResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum LiquidityPoolWithdrawResultCode { Success = 0, @@ -37748,9 +39333,13 @@ impl WriteXdr for LiquidityPoolWithdrawResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum LiquidityPoolWithdrawResult { Success, @@ -37895,9 +39484,13 @@ impl WriteXdr for LiquidityPoolWithdrawResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum InvokeHostFunctionResultCode { Success = 0, @@ -38032,9 +39625,13 @@ impl WriteXdr for InvokeHostFunctionResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum InvokeHostFunctionResult { Success(Hash), @@ -38181,9 +39778,13 @@ impl WriteXdr for InvokeHostFunctionResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum ExtendFootprintTtlResultCode { Success = 0, @@ -38306,9 +39907,13 @@ impl WriteXdr for ExtendFootprintTtlResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ExtendFootprintTtlResult { Success, @@ -38441,9 +40046,13 @@ impl WriteXdr for ExtendFootprintTtlResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum RestoreFootprintResultCode { Success = 0, @@ -38566,9 +40175,13 @@ impl WriteXdr for RestoreFootprintResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum RestoreFootprintResult { Success, @@ -38702,9 +40315,13 @@ impl WriteXdr for RestoreFootprintResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum OperationResultCode { OpInner = 0, @@ -38890,9 +40507,13 @@ impl WriteXdr for OperationResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum OperationResultTr { CreateAccount(CreateAccountResult), @@ -39278,9 +40899,13 @@ impl WriteXdr for OperationResultTr { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum OperationResult { OpInner(OperationResultTr), @@ -39445,9 +41070,13 @@ impl WriteXdr for OperationResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum TransactionResultCode { TxFeeBumpInnerSuccess = 1, @@ -39660,9 +41289,13 @@ impl WriteXdr for TransactionResultCode { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum InnerTransactionResultResult { TxSuccess(VecM), @@ -39880,9 +41513,13 @@ impl WriteXdr for InnerTransactionResultResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum InnerTransactionResultExt { V0, @@ -40013,9 +41650,13 @@ impl WriteXdr for InnerTransactionResultExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct InnerTransactionResult { pub fee_charged: i64, pub result: InnerTransactionResultResult, @@ -40061,9 +41702,13 @@ impl WriteXdr for InnerTransactionResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct InnerTransactionResultPair { pub transaction_hash: Hash, pub result: InnerTransactionResult, @@ -40128,9 +41773,13 @@ impl WriteXdr for InnerTransactionResultPair { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TransactionResultResult { TxFeeBumpInnerSuccess(InnerTransactionResultPair), @@ -40366,9 +42015,13 @@ impl WriteXdr for TransactionResultResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum TransactionResultExt { V0, @@ -40500,9 +42153,13 @@ impl WriteXdr for TransactionResultExt { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct TransactionResult { pub fee_charged: i64, pub result: TransactionResultResult, @@ -40544,11 +42201,11 @@ impl WriteXdr for TransactionResult { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] pub struct Hash(pub [u8; 32]); @@ -40666,11 +42323,11 @@ impl AsRef<[u8]> for Hash { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] pub struct Uint256(pub [u8; 32]); @@ -40820,9 +42477,13 @@ pub type Int64 = i64; #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct TimePoint(pub u64); @@ -40875,9 +42536,13 @@ impl WriteXdr for TimePoint { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct Duration(pub u64); @@ -40935,9 +42600,13 @@ impl WriteXdr for Duration { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[allow(clippy::large_enum_variant)] pub enum ExtensionPoint { V0, @@ -41040,9 +42709,13 @@ impl WriteXdr for ExtensionPoint { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum CryptoKeyType { Ed25519 = 0, @@ -41165,9 +42838,13 @@ impl WriteXdr for CryptoKeyType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum PublicKeyType { PublicKeyTypeEd25519 = 0, @@ -41269,9 +42946,13 @@ impl WriteXdr for PublicKeyType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[repr(i32)] pub enum SignerKeyType { Ed25519 = 0, @@ -41386,11 +43067,11 @@ impl WriteXdr for SignerKeyType { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] #[allow(clippy::large_enum_variant)] pub enum PublicKey { @@ -41492,11 +43173,11 @@ impl WriteXdr for PublicKey { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] pub struct SignerKeyEd25519SignedPayload { pub ed25519: Uint256, @@ -41555,11 +43236,11 @@ impl WriteXdr for SignerKeyEd25519SignedPayload { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] #[allow(clippy::large_enum_variant)] pub enum SignerKey { @@ -41677,9 +43358,13 @@ impl WriteXdr for SignerKey { #[derive(Default)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] #[derive(Debug)] pub struct Signature(pub BytesM<64>); @@ -41781,11 +43466,11 @@ impl AsRef<[u8]> for Signature { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] pub struct SignatureHint(pub [u8; 4]); @@ -41903,11 +43588,11 @@ impl AsRef<[u8]> for SignatureHint { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] #[derive(Debug)] pub struct NodeId(pub PublicKey); @@ -41961,11 +43646,11 @@ impl WriteXdr for NodeId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive( - serde_with::SerializeDisplay, - serde_with::DeserializeFromStr, - schemars::JsonSchema - ) + derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) +)] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) )] #[derive(Debug)] pub struct AccountId(pub PublicKey); @@ -42022,9 +43707,13 @@ impl WriteXdr for AccountId { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct Curve25519Secret { pub key: [u8; 32], } @@ -42063,9 +43752,13 @@ impl WriteXdr for Curve25519Secret { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct Curve25519Public { pub key: [u8; 32], } @@ -42104,9 +43797,13 @@ impl WriteXdr for Curve25519Public { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct HmacSha256Key { pub key: [u8; 32], } @@ -42145,9 +43842,13 @@ impl WriteXdr for HmacSha256Key { #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub struct HmacSha256Mac { pub mac: [u8; 32], } @@ -42176,9 +43877,13 @@ impl WriteXdr for HmacSha256Mac { #[derive(Clone, Copy, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub enum TypeVariant { Value, ScpBallot, @@ -44338,10 +46043,14 @@ impl core::str::FromStr for TypeVariant { #[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( all(feature = "serde", feature = "alloc"), - derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case"), serde(untagged) )] +#[cfg_attr( + all(feature = "schemars", feature = "serde", feature = "alloc"), + derive(schemars::JsonSchema) +)] pub enum Type { Value(Box), ScpBallot(Box), From 52bb627c3936bafa0622597c30fe5e1f67dd2e0d Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Thu, 7 Mar 2024 20:12:27 +1000 Subject: [PATCH 06/20] upd --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index be3fac70..81f2851a 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ CARGO_HACK_ARGS=--feature-powerset --exclude-features default --group-features b CARGO_DOC_ARGS?=--open -XDRGEN_VERSION=8cfcc1a17472b933724c5b9501e4d33a680b09b1 +XDRGEN_VERSION=6499bc7413bf3ecd413916bbb82dfb04bc71a0a0 # LOCAL_XDRGEN=1 XDRGEN_TYPES_CUSTOM_STR_IMPL_CURR=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12 XDRGEN_TYPES_CUSTOM_STR_IMPL_NEXT=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12 From 5329bbfdd3e1ebfbebba6e2e4df46b0fb2477bfd Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Fri, 8 Mar 2024 08:05:28 +1000 Subject: [PATCH 07/20] fix --- src/curr/generated.rs | 2 ++ src/next/generated.rs | 2 ++ tests/serde_tx_schema.rs | 3 +-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/curr/generated.rs b/src/curr/generated.rs index 5ef665cd..5c83148c 100644 --- a/src/curr/generated.rs +++ b/src/curr/generated.rs @@ -2206,6 +2206,7 @@ where } } +#[cfg(all(feature = "schemars", feature = "serde", feature = "alloc"))] fn mut_array( schema: schemars::schema::Schema, f: impl FnOnce(schemars::schema::ArrayValidation) -> schemars::schema::ArrayValidation, @@ -2220,6 +2221,7 @@ fn mut_array( } } +#[cfg(all(feature = "schemars", feature = "serde", feature = "alloc"))] fn mut_string( schema: schemars::schema::Schema, f: impl FnOnce(schemars::schema::StringValidation) -> schemars::schema::StringValidation, diff --git a/src/next/generated.rs b/src/next/generated.rs index 647a234e..cb3fca93 100644 --- a/src/next/generated.rs +++ b/src/next/generated.rs @@ -2206,6 +2206,7 @@ where } } +#[cfg(all(feature = "schemars", feature = "serde", feature = "alloc"))] fn mut_array( schema: schemars::schema::Schema, f: impl FnOnce(schemars::schema::ArrayValidation) -> schemars::schema::ArrayValidation, @@ -2220,6 +2221,7 @@ fn mut_array( } } +#[cfg(all(feature = "schemars", feature = "serde", feature = "alloc"))] fn mut_string( schema: schemars::schema::Schema, f: impl FnOnce(schemars::schema::StringValidation) -> schemars::schema::StringValidation, diff --git a/tests/serde_tx_schema.rs b/tests/serde_tx_schema.rs index 336dfe4e..4da1775c 100644 --- a/tests/serde_tx_schema.rs +++ b/tests/serde_tx_schema.rs @@ -1,10 +1,9 @@ #![cfg(feature = "curr")] -#![cfg(all(feature = "std", feature = "serde"))] +#![cfg(all(feature = "schemars", feature = "serde", feature = "alloc"))] use stellar_xdr::curr as stellar_xdr; use stellar_xdr::TransactionEnvelope; -#[cfg(feature = "curr")] #[allow(clippy::too_many_lines)] #[test] fn test_serde_tx_schema() -> Result<(), Box> { From bea9cecfe95023d54b8bfac72ed9313269bfdfa9 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Fri, 8 Mar 2024 23:37:14 +1000 Subject: [PATCH 08/20] upd --- Cargo.toml | 3 +- Makefile | 8 +- src/curr/generated.rs | 2280 +++++++------------------ src/next/generated.rs | 2280 +++++++------------------ tests/serde_tx_schema.rs | 3423 +------------------------------------- 5 files changed, 1219 insertions(+), 6775 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e29ae380..20d1cda7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -43,8 +43,9 @@ next = [] # Features dependent on optional dependencies. base64 = ["std", "dep:base64"] -serde = ["alloc", "dep:serde", "dep:serde_with", "hex/serde", "dep:schemars"] +serde = ["alloc", "dep:serde", "dep:serde_with", "hex/serde"] serde_json = ["std", "serde", "dep:serde_json"] +schemars = ["alloc", "serde", "serde_json", "dep:schemars"] arbitrary = ["std", "dep:arbitrary"] hex = [] diff --git a/Makefile b/Makefile index 81f2851a..a39a4b2d 100644 --- a/Makefile +++ b/Makefile @@ -4,8 +4,8 @@ CARGO_HACK_ARGS=--feature-powerset --exclude-features default --group-features b CARGO_DOC_ARGS?=--open -XDRGEN_VERSION=6499bc7413bf3ecd413916bbb82dfb04bc71a0a0 -# LOCAL_XDRGEN=1 +XDRGEN_VERSION=c95a5bd7f9dff8dff53cadcef3014ceb69ab7088 +# XDRGEN_LOCAL=1 XDRGEN_TYPES_CUSTOM_STR_IMPL_CURR=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12 XDRGEN_TYPES_CUSTOM_STR_IMPL_NEXT=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12 @@ -35,7 +35,7 @@ generate: src/curr/generated.rs xdr/curr-version src/next/generated.rs xdr/next- src/curr/generated.rs: $(sort $(wildcard xdr/curr/*.x)) > $@ -ifeq ($(LOCAL_XDRGEN),) +ifeq ($(XDRGEN_LOCAL),) docker run -i --rm -v $$PWD:/wd -w /wd docker.io/library/ruby:latest /bin/bash -c '\ gem install specific_install -v 0.3.8 && \ gem specific_install https://github.com/stellar/xdrgen.git -b $(XDRGEN_VERSION) && \ @@ -54,7 +54,7 @@ xdr/curr-version: $(wildcard .git/modules/xdr/curr/**/*) $(wildcard xdr/curr/*.x src/next/generated.rs: $(sort $(wildcard xdr/next/*.x)) > $@ -ifeq ($(LOCAL_XDRGEN),) +ifeq ($(XDRGEN_LOCAL),) docker run -i --rm -v $$PWD:/wd -w /wd docker.io/library/ruby:latest /bin/bash -c '\ gem install specific_install -v 0.3.8 && \ gem specific_install https://github.com/stellar/xdrgen.git -b $(XDRGEN_VERSION) && \ diff --git a/src/curr/generated.rs b/src/curr/generated.rs index 5c83148c..bb53ece6 100644 --- a/src/curr/generated.rs +++ b/src/curr/generated.rs @@ -956,7 +956,7 @@ impl Default for VecM { } } -#[cfg(all(feature = "schemars", feature = "serde", feature = "alloc"))] +#[cfg(feature = "schemars")] impl schemars::JsonSchema for VecM { fn schema_name() -> String { format!("VecM<{}, {}>", T::schema_name(), MAX) @@ -1411,10 +1411,10 @@ impl Deref for BytesM { } } -#[cfg(all(feature = "schemars", feature = "serde", feature = "alloc"))] +#[cfg(feature = "schemars")] impl schemars::JsonSchema for BytesM { fn schema_name() -> String { - format!("BytesM<{}>", MAX) + format!("BytesM<{MAX}>") } fn is_referenceable() -> bool { @@ -1433,8 +1433,8 @@ impl schemars::JsonSchema for BytesM { serde_json::Value::String("application/binary".to_string()), ); mut_string(schema.into(), |string| schemars::schema::StringValidation { - max_length: Some(((MAX.checked_mul(4).unwrap_or(u32::MAX) / 3) + 3) & !3), - min_length: Some(((MAX.checked_mul(4).unwrap_or(u32::MAX) / 3) + 3) & !3), + max_length: Some(MAX * 2), + min_length: None, ..string }) } else { @@ -1831,10 +1831,10 @@ impl Default for StringM { } } -#[cfg(all(feature = "schemars", feature = "serde", feature = "alloc"))] +#[cfg(feature = "schemars")] impl schemars::JsonSchema for StringM { fn schema_name() -> String { - format!("StringM<{}>", MAX) + format!("StringM<{MAX}>") } fn is_referenceable() -> bool { @@ -2167,7 +2167,7 @@ pub struct Frame(pub T) where T: ReadXdr; -#[cfg(all(feature = "schemars", feature = "serde", feature = "alloc"))] +#[cfg(feature = "schemars")] impl schemars::JsonSchema for Frame { fn schema_name() -> String { format!("Frame<{}>", T::schema_name()) @@ -2206,7 +2206,7 @@ where } } -#[cfg(all(feature = "schemars", feature = "serde", feature = "alloc"))] +#[cfg(feature = "schemars")] fn mut_array( schema: schemars::schema::Schema, f: impl FnOnce(schemars::schema::ArrayValidation) -> schemars::schema::ArrayValidation, @@ -2221,7 +2221,7 @@ fn mut_array( } } -#[cfg(all(feature = "schemars", feature = "serde", feature = "alloc"))] +#[cfg(feature = "schemars")] fn mut_string( schema: schemars::schema::Schema, f: impl FnOnce(schemars::schema::StringValidation) -> schemars::schema::StringValidation, @@ -2876,10 +2876,7 @@ mod test { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct Value(pub BytesM); @@ -2988,10 +2985,7 @@ impl AsRef<[u8]> for Value { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScpBallot { pub counter: u32, pub value: Value, @@ -3040,10 +3034,7 @@ impl WriteXdr for ScpBallot { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ScpStatementType { Prepare = 0, @@ -3160,10 +3151,7 @@ impl WriteXdr for ScpStatementType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScpNomination { pub quorum_set_hash: Hash, pub votes: VecM, @@ -3216,10 +3204,7 @@ impl WriteXdr for ScpNomination { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScpStatementPrepare { pub quorum_set_hash: Hash, pub ballot: ScpBallot, @@ -3280,10 +3265,7 @@ impl WriteXdr for ScpStatementPrepare { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScpStatementConfirm { pub ballot: ScpBallot, pub n_prepared: u32, @@ -3339,10 +3321,7 @@ impl WriteXdr for ScpStatementConfirm { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScpStatementExternalize { pub commit: ScpBallot, pub n_h: u32, @@ -3418,10 +3397,7 @@ impl WriteXdr for ScpStatementExternalize { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ScpStatementPledges { Prepare(ScpStatementPrepare), @@ -3576,10 +3552,7 @@ impl WriteXdr for ScpStatementPledges { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScpStatement { pub node_id: NodeId, pub slot_index: u64, @@ -3628,10 +3601,7 @@ impl WriteXdr for ScpStatement { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScpEnvelope { pub statement: ScpStatement, pub signature: Signature, @@ -3678,10 +3648,7 @@ impl WriteXdr for ScpEnvelope { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScpQuorumSet { pub threshold: u32, pub validators: VecM, @@ -3730,10 +3697,7 @@ impl WriteXdr for ScpQuorumSet { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ConfigSettingContractExecutionLanesV0 { pub ledger_max_tx_count: u32, } @@ -3784,10 +3748,7 @@ impl WriteXdr for ConfigSettingContractExecutionLanesV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ConfigSettingContractComputeV0 { pub ledger_max_instructions: i64, pub tx_max_instructions: i64, @@ -3869,10 +3830,7 @@ impl WriteXdr for ConfigSettingContractComputeV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ConfigSettingContractLedgerCostV0 { pub ledger_max_read_ledger_entries: u32, pub ledger_max_read_bytes: u32, @@ -3956,10 +3914,7 @@ impl WriteXdr for ConfigSettingContractLedgerCostV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ConfigSettingContractHistoricalDataV0 { pub fee_historical1_kb: i64, } @@ -4004,10 +3959,7 @@ impl WriteXdr for ConfigSettingContractHistoricalDataV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ConfigSettingContractEventsV0 { pub tx_max_contract_events_size_bytes: u32, pub fee_contract_events1_kb: i64, @@ -4058,10 +4010,7 @@ impl WriteXdr for ConfigSettingContractEventsV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ConfigSettingContractBandwidthV0 { pub ledger_max_txs_size_bytes: u32, pub tx_max_size_bytes: u32, @@ -4158,10 +4107,7 @@ impl WriteXdr for ConfigSettingContractBandwidthV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ContractCostType { WasmInsnExec = 0, @@ -4379,10 +4325,7 @@ impl WriteXdr for ContractCostType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ContractCostParamEntry { pub ext: ExtensionPoint, pub const_term: i64, @@ -4450,10 +4393,7 @@ impl WriteXdr for ContractCostParamEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct StateArchivalSettings { pub max_entry_ttl: u32, pub min_temporary_ttl: u32, @@ -4523,10 +4463,7 @@ impl WriteXdr for StateArchivalSettings { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct EvictionIterator { pub bucket_list_level: u32, pub is_curr_bucket: bool, @@ -4580,10 +4517,7 @@ pub const CONTRACT_COST_COUNT_LIMIT: u64 = 1024; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct ContractCostParams(pub VecM); @@ -4705,10 +4639,7 @@ impl AsRef<[ContractCostParamEntry]> for ContractCostParams { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ConfigSettingId { ContractMaxSizeBytes = 0, @@ -4906,10 +4837,7 @@ impl WriteXdr for ConfigSettingId { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ConfigSettingEntry { ContractMaxSizeBytes(u32), @@ -5136,10 +5064,7 @@ impl WriteXdr for ConfigSettingEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ScEnvMetaKind { ScEnvMetaKindInterfaceVersion = 0, @@ -5242,10 +5167,7 @@ impl WriteXdr for ScEnvMetaKind { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ScEnvMetaEntry { ScEnvMetaKindInterfaceVersion(u64), @@ -5347,10 +5269,7 @@ impl WriteXdr for ScEnvMetaEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScMetaV0 { pub key: StringM, pub val: StringM, @@ -5396,10 +5315,7 @@ impl WriteXdr for ScMetaV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ScMetaKind { ScMetaV0 = 0, @@ -5502,10 +5418,7 @@ impl WriteXdr for ScMetaKind { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ScMetaEntry { ScMetaV0(ScMetaV0), @@ -5643,10 +5556,7 @@ pub const SC_SPEC_DOC_LIMIT: u64 = 1024; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ScSpecType { Val = 0, @@ -5871,10 +5781,7 @@ impl WriteXdr for ScSpecType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecTypeOption { pub value_type: Box, } @@ -5917,10 +5824,7 @@ impl WriteXdr for ScSpecTypeOption { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecTypeResult { pub ok_type: Box, pub error_type: Box, @@ -5965,10 +5869,7 @@ impl WriteXdr for ScSpecTypeResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecTypeVec { pub element_type: Box, } @@ -6011,10 +5912,7 @@ impl WriteXdr for ScSpecTypeVec { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecTypeMap { pub key_type: Box, pub value_type: Box, @@ -6059,10 +5957,7 @@ impl WriteXdr for ScSpecTypeMap { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecTypeTuple { pub value_types: VecM, } @@ -6104,10 +5999,7 @@ impl WriteXdr for ScSpecTypeTuple { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecTypeBytesN { pub n: u32, } @@ -6149,10 +6041,7 @@ impl WriteXdr for ScSpecTypeBytesN { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecTypeUdt { pub name: StringM<60>, } @@ -6227,10 +6116,7 @@ impl WriteXdr for ScSpecTypeUdt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ScSpecTypeDef { Val, @@ -6503,10 +6389,7 @@ impl WriteXdr for ScSpecTypeDef { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecUdtStructFieldV0 { pub doc: StringM<1024>, pub name: StringM<30>, @@ -6557,10 +6440,7 @@ impl WriteXdr for ScSpecUdtStructFieldV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecUdtStructV0 { pub doc: StringM<1024>, pub lib: StringM<80>, @@ -6612,10 +6492,7 @@ impl WriteXdr for ScSpecUdtStructV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecUdtUnionCaseVoidV0 { pub doc: StringM<1024>, pub name: StringM<60>, @@ -6662,10 +6539,7 @@ impl WriteXdr for ScSpecUdtUnionCaseVoidV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecUdtUnionCaseTupleV0 { pub doc: StringM<1024>, pub name: StringM<60>, @@ -6715,10 +6589,7 @@ impl WriteXdr for ScSpecUdtUnionCaseTupleV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ScSpecUdtUnionCaseV0Kind { VoidV0 = 0, @@ -6829,10 +6700,7 @@ impl WriteXdr for ScSpecUdtUnionCaseV0Kind { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ScSpecUdtUnionCaseV0 { VoidV0(ScSpecUdtUnionCaseVoidV0), @@ -6946,10 +6814,7 @@ impl WriteXdr for ScSpecUdtUnionCaseV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecUdtUnionV0 { pub doc: StringM<1024>, pub lib: StringM<80>, @@ -7002,10 +6867,7 @@ impl WriteXdr for ScSpecUdtUnionV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecUdtEnumCaseV0 { pub doc: StringM<1024>, pub name: StringM<60>, @@ -7056,10 +6918,7 @@ impl WriteXdr for ScSpecUdtEnumCaseV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecUdtEnumV0 { pub doc: StringM<1024>, pub lib: StringM<80>, @@ -7112,10 +6971,7 @@ impl WriteXdr for ScSpecUdtEnumV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecUdtErrorEnumCaseV0 { pub doc: StringM<1024>, pub name: StringM<60>, @@ -7166,10 +7022,7 @@ impl WriteXdr for ScSpecUdtErrorEnumCaseV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecUdtErrorEnumV0 { pub doc: StringM<1024>, pub lib: StringM<80>, @@ -7222,10 +7075,7 @@ impl WriteXdr for ScSpecUdtErrorEnumV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecFunctionInputV0 { pub doc: StringM<1024>, pub name: StringM<30>, @@ -7276,10 +7126,7 @@ impl WriteXdr for ScSpecFunctionInputV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecFunctionV0 { pub doc: StringM<1024>, pub name: ScSymbol, @@ -7335,10 +7182,7 @@ impl WriteXdr for ScSpecFunctionV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ScSpecEntryKind { FunctionV0 = 0, @@ -7473,10 +7317,7 @@ impl WriteXdr for ScSpecEntryKind { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ScSpecEntry { FunctionV0(ScSpecFunctionV0), @@ -7660,10 +7501,7 @@ impl WriteXdr for ScSpecEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ScValType { Bool = 0, @@ -7883,10 +7721,7 @@ impl WriteXdr for ScValType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ScErrorType { Contract = 0, @@ -8038,10 +7873,7 @@ impl WriteXdr for ScErrorType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ScErrorCode { ArithDomain = 0, @@ -8203,10 +8035,7 @@ impl WriteXdr for ScErrorCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ScError { Contract(u32), @@ -8364,10 +8193,7 @@ impl WriteXdr for ScError { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct UInt128Parts { pub hi: u64, pub lo: u64, @@ -8412,10 +8238,7 @@ impl WriteXdr for UInt128Parts { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct Int128Parts { pub hi: i64, pub lo: u64, @@ -8462,10 +8285,7 @@ impl WriteXdr for Int128Parts { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct UInt256Parts { pub hi_hi: u64, pub hi_lo: u64, @@ -8518,10 +8338,7 @@ impl WriteXdr for UInt256Parts { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct Int256Parts { pub hi_hi: i64, pub hi_lo: u64, @@ -8574,10 +8391,7 @@ impl WriteXdr for Int256Parts { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ContractExecutableType { Wasm = 0, @@ -8688,10 +8502,7 @@ impl WriteXdr for ContractExecutableType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ContractExecutable { Wasm(Hash), @@ -8800,10 +8611,7 @@ impl WriteXdr for ContractExecutable { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ScAddressType { Account = 0, @@ -8910,10 +8718,7 @@ impl WriteXdr for ScAddressType { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ScAddress { Account(AccountId), @@ -9023,10 +8828,7 @@ pub const SCSYMBOL_LIMIT: u64 = 32; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct ScVec(pub VecM); @@ -9132,10 +8934,7 @@ impl AsRef<[ScVal]> for ScVec { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct ScMap(pub VecM); @@ -9241,10 +9040,7 @@ impl AsRef<[ScMapEntry]> for ScMap { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct ScBytes(pub BytesM); @@ -9350,10 +9146,7 @@ impl AsRef<[u8]> for ScBytes { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct ScString(pub StringM); @@ -9459,10 +9252,7 @@ impl AsRef<[u8]> for ScString { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct ScSymbol(pub StringM<32>); @@ -9569,10 +9359,7 @@ impl AsRef<[u8]> for ScSymbol { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScNonceKey { pub nonce: i64, } @@ -9614,10 +9401,7 @@ impl WriteXdr for ScNonceKey { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScContractInstance { pub executable: ContractExecutable, pub storage: Option, @@ -9720,10 +9504,7 @@ impl WriteXdr for ScContractInstance { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ScVal { Bool(bool), @@ -9976,10 +9757,7 @@ impl WriteXdr for ScVal { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScMapEntry { pub key: ScVal, pub val: ScVal, @@ -10028,10 +9806,7 @@ impl WriteXdr for ScMapEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum StoredTransactionSet { V0(TransactionSet), @@ -10137,10 +9912,7 @@ impl WriteXdr for StoredTransactionSet { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct StoredDebugTransactionSet { pub tx_set: StoredTransactionSet, pub ledger_seq: u32, @@ -10190,10 +9962,7 @@ impl WriteXdr for StoredDebugTransactionSet { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct PersistedScpStateV0 { pub scp_envelopes: VecM, pub quorum_sets: VecM, @@ -10243,10 +10012,7 @@ impl WriteXdr for PersistedScpStateV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct PersistedScpStateV1 { pub scp_envelopes: VecM, pub quorum_sets: VecM, @@ -10295,10 +10061,7 @@ impl WriteXdr for PersistedScpStateV1 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum PersistedScpState { V0(PersistedScpStateV0), @@ -10398,10 +10161,6 @@ impl WriteXdr for PersistedScpState { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] pub struct Thresholds(pub [u8; 4]); impl core::fmt::Debug for Thresholds { @@ -10432,6 +10191,37 @@ impl core::str::FromStr for Thresholds { hex::decode(s).map_err(|_| Error::InvalidHex)?.try_into() } } +#[cfg(feature = "schemars")] +impl schemars::JsonSchema for Thresholds { + fn schema_name() -> String { + "Thresholds".to_string() + } + + fn is_referenceable() -> bool { + false + } + + fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { + let schema_ = String::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema_ { + schema.extensions.insert( + "contentEncoding".to_owned(), + serde_json::Value::String("hex".to_string()), + ); + schema.extensions.insert( + "contentMediaType".to_owned(), + serde_json::Value::String("application/binary".to_string()), + ); + mut_string(schema.into(), |string| schemars::schema::StringValidation { + max_length: Some(4 * 2), + min_length: Some(4 * 2), + ..string + }) + } else { + schema_ + } + } +} impl From for [u8; 4] { #[must_use] fn from(x: Thresholds) -> Self { @@ -10522,10 +10312,7 @@ impl AsRef<[u8]> for Thresholds { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct String32(pub StringM<32>); @@ -10631,10 +10418,7 @@ impl AsRef<[u8]> for String32 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct String64(pub StringM<64>); @@ -10739,10 +10523,7 @@ impl AsRef<[u8]> for String64 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct SequenceNumber(pub i64); @@ -10799,10 +10580,7 @@ impl WriteXdr for SequenceNumber { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct DataValue(pub BytesM<64>); @@ -10907,10 +10685,7 @@ impl AsRef<[u8]> for DataValue { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct PoolId(pub Hash); @@ -10965,10 +10740,6 @@ impl WriteXdr for PoolId { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] pub struct AssetCode4(pub [u8; 4]); impl core::fmt::Debug for AssetCode4 { @@ -10982,6 +10753,37 @@ impl core::fmt::Debug for AssetCode4 { Ok(()) } } +#[cfg(feature = "schemars")] +impl schemars::JsonSchema for AssetCode4 { + fn schema_name() -> String { + "AssetCode4".to_string() + } + + fn is_referenceable() -> bool { + false + } + + fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { + let schema_ = String::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema_ { + schema.extensions.insert( + "contentEncoding".to_owned(), + serde_json::Value::String("hex".to_string()), + ); + schema.extensions.insert( + "contentMediaType".to_owned(), + serde_json::Value::String("application/binary".to_string()), + ); + mut_string(schema.into(), |string| schemars::schema::StringValidation { + max_length: Some(4 * 2), + min_length: Some(4 * 2), + ..string + }) + } else { + schema_ + } + } +} impl From for [u8; 4] { #[must_use] fn from(x: AssetCode4) -> Self { @@ -11070,10 +10872,6 @@ impl AsRef<[u8]> for AssetCode4 { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] pub struct AssetCode12(pub [u8; 12]); impl core::fmt::Debug for AssetCode12 { @@ -11087,6 +10885,37 @@ impl core::fmt::Debug for AssetCode12 { Ok(()) } } +#[cfg(feature = "schemars")] +impl schemars::JsonSchema for AssetCode12 { + fn schema_name() -> String { + "AssetCode12".to_string() + } + + fn is_referenceable() -> bool { + false + } + + fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { + let schema_ = String::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema_ { + schema.extensions.insert( + "contentEncoding".to_owned(), + serde_json::Value::String("hex".to_string()), + ); + schema.extensions.insert( + "contentMediaType".to_owned(), + serde_json::Value::String("application/binary".to_string()), + ); + mut_string(schema.into(), |string| schemars::schema::StringValidation { + max_length: Some(12 * 2), + min_length: Some(12 * 2), + ..string + }) + } else { + schema_ + } + } +} impl From for [u8; 12] { #[must_use] fn from(x: AssetCode12) -> Self { @@ -11183,10 +11012,7 @@ impl AsRef<[u8]> for AssetCode12 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum AssetType { Native = 0, @@ -11308,10 +11134,7 @@ impl WriteXdr for AssetType { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum AssetCode { CreditAlphanum4(AssetCode4), @@ -11416,10 +11239,7 @@ impl WriteXdr for AssetCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct AlphaNum4 { pub asset_code: AssetCode4, pub issuer: AccountId, @@ -11465,10 +11285,7 @@ impl WriteXdr for AlphaNum4 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct AlphaNum12 { pub asset_code: AssetCode12, pub issuer: AccountId, @@ -11523,10 +11340,7 @@ impl WriteXdr for AlphaNum12 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum Asset { Native, @@ -11640,10 +11454,7 @@ impl WriteXdr for Asset { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct Price { pub n: i32, pub d: i32, @@ -11689,10 +11500,7 @@ impl WriteXdr for Price { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct Liabilities { pub buying: i64, pub selling: i64, @@ -11741,10 +11549,7 @@ impl WriteXdr for Liabilities { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ThresholdIndexes { MasterWeight = 0, @@ -11869,10 +11674,7 @@ impl WriteXdr for ThresholdIndexes { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum LedgerEntryType { Account = 0, @@ -12023,10 +11825,7 @@ impl WriteXdr for LedgerEntryType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct Signer { pub key: SignerKey, pub weight: u32, @@ -12085,10 +11884,7 @@ impl WriteXdr for Signer { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum AccountFlags { RequiredFlag = 1, @@ -12229,10 +12025,7 @@ pub const MAX_SIGNERS: u64 = 20; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct SponsorshipDescriptor(pub Option); @@ -12299,10 +12092,7 @@ impl WriteXdr for SponsorshipDescriptor { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct AccountEntryExtensionV3 { pub ext: ExtensionPoint, pub seq_ledger: u32, @@ -12354,10 +12144,7 @@ impl WriteXdr for AccountEntryExtensionV3 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum AccountEntryExtensionV2Ext { V0, @@ -12472,10 +12259,7 @@ impl WriteXdr for AccountEntryExtensionV2Ext { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct AccountEntryExtensionV2 { pub num_sponsored: u32, pub num_sponsoring: u32, @@ -12530,10 +12314,7 @@ impl WriteXdr for AccountEntryExtensionV2 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum AccountEntryExtensionV1Ext { V0, @@ -12646,10 +12427,7 @@ impl WriteXdr for AccountEntryExtensionV1Ext { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct AccountEntryExtensionV1 { pub liabilities: Liabilities, pub ext: AccountEntryExtensionV1Ext, @@ -12698,10 +12476,7 @@ impl WriteXdr for AccountEntryExtensionV1 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum AccountEntryExt { V0, @@ -12829,10 +12604,7 @@ impl WriteXdr for AccountEntryExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct AccountEntry { pub account_id: AccountId, pub balance: i64, @@ -12909,10 +12681,7 @@ impl WriteXdr for AccountEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum TrustLineFlags { AuthorizedFlag = 1, @@ -13052,10 +12821,7 @@ pub const MASK_TRUSTLINE_FLAGS_V17: u64 = 7; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum LiquidityPoolType { LiquidityPoolConstantProduct = 0, @@ -13169,10 +12935,7 @@ impl WriteXdr for LiquidityPoolType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TrustLineAsset { Native, @@ -13294,10 +13057,7 @@ impl WriteXdr for TrustLineAsset { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TrustLineEntryExtensionV2Ext { V0, @@ -13403,10 +13163,7 @@ impl WriteXdr for TrustLineEntryExtensionV2Ext { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TrustLineEntryExtensionV2 { pub liquidity_pool_use_count: i32, pub ext: TrustLineEntryExtensionV2Ext, @@ -13455,10 +13212,7 @@ impl WriteXdr for TrustLineEntryExtensionV2 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TrustLineEntryV1Ext { V0, @@ -13571,10 +13325,7 @@ impl WriteXdr for TrustLineEntryV1Ext { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TrustLineEntryV1 { pub liabilities: Liabilities, pub ext: TrustLineEntryV1Ext, @@ -13635,10 +13386,7 @@ impl WriteXdr for TrustLineEntryV1 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TrustLineEntryExt { V0, @@ -13770,10 +13518,7 @@ impl WriteXdr for TrustLineEntryExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TrustLineEntry { pub account_id: AccountId, pub asset: TrustLineAsset, @@ -13833,10 +13578,7 @@ impl WriteXdr for TrustLineEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum OfferEntryFlags { PassiveFlag = 1, @@ -13947,10 +13689,7 @@ pub const MASK_OFFERENTRY_FLAGS: u64 = 1; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum OfferEntryExt { V0, @@ -14069,10 +13808,7 @@ impl WriteXdr for OfferEntryExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct OfferEntry { pub seller_id: AccountId, pub offer_id: i64, @@ -14137,10 +13873,7 @@ impl WriteXdr for OfferEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum DataEntryExt { V0, @@ -14249,10 +13982,7 @@ impl WriteXdr for DataEntryExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct DataEntry { pub account_id: AccountId, pub data_name: String64, @@ -14309,10 +14039,7 @@ impl WriteXdr for DataEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ClaimPredicateType { Unconditional = 0, @@ -14455,10 +14182,7 @@ impl WriteXdr for ClaimPredicateType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ClaimPredicate { Unconditional, @@ -14601,10 +14325,7 @@ impl WriteXdr for ClaimPredicate { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ClaimantType { ClaimantTypeV0 = 0, @@ -14706,10 +14427,7 @@ impl WriteXdr for ClaimantType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ClaimantV0 { pub destination: AccountId, pub predicate: ClaimPredicate, @@ -14760,10 +14478,7 @@ impl WriteXdr for ClaimantV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum Claimant { ClaimantTypeV0(ClaimantV0), @@ -14863,10 +14578,7 @@ impl WriteXdr for Claimant { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ClaimableBalanceIdType { ClaimableBalanceIdTypeV0 = 0, @@ -14970,10 +14682,7 @@ impl WriteXdr for ClaimableBalanceIdType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ClaimableBalanceId { ClaimableBalanceIdTypeV0(Hash), @@ -15078,10 +14787,7 @@ impl WriteXdr for ClaimableBalanceId { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ClaimableBalanceFlags { ClaimableBalanceClawbackEnabledFlag = 1, @@ -15193,10 +14899,7 @@ pub const MASK_CLAIMABLE_BALANCE_FLAGS: u64 = 0x1; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ClaimableBalanceEntryExtensionV1Ext { V0, @@ -15302,10 +15005,7 @@ impl WriteXdr for ClaimableBalanceEntryExtensionV1Ext { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ClaimableBalanceEntryExtensionV1 { pub ext: ClaimableBalanceEntryExtensionV1Ext, pub flags: u32, @@ -15354,10 +15054,7 @@ impl WriteXdr for ClaimableBalanceEntryExtensionV1 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ClaimableBalanceEntryExt { V0, @@ -15481,10 +15178,7 @@ impl WriteXdr for ClaimableBalanceEntryExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ClaimableBalanceEntry { pub balance_id: ClaimableBalanceId, pub claimants: VecM, @@ -15540,10 +15234,7 @@ impl WriteXdr for ClaimableBalanceEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LiquidityPoolConstantProductParameters { pub asset_a: Asset, pub asset_b: Asset, @@ -15597,10 +15288,7 @@ impl WriteXdr for LiquidityPoolConstantProductParameters { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LiquidityPoolEntryConstantProduct { pub params: LiquidityPoolConstantProductParameters, pub reserve_a: i64, @@ -15665,10 +15353,7 @@ impl WriteXdr for LiquidityPoolEntryConstantProduct { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LiquidityPoolEntryBody { LiquidityPoolConstantProduct(LiquidityPoolEntryConstantProduct), @@ -15789,10 +15474,7 @@ impl WriteXdr for LiquidityPoolEntryBody { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LiquidityPoolEntry { pub liquidity_pool_id: PoolId, pub body: LiquidityPoolEntryBody, @@ -15838,10 +15520,7 @@ impl WriteXdr for LiquidityPoolEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ContractDataDurability { Temporary = 0, @@ -15952,10 +15631,7 @@ impl WriteXdr for ContractDataDurability { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ContractDataEntry { pub ext: ExtensionPoint, pub contract: ScAddress, @@ -16011,10 +15687,7 @@ impl WriteXdr for ContractDataEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ContractCodeEntry { pub ext: ExtensionPoint, pub hash: Hash, @@ -16063,10 +15736,7 @@ impl WriteXdr for ContractCodeEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TtlEntry { pub key_hash: Hash, pub live_until_ledger_seq: u32, @@ -16113,10 +15783,7 @@ impl WriteXdr for TtlEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LedgerEntryExtensionV1Ext { V0, @@ -16222,10 +15889,7 @@ impl WriteXdr for LedgerEntryExtensionV1Ext { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerEntryExtensionV1 { pub sponsoring_id: SponsorshipDescriptor, pub ext: LedgerEntryExtensionV1Ext, @@ -16290,10 +15954,7 @@ impl WriteXdr for LedgerEntryExtensionV1 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LedgerEntryData { Account(AccountEntry), @@ -16473,10 +16134,7 @@ impl WriteXdr for LedgerEntryData { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LedgerEntryExt { V0, @@ -16615,10 +16273,7 @@ impl WriteXdr for LedgerEntryExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerEntry { pub last_modified_ledger_seq: u32, pub data: LedgerEntryData, @@ -16666,10 +16321,7 @@ impl WriteXdr for LedgerEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerKeyAccount { pub account_id: AccountId, } @@ -16712,10 +16364,7 @@ impl WriteXdr for LedgerKeyAccount { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerKeyTrustLine { pub account_id: AccountId, pub asset: TrustLineAsset, @@ -16761,10 +16410,7 @@ impl WriteXdr for LedgerKeyTrustLine { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerKeyOffer { pub seller_id: AccountId, pub offer_id: i64, @@ -16810,10 +16456,7 @@ impl WriteXdr for LedgerKeyOffer { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerKeyData { pub account_id: AccountId, pub data_name: String64, @@ -16858,10 +16501,7 @@ impl WriteXdr for LedgerKeyData { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerKeyClaimableBalance { pub balance_id: ClaimableBalanceId, } @@ -16903,10 +16543,7 @@ impl WriteXdr for LedgerKeyClaimableBalance { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerKeyLiquidityPool { pub liquidity_pool_id: PoolId, } @@ -16950,10 +16587,7 @@ impl WriteXdr for LedgerKeyLiquidityPool { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerKeyContractData { pub contract: ScAddress, pub key: ScVal, @@ -17001,10 +16635,7 @@ impl WriteXdr for LedgerKeyContractData { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerKeyContractCode { pub hash: Hash, } @@ -17046,10 +16677,7 @@ impl WriteXdr for LedgerKeyContractCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerKeyConfigSetting { pub config_setting_id: ConfigSettingId, } @@ -17092,10 +16720,7 @@ impl WriteXdr for LedgerKeyConfigSetting { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerKeyTtl { pub key_hash: Hash, } @@ -17198,10 +16823,7 @@ impl WriteXdr for LedgerKeyTtl { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LedgerKey { Account(LedgerKeyAccount), @@ -17387,10 +17009,7 @@ impl WriteXdr for LedgerKey { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum EnvelopeType { TxV0 = 0, @@ -17538,10 +17157,7 @@ impl WriteXdr for EnvelopeType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct UpgradeType(pub BytesM<128>); @@ -17651,10 +17267,7 @@ impl AsRef<[u8]> for UpgradeType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum StellarValueType { Basic = 0, @@ -17759,10 +17372,7 @@ impl WriteXdr for StellarValueType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerCloseValueSignature { pub node_id: NodeId, pub signature: Signature, @@ -17811,10 +17421,7 @@ impl WriteXdr for LedgerCloseValueSignature { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum StellarValueExt { Basic, @@ -17936,10 +17543,7 @@ impl WriteXdr for StellarValueExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct StellarValue { pub tx_set_hash: Hash, pub close_time: TimePoint, @@ -18001,10 +17605,7 @@ pub const MASK_LEDGER_HEADER_FLAGS: u64 = 0x7; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum LedgerHeaderFlags { TradingFlag = 1, @@ -18117,10 +17718,7 @@ impl WriteXdr for LedgerHeaderFlags { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LedgerHeaderExtensionV1Ext { V0, @@ -18226,10 +17824,7 @@ impl WriteXdr for LedgerHeaderExtensionV1Ext { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerHeaderExtensionV1 { pub flags: u32, pub ext: LedgerHeaderExtensionV1Ext, @@ -18278,10 +17873,7 @@ impl WriteXdr for LedgerHeaderExtensionV1 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LedgerHeaderExt { V0, @@ -18420,10 +18012,7 @@ impl WriteXdr for LedgerHeaderExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerHeader { pub ledger_version: u32, pub previous_ledger_hash: Hash, @@ -18514,10 +18103,7 @@ impl WriteXdr for LedgerHeader { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum LedgerUpgradeType { Version = 1, @@ -18652,10 +18238,7 @@ impl WriteXdr for LedgerUpgradeType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ConfigUpgradeSetKey { pub contract_id: Hash, pub content_hash: Hash, @@ -18717,10 +18300,7 @@ impl WriteXdr for ConfigUpgradeSetKey { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LedgerUpgrade { Version(u32), @@ -18866,10 +18446,7 @@ impl WriteXdr for LedgerUpgrade { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ConfigUpgradeSet { pub updated_entry: VecM, } @@ -18917,10 +18494,7 @@ impl WriteXdr for ConfigUpgradeSet { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum BucketEntryType { Metaentry = -1, @@ -19038,10 +18612,7 @@ impl WriteXdr for BucketEntryType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum BucketMetadataExt { V0, @@ -19149,10 +18720,7 @@ impl WriteXdr for BucketMetadataExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct BucketMetadata { pub ledger_version: u32, pub ext: BucketMetadataExt, @@ -19205,10 +18773,7 @@ impl WriteXdr for BucketMetadata { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum BucketEntry { Liveentry(LedgerEntry), @@ -19331,10 +18896,7 @@ impl WriteXdr for BucketEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum TxSetComponentType { TxsetCompTxsMaybeDiscountedFee = 0, @@ -19437,10 +18999,7 @@ impl WriteXdr for TxSetComponentType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TxSetComponentTxsMaybeDiscountedFee { pub base_fee: Option, pub txs: VecM, @@ -19491,10 +19050,7 @@ impl WriteXdr for TxSetComponentTxsMaybeDiscountedFee { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TxSetComponent { TxsetCompTxsMaybeDiscountedFee(TxSetComponentTxsMaybeDiscountedFee), @@ -19602,10 +19158,7 @@ impl WriteXdr for TxSetComponent { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TransactionPhase { V0(VecM), @@ -19705,10 +19258,7 @@ impl WriteXdr for TransactionPhase { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionSet { pub previous_ledger_hash: Hash, pub txs: VecM, @@ -19754,10 +19304,7 @@ impl WriteXdr for TransactionSet { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionSetV1 { pub previous_ledger_hash: Hash, pub phases: VecM, @@ -19805,10 +19352,7 @@ impl WriteXdr for TransactionSetV1 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum GeneralizedTransactionSet { V1(TransactionSetV1), @@ -19908,10 +19452,7 @@ impl WriteXdr for GeneralizedTransactionSet { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionResultPair { pub transaction_hash: Hash, pub result: TransactionResult, @@ -19956,10 +19497,7 @@ impl WriteXdr for TransactionResultPair { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionResultSet { pub results: VecM, } @@ -20005,10 +19543,7 @@ impl WriteXdr for TransactionResultSet { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TransactionHistoryEntryExt { V0, @@ -20123,10 +19658,7 @@ impl WriteXdr for TransactionHistoryEntryExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionHistoryEntry { pub ledger_seq: u32, pub tx_set: TransactionSet, @@ -20176,10 +19708,7 @@ impl WriteXdr for TransactionHistoryEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TransactionHistoryResultEntryExt { V0, @@ -20287,10 +19816,7 @@ impl WriteXdr for TransactionHistoryResultEntryExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionHistoryResultEntry { pub ledger_seq: u32, pub tx_result_set: TransactionResultSet, @@ -20340,10 +19866,7 @@ impl WriteXdr for TransactionHistoryResultEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LedgerHeaderHistoryEntryExt { V0, @@ -20451,10 +19974,7 @@ impl WriteXdr for LedgerHeaderHistoryEntryExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerHeaderHistoryEntry { pub hash: Hash, pub header: LedgerHeader, @@ -20503,10 +20023,7 @@ impl WriteXdr for LedgerHeaderHistoryEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerScpMessages { pub ledger_seq: u32, pub messages: VecM, @@ -20552,10 +20069,7 @@ impl WriteXdr for LedgerScpMessages { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScpHistoryEntryV0 { pub quorum_sets: VecM, pub ledger_messages: LedgerScpMessages, @@ -20602,10 +20116,7 @@ impl WriteXdr for ScpHistoryEntryV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ScpHistoryEntry { V0(ScpHistoryEntryV0), @@ -20708,10 +20219,7 @@ impl WriteXdr for ScpHistoryEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum LedgerEntryChangeType { Created = 0, @@ -20834,10 +20342,7 @@ impl WriteXdr for LedgerEntryChangeType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LedgerEntryChange { Created(LedgerEntry), @@ -20954,10 +20459,7 @@ impl WriteXdr for LedgerEntryChange { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct LedgerEntryChanges(pub VecM); @@ -21065,10 +20567,7 @@ impl AsRef<[LedgerEntryChange]> for LedgerEntryChanges { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct OperationMeta { pub changes: LedgerEntryChanges, } @@ -21111,10 +20610,7 @@ impl WriteXdr for OperationMeta { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionMetaV1 { pub tx_changes: LedgerEntryChanges, pub operations: VecM, @@ -21163,10 +20659,7 @@ impl WriteXdr for TransactionMetaV1 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionMetaV2 { pub tx_changes_before: LedgerEntryChanges, pub operations: VecM, @@ -21217,10 +20710,7 @@ impl WriteXdr for TransactionMetaV2 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ContractEventType { System = 0, @@ -21332,10 +20822,7 @@ impl WriteXdr for ContractEventType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ContractEventV0 { pub topics: VecM, pub data: ScVal, @@ -21386,10 +20873,7 @@ impl WriteXdr for ContractEventV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ContractEventBody { V0(ContractEventV0), @@ -21504,10 +20988,7 @@ impl WriteXdr for ContractEventBody { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ContractEvent { pub ext: ExtensionPoint, pub contract_id: Option, @@ -21559,10 +21040,7 @@ impl WriteXdr for ContractEvent { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct DiagnosticEvent { pub in_successful_contract_call: bool, pub event: ContractEvent, @@ -21616,10 +21094,7 @@ impl WriteXdr for DiagnosticEvent { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SorobanTransactionMeta { pub ext: ExtensionPoint, pub events: VecM, @@ -21678,10 +21153,7 @@ impl WriteXdr for SorobanTransactionMeta { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionMetaV3 { pub ext: ExtensionPoint, pub tx_changes_before: LedgerEntryChanges, @@ -21736,10 +21208,7 @@ impl WriteXdr for TransactionMetaV3 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct InvokeHostFunctionSuccessPreImage { pub return_value: ScVal, pub events: VecM, @@ -21792,10 +21261,7 @@ impl WriteXdr for InvokeHostFunctionSuccessPreImage { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TransactionMeta { V0(VecM), @@ -21911,10 +21377,7 @@ impl WriteXdr for TransactionMeta { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionResultMeta { pub result: TransactionResultPair, pub fee_processing: LedgerEntryChanges, @@ -21963,10 +21426,7 @@ impl WriteXdr for TransactionResultMeta { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct UpgradeEntryMeta { pub upgrade: LedgerUpgrade, pub changes: LedgerEntryChanges, @@ -22024,10 +21484,7 @@ impl WriteXdr for UpgradeEntryMeta { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerCloseMetaV0 { pub ledger_header: LedgerHeaderHistoryEntry, pub tx_set: TransactionSet, @@ -22109,10 +21566,7 @@ impl WriteXdr for LedgerCloseMetaV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerCloseMetaV1 { pub ext: ExtensionPoint, pub ledger_header: LedgerHeaderHistoryEntry, @@ -22182,10 +21636,7 @@ impl WriteXdr for LedgerCloseMetaV1 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LedgerCloseMeta { V0(LedgerCloseMetaV0), @@ -22294,10 +21745,7 @@ impl WriteXdr for LedgerCloseMeta { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ErrorCode { Misc = 0, @@ -22417,10 +21865,7 @@ impl WriteXdr for ErrorCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SError { pub code: ErrorCode, pub msg: StringM<100>, @@ -22465,10 +21910,7 @@ impl WriteXdr for SError { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SendMore { pub num_messages: u32, } @@ -22511,10 +21953,7 @@ impl WriteXdr for SendMore { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SendMoreExtended { pub num_messages: u32, pub num_bytes: u32, @@ -22561,10 +22000,7 @@ impl WriteXdr for SendMoreExtended { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct AuthCert { pub pubkey: Curve25519Public, pub expiration: u64, @@ -22620,10 +22056,7 @@ impl WriteXdr for AuthCert { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct Hello { pub ledger_version: u32, pub overlay_version: u32, @@ -22697,10 +22130,7 @@ pub const AUTH_MSG_FLAG_FLOW_CONTROL_BYTES_REQUESTED: u64 = 200; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct Auth { pub flags: i32, } @@ -22744,10 +22174,7 @@ impl WriteXdr for Auth { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum IpAddrType { IPv4 = 0, @@ -22855,10 +22282,7 @@ impl WriteXdr for IpAddrType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum PeerAddressIp { IPv4([u8; 4]), @@ -22971,10 +22395,7 @@ impl WriteXdr for PeerAddressIp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct PeerAddress { pub ip: PeerAddressIp, pub port: u32, @@ -23052,10 +22473,7 @@ impl WriteXdr for PeerAddress { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum MessageType { ErrorMsg = 0, @@ -23256,10 +22674,7 @@ impl WriteXdr for MessageType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct DontHave { pub type_: MessageType, pub req_hash: Uint256, @@ -23305,10 +22720,7 @@ impl WriteXdr for DontHave { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum SurveyMessageCommandType { SurveyTopology = 0, @@ -23411,10 +22823,7 @@ impl WriteXdr for SurveyMessageCommandType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum SurveyMessageResponseType { V0 = 0, @@ -23523,10 +22932,7 @@ impl WriteXdr for SurveyMessageResponseType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SurveyRequestMessage { pub surveyor_peer_id: NodeId, pub surveyed_peer_id: NodeId, @@ -23581,10 +22987,7 @@ impl WriteXdr for SurveyRequestMessage { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SignedSurveyRequestMessage { pub request_signature: Signature, pub request: SurveyRequestMessage, @@ -23627,10 +23030,7 @@ impl WriteXdr for SignedSurveyRequestMessage { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct EncryptedBody(pub BytesM<64000>); @@ -23742,10 +23142,7 @@ impl AsRef<[u8]> for EncryptedBody { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SurveyResponseMessage { pub surveyor_peer_id: NodeId, pub surveyed_peer_id: NodeId, @@ -23800,10 +23197,7 @@ impl WriteXdr for SurveyResponseMessage { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SignedSurveyResponseMessage { pub response_signature: Signature, pub response: SurveyResponseMessage, @@ -23864,10 +23258,7 @@ impl WriteXdr for SignedSurveyResponseMessage { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct PeerStats { pub id: NodeId, pub version_str: StringM<100>, @@ -23949,10 +23340,7 @@ impl WriteXdr for PeerStats { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct PeerStatList(pub VecM); @@ -24064,10 +23452,7 @@ impl AsRef<[PeerStats]> for PeerStatList { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TopologyResponseBodyV0 { pub inbound_peers: PeerStatList, pub outbound_peers: PeerStatList, @@ -24125,10 +23510,7 @@ impl WriteXdr for TopologyResponseBodyV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TopologyResponseBodyV1 { pub inbound_peers: PeerStatList, pub outbound_peers: PeerStatList, @@ -24189,10 +23571,7 @@ impl WriteXdr for TopologyResponseBodyV1 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum SurveyResponseBody { V0(TopologyResponseBodyV0), @@ -24304,10 +23683,7 @@ pub const TX_ADVERT_VECTOR_MAX_SIZE: u64 = 1000; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct TxAdvertVector(pub VecM); @@ -24415,10 +23791,7 @@ impl AsRef<[Hash]> for TxAdvertVector { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct FloodAdvert { pub tx_hashes: TxAdvertVector, } @@ -24466,10 +23839,7 @@ pub const TX_DEMAND_VECTOR_MAX_SIZE: u64 = 1000; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct TxDemandVector(pub VecM); @@ -24577,10 +23947,7 @@ impl AsRef<[Hash]> for TxDemandVector { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct FloodDemand { pub tx_hashes: TxDemandVector, } @@ -24669,10 +24036,7 @@ impl WriteXdr for FloodDemand { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum StellarMessage { ErrorMsg(SError), @@ -24918,10 +24282,7 @@ impl WriteXdr for StellarMessage { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct AuthenticatedMessageV0 { pub sequence: u64, pub message: StellarMessage, @@ -24976,10 +24337,7 @@ impl WriteXdr for AuthenticatedMessageV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum AuthenticatedMessage { V0(AuthenticatedMessageV0), @@ -25088,10 +24446,7 @@ pub const MAX_OPS_PER_TX: u64 = 100; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LiquidityPoolParameters { LiquidityPoolConstantProduct(LiquidityPoolConstantProductParameters), @@ -25196,10 +24551,7 @@ impl WriteXdr for LiquidityPoolParameters { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct MuxedAccountMed25519 { pub id: u64, pub ed25519: Uint256, @@ -25251,10 +24603,7 @@ impl WriteXdr for MuxedAccountMed25519 { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum MuxedAccount { Ed25519(Uint256), @@ -25361,10 +24710,7 @@ impl WriteXdr for MuxedAccount { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct DecoratedSignature { pub hint: SignatureHint, pub signature: Signature, @@ -25436,10 +24782,7 @@ impl WriteXdr for DecoratedSignature { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum OperationType { CreateAccount = 0, @@ -25675,10 +25018,7 @@ impl WriteXdr for OperationType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct CreateAccountOp { pub destination: AccountId, pub starting_balance: i64, @@ -25725,10 +25065,7 @@ impl WriteXdr for CreateAccountOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct PaymentOp { pub destination: MuxedAccount, pub asset: Asset, @@ -25785,10 +25122,7 @@ impl WriteXdr for PaymentOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct PathPaymentStrictReceiveOp { pub send_asset: Asset, pub send_max: i64, @@ -25854,10 +25188,7 @@ impl WriteXdr for PathPaymentStrictReceiveOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct PathPaymentStrictSendOp { pub send_asset: Asset, pub send_amount: i64, @@ -25920,10 +25251,7 @@ impl WriteXdr for PathPaymentStrictSendOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ManageSellOfferOp { pub selling: Asset, pub buying: Asset, @@ -25984,10 +25312,7 @@ impl WriteXdr for ManageSellOfferOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ManageBuyOfferOp { pub selling: Asset, pub buying: Asset, @@ -26044,10 +25369,7 @@ impl WriteXdr for ManageBuyOfferOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct CreatePassiveSellOfferOp { pub selling: Asset, pub buying: Asset, @@ -26113,10 +25435,7 @@ impl WriteXdr for CreatePassiveSellOfferOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SetOptionsOp { pub inflation_dest: Option, pub clear_flags: Option, @@ -26195,10 +25514,7 @@ impl WriteXdr for SetOptionsOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ChangeTrustAsset { Native, @@ -26321,10 +25637,7 @@ impl WriteXdr for ChangeTrustAsset { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ChangeTrustOp { pub line: ChangeTrustAsset, pub limit: i64, @@ -26373,10 +25686,7 @@ impl WriteXdr for ChangeTrustOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct AllowTrustOp { pub trustor: AccountId, pub asset: AssetCode, @@ -26425,10 +25735,7 @@ impl WriteXdr for AllowTrustOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ManageDataOp { pub data_name: String64, pub data_value: Option, @@ -26473,10 +25780,7 @@ impl WriteXdr for ManageDataOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct BumpSequenceOp { pub bump_to: SequenceNumber, } @@ -26520,10 +25824,7 @@ impl WriteXdr for BumpSequenceOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct CreateClaimableBalanceOp { pub asset: Asset, pub amount: i64, @@ -26571,10 +25872,7 @@ impl WriteXdr for CreateClaimableBalanceOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ClaimClaimableBalanceOp { pub balance_id: ClaimableBalanceId, } @@ -26616,10 +25914,7 @@ impl WriteXdr for ClaimClaimableBalanceOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct BeginSponsoringFutureReservesOp { pub sponsored_id: AccountId, } @@ -26663,10 +25958,7 @@ impl WriteXdr for BeginSponsoringFutureReservesOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum RevokeSponsorshipType { LedgerEntry = 0, @@ -26774,10 +26066,7 @@ impl WriteXdr for RevokeSponsorshipType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct RevokeSponsorshipOpSigner { pub account_id: AccountId, pub signer_key: SignerKey, @@ -26830,10 +26119,7 @@ impl WriteXdr for RevokeSponsorshipOpSigner { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum RevokeSponsorshipOp { LedgerEntry(LedgerKey), @@ -26944,10 +26230,7 @@ impl WriteXdr for RevokeSponsorshipOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ClawbackOp { pub asset: Asset, pub from: MuxedAccount, @@ -26995,10 +26278,7 @@ impl WriteXdr for ClawbackOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ClawbackClaimableBalanceOp { pub balance_id: ClaimableBalanceId, } @@ -27044,10 +26324,7 @@ impl WriteXdr for ClawbackClaimableBalanceOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SetTrustLineFlagsOp { pub trustor: AccountId, pub asset: Asset, @@ -27110,10 +26387,7 @@ pub const LIQUIDITY_POOL_FEE_V18: u64 = 30; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LiquidityPoolDepositOp { pub liquidity_pool_id: PoolId, pub max_amount_a: i64, @@ -27170,10 +26444,7 @@ impl WriteXdr for LiquidityPoolDepositOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LiquidityPoolWithdrawOp { pub liquidity_pool_id: PoolId, pub amount: i64, @@ -27227,10 +26498,7 @@ impl WriteXdr for LiquidityPoolWithdrawOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum HostFunctionType { InvokeContract = 0, @@ -27344,10 +26612,7 @@ impl WriteXdr for HostFunctionType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ContractIdPreimageType { Address = 0, @@ -27455,10 +26720,7 @@ impl WriteXdr for ContractIdPreimageType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ContractIdPreimageFromAddress { pub address: ScAddress, pub salt: Uint256, @@ -27511,10 +26773,7 @@ impl WriteXdr for ContractIdPreimageFromAddress { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ContractIdPreimage { Address(ContractIdPreimageFromAddress), @@ -27624,10 +26883,7 @@ impl WriteXdr for ContractIdPreimage { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct CreateContractArgs { pub contract_id_preimage: ContractIdPreimage, pub executable: ContractExecutable, @@ -27673,10 +26929,7 @@ impl WriteXdr for CreateContractArgs { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct InvokeContractArgs { pub contract_address: ScAddress, pub function_name: ScSymbol, @@ -27730,10 +26983,7 @@ impl WriteXdr for InvokeContractArgs { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum HostFunction { InvokeContract(InvokeContractArgs), @@ -27855,10 +27105,7 @@ impl WriteXdr for HostFunction { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum SorobanAuthorizedFunctionType { ContractFn = 0, @@ -27969,10 +27216,7 @@ impl WriteXdr for SorobanAuthorizedFunctionType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum SorobanAuthorizedFunction { ContractFn(InvokeContractArgs), @@ -28085,10 +27329,7 @@ impl WriteXdr for SorobanAuthorizedFunction { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SorobanAuthorizedInvocation { pub function: SorobanAuthorizedFunction, pub sub_invocations: VecM, @@ -28136,10 +27377,7 @@ impl WriteXdr for SorobanAuthorizedInvocation { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SorobanAddressCredentials { pub address: ScAddress, pub nonce: i64, @@ -28192,10 +27430,7 @@ impl WriteXdr for SorobanAddressCredentials { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum SorobanCredentialsType { SourceAccount = 0, @@ -28306,10 +27541,7 @@ impl WriteXdr for SorobanCredentialsType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum SorobanCredentials { SourceAccount, @@ -28419,10 +27651,7 @@ impl WriteXdr for SorobanCredentials { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SorobanAuthorizationEntry { pub credentials: SorobanCredentials, pub root_invocation: SorobanAuthorizedInvocation, @@ -28470,10 +27699,7 @@ impl WriteXdr for SorobanAuthorizationEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct InvokeHostFunctionOp { pub host_function: HostFunction, pub auth: VecM, @@ -28519,10 +27745,7 @@ impl WriteXdr for InvokeHostFunctionOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ExtendFootprintTtlOp { pub ext: ExtensionPoint, pub extend_to: u32, @@ -28567,10 +27790,7 @@ impl WriteXdr for ExtendFootprintTtlOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct RestoreFootprintOp { pub ext: ExtensionPoint, } @@ -28666,10 +27886,7 @@ impl WriteXdr for RestoreFootprintOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum OperationBody { CreateAccount(CreateAccountOp), @@ -29050,10 +28267,7 @@ impl WriteXdr for OperationBody { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct Operation { pub source_account: Option, pub body: OperationBody, @@ -29100,10 +28314,7 @@ impl WriteXdr for Operation { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct HashIdPreimageOperationId { pub source_account: AccountId, pub seq_num: SequenceNumber, @@ -29155,10 +28366,7 @@ impl WriteXdr for HashIdPreimageOperationId { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct HashIdPreimageRevokeId { pub source_account: AccountId, pub seq_num: SequenceNumber, @@ -29213,10 +28421,7 @@ impl WriteXdr for HashIdPreimageRevokeId { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct HashIdPreimageContractId { pub network_id: Hash, pub contract_id_preimage: ContractIdPreimage, @@ -29264,10 +28469,7 @@ impl WriteXdr for HashIdPreimageContractId { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct HashIdPreimageSorobanAuthorization { pub network_id: Hash, pub nonce: i64, @@ -29348,10 +28550,7 @@ impl WriteXdr for HashIdPreimageSorobanAuthorization { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum HashIdPreimage { OpId(HashIdPreimageOperationId), @@ -29486,10 +28685,7 @@ impl WriteXdr for HashIdPreimage { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum MemoType { None = 0, @@ -29618,10 +28814,7 @@ impl WriteXdr for MemoType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum Memo { None, @@ -29747,10 +28940,7 @@ impl WriteXdr for Memo { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TimeBounds { pub min_time: TimePoint, pub max_time: TimePoint, @@ -29796,10 +28986,7 @@ impl WriteXdr for TimeBounds { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerBounds { pub min_ledger: u32, pub max_ledger: u32, @@ -29872,10 +29059,7 @@ impl WriteXdr for LedgerBounds { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct PreconditionsV2 { pub time_bounds: Option, pub ledger_bounds: Option, @@ -29935,10 +29119,7 @@ impl WriteXdr for PreconditionsV2 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum PreconditionType { None = 0, @@ -30055,10 +29236,7 @@ impl WriteXdr for PreconditionType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum Preconditions { None, @@ -30172,10 +29350,7 @@ impl WriteXdr for Preconditions { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerFootprint { pub read_only: VecM, pub read_write: VecM, @@ -30228,10 +29403,7 @@ impl WriteXdr for LedgerFootprint { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SorobanResources { pub footprint: LedgerFootprint, pub instructions: u32, @@ -30293,10 +29465,7 @@ impl WriteXdr for SorobanResources { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SorobanTransactionData { pub ext: ExtensionPoint, pub resources: SorobanResources, @@ -30346,10 +29515,7 @@ impl WriteXdr for SorobanTransactionData { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TransactionV0Ext { V0, @@ -30459,10 +29625,7 @@ impl WriteXdr for TransactionV0Ext { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionV0 { pub source_account_ed25519: Uint256, pub fee: u32, @@ -30525,10 +29688,7 @@ impl WriteXdr for TransactionV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionV0Envelope { pub tx: TransactionV0, pub signatures: VecM, @@ -30577,10 +29737,7 @@ impl WriteXdr for TransactionV0Envelope { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TransactionExt { V0, @@ -30708,10 +29865,7 @@ impl WriteXdr for TransactionExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct Transaction { pub source_account: MuxedAccount, pub fee: u32, @@ -30774,10 +29928,7 @@ impl WriteXdr for Transaction { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionV1Envelope { pub tx: Transaction, pub signatures: VecM, @@ -30824,10 +29975,7 @@ impl WriteXdr for TransactionV1Envelope { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum FeeBumpTransactionInnerTx { Tx(TransactionV1Envelope), @@ -30928,10 +30076,7 @@ impl WriteXdr for FeeBumpTransactionInnerTx { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum FeeBumpTransactionExt { V0, @@ -31043,10 +30188,7 @@ impl WriteXdr for FeeBumpTransactionExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct FeeBumpTransaction { pub fee_source: MuxedAccount, pub fee: i64, @@ -31100,10 +30242,7 @@ impl WriteXdr for FeeBumpTransaction { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct FeeBumpTransactionEnvelope { pub tx: FeeBumpTransaction, pub signatures: VecM, @@ -31154,10 +30293,7 @@ impl WriteXdr for FeeBumpTransactionEnvelope { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TransactionEnvelope { TxV0(TransactionV0Envelope), @@ -31277,10 +30413,7 @@ impl WriteXdr for TransactionEnvelope { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TransactionSignaturePayloadTaggedTransaction { Tx(Transaction), @@ -31393,10 +30526,7 @@ impl WriteXdr for TransactionSignaturePayloadTaggedTransaction { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionSignaturePayload { pub network_id: Hash, pub tagged_transaction: TransactionSignaturePayloadTaggedTransaction, @@ -31444,10 +30574,7 @@ impl WriteXdr for TransactionSignaturePayload { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ClaimAtomType { V0 = 0, @@ -31568,10 +30695,7 @@ impl WriteXdr for ClaimAtomType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ClaimOfferAtomV0 { pub seller_ed25519: Uint256, pub offer_id: i64, @@ -31638,10 +30762,7 @@ impl WriteXdr for ClaimOfferAtomV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ClaimOfferAtom { pub seller_id: AccountId, pub offer_id: i64, @@ -31706,10 +30827,7 @@ impl WriteXdr for ClaimOfferAtom { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ClaimLiquidityAtom { pub liquidity_pool_id: PoolId, pub asset_sold: Asset, @@ -31769,10 +30887,7 @@ impl WriteXdr for ClaimLiquidityAtom { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ClaimAtom { V0(ClaimOfferAtomV0), @@ -31896,10 +31011,7 @@ impl WriteXdr for ClaimAtom { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum CreateAccountResultCode { Success = 0, @@ -32031,10 +31143,7 @@ impl WriteXdr for CreateAccountResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum CreateAccountResult { Success, @@ -32178,10 +31287,7 @@ impl WriteXdr for CreateAccountResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum PaymentResultCode { Success = 0, @@ -32343,10 +31449,7 @@ impl WriteXdr for PaymentResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum PaymentResult { Success, @@ -32537,10 +31640,7 @@ impl WriteXdr for PaymentResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum PathPaymentStrictReceiveResultCode { Success = 0, @@ -32707,10 +31807,7 @@ impl WriteXdr for PathPaymentStrictReceiveResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SimplePaymentResult { pub destination: AccountId, pub asset: Asset, @@ -32759,10 +31856,7 @@ impl WriteXdr for SimplePaymentResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct PathPaymentStrictReceiveResultSuccess { pub offers: VecM, pub last: SimplePaymentResult, @@ -32829,10 +31923,7 @@ impl WriteXdr for PathPaymentStrictReceiveResultSuccess { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum PathPaymentStrictReceiveResult { Success(PathPaymentStrictReceiveResultSuccess), @@ -33046,10 +32137,7 @@ impl WriteXdr for PathPaymentStrictReceiveResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum PathPaymentStrictSendResultCode { Success = 0, @@ -33215,10 +32303,7 @@ impl WriteXdr for PathPaymentStrictSendResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct PathPaymentStrictSendResultSuccess { pub offers: VecM, pub last: SimplePaymentResult, @@ -33284,10 +32369,7 @@ impl WriteXdr for PathPaymentStrictSendResultSuccess { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum PathPaymentStrictSendResult { Success(PathPaymentStrictSendResultSuccess), @@ -33500,10 +32582,7 @@ impl WriteXdr for PathPaymentStrictSendResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ManageSellOfferResultCode { Success = 0, @@ -33671,10 +32750,7 @@ impl WriteXdr for ManageSellOfferResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ManageOfferEffect { Created = 0, @@ -33790,10 +32866,7 @@ impl WriteXdr for ManageOfferEffect { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ManageOfferSuccessResultOffer { Created(OfferEntry), @@ -33917,10 +32990,7 @@ impl WriteXdr for ManageOfferSuccessResultOffer { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ManageOfferSuccessResult { pub offers_claimed: VecM, pub offer: ManageOfferSuccessResultOffer, @@ -33980,10 +33050,7 @@ impl WriteXdr for ManageOfferSuccessResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ManageSellOfferResult { Success(ManageOfferSuccessResult), @@ -34193,10 +33260,7 @@ impl WriteXdr for ManageSellOfferResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ManageBuyOfferResultCode { Success = 0, @@ -34376,10 +33440,7 @@ impl WriteXdr for ManageBuyOfferResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ManageBuyOfferResult { Success(ManageOfferSuccessResult), @@ -34582,10 +33643,7 @@ impl WriteXdr for ManageBuyOfferResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum SetOptionsResultCode { Success = 0, @@ -34753,10 +33811,7 @@ impl WriteXdr for SetOptionsResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum SetOptionsResult { Success, @@ -34944,10 +33999,7 @@ impl WriteXdr for SetOptionsResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ChangeTrustResultCode { Success = 0, @@ -35103,10 +34155,7 @@ impl WriteXdr for ChangeTrustResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ChangeTrustResult { Success, @@ -35278,10 +34327,7 @@ impl WriteXdr for ChangeTrustResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum AllowTrustResultCode { Success = 0, @@ -35425,10 +34471,7 @@ impl WriteXdr for AllowTrustResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum AllowTrustResult { Success, @@ -35584,10 +34627,7 @@ impl WriteXdr for AllowTrustResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum AccountMergeResultCode { Success = 0, @@ -35737,10 +34777,7 @@ impl WriteXdr for AccountMergeResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum AccountMergeResult { Success(i64), @@ -35896,10 +34933,7 @@ impl WriteXdr for AccountMergeResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum InflationResultCode { Success = 0, @@ -36005,10 +35039,7 @@ impl WriteXdr for InflationResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct InflationPayout { pub destination: AccountId, pub amount: i64, @@ -36057,10 +35088,7 @@ impl WriteXdr for InflationPayout { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum InflationResult { Success(VecM), @@ -36176,10 +35204,7 @@ impl WriteXdr for InflationResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ManageDataResultCode { Success = 0, @@ -36311,10 +35336,7 @@ impl WriteXdr for ManageDataResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ManageDataResult { Success, @@ -36449,10 +35471,7 @@ impl WriteXdr for ManageDataResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum BumpSequenceResultCode { Success = 0, @@ -36563,10 +35582,7 @@ impl WriteXdr for BumpSequenceResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum BumpSequenceResult { Success, @@ -36679,10 +35695,7 @@ impl WriteXdr for BumpSequenceResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum CreateClaimableBalanceResultCode { Success = 0, @@ -36821,10 +35834,7 @@ impl WriteXdr for CreateClaimableBalanceResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum CreateClaimableBalanceResult { Success(ClaimableBalanceId), @@ -36971,10 +35981,7 @@ impl WriteXdr for CreateClaimableBalanceResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ClaimClaimableBalanceResultCode { Success = 0, @@ -37112,10 +36119,7 @@ impl WriteXdr for ClaimClaimableBalanceResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ClaimClaimableBalanceResult { Success, @@ -37261,10 +36265,7 @@ impl WriteXdr for ClaimClaimableBalanceResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum BeginSponsoringFutureReservesResultCode { Success = 0, @@ -37387,10 +36388,7 @@ impl WriteXdr for BeginSponsoringFutureReservesResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum BeginSponsoringFutureReservesResult { Success, @@ -37516,10 +36514,7 @@ impl WriteXdr for BeginSponsoringFutureReservesResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum EndSponsoringFutureReservesResultCode { Success = 0, @@ -37631,10 +36626,7 @@ impl WriteXdr for EndSponsoringFutureReservesResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum EndSponsoringFutureReservesResult { Success, @@ -37751,10 +36743,7 @@ impl WriteXdr for EndSponsoringFutureReservesResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum RevokeSponsorshipResultCode { Success = 0, @@ -37892,10 +36881,7 @@ impl WriteXdr for RevokeSponsorshipResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum RevokeSponsorshipResult { Success, @@ -38042,10 +37028,7 @@ impl WriteXdr for RevokeSponsorshipResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ClawbackResultCode { Success = 0, @@ -38177,10 +37160,7 @@ impl WriteXdr for ClawbackResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ClawbackResult { Success, @@ -38318,10 +37298,7 @@ impl WriteXdr for ClawbackResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ClawbackClaimableBalanceResultCode { Success = 0, @@ -38444,10 +37421,7 @@ impl WriteXdr for ClawbackClaimableBalanceResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ClawbackClaimableBalanceResult { Success, @@ -38578,10 +37552,7 @@ impl WriteXdr for ClawbackClaimableBalanceResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum SetTrustLineFlagsResultCode { Success = 0, @@ -38719,10 +37690,7 @@ impl WriteXdr for SetTrustLineFlagsResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum SetTrustLineFlagsResult { Success, @@ -38876,10 +37844,7 @@ impl WriteXdr for SetTrustLineFlagsResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum LiquidityPoolDepositResultCode { Success = 0, @@ -39029,10 +37994,7 @@ impl WriteXdr for LiquidityPoolDepositResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LiquidityPoolDepositResult { Success, @@ -39197,10 +38159,7 @@ impl WriteXdr for LiquidityPoolDepositResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum LiquidityPoolWithdrawResultCode { Success = 0, @@ -39338,10 +38297,7 @@ impl WriteXdr for LiquidityPoolWithdrawResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LiquidityPoolWithdrawResult { Success, @@ -39489,10 +38445,7 @@ impl WriteXdr for LiquidityPoolWithdrawResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum InvokeHostFunctionResultCode { Success = 0, @@ -39630,10 +38583,7 @@ impl WriteXdr for InvokeHostFunctionResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum InvokeHostFunctionResult { Success(Hash), @@ -39783,10 +38733,7 @@ impl WriteXdr for InvokeHostFunctionResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ExtendFootprintTtlResultCode { Success = 0, @@ -39912,10 +38859,7 @@ impl WriteXdr for ExtendFootprintTtlResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ExtendFootprintTtlResult { Success, @@ -40051,10 +38995,7 @@ impl WriteXdr for ExtendFootprintTtlResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum RestoreFootprintResultCode { Success = 0, @@ -40180,10 +39121,7 @@ impl WriteXdr for RestoreFootprintResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum RestoreFootprintResult { Success, @@ -40320,10 +39258,7 @@ impl WriteXdr for RestoreFootprintResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum OperationResultCode { OpInner = 0, @@ -40512,10 +39447,7 @@ impl WriteXdr for OperationResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum OperationResultTr { CreateAccount(CreateAccountResult), @@ -40904,10 +39836,7 @@ impl WriteXdr for OperationResultTr { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum OperationResult { OpInner(OperationResultTr), @@ -41075,10 +40004,7 @@ impl WriteXdr for OperationResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum TransactionResultCode { TxFeeBumpInnerSuccess = 1, @@ -41294,10 +40220,7 @@ impl WriteXdr for TransactionResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum InnerTransactionResultResult { TxSuccess(VecM), @@ -41518,10 +40441,7 @@ impl WriteXdr for InnerTransactionResultResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum InnerTransactionResultExt { V0, @@ -41655,10 +40575,7 @@ impl WriteXdr for InnerTransactionResultExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct InnerTransactionResult { pub fee_charged: i64, pub result: InnerTransactionResultResult, @@ -41707,10 +40624,7 @@ impl WriteXdr for InnerTransactionResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct InnerTransactionResultPair { pub transaction_hash: Hash, pub result: InnerTransactionResult, @@ -41778,10 +40692,7 @@ impl WriteXdr for InnerTransactionResultPair { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TransactionResultResult { TxFeeBumpInnerSuccess(InnerTransactionResultPair), @@ -42020,10 +40931,7 @@ impl WriteXdr for TransactionResultResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TransactionResultExt { V0, @@ -42158,10 +41066,7 @@ impl WriteXdr for TransactionResultExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionResult { pub fee_charged: i64, pub result: TransactionResultResult, @@ -42205,10 +41110,6 @@ impl WriteXdr for TransactionResult { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] pub struct Hash(pub [u8; 32]); impl core::fmt::Debug for Hash { @@ -42239,6 +41140,37 @@ impl core::str::FromStr for Hash { hex::decode(s).map_err(|_| Error::InvalidHex)?.try_into() } } +#[cfg(feature = "schemars")] +impl schemars::JsonSchema for Hash { + fn schema_name() -> String { + "Hash".to_string() + } + + fn is_referenceable() -> bool { + false + } + + fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { + let schema_ = String::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema_ { + schema.extensions.insert( + "contentEncoding".to_owned(), + serde_json::Value::String("hex".to_string()), + ); + schema.extensions.insert( + "contentMediaType".to_owned(), + serde_json::Value::String("application/binary".to_string()), + ); + mut_string(schema.into(), |string| schemars::schema::StringValidation { + max_length: Some(32 * 2), + min_length: Some(32 * 2), + ..string + }) + } else { + schema_ + } + } +} impl From for [u8; 32] { #[must_use] fn from(x: Hash) -> Self { @@ -42327,10 +41259,6 @@ impl AsRef<[u8]> for Hash { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] pub struct Uint256(pub [u8; 32]); impl core::fmt::Debug for Uint256 { @@ -42361,6 +41289,37 @@ impl core::str::FromStr for Uint256 { hex::decode(s).map_err(|_| Error::InvalidHex)?.try_into() } } +#[cfg(feature = "schemars")] +impl schemars::JsonSchema for Uint256 { + fn schema_name() -> String { + "Uint256".to_string() + } + + fn is_referenceable() -> bool { + false + } + + fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { + let schema_ = String::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema_ { + schema.extensions.insert( + "contentEncoding".to_owned(), + serde_json::Value::String("hex".to_string()), + ); + schema.extensions.insert( + "contentMediaType".to_owned(), + serde_json::Value::String("application/binary".to_string()), + ); + mut_string(schema.into(), |string| schemars::schema::StringValidation { + max_length: Some(32 * 2), + min_length: Some(32 * 2), + ..string + }) + } else { + schema_ + } + } +} impl From for [u8; 32] { #[must_use] fn from(x: Uint256) -> Self { @@ -42482,10 +41441,7 @@ pub type Int64 = i64; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct TimePoint(pub u64); @@ -42541,10 +41497,7 @@ impl WriteXdr for TimePoint { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct Duration(pub u64); @@ -42605,10 +41558,7 @@ impl WriteXdr for Duration { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ExtensionPoint { V0, @@ -42714,10 +41664,7 @@ impl WriteXdr for ExtensionPoint { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum CryptoKeyType { Ed25519 = 0, @@ -42843,10 +41790,7 @@ impl WriteXdr for CryptoKeyType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum PublicKeyType { PublicKeyTypeEd25519 = 0, @@ -42951,10 +41895,7 @@ impl WriteXdr for PublicKeyType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum SignerKeyType { Ed25519 = 0, @@ -43071,10 +42012,7 @@ impl WriteXdr for SignerKeyType { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum PublicKey { PublicKeyTypeEd25519(Uint256), @@ -43177,10 +42115,7 @@ impl WriteXdr for PublicKey { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SignerKeyEd25519SignedPayload { pub ed25519: Uint256, pub payload: BytesM<64>, @@ -43240,10 +42175,7 @@ impl WriteXdr for SignerKeyEd25519SignedPayload { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum SignerKey { Ed25519(Uint256), @@ -43363,10 +42295,7 @@ impl WriteXdr for SignerKey { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct Signature(pub BytesM<64>); @@ -43470,10 +42399,6 @@ impl AsRef<[u8]> for Signature { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] pub struct SignatureHint(pub [u8; 4]); impl core::fmt::Debug for SignatureHint { @@ -43504,6 +42429,37 @@ impl core::str::FromStr for SignatureHint { hex::decode(s).map_err(|_| Error::InvalidHex)?.try_into() } } +#[cfg(feature = "schemars")] +impl schemars::JsonSchema for SignatureHint { + fn schema_name() -> String { + "SignatureHint".to_string() + } + + fn is_referenceable() -> bool { + false + } + + fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { + let schema_ = String::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema_ { + schema.extensions.insert( + "contentEncoding".to_owned(), + serde_json::Value::String("hex".to_string()), + ); + schema.extensions.insert( + "contentMediaType".to_owned(), + serde_json::Value::String("application/binary".to_string()), + ); + mut_string(schema.into(), |string| schemars::schema::StringValidation { + max_length: Some(4 * 2), + min_length: Some(4 * 2), + ..string + }) + } else { + schema_ + } + } +} impl From for [u8; 4] { #[must_use] fn from(x: SignatureHint) -> Self { @@ -43592,10 +42548,7 @@ impl AsRef<[u8]> for SignatureHint { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct NodeId(pub PublicKey); @@ -43650,10 +42603,7 @@ impl WriteXdr for NodeId { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct AccountId(pub PublicKey); @@ -43712,10 +42662,7 @@ impl WriteXdr for AccountId { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct Curve25519Secret { pub key: [u8; 32], } @@ -43757,10 +42704,7 @@ impl WriteXdr for Curve25519Secret { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct Curve25519Public { pub key: [u8; 32], } @@ -43802,10 +42746,7 @@ impl WriteXdr for Curve25519Public { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct HmacSha256Key { pub key: [u8; 32], } @@ -43847,10 +42788,7 @@ impl WriteXdr for HmacSha256Key { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct HmacSha256Mac { pub mac: [u8; 32], } @@ -43882,10 +42820,7 @@ impl WriteXdr for HmacSha256Mac { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub enum TypeVariant { Value, ScpBallot, @@ -46049,10 +44984,7 @@ impl core::str::FromStr for TypeVariant { serde(rename_all = "snake_case"), serde(untagged) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub enum Type { Value(Box), ScpBallot(Box), diff --git a/src/next/generated.rs b/src/next/generated.rs index cb3fca93..cd4325c0 100644 --- a/src/next/generated.rs +++ b/src/next/generated.rs @@ -956,7 +956,7 @@ impl Default for VecM { } } -#[cfg(all(feature = "schemars", feature = "serde", feature = "alloc"))] +#[cfg(feature = "schemars")] impl schemars::JsonSchema for VecM { fn schema_name() -> String { format!("VecM<{}, {}>", T::schema_name(), MAX) @@ -1411,10 +1411,10 @@ impl Deref for BytesM { } } -#[cfg(all(feature = "schemars", feature = "serde", feature = "alloc"))] +#[cfg(feature = "schemars")] impl schemars::JsonSchema for BytesM { fn schema_name() -> String { - format!("BytesM<{}>", MAX) + format!("BytesM<{MAX}>") } fn is_referenceable() -> bool { @@ -1433,8 +1433,8 @@ impl schemars::JsonSchema for BytesM { serde_json::Value::String("application/binary".to_string()), ); mut_string(schema.into(), |string| schemars::schema::StringValidation { - max_length: Some(((MAX.checked_mul(4).unwrap_or(u32::MAX) / 3) + 3) & !3), - min_length: Some(((MAX.checked_mul(4).unwrap_or(u32::MAX) / 3) + 3) & !3), + max_length: Some(MAX * 2), + min_length: None, ..string }) } else { @@ -1831,10 +1831,10 @@ impl Default for StringM { } } -#[cfg(all(feature = "schemars", feature = "serde", feature = "alloc"))] +#[cfg(feature = "schemars")] impl schemars::JsonSchema for StringM { fn schema_name() -> String { - format!("StringM<{}>", MAX) + format!("StringM<{MAX}>") } fn is_referenceable() -> bool { @@ -2167,7 +2167,7 @@ pub struct Frame(pub T) where T: ReadXdr; -#[cfg(all(feature = "schemars", feature = "serde", feature = "alloc"))] +#[cfg(feature = "schemars")] impl schemars::JsonSchema for Frame { fn schema_name() -> String { format!("Frame<{}>", T::schema_name()) @@ -2206,7 +2206,7 @@ where } } -#[cfg(all(feature = "schemars", feature = "serde", feature = "alloc"))] +#[cfg(feature = "schemars")] fn mut_array( schema: schemars::schema::Schema, f: impl FnOnce(schemars::schema::ArrayValidation) -> schemars::schema::ArrayValidation, @@ -2221,7 +2221,7 @@ fn mut_array( } } -#[cfg(all(feature = "schemars", feature = "serde", feature = "alloc"))] +#[cfg(feature = "schemars")] fn mut_string( schema: schemars::schema::Schema, f: impl FnOnce(schemars::schema::StringValidation) -> schemars::schema::StringValidation, @@ -2876,10 +2876,7 @@ mod test { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct Value(pub BytesM); @@ -2988,10 +2985,7 @@ impl AsRef<[u8]> for Value { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScpBallot { pub counter: u32, pub value: Value, @@ -3040,10 +3034,7 @@ impl WriteXdr for ScpBallot { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ScpStatementType { Prepare = 0, @@ -3160,10 +3151,7 @@ impl WriteXdr for ScpStatementType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScpNomination { pub quorum_set_hash: Hash, pub votes: VecM, @@ -3216,10 +3204,7 @@ impl WriteXdr for ScpNomination { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScpStatementPrepare { pub quorum_set_hash: Hash, pub ballot: ScpBallot, @@ -3280,10 +3265,7 @@ impl WriteXdr for ScpStatementPrepare { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScpStatementConfirm { pub ballot: ScpBallot, pub n_prepared: u32, @@ -3339,10 +3321,7 @@ impl WriteXdr for ScpStatementConfirm { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScpStatementExternalize { pub commit: ScpBallot, pub n_h: u32, @@ -3418,10 +3397,7 @@ impl WriteXdr for ScpStatementExternalize { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ScpStatementPledges { Prepare(ScpStatementPrepare), @@ -3576,10 +3552,7 @@ impl WriteXdr for ScpStatementPledges { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScpStatement { pub node_id: NodeId, pub slot_index: u64, @@ -3628,10 +3601,7 @@ impl WriteXdr for ScpStatement { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScpEnvelope { pub statement: ScpStatement, pub signature: Signature, @@ -3678,10 +3648,7 @@ impl WriteXdr for ScpEnvelope { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScpQuorumSet { pub threshold: u32, pub validators: VecM, @@ -3730,10 +3697,7 @@ impl WriteXdr for ScpQuorumSet { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ConfigSettingContractExecutionLanesV0 { pub ledger_max_tx_count: u32, } @@ -3784,10 +3748,7 @@ impl WriteXdr for ConfigSettingContractExecutionLanesV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ConfigSettingContractComputeV0 { pub ledger_max_instructions: i64, pub tx_max_instructions: i64, @@ -3869,10 +3830,7 @@ impl WriteXdr for ConfigSettingContractComputeV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ConfigSettingContractLedgerCostV0 { pub ledger_max_read_ledger_entries: u32, pub ledger_max_read_bytes: u32, @@ -3956,10 +3914,7 @@ impl WriteXdr for ConfigSettingContractLedgerCostV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ConfigSettingContractHistoricalDataV0 { pub fee_historical1_kb: i64, } @@ -4004,10 +3959,7 @@ impl WriteXdr for ConfigSettingContractHistoricalDataV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ConfigSettingContractEventsV0 { pub tx_max_contract_events_size_bytes: u32, pub fee_contract_events1_kb: i64, @@ -4058,10 +4010,7 @@ impl WriteXdr for ConfigSettingContractEventsV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ConfigSettingContractBandwidthV0 { pub ledger_max_txs_size_bytes: u32, pub tx_max_size_bytes: u32, @@ -4158,10 +4107,7 @@ impl WriteXdr for ConfigSettingContractBandwidthV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ContractCostType { WasmInsnExec = 0, @@ -4379,10 +4325,7 @@ impl WriteXdr for ContractCostType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ContractCostParamEntry { pub ext: ExtensionPoint, pub const_term: i64, @@ -4450,10 +4393,7 @@ impl WriteXdr for ContractCostParamEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct StateArchivalSettings { pub max_entry_ttl: u32, pub min_temporary_ttl: u32, @@ -4523,10 +4463,7 @@ impl WriteXdr for StateArchivalSettings { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct EvictionIterator { pub bucket_list_level: u32, pub is_curr_bucket: bool, @@ -4580,10 +4517,7 @@ pub const CONTRACT_COST_COUNT_LIMIT: u64 = 1024; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct ContractCostParams(pub VecM); @@ -4705,10 +4639,7 @@ impl AsRef<[ContractCostParamEntry]> for ContractCostParams { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ConfigSettingId { ContractMaxSizeBytes = 0, @@ -4906,10 +4837,7 @@ impl WriteXdr for ConfigSettingId { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ConfigSettingEntry { ContractMaxSizeBytes(u32), @@ -5136,10 +5064,7 @@ impl WriteXdr for ConfigSettingEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ScEnvMetaKind { ScEnvMetaKindInterfaceVersion = 0, @@ -5242,10 +5167,7 @@ impl WriteXdr for ScEnvMetaKind { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ScEnvMetaEntry { ScEnvMetaKindInterfaceVersion(u64), @@ -5347,10 +5269,7 @@ impl WriteXdr for ScEnvMetaEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScMetaV0 { pub key: StringM, pub val: StringM, @@ -5396,10 +5315,7 @@ impl WriteXdr for ScMetaV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ScMetaKind { ScMetaV0 = 0, @@ -5502,10 +5418,7 @@ impl WriteXdr for ScMetaKind { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ScMetaEntry { ScMetaV0(ScMetaV0), @@ -5643,10 +5556,7 @@ pub const SC_SPEC_DOC_LIMIT: u64 = 1024; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ScSpecType { Val = 0, @@ -5871,10 +5781,7 @@ impl WriteXdr for ScSpecType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecTypeOption { pub value_type: Box, } @@ -5917,10 +5824,7 @@ impl WriteXdr for ScSpecTypeOption { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecTypeResult { pub ok_type: Box, pub error_type: Box, @@ -5965,10 +5869,7 @@ impl WriteXdr for ScSpecTypeResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecTypeVec { pub element_type: Box, } @@ -6011,10 +5912,7 @@ impl WriteXdr for ScSpecTypeVec { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecTypeMap { pub key_type: Box, pub value_type: Box, @@ -6059,10 +5957,7 @@ impl WriteXdr for ScSpecTypeMap { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecTypeTuple { pub value_types: VecM, } @@ -6104,10 +5999,7 @@ impl WriteXdr for ScSpecTypeTuple { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecTypeBytesN { pub n: u32, } @@ -6149,10 +6041,7 @@ impl WriteXdr for ScSpecTypeBytesN { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecTypeUdt { pub name: StringM<60>, } @@ -6227,10 +6116,7 @@ impl WriteXdr for ScSpecTypeUdt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ScSpecTypeDef { Val, @@ -6503,10 +6389,7 @@ impl WriteXdr for ScSpecTypeDef { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecUdtStructFieldV0 { pub doc: StringM<1024>, pub name: StringM<30>, @@ -6557,10 +6440,7 @@ impl WriteXdr for ScSpecUdtStructFieldV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecUdtStructV0 { pub doc: StringM<1024>, pub lib: StringM<80>, @@ -6612,10 +6492,7 @@ impl WriteXdr for ScSpecUdtStructV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecUdtUnionCaseVoidV0 { pub doc: StringM<1024>, pub name: StringM<60>, @@ -6662,10 +6539,7 @@ impl WriteXdr for ScSpecUdtUnionCaseVoidV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecUdtUnionCaseTupleV0 { pub doc: StringM<1024>, pub name: StringM<60>, @@ -6715,10 +6589,7 @@ impl WriteXdr for ScSpecUdtUnionCaseTupleV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ScSpecUdtUnionCaseV0Kind { VoidV0 = 0, @@ -6829,10 +6700,7 @@ impl WriteXdr for ScSpecUdtUnionCaseV0Kind { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ScSpecUdtUnionCaseV0 { VoidV0(ScSpecUdtUnionCaseVoidV0), @@ -6946,10 +6814,7 @@ impl WriteXdr for ScSpecUdtUnionCaseV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecUdtUnionV0 { pub doc: StringM<1024>, pub lib: StringM<80>, @@ -7002,10 +6867,7 @@ impl WriteXdr for ScSpecUdtUnionV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecUdtEnumCaseV0 { pub doc: StringM<1024>, pub name: StringM<60>, @@ -7056,10 +6918,7 @@ impl WriteXdr for ScSpecUdtEnumCaseV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecUdtEnumV0 { pub doc: StringM<1024>, pub lib: StringM<80>, @@ -7112,10 +6971,7 @@ impl WriteXdr for ScSpecUdtEnumV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecUdtErrorEnumCaseV0 { pub doc: StringM<1024>, pub name: StringM<60>, @@ -7166,10 +7022,7 @@ impl WriteXdr for ScSpecUdtErrorEnumCaseV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecUdtErrorEnumV0 { pub doc: StringM<1024>, pub lib: StringM<80>, @@ -7222,10 +7075,7 @@ impl WriteXdr for ScSpecUdtErrorEnumV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecFunctionInputV0 { pub doc: StringM<1024>, pub name: StringM<30>, @@ -7276,10 +7126,7 @@ impl WriteXdr for ScSpecFunctionInputV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecFunctionV0 { pub doc: StringM<1024>, pub name: ScSymbol, @@ -7335,10 +7182,7 @@ impl WriteXdr for ScSpecFunctionV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ScSpecEntryKind { FunctionV0 = 0, @@ -7473,10 +7317,7 @@ impl WriteXdr for ScSpecEntryKind { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ScSpecEntry { FunctionV0(ScSpecFunctionV0), @@ -7660,10 +7501,7 @@ impl WriteXdr for ScSpecEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ScValType { Bool = 0, @@ -7883,10 +7721,7 @@ impl WriteXdr for ScValType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ScErrorType { Contract = 0, @@ -8038,10 +7873,7 @@ impl WriteXdr for ScErrorType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ScErrorCode { ArithDomain = 0, @@ -8203,10 +8035,7 @@ impl WriteXdr for ScErrorCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ScError { Contract(u32), @@ -8364,10 +8193,7 @@ impl WriteXdr for ScError { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct UInt128Parts { pub hi: u64, pub lo: u64, @@ -8412,10 +8238,7 @@ impl WriteXdr for UInt128Parts { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct Int128Parts { pub hi: i64, pub lo: u64, @@ -8462,10 +8285,7 @@ impl WriteXdr for Int128Parts { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct UInt256Parts { pub hi_hi: u64, pub hi_lo: u64, @@ -8518,10 +8338,7 @@ impl WriteXdr for UInt256Parts { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct Int256Parts { pub hi_hi: i64, pub hi_lo: u64, @@ -8574,10 +8391,7 @@ impl WriteXdr for Int256Parts { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ContractExecutableType { Wasm = 0, @@ -8688,10 +8502,7 @@ impl WriteXdr for ContractExecutableType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ContractExecutable { Wasm(Hash), @@ -8800,10 +8611,7 @@ impl WriteXdr for ContractExecutable { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ScAddressType { Account = 0, @@ -8910,10 +8718,7 @@ impl WriteXdr for ScAddressType { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ScAddress { Account(AccountId), @@ -9023,10 +8828,7 @@ pub const SCSYMBOL_LIMIT: u64 = 32; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct ScVec(pub VecM); @@ -9132,10 +8934,7 @@ impl AsRef<[ScVal]> for ScVec { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct ScMap(pub VecM); @@ -9241,10 +9040,7 @@ impl AsRef<[ScMapEntry]> for ScMap { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct ScBytes(pub BytesM); @@ -9350,10 +9146,7 @@ impl AsRef<[u8]> for ScBytes { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct ScString(pub StringM); @@ -9459,10 +9252,7 @@ impl AsRef<[u8]> for ScString { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct ScSymbol(pub StringM<32>); @@ -9569,10 +9359,7 @@ impl AsRef<[u8]> for ScSymbol { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScNonceKey { pub nonce: i64, } @@ -9614,10 +9401,7 @@ impl WriteXdr for ScNonceKey { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScContractInstance { pub executable: ContractExecutable, pub storage: Option, @@ -9720,10 +9504,7 @@ impl WriteXdr for ScContractInstance { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ScVal { Bool(bool), @@ -9976,10 +9757,7 @@ impl WriteXdr for ScVal { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScMapEntry { pub key: ScVal, pub val: ScVal, @@ -10028,10 +9806,7 @@ impl WriteXdr for ScMapEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum StoredTransactionSet { V0(TransactionSet), @@ -10137,10 +9912,7 @@ impl WriteXdr for StoredTransactionSet { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct StoredDebugTransactionSet { pub tx_set: StoredTransactionSet, pub ledger_seq: u32, @@ -10190,10 +9962,7 @@ impl WriteXdr for StoredDebugTransactionSet { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct PersistedScpStateV0 { pub scp_envelopes: VecM, pub quorum_sets: VecM, @@ -10243,10 +10012,7 @@ impl WriteXdr for PersistedScpStateV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct PersistedScpStateV1 { pub scp_envelopes: VecM, pub quorum_sets: VecM, @@ -10295,10 +10061,7 @@ impl WriteXdr for PersistedScpStateV1 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum PersistedScpState { V0(PersistedScpStateV0), @@ -10398,10 +10161,6 @@ impl WriteXdr for PersistedScpState { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] pub struct Thresholds(pub [u8; 4]); impl core::fmt::Debug for Thresholds { @@ -10432,6 +10191,37 @@ impl core::str::FromStr for Thresholds { hex::decode(s).map_err(|_| Error::InvalidHex)?.try_into() } } +#[cfg(feature = "schemars")] +impl schemars::JsonSchema for Thresholds { + fn schema_name() -> String { + "Thresholds".to_string() + } + + fn is_referenceable() -> bool { + false + } + + fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { + let schema_ = String::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema_ { + schema.extensions.insert( + "contentEncoding".to_owned(), + serde_json::Value::String("hex".to_string()), + ); + schema.extensions.insert( + "contentMediaType".to_owned(), + serde_json::Value::String("application/binary".to_string()), + ); + mut_string(schema.into(), |string| schemars::schema::StringValidation { + max_length: Some(4 * 2), + min_length: Some(4 * 2), + ..string + }) + } else { + schema_ + } + } +} impl From for [u8; 4] { #[must_use] fn from(x: Thresholds) -> Self { @@ -10522,10 +10312,7 @@ impl AsRef<[u8]> for Thresholds { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct String32(pub StringM<32>); @@ -10631,10 +10418,7 @@ impl AsRef<[u8]> for String32 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct String64(pub StringM<64>); @@ -10739,10 +10523,7 @@ impl AsRef<[u8]> for String64 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct SequenceNumber(pub i64); @@ -10799,10 +10580,7 @@ impl WriteXdr for SequenceNumber { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct DataValue(pub BytesM<64>); @@ -10907,10 +10685,7 @@ impl AsRef<[u8]> for DataValue { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct PoolId(pub Hash); @@ -10965,10 +10740,6 @@ impl WriteXdr for PoolId { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] pub struct AssetCode4(pub [u8; 4]); impl core::fmt::Debug for AssetCode4 { @@ -10982,6 +10753,37 @@ impl core::fmt::Debug for AssetCode4 { Ok(()) } } +#[cfg(feature = "schemars")] +impl schemars::JsonSchema for AssetCode4 { + fn schema_name() -> String { + "AssetCode4".to_string() + } + + fn is_referenceable() -> bool { + false + } + + fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { + let schema_ = String::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema_ { + schema.extensions.insert( + "contentEncoding".to_owned(), + serde_json::Value::String("hex".to_string()), + ); + schema.extensions.insert( + "contentMediaType".to_owned(), + serde_json::Value::String("application/binary".to_string()), + ); + mut_string(schema.into(), |string| schemars::schema::StringValidation { + max_length: Some(4 * 2), + min_length: Some(4 * 2), + ..string + }) + } else { + schema_ + } + } +} impl From for [u8; 4] { #[must_use] fn from(x: AssetCode4) -> Self { @@ -11070,10 +10872,6 @@ impl AsRef<[u8]> for AssetCode4 { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] pub struct AssetCode12(pub [u8; 12]); impl core::fmt::Debug for AssetCode12 { @@ -11087,6 +10885,37 @@ impl core::fmt::Debug for AssetCode12 { Ok(()) } } +#[cfg(feature = "schemars")] +impl schemars::JsonSchema for AssetCode12 { + fn schema_name() -> String { + "AssetCode12".to_string() + } + + fn is_referenceable() -> bool { + false + } + + fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { + let schema_ = String::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema_ { + schema.extensions.insert( + "contentEncoding".to_owned(), + serde_json::Value::String("hex".to_string()), + ); + schema.extensions.insert( + "contentMediaType".to_owned(), + serde_json::Value::String("application/binary".to_string()), + ); + mut_string(schema.into(), |string| schemars::schema::StringValidation { + max_length: Some(12 * 2), + min_length: Some(12 * 2), + ..string + }) + } else { + schema_ + } + } +} impl From for [u8; 12] { #[must_use] fn from(x: AssetCode12) -> Self { @@ -11183,10 +11012,7 @@ impl AsRef<[u8]> for AssetCode12 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum AssetType { Native = 0, @@ -11308,10 +11134,7 @@ impl WriteXdr for AssetType { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum AssetCode { CreditAlphanum4(AssetCode4), @@ -11416,10 +11239,7 @@ impl WriteXdr for AssetCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct AlphaNum4 { pub asset_code: AssetCode4, pub issuer: AccountId, @@ -11465,10 +11285,7 @@ impl WriteXdr for AlphaNum4 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct AlphaNum12 { pub asset_code: AssetCode12, pub issuer: AccountId, @@ -11523,10 +11340,7 @@ impl WriteXdr for AlphaNum12 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum Asset { Native, @@ -11640,10 +11454,7 @@ impl WriteXdr for Asset { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct Price { pub n: i32, pub d: i32, @@ -11689,10 +11500,7 @@ impl WriteXdr for Price { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct Liabilities { pub buying: i64, pub selling: i64, @@ -11741,10 +11549,7 @@ impl WriteXdr for Liabilities { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ThresholdIndexes { MasterWeight = 0, @@ -11869,10 +11674,7 @@ impl WriteXdr for ThresholdIndexes { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum LedgerEntryType { Account = 0, @@ -12023,10 +11825,7 @@ impl WriteXdr for LedgerEntryType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct Signer { pub key: SignerKey, pub weight: u32, @@ -12085,10 +11884,7 @@ impl WriteXdr for Signer { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum AccountFlags { RequiredFlag = 1, @@ -12229,10 +12025,7 @@ pub const MAX_SIGNERS: u64 = 20; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct SponsorshipDescriptor(pub Option); @@ -12299,10 +12092,7 @@ impl WriteXdr for SponsorshipDescriptor { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct AccountEntryExtensionV3 { pub ext: ExtensionPoint, pub seq_ledger: u32, @@ -12354,10 +12144,7 @@ impl WriteXdr for AccountEntryExtensionV3 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum AccountEntryExtensionV2Ext { V0, @@ -12472,10 +12259,7 @@ impl WriteXdr for AccountEntryExtensionV2Ext { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct AccountEntryExtensionV2 { pub num_sponsored: u32, pub num_sponsoring: u32, @@ -12530,10 +12314,7 @@ impl WriteXdr for AccountEntryExtensionV2 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum AccountEntryExtensionV1Ext { V0, @@ -12646,10 +12427,7 @@ impl WriteXdr for AccountEntryExtensionV1Ext { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct AccountEntryExtensionV1 { pub liabilities: Liabilities, pub ext: AccountEntryExtensionV1Ext, @@ -12698,10 +12476,7 @@ impl WriteXdr for AccountEntryExtensionV1 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum AccountEntryExt { V0, @@ -12829,10 +12604,7 @@ impl WriteXdr for AccountEntryExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct AccountEntry { pub account_id: AccountId, pub balance: i64, @@ -12909,10 +12681,7 @@ impl WriteXdr for AccountEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum TrustLineFlags { AuthorizedFlag = 1, @@ -13052,10 +12821,7 @@ pub const MASK_TRUSTLINE_FLAGS_V17: u64 = 7; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum LiquidityPoolType { LiquidityPoolConstantProduct = 0, @@ -13169,10 +12935,7 @@ impl WriteXdr for LiquidityPoolType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TrustLineAsset { Native, @@ -13294,10 +13057,7 @@ impl WriteXdr for TrustLineAsset { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TrustLineEntryExtensionV2Ext { V0, @@ -13403,10 +13163,7 @@ impl WriteXdr for TrustLineEntryExtensionV2Ext { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TrustLineEntryExtensionV2 { pub liquidity_pool_use_count: i32, pub ext: TrustLineEntryExtensionV2Ext, @@ -13455,10 +13212,7 @@ impl WriteXdr for TrustLineEntryExtensionV2 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TrustLineEntryV1Ext { V0, @@ -13571,10 +13325,7 @@ impl WriteXdr for TrustLineEntryV1Ext { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TrustLineEntryV1 { pub liabilities: Liabilities, pub ext: TrustLineEntryV1Ext, @@ -13635,10 +13386,7 @@ impl WriteXdr for TrustLineEntryV1 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TrustLineEntryExt { V0, @@ -13770,10 +13518,7 @@ impl WriteXdr for TrustLineEntryExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TrustLineEntry { pub account_id: AccountId, pub asset: TrustLineAsset, @@ -13833,10 +13578,7 @@ impl WriteXdr for TrustLineEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum OfferEntryFlags { PassiveFlag = 1, @@ -13947,10 +13689,7 @@ pub const MASK_OFFERENTRY_FLAGS: u64 = 1; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum OfferEntryExt { V0, @@ -14069,10 +13808,7 @@ impl WriteXdr for OfferEntryExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct OfferEntry { pub seller_id: AccountId, pub offer_id: i64, @@ -14137,10 +13873,7 @@ impl WriteXdr for OfferEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum DataEntryExt { V0, @@ -14249,10 +13982,7 @@ impl WriteXdr for DataEntryExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct DataEntry { pub account_id: AccountId, pub data_name: String64, @@ -14309,10 +14039,7 @@ impl WriteXdr for DataEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ClaimPredicateType { Unconditional = 0, @@ -14455,10 +14182,7 @@ impl WriteXdr for ClaimPredicateType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ClaimPredicate { Unconditional, @@ -14601,10 +14325,7 @@ impl WriteXdr for ClaimPredicate { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ClaimantType { ClaimantTypeV0 = 0, @@ -14706,10 +14427,7 @@ impl WriteXdr for ClaimantType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ClaimantV0 { pub destination: AccountId, pub predicate: ClaimPredicate, @@ -14760,10 +14478,7 @@ impl WriteXdr for ClaimantV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum Claimant { ClaimantTypeV0(ClaimantV0), @@ -14863,10 +14578,7 @@ impl WriteXdr for Claimant { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ClaimableBalanceIdType { ClaimableBalanceIdTypeV0 = 0, @@ -14970,10 +14682,7 @@ impl WriteXdr for ClaimableBalanceIdType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ClaimableBalanceId { ClaimableBalanceIdTypeV0(Hash), @@ -15078,10 +14787,7 @@ impl WriteXdr for ClaimableBalanceId { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ClaimableBalanceFlags { ClaimableBalanceClawbackEnabledFlag = 1, @@ -15193,10 +14899,7 @@ pub const MASK_CLAIMABLE_BALANCE_FLAGS: u64 = 0x1; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ClaimableBalanceEntryExtensionV1Ext { V0, @@ -15302,10 +15005,7 @@ impl WriteXdr for ClaimableBalanceEntryExtensionV1Ext { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ClaimableBalanceEntryExtensionV1 { pub ext: ClaimableBalanceEntryExtensionV1Ext, pub flags: u32, @@ -15354,10 +15054,7 @@ impl WriteXdr for ClaimableBalanceEntryExtensionV1 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ClaimableBalanceEntryExt { V0, @@ -15481,10 +15178,7 @@ impl WriteXdr for ClaimableBalanceEntryExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ClaimableBalanceEntry { pub balance_id: ClaimableBalanceId, pub claimants: VecM, @@ -15540,10 +15234,7 @@ impl WriteXdr for ClaimableBalanceEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LiquidityPoolConstantProductParameters { pub asset_a: Asset, pub asset_b: Asset, @@ -15597,10 +15288,7 @@ impl WriteXdr for LiquidityPoolConstantProductParameters { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LiquidityPoolEntryConstantProduct { pub params: LiquidityPoolConstantProductParameters, pub reserve_a: i64, @@ -15665,10 +15353,7 @@ impl WriteXdr for LiquidityPoolEntryConstantProduct { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LiquidityPoolEntryBody { LiquidityPoolConstantProduct(LiquidityPoolEntryConstantProduct), @@ -15789,10 +15474,7 @@ impl WriteXdr for LiquidityPoolEntryBody { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LiquidityPoolEntry { pub liquidity_pool_id: PoolId, pub body: LiquidityPoolEntryBody, @@ -15838,10 +15520,7 @@ impl WriteXdr for LiquidityPoolEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ContractDataDurability { Temporary = 0, @@ -15952,10 +15631,7 @@ impl WriteXdr for ContractDataDurability { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ContractDataEntry { pub ext: ExtensionPoint, pub contract: ScAddress, @@ -16011,10 +15687,7 @@ impl WriteXdr for ContractDataEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ContractCodeEntry { pub ext: ExtensionPoint, pub hash: Hash, @@ -16063,10 +15736,7 @@ impl WriteXdr for ContractCodeEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TtlEntry { pub key_hash: Hash, pub live_until_ledger_seq: u32, @@ -16113,10 +15783,7 @@ impl WriteXdr for TtlEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LedgerEntryExtensionV1Ext { V0, @@ -16222,10 +15889,7 @@ impl WriteXdr for LedgerEntryExtensionV1Ext { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerEntryExtensionV1 { pub sponsoring_id: SponsorshipDescriptor, pub ext: LedgerEntryExtensionV1Ext, @@ -16290,10 +15954,7 @@ impl WriteXdr for LedgerEntryExtensionV1 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LedgerEntryData { Account(AccountEntry), @@ -16473,10 +16134,7 @@ impl WriteXdr for LedgerEntryData { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LedgerEntryExt { V0, @@ -16615,10 +16273,7 @@ impl WriteXdr for LedgerEntryExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerEntry { pub last_modified_ledger_seq: u32, pub data: LedgerEntryData, @@ -16666,10 +16321,7 @@ impl WriteXdr for LedgerEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerKeyAccount { pub account_id: AccountId, } @@ -16712,10 +16364,7 @@ impl WriteXdr for LedgerKeyAccount { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerKeyTrustLine { pub account_id: AccountId, pub asset: TrustLineAsset, @@ -16761,10 +16410,7 @@ impl WriteXdr for LedgerKeyTrustLine { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerKeyOffer { pub seller_id: AccountId, pub offer_id: i64, @@ -16810,10 +16456,7 @@ impl WriteXdr for LedgerKeyOffer { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerKeyData { pub account_id: AccountId, pub data_name: String64, @@ -16858,10 +16501,7 @@ impl WriteXdr for LedgerKeyData { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerKeyClaimableBalance { pub balance_id: ClaimableBalanceId, } @@ -16903,10 +16543,7 @@ impl WriteXdr for LedgerKeyClaimableBalance { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerKeyLiquidityPool { pub liquidity_pool_id: PoolId, } @@ -16950,10 +16587,7 @@ impl WriteXdr for LedgerKeyLiquidityPool { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerKeyContractData { pub contract: ScAddress, pub key: ScVal, @@ -17001,10 +16635,7 @@ impl WriteXdr for LedgerKeyContractData { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerKeyContractCode { pub hash: Hash, } @@ -17046,10 +16677,7 @@ impl WriteXdr for LedgerKeyContractCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerKeyConfigSetting { pub config_setting_id: ConfigSettingId, } @@ -17092,10 +16720,7 @@ impl WriteXdr for LedgerKeyConfigSetting { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerKeyTtl { pub key_hash: Hash, } @@ -17198,10 +16823,7 @@ impl WriteXdr for LedgerKeyTtl { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LedgerKey { Account(LedgerKeyAccount), @@ -17387,10 +17009,7 @@ impl WriteXdr for LedgerKey { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum EnvelopeType { TxV0 = 0, @@ -17538,10 +17157,7 @@ impl WriteXdr for EnvelopeType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct UpgradeType(pub BytesM<128>); @@ -17651,10 +17267,7 @@ impl AsRef<[u8]> for UpgradeType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum StellarValueType { Basic = 0, @@ -17759,10 +17372,7 @@ impl WriteXdr for StellarValueType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerCloseValueSignature { pub node_id: NodeId, pub signature: Signature, @@ -17811,10 +17421,7 @@ impl WriteXdr for LedgerCloseValueSignature { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum StellarValueExt { Basic, @@ -17936,10 +17543,7 @@ impl WriteXdr for StellarValueExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct StellarValue { pub tx_set_hash: Hash, pub close_time: TimePoint, @@ -18001,10 +17605,7 @@ pub const MASK_LEDGER_HEADER_FLAGS: u64 = 0x7; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum LedgerHeaderFlags { TradingFlag = 1, @@ -18117,10 +17718,7 @@ impl WriteXdr for LedgerHeaderFlags { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LedgerHeaderExtensionV1Ext { V0, @@ -18226,10 +17824,7 @@ impl WriteXdr for LedgerHeaderExtensionV1Ext { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerHeaderExtensionV1 { pub flags: u32, pub ext: LedgerHeaderExtensionV1Ext, @@ -18278,10 +17873,7 @@ impl WriteXdr for LedgerHeaderExtensionV1 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LedgerHeaderExt { V0, @@ -18420,10 +18012,7 @@ impl WriteXdr for LedgerHeaderExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerHeader { pub ledger_version: u32, pub previous_ledger_hash: Hash, @@ -18514,10 +18103,7 @@ impl WriteXdr for LedgerHeader { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum LedgerUpgradeType { Version = 1, @@ -18652,10 +18238,7 @@ impl WriteXdr for LedgerUpgradeType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ConfigUpgradeSetKey { pub contract_id: Hash, pub content_hash: Hash, @@ -18717,10 +18300,7 @@ impl WriteXdr for ConfigUpgradeSetKey { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LedgerUpgrade { Version(u32), @@ -18866,10 +18446,7 @@ impl WriteXdr for LedgerUpgrade { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ConfigUpgradeSet { pub updated_entry: VecM, } @@ -18917,10 +18494,7 @@ impl WriteXdr for ConfigUpgradeSet { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum BucketEntryType { Metaentry = -1, @@ -19038,10 +18612,7 @@ impl WriteXdr for BucketEntryType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum BucketMetadataExt { V0, @@ -19149,10 +18720,7 @@ impl WriteXdr for BucketMetadataExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct BucketMetadata { pub ledger_version: u32, pub ext: BucketMetadataExt, @@ -19205,10 +18773,7 @@ impl WriteXdr for BucketMetadata { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum BucketEntry { Liveentry(LedgerEntry), @@ -19331,10 +18896,7 @@ impl WriteXdr for BucketEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum TxSetComponentType { TxsetCompTxsMaybeDiscountedFee = 0, @@ -19437,10 +18999,7 @@ impl WriteXdr for TxSetComponentType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TxSetComponentTxsMaybeDiscountedFee { pub base_fee: Option, pub txs: VecM, @@ -19491,10 +19050,7 @@ impl WriteXdr for TxSetComponentTxsMaybeDiscountedFee { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TxSetComponent { TxsetCompTxsMaybeDiscountedFee(TxSetComponentTxsMaybeDiscountedFee), @@ -19602,10 +19158,7 @@ impl WriteXdr for TxSetComponent { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TransactionPhase { V0(VecM), @@ -19705,10 +19258,7 @@ impl WriteXdr for TransactionPhase { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionSet { pub previous_ledger_hash: Hash, pub txs: VecM, @@ -19754,10 +19304,7 @@ impl WriteXdr for TransactionSet { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionSetV1 { pub previous_ledger_hash: Hash, pub phases: VecM, @@ -19805,10 +19352,7 @@ impl WriteXdr for TransactionSetV1 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum GeneralizedTransactionSet { V1(TransactionSetV1), @@ -19908,10 +19452,7 @@ impl WriteXdr for GeneralizedTransactionSet { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionResultPair { pub transaction_hash: Hash, pub result: TransactionResult, @@ -19956,10 +19497,7 @@ impl WriteXdr for TransactionResultPair { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionResultSet { pub results: VecM, } @@ -20005,10 +19543,7 @@ impl WriteXdr for TransactionResultSet { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TransactionHistoryEntryExt { V0, @@ -20123,10 +19658,7 @@ impl WriteXdr for TransactionHistoryEntryExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionHistoryEntry { pub ledger_seq: u32, pub tx_set: TransactionSet, @@ -20176,10 +19708,7 @@ impl WriteXdr for TransactionHistoryEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TransactionHistoryResultEntryExt { V0, @@ -20287,10 +19816,7 @@ impl WriteXdr for TransactionHistoryResultEntryExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionHistoryResultEntry { pub ledger_seq: u32, pub tx_result_set: TransactionResultSet, @@ -20340,10 +19866,7 @@ impl WriteXdr for TransactionHistoryResultEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LedgerHeaderHistoryEntryExt { V0, @@ -20451,10 +19974,7 @@ impl WriteXdr for LedgerHeaderHistoryEntryExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerHeaderHistoryEntry { pub hash: Hash, pub header: LedgerHeader, @@ -20503,10 +20023,7 @@ impl WriteXdr for LedgerHeaderHistoryEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerScpMessages { pub ledger_seq: u32, pub messages: VecM, @@ -20552,10 +20069,7 @@ impl WriteXdr for LedgerScpMessages { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScpHistoryEntryV0 { pub quorum_sets: VecM, pub ledger_messages: LedgerScpMessages, @@ -20602,10 +20116,7 @@ impl WriteXdr for ScpHistoryEntryV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ScpHistoryEntry { V0(ScpHistoryEntryV0), @@ -20708,10 +20219,7 @@ impl WriteXdr for ScpHistoryEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum LedgerEntryChangeType { Created = 0, @@ -20834,10 +20342,7 @@ impl WriteXdr for LedgerEntryChangeType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LedgerEntryChange { Created(LedgerEntry), @@ -20954,10 +20459,7 @@ impl WriteXdr for LedgerEntryChange { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct LedgerEntryChanges(pub VecM); @@ -21065,10 +20567,7 @@ impl AsRef<[LedgerEntryChange]> for LedgerEntryChanges { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct OperationMeta { pub changes: LedgerEntryChanges, } @@ -21111,10 +20610,7 @@ impl WriteXdr for OperationMeta { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionMetaV1 { pub tx_changes: LedgerEntryChanges, pub operations: VecM, @@ -21163,10 +20659,7 @@ impl WriteXdr for TransactionMetaV1 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionMetaV2 { pub tx_changes_before: LedgerEntryChanges, pub operations: VecM, @@ -21217,10 +20710,7 @@ impl WriteXdr for TransactionMetaV2 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ContractEventType { System = 0, @@ -21332,10 +20822,7 @@ impl WriteXdr for ContractEventType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ContractEventV0 { pub topics: VecM, pub data: ScVal, @@ -21386,10 +20873,7 @@ impl WriteXdr for ContractEventV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ContractEventBody { V0(ContractEventV0), @@ -21504,10 +20988,7 @@ impl WriteXdr for ContractEventBody { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ContractEvent { pub ext: ExtensionPoint, pub contract_id: Option, @@ -21559,10 +21040,7 @@ impl WriteXdr for ContractEvent { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct DiagnosticEvent { pub in_successful_contract_call: bool, pub event: ContractEvent, @@ -21616,10 +21094,7 @@ impl WriteXdr for DiagnosticEvent { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SorobanTransactionMeta { pub ext: ExtensionPoint, pub events: VecM, @@ -21678,10 +21153,7 @@ impl WriteXdr for SorobanTransactionMeta { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionMetaV3 { pub ext: ExtensionPoint, pub tx_changes_before: LedgerEntryChanges, @@ -21736,10 +21208,7 @@ impl WriteXdr for TransactionMetaV3 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct InvokeHostFunctionSuccessPreImage { pub return_value: ScVal, pub events: VecM, @@ -21792,10 +21261,7 @@ impl WriteXdr for InvokeHostFunctionSuccessPreImage { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TransactionMeta { V0(VecM), @@ -21911,10 +21377,7 @@ impl WriteXdr for TransactionMeta { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionResultMeta { pub result: TransactionResultPair, pub fee_processing: LedgerEntryChanges, @@ -21963,10 +21426,7 @@ impl WriteXdr for TransactionResultMeta { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct UpgradeEntryMeta { pub upgrade: LedgerUpgrade, pub changes: LedgerEntryChanges, @@ -22024,10 +21484,7 @@ impl WriteXdr for UpgradeEntryMeta { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerCloseMetaV0 { pub ledger_header: LedgerHeaderHistoryEntry, pub tx_set: TransactionSet, @@ -22109,10 +21566,7 @@ impl WriteXdr for LedgerCloseMetaV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerCloseMetaV1 { pub ext: ExtensionPoint, pub ledger_header: LedgerHeaderHistoryEntry, @@ -22182,10 +21636,7 @@ impl WriteXdr for LedgerCloseMetaV1 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LedgerCloseMeta { V0(LedgerCloseMetaV0), @@ -22294,10 +21745,7 @@ impl WriteXdr for LedgerCloseMeta { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ErrorCode { Misc = 0, @@ -22417,10 +21865,7 @@ impl WriteXdr for ErrorCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SError { pub code: ErrorCode, pub msg: StringM<100>, @@ -22465,10 +21910,7 @@ impl WriteXdr for SError { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SendMore { pub num_messages: u32, } @@ -22511,10 +21953,7 @@ impl WriteXdr for SendMore { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SendMoreExtended { pub num_messages: u32, pub num_bytes: u32, @@ -22561,10 +22000,7 @@ impl WriteXdr for SendMoreExtended { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct AuthCert { pub pubkey: Curve25519Public, pub expiration: u64, @@ -22620,10 +22056,7 @@ impl WriteXdr for AuthCert { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct Hello { pub ledger_version: u32, pub overlay_version: u32, @@ -22697,10 +22130,7 @@ pub const AUTH_MSG_FLAG_FLOW_CONTROL_BYTES_REQUESTED: u64 = 200; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct Auth { pub flags: i32, } @@ -22744,10 +22174,7 @@ impl WriteXdr for Auth { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum IpAddrType { IPv4 = 0, @@ -22855,10 +22282,7 @@ impl WriteXdr for IpAddrType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum PeerAddressIp { IPv4([u8; 4]), @@ -22971,10 +22395,7 @@ impl WriteXdr for PeerAddressIp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct PeerAddress { pub ip: PeerAddressIp, pub port: u32, @@ -23052,10 +22473,7 @@ impl WriteXdr for PeerAddress { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum MessageType { ErrorMsg = 0, @@ -23256,10 +22674,7 @@ impl WriteXdr for MessageType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct DontHave { pub type_: MessageType, pub req_hash: Uint256, @@ -23305,10 +22720,7 @@ impl WriteXdr for DontHave { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum SurveyMessageCommandType { SurveyTopology = 0, @@ -23411,10 +22823,7 @@ impl WriteXdr for SurveyMessageCommandType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum SurveyMessageResponseType { V0 = 0, @@ -23523,10 +22932,7 @@ impl WriteXdr for SurveyMessageResponseType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SurveyRequestMessage { pub surveyor_peer_id: NodeId, pub surveyed_peer_id: NodeId, @@ -23581,10 +22987,7 @@ impl WriteXdr for SurveyRequestMessage { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SignedSurveyRequestMessage { pub request_signature: Signature, pub request: SurveyRequestMessage, @@ -23627,10 +23030,7 @@ impl WriteXdr for SignedSurveyRequestMessage { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct EncryptedBody(pub BytesM<64000>); @@ -23742,10 +23142,7 @@ impl AsRef<[u8]> for EncryptedBody { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SurveyResponseMessage { pub surveyor_peer_id: NodeId, pub surveyed_peer_id: NodeId, @@ -23800,10 +23197,7 @@ impl WriteXdr for SurveyResponseMessage { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SignedSurveyResponseMessage { pub response_signature: Signature, pub response: SurveyResponseMessage, @@ -23864,10 +23258,7 @@ impl WriteXdr for SignedSurveyResponseMessage { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct PeerStats { pub id: NodeId, pub version_str: StringM<100>, @@ -23949,10 +23340,7 @@ impl WriteXdr for PeerStats { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct PeerStatList(pub VecM); @@ -24064,10 +23452,7 @@ impl AsRef<[PeerStats]> for PeerStatList { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TopologyResponseBodyV0 { pub inbound_peers: PeerStatList, pub outbound_peers: PeerStatList, @@ -24125,10 +23510,7 @@ impl WriteXdr for TopologyResponseBodyV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TopologyResponseBodyV1 { pub inbound_peers: PeerStatList, pub outbound_peers: PeerStatList, @@ -24189,10 +23571,7 @@ impl WriteXdr for TopologyResponseBodyV1 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum SurveyResponseBody { V0(TopologyResponseBodyV0), @@ -24304,10 +23683,7 @@ pub const TX_ADVERT_VECTOR_MAX_SIZE: u64 = 1000; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct TxAdvertVector(pub VecM); @@ -24415,10 +23791,7 @@ impl AsRef<[Hash]> for TxAdvertVector { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct FloodAdvert { pub tx_hashes: TxAdvertVector, } @@ -24466,10 +23839,7 @@ pub const TX_DEMAND_VECTOR_MAX_SIZE: u64 = 1000; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct TxDemandVector(pub VecM); @@ -24577,10 +23947,7 @@ impl AsRef<[Hash]> for TxDemandVector { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct FloodDemand { pub tx_hashes: TxDemandVector, } @@ -24669,10 +24036,7 @@ impl WriteXdr for FloodDemand { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum StellarMessage { ErrorMsg(SError), @@ -24918,10 +24282,7 @@ impl WriteXdr for StellarMessage { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct AuthenticatedMessageV0 { pub sequence: u64, pub message: StellarMessage, @@ -24976,10 +24337,7 @@ impl WriteXdr for AuthenticatedMessageV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum AuthenticatedMessage { V0(AuthenticatedMessageV0), @@ -25088,10 +24446,7 @@ pub const MAX_OPS_PER_TX: u64 = 100; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LiquidityPoolParameters { LiquidityPoolConstantProduct(LiquidityPoolConstantProductParameters), @@ -25196,10 +24551,7 @@ impl WriteXdr for LiquidityPoolParameters { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct MuxedAccountMed25519 { pub id: u64, pub ed25519: Uint256, @@ -25251,10 +24603,7 @@ impl WriteXdr for MuxedAccountMed25519 { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum MuxedAccount { Ed25519(Uint256), @@ -25361,10 +24710,7 @@ impl WriteXdr for MuxedAccount { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct DecoratedSignature { pub hint: SignatureHint, pub signature: Signature, @@ -25436,10 +24782,7 @@ impl WriteXdr for DecoratedSignature { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum OperationType { CreateAccount = 0, @@ -25675,10 +25018,7 @@ impl WriteXdr for OperationType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct CreateAccountOp { pub destination: AccountId, pub starting_balance: i64, @@ -25725,10 +25065,7 @@ impl WriteXdr for CreateAccountOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct PaymentOp { pub destination: MuxedAccount, pub asset: Asset, @@ -25785,10 +25122,7 @@ impl WriteXdr for PaymentOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct PathPaymentStrictReceiveOp { pub send_asset: Asset, pub send_max: i64, @@ -25854,10 +25188,7 @@ impl WriteXdr for PathPaymentStrictReceiveOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct PathPaymentStrictSendOp { pub send_asset: Asset, pub send_amount: i64, @@ -25920,10 +25251,7 @@ impl WriteXdr for PathPaymentStrictSendOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ManageSellOfferOp { pub selling: Asset, pub buying: Asset, @@ -25984,10 +25312,7 @@ impl WriteXdr for ManageSellOfferOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ManageBuyOfferOp { pub selling: Asset, pub buying: Asset, @@ -26044,10 +25369,7 @@ impl WriteXdr for ManageBuyOfferOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct CreatePassiveSellOfferOp { pub selling: Asset, pub buying: Asset, @@ -26113,10 +25435,7 @@ impl WriteXdr for CreatePassiveSellOfferOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SetOptionsOp { pub inflation_dest: Option, pub clear_flags: Option, @@ -26195,10 +25514,7 @@ impl WriteXdr for SetOptionsOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ChangeTrustAsset { Native, @@ -26321,10 +25637,7 @@ impl WriteXdr for ChangeTrustAsset { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ChangeTrustOp { pub line: ChangeTrustAsset, pub limit: i64, @@ -26373,10 +25686,7 @@ impl WriteXdr for ChangeTrustOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct AllowTrustOp { pub trustor: AccountId, pub asset: AssetCode, @@ -26425,10 +25735,7 @@ impl WriteXdr for AllowTrustOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ManageDataOp { pub data_name: String64, pub data_value: Option, @@ -26473,10 +25780,7 @@ impl WriteXdr for ManageDataOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct BumpSequenceOp { pub bump_to: SequenceNumber, } @@ -26520,10 +25824,7 @@ impl WriteXdr for BumpSequenceOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct CreateClaimableBalanceOp { pub asset: Asset, pub amount: i64, @@ -26571,10 +25872,7 @@ impl WriteXdr for CreateClaimableBalanceOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ClaimClaimableBalanceOp { pub balance_id: ClaimableBalanceId, } @@ -26616,10 +25914,7 @@ impl WriteXdr for ClaimClaimableBalanceOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct BeginSponsoringFutureReservesOp { pub sponsored_id: AccountId, } @@ -26663,10 +25958,7 @@ impl WriteXdr for BeginSponsoringFutureReservesOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum RevokeSponsorshipType { LedgerEntry = 0, @@ -26774,10 +26066,7 @@ impl WriteXdr for RevokeSponsorshipType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct RevokeSponsorshipOpSigner { pub account_id: AccountId, pub signer_key: SignerKey, @@ -26830,10 +26119,7 @@ impl WriteXdr for RevokeSponsorshipOpSigner { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum RevokeSponsorshipOp { LedgerEntry(LedgerKey), @@ -26944,10 +26230,7 @@ impl WriteXdr for RevokeSponsorshipOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ClawbackOp { pub asset: Asset, pub from: MuxedAccount, @@ -26995,10 +26278,7 @@ impl WriteXdr for ClawbackOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ClawbackClaimableBalanceOp { pub balance_id: ClaimableBalanceId, } @@ -27044,10 +26324,7 @@ impl WriteXdr for ClawbackClaimableBalanceOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SetTrustLineFlagsOp { pub trustor: AccountId, pub asset: Asset, @@ -27110,10 +26387,7 @@ pub const LIQUIDITY_POOL_FEE_V18: u64 = 30; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LiquidityPoolDepositOp { pub liquidity_pool_id: PoolId, pub max_amount_a: i64, @@ -27170,10 +26444,7 @@ impl WriteXdr for LiquidityPoolDepositOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LiquidityPoolWithdrawOp { pub liquidity_pool_id: PoolId, pub amount: i64, @@ -27227,10 +26498,7 @@ impl WriteXdr for LiquidityPoolWithdrawOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum HostFunctionType { InvokeContract = 0, @@ -27344,10 +26612,7 @@ impl WriteXdr for HostFunctionType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ContractIdPreimageType { Address = 0, @@ -27455,10 +26720,7 @@ impl WriteXdr for ContractIdPreimageType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ContractIdPreimageFromAddress { pub address: ScAddress, pub salt: Uint256, @@ -27511,10 +26773,7 @@ impl WriteXdr for ContractIdPreimageFromAddress { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ContractIdPreimage { Address(ContractIdPreimageFromAddress), @@ -27624,10 +26883,7 @@ impl WriteXdr for ContractIdPreimage { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct CreateContractArgs { pub contract_id_preimage: ContractIdPreimage, pub executable: ContractExecutable, @@ -27673,10 +26929,7 @@ impl WriteXdr for CreateContractArgs { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct InvokeContractArgs { pub contract_address: ScAddress, pub function_name: ScSymbol, @@ -27730,10 +26983,7 @@ impl WriteXdr for InvokeContractArgs { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum HostFunction { InvokeContract(InvokeContractArgs), @@ -27855,10 +27105,7 @@ impl WriteXdr for HostFunction { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum SorobanAuthorizedFunctionType { ContractFn = 0, @@ -27969,10 +27216,7 @@ impl WriteXdr for SorobanAuthorizedFunctionType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum SorobanAuthorizedFunction { ContractFn(InvokeContractArgs), @@ -28085,10 +27329,7 @@ impl WriteXdr for SorobanAuthorizedFunction { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SorobanAuthorizedInvocation { pub function: SorobanAuthorizedFunction, pub sub_invocations: VecM, @@ -28136,10 +27377,7 @@ impl WriteXdr for SorobanAuthorizedInvocation { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SorobanAddressCredentials { pub address: ScAddress, pub nonce: i64, @@ -28192,10 +27430,7 @@ impl WriteXdr for SorobanAddressCredentials { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum SorobanCredentialsType { SourceAccount = 0, @@ -28306,10 +27541,7 @@ impl WriteXdr for SorobanCredentialsType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum SorobanCredentials { SourceAccount, @@ -28419,10 +27651,7 @@ impl WriteXdr for SorobanCredentials { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SorobanAuthorizationEntry { pub credentials: SorobanCredentials, pub root_invocation: SorobanAuthorizedInvocation, @@ -28470,10 +27699,7 @@ impl WriteXdr for SorobanAuthorizationEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct InvokeHostFunctionOp { pub host_function: HostFunction, pub auth: VecM, @@ -28519,10 +27745,7 @@ impl WriteXdr for InvokeHostFunctionOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ExtendFootprintTtlOp { pub ext: ExtensionPoint, pub extend_to: u32, @@ -28567,10 +27790,7 @@ impl WriteXdr for ExtendFootprintTtlOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct RestoreFootprintOp { pub ext: ExtensionPoint, } @@ -28666,10 +27886,7 @@ impl WriteXdr for RestoreFootprintOp { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum OperationBody { CreateAccount(CreateAccountOp), @@ -29050,10 +28267,7 @@ impl WriteXdr for OperationBody { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct Operation { pub source_account: Option, pub body: OperationBody, @@ -29100,10 +28314,7 @@ impl WriteXdr for Operation { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct HashIdPreimageOperationId { pub source_account: AccountId, pub seq_num: SequenceNumber, @@ -29155,10 +28366,7 @@ impl WriteXdr for HashIdPreimageOperationId { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct HashIdPreimageRevokeId { pub source_account: AccountId, pub seq_num: SequenceNumber, @@ -29213,10 +28421,7 @@ impl WriteXdr for HashIdPreimageRevokeId { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct HashIdPreimageContractId { pub network_id: Hash, pub contract_id_preimage: ContractIdPreimage, @@ -29264,10 +28469,7 @@ impl WriteXdr for HashIdPreimageContractId { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct HashIdPreimageSorobanAuthorization { pub network_id: Hash, pub nonce: i64, @@ -29348,10 +28550,7 @@ impl WriteXdr for HashIdPreimageSorobanAuthorization { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum HashIdPreimage { OpId(HashIdPreimageOperationId), @@ -29486,10 +28685,7 @@ impl WriteXdr for HashIdPreimage { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum MemoType { None = 0, @@ -29618,10 +28814,7 @@ impl WriteXdr for MemoType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum Memo { None, @@ -29747,10 +28940,7 @@ impl WriteXdr for Memo { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TimeBounds { pub min_time: TimePoint, pub max_time: TimePoint, @@ -29796,10 +28986,7 @@ impl WriteXdr for TimeBounds { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerBounds { pub min_ledger: u32, pub max_ledger: u32, @@ -29872,10 +29059,7 @@ impl WriteXdr for LedgerBounds { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct PreconditionsV2 { pub time_bounds: Option, pub ledger_bounds: Option, @@ -29935,10 +29119,7 @@ impl WriteXdr for PreconditionsV2 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum PreconditionType { None = 0, @@ -30055,10 +29236,7 @@ impl WriteXdr for PreconditionType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum Preconditions { None, @@ -30172,10 +29350,7 @@ impl WriteXdr for Preconditions { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerFootprint { pub read_only: VecM, pub read_write: VecM, @@ -30228,10 +29403,7 @@ impl WriteXdr for LedgerFootprint { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SorobanResources { pub footprint: LedgerFootprint, pub instructions: u32, @@ -30293,10 +29465,7 @@ impl WriteXdr for SorobanResources { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SorobanTransactionData { pub ext: ExtensionPoint, pub resources: SorobanResources, @@ -30346,10 +29515,7 @@ impl WriteXdr for SorobanTransactionData { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TransactionV0Ext { V0, @@ -30459,10 +29625,7 @@ impl WriteXdr for TransactionV0Ext { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionV0 { pub source_account_ed25519: Uint256, pub fee: u32, @@ -30525,10 +29688,7 @@ impl WriteXdr for TransactionV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionV0Envelope { pub tx: TransactionV0, pub signatures: VecM, @@ -30577,10 +29737,7 @@ impl WriteXdr for TransactionV0Envelope { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TransactionExt { V0, @@ -30708,10 +29865,7 @@ impl WriteXdr for TransactionExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct Transaction { pub source_account: MuxedAccount, pub fee: u32, @@ -30774,10 +29928,7 @@ impl WriteXdr for Transaction { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionV1Envelope { pub tx: Transaction, pub signatures: VecM, @@ -30824,10 +29975,7 @@ impl WriteXdr for TransactionV1Envelope { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum FeeBumpTransactionInnerTx { Tx(TransactionV1Envelope), @@ -30928,10 +30076,7 @@ impl WriteXdr for FeeBumpTransactionInnerTx { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum FeeBumpTransactionExt { V0, @@ -31043,10 +30188,7 @@ impl WriteXdr for FeeBumpTransactionExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct FeeBumpTransaction { pub fee_source: MuxedAccount, pub fee: i64, @@ -31100,10 +30242,7 @@ impl WriteXdr for FeeBumpTransaction { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct FeeBumpTransactionEnvelope { pub tx: FeeBumpTransaction, pub signatures: VecM, @@ -31154,10 +30293,7 @@ impl WriteXdr for FeeBumpTransactionEnvelope { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TransactionEnvelope { TxV0(TransactionV0Envelope), @@ -31277,10 +30413,7 @@ impl WriteXdr for TransactionEnvelope { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TransactionSignaturePayloadTaggedTransaction { Tx(Transaction), @@ -31393,10 +30526,7 @@ impl WriteXdr for TransactionSignaturePayloadTaggedTransaction { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionSignaturePayload { pub network_id: Hash, pub tagged_transaction: TransactionSignaturePayloadTaggedTransaction, @@ -31444,10 +30574,7 @@ impl WriteXdr for TransactionSignaturePayload { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ClaimAtomType { V0 = 0, @@ -31568,10 +30695,7 @@ impl WriteXdr for ClaimAtomType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ClaimOfferAtomV0 { pub seller_ed25519: Uint256, pub offer_id: i64, @@ -31638,10 +30762,7 @@ impl WriteXdr for ClaimOfferAtomV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ClaimOfferAtom { pub seller_id: AccountId, pub offer_id: i64, @@ -31706,10 +30827,7 @@ impl WriteXdr for ClaimOfferAtom { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ClaimLiquidityAtom { pub liquidity_pool_id: PoolId, pub asset_sold: Asset, @@ -31769,10 +30887,7 @@ impl WriteXdr for ClaimLiquidityAtom { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ClaimAtom { V0(ClaimOfferAtomV0), @@ -31896,10 +31011,7 @@ impl WriteXdr for ClaimAtom { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum CreateAccountResultCode { Success = 0, @@ -32031,10 +31143,7 @@ impl WriteXdr for CreateAccountResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum CreateAccountResult { Success, @@ -32178,10 +31287,7 @@ impl WriteXdr for CreateAccountResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum PaymentResultCode { Success = 0, @@ -32343,10 +31449,7 @@ impl WriteXdr for PaymentResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum PaymentResult { Success, @@ -32537,10 +31640,7 @@ impl WriteXdr for PaymentResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum PathPaymentStrictReceiveResultCode { Success = 0, @@ -32707,10 +31807,7 @@ impl WriteXdr for PathPaymentStrictReceiveResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SimplePaymentResult { pub destination: AccountId, pub asset: Asset, @@ -32759,10 +31856,7 @@ impl WriteXdr for SimplePaymentResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct PathPaymentStrictReceiveResultSuccess { pub offers: VecM, pub last: SimplePaymentResult, @@ -32829,10 +31923,7 @@ impl WriteXdr for PathPaymentStrictReceiveResultSuccess { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum PathPaymentStrictReceiveResult { Success(PathPaymentStrictReceiveResultSuccess), @@ -33046,10 +32137,7 @@ impl WriteXdr for PathPaymentStrictReceiveResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum PathPaymentStrictSendResultCode { Success = 0, @@ -33215,10 +32303,7 @@ impl WriteXdr for PathPaymentStrictSendResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct PathPaymentStrictSendResultSuccess { pub offers: VecM, pub last: SimplePaymentResult, @@ -33284,10 +32369,7 @@ impl WriteXdr for PathPaymentStrictSendResultSuccess { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum PathPaymentStrictSendResult { Success(PathPaymentStrictSendResultSuccess), @@ -33500,10 +32582,7 @@ impl WriteXdr for PathPaymentStrictSendResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ManageSellOfferResultCode { Success = 0, @@ -33671,10 +32750,7 @@ impl WriteXdr for ManageSellOfferResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ManageOfferEffect { Created = 0, @@ -33790,10 +32866,7 @@ impl WriteXdr for ManageOfferEffect { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ManageOfferSuccessResultOffer { Created(OfferEntry), @@ -33917,10 +32990,7 @@ impl WriteXdr for ManageOfferSuccessResultOffer { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ManageOfferSuccessResult { pub offers_claimed: VecM, pub offer: ManageOfferSuccessResultOffer, @@ -33980,10 +33050,7 @@ impl WriteXdr for ManageOfferSuccessResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ManageSellOfferResult { Success(ManageOfferSuccessResult), @@ -34193,10 +33260,7 @@ impl WriteXdr for ManageSellOfferResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ManageBuyOfferResultCode { Success = 0, @@ -34376,10 +33440,7 @@ impl WriteXdr for ManageBuyOfferResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ManageBuyOfferResult { Success(ManageOfferSuccessResult), @@ -34582,10 +33643,7 @@ impl WriteXdr for ManageBuyOfferResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum SetOptionsResultCode { Success = 0, @@ -34753,10 +33811,7 @@ impl WriteXdr for SetOptionsResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum SetOptionsResult { Success, @@ -34944,10 +33999,7 @@ impl WriteXdr for SetOptionsResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ChangeTrustResultCode { Success = 0, @@ -35103,10 +34155,7 @@ impl WriteXdr for ChangeTrustResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ChangeTrustResult { Success, @@ -35278,10 +34327,7 @@ impl WriteXdr for ChangeTrustResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum AllowTrustResultCode { Success = 0, @@ -35425,10 +34471,7 @@ impl WriteXdr for AllowTrustResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum AllowTrustResult { Success, @@ -35584,10 +34627,7 @@ impl WriteXdr for AllowTrustResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum AccountMergeResultCode { Success = 0, @@ -35737,10 +34777,7 @@ impl WriteXdr for AccountMergeResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum AccountMergeResult { Success(i64), @@ -35896,10 +34933,7 @@ impl WriteXdr for AccountMergeResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum InflationResultCode { Success = 0, @@ -36005,10 +35039,7 @@ impl WriteXdr for InflationResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct InflationPayout { pub destination: AccountId, pub amount: i64, @@ -36057,10 +35088,7 @@ impl WriteXdr for InflationPayout { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum InflationResult { Success(VecM), @@ -36176,10 +35204,7 @@ impl WriteXdr for InflationResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ManageDataResultCode { Success = 0, @@ -36311,10 +35336,7 @@ impl WriteXdr for ManageDataResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ManageDataResult { Success, @@ -36449,10 +35471,7 @@ impl WriteXdr for ManageDataResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum BumpSequenceResultCode { Success = 0, @@ -36563,10 +35582,7 @@ impl WriteXdr for BumpSequenceResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum BumpSequenceResult { Success, @@ -36679,10 +35695,7 @@ impl WriteXdr for BumpSequenceResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum CreateClaimableBalanceResultCode { Success = 0, @@ -36821,10 +35834,7 @@ impl WriteXdr for CreateClaimableBalanceResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum CreateClaimableBalanceResult { Success(ClaimableBalanceId), @@ -36971,10 +35981,7 @@ impl WriteXdr for CreateClaimableBalanceResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ClaimClaimableBalanceResultCode { Success = 0, @@ -37112,10 +36119,7 @@ impl WriteXdr for ClaimClaimableBalanceResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ClaimClaimableBalanceResult { Success, @@ -37261,10 +36265,7 @@ impl WriteXdr for ClaimClaimableBalanceResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum BeginSponsoringFutureReservesResultCode { Success = 0, @@ -37387,10 +36388,7 @@ impl WriteXdr for BeginSponsoringFutureReservesResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum BeginSponsoringFutureReservesResult { Success, @@ -37516,10 +36514,7 @@ impl WriteXdr for BeginSponsoringFutureReservesResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum EndSponsoringFutureReservesResultCode { Success = 0, @@ -37631,10 +36626,7 @@ impl WriteXdr for EndSponsoringFutureReservesResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum EndSponsoringFutureReservesResult { Success, @@ -37751,10 +36743,7 @@ impl WriteXdr for EndSponsoringFutureReservesResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum RevokeSponsorshipResultCode { Success = 0, @@ -37892,10 +36881,7 @@ impl WriteXdr for RevokeSponsorshipResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum RevokeSponsorshipResult { Success, @@ -38042,10 +37028,7 @@ impl WriteXdr for RevokeSponsorshipResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ClawbackResultCode { Success = 0, @@ -38177,10 +37160,7 @@ impl WriteXdr for ClawbackResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ClawbackResult { Success, @@ -38318,10 +37298,7 @@ impl WriteXdr for ClawbackResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ClawbackClaimableBalanceResultCode { Success = 0, @@ -38444,10 +37421,7 @@ impl WriteXdr for ClawbackClaimableBalanceResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ClawbackClaimableBalanceResult { Success, @@ -38578,10 +37552,7 @@ impl WriteXdr for ClawbackClaimableBalanceResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum SetTrustLineFlagsResultCode { Success = 0, @@ -38719,10 +37690,7 @@ impl WriteXdr for SetTrustLineFlagsResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum SetTrustLineFlagsResult { Success, @@ -38876,10 +37844,7 @@ impl WriteXdr for SetTrustLineFlagsResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum LiquidityPoolDepositResultCode { Success = 0, @@ -39029,10 +37994,7 @@ impl WriteXdr for LiquidityPoolDepositResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LiquidityPoolDepositResult { Success, @@ -39197,10 +38159,7 @@ impl WriteXdr for LiquidityPoolDepositResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum LiquidityPoolWithdrawResultCode { Success = 0, @@ -39338,10 +38297,7 @@ impl WriteXdr for LiquidityPoolWithdrawResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LiquidityPoolWithdrawResult { Success, @@ -39489,10 +38445,7 @@ impl WriteXdr for LiquidityPoolWithdrawResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum InvokeHostFunctionResultCode { Success = 0, @@ -39630,10 +38583,7 @@ impl WriteXdr for InvokeHostFunctionResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum InvokeHostFunctionResult { Success(Hash), @@ -39783,10 +38733,7 @@ impl WriteXdr for InvokeHostFunctionResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum ExtendFootprintTtlResultCode { Success = 0, @@ -39912,10 +38859,7 @@ impl WriteXdr for ExtendFootprintTtlResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ExtendFootprintTtlResult { Success, @@ -40051,10 +38995,7 @@ impl WriteXdr for ExtendFootprintTtlResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum RestoreFootprintResultCode { Success = 0, @@ -40180,10 +39121,7 @@ impl WriteXdr for RestoreFootprintResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum RestoreFootprintResult { Success, @@ -40320,10 +39258,7 @@ impl WriteXdr for RestoreFootprintResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum OperationResultCode { OpInner = 0, @@ -40512,10 +39447,7 @@ impl WriteXdr for OperationResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum OperationResultTr { CreateAccount(CreateAccountResult), @@ -40904,10 +39836,7 @@ impl WriteXdr for OperationResultTr { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum OperationResult { OpInner(OperationResultTr), @@ -41075,10 +40004,7 @@ impl WriteXdr for OperationResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum TransactionResultCode { TxFeeBumpInnerSuccess = 1, @@ -41294,10 +40220,7 @@ impl WriteXdr for TransactionResultCode { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum InnerTransactionResultResult { TxSuccess(VecM), @@ -41518,10 +40441,7 @@ impl WriteXdr for InnerTransactionResultResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum InnerTransactionResultExt { V0, @@ -41655,10 +40575,7 @@ impl WriteXdr for InnerTransactionResultExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct InnerTransactionResult { pub fee_charged: i64, pub result: InnerTransactionResultResult, @@ -41707,10 +40624,7 @@ impl WriteXdr for InnerTransactionResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct InnerTransactionResultPair { pub transaction_hash: Hash, pub result: InnerTransactionResult, @@ -41778,10 +40692,7 @@ impl WriteXdr for InnerTransactionResultPair { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TransactionResultResult { TxFeeBumpInnerSuccess(InnerTransactionResultPair), @@ -42020,10 +40931,7 @@ impl WriteXdr for TransactionResultResult { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum TransactionResultExt { V0, @@ -42158,10 +41066,7 @@ impl WriteXdr for TransactionResultExt { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct TransactionResult { pub fee_charged: i64, pub result: TransactionResultResult, @@ -42205,10 +41110,6 @@ impl WriteXdr for TransactionResult { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] pub struct Hash(pub [u8; 32]); impl core::fmt::Debug for Hash { @@ -42239,6 +41140,37 @@ impl core::str::FromStr for Hash { hex::decode(s).map_err(|_| Error::InvalidHex)?.try_into() } } +#[cfg(feature = "schemars")] +impl schemars::JsonSchema for Hash { + fn schema_name() -> String { + "Hash".to_string() + } + + fn is_referenceable() -> bool { + false + } + + fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { + let schema_ = String::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema_ { + schema.extensions.insert( + "contentEncoding".to_owned(), + serde_json::Value::String("hex".to_string()), + ); + schema.extensions.insert( + "contentMediaType".to_owned(), + serde_json::Value::String("application/binary".to_string()), + ); + mut_string(schema.into(), |string| schemars::schema::StringValidation { + max_length: Some(32 * 2), + min_length: Some(32 * 2), + ..string + }) + } else { + schema_ + } + } +} impl From for [u8; 32] { #[must_use] fn from(x: Hash) -> Self { @@ -42327,10 +41259,6 @@ impl AsRef<[u8]> for Hash { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] pub struct Uint256(pub [u8; 32]); impl core::fmt::Debug for Uint256 { @@ -42361,6 +41289,37 @@ impl core::str::FromStr for Uint256 { hex::decode(s).map_err(|_| Error::InvalidHex)?.try_into() } } +#[cfg(feature = "schemars")] +impl schemars::JsonSchema for Uint256 { + fn schema_name() -> String { + "Uint256".to_string() + } + + fn is_referenceable() -> bool { + false + } + + fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { + let schema_ = String::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema_ { + schema.extensions.insert( + "contentEncoding".to_owned(), + serde_json::Value::String("hex".to_string()), + ); + schema.extensions.insert( + "contentMediaType".to_owned(), + serde_json::Value::String("application/binary".to_string()), + ); + mut_string(schema.into(), |string| schemars::schema::StringValidation { + max_length: Some(32 * 2), + min_length: Some(32 * 2), + ..string + }) + } else { + schema_ + } + } +} impl From for [u8; 32] { #[must_use] fn from(x: Uint256) -> Self { @@ -42482,10 +41441,7 @@ pub type Int64 = i64; derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct TimePoint(pub u64); @@ -42541,10 +41497,7 @@ impl WriteXdr for TimePoint { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct Duration(pub u64); @@ -42605,10 +41558,7 @@ impl WriteXdr for Duration { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ExtensionPoint { V0, @@ -42714,10 +41664,7 @@ impl WriteXdr for ExtensionPoint { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum CryptoKeyType { Ed25519 = 0, @@ -42843,10 +41790,7 @@ impl WriteXdr for CryptoKeyType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum PublicKeyType { PublicKeyTypeEd25519 = 0, @@ -42951,10 +41895,7 @@ impl WriteXdr for PublicKeyType { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[repr(i32)] pub enum SignerKeyType { Ed25519 = 0, @@ -43071,10 +42012,7 @@ impl WriteXdr for SignerKeyType { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum PublicKey { PublicKeyTypeEd25519(Uint256), @@ -43177,10 +42115,7 @@ impl WriteXdr for PublicKey { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SignerKeyEd25519SignedPayload { pub ed25519: Uint256, pub payload: BytesM<64>, @@ -43240,10 +42175,7 @@ impl WriteXdr for SignerKeyEd25519SignedPayload { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum SignerKey { Ed25519(Uint256), @@ -43363,10 +42295,7 @@ impl WriteXdr for SignerKey { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct Signature(pub BytesM<64>); @@ -43470,10 +42399,6 @@ impl AsRef<[u8]> for Signature { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] pub struct SignatureHint(pub [u8; 4]); impl core::fmt::Debug for SignatureHint { @@ -43504,6 +42429,37 @@ impl core::str::FromStr for SignatureHint { hex::decode(s).map_err(|_| Error::InvalidHex)?.try_into() } } +#[cfg(feature = "schemars")] +impl schemars::JsonSchema for SignatureHint { + fn schema_name() -> String { + "SignatureHint".to_string() + } + + fn is_referenceable() -> bool { + false + } + + fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { + let schema_ = String::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema_ { + schema.extensions.insert( + "contentEncoding".to_owned(), + serde_json::Value::String("hex".to_string()), + ); + schema.extensions.insert( + "contentMediaType".to_owned(), + serde_json::Value::String("application/binary".to_string()), + ); + mut_string(schema.into(), |string| schemars::schema::StringValidation { + max_length: Some(4 * 2), + min_length: Some(4 * 2), + ..string + }) + } else { + schema_ + } + } +} impl From for [u8; 4] { #[must_use] fn from(x: SignatureHint) -> Self { @@ -43592,10 +42548,7 @@ impl AsRef<[u8]> for SignatureHint { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct NodeId(pub PublicKey); @@ -43650,10 +42603,7 @@ impl WriteXdr for NodeId { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct AccountId(pub PublicKey); @@ -43712,10 +42662,7 @@ impl WriteXdr for AccountId { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct Curve25519Secret { pub key: [u8; 32], } @@ -43757,10 +42704,7 @@ impl WriteXdr for Curve25519Secret { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct Curve25519Public { pub key: [u8; 32], } @@ -43802,10 +42746,7 @@ impl WriteXdr for Curve25519Public { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct HmacSha256Key { pub key: [u8; 32], } @@ -43847,10 +42788,7 @@ impl WriteXdr for HmacSha256Key { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct HmacSha256Mac { pub mac: [u8; 32], } @@ -43882,10 +42820,7 @@ impl WriteXdr for HmacSha256Mac { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub enum TypeVariant { Value, ScpBallot, @@ -46049,10 +44984,7 @@ impl core::str::FromStr for TypeVariant { serde(rename_all = "snake_case"), serde(untagged) )] -#[cfg_attr( - all(feature = "schemars", feature = "serde", feature = "alloc"), - derive(schemars::JsonSchema) -)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub enum Type { Value(Box), ScpBallot(Box), diff --git a/tests/serde_tx_schema.rs b/tests/serde_tx_schema.rs index 4da1775c..1c4a95fc 100644 --- a/tests/serde_tx_schema.rs +++ b/tests/serde_tx_schema.rs @@ -2,3433 +2,12 @@ #![cfg(all(feature = "schemars", feature = "serde", feature = "alloc"))] use stellar_xdr::curr as stellar_xdr; -use stellar_xdr::TransactionEnvelope; #[allow(clippy::too_many_lines)] #[test] fn test_serde_tx_schema() -> Result<(), Box> { - let schema = schemars::schema_for!(TransactionEnvelope); + let schema = schemars::schema_for!(stellar_xdr::ScVal); let s = serde_json::to_string_pretty(&schema)?; println!("{s}"); - assert_eq!( - s, - r##"{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "TransactionEnvelope", - "description": "TransactionEnvelope is an XDR Union defines as:\n\n```text union TransactionEnvelope switch (EnvelopeType type) { case ENVELOPE_TYPE_TX_V0: TransactionV0Envelope v0; case ENVELOPE_TYPE_TX: TransactionV1Envelope v1; case ENVELOPE_TYPE_TX_FEE_BUMP: FeeBumpTransactionEnvelope feeBump; }; ```", - "oneOf": [ - { - "type": "object", - "required": [ - "tx_v0" - ], - "properties": { - "tx_v0": { - "$ref": "#/definitions/TransactionV0Envelope" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "tx" - ], - "properties": { - "tx": { - "$ref": "#/definitions/TransactionV1Envelope" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "tx_fee_bump" - ], - "properties": { - "tx_fee_bump": { - "$ref": "#/definitions/FeeBumpTransactionEnvelope" - } - }, - "additionalProperties": false - } - ], - "definitions": { - "AccountId": { - "description": "AccountId is an XDR Typedef defines as:\n\n```text typedef PublicKey AccountID; ```", - "allOf": [ - { - "$ref": "#/definitions/PublicKey" - } - ] - }, - "AllowTrustOp": { - "description": "AllowTrustOp is an XDR Struct defines as:\n\n```text struct AllowTrustOp { AccountID trustor; AssetCode asset;\n\n// One of 0, AUTHORIZED_FLAG, or AUTHORIZED_TO_MAINTAIN_LIABILITIES_FLAG uint32 authorize; }; ```", - "type": "object", - "required": [ - "asset", - "authorize", - "trustor" - ], - "properties": { - "asset": { - "$ref": "#/definitions/AssetCode" - }, - "authorize": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "trustor": { - "$ref": "#/definitions/AccountId" - } - } - }, - "AlphaNum12": { - "description": "AlphaNum12 is an XDR Struct defines as:\n\n```text struct AlphaNum12 { AssetCode12 assetCode; AccountID issuer; }; ```", - "type": "object", - "required": [ - "asset_code", - "issuer" - ], - "properties": { - "asset_code": { - "$ref": "#/definitions/AssetCode12" - }, - "issuer": { - "$ref": "#/definitions/AccountId" - } - } - }, - "AlphaNum4": { - "description": "AlphaNum4 is an XDR Struct defines as:\n\n```text struct AlphaNum4 { AssetCode4 assetCode; AccountID issuer; }; ```", - "type": "object", - "required": [ - "asset_code", - "issuer" - ], - "properties": { - "asset_code": { - "$ref": "#/definitions/AssetCode4" - }, - "issuer": { - "$ref": "#/definitions/AccountId" - } - } - }, - "Asset": { - "description": "Asset is an XDR Union defines as:\n\n```text union Asset 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\n// add other asset types here in the future }; ```", - "oneOf": [ - { - "type": "string", - "enum": [ - "native" - ] - }, - { - "type": "object", - "required": [ - "credit_alphanum4" - ], - "properties": { - "credit_alphanum4": { - "$ref": "#/definitions/AlphaNum4" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "credit_alphanum12" - ], - "properties": { - "credit_alphanum12": { - "$ref": "#/definitions/AlphaNum12" - } - }, - "additionalProperties": false - } - ] - }, - "AssetCode": { - "description": "AssetCode is an XDR Union defines as:\n\n```text union AssetCode switch (AssetType type) { case ASSET_TYPE_CREDIT_ALPHANUM4: AssetCode4 assetCode4;\n\ncase ASSET_TYPE_CREDIT_ALPHANUM12: AssetCode12 assetCode12;\n\n// add other asset types here in the future }; ```", - "oneOf": [ - { - "type": "object", - "required": [ - "CreditAlphanum4" - ], - "properties": { - "CreditAlphanum4": { - "$ref": "#/definitions/AssetCode4" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "CreditAlphanum12" - ], - "properties": { - "CreditAlphanum12": { - "$ref": "#/definitions/AssetCode12" - } - }, - "additionalProperties": false - } - ] - }, - "AssetCode12": { - "description": "AssetCode12 is an XDR Typedef defines as:\n\n```text typedef opaque AssetCode12[12]; ```", - "type": "array", - "items": { - "type": "integer", - "format": "uint8", - "minimum": 0.0 - }, - "maxItems": 12, - "minItems": 12 - }, - "AssetCode4": { - "description": "AssetCode4 is an XDR Typedef defines as:\n\n```text typedef opaque AssetCode4[4]; ```", - "type": "array", - "items": { - "type": "integer", - "format": "uint8", - "minimum": 0.0 - }, - "maxItems": 4, - "minItems": 4 - }, - "BeginSponsoringFutureReservesOp": { - "description": "BeginSponsoringFutureReservesOp is an XDR Struct defines as:\n\n```text struct BeginSponsoringFutureReservesOp { AccountID sponsoredID; }; ```", - "type": "object", - "required": [ - "sponsored_id" - ], - "properties": { - "sponsored_id": { - "$ref": "#/definitions/AccountId" - } - } - }, - "BumpSequenceOp": { - "description": "BumpSequenceOp is an XDR Struct defines as:\n\n```text struct BumpSequenceOp { SequenceNumber bumpTo; }; ```", - "type": "object", - "required": [ - "bump_to" - ], - "properties": { - "bump_to": { - "$ref": "#/definitions/SequenceNumber" - } - } - }, - "BytesM_for_4294967295": { - "type": "array", - "items": { - "type": "integer", - "format": "uint8", - "minimum": 0.0 - } - }, - "BytesM_for_64": { - "type": "array", - "items": { - "type": "integer", - "format": "uint8", - "minimum": 0.0 - } - }, - "ChangeTrustAsset": { - "description": "ChangeTrustAsset is an XDR Union defines as:\n\n```text union ChangeTrustAsset 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: LiquidityPoolParameters liquidityPool;\n\n// add other asset types here in the future }; ```", - "oneOf": [ - { - "type": "string", - "enum": [ - "native" - ] - }, - { - "type": "object", - "required": [ - "credit_alphanum4" - ], - "properties": { - "credit_alphanum4": { - "$ref": "#/definitions/AlphaNum4" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "credit_alphanum12" - ], - "properties": { - "credit_alphanum12": { - "$ref": "#/definitions/AlphaNum12" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "pool_share" - ], - "properties": { - "pool_share": { - "$ref": "#/definitions/LiquidityPoolParameters" - } - }, - "additionalProperties": false - } - ] - }, - "ChangeTrustOp": { - "description": "ChangeTrustOp is an XDR Struct defines as:\n\n```text struct ChangeTrustOp { ChangeTrustAsset line;\n\n// if limit is set to 0, deletes the trust line int64 limit; }; ```", - "type": "object", - "required": [ - "limit", - "line" - ], - "properties": { - "limit": { - "type": "integer", - "format": "int64" - }, - "line": { - "$ref": "#/definitions/ChangeTrustAsset" - } - } - }, - "ClaimClaimableBalanceOp": { - "description": "ClaimClaimableBalanceOp is an XDR Struct defines as:\n\n```text struct ClaimClaimableBalanceOp { ClaimableBalanceID balanceID; }; ```", - "type": "object", - "required": [ - "balance_id" - ], - "properties": { - "balance_id": { - "$ref": "#/definitions/ClaimableBalanceId" - } - } - }, - "ClaimPredicate": { - "description": "ClaimPredicate is an XDR Union defines as:\n\n```text union ClaimPredicate switch (ClaimPredicateType type) { case CLAIM_PREDICATE_UNCONDITIONAL: void; case CLAIM_PREDICATE_AND: ClaimPredicate andPredicates<2>; case CLAIM_PREDICATE_OR: ClaimPredicate orPredicates<2>; case CLAIM_PREDICATE_NOT: ClaimPredicate* notPredicate; case CLAIM_PREDICATE_BEFORE_ABSOLUTE_TIME: int64 absBefore; // Predicate will be true if closeTime < absBefore case CLAIM_PREDICATE_BEFORE_RELATIVE_TIME: int64 relBefore; // Seconds since closeTime of the ledger in which the // ClaimableBalanceEntry was created }; ```", - "oneOf": [ - { - "type": "string", - "enum": [ - "unconditional" - ] - }, - { - "type": "object", - "required": [ - "and" - ], - "properties": { - "and": { - "$ref": "#/definitions/VecM_for_ClaimPredicate_and_2" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "or" - ], - "properties": { - "or": { - "$ref": "#/definitions/VecM_for_ClaimPredicate_and_2" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "not" - ], - "properties": { - "not": { - "anyOf": [ - { - "$ref": "#/definitions/ClaimPredicate" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "before_absolute_time" - ], - "properties": { - "before_absolute_time": { - "type": "integer", - "format": "int64" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "before_relative_time" - ], - "properties": { - "before_relative_time": { - "type": "integer", - "format": "int64" - } - }, - "additionalProperties": false - } - ] - }, - "ClaimableBalanceId": { - "description": "ClaimableBalanceId is an XDR Union defines as:\n\n```text union ClaimableBalanceID switch (ClaimableBalanceIDType type) { case CLAIMABLE_BALANCE_ID_TYPE_V0: Hash v0; }; ```", - "oneOf": [ - { - "type": "object", - "required": [ - "claimable_balance_id_type_v0" - ], - "properties": { - "claimable_balance_id_type_v0": { - "$ref": "#/definitions/Hash" - } - }, - "additionalProperties": false - } - ] - }, - "Claimant": { - "description": "Claimant is an XDR Union defines as:\n\n```text union Claimant switch (ClaimantType type) { case CLAIMANT_TYPE_V0: struct { AccountID destination; // The account that can use this condition ClaimPredicate predicate; // Claimable if predicate is true } v0; }; ```", - "oneOf": [ - { - "type": "object", - "required": [ - "claimant_type_v0" - ], - "properties": { - "claimant_type_v0": { - "$ref": "#/definitions/ClaimantV0" - } - }, - "additionalProperties": false - } - ] - }, - "ClaimantV0": { - "description": "ClaimantV0 is an XDR NestedStruct defines as:\n\n```text struct { AccountID destination; // The account that can use this condition ClaimPredicate predicate; // Claimable if predicate is true } ```", - "type": "object", - "required": [ - "destination", - "predicate" - ], - "properties": { - "destination": { - "$ref": "#/definitions/AccountId" - }, - "predicate": { - "$ref": "#/definitions/ClaimPredicate" - } - } - }, - "ClawbackClaimableBalanceOp": { - "description": "ClawbackClaimableBalanceOp is an XDR Struct defines as:\n\n```text struct ClawbackClaimableBalanceOp { ClaimableBalanceID balanceID; }; ```", - "type": "object", - "required": [ - "balance_id" - ], - "properties": { - "balance_id": { - "$ref": "#/definitions/ClaimableBalanceId" - } - } - }, - "ClawbackOp": { - "description": "ClawbackOp is an XDR Struct defines as:\n\n```text struct ClawbackOp { Asset asset; MuxedAccount from; int64 amount; }; ```", - "type": "object", - "required": [ - "amount", - "asset", - "from" - ], - "properties": { - "amount": { - "type": "integer", - "format": "int64" - }, - "asset": { - "$ref": "#/definitions/Asset" - }, - "from": { - "$ref": "#/definitions/MuxedAccount" - } - } - }, - "ConfigSettingId": { - "description": "ConfigSettingId is an XDR Enum defines as:\n\n```text enum ConfigSettingID { CONFIG_SETTING_CONTRACT_MAX_SIZE_BYTES = 0, CONFIG_SETTING_CONTRACT_COMPUTE_V0 = 1, CONFIG_SETTING_CONTRACT_LEDGER_COST_V0 = 2, CONFIG_SETTING_CONTRACT_HISTORICAL_DATA_V0 = 3, CONFIG_SETTING_CONTRACT_EVENTS_V0 = 4, CONFIG_SETTING_CONTRACT_BANDWIDTH_V0 = 5, CONFIG_SETTING_CONTRACT_COST_PARAMS_CPU_INSTRUCTIONS = 6, CONFIG_SETTING_CONTRACT_COST_PARAMS_MEMORY_BYTES = 7, CONFIG_SETTING_CONTRACT_DATA_KEY_SIZE_BYTES = 8, CONFIG_SETTING_CONTRACT_DATA_ENTRY_SIZE_BYTES = 9, CONFIG_SETTING_STATE_ARCHIVAL = 10, CONFIG_SETTING_CONTRACT_EXECUTION_LANES = 11, CONFIG_SETTING_BUCKETLIST_SIZE_WINDOW = 12, CONFIG_SETTING_EVICTION_ITERATOR = 13 }; ```", - "type": "string", - "enum": [ - "contract_max_size_bytes", - "contract_compute_v0", - "contract_ledger_cost_v0", - "contract_historical_data_v0", - "contract_events_v0", - "contract_bandwidth_v0", - "contract_cost_params_cpu_instructions", - "contract_cost_params_memory_bytes", - "contract_data_key_size_bytes", - "contract_data_entry_size_bytes", - "state_archival", - "contract_execution_lanes", - "bucketlist_size_window", - "eviction_iterator" - ] - }, - "ContractDataDurability": { - "description": "ContractDataDurability is an XDR Enum defines as:\n\n```text enum ContractDataDurability { TEMPORARY = 0, PERSISTENT = 1 }; ```", - "type": "string", - "enum": [ - "temporary", - "persistent" - ] - }, - "ContractExecutable": { - "description": "ContractExecutable is an XDR Union defines as:\n\n```text union ContractExecutable switch (ContractExecutableType type) { case CONTRACT_EXECUTABLE_WASM: Hash wasm_hash; case CONTRACT_EXECUTABLE_STELLAR_ASSET: void; }; ```", - "oneOf": [ - { - "type": "string", - "enum": [ - "stellar_asset" - ] - }, - { - "type": "object", - "required": [ - "wasm" - ], - "properties": { - "wasm": { - "$ref": "#/definitions/Hash" - } - }, - "additionalProperties": false - } - ] - }, - "ContractIdPreimage": { - "description": "ContractIdPreimage is an XDR Union defines as:\n\n```text union ContractIDPreimage switch (ContractIDPreimageType type) { case CONTRACT_ID_PREIMAGE_FROM_ADDRESS: struct { SCAddress address; uint256 salt; } fromAddress; case CONTRACT_ID_PREIMAGE_FROM_ASSET: Asset fromAsset; }; ```", - "oneOf": [ - { - "type": "object", - "required": [ - "address" - ], - "properties": { - "address": { - "$ref": "#/definitions/ContractIdPreimageFromAddress" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "asset" - ], - "properties": { - "asset": { - "$ref": "#/definitions/Asset" - } - }, - "additionalProperties": false - } - ] - }, - "ContractIdPreimageFromAddress": { - "description": "ContractIdPreimageFromAddress is an XDR NestedStruct defines as:\n\n```text struct { SCAddress address; uint256 salt; } ```", - "type": "object", - "required": [ - "address", - "salt" - ], - "properties": { - "address": { - "$ref": "#/definitions/ScAddress" - }, - "salt": { - "$ref": "#/definitions/Uint256" - } - } - }, - "CreateAccountOp": { - "description": "CreateAccountOp is an XDR Struct defines as:\n\n```text struct CreateAccountOp { AccountID destination; // account to create int64 startingBalance; // amount they end up with }; ```", - "type": "object", - "required": [ - "destination", - "starting_balance" - ], - "properties": { - "destination": { - "$ref": "#/definitions/AccountId" - }, - "starting_balance": { - "type": "integer", - "format": "int64" - } - } - }, - "CreateClaimableBalanceOp": { - "description": "CreateClaimableBalanceOp is an XDR Struct defines as:\n\n```text struct CreateClaimableBalanceOp { Asset asset; int64 amount; Claimant claimants<10>; }; ```", - "type": "object", - "required": [ - "amount", - "asset", - "claimants" - ], - "properties": { - "amount": { - "type": "integer", - "format": "int64" - }, - "asset": { - "$ref": "#/definitions/Asset" - }, - "claimants": { - "$ref": "#/definitions/VecM_for_Claimant_and_10" - } - } - }, - "CreateContractArgs": { - "description": "CreateContractArgs is an XDR Struct defines as:\n\n```text struct CreateContractArgs { ContractIDPreimage contractIDPreimage; ContractExecutable executable; }; ```", - "type": "object", - "required": [ - "contract_id_preimage", - "executable" - ], - "properties": { - "contract_id_preimage": { - "$ref": "#/definitions/ContractIdPreimage" - }, - "executable": { - "$ref": "#/definitions/ContractExecutable" - } - } - }, - "CreatePassiveSellOfferOp": { - "description": "CreatePassiveSellOfferOp is an XDR Struct defines as:\n\n```text struct CreatePassiveSellOfferOp { Asset selling; // A Asset buying; // B int64 amount; // amount taker gets Price price; // cost of A in terms of B }; ```", - "type": "object", - "required": [ - "amount", - "buying", - "price", - "selling" - ], - "properties": { - "amount": { - "type": "integer", - "format": "int64" - }, - "buying": { - "$ref": "#/definitions/Asset" - }, - "price": { - "$ref": "#/definitions/Price" - }, - "selling": { - "$ref": "#/definitions/Asset" - } - } - }, - "DataValue": { - "description": "DataValue is an XDR Typedef defines as:\n\n```text typedef opaque DataValue<64>; ```", - "allOf": [ - { - "$ref": "#/definitions/BytesM_for_64" - } - ] - }, - "DecoratedSignature": { - "description": "DecoratedSignature is an XDR Struct defines as:\n\n```text struct DecoratedSignature { SignatureHint hint; // last 4 bytes of the public key, used as a hint Signature signature; // actual signature }; ```", - "type": "object", - "required": [ - "hint", - "signature" - ], - "properties": { - "hint": { - "$ref": "#/definitions/SignatureHint" - }, - "signature": { - "$ref": "#/definitions/Signature" - } - } - }, - "Duration": { - "description": "Duration is an XDR Typedef defines as:\n\n```text typedef uint64 Duration; ```", - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "ExtendFootprintTtlOp": { - "description": "ExtendFootprintTtlOp is an XDR Struct defines as:\n\n```text struct ExtendFootprintTTLOp { ExtensionPoint ext; uint32 extendTo; }; ```", - "type": "object", - "required": [ - "ext", - "extend_to" - ], - "properties": { - "ext": { - "$ref": "#/definitions/ExtensionPoint" - }, - "extend_to": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - } - } - }, - "ExtensionPoint": { - "description": "ExtensionPoint is an XDR Union defines as:\n\n```text union ExtensionPoint switch (int v) { case 0: void; }; ```", - "type": "string", - "enum": [ - "v0" - ] - }, - "FeeBumpTransaction": { - "description": "FeeBumpTransaction is an XDR Struct defines as:\n\n```text struct FeeBumpTransaction { MuxedAccount feeSource; int64 fee; union switch (EnvelopeType type) { case ENVELOPE_TYPE_TX: TransactionV1Envelope v1; } innerTx; union switch (int v) { case 0: void; } ext; }; ```", - "type": "object", - "required": [ - "ext", - "fee", - "fee_source", - "inner_tx" - ], - "properties": { - "ext": { - "$ref": "#/definitions/FeeBumpTransactionExt" - }, - "fee": { - "type": "integer", - "format": "int64" - }, - "fee_source": { - "$ref": "#/definitions/MuxedAccount" - }, - "inner_tx": { - "$ref": "#/definitions/FeeBumpTransactionInnerTx" - } - } - }, - "FeeBumpTransactionEnvelope": { - "description": "FeeBumpTransactionEnvelope is an XDR Struct defines as:\n\n```text struct FeeBumpTransactionEnvelope { FeeBumpTransaction tx; /* Each decorated signature is a signature over the SHA256 hash of * a TransactionSignaturePayload */ DecoratedSignature signatures<20>; }; ```", - "type": "object", - "required": [ - "signatures", - "tx" - ], - "properties": { - "signatures": { - "$ref": "#/definitions/VecM_for_DecoratedSignature_and_20" - }, - "tx": { - "$ref": "#/definitions/FeeBumpTransaction" - } - } - }, - "FeeBumpTransactionExt": { - "description": "FeeBumpTransactionExt is an XDR NestedUnion defines as:\n\n```text union switch (int v) { case 0: void; } ```", - "type": "string", - "enum": [ - "v0" - ] - }, - "FeeBumpTransactionInnerTx": { - "description": "FeeBumpTransactionInnerTx is an XDR NestedUnion defines as:\n\n```text union switch (EnvelopeType type) { case ENVELOPE_TYPE_TX: TransactionV1Envelope v1; } ```", - "oneOf": [ - { - "type": "object", - "required": [ - "tx" - ], - "properties": { - "tx": { - "$ref": "#/definitions/TransactionV1Envelope" - } - }, - "additionalProperties": false - } - ] - }, - "Hash": { - "description": "Hash is an XDR Typedef defines as:\n\n```text typedef opaque Hash[32]; ```", - "type": "array", - "items": { - "type": "integer", - "format": "uint8", - "minimum": 0.0 - }, - "maxItems": 32, - "minItems": 32 - }, - "HostFunction": { - "description": "HostFunction is an XDR Union defines as:\n\n```text union HostFunction switch (HostFunctionType type) { case HOST_FUNCTION_TYPE_INVOKE_CONTRACT: InvokeContractArgs invokeContract; case HOST_FUNCTION_TYPE_CREATE_CONTRACT: CreateContractArgs createContract; case HOST_FUNCTION_TYPE_UPLOAD_CONTRACT_WASM: opaque wasm<>; }; ```", - "oneOf": [ - { - "type": "object", - "required": [ - "invoke_contract" - ], - "properties": { - "invoke_contract": { - "$ref": "#/definitions/InvokeContractArgs" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "create_contract" - ], - "properties": { - "create_contract": { - "$ref": "#/definitions/CreateContractArgs" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "upload_contract_wasm" - ], - "properties": { - "upload_contract_wasm": { - "$ref": "#/definitions/BytesM_for_4294967295" - } - }, - "additionalProperties": false - } - ] - }, - "Int128Parts": { - "description": "Int128Parts is an XDR Struct defines as:\n\n```text struct Int128Parts { int64 hi; uint64 lo; }; ```", - "type": "object", - "required": [ - "hi", - "lo" - ], - "properties": { - "hi": { - "type": "integer", - "format": "int64" - }, - "lo": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - } - } - }, - "Int256Parts": { - "description": "Int256Parts is an XDR Struct defines as:\n\n```text struct Int256Parts { int64 hi_hi; uint64 hi_lo; uint64 lo_hi; uint64 lo_lo; }; ```", - "type": "object", - "required": [ - "hi_hi", - "hi_lo", - "lo_hi", - "lo_lo" - ], - "properties": { - "hi_hi": { - "type": "integer", - "format": "int64" - }, - "hi_lo": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "lo_hi": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "lo_lo": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - } - } - }, - "InvokeContractArgs": { - "description": "InvokeContractArgs is an XDR Struct defines as:\n\n```text struct InvokeContractArgs { SCAddress contractAddress; SCSymbol functionName; SCVal args<>; }; ```", - "type": "object", - "required": [ - "args", - "contract_address", - "function_name" - ], - "properties": { - "args": { - "$ref": "#/definitions/VecM_for_ScVal_and_4294967295" - }, - "contract_address": { - "$ref": "#/definitions/ScAddress" - }, - "function_name": { - "$ref": "#/definitions/ScSymbol" - } - } - }, - "InvokeHostFunctionOp": { - "description": "InvokeHostFunctionOp is an XDR Struct defines as:\n\n```text struct InvokeHostFunctionOp { // Host function to invoke. HostFunction hostFunction; // Per-address authorizations for this host function. SorobanAuthorizationEntry auth<>; }; ```", - "type": "object", - "required": [ - "auth", - "host_function" - ], - "properties": { - "auth": { - "$ref": "#/definitions/VecM_for_SorobanAuthorizationEntry_and_4294967295" - }, - "host_function": { - "$ref": "#/definitions/HostFunction" - } - } - }, - "LedgerBounds": { - "description": "LedgerBounds is an XDR Struct defines as:\n\n```text struct LedgerBounds { uint32 minLedger; uint32 maxLedger; // 0 here means no maxLedger }; ```", - "type": "object", - "required": [ - "max_ledger", - "min_ledger" - ], - "properties": { - "max_ledger": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "min_ledger": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - } - } - }, - "LedgerFootprint": { - "description": "LedgerFootprint is an XDR Struct defines as:\n\n```text struct LedgerFootprint { LedgerKey readOnly<>; LedgerKey readWrite<>; }; ```", - "type": "object", - "required": [ - "read_only", - "read_write" - ], - "properties": { - "read_only": { - "$ref": "#/definitions/VecM_for_LedgerKey_and_4294967295" - }, - "read_write": { - "$ref": "#/definitions/VecM_for_LedgerKey_and_4294967295" - } - } - }, - "LedgerKey": { - "description": "LedgerKey is an XDR Union defines as:\n\n```text union LedgerKey switch (LedgerEntryType type) { case ACCOUNT: struct { AccountID accountID; } account;\n\ncase TRUSTLINE: struct { AccountID accountID; TrustLineAsset asset; } trustLine;\n\ncase OFFER: struct { AccountID sellerID; int64 offerID; } offer;\n\ncase DATA: struct { AccountID accountID; string64 dataName; } data;\n\ncase CLAIMABLE_BALANCE: struct { ClaimableBalanceID balanceID; } claimableBalance;\n\ncase LIQUIDITY_POOL: struct { PoolID liquidityPoolID; } liquidityPool; case CONTRACT_DATA: struct { SCAddress contract; SCVal key; ContractDataDurability durability; } contractData; case CONTRACT_CODE: struct { Hash hash; } contractCode; case CONFIG_SETTING: struct { ConfigSettingID configSettingID; } configSetting; case TTL: struct { // Hash of the LedgerKey that is associated with this TTLEntry Hash keyHash; } ttl; }; ```", - "oneOf": [ - { - "type": "object", - "required": [ - "account" - ], - "properties": { - "account": { - "$ref": "#/definitions/LedgerKeyAccount" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "trustline" - ], - "properties": { - "trustline": { - "$ref": "#/definitions/LedgerKeyTrustLine" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "offer" - ], - "properties": { - "offer": { - "$ref": "#/definitions/LedgerKeyOffer" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/definitions/LedgerKeyData" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "claimable_balance" - ], - "properties": { - "claimable_balance": { - "$ref": "#/definitions/LedgerKeyClaimableBalance" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "liquidity_pool" - ], - "properties": { - "liquidity_pool": { - "$ref": "#/definitions/LedgerKeyLiquidityPool" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "contract_data" - ], - "properties": { - "contract_data": { - "$ref": "#/definitions/LedgerKeyContractData" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "contract_code" - ], - "properties": { - "contract_code": { - "$ref": "#/definitions/LedgerKeyContractCode" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "config_setting" - ], - "properties": { - "config_setting": { - "$ref": "#/definitions/LedgerKeyConfigSetting" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "ttl" - ], - "properties": { - "ttl": { - "$ref": "#/definitions/LedgerKeyTtl" - } - }, - "additionalProperties": false - } - ] - }, - "LedgerKeyAccount": { - "description": "LedgerKeyAccount is an XDR NestedStruct defines as:\n\n```text struct { AccountID accountID; } ```", - "type": "object", - "required": [ - "account_id" - ], - "properties": { - "account_id": { - "$ref": "#/definitions/AccountId" - } - } - }, - "LedgerKeyClaimableBalance": { - "description": "LedgerKeyClaimableBalance is an XDR NestedStruct defines as:\n\n```text struct { ClaimableBalanceID balanceID; } ```", - "type": "object", - "required": [ - "balance_id" - ], - "properties": { - "balance_id": { - "$ref": "#/definitions/ClaimableBalanceId" - } - } - }, - "LedgerKeyConfigSetting": { - "description": "LedgerKeyConfigSetting is an XDR NestedStruct defines as:\n\n```text struct { ConfigSettingID configSettingID; } ```", - "type": "object", - "required": [ - "config_setting_id" - ], - "properties": { - "config_setting_id": { - "$ref": "#/definitions/ConfigSettingId" - } - } - }, - "LedgerKeyContractCode": { - "description": "LedgerKeyContractCode is an XDR NestedStruct defines as:\n\n```text struct { Hash hash; } ```", - "type": "object", - "required": [ - "hash" - ], - "properties": { - "hash": { - "$ref": "#/definitions/Hash" - } - } - }, - "LedgerKeyContractData": { - "description": "LedgerKeyContractData is an XDR NestedStruct defines as:\n\n```text struct { SCAddress contract; SCVal key; ContractDataDurability durability; } ```", - "type": "object", - "required": [ - "contract", - "durability", - "key" - ], - "properties": { - "contract": { - "$ref": "#/definitions/ScAddress" - }, - "durability": { - "$ref": "#/definitions/ContractDataDurability" - }, - "key": { - "$ref": "#/definitions/ScVal" - } - } - }, - "LedgerKeyData": { - "description": "LedgerKeyData is an XDR NestedStruct defines as:\n\n```text struct { AccountID accountID; string64 dataName; } ```", - "type": "object", - "required": [ - "account_id", - "data_name" - ], - "properties": { - "account_id": { - "$ref": "#/definitions/AccountId" - }, - "data_name": { - "$ref": "#/definitions/String64" - } - } - }, - "LedgerKeyLiquidityPool": { - "description": "LedgerKeyLiquidityPool is an XDR NestedStruct defines as:\n\n```text struct { PoolID liquidityPoolID; } ```", - "type": "object", - "required": [ - "liquidity_pool_id" - ], - "properties": { - "liquidity_pool_id": { - "$ref": "#/definitions/PoolId" - } - } - }, - "LedgerKeyOffer": { - "description": "LedgerKeyOffer is an XDR NestedStruct defines as:\n\n```text struct { AccountID sellerID; int64 offerID; } ```", - "type": "object", - "required": [ - "offer_id", - "seller_id" - ], - "properties": { - "offer_id": { - "type": "integer", - "format": "int64" - }, - "seller_id": { - "$ref": "#/definitions/AccountId" - } - } - }, - "LedgerKeyTrustLine": { - "description": "LedgerKeyTrustLine is an XDR NestedStruct defines as:\n\n```text struct { AccountID accountID; TrustLineAsset asset; } ```", - "type": "object", - "required": [ - "account_id", - "asset" - ], - "properties": { - "account_id": { - "$ref": "#/definitions/AccountId" - }, - "asset": { - "$ref": "#/definitions/TrustLineAsset" - } - } - }, - "LedgerKeyTtl": { - "description": "LedgerKeyTtl is an XDR NestedStruct defines as:\n\n```text struct { // Hash of the LedgerKey that is associated with this TTLEntry Hash keyHash; } ```", - "type": "object", - "required": [ - "key_hash" - ], - "properties": { - "key_hash": { - "$ref": "#/definitions/Hash" - } - } - }, - "LiquidityPoolConstantProductParameters": { - "description": "LiquidityPoolConstantProductParameters is an XDR Struct defines as:\n\n```text struct LiquidityPoolConstantProductParameters { Asset assetA; // assetA < assetB Asset assetB; int32 fee; // Fee is in basis points, so the actual rate is (fee/100)% }; ```", - "type": "object", - "required": [ - "asset_a", - "asset_b", - "fee" - ], - "properties": { - "asset_a": { - "$ref": "#/definitions/Asset" - }, - "asset_b": { - "$ref": "#/definitions/Asset" - }, - "fee": { - "type": "integer", - "format": "int32" - } - } - }, - "LiquidityPoolDepositOp": { - "description": "LiquidityPoolDepositOp is an XDR Struct defines as:\n\n```text struct LiquidityPoolDepositOp { PoolID liquidityPoolID; int64 maxAmountA; // maximum amount of first asset to deposit int64 maxAmountB; // maximum amount of second asset to deposit Price minPrice; // minimum depositA/depositB Price maxPrice; // maximum depositA/depositB }; ```", - "type": "object", - "required": [ - "liquidity_pool_id", - "max_amount_a", - "max_amount_b", - "max_price", - "min_price" - ], - "properties": { - "liquidity_pool_id": { - "$ref": "#/definitions/PoolId" - }, - "max_amount_a": { - "type": "integer", - "format": "int64" - }, - "max_amount_b": { - "type": "integer", - "format": "int64" - }, - "max_price": { - "$ref": "#/definitions/Price" - }, - "min_price": { - "$ref": "#/definitions/Price" - } - } - }, - "LiquidityPoolParameters": { - "description": "LiquidityPoolParameters is an XDR Union defines as:\n\n```text union LiquidityPoolParameters switch (LiquidityPoolType type) { case LIQUIDITY_POOL_CONSTANT_PRODUCT: LiquidityPoolConstantProductParameters constantProduct; }; ```", - "oneOf": [ - { - "type": "object", - "required": [ - "liquidity_pool_constant_product" - ], - "properties": { - "liquidity_pool_constant_product": { - "$ref": "#/definitions/LiquidityPoolConstantProductParameters" - } - }, - "additionalProperties": false - } - ] - }, - "LiquidityPoolWithdrawOp": { - "description": "LiquidityPoolWithdrawOp is an XDR Struct defines as:\n\n```text struct LiquidityPoolWithdrawOp { PoolID liquidityPoolID; int64 amount; // amount of pool shares to withdraw int64 minAmountA; // minimum amount of first asset to withdraw int64 minAmountB; // minimum amount of second asset to withdraw }; ```", - "type": "object", - "required": [ - "amount", - "liquidity_pool_id", - "min_amount_a", - "min_amount_b" - ], - "properties": { - "amount": { - "type": "integer", - "format": "int64" - }, - "liquidity_pool_id": { - "$ref": "#/definitions/PoolId" - }, - "min_amount_a": { - "type": "integer", - "format": "int64" - }, - "min_amount_b": { - "type": "integer", - "format": "int64" - } - } - }, - "ManageBuyOfferOp": { - "description": "ManageBuyOfferOp is an XDR Struct defines as:\n\n```text struct ManageBuyOfferOp { Asset selling; Asset buying; int64 buyAmount; // amount being bought. if set to 0, delete the offer Price price; // price of thing being bought in terms of what you are // selling\n\n// 0=create a new offer, otherwise edit an existing offer int64 offerID; }; ```", - "type": "object", - "required": [ - "buy_amount", - "buying", - "offer_id", - "price", - "selling" - ], - "properties": { - "buy_amount": { - "type": "integer", - "format": "int64" - }, - "buying": { - "$ref": "#/definitions/Asset" - }, - "offer_id": { - "type": "integer", - "format": "int64" - }, - "price": { - "$ref": "#/definitions/Price" - }, - "selling": { - "$ref": "#/definitions/Asset" - } - } - }, - "ManageDataOp": { - "description": "ManageDataOp is an XDR Struct defines as:\n\n```text struct ManageDataOp { string64 dataName; DataValue* dataValue; // set to null to clear }; ```", - "type": "object", - "required": [ - "data_name" - ], - "properties": { - "data_name": { - "$ref": "#/definitions/String64" - }, - "data_value": { - "anyOf": [ - { - "$ref": "#/definitions/DataValue" - }, - { - "type": "null" - } - ] - } - } - }, - "ManageSellOfferOp": { - "description": "ManageSellOfferOp is an XDR Struct defines as:\n\n```text struct ManageSellOfferOp { Asset selling; Asset buying; int64 amount; // amount being sold. if set to 0, delete the offer Price price; // price of thing being sold in terms of what you are buying\n\n// 0=create a new offer, otherwise edit an existing offer int64 offerID; }; ```", - "type": "object", - "required": [ - "amount", - "buying", - "offer_id", - "price", - "selling" - ], - "properties": { - "amount": { - "type": "integer", - "format": "int64" - }, - "buying": { - "$ref": "#/definitions/Asset" - }, - "offer_id": { - "type": "integer", - "format": "int64" - }, - "price": { - "$ref": "#/definitions/Price" - }, - "selling": { - "$ref": "#/definitions/Asset" - } - } - }, - "Memo": { - "description": "Memo is an XDR Union defines as:\n\n```text union Memo switch (MemoType type) { case MEMO_NONE: void; case MEMO_TEXT: string text<28>; case MEMO_ID: uint64 id; case MEMO_HASH: Hash hash; // the hash of what to pull from the content server case MEMO_RETURN: Hash retHash; // the hash of the tx you are rejecting }; ```", - "oneOf": [ - { - "type": "string", - "enum": [ - "none" - ] - }, - { - "type": "object", - "required": [ - "text" - ], - "properties": { - "text": { - "$ref": "#/definitions/StringM_for_28" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "hash" - ], - "properties": { - "hash": { - "$ref": "#/definitions/Hash" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "return" - ], - "properties": { - "return": { - "$ref": "#/definitions/Hash" - } - }, - "additionalProperties": false - } - ] - }, - "MuxedAccount": { - "description": "MuxedAccount is an XDR Union defines as:\n\n```text union MuxedAccount switch (CryptoKeyType type) { case KEY_TYPE_ED25519: uint256 ed25519; case KEY_TYPE_MUXED_ED25519: struct { uint64 id; uint256 ed25519; } med25519; }; ```", - "oneOf": [ - { - "type": "object", - "required": [ - "Ed25519" - ], - "properties": { - "Ed25519": { - "$ref": "#/definitions/Uint256" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "MuxedEd25519" - ], - "properties": { - "MuxedEd25519": { - "$ref": "#/definitions/MuxedAccountMed25519" - } - }, - "additionalProperties": false - } - ] - }, - "MuxedAccountMed25519": { - "description": "MuxedAccountMed25519 is an XDR NestedStruct defines as:\n\n```text struct { uint64 id; uint256 ed25519; } ```", - "type": "object", - "required": [ - "ed25519", - "id" - ], - "properties": { - "ed25519": { - "$ref": "#/definitions/Uint256" - }, - "id": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - } - } - }, - "Operation": { - "description": "Operation is an XDR Struct defines as:\n\n```text struct Operation { // sourceAccount is the account used to run the operation // if not set, the runtime defaults to \"sourceAccount\" specified at // the transaction level MuxedAccount* sourceAccount;\n\nunion switch (OperationType type) { case CREATE_ACCOUNT: CreateAccountOp createAccountOp; case PAYMENT: PaymentOp paymentOp; case PATH_PAYMENT_STRICT_RECEIVE: PathPaymentStrictReceiveOp pathPaymentStrictReceiveOp; case MANAGE_SELL_OFFER: ManageSellOfferOp manageSellOfferOp; case CREATE_PASSIVE_SELL_OFFER: CreatePassiveSellOfferOp createPassiveSellOfferOp; case SET_OPTIONS: SetOptionsOp setOptionsOp; case CHANGE_TRUST: ChangeTrustOp changeTrustOp; case ALLOW_TRUST: AllowTrustOp allowTrustOp; case ACCOUNT_MERGE: MuxedAccount destination; case INFLATION: void; case MANAGE_DATA: ManageDataOp manageDataOp; case BUMP_SEQUENCE: BumpSequenceOp bumpSequenceOp; case MANAGE_BUY_OFFER: ManageBuyOfferOp manageBuyOfferOp; case PATH_PAYMENT_STRICT_SEND: PathPaymentStrictSendOp pathPaymentStrictSendOp; case CREATE_CLAIMABLE_BALANCE: CreateClaimableBalanceOp createClaimableBalanceOp; case CLAIM_CLAIMABLE_BALANCE: ClaimClaimableBalanceOp claimClaimableBalanceOp; case BEGIN_SPONSORING_FUTURE_RESERVES: BeginSponsoringFutureReservesOp beginSponsoringFutureReservesOp; case END_SPONSORING_FUTURE_RESERVES: void; case REVOKE_SPONSORSHIP: RevokeSponsorshipOp revokeSponsorshipOp; case CLAWBACK: ClawbackOp clawbackOp; case CLAWBACK_CLAIMABLE_BALANCE: ClawbackClaimableBalanceOp clawbackClaimableBalanceOp; case SET_TRUST_LINE_FLAGS: SetTrustLineFlagsOp setTrustLineFlagsOp; case LIQUIDITY_POOL_DEPOSIT: LiquidityPoolDepositOp liquidityPoolDepositOp; case LIQUIDITY_POOL_WITHDRAW: LiquidityPoolWithdrawOp liquidityPoolWithdrawOp; case INVOKE_HOST_FUNCTION: InvokeHostFunctionOp invokeHostFunctionOp; case EXTEND_FOOTPRINT_TTL: ExtendFootprintTTLOp extendFootprintTTLOp; case RESTORE_FOOTPRINT: RestoreFootprintOp restoreFootprintOp; } body; }; ```", - "type": "object", - "required": [ - "body" - ], - "properties": { - "body": { - "$ref": "#/definitions/OperationBody" - }, - "source_account": { - "anyOf": [ - { - "$ref": "#/definitions/MuxedAccount" - }, - { - "type": "null" - } - ] - } - } - }, - "OperationBody": { - "description": "OperationBody is an XDR NestedUnion defines as:\n\n```text union switch (OperationType type) { case CREATE_ACCOUNT: CreateAccountOp createAccountOp; case PAYMENT: PaymentOp paymentOp; case PATH_PAYMENT_STRICT_RECEIVE: PathPaymentStrictReceiveOp pathPaymentStrictReceiveOp; case MANAGE_SELL_OFFER: ManageSellOfferOp manageSellOfferOp; case CREATE_PASSIVE_SELL_OFFER: CreatePassiveSellOfferOp createPassiveSellOfferOp; case SET_OPTIONS: SetOptionsOp setOptionsOp; case CHANGE_TRUST: ChangeTrustOp changeTrustOp; case ALLOW_TRUST: AllowTrustOp allowTrustOp; case ACCOUNT_MERGE: MuxedAccount destination; case INFLATION: void; case MANAGE_DATA: ManageDataOp manageDataOp; case BUMP_SEQUENCE: BumpSequenceOp bumpSequenceOp; case MANAGE_BUY_OFFER: ManageBuyOfferOp manageBuyOfferOp; case PATH_PAYMENT_STRICT_SEND: PathPaymentStrictSendOp pathPaymentStrictSendOp; case CREATE_CLAIMABLE_BALANCE: CreateClaimableBalanceOp createClaimableBalanceOp; case CLAIM_CLAIMABLE_BALANCE: ClaimClaimableBalanceOp claimClaimableBalanceOp; case BEGIN_SPONSORING_FUTURE_RESERVES: BeginSponsoringFutureReservesOp beginSponsoringFutureReservesOp; case END_SPONSORING_FUTURE_RESERVES: void; case REVOKE_SPONSORSHIP: RevokeSponsorshipOp revokeSponsorshipOp; case CLAWBACK: ClawbackOp clawbackOp; case CLAWBACK_CLAIMABLE_BALANCE: ClawbackClaimableBalanceOp clawbackClaimableBalanceOp; case SET_TRUST_LINE_FLAGS: SetTrustLineFlagsOp setTrustLineFlagsOp; case LIQUIDITY_POOL_DEPOSIT: LiquidityPoolDepositOp liquidityPoolDepositOp; case LIQUIDITY_POOL_WITHDRAW: LiquidityPoolWithdrawOp liquidityPoolWithdrawOp; case INVOKE_HOST_FUNCTION: InvokeHostFunctionOp invokeHostFunctionOp; case EXTEND_FOOTPRINT_TTL: ExtendFootprintTTLOp extendFootprintTTLOp; case RESTORE_FOOTPRINT: RestoreFootprintOp restoreFootprintOp; } ```", - "oneOf": [ - { - "type": "string", - "enum": [ - "inflation", - "end_sponsoring_future_reserves" - ] - }, - { - "type": "object", - "required": [ - "create_account" - ], - "properties": { - "create_account": { - "$ref": "#/definitions/CreateAccountOp" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "payment" - ], - "properties": { - "payment": { - "$ref": "#/definitions/PaymentOp" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "path_payment_strict_receive" - ], - "properties": { - "path_payment_strict_receive": { - "$ref": "#/definitions/PathPaymentStrictReceiveOp" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "manage_sell_offer" - ], - "properties": { - "manage_sell_offer": { - "$ref": "#/definitions/ManageSellOfferOp" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "create_passive_sell_offer" - ], - "properties": { - "create_passive_sell_offer": { - "$ref": "#/definitions/CreatePassiveSellOfferOp" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "set_options" - ], - "properties": { - "set_options": { - "$ref": "#/definitions/SetOptionsOp" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "change_trust" - ], - "properties": { - "change_trust": { - "$ref": "#/definitions/ChangeTrustOp" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "allow_trust" - ], - "properties": { - "allow_trust": { - "$ref": "#/definitions/AllowTrustOp" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "account_merge" - ], - "properties": { - "account_merge": { - "$ref": "#/definitions/MuxedAccount" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "manage_data" - ], - "properties": { - "manage_data": { - "$ref": "#/definitions/ManageDataOp" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "bump_sequence" - ], - "properties": { - "bump_sequence": { - "$ref": "#/definitions/BumpSequenceOp" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "manage_buy_offer" - ], - "properties": { - "manage_buy_offer": { - "$ref": "#/definitions/ManageBuyOfferOp" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "path_payment_strict_send" - ], - "properties": { - "path_payment_strict_send": { - "$ref": "#/definitions/PathPaymentStrictSendOp" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "create_claimable_balance" - ], - "properties": { - "create_claimable_balance": { - "$ref": "#/definitions/CreateClaimableBalanceOp" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "claim_claimable_balance" - ], - "properties": { - "claim_claimable_balance": { - "$ref": "#/definitions/ClaimClaimableBalanceOp" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "begin_sponsoring_future_reserves" - ], - "properties": { - "begin_sponsoring_future_reserves": { - "$ref": "#/definitions/BeginSponsoringFutureReservesOp" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "revoke_sponsorship" - ], - "properties": { - "revoke_sponsorship": { - "$ref": "#/definitions/RevokeSponsorshipOp" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "clawback" - ], - "properties": { - "clawback": { - "$ref": "#/definitions/ClawbackOp" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "clawback_claimable_balance" - ], - "properties": { - "clawback_claimable_balance": { - "$ref": "#/definitions/ClawbackClaimableBalanceOp" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "set_trust_line_flags" - ], - "properties": { - "set_trust_line_flags": { - "$ref": "#/definitions/SetTrustLineFlagsOp" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "liquidity_pool_deposit" - ], - "properties": { - "liquidity_pool_deposit": { - "$ref": "#/definitions/LiquidityPoolDepositOp" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "liquidity_pool_withdraw" - ], - "properties": { - "liquidity_pool_withdraw": { - "$ref": "#/definitions/LiquidityPoolWithdrawOp" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "invoke_host_function" - ], - "properties": { - "invoke_host_function": { - "$ref": "#/definitions/InvokeHostFunctionOp" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "extend_footprint_ttl" - ], - "properties": { - "extend_footprint_ttl": { - "$ref": "#/definitions/ExtendFootprintTtlOp" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "restore_footprint" - ], - "properties": { - "restore_footprint": { - "$ref": "#/definitions/RestoreFootprintOp" - } - }, - "additionalProperties": false - } - ] - }, - "PathPaymentStrictReceiveOp": { - "description": "PathPaymentStrictReceiveOp is an XDR Struct defines as:\n\n```text struct PathPaymentStrictReceiveOp { Asset sendAsset; // asset we pay with int64 sendMax; // the maximum amount of sendAsset to // send (excluding fees). // The operation will fail if can't be met\n\nMuxedAccount destination; // recipient of the payment Asset destAsset; // what they end up with int64 destAmount; // amount they end up with\n\nAsset path<5>; // additional hops it must go through to get there }; ```", - "type": "object", - "required": [ - "dest_amount", - "dest_asset", - "destination", - "path", - "send_asset", - "send_max" - ], - "properties": { - "dest_amount": { - "type": "integer", - "format": "int64" - }, - "dest_asset": { - "$ref": "#/definitions/Asset" - }, - "destination": { - "$ref": "#/definitions/MuxedAccount" - }, - "path": { - "$ref": "#/definitions/VecM_for_Asset_and_5" - }, - "send_asset": { - "$ref": "#/definitions/Asset" - }, - "send_max": { - "type": "integer", - "format": "int64" - } - } - }, - "PathPaymentStrictSendOp": { - "description": "PathPaymentStrictSendOp is an XDR Struct defines as:\n\n```text struct PathPaymentStrictSendOp { Asset sendAsset; // asset we pay with int64 sendAmount; // amount of sendAsset to send (excluding fees)\n\nMuxedAccount destination; // recipient of the payment Asset destAsset; // what they end up with int64 destMin; // the minimum amount of dest asset to // be received // The operation will fail if it can't be met\n\nAsset path<5>; // additional hops it must go through to get there }; ```", - "type": "object", - "required": [ - "dest_asset", - "dest_min", - "destination", - "path", - "send_amount", - "send_asset" - ], - "properties": { - "dest_asset": { - "$ref": "#/definitions/Asset" - }, - "dest_min": { - "type": "integer", - "format": "int64" - }, - "destination": { - "$ref": "#/definitions/MuxedAccount" - }, - "path": { - "$ref": "#/definitions/VecM_for_Asset_and_5" - }, - "send_amount": { - "type": "integer", - "format": "int64" - }, - "send_asset": { - "$ref": "#/definitions/Asset" - } - } - }, - "PaymentOp": { - "description": "PaymentOp is an XDR Struct defines as:\n\n```text struct PaymentOp { MuxedAccount destination; // recipient of the payment Asset asset; // what they end up with int64 amount; // amount they end up with }; ```", - "type": "object", - "required": [ - "amount", - "asset", - "destination" - ], - "properties": { - "amount": { - "type": "integer", - "format": "int64" - }, - "asset": { - "$ref": "#/definitions/Asset" - }, - "destination": { - "$ref": "#/definitions/MuxedAccount" - } - } - }, - "PoolId": { - "description": "PoolId is an XDR Typedef defines as:\n\n```text typedef Hash PoolID; ```", - "allOf": [ - { - "$ref": "#/definitions/Hash" - } - ] - }, - "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; }; ```", - "oneOf": [ - { - "type": "string", - "enum": [ - "none" - ] - }, - { - "type": "object", - "required": [ - "time" - ], - "properties": { - "time": { - "$ref": "#/definitions/TimeBounds" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "v2" - ], - "properties": { - "v2": { - "$ref": "#/definitions/PreconditionsV2" - } - }, - "additionalProperties": false - } - ] - }, - "PreconditionsV2": { - "description": "PreconditionsV2 is an XDR Struct defines as:\n\n```text struct PreconditionsV2 { TimeBounds* timeBounds;\n\n// Transaction only valid for ledger numbers n such that // minLedger <= n < maxLedger (if maxLedger == 0, then // only minLedger is checked) LedgerBounds* ledgerBounds;\n\n// If NULL, only valid when sourceAccount's sequence number // is seqNum - 1. Otherwise, valid when sourceAccount's // sequence number n satisfies minSeqNum <= n < tx.seqNum. // Note that after execution the account's sequence number // is always raised to tx.seqNum, and a transaction is not // valid if tx.seqNum is too high to ensure replay protection. SequenceNumber* minSeqNum;\n\n// For the transaction to be valid, the current ledger time must // be at least minSeqAge greater than sourceAccount's seqTime. Duration minSeqAge;\n\n// For the transaction to be valid, the current ledger number // must be at least minSeqLedgerGap greater than sourceAccount's // seqLedger. uint32 minSeqLedgerGap;\n\n// For the transaction to be valid, there must be a signature // corresponding to every Signer in this array, even if the // signature is not otherwise required by the sourceAccount or // operations. SignerKey extraSigners<2>; }; ```", - "type": "object", - "required": [ - "extra_signers", - "min_seq_age", - "min_seq_ledger_gap" - ], - "properties": { - "extra_signers": { - "$ref": "#/definitions/VecM_for_SignerKey_and_2" - }, - "ledger_bounds": { - "anyOf": [ - { - "$ref": "#/definitions/LedgerBounds" - }, - { - "type": "null" - } - ] - }, - "min_seq_age": { - "$ref": "#/definitions/Duration" - }, - "min_seq_ledger_gap": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "min_seq_num": { - "anyOf": [ - { - "$ref": "#/definitions/SequenceNumber" - }, - { - "type": "null" - } - ] - }, - "time_bounds": { - "anyOf": [ - { - "$ref": "#/definitions/TimeBounds" - }, - { - "type": "null" - } - ] - } - } - }, - "Price": { - "description": "Price is an XDR Struct defines as:\n\n```text struct Price { int32 n; // numerator int32 d; // denominator }; ```", - "type": "object", - "required": [ - "d", - "n" - ], - "properties": { - "d": { - "type": "integer", - "format": "int32" - }, - "n": { - "type": "integer", - "format": "int32" - } - } - }, - "PublicKey": { - "description": "PublicKey is an XDR Union defines as:\n\n```text union PublicKey switch (PublicKeyType type) { case PUBLIC_KEY_TYPE_ED25519: uint256 ed25519; }; ```", - "oneOf": [ - { - "type": "object", - "required": [ - "PublicKeyTypeEd25519" - ], - "properties": { - "PublicKeyTypeEd25519": { - "$ref": "#/definitions/Uint256" - } - }, - "additionalProperties": false - } - ] - }, - "RestoreFootprintOp": { - "description": "RestoreFootprintOp is an XDR Struct defines as:\n\n```text struct RestoreFootprintOp { ExtensionPoint ext; }; ```", - "type": "object", - "required": [ - "ext" - ], - "properties": { - "ext": { - "$ref": "#/definitions/ExtensionPoint" - } - } - }, - "RevokeSponsorshipOp": { - "description": "RevokeSponsorshipOp is an XDR Union defines as:\n\n```text union RevokeSponsorshipOp switch (RevokeSponsorshipType type) { case REVOKE_SPONSORSHIP_LEDGER_ENTRY: LedgerKey ledgerKey; case REVOKE_SPONSORSHIP_SIGNER: struct { AccountID accountID; SignerKey signerKey; } signer; }; ```", - "oneOf": [ - { - "type": "object", - "required": [ - "ledger_entry" - ], - "properties": { - "ledger_entry": { - "$ref": "#/definitions/LedgerKey" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "signer" - ], - "properties": { - "signer": { - "$ref": "#/definitions/RevokeSponsorshipOpSigner" - } - }, - "additionalProperties": false - } - ] - }, - "RevokeSponsorshipOpSigner": { - "description": "RevokeSponsorshipOpSigner is an XDR NestedStruct defines as:\n\n```text struct { AccountID accountID; SignerKey signerKey; } ```", - "type": "object", - "required": [ - "account_id", - "signer_key" - ], - "properties": { - "account_id": { - "$ref": "#/definitions/AccountId" - }, - "signer_key": { - "$ref": "#/definitions/SignerKey" - } - } - }, - "ScAddress": { - "description": "ScAddress is an XDR Union defines as:\n\n```text union SCAddress switch (SCAddressType type) { case SC_ADDRESS_TYPE_ACCOUNT: AccountID accountId; case SC_ADDRESS_TYPE_CONTRACT: Hash contractId; }; ```", - "oneOf": [ - { - "type": "object", - "required": [ - "Account" - ], - "properties": { - "Account": { - "$ref": "#/definitions/AccountId" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "Contract" - ], - "properties": { - "Contract": { - "$ref": "#/definitions/Hash" - } - }, - "additionalProperties": false - } - ] - }, - "ScBytes": { - "description": "ScBytes is an XDR Typedef defines as:\n\n```text typedef opaque SCBytes<>; ```", - "allOf": [ - { - "$ref": "#/definitions/BytesM_for_4294967295" - } - ] - }, - "ScContractInstance": { - "description": "ScContractInstance is an XDR Struct defines as:\n\n```text struct SCContractInstance { ContractExecutable executable; SCMap* storage; }; ```", - "type": "object", - "required": [ - "executable" - ], - "properties": { - "executable": { - "$ref": "#/definitions/ContractExecutable" - }, - "storage": { - "anyOf": [ - { - "$ref": "#/definitions/ScMap" - }, - { - "type": "null" - } - ] - } - } - }, - "ScError": { - "description": "ScError is an XDR Union defines as:\n\n```text union SCError switch (SCErrorType type) { case SCE_CONTRACT: uint32 contractCode; case SCE_WASM_VM: case SCE_CONTEXT: case SCE_STORAGE: case SCE_OBJECT: case SCE_CRYPTO: case SCE_EVENTS: case SCE_BUDGET: case SCE_VALUE: case SCE_AUTH: SCErrorCode code; }; ```", - "oneOf": [ - { - "type": "object", - "required": [ - "contract" - ], - "properties": { - "contract": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "wasm_vm" - ], - "properties": { - "wasm_vm": { - "$ref": "#/definitions/ScErrorCode" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "context" - ], - "properties": { - "context": { - "$ref": "#/definitions/ScErrorCode" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "storage" - ], - "properties": { - "storage": { - "$ref": "#/definitions/ScErrorCode" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "object" - ], - "properties": { - "object": { - "$ref": "#/definitions/ScErrorCode" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "crypto" - ], - "properties": { - "crypto": { - "$ref": "#/definitions/ScErrorCode" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "events" - ], - "properties": { - "events": { - "$ref": "#/definitions/ScErrorCode" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "budget" - ], - "properties": { - "budget": { - "$ref": "#/definitions/ScErrorCode" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "value" - ], - "properties": { - "value": { - "$ref": "#/definitions/ScErrorCode" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "auth" - ], - "properties": { - "auth": { - "$ref": "#/definitions/ScErrorCode" - } - }, - "additionalProperties": false - } - ] - }, - "ScErrorCode": { - "description": "ScErrorCode is an XDR Enum defines as:\n\n```text enum SCErrorCode { SCEC_ARITH_DOMAIN = 0, // Some arithmetic was undefined (overflow, divide-by-zero). SCEC_INDEX_BOUNDS = 1, // Something was indexed beyond its bounds. SCEC_INVALID_INPUT = 2, // User provided some otherwise-bad data. SCEC_MISSING_VALUE = 3, // Some value was required but not provided. SCEC_EXISTING_VALUE = 4, // Some value was provided where not allowed. SCEC_EXCEEDED_LIMIT = 5, // Some arbitrary limit -- gas or otherwise -- was hit. SCEC_INVALID_ACTION = 6, // Data was valid but action requested was not. SCEC_INTERNAL_ERROR = 7, // The host detected an error in its own logic. SCEC_UNEXPECTED_TYPE = 8, // Some type wasn't as expected. SCEC_UNEXPECTED_SIZE = 9 // Something's size wasn't as expected. }; ```", - "type": "string", - "enum": [ - "arith_domain", - "index_bounds", - "invalid_input", - "missing_value", - "existing_value", - "exceeded_limit", - "invalid_action", - "internal_error", - "unexpected_type", - "unexpected_size" - ] - }, - "ScMap": { - "description": "ScMap is an XDR Typedef defines as:\n\n```text typedef SCMapEntry SCMap<>; ```", - "allOf": [ - { - "$ref": "#/definitions/VecM_for_ScMapEntry_and_4294967295" - } - ] - }, - "ScMapEntry": { - "description": "ScMapEntry is an XDR Struct defines as:\n\n```text struct SCMapEntry { SCVal key; SCVal val; }; ```", - "type": "object", - "required": [ - "key", - "val" - ], - "properties": { - "key": { - "$ref": "#/definitions/ScVal" - }, - "val": { - "$ref": "#/definitions/ScVal" - } - } - }, - "ScNonceKey": { - "description": "ScNonceKey is an XDR Struct defines as:\n\n```text struct SCNonceKey { int64 nonce; }; ```", - "type": "object", - "required": [ - "nonce" - ], - "properties": { - "nonce": { - "type": "integer", - "format": "int64" - } - } - }, - "ScString": { - "description": "ScString is an XDR Typedef defines as:\n\n```text typedef string SCString<>; ```", - "allOf": [ - { - "$ref": "#/definitions/StringM_for_4294967295" - } - ] - }, - "ScSymbol": { - "description": "ScSymbol is an XDR Typedef defines as:\n\n```text typedef string SCSymbol; ```", - "allOf": [ - { - "$ref": "#/definitions/StringM_for_32" - } - ] - }, - "ScVal": { - "description": "ScVal is an XDR Union defines as:\n\n```text union SCVal switch (SCValType type) {\n\ncase SCV_BOOL: bool b; case SCV_VOID: void; case SCV_ERROR: SCError error;\n\ncase SCV_U32: uint32 u32; case SCV_I32: int32 i32;\n\ncase SCV_U64: uint64 u64; case SCV_I64: int64 i64; case SCV_TIMEPOINT: TimePoint timepoint; case SCV_DURATION: Duration duration;\n\ncase SCV_U128: UInt128Parts u128; case SCV_I128: Int128Parts i128;\n\ncase SCV_U256: UInt256Parts u256; case SCV_I256: Int256Parts i256;\n\ncase SCV_BYTES: SCBytes bytes; case SCV_STRING: SCString str; case SCV_SYMBOL: SCSymbol sym;\n\n// Vec and Map are recursive so need to live // behind an option, due to xdrpp limitations. case SCV_VEC: SCVec *vec; case SCV_MAP: SCMap *map;\n\ncase SCV_ADDRESS: SCAddress address;\n\n// Special SCVals reserved for system-constructed contract-data // ledger keys, not generally usable elsewhere. case SCV_LEDGER_KEY_CONTRACT_INSTANCE: void; case SCV_LEDGER_KEY_NONCE: SCNonceKey nonce_key;\n\ncase SCV_CONTRACT_INSTANCE: SCContractInstance instance; }; ```", - "oneOf": [ - { - "type": "string", - "enum": [ - "void", - "ledger_key_contract_instance" - ] - }, - { - "type": "object", - "required": [ - "bool" - ], - "properties": { - "bool": { - "type": "boolean" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "error" - ], - "properties": { - "error": { - "$ref": "#/definitions/ScError" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "u32" - ], - "properties": { - "u32": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "i32" - ], - "properties": { - "i32": { - "type": "integer", - "format": "int32" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "u64" - ], - "properties": { - "u64": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "i64" - ], - "properties": { - "i64": { - "type": "integer", - "format": "int64" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "timepoint" - ], - "properties": { - "timepoint": { - "$ref": "#/definitions/TimePoint" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "duration" - ], - "properties": { - "duration": { - "$ref": "#/definitions/Duration" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "u128" - ], - "properties": { - "u128": { - "$ref": "#/definitions/UInt128Parts" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "i128" - ], - "properties": { - "i128": { - "$ref": "#/definitions/Int128Parts" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "u256" - ], - "properties": { - "u256": { - "$ref": "#/definitions/UInt256Parts" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "i256" - ], - "properties": { - "i256": { - "$ref": "#/definitions/Int256Parts" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "bytes" - ], - "properties": { - "bytes": { - "$ref": "#/definitions/ScBytes" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "string" - ], - "properties": { - "string": { - "$ref": "#/definitions/ScString" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "symbol" - ], - "properties": { - "symbol": { - "$ref": "#/definitions/ScSymbol" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "vec" - ], - "properties": { - "vec": { - "anyOf": [ - { - "$ref": "#/definitions/ScVec" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "map" - ], - "properties": { - "map": { - "anyOf": [ - { - "$ref": "#/definitions/ScMap" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "address" - ], - "properties": { - "address": { - "$ref": "#/definitions/ScAddress" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "ledger_key_nonce" - ], - "properties": { - "ledger_key_nonce": { - "$ref": "#/definitions/ScNonceKey" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "contract_instance" - ], - "properties": { - "contract_instance": { - "$ref": "#/definitions/ScContractInstance" - } - }, - "additionalProperties": false - } - ] - }, - "ScVec": { - "description": "ScVec is an XDR Typedef defines as:\n\n```text typedef SCVal SCVec<>; ```", - "allOf": [ - { - "$ref": "#/definitions/VecM_for_ScVal_and_4294967295" - } - ] - }, - "SequenceNumber": { - "description": "SequenceNumber is an XDR Typedef defines as:\n\n```text typedef int64 SequenceNumber; ```", - "type": "integer", - "format": "int64" - }, - "SetOptionsOp": { - "description": "SetOptionsOp is an XDR Struct defines as:\n\n```text struct SetOptionsOp { AccountID* inflationDest; // sets the inflation destination\n\nuint32* clearFlags; // which flags to clear uint32* setFlags; // which flags to set\n\n// account threshold manipulation uint32* masterWeight; // weight of the master account uint32* lowThreshold; uint32* medThreshold; uint32* highThreshold;\n\nstring32* homeDomain; // sets the home domain\n\n// Add, update or remove a signer for the account // signer is deleted if the weight is 0 Signer* signer; }; ```", - "type": "object", - "properties": { - "clear_flags": { - "type": [ - "integer", - "null" - ], - "format": "uint32", - "minimum": 0.0 - }, - "high_threshold": { - "type": [ - "integer", - "null" - ], - "format": "uint32", - "minimum": 0.0 - }, - "home_domain": { - "anyOf": [ - { - "$ref": "#/definitions/String32" - }, - { - "type": "null" - } - ] - }, - "inflation_dest": { - "anyOf": [ - { - "$ref": "#/definitions/AccountId" - }, - { - "type": "null" - } - ] - }, - "low_threshold": { - "type": [ - "integer", - "null" - ], - "format": "uint32", - "minimum": 0.0 - }, - "master_weight": { - "type": [ - "integer", - "null" - ], - "format": "uint32", - "minimum": 0.0 - }, - "med_threshold": { - "type": [ - "integer", - "null" - ], - "format": "uint32", - "minimum": 0.0 - }, - "set_flags": { - "type": [ - "integer", - "null" - ], - "format": "uint32", - "minimum": 0.0 - }, - "signer": { - "anyOf": [ - { - "$ref": "#/definitions/Signer" - }, - { - "type": "null" - } - ] - } - } - }, - "SetTrustLineFlagsOp": { - "description": "SetTrustLineFlagsOp is an XDR Struct defines as:\n\n```text struct SetTrustLineFlagsOp { AccountID trustor; Asset asset;\n\nuint32 clearFlags; // which flags to clear uint32 setFlags; // which flags to set }; ```", - "type": "object", - "required": [ - "asset", - "clear_flags", - "set_flags", - "trustor" - ], - "properties": { - "asset": { - "$ref": "#/definitions/Asset" - }, - "clear_flags": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "set_flags": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "trustor": { - "$ref": "#/definitions/AccountId" - } - } - }, - "Signature": { - "description": "Signature is an XDR Typedef defines as:\n\n```text typedef opaque Signature<64>; ```", - "allOf": [ - { - "$ref": "#/definitions/BytesM_for_64" - } - ] - }, - "SignatureHint": { - "description": "SignatureHint is an XDR Typedef defines as:\n\n```text typedef opaque SignatureHint[4]; ```", - "type": "array", - "items": { - "type": "integer", - "format": "uint8", - "minimum": 0.0 - }, - "maxItems": 4, - "minItems": 4 - }, - "Signer": { - "description": "Signer is an XDR Struct defines as:\n\n```text struct Signer { SignerKey key; uint32 weight; // really only need 1 byte }; ```", - "type": "object", - "required": [ - "key", - "weight" - ], - "properties": { - "key": { - "$ref": "#/definitions/SignerKey" - }, - "weight": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - } - } - }, - "SignerKey": { - "description": "SignerKey is an XDR Union defines as:\n\n```text union SignerKey switch (SignerKeyType type) { case SIGNER_KEY_TYPE_ED25519: uint256 ed25519; case SIGNER_KEY_TYPE_PRE_AUTH_TX: /* SHA-256 Hash of TransactionSignaturePayload structure */ uint256 preAuthTx; case SIGNER_KEY_TYPE_HASH_X: /* Hash of random 256 bit preimage X */ uint256 hashX; case SIGNER_KEY_TYPE_ED25519_SIGNED_PAYLOAD: struct { /* Public key that must sign the payload. */ uint256 ed25519; /* Payload to be raw signed by ed25519. */ opaque payload<64>; } ed25519SignedPayload; }; ```", - "oneOf": [ - { - "type": "object", - "required": [ - "Ed25519" - ], - "properties": { - "Ed25519": { - "$ref": "#/definitions/Uint256" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "PreAuthTx" - ], - "properties": { - "PreAuthTx": { - "$ref": "#/definitions/Uint256" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "HashX" - ], - "properties": { - "HashX": { - "$ref": "#/definitions/Uint256" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "Ed25519SignedPayload" - ], - "properties": { - "Ed25519SignedPayload": { - "$ref": "#/definitions/SignerKeyEd25519SignedPayload" - } - }, - "additionalProperties": false - } - ] - }, - "SignerKeyEd25519SignedPayload": { - "description": "SignerKeyEd25519SignedPayload is an XDR NestedStruct defines as:\n\n```text struct { /* Public key that must sign the payload. */ uint256 ed25519; /* Payload to be raw signed by ed25519. */ opaque payload<64>; } ```", - "type": "object", - "required": [ - "ed25519", - "payload" - ], - "properties": { - "ed25519": { - "$ref": "#/definitions/Uint256" - }, - "payload": { - "$ref": "#/definitions/BytesM_for_64" - } - } - }, - "SorobanAddressCredentials": { - "description": "SorobanAddressCredentials is an XDR Struct defines as:\n\n```text struct SorobanAddressCredentials { SCAddress address; int64 nonce; uint32 signatureExpirationLedger; SCVal signature; }; ```", - "type": "object", - "required": [ - "address", - "nonce", - "signature", - "signature_expiration_ledger" - ], - "properties": { - "address": { - "$ref": "#/definitions/ScAddress" - }, - "nonce": { - "type": "integer", - "format": "int64" - }, - "signature": { - "$ref": "#/definitions/ScVal" - }, - "signature_expiration_ledger": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - } - } - }, - "SorobanAuthorizationEntry": { - "description": "SorobanAuthorizationEntry is an XDR Struct defines as:\n\n```text struct SorobanAuthorizationEntry { SorobanCredentials credentials; SorobanAuthorizedInvocation rootInvocation; }; ```", - "type": "object", - "required": [ - "credentials", - "root_invocation" - ], - "properties": { - "credentials": { - "$ref": "#/definitions/SorobanCredentials" - }, - "root_invocation": { - "$ref": "#/definitions/SorobanAuthorizedInvocation" - } - } - }, - "SorobanAuthorizedFunction": { - "description": "SorobanAuthorizedFunction is an XDR Union defines as:\n\n```text union SorobanAuthorizedFunction switch (SorobanAuthorizedFunctionType type) { case SOROBAN_AUTHORIZED_FUNCTION_TYPE_CONTRACT_FN: InvokeContractArgs contractFn; case SOROBAN_AUTHORIZED_FUNCTION_TYPE_CREATE_CONTRACT_HOST_FN: CreateContractArgs createContractHostFn; }; ```", - "oneOf": [ - { - "type": "object", - "required": [ - "contract_fn" - ], - "properties": { - "contract_fn": { - "$ref": "#/definitions/InvokeContractArgs" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "create_contract_host_fn" - ], - "properties": { - "create_contract_host_fn": { - "$ref": "#/definitions/CreateContractArgs" - } - }, - "additionalProperties": false - } - ] - }, - "SorobanAuthorizedInvocation": { - "description": "SorobanAuthorizedInvocation is an XDR Struct defines as:\n\n```text struct SorobanAuthorizedInvocation { SorobanAuthorizedFunction function; SorobanAuthorizedInvocation subInvocations<>; }; ```", - "type": "object", - "required": [ - "function", - "sub_invocations" - ], - "properties": { - "function": { - "$ref": "#/definitions/SorobanAuthorizedFunction" - }, - "sub_invocations": { - "$ref": "#/definitions/VecM_for_SorobanAuthorizedInvocation_and_4294967295" - } - } - }, - "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defines as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", - "oneOf": [ - { - "type": "string", - "enum": [ - "source_account" - ] - }, - { - "type": "object", - "required": [ - "address" - ], - "properties": { - "address": { - "$ref": "#/definitions/SorobanAddressCredentials" - } - }, - "additionalProperties": false - } - ] - }, - "SorobanResources": { - "description": "SorobanResources is an XDR Struct defines as:\n\n```text struct SorobanResources { // The ledger footprint of the transaction. LedgerFootprint footprint; // The maximum number of instructions this transaction can use uint32 instructions;\n\n// The maximum number of bytes this transaction can read from ledger uint32 readBytes; // The maximum number of bytes this transaction can write to ledger uint32 writeBytes; }; ```", - "type": "object", - "required": [ - "footprint", - "instructions", - "read_bytes", - "write_bytes" - ], - "properties": { - "footprint": { - "$ref": "#/definitions/LedgerFootprint" - }, - "instructions": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "read_bytes": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "write_bytes": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - } - } - }, - "SorobanTransactionData": { - "description": "SorobanTransactionData is an XDR Struct defines as:\n\n```text struct SorobanTransactionData { ExtensionPoint ext; SorobanResources resources; // Amount of the transaction `fee` allocated to the Soroban resource fees. // The fraction of `resourceFee` corresponding to `resources` specified // above is *not* refundable (i.e. fees for instructions, ledger I/O), as // well as fees for the transaction size. // The remaining part of the fee is refundable and the charged value is // based on the actual consumption of refundable resources (events, ledger // rent bumps). // The `inclusionFee` used for prioritization of the transaction is defined // as `tx.fee - resourceFee`. int64 resourceFee; }; ```", - "type": "object", - "required": [ - "ext", - "resource_fee", - "resources" - ], - "properties": { - "ext": { - "$ref": "#/definitions/ExtensionPoint" - }, - "resource_fee": { - "type": "integer", - "format": "int64" - }, - "resources": { - "$ref": "#/definitions/SorobanResources" - } - } - }, - "String32": { - "description": "String32 is an XDR Typedef defines as:\n\n```text typedef string string32<32>; ```", - "allOf": [ - { - "$ref": "#/definitions/StringM_for_32" - } - ] - }, - "String64": { - "description": "String64 is an XDR Typedef defines as:\n\n```text typedef string string64<64>; ```", - "allOf": [ - { - "$ref": "#/definitions/StringM_for_64" - } - ] - }, - "StringM_for_28": { - "description": "A string type that contains arbitrary bytes.\n\nConvertible, fallibly, to/from a Rust UTF-8 String using [`TryFrom`]/[`TryInto`]/[`StringM::to_utf8_string`].\n\nConvertible, lossyly, to a Rust UTF-8 String using [`StringM::to_utf8_string_lossy`].\n\nConvertible to/from escaped printable-ASCII using [`Display`]/[`ToString`]/[`FromStr`].", - "type": "array", - "items": { - "type": "integer", - "format": "uint8", - "minimum": 0.0 - } - }, - "StringM_for_32": { - "description": "A string type that contains arbitrary bytes.\n\nConvertible, fallibly, to/from a Rust UTF-8 String using [`TryFrom`]/[`TryInto`]/[`StringM::to_utf8_string`].\n\nConvertible, lossyly, to a Rust UTF-8 String using [`StringM::to_utf8_string_lossy`].\n\nConvertible to/from escaped printable-ASCII using [`Display`]/[`ToString`]/[`FromStr`].", - "type": "array", - "items": { - "type": "integer", - "format": "uint8", - "minimum": 0.0 - } - }, - "StringM_for_4294967295": { - "description": "A string type that contains arbitrary bytes.\n\nConvertible, fallibly, to/from a Rust UTF-8 String using [`TryFrom`]/[`TryInto`]/[`StringM::to_utf8_string`].\n\nConvertible, lossyly, to a Rust UTF-8 String using [`StringM::to_utf8_string_lossy`].\n\nConvertible to/from escaped printable-ASCII using [`Display`]/[`ToString`]/[`FromStr`].", - "type": "array", - "items": { - "type": "integer", - "format": "uint8", - "minimum": 0.0 - } - }, - "StringM_for_64": { - "description": "A string type that contains arbitrary bytes.\n\nConvertible, fallibly, to/from a Rust UTF-8 String using [`TryFrom`]/[`TryInto`]/[`StringM::to_utf8_string`].\n\nConvertible, lossyly, to a Rust UTF-8 String using [`StringM::to_utf8_string_lossy`].\n\nConvertible to/from escaped printable-ASCII using [`Display`]/[`ToString`]/[`FromStr`].", - "type": "array", - "items": { - "type": "integer", - "format": "uint8", - "minimum": 0.0 - } - }, - "TimeBounds": { - "description": "TimeBounds is an XDR Struct defines as:\n\n```text struct TimeBounds { TimePoint minTime; TimePoint maxTime; // 0 here means no maxTime }; ```", - "type": "object", - "required": [ - "max_time", - "min_time" - ], - "properties": { - "max_time": { - "$ref": "#/definitions/TimePoint" - }, - "min_time": { - "$ref": "#/definitions/TimePoint" - } - } - }, - "TimePoint": { - "description": "TimePoint is an XDR Typedef defines as:\n\n```text typedef uint64 TimePoint; ```", - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "Transaction": { - "description": "Transaction is an XDR Struct defines as:\n\n```text struct Transaction { // account used to run the transaction MuxedAccount sourceAccount;\n\n// the fee the sourceAccount will pay uint32 fee;\n\n// sequence number to consume in the account SequenceNumber seqNum;\n\n// validity conditions Preconditions cond;\n\nMemo memo;\n\nOperation operations;\n\n// reserved for future use union switch (int v) { case 0: void; case 1: SorobanTransactionData sorobanData; } ext; }; ```", - "type": "object", - "required": [ - "cond", - "ext", - "fee", - "memo", - "operations", - "seq_num", - "source_account" - ], - "properties": { - "cond": { - "$ref": "#/definitions/Preconditions" - }, - "ext": { - "$ref": "#/definitions/TransactionExt" - }, - "fee": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "memo": { - "$ref": "#/definitions/Memo" - }, - "operations": { - "$ref": "#/definitions/VecM_for_Operation_and_100" - }, - "seq_num": { - "$ref": "#/definitions/SequenceNumber" - }, - "source_account": { - "$ref": "#/definitions/MuxedAccount" - } - } - }, - "TransactionExt": { - "description": "TransactionExt is an XDR NestedUnion defines as:\n\n```text union switch (int v) { case 0: void; case 1: SorobanTransactionData sorobanData; } ```", - "oneOf": [ - { - "type": "string", - "enum": [ - "v0" - ] - }, - { - "type": "object", - "required": [ - "v1" - ], - "properties": { - "v1": { - "$ref": "#/definitions/SorobanTransactionData" - } - }, - "additionalProperties": false - } - ] - }, - "TransactionV0": { - "description": "TransactionV0 is an XDR Struct defines as:\n\n```text struct TransactionV0 { uint256 sourceAccountEd25519; uint32 fee; SequenceNumber seqNum; TimeBounds* timeBounds; Memo memo; Operation operations; union switch (int v) { case 0: void; } ext; }; ```", - "type": "object", - "required": [ - "ext", - "fee", - "memo", - "operations", - "seq_num", - "source_account_ed25519" - ], - "properties": { - "ext": { - "$ref": "#/definitions/TransactionV0Ext" - }, - "fee": { - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "memo": { - "$ref": "#/definitions/Memo" - }, - "operations": { - "$ref": "#/definitions/VecM_for_Operation_and_100" - }, - "seq_num": { - "$ref": "#/definitions/SequenceNumber" - }, - "source_account_ed25519": { - "$ref": "#/definitions/Uint256" - }, - "time_bounds": { - "anyOf": [ - { - "$ref": "#/definitions/TimeBounds" - }, - { - "type": "null" - } - ] - } - } - }, - "TransactionV0Envelope": { - "description": "TransactionV0Envelope is an XDR Struct defines as:\n\n```text struct TransactionV0Envelope { TransactionV0 tx; /* Each decorated signature is a signature over the SHA256 hash of * a TransactionSignaturePayload */ DecoratedSignature signatures<20>; }; ```", - "type": "object", - "required": [ - "signatures", - "tx" - ], - "properties": { - "signatures": { - "$ref": "#/definitions/VecM_for_DecoratedSignature_and_20" - }, - "tx": { - "$ref": "#/definitions/TransactionV0" - } - } - }, - "TransactionV0Ext": { - "description": "TransactionV0Ext is an XDR NestedUnion defines as:\n\n```text union switch (int v) { case 0: void; } ```", - "type": "string", - "enum": [ - "v0" - ] - }, - "TransactionV1Envelope": { - "description": "TransactionV1Envelope is an XDR Struct defines as:\n\n```text struct TransactionV1Envelope { Transaction tx; /* Each decorated signature is a signature over the SHA256 hash of * a TransactionSignaturePayload */ DecoratedSignature signatures<20>; }; ```", - "type": "object", - "required": [ - "signatures", - "tx" - ], - "properties": { - "signatures": { - "$ref": "#/definitions/VecM_for_DecoratedSignature_and_20" - }, - "tx": { - "$ref": "#/definitions/Transaction" - } - } - }, - "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": [ - { - "type": "string", - "enum": [ - "native" - ] - }, - { - "type": "object", - "required": [ - "credit_alphanum4" - ], - "properties": { - "credit_alphanum4": { - "$ref": "#/definitions/AlphaNum4" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "credit_alphanum12" - ], - "properties": { - "credit_alphanum12": { - "$ref": "#/definitions/AlphaNum12" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "pool_share" - ], - "properties": { - "pool_share": { - "$ref": "#/definitions/PoolId" - } - }, - "additionalProperties": false - } - ] - }, - "UInt128Parts": { - "description": "UInt128Parts is an XDR Struct defines as:\n\n```text struct UInt128Parts { uint64 hi; uint64 lo; }; ```", - "type": "object", - "required": [ - "hi", - "lo" - ], - "properties": { - "hi": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "lo": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - } - } - }, - "UInt256Parts": { - "description": "UInt256Parts is an XDR Struct defines as:\n\n```text struct UInt256Parts { uint64 hi_hi; uint64 hi_lo; uint64 lo_hi; uint64 lo_lo; }; ```", - "type": "object", - "required": [ - "hi_hi", - "hi_lo", - "lo_hi", - "lo_lo" - ], - "properties": { - "hi_hi": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "hi_lo": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "lo_hi": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "lo_lo": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - } - } - }, - "Uint256": { - "description": "Uint256 is an XDR Typedef defines as:\n\n```text typedef opaque uint256[32]; ```", - "type": "array", - "items": { - "type": "integer", - "format": "uint8", - "minimum": 0.0 - }, - "maxItems": 32, - "minItems": 32 - }, - "VecM_for_Asset_and_5": { - "type": "array", - "items": { - "$ref": "#/definitions/Asset" - } - }, - "VecM_for_ClaimPredicate_and_2": { - "type": "array", - "items": { - "$ref": "#/definitions/ClaimPredicate" - } - }, - "VecM_for_Claimant_and_10": { - "type": "array", - "items": { - "$ref": "#/definitions/Claimant" - } - }, - "VecM_for_DecoratedSignature_and_20": { - "type": "array", - "items": { - "$ref": "#/definitions/DecoratedSignature" - } - }, - "VecM_for_LedgerKey_and_4294967295": { - "type": "array", - "items": { - "$ref": "#/definitions/LedgerKey" - } - }, - "VecM_for_Operation_and_100": { - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - } - }, - "VecM_for_ScMapEntry_and_4294967295": { - "type": "array", - "items": { - "$ref": "#/definitions/ScMapEntry" - } - }, - "VecM_for_ScVal_and_4294967295": { - "type": "array", - "items": { - "$ref": "#/definitions/ScVal" - } - }, - "VecM_for_SignerKey_and_2": { - "type": "array", - "items": { - "$ref": "#/definitions/SignerKey" - } - }, - "VecM_for_SorobanAuthorizationEntry_and_4294967295": { - "type": "array", - "items": { - "$ref": "#/definitions/SorobanAuthorizationEntry" - } - }, - "VecM_for_SorobanAuthorizedInvocation_and_4294967295": { - "type": "array", - "items": { - "$ref": "#/definitions/SorobanAuthorizedInvocation" - } - } - } -}"##, - ); - Ok(()) } From f576c2ab56388df3f48b0a3e4d37894947e6c8e5 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Sat, 9 Mar 2024 01:29:00 +1000 Subject: [PATCH 09/20] fix overflow --- Makefile | 2 +- src/curr/generated.rs | 26 +++++++++++++------------- src/next/generated.rs | 26 +++++++++++++------------- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/Makefile b/Makefile index a39a4b2d..ac6f750a 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ CARGO_HACK_ARGS=--feature-powerset --exclude-features default --group-features b CARGO_DOC_ARGS?=--open -XDRGEN_VERSION=c95a5bd7f9dff8dff53cadcef3014ceb69ab7088 +XDRGEN_VERSION=3f37191c1b26b39a4a8265a3824df6c3236cb120 # XDRGEN_LOCAL=1 XDRGEN_TYPES_CUSTOM_STR_IMPL_CURR=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12 XDRGEN_TYPES_CUSTOM_STR_IMPL_NEXT=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12 diff --git a/src/curr/generated.rs b/src/curr/generated.rs index bb53ece6..f9c57ea9 100644 --- a/src/curr/generated.rs +++ b/src/curr/generated.rs @@ -1433,7 +1433,7 @@ impl schemars::JsonSchema for BytesM { serde_json::Value::String("application/binary".to_string()), ); mut_string(schema.into(), |string| schemars::schema::StringValidation { - max_length: Some(MAX * 2), + max_length: MAX.checked_mul(2).map(Some).unwrap_or_default(), min_length: None, ..string }) @@ -10213,8 +10213,8 @@ impl schemars::JsonSchema for Thresholds { serde_json::Value::String("application/binary".to_string()), ); mut_string(schema.into(), |string| schemars::schema::StringValidation { - max_length: Some(4 * 2), - min_length: Some(4 * 2), + max_length: 4_u32.checked_mul(2).map(Some).unwrap_or_default(), + min_length: 4_u32.checked_mul(2).map(Some).unwrap_or_default(), ..string }) } else { @@ -10775,8 +10775,8 @@ impl schemars::JsonSchema for AssetCode4 { serde_json::Value::String("application/binary".to_string()), ); mut_string(schema.into(), |string| schemars::schema::StringValidation { - max_length: Some(4 * 2), - min_length: Some(4 * 2), + max_length: 4_u32.checked_mul(2).map(Some).unwrap_or_default(), + min_length: 4_u32.checked_mul(2).map(Some).unwrap_or_default(), ..string }) } else { @@ -10907,8 +10907,8 @@ impl schemars::JsonSchema for AssetCode12 { serde_json::Value::String("application/binary".to_string()), ); mut_string(schema.into(), |string| schemars::schema::StringValidation { - max_length: Some(12 * 2), - min_length: Some(12 * 2), + max_length: 12_u32.checked_mul(2).map(Some).unwrap_or_default(), + min_length: 12_u32.checked_mul(2).map(Some).unwrap_or_default(), ..string }) } else { @@ -41162,8 +41162,8 @@ impl schemars::JsonSchema for Hash { serde_json::Value::String("application/binary".to_string()), ); mut_string(schema.into(), |string| schemars::schema::StringValidation { - max_length: Some(32 * 2), - min_length: Some(32 * 2), + max_length: 32_u32.checked_mul(2).map(Some).unwrap_or_default(), + min_length: 32_u32.checked_mul(2).map(Some).unwrap_or_default(), ..string }) } else { @@ -41311,8 +41311,8 @@ impl schemars::JsonSchema for Uint256 { serde_json::Value::String("application/binary".to_string()), ); mut_string(schema.into(), |string| schemars::schema::StringValidation { - max_length: Some(32 * 2), - min_length: Some(32 * 2), + max_length: 32_u32.checked_mul(2).map(Some).unwrap_or_default(), + min_length: 32_u32.checked_mul(2).map(Some).unwrap_or_default(), ..string }) } else { @@ -42451,8 +42451,8 @@ impl schemars::JsonSchema for SignatureHint { serde_json::Value::String("application/binary".to_string()), ); mut_string(schema.into(), |string| schemars::schema::StringValidation { - max_length: Some(4 * 2), - min_length: Some(4 * 2), + max_length: 4_u32.checked_mul(2).map(Some).unwrap_or_default(), + min_length: 4_u32.checked_mul(2).map(Some).unwrap_or_default(), ..string }) } else { diff --git a/src/next/generated.rs b/src/next/generated.rs index cd4325c0..d7a2201c 100644 --- a/src/next/generated.rs +++ b/src/next/generated.rs @@ -1433,7 +1433,7 @@ impl schemars::JsonSchema for BytesM { serde_json::Value::String("application/binary".to_string()), ); mut_string(schema.into(), |string| schemars::schema::StringValidation { - max_length: Some(MAX * 2), + max_length: MAX.checked_mul(2).map(Some).unwrap_or_default(), min_length: None, ..string }) @@ -10213,8 +10213,8 @@ impl schemars::JsonSchema for Thresholds { serde_json::Value::String("application/binary".to_string()), ); mut_string(schema.into(), |string| schemars::schema::StringValidation { - max_length: Some(4 * 2), - min_length: Some(4 * 2), + max_length: 4_u32.checked_mul(2).map(Some).unwrap_or_default(), + min_length: 4_u32.checked_mul(2).map(Some).unwrap_or_default(), ..string }) } else { @@ -10775,8 +10775,8 @@ impl schemars::JsonSchema for AssetCode4 { serde_json::Value::String("application/binary".to_string()), ); mut_string(schema.into(), |string| schemars::schema::StringValidation { - max_length: Some(4 * 2), - min_length: Some(4 * 2), + max_length: 4_u32.checked_mul(2).map(Some).unwrap_or_default(), + min_length: 4_u32.checked_mul(2).map(Some).unwrap_or_default(), ..string }) } else { @@ -10907,8 +10907,8 @@ impl schemars::JsonSchema for AssetCode12 { serde_json::Value::String("application/binary".to_string()), ); mut_string(schema.into(), |string| schemars::schema::StringValidation { - max_length: Some(12 * 2), - min_length: Some(12 * 2), + max_length: 12_u32.checked_mul(2).map(Some).unwrap_or_default(), + min_length: 12_u32.checked_mul(2).map(Some).unwrap_or_default(), ..string }) } else { @@ -41162,8 +41162,8 @@ impl schemars::JsonSchema for Hash { serde_json::Value::String("application/binary".to_string()), ); mut_string(schema.into(), |string| schemars::schema::StringValidation { - max_length: Some(32 * 2), - min_length: Some(32 * 2), + max_length: 32_u32.checked_mul(2).map(Some).unwrap_or_default(), + min_length: 32_u32.checked_mul(2).map(Some).unwrap_or_default(), ..string }) } else { @@ -41311,8 +41311,8 @@ impl schemars::JsonSchema for Uint256 { serde_json::Value::String("application/binary".to_string()), ); mut_string(schema.into(), |string| schemars::schema::StringValidation { - max_length: Some(32 * 2), - min_length: Some(32 * 2), + max_length: 32_u32.checked_mul(2).map(Some).unwrap_or_default(), + min_length: 32_u32.checked_mul(2).map(Some).unwrap_or_default(), ..string }) } else { @@ -42451,8 +42451,8 @@ impl schemars::JsonSchema for SignatureHint { serde_json::Value::String("application/binary".to_string()), ); mut_string(schema.into(), |string| schemars::schema::StringValidation { - max_length: Some(4 * 2), - min_length: Some(4 * 2), + max_length: 4_u32.checked_mul(2).map(Some).unwrap_or_default(), + min_length: 4_u32.checked_mul(2).map(Some).unwrap_or_default(), ..string }) } else { From 7575d7fb826193336078c2264b085189ea9f8317 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Wed, 13 Mar 2024 22:19:08 +1000 Subject: [PATCH 10/20] add first version of command --- Cargo.toml | 2 +- Makefile | 4 +- src/bin/stellar-xdr/main.rs | 5 +- src/cli/mod.rs | 4 +- src/cli/types.rs | 12 +- src/cli/types/schema.rs | 73 ++++ src/curr/generated.rs | 846 ++++++++++++++++++++++++++++++++++++ src/next/generated.rs | 846 ++++++++++++++++++++++++++++++++++++ 8 files changed, 1786 insertions(+), 6 deletions(-) create mode 100644 src/cli/types/schema.rs diff --git a/Cargo.toml b/Cargo.toml index 20d1cda7..b536f781 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -50,7 +50,7 @@ arbitrary = ["std", "dep:arbitrary"] hex = [] # Features for the CLI. -cli = ["std", "curr", "next", "base64", "serde", "serde_json", "dep:clap", "dep:thiserror"] +cli = ["std", "curr", "next", "base64", "serde", "serde_json", "schemars", "dep:clap", "dep:thiserror"] [package.metadata.docs.rs] all-features = true diff --git a/Makefile b/Makefile index ac6f750a..237e3471 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ CARGO_HACK_ARGS=--feature-powerset --exclude-features default --group-features b CARGO_DOC_ARGS?=--open -XDRGEN_VERSION=3f37191c1b26b39a4a8265a3824df6c3236cb120 +XDRGEN_VERSION=87d633c780260e2a30a28d7dc9571a790f5138fa # XDRGEN_LOCAL=1 XDRGEN_TYPES_CUSTOM_STR_IMPL_CURR=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12 XDRGEN_TYPES_CUSTOM_STR_IMPL_NEXT=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12 @@ -23,7 +23,7 @@ doc: RUSTDOCFLAGS="--cfg docs" cargo +nightly doc --package stellar-xdr --all-features $(CARGO_DOC_ARGS) install: - cargo install --path . --force --features cli + cargo install --locked --path . --force --features cli readme: cargo readme > README.md diff --git a/src/bin/stellar-xdr/main.rs b/src/bin/stellar-xdr/main.rs index 78ff30f3..2873708b 100644 --- a/src/bin/stellar-xdr/main.rs +++ b/src/bin/stellar-xdr/main.rs @@ -6,7 +6,10 @@ fn main() { if let Err(e) = cli::run(env::args_os()) { match e { cli::Error::Clap(e) => e.exit(), - cli::Error::Guess(_) | cli::Error::Decode(_) | cli::Error::Encode(_) => { + cli::Error::Types(_) + | cli::Error::Guess(_) + | cli::Error::Decode(_) + | cli::Error::Encode(_) => { Error::raw(clap::error::ErrorKind::ValueValidation, e).exit() } } diff --git a/src/cli/mod.rs b/src/cli/mod.rs index f8da43ad..9db33de0 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -34,7 +34,7 @@ impl Root { /// If the root command is configured with state that is invalid. pub fn run(&self) -> Result<(), Error> { match &self.cmd { - Cmd::Types(c) => c.run(&self.channel), + Cmd::Types(c) => c.run(&self.channel)?, Cmd::Guess(c) => c.run(&self.channel)?, Cmd::Decode(c) => c.run(&self.channel)?, Cmd::Encode(c) => c.run(&self.channel)?, @@ -77,6 +77,8 @@ pub enum Cmd { pub enum Error { #[error("{0}")] Clap(#[from] clap::Error), + #[error("{0}")] + Types(#[from] types::Error), #[error("error decoding XDR: {0}")] Guess(#[from] guess::Error), #[error("error reading file: {0}")] diff --git a/src/cli/types.rs b/src/cli/types.rs index a0ad2790..893a4c75 100644 --- a/src/cli/types.rs +++ b/src/cli/types.rs @@ -1,9 +1,16 @@ mod list; +mod schema; use clap::{Args, Subcommand}; use crate::cli::Channel; +#[derive(thiserror::Error, Debug)] +pub enum Error { + #[error("{0}")] + SchemaError(#[from] schema::Error), +} + #[derive(Args, Debug, Clone)] #[command()] pub struct Cmd { @@ -14,12 +21,15 @@ pub struct Cmd { #[derive(Subcommand, Clone, Debug)] pub enum Sub { List(list::Cmd), + Schema(schema::Cmd), } impl Cmd { - pub fn run(&self, channel: &Channel) { + pub fn run(&self, channel: &Channel) -> Result<(), Error> { match &self.sub { Sub::List(c) => c.run(channel), + Sub::Schema(c) => c.run(channel)?, } + Ok(()) } } diff --git a/src/cli/types/schema.rs b/src/cli/types/schema.rs new file mode 100644 index 00000000..3354513b --- /dev/null +++ b/src/cli/types/schema.rs @@ -0,0 +1,73 @@ +use clap::{Args, ValueEnum}; + +use crate::cli::Channel; + +#[derive(thiserror::Error, Debug)] +pub enum Error { + #[error("unknown type {0}, choose one of {1:?}")] + UnknownType(String, &'static [&'static str]), + #[error("error generating JSON: {0}")] + GenerateJson(#[from] serde_json::Error), +} + +#[derive(Args, Debug, Clone)] +#[command()] +pub struct Cmd { + /// XDR type to decode + #[arg(long)] + r#type: String, + + // Output format + #[arg(long, value_enum, default_value_t)] + output: OutputFormat, +} + +#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq, ValueEnum)] +pub enum OutputFormat { + JsonSchemaDraft7, +} + +impl Default for OutputFormat { + fn default() -> Self { + Self::JsonSchemaDraft7 + } +} + +macro_rules! run_x_case_for_type { + ($type:tt, $m:tt, $type_name:expr, $output:expr) => { + if $type_name == stringify!($type) { + match $output { + OutputFormat::JsonSchemaDraft7 => { + let schema = schemars::schema_for!(crate::$m::$type); + println!("{}", serde_json::to_string_pretty(&schema)?); + }, + } + } + }; +} + +macro_rules! run_x { + ($f:ident, $m:ident) => { + fn $f(&self) -> Result<(), Error> { + use std::str::FromStr; + let _ = crate::$m::TypeVariant::from_str(&self.r#type).map_err(|_| { + Error::UnknownType(self.r#type.clone(), &crate::$m::TypeVariant::VARIANTS_STR) + })?; + crate::$m::call_macro_with_each_type! { run_x_case_for_type, $m, {&self.r#type}, {self.output} } + Ok(()) + } + }; +} + +impl Cmd { + pub fn run(&self, channel: &Channel) -> Result<(), Error> { + match channel { + Channel::Curr => self.run_curr()?, + Channel::Next => self.run_next()?, + } + Ok(()) + } + + run_x!(run_curr, curr); + run_x!(run_next, next); +} diff --git a/src/curr/generated.rs b/src/curr/generated.rs index f9c57ea9..a38445e5 100644 --- a/src/curr/generated.rs +++ b/src/curr/generated.rs @@ -42814,6 +42814,852 @@ impl WriteXdr for HmacSha256Mac { } } +#[doc(hidden)] +#[macro_export] +macro_rules! _call_macro_with_each_type_8b45a57eccbfd886a69e4462ad26dd8a94d8874f8cc9ceb6a6de8c91abcb1289 { + // The x-macro takes a single ident, the name of a macro to call ... + ($macro_to_call_back:ident, $($context:tt),*) => {{ + // ... and calls it back, once for each XDR type. + $macro_to_call_back!(Value, $($context),*); + + $macro_to_call_back!(ScpBallot, $($context),*); + + $macro_to_call_back!(ScpStatementType, $($context),*); + + $macro_to_call_back!(ScpNomination, $($context),*); + + $macro_to_call_back!(ScpStatement, $($context),*); + + $macro_to_call_back!(ScpStatementPledges, $($context),*); + + $macro_to_call_back!(ScpStatementPrepare, $($context),*); + + $macro_to_call_back!(ScpStatementConfirm, $($context),*); + + $macro_to_call_back!(ScpStatementExternalize, $($context),*); + + $macro_to_call_back!(ScpEnvelope, $($context),*); + + $macro_to_call_back!(ScpQuorumSet, $($context),*); + + $macro_to_call_back!(ConfigSettingContractExecutionLanesV0, $($context),*); + + $macro_to_call_back!(ConfigSettingContractComputeV0, $($context),*); + + $macro_to_call_back!(ConfigSettingContractLedgerCostV0, $($context),*); + + $macro_to_call_back!(ConfigSettingContractHistoricalDataV0, $($context),*); + + $macro_to_call_back!(ConfigSettingContractEventsV0, $($context),*); + + $macro_to_call_back!(ConfigSettingContractBandwidthV0, $($context),*); + + $macro_to_call_back!(ContractCostType, $($context),*); + + $macro_to_call_back!(ContractCostParamEntry, $($context),*); + + $macro_to_call_back!(StateArchivalSettings, $($context),*); + + $macro_to_call_back!(EvictionIterator, $($context),*); + + $macro_to_call_back!(ContractCostParams, $($context),*); + + $macro_to_call_back!(ConfigSettingId, $($context),*); + + $macro_to_call_back!(ConfigSettingEntry, $($context),*); + + $macro_to_call_back!(ScEnvMetaKind, $($context),*); + + $macro_to_call_back!(ScEnvMetaEntry, $($context),*); + + $macro_to_call_back!(ScMetaV0, $($context),*); + + $macro_to_call_back!(ScMetaKind, $($context),*); + + $macro_to_call_back!(ScMetaEntry, $($context),*); + + $macro_to_call_back!(ScSpecType, $($context),*); + + $macro_to_call_back!(ScSpecTypeOption, $($context),*); + + $macro_to_call_back!(ScSpecTypeResult, $($context),*); + + $macro_to_call_back!(ScSpecTypeVec, $($context),*); + + $macro_to_call_back!(ScSpecTypeMap, $($context),*); + + $macro_to_call_back!(ScSpecTypeTuple, $($context),*); + + $macro_to_call_back!(ScSpecTypeBytesN, $($context),*); + + $macro_to_call_back!(ScSpecTypeUdt, $($context),*); + + $macro_to_call_back!(ScSpecTypeDef, $($context),*); + + $macro_to_call_back!(ScSpecUdtStructFieldV0, $($context),*); + + $macro_to_call_back!(ScSpecUdtStructV0, $($context),*); + + $macro_to_call_back!(ScSpecUdtUnionCaseVoidV0, $($context),*); + + $macro_to_call_back!(ScSpecUdtUnionCaseTupleV0, $($context),*); + + $macro_to_call_back!(ScSpecUdtUnionCaseV0Kind, $($context),*); + + $macro_to_call_back!(ScSpecUdtUnionCaseV0, $($context),*); + + $macro_to_call_back!(ScSpecUdtUnionV0, $($context),*); + + $macro_to_call_back!(ScSpecUdtEnumCaseV0, $($context),*); + + $macro_to_call_back!(ScSpecUdtEnumV0, $($context),*); + + $macro_to_call_back!(ScSpecUdtErrorEnumCaseV0, $($context),*); + + $macro_to_call_back!(ScSpecUdtErrorEnumV0, $($context),*); + + $macro_to_call_back!(ScSpecFunctionInputV0, $($context),*); + + $macro_to_call_back!(ScSpecFunctionV0, $($context),*); + + $macro_to_call_back!(ScSpecEntryKind, $($context),*); + + $macro_to_call_back!(ScSpecEntry, $($context),*); + + $macro_to_call_back!(ScValType, $($context),*); + + $macro_to_call_back!(ScErrorType, $($context),*); + + $macro_to_call_back!(ScErrorCode, $($context),*); + + $macro_to_call_back!(ScError, $($context),*); + + $macro_to_call_back!(UInt128Parts, $($context),*); + + $macro_to_call_back!(Int128Parts, $($context),*); + + $macro_to_call_back!(UInt256Parts, $($context),*); + + $macro_to_call_back!(Int256Parts, $($context),*); + + $macro_to_call_back!(ContractExecutableType, $($context),*); + + $macro_to_call_back!(ContractExecutable, $($context),*); + + $macro_to_call_back!(ScAddressType, $($context),*); + + $macro_to_call_back!(ScAddress, $($context),*); + + $macro_to_call_back!(ScVec, $($context),*); + + $macro_to_call_back!(ScMap, $($context),*); + + $macro_to_call_back!(ScBytes, $($context),*); + + $macro_to_call_back!(ScString, $($context),*); + + $macro_to_call_back!(ScSymbol, $($context),*); + + $macro_to_call_back!(ScNonceKey, $($context),*); + + $macro_to_call_back!(ScContractInstance, $($context),*); + + $macro_to_call_back!(ScVal, $($context),*); + + $macro_to_call_back!(ScMapEntry, $($context),*); + + $macro_to_call_back!(StoredTransactionSet, $($context),*); + + $macro_to_call_back!(StoredDebugTransactionSet, $($context),*); + + $macro_to_call_back!(PersistedScpStateV0, $($context),*); + + $macro_to_call_back!(PersistedScpStateV1, $($context),*); + + $macro_to_call_back!(PersistedScpState, $($context),*); + + $macro_to_call_back!(Thresholds, $($context),*); + + $macro_to_call_back!(String32, $($context),*); + + $macro_to_call_back!(String64, $($context),*); + + $macro_to_call_back!(SequenceNumber, $($context),*); + + $macro_to_call_back!(DataValue, $($context),*); + + $macro_to_call_back!(PoolId, $($context),*); + + $macro_to_call_back!(AssetCode4, $($context),*); + + $macro_to_call_back!(AssetCode12, $($context),*); + + $macro_to_call_back!(AssetType, $($context),*); + + $macro_to_call_back!(AssetCode, $($context),*); + + $macro_to_call_back!(AlphaNum4, $($context),*); + + $macro_to_call_back!(AlphaNum12, $($context),*); + + $macro_to_call_back!(Asset, $($context),*); + + $macro_to_call_back!(Price, $($context),*); + + $macro_to_call_back!(Liabilities, $($context),*); + + $macro_to_call_back!(ThresholdIndexes, $($context),*); + + $macro_to_call_back!(LedgerEntryType, $($context),*); + + $macro_to_call_back!(Signer, $($context),*); + + $macro_to_call_back!(AccountFlags, $($context),*); + + $macro_to_call_back!(SponsorshipDescriptor, $($context),*); + + $macro_to_call_back!(AccountEntryExtensionV3, $($context),*); + + $macro_to_call_back!(AccountEntryExtensionV2, $($context),*); + + $macro_to_call_back!(AccountEntryExtensionV2Ext, $($context),*); + + $macro_to_call_back!(AccountEntryExtensionV1, $($context),*); + + $macro_to_call_back!(AccountEntryExtensionV1Ext, $($context),*); + + $macro_to_call_back!(AccountEntry, $($context),*); + + $macro_to_call_back!(AccountEntryExt, $($context),*); + + $macro_to_call_back!(TrustLineFlags, $($context),*); + + $macro_to_call_back!(LiquidityPoolType, $($context),*); + + $macro_to_call_back!(TrustLineAsset, $($context),*); + + $macro_to_call_back!(TrustLineEntryExtensionV2, $($context),*); + + $macro_to_call_back!(TrustLineEntryExtensionV2Ext, $($context),*); + + $macro_to_call_back!(TrustLineEntry, $($context),*); + + $macro_to_call_back!(TrustLineEntryExt, $($context),*); + + $macro_to_call_back!(TrustLineEntryV1, $($context),*); + + $macro_to_call_back!(TrustLineEntryV1Ext, $($context),*); + + $macro_to_call_back!(OfferEntryFlags, $($context),*); + + $macro_to_call_back!(OfferEntry, $($context),*); + + $macro_to_call_back!(OfferEntryExt, $($context),*); + + $macro_to_call_back!(DataEntry, $($context),*); + + $macro_to_call_back!(DataEntryExt, $($context),*); + + $macro_to_call_back!(ClaimPredicateType, $($context),*); + + $macro_to_call_back!(ClaimPredicate, $($context),*); + + $macro_to_call_back!(ClaimantType, $($context),*); + + $macro_to_call_back!(Claimant, $($context),*); + + $macro_to_call_back!(ClaimantV0, $($context),*); + + $macro_to_call_back!(ClaimableBalanceIdType, $($context),*); + + $macro_to_call_back!(ClaimableBalanceId, $($context),*); + + $macro_to_call_back!(ClaimableBalanceFlags, $($context),*); + + $macro_to_call_back!(ClaimableBalanceEntryExtensionV1, $($context),*); + + $macro_to_call_back!(ClaimableBalanceEntryExtensionV1Ext, $($context),*); + + $macro_to_call_back!(ClaimableBalanceEntry, $($context),*); + + $macro_to_call_back!(ClaimableBalanceEntryExt, $($context),*); + + $macro_to_call_back!(LiquidityPoolConstantProductParameters, $($context),*); + + $macro_to_call_back!(LiquidityPoolEntry, $($context),*); + + $macro_to_call_back!(LiquidityPoolEntryBody, $($context),*); + + $macro_to_call_back!(LiquidityPoolEntryConstantProduct, $($context),*); + + $macro_to_call_back!(ContractDataDurability, $($context),*); + + $macro_to_call_back!(ContractDataEntry, $($context),*); + + $macro_to_call_back!(ContractCodeEntry, $($context),*); + + $macro_to_call_back!(TtlEntry, $($context),*); + + $macro_to_call_back!(LedgerEntryExtensionV1, $($context),*); + + $macro_to_call_back!(LedgerEntryExtensionV1Ext, $($context),*); + + $macro_to_call_back!(LedgerEntry, $($context),*); + + $macro_to_call_back!(LedgerEntryData, $($context),*); + + $macro_to_call_back!(LedgerEntryExt, $($context),*); + + $macro_to_call_back!(LedgerKey, $($context),*); + + $macro_to_call_back!(LedgerKeyAccount, $($context),*); + + $macro_to_call_back!(LedgerKeyTrustLine, $($context),*); + + $macro_to_call_back!(LedgerKeyOffer, $($context),*); + + $macro_to_call_back!(LedgerKeyData, $($context),*); + + $macro_to_call_back!(LedgerKeyClaimableBalance, $($context),*); + + $macro_to_call_back!(LedgerKeyLiquidityPool, $($context),*); + + $macro_to_call_back!(LedgerKeyContractData, $($context),*); + + $macro_to_call_back!(LedgerKeyContractCode, $($context),*); + + $macro_to_call_back!(LedgerKeyConfigSetting, $($context),*); + + $macro_to_call_back!(LedgerKeyTtl, $($context),*); + + $macro_to_call_back!(EnvelopeType, $($context),*); + + $macro_to_call_back!(UpgradeType, $($context),*); + + $macro_to_call_back!(StellarValueType, $($context),*); + + $macro_to_call_back!(LedgerCloseValueSignature, $($context),*); + + $macro_to_call_back!(StellarValue, $($context),*); + + $macro_to_call_back!(StellarValueExt, $($context),*); + + $macro_to_call_back!(LedgerHeaderFlags, $($context),*); + + $macro_to_call_back!(LedgerHeaderExtensionV1, $($context),*); + + $macro_to_call_back!(LedgerHeaderExtensionV1Ext, $($context),*); + + $macro_to_call_back!(LedgerHeader, $($context),*); + + $macro_to_call_back!(LedgerHeaderExt, $($context),*); + + $macro_to_call_back!(LedgerUpgradeType, $($context),*); + + $macro_to_call_back!(ConfigUpgradeSetKey, $($context),*); + + $macro_to_call_back!(LedgerUpgrade, $($context),*); + + $macro_to_call_back!(ConfigUpgradeSet, $($context),*); + + $macro_to_call_back!(BucketEntryType, $($context),*); + + $macro_to_call_back!(BucketMetadata, $($context),*); + + $macro_to_call_back!(BucketMetadataExt, $($context),*); + + $macro_to_call_back!(BucketEntry, $($context),*); + + $macro_to_call_back!(TxSetComponentType, $($context),*); + + $macro_to_call_back!(TxSetComponent, $($context),*); + + $macro_to_call_back!(TxSetComponentTxsMaybeDiscountedFee, $($context),*); + + $macro_to_call_back!(TransactionPhase, $($context),*); + + $macro_to_call_back!(TransactionSet, $($context),*); + + $macro_to_call_back!(TransactionSetV1, $($context),*); + + $macro_to_call_back!(GeneralizedTransactionSet, $($context),*); + + $macro_to_call_back!(TransactionResultPair, $($context),*); + + $macro_to_call_back!(TransactionResultSet, $($context),*); + + $macro_to_call_back!(TransactionHistoryEntry, $($context),*); + + $macro_to_call_back!(TransactionHistoryEntryExt, $($context),*); + + $macro_to_call_back!(TransactionHistoryResultEntry, $($context),*); + + $macro_to_call_back!(TransactionHistoryResultEntryExt, $($context),*); + + $macro_to_call_back!(LedgerHeaderHistoryEntry, $($context),*); + + $macro_to_call_back!(LedgerHeaderHistoryEntryExt, $($context),*); + + $macro_to_call_back!(LedgerScpMessages, $($context),*); + + $macro_to_call_back!(ScpHistoryEntryV0, $($context),*); + + $macro_to_call_back!(ScpHistoryEntry, $($context),*); + + $macro_to_call_back!(LedgerEntryChangeType, $($context),*); + + $macro_to_call_back!(LedgerEntryChange, $($context),*); + + $macro_to_call_back!(LedgerEntryChanges, $($context),*); + + $macro_to_call_back!(OperationMeta, $($context),*); + + $macro_to_call_back!(TransactionMetaV1, $($context),*); + + $macro_to_call_back!(TransactionMetaV2, $($context),*); + + $macro_to_call_back!(ContractEventType, $($context),*); + + $macro_to_call_back!(ContractEvent, $($context),*); + + $macro_to_call_back!(ContractEventBody, $($context),*); + + $macro_to_call_back!(ContractEventV0, $($context),*); + + $macro_to_call_back!(DiagnosticEvent, $($context),*); + + $macro_to_call_back!(SorobanTransactionMeta, $($context),*); + + $macro_to_call_back!(TransactionMetaV3, $($context),*); + + $macro_to_call_back!(InvokeHostFunctionSuccessPreImage, $($context),*); + + $macro_to_call_back!(TransactionMeta, $($context),*); + + $macro_to_call_back!(TransactionResultMeta, $($context),*); + + $macro_to_call_back!(UpgradeEntryMeta, $($context),*); + + $macro_to_call_back!(LedgerCloseMetaV0, $($context),*); + + $macro_to_call_back!(LedgerCloseMetaV1, $($context),*); + + $macro_to_call_back!(LedgerCloseMeta, $($context),*); + + $macro_to_call_back!(ErrorCode, $($context),*); + + $macro_to_call_back!(SError, $($context),*); + + $macro_to_call_back!(SendMore, $($context),*); + + $macro_to_call_back!(SendMoreExtended, $($context),*); + + $macro_to_call_back!(AuthCert, $($context),*); + + $macro_to_call_back!(Hello, $($context),*); + + $macro_to_call_back!(Auth, $($context),*); + + $macro_to_call_back!(IpAddrType, $($context),*); + + $macro_to_call_back!(PeerAddress, $($context),*); + + $macro_to_call_back!(PeerAddressIp, $($context),*); + + $macro_to_call_back!(MessageType, $($context),*); + + $macro_to_call_back!(DontHave, $($context),*); + + $macro_to_call_back!(SurveyMessageCommandType, $($context),*); + + $macro_to_call_back!(SurveyMessageResponseType, $($context),*); + + $macro_to_call_back!(SurveyRequestMessage, $($context),*); + + $macro_to_call_back!(SignedSurveyRequestMessage, $($context),*); + + $macro_to_call_back!(EncryptedBody, $($context),*); + + $macro_to_call_back!(SurveyResponseMessage, $($context),*); + + $macro_to_call_back!(SignedSurveyResponseMessage, $($context),*); + + $macro_to_call_back!(PeerStats, $($context),*); + + $macro_to_call_back!(PeerStatList, $($context),*); + + $macro_to_call_back!(TopologyResponseBodyV0, $($context),*); + + $macro_to_call_back!(TopologyResponseBodyV1, $($context),*); + + $macro_to_call_back!(SurveyResponseBody, $($context),*); + + $macro_to_call_back!(TxAdvertVector, $($context),*); + + $macro_to_call_back!(FloodAdvert, $($context),*); + + $macro_to_call_back!(TxDemandVector, $($context),*); + + $macro_to_call_back!(FloodDemand, $($context),*); + + $macro_to_call_back!(StellarMessage, $($context),*); + + $macro_to_call_back!(AuthenticatedMessage, $($context),*); + + $macro_to_call_back!(AuthenticatedMessageV0, $($context),*); + + $macro_to_call_back!(LiquidityPoolParameters, $($context),*); + + $macro_to_call_back!(MuxedAccount, $($context),*); + + $macro_to_call_back!(MuxedAccountMed25519, $($context),*); + + $macro_to_call_back!(DecoratedSignature, $($context),*); + + $macro_to_call_back!(OperationType, $($context),*); + + $macro_to_call_back!(CreateAccountOp, $($context),*); + + $macro_to_call_back!(PaymentOp, $($context),*); + + $macro_to_call_back!(PathPaymentStrictReceiveOp, $($context),*); + + $macro_to_call_back!(PathPaymentStrictSendOp, $($context),*); + + $macro_to_call_back!(ManageSellOfferOp, $($context),*); + + $macro_to_call_back!(ManageBuyOfferOp, $($context),*); + + $macro_to_call_back!(CreatePassiveSellOfferOp, $($context),*); + + $macro_to_call_back!(SetOptionsOp, $($context),*); + + $macro_to_call_back!(ChangeTrustAsset, $($context),*); + + $macro_to_call_back!(ChangeTrustOp, $($context),*); + + $macro_to_call_back!(AllowTrustOp, $($context),*); + + $macro_to_call_back!(ManageDataOp, $($context),*); + + $macro_to_call_back!(BumpSequenceOp, $($context),*); + + $macro_to_call_back!(CreateClaimableBalanceOp, $($context),*); + + $macro_to_call_back!(ClaimClaimableBalanceOp, $($context),*); + + $macro_to_call_back!(BeginSponsoringFutureReservesOp, $($context),*); + + $macro_to_call_back!(RevokeSponsorshipType, $($context),*); + + $macro_to_call_back!(RevokeSponsorshipOp, $($context),*); + + $macro_to_call_back!(RevokeSponsorshipOpSigner, $($context),*); + + $macro_to_call_back!(ClawbackOp, $($context),*); + + $macro_to_call_back!(ClawbackClaimableBalanceOp, $($context),*); + + $macro_to_call_back!(SetTrustLineFlagsOp, $($context),*); + + $macro_to_call_back!(LiquidityPoolDepositOp, $($context),*); + + $macro_to_call_back!(LiquidityPoolWithdrawOp, $($context),*); + + $macro_to_call_back!(HostFunctionType, $($context),*); + + $macro_to_call_back!(ContractIdPreimageType, $($context),*); + + $macro_to_call_back!(ContractIdPreimage, $($context),*); + + $macro_to_call_back!(ContractIdPreimageFromAddress, $($context),*); + + $macro_to_call_back!(CreateContractArgs, $($context),*); + + $macro_to_call_back!(InvokeContractArgs, $($context),*); + + $macro_to_call_back!(HostFunction, $($context),*); + + $macro_to_call_back!(SorobanAuthorizedFunctionType, $($context),*); + + $macro_to_call_back!(SorobanAuthorizedFunction, $($context),*); + + $macro_to_call_back!(SorobanAuthorizedInvocation, $($context),*); + + $macro_to_call_back!(SorobanAddressCredentials, $($context),*); + + $macro_to_call_back!(SorobanCredentialsType, $($context),*); + + $macro_to_call_back!(SorobanCredentials, $($context),*); + + $macro_to_call_back!(SorobanAuthorizationEntry, $($context),*); + + $macro_to_call_back!(InvokeHostFunctionOp, $($context),*); + + $macro_to_call_back!(ExtendFootprintTtlOp, $($context),*); + + $macro_to_call_back!(RestoreFootprintOp, $($context),*); + + $macro_to_call_back!(Operation, $($context),*); + + $macro_to_call_back!(OperationBody, $($context),*); + + $macro_to_call_back!(HashIdPreimage, $($context),*); + + $macro_to_call_back!(HashIdPreimageOperationId, $($context),*); + + $macro_to_call_back!(HashIdPreimageRevokeId, $($context),*); + + $macro_to_call_back!(HashIdPreimageContractId, $($context),*); + + $macro_to_call_back!(HashIdPreimageSorobanAuthorization, $($context),*); + + $macro_to_call_back!(MemoType, $($context),*); + + $macro_to_call_back!(Memo, $($context),*); + + $macro_to_call_back!(TimeBounds, $($context),*); + + $macro_to_call_back!(LedgerBounds, $($context),*); + + $macro_to_call_back!(PreconditionsV2, $($context),*); + + $macro_to_call_back!(PreconditionType, $($context),*); + + $macro_to_call_back!(Preconditions, $($context),*); + + $macro_to_call_back!(LedgerFootprint, $($context),*); + + $macro_to_call_back!(SorobanResources, $($context),*); + + $macro_to_call_back!(SorobanTransactionData, $($context),*); + + $macro_to_call_back!(TransactionV0, $($context),*); + + $macro_to_call_back!(TransactionV0Ext, $($context),*); + + $macro_to_call_back!(TransactionV0Envelope, $($context),*); + + $macro_to_call_back!(Transaction, $($context),*); + + $macro_to_call_back!(TransactionExt, $($context),*); + + $macro_to_call_back!(TransactionV1Envelope, $($context),*); + + $macro_to_call_back!(FeeBumpTransaction, $($context),*); + + $macro_to_call_back!(FeeBumpTransactionInnerTx, $($context),*); + + $macro_to_call_back!(FeeBumpTransactionExt, $($context),*); + + $macro_to_call_back!(FeeBumpTransactionEnvelope, $($context),*); + + $macro_to_call_back!(TransactionEnvelope, $($context),*); + + $macro_to_call_back!(TransactionSignaturePayload, $($context),*); + + $macro_to_call_back!(TransactionSignaturePayloadTaggedTransaction, $($context),*); + + $macro_to_call_back!(ClaimAtomType, $($context),*); + + $macro_to_call_back!(ClaimOfferAtomV0, $($context),*); + + $macro_to_call_back!(ClaimOfferAtom, $($context),*); + + $macro_to_call_back!(ClaimLiquidityAtom, $($context),*); + + $macro_to_call_back!(ClaimAtom, $($context),*); + + $macro_to_call_back!(CreateAccountResultCode, $($context),*); + + $macro_to_call_back!(CreateAccountResult, $($context),*); + + $macro_to_call_back!(PaymentResultCode, $($context),*); + + $macro_to_call_back!(PaymentResult, $($context),*); + + $macro_to_call_back!(PathPaymentStrictReceiveResultCode, $($context),*); + + $macro_to_call_back!(SimplePaymentResult, $($context),*); + + $macro_to_call_back!(PathPaymentStrictReceiveResult, $($context),*); + + $macro_to_call_back!(PathPaymentStrictReceiveResultSuccess, $($context),*); + + $macro_to_call_back!(PathPaymentStrictSendResultCode, $($context),*); + + $macro_to_call_back!(PathPaymentStrictSendResult, $($context),*); + + $macro_to_call_back!(PathPaymentStrictSendResultSuccess, $($context),*); + + $macro_to_call_back!(ManageSellOfferResultCode, $($context),*); + + $macro_to_call_back!(ManageOfferEffect, $($context),*); + + $macro_to_call_back!(ManageOfferSuccessResult, $($context),*); + + $macro_to_call_back!(ManageOfferSuccessResultOffer, $($context),*); + + $macro_to_call_back!(ManageSellOfferResult, $($context),*); + + $macro_to_call_back!(ManageBuyOfferResultCode, $($context),*); + + $macro_to_call_back!(ManageBuyOfferResult, $($context),*); + + $macro_to_call_back!(SetOptionsResultCode, $($context),*); + + $macro_to_call_back!(SetOptionsResult, $($context),*); + + $macro_to_call_back!(ChangeTrustResultCode, $($context),*); + + $macro_to_call_back!(ChangeTrustResult, $($context),*); + + $macro_to_call_back!(AllowTrustResultCode, $($context),*); + + $macro_to_call_back!(AllowTrustResult, $($context),*); + + $macro_to_call_back!(AccountMergeResultCode, $($context),*); + + $macro_to_call_back!(AccountMergeResult, $($context),*); + + $macro_to_call_back!(InflationResultCode, $($context),*); + + $macro_to_call_back!(InflationPayout, $($context),*); + + $macro_to_call_back!(InflationResult, $($context),*); + + $macro_to_call_back!(ManageDataResultCode, $($context),*); + + $macro_to_call_back!(ManageDataResult, $($context),*); + + $macro_to_call_back!(BumpSequenceResultCode, $($context),*); + + $macro_to_call_back!(BumpSequenceResult, $($context),*); + + $macro_to_call_back!(CreateClaimableBalanceResultCode, $($context),*); + + $macro_to_call_back!(CreateClaimableBalanceResult, $($context),*); + + $macro_to_call_back!(ClaimClaimableBalanceResultCode, $($context),*); + + $macro_to_call_back!(ClaimClaimableBalanceResult, $($context),*); + + $macro_to_call_back!(BeginSponsoringFutureReservesResultCode, $($context),*); + + $macro_to_call_back!(BeginSponsoringFutureReservesResult, $($context),*); + + $macro_to_call_back!(EndSponsoringFutureReservesResultCode, $($context),*); + + $macro_to_call_back!(EndSponsoringFutureReservesResult, $($context),*); + + $macro_to_call_back!(RevokeSponsorshipResultCode, $($context),*); + + $macro_to_call_back!(RevokeSponsorshipResult, $($context),*); + + $macro_to_call_back!(ClawbackResultCode, $($context),*); + + $macro_to_call_back!(ClawbackResult, $($context),*); + + $macro_to_call_back!(ClawbackClaimableBalanceResultCode, $($context),*); + + $macro_to_call_back!(ClawbackClaimableBalanceResult, $($context),*); + + $macro_to_call_back!(SetTrustLineFlagsResultCode, $($context),*); + + $macro_to_call_back!(SetTrustLineFlagsResult, $($context),*); + + $macro_to_call_back!(LiquidityPoolDepositResultCode, $($context),*); + + $macro_to_call_back!(LiquidityPoolDepositResult, $($context),*); + + $macro_to_call_back!(LiquidityPoolWithdrawResultCode, $($context),*); + + $macro_to_call_back!(LiquidityPoolWithdrawResult, $($context),*); + + $macro_to_call_back!(InvokeHostFunctionResultCode, $($context),*); + + $macro_to_call_back!(InvokeHostFunctionResult, $($context),*); + + $macro_to_call_back!(ExtendFootprintTtlResultCode, $($context),*); + + $macro_to_call_back!(ExtendFootprintTtlResult, $($context),*); + + $macro_to_call_back!(RestoreFootprintResultCode, $($context),*); + + $macro_to_call_back!(RestoreFootprintResult, $($context),*); + + $macro_to_call_back!(OperationResultCode, $($context),*); + + $macro_to_call_back!(OperationResult, $($context),*); + + $macro_to_call_back!(OperationResultTr, $($context),*); + + $macro_to_call_back!(TransactionResultCode, $($context),*); + + $macro_to_call_back!(InnerTransactionResult, $($context),*); + + $macro_to_call_back!(InnerTransactionResultResult, $($context),*); + + $macro_to_call_back!(InnerTransactionResultExt, $($context),*); + + $macro_to_call_back!(InnerTransactionResultPair, $($context),*); + + $macro_to_call_back!(TransactionResult, $($context),*); + + $macro_to_call_back!(TransactionResultResult, $($context),*); + + $macro_to_call_back!(TransactionResultExt, $($context),*); + + $macro_to_call_back!(Hash, $($context),*); + + $macro_to_call_back!(Uint256, $($context),*); + + $macro_to_call_back!(Uint32, $($context),*); + + $macro_to_call_back!(Int32, $($context),*); + + $macro_to_call_back!(Uint64, $($context),*); + + $macro_to_call_back!(Int64, $($context),*); + + $macro_to_call_back!(TimePoint, $($context),*); + + $macro_to_call_back!(Duration, $($context),*); + + $macro_to_call_back!(ExtensionPoint, $($context),*); + + $macro_to_call_back!(CryptoKeyType, $($context),*); + + $macro_to_call_back!(PublicKeyType, $($context),*); + + $macro_to_call_back!(SignerKeyType, $($context),*); + + $macro_to_call_back!(PublicKey, $($context),*); + + $macro_to_call_back!(SignerKey, $($context),*); + + $macro_to_call_back!(SignerKeyEd25519SignedPayload, $($context),*); + + $macro_to_call_back!(Signature, $($context),*); + + $macro_to_call_back!(SignatureHint, $($context),*); + + $macro_to_call_back!(NodeId, $($context),*); + + $macro_to_call_back!(AccountId, $($context),*); + + $macro_to_call_back!(Curve25519Secret, $($context),*); + + $macro_to_call_back!(Curve25519Public, $($context),*); + + $macro_to_call_back!(HmacSha256Key, $($context),*); + + $macro_to_call_back!(HmacSha256Mac, $($context),*); + + + }}; +} +pub use _call_macro_with_each_type_8b45a57eccbfd886a69e4462ad26dd8a94d8874f8cc9ceb6a6de8c91abcb1289 as call_macro_with_each_type; #[derive(Clone, Copy, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( all(feature = "serde", feature = "alloc"), diff --git a/src/next/generated.rs b/src/next/generated.rs index d7a2201c..e8547b1d 100644 --- a/src/next/generated.rs +++ b/src/next/generated.rs @@ -42814,6 +42814,852 @@ impl WriteXdr for HmacSha256Mac { } } +#[doc(hidden)] +#[macro_export] +macro_rules! _call_macro_with_each_type_bac0bd9a01f0eecd4c0ebd32e9b5e6c490d95cdc2dcdebbad617637359bef05f { + // The x-macro takes a single ident, the name of a macro to call ... + ($macro_to_call_back:ident, $($context:tt),*) => {{ + // ... and calls it back, once for each XDR type. + $macro_to_call_back!(Value, $($context),*); + + $macro_to_call_back!(ScpBallot, $($context),*); + + $macro_to_call_back!(ScpStatementType, $($context),*); + + $macro_to_call_back!(ScpNomination, $($context),*); + + $macro_to_call_back!(ScpStatement, $($context),*); + + $macro_to_call_back!(ScpStatementPledges, $($context),*); + + $macro_to_call_back!(ScpStatementPrepare, $($context),*); + + $macro_to_call_back!(ScpStatementConfirm, $($context),*); + + $macro_to_call_back!(ScpStatementExternalize, $($context),*); + + $macro_to_call_back!(ScpEnvelope, $($context),*); + + $macro_to_call_back!(ScpQuorumSet, $($context),*); + + $macro_to_call_back!(ConfigSettingContractExecutionLanesV0, $($context),*); + + $macro_to_call_back!(ConfigSettingContractComputeV0, $($context),*); + + $macro_to_call_back!(ConfigSettingContractLedgerCostV0, $($context),*); + + $macro_to_call_back!(ConfigSettingContractHistoricalDataV0, $($context),*); + + $macro_to_call_back!(ConfigSettingContractEventsV0, $($context),*); + + $macro_to_call_back!(ConfigSettingContractBandwidthV0, $($context),*); + + $macro_to_call_back!(ContractCostType, $($context),*); + + $macro_to_call_back!(ContractCostParamEntry, $($context),*); + + $macro_to_call_back!(StateArchivalSettings, $($context),*); + + $macro_to_call_back!(EvictionIterator, $($context),*); + + $macro_to_call_back!(ContractCostParams, $($context),*); + + $macro_to_call_back!(ConfigSettingId, $($context),*); + + $macro_to_call_back!(ConfigSettingEntry, $($context),*); + + $macro_to_call_back!(ScEnvMetaKind, $($context),*); + + $macro_to_call_back!(ScEnvMetaEntry, $($context),*); + + $macro_to_call_back!(ScMetaV0, $($context),*); + + $macro_to_call_back!(ScMetaKind, $($context),*); + + $macro_to_call_back!(ScMetaEntry, $($context),*); + + $macro_to_call_back!(ScSpecType, $($context),*); + + $macro_to_call_back!(ScSpecTypeOption, $($context),*); + + $macro_to_call_back!(ScSpecTypeResult, $($context),*); + + $macro_to_call_back!(ScSpecTypeVec, $($context),*); + + $macro_to_call_back!(ScSpecTypeMap, $($context),*); + + $macro_to_call_back!(ScSpecTypeTuple, $($context),*); + + $macro_to_call_back!(ScSpecTypeBytesN, $($context),*); + + $macro_to_call_back!(ScSpecTypeUdt, $($context),*); + + $macro_to_call_back!(ScSpecTypeDef, $($context),*); + + $macro_to_call_back!(ScSpecUdtStructFieldV0, $($context),*); + + $macro_to_call_back!(ScSpecUdtStructV0, $($context),*); + + $macro_to_call_back!(ScSpecUdtUnionCaseVoidV0, $($context),*); + + $macro_to_call_back!(ScSpecUdtUnionCaseTupleV0, $($context),*); + + $macro_to_call_back!(ScSpecUdtUnionCaseV0Kind, $($context),*); + + $macro_to_call_back!(ScSpecUdtUnionCaseV0, $($context),*); + + $macro_to_call_back!(ScSpecUdtUnionV0, $($context),*); + + $macro_to_call_back!(ScSpecUdtEnumCaseV0, $($context),*); + + $macro_to_call_back!(ScSpecUdtEnumV0, $($context),*); + + $macro_to_call_back!(ScSpecUdtErrorEnumCaseV0, $($context),*); + + $macro_to_call_back!(ScSpecUdtErrorEnumV0, $($context),*); + + $macro_to_call_back!(ScSpecFunctionInputV0, $($context),*); + + $macro_to_call_back!(ScSpecFunctionV0, $($context),*); + + $macro_to_call_back!(ScSpecEntryKind, $($context),*); + + $macro_to_call_back!(ScSpecEntry, $($context),*); + + $macro_to_call_back!(ScValType, $($context),*); + + $macro_to_call_back!(ScErrorType, $($context),*); + + $macro_to_call_back!(ScErrorCode, $($context),*); + + $macro_to_call_back!(ScError, $($context),*); + + $macro_to_call_back!(UInt128Parts, $($context),*); + + $macro_to_call_back!(Int128Parts, $($context),*); + + $macro_to_call_back!(UInt256Parts, $($context),*); + + $macro_to_call_back!(Int256Parts, $($context),*); + + $macro_to_call_back!(ContractExecutableType, $($context),*); + + $macro_to_call_back!(ContractExecutable, $($context),*); + + $macro_to_call_back!(ScAddressType, $($context),*); + + $macro_to_call_back!(ScAddress, $($context),*); + + $macro_to_call_back!(ScVec, $($context),*); + + $macro_to_call_back!(ScMap, $($context),*); + + $macro_to_call_back!(ScBytes, $($context),*); + + $macro_to_call_back!(ScString, $($context),*); + + $macro_to_call_back!(ScSymbol, $($context),*); + + $macro_to_call_back!(ScNonceKey, $($context),*); + + $macro_to_call_back!(ScContractInstance, $($context),*); + + $macro_to_call_back!(ScVal, $($context),*); + + $macro_to_call_back!(ScMapEntry, $($context),*); + + $macro_to_call_back!(StoredTransactionSet, $($context),*); + + $macro_to_call_back!(StoredDebugTransactionSet, $($context),*); + + $macro_to_call_back!(PersistedScpStateV0, $($context),*); + + $macro_to_call_back!(PersistedScpStateV1, $($context),*); + + $macro_to_call_back!(PersistedScpState, $($context),*); + + $macro_to_call_back!(Thresholds, $($context),*); + + $macro_to_call_back!(String32, $($context),*); + + $macro_to_call_back!(String64, $($context),*); + + $macro_to_call_back!(SequenceNumber, $($context),*); + + $macro_to_call_back!(DataValue, $($context),*); + + $macro_to_call_back!(PoolId, $($context),*); + + $macro_to_call_back!(AssetCode4, $($context),*); + + $macro_to_call_back!(AssetCode12, $($context),*); + + $macro_to_call_back!(AssetType, $($context),*); + + $macro_to_call_back!(AssetCode, $($context),*); + + $macro_to_call_back!(AlphaNum4, $($context),*); + + $macro_to_call_back!(AlphaNum12, $($context),*); + + $macro_to_call_back!(Asset, $($context),*); + + $macro_to_call_back!(Price, $($context),*); + + $macro_to_call_back!(Liabilities, $($context),*); + + $macro_to_call_back!(ThresholdIndexes, $($context),*); + + $macro_to_call_back!(LedgerEntryType, $($context),*); + + $macro_to_call_back!(Signer, $($context),*); + + $macro_to_call_back!(AccountFlags, $($context),*); + + $macro_to_call_back!(SponsorshipDescriptor, $($context),*); + + $macro_to_call_back!(AccountEntryExtensionV3, $($context),*); + + $macro_to_call_back!(AccountEntryExtensionV2, $($context),*); + + $macro_to_call_back!(AccountEntryExtensionV2Ext, $($context),*); + + $macro_to_call_back!(AccountEntryExtensionV1, $($context),*); + + $macro_to_call_back!(AccountEntryExtensionV1Ext, $($context),*); + + $macro_to_call_back!(AccountEntry, $($context),*); + + $macro_to_call_back!(AccountEntryExt, $($context),*); + + $macro_to_call_back!(TrustLineFlags, $($context),*); + + $macro_to_call_back!(LiquidityPoolType, $($context),*); + + $macro_to_call_back!(TrustLineAsset, $($context),*); + + $macro_to_call_back!(TrustLineEntryExtensionV2, $($context),*); + + $macro_to_call_back!(TrustLineEntryExtensionV2Ext, $($context),*); + + $macro_to_call_back!(TrustLineEntry, $($context),*); + + $macro_to_call_back!(TrustLineEntryExt, $($context),*); + + $macro_to_call_back!(TrustLineEntryV1, $($context),*); + + $macro_to_call_back!(TrustLineEntryV1Ext, $($context),*); + + $macro_to_call_back!(OfferEntryFlags, $($context),*); + + $macro_to_call_back!(OfferEntry, $($context),*); + + $macro_to_call_back!(OfferEntryExt, $($context),*); + + $macro_to_call_back!(DataEntry, $($context),*); + + $macro_to_call_back!(DataEntryExt, $($context),*); + + $macro_to_call_back!(ClaimPredicateType, $($context),*); + + $macro_to_call_back!(ClaimPredicate, $($context),*); + + $macro_to_call_back!(ClaimantType, $($context),*); + + $macro_to_call_back!(Claimant, $($context),*); + + $macro_to_call_back!(ClaimantV0, $($context),*); + + $macro_to_call_back!(ClaimableBalanceIdType, $($context),*); + + $macro_to_call_back!(ClaimableBalanceId, $($context),*); + + $macro_to_call_back!(ClaimableBalanceFlags, $($context),*); + + $macro_to_call_back!(ClaimableBalanceEntryExtensionV1, $($context),*); + + $macro_to_call_back!(ClaimableBalanceEntryExtensionV1Ext, $($context),*); + + $macro_to_call_back!(ClaimableBalanceEntry, $($context),*); + + $macro_to_call_back!(ClaimableBalanceEntryExt, $($context),*); + + $macro_to_call_back!(LiquidityPoolConstantProductParameters, $($context),*); + + $macro_to_call_back!(LiquidityPoolEntry, $($context),*); + + $macro_to_call_back!(LiquidityPoolEntryBody, $($context),*); + + $macro_to_call_back!(LiquidityPoolEntryConstantProduct, $($context),*); + + $macro_to_call_back!(ContractDataDurability, $($context),*); + + $macro_to_call_back!(ContractDataEntry, $($context),*); + + $macro_to_call_back!(ContractCodeEntry, $($context),*); + + $macro_to_call_back!(TtlEntry, $($context),*); + + $macro_to_call_back!(LedgerEntryExtensionV1, $($context),*); + + $macro_to_call_back!(LedgerEntryExtensionV1Ext, $($context),*); + + $macro_to_call_back!(LedgerEntry, $($context),*); + + $macro_to_call_back!(LedgerEntryData, $($context),*); + + $macro_to_call_back!(LedgerEntryExt, $($context),*); + + $macro_to_call_back!(LedgerKey, $($context),*); + + $macro_to_call_back!(LedgerKeyAccount, $($context),*); + + $macro_to_call_back!(LedgerKeyTrustLine, $($context),*); + + $macro_to_call_back!(LedgerKeyOffer, $($context),*); + + $macro_to_call_back!(LedgerKeyData, $($context),*); + + $macro_to_call_back!(LedgerKeyClaimableBalance, $($context),*); + + $macro_to_call_back!(LedgerKeyLiquidityPool, $($context),*); + + $macro_to_call_back!(LedgerKeyContractData, $($context),*); + + $macro_to_call_back!(LedgerKeyContractCode, $($context),*); + + $macro_to_call_back!(LedgerKeyConfigSetting, $($context),*); + + $macro_to_call_back!(LedgerKeyTtl, $($context),*); + + $macro_to_call_back!(EnvelopeType, $($context),*); + + $macro_to_call_back!(UpgradeType, $($context),*); + + $macro_to_call_back!(StellarValueType, $($context),*); + + $macro_to_call_back!(LedgerCloseValueSignature, $($context),*); + + $macro_to_call_back!(StellarValue, $($context),*); + + $macro_to_call_back!(StellarValueExt, $($context),*); + + $macro_to_call_back!(LedgerHeaderFlags, $($context),*); + + $macro_to_call_back!(LedgerHeaderExtensionV1, $($context),*); + + $macro_to_call_back!(LedgerHeaderExtensionV1Ext, $($context),*); + + $macro_to_call_back!(LedgerHeader, $($context),*); + + $macro_to_call_back!(LedgerHeaderExt, $($context),*); + + $macro_to_call_back!(LedgerUpgradeType, $($context),*); + + $macro_to_call_back!(ConfigUpgradeSetKey, $($context),*); + + $macro_to_call_back!(LedgerUpgrade, $($context),*); + + $macro_to_call_back!(ConfigUpgradeSet, $($context),*); + + $macro_to_call_back!(BucketEntryType, $($context),*); + + $macro_to_call_back!(BucketMetadata, $($context),*); + + $macro_to_call_back!(BucketMetadataExt, $($context),*); + + $macro_to_call_back!(BucketEntry, $($context),*); + + $macro_to_call_back!(TxSetComponentType, $($context),*); + + $macro_to_call_back!(TxSetComponent, $($context),*); + + $macro_to_call_back!(TxSetComponentTxsMaybeDiscountedFee, $($context),*); + + $macro_to_call_back!(TransactionPhase, $($context),*); + + $macro_to_call_back!(TransactionSet, $($context),*); + + $macro_to_call_back!(TransactionSetV1, $($context),*); + + $macro_to_call_back!(GeneralizedTransactionSet, $($context),*); + + $macro_to_call_back!(TransactionResultPair, $($context),*); + + $macro_to_call_back!(TransactionResultSet, $($context),*); + + $macro_to_call_back!(TransactionHistoryEntry, $($context),*); + + $macro_to_call_back!(TransactionHistoryEntryExt, $($context),*); + + $macro_to_call_back!(TransactionHistoryResultEntry, $($context),*); + + $macro_to_call_back!(TransactionHistoryResultEntryExt, $($context),*); + + $macro_to_call_back!(LedgerHeaderHistoryEntry, $($context),*); + + $macro_to_call_back!(LedgerHeaderHistoryEntryExt, $($context),*); + + $macro_to_call_back!(LedgerScpMessages, $($context),*); + + $macro_to_call_back!(ScpHistoryEntryV0, $($context),*); + + $macro_to_call_back!(ScpHistoryEntry, $($context),*); + + $macro_to_call_back!(LedgerEntryChangeType, $($context),*); + + $macro_to_call_back!(LedgerEntryChange, $($context),*); + + $macro_to_call_back!(LedgerEntryChanges, $($context),*); + + $macro_to_call_back!(OperationMeta, $($context),*); + + $macro_to_call_back!(TransactionMetaV1, $($context),*); + + $macro_to_call_back!(TransactionMetaV2, $($context),*); + + $macro_to_call_back!(ContractEventType, $($context),*); + + $macro_to_call_back!(ContractEvent, $($context),*); + + $macro_to_call_back!(ContractEventBody, $($context),*); + + $macro_to_call_back!(ContractEventV0, $($context),*); + + $macro_to_call_back!(DiagnosticEvent, $($context),*); + + $macro_to_call_back!(SorobanTransactionMeta, $($context),*); + + $macro_to_call_back!(TransactionMetaV3, $($context),*); + + $macro_to_call_back!(InvokeHostFunctionSuccessPreImage, $($context),*); + + $macro_to_call_back!(TransactionMeta, $($context),*); + + $macro_to_call_back!(TransactionResultMeta, $($context),*); + + $macro_to_call_back!(UpgradeEntryMeta, $($context),*); + + $macro_to_call_back!(LedgerCloseMetaV0, $($context),*); + + $macro_to_call_back!(LedgerCloseMetaV1, $($context),*); + + $macro_to_call_back!(LedgerCloseMeta, $($context),*); + + $macro_to_call_back!(ErrorCode, $($context),*); + + $macro_to_call_back!(SError, $($context),*); + + $macro_to_call_back!(SendMore, $($context),*); + + $macro_to_call_back!(SendMoreExtended, $($context),*); + + $macro_to_call_back!(AuthCert, $($context),*); + + $macro_to_call_back!(Hello, $($context),*); + + $macro_to_call_back!(Auth, $($context),*); + + $macro_to_call_back!(IpAddrType, $($context),*); + + $macro_to_call_back!(PeerAddress, $($context),*); + + $macro_to_call_back!(PeerAddressIp, $($context),*); + + $macro_to_call_back!(MessageType, $($context),*); + + $macro_to_call_back!(DontHave, $($context),*); + + $macro_to_call_back!(SurveyMessageCommandType, $($context),*); + + $macro_to_call_back!(SurveyMessageResponseType, $($context),*); + + $macro_to_call_back!(SurveyRequestMessage, $($context),*); + + $macro_to_call_back!(SignedSurveyRequestMessage, $($context),*); + + $macro_to_call_back!(EncryptedBody, $($context),*); + + $macro_to_call_back!(SurveyResponseMessage, $($context),*); + + $macro_to_call_back!(SignedSurveyResponseMessage, $($context),*); + + $macro_to_call_back!(PeerStats, $($context),*); + + $macro_to_call_back!(PeerStatList, $($context),*); + + $macro_to_call_back!(TopologyResponseBodyV0, $($context),*); + + $macro_to_call_back!(TopologyResponseBodyV1, $($context),*); + + $macro_to_call_back!(SurveyResponseBody, $($context),*); + + $macro_to_call_back!(TxAdvertVector, $($context),*); + + $macro_to_call_back!(FloodAdvert, $($context),*); + + $macro_to_call_back!(TxDemandVector, $($context),*); + + $macro_to_call_back!(FloodDemand, $($context),*); + + $macro_to_call_back!(StellarMessage, $($context),*); + + $macro_to_call_back!(AuthenticatedMessage, $($context),*); + + $macro_to_call_back!(AuthenticatedMessageV0, $($context),*); + + $macro_to_call_back!(LiquidityPoolParameters, $($context),*); + + $macro_to_call_back!(MuxedAccount, $($context),*); + + $macro_to_call_back!(MuxedAccountMed25519, $($context),*); + + $macro_to_call_back!(DecoratedSignature, $($context),*); + + $macro_to_call_back!(OperationType, $($context),*); + + $macro_to_call_back!(CreateAccountOp, $($context),*); + + $macro_to_call_back!(PaymentOp, $($context),*); + + $macro_to_call_back!(PathPaymentStrictReceiveOp, $($context),*); + + $macro_to_call_back!(PathPaymentStrictSendOp, $($context),*); + + $macro_to_call_back!(ManageSellOfferOp, $($context),*); + + $macro_to_call_back!(ManageBuyOfferOp, $($context),*); + + $macro_to_call_back!(CreatePassiveSellOfferOp, $($context),*); + + $macro_to_call_back!(SetOptionsOp, $($context),*); + + $macro_to_call_back!(ChangeTrustAsset, $($context),*); + + $macro_to_call_back!(ChangeTrustOp, $($context),*); + + $macro_to_call_back!(AllowTrustOp, $($context),*); + + $macro_to_call_back!(ManageDataOp, $($context),*); + + $macro_to_call_back!(BumpSequenceOp, $($context),*); + + $macro_to_call_back!(CreateClaimableBalanceOp, $($context),*); + + $macro_to_call_back!(ClaimClaimableBalanceOp, $($context),*); + + $macro_to_call_back!(BeginSponsoringFutureReservesOp, $($context),*); + + $macro_to_call_back!(RevokeSponsorshipType, $($context),*); + + $macro_to_call_back!(RevokeSponsorshipOp, $($context),*); + + $macro_to_call_back!(RevokeSponsorshipOpSigner, $($context),*); + + $macro_to_call_back!(ClawbackOp, $($context),*); + + $macro_to_call_back!(ClawbackClaimableBalanceOp, $($context),*); + + $macro_to_call_back!(SetTrustLineFlagsOp, $($context),*); + + $macro_to_call_back!(LiquidityPoolDepositOp, $($context),*); + + $macro_to_call_back!(LiquidityPoolWithdrawOp, $($context),*); + + $macro_to_call_back!(HostFunctionType, $($context),*); + + $macro_to_call_back!(ContractIdPreimageType, $($context),*); + + $macro_to_call_back!(ContractIdPreimage, $($context),*); + + $macro_to_call_back!(ContractIdPreimageFromAddress, $($context),*); + + $macro_to_call_back!(CreateContractArgs, $($context),*); + + $macro_to_call_back!(InvokeContractArgs, $($context),*); + + $macro_to_call_back!(HostFunction, $($context),*); + + $macro_to_call_back!(SorobanAuthorizedFunctionType, $($context),*); + + $macro_to_call_back!(SorobanAuthorizedFunction, $($context),*); + + $macro_to_call_back!(SorobanAuthorizedInvocation, $($context),*); + + $macro_to_call_back!(SorobanAddressCredentials, $($context),*); + + $macro_to_call_back!(SorobanCredentialsType, $($context),*); + + $macro_to_call_back!(SorobanCredentials, $($context),*); + + $macro_to_call_back!(SorobanAuthorizationEntry, $($context),*); + + $macro_to_call_back!(InvokeHostFunctionOp, $($context),*); + + $macro_to_call_back!(ExtendFootprintTtlOp, $($context),*); + + $macro_to_call_back!(RestoreFootprintOp, $($context),*); + + $macro_to_call_back!(Operation, $($context),*); + + $macro_to_call_back!(OperationBody, $($context),*); + + $macro_to_call_back!(HashIdPreimage, $($context),*); + + $macro_to_call_back!(HashIdPreimageOperationId, $($context),*); + + $macro_to_call_back!(HashIdPreimageRevokeId, $($context),*); + + $macro_to_call_back!(HashIdPreimageContractId, $($context),*); + + $macro_to_call_back!(HashIdPreimageSorobanAuthorization, $($context),*); + + $macro_to_call_back!(MemoType, $($context),*); + + $macro_to_call_back!(Memo, $($context),*); + + $macro_to_call_back!(TimeBounds, $($context),*); + + $macro_to_call_back!(LedgerBounds, $($context),*); + + $macro_to_call_back!(PreconditionsV2, $($context),*); + + $macro_to_call_back!(PreconditionType, $($context),*); + + $macro_to_call_back!(Preconditions, $($context),*); + + $macro_to_call_back!(LedgerFootprint, $($context),*); + + $macro_to_call_back!(SorobanResources, $($context),*); + + $macro_to_call_back!(SorobanTransactionData, $($context),*); + + $macro_to_call_back!(TransactionV0, $($context),*); + + $macro_to_call_back!(TransactionV0Ext, $($context),*); + + $macro_to_call_back!(TransactionV0Envelope, $($context),*); + + $macro_to_call_back!(Transaction, $($context),*); + + $macro_to_call_back!(TransactionExt, $($context),*); + + $macro_to_call_back!(TransactionV1Envelope, $($context),*); + + $macro_to_call_back!(FeeBumpTransaction, $($context),*); + + $macro_to_call_back!(FeeBumpTransactionInnerTx, $($context),*); + + $macro_to_call_back!(FeeBumpTransactionExt, $($context),*); + + $macro_to_call_back!(FeeBumpTransactionEnvelope, $($context),*); + + $macro_to_call_back!(TransactionEnvelope, $($context),*); + + $macro_to_call_back!(TransactionSignaturePayload, $($context),*); + + $macro_to_call_back!(TransactionSignaturePayloadTaggedTransaction, $($context),*); + + $macro_to_call_back!(ClaimAtomType, $($context),*); + + $macro_to_call_back!(ClaimOfferAtomV0, $($context),*); + + $macro_to_call_back!(ClaimOfferAtom, $($context),*); + + $macro_to_call_back!(ClaimLiquidityAtom, $($context),*); + + $macro_to_call_back!(ClaimAtom, $($context),*); + + $macro_to_call_back!(CreateAccountResultCode, $($context),*); + + $macro_to_call_back!(CreateAccountResult, $($context),*); + + $macro_to_call_back!(PaymentResultCode, $($context),*); + + $macro_to_call_back!(PaymentResult, $($context),*); + + $macro_to_call_back!(PathPaymentStrictReceiveResultCode, $($context),*); + + $macro_to_call_back!(SimplePaymentResult, $($context),*); + + $macro_to_call_back!(PathPaymentStrictReceiveResult, $($context),*); + + $macro_to_call_back!(PathPaymentStrictReceiveResultSuccess, $($context),*); + + $macro_to_call_back!(PathPaymentStrictSendResultCode, $($context),*); + + $macro_to_call_back!(PathPaymentStrictSendResult, $($context),*); + + $macro_to_call_back!(PathPaymentStrictSendResultSuccess, $($context),*); + + $macro_to_call_back!(ManageSellOfferResultCode, $($context),*); + + $macro_to_call_back!(ManageOfferEffect, $($context),*); + + $macro_to_call_back!(ManageOfferSuccessResult, $($context),*); + + $macro_to_call_back!(ManageOfferSuccessResultOffer, $($context),*); + + $macro_to_call_back!(ManageSellOfferResult, $($context),*); + + $macro_to_call_back!(ManageBuyOfferResultCode, $($context),*); + + $macro_to_call_back!(ManageBuyOfferResult, $($context),*); + + $macro_to_call_back!(SetOptionsResultCode, $($context),*); + + $macro_to_call_back!(SetOptionsResult, $($context),*); + + $macro_to_call_back!(ChangeTrustResultCode, $($context),*); + + $macro_to_call_back!(ChangeTrustResult, $($context),*); + + $macro_to_call_back!(AllowTrustResultCode, $($context),*); + + $macro_to_call_back!(AllowTrustResult, $($context),*); + + $macro_to_call_back!(AccountMergeResultCode, $($context),*); + + $macro_to_call_back!(AccountMergeResult, $($context),*); + + $macro_to_call_back!(InflationResultCode, $($context),*); + + $macro_to_call_back!(InflationPayout, $($context),*); + + $macro_to_call_back!(InflationResult, $($context),*); + + $macro_to_call_back!(ManageDataResultCode, $($context),*); + + $macro_to_call_back!(ManageDataResult, $($context),*); + + $macro_to_call_back!(BumpSequenceResultCode, $($context),*); + + $macro_to_call_back!(BumpSequenceResult, $($context),*); + + $macro_to_call_back!(CreateClaimableBalanceResultCode, $($context),*); + + $macro_to_call_back!(CreateClaimableBalanceResult, $($context),*); + + $macro_to_call_back!(ClaimClaimableBalanceResultCode, $($context),*); + + $macro_to_call_back!(ClaimClaimableBalanceResult, $($context),*); + + $macro_to_call_back!(BeginSponsoringFutureReservesResultCode, $($context),*); + + $macro_to_call_back!(BeginSponsoringFutureReservesResult, $($context),*); + + $macro_to_call_back!(EndSponsoringFutureReservesResultCode, $($context),*); + + $macro_to_call_back!(EndSponsoringFutureReservesResult, $($context),*); + + $macro_to_call_back!(RevokeSponsorshipResultCode, $($context),*); + + $macro_to_call_back!(RevokeSponsorshipResult, $($context),*); + + $macro_to_call_back!(ClawbackResultCode, $($context),*); + + $macro_to_call_back!(ClawbackResult, $($context),*); + + $macro_to_call_back!(ClawbackClaimableBalanceResultCode, $($context),*); + + $macro_to_call_back!(ClawbackClaimableBalanceResult, $($context),*); + + $macro_to_call_back!(SetTrustLineFlagsResultCode, $($context),*); + + $macro_to_call_back!(SetTrustLineFlagsResult, $($context),*); + + $macro_to_call_back!(LiquidityPoolDepositResultCode, $($context),*); + + $macro_to_call_back!(LiquidityPoolDepositResult, $($context),*); + + $macro_to_call_back!(LiquidityPoolWithdrawResultCode, $($context),*); + + $macro_to_call_back!(LiquidityPoolWithdrawResult, $($context),*); + + $macro_to_call_back!(InvokeHostFunctionResultCode, $($context),*); + + $macro_to_call_back!(InvokeHostFunctionResult, $($context),*); + + $macro_to_call_back!(ExtendFootprintTtlResultCode, $($context),*); + + $macro_to_call_back!(ExtendFootprintTtlResult, $($context),*); + + $macro_to_call_back!(RestoreFootprintResultCode, $($context),*); + + $macro_to_call_back!(RestoreFootprintResult, $($context),*); + + $macro_to_call_back!(OperationResultCode, $($context),*); + + $macro_to_call_back!(OperationResult, $($context),*); + + $macro_to_call_back!(OperationResultTr, $($context),*); + + $macro_to_call_back!(TransactionResultCode, $($context),*); + + $macro_to_call_back!(InnerTransactionResult, $($context),*); + + $macro_to_call_back!(InnerTransactionResultResult, $($context),*); + + $macro_to_call_back!(InnerTransactionResultExt, $($context),*); + + $macro_to_call_back!(InnerTransactionResultPair, $($context),*); + + $macro_to_call_back!(TransactionResult, $($context),*); + + $macro_to_call_back!(TransactionResultResult, $($context),*); + + $macro_to_call_back!(TransactionResultExt, $($context),*); + + $macro_to_call_back!(Hash, $($context),*); + + $macro_to_call_back!(Uint256, $($context),*); + + $macro_to_call_back!(Uint32, $($context),*); + + $macro_to_call_back!(Int32, $($context),*); + + $macro_to_call_back!(Uint64, $($context),*); + + $macro_to_call_back!(Int64, $($context),*); + + $macro_to_call_back!(TimePoint, $($context),*); + + $macro_to_call_back!(Duration, $($context),*); + + $macro_to_call_back!(ExtensionPoint, $($context),*); + + $macro_to_call_back!(CryptoKeyType, $($context),*); + + $macro_to_call_back!(PublicKeyType, $($context),*); + + $macro_to_call_back!(SignerKeyType, $($context),*); + + $macro_to_call_back!(PublicKey, $($context),*); + + $macro_to_call_back!(SignerKey, $($context),*); + + $macro_to_call_back!(SignerKeyEd25519SignedPayload, $($context),*); + + $macro_to_call_back!(Signature, $($context),*); + + $macro_to_call_back!(SignatureHint, $($context),*); + + $macro_to_call_back!(NodeId, $($context),*); + + $macro_to_call_back!(AccountId, $($context),*); + + $macro_to_call_back!(Curve25519Secret, $($context),*); + + $macro_to_call_back!(Curve25519Public, $($context),*); + + $macro_to_call_back!(HmacSha256Key, $($context),*); + + $macro_to_call_back!(HmacSha256Mac, $($context),*); + + + }}; +} +pub use _call_macro_with_each_type_bac0bd9a01f0eecd4c0ebd32e9b5e6c490d95cdc2dcdebbad617637359bef05f as call_macro_with_each_type; #[derive(Clone, Copy, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( all(feature = "serde", feature = "alloc"), From db6d5a537a4c8368a3b81ce3278a715d71063797 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Wed, 13 Mar 2024 22:34:26 +1000 Subject: [PATCH 11/20] ping to draft7 --- src/cli/types/schema.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/cli/types/schema.rs b/src/cli/types/schema.rs index 3354513b..dc124567 100644 --- a/src/cli/types/schema.rs +++ b/src/cli/types/schema.rs @@ -1,4 +1,5 @@ use clap::{Args, ValueEnum}; +use schemars::gen::SchemaSettings; use crate::cli::Channel; @@ -38,9 +39,11 @@ macro_rules! run_x_case_for_type { if $type_name == stringify!($type) { match $output { OutputFormat::JsonSchemaDraft7 => { - let schema = schemars::schema_for!(crate::$m::$type); + let settings = SchemaSettings::draft07(); + let generator = settings.into_generator(); + let schema = generator.into_root_schema_for::(); println!("{}", serde_json::to_string_pretty(&schema)?); - }, + } } } }; From ecb4216c7b1872c75416db4ba050b084e32af8dd Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Wed, 13 Mar 2024 23:12:32 +1000 Subject: [PATCH 12/20] upd --- Makefile | 2 +- src/cli/types/schema.rs | 22 +- src/curr/generated.rs | 606 ++++++++++++++++++++++++++++++++++++++++ src/next/generated.rs | 606 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 1218 insertions(+), 18 deletions(-) diff --git a/Makefile b/Makefile index 237e3471..16df6c2a 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ CARGO_HACK_ARGS=--feature-powerset --exclude-features default --group-features b CARGO_DOC_ARGS?=--open -XDRGEN_VERSION=87d633c780260e2a30a28d7dc9571a790f5138fa +XDRGEN_VERSION=4ea81a540e25623567badd1f7dd649cc46cf9f21 # XDRGEN_LOCAL=1 XDRGEN_TYPES_CUSTOM_STR_IMPL_CURR=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12 XDRGEN_TYPES_CUSTOM_STR_IMPL_NEXT=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12 diff --git a/src/cli/types/schema.rs b/src/cli/types/schema.rs index dc124567..ef5c7bc8 100644 --- a/src/cli/types/schema.rs +++ b/src/cli/types/schema.rs @@ -34,29 +34,17 @@ impl Default for OutputFormat { } } -macro_rules! run_x_case_for_type { - ($type:tt, $m:tt, $type_name:expr, $output:expr) => { - if $type_name == stringify!($type) { - match $output { - OutputFormat::JsonSchemaDraft7 => { - let settings = SchemaSettings::draft07(); - let generator = settings.into_generator(); - let schema = generator.into_root_schema_for::(); - println!("{}", serde_json::to_string_pretty(&schema)?); - } - } - } - }; -} - macro_rules! run_x { ($f:ident, $m:ident) => { fn $f(&self) -> Result<(), Error> { use std::str::FromStr; - let _ = crate::$m::TypeVariant::from_str(&self.r#type).map_err(|_| { + let r#type = crate::$m::TypeVariant::from_str(&self.r#type).map_err(|_| { Error::UnknownType(self.r#type.clone(), &crate::$m::TypeVariant::VARIANTS_STR) })?; - crate::$m::call_macro_with_each_type! { run_x_case_for_type, $m, {&self.r#type}, {self.output} } + let settings = SchemaSettings::draft07(); + let generator = settings.into_generator(); + let schema = r#type.json_schema(generator); + println!("{}", serde_json::to_string_pretty(&schema)?); Ok(()) } }; diff --git a/src/curr/generated.rs b/src/curr/generated.rs index a38445e5..c5cc787b 100644 --- a/src/curr/generated.rs +++ b/src/curr/generated.rs @@ -45366,6 +45366,612 @@ impl TypeVariant { pub const fn variants() -> [TypeVariant; 418] { Self::VARIANTS } + + #[cfg(feature = "schemars")] + #[must_use] + #[allow(clippy::too_many_lines)] + pub fn json_schema(&self, gen: schemars::gen::SchemaGenerator) -> schemars::schema::RootSchema { + match self { + Self::Value => gen.into_root_schema_for::(), + Self::ScpBallot => gen.into_root_schema_for::(), + Self::ScpStatementType => gen.into_root_schema_for::(), + Self::ScpNomination => gen.into_root_schema_for::(), + Self::ScpStatement => gen.into_root_schema_for::(), + Self::ScpStatementPledges => gen.into_root_schema_for::(), + Self::ScpStatementPrepare => gen.into_root_schema_for::(), + Self::ScpStatementConfirm => gen.into_root_schema_for::(), + Self::ScpStatementExternalize => gen.into_root_schema_for::(), + Self::ScpEnvelope => gen.into_root_schema_for::(), + Self::ScpQuorumSet => gen.into_root_schema_for::(), + Self::ConfigSettingContractExecutionLanesV0 => { + gen.into_root_schema_for::() + } + Self::ConfigSettingContractComputeV0 => { + gen.into_root_schema_for::() + } + Self::ConfigSettingContractLedgerCostV0 => { + gen.into_root_schema_for::() + } + Self::ConfigSettingContractHistoricalDataV0 => { + gen.into_root_schema_for::() + } + Self::ConfigSettingContractEventsV0 => { + gen.into_root_schema_for::() + } + Self::ConfigSettingContractBandwidthV0 => { + gen.into_root_schema_for::() + } + Self::ContractCostType => gen.into_root_schema_for::(), + Self::ContractCostParamEntry => gen.into_root_schema_for::(), + Self::StateArchivalSettings => gen.into_root_schema_for::(), + Self::EvictionIterator => gen.into_root_schema_for::(), + Self::ContractCostParams => gen.into_root_schema_for::(), + Self::ConfigSettingId => gen.into_root_schema_for::(), + Self::ConfigSettingEntry => gen.into_root_schema_for::(), + Self::ScEnvMetaKind => gen.into_root_schema_for::(), + Self::ScEnvMetaEntry => gen.into_root_schema_for::(), + Self::ScMetaV0 => gen.into_root_schema_for::(), + Self::ScMetaKind => gen.into_root_schema_for::(), + Self::ScMetaEntry => gen.into_root_schema_for::(), + Self::ScSpecType => gen.into_root_schema_for::(), + Self::ScSpecTypeOption => gen.into_root_schema_for::(), + Self::ScSpecTypeResult => gen.into_root_schema_for::(), + Self::ScSpecTypeVec => gen.into_root_schema_for::(), + Self::ScSpecTypeMap => gen.into_root_schema_for::(), + Self::ScSpecTypeTuple => gen.into_root_schema_for::(), + Self::ScSpecTypeBytesN => gen.into_root_schema_for::(), + Self::ScSpecTypeUdt => gen.into_root_schema_for::(), + Self::ScSpecTypeDef => gen.into_root_schema_for::(), + Self::ScSpecUdtStructFieldV0 => gen.into_root_schema_for::(), + Self::ScSpecUdtStructV0 => gen.into_root_schema_for::(), + Self::ScSpecUdtUnionCaseVoidV0 => { + gen.into_root_schema_for::() + } + Self::ScSpecUdtUnionCaseTupleV0 => { + gen.into_root_schema_for::() + } + Self::ScSpecUdtUnionCaseV0Kind => { + gen.into_root_schema_for::() + } + Self::ScSpecUdtUnionCaseV0 => gen.into_root_schema_for::(), + Self::ScSpecUdtUnionV0 => gen.into_root_schema_for::(), + Self::ScSpecUdtEnumCaseV0 => gen.into_root_schema_for::(), + Self::ScSpecUdtEnumV0 => gen.into_root_schema_for::(), + Self::ScSpecUdtErrorEnumCaseV0 => { + gen.into_root_schema_for::() + } + Self::ScSpecUdtErrorEnumV0 => gen.into_root_schema_for::(), + Self::ScSpecFunctionInputV0 => gen.into_root_schema_for::(), + Self::ScSpecFunctionV0 => gen.into_root_schema_for::(), + Self::ScSpecEntryKind => gen.into_root_schema_for::(), + Self::ScSpecEntry => gen.into_root_schema_for::(), + Self::ScValType => gen.into_root_schema_for::(), + Self::ScErrorType => gen.into_root_schema_for::(), + Self::ScErrorCode => gen.into_root_schema_for::(), + Self::ScError => gen.into_root_schema_for::(), + Self::UInt128Parts => gen.into_root_schema_for::(), + Self::Int128Parts => gen.into_root_schema_for::(), + Self::UInt256Parts => gen.into_root_schema_for::(), + Self::Int256Parts => gen.into_root_schema_for::(), + Self::ContractExecutableType => gen.into_root_schema_for::(), + Self::ContractExecutable => gen.into_root_schema_for::(), + Self::ScAddressType => 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::(), + Self::ScBytes => gen.into_root_schema_for::(), + Self::ScString => gen.into_root_schema_for::(), + Self::ScSymbol => gen.into_root_schema_for::(), + Self::ScNonceKey => gen.into_root_schema_for::(), + Self::ScContractInstance => gen.into_root_schema_for::(), + Self::ScVal => gen.into_root_schema_for::(), + Self::ScMapEntry => gen.into_root_schema_for::(), + Self::StoredTransactionSet => gen.into_root_schema_for::(), + Self::StoredDebugTransactionSet => { + gen.into_root_schema_for::() + } + Self::PersistedScpStateV0 => gen.into_root_schema_for::(), + Self::PersistedScpStateV1 => gen.into_root_schema_for::(), + Self::PersistedScpState => gen.into_root_schema_for::(), + Self::Thresholds => gen.into_root_schema_for::(), + Self::String32 => gen.into_root_schema_for::(), + 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::(), + Self::AssetCode => gen.into_root_schema_for::(), + Self::AlphaNum4 => gen.into_root_schema_for::(), + Self::AlphaNum12 => gen.into_root_schema_for::(), + Self::Asset => gen.into_root_schema_for::(), + Self::Price => gen.into_root_schema_for::(), + Self::Liabilities => gen.into_root_schema_for::(), + Self::ThresholdIndexes => gen.into_root_schema_for::(), + Self::LedgerEntryType => gen.into_root_schema_for::(), + Self::Signer => gen.into_root_schema_for::(), + Self::AccountFlags => gen.into_root_schema_for::(), + Self::SponsorshipDescriptor => gen.into_root_schema_for::(), + Self::AccountEntryExtensionV3 => gen.into_root_schema_for::(), + Self::AccountEntryExtensionV2 => gen.into_root_schema_for::(), + Self::AccountEntryExtensionV2Ext => { + gen.into_root_schema_for::() + } + Self::AccountEntryExtensionV1 => gen.into_root_schema_for::(), + Self::AccountEntryExtensionV1Ext => { + gen.into_root_schema_for::() + } + Self::AccountEntry => gen.into_root_schema_for::(), + Self::AccountEntryExt => gen.into_root_schema_for::(), + Self::TrustLineFlags => gen.into_root_schema_for::(), + Self::LiquidityPoolType => gen.into_root_schema_for::(), + Self::TrustLineAsset => gen.into_root_schema_for::(), + Self::TrustLineEntryExtensionV2 => { + gen.into_root_schema_for::() + } + Self::TrustLineEntryExtensionV2Ext => { + gen.into_root_schema_for::() + } + Self::TrustLineEntry => gen.into_root_schema_for::(), + Self::TrustLineEntryExt => gen.into_root_schema_for::(), + Self::TrustLineEntryV1 => gen.into_root_schema_for::(), + Self::TrustLineEntryV1Ext => gen.into_root_schema_for::(), + Self::OfferEntryFlags => gen.into_root_schema_for::(), + Self::OfferEntry => gen.into_root_schema_for::(), + Self::OfferEntryExt => gen.into_root_schema_for::(), + Self::DataEntry => gen.into_root_schema_for::(), + Self::DataEntryExt => gen.into_root_schema_for::(), + Self::ClaimPredicateType => gen.into_root_schema_for::(), + Self::ClaimPredicate => gen.into_root_schema_for::(), + 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::() + } + Self::ClaimableBalanceEntryExtensionV1Ext => { + gen.into_root_schema_for::() + } + Self::ClaimableBalanceEntry => gen.into_root_schema_for::(), + Self::ClaimableBalanceEntryExt => { + gen.into_root_schema_for::() + } + Self::LiquidityPoolConstantProductParameters => { + gen.into_root_schema_for::() + } + Self::LiquidityPoolEntry => gen.into_root_schema_for::(), + Self::LiquidityPoolEntryBody => gen.into_root_schema_for::(), + Self::LiquidityPoolEntryConstantProduct => { + gen.into_root_schema_for::() + } + Self::ContractDataDurability => gen.into_root_schema_for::(), + Self::ContractDataEntry => gen.into_root_schema_for::(), + Self::ContractCodeEntry => gen.into_root_schema_for::(), + Self::TtlEntry => gen.into_root_schema_for::(), + Self::LedgerEntryExtensionV1 => gen.into_root_schema_for::(), + Self::LedgerEntryExtensionV1Ext => { + gen.into_root_schema_for::() + } + Self::LedgerEntry => gen.into_root_schema_for::(), + Self::LedgerEntryData => gen.into_root_schema_for::(), + Self::LedgerEntryExt => gen.into_root_schema_for::(), + Self::LedgerKey => gen.into_root_schema_for::(), + Self::LedgerKeyAccount => gen.into_root_schema_for::(), + Self::LedgerKeyTrustLine => gen.into_root_schema_for::(), + Self::LedgerKeyOffer => gen.into_root_schema_for::(), + Self::LedgerKeyData => gen.into_root_schema_for::(), + Self::LedgerKeyClaimableBalance => { + gen.into_root_schema_for::() + } + Self::LedgerKeyLiquidityPool => gen.into_root_schema_for::(), + Self::LedgerKeyContractData => gen.into_root_schema_for::(), + Self::LedgerKeyContractCode => gen.into_root_schema_for::(), + Self::LedgerKeyConfigSetting => gen.into_root_schema_for::(), + Self::LedgerKeyTtl => gen.into_root_schema_for::(), + Self::EnvelopeType => gen.into_root_schema_for::(), + Self::UpgradeType => gen.into_root_schema_for::(), + Self::StellarValueType => gen.into_root_schema_for::(), + Self::LedgerCloseValueSignature => { + gen.into_root_schema_for::() + } + Self::StellarValue => gen.into_root_schema_for::(), + Self::StellarValueExt => gen.into_root_schema_for::(), + Self::LedgerHeaderFlags => gen.into_root_schema_for::(), + Self::LedgerHeaderExtensionV1 => gen.into_root_schema_for::(), + Self::LedgerHeaderExtensionV1Ext => { + gen.into_root_schema_for::() + } + Self::LedgerHeader => gen.into_root_schema_for::(), + Self::LedgerHeaderExt => gen.into_root_schema_for::(), + Self::LedgerUpgradeType => gen.into_root_schema_for::(), + Self::ConfigUpgradeSetKey => gen.into_root_schema_for::(), + Self::LedgerUpgrade => gen.into_root_schema_for::(), + Self::ConfigUpgradeSet => gen.into_root_schema_for::(), + Self::BucketEntryType => gen.into_root_schema_for::(), + Self::BucketMetadata => gen.into_root_schema_for::(), + Self::BucketMetadataExt => gen.into_root_schema_for::(), + Self::BucketEntry => gen.into_root_schema_for::(), + Self::TxSetComponentType => gen.into_root_schema_for::(), + Self::TxSetComponent => gen.into_root_schema_for::(), + Self::TxSetComponentTxsMaybeDiscountedFee => { + gen.into_root_schema_for::() + } + Self::TransactionPhase => gen.into_root_schema_for::(), + Self::TransactionSet => gen.into_root_schema_for::(), + Self::TransactionSetV1 => gen.into_root_schema_for::(), + Self::GeneralizedTransactionSet => { + gen.into_root_schema_for::() + } + Self::TransactionResultPair => gen.into_root_schema_for::(), + Self::TransactionResultSet => gen.into_root_schema_for::(), + Self::TransactionHistoryEntry => gen.into_root_schema_for::(), + Self::TransactionHistoryEntryExt => { + gen.into_root_schema_for::() + } + Self::TransactionHistoryResultEntry => { + gen.into_root_schema_for::() + } + Self::TransactionHistoryResultEntryExt => { + gen.into_root_schema_for::() + } + Self::LedgerHeaderHistoryEntry => { + gen.into_root_schema_for::() + } + Self::LedgerHeaderHistoryEntryExt => { + gen.into_root_schema_for::() + } + Self::LedgerScpMessages => gen.into_root_schema_for::(), + Self::ScpHistoryEntryV0 => gen.into_root_schema_for::(), + Self::ScpHistoryEntry => gen.into_root_schema_for::(), + Self::LedgerEntryChangeType => gen.into_root_schema_for::(), + Self::LedgerEntryChange => gen.into_root_schema_for::(), + Self::LedgerEntryChanges => gen.into_root_schema_for::(), + Self::OperationMeta => gen.into_root_schema_for::(), + Self::TransactionMetaV1 => gen.into_root_schema_for::(), + Self::TransactionMetaV2 => gen.into_root_schema_for::(), + Self::ContractEventType => gen.into_root_schema_for::(), + Self::ContractEvent => gen.into_root_schema_for::(), + Self::ContractEventBody => gen.into_root_schema_for::(), + Self::ContractEventV0 => gen.into_root_schema_for::(), + Self::DiagnosticEvent => gen.into_root_schema_for::(), + Self::SorobanTransactionMeta => gen.into_root_schema_for::(), + Self::TransactionMetaV3 => gen.into_root_schema_for::(), + Self::InvokeHostFunctionSuccessPreImage => { + gen.into_root_schema_for::() + } + Self::TransactionMeta => gen.into_root_schema_for::(), + Self::TransactionResultMeta => gen.into_root_schema_for::(), + Self::UpgradeEntryMeta => gen.into_root_schema_for::(), + Self::LedgerCloseMetaV0 => gen.into_root_schema_for::(), + Self::LedgerCloseMetaV1 => gen.into_root_schema_for::(), + Self::LedgerCloseMeta => gen.into_root_schema_for::(), + Self::ErrorCode => gen.into_root_schema_for::(), + Self::SError => gen.into_root_schema_for::(), + Self::SendMore => gen.into_root_schema_for::(), + Self::SendMoreExtended => gen.into_root_schema_for::(), + Self::AuthCert => gen.into_root_schema_for::(), + Self::Hello => gen.into_root_schema_for::(), + Self::Auth => gen.into_root_schema_for::(), + Self::IpAddrType => gen.into_root_schema_for::(), + Self::PeerAddress => gen.into_root_schema_for::(), + Self::PeerAddressIp => gen.into_root_schema_for::(), + Self::MessageType => gen.into_root_schema_for::(), + Self::DontHave => gen.into_root_schema_for::(), + Self::SurveyMessageCommandType => { + gen.into_root_schema_for::() + } + Self::SurveyMessageResponseType => { + gen.into_root_schema_for::() + } + Self::SurveyRequestMessage => gen.into_root_schema_for::(), + Self::SignedSurveyRequestMessage => { + gen.into_root_schema_for::() + } + Self::EncryptedBody => gen.into_root_schema_for::(), + Self::SurveyResponseMessage => gen.into_root_schema_for::(), + Self::SignedSurveyResponseMessage => { + gen.into_root_schema_for::() + } + Self::PeerStats => gen.into_root_schema_for::(), + Self::PeerStatList => gen.into_root_schema_for::(), + Self::TopologyResponseBodyV0 => gen.into_root_schema_for::(), + Self::TopologyResponseBodyV1 => gen.into_root_schema_for::(), + Self::SurveyResponseBody => gen.into_root_schema_for::(), + Self::TxAdvertVector => gen.into_root_schema_for::(), + Self::FloodAdvert => gen.into_root_schema_for::(), + Self::TxDemandVector => gen.into_root_schema_for::(), + Self::FloodDemand => gen.into_root_schema_for::(), + Self::StellarMessage => gen.into_root_schema_for::(), + Self::AuthenticatedMessage => gen.into_root_schema_for::(), + Self::AuthenticatedMessageV0 => gen.into_root_schema_for::(), + Self::LiquidityPoolParameters => gen.into_root_schema_for::(), + Self::MuxedAccount => gen.into_root_schema_for::(), + Self::MuxedAccountMed25519 => gen.into_root_schema_for::(), + Self::DecoratedSignature => gen.into_root_schema_for::(), + Self::OperationType => gen.into_root_schema_for::(), + Self::CreateAccountOp => gen.into_root_schema_for::(), + Self::PaymentOp => gen.into_root_schema_for::(), + Self::PathPaymentStrictReceiveOp => { + gen.into_root_schema_for::() + } + Self::PathPaymentStrictSendOp => gen.into_root_schema_for::(), + Self::ManageSellOfferOp => gen.into_root_schema_for::(), + Self::ManageBuyOfferOp => gen.into_root_schema_for::(), + Self::CreatePassiveSellOfferOp => { + gen.into_root_schema_for::() + } + Self::SetOptionsOp => gen.into_root_schema_for::(), + Self::ChangeTrustAsset => gen.into_root_schema_for::(), + Self::ChangeTrustOp => gen.into_root_schema_for::(), + Self::AllowTrustOp => gen.into_root_schema_for::(), + Self::ManageDataOp => gen.into_root_schema_for::(), + Self::BumpSequenceOp => gen.into_root_schema_for::(), + Self::CreateClaimableBalanceOp => { + gen.into_root_schema_for::() + } + Self::ClaimClaimableBalanceOp => gen.into_root_schema_for::(), + Self::BeginSponsoringFutureReservesOp => { + gen.into_root_schema_for::() + } + Self::RevokeSponsorshipType => gen.into_root_schema_for::(), + Self::RevokeSponsorshipOp => gen.into_root_schema_for::(), + Self::RevokeSponsorshipOpSigner => { + gen.into_root_schema_for::() + } + Self::ClawbackOp => gen.into_root_schema_for::(), + Self::ClawbackClaimableBalanceOp => { + gen.into_root_schema_for::() + } + Self::SetTrustLineFlagsOp => gen.into_root_schema_for::(), + Self::LiquidityPoolDepositOp => gen.into_root_schema_for::(), + Self::LiquidityPoolWithdrawOp => gen.into_root_schema_for::(), + Self::HostFunctionType => gen.into_root_schema_for::(), + Self::ContractIdPreimageType => gen.into_root_schema_for::(), + Self::ContractIdPreimage => gen.into_root_schema_for::(), + Self::ContractIdPreimageFromAddress => { + gen.into_root_schema_for::() + } + Self::CreateContractArgs => gen.into_root_schema_for::(), + Self::InvokeContractArgs => gen.into_root_schema_for::(), + Self::HostFunction => gen.into_root_schema_for::(), + Self::SorobanAuthorizedFunctionType => { + gen.into_root_schema_for::() + } + Self::SorobanAuthorizedFunction => { + gen.into_root_schema_for::() + } + Self::SorobanAuthorizedInvocation => { + gen.into_root_schema_for::() + } + Self::SorobanAddressCredentials => { + gen.into_root_schema_for::() + } + Self::SorobanCredentialsType => gen.into_root_schema_for::(), + Self::SorobanCredentials => gen.into_root_schema_for::(), + Self::SorobanAuthorizationEntry => { + gen.into_root_schema_for::() + } + Self::InvokeHostFunctionOp => gen.into_root_schema_for::(), + Self::ExtendFootprintTtlOp => gen.into_root_schema_for::(), + Self::RestoreFootprintOp => gen.into_root_schema_for::(), + Self::Operation => gen.into_root_schema_for::(), + Self::OperationBody => gen.into_root_schema_for::(), + Self::HashIdPreimage => gen.into_root_schema_for::(), + Self::HashIdPreimageOperationId => { + gen.into_root_schema_for::() + } + Self::HashIdPreimageRevokeId => gen.into_root_schema_for::(), + Self::HashIdPreimageContractId => { + gen.into_root_schema_for::() + } + Self::HashIdPreimageSorobanAuthorization => { + gen.into_root_schema_for::() + } + Self::MemoType => gen.into_root_schema_for::(), + Self::Memo => gen.into_root_schema_for::(), + Self::TimeBounds => gen.into_root_schema_for::(), + Self::LedgerBounds => gen.into_root_schema_for::(), + Self::PreconditionsV2 => gen.into_root_schema_for::(), + Self::PreconditionType => gen.into_root_schema_for::(), + Self::Preconditions => gen.into_root_schema_for::(), + Self::LedgerFootprint => 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::(), + Self::TransactionV0Ext => gen.into_root_schema_for::(), + Self::TransactionV0Envelope => gen.into_root_schema_for::(), + Self::Transaction => gen.into_root_schema_for::(), + Self::TransactionExt => gen.into_root_schema_for::(), + Self::TransactionV1Envelope => gen.into_root_schema_for::(), + Self::FeeBumpTransaction => gen.into_root_schema_for::(), + Self::FeeBumpTransactionInnerTx => { + gen.into_root_schema_for::() + } + Self::FeeBumpTransactionExt => gen.into_root_schema_for::(), + Self::FeeBumpTransactionEnvelope => { + gen.into_root_schema_for::() + } + Self::TransactionEnvelope => gen.into_root_schema_for::(), + Self::TransactionSignaturePayload => { + gen.into_root_schema_for::() + } + Self::TransactionSignaturePayloadTaggedTransaction => { + gen.into_root_schema_for::() + } + Self::ClaimAtomType => gen.into_root_schema_for::(), + Self::ClaimOfferAtomV0 => gen.into_root_schema_for::(), + Self::ClaimOfferAtom => gen.into_root_schema_for::(), + Self::ClaimLiquidityAtom => gen.into_root_schema_for::(), + Self::ClaimAtom => gen.into_root_schema_for::(), + Self::CreateAccountResultCode => gen.into_root_schema_for::(), + Self::CreateAccountResult => gen.into_root_schema_for::(), + Self::PaymentResultCode => gen.into_root_schema_for::(), + Self::PaymentResult => gen.into_root_schema_for::(), + Self::PathPaymentStrictReceiveResultCode => { + gen.into_root_schema_for::() + } + Self::SimplePaymentResult => gen.into_root_schema_for::(), + Self::PathPaymentStrictReceiveResult => { + gen.into_root_schema_for::() + } + Self::PathPaymentStrictReceiveResultSuccess => { + gen.into_root_schema_for::() + } + Self::PathPaymentStrictSendResultCode => { + gen.into_root_schema_for::() + } + Self::PathPaymentStrictSendResult => { + gen.into_root_schema_for::() + } + Self::PathPaymentStrictSendResultSuccess => { + gen.into_root_schema_for::() + } + Self::ManageSellOfferResultCode => { + gen.into_root_schema_for::() + } + Self::ManageOfferEffect => gen.into_root_schema_for::(), + Self::ManageOfferSuccessResult => { + gen.into_root_schema_for::() + } + Self::ManageOfferSuccessResultOffer => { + gen.into_root_schema_for::() + } + Self::ManageSellOfferResult => gen.into_root_schema_for::(), + Self::ManageBuyOfferResultCode => { + gen.into_root_schema_for::() + } + Self::ManageBuyOfferResult => gen.into_root_schema_for::(), + Self::SetOptionsResultCode => gen.into_root_schema_for::(), + Self::SetOptionsResult => gen.into_root_schema_for::(), + Self::ChangeTrustResultCode => gen.into_root_schema_for::(), + Self::ChangeTrustResult => gen.into_root_schema_for::(), + Self::AllowTrustResultCode => gen.into_root_schema_for::(), + Self::AllowTrustResult => gen.into_root_schema_for::(), + Self::AccountMergeResultCode => gen.into_root_schema_for::(), + Self::AccountMergeResult => gen.into_root_schema_for::(), + Self::InflationResultCode => gen.into_root_schema_for::(), + Self::InflationPayout => gen.into_root_schema_for::(), + Self::InflationResult => gen.into_root_schema_for::(), + Self::ManageDataResultCode => gen.into_root_schema_for::(), + Self::ManageDataResult => gen.into_root_schema_for::(), + Self::BumpSequenceResultCode => gen.into_root_schema_for::(), + Self::BumpSequenceResult => gen.into_root_schema_for::(), + Self::CreateClaimableBalanceResultCode => { + gen.into_root_schema_for::() + } + Self::CreateClaimableBalanceResult => { + gen.into_root_schema_for::() + } + Self::ClaimClaimableBalanceResultCode => { + gen.into_root_schema_for::() + } + Self::ClaimClaimableBalanceResult => { + gen.into_root_schema_for::() + } + Self::BeginSponsoringFutureReservesResultCode => { + gen.into_root_schema_for::() + } + Self::BeginSponsoringFutureReservesResult => { + gen.into_root_schema_for::() + } + Self::EndSponsoringFutureReservesResultCode => { + gen.into_root_schema_for::() + } + Self::EndSponsoringFutureReservesResult => { + gen.into_root_schema_for::() + } + Self::RevokeSponsorshipResultCode => { + gen.into_root_schema_for::() + } + Self::RevokeSponsorshipResult => gen.into_root_schema_for::(), + Self::ClawbackResultCode => gen.into_root_schema_for::(), + Self::ClawbackResult => gen.into_root_schema_for::(), + Self::ClawbackClaimableBalanceResultCode => { + gen.into_root_schema_for::() + } + Self::ClawbackClaimableBalanceResult => { + gen.into_root_schema_for::() + } + Self::SetTrustLineFlagsResultCode => { + gen.into_root_schema_for::() + } + Self::SetTrustLineFlagsResult => gen.into_root_schema_for::(), + Self::LiquidityPoolDepositResultCode => { + gen.into_root_schema_for::() + } + Self::LiquidityPoolDepositResult => { + gen.into_root_schema_for::() + } + Self::LiquidityPoolWithdrawResultCode => { + gen.into_root_schema_for::() + } + Self::LiquidityPoolWithdrawResult => { + gen.into_root_schema_for::() + } + Self::InvokeHostFunctionResultCode => { + gen.into_root_schema_for::() + } + Self::InvokeHostFunctionResult => { + gen.into_root_schema_for::() + } + Self::ExtendFootprintTtlResultCode => { + gen.into_root_schema_for::() + } + Self::ExtendFootprintTtlResult => { + gen.into_root_schema_for::() + } + Self::RestoreFootprintResultCode => { + gen.into_root_schema_for::() + } + Self::RestoreFootprintResult => gen.into_root_schema_for::(), + Self::OperationResultCode => gen.into_root_schema_for::(), + Self::OperationResult => gen.into_root_schema_for::(), + Self::OperationResultTr => gen.into_root_schema_for::(), + Self::TransactionResultCode => gen.into_root_schema_for::(), + Self::InnerTransactionResult => gen.into_root_schema_for::(), + Self::InnerTransactionResultResult => { + gen.into_root_schema_for::() + } + Self::InnerTransactionResultExt => { + gen.into_root_schema_for::() + } + Self::InnerTransactionResultPair => { + gen.into_root_schema_for::() + } + Self::TransactionResult => gen.into_root_schema_for::(), + Self::TransactionResultResult => gen.into_root_schema_for::(), + Self::TransactionResultExt => gen.into_root_schema_for::(), + Self::Hash => gen.into_root_schema_for::(), + Self::Uint256 => gen.into_root_schema_for::(), + Self::Uint32 => gen.into_root_schema_for::(), + Self::Int32 => gen.into_root_schema_for::(), + Self::Uint64 => gen.into_root_schema_for::(), + Self::Int64 => gen.into_root_schema_for::(), + Self::TimePoint => gen.into_root_schema_for::(), + Self::Duration => gen.into_root_schema_for::(), + Self::ExtensionPoint => gen.into_root_schema_for::(), + Self::CryptoKeyType => gen.into_root_schema_for::(), + Self::PublicKeyType => gen.into_root_schema_for::(), + Self::SignerKeyType => gen.into_root_schema_for::(), + Self::PublicKey => gen.into_root_schema_for::(), + Self::SignerKey => gen.into_root_schema_for::(), + Self::SignerKeyEd25519SignedPayload => { + gen.into_root_schema_for::() + } + Self::Signature => gen.into_root_schema_for::(), + Self::SignatureHint => gen.into_root_schema_for::(), + Self::NodeId => gen.into_root_schema_for::(), + Self::AccountId => gen.into_root_schema_for::(), + Self::Curve25519Secret => gen.into_root_schema_for::(), + Self::Curve25519Public => gen.into_root_schema_for::(), + Self::HmacSha256Key => gen.into_root_schema_for::(), + Self::HmacSha256Mac => gen.into_root_schema_for::(), + } + } } impl Name for TypeVariant { diff --git a/src/next/generated.rs b/src/next/generated.rs index e8547b1d..3c7a959a 100644 --- a/src/next/generated.rs +++ b/src/next/generated.rs @@ -45366,6 +45366,612 @@ impl TypeVariant { pub const fn variants() -> [TypeVariant; 418] { Self::VARIANTS } + + #[cfg(feature = "schemars")] + #[must_use] + #[allow(clippy::too_many_lines)] + pub fn json_schema(&self, gen: schemars::gen::SchemaGenerator) -> schemars::schema::RootSchema { + match self { + Self::Value => gen.into_root_schema_for::(), + Self::ScpBallot => gen.into_root_schema_for::(), + Self::ScpStatementType => gen.into_root_schema_for::(), + Self::ScpNomination => gen.into_root_schema_for::(), + Self::ScpStatement => gen.into_root_schema_for::(), + Self::ScpStatementPledges => gen.into_root_schema_for::(), + Self::ScpStatementPrepare => gen.into_root_schema_for::(), + Self::ScpStatementConfirm => gen.into_root_schema_for::(), + Self::ScpStatementExternalize => gen.into_root_schema_for::(), + Self::ScpEnvelope => gen.into_root_schema_for::(), + Self::ScpQuorumSet => gen.into_root_schema_for::(), + Self::ConfigSettingContractExecutionLanesV0 => { + gen.into_root_schema_for::() + } + Self::ConfigSettingContractComputeV0 => { + gen.into_root_schema_for::() + } + Self::ConfigSettingContractLedgerCostV0 => { + gen.into_root_schema_for::() + } + Self::ConfigSettingContractHistoricalDataV0 => { + gen.into_root_schema_for::() + } + Self::ConfigSettingContractEventsV0 => { + gen.into_root_schema_for::() + } + Self::ConfigSettingContractBandwidthV0 => { + gen.into_root_schema_for::() + } + Self::ContractCostType => gen.into_root_schema_for::(), + Self::ContractCostParamEntry => gen.into_root_schema_for::(), + Self::StateArchivalSettings => gen.into_root_schema_for::(), + Self::EvictionIterator => gen.into_root_schema_for::(), + Self::ContractCostParams => gen.into_root_schema_for::(), + Self::ConfigSettingId => gen.into_root_schema_for::(), + Self::ConfigSettingEntry => gen.into_root_schema_for::(), + Self::ScEnvMetaKind => gen.into_root_schema_for::(), + Self::ScEnvMetaEntry => gen.into_root_schema_for::(), + Self::ScMetaV0 => gen.into_root_schema_for::(), + Self::ScMetaKind => gen.into_root_schema_for::(), + Self::ScMetaEntry => gen.into_root_schema_for::(), + Self::ScSpecType => gen.into_root_schema_for::(), + Self::ScSpecTypeOption => gen.into_root_schema_for::(), + Self::ScSpecTypeResult => gen.into_root_schema_for::(), + Self::ScSpecTypeVec => gen.into_root_schema_for::(), + Self::ScSpecTypeMap => gen.into_root_schema_for::(), + Self::ScSpecTypeTuple => gen.into_root_schema_for::(), + Self::ScSpecTypeBytesN => gen.into_root_schema_for::(), + Self::ScSpecTypeUdt => gen.into_root_schema_for::(), + Self::ScSpecTypeDef => gen.into_root_schema_for::(), + Self::ScSpecUdtStructFieldV0 => gen.into_root_schema_for::(), + Self::ScSpecUdtStructV0 => gen.into_root_schema_for::(), + Self::ScSpecUdtUnionCaseVoidV0 => { + gen.into_root_schema_for::() + } + Self::ScSpecUdtUnionCaseTupleV0 => { + gen.into_root_schema_for::() + } + Self::ScSpecUdtUnionCaseV0Kind => { + gen.into_root_schema_for::() + } + Self::ScSpecUdtUnionCaseV0 => gen.into_root_schema_for::(), + Self::ScSpecUdtUnionV0 => gen.into_root_schema_for::(), + Self::ScSpecUdtEnumCaseV0 => gen.into_root_schema_for::(), + Self::ScSpecUdtEnumV0 => gen.into_root_schema_for::(), + Self::ScSpecUdtErrorEnumCaseV0 => { + gen.into_root_schema_for::() + } + Self::ScSpecUdtErrorEnumV0 => gen.into_root_schema_for::(), + Self::ScSpecFunctionInputV0 => gen.into_root_schema_for::(), + Self::ScSpecFunctionV0 => gen.into_root_schema_for::(), + Self::ScSpecEntryKind => gen.into_root_schema_for::(), + Self::ScSpecEntry => gen.into_root_schema_for::(), + Self::ScValType => gen.into_root_schema_for::(), + Self::ScErrorType => gen.into_root_schema_for::(), + Self::ScErrorCode => gen.into_root_schema_for::(), + Self::ScError => gen.into_root_schema_for::(), + Self::UInt128Parts => gen.into_root_schema_for::(), + Self::Int128Parts => gen.into_root_schema_for::(), + Self::UInt256Parts => gen.into_root_schema_for::(), + Self::Int256Parts => gen.into_root_schema_for::(), + Self::ContractExecutableType => gen.into_root_schema_for::(), + Self::ContractExecutable => gen.into_root_schema_for::(), + Self::ScAddressType => 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::(), + Self::ScBytes => gen.into_root_schema_for::(), + Self::ScString => gen.into_root_schema_for::(), + Self::ScSymbol => gen.into_root_schema_for::(), + Self::ScNonceKey => gen.into_root_schema_for::(), + Self::ScContractInstance => gen.into_root_schema_for::(), + Self::ScVal => gen.into_root_schema_for::(), + Self::ScMapEntry => gen.into_root_schema_for::(), + Self::StoredTransactionSet => gen.into_root_schema_for::(), + Self::StoredDebugTransactionSet => { + gen.into_root_schema_for::() + } + Self::PersistedScpStateV0 => gen.into_root_schema_for::(), + Self::PersistedScpStateV1 => gen.into_root_schema_for::(), + Self::PersistedScpState => gen.into_root_schema_for::(), + Self::Thresholds => gen.into_root_schema_for::(), + Self::String32 => gen.into_root_schema_for::(), + 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::(), + Self::AssetCode => gen.into_root_schema_for::(), + Self::AlphaNum4 => gen.into_root_schema_for::(), + Self::AlphaNum12 => gen.into_root_schema_for::(), + Self::Asset => gen.into_root_schema_for::(), + Self::Price => gen.into_root_schema_for::(), + Self::Liabilities => gen.into_root_schema_for::(), + Self::ThresholdIndexes => gen.into_root_schema_for::(), + Self::LedgerEntryType => gen.into_root_schema_for::(), + Self::Signer => gen.into_root_schema_for::(), + Self::AccountFlags => gen.into_root_schema_for::(), + Self::SponsorshipDescriptor => gen.into_root_schema_for::(), + Self::AccountEntryExtensionV3 => gen.into_root_schema_for::(), + Self::AccountEntryExtensionV2 => gen.into_root_schema_for::(), + Self::AccountEntryExtensionV2Ext => { + gen.into_root_schema_for::() + } + Self::AccountEntryExtensionV1 => gen.into_root_schema_for::(), + Self::AccountEntryExtensionV1Ext => { + gen.into_root_schema_for::() + } + Self::AccountEntry => gen.into_root_schema_for::(), + Self::AccountEntryExt => gen.into_root_schema_for::(), + Self::TrustLineFlags => gen.into_root_schema_for::(), + Self::LiquidityPoolType => gen.into_root_schema_for::(), + Self::TrustLineAsset => gen.into_root_schema_for::(), + Self::TrustLineEntryExtensionV2 => { + gen.into_root_schema_for::() + } + Self::TrustLineEntryExtensionV2Ext => { + gen.into_root_schema_for::() + } + Self::TrustLineEntry => gen.into_root_schema_for::(), + Self::TrustLineEntryExt => gen.into_root_schema_for::(), + Self::TrustLineEntryV1 => gen.into_root_schema_for::(), + Self::TrustLineEntryV1Ext => gen.into_root_schema_for::(), + Self::OfferEntryFlags => gen.into_root_schema_for::(), + Self::OfferEntry => gen.into_root_schema_for::(), + Self::OfferEntryExt => gen.into_root_schema_for::(), + Self::DataEntry => gen.into_root_schema_for::(), + Self::DataEntryExt => gen.into_root_schema_for::(), + Self::ClaimPredicateType => gen.into_root_schema_for::(), + Self::ClaimPredicate => gen.into_root_schema_for::(), + 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::() + } + Self::ClaimableBalanceEntryExtensionV1Ext => { + gen.into_root_schema_for::() + } + Self::ClaimableBalanceEntry => gen.into_root_schema_for::(), + Self::ClaimableBalanceEntryExt => { + gen.into_root_schema_for::() + } + Self::LiquidityPoolConstantProductParameters => { + gen.into_root_schema_for::() + } + Self::LiquidityPoolEntry => gen.into_root_schema_for::(), + Self::LiquidityPoolEntryBody => gen.into_root_schema_for::(), + Self::LiquidityPoolEntryConstantProduct => { + gen.into_root_schema_for::() + } + Self::ContractDataDurability => gen.into_root_schema_for::(), + Self::ContractDataEntry => gen.into_root_schema_for::(), + Self::ContractCodeEntry => gen.into_root_schema_for::(), + Self::TtlEntry => gen.into_root_schema_for::(), + Self::LedgerEntryExtensionV1 => gen.into_root_schema_for::(), + Self::LedgerEntryExtensionV1Ext => { + gen.into_root_schema_for::() + } + Self::LedgerEntry => gen.into_root_schema_for::(), + Self::LedgerEntryData => gen.into_root_schema_for::(), + Self::LedgerEntryExt => gen.into_root_schema_for::(), + Self::LedgerKey => gen.into_root_schema_for::(), + Self::LedgerKeyAccount => gen.into_root_schema_for::(), + Self::LedgerKeyTrustLine => gen.into_root_schema_for::(), + Self::LedgerKeyOffer => gen.into_root_schema_for::(), + Self::LedgerKeyData => gen.into_root_schema_for::(), + Self::LedgerKeyClaimableBalance => { + gen.into_root_schema_for::() + } + Self::LedgerKeyLiquidityPool => gen.into_root_schema_for::(), + Self::LedgerKeyContractData => gen.into_root_schema_for::(), + Self::LedgerKeyContractCode => gen.into_root_schema_for::(), + Self::LedgerKeyConfigSetting => gen.into_root_schema_for::(), + Self::LedgerKeyTtl => gen.into_root_schema_for::(), + Self::EnvelopeType => gen.into_root_schema_for::(), + Self::UpgradeType => gen.into_root_schema_for::(), + Self::StellarValueType => gen.into_root_schema_for::(), + Self::LedgerCloseValueSignature => { + gen.into_root_schema_for::() + } + Self::StellarValue => gen.into_root_schema_for::(), + Self::StellarValueExt => gen.into_root_schema_for::(), + Self::LedgerHeaderFlags => gen.into_root_schema_for::(), + Self::LedgerHeaderExtensionV1 => gen.into_root_schema_for::(), + Self::LedgerHeaderExtensionV1Ext => { + gen.into_root_schema_for::() + } + Self::LedgerHeader => gen.into_root_schema_for::(), + Self::LedgerHeaderExt => gen.into_root_schema_for::(), + Self::LedgerUpgradeType => gen.into_root_schema_for::(), + Self::ConfigUpgradeSetKey => gen.into_root_schema_for::(), + Self::LedgerUpgrade => gen.into_root_schema_for::(), + Self::ConfigUpgradeSet => gen.into_root_schema_for::(), + Self::BucketEntryType => gen.into_root_schema_for::(), + Self::BucketMetadata => gen.into_root_schema_for::(), + Self::BucketMetadataExt => gen.into_root_schema_for::(), + Self::BucketEntry => gen.into_root_schema_for::(), + Self::TxSetComponentType => gen.into_root_schema_for::(), + Self::TxSetComponent => gen.into_root_schema_for::(), + Self::TxSetComponentTxsMaybeDiscountedFee => { + gen.into_root_schema_for::() + } + Self::TransactionPhase => gen.into_root_schema_for::(), + Self::TransactionSet => gen.into_root_schema_for::(), + Self::TransactionSetV1 => gen.into_root_schema_for::(), + Self::GeneralizedTransactionSet => { + gen.into_root_schema_for::() + } + Self::TransactionResultPair => gen.into_root_schema_for::(), + Self::TransactionResultSet => gen.into_root_schema_for::(), + Self::TransactionHistoryEntry => gen.into_root_schema_for::(), + Self::TransactionHistoryEntryExt => { + gen.into_root_schema_for::() + } + Self::TransactionHistoryResultEntry => { + gen.into_root_schema_for::() + } + Self::TransactionHistoryResultEntryExt => { + gen.into_root_schema_for::() + } + Self::LedgerHeaderHistoryEntry => { + gen.into_root_schema_for::() + } + Self::LedgerHeaderHistoryEntryExt => { + gen.into_root_schema_for::() + } + Self::LedgerScpMessages => gen.into_root_schema_for::(), + Self::ScpHistoryEntryV0 => gen.into_root_schema_for::(), + Self::ScpHistoryEntry => gen.into_root_schema_for::(), + Self::LedgerEntryChangeType => gen.into_root_schema_for::(), + Self::LedgerEntryChange => gen.into_root_schema_for::(), + Self::LedgerEntryChanges => gen.into_root_schema_for::(), + Self::OperationMeta => gen.into_root_schema_for::(), + Self::TransactionMetaV1 => gen.into_root_schema_for::(), + Self::TransactionMetaV2 => gen.into_root_schema_for::(), + Self::ContractEventType => gen.into_root_schema_for::(), + Self::ContractEvent => gen.into_root_schema_for::(), + Self::ContractEventBody => gen.into_root_schema_for::(), + Self::ContractEventV0 => gen.into_root_schema_for::(), + Self::DiagnosticEvent => gen.into_root_schema_for::(), + Self::SorobanTransactionMeta => gen.into_root_schema_for::(), + Self::TransactionMetaV3 => gen.into_root_schema_for::(), + Self::InvokeHostFunctionSuccessPreImage => { + gen.into_root_schema_for::() + } + Self::TransactionMeta => gen.into_root_schema_for::(), + Self::TransactionResultMeta => gen.into_root_schema_for::(), + Self::UpgradeEntryMeta => gen.into_root_schema_for::(), + Self::LedgerCloseMetaV0 => gen.into_root_schema_for::(), + Self::LedgerCloseMetaV1 => gen.into_root_schema_for::(), + Self::LedgerCloseMeta => gen.into_root_schema_for::(), + Self::ErrorCode => gen.into_root_schema_for::(), + Self::SError => gen.into_root_schema_for::(), + Self::SendMore => gen.into_root_schema_for::(), + Self::SendMoreExtended => gen.into_root_schema_for::(), + Self::AuthCert => gen.into_root_schema_for::(), + Self::Hello => gen.into_root_schema_for::(), + Self::Auth => gen.into_root_schema_for::(), + Self::IpAddrType => gen.into_root_schema_for::(), + Self::PeerAddress => gen.into_root_schema_for::(), + Self::PeerAddressIp => gen.into_root_schema_for::(), + Self::MessageType => gen.into_root_schema_for::(), + Self::DontHave => gen.into_root_schema_for::(), + Self::SurveyMessageCommandType => { + gen.into_root_schema_for::() + } + Self::SurveyMessageResponseType => { + gen.into_root_schema_for::() + } + Self::SurveyRequestMessage => gen.into_root_schema_for::(), + Self::SignedSurveyRequestMessage => { + gen.into_root_schema_for::() + } + Self::EncryptedBody => gen.into_root_schema_for::(), + Self::SurveyResponseMessage => gen.into_root_schema_for::(), + Self::SignedSurveyResponseMessage => { + gen.into_root_schema_for::() + } + Self::PeerStats => gen.into_root_schema_for::(), + Self::PeerStatList => gen.into_root_schema_for::(), + Self::TopologyResponseBodyV0 => gen.into_root_schema_for::(), + Self::TopologyResponseBodyV1 => gen.into_root_schema_for::(), + Self::SurveyResponseBody => gen.into_root_schema_for::(), + Self::TxAdvertVector => gen.into_root_schema_for::(), + Self::FloodAdvert => gen.into_root_schema_for::(), + Self::TxDemandVector => gen.into_root_schema_for::(), + Self::FloodDemand => gen.into_root_schema_for::(), + Self::StellarMessage => gen.into_root_schema_for::(), + Self::AuthenticatedMessage => gen.into_root_schema_for::(), + Self::AuthenticatedMessageV0 => gen.into_root_schema_for::(), + Self::LiquidityPoolParameters => gen.into_root_schema_for::(), + Self::MuxedAccount => gen.into_root_schema_for::(), + Self::MuxedAccountMed25519 => gen.into_root_schema_for::(), + Self::DecoratedSignature => gen.into_root_schema_for::(), + Self::OperationType => gen.into_root_schema_for::(), + Self::CreateAccountOp => gen.into_root_schema_for::(), + Self::PaymentOp => gen.into_root_schema_for::(), + Self::PathPaymentStrictReceiveOp => { + gen.into_root_schema_for::() + } + Self::PathPaymentStrictSendOp => gen.into_root_schema_for::(), + Self::ManageSellOfferOp => gen.into_root_schema_for::(), + Self::ManageBuyOfferOp => gen.into_root_schema_for::(), + Self::CreatePassiveSellOfferOp => { + gen.into_root_schema_for::() + } + Self::SetOptionsOp => gen.into_root_schema_for::(), + Self::ChangeTrustAsset => gen.into_root_schema_for::(), + Self::ChangeTrustOp => gen.into_root_schema_for::(), + Self::AllowTrustOp => gen.into_root_schema_for::(), + Self::ManageDataOp => gen.into_root_schema_for::(), + Self::BumpSequenceOp => gen.into_root_schema_for::(), + Self::CreateClaimableBalanceOp => { + gen.into_root_schema_for::() + } + Self::ClaimClaimableBalanceOp => gen.into_root_schema_for::(), + Self::BeginSponsoringFutureReservesOp => { + gen.into_root_schema_for::() + } + Self::RevokeSponsorshipType => gen.into_root_schema_for::(), + Self::RevokeSponsorshipOp => gen.into_root_schema_for::(), + Self::RevokeSponsorshipOpSigner => { + gen.into_root_schema_for::() + } + Self::ClawbackOp => gen.into_root_schema_for::(), + Self::ClawbackClaimableBalanceOp => { + gen.into_root_schema_for::() + } + Self::SetTrustLineFlagsOp => gen.into_root_schema_for::(), + Self::LiquidityPoolDepositOp => gen.into_root_schema_for::(), + Self::LiquidityPoolWithdrawOp => gen.into_root_schema_for::(), + Self::HostFunctionType => gen.into_root_schema_for::(), + Self::ContractIdPreimageType => gen.into_root_schema_for::(), + Self::ContractIdPreimage => gen.into_root_schema_for::(), + Self::ContractIdPreimageFromAddress => { + gen.into_root_schema_for::() + } + Self::CreateContractArgs => gen.into_root_schema_for::(), + Self::InvokeContractArgs => gen.into_root_schema_for::(), + Self::HostFunction => gen.into_root_schema_for::(), + Self::SorobanAuthorizedFunctionType => { + gen.into_root_schema_for::() + } + Self::SorobanAuthorizedFunction => { + gen.into_root_schema_for::() + } + Self::SorobanAuthorizedInvocation => { + gen.into_root_schema_for::() + } + Self::SorobanAddressCredentials => { + gen.into_root_schema_for::() + } + Self::SorobanCredentialsType => gen.into_root_schema_for::(), + Self::SorobanCredentials => gen.into_root_schema_for::(), + Self::SorobanAuthorizationEntry => { + gen.into_root_schema_for::() + } + Self::InvokeHostFunctionOp => gen.into_root_schema_for::(), + Self::ExtendFootprintTtlOp => gen.into_root_schema_for::(), + Self::RestoreFootprintOp => gen.into_root_schema_for::(), + Self::Operation => gen.into_root_schema_for::(), + Self::OperationBody => gen.into_root_schema_for::(), + Self::HashIdPreimage => gen.into_root_schema_for::(), + Self::HashIdPreimageOperationId => { + gen.into_root_schema_for::() + } + Self::HashIdPreimageRevokeId => gen.into_root_schema_for::(), + Self::HashIdPreimageContractId => { + gen.into_root_schema_for::() + } + Self::HashIdPreimageSorobanAuthorization => { + gen.into_root_schema_for::() + } + Self::MemoType => gen.into_root_schema_for::(), + Self::Memo => gen.into_root_schema_for::(), + Self::TimeBounds => gen.into_root_schema_for::(), + Self::LedgerBounds => gen.into_root_schema_for::(), + Self::PreconditionsV2 => gen.into_root_schema_for::(), + Self::PreconditionType => gen.into_root_schema_for::(), + Self::Preconditions => gen.into_root_schema_for::(), + Self::LedgerFootprint => 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::(), + Self::TransactionV0Ext => gen.into_root_schema_for::(), + Self::TransactionV0Envelope => gen.into_root_schema_for::(), + Self::Transaction => gen.into_root_schema_for::(), + Self::TransactionExt => gen.into_root_schema_for::(), + Self::TransactionV1Envelope => gen.into_root_schema_for::(), + Self::FeeBumpTransaction => gen.into_root_schema_for::(), + Self::FeeBumpTransactionInnerTx => { + gen.into_root_schema_for::() + } + Self::FeeBumpTransactionExt => gen.into_root_schema_for::(), + Self::FeeBumpTransactionEnvelope => { + gen.into_root_schema_for::() + } + Self::TransactionEnvelope => gen.into_root_schema_for::(), + Self::TransactionSignaturePayload => { + gen.into_root_schema_for::() + } + Self::TransactionSignaturePayloadTaggedTransaction => { + gen.into_root_schema_for::() + } + Self::ClaimAtomType => gen.into_root_schema_for::(), + Self::ClaimOfferAtomV0 => gen.into_root_schema_for::(), + Self::ClaimOfferAtom => gen.into_root_schema_for::(), + Self::ClaimLiquidityAtom => gen.into_root_schema_for::(), + Self::ClaimAtom => gen.into_root_schema_for::(), + Self::CreateAccountResultCode => gen.into_root_schema_for::(), + Self::CreateAccountResult => gen.into_root_schema_for::(), + Self::PaymentResultCode => gen.into_root_schema_for::(), + Self::PaymentResult => gen.into_root_schema_for::(), + Self::PathPaymentStrictReceiveResultCode => { + gen.into_root_schema_for::() + } + Self::SimplePaymentResult => gen.into_root_schema_for::(), + Self::PathPaymentStrictReceiveResult => { + gen.into_root_schema_for::() + } + Self::PathPaymentStrictReceiveResultSuccess => { + gen.into_root_schema_for::() + } + Self::PathPaymentStrictSendResultCode => { + gen.into_root_schema_for::() + } + Self::PathPaymentStrictSendResult => { + gen.into_root_schema_for::() + } + Self::PathPaymentStrictSendResultSuccess => { + gen.into_root_schema_for::() + } + Self::ManageSellOfferResultCode => { + gen.into_root_schema_for::() + } + Self::ManageOfferEffect => gen.into_root_schema_for::(), + Self::ManageOfferSuccessResult => { + gen.into_root_schema_for::() + } + Self::ManageOfferSuccessResultOffer => { + gen.into_root_schema_for::() + } + Self::ManageSellOfferResult => gen.into_root_schema_for::(), + Self::ManageBuyOfferResultCode => { + gen.into_root_schema_for::() + } + Self::ManageBuyOfferResult => gen.into_root_schema_for::(), + Self::SetOptionsResultCode => gen.into_root_schema_for::(), + Self::SetOptionsResult => gen.into_root_schema_for::(), + Self::ChangeTrustResultCode => gen.into_root_schema_for::(), + Self::ChangeTrustResult => gen.into_root_schema_for::(), + Self::AllowTrustResultCode => gen.into_root_schema_for::(), + Self::AllowTrustResult => gen.into_root_schema_for::(), + Self::AccountMergeResultCode => gen.into_root_schema_for::(), + Self::AccountMergeResult => gen.into_root_schema_for::(), + Self::InflationResultCode => gen.into_root_schema_for::(), + Self::InflationPayout => gen.into_root_schema_for::(), + Self::InflationResult => gen.into_root_schema_for::(), + Self::ManageDataResultCode => gen.into_root_schema_for::(), + Self::ManageDataResult => gen.into_root_schema_for::(), + Self::BumpSequenceResultCode => gen.into_root_schema_for::(), + Self::BumpSequenceResult => gen.into_root_schema_for::(), + Self::CreateClaimableBalanceResultCode => { + gen.into_root_schema_for::() + } + Self::CreateClaimableBalanceResult => { + gen.into_root_schema_for::() + } + Self::ClaimClaimableBalanceResultCode => { + gen.into_root_schema_for::() + } + Self::ClaimClaimableBalanceResult => { + gen.into_root_schema_for::() + } + Self::BeginSponsoringFutureReservesResultCode => { + gen.into_root_schema_for::() + } + Self::BeginSponsoringFutureReservesResult => { + gen.into_root_schema_for::() + } + Self::EndSponsoringFutureReservesResultCode => { + gen.into_root_schema_for::() + } + Self::EndSponsoringFutureReservesResult => { + gen.into_root_schema_for::() + } + Self::RevokeSponsorshipResultCode => { + gen.into_root_schema_for::() + } + Self::RevokeSponsorshipResult => gen.into_root_schema_for::(), + Self::ClawbackResultCode => gen.into_root_schema_for::(), + Self::ClawbackResult => gen.into_root_schema_for::(), + Self::ClawbackClaimableBalanceResultCode => { + gen.into_root_schema_for::() + } + Self::ClawbackClaimableBalanceResult => { + gen.into_root_schema_for::() + } + Self::SetTrustLineFlagsResultCode => { + gen.into_root_schema_for::() + } + Self::SetTrustLineFlagsResult => gen.into_root_schema_for::(), + Self::LiquidityPoolDepositResultCode => { + gen.into_root_schema_for::() + } + Self::LiquidityPoolDepositResult => { + gen.into_root_schema_for::() + } + Self::LiquidityPoolWithdrawResultCode => { + gen.into_root_schema_for::() + } + Self::LiquidityPoolWithdrawResult => { + gen.into_root_schema_for::() + } + Self::InvokeHostFunctionResultCode => { + gen.into_root_schema_for::() + } + Self::InvokeHostFunctionResult => { + gen.into_root_schema_for::() + } + Self::ExtendFootprintTtlResultCode => { + gen.into_root_schema_for::() + } + Self::ExtendFootprintTtlResult => { + gen.into_root_schema_for::() + } + Self::RestoreFootprintResultCode => { + gen.into_root_schema_for::() + } + Self::RestoreFootprintResult => gen.into_root_schema_for::(), + Self::OperationResultCode => gen.into_root_schema_for::(), + Self::OperationResult => gen.into_root_schema_for::(), + Self::OperationResultTr => gen.into_root_schema_for::(), + Self::TransactionResultCode => gen.into_root_schema_for::(), + Self::InnerTransactionResult => gen.into_root_schema_for::(), + Self::InnerTransactionResultResult => { + gen.into_root_schema_for::() + } + Self::InnerTransactionResultExt => { + gen.into_root_schema_for::() + } + Self::InnerTransactionResultPair => { + gen.into_root_schema_for::() + } + Self::TransactionResult => gen.into_root_schema_for::(), + Self::TransactionResultResult => gen.into_root_schema_for::(), + Self::TransactionResultExt => gen.into_root_schema_for::(), + Self::Hash => gen.into_root_schema_for::(), + Self::Uint256 => gen.into_root_schema_for::(), + Self::Uint32 => gen.into_root_schema_for::(), + Self::Int32 => gen.into_root_schema_for::(), + Self::Uint64 => gen.into_root_schema_for::(), + Self::Int64 => gen.into_root_schema_for::(), + Self::TimePoint => gen.into_root_schema_for::(), + Self::Duration => gen.into_root_schema_for::(), + Self::ExtensionPoint => gen.into_root_schema_for::(), + Self::CryptoKeyType => gen.into_root_schema_for::(), + Self::PublicKeyType => gen.into_root_schema_for::(), + Self::SignerKeyType => gen.into_root_schema_for::(), + Self::PublicKey => gen.into_root_schema_for::(), + Self::SignerKey => gen.into_root_schema_for::(), + Self::SignerKeyEd25519SignedPayload => { + gen.into_root_schema_for::() + } + Self::Signature => gen.into_root_schema_for::(), + Self::SignatureHint => gen.into_root_schema_for::(), + Self::NodeId => gen.into_root_schema_for::(), + Self::AccountId => gen.into_root_schema_for::(), + Self::Curve25519Secret => gen.into_root_schema_for::(), + Self::Curve25519Public => gen.into_root_schema_for::(), + Self::HmacSha256Key => gen.into_root_schema_for::(), + Self::HmacSha256Mac => gen.into_root_schema_for::(), + } + } } impl Name for TypeVariant { From bbfea62ace7fa51e5b103c40dc043ffe77c035a8 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Thu, 14 Mar 2024 18:55:30 +1000 Subject: [PATCH 13/20] group new features --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 36520adb..c892d9f2 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -7,7 +7,7 @@ on: merge_group: env: - CARGO_HACK_ARGS: --feature-powerset --exclude-features default --group-features base64,serde,arbitrary,hex + CARGO_HACK_ARGS: --feature-powerset --exclude-features default --group-features base64,serde,serde_json,schemars,arbitrary,hex jobs: From 017f7d6f3060f79c51c0af3dd503f317182500e7 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Fri, 15 Mar 2024 20:50:54 +1000 Subject: [PATCH 14/20] custom types --- Makefile | 22 ++++++++++--- src/cli/types/schema.rs | 8 +++-- src/curr/generated.rs | 71 ----------------------------------------- src/curr/jsonschema.rs | 28 ++++++++++++++++ src/curr/mod.rs | 1 + src/next/generated.rs | 71 ----------------------------------------- src/next/jsonschema.rs | 28 ++++++++++++++++ src/next/mod.rs | 1 + 8 files changed, 82 insertions(+), 148 deletions(-) create mode 100644 src/curr/jsonschema.rs create mode 100644 src/next/jsonschema.rs diff --git a/Makefile b/Makefile index 16df6c2a..bbfb2b3d 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,8 @@ XDRGEN_VERSION=4ea81a540e25623567badd1f7dd649cc46cf9f21 # XDRGEN_LOCAL=1 XDRGEN_TYPES_CUSTOM_STR_IMPL_CURR=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12 XDRGEN_TYPES_CUSTOM_STR_IMPL_NEXT=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12 +XDRGEN_TYPES_CUSTOM_JSONSCHEMA_IMPL_CURR=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12 +XDRGEN_TYPES_CUSTOM_JSONSCHEMA_IMPL_NEXT=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12 all: build test @@ -39,12 +41,18 @@ ifeq ($(XDRGEN_LOCAL),) docker run -i --rm -v $$PWD:/wd -w /wd docker.io/library/ruby:latest /bin/bash -c '\ gem install specific_install -v 0.3.8 && \ gem specific_install https://github.com/stellar/xdrgen.git -b $(XDRGEN_VERSION) && \ - xdrgen --language rust --namespace generated --output src/curr --rust-types-custom-str-impl $(XDRGEN_TYPES_CUSTOM_STR_IMPL_CURR) $^ \ + xdrgen --language rust --namespace generated --output src/curr \ + --rust-types-custom-str-impl $(XDRGEN_TYPES_CUSTOM_STR_IMPL_CURR) \ + --rust-types-custom-jsonschema-impl '$(XDRGEN_TYPES_CUSTOM_JSONSCHEMA_IMPL_CURR)' \ + $^ \ ' else docker run -i --rm -v $$PWD/../xdrgen:/xdrgen -v $$PWD:/wd -w /wd docker.io/library/ruby:latest /bin/bash -c '\ pushd /xdrgen && bundle install --deployment && rake install && popd && \ - xdrgen --language rust --namespace generated --output src/curr --rust-types-custom-str-impl $(XDRGEN_TYPES_CUSTOM_STR_IMPL_CURR) $^ \ + xdrgen --language rust --namespace generated --output src/curr \ + --rust-types-custom-str-impl $(XDRGEN_TYPES_CUSTOM_STR_IMPL_CURR) \ + --rust-types-custom-jsonschema-impl '$(XDRGEN_TYPES_CUSTOM_JSONSCHEMA_IMPL_CURR)' \ + $^ \ ' endif rustfmt $@ @@ -58,12 +66,18 @@ ifeq ($(XDRGEN_LOCAL),) docker run -i --rm -v $$PWD:/wd -w /wd docker.io/library/ruby:latest /bin/bash -c '\ gem install specific_install -v 0.3.8 && \ gem specific_install https://github.com/stellar/xdrgen.git -b $(XDRGEN_VERSION) && \ - xdrgen --language rust --namespace generated --output src/next --rust-types-custom-str-impl $(XDRGEN_TYPES_CUSTOM_STR_IMPL_NEXT) $^ \ + xdrgen --language rust --namespace generated --output src/next \ + --rust-types-custom-str-impl $(XDRGEN_TYPES_CUSTOM_STR_IMPL_NEXT) \ + --rust-types-custom-jsonschema-impl '$(XDRGEN_TYPES_CUSTOM_JSONSCHEMA_IMPL_NEXT)' \ + $^ \ ' else docker run -i --rm -v $$PWD/../xdrgen:/xdrgen -v $$PWD:/wd -w /wd docker.io/library/ruby:latest /bin/bash -c '\ pushd /xdrgen && bundle install --deployment && rake install && popd && \ - xdrgen --language rust --namespace generated --output src/next --rust-types-custom-str-impl $(XDRGEN_TYPES_CUSTOM_STR_IMPL_NEXT) $^ \ + xdrgen --language rust --namespace generated --output src/next \ + --rust-types-custom-str-impl $(XDRGEN_TYPES_CUSTOM_STR_IMPL_NEXT) \ + --rust-types-custom-jsonschema-impl '$(XDRGEN_TYPES_CUSTOM_JSONSCHEMA_IMPL_NEXT)' \ + $^ \ ' endif rustfmt $@ diff --git a/src/cli/types/schema.rs b/src/cli/types/schema.rs index ef5c7bc8..730ca6c0 100644 --- a/src/cli/types/schema.rs +++ b/src/cli/types/schema.rs @@ -26,11 +26,12 @@ pub struct Cmd { #[derive(Clone, Copy, Debug, Eq, Hash, PartialEq, ValueEnum)] pub enum OutputFormat { JsonSchemaDraft7, + JsonSchemaDraft201909, } impl Default for OutputFormat { fn default() -> Self { - Self::JsonSchemaDraft7 + Self::JsonSchemaDraft201909 } } @@ -41,7 +42,10 @@ macro_rules! run_x { let r#type = crate::$m::TypeVariant::from_str(&self.r#type).map_err(|_| { Error::UnknownType(self.r#type.clone(), &crate::$m::TypeVariant::VARIANTS_STR) })?; - let settings = SchemaSettings::draft07(); + let settings = match self.output { + OutputFormat::JsonSchemaDraft7 => SchemaSettings::draft07(), + OutputFormat::JsonSchemaDraft201909 => SchemaSettings::draft2019_09(), + }; let generator = settings.into_generator(); let schema = r#type.json_schema(generator); println!("{}", serde_json::to_string_pretty(&schema)?); diff --git a/src/curr/generated.rs b/src/curr/generated.rs index c5cc787b..86f1adaa 100644 --- a/src/curr/generated.rs +++ b/src/curr/generated.rs @@ -8718,7 +8718,6 @@ impl WriteXdr for ScAddressType { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ScAddress { Account(AccountId), @@ -10753,37 +10752,6 @@ impl core::fmt::Debug for AssetCode4 { Ok(()) } } -#[cfg(feature = "schemars")] -impl schemars::JsonSchema for AssetCode4 { - fn schema_name() -> String { - "AssetCode4".to_string() - } - - fn is_referenceable() -> bool { - false - } - - fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { - let schema_ = String::json_schema(gen); - if let schemars::schema::Schema::Object(mut schema) = schema_ { - schema.extensions.insert( - "contentEncoding".to_owned(), - serde_json::Value::String("hex".to_string()), - ); - schema.extensions.insert( - "contentMediaType".to_owned(), - serde_json::Value::String("application/binary".to_string()), - ); - mut_string(schema.into(), |string| schemars::schema::StringValidation { - max_length: 4_u32.checked_mul(2).map(Some).unwrap_or_default(), - min_length: 4_u32.checked_mul(2).map(Some).unwrap_or_default(), - ..string - }) - } else { - schema_ - } - } -} impl From for [u8; 4] { #[must_use] fn from(x: AssetCode4) -> Self { @@ -10885,37 +10853,6 @@ impl core::fmt::Debug for AssetCode12 { Ok(()) } } -#[cfg(feature = "schemars")] -impl schemars::JsonSchema for AssetCode12 { - fn schema_name() -> String { - "AssetCode12".to_string() - } - - fn is_referenceable() -> bool { - false - } - - fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { - let schema_ = String::json_schema(gen); - if let schemars::schema::Schema::Object(mut schema) = schema_ { - schema.extensions.insert( - "contentEncoding".to_owned(), - serde_json::Value::String("hex".to_string()), - ); - schema.extensions.insert( - "contentMediaType".to_owned(), - serde_json::Value::String("application/binary".to_string()), - ); - mut_string(schema.into(), |string| schemars::schema::StringValidation { - max_length: 12_u32.checked_mul(2).map(Some).unwrap_or_default(), - min_length: 12_u32.checked_mul(2).map(Some).unwrap_or_default(), - ..string - }) - } else { - schema_ - } - } -} impl From for [u8; 12] { #[must_use] fn from(x: AssetCode12) -> Self { @@ -11134,7 +11071,6 @@ impl WriteXdr for AssetType { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum AssetCode { CreditAlphanum4(AssetCode4), @@ -24551,7 +24487,6 @@ impl WriteXdr for LiquidityPoolParameters { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct MuxedAccountMed25519 { pub id: u64, pub ed25519: Uint256, @@ -24603,7 +24538,6 @@ impl WriteXdr for MuxedAccountMed25519 { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum MuxedAccount { Ed25519(Uint256), @@ -42012,7 +41946,6 @@ impl WriteXdr for SignerKeyType { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum PublicKey { PublicKeyTypeEd25519(Uint256), @@ -42115,7 +42048,6 @@ impl WriteXdr for PublicKey { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SignerKeyEd25519SignedPayload { pub ed25519: Uint256, pub payload: BytesM<64>, @@ -42175,7 +42107,6 @@ impl WriteXdr for SignerKeyEd25519SignedPayload { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum SignerKey { Ed25519(Uint256), @@ -42548,7 +42479,6 @@ impl AsRef<[u8]> for SignatureHint { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct NodeId(pub PublicKey); @@ -42603,7 +42533,6 @@ impl WriteXdr for NodeId { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct AccountId(pub PublicKey); diff --git a/src/curr/jsonschema.rs b/src/curr/jsonschema.rs new file mode 100644 index 00000000..ce23b940 --- /dev/null +++ b/src/curr/jsonschema.rs @@ -0,0 +1,28 @@ +#![cfg(feature = "schemars")] +use schemars::{gen::SchemaGenerator, schema::Schema, JsonSchema}; + +macro_rules! impl_json_schema_string { + ($type:ident) => { + impl JsonSchema for super::$type { + fn schema_name() -> String { + stringify!($type).to_string() + } + + fn json_schema(gen: &mut SchemaGenerator) -> Schema { + String::json_schema(gen) + } + } + }; +} + +impl_json_schema_string!(PublicKey); +impl_json_schema_string!(AccountId); +impl_json_schema_string!(MuxedAccount); +impl_json_schema_string!(MuxedAccountMed25519); +impl_json_schema_string!(SignerKey); +impl_json_schema_string!(SignerKeyEd25519SignedPayload); +impl_json_schema_string!(NodeId); +impl_json_schema_string!(ScAddress); +impl_json_schema_string!(AssetCode); +impl_json_schema_string!(AssetCode4); +impl_json_schema_string!(AssetCode12); diff --git a/src/curr/mod.rs b/src/curr/mod.rs index 288c1e2e..ec2f1e37 100644 --- a/src/curr/mod.rs +++ b/src/curr/mod.rs @@ -1,6 +1,7 @@ mod generated; pub use generated::*; +mod jsonschema; mod str; mod scval_conversions; diff --git a/src/next/generated.rs b/src/next/generated.rs index 3c7a959a..3d4048dc 100644 --- a/src/next/generated.rs +++ b/src/next/generated.rs @@ -8718,7 +8718,6 @@ impl WriteXdr for ScAddressType { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ScAddress { Account(AccountId), @@ -10753,37 +10752,6 @@ impl core::fmt::Debug for AssetCode4 { Ok(()) } } -#[cfg(feature = "schemars")] -impl schemars::JsonSchema for AssetCode4 { - fn schema_name() -> String { - "AssetCode4".to_string() - } - - fn is_referenceable() -> bool { - false - } - - fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { - let schema_ = String::json_schema(gen); - if let schemars::schema::Schema::Object(mut schema) = schema_ { - schema.extensions.insert( - "contentEncoding".to_owned(), - serde_json::Value::String("hex".to_string()), - ); - schema.extensions.insert( - "contentMediaType".to_owned(), - serde_json::Value::String("application/binary".to_string()), - ); - mut_string(schema.into(), |string| schemars::schema::StringValidation { - max_length: 4_u32.checked_mul(2).map(Some).unwrap_or_default(), - min_length: 4_u32.checked_mul(2).map(Some).unwrap_or_default(), - ..string - }) - } else { - schema_ - } - } -} impl From for [u8; 4] { #[must_use] fn from(x: AssetCode4) -> Self { @@ -10885,37 +10853,6 @@ impl core::fmt::Debug for AssetCode12 { Ok(()) } } -#[cfg(feature = "schemars")] -impl schemars::JsonSchema for AssetCode12 { - fn schema_name() -> String { - "AssetCode12".to_string() - } - - fn is_referenceable() -> bool { - false - } - - fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { - let schema_ = String::json_schema(gen); - if let schemars::schema::Schema::Object(mut schema) = schema_ { - schema.extensions.insert( - "contentEncoding".to_owned(), - serde_json::Value::String("hex".to_string()), - ); - schema.extensions.insert( - "contentMediaType".to_owned(), - serde_json::Value::String("application/binary".to_string()), - ); - mut_string(schema.into(), |string| schemars::schema::StringValidation { - max_length: 12_u32.checked_mul(2).map(Some).unwrap_or_default(), - min_length: 12_u32.checked_mul(2).map(Some).unwrap_or_default(), - ..string - }) - } else { - schema_ - } - } -} impl From for [u8; 12] { #[must_use] fn from(x: AssetCode12) -> Self { @@ -11134,7 +11071,6 @@ impl WriteXdr for AssetType { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum AssetCode { CreditAlphanum4(AssetCode4), @@ -24551,7 +24487,6 @@ impl WriteXdr for LiquidityPoolParameters { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct MuxedAccountMed25519 { pub id: u64, pub ed25519: Uint256, @@ -24603,7 +24538,6 @@ impl WriteXdr for MuxedAccountMed25519 { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum MuxedAccount { Ed25519(Uint256), @@ -42012,7 +41946,6 @@ impl WriteXdr for SignerKeyType { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum PublicKey { PublicKeyTypeEd25519(Uint256), @@ -42115,7 +42048,6 @@ impl WriteXdr for PublicKey { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SignerKeyEd25519SignedPayload { pub ed25519: Uint256, pub payload: BytesM<64>, @@ -42175,7 +42107,6 @@ impl WriteXdr for SignerKeyEd25519SignedPayload { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum SignerKey { Ed25519(Uint256), @@ -42548,7 +42479,6 @@ impl AsRef<[u8]> for SignatureHint { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct NodeId(pub PublicKey); @@ -42603,7 +42533,6 @@ impl WriteXdr for NodeId { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug)] pub struct AccountId(pub PublicKey); diff --git a/src/next/jsonschema.rs b/src/next/jsonschema.rs new file mode 100644 index 00000000..ce23b940 --- /dev/null +++ b/src/next/jsonschema.rs @@ -0,0 +1,28 @@ +#![cfg(feature = "schemars")] +use schemars::{gen::SchemaGenerator, schema::Schema, JsonSchema}; + +macro_rules! impl_json_schema_string { + ($type:ident) => { + impl JsonSchema for super::$type { + fn schema_name() -> String { + stringify!($type).to_string() + } + + fn json_schema(gen: &mut SchemaGenerator) -> Schema { + String::json_schema(gen) + } + } + }; +} + +impl_json_schema_string!(PublicKey); +impl_json_schema_string!(AccountId); +impl_json_schema_string!(MuxedAccount); +impl_json_schema_string!(MuxedAccountMed25519); +impl_json_schema_string!(SignerKey); +impl_json_schema_string!(SignerKeyEd25519SignedPayload); +impl_json_schema_string!(NodeId); +impl_json_schema_string!(ScAddress); +impl_json_schema_string!(AssetCode); +impl_json_schema_string!(AssetCode4); +impl_json_schema_string!(AssetCode12); diff --git a/src/next/mod.rs b/src/next/mod.rs index 288c1e2e..ec2f1e37 100644 --- a/src/next/mod.rs +++ b/src/next/mod.rs @@ -1,6 +1,7 @@ mod generated; pub use generated::*; +mod jsonschema; mod str; mod scval_conversions; From 48714cbff6cc9d3d30a623ed8ca7a9a5f0570d72 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Fri, 15 Mar 2024 23:12:02 +1000 Subject: [PATCH 15/20] upd --- Makefile | 2 +- src/curr/generated.rs | 130 ++++++++++++++++++------------------------ src/next/generated.rs | 130 ++++++++++++++++++------------------------ 3 files changed, 113 insertions(+), 149 deletions(-) diff --git a/Makefile b/Makefile index bbfb2b3d..825b8ec9 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ CARGO_HACK_ARGS=--feature-powerset --exclude-features default --group-features b CARGO_DOC_ARGS?=--open -XDRGEN_VERSION=4ea81a540e25623567badd1f7dd649cc46cf9f21 +XDRGEN_VERSION=0a2611a2bc6b6f6bceacb72fe9321b0cb4d8ccd5 # XDRGEN_LOCAL=1 XDRGEN_TYPES_CUSTOM_STR_IMPL_CURR=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12 XDRGEN_TYPES_CUSTOM_STR_IMPL_NEXT=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12 diff --git a/src/curr/generated.rs b/src/curr/generated.rs index 86f1adaa..b429b8fb 100644 --- a/src/curr/generated.rs +++ b/src/curr/generated.rs @@ -967,12 +967,18 @@ impl schemars::JsonSchema for VecM schemars::schema::Schema { - mut_array(Vec::::json_schema(gen), |array| { - schemars::schema::ArrayValidation { - max_items: Some(MAX), - ..array - } - }) + let schema = Vec::::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema { + if let Some(array) = schema.array.clone() { + schema.array = Some(Box::new(schemars::schema::ArrayValidation { + max_items: Some(MAX), + ..*array + })); + } + schema.into() + } else { + schema + } } } @@ -1422,8 +1428,8 @@ impl schemars::JsonSchema for BytesM { } fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { - let schema_ = String::json_schema(gen); - if let schemars::schema::Schema::Object(mut schema) = schema_ { + let schema = String::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema { schema.extensions.insert( "contentEncoding".to_owned(), serde_json::Value::String("hex".to_string()), @@ -1432,13 +1438,15 @@ impl schemars::JsonSchema for BytesM { "contentMediaType".to_owned(), serde_json::Value::String("application/binary".to_string()), ); - mut_string(schema.into(), |string| schemars::schema::StringValidation { + let string = *schema.string.unwrap_or_default().clone(); + schema.string = Some(Box::new(schemars::schema::StringValidation { max_length: MAX.checked_mul(2).map(Some).unwrap_or_default(), min_length: None, ..string - }) + })); + schema.into() } else { - schema_ + schema } } } @@ -1837,17 +1845,18 @@ impl schemars::JsonSchema for StringM { format!("StringM<{MAX}>") } - fn is_referenceable() -> bool { - false - } - fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { - mut_string(String::json_schema(gen), |string| { - schemars::schema::StringValidation { + let schema = String::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema { + let string = *schema.string.unwrap_or_default().clone(); + schema.string = Some(Box::new(schemars::schema::StringValidation { max_length: Some(MAX), ..string - } - }) + })); + schema.into() + } else { + schema + } } } @@ -2173,10 +2182,6 @@ impl schemars::JsonSchema for Frame { format!("Frame<{}>", T::schema_name()) } - fn is_referenceable() -> bool { - false - } - fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { T::json_schema(gen) } @@ -2206,37 +2211,6 @@ where } } -#[cfg(feature = "schemars")] -fn mut_array( - schema: schemars::schema::Schema, - f: impl FnOnce(schemars::schema::ArrayValidation) -> schemars::schema::ArrayValidation, -) -> schemars::schema::Schema { - if let schemars::schema::Schema::Object(mut schema) = schema { - if let Some(array) = schema.array.clone() { - schema.array = Some(Box::new(f(*array))); - } - schema.into() - } else { - schema - } -} - -#[cfg(feature = "schemars")] -fn mut_string( - schema: schemars::schema::Schema, - f: impl FnOnce(schemars::schema::StringValidation) -> schemars::schema::StringValidation, -) -> schemars::schema::Schema { - if let schemars::schema::Schema::Object(mut schema) = schema { - let string = *schema.string.unwrap_or_default().clone(); - let s = f(string); - schema.string = Some(Box::new(s)); - - schema.into() - } else { - schema - } -} - #[cfg(all(test, feature = "std"))] mod tests { use std::io::Cursor; @@ -10201,8 +10175,8 @@ impl schemars::JsonSchema for Thresholds { } fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { - let schema_ = String::json_schema(gen); - if let schemars::schema::Schema::Object(mut schema) = schema_ { + let schema = String::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema { schema.extensions.insert( "contentEncoding".to_owned(), serde_json::Value::String("hex".to_string()), @@ -10211,13 +10185,15 @@ impl schemars::JsonSchema for Thresholds { "contentMediaType".to_owned(), serde_json::Value::String("application/binary".to_string()), ); - mut_string(schema.into(), |string| schemars::schema::StringValidation { + let string = *schema.string.unwrap_or_default().clone(); + schema.string = Some(Box::new(schemars::schema::StringValidation { max_length: 4_u32.checked_mul(2).map(Some).unwrap_or_default(), min_length: 4_u32.checked_mul(2).map(Some).unwrap_or_default(), ..string - }) + })); + schema.into() } else { - schema_ + schema } } } @@ -41085,8 +41061,8 @@ impl schemars::JsonSchema for Hash { } fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { - let schema_ = String::json_schema(gen); - if let schemars::schema::Schema::Object(mut schema) = schema_ { + let schema = String::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema { schema.extensions.insert( "contentEncoding".to_owned(), serde_json::Value::String("hex".to_string()), @@ -41095,13 +41071,15 @@ impl schemars::JsonSchema for Hash { "contentMediaType".to_owned(), serde_json::Value::String("application/binary".to_string()), ); - mut_string(schema.into(), |string| schemars::schema::StringValidation { + let string = *schema.string.unwrap_or_default().clone(); + schema.string = Some(Box::new(schemars::schema::StringValidation { max_length: 32_u32.checked_mul(2).map(Some).unwrap_or_default(), min_length: 32_u32.checked_mul(2).map(Some).unwrap_or_default(), ..string - }) + })); + schema.into() } else { - schema_ + schema } } } @@ -41234,8 +41212,8 @@ impl schemars::JsonSchema for Uint256 { } fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { - let schema_ = String::json_schema(gen); - if let schemars::schema::Schema::Object(mut schema) = schema_ { + let schema = String::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema { schema.extensions.insert( "contentEncoding".to_owned(), serde_json::Value::String("hex".to_string()), @@ -41244,13 +41222,15 @@ impl schemars::JsonSchema for Uint256 { "contentMediaType".to_owned(), serde_json::Value::String("application/binary".to_string()), ); - mut_string(schema.into(), |string| schemars::schema::StringValidation { + let string = *schema.string.unwrap_or_default().clone(); + schema.string = Some(Box::new(schemars::schema::StringValidation { max_length: 32_u32.checked_mul(2).map(Some).unwrap_or_default(), min_length: 32_u32.checked_mul(2).map(Some).unwrap_or_default(), ..string - }) + })); + schema.into() } else { - schema_ + schema } } } @@ -42371,8 +42351,8 @@ impl schemars::JsonSchema for SignatureHint { } fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { - let schema_ = String::json_schema(gen); - if let schemars::schema::Schema::Object(mut schema) = schema_ { + let schema = String::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema { schema.extensions.insert( "contentEncoding".to_owned(), serde_json::Value::String("hex".to_string()), @@ -42381,13 +42361,15 @@ impl schemars::JsonSchema for SignatureHint { "contentMediaType".to_owned(), serde_json::Value::String("application/binary".to_string()), ); - mut_string(schema.into(), |string| schemars::schema::StringValidation { + let string = *schema.string.unwrap_or_default().clone(); + schema.string = Some(Box::new(schemars::schema::StringValidation { max_length: 4_u32.checked_mul(2).map(Some).unwrap_or_default(), min_length: 4_u32.checked_mul(2).map(Some).unwrap_or_default(), ..string - }) + })); + schema.into() } else { - schema_ + schema } } } diff --git a/src/next/generated.rs b/src/next/generated.rs index 3d4048dc..9c0b754d 100644 --- a/src/next/generated.rs +++ b/src/next/generated.rs @@ -967,12 +967,18 @@ impl schemars::JsonSchema for VecM schemars::schema::Schema { - mut_array(Vec::::json_schema(gen), |array| { - schemars::schema::ArrayValidation { - max_items: Some(MAX), - ..array - } - }) + let schema = Vec::::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema { + if let Some(array) = schema.array.clone() { + schema.array = Some(Box::new(schemars::schema::ArrayValidation { + max_items: Some(MAX), + ..*array + })); + } + schema.into() + } else { + schema + } } } @@ -1422,8 +1428,8 @@ impl schemars::JsonSchema for BytesM { } fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { - let schema_ = String::json_schema(gen); - if let schemars::schema::Schema::Object(mut schema) = schema_ { + let schema = String::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema { schema.extensions.insert( "contentEncoding".to_owned(), serde_json::Value::String("hex".to_string()), @@ -1432,13 +1438,15 @@ impl schemars::JsonSchema for BytesM { "contentMediaType".to_owned(), serde_json::Value::String("application/binary".to_string()), ); - mut_string(schema.into(), |string| schemars::schema::StringValidation { + let string = *schema.string.unwrap_or_default().clone(); + schema.string = Some(Box::new(schemars::schema::StringValidation { max_length: MAX.checked_mul(2).map(Some).unwrap_or_default(), min_length: None, ..string - }) + })); + schema.into() } else { - schema_ + schema } } } @@ -1837,17 +1845,18 @@ impl schemars::JsonSchema for StringM { format!("StringM<{MAX}>") } - fn is_referenceable() -> bool { - false - } - fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { - mut_string(String::json_schema(gen), |string| { - schemars::schema::StringValidation { + let schema = String::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema { + let string = *schema.string.unwrap_or_default().clone(); + schema.string = Some(Box::new(schemars::schema::StringValidation { max_length: Some(MAX), ..string - } - }) + })); + schema.into() + } else { + schema + } } } @@ -2173,10 +2182,6 @@ impl schemars::JsonSchema for Frame { format!("Frame<{}>", T::schema_name()) } - fn is_referenceable() -> bool { - false - } - fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { T::json_schema(gen) } @@ -2206,37 +2211,6 @@ where } } -#[cfg(feature = "schemars")] -fn mut_array( - schema: schemars::schema::Schema, - f: impl FnOnce(schemars::schema::ArrayValidation) -> schemars::schema::ArrayValidation, -) -> schemars::schema::Schema { - if let schemars::schema::Schema::Object(mut schema) = schema { - if let Some(array) = schema.array.clone() { - schema.array = Some(Box::new(f(*array))); - } - schema.into() - } else { - schema - } -} - -#[cfg(feature = "schemars")] -fn mut_string( - schema: schemars::schema::Schema, - f: impl FnOnce(schemars::schema::StringValidation) -> schemars::schema::StringValidation, -) -> schemars::schema::Schema { - if let schemars::schema::Schema::Object(mut schema) = schema { - let string = *schema.string.unwrap_or_default().clone(); - let s = f(string); - schema.string = Some(Box::new(s)); - - schema.into() - } else { - schema - } -} - #[cfg(all(test, feature = "std"))] mod tests { use std::io::Cursor; @@ -10201,8 +10175,8 @@ impl schemars::JsonSchema for Thresholds { } fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { - let schema_ = String::json_schema(gen); - if let schemars::schema::Schema::Object(mut schema) = schema_ { + let schema = String::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema { schema.extensions.insert( "contentEncoding".to_owned(), serde_json::Value::String("hex".to_string()), @@ -10211,13 +10185,15 @@ impl schemars::JsonSchema for Thresholds { "contentMediaType".to_owned(), serde_json::Value::String("application/binary".to_string()), ); - mut_string(schema.into(), |string| schemars::schema::StringValidation { + let string = *schema.string.unwrap_or_default().clone(); + schema.string = Some(Box::new(schemars::schema::StringValidation { max_length: 4_u32.checked_mul(2).map(Some).unwrap_or_default(), min_length: 4_u32.checked_mul(2).map(Some).unwrap_or_default(), ..string - }) + })); + schema.into() } else { - schema_ + schema } } } @@ -41085,8 +41061,8 @@ impl schemars::JsonSchema for Hash { } fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { - let schema_ = String::json_schema(gen); - if let schemars::schema::Schema::Object(mut schema) = schema_ { + let schema = String::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema { schema.extensions.insert( "contentEncoding".to_owned(), serde_json::Value::String("hex".to_string()), @@ -41095,13 +41071,15 @@ impl schemars::JsonSchema for Hash { "contentMediaType".to_owned(), serde_json::Value::String("application/binary".to_string()), ); - mut_string(schema.into(), |string| schemars::schema::StringValidation { + let string = *schema.string.unwrap_or_default().clone(); + schema.string = Some(Box::new(schemars::schema::StringValidation { max_length: 32_u32.checked_mul(2).map(Some).unwrap_or_default(), min_length: 32_u32.checked_mul(2).map(Some).unwrap_or_default(), ..string - }) + })); + schema.into() } else { - schema_ + schema } } } @@ -41234,8 +41212,8 @@ impl schemars::JsonSchema for Uint256 { } fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { - let schema_ = String::json_schema(gen); - if let schemars::schema::Schema::Object(mut schema) = schema_ { + let schema = String::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema { schema.extensions.insert( "contentEncoding".to_owned(), serde_json::Value::String("hex".to_string()), @@ -41244,13 +41222,15 @@ impl schemars::JsonSchema for Uint256 { "contentMediaType".to_owned(), serde_json::Value::String("application/binary".to_string()), ); - mut_string(schema.into(), |string| schemars::schema::StringValidation { + let string = *schema.string.unwrap_or_default().clone(); + schema.string = Some(Box::new(schemars::schema::StringValidation { max_length: 32_u32.checked_mul(2).map(Some).unwrap_or_default(), min_length: 32_u32.checked_mul(2).map(Some).unwrap_or_default(), ..string - }) + })); + schema.into() } else { - schema_ + schema } } } @@ -42371,8 +42351,8 @@ impl schemars::JsonSchema for SignatureHint { } fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema { - let schema_ = String::json_schema(gen); - if let schemars::schema::Schema::Object(mut schema) = schema_ { + let schema = String::json_schema(gen); + if let schemars::schema::Schema::Object(mut schema) = schema { schema.extensions.insert( "contentEncoding".to_owned(), serde_json::Value::String("hex".to_string()), @@ -42381,13 +42361,15 @@ impl schemars::JsonSchema for SignatureHint { "contentMediaType".to_owned(), serde_json::Value::String("application/binary".to_string()), ); - mut_string(schema.into(), |string| schemars::schema::StringValidation { + let string = *schema.string.unwrap_or_default().clone(); + schema.string = Some(Box::new(schemars::schema::StringValidation { max_length: 4_u32.checked_mul(2).map(Some).unwrap_or_default(), min_length: 4_u32.checked_mul(2).map(Some).unwrap_or_default(), ..string - }) + })); + schema.into() } else { - schema_ + schema } } } From 2d078c1fdce37aa64c44197b2d8ec19954a0bc09 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Tue, 9 Apr 2024 22:30:52 +1000 Subject: [PATCH 16/20] upd ver --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 825b8ec9..6d5c3911 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ CARGO_HACK_ARGS=--feature-powerset --exclude-features default --group-features b CARGO_DOC_ARGS?=--open -XDRGEN_VERSION=0a2611a2bc6b6f6bceacb72fe9321b0cb4d8ccd5 +XDRGEN_VERSION=736398401ba08dfa8f5fcb577c1d7ed935cc51de # XDRGEN_LOCAL=1 XDRGEN_TYPES_CUSTOM_STR_IMPL_CURR=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12 XDRGEN_TYPES_CUSTOM_STR_IMPL_NEXT=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12 From 3a12f34c59467eed7d8958c8d057b5b8012d0425 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Wed, 10 Apr 2024 15:56:21 +1000 Subject: [PATCH 17/20] update xdr --- src/curr/generated.rs | 36 ++++++++++++++++++++++++++++++++++-- src/next/generated.rs | 36 ++++++++++++++++++++++++++++++++++-- 2 files changed, 68 insertions(+), 4 deletions(-) diff --git a/src/curr/generated.rs b/src/curr/generated.rs index 0c59cbb1..2acfd47d 100644 --- a/src/curr/generated.rs +++ b/src/curr/generated.rs @@ -15765,6 +15765,7 @@ impl WriteXdr for ContractDataEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ContractCodeCostInputs { pub ext: ExtensionPoint, pub n_instructions: u32, @@ -15837,6 +15838,7 @@ impl WriteXdr for ContractCodeCostInputs { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ContractCodeEntryV1 { pub ext: ExtensionPoint, pub cost_inputs: ContractCodeCostInputs, @@ -15889,6 +15891,7 @@ impl WriteXdr for ContractCodeEntryV1 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ContractCodeEntryExt { V0, @@ -21431,6 +21434,7 @@ impl WriteXdr for DiagnosticEvent { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SorobanTransactionMetaExtV1 { pub ext: ExtensionPoint, pub total_non_refundable_resource_fee_charged: i64, @@ -21486,6 +21490,7 @@ impl WriteXdr for SorobanTransactionMetaExtV1 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum SorobanTransactionMetaExt { V0, @@ -22043,6 +22048,7 @@ impl WriteXdr for LedgerCloseMetaV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerCloseMetaExtV1 { pub ext: ExtensionPoint, pub soroban_fee_write1_kb: i64, @@ -22091,6 +22097,7 @@ impl WriteXdr for LedgerCloseMetaExtV1 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LedgerCloseMetaExt { V0, @@ -43469,7 +43476,7 @@ impl WriteXdr for HmacSha256Mac { #[doc(hidden)] #[macro_export] -macro_rules! _call_macro_with_each_type_8b45a57eccbfd886a69e4462ad26dd8a94d8874f8cc9ceb6a6de8c91abcb1289 { +macro_rules! _call_macro_with_each_type_a8ec9d9a49f25ea23e8e612173231a39cfdf209abcfa15580b47b2a63e940f47 { // The x-macro takes a single ident, the name of a macro to call ... ($macro_to_call_back:ident, $($context:tt),*) => {{ // ... and calls it back, once for each XDR type. @@ -43749,8 +43756,14 @@ macro_rules! _call_macro_with_each_type_8b45a57eccbfd886a69e4462ad26dd8a94d8874f $macro_to_call_back!(ContractDataEntry, $($context),*); + $macro_to_call_back!(ContractCodeCostInputs, $($context),*); + $macro_to_call_back!(ContractCodeEntry, $($context),*); + $macro_to_call_back!(ContractCodeEntryExt, $($context),*); + + $macro_to_call_back!(ContractCodeEntryV1, $($context),*); + $macro_to_call_back!(TtlEntry, $($context),*); $macro_to_call_back!(LedgerEntryExtensionV1, $($context),*); @@ -43881,6 +43894,10 @@ macro_rules! _call_macro_with_each_type_8b45a57eccbfd886a69e4462ad26dd8a94d8874f $macro_to_call_back!(DiagnosticEvent, $($context),*); + $macro_to_call_back!(SorobanTransactionMetaExtV1, $($context),*); + + $macro_to_call_back!(SorobanTransactionMetaExt, $($context),*); + $macro_to_call_back!(SorobanTransactionMeta, $($context),*); $macro_to_call_back!(TransactionMetaV3, $($context),*); @@ -43895,6 +43912,10 @@ macro_rules! _call_macro_with_each_type_8b45a57eccbfd886a69e4462ad26dd8a94d8874f $macro_to_call_back!(LedgerCloseMetaV0, $($context),*); + $macro_to_call_back!(LedgerCloseMetaExtV1, $($context),*); + + $macro_to_call_back!(LedgerCloseMetaExt, $($context),*); + $macro_to_call_back!(LedgerCloseMetaV1, $($context),*); $macro_to_call_back!(LedgerCloseMeta, $($context),*); @@ -44312,7 +44333,7 @@ macro_rules! _call_macro_with_each_type_8b45a57eccbfd886a69e4462ad26dd8a94d8874f }}; } -pub use _call_macro_with_each_type_8b45a57eccbfd886a69e4462ad26dd8a94d8874f8cc9ceb6a6de8c91abcb1289 as call_macro_with_each_type; +pub use _call_macro_with_each_type_a8ec9d9a49f25ea23e8e612173231a39cfdf209abcfa15580b47b2a63e940f47 as call_macro_with_each_type; #[derive(Clone, Copy, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( all(feature = "serde", feature = "alloc"), @@ -46231,7 +46252,10 @@ impl TypeVariant { } Self::ContractDataDurability => gen.into_root_schema_for::(), Self::ContractDataEntry => gen.into_root_schema_for::(), + Self::ContractCodeCostInputs => gen.into_root_schema_for::(), Self::ContractCodeEntry => gen.into_root_schema_for::(), + Self::ContractCodeEntryExt => gen.into_root_schema_for::(), + Self::ContractCodeEntryV1 => gen.into_root_schema_for::(), Self::TtlEntry => gen.into_root_schema_for::(), Self::LedgerEntryExtensionV1 => gen.into_root_schema_for::(), Self::LedgerEntryExtensionV1Ext => { @@ -46319,6 +46343,12 @@ impl TypeVariant { Self::ContractEventBody => gen.into_root_schema_for::(), Self::ContractEventV0 => gen.into_root_schema_for::(), Self::DiagnosticEvent => gen.into_root_schema_for::(), + Self::SorobanTransactionMetaExtV1 => { + gen.into_root_schema_for::() + } + Self::SorobanTransactionMetaExt => { + gen.into_root_schema_for::() + } Self::SorobanTransactionMeta => gen.into_root_schema_for::(), Self::TransactionMetaV3 => gen.into_root_schema_for::(), Self::InvokeHostFunctionSuccessPreImage => { @@ -46328,6 +46358,8 @@ impl TypeVariant { Self::TransactionResultMeta => gen.into_root_schema_for::(), Self::UpgradeEntryMeta => gen.into_root_schema_for::(), Self::LedgerCloseMetaV0 => gen.into_root_schema_for::(), + Self::LedgerCloseMetaExtV1 => gen.into_root_schema_for::(), + Self::LedgerCloseMetaExt => gen.into_root_schema_for::(), Self::LedgerCloseMetaV1 => gen.into_root_schema_for::(), Self::LedgerCloseMeta => gen.into_root_schema_for::(), Self::ErrorCode => gen.into_root_schema_for::(), diff --git a/src/next/generated.rs b/src/next/generated.rs index 189460cb..baea275c 100644 --- a/src/next/generated.rs +++ b/src/next/generated.rs @@ -15765,6 +15765,7 @@ impl WriteXdr for ContractDataEntry { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ContractCodeCostInputs { pub ext: ExtensionPoint, pub n_instructions: u32, @@ -15837,6 +15838,7 @@ impl WriteXdr for ContractCodeCostInputs { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ContractCodeEntryV1 { pub ext: ExtensionPoint, pub cost_inputs: ContractCodeCostInputs, @@ -15889,6 +15891,7 @@ impl WriteXdr for ContractCodeEntryV1 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ContractCodeEntryExt { V0, @@ -21431,6 +21434,7 @@ impl WriteXdr for DiagnosticEvent { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SorobanTransactionMetaExtV1 { pub ext: ExtensionPoint, pub total_non_refundable_resource_fee_charged: i64, @@ -21486,6 +21490,7 @@ impl WriteXdr for SorobanTransactionMetaExtV1 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum SorobanTransactionMetaExt { V0, @@ -22043,6 +22048,7 @@ impl WriteXdr for LedgerCloseMetaV0 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct LedgerCloseMetaExtV1 { pub ext: ExtensionPoint, pub soroban_fee_write1_kb: i64, @@ -22091,6 +22097,7 @@ impl WriteXdr for LedgerCloseMetaExtV1 { derive(serde::Serialize, serde::Deserialize), serde(rename_all = "snake_case") )] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum LedgerCloseMetaExt { V0, @@ -43469,7 +43476,7 @@ impl WriteXdr for HmacSha256Mac { #[doc(hidden)] #[macro_export] -macro_rules! _call_macro_with_each_type_bac0bd9a01f0eecd4c0ebd32e9b5e6c490d95cdc2dcdebbad617637359bef05f { +macro_rules! _call_macro_with_each_type_53647236d6ceadfee429747f7d6725f269c6917f9a37b47038496c410a3a8868 { // The x-macro takes a single ident, the name of a macro to call ... ($macro_to_call_back:ident, $($context:tt),*) => {{ // ... and calls it back, once for each XDR type. @@ -43749,8 +43756,14 @@ macro_rules! _call_macro_with_each_type_bac0bd9a01f0eecd4c0ebd32e9b5e6c490d95cdc $macro_to_call_back!(ContractDataEntry, $($context),*); + $macro_to_call_back!(ContractCodeCostInputs, $($context),*); + $macro_to_call_back!(ContractCodeEntry, $($context),*); + $macro_to_call_back!(ContractCodeEntryExt, $($context),*); + + $macro_to_call_back!(ContractCodeEntryV1, $($context),*); + $macro_to_call_back!(TtlEntry, $($context),*); $macro_to_call_back!(LedgerEntryExtensionV1, $($context),*); @@ -43881,6 +43894,10 @@ macro_rules! _call_macro_with_each_type_bac0bd9a01f0eecd4c0ebd32e9b5e6c490d95cdc $macro_to_call_back!(DiagnosticEvent, $($context),*); + $macro_to_call_back!(SorobanTransactionMetaExtV1, $($context),*); + + $macro_to_call_back!(SorobanTransactionMetaExt, $($context),*); + $macro_to_call_back!(SorobanTransactionMeta, $($context),*); $macro_to_call_back!(TransactionMetaV3, $($context),*); @@ -43895,6 +43912,10 @@ macro_rules! _call_macro_with_each_type_bac0bd9a01f0eecd4c0ebd32e9b5e6c490d95cdc $macro_to_call_back!(LedgerCloseMetaV0, $($context),*); + $macro_to_call_back!(LedgerCloseMetaExtV1, $($context),*); + + $macro_to_call_back!(LedgerCloseMetaExt, $($context),*); + $macro_to_call_back!(LedgerCloseMetaV1, $($context),*); $macro_to_call_back!(LedgerCloseMeta, $($context),*); @@ -44312,7 +44333,7 @@ macro_rules! _call_macro_with_each_type_bac0bd9a01f0eecd4c0ebd32e9b5e6c490d95cdc }}; } -pub use _call_macro_with_each_type_bac0bd9a01f0eecd4c0ebd32e9b5e6c490d95cdc2dcdebbad617637359bef05f as call_macro_with_each_type; +pub use _call_macro_with_each_type_53647236d6ceadfee429747f7d6725f269c6917f9a37b47038496c410a3a8868 as call_macro_with_each_type; #[derive(Clone, Copy, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( all(feature = "serde", feature = "alloc"), @@ -46231,7 +46252,10 @@ impl TypeVariant { } Self::ContractDataDurability => gen.into_root_schema_for::(), Self::ContractDataEntry => gen.into_root_schema_for::(), + Self::ContractCodeCostInputs => gen.into_root_schema_for::(), Self::ContractCodeEntry => gen.into_root_schema_for::(), + Self::ContractCodeEntryExt => gen.into_root_schema_for::(), + Self::ContractCodeEntryV1 => gen.into_root_schema_for::(), Self::TtlEntry => gen.into_root_schema_for::(), Self::LedgerEntryExtensionV1 => gen.into_root_schema_for::(), Self::LedgerEntryExtensionV1Ext => { @@ -46319,6 +46343,12 @@ impl TypeVariant { Self::ContractEventBody => gen.into_root_schema_for::(), Self::ContractEventV0 => gen.into_root_schema_for::(), Self::DiagnosticEvent => gen.into_root_schema_for::(), + Self::SorobanTransactionMetaExtV1 => { + gen.into_root_schema_for::() + } + Self::SorobanTransactionMetaExt => { + gen.into_root_schema_for::() + } Self::SorobanTransactionMeta => gen.into_root_schema_for::(), Self::TransactionMetaV3 => gen.into_root_schema_for::(), Self::InvokeHostFunctionSuccessPreImage => { @@ -46328,6 +46358,8 @@ impl TypeVariant { Self::TransactionResultMeta => gen.into_root_schema_for::(), Self::UpgradeEntryMeta => gen.into_root_schema_for::(), Self::LedgerCloseMetaV0 => gen.into_root_schema_for::(), + Self::LedgerCloseMetaExtV1 => gen.into_root_schema_for::(), + Self::LedgerCloseMetaExt => gen.into_root_schema_for::(), Self::LedgerCloseMetaV1 => gen.into_root_schema_for::(), Self::LedgerCloseMeta => gen.into_root_schema_for::(), Self::ErrorCode => gen.into_root_schema_for::(), From 77c0ec1cf550e390c901025ef7a80342f8dcdf53 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Thu, 16 May 2024 10:30:07 +1000 Subject: [PATCH 18/20] upd --- Makefile | 2 +- src/curr/generated.rs | 860 ------------------------------------------ src/next/generated.rs | 860 ------------------------------------------ 3 files changed, 1 insertion(+), 1721 deletions(-) diff --git a/Makefile b/Makefile index df1a8800..0ce56c22 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ CARGO_HACK_ARGS=--feature-powerset --exclude-features default --group-features b CARGO_DOC_ARGS?=--open -XDRGEN_VERSION=736398401ba08dfa8f5fcb577c1d7ed935cc51de +XDRGEN_VERSION=6270074a5da9eafab1242c32a96656805d8134e4 # 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 diff --git a/src/curr/generated.rs b/src/curr/generated.rs index 474362ca..05673cb1 100644 --- a/src/curr/generated.rs +++ b/src/curr/generated.rs @@ -43473,866 +43473,6 @@ impl WriteXdr for HmacSha256Mac { } } -#[doc(hidden)] -#[macro_export] -macro_rules! _call_macro_with_each_type_a8ec9d9a49f25ea23e8e612173231a39cfdf209abcfa15580b47b2a63e940f47 { - // The x-macro takes a single ident, the name of a macro to call ... - ($macro_to_call_back:ident, $($context:tt),*) => {{ - // ... and calls it back, once for each XDR type. - $macro_to_call_back!(Value, $($context),*); - - $macro_to_call_back!(ScpBallot, $($context),*); - - $macro_to_call_back!(ScpStatementType, $($context),*); - - $macro_to_call_back!(ScpNomination, $($context),*); - - $macro_to_call_back!(ScpStatement, $($context),*); - - $macro_to_call_back!(ScpStatementPledges, $($context),*); - - $macro_to_call_back!(ScpStatementPrepare, $($context),*); - - $macro_to_call_back!(ScpStatementConfirm, $($context),*); - - $macro_to_call_back!(ScpStatementExternalize, $($context),*); - - $macro_to_call_back!(ScpEnvelope, $($context),*); - - $macro_to_call_back!(ScpQuorumSet, $($context),*); - - $macro_to_call_back!(ConfigSettingContractExecutionLanesV0, $($context),*); - - $macro_to_call_back!(ConfigSettingContractComputeV0, $($context),*); - - $macro_to_call_back!(ConfigSettingContractLedgerCostV0, $($context),*); - - $macro_to_call_back!(ConfigSettingContractHistoricalDataV0, $($context),*); - - $macro_to_call_back!(ConfigSettingContractEventsV0, $($context),*); - - $macro_to_call_back!(ConfigSettingContractBandwidthV0, $($context),*); - - $macro_to_call_back!(ContractCostType, $($context),*); - - $macro_to_call_back!(ContractCostParamEntry, $($context),*); - - $macro_to_call_back!(StateArchivalSettings, $($context),*); - - $macro_to_call_back!(EvictionIterator, $($context),*); - - $macro_to_call_back!(ContractCostParams, $($context),*); - - $macro_to_call_back!(ConfigSettingId, $($context),*); - - $macro_to_call_back!(ConfigSettingEntry, $($context),*); - - $macro_to_call_back!(ScEnvMetaKind, $($context),*); - - $macro_to_call_back!(ScEnvMetaEntry, $($context),*); - - $macro_to_call_back!(ScMetaV0, $($context),*); - - $macro_to_call_back!(ScMetaKind, $($context),*); - - $macro_to_call_back!(ScMetaEntry, $($context),*); - - $macro_to_call_back!(ScSpecType, $($context),*); - - $macro_to_call_back!(ScSpecTypeOption, $($context),*); - - $macro_to_call_back!(ScSpecTypeResult, $($context),*); - - $macro_to_call_back!(ScSpecTypeVec, $($context),*); - - $macro_to_call_back!(ScSpecTypeMap, $($context),*); - - $macro_to_call_back!(ScSpecTypeTuple, $($context),*); - - $macro_to_call_back!(ScSpecTypeBytesN, $($context),*); - - $macro_to_call_back!(ScSpecTypeUdt, $($context),*); - - $macro_to_call_back!(ScSpecTypeDef, $($context),*); - - $macro_to_call_back!(ScSpecUdtStructFieldV0, $($context),*); - - $macro_to_call_back!(ScSpecUdtStructV0, $($context),*); - - $macro_to_call_back!(ScSpecUdtUnionCaseVoidV0, $($context),*); - - $macro_to_call_back!(ScSpecUdtUnionCaseTupleV0, $($context),*); - - $macro_to_call_back!(ScSpecUdtUnionCaseV0Kind, $($context),*); - - $macro_to_call_back!(ScSpecUdtUnionCaseV0, $($context),*); - - $macro_to_call_back!(ScSpecUdtUnionV0, $($context),*); - - $macro_to_call_back!(ScSpecUdtEnumCaseV0, $($context),*); - - $macro_to_call_back!(ScSpecUdtEnumV0, $($context),*); - - $macro_to_call_back!(ScSpecUdtErrorEnumCaseV0, $($context),*); - - $macro_to_call_back!(ScSpecUdtErrorEnumV0, $($context),*); - - $macro_to_call_back!(ScSpecFunctionInputV0, $($context),*); - - $macro_to_call_back!(ScSpecFunctionV0, $($context),*); - - $macro_to_call_back!(ScSpecEntryKind, $($context),*); - - $macro_to_call_back!(ScSpecEntry, $($context),*); - - $macro_to_call_back!(ScValType, $($context),*); - - $macro_to_call_back!(ScErrorType, $($context),*); - - $macro_to_call_back!(ScErrorCode, $($context),*); - - $macro_to_call_back!(ScError, $($context),*); - - $macro_to_call_back!(UInt128Parts, $($context),*); - - $macro_to_call_back!(Int128Parts, $($context),*); - - $macro_to_call_back!(UInt256Parts, $($context),*); - - $macro_to_call_back!(Int256Parts, $($context),*); - - $macro_to_call_back!(ContractExecutableType, $($context),*); - - $macro_to_call_back!(ContractExecutable, $($context),*); - - $macro_to_call_back!(ScAddressType, $($context),*); - - $macro_to_call_back!(ScAddress, $($context),*); - - $macro_to_call_back!(ScVec, $($context),*); - - $macro_to_call_back!(ScMap, $($context),*); - - $macro_to_call_back!(ScBytes, $($context),*); - - $macro_to_call_back!(ScString, $($context),*); - - $macro_to_call_back!(ScSymbol, $($context),*); - - $macro_to_call_back!(ScNonceKey, $($context),*); - - $macro_to_call_back!(ScContractInstance, $($context),*); - - $macro_to_call_back!(ScVal, $($context),*); - - $macro_to_call_back!(ScMapEntry, $($context),*); - - $macro_to_call_back!(StoredTransactionSet, $($context),*); - - $macro_to_call_back!(StoredDebugTransactionSet, $($context),*); - - $macro_to_call_back!(PersistedScpStateV0, $($context),*); - - $macro_to_call_back!(PersistedScpStateV1, $($context),*); - - $macro_to_call_back!(PersistedScpState, $($context),*); - - $macro_to_call_back!(Thresholds, $($context),*); - - $macro_to_call_back!(String32, $($context),*); - - $macro_to_call_back!(String64, $($context),*); - - $macro_to_call_back!(SequenceNumber, $($context),*); - - $macro_to_call_back!(DataValue, $($context),*); - - $macro_to_call_back!(PoolId, $($context),*); - - $macro_to_call_back!(AssetCode4, $($context),*); - - $macro_to_call_back!(AssetCode12, $($context),*); - - $macro_to_call_back!(AssetType, $($context),*); - - $macro_to_call_back!(AssetCode, $($context),*); - - $macro_to_call_back!(AlphaNum4, $($context),*); - - $macro_to_call_back!(AlphaNum12, $($context),*); - - $macro_to_call_back!(Asset, $($context),*); - - $macro_to_call_back!(Price, $($context),*); - - $macro_to_call_back!(Liabilities, $($context),*); - - $macro_to_call_back!(ThresholdIndexes, $($context),*); - - $macro_to_call_back!(LedgerEntryType, $($context),*); - - $macro_to_call_back!(Signer, $($context),*); - - $macro_to_call_back!(AccountFlags, $($context),*); - - $macro_to_call_back!(SponsorshipDescriptor, $($context),*); - - $macro_to_call_back!(AccountEntryExtensionV3, $($context),*); - - $macro_to_call_back!(AccountEntryExtensionV2, $($context),*); - - $macro_to_call_back!(AccountEntryExtensionV2Ext, $($context),*); - - $macro_to_call_back!(AccountEntryExtensionV1, $($context),*); - - $macro_to_call_back!(AccountEntryExtensionV1Ext, $($context),*); - - $macro_to_call_back!(AccountEntry, $($context),*); - - $macro_to_call_back!(AccountEntryExt, $($context),*); - - $macro_to_call_back!(TrustLineFlags, $($context),*); - - $macro_to_call_back!(LiquidityPoolType, $($context),*); - - $macro_to_call_back!(TrustLineAsset, $($context),*); - - $macro_to_call_back!(TrustLineEntryExtensionV2, $($context),*); - - $macro_to_call_back!(TrustLineEntryExtensionV2Ext, $($context),*); - - $macro_to_call_back!(TrustLineEntry, $($context),*); - - $macro_to_call_back!(TrustLineEntryExt, $($context),*); - - $macro_to_call_back!(TrustLineEntryV1, $($context),*); - - $macro_to_call_back!(TrustLineEntryV1Ext, $($context),*); - - $macro_to_call_back!(OfferEntryFlags, $($context),*); - - $macro_to_call_back!(OfferEntry, $($context),*); - - $macro_to_call_back!(OfferEntryExt, $($context),*); - - $macro_to_call_back!(DataEntry, $($context),*); - - $macro_to_call_back!(DataEntryExt, $($context),*); - - $macro_to_call_back!(ClaimPredicateType, $($context),*); - - $macro_to_call_back!(ClaimPredicate, $($context),*); - - $macro_to_call_back!(ClaimantType, $($context),*); - - $macro_to_call_back!(Claimant, $($context),*); - - $macro_to_call_back!(ClaimantV0, $($context),*); - - $macro_to_call_back!(ClaimableBalanceIdType, $($context),*); - - $macro_to_call_back!(ClaimableBalanceId, $($context),*); - - $macro_to_call_back!(ClaimableBalanceFlags, $($context),*); - - $macro_to_call_back!(ClaimableBalanceEntryExtensionV1, $($context),*); - - $macro_to_call_back!(ClaimableBalanceEntryExtensionV1Ext, $($context),*); - - $macro_to_call_back!(ClaimableBalanceEntry, $($context),*); - - $macro_to_call_back!(ClaimableBalanceEntryExt, $($context),*); - - $macro_to_call_back!(LiquidityPoolConstantProductParameters, $($context),*); - - $macro_to_call_back!(LiquidityPoolEntry, $($context),*); - - $macro_to_call_back!(LiquidityPoolEntryBody, $($context),*); - - $macro_to_call_back!(LiquidityPoolEntryConstantProduct, $($context),*); - - $macro_to_call_back!(ContractDataDurability, $($context),*); - - $macro_to_call_back!(ContractDataEntry, $($context),*); - - $macro_to_call_back!(ContractCodeCostInputs, $($context),*); - - $macro_to_call_back!(ContractCodeEntry, $($context),*); - - $macro_to_call_back!(ContractCodeEntryExt, $($context),*); - - $macro_to_call_back!(ContractCodeEntryV1, $($context),*); - - $macro_to_call_back!(TtlEntry, $($context),*); - - $macro_to_call_back!(LedgerEntryExtensionV1, $($context),*); - - $macro_to_call_back!(LedgerEntryExtensionV1Ext, $($context),*); - - $macro_to_call_back!(LedgerEntry, $($context),*); - - $macro_to_call_back!(LedgerEntryData, $($context),*); - - $macro_to_call_back!(LedgerEntryExt, $($context),*); - - $macro_to_call_back!(LedgerKey, $($context),*); - - $macro_to_call_back!(LedgerKeyAccount, $($context),*); - - $macro_to_call_back!(LedgerKeyTrustLine, $($context),*); - - $macro_to_call_back!(LedgerKeyOffer, $($context),*); - - $macro_to_call_back!(LedgerKeyData, $($context),*); - - $macro_to_call_back!(LedgerKeyClaimableBalance, $($context),*); - - $macro_to_call_back!(LedgerKeyLiquidityPool, $($context),*); - - $macro_to_call_back!(LedgerKeyContractData, $($context),*); - - $macro_to_call_back!(LedgerKeyContractCode, $($context),*); - - $macro_to_call_back!(LedgerKeyConfigSetting, $($context),*); - - $macro_to_call_back!(LedgerKeyTtl, $($context),*); - - $macro_to_call_back!(EnvelopeType, $($context),*); - - $macro_to_call_back!(UpgradeType, $($context),*); - - $macro_to_call_back!(StellarValueType, $($context),*); - - $macro_to_call_back!(LedgerCloseValueSignature, $($context),*); - - $macro_to_call_back!(StellarValue, $($context),*); - - $macro_to_call_back!(StellarValueExt, $($context),*); - - $macro_to_call_back!(LedgerHeaderFlags, $($context),*); - - $macro_to_call_back!(LedgerHeaderExtensionV1, $($context),*); - - $macro_to_call_back!(LedgerHeaderExtensionV1Ext, $($context),*); - - $macro_to_call_back!(LedgerHeader, $($context),*); - - $macro_to_call_back!(LedgerHeaderExt, $($context),*); - - $macro_to_call_back!(LedgerUpgradeType, $($context),*); - - $macro_to_call_back!(ConfigUpgradeSetKey, $($context),*); - - $macro_to_call_back!(LedgerUpgrade, $($context),*); - - $macro_to_call_back!(ConfigUpgradeSet, $($context),*); - - $macro_to_call_back!(BucketEntryType, $($context),*); - - $macro_to_call_back!(BucketMetadata, $($context),*); - - $macro_to_call_back!(BucketMetadataExt, $($context),*); - - $macro_to_call_back!(BucketEntry, $($context),*); - - $macro_to_call_back!(TxSetComponentType, $($context),*); - - $macro_to_call_back!(TxSetComponent, $($context),*); - - $macro_to_call_back!(TxSetComponentTxsMaybeDiscountedFee, $($context),*); - - $macro_to_call_back!(TransactionPhase, $($context),*); - - $macro_to_call_back!(TransactionSet, $($context),*); - - $macro_to_call_back!(TransactionSetV1, $($context),*); - - $macro_to_call_back!(GeneralizedTransactionSet, $($context),*); - - $macro_to_call_back!(TransactionResultPair, $($context),*); - - $macro_to_call_back!(TransactionResultSet, $($context),*); - - $macro_to_call_back!(TransactionHistoryEntry, $($context),*); - - $macro_to_call_back!(TransactionHistoryEntryExt, $($context),*); - - $macro_to_call_back!(TransactionHistoryResultEntry, $($context),*); - - $macro_to_call_back!(TransactionHistoryResultEntryExt, $($context),*); - - $macro_to_call_back!(LedgerHeaderHistoryEntry, $($context),*); - - $macro_to_call_back!(LedgerHeaderHistoryEntryExt, $($context),*); - - $macro_to_call_back!(LedgerScpMessages, $($context),*); - - $macro_to_call_back!(ScpHistoryEntryV0, $($context),*); - - $macro_to_call_back!(ScpHistoryEntry, $($context),*); - - $macro_to_call_back!(LedgerEntryChangeType, $($context),*); - - $macro_to_call_back!(LedgerEntryChange, $($context),*); - - $macro_to_call_back!(LedgerEntryChanges, $($context),*); - - $macro_to_call_back!(OperationMeta, $($context),*); - - $macro_to_call_back!(TransactionMetaV1, $($context),*); - - $macro_to_call_back!(TransactionMetaV2, $($context),*); - - $macro_to_call_back!(ContractEventType, $($context),*); - - $macro_to_call_back!(ContractEvent, $($context),*); - - $macro_to_call_back!(ContractEventBody, $($context),*); - - $macro_to_call_back!(ContractEventV0, $($context),*); - - $macro_to_call_back!(DiagnosticEvent, $($context),*); - - $macro_to_call_back!(SorobanTransactionMetaExtV1, $($context),*); - - $macro_to_call_back!(SorobanTransactionMetaExt, $($context),*); - - $macro_to_call_back!(SorobanTransactionMeta, $($context),*); - - $macro_to_call_back!(TransactionMetaV3, $($context),*); - - $macro_to_call_back!(InvokeHostFunctionSuccessPreImage, $($context),*); - - $macro_to_call_back!(TransactionMeta, $($context),*); - - $macro_to_call_back!(TransactionResultMeta, $($context),*); - - $macro_to_call_back!(UpgradeEntryMeta, $($context),*); - - $macro_to_call_back!(LedgerCloseMetaV0, $($context),*); - - $macro_to_call_back!(LedgerCloseMetaExtV1, $($context),*); - - $macro_to_call_back!(LedgerCloseMetaExt, $($context),*); - - $macro_to_call_back!(LedgerCloseMetaV1, $($context),*); - - $macro_to_call_back!(LedgerCloseMeta, $($context),*); - - $macro_to_call_back!(ErrorCode, $($context),*); - - $macro_to_call_back!(SError, $($context),*); - - $macro_to_call_back!(SendMore, $($context),*); - - $macro_to_call_back!(SendMoreExtended, $($context),*); - - $macro_to_call_back!(AuthCert, $($context),*); - - $macro_to_call_back!(Hello, $($context),*); - - $macro_to_call_back!(Auth, $($context),*); - - $macro_to_call_back!(IpAddrType, $($context),*); - - $macro_to_call_back!(PeerAddress, $($context),*); - - $macro_to_call_back!(PeerAddressIp, $($context),*); - - $macro_to_call_back!(MessageType, $($context),*); - - $macro_to_call_back!(DontHave, $($context),*); - - $macro_to_call_back!(SurveyMessageCommandType, $($context),*); - - $macro_to_call_back!(SurveyMessageResponseType, $($context),*); - - $macro_to_call_back!(SurveyRequestMessage, $($context),*); - - $macro_to_call_back!(SignedSurveyRequestMessage, $($context),*); - - $macro_to_call_back!(EncryptedBody, $($context),*); - - $macro_to_call_back!(SurveyResponseMessage, $($context),*); - - $macro_to_call_back!(SignedSurveyResponseMessage, $($context),*); - - $macro_to_call_back!(PeerStats, $($context),*); - - $macro_to_call_back!(PeerStatList, $($context),*); - - $macro_to_call_back!(TopologyResponseBodyV0, $($context),*); - - $macro_to_call_back!(TopologyResponseBodyV1, $($context),*); - - $macro_to_call_back!(SurveyResponseBody, $($context),*); - - $macro_to_call_back!(TxAdvertVector, $($context),*); - - $macro_to_call_back!(FloodAdvert, $($context),*); - - $macro_to_call_back!(TxDemandVector, $($context),*); - - $macro_to_call_back!(FloodDemand, $($context),*); - - $macro_to_call_back!(StellarMessage, $($context),*); - - $macro_to_call_back!(AuthenticatedMessage, $($context),*); - - $macro_to_call_back!(AuthenticatedMessageV0, $($context),*); - - $macro_to_call_back!(LiquidityPoolParameters, $($context),*); - - $macro_to_call_back!(MuxedAccount, $($context),*); - - $macro_to_call_back!(MuxedAccountMed25519, $($context),*); - - $macro_to_call_back!(DecoratedSignature, $($context),*); - - $macro_to_call_back!(OperationType, $($context),*); - - $macro_to_call_back!(CreateAccountOp, $($context),*); - - $macro_to_call_back!(PaymentOp, $($context),*); - - $macro_to_call_back!(PathPaymentStrictReceiveOp, $($context),*); - - $macro_to_call_back!(PathPaymentStrictSendOp, $($context),*); - - $macro_to_call_back!(ManageSellOfferOp, $($context),*); - - $macro_to_call_back!(ManageBuyOfferOp, $($context),*); - - $macro_to_call_back!(CreatePassiveSellOfferOp, $($context),*); - - $macro_to_call_back!(SetOptionsOp, $($context),*); - - $macro_to_call_back!(ChangeTrustAsset, $($context),*); - - $macro_to_call_back!(ChangeTrustOp, $($context),*); - - $macro_to_call_back!(AllowTrustOp, $($context),*); - - $macro_to_call_back!(ManageDataOp, $($context),*); - - $macro_to_call_back!(BumpSequenceOp, $($context),*); - - $macro_to_call_back!(CreateClaimableBalanceOp, $($context),*); - - $macro_to_call_back!(ClaimClaimableBalanceOp, $($context),*); - - $macro_to_call_back!(BeginSponsoringFutureReservesOp, $($context),*); - - $macro_to_call_back!(RevokeSponsorshipType, $($context),*); - - $macro_to_call_back!(RevokeSponsorshipOp, $($context),*); - - $macro_to_call_back!(RevokeSponsorshipOpSigner, $($context),*); - - $macro_to_call_back!(ClawbackOp, $($context),*); - - $macro_to_call_back!(ClawbackClaimableBalanceOp, $($context),*); - - $macro_to_call_back!(SetTrustLineFlagsOp, $($context),*); - - $macro_to_call_back!(LiquidityPoolDepositOp, $($context),*); - - $macro_to_call_back!(LiquidityPoolWithdrawOp, $($context),*); - - $macro_to_call_back!(HostFunctionType, $($context),*); - - $macro_to_call_back!(ContractIdPreimageType, $($context),*); - - $macro_to_call_back!(ContractIdPreimage, $($context),*); - - $macro_to_call_back!(ContractIdPreimageFromAddress, $($context),*); - - $macro_to_call_back!(CreateContractArgs, $($context),*); - - $macro_to_call_back!(InvokeContractArgs, $($context),*); - - $macro_to_call_back!(HostFunction, $($context),*); - - $macro_to_call_back!(SorobanAuthorizedFunctionType, $($context),*); - - $macro_to_call_back!(SorobanAuthorizedFunction, $($context),*); - - $macro_to_call_back!(SorobanAuthorizedInvocation, $($context),*); - - $macro_to_call_back!(SorobanAddressCredentials, $($context),*); - - $macro_to_call_back!(SorobanCredentialsType, $($context),*); - - $macro_to_call_back!(SorobanCredentials, $($context),*); - - $macro_to_call_back!(SorobanAuthorizationEntry, $($context),*); - - $macro_to_call_back!(InvokeHostFunctionOp, $($context),*); - - $macro_to_call_back!(ExtendFootprintTtlOp, $($context),*); - - $macro_to_call_back!(RestoreFootprintOp, $($context),*); - - $macro_to_call_back!(Operation, $($context),*); - - $macro_to_call_back!(OperationBody, $($context),*); - - $macro_to_call_back!(HashIdPreimage, $($context),*); - - $macro_to_call_back!(HashIdPreimageOperationId, $($context),*); - - $macro_to_call_back!(HashIdPreimageRevokeId, $($context),*); - - $macro_to_call_back!(HashIdPreimageContractId, $($context),*); - - $macro_to_call_back!(HashIdPreimageSorobanAuthorization, $($context),*); - - $macro_to_call_back!(MemoType, $($context),*); - - $macro_to_call_back!(Memo, $($context),*); - - $macro_to_call_back!(TimeBounds, $($context),*); - - $macro_to_call_back!(LedgerBounds, $($context),*); - - $macro_to_call_back!(PreconditionsV2, $($context),*); - - $macro_to_call_back!(PreconditionType, $($context),*); - - $macro_to_call_back!(Preconditions, $($context),*); - - $macro_to_call_back!(LedgerFootprint, $($context),*); - - $macro_to_call_back!(SorobanResources, $($context),*); - - $macro_to_call_back!(SorobanTransactionData, $($context),*); - - $macro_to_call_back!(TransactionV0, $($context),*); - - $macro_to_call_back!(TransactionV0Ext, $($context),*); - - $macro_to_call_back!(TransactionV0Envelope, $($context),*); - - $macro_to_call_back!(Transaction, $($context),*); - - $macro_to_call_back!(TransactionExt, $($context),*); - - $macro_to_call_back!(TransactionV1Envelope, $($context),*); - - $macro_to_call_back!(FeeBumpTransaction, $($context),*); - - $macro_to_call_back!(FeeBumpTransactionInnerTx, $($context),*); - - $macro_to_call_back!(FeeBumpTransactionExt, $($context),*); - - $macro_to_call_back!(FeeBumpTransactionEnvelope, $($context),*); - - $macro_to_call_back!(TransactionEnvelope, $($context),*); - - $macro_to_call_back!(TransactionSignaturePayload, $($context),*); - - $macro_to_call_back!(TransactionSignaturePayloadTaggedTransaction, $($context),*); - - $macro_to_call_back!(ClaimAtomType, $($context),*); - - $macro_to_call_back!(ClaimOfferAtomV0, $($context),*); - - $macro_to_call_back!(ClaimOfferAtom, $($context),*); - - $macro_to_call_back!(ClaimLiquidityAtom, $($context),*); - - $macro_to_call_back!(ClaimAtom, $($context),*); - - $macro_to_call_back!(CreateAccountResultCode, $($context),*); - - $macro_to_call_back!(CreateAccountResult, $($context),*); - - $macro_to_call_back!(PaymentResultCode, $($context),*); - - $macro_to_call_back!(PaymentResult, $($context),*); - - $macro_to_call_back!(PathPaymentStrictReceiveResultCode, $($context),*); - - $macro_to_call_back!(SimplePaymentResult, $($context),*); - - $macro_to_call_back!(PathPaymentStrictReceiveResult, $($context),*); - - $macro_to_call_back!(PathPaymentStrictReceiveResultSuccess, $($context),*); - - $macro_to_call_back!(PathPaymentStrictSendResultCode, $($context),*); - - $macro_to_call_back!(PathPaymentStrictSendResult, $($context),*); - - $macro_to_call_back!(PathPaymentStrictSendResultSuccess, $($context),*); - - $macro_to_call_back!(ManageSellOfferResultCode, $($context),*); - - $macro_to_call_back!(ManageOfferEffect, $($context),*); - - $macro_to_call_back!(ManageOfferSuccessResult, $($context),*); - - $macro_to_call_back!(ManageOfferSuccessResultOffer, $($context),*); - - $macro_to_call_back!(ManageSellOfferResult, $($context),*); - - $macro_to_call_back!(ManageBuyOfferResultCode, $($context),*); - - $macro_to_call_back!(ManageBuyOfferResult, $($context),*); - - $macro_to_call_back!(SetOptionsResultCode, $($context),*); - - $macro_to_call_back!(SetOptionsResult, $($context),*); - - $macro_to_call_back!(ChangeTrustResultCode, $($context),*); - - $macro_to_call_back!(ChangeTrustResult, $($context),*); - - $macro_to_call_back!(AllowTrustResultCode, $($context),*); - - $macro_to_call_back!(AllowTrustResult, $($context),*); - - $macro_to_call_back!(AccountMergeResultCode, $($context),*); - - $macro_to_call_back!(AccountMergeResult, $($context),*); - - $macro_to_call_back!(InflationResultCode, $($context),*); - - $macro_to_call_back!(InflationPayout, $($context),*); - - $macro_to_call_back!(InflationResult, $($context),*); - - $macro_to_call_back!(ManageDataResultCode, $($context),*); - - $macro_to_call_back!(ManageDataResult, $($context),*); - - $macro_to_call_back!(BumpSequenceResultCode, $($context),*); - - $macro_to_call_back!(BumpSequenceResult, $($context),*); - - $macro_to_call_back!(CreateClaimableBalanceResultCode, $($context),*); - - $macro_to_call_back!(CreateClaimableBalanceResult, $($context),*); - - $macro_to_call_back!(ClaimClaimableBalanceResultCode, $($context),*); - - $macro_to_call_back!(ClaimClaimableBalanceResult, $($context),*); - - $macro_to_call_back!(BeginSponsoringFutureReservesResultCode, $($context),*); - - $macro_to_call_back!(BeginSponsoringFutureReservesResult, $($context),*); - - $macro_to_call_back!(EndSponsoringFutureReservesResultCode, $($context),*); - - $macro_to_call_back!(EndSponsoringFutureReservesResult, $($context),*); - - $macro_to_call_back!(RevokeSponsorshipResultCode, $($context),*); - - $macro_to_call_back!(RevokeSponsorshipResult, $($context),*); - - $macro_to_call_back!(ClawbackResultCode, $($context),*); - - $macro_to_call_back!(ClawbackResult, $($context),*); - - $macro_to_call_back!(ClawbackClaimableBalanceResultCode, $($context),*); - - $macro_to_call_back!(ClawbackClaimableBalanceResult, $($context),*); - - $macro_to_call_back!(SetTrustLineFlagsResultCode, $($context),*); - - $macro_to_call_back!(SetTrustLineFlagsResult, $($context),*); - - $macro_to_call_back!(LiquidityPoolDepositResultCode, $($context),*); - - $macro_to_call_back!(LiquidityPoolDepositResult, $($context),*); - - $macro_to_call_back!(LiquidityPoolWithdrawResultCode, $($context),*); - - $macro_to_call_back!(LiquidityPoolWithdrawResult, $($context),*); - - $macro_to_call_back!(InvokeHostFunctionResultCode, $($context),*); - - $macro_to_call_back!(InvokeHostFunctionResult, $($context),*); - - $macro_to_call_back!(ExtendFootprintTtlResultCode, $($context),*); - - $macro_to_call_back!(ExtendFootprintTtlResult, $($context),*); - - $macro_to_call_back!(RestoreFootprintResultCode, $($context),*); - - $macro_to_call_back!(RestoreFootprintResult, $($context),*); - - $macro_to_call_back!(OperationResultCode, $($context),*); - - $macro_to_call_back!(OperationResult, $($context),*); - - $macro_to_call_back!(OperationResultTr, $($context),*); - - $macro_to_call_back!(TransactionResultCode, $($context),*); - - $macro_to_call_back!(InnerTransactionResult, $($context),*); - - $macro_to_call_back!(InnerTransactionResultResult, $($context),*); - - $macro_to_call_back!(InnerTransactionResultExt, $($context),*); - - $macro_to_call_back!(InnerTransactionResultPair, $($context),*); - - $macro_to_call_back!(TransactionResult, $($context),*); - - $macro_to_call_back!(TransactionResultResult, $($context),*); - - $macro_to_call_back!(TransactionResultExt, $($context),*); - - $macro_to_call_back!(Hash, $($context),*); - - $macro_to_call_back!(Uint256, $($context),*); - - $macro_to_call_back!(Uint32, $($context),*); - - $macro_to_call_back!(Int32, $($context),*); - - $macro_to_call_back!(Uint64, $($context),*); - - $macro_to_call_back!(Int64, $($context),*); - - $macro_to_call_back!(TimePoint, $($context),*); - - $macro_to_call_back!(Duration, $($context),*); - - $macro_to_call_back!(ExtensionPoint, $($context),*); - - $macro_to_call_back!(CryptoKeyType, $($context),*); - - $macro_to_call_back!(PublicKeyType, $($context),*); - - $macro_to_call_back!(SignerKeyType, $($context),*); - - $macro_to_call_back!(PublicKey, $($context),*); - - $macro_to_call_back!(SignerKey, $($context),*); - - $macro_to_call_back!(SignerKeyEd25519SignedPayload, $($context),*); - - $macro_to_call_back!(Signature, $($context),*); - - $macro_to_call_back!(SignatureHint, $($context),*); - - $macro_to_call_back!(NodeId, $($context),*); - - $macro_to_call_back!(AccountId, $($context),*); - - $macro_to_call_back!(Curve25519Secret, $($context),*); - - $macro_to_call_back!(Curve25519Public, $($context),*); - - $macro_to_call_back!(HmacSha256Key, $($context),*); - - $macro_to_call_back!(HmacSha256Mac, $($context),*); - - - }}; -} -pub use _call_macro_with_each_type_a8ec9d9a49f25ea23e8e612173231a39cfdf209abcfa15580b47b2a63e940f47 as call_macro_with_each_type; #[derive(Clone, Copy, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( all(feature = "serde", feature = "alloc"), diff --git a/src/next/generated.rs b/src/next/generated.rs index aa31b0e8..35e6129a 100644 --- a/src/next/generated.rs +++ b/src/next/generated.rs @@ -43473,866 +43473,6 @@ impl WriteXdr for HmacSha256Mac { } } -#[doc(hidden)] -#[macro_export] -macro_rules! _call_macro_with_each_type_53647236d6ceadfee429747f7d6725f269c6917f9a37b47038496c410a3a8868 { - // The x-macro takes a single ident, the name of a macro to call ... - ($macro_to_call_back:ident, $($context:tt),*) => {{ - // ... and calls it back, once for each XDR type. - $macro_to_call_back!(Value, $($context),*); - - $macro_to_call_back!(ScpBallot, $($context),*); - - $macro_to_call_back!(ScpStatementType, $($context),*); - - $macro_to_call_back!(ScpNomination, $($context),*); - - $macro_to_call_back!(ScpStatement, $($context),*); - - $macro_to_call_back!(ScpStatementPledges, $($context),*); - - $macro_to_call_back!(ScpStatementPrepare, $($context),*); - - $macro_to_call_back!(ScpStatementConfirm, $($context),*); - - $macro_to_call_back!(ScpStatementExternalize, $($context),*); - - $macro_to_call_back!(ScpEnvelope, $($context),*); - - $macro_to_call_back!(ScpQuorumSet, $($context),*); - - $macro_to_call_back!(ConfigSettingContractExecutionLanesV0, $($context),*); - - $macro_to_call_back!(ConfigSettingContractComputeV0, $($context),*); - - $macro_to_call_back!(ConfigSettingContractLedgerCostV0, $($context),*); - - $macro_to_call_back!(ConfigSettingContractHistoricalDataV0, $($context),*); - - $macro_to_call_back!(ConfigSettingContractEventsV0, $($context),*); - - $macro_to_call_back!(ConfigSettingContractBandwidthV0, $($context),*); - - $macro_to_call_back!(ContractCostType, $($context),*); - - $macro_to_call_back!(ContractCostParamEntry, $($context),*); - - $macro_to_call_back!(StateArchivalSettings, $($context),*); - - $macro_to_call_back!(EvictionIterator, $($context),*); - - $macro_to_call_back!(ContractCostParams, $($context),*); - - $macro_to_call_back!(ConfigSettingId, $($context),*); - - $macro_to_call_back!(ConfigSettingEntry, $($context),*); - - $macro_to_call_back!(ScEnvMetaKind, $($context),*); - - $macro_to_call_back!(ScEnvMetaEntry, $($context),*); - - $macro_to_call_back!(ScMetaV0, $($context),*); - - $macro_to_call_back!(ScMetaKind, $($context),*); - - $macro_to_call_back!(ScMetaEntry, $($context),*); - - $macro_to_call_back!(ScSpecType, $($context),*); - - $macro_to_call_back!(ScSpecTypeOption, $($context),*); - - $macro_to_call_back!(ScSpecTypeResult, $($context),*); - - $macro_to_call_back!(ScSpecTypeVec, $($context),*); - - $macro_to_call_back!(ScSpecTypeMap, $($context),*); - - $macro_to_call_back!(ScSpecTypeTuple, $($context),*); - - $macro_to_call_back!(ScSpecTypeBytesN, $($context),*); - - $macro_to_call_back!(ScSpecTypeUdt, $($context),*); - - $macro_to_call_back!(ScSpecTypeDef, $($context),*); - - $macro_to_call_back!(ScSpecUdtStructFieldV0, $($context),*); - - $macro_to_call_back!(ScSpecUdtStructV0, $($context),*); - - $macro_to_call_back!(ScSpecUdtUnionCaseVoidV0, $($context),*); - - $macro_to_call_back!(ScSpecUdtUnionCaseTupleV0, $($context),*); - - $macro_to_call_back!(ScSpecUdtUnionCaseV0Kind, $($context),*); - - $macro_to_call_back!(ScSpecUdtUnionCaseV0, $($context),*); - - $macro_to_call_back!(ScSpecUdtUnionV0, $($context),*); - - $macro_to_call_back!(ScSpecUdtEnumCaseV0, $($context),*); - - $macro_to_call_back!(ScSpecUdtEnumV0, $($context),*); - - $macro_to_call_back!(ScSpecUdtErrorEnumCaseV0, $($context),*); - - $macro_to_call_back!(ScSpecUdtErrorEnumV0, $($context),*); - - $macro_to_call_back!(ScSpecFunctionInputV0, $($context),*); - - $macro_to_call_back!(ScSpecFunctionV0, $($context),*); - - $macro_to_call_back!(ScSpecEntryKind, $($context),*); - - $macro_to_call_back!(ScSpecEntry, $($context),*); - - $macro_to_call_back!(ScValType, $($context),*); - - $macro_to_call_back!(ScErrorType, $($context),*); - - $macro_to_call_back!(ScErrorCode, $($context),*); - - $macro_to_call_back!(ScError, $($context),*); - - $macro_to_call_back!(UInt128Parts, $($context),*); - - $macro_to_call_back!(Int128Parts, $($context),*); - - $macro_to_call_back!(UInt256Parts, $($context),*); - - $macro_to_call_back!(Int256Parts, $($context),*); - - $macro_to_call_back!(ContractExecutableType, $($context),*); - - $macro_to_call_back!(ContractExecutable, $($context),*); - - $macro_to_call_back!(ScAddressType, $($context),*); - - $macro_to_call_back!(ScAddress, $($context),*); - - $macro_to_call_back!(ScVec, $($context),*); - - $macro_to_call_back!(ScMap, $($context),*); - - $macro_to_call_back!(ScBytes, $($context),*); - - $macro_to_call_back!(ScString, $($context),*); - - $macro_to_call_back!(ScSymbol, $($context),*); - - $macro_to_call_back!(ScNonceKey, $($context),*); - - $macro_to_call_back!(ScContractInstance, $($context),*); - - $macro_to_call_back!(ScVal, $($context),*); - - $macro_to_call_back!(ScMapEntry, $($context),*); - - $macro_to_call_back!(StoredTransactionSet, $($context),*); - - $macro_to_call_back!(StoredDebugTransactionSet, $($context),*); - - $macro_to_call_back!(PersistedScpStateV0, $($context),*); - - $macro_to_call_back!(PersistedScpStateV1, $($context),*); - - $macro_to_call_back!(PersistedScpState, $($context),*); - - $macro_to_call_back!(Thresholds, $($context),*); - - $macro_to_call_back!(String32, $($context),*); - - $macro_to_call_back!(String64, $($context),*); - - $macro_to_call_back!(SequenceNumber, $($context),*); - - $macro_to_call_back!(DataValue, $($context),*); - - $macro_to_call_back!(PoolId, $($context),*); - - $macro_to_call_back!(AssetCode4, $($context),*); - - $macro_to_call_back!(AssetCode12, $($context),*); - - $macro_to_call_back!(AssetType, $($context),*); - - $macro_to_call_back!(AssetCode, $($context),*); - - $macro_to_call_back!(AlphaNum4, $($context),*); - - $macro_to_call_back!(AlphaNum12, $($context),*); - - $macro_to_call_back!(Asset, $($context),*); - - $macro_to_call_back!(Price, $($context),*); - - $macro_to_call_back!(Liabilities, $($context),*); - - $macro_to_call_back!(ThresholdIndexes, $($context),*); - - $macro_to_call_back!(LedgerEntryType, $($context),*); - - $macro_to_call_back!(Signer, $($context),*); - - $macro_to_call_back!(AccountFlags, $($context),*); - - $macro_to_call_back!(SponsorshipDescriptor, $($context),*); - - $macro_to_call_back!(AccountEntryExtensionV3, $($context),*); - - $macro_to_call_back!(AccountEntryExtensionV2, $($context),*); - - $macro_to_call_back!(AccountEntryExtensionV2Ext, $($context),*); - - $macro_to_call_back!(AccountEntryExtensionV1, $($context),*); - - $macro_to_call_back!(AccountEntryExtensionV1Ext, $($context),*); - - $macro_to_call_back!(AccountEntry, $($context),*); - - $macro_to_call_back!(AccountEntryExt, $($context),*); - - $macro_to_call_back!(TrustLineFlags, $($context),*); - - $macro_to_call_back!(LiquidityPoolType, $($context),*); - - $macro_to_call_back!(TrustLineAsset, $($context),*); - - $macro_to_call_back!(TrustLineEntryExtensionV2, $($context),*); - - $macro_to_call_back!(TrustLineEntryExtensionV2Ext, $($context),*); - - $macro_to_call_back!(TrustLineEntry, $($context),*); - - $macro_to_call_back!(TrustLineEntryExt, $($context),*); - - $macro_to_call_back!(TrustLineEntryV1, $($context),*); - - $macro_to_call_back!(TrustLineEntryV1Ext, $($context),*); - - $macro_to_call_back!(OfferEntryFlags, $($context),*); - - $macro_to_call_back!(OfferEntry, $($context),*); - - $macro_to_call_back!(OfferEntryExt, $($context),*); - - $macro_to_call_back!(DataEntry, $($context),*); - - $macro_to_call_back!(DataEntryExt, $($context),*); - - $macro_to_call_back!(ClaimPredicateType, $($context),*); - - $macro_to_call_back!(ClaimPredicate, $($context),*); - - $macro_to_call_back!(ClaimantType, $($context),*); - - $macro_to_call_back!(Claimant, $($context),*); - - $macro_to_call_back!(ClaimantV0, $($context),*); - - $macro_to_call_back!(ClaimableBalanceIdType, $($context),*); - - $macro_to_call_back!(ClaimableBalanceId, $($context),*); - - $macro_to_call_back!(ClaimableBalanceFlags, $($context),*); - - $macro_to_call_back!(ClaimableBalanceEntryExtensionV1, $($context),*); - - $macro_to_call_back!(ClaimableBalanceEntryExtensionV1Ext, $($context),*); - - $macro_to_call_back!(ClaimableBalanceEntry, $($context),*); - - $macro_to_call_back!(ClaimableBalanceEntryExt, $($context),*); - - $macro_to_call_back!(LiquidityPoolConstantProductParameters, $($context),*); - - $macro_to_call_back!(LiquidityPoolEntry, $($context),*); - - $macro_to_call_back!(LiquidityPoolEntryBody, $($context),*); - - $macro_to_call_back!(LiquidityPoolEntryConstantProduct, $($context),*); - - $macro_to_call_back!(ContractDataDurability, $($context),*); - - $macro_to_call_back!(ContractDataEntry, $($context),*); - - $macro_to_call_back!(ContractCodeCostInputs, $($context),*); - - $macro_to_call_back!(ContractCodeEntry, $($context),*); - - $macro_to_call_back!(ContractCodeEntryExt, $($context),*); - - $macro_to_call_back!(ContractCodeEntryV1, $($context),*); - - $macro_to_call_back!(TtlEntry, $($context),*); - - $macro_to_call_back!(LedgerEntryExtensionV1, $($context),*); - - $macro_to_call_back!(LedgerEntryExtensionV1Ext, $($context),*); - - $macro_to_call_back!(LedgerEntry, $($context),*); - - $macro_to_call_back!(LedgerEntryData, $($context),*); - - $macro_to_call_back!(LedgerEntryExt, $($context),*); - - $macro_to_call_back!(LedgerKey, $($context),*); - - $macro_to_call_back!(LedgerKeyAccount, $($context),*); - - $macro_to_call_back!(LedgerKeyTrustLine, $($context),*); - - $macro_to_call_back!(LedgerKeyOffer, $($context),*); - - $macro_to_call_back!(LedgerKeyData, $($context),*); - - $macro_to_call_back!(LedgerKeyClaimableBalance, $($context),*); - - $macro_to_call_back!(LedgerKeyLiquidityPool, $($context),*); - - $macro_to_call_back!(LedgerKeyContractData, $($context),*); - - $macro_to_call_back!(LedgerKeyContractCode, $($context),*); - - $macro_to_call_back!(LedgerKeyConfigSetting, $($context),*); - - $macro_to_call_back!(LedgerKeyTtl, $($context),*); - - $macro_to_call_back!(EnvelopeType, $($context),*); - - $macro_to_call_back!(UpgradeType, $($context),*); - - $macro_to_call_back!(StellarValueType, $($context),*); - - $macro_to_call_back!(LedgerCloseValueSignature, $($context),*); - - $macro_to_call_back!(StellarValue, $($context),*); - - $macro_to_call_back!(StellarValueExt, $($context),*); - - $macro_to_call_back!(LedgerHeaderFlags, $($context),*); - - $macro_to_call_back!(LedgerHeaderExtensionV1, $($context),*); - - $macro_to_call_back!(LedgerHeaderExtensionV1Ext, $($context),*); - - $macro_to_call_back!(LedgerHeader, $($context),*); - - $macro_to_call_back!(LedgerHeaderExt, $($context),*); - - $macro_to_call_back!(LedgerUpgradeType, $($context),*); - - $macro_to_call_back!(ConfigUpgradeSetKey, $($context),*); - - $macro_to_call_back!(LedgerUpgrade, $($context),*); - - $macro_to_call_back!(ConfigUpgradeSet, $($context),*); - - $macro_to_call_back!(BucketEntryType, $($context),*); - - $macro_to_call_back!(BucketMetadata, $($context),*); - - $macro_to_call_back!(BucketMetadataExt, $($context),*); - - $macro_to_call_back!(BucketEntry, $($context),*); - - $macro_to_call_back!(TxSetComponentType, $($context),*); - - $macro_to_call_back!(TxSetComponent, $($context),*); - - $macro_to_call_back!(TxSetComponentTxsMaybeDiscountedFee, $($context),*); - - $macro_to_call_back!(TransactionPhase, $($context),*); - - $macro_to_call_back!(TransactionSet, $($context),*); - - $macro_to_call_back!(TransactionSetV1, $($context),*); - - $macro_to_call_back!(GeneralizedTransactionSet, $($context),*); - - $macro_to_call_back!(TransactionResultPair, $($context),*); - - $macro_to_call_back!(TransactionResultSet, $($context),*); - - $macro_to_call_back!(TransactionHistoryEntry, $($context),*); - - $macro_to_call_back!(TransactionHistoryEntryExt, $($context),*); - - $macro_to_call_back!(TransactionHistoryResultEntry, $($context),*); - - $macro_to_call_back!(TransactionHistoryResultEntryExt, $($context),*); - - $macro_to_call_back!(LedgerHeaderHistoryEntry, $($context),*); - - $macro_to_call_back!(LedgerHeaderHistoryEntryExt, $($context),*); - - $macro_to_call_back!(LedgerScpMessages, $($context),*); - - $macro_to_call_back!(ScpHistoryEntryV0, $($context),*); - - $macro_to_call_back!(ScpHistoryEntry, $($context),*); - - $macro_to_call_back!(LedgerEntryChangeType, $($context),*); - - $macro_to_call_back!(LedgerEntryChange, $($context),*); - - $macro_to_call_back!(LedgerEntryChanges, $($context),*); - - $macro_to_call_back!(OperationMeta, $($context),*); - - $macro_to_call_back!(TransactionMetaV1, $($context),*); - - $macro_to_call_back!(TransactionMetaV2, $($context),*); - - $macro_to_call_back!(ContractEventType, $($context),*); - - $macro_to_call_back!(ContractEvent, $($context),*); - - $macro_to_call_back!(ContractEventBody, $($context),*); - - $macro_to_call_back!(ContractEventV0, $($context),*); - - $macro_to_call_back!(DiagnosticEvent, $($context),*); - - $macro_to_call_back!(SorobanTransactionMetaExtV1, $($context),*); - - $macro_to_call_back!(SorobanTransactionMetaExt, $($context),*); - - $macro_to_call_back!(SorobanTransactionMeta, $($context),*); - - $macro_to_call_back!(TransactionMetaV3, $($context),*); - - $macro_to_call_back!(InvokeHostFunctionSuccessPreImage, $($context),*); - - $macro_to_call_back!(TransactionMeta, $($context),*); - - $macro_to_call_back!(TransactionResultMeta, $($context),*); - - $macro_to_call_back!(UpgradeEntryMeta, $($context),*); - - $macro_to_call_back!(LedgerCloseMetaV0, $($context),*); - - $macro_to_call_back!(LedgerCloseMetaExtV1, $($context),*); - - $macro_to_call_back!(LedgerCloseMetaExt, $($context),*); - - $macro_to_call_back!(LedgerCloseMetaV1, $($context),*); - - $macro_to_call_back!(LedgerCloseMeta, $($context),*); - - $macro_to_call_back!(ErrorCode, $($context),*); - - $macro_to_call_back!(SError, $($context),*); - - $macro_to_call_back!(SendMore, $($context),*); - - $macro_to_call_back!(SendMoreExtended, $($context),*); - - $macro_to_call_back!(AuthCert, $($context),*); - - $macro_to_call_back!(Hello, $($context),*); - - $macro_to_call_back!(Auth, $($context),*); - - $macro_to_call_back!(IpAddrType, $($context),*); - - $macro_to_call_back!(PeerAddress, $($context),*); - - $macro_to_call_back!(PeerAddressIp, $($context),*); - - $macro_to_call_back!(MessageType, $($context),*); - - $macro_to_call_back!(DontHave, $($context),*); - - $macro_to_call_back!(SurveyMessageCommandType, $($context),*); - - $macro_to_call_back!(SurveyMessageResponseType, $($context),*); - - $macro_to_call_back!(SurveyRequestMessage, $($context),*); - - $macro_to_call_back!(SignedSurveyRequestMessage, $($context),*); - - $macro_to_call_back!(EncryptedBody, $($context),*); - - $macro_to_call_back!(SurveyResponseMessage, $($context),*); - - $macro_to_call_back!(SignedSurveyResponseMessage, $($context),*); - - $macro_to_call_back!(PeerStats, $($context),*); - - $macro_to_call_back!(PeerStatList, $($context),*); - - $macro_to_call_back!(TopologyResponseBodyV0, $($context),*); - - $macro_to_call_back!(TopologyResponseBodyV1, $($context),*); - - $macro_to_call_back!(SurveyResponseBody, $($context),*); - - $macro_to_call_back!(TxAdvertVector, $($context),*); - - $macro_to_call_back!(FloodAdvert, $($context),*); - - $macro_to_call_back!(TxDemandVector, $($context),*); - - $macro_to_call_back!(FloodDemand, $($context),*); - - $macro_to_call_back!(StellarMessage, $($context),*); - - $macro_to_call_back!(AuthenticatedMessage, $($context),*); - - $macro_to_call_back!(AuthenticatedMessageV0, $($context),*); - - $macro_to_call_back!(LiquidityPoolParameters, $($context),*); - - $macro_to_call_back!(MuxedAccount, $($context),*); - - $macro_to_call_back!(MuxedAccountMed25519, $($context),*); - - $macro_to_call_back!(DecoratedSignature, $($context),*); - - $macro_to_call_back!(OperationType, $($context),*); - - $macro_to_call_back!(CreateAccountOp, $($context),*); - - $macro_to_call_back!(PaymentOp, $($context),*); - - $macro_to_call_back!(PathPaymentStrictReceiveOp, $($context),*); - - $macro_to_call_back!(PathPaymentStrictSendOp, $($context),*); - - $macro_to_call_back!(ManageSellOfferOp, $($context),*); - - $macro_to_call_back!(ManageBuyOfferOp, $($context),*); - - $macro_to_call_back!(CreatePassiveSellOfferOp, $($context),*); - - $macro_to_call_back!(SetOptionsOp, $($context),*); - - $macro_to_call_back!(ChangeTrustAsset, $($context),*); - - $macro_to_call_back!(ChangeTrustOp, $($context),*); - - $macro_to_call_back!(AllowTrustOp, $($context),*); - - $macro_to_call_back!(ManageDataOp, $($context),*); - - $macro_to_call_back!(BumpSequenceOp, $($context),*); - - $macro_to_call_back!(CreateClaimableBalanceOp, $($context),*); - - $macro_to_call_back!(ClaimClaimableBalanceOp, $($context),*); - - $macro_to_call_back!(BeginSponsoringFutureReservesOp, $($context),*); - - $macro_to_call_back!(RevokeSponsorshipType, $($context),*); - - $macro_to_call_back!(RevokeSponsorshipOp, $($context),*); - - $macro_to_call_back!(RevokeSponsorshipOpSigner, $($context),*); - - $macro_to_call_back!(ClawbackOp, $($context),*); - - $macro_to_call_back!(ClawbackClaimableBalanceOp, $($context),*); - - $macro_to_call_back!(SetTrustLineFlagsOp, $($context),*); - - $macro_to_call_back!(LiquidityPoolDepositOp, $($context),*); - - $macro_to_call_back!(LiquidityPoolWithdrawOp, $($context),*); - - $macro_to_call_back!(HostFunctionType, $($context),*); - - $macro_to_call_back!(ContractIdPreimageType, $($context),*); - - $macro_to_call_back!(ContractIdPreimage, $($context),*); - - $macro_to_call_back!(ContractIdPreimageFromAddress, $($context),*); - - $macro_to_call_back!(CreateContractArgs, $($context),*); - - $macro_to_call_back!(InvokeContractArgs, $($context),*); - - $macro_to_call_back!(HostFunction, $($context),*); - - $macro_to_call_back!(SorobanAuthorizedFunctionType, $($context),*); - - $macro_to_call_back!(SorobanAuthorizedFunction, $($context),*); - - $macro_to_call_back!(SorobanAuthorizedInvocation, $($context),*); - - $macro_to_call_back!(SorobanAddressCredentials, $($context),*); - - $macro_to_call_back!(SorobanCredentialsType, $($context),*); - - $macro_to_call_back!(SorobanCredentials, $($context),*); - - $macro_to_call_back!(SorobanAuthorizationEntry, $($context),*); - - $macro_to_call_back!(InvokeHostFunctionOp, $($context),*); - - $macro_to_call_back!(ExtendFootprintTtlOp, $($context),*); - - $macro_to_call_back!(RestoreFootprintOp, $($context),*); - - $macro_to_call_back!(Operation, $($context),*); - - $macro_to_call_back!(OperationBody, $($context),*); - - $macro_to_call_back!(HashIdPreimage, $($context),*); - - $macro_to_call_back!(HashIdPreimageOperationId, $($context),*); - - $macro_to_call_back!(HashIdPreimageRevokeId, $($context),*); - - $macro_to_call_back!(HashIdPreimageContractId, $($context),*); - - $macro_to_call_back!(HashIdPreimageSorobanAuthorization, $($context),*); - - $macro_to_call_back!(MemoType, $($context),*); - - $macro_to_call_back!(Memo, $($context),*); - - $macro_to_call_back!(TimeBounds, $($context),*); - - $macro_to_call_back!(LedgerBounds, $($context),*); - - $macro_to_call_back!(PreconditionsV2, $($context),*); - - $macro_to_call_back!(PreconditionType, $($context),*); - - $macro_to_call_back!(Preconditions, $($context),*); - - $macro_to_call_back!(LedgerFootprint, $($context),*); - - $macro_to_call_back!(SorobanResources, $($context),*); - - $macro_to_call_back!(SorobanTransactionData, $($context),*); - - $macro_to_call_back!(TransactionV0, $($context),*); - - $macro_to_call_back!(TransactionV0Ext, $($context),*); - - $macro_to_call_back!(TransactionV0Envelope, $($context),*); - - $macro_to_call_back!(Transaction, $($context),*); - - $macro_to_call_back!(TransactionExt, $($context),*); - - $macro_to_call_back!(TransactionV1Envelope, $($context),*); - - $macro_to_call_back!(FeeBumpTransaction, $($context),*); - - $macro_to_call_back!(FeeBumpTransactionInnerTx, $($context),*); - - $macro_to_call_back!(FeeBumpTransactionExt, $($context),*); - - $macro_to_call_back!(FeeBumpTransactionEnvelope, $($context),*); - - $macro_to_call_back!(TransactionEnvelope, $($context),*); - - $macro_to_call_back!(TransactionSignaturePayload, $($context),*); - - $macro_to_call_back!(TransactionSignaturePayloadTaggedTransaction, $($context),*); - - $macro_to_call_back!(ClaimAtomType, $($context),*); - - $macro_to_call_back!(ClaimOfferAtomV0, $($context),*); - - $macro_to_call_back!(ClaimOfferAtom, $($context),*); - - $macro_to_call_back!(ClaimLiquidityAtom, $($context),*); - - $macro_to_call_back!(ClaimAtom, $($context),*); - - $macro_to_call_back!(CreateAccountResultCode, $($context),*); - - $macro_to_call_back!(CreateAccountResult, $($context),*); - - $macro_to_call_back!(PaymentResultCode, $($context),*); - - $macro_to_call_back!(PaymentResult, $($context),*); - - $macro_to_call_back!(PathPaymentStrictReceiveResultCode, $($context),*); - - $macro_to_call_back!(SimplePaymentResult, $($context),*); - - $macro_to_call_back!(PathPaymentStrictReceiveResult, $($context),*); - - $macro_to_call_back!(PathPaymentStrictReceiveResultSuccess, $($context),*); - - $macro_to_call_back!(PathPaymentStrictSendResultCode, $($context),*); - - $macro_to_call_back!(PathPaymentStrictSendResult, $($context),*); - - $macro_to_call_back!(PathPaymentStrictSendResultSuccess, $($context),*); - - $macro_to_call_back!(ManageSellOfferResultCode, $($context),*); - - $macro_to_call_back!(ManageOfferEffect, $($context),*); - - $macro_to_call_back!(ManageOfferSuccessResult, $($context),*); - - $macro_to_call_back!(ManageOfferSuccessResultOffer, $($context),*); - - $macro_to_call_back!(ManageSellOfferResult, $($context),*); - - $macro_to_call_back!(ManageBuyOfferResultCode, $($context),*); - - $macro_to_call_back!(ManageBuyOfferResult, $($context),*); - - $macro_to_call_back!(SetOptionsResultCode, $($context),*); - - $macro_to_call_back!(SetOptionsResult, $($context),*); - - $macro_to_call_back!(ChangeTrustResultCode, $($context),*); - - $macro_to_call_back!(ChangeTrustResult, $($context),*); - - $macro_to_call_back!(AllowTrustResultCode, $($context),*); - - $macro_to_call_back!(AllowTrustResult, $($context),*); - - $macro_to_call_back!(AccountMergeResultCode, $($context),*); - - $macro_to_call_back!(AccountMergeResult, $($context),*); - - $macro_to_call_back!(InflationResultCode, $($context),*); - - $macro_to_call_back!(InflationPayout, $($context),*); - - $macro_to_call_back!(InflationResult, $($context),*); - - $macro_to_call_back!(ManageDataResultCode, $($context),*); - - $macro_to_call_back!(ManageDataResult, $($context),*); - - $macro_to_call_back!(BumpSequenceResultCode, $($context),*); - - $macro_to_call_back!(BumpSequenceResult, $($context),*); - - $macro_to_call_back!(CreateClaimableBalanceResultCode, $($context),*); - - $macro_to_call_back!(CreateClaimableBalanceResult, $($context),*); - - $macro_to_call_back!(ClaimClaimableBalanceResultCode, $($context),*); - - $macro_to_call_back!(ClaimClaimableBalanceResult, $($context),*); - - $macro_to_call_back!(BeginSponsoringFutureReservesResultCode, $($context),*); - - $macro_to_call_back!(BeginSponsoringFutureReservesResult, $($context),*); - - $macro_to_call_back!(EndSponsoringFutureReservesResultCode, $($context),*); - - $macro_to_call_back!(EndSponsoringFutureReservesResult, $($context),*); - - $macro_to_call_back!(RevokeSponsorshipResultCode, $($context),*); - - $macro_to_call_back!(RevokeSponsorshipResult, $($context),*); - - $macro_to_call_back!(ClawbackResultCode, $($context),*); - - $macro_to_call_back!(ClawbackResult, $($context),*); - - $macro_to_call_back!(ClawbackClaimableBalanceResultCode, $($context),*); - - $macro_to_call_back!(ClawbackClaimableBalanceResult, $($context),*); - - $macro_to_call_back!(SetTrustLineFlagsResultCode, $($context),*); - - $macro_to_call_back!(SetTrustLineFlagsResult, $($context),*); - - $macro_to_call_back!(LiquidityPoolDepositResultCode, $($context),*); - - $macro_to_call_back!(LiquidityPoolDepositResult, $($context),*); - - $macro_to_call_back!(LiquidityPoolWithdrawResultCode, $($context),*); - - $macro_to_call_back!(LiquidityPoolWithdrawResult, $($context),*); - - $macro_to_call_back!(InvokeHostFunctionResultCode, $($context),*); - - $macro_to_call_back!(InvokeHostFunctionResult, $($context),*); - - $macro_to_call_back!(ExtendFootprintTtlResultCode, $($context),*); - - $macro_to_call_back!(ExtendFootprintTtlResult, $($context),*); - - $macro_to_call_back!(RestoreFootprintResultCode, $($context),*); - - $macro_to_call_back!(RestoreFootprintResult, $($context),*); - - $macro_to_call_back!(OperationResultCode, $($context),*); - - $macro_to_call_back!(OperationResult, $($context),*); - - $macro_to_call_back!(OperationResultTr, $($context),*); - - $macro_to_call_back!(TransactionResultCode, $($context),*); - - $macro_to_call_back!(InnerTransactionResult, $($context),*); - - $macro_to_call_back!(InnerTransactionResultResult, $($context),*); - - $macro_to_call_back!(InnerTransactionResultExt, $($context),*); - - $macro_to_call_back!(InnerTransactionResultPair, $($context),*); - - $macro_to_call_back!(TransactionResult, $($context),*); - - $macro_to_call_back!(TransactionResultResult, $($context),*); - - $macro_to_call_back!(TransactionResultExt, $($context),*); - - $macro_to_call_back!(Hash, $($context),*); - - $macro_to_call_back!(Uint256, $($context),*); - - $macro_to_call_back!(Uint32, $($context),*); - - $macro_to_call_back!(Int32, $($context),*); - - $macro_to_call_back!(Uint64, $($context),*); - - $macro_to_call_back!(Int64, $($context),*); - - $macro_to_call_back!(TimePoint, $($context),*); - - $macro_to_call_back!(Duration, $($context),*); - - $macro_to_call_back!(ExtensionPoint, $($context),*); - - $macro_to_call_back!(CryptoKeyType, $($context),*); - - $macro_to_call_back!(PublicKeyType, $($context),*); - - $macro_to_call_back!(SignerKeyType, $($context),*); - - $macro_to_call_back!(PublicKey, $($context),*); - - $macro_to_call_back!(SignerKey, $($context),*); - - $macro_to_call_back!(SignerKeyEd25519SignedPayload, $($context),*); - - $macro_to_call_back!(Signature, $($context),*); - - $macro_to_call_back!(SignatureHint, $($context),*); - - $macro_to_call_back!(NodeId, $($context),*); - - $macro_to_call_back!(AccountId, $($context),*); - - $macro_to_call_back!(Curve25519Secret, $($context),*); - - $macro_to_call_back!(Curve25519Public, $($context),*); - - $macro_to_call_back!(HmacSha256Key, $($context),*); - - $macro_to_call_back!(HmacSha256Mac, $($context),*); - - - }}; -} -pub use _call_macro_with_each_type_53647236d6ceadfee429747f7d6725f269c6917f9a37b47038496c410a3a8868 as call_macro_with_each_type; #[derive(Clone, Copy, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr( all(feature = "serde", feature = "alloc"), From 303d63f7bce23dac634b652861f3a80a19c833d7 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Thu, 16 May 2024 11:41:52 +1000 Subject: [PATCH 19/20] upd --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0ce56c22..04e91b9a 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ CARGO_HACK_ARGS=--feature-powerset --exclude-features default --group-features b CARGO_DOC_ARGS?=--open -XDRGEN_VERSION=6270074a5da9eafab1242c32a96656805d8134e4 +XDRGEN_VERSION=ac1653599b97b298e72c0186b5685bffa120b6aa # 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 From 5d5c1901681957efc583bd610f62df0c3382950a Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Thu, 16 May 2024 14:54:17 +1000 Subject: [PATCH 20/20] fix claimable balance id --- Makefile | 4 ++-- src/curr/generated.rs | 1 - src/curr/jsonschema.rs | 1 + src/next/generated.rs | 1 - src/next/jsonschema.rs | 1 + 5 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 04e91b9a..5caee634 100644 --- a/Makefile +++ b/Makefile @@ -8,8 +8,8 @@ XDRGEN_VERSION=ac1653599b97b298e72c0186b5685bffa120b6aa # 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 -XDRGEN_TYPES_CUSTOM_JSONSCHEMA_IMPL_NEXT=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12 +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 all: build test diff --git a/src/curr/generated.rs b/src/curr/generated.rs index 05673cb1..c4356f9f 100644 --- a/src/curr/generated.rs +++ b/src/curr/generated.rs @@ -14752,7 +14752,6 @@ impl WriteXdr for ClaimableBalanceIdType { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ClaimableBalanceId { ClaimableBalanceIdTypeV0(Hash), diff --git a/src/curr/jsonschema.rs b/src/curr/jsonschema.rs index ce23b940..b70c3035 100644 --- a/src/curr/jsonschema.rs +++ b/src/curr/jsonschema.rs @@ -26,3 +26,4 @@ impl_json_schema_string!(ScAddress); impl_json_schema_string!(AssetCode); impl_json_schema_string!(AssetCode4); impl_json_schema_string!(AssetCode12); +impl_json_schema_string!(ClaimableBalanceId); diff --git a/src/next/generated.rs b/src/next/generated.rs index 35e6129a..2a6cdd3b 100644 --- a/src/next/generated.rs +++ b/src/next/generated.rs @@ -14752,7 +14752,6 @@ impl WriteXdr for ClaimableBalanceIdType { all(feature = "serde", feature = "alloc"), derive(serde_with::SerializeDisplay, serde_with::DeserializeFromStr) )] -#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[allow(clippy::large_enum_variant)] pub enum ClaimableBalanceId { ClaimableBalanceIdTypeV0(Hash), diff --git a/src/next/jsonschema.rs b/src/next/jsonschema.rs index ce23b940..b70c3035 100644 --- a/src/next/jsonschema.rs +++ b/src/next/jsonschema.rs @@ -26,3 +26,4 @@ impl_json_schema_string!(ScAddress); impl_json_schema_string!(AssetCode); impl_json_schema_string!(AssetCode4); impl_json_schema_string!(AssetCode12); +impl_json_schema_string!(ClaimableBalanceId);