diff --git a/Cargo.toml b/Cargo.toml index ca96a4b0..b3e4cab0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,6 +46,7 @@ alloc = ["dep:hex", "dep:stellar-strkey", "escape-bytes/alloc", "dep:ethnum"] # Features from the XDR test_feature = [] +cap_0071 = [] # Features dependent on optional dependencies. base64 = ["std", "dep:base64"] diff --git a/src/generated.rs b/src/generated.rs index 4a6708ec..c4ce5973 100644 --- a/src/generated.rs +++ b/src/generated.rs @@ -23,55 +23,55 @@ pub const XDR_FILES_SHA256: [(&str, &str); 13] = [ ( "xdr/Stellar-SCP.x", - "6aed428fb6c2d000f5bc1eef0ba685d6108f3faa96208ffa588c0e2990813939", + "41ff1f6a3de9fcb07372953e73a9e49071e278081e411a62e69683ad3591a218", ), ( "xdr/Stellar-contract-config-setting.x", - "a034a3eb4d8b94f5c4c573fe14a1afc548aa316e1e897aa70e5a1688aada3c77", + "56eb21162887b96ec423cab36e924ab085d52f885b7d41bcd3cd040e8dfe616d", ), ( "xdr/Stellar-contract-env-meta.x", - "75a271414d852096fea3283c63b7f2a702f2905f78fc28eb60ec7d7bd366a780", + "e1f0595afd6249879ea4898f0ccb2293025c21db3a6590178ba129bc1e99d8c9", ), ( "xdr/Stellar-contract-meta.x", - "f01532c11ca044e19d9f9f16fe373e9af64835da473be556b9a807ee3319ae0d", + "5f2ad607144ef4dcc44c6d4fbf3c10cc07d716e707281a8789fb958c83904e16", ), ( "xdr/Stellar-contract-spec.x", - "7d99679155f6ce029f4f2bd8e1bf09524ef2f3e4ca8973265085cfcfdbdae987", + "f0655f82e0a28a79e067c02f427cc709db1e4323a50c9b85f730f812b9612dbd", ), ( "xdr/Stellar-contract.x", - "dce61df115c93fef5bb352beac1b504a518cb11dcb8ee029b1bb1b5f8fe52982", + "5d8063e6ddc09be5c22569f1668720b5c705505a70e9224f00748fa58aab2fc5", ), ( "xdr/Stellar-exporter.x", - "a00c83d02e8c8382e06f79a191f1fb5abd097a4bbcab8481c67467e3270e0529", + "d36ec815cceb534e3f565448aa79ba8dd7f6be6485de050dfb62613eb05b11a4", ), ( "xdr/Stellar-internal.x", - "227835866c1b2122d1eaf28839ba85ea7289d1cb681dda4ca619c2da3d71fe00", + "81f9804d6a5f88afdb62e8d00506c348e45c7b70012d781d14ef22ddc7414833", ), ( "xdr/Stellar-ledger-entries.x", - "5157cad76b008b3606fe5bc2cfe87596827d8e02d16cbec3cedc297bb571aa54", + "f3407720eb6348b141cf1d03993c9ef2a8896521fc711bdc212bf32ba92e63c9", ), ( "xdr/Stellar-ledger.x", - "cf936606885dd265082e553aa433c2cf47b720b6d58839b154cf71096b885d1e", + "93cdd4dd597d9f0b271762c2f3c81be8562e2004f4f019f539ca7d7e92167099", ), ( "xdr/Stellar-overlay.x", - "8c9b9c13c86fa4672f03d741705b41e7221be0fc48e1ea6eeb1ba07d31ec0723", + "ad2ea6b317d8b0e72bf8b08b6a4b11dc81352afb7bf6409dc4c84e48dd76b092", ), ( "xdr/Stellar-transaction.x", - "30d03669fb29ca48fdda1c84258473fe6d798f3b881c0224b34df1a1f9e21e80", + "52815125acb35d8aa7bfe979df1f6028a81c25cef13d2f7645b23b299792bede", ), ( "xdr/Stellar-types.x", - "f3a360cbb07f24637ead188e885a0b4a47b903ca475f9798be5fa12453075e28", + "1bf41da09307489c04c454d9081a3ddcd52d04ed9af173abeb308fe4907dc590", ), ]; @@ -5140,6 +5140,12 @@ pub use soroban_authorized_invocation::*; mod soroban_address_credentials; #[allow(unused_imports)] pub use soroban_address_credentials::*; +mod soroban_delegate_signature; +#[allow(unused_imports)] +pub use soroban_delegate_signature::*; +mod soroban_address_credentials_with_delegates; +#[allow(unused_imports)] +pub use soroban_address_credentials_with_delegates::*; mod soroban_credentials_type; #[allow(unused_imports)] pub use soroban_credentials_type::*; @@ -5179,6 +5185,9 @@ pub use hash_id_preimage_contract_id::*; mod hash_id_preimage_soroban_authorization; #[allow(unused_imports)] pub use hash_id_preimage_soroban_authorization::*; +mod hash_id_preimage_soroban_authorization_with_address; +#[allow(unused_imports)] +pub use hash_id_preimage_soroban_authorization_with_address::*; mod hash_id_preimage; #[allow(unused_imports)] pub use hash_id_preimage::*; @@ -5907,6 +5916,10 @@ pub enum TypeVariant { SorobanAuthorizedFunction, SorobanAuthorizedInvocation, SorobanAddressCredentials, + #[cfg(feature = "cap_0071")] + SorobanDelegateSignature, + #[cfg(feature = "cap_0071")] + SorobanAddressCredentialsWithDelegates, SorobanCredentialsType, SorobanCredentials, SorobanAuthorizationEntry, @@ -5921,6 +5934,8 @@ pub enum TypeVariant { HashIdPreimageRevokeId, HashIdPreimageContractId, HashIdPreimageSorobanAuthorization, + #[cfg(feature = "cap_0071")] + HashIdPreimageSorobanAuthorizationWithAddress, MemoType, Memo, TimeBounds, @@ -6381,6 +6396,10 @@ impl TypeVariant { TypeVariant::SorobanAuthorizedFunction, TypeVariant::SorobanAuthorizedInvocation, TypeVariant::SorobanAddressCredentials, + #[cfg(feature = "cap_0071")] + TypeVariant::SorobanDelegateSignature, + #[cfg(feature = "cap_0071")] + TypeVariant::SorobanAddressCredentialsWithDelegates, TypeVariant::SorobanCredentialsType, TypeVariant::SorobanCredentials, TypeVariant::SorobanAuthorizationEntry, @@ -6395,6 +6414,8 @@ impl TypeVariant { TypeVariant::HashIdPreimageRevokeId, TypeVariant::HashIdPreimageContractId, TypeVariant::HashIdPreimageSorobanAuthorization, + #[cfg(feature = "cap_0071")] + TypeVariant::HashIdPreimageSorobanAuthorizationWithAddress, TypeVariant::MemoType, TypeVariant::Memo, TypeVariant::TimeBounds, @@ -6862,6 +6883,10 @@ impl TypeVariant { "SorobanAuthorizedFunction", "SorobanAuthorizedInvocation", "SorobanAddressCredentials", + #[cfg(feature = "cap_0071")] + "SorobanDelegateSignature", + #[cfg(feature = "cap_0071")] + "SorobanAddressCredentialsWithDelegates", "SorobanCredentialsType", "SorobanCredentials", "SorobanAuthorizationEntry", @@ -6876,6 +6901,8 @@ impl TypeVariant { "HashIdPreimageRevokeId", "HashIdPreimageContractId", "HashIdPreimageSorobanAuthorization", + #[cfg(feature = "cap_0071")] + "HashIdPreimageSorobanAuthorizationWithAddress", "MemoType", "Memo", "TimeBounds", @@ -7357,6 +7384,12 @@ impl TypeVariant { Self::SorobanAuthorizedFunction => "SorobanAuthorizedFunction", Self::SorobanAuthorizedInvocation => "SorobanAuthorizedInvocation", Self::SorobanAddressCredentials => "SorobanAddressCredentials", + #[cfg(feature = "cap_0071")] + Self::SorobanDelegateSignature => "SorobanDelegateSignature", + #[cfg(feature = "cap_0071")] + Self::SorobanAddressCredentialsWithDelegates => { + "SorobanAddressCredentialsWithDelegates" + } Self::SorobanCredentialsType => "SorobanCredentialsType", Self::SorobanCredentials => "SorobanCredentials", Self::SorobanAuthorizationEntry => "SorobanAuthorizationEntry", @@ -7371,6 +7404,10 @@ impl TypeVariant { Self::HashIdPreimageRevokeId => "HashIdPreimageRevokeId", Self::HashIdPreimageContractId => "HashIdPreimageContractId", Self::HashIdPreimageSorobanAuthorization => "HashIdPreimageSorobanAuthorization", + #[cfg(feature = "cap_0071")] + Self::HashIdPreimageSorobanAuthorizationWithAddress => { + "HashIdPreimageSorobanAuthorizationWithAddress" + } Self::MemoType => "MemoType", Self::Memo => "Memo", Self::TimeBounds => "TimeBounds", @@ -7969,6 +8006,14 @@ impl TypeVariant { Self::SorobanAddressCredentials => { gen.into_root_schema_for::() } + #[cfg(feature = "cap_0071")] + Self::SorobanDelegateSignature => { + gen.into_root_schema_for::() + } + #[cfg(feature = "cap_0071")] + Self::SorobanAddressCredentialsWithDelegates => { + gen.into_root_schema_for::() + } Self::SorobanCredentialsType => gen.into_root_schema_for::(), Self::SorobanCredentials => gen.into_root_schema_for::(), Self::SorobanAuthorizationEntry => { @@ -7993,6 +8038,10 @@ impl TypeVariant { Self::HashIdPreimageSorobanAuthorization => { gen.into_root_schema_for::() } + #[cfg(feature = "cap_0071")] + Self::HashIdPreimageSorobanAuthorizationWithAddress => { + 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::(), @@ -8575,6 +8624,12 @@ impl core::str::FromStr for TypeVariant { "SorobanAuthorizedFunction" => Ok(Self::SorobanAuthorizedFunction), "SorobanAuthorizedInvocation" => Ok(Self::SorobanAuthorizedInvocation), "SorobanAddressCredentials" => Ok(Self::SorobanAddressCredentials), + #[cfg(feature = "cap_0071")] + "SorobanDelegateSignature" => Ok(Self::SorobanDelegateSignature), + #[cfg(feature = "cap_0071")] + "SorobanAddressCredentialsWithDelegates" => { + Ok(Self::SorobanAddressCredentialsWithDelegates) + } "SorobanCredentialsType" => Ok(Self::SorobanCredentialsType), "SorobanCredentials" => Ok(Self::SorobanCredentials), "SorobanAuthorizationEntry" => Ok(Self::SorobanAuthorizationEntry), @@ -8589,6 +8644,10 @@ impl core::str::FromStr for TypeVariant { "HashIdPreimageRevokeId" => Ok(Self::HashIdPreimageRevokeId), "HashIdPreimageContractId" => Ok(Self::HashIdPreimageContractId), "HashIdPreimageSorobanAuthorization" => Ok(Self::HashIdPreimageSorobanAuthorization), + #[cfg(feature = "cap_0071")] + "HashIdPreimageSorobanAuthorizationWithAddress" => { + Ok(Self::HashIdPreimageSorobanAuthorizationWithAddress) + } "MemoType" => Ok(Self::MemoType), "Memo" => Ok(Self::Memo), "TimeBounds" => Ok(Self::TimeBounds), @@ -9067,6 +9126,10 @@ pub enum Type { SorobanAuthorizedFunction(Box), SorobanAuthorizedInvocation(Box), SorobanAddressCredentials(Box), + #[cfg(feature = "cap_0071")] + SorobanDelegateSignature(Box), + #[cfg(feature = "cap_0071")] + SorobanAddressCredentialsWithDelegates(Box), SorobanCredentialsType(Box), SorobanCredentials(Box), SorobanAuthorizationEntry(Box), @@ -9081,6 +9144,10 @@ pub enum Type { HashIdPreimageRevokeId(Box), HashIdPreimageContractId(Box), HashIdPreimageSorobanAuthorization(Box), + #[cfg(feature = "cap_0071")] + HashIdPreimageSorobanAuthorizationWithAddress( + Box, + ), MemoType(Box), Memo(Box), TimeBounds(Box), @@ -9541,6 +9608,10 @@ impl Type { TypeVariant::SorobanAuthorizedFunction, TypeVariant::SorobanAuthorizedInvocation, TypeVariant::SorobanAddressCredentials, + #[cfg(feature = "cap_0071")] + TypeVariant::SorobanDelegateSignature, + #[cfg(feature = "cap_0071")] + TypeVariant::SorobanAddressCredentialsWithDelegates, TypeVariant::SorobanCredentialsType, TypeVariant::SorobanCredentials, TypeVariant::SorobanAuthorizationEntry, @@ -9555,6 +9626,8 @@ impl Type { TypeVariant::HashIdPreimageRevokeId, TypeVariant::HashIdPreimageContractId, TypeVariant::HashIdPreimageSorobanAuthorization, + #[cfg(feature = "cap_0071")] + TypeVariant::HashIdPreimageSorobanAuthorizationWithAddress, TypeVariant::MemoType, TypeVariant::Memo, TypeVariant::TimeBounds, @@ -10022,6 +10095,10 @@ impl Type { "SorobanAuthorizedFunction", "SorobanAuthorizedInvocation", "SorobanAddressCredentials", + #[cfg(feature = "cap_0071")] + "SorobanDelegateSignature", + #[cfg(feature = "cap_0071")] + "SorobanAddressCredentialsWithDelegates", "SorobanCredentialsType", "SorobanCredentials", "SorobanAuthorizationEntry", @@ -10036,6 +10113,8 @@ impl Type { "HashIdPreimageRevokeId", "HashIdPreimageContractId", "HashIdPreimageSorobanAuthorization", + #[cfg(feature = "cap_0071")] + "HashIdPreimageSorobanAuthorizationWithAddress", "MemoType", "Memo", "TimeBounds", @@ -11583,6 +11662,18 @@ impl Type { SorobanAddressCredentials::read_xdr(r)?, ))) }), + #[cfg(feature = "cap_0071")] + TypeVariant::SorobanDelegateSignature => r.with_limited_depth(|r| { + Ok(Self::SorobanDelegateSignature(Box::new( + SorobanDelegateSignature::read_xdr(r)?, + ))) + }), + #[cfg(feature = "cap_0071")] + TypeVariant::SorobanAddressCredentialsWithDelegates => r.with_limited_depth(|r| { + Ok(Self::SorobanAddressCredentialsWithDelegates(Box::new( + SorobanAddressCredentialsWithDelegates::read_xdr(r)?, + ))) + }), TypeVariant::SorobanCredentialsType => r.with_limited_depth(|r| { Ok(Self::SorobanCredentialsType(Box::new( SorobanCredentialsType::read_xdr(r)?, @@ -11647,6 +11738,14 @@ impl Type { HashIdPreimageSorobanAuthorization::read_xdr(r)?, ))) }), + #[cfg(feature = "cap_0071")] + TypeVariant::HashIdPreimageSorobanAuthorizationWithAddress => { + r.with_limited_depth(|r| { + Ok(Self::HashIdPreimageSorobanAuthorizationWithAddress( + Box::new(HashIdPreimageSorobanAuthorizationWithAddress::read_xdr(r)?), + )) + }) + } TypeVariant::MemoType => { r.with_limited_depth(|r| Ok(Self::MemoType(Box::new(MemoType::read_xdr(r)?)))) } @@ -13664,6 +13763,19 @@ impl Type { ReadXdrIter::<_, SorobanAddressCredentials>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::SorobanAddressCredentials(Box::new(t)))), ), + #[cfg(feature = "cap_0071")] + TypeVariant::SorobanDelegateSignature => Box::new( + ReadXdrIter::<_, SorobanDelegateSignature>::new(&mut r.inner, r.limits.clone()) + .map(|r| r.map(|t| Self::SorobanDelegateSignature(Box::new(t)))), + ), + #[cfg(feature = "cap_0071")] + TypeVariant::SorobanAddressCredentialsWithDelegates => Box::new( + ReadXdrIter::<_, SorobanAddressCredentialsWithDelegates>::new( + &mut r.inner, + r.limits.clone(), + ) + .map(|r| r.map(|t| Self::SorobanAddressCredentialsWithDelegates(Box::new(t)))), + ), TypeVariant::SorobanCredentialsType => Box::new( ReadXdrIter::<_, SorobanCredentialsType>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::SorobanCredentialsType(Box::new(t)))), @@ -13723,6 +13835,16 @@ impl Type { ) .map(|r| r.map(|t| Self::HashIdPreimageSorobanAuthorization(Box::new(t)))), ), + #[cfg(feature = "cap_0071")] + TypeVariant::HashIdPreimageSorobanAuthorizationWithAddress => Box::new( + ReadXdrIter::<_, HashIdPreimageSorobanAuthorizationWithAddress>::new( + &mut r.inner, + r.limits.clone(), + ) + .map(|r| { + r.map(|t| Self::HashIdPreimageSorobanAuthorizationWithAddress(Box::new(t))) + }), + ), TypeVariant::MemoType => Box::new( ReadXdrIter::<_, MemoType>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::MemoType(Box::new(t)))), @@ -15881,6 +16003,22 @@ impl Type { ) .map(|r| r.map(|t| Self::SorobanAddressCredentials(Box::new(t.0)))), ), + #[cfg(feature = "cap_0071")] + TypeVariant::SorobanDelegateSignature => Box::new( + ReadXdrIter::<_, Frame>::new( + &mut r.inner, + r.limits.clone(), + ) + .map(|r| r.map(|t| Self::SorobanDelegateSignature(Box::new(t.0)))), + ), + #[cfg(feature = "cap_0071")] + TypeVariant::SorobanAddressCredentialsWithDelegates => Box::new( + ReadXdrIter::<_, Frame>::new( + &mut r.inner, + r.limits.clone(), + ) + .map(|r| r.map(|t| Self::SorobanAddressCredentialsWithDelegates(Box::new(t.0)))), + ), TypeVariant::SorobanCredentialsType => Box::new( ReadXdrIter::<_, Frame>::new( &mut r.inner, @@ -15958,6 +16096,16 @@ impl Type { ) .map(|r| r.map(|t| Self::HashIdPreimageSorobanAuthorization(Box::new(t.0)))), ), + #[cfg(feature = "cap_0071")] + TypeVariant::HashIdPreimageSorobanAuthorizationWithAddress => Box::new( + ReadXdrIter::<_, Frame>::new( + &mut r.inner, + r.limits.clone(), + ) + .map(|r| { + r.map(|t| Self::HashIdPreimageSorobanAuthorizationWithAddress(Box::new(t.0))) + }), + ), TypeVariant::MemoType => Box::new( ReadXdrIter::<_, Frame>::new(&mut r.inner, r.limits.clone()) .map(|r| r.map(|t| Self::MemoType(Box::new(t.0)))), @@ -17965,6 +18113,19 @@ impl Type { ReadXdrIter::<_, SorobanAddressCredentials>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::SorobanAddressCredentials(Box::new(t)))), ), + #[cfg(feature = "cap_0071")] + TypeVariant::SorobanDelegateSignature => Box::new( + ReadXdrIter::<_, SorobanDelegateSignature>::new(dec, r.limits.clone()) + .map(|r| r.map(|t| Self::SorobanDelegateSignature(Box::new(t)))), + ), + #[cfg(feature = "cap_0071")] + TypeVariant::SorobanAddressCredentialsWithDelegates => Box::new( + ReadXdrIter::<_, SorobanAddressCredentialsWithDelegates>::new( + dec, + r.limits.clone(), + ) + .map(|r| r.map(|t| Self::SorobanAddressCredentialsWithDelegates(Box::new(t)))), + ), TypeVariant::SorobanCredentialsType => Box::new( ReadXdrIter::<_, SorobanCredentialsType>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::SorobanCredentialsType(Box::new(t)))), @@ -18021,6 +18182,16 @@ impl Type { ReadXdrIter::<_, HashIdPreimageSorobanAuthorization>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::HashIdPreimageSorobanAuthorization(Box::new(t)))), ), + #[cfg(feature = "cap_0071")] + TypeVariant::HashIdPreimageSorobanAuthorizationWithAddress => Box::new( + ReadXdrIter::<_, HashIdPreimageSorobanAuthorizationWithAddress>::new( + dec, + r.limits.clone(), + ) + .map(|r| { + r.map(|t| Self::HashIdPreimageSorobanAuthorizationWithAddress(Box::new(t))) + }), + ), TypeVariant::MemoType => Box::new( ReadXdrIter::<_, MemoType>::new(dec, r.limits.clone()) .map(|r| r.map(|t| Self::MemoType(Box::new(t)))), @@ -19481,6 +19652,14 @@ impl Type { TypeVariant::SorobanAddressCredentials => Ok(Self::SorobanAddressCredentials( Box::new(serde_json::from_reader(r)?), )), + #[cfg(feature = "cap_0071")] + TypeVariant::SorobanDelegateSignature => Ok(Self::SorobanDelegateSignature(Box::new( + serde_json::from_reader(r)?, + ))), + #[cfg(feature = "cap_0071")] + TypeVariant::SorobanAddressCredentialsWithDelegates => Ok( + Self::SorobanAddressCredentialsWithDelegates(Box::new(serde_json::from_reader(r)?)), + ), TypeVariant::SorobanCredentialsType => Ok(Self::SorobanCredentialsType(Box::new( serde_json::from_reader(r)?, ))), @@ -19521,6 +19700,12 @@ impl Type { TypeVariant::HashIdPreimageSorobanAuthorization => Ok( Self::HashIdPreimageSorobanAuthorization(Box::new(serde_json::from_reader(r)?)), ), + #[cfg(feature = "cap_0071")] + TypeVariant::HashIdPreimageSorobanAuthorizationWithAddress => { + Ok(Self::HashIdPreimageSorobanAuthorizationWithAddress( + Box::new(serde_json::from_reader(r)?), + )) + } TypeVariant::MemoType => Ok(Self::MemoType(Box::new(serde_json::from_reader(r)?))), TypeVariant::Memo => Ok(Self::Memo(Box::new(serde_json::from_reader(r)?))), TypeVariant::TimeBounds => Ok(Self::TimeBounds(Box::new(serde_json::from_reader(r)?))), @@ -20911,6 +21096,16 @@ impl Type { TypeVariant::SorobanAddressCredentials => Ok(Self::SorobanAddressCredentials( Box::new(serde::de::Deserialize::deserialize(r)?), )), + #[cfg(feature = "cap_0071")] + TypeVariant::SorobanDelegateSignature => Ok(Self::SorobanDelegateSignature(Box::new( + serde::de::Deserialize::deserialize(r)?, + ))), + #[cfg(feature = "cap_0071")] + TypeVariant::SorobanAddressCredentialsWithDelegates => { + Ok(Self::SorobanAddressCredentialsWithDelegates(Box::new( + serde::de::Deserialize::deserialize(r)?, + ))) + } TypeVariant::SorobanCredentialsType => Ok(Self::SorobanCredentialsType(Box::new( serde::de::Deserialize::deserialize(r)?, ))), @@ -20955,6 +21150,12 @@ impl Type { serde::de::Deserialize::deserialize(r)?, ))) } + #[cfg(feature = "cap_0071")] + TypeVariant::HashIdPreimageSorobanAuthorizationWithAddress => { + Ok(Self::HashIdPreimageSorobanAuthorizationWithAddress( + Box::new(serde::de::Deserialize::deserialize(r)?), + )) + } TypeVariant::MemoType => Ok(Self::MemoType(Box::new( serde::de::Deserialize::deserialize(r)?, ))), @@ -22286,6 +22487,16 @@ impl Type { TypeVariant::SorobanAddressCredentials => Ok(Self::SorobanAddressCredentials( Box::new(SorobanAddressCredentials::arbitrary(u)?), )), + #[cfg(feature = "cap_0071")] + TypeVariant::SorobanDelegateSignature => Ok(Self::SorobanDelegateSignature(Box::new( + SorobanDelegateSignature::arbitrary(u)?, + ))), + #[cfg(feature = "cap_0071")] + TypeVariant::SorobanAddressCredentialsWithDelegates => { + Ok(Self::SorobanAddressCredentialsWithDelegates(Box::new( + SorobanAddressCredentialsWithDelegates::arbitrary(u)?, + ))) + } TypeVariant::SorobanCredentialsType => Ok(Self::SorobanCredentialsType(Box::new( SorobanCredentialsType::arbitrary(u)?, ))), @@ -22328,6 +22539,12 @@ impl Type { HashIdPreimageSorobanAuthorization::arbitrary(u)?, ))) } + #[cfg(feature = "cap_0071")] + TypeVariant::HashIdPreimageSorobanAuthorizationWithAddress => { + Ok(Self::HashIdPreimageSorobanAuthorizationWithAddress( + Box::new(HashIdPreimageSorobanAuthorizationWithAddress::arbitrary(u)?), + )) + } TypeVariant::MemoType => Ok(Self::MemoType(Box::new(MemoType::arbitrary(u)?))), TypeVariant::Memo => Ok(Self::Memo(Box::new(Memo::arbitrary(u)?))), TypeVariant::TimeBounds => Ok(Self::TimeBounds(Box::new(TimeBounds::arbitrary(u)?))), @@ -23150,6 +23367,12 @@ impl Type { TypeVariant::SorobanAddressCredentials => { Self::SorobanAddressCredentials(Box::default()) } + #[cfg(feature = "cap_0071")] + TypeVariant::SorobanDelegateSignature => Self::SorobanDelegateSignature(Box::default()), + #[cfg(feature = "cap_0071")] + TypeVariant::SorobanAddressCredentialsWithDelegates => { + Self::SorobanAddressCredentialsWithDelegates(Box::default()) + } TypeVariant::SorobanCredentialsType => Self::SorobanCredentialsType(Box::default()), TypeVariant::SorobanCredentials => Self::SorobanCredentials(Box::default()), TypeVariant::SorobanAuthorizationEntry => { @@ -23172,6 +23395,10 @@ impl Type { TypeVariant::HashIdPreimageSorobanAuthorization => { Self::HashIdPreimageSorobanAuthorization(Box::default()) } + #[cfg(feature = "cap_0071")] + TypeVariant::HashIdPreimageSorobanAuthorizationWithAddress => { + Self::HashIdPreimageSorobanAuthorizationWithAddress(Box::default()) + } TypeVariant::MemoType => Self::MemoType(Box::default()), TypeVariant::Memo => Self::Memo(Box::default()), TypeVariant::TimeBounds => Self::TimeBounds(Box::default()), @@ -23711,6 +23938,10 @@ impl Type { Self::SorobanAuthorizedFunction(ref v) => v.as_ref(), Self::SorobanAuthorizedInvocation(ref v) => v.as_ref(), Self::SorobanAddressCredentials(ref v) => v.as_ref(), + #[cfg(feature = "cap_0071")] + Self::SorobanDelegateSignature(ref v) => v.as_ref(), + #[cfg(feature = "cap_0071")] + Self::SorobanAddressCredentialsWithDelegates(ref v) => v.as_ref(), Self::SorobanCredentialsType(ref v) => v.as_ref(), Self::SorobanCredentials(ref v) => v.as_ref(), Self::SorobanAuthorizationEntry(ref v) => v.as_ref(), @@ -23725,6 +23956,8 @@ impl Type { Self::HashIdPreimageRevokeId(ref v) => v.as_ref(), Self::HashIdPreimageContractId(ref v) => v.as_ref(), Self::HashIdPreimageSorobanAuthorization(ref v) => v.as_ref(), + #[cfg(feature = "cap_0071")] + Self::HashIdPreimageSorobanAuthorizationWithAddress(ref v) => v.as_ref(), Self::MemoType(ref v) => v.as_ref(), Self::Memo(ref v) => v.as_ref(), Self::TimeBounds(ref v) => v.as_ref(), @@ -24206,6 +24439,12 @@ impl Type { Self::SorobanAuthorizedFunction(_) => "SorobanAuthorizedFunction", Self::SorobanAuthorizedInvocation(_) => "SorobanAuthorizedInvocation", Self::SorobanAddressCredentials(_) => "SorobanAddressCredentials", + #[cfg(feature = "cap_0071")] + Self::SorobanDelegateSignature(_) => "SorobanDelegateSignature", + #[cfg(feature = "cap_0071")] + Self::SorobanAddressCredentialsWithDelegates(_) => { + "SorobanAddressCredentialsWithDelegates" + } Self::SorobanCredentialsType(_) => "SorobanCredentialsType", Self::SorobanCredentials(_) => "SorobanCredentials", Self::SorobanAuthorizationEntry(_) => "SorobanAuthorizationEntry", @@ -24220,6 +24459,10 @@ impl Type { Self::HashIdPreimageRevokeId(_) => "HashIdPreimageRevokeId", Self::HashIdPreimageContractId(_) => "HashIdPreimageContractId", Self::HashIdPreimageSorobanAuthorization(_) => "HashIdPreimageSorobanAuthorization", + #[cfg(feature = "cap_0071")] + Self::HashIdPreimageSorobanAuthorizationWithAddress(_) => { + "HashIdPreimageSorobanAuthorizationWithAddress" + } Self::MemoType(_) => "MemoType", Self::Memo(_) => "Memo", Self::TimeBounds(_) => "TimeBounds", @@ -24739,6 +24982,12 @@ impl Type { Self::SorobanAuthorizedFunction(_) => TypeVariant::SorobanAuthorizedFunction, Self::SorobanAuthorizedInvocation(_) => TypeVariant::SorobanAuthorizedInvocation, Self::SorobanAddressCredentials(_) => TypeVariant::SorobanAddressCredentials, + #[cfg(feature = "cap_0071")] + Self::SorobanDelegateSignature(_) => TypeVariant::SorobanDelegateSignature, + #[cfg(feature = "cap_0071")] + Self::SorobanAddressCredentialsWithDelegates(_) => { + TypeVariant::SorobanAddressCredentialsWithDelegates + } Self::SorobanCredentialsType(_) => TypeVariant::SorobanCredentialsType, Self::SorobanCredentials(_) => TypeVariant::SorobanCredentials, Self::SorobanAuthorizationEntry(_) => TypeVariant::SorobanAuthorizationEntry, @@ -24755,6 +25004,10 @@ impl Type { Self::HashIdPreimageSorobanAuthorization(_) => { TypeVariant::HashIdPreimageSorobanAuthorization } + #[cfg(feature = "cap_0071")] + Self::HashIdPreimageSorobanAuthorizationWithAddress(_) => { + TypeVariant::HashIdPreimageSorobanAuthorizationWithAddress + } Self::MemoType(_) => TypeVariant::MemoType, Self::Memo(_) => TypeVariant::Memo, Self::TimeBounds(_) => TypeVariant::TimeBounds, @@ -25259,6 +25512,10 @@ impl WriteXdr for Type { Self::SorobanAuthorizedFunction(v) => v.write_xdr(w), Self::SorobanAuthorizedInvocation(v) => v.write_xdr(w), Self::SorobanAddressCredentials(v) => v.write_xdr(w), + #[cfg(feature = "cap_0071")] + Self::SorobanDelegateSignature(v) => v.write_xdr(w), + #[cfg(feature = "cap_0071")] + Self::SorobanAddressCredentialsWithDelegates(v) => v.write_xdr(w), Self::SorobanCredentialsType(v) => v.write_xdr(w), Self::SorobanCredentials(v) => v.write_xdr(w), Self::SorobanAuthorizationEntry(v) => v.write_xdr(w), @@ -25273,6 +25530,8 @@ impl WriteXdr for Type { Self::HashIdPreimageRevokeId(v) => v.write_xdr(w), Self::HashIdPreimageContractId(v) => v.write_xdr(w), Self::HashIdPreimageSorobanAuthorization(v) => v.write_xdr(w), + #[cfg(feature = "cap_0071")] + Self::HashIdPreimageSorobanAuthorizationWithAddress(v) => v.write_xdr(w), Self::MemoType(v) => v.write_xdr(w), Self::Memo(v) => v.write_xdr(w), Self::TimeBounds(v) => v.write_xdr(w), diff --git a/src/generated/envelope_type.rs b/src/generated/envelope_type.rs index fde5108d..164429d1 100644 --- a/src/generated/envelope_type.rs +++ b/src/generated/envelope_type.rs @@ -16,6 +16,10 @@ use super::*; /// ENVELOPE_TYPE_POOL_REVOKE_OP_ID = 7, /// ENVELOPE_TYPE_CONTRACT_ID = 8, /// ENVELOPE_TYPE_SOROBAN_AUTHORIZATION = 9 +/// #ifdef CAP_0071 +/// , +/// ENVELOPE_TYPE_SOROBAN_AUTHORIZATION_WITH_ADDRESS = 10 +/// #endif /// }; /// ``` /// @@ -42,6 +46,8 @@ pub enum EnvelopeType { PoolRevokeOpId = 7, ContractId = 8, SorobanAuthorization = 9, + #[cfg(feature = "cap_0071")] + SorobanAuthorizationWithAddress = 10, } impl EnvelopeType { @@ -56,6 +62,8 @@ impl EnvelopeType { EnvelopeType::PoolRevokeOpId, EnvelopeType::ContractId, EnvelopeType::SorobanAuthorization, + #[cfg(feature = "cap_0071")] + EnvelopeType::SorobanAuthorizationWithAddress, ]; pub const VARIANTS: [EnvelopeType; Self::_VARIANTS.len()] = { let mut arr = [Self::_VARIANTS[0]; Self::_VARIANTS.len()]; @@ -77,6 +85,8 @@ impl EnvelopeType { "PoolRevokeOpId", "ContractId", "SorobanAuthorization", + #[cfg(feature = "cap_0071")] + "SorobanAuthorizationWithAddress", ]; pub const VARIANTS_STR: [&'static str; Self::_VARIANTS_STR.len()] = { let mut arr = [Self::_VARIANTS_STR[0]; Self::_VARIANTS_STR.len()]; @@ -101,6 +111,8 @@ impl EnvelopeType { Self::PoolRevokeOpId => "PoolRevokeOpId", Self::ContractId => "ContractId", Self::SorobanAuthorization => "SorobanAuthorization", + #[cfg(feature = "cap_0071")] + Self::SorobanAuthorizationWithAddress => "SorobanAuthorizationWithAddress", } } @@ -146,6 +158,8 @@ impl TryFrom for EnvelopeType { 7 => EnvelopeType::PoolRevokeOpId, 8 => EnvelopeType::ContractId, 9 => EnvelopeType::SorobanAuthorization, + #[cfg(feature = "cap_0071")] + 10 => EnvelopeType::SorobanAuthorizationWithAddress, #[allow(unreachable_patterns)] _ => return Err(Error::Invalid), }; diff --git a/src/generated/hash_id_preimage.rs b/src/generated/hash_id_preimage.rs index ba6d214b..74c1875b 100644 --- a/src/generated/hash_id_preimage.rs +++ b/src/generated/hash_id_preimage.rs @@ -36,6 +36,17 @@ use super::*; /// uint32 signatureExpirationLedger; /// SorobanAuthorizedInvocation invocation; /// } sorobanAuthorization; +/// #ifdef CAP_0071 +/// case ENVELOPE_TYPE_SOROBAN_AUTHORIZATION_WITH_ADDRESS: +/// struct +/// { +/// Hash networkID; +/// int64 nonce; +/// uint32 signatureExpirationLedger; +/// SCAddress address; +/// SorobanAuthorizedInvocation invocation; +/// } sorobanAuthorizationWithAddress; +/// #endif /// }; /// ``` /// @@ -56,6 +67,8 @@ pub enum HashIdPreimage { PoolRevokeOpId(HashIdPreimageRevokeId), ContractId(HashIdPreimageContractId), SorobanAuthorization(HashIdPreimageSorobanAuthorization), + #[cfg(feature = "cap_0071")] + SorobanAuthorizationWithAddress(HashIdPreimageSorobanAuthorizationWithAddress), } #[cfg(feature = "alloc")] @@ -71,6 +84,8 @@ impl HashIdPreimage { EnvelopeType::PoolRevokeOpId, EnvelopeType::ContractId, EnvelopeType::SorobanAuthorization, + #[cfg(feature = "cap_0071")] + EnvelopeType::SorobanAuthorizationWithAddress, ]; pub const VARIANTS: [EnvelopeType; Self::_VARIANTS.len()] = { let mut arr = [Self::_VARIANTS[0]; Self::_VARIANTS.len()]; @@ -86,6 +101,8 @@ impl HashIdPreimage { "PoolRevokeOpId", "ContractId", "SorobanAuthorization", + #[cfg(feature = "cap_0071")] + "SorobanAuthorizationWithAddress", ]; pub const VARIANTS_STR: [&'static str; Self::_VARIANTS_STR.len()] = { let mut arr = [Self::_VARIANTS_STR[0]; Self::_VARIANTS_STR.len()]; @@ -104,6 +121,8 @@ impl HashIdPreimage { Self::PoolRevokeOpId(_) => "PoolRevokeOpId", Self::ContractId(_) => "ContractId", Self::SorobanAuthorization(_) => "SorobanAuthorization", + #[cfg(feature = "cap_0071")] + Self::SorobanAuthorizationWithAddress(_) => "SorobanAuthorizationWithAddress", } } @@ -115,6 +134,10 @@ impl HashIdPreimage { Self::PoolRevokeOpId(_) => EnvelopeType::PoolRevokeOpId, Self::ContractId(_) => EnvelopeType::ContractId, Self::SorobanAuthorization(_) => EnvelopeType::SorobanAuthorization, + #[cfg(feature = "cap_0071")] + Self::SorobanAuthorizationWithAddress(_) => { + EnvelopeType::SorobanAuthorizationWithAddress + } } } @@ -163,6 +186,12 @@ impl ReadXdr for HashIdPreimage { EnvelopeType::SorobanAuthorization => { Self::SorobanAuthorization(HashIdPreimageSorobanAuthorization::read_xdr(r)?) } + #[cfg(feature = "cap_0071")] + EnvelopeType::SorobanAuthorizationWithAddress => { + Self::SorobanAuthorizationWithAddress( + HashIdPreimageSorobanAuthorizationWithAddress::read_xdr(r)?, + ) + } #[allow(unreachable_patterns)] _ => return Err(Error::Invalid), }; @@ -182,6 +211,8 @@ impl WriteXdr for HashIdPreimage { Self::PoolRevokeOpId(v) => v.write_xdr(w)?, Self::ContractId(v) => v.write_xdr(w)?, Self::SorobanAuthorization(v) => v.write_xdr(w)?, + #[cfg(feature = "cap_0071")] + Self::SorobanAuthorizationWithAddress(v) => v.write_xdr(w)?, }; Ok(()) }) diff --git a/src/generated/hash_id_preimage_soroban_authorization_with_address.rs b/src/generated/hash_id_preimage_soroban_authorization_with_address.rs new file mode 100644 index 00000000..5ad255a5 --- /dev/null +++ b/src/generated/hash_id_preimage_soroban_authorization_with_address.rs @@ -0,0 +1,70 @@ +#[allow(unused_imports, clippy::wildcard_imports)] +use super::*; + +/// HashIdPreimageSorobanAuthorizationWithAddress is an XDR NestedStruct defined as: +/// +/// ```text +/// struct +/// { +/// Hash networkID; +/// int64 nonce; +/// uint32 signatureExpirationLedger; +/// SCAddress address; +/// SorobanAuthorizedInvocation invocation; +/// } +/// ``` +/// +#[cfg(feature = "cap_0071")] +#[cfg_attr(feature = "alloc", derive(Default))] +#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] +#[cfg_attr(feature = "serde", cfg_eval::cfg_eval)] +#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] +#[cfg_attr( + all(feature = "serde", feature = "alloc"), + serde_with::serde_as, + derive(serde::Serialize, serde::Deserialize), + serde(rename_all = "snake_case") +)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] +pub struct HashIdPreimageSorobanAuthorizationWithAddress { + pub network_id: Hash, + #[cfg_attr( + all(feature = "serde", feature = "alloc"), + serde_as(as = "NumberOrString") + )] + pub nonce: i64, + pub signature_expiration_ledger: u32, + pub address: ScAddress, + pub invocation: SorobanAuthorizedInvocation, +} + +#[cfg(feature = "cap_0071")] +impl ReadXdr for HashIdPreimageSorobanAuthorizationWithAddress { + #[cfg(feature = "std")] + fn read_xdr(r: &mut Limited) -> Result { + r.with_limited_depth(|r| { + Ok(Self { + network_id: Hash::read_xdr(r)?, + nonce: i64::read_xdr(r)?, + signature_expiration_ledger: u32::read_xdr(r)?, + address: ScAddress::read_xdr(r)?, + invocation: SorobanAuthorizedInvocation::read_xdr(r)?, + }) + }) + } +} + +#[cfg(feature = "cap_0071")] +impl WriteXdr for HashIdPreimageSorobanAuthorizationWithAddress { + #[cfg(feature = "std")] + fn write_xdr(&self, w: &mut Limited) -> Result<(), Error> { + w.with_limited_depth(|w| { + self.network_id.write_xdr(w)?; + self.nonce.write_xdr(w)?; + self.signature_expiration_ledger.write_xdr(w)?; + self.address.write_xdr(w)?; + self.invocation.write_xdr(w)?; + Ok(()) + }) + } +} diff --git a/src/generated/soroban_address_credentials_with_delegates.rs b/src/generated/soroban_address_credentials_with_delegates.rs new file mode 100644 index 00000000..e11871c6 --- /dev/null +++ b/src/generated/soroban_address_credentials_with_delegates.rs @@ -0,0 +1,54 @@ +#[allow(unused_imports, clippy::wildcard_imports)] +use super::*; + +/// SorobanAddressCredentialsWithDelegates is an XDR Struct defined as: +/// +/// ```text +/// struct SorobanAddressCredentialsWithDelegates +/// { +/// SorobanAddressCredentials addressCredentials; +/// SorobanDelegateSignature delegates<>; +/// }; +/// ``` +/// +#[cfg(feature = "cap_0071")] +#[cfg_attr(feature = "alloc", derive(Default))] +#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] +#[cfg_attr(feature = "serde", cfg_eval::cfg_eval)] +#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] +#[cfg_attr( + all(feature = "serde", feature = "alloc"), + serde_with::serde_as, + derive(serde::Serialize, serde::Deserialize), + serde(rename_all = "snake_case") +)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] +pub struct SorobanAddressCredentialsWithDelegates { + pub address_credentials: SorobanAddressCredentials, + pub delegates: VecM, +} + +#[cfg(feature = "cap_0071")] +impl ReadXdr for SorobanAddressCredentialsWithDelegates { + #[cfg(feature = "std")] + fn read_xdr(r: &mut Limited) -> Result { + r.with_limited_depth(|r| { + Ok(Self { + address_credentials: SorobanAddressCredentials::read_xdr(r)?, + delegates: VecM::::read_xdr(r)?, + }) + }) + } +} + +#[cfg(feature = "cap_0071")] +impl WriteXdr for SorobanAddressCredentialsWithDelegates { + #[cfg(feature = "std")] + fn write_xdr(&self, w: &mut Limited) -> Result<(), Error> { + w.with_limited_depth(|w| { + self.address_credentials.write_xdr(w)?; + self.delegates.write_xdr(w)?; + Ok(()) + }) + } +} diff --git a/src/generated/soroban_credentials.rs b/src/generated/soroban_credentials.rs index 02072d40..0ac8ed0e 100644 --- a/src/generated/soroban_credentials.rs +++ b/src/generated/soroban_credentials.rs @@ -10,6 +10,10 @@ use super::*; /// void; /// case SOROBAN_CREDENTIALS_ADDRESS: /// SorobanAddressCredentials address; +/// #ifdef CAP_0071 +/// case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: +/// SorobanAddressCredentialsWithDelegates addressWithDelegates; +/// #endif /// }; /// ``` /// @@ -28,6 +32,8 @@ use super::*; pub enum SorobanCredentials { SourceAccount, Address(SorobanAddressCredentials), + #[cfg(feature = "cap_0071")] + AddressWithDelegates(SorobanAddressCredentialsWithDelegates), } #[cfg(feature = "alloc")] @@ -41,6 +47,8 @@ impl SorobanCredentials { const _VARIANTS: &[SorobanCredentialsType] = &[ SorobanCredentialsType::SourceAccount, SorobanCredentialsType::Address, + #[cfg(feature = "cap_0071")] + SorobanCredentialsType::AddressWithDelegates, ]; pub const VARIANTS: [SorobanCredentialsType; Self::_VARIANTS.len()] = { let mut arr = [Self::_VARIANTS[0]; Self::_VARIANTS.len()]; @@ -51,7 +59,12 @@ impl SorobanCredentials { } arr }; - const _VARIANTS_STR: &[&str] = &["SourceAccount", "Address"]; + const _VARIANTS_STR: &[&str] = &[ + "SourceAccount", + "Address", + #[cfg(feature = "cap_0071")] + "AddressWithDelegates", + ]; pub const VARIANTS_STR: [&'static str; Self::_VARIANTS_STR.len()] = { let mut arr = [Self::_VARIANTS_STR[0]; Self::_VARIANTS_STR.len()]; let mut i = 1; @@ -67,6 +80,8 @@ impl SorobanCredentials { match self { Self::SourceAccount => "SourceAccount", Self::Address(_) => "Address", + #[cfg(feature = "cap_0071")] + Self::AddressWithDelegates(_) => "AddressWithDelegates", } } @@ -76,6 +91,8 @@ impl SorobanCredentials { match self { Self::SourceAccount => SorobanCredentialsType::SourceAccount, Self::Address(_) => SorobanCredentialsType::Address, + #[cfg(feature = "cap_0071")] + Self::AddressWithDelegates(_) => SorobanCredentialsType::AddressWithDelegates, } } @@ -118,6 +135,10 @@ impl ReadXdr for SorobanCredentials { SorobanCredentialsType::Address => { Self::Address(SorobanAddressCredentials::read_xdr(r)?) } + #[cfg(feature = "cap_0071")] + SorobanCredentialsType::AddressWithDelegates => { + Self::AddressWithDelegates(SorobanAddressCredentialsWithDelegates::read_xdr(r)?) + } #[allow(unreachable_patterns)] _ => return Err(Error::Invalid), }; @@ -135,6 +156,8 @@ impl WriteXdr for SorobanCredentials { match self { Self::SourceAccount => ().write_xdr(w)?, Self::Address(v) => v.write_xdr(w)?, + #[cfg(feature = "cap_0071")] + Self::AddressWithDelegates(v) => v.write_xdr(w)?, }; Ok(()) }) diff --git a/src/generated/soroban_credentials_type.rs b/src/generated/soroban_credentials_type.rs index a325f3b2..549b6dff 100644 --- a/src/generated/soroban_credentials_type.rs +++ b/src/generated/soroban_credentials_type.rs @@ -8,6 +8,10 @@ use super::*; /// { /// SOROBAN_CREDENTIALS_SOURCE_ACCOUNT = 0, /// SOROBAN_CREDENTIALS_ADDRESS = 1 +/// #ifdef CAP_0071 +/// , +/// SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES = 2 +/// #endif /// }; /// ``` /// @@ -26,12 +30,16 @@ pub enum SorobanCredentialsType { #[cfg_attr(feature = "alloc", default)] SourceAccount = 0, Address = 1, + #[cfg(feature = "cap_0071")] + AddressWithDelegates = 2, } impl SorobanCredentialsType { const _VARIANTS: &[SorobanCredentialsType] = &[ SorobanCredentialsType::SourceAccount, SorobanCredentialsType::Address, + #[cfg(feature = "cap_0071")] + SorobanCredentialsType::AddressWithDelegates, ]; pub const VARIANTS: [SorobanCredentialsType; Self::_VARIANTS.len()] = { let mut arr = [Self::_VARIANTS[0]; Self::_VARIANTS.len()]; @@ -42,7 +50,12 @@ impl SorobanCredentialsType { } arr }; - const _VARIANTS_STR: &[&str] = &["SourceAccount", "Address"]; + const _VARIANTS_STR: &[&str] = &[ + "SourceAccount", + "Address", + #[cfg(feature = "cap_0071")] + "AddressWithDelegates", + ]; pub const VARIANTS_STR: [&'static str; Self::_VARIANTS_STR.len()] = { let mut arr = [Self::_VARIANTS_STR[0]; Self::_VARIANTS_STR.len()]; let mut i = 1; @@ -58,6 +71,8 @@ impl SorobanCredentialsType { match self { Self::SourceAccount => "SourceAccount", Self::Address => "Address", + #[cfg(feature = "cap_0071")] + Self::AddressWithDelegates => "AddressWithDelegates", } } @@ -95,6 +110,8 @@ impl TryFrom for SorobanCredentialsType { let e = match i { 0 => SorobanCredentialsType::SourceAccount, 1 => SorobanCredentialsType::Address, + #[cfg(feature = "cap_0071")] + 2 => SorobanCredentialsType::AddressWithDelegates, #[allow(unreachable_patterns)] _ => return Err(Error::Invalid), }; diff --git a/src/generated/soroban_delegate_signature.rs b/src/generated/soroban_delegate_signature.rs new file mode 100644 index 00000000..15746ae8 --- /dev/null +++ b/src/generated/soroban_delegate_signature.rs @@ -0,0 +1,57 @@ +#[allow(unused_imports, clippy::wildcard_imports)] +use super::*; + +/// SorobanDelegateSignature is an XDR Struct defined as: +/// +/// ```text +/// struct SorobanDelegateSignature { +/// SCAddress address; +/// SCVal signature; +/// SorobanDelegateSignature nestedDelegates<>; +/// }; +/// ``` +/// +#[cfg(feature = "cap_0071")] +#[cfg_attr(feature = "alloc", derive(Default))] +#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] +#[cfg_attr(feature = "serde", cfg_eval::cfg_eval)] +#[cfg_attr(feature = "arbitrary", derive(Arbitrary))] +#[cfg_attr( + all(feature = "serde", feature = "alloc"), + serde_with::serde_as, + derive(serde::Serialize, serde::Deserialize), + serde(rename_all = "snake_case") +)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] +pub struct SorobanDelegateSignature { + pub address: ScAddress, + pub signature: ScVal, + pub nested_delegates: VecM, +} + +#[cfg(feature = "cap_0071")] +impl ReadXdr for SorobanDelegateSignature { + #[cfg(feature = "std")] + fn read_xdr(r: &mut Limited) -> Result { + r.with_limited_depth(|r| { + Ok(Self { + address: ScAddress::read_xdr(r)?, + signature: ScVal::read_xdr(r)?, + nested_delegates: VecM::::read_xdr(r)?, + }) + }) + } +} + +#[cfg(feature = "cap_0071")] +impl WriteXdr for SorobanDelegateSignature { + #[cfg(feature = "std")] + fn write_xdr(&self, w: &mut Limited) -> Result<(), Error> { + w.with_limited_depth(|w| { + self.address.write_xdr(w)?; + self.signature.write_xdr(w)?; + self.nested_delegates.write_xdr(w)?; + Ok(()) + }) + } +} diff --git a/src/lib.rs b/src/lib.rs index 264a7964..bd3720de 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -100,11 +100,20 @@ pub struct Version<'a> { pub pkg: &'a str, pub rev: &'a str, pub xdr: &'a str, + /// List of XDR feature flags enabled in this build. + #[cfg_attr(feature = "serde", serde(skip))] + pub features: &'a [&'a str], } pub const VERSION: Version = Version { pkg: env!("CARGO_PKG_VERSION"), rev: env!("GIT_REVISION"), xdr: include_str!("../xdr-version"), + features: &[ + #[cfg(feature = "cap_0071")] + "cap_0071", + #[cfg(feature = "test_feature")] + "test_feature", + ], }; #[cfg(feature = "schemars")] diff --git a/xdr b/xdr index 8e4d2715..bae203ea 160000 --- a/xdr +++ b/xdr @@ -1 +1 @@ -Subproject commit 8e4d2715336508f45bb0034b3cba3764519895ac +Subproject commit bae203ea9b36c5da0376526dce627ef2d5703078 diff --git a/xdr-generator-rust/xdr-parser/src/parser.rs b/xdr-generator-rust/xdr-parser/src/parser.rs index 9dc8520e..db282b3c 100644 --- a/xdr-generator-rust/xdr-parser/src/parser.rs +++ b/xdr-generator-rust/xdr-parser/src/parser.rs @@ -16,12 +16,18 @@ use thiserror::Error; /// it came from via `file_index`. /// /// File SHA256 hashes are computed and stored in `XdrSpec::files`. +/// +/// Hashes are computed after stripping `#ifdef`/`#endif` blocks and removing +/// all whitespace, so they are stable regardless of feature ifdefs or +/// formatting differences. This ensures compatibility with builds that may +/// use the same base XDR definitions with different feature flags enabled. pub fn parse_files(files: &[(&str, &str)]) -> Result { let mut spec = XdrSpec::default(); let mut global_values = HashMap::new(); for (file_index, (name, content)) in files.iter().enumerate() { - let hash = format!("{:x}", Sha256::digest(content.as_bytes())); + let stripped = strip_ifdef_blocks_and_whitespace(content); + let hash = format!("{:x}", Sha256::digest(stripped.as_bytes())); spec.files.push(XdrFile { name: name.to_string(), sha256: hash, @@ -52,6 +58,36 @@ pub fn parse(source: &str) -> Result { parse_files(&[("", source)]) } +/// Strip `#ifdef`/`#else`/`#endif` blocks and remove all whitespace from the +/// input string. Content between `#ifdef` and `#else` (the feature-on branch) +/// is removed, while content between `#else` and `#endif` (the feature-off +/// branch) is kept, since it represents the base types when no features are +/// enabled. The directive lines themselves are always removed. +fn strip_ifdef_blocks_and_whitespace(content: &str) -> String { + let mut result = String::new(); + let mut skip = false; + for line in content.lines() { + let trimmed = line.trim_start(); + if trimmed.starts_with("#ifdef") { + skip = true; + continue; + } + if trimmed.starts_with("#else") { + skip = false; + continue; + } + if trimmed.starts_with("#endif") { + skip = false; + continue; + } + if !skip { + result.push_str(line); + } + } + result.retain(|c| !c.is_whitespace()); + result +} + /// Set the file_index on a definition. fn set_file_index(def: &mut Definition, index: usize) { match def { @@ -392,6 +428,15 @@ impl Parser { _ => {} } + // Skip a leading comma (e.g. when the comma is inside an #ifdef block) + if *self.peek() == Token::Comma { + self.advance(); + if *self.peek() == Token::RBrace { + break; + } + continue; + } + let member_name = self.expect_ident()?; self.expect(Token::Eq)?; @@ -423,8 +468,8 @@ impl Parser { } } Token::RBrace => break, - // Allow #else/#endif directly after a member without a comma - Token::EndIf | Token::Else => {} + // Allow #ifdef/#else/#endif directly after a member without a comma + Token::IfDef(_) | Token::EndIf | Token::Else => {} other => { return Err(self.unexpected_token_error(", or }".to_string(), other.clone())) } @@ -745,7 +790,7 @@ impl Parser { is_nested: true, parent: self.root_parent.clone(), file_index: self.file_index, - cfg: None, + cfg: self.current_cfg(), }; self.extracted_definitions @@ -1147,7 +1192,7 @@ impl Parser { is_nested: true, parent: self.root_parent.clone(), file_index: self.file_index, - cfg: None, + cfg: self.current_cfg(), }; // Fix up parent relationships for any definitions extracted during union parsing diff --git a/xdr-json/AuthenticatedMessage.json b/xdr-json/AuthenticatedMessage.json index 001aad38..93cf7a69 100644 --- a/xdr-json/AuthenticatedMessage.json +++ b/xdr-json/AuthenticatedMessage.json @@ -3374,7 +3374,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/AuthenticatedMessageV0.json b/xdr-json/AuthenticatedMessageV0.json index c8e8951a..8afb9fa0 100644 --- a/xdr-json/AuthenticatedMessageV0.json +++ b/xdr-json/AuthenticatedMessageV0.json @@ -3356,7 +3356,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/DependentTxCluster.json b/xdr-json/DependentTxCluster.json index fa98106a..b8b64e17 100644 --- a/xdr-json/DependentTxCluster.json +++ b/xdr-json/DependentTxCluster.json @@ -2603,7 +2603,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/EnvelopeType.json b/xdr-json/EnvelopeType.json index 6bcc1947..e34af01d 100644 --- a/xdr-json/EnvelopeType.json +++ b/xdr-json/EnvelopeType.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "EnvelopeType", - "description": "EnvelopeType is an XDR Enum defined as:\n\n```text enum EnvelopeType { ENVELOPE_TYPE_TX_V0 = 0, ENVELOPE_TYPE_SCP = 1, ENVELOPE_TYPE_TX = 2, ENVELOPE_TYPE_AUTH = 3, ENVELOPE_TYPE_SCPVALUE = 4, ENVELOPE_TYPE_TX_FEE_BUMP = 5, ENVELOPE_TYPE_OP_ID = 6, ENVELOPE_TYPE_POOL_REVOKE_OP_ID = 7, ENVELOPE_TYPE_CONTRACT_ID = 8, ENVELOPE_TYPE_SOROBAN_AUTHORIZATION = 9 }; ```", + "description": "EnvelopeType is an XDR Enum defined as:\n\n```text enum EnvelopeType { ENVELOPE_TYPE_TX_V0 = 0, ENVELOPE_TYPE_SCP = 1, ENVELOPE_TYPE_TX = 2, ENVELOPE_TYPE_AUTH = 3, ENVELOPE_TYPE_SCPVALUE = 4, ENVELOPE_TYPE_TX_FEE_BUMP = 5, ENVELOPE_TYPE_OP_ID = 6, ENVELOPE_TYPE_POOL_REVOKE_OP_ID = 7, ENVELOPE_TYPE_CONTRACT_ID = 8, ENVELOPE_TYPE_SOROBAN_AUTHORIZATION = 9 #ifdef CAP_0071 , ENVELOPE_TYPE_SOROBAN_AUTHORIZATION_WITH_ADDRESS = 10 #endif }; ```", "type": "string", "enum": [ "tx_v0", diff --git a/xdr-json/FeeBumpTransaction.json b/xdr-json/FeeBumpTransaction.json index 386a0530..e8196f7c 100644 --- a/xdr-json/FeeBumpTransaction.json +++ b/xdr-json/FeeBumpTransaction.json @@ -2579,7 +2579,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/FeeBumpTransactionEnvelope.json b/xdr-json/FeeBumpTransactionEnvelope.json index 63afaa48..027c77ba 100644 --- a/xdr-json/FeeBumpTransactionEnvelope.json +++ b/xdr-json/FeeBumpTransactionEnvelope.json @@ -2599,7 +2599,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/FeeBumpTransactionInnerTx.json b/xdr-json/FeeBumpTransactionInnerTx.json index 92ef359e..02b0e4e0 100644 --- a/xdr-json/FeeBumpTransactionInnerTx.json +++ b/xdr-json/FeeBumpTransactionInnerTx.json @@ -2550,7 +2550,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/GeneralizedTransactionSet.json b/xdr-json/GeneralizedTransactionSet.json index f0f6fa55..19c74a75 100644 --- a/xdr-json/GeneralizedTransactionSet.json +++ b/xdr-json/GeneralizedTransactionSet.json @@ -2656,7 +2656,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/HashIdPreimage.json b/xdr-json/HashIdPreimage.json index e3a30f39..ec03497c 100644 --- a/xdr-json/HashIdPreimage.json +++ b/xdr-json/HashIdPreimage.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "HashIdPreimage", - "description": "HashIdPreimage is an XDR Union defined as:\n\n```text union HashIDPreimage switch (EnvelopeType type) { case ENVELOPE_TYPE_OP_ID: struct { AccountID sourceAccount; SequenceNumber seqNum; uint32 opNum; } operationID; case ENVELOPE_TYPE_POOL_REVOKE_OP_ID: struct { AccountID sourceAccount; SequenceNumber seqNum; uint32 opNum; PoolID liquidityPoolID; Asset asset; } revokeID; case ENVELOPE_TYPE_CONTRACT_ID: struct { Hash networkID; ContractIDPreimage contractIDPreimage; } contractID; case ENVELOPE_TYPE_SOROBAN_AUTHORIZATION: struct { Hash networkID; int64 nonce; uint32 signatureExpirationLedger; SorobanAuthorizedInvocation invocation; } sorobanAuthorization; }; ```", + "description": "HashIdPreimage is an XDR Union defined as:\n\n```text union HashIDPreimage switch (EnvelopeType type) { case ENVELOPE_TYPE_OP_ID: struct { AccountID sourceAccount; SequenceNumber seqNum; uint32 opNum; } operationID; case ENVELOPE_TYPE_POOL_REVOKE_OP_ID: struct { AccountID sourceAccount; SequenceNumber seqNum; uint32 opNum; PoolID liquidityPoolID; Asset asset; } revokeID; case ENVELOPE_TYPE_CONTRACT_ID: struct { Hash networkID; ContractIDPreimage contractIDPreimage; } contractID; case ENVELOPE_TYPE_SOROBAN_AUTHORIZATION: struct { Hash networkID; int64 nonce; uint32 signatureExpirationLedger; SorobanAuthorizedInvocation invocation; } sorobanAuthorization; #ifdef CAP_0071 case ENVELOPE_TYPE_SOROBAN_AUTHORIZATION_WITH_ADDRESS: struct { Hash networkID; int64 nonce; uint32 signatureExpirationLedger; SCAddress address; SorobanAuthorizedInvocation invocation; } sorobanAuthorizationWithAddress; #endif }; ```", "oneOf": [ { "type": "object", diff --git a/xdr-json/InvokeHostFunctionOp.json b/xdr-json/InvokeHostFunctionOp.json index 13828fe8..dfccb12c 100644 --- a/xdr-json/InvokeHostFunctionOp.json +++ b/xdr-json/InvokeHostFunctionOp.json @@ -862,7 +862,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/LedgerCloseMeta.json b/xdr-json/LedgerCloseMeta.json index 4ef8933f..8a2c27c1 100644 --- a/xdr-json/LedgerCloseMeta.json +++ b/xdr-json/LedgerCloseMeta.json @@ -6340,7 +6340,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/LedgerCloseMetaBatch.json b/xdr-json/LedgerCloseMetaBatch.json index d030dffd..d65b8f93 100644 --- a/xdr-json/LedgerCloseMetaBatch.json +++ b/xdr-json/LedgerCloseMetaBatch.json @@ -6366,7 +6366,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/LedgerCloseMetaV0.json b/xdr-json/LedgerCloseMetaV0.json index 4a47cd8a..0d9566e8 100644 --- a/xdr-json/LedgerCloseMetaV0.json +++ b/xdr-json/LedgerCloseMetaV0.json @@ -6087,7 +6087,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/LedgerCloseMetaV1.json b/xdr-json/LedgerCloseMetaV1.json index 454a3031..333208c1 100644 --- a/xdr-json/LedgerCloseMetaV1.json +++ b/xdr-json/LedgerCloseMetaV1.json @@ -6204,7 +6204,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/LedgerCloseMetaV2.json b/xdr-json/LedgerCloseMetaV2.json index 4c6e9e7d..54e0d46f 100644 --- a/xdr-json/LedgerCloseMetaV2.json +++ b/xdr-json/LedgerCloseMetaV2.json @@ -6196,7 +6196,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/Operation.json b/xdr-json/Operation.json index dd88f3c6..29c4a243 100644 --- a/xdr-json/Operation.json +++ b/xdr-json/Operation.json @@ -2309,7 +2309,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/OperationBody.json b/xdr-json/OperationBody.json index 356f52b8..4968fe4a 100644 --- a/xdr-json/OperationBody.json +++ b/xdr-json/OperationBody.json @@ -2289,7 +2289,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/ParallelTxExecutionStage.json b/xdr-json/ParallelTxExecutionStage.json index 52d42733..60df577a 100644 --- a/xdr-json/ParallelTxExecutionStage.json +++ b/xdr-json/ParallelTxExecutionStage.json @@ -2611,7 +2611,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/ParallelTxsComponent.json b/xdr-json/ParallelTxsComponent.json index 3224afc6..fb387071 100644 --- a/xdr-json/ParallelTxsComponent.json +++ b/xdr-json/ParallelTxsComponent.json @@ -2638,7 +2638,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/PersistedScpState.json b/xdr-json/PersistedScpState.json index ce6c972c..61f4029a 100644 --- a/xdr-json/PersistedScpState.json +++ b/xdr-json/PersistedScpState.json @@ -3023,7 +3023,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/PersistedScpStateV0.json b/xdr-json/PersistedScpStateV0.json index e4cca786..d9a206d7 100644 --- a/xdr-json/PersistedScpStateV0.json +++ b/xdr-json/PersistedScpStateV0.json @@ -2970,7 +2970,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/SorobanAuthorizationEntries.json b/xdr-json/SorobanAuthorizationEntries.json index 669c3dab..57e6d119 100644 --- a/xdr-json/SorobanAuthorizationEntries.json +++ b/xdr-json/SorobanAuthorizationEntries.json @@ -795,7 +795,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/SorobanAuthorizationEntry.json b/xdr-json/SorobanAuthorizationEntry.json index 8292b242..7b1d7389 100644 --- a/xdr-json/SorobanAuthorizationEntry.json +++ b/xdr-json/SorobanAuthorizationEntry.json @@ -791,7 +791,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/SorobanCredentials.json b/xdr-json/SorobanCredentials.json index 8db0b3d3..6b11b69b 100644 --- a/xdr-json/SorobanCredentials.json +++ b/xdr-json/SorobanCredentials.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "SorobanCredentials", - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/SorobanCredentialsType.json b/xdr-json/SorobanCredentialsType.json index 04d544ca..8e96db99 100644 --- a/xdr-json/SorobanCredentialsType.json +++ b/xdr-json/SorobanCredentialsType.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "SorobanCredentialsType", - "description": "SorobanCredentialsType is an XDR Enum defined as:\n\n```text enum SorobanCredentialsType { SOROBAN_CREDENTIALS_SOURCE_ACCOUNT = 0, SOROBAN_CREDENTIALS_ADDRESS = 1 }; ```", + "description": "SorobanCredentialsType is an XDR Enum defined as:\n\n```text enum SorobanCredentialsType { SOROBAN_CREDENTIALS_SOURCE_ACCOUNT = 0, SOROBAN_CREDENTIALS_ADDRESS = 1 #ifdef CAP_0071 , SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES = 2 #endif }; ```", "type": "string", "enum": [ "source_account", diff --git a/xdr-json/StellarMessage.json b/xdr-json/StellarMessage.json index 012c48aa..e7d88836 100644 --- a/xdr-json/StellarMessage.json +++ b/xdr-json/StellarMessage.json @@ -3569,7 +3569,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/StoredDebugTransactionSet.json b/xdr-json/StoredDebugTransactionSet.json index 404ac46d..a753da1e 100644 --- a/xdr-json/StoredDebugTransactionSet.json +++ b/xdr-json/StoredDebugTransactionSet.json @@ -2695,7 +2695,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/StoredTransactionSet.json b/xdr-json/StoredTransactionSet.json index 48872852..21386c81 100644 --- a/xdr-json/StoredTransactionSet.json +++ b/xdr-json/StoredTransactionSet.json @@ -2683,7 +2683,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/Transaction.json b/xdr-json/Transaction.json index fbfd6de2..4622cb56 100644 --- a/xdr-json/Transaction.json +++ b/xdr-json/Transaction.json @@ -2547,7 +2547,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/TransactionEnvelope.json b/xdr-json/TransactionEnvelope.json index 20dd46f7..89998096 100644 --- a/xdr-json/TransactionEnvelope.json +++ b/xdr-json/TransactionEnvelope.json @@ -2639,7 +2639,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/TransactionHistoryEntry.json b/xdr-json/TransactionHistoryEntry.json index d947e4a0..67c90142 100644 --- a/xdr-json/TransactionHistoryEntry.json +++ b/xdr-json/TransactionHistoryEntry.json @@ -2676,7 +2676,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/TransactionHistoryEntryExt.json b/xdr-json/TransactionHistoryEntryExt.json index 4afb801b..295f4fb6 100644 --- a/xdr-json/TransactionHistoryEntryExt.json +++ b/xdr-json/TransactionHistoryEntryExt.json @@ -2678,7 +2678,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/TransactionPhase.json b/xdr-json/TransactionPhase.json index 1c76f119..0d48ffb2 100644 --- a/xdr-json/TransactionPhase.json +++ b/xdr-json/TransactionPhase.json @@ -2671,7 +2671,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/TransactionSet.json b/xdr-json/TransactionSet.json index 9e1e3eca..dfcb4bb3 100644 --- a/xdr-json/TransactionSet.json +++ b/xdr-json/TransactionSet.json @@ -2623,7 +2623,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/TransactionSetV1.json b/xdr-json/TransactionSetV1.json index 4a34a2d7..83f4ed9b 100644 --- a/xdr-json/TransactionSetV1.json +++ b/xdr-json/TransactionSetV1.json @@ -2662,7 +2662,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/TransactionSignaturePayload.json b/xdr-json/TransactionSignaturePayload.json index ba8d4d14..9a9a9456 100644 --- a/xdr-json/TransactionSignaturePayload.json +++ b/xdr-json/TransactionSignaturePayload.json @@ -2599,7 +2599,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/TransactionSignaturePayloadTaggedTransaction.json b/xdr-json/TransactionSignaturePayloadTaggedTransaction.json index 83fe3448..ea6400d2 100644 --- a/xdr-json/TransactionSignaturePayloadTaggedTransaction.json +++ b/xdr-json/TransactionSignaturePayloadTaggedTransaction.json @@ -2608,7 +2608,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/TransactionV0.json b/xdr-json/TransactionV0.json index 75b06eee..47fbf800 100644 --- a/xdr-json/TransactionV0.json +++ b/xdr-json/TransactionV0.json @@ -2424,7 +2424,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/TransactionV0Envelope.json b/xdr-json/TransactionV0Envelope.json index faaf6947..22d24bbe 100644 --- a/xdr-json/TransactionV0Envelope.json +++ b/xdr-json/TransactionV0Envelope.json @@ -2419,7 +2419,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/TransactionV1Envelope.json b/xdr-json/TransactionV1Envelope.json index 626e5cbb..71ae375c 100644 --- a/xdr-json/TransactionV1Envelope.json +++ b/xdr-json/TransactionV1Envelope.json @@ -2552,7 +2552,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/TxSetComponent.json b/xdr-json/TxSetComponent.json index 9ff0a8da..21bb4f6b 100644 --- a/xdr-json/TxSetComponent.json +++ b/xdr-json/TxSetComponent.json @@ -2617,7 +2617,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-json/TxSetComponentTxsMaybeDiscountedFee.json b/xdr-json/TxSetComponentTxsMaybeDiscountedFee.json index b31b2b00..0cf47183 100644 --- a/xdr-json/TxSetComponentTxsMaybeDiscountedFee.json +++ b/xdr-json/TxSetComponentTxsMaybeDiscountedFee.json @@ -2622,7 +2622,7 @@ } }, "SorobanCredentials": { - "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; }; ```", + "description": "SorobanCredentials is an XDR Union defined as:\n\n```text union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; #ifdef CAP_0071 case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES: SorobanAddressCredentialsWithDelegates addressWithDelegates; #endif }; ```", "oneOf": [ { "type": "string", diff --git a/xdr-version b/xdr-version index 210659ff..43d15e17 100644 --- a/xdr-version +++ b/xdr-version @@ -1 +1 @@ -8e4d2715336508f45bb0034b3cba3764519895ac \ No newline at end of file +bae203ea9b36c5da0376526dce627ef2d5703078 \ No newline at end of file