#![allow(unknown_lints)]
#![allow(clippy::all)]
#![allow(unused_attributes)]
#![cfg_attr(rustfmt, rustfmt::skip)]
#![allow(box_pointers)]
#![allow(dead_code)]
#![allow(missing_docs)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(non_upper_case_globals)]
#![allow(trivial_casts)]
#![allow(unused_imports)]
#![allow(unused_results)]
#[derive(PartialEq,Clone,Default)]
pub struct StellarAsset {
field_type: ::std::option::Option<StellarAssetType>,
code: ::protobuf::SingularField<::std::string::String>,
issuer: ::protobuf::SingularField<::std::string::String>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a StellarAsset {
fn default() -> &'a StellarAsset {
<StellarAsset as ::protobuf::Message>::default_instance()
}
}
impl StellarAsset {
pub fn new() -> StellarAsset {
::std::default::Default::default()
}
pub fn get_field_type(&self) -> StellarAssetType {
self.field_type.unwrap_or(StellarAssetType::NATIVE)
}
pub fn clear_field_type(&mut self) {
self.field_type = ::std::option::Option::None;
}
pub fn has_field_type(&self) -> bool {
self.field_type.is_some()
}
pub fn set_field_type(&mut self, v: StellarAssetType) {
self.field_type = ::std::option::Option::Some(v);
}
pub fn get_code(&self) -> &str {
match self.code.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_code(&mut self) {
self.code.clear();
}
pub fn has_code(&self) -> bool {
self.code.is_some()
}
pub fn set_code(&mut self, v: ::std::string::String) {
self.code = ::protobuf::SingularField::some(v);
}
pub fn mut_code(&mut self) -> &mut ::std::string::String {
if self.code.is_none() {
self.code.set_default();
}
self.code.as_mut().unwrap()
}
pub fn take_code(&mut self) -> ::std::string::String {
self.code.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_issuer(&self) -> &str {
match self.issuer.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_issuer(&mut self) {
self.issuer.clear();
}
pub fn has_issuer(&self) -> bool {
self.issuer.is_some()
}
pub fn set_issuer(&mut self, v: ::std::string::String) {
self.issuer = ::protobuf::SingularField::some(v);
}
pub fn mut_issuer(&mut self) -> &mut ::std::string::String {
if self.issuer.is_none() {
self.issuer.set_default();
}
self.issuer.as_mut().unwrap()
}
pub fn take_issuer(&mut self) -> ::std::string::String {
self.issuer.take().unwrap_or_else(|| ::std::string::String::new())
}
}
impl ::protobuf::Message for StellarAsset {
fn is_initialized(&self) -> bool {
if self.field_type.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 1, &mut self.unknown_fields)?
},
2 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.code)?;
},
3 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.issuer)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(v) = self.field_type {
my_size += ::protobuf::rt::enum_size(1, v);
}
if let Some(ref v) = self.code.as_ref() {
my_size += ::protobuf::rt::string_size(2, &v);
}
if let Some(ref v) = self.issuer.as_ref() {
my_size += ::protobuf::rt::string_size(3, &v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.field_type {
os.write_enum(1, ::protobuf::ProtobufEnum::value(&v))?;
}
if let Some(ref v) = self.code.as_ref() {
os.write_string(2, &v)?;
}
if let Some(ref v) = self.issuer.as_ref() {
os.write_string(3, &v)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> StellarAsset {
StellarAsset::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<StellarAssetType>>(
"type",
|m: &StellarAsset| { &m.field_type },
|m: &mut StellarAsset| { &mut m.field_type },
));
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"code",
|m: &StellarAsset| { &m.code },
|m: &mut StellarAsset| { &mut m.code },
));
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"issuer",
|m: &StellarAsset| { &m.issuer },
|m: &mut StellarAsset| { &mut m.issuer },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<StellarAsset>(
"StellarAsset",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static StellarAsset {
static instance: ::protobuf::rt::LazyV2<StellarAsset> = ::protobuf::rt::LazyV2::INIT;
instance.get(StellarAsset::new)
}
}
impl ::protobuf::Clear for StellarAsset {
fn clear(&mut self) {
self.field_type = ::std::option::Option::None;
self.code.clear();
self.issuer.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for StellarAsset {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for StellarAsset {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct StellarGetAddress {
pub address_n: ::std::vec::Vec<u32>,
show_display: ::std::option::Option<bool>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a StellarGetAddress {
fn default() -> &'a StellarGetAddress {
<StellarGetAddress as ::protobuf::Message>::default_instance()
}
}
impl StellarGetAddress {
pub fn new() -> StellarGetAddress {
::std::default::Default::default()
}
pub fn get_address_n(&self) -> &[u32] {
&self.address_n
}
pub fn clear_address_n(&mut self) {
self.address_n.clear();
}
pub fn set_address_n(&mut self, v: ::std::vec::Vec<u32>) {
self.address_n = v;
}
pub fn mut_address_n(&mut self) -> &mut ::std::vec::Vec<u32> {
&mut self.address_n
}
pub fn take_address_n(&mut self) -> ::std::vec::Vec<u32> {
::std::mem::replace(&mut self.address_n, ::std::vec::Vec::new())
}
pub fn get_show_display(&self) -> bool {
self.show_display.unwrap_or(false)
}
pub fn clear_show_display(&mut self) {
self.show_display = ::std::option::Option::None;
}
pub fn has_show_display(&self) -> bool {
self.show_display.is_some()
}
pub fn set_show_display(&mut self, v: bool) {
self.show_display = ::std::option::Option::Some(v);
}
}
impl ::protobuf::Message for StellarGetAddress {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_repeated_uint32_into(wire_type, is, &mut self.address_n)?;
},
2 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_bool()?;
self.show_display = ::std::option::Option::Some(tmp);
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.address_n {
my_size += ::protobuf::rt::value_size(1, *value, ::protobuf::wire_format::WireTypeVarint);
};
if let Some(v) = self.show_display {
my_size += 2;
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
for v in &self.address_n {
os.write_uint32(1, *v)?;
};
if let Some(v) = self.show_display {
os.write_bool(2, v)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> StellarGetAddress {
StellarGetAddress::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
"address_n",
|m: &StellarGetAddress| { &m.address_n },
|m: &mut StellarGetAddress| { &mut m.address_n },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
"show_display",
|m: &StellarGetAddress| { &m.show_display },
|m: &mut StellarGetAddress| { &mut m.show_display },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<StellarGetAddress>(
"StellarGetAddress",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static StellarGetAddress {
static instance: ::protobuf::rt::LazyV2<StellarGetAddress> = ::protobuf::rt::LazyV2::INIT;
instance.get(StellarGetAddress::new)
}
}
impl ::protobuf::Clear for StellarGetAddress {
fn clear(&mut self) {
self.address_n.clear();
self.show_display = ::std::option::Option::None;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for StellarGetAddress {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for StellarGetAddress {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct StellarAddress {
address: ::protobuf::SingularField<::std::string::String>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a StellarAddress {
fn default() -> &'a StellarAddress {
<StellarAddress as ::protobuf::Message>::default_instance()
}
}
impl StellarAddress {
pub fn new() -> StellarAddress {
::std::default::Default::default()
}
pub fn get_address(&self) -> &str {
match self.address.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_address(&mut self) {
self.address.clear();
}
pub fn has_address(&self) -> bool {
self.address.is_some()
}
pub fn set_address(&mut self, v: ::std::string::String) {
self.address = ::protobuf::SingularField::some(v);
}
pub fn mut_address(&mut self) -> &mut ::std::string::String {
if self.address.is_none() {
self.address.set_default();
}
self.address.as_mut().unwrap()
}
pub fn take_address(&mut self) -> ::std::string::String {
self.address.take().unwrap_or_else(|| ::std::string::String::new())
}
}
impl ::protobuf::Message for StellarAddress {
fn is_initialized(&self) -> bool {
if self.address.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.address)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(ref v) = self.address.as_ref() {
my_size += ::protobuf::rt::string_size(1, &v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.address.as_ref() {
os.write_string(1, &v)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> StellarAddress {
StellarAddress::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"address",
|m: &StellarAddress| { &m.address },
|m: &mut StellarAddress| { &mut m.address },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<StellarAddress>(
"StellarAddress",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static StellarAddress {
static instance: ::protobuf::rt::LazyV2<StellarAddress> = ::protobuf::rt::LazyV2::INIT;
instance.get(StellarAddress::new)
}
}
impl ::protobuf::Clear for StellarAddress {
fn clear(&mut self) {
self.address.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for StellarAddress {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for StellarAddress {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct StellarSignTx {
pub address_n: ::std::vec::Vec<u32>,
network_passphrase: ::protobuf::SingularField<::std::string::String>,
source_account: ::protobuf::SingularField<::std::string::String>,
fee: ::std::option::Option<u32>,
sequence_number: ::std::option::Option<u64>,
timebounds_start: ::std::option::Option<u32>,
timebounds_end: ::std::option::Option<u32>,
memo_type: ::std::option::Option<StellarSignTx_StellarMemoType>,
memo_text: ::protobuf::SingularField<::std::string::String>,
memo_id: ::std::option::Option<u64>,
memo_hash: ::protobuf::SingularField<::std::vec::Vec<u8>>,
num_operations: ::std::option::Option<u32>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a StellarSignTx {
fn default() -> &'a StellarSignTx {
<StellarSignTx as ::protobuf::Message>::default_instance()
}
}
impl StellarSignTx {
pub fn new() -> StellarSignTx {
::std::default::Default::default()
}
pub fn get_address_n(&self) -> &[u32] {
&self.address_n
}
pub fn clear_address_n(&mut self) {
self.address_n.clear();
}
pub fn set_address_n(&mut self, v: ::std::vec::Vec<u32>) {
self.address_n = v;
}
pub fn mut_address_n(&mut self) -> &mut ::std::vec::Vec<u32> {
&mut self.address_n
}
pub fn take_address_n(&mut self) -> ::std::vec::Vec<u32> {
::std::mem::replace(&mut self.address_n, ::std::vec::Vec::new())
}
pub fn get_network_passphrase(&self) -> &str {
match self.network_passphrase.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_network_passphrase(&mut self) {
self.network_passphrase.clear();
}
pub fn has_network_passphrase(&self) -> bool {
self.network_passphrase.is_some()
}
pub fn set_network_passphrase(&mut self, v: ::std::string::String) {
self.network_passphrase = ::protobuf::SingularField::some(v);
}
pub fn mut_network_passphrase(&mut self) -> &mut ::std::string::String {
if self.network_passphrase.is_none() {
self.network_passphrase.set_default();
}
self.network_passphrase.as_mut().unwrap()
}
pub fn take_network_passphrase(&mut self) -> ::std::string::String {
self.network_passphrase.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_source_account(&self) -> &str {
match self.source_account.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_source_account(&mut self) {
self.source_account.clear();
}
pub fn has_source_account(&self) -> bool {
self.source_account.is_some()
}
pub fn set_source_account(&mut self, v: ::std::string::String) {
self.source_account = ::protobuf::SingularField::some(v);
}
pub fn mut_source_account(&mut self) -> &mut ::std::string::String {
if self.source_account.is_none() {
self.source_account.set_default();
}
self.source_account.as_mut().unwrap()
}
pub fn take_source_account(&mut self) -> ::std::string::String {
self.source_account.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_fee(&self) -> u32 {
self.fee.unwrap_or(0)
}
pub fn clear_fee(&mut self) {
self.fee = ::std::option::Option::None;
}
pub fn has_fee(&self) -> bool {
self.fee.is_some()
}
pub fn set_fee(&mut self, v: u32) {
self.fee = ::std::option::Option::Some(v);
}
pub fn get_sequence_number(&self) -> u64 {
self.sequence_number.unwrap_or(0)
}
pub fn clear_sequence_number(&mut self) {
self.sequence_number = ::std::option::Option::None;
}
pub fn has_sequence_number(&self) -> bool {
self.sequence_number.is_some()
}
pub fn set_sequence_number(&mut self, v: u64) {
self.sequence_number = ::std::option::Option::Some(v);
}
pub fn get_timebounds_start(&self) -> u32 {
self.timebounds_start.unwrap_or(0)
}
pub fn clear_timebounds_start(&mut self) {
self.timebounds_start = ::std::option::Option::None;
}
pub fn has_timebounds_start(&self) -> bool {
self.timebounds_start.is_some()
}
pub fn set_timebounds_start(&mut self, v: u32) {
self.timebounds_start = ::std::option::Option::Some(v);
}
pub fn get_timebounds_end(&self) -> u32 {
self.timebounds_end.unwrap_or(0)
}
pub fn clear_timebounds_end(&mut self) {
self.timebounds_end = ::std::option::Option::None;
}
pub fn has_timebounds_end(&self) -> bool {
self.timebounds_end.is_some()
}
pub fn set_timebounds_end(&mut self, v: u32) {
self.timebounds_end = ::std::option::Option::Some(v);
}
pub fn get_memo_type(&self) -> StellarSignTx_StellarMemoType {
self.memo_type.unwrap_or(StellarSignTx_StellarMemoType::NONE)
}
pub fn clear_memo_type(&mut self) {
self.memo_type = ::std::option::Option::None;
}
pub fn has_memo_type(&self) -> bool {
self.memo_type.is_some()
}
pub fn set_memo_type(&mut self, v: StellarSignTx_StellarMemoType) {
self.memo_type = ::std::option::Option::Some(v);
}
pub fn get_memo_text(&self) -> &str {
match self.memo_text.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_memo_text(&mut self) {
self.memo_text.clear();
}
pub fn has_memo_text(&self) -> bool {
self.memo_text.is_some()
}
pub fn set_memo_text(&mut self, v: ::std::string::String) {
self.memo_text = ::protobuf::SingularField::some(v);
}
pub fn mut_memo_text(&mut self) -> &mut ::std::string::String {
if self.memo_text.is_none() {
self.memo_text.set_default();
}
self.memo_text.as_mut().unwrap()
}
pub fn take_memo_text(&mut self) -> ::std::string::String {
self.memo_text.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_memo_id(&self) -> u64 {
self.memo_id.unwrap_or(0)
}
pub fn clear_memo_id(&mut self) {
self.memo_id = ::std::option::Option::None;
}
pub fn has_memo_id(&self) -> bool {
self.memo_id.is_some()
}
pub fn set_memo_id(&mut self, v: u64) {
self.memo_id = ::std::option::Option::Some(v);
}
pub fn get_memo_hash(&self) -> &[u8] {
match self.memo_hash.as_ref() {
Some(v) => &v,
None => &[],
}
}
pub fn clear_memo_hash(&mut self) {
self.memo_hash.clear();
}
pub fn has_memo_hash(&self) -> bool {
self.memo_hash.is_some()
}
pub fn set_memo_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.memo_hash = ::protobuf::SingularField::some(v);
}
pub fn mut_memo_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.memo_hash.is_none() {
self.memo_hash.set_default();
}
self.memo_hash.as_mut().unwrap()
}
pub fn take_memo_hash(&mut self) -> ::std::vec::Vec<u8> {
self.memo_hash.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn get_num_operations(&self) -> u32 {
self.num_operations.unwrap_or(0)
}
pub fn clear_num_operations(&mut self) {
self.num_operations = ::std::option::Option::None;
}
pub fn has_num_operations(&self) -> bool {
self.num_operations.is_some()
}
pub fn set_num_operations(&mut self, v: u32) {
self.num_operations = ::std::option::Option::Some(v);
}
}
impl ::protobuf::Message for StellarSignTx {
fn is_initialized(&self) -> bool {
if self.network_passphrase.is_none() {
return false;
}
if self.source_account.is_none() {
return false;
}
if self.fee.is_none() {
return false;
}
if self.sequence_number.is_none() {
return false;
}
if self.timebounds_start.is_none() {
return false;
}
if self.timebounds_end.is_none() {
return false;
}
if self.memo_type.is_none() {
return false;
}
if self.num_operations.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
2 => {
::protobuf::rt::read_repeated_uint32_into(wire_type, is, &mut self.address_n)?;
},
3 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.network_passphrase)?;
},
4 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.source_account)?;
},
5 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint32()?;
self.fee = ::std::option::Option::Some(tmp);
},
6 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint64()?;
self.sequence_number = ::std::option::Option::Some(tmp);
},
8 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint32()?;
self.timebounds_start = ::std::option::Option::Some(tmp);
},
9 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint32()?;
self.timebounds_end = ::std::option::Option::Some(tmp);
},
10 => {
::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.memo_type, 10, &mut self.unknown_fields)?
},
11 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.memo_text)?;
},
12 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint64()?;
self.memo_id = ::std::option::Option::Some(tmp);
},
13 => {
::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.memo_hash)?;
},
14 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint32()?;
self.num_operations = ::std::option::Option::Some(tmp);
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.address_n {
my_size += ::protobuf::rt::value_size(2, *value, ::protobuf::wire_format::WireTypeVarint);
};
if let Some(ref v) = self.network_passphrase.as_ref() {
my_size += ::protobuf::rt::string_size(3, &v);
}
if let Some(ref v) = self.source_account.as_ref() {
my_size += ::protobuf::rt::string_size(4, &v);
}
if let Some(v) = self.fee {
my_size += ::protobuf::rt::value_size(5, v, ::protobuf::wire_format::WireTypeVarint);
}
if let Some(v) = self.sequence_number {
my_size += ::protobuf::rt::value_size(6, v, ::protobuf::wire_format::WireTypeVarint);
}
if let Some(v) = self.timebounds_start {
my_size += ::protobuf::rt::value_size(8, v, ::protobuf::wire_format::WireTypeVarint);
}
if let Some(v) = self.timebounds_end {
my_size += ::protobuf::rt::value_size(9, v, ::protobuf::wire_format::WireTypeVarint);
}
if let Some(v) = self.memo_type {
my_size += ::protobuf::rt::enum_size(10, v);
}
if let Some(ref v) = self.memo_text.as_ref() {
my_size += ::protobuf::rt::string_size(11, &v);
}
if let Some(v) = self.memo_id {
my_size += ::protobuf::rt::value_size(12, v, ::protobuf::wire_format::WireTypeVarint);
}
if let Some(ref v) = self.memo_hash.as_ref() {
my_size += ::protobuf::rt::bytes_size(13, &v);
}
if let Some(v) = self.num_operations {
my_size += ::protobuf::rt::value_size(14, v, ::protobuf::wire_format::WireTypeVarint);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
for v in &self.address_n {
os.write_uint32(2, *v)?;
};
if let Some(ref v) = self.network_passphrase.as_ref() {
os.write_string(3, &v)?;
}
if let Some(ref v) = self.source_account.as_ref() {
os.write_string(4, &v)?;
}
if let Some(v) = self.fee {
os.write_uint32(5, v)?;
}
if let Some(v) = self.sequence_number {
os.write_uint64(6, v)?;
}
if let Some(v) = self.timebounds_start {
os.write_uint32(8, v)?;
}
if let Some(v) = self.timebounds_end {
os.write_uint32(9, v)?;
}
if let Some(v) = self.memo_type {
os.write_enum(10, ::protobuf::ProtobufEnum::value(&v))?;
}
if let Some(ref v) = self.memo_text.as_ref() {
os.write_string(11, &v)?;
}
if let Some(v) = self.memo_id {
os.write_uint64(12, v)?;
}
if let Some(ref v) = self.memo_hash.as_ref() {
os.write_bytes(13, &v)?;
}
if let Some(v) = self.num_operations {
os.write_uint32(14, v)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> StellarSignTx {
StellarSignTx::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
"address_n",
|m: &StellarSignTx| { &m.address_n },
|m: &mut StellarSignTx| { &mut m.address_n },
));
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"network_passphrase",
|m: &StellarSignTx| { &m.network_passphrase },
|m: &mut StellarSignTx| { &mut m.network_passphrase },
));
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"source_account",
|m: &StellarSignTx| { &m.source_account },
|m: &mut StellarSignTx| { &mut m.source_account },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
"fee",
|m: &StellarSignTx| { &m.fee },
|m: &mut StellarSignTx| { &mut m.fee },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
"sequence_number",
|m: &StellarSignTx| { &m.sequence_number },
|m: &mut StellarSignTx| { &mut m.sequence_number },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
"timebounds_start",
|m: &StellarSignTx| { &m.timebounds_start },
|m: &mut StellarSignTx| { &mut m.timebounds_start },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
"timebounds_end",
|m: &StellarSignTx| { &m.timebounds_end },
|m: &mut StellarSignTx| { &mut m.timebounds_end },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<StellarSignTx_StellarMemoType>>(
"memo_type",
|m: &StellarSignTx| { &m.memo_type },
|m: &mut StellarSignTx| { &mut m.memo_type },
));
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"memo_text",
|m: &StellarSignTx| { &m.memo_text },
|m: &mut StellarSignTx| { &mut m.memo_text },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
"memo_id",
|m: &StellarSignTx| { &m.memo_id },
|m: &mut StellarSignTx| { &mut m.memo_id },
));
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"memo_hash",
|m: &StellarSignTx| { &m.memo_hash },
|m: &mut StellarSignTx| { &mut m.memo_hash },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
"num_operations",
|m: &StellarSignTx| { &m.num_operations },
|m: &mut StellarSignTx| { &mut m.num_operations },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<StellarSignTx>(
"StellarSignTx",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static StellarSignTx {
static instance: ::protobuf::rt::LazyV2<StellarSignTx> = ::protobuf::rt::LazyV2::INIT;
instance.get(StellarSignTx::new)
}
}
impl ::protobuf::Clear for StellarSignTx {
fn clear(&mut self) {
self.address_n.clear();
self.network_passphrase.clear();
self.source_account.clear();
self.fee = ::std::option::Option::None;
self.sequence_number = ::std::option::Option::None;
self.timebounds_start = ::std::option::Option::None;
self.timebounds_end = ::std::option::Option::None;
self.memo_type = ::std::option::Option::None;
self.memo_text.clear();
self.memo_id = ::std::option::Option::None;
self.memo_hash.clear();
self.num_operations = ::std::option::Option::None;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for StellarSignTx {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for StellarSignTx {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(Clone,PartialEq,Eq,Debug,Hash)]
pub enum StellarSignTx_StellarMemoType {
NONE = 0,
TEXT = 1,
ID = 2,
HASH = 3,
RETURN = 4,
}
impl ::protobuf::ProtobufEnum for StellarSignTx_StellarMemoType {
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<StellarSignTx_StellarMemoType> {
match value {
0 => ::std::option::Option::Some(StellarSignTx_StellarMemoType::NONE),
1 => ::std::option::Option::Some(StellarSignTx_StellarMemoType::TEXT),
2 => ::std::option::Option::Some(StellarSignTx_StellarMemoType::ID),
3 => ::std::option::Option::Some(StellarSignTx_StellarMemoType::HASH),
4 => ::std::option::Option::Some(StellarSignTx_StellarMemoType::RETURN),
_ => ::std::option::Option::None
}
}
fn values() -> &'static [Self] {
static values: &'static [StellarSignTx_StellarMemoType] = &[
StellarSignTx_StellarMemoType::NONE,
StellarSignTx_StellarMemoType::TEXT,
StellarSignTx_StellarMemoType::ID,
StellarSignTx_StellarMemoType::HASH,
StellarSignTx_StellarMemoType::RETURN,
];
values
}
fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
::protobuf::reflect::EnumDescriptor::new_pb_name::<StellarSignTx_StellarMemoType>("StellarSignTx.StellarMemoType", file_descriptor_proto())
})
}
}
impl ::std::marker::Copy for StellarSignTx_StellarMemoType {
}
impl ::std::default::Default for StellarSignTx_StellarMemoType {
fn default() -> Self {
StellarSignTx_StellarMemoType::NONE
}
}
impl ::protobuf::reflect::ProtobufValue for StellarSignTx_StellarMemoType {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
}
}
#[derive(PartialEq,Clone,Default)]
pub struct StellarTxOpRequest {
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a StellarTxOpRequest {
fn default() -> &'a StellarTxOpRequest {
<StellarTxOpRequest as ::protobuf::Message>::default_instance()
}
}
impl StellarTxOpRequest {
pub fn new() -> StellarTxOpRequest {
::std::default::Default::default()
}
}
impl ::protobuf::Message for StellarTxOpRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> StellarTxOpRequest {
StellarTxOpRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let fields = ::std::vec::Vec::new();
::protobuf::reflect::MessageDescriptor::new_pb_name::<StellarTxOpRequest>(
"StellarTxOpRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static StellarTxOpRequest {
static instance: ::protobuf::rt::LazyV2<StellarTxOpRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(StellarTxOpRequest::new)
}
}
impl ::protobuf::Clear for StellarTxOpRequest {
fn clear(&mut self) {
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for StellarTxOpRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for StellarTxOpRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct StellarPaymentOp {
source_account: ::protobuf::SingularField<::std::string::String>,
destination_account: ::protobuf::SingularField<::std::string::String>,
pub asset: ::protobuf::SingularPtrField<StellarAsset>,
amount: ::std::option::Option<i64>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a StellarPaymentOp {
fn default() -> &'a StellarPaymentOp {
<StellarPaymentOp as ::protobuf::Message>::default_instance()
}
}
impl StellarPaymentOp {
pub fn new() -> StellarPaymentOp {
::std::default::Default::default()
}
pub fn get_source_account(&self) -> &str {
match self.source_account.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_source_account(&mut self) {
self.source_account.clear();
}
pub fn has_source_account(&self) -> bool {
self.source_account.is_some()
}
pub fn set_source_account(&mut self, v: ::std::string::String) {
self.source_account = ::protobuf::SingularField::some(v);
}
pub fn mut_source_account(&mut self) -> &mut ::std::string::String {
if self.source_account.is_none() {
self.source_account.set_default();
}
self.source_account.as_mut().unwrap()
}
pub fn take_source_account(&mut self) -> ::std::string::String {
self.source_account.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_destination_account(&self) -> &str {
match self.destination_account.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_destination_account(&mut self) {
self.destination_account.clear();
}
pub fn has_destination_account(&self) -> bool {
self.destination_account.is_some()
}
pub fn set_destination_account(&mut self, v: ::std::string::String) {
self.destination_account = ::protobuf::SingularField::some(v);
}
pub fn mut_destination_account(&mut self) -> &mut ::std::string::String {
if self.destination_account.is_none() {
self.destination_account.set_default();
}
self.destination_account.as_mut().unwrap()
}
pub fn take_destination_account(&mut self) -> ::std::string::String {
self.destination_account.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_asset(&self) -> &StellarAsset {
self.asset.as_ref().unwrap_or_else(|| <StellarAsset as ::protobuf::Message>::default_instance())
}
pub fn clear_asset(&mut self) {
self.asset.clear();
}
pub fn has_asset(&self) -> bool {
self.asset.is_some()
}
pub fn set_asset(&mut self, v: StellarAsset) {
self.asset = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_asset(&mut self) -> &mut StellarAsset {
if self.asset.is_none() {
self.asset.set_default();
}
self.asset.as_mut().unwrap()
}
pub fn take_asset(&mut self) -> StellarAsset {
self.asset.take().unwrap_or_else(|| StellarAsset::new())
}
pub fn get_amount(&self) -> i64 {
self.amount.unwrap_or(0)
}
pub fn clear_amount(&mut self) {
self.amount = ::std::option::Option::None;
}
pub fn has_amount(&self) -> bool {
self.amount.is_some()
}
pub fn set_amount(&mut self, v: i64) {
self.amount = ::std::option::Option::Some(v);
}
}
impl ::protobuf::Message for StellarPaymentOp {
fn is_initialized(&self) -> bool {
if self.destination_account.is_none() {
return false;
}
if self.asset.is_none() {
return false;
}
if self.amount.is_none() {
return false;
}
for v in &self.asset {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.source_account)?;
},
2 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.destination_account)?;
},
3 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.asset)?;
},
4 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_sint64()?;
self.amount = ::std::option::Option::Some(tmp);
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(ref v) = self.source_account.as_ref() {
my_size += ::protobuf::rt::string_size(1, &v);
}
if let Some(ref v) = self.destination_account.as_ref() {
my_size += ::protobuf::rt::string_size(2, &v);
}
if let Some(ref v) = self.asset.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(v) = self.amount {
my_size += ::protobuf::rt::value_varint_zigzag_size(4, v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.source_account.as_ref() {
os.write_string(1, &v)?;
}
if let Some(ref v) = self.destination_account.as_ref() {
os.write_string(2, &v)?;
}
if let Some(ref v) = self.asset.as_ref() {
os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(v) = self.amount {
os.write_sint64(4, v)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> StellarPaymentOp {
StellarPaymentOp::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"source_account",
|m: &StellarPaymentOp| { &m.source_account },
|m: &mut StellarPaymentOp| { &mut m.source_account },
));
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"destination_account",
|m: &StellarPaymentOp| { &m.destination_account },
|m: &mut StellarPaymentOp| { &mut m.destination_account },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<StellarAsset>>(
"asset",
|m: &StellarPaymentOp| { &m.asset },
|m: &mut StellarPaymentOp| { &mut m.asset },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeSint64>(
"amount",
|m: &StellarPaymentOp| { &m.amount },
|m: &mut StellarPaymentOp| { &mut m.amount },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<StellarPaymentOp>(
"StellarPaymentOp",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static StellarPaymentOp {
static instance: ::protobuf::rt::LazyV2<StellarPaymentOp> = ::protobuf::rt::LazyV2::INIT;
instance.get(StellarPaymentOp::new)
}
}
impl ::protobuf::Clear for StellarPaymentOp {
fn clear(&mut self) {
self.source_account.clear();
self.destination_account.clear();
self.asset.clear();
self.amount = ::std::option::Option::None;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for StellarPaymentOp {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for StellarPaymentOp {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct StellarCreateAccountOp {
source_account: ::protobuf::SingularField<::std::string::String>,
new_account: ::protobuf::SingularField<::std::string::String>,
starting_balance: ::std::option::Option<i64>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a StellarCreateAccountOp {
fn default() -> &'a StellarCreateAccountOp {
<StellarCreateAccountOp as ::protobuf::Message>::default_instance()
}
}
impl StellarCreateAccountOp {
pub fn new() -> StellarCreateAccountOp {
::std::default::Default::default()
}
pub fn get_source_account(&self) -> &str {
match self.source_account.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_source_account(&mut self) {
self.source_account.clear();
}
pub fn has_source_account(&self) -> bool {
self.source_account.is_some()
}
pub fn set_source_account(&mut self, v: ::std::string::String) {
self.source_account = ::protobuf::SingularField::some(v);
}
pub fn mut_source_account(&mut self) -> &mut ::std::string::String {
if self.source_account.is_none() {
self.source_account.set_default();
}
self.source_account.as_mut().unwrap()
}
pub fn take_source_account(&mut self) -> ::std::string::String {
self.source_account.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_new_account(&self) -> &str {
match self.new_account.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_new_account(&mut self) {
self.new_account.clear();
}
pub fn has_new_account(&self) -> bool {
self.new_account.is_some()
}
pub fn set_new_account(&mut self, v: ::std::string::String) {
self.new_account = ::protobuf::SingularField::some(v);
}
pub fn mut_new_account(&mut self) -> &mut ::std::string::String {
if self.new_account.is_none() {
self.new_account.set_default();
}
self.new_account.as_mut().unwrap()
}
pub fn take_new_account(&mut self) -> ::std::string::String {
self.new_account.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_starting_balance(&self) -> i64 {
self.starting_balance.unwrap_or(0)
}
pub fn clear_starting_balance(&mut self) {
self.starting_balance = ::std::option::Option::None;
}
pub fn has_starting_balance(&self) -> bool {
self.starting_balance.is_some()
}
pub fn set_starting_balance(&mut self, v: i64) {
self.starting_balance = ::std::option::Option::Some(v);
}
}
impl ::protobuf::Message for StellarCreateAccountOp {
fn is_initialized(&self) -> bool {
if self.new_account.is_none() {
return false;
}
if self.starting_balance.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.source_account)?;
},
2 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.new_account)?;
},
3 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_sint64()?;
self.starting_balance = ::std::option::Option::Some(tmp);
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(ref v) = self.source_account.as_ref() {
my_size += ::protobuf::rt::string_size(1, &v);
}
if let Some(ref v) = self.new_account.as_ref() {
my_size += ::protobuf::rt::string_size(2, &v);
}
if let Some(v) = self.starting_balance {
my_size += ::protobuf::rt::value_varint_zigzag_size(3, v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.source_account.as_ref() {
os.write_string(1, &v)?;
}
if let Some(ref v) = self.new_account.as_ref() {
os.write_string(2, &v)?;
}
if let Some(v) = self.starting_balance {
os.write_sint64(3, v)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> StellarCreateAccountOp {
StellarCreateAccountOp::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"source_account",
|m: &StellarCreateAccountOp| { &m.source_account },
|m: &mut StellarCreateAccountOp| { &mut m.source_account },
));
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"new_account",
|m: &StellarCreateAccountOp| { &m.new_account },
|m: &mut StellarCreateAccountOp| { &mut m.new_account },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeSint64>(
"starting_balance",
|m: &StellarCreateAccountOp| { &m.starting_balance },
|m: &mut StellarCreateAccountOp| { &mut m.starting_balance },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<StellarCreateAccountOp>(
"StellarCreateAccountOp",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static StellarCreateAccountOp {
static instance: ::protobuf::rt::LazyV2<StellarCreateAccountOp> = ::protobuf::rt::LazyV2::INIT;
instance.get(StellarCreateAccountOp::new)
}
}
impl ::protobuf::Clear for StellarCreateAccountOp {
fn clear(&mut self) {
self.source_account.clear();
self.new_account.clear();
self.starting_balance = ::std::option::Option::None;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for StellarCreateAccountOp {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for StellarCreateAccountOp {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct StellarPathPaymentStrictReceiveOp {
source_account: ::protobuf::SingularField<::std::string::String>,
pub send_asset: ::protobuf::SingularPtrField<StellarAsset>,
send_max: ::std::option::Option<i64>,
destination_account: ::protobuf::SingularField<::std::string::String>,
pub destination_asset: ::protobuf::SingularPtrField<StellarAsset>,
destination_amount: ::std::option::Option<i64>,
pub paths: ::protobuf::RepeatedField<StellarAsset>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a StellarPathPaymentStrictReceiveOp {
fn default() -> &'a StellarPathPaymentStrictReceiveOp {
<StellarPathPaymentStrictReceiveOp as ::protobuf::Message>::default_instance()
}
}
impl StellarPathPaymentStrictReceiveOp {
pub fn new() -> StellarPathPaymentStrictReceiveOp {
::std::default::Default::default()
}
pub fn get_source_account(&self) -> &str {
match self.source_account.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_source_account(&mut self) {
self.source_account.clear();
}
pub fn has_source_account(&self) -> bool {
self.source_account.is_some()
}
pub fn set_source_account(&mut self, v: ::std::string::String) {
self.source_account = ::protobuf::SingularField::some(v);
}
pub fn mut_source_account(&mut self) -> &mut ::std::string::String {
if self.source_account.is_none() {
self.source_account.set_default();
}
self.source_account.as_mut().unwrap()
}
pub fn take_source_account(&mut self) -> ::std::string::String {
self.source_account.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_send_asset(&self) -> &StellarAsset {
self.send_asset.as_ref().unwrap_or_else(|| <StellarAsset as ::protobuf::Message>::default_instance())
}
pub fn clear_send_asset(&mut self) {
self.send_asset.clear();
}
pub fn has_send_asset(&self) -> bool {
self.send_asset.is_some()
}
pub fn set_send_asset(&mut self, v: StellarAsset) {
self.send_asset = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_send_asset(&mut self) -> &mut StellarAsset {
if self.send_asset.is_none() {
self.send_asset.set_default();
}
self.send_asset.as_mut().unwrap()
}
pub fn take_send_asset(&mut self) -> StellarAsset {
self.send_asset.take().unwrap_or_else(|| StellarAsset::new())
}
pub fn get_send_max(&self) -> i64 {
self.send_max.unwrap_or(0)
}
pub fn clear_send_max(&mut self) {
self.send_max = ::std::option::Option::None;
}
pub fn has_send_max(&self) -> bool {
self.send_max.is_some()
}
pub fn set_send_max(&mut self, v: i64) {
self.send_max = ::std::option::Option::Some(v);
}
pub fn get_destination_account(&self) -> &str {
match self.destination_account.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_destination_account(&mut self) {
self.destination_account.clear();
}
pub fn has_destination_account(&self) -> bool {
self.destination_account.is_some()
}
pub fn set_destination_account(&mut self, v: ::std::string::String) {
self.destination_account = ::protobuf::SingularField::some(v);
}
pub fn mut_destination_account(&mut self) -> &mut ::std::string::String {
if self.destination_account.is_none() {
self.destination_account.set_default();
}
self.destination_account.as_mut().unwrap()
}
pub fn take_destination_account(&mut self) -> ::std::string::String {
self.destination_account.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_destination_asset(&self) -> &StellarAsset {
self.destination_asset.as_ref().unwrap_or_else(|| <StellarAsset as ::protobuf::Message>::default_instance())
}
pub fn clear_destination_asset(&mut self) {
self.destination_asset.clear();
}
pub fn has_destination_asset(&self) -> bool {
self.destination_asset.is_some()
}
pub fn set_destination_asset(&mut self, v: StellarAsset) {
self.destination_asset = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_destination_asset(&mut self) -> &mut StellarAsset {
if self.destination_asset.is_none() {
self.destination_asset.set_default();
}
self.destination_asset.as_mut().unwrap()
}
pub fn take_destination_asset(&mut self) -> StellarAsset {
self.destination_asset.take().unwrap_or_else(|| StellarAsset::new())
}
pub fn get_destination_amount(&self) -> i64 {
self.destination_amount.unwrap_or(0)
}
pub fn clear_destination_amount(&mut self) {
self.destination_amount = ::std::option::Option::None;
}
pub fn has_destination_amount(&self) -> bool {
self.destination_amount.is_some()
}
pub fn set_destination_amount(&mut self, v: i64) {
self.destination_amount = ::std::option::Option::Some(v);
}
pub fn get_paths(&self) -> &[StellarAsset] {
&self.paths
}
pub fn clear_paths(&mut self) {
self.paths.clear();
}
pub fn set_paths(&mut self, v: ::protobuf::RepeatedField<StellarAsset>) {
self.paths = v;
}
pub fn mut_paths(&mut self) -> &mut ::protobuf::RepeatedField<StellarAsset> {
&mut self.paths
}
pub fn take_paths(&mut self) -> ::protobuf::RepeatedField<StellarAsset> {
::std::mem::replace(&mut self.paths, ::protobuf::RepeatedField::new())
}
}
impl ::protobuf::Message for StellarPathPaymentStrictReceiveOp {
fn is_initialized(&self) -> bool {
if self.send_asset.is_none() {
return false;
}
if self.send_max.is_none() {
return false;
}
if self.destination_account.is_none() {
return false;
}
if self.destination_asset.is_none() {
return false;
}
if self.destination_amount.is_none() {
return false;
}
for v in &self.send_asset {
if !v.is_initialized() {
return false;
}
};
for v in &self.destination_asset {
if !v.is_initialized() {
return false;
}
};
for v in &self.paths {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.source_account)?;
},
2 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.send_asset)?;
},
3 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_sint64()?;
self.send_max = ::std::option::Option::Some(tmp);
},
4 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.destination_account)?;
},
5 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.destination_asset)?;
},
6 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_sint64()?;
self.destination_amount = ::std::option::Option::Some(tmp);
},
7 => {
::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.paths)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(ref v) = self.source_account.as_ref() {
my_size += ::protobuf::rt::string_size(1, &v);
}
if let Some(ref v) = self.send_asset.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(v) = self.send_max {
my_size += ::protobuf::rt::value_varint_zigzag_size(3, v);
}
if let Some(ref v) = self.destination_account.as_ref() {
my_size += ::protobuf::rt::string_size(4, &v);
}
if let Some(ref v) = self.destination_asset.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(v) = self.destination_amount {
my_size += ::protobuf::rt::value_varint_zigzag_size(6, v);
}
for value in &self.paths {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.source_account.as_ref() {
os.write_string(1, &v)?;
}
if let Some(ref v) = self.send_asset.as_ref() {
os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(v) = self.send_max {
os.write_sint64(3, v)?;
}
if let Some(ref v) = self.destination_account.as_ref() {
os.write_string(4, &v)?;
}
if let Some(ref v) = self.destination_asset.as_ref() {
os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(v) = self.destination_amount {
os.write_sint64(6, v)?;
}
for v in &self.paths {
os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
};
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> StellarPathPaymentStrictReceiveOp {
StellarPathPaymentStrictReceiveOp::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"source_account",
|m: &StellarPathPaymentStrictReceiveOp| { &m.source_account },
|m: &mut StellarPathPaymentStrictReceiveOp| { &mut m.source_account },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<StellarAsset>>(
"send_asset",
|m: &StellarPathPaymentStrictReceiveOp| { &m.send_asset },
|m: &mut StellarPathPaymentStrictReceiveOp| { &mut m.send_asset },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeSint64>(
"send_max",
|m: &StellarPathPaymentStrictReceiveOp| { &m.send_max },
|m: &mut StellarPathPaymentStrictReceiveOp| { &mut m.send_max },
));
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"destination_account",
|m: &StellarPathPaymentStrictReceiveOp| { &m.destination_account },
|m: &mut StellarPathPaymentStrictReceiveOp| { &mut m.destination_account },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<StellarAsset>>(
"destination_asset",
|m: &StellarPathPaymentStrictReceiveOp| { &m.destination_asset },
|m: &mut StellarPathPaymentStrictReceiveOp| { &mut m.destination_asset },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeSint64>(
"destination_amount",
|m: &StellarPathPaymentStrictReceiveOp| { &m.destination_amount },
|m: &mut StellarPathPaymentStrictReceiveOp| { &mut m.destination_amount },
));
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<StellarAsset>>(
"paths",
|m: &StellarPathPaymentStrictReceiveOp| { &m.paths },
|m: &mut StellarPathPaymentStrictReceiveOp| { &mut m.paths },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<StellarPathPaymentStrictReceiveOp>(
"StellarPathPaymentStrictReceiveOp",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static StellarPathPaymentStrictReceiveOp {
static instance: ::protobuf::rt::LazyV2<StellarPathPaymentStrictReceiveOp> = ::protobuf::rt::LazyV2::INIT;
instance.get(StellarPathPaymentStrictReceiveOp::new)
}
}
impl ::protobuf::Clear for StellarPathPaymentStrictReceiveOp {
fn clear(&mut self) {
self.source_account.clear();
self.send_asset.clear();
self.send_max = ::std::option::Option::None;
self.destination_account.clear();
self.destination_asset.clear();
self.destination_amount = ::std::option::Option::None;
self.paths.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for StellarPathPaymentStrictReceiveOp {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for StellarPathPaymentStrictReceiveOp {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct StellarPathPaymentStrictSendOp {
source_account: ::protobuf::SingularField<::std::string::String>,
pub send_asset: ::protobuf::SingularPtrField<StellarAsset>,
send_amount: ::std::option::Option<i64>,
destination_account: ::protobuf::SingularField<::std::string::String>,
pub destination_asset: ::protobuf::SingularPtrField<StellarAsset>,
destination_min: ::std::option::Option<i64>,
pub paths: ::protobuf::RepeatedField<StellarAsset>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a StellarPathPaymentStrictSendOp {
fn default() -> &'a StellarPathPaymentStrictSendOp {
<StellarPathPaymentStrictSendOp as ::protobuf::Message>::default_instance()
}
}
impl StellarPathPaymentStrictSendOp {
pub fn new() -> StellarPathPaymentStrictSendOp {
::std::default::Default::default()
}
pub fn get_source_account(&self) -> &str {
match self.source_account.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_source_account(&mut self) {
self.source_account.clear();
}
pub fn has_source_account(&self) -> bool {
self.source_account.is_some()
}
pub fn set_source_account(&mut self, v: ::std::string::String) {
self.source_account = ::protobuf::SingularField::some(v);
}
pub fn mut_source_account(&mut self) -> &mut ::std::string::String {
if self.source_account.is_none() {
self.source_account.set_default();
}
self.source_account.as_mut().unwrap()
}
pub fn take_source_account(&mut self) -> ::std::string::String {
self.source_account.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_send_asset(&self) -> &StellarAsset {
self.send_asset.as_ref().unwrap_or_else(|| <StellarAsset as ::protobuf::Message>::default_instance())
}
pub fn clear_send_asset(&mut self) {
self.send_asset.clear();
}
pub fn has_send_asset(&self) -> bool {
self.send_asset.is_some()
}
pub fn set_send_asset(&mut self, v: StellarAsset) {
self.send_asset = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_send_asset(&mut self) -> &mut StellarAsset {
if self.send_asset.is_none() {
self.send_asset.set_default();
}
self.send_asset.as_mut().unwrap()
}
pub fn take_send_asset(&mut self) -> StellarAsset {
self.send_asset.take().unwrap_or_else(|| StellarAsset::new())
}
pub fn get_send_amount(&self) -> i64 {
self.send_amount.unwrap_or(0)
}
pub fn clear_send_amount(&mut self) {
self.send_amount = ::std::option::Option::None;
}
pub fn has_send_amount(&self) -> bool {
self.send_amount.is_some()
}
pub fn set_send_amount(&mut self, v: i64) {
self.send_amount = ::std::option::Option::Some(v);
}
pub fn get_destination_account(&self) -> &str {
match self.destination_account.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_destination_account(&mut self) {
self.destination_account.clear();
}
pub fn has_destination_account(&self) -> bool {
self.destination_account.is_some()
}
pub fn set_destination_account(&mut self, v: ::std::string::String) {
self.destination_account = ::protobuf::SingularField::some(v);
}
pub fn mut_destination_account(&mut self) -> &mut ::std::string::String {
if self.destination_account.is_none() {
self.destination_account.set_default();
}
self.destination_account.as_mut().unwrap()
}
pub fn take_destination_account(&mut self) -> ::std::string::String {
self.destination_account.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_destination_asset(&self) -> &StellarAsset {
self.destination_asset.as_ref().unwrap_or_else(|| <StellarAsset as ::protobuf::Message>::default_instance())
}
pub fn clear_destination_asset(&mut self) {
self.destination_asset.clear();
}
pub fn has_destination_asset(&self) -> bool {
self.destination_asset.is_some()
}
pub fn set_destination_asset(&mut self, v: StellarAsset) {
self.destination_asset = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_destination_asset(&mut self) -> &mut StellarAsset {
if self.destination_asset.is_none() {
self.destination_asset.set_default();
}
self.destination_asset.as_mut().unwrap()
}
pub fn take_destination_asset(&mut self) -> StellarAsset {
self.destination_asset.take().unwrap_or_else(|| StellarAsset::new())
}
pub fn get_destination_min(&self) -> i64 {
self.destination_min.unwrap_or(0)
}
pub fn clear_destination_min(&mut self) {
self.destination_min = ::std::option::Option::None;
}
pub fn has_destination_min(&self) -> bool {
self.destination_min.is_some()
}
pub fn set_destination_min(&mut self, v: i64) {
self.destination_min = ::std::option::Option::Some(v);
}
pub fn get_paths(&self) -> &[StellarAsset] {
&self.paths
}
pub fn clear_paths(&mut self) {
self.paths.clear();
}
pub fn set_paths(&mut self, v: ::protobuf::RepeatedField<StellarAsset>) {
self.paths = v;
}
pub fn mut_paths(&mut self) -> &mut ::protobuf::RepeatedField<StellarAsset> {
&mut self.paths
}
pub fn take_paths(&mut self) -> ::protobuf::RepeatedField<StellarAsset> {
::std::mem::replace(&mut self.paths, ::protobuf::RepeatedField::new())
}
}
impl ::protobuf::Message for StellarPathPaymentStrictSendOp {
fn is_initialized(&self) -> bool {
if self.send_asset.is_none() {
return false;
}
if self.send_amount.is_none() {
return false;
}
if self.destination_account.is_none() {
return false;
}
if self.destination_asset.is_none() {
return false;
}
if self.destination_min.is_none() {
return false;
}
for v in &self.send_asset {
if !v.is_initialized() {
return false;
}
};
for v in &self.destination_asset {
if !v.is_initialized() {
return false;
}
};
for v in &self.paths {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.source_account)?;
},
2 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.send_asset)?;
},
3 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_sint64()?;
self.send_amount = ::std::option::Option::Some(tmp);
},
4 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.destination_account)?;
},
5 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.destination_asset)?;
},
6 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_sint64()?;
self.destination_min = ::std::option::Option::Some(tmp);
},
7 => {
::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.paths)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(ref v) = self.source_account.as_ref() {
my_size += ::protobuf::rt::string_size(1, &v);
}
if let Some(ref v) = self.send_asset.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(v) = self.send_amount {
my_size += ::protobuf::rt::value_varint_zigzag_size(3, v);
}
if let Some(ref v) = self.destination_account.as_ref() {
my_size += ::protobuf::rt::string_size(4, &v);
}
if let Some(ref v) = self.destination_asset.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(v) = self.destination_min {
my_size += ::protobuf::rt::value_varint_zigzag_size(6, v);
}
for value in &self.paths {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.source_account.as_ref() {
os.write_string(1, &v)?;
}
if let Some(ref v) = self.send_asset.as_ref() {
os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(v) = self.send_amount {
os.write_sint64(3, v)?;
}
if let Some(ref v) = self.destination_account.as_ref() {
os.write_string(4, &v)?;
}
if let Some(ref v) = self.destination_asset.as_ref() {
os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(v) = self.destination_min {
os.write_sint64(6, v)?;
}
for v in &self.paths {
os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
};
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> StellarPathPaymentStrictSendOp {
StellarPathPaymentStrictSendOp::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"source_account",
|m: &StellarPathPaymentStrictSendOp| { &m.source_account },
|m: &mut StellarPathPaymentStrictSendOp| { &mut m.source_account },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<StellarAsset>>(
"send_asset",
|m: &StellarPathPaymentStrictSendOp| { &m.send_asset },
|m: &mut StellarPathPaymentStrictSendOp| { &mut m.send_asset },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeSint64>(
"send_amount",
|m: &StellarPathPaymentStrictSendOp| { &m.send_amount },
|m: &mut StellarPathPaymentStrictSendOp| { &mut m.send_amount },
));
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"destination_account",
|m: &StellarPathPaymentStrictSendOp| { &m.destination_account },
|m: &mut StellarPathPaymentStrictSendOp| { &mut m.destination_account },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<StellarAsset>>(
"destination_asset",
|m: &StellarPathPaymentStrictSendOp| { &m.destination_asset },
|m: &mut StellarPathPaymentStrictSendOp| { &mut m.destination_asset },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeSint64>(
"destination_min",
|m: &StellarPathPaymentStrictSendOp| { &m.destination_min },
|m: &mut StellarPathPaymentStrictSendOp| { &mut m.destination_min },
));
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<StellarAsset>>(
"paths",
|m: &StellarPathPaymentStrictSendOp| { &m.paths },
|m: &mut StellarPathPaymentStrictSendOp| { &mut m.paths },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<StellarPathPaymentStrictSendOp>(
"StellarPathPaymentStrictSendOp",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static StellarPathPaymentStrictSendOp {
static instance: ::protobuf::rt::LazyV2<StellarPathPaymentStrictSendOp> = ::protobuf::rt::LazyV2::INIT;
instance.get(StellarPathPaymentStrictSendOp::new)
}
}
impl ::protobuf::Clear for StellarPathPaymentStrictSendOp {
fn clear(&mut self) {
self.source_account.clear();
self.send_asset.clear();
self.send_amount = ::std::option::Option::None;
self.destination_account.clear();
self.destination_asset.clear();
self.destination_min = ::std::option::Option::None;
self.paths.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for StellarPathPaymentStrictSendOp {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for StellarPathPaymentStrictSendOp {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct StellarManageSellOfferOp {
source_account: ::protobuf::SingularField<::std::string::String>,
pub selling_asset: ::protobuf::SingularPtrField<StellarAsset>,
pub buying_asset: ::protobuf::SingularPtrField<StellarAsset>,
amount: ::std::option::Option<i64>,
price_n: ::std::option::Option<u32>,
price_d: ::std::option::Option<u32>,
offer_id: ::std::option::Option<u64>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a StellarManageSellOfferOp {
fn default() -> &'a StellarManageSellOfferOp {
<StellarManageSellOfferOp as ::protobuf::Message>::default_instance()
}
}
impl StellarManageSellOfferOp {
pub fn new() -> StellarManageSellOfferOp {
::std::default::Default::default()
}
pub fn get_source_account(&self) -> &str {
match self.source_account.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_source_account(&mut self) {
self.source_account.clear();
}
pub fn has_source_account(&self) -> bool {
self.source_account.is_some()
}
pub fn set_source_account(&mut self, v: ::std::string::String) {
self.source_account = ::protobuf::SingularField::some(v);
}
pub fn mut_source_account(&mut self) -> &mut ::std::string::String {
if self.source_account.is_none() {
self.source_account.set_default();
}
self.source_account.as_mut().unwrap()
}
pub fn take_source_account(&mut self) -> ::std::string::String {
self.source_account.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_selling_asset(&self) -> &StellarAsset {
self.selling_asset.as_ref().unwrap_or_else(|| <StellarAsset as ::protobuf::Message>::default_instance())
}
pub fn clear_selling_asset(&mut self) {
self.selling_asset.clear();
}
pub fn has_selling_asset(&self) -> bool {
self.selling_asset.is_some()
}
pub fn set_selling_asset(&mut self, v: StellarAsset) {
self.selling_asset = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_selling_asset(&mut self) -> &mut StellarAsset {
if self.selling_asset.is_none() {
self.selling_asset.set_default();
}
self.selling_asset.as_mut().unwrap()
}
pub fn take_selling_asset(&mut self) -> StellarAsset {
self.selling_asset.take().unwrap_or_else(|| StellarAsset::new())
}
pub fn get_buying_asset(&self) -> &StellarAsset {
self.buying_asset.as_ref().unwrap_or_else(|| <StellarAsset as ::protobuf::Message>::default_instance())
}
pub fn clear_buying_asset(&mut self) {
self.buying_asset.clear();
}
pub fn has_buying_asset(&self) -> bool {
self.buying_asset.is_some()
}
pub fn set_buying_asset(&mut self, v: StellarAsset) {
self.buying_asset = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_buying_asset(&mut self) -> &mut StellarAsset {
if self.buying_asset.is_none() {
self.buying_asset.set_default();
}
self.buying_asset.as_mut().unwrap()
}
pub fn take_buying_asset(&mut self) -> StellarAsset {
self.buying_asset.take().unwrap_or_else(|| StellarAsset::new())
}
pub fn get_amount(&self) -> i64 {
self.amount.unwrap_or(0)
}
pub fn clear_amount(&mut self) {
self.amount = ::std::option::Option::None;
}
pub fn has_amount(&self) -> bool {
self.amount.is_some()
}
pub fn set_amount(&mut self, v: i64) {
self.amount = ::std::option::Option::Some(v);
}
pub fn get_price_n(&self) -> u32 {
self.price_n.unwrap_or(0)
}
pub fn clear_price_n(&mut self) {
self.price_n = ::std::option::Option::None;
}
pub fn has_price_n(&self) -> bool {
self.price_n.is_some()
}
pub fn set_price_n(&mut self, v: u32) {
self.price_n = ::std::option::Option::Some(v);
}
pub fn get_price_d(&self) -> u32 {
self.price_d.unwrap_or(0)
}
pub fn clear_price_d(&mut self) {
self.price_d = ::std::option::Option::None;
}
pub fn has_price_d(&self) -> bool {
self.price_d.is_some()
}
pub fn set_price_d(&mut self, v: u32) {
self.price_d = ::std::option::Option::Some(v);
}
pub fn get_offer_id(&self) -> u64 {
self.offer_id.unwrap_or(0)
}
pub fn clear_offer_id(&mut self) {
self.offer_id = ::std::option::Option::None;
}
pub fn has_offer_id(&self) -> bool {
self.offer_id.is_some()
}
pub fn set_offer_id(&mut self, v: u64) {
self.offer_id = ::std::option::Option::Some(v);
}
}
impl ::protobuf::Message for StellarManageSellOfferOp {
fn is_initialized(&self) -> bool {
if self.selling_asset.is_none() {
return false;
}
if self.buying_asset.is_none() {
return false;
}
if self.amount.is_none() {
return false;
}
if self.price_n.is_none() {
return false;
}
if self.price_d.is_none() {
return false;
}
if self.offer_id.is_none() {
return false;
}
for v in &self.selling_asset {
if !v.is_initialized() {
return false;
}
};
for v in &self.buying_asset {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.source_account)?;
},
2 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.selling_asset)?;
},
3 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.buying_asset)?;
},
4 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_sint64()?;
self.amount = ::std::option::Option::Some(tmp);
},
5 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint32()?;
self.price_n = ::std::option::Option::Some(tmp);
},
6 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint32()?;
self.price_d = ::std::option::Option::Some(tmp);
},
7 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint64()?;
self.offer_id = ::std::option::Option::Some(tmp);
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(ref v) = self.source_account.as_ref() {
my_size += ::protobuf::rt::string_size(1, &v);
}
if let Some(ref v) = self.selling_asset.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(ref v) = self.buying_asset.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(v) = self.amount {
my_size += ::protobuf::rt::value_varint_zigzag_size(4, v);
}
if let Some(v) = self.price_n {
my_size += ::protobuf::rt::value_size(5, v, ::protobuf::wire_format::WireTypeVarint);
}
if let Some(v) = self.price_d {
my_size += ::protobuf::rt::value_size(6, v, ::protobuf::wire_format::WireTypeVarint);
}
if let Some(v) = self.offer_id {
my_size += ::protobuf::rt::value_size(7, v, ::protobuf::wire_format::WireTypeVarint);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.source_account.as_ref() {
os.write_string(1, &v)?;
}
if let Some(ref v) = self.selling_asset.as_ref() {
os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(ref v) = self.buying_asset.as_ref() {
os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(v) = self.amount {
os.write_sint64(4, v)?;
}
if let Some(v) = self.price_n {
os.write_uint32(5, v)?;
}
if let Some(v) = self.price_d {
os.write_uint32(6, v)?;
}
if let Some(v) = self.offer_id {
os.write_uint64(7, v)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> StellarManageSellOfferOp {
StellarManageSellOfferOp::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"source_account",
|m: &StellarManageSellOfferOp| { &m.source_account },
|m: &mut StellarManageSellOfferOp| { &mut m.source_account },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<StellarAsset>>(
"selling_asset",
|m: &StellarManageSellOfferOp| { &m.selling_asset },
|m: &mut StellarManageSellOfferOp| { &mut m.selling_asset },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<StellarAsset>>(
"buying_asset",
|m: &StellarManageSellOfferOp| { &m.buying_asset },
|m: &mut StellarManageSellOfferOp| { &mut m.buying_asset },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeSint64>(
"amount",
|m: &StellarManageSellOfferOp| { &m.amount },
|m: &mut StellarManageSellOfferOp| { &mut m.amount },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
"price_n",
|m: &StellarManageSellOfferOp| { &m.price_n },
|m: &mut StellarManageSellOfferOp| { &mut m.price_n },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
"price_d",
|m: &StellarManageSellOfferOp| { &m.price_d },
|m: &mut StellarManageSellOfferOp| { &mut m.price_d },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
"offer_id",
|m: &StellarManageSellOfferOp| { &m.offer_id },
|m: &mut StellarManageSellOfferOp| { &mut m.offer_id },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<StellarManageSellOfferOp>(
"StellarManageSellOfferOp",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static StellarManageSellOfferOp {
static instance: ::protobuf::rt::LazyV2<StellarManageSellOfferOp> = ::protobuf::rt::LazyV2::INIT;
instance.get(StellarManageSellOfferOp::new)
}
}
impl ::protobuf::Clear for StellarManageSellOfferOp {
fn clear(&mut self) {
self.source_account.clear();
self.selling_asset.clear();
self.buying_asset.clear();
self.amount = ::std::option::Option::None;
self.price_n = ::std::option::Option::None;
self.price_d = ::std::option::Option::None;
self.offer_id = ::std::option::Option::None;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for StellarManageSellOfferOp {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for StellarManageSellOfferOp {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct StellarManageBuyOfferOp {
source_account: ::protobuf::SingularField<::std::string::String>,
pub selling_asset: ::protobuf::SingularPtrField<StellarAsset>,
pub buying_asset: ::protobuf::SingularPtrField<StellarAsset>,
amount: ::std::option::Option<i64>,
price_n: ::std::option::Option<u32>,
price_d: ::std::option::Option<u32>,
offer_id: ::std::option::Option<u64>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a StellarManageBuyOfferOp {
fn default() -> &'a StellarManageBuyOfferOp {
<StellarManageBuyOfferOp as ::protobuf::Message>::default_instance()
}
}
impl StellarManageBuyOfferOp {
pub fn new() -> StellarManageBuyOfferOp {
::std::default::Default::default()
}
pub fn get_source_account(&self) -> &str {
match self.source_account.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_source_account(&mut self) {
self.source_account.clear();
}
pub fn has_source_account(&self) -> bool {
self.source_account.is_some()
}
pub fn set_source_account(&mut self, v: ::std::string::String) {
self.source_account = ::protobuf::SingularField::some(v);
}
pub fn mut_source_account(&mut self) -> &mut ::std::string::String {
if self.source_account.is_none() {
self.source_account.set_default();
}
self.source_account.as_mut().unwrap()
}
pub fn take_source_account(&mut self) -> ::std::string::String {
self.source_account.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_selling_asset(&self) -> &StellarAsset {
self.selling_asset.as_ref().unwrap_or_else(|| <StellarAsset as ::protobuf::Message>::default_instance())
}
pub fn clear_selling_asset(&mut self) {
self.selling_asset.clear();
}
pub fn has_selling_asset(&self) -> bool {
self.selling_asset.is_some()
}
pub fn set_selling_asset(&mut self, v: StellarAsset) {
self.selling_asset = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_selling_asset(&mut self) -> &mut StellarAsset {
if self.selling_asset.is_none() {
self.selling_asset.set_default();
}
self.selling_asset.as_mut().unwrap()
}
pub fn take_selling_asset(&mut self) -> StellarAsset {
self.selling_asset.take().unwrap_or_else(|| StellarAsset::new())
}
pub fn get_buying_asset(&self) -> &StellarAsset {
self.buying_asset.as_ref().unwrap_or_else(|| <StellarAsset as ::protobuf::Message>::default_instance())
}
pub fn clear_buying_asset(&mut self) {
self.buying_asset.clear();
}
pub fn has_buying_asset(&self) -> bool {
self.buying_asset.is_some()
}
pub fn set_buying_asset(&mut self, v: StellarAsset) {
self.buying_asset = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_buying_asset(&mut self) -> &mut StellarAsset {
if self.buying_asset.is_none() {
self.buying_asset.set_default();
}
self.buying_asset.as_mut().unwrap()
}
pub fn take_buying_asset(&mut self) -> StellarAsset {
self.buying_asset.take().unwrap_or_else(|| StellarAsset::new())
}
pub fn get_amount(&self) -> i64 {
self.amount.unwrap_or(0)
}
pub fn clear_amount(&mut self) {
self.amount = ::std::option::Option::None;
}
pub fn has_amount(&self) -> bool {
self.amount.is_some()
}
pub fn set_amount(&mut self, v: i64) {
self.amount = ::std::option::Option::Some(v);
}
pub fn get_price_n(&self) -> u32 {
self.price_n.unwrap_or(0)
}
pub fn clear_price_n(&mut self) {
self.price_n = ::std::option::Option::None;
}
pub fn has_price_n(&self) -> bool {
self.price_n.is_some()
}
pub fn set_price_n(&mut self, v: u32) {
self.price_n = ::std::option::Option::Some(v);
}
pub fn get_price_d(&self) -> u32 {
self.price_d.unwrap_or(0)
}
pub fn clear_price_d(&mut self) {
self.price_d = ::std::option::Option::None;
}
pub fn has_price_d(&self) -> bool {
self.price_d.is_some()
}
pub fn set_price_d(&mut self, v: u32) {
self.price_d = ::std::option::Option::Some(v);
}
pub fn get_offer_id(&self) -> u64 {
self.offer_id.unwrap_or(0)
}
pub fn clear_offer_id(&mut self) {
self.offer_id = ::std::option::Option::None;
}
pub fn has_offer_id(&self) -> bool {
self.offer_id.is_some()
}
pub fn set_offer_id(&mut self, v: u64) {
self.offer_id = ::std::option::Option::Some(v);
}
}
impl ::protobuf::Message for StellarManageBuyOfferOp {
fn is_initialized(&self) -> bool {
if self.selling_asset.is_none() {
return false;
}
if self.buying_asset.is_none() {
return false;
}
if self.amount.is_none() {
return false;
}
if self.price_n.is_none() {
return false;
}
if self.price_d.is_none() {
return false;
}
if self.offer_id.is_none() {
return false;
}
for v in &self.selling_asset {
if !v.is_initialized() {
return false;
}
};
for v in &self.buying_asset {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.source_account)?;
},
2 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.selling_asset)?;
},
3 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.buying_asset)?;
},
4 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_sint64()?;
self.amount = ::std::option::Option::Some(tmp);
},
5 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint32()?;
self.price_n = ::std::option::Option::Some(tmp);
},
6 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint32()?;
self.price_d = ::std::option::Option::Some(tmp);
},
7 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint64()?;
self.offer_id = ::std::option::Option::Some(tmp);
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(ref v) = self.source_account.as_ref() {
my_size += ::protobuf::rt::string_size(1, &v);
}
if let Some(ref v) = self.selling_asset.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(ref v) = self.buying_asset.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(v) = self.amount {
my_size += ::protobuf::rt::value_varint_zigzag_size(4, v);
}
if let Some(v) = self.price_n {
my_size += ::protobuf::rt::value_size(5, v, ::protobuf::wire_format::WireTypeVarint);
}
if let Some(v) = self.price_d {
my_size += ::protobuf::rt::value_size(6, v, ::protobuf::wire_format::WireTypeVarint);
}
if let Some(v) = self.offer_id {
my_size += ::protobuf::rt::value_size(7, v, ::protobuf::wire_format::WireTypeVarint);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.source_account.as_ref() {
os.write_string(1, &v)?;
}
if let Some(ref v) = self.selling_asset.as_ref() {
os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(ref v) = self.buying_asset.as_ref() {
os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(v) = self.amount {
os.write_sint64(4, v)?;
}
if let Some(v) = self.price_n {
os.write_uint32(5, v)?;
}
if let Some(v) = self.price_d {
os.write_uint32(6, v)?;
}
if let Some(v) = self.offer_id {
os.write_uint64(7, v)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> StellarManageBuyOfferOp {
StellarManageBuyOfferOp::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"source_account",
|m: &StellarManageBuyOfferOp| { &m.source_account },
|m: &mut StellarManageBuyOfferOp| { &mut m.source_account },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<StellarAsset>>(
"selling_asset",
|m: &StellarManageBuyOfferOp| { &m.selling_asset },
|m: &mut StellarManageBuyOfferOp| { &mut m.selling_asset },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<StellarAsset>>(
"buying_asset",
|m: &StellarManageBuyOfferOp| { &m.buying_asset },
|m: &mut StellarManageBuyOfferOp| { &mut m.buying_asset },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeSint64>(
"amount",
|m: &StellarManageBuyOfferOp| { &m.amount },
|m: &mut StellarManageBuyOfferOp| { &mut m.amount },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
"price_n",
|m: &StellarManageBuyOfferOp| { &m.price_n },
|m: &mut StellarManageBuyOfferOp| { &mut m.price_n },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
"price_d",
|m: &StellarManageBuyOfferOp| { &m.price_d },
|m: &mut StellarManageBuyOfferOp| { &mut m.price_d },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
"offer_id",
|m: &StellarManageBuyOfferOp| { &m.offer_id },
|m: &mut StellarManageBuyOfferOp| { &mut m.offer_id },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<StellarManageBuyOfferOp>(
"StellarManageBuyOfferOp",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static StellarManageBuyOfferOp {
static instance: ::protobuf::rt::LazyV2<StellarManageBuyOfferOp> = ::protobuf::rt::LazyV2::INIT;
instance.get(StellarManageBuyOfferOp::new)
}
}
impl ::protobuf::Clear for StellarManageBuyOfferOp {
fn clear(&mut self) {
self.source_account.clear();
self.selling_asset.clear();
self.buying_asset.clear();
self.amount = ::std::option::Option::None;
self.price_n = ::std::option::Option::None;
self.price_d = ::std::option::Option::None;
self.offer_id = ::std::option::Option::None;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for StellarManageBuyOfferOp {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for StellarManageBuyOfferOp {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct StellarCreatePassiveSellOfferOp {
source_account: ::protobuf::SingularField<::std::string::String>,
pub selling_asset: ::protobuf::SingularPtrField<StellarAsset>,
pub buying_asset: ::protobuf::SingularPtrField<StellarAsset>,
amount: ::std::option::Option<i64>,
price_n: ::std::option::Option<u32>,
price_d: ::std::option::Option<u32>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a StellarCreatePassiveSellOfferOp {
fn default() -> &'a StellarCreatePassiveSellOfferOp {
<StellarCreatePassiveSellOfferOp as ::protobuf::Message>::default_instance()
}
}
impl StellarCreatePassiveSellOfferOp {
pub fn new() -> StellarCreatePassiveSellOfferOp {
::std::default::Default::default()
}
pub fn get_source_account(&self) -> &str {
match self.source_account.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_source_account(&mut self) {
self.source_account.clear();
}
pub fn has_source_account(&self) -> bool {
self.source_account.is_some()
}
pub fn set_source_account(&mut self, v: ::std::string::String) {
self.source_account = ::protobuf::SingularField::some(v);
}
pub fn mut_source_account(&mut self) -> &mut ::std::string::String {
if self.source_account.is_none() {
self.source_account.set_default();
}
self.source_account.as_mut().unwrap()
}
pub fn take_source_account(&mut self) -> ::std::string::String {
self.source_account.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_selling_asset(&self) -> &StellarAsset {
self.selling_asset.as_ref().unwrap_or_else(|| <StellarAsset as ::protobuf::Message>::default_instance())
}
pub fn clear_selling_asset(&mut self) {
self.selling_asset.clear();
}
pub fn has_selling_asset(&self) -> bool {
self.selling_asset.is_some()
}
pub fn set_selling_asset(&mut self, v: StellarAsset) {
self.selling_asset = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_selling_asset(&mut self) -> &mut StellarAsset {
if self.selling_asset.is_none() {
self.selling_asset.set_default();
}
self.selling_asset.as_mut().unwrap()
}
pub fn take_selling_asset(&mut self) -> StellarAsset {
self.selling_asset.take().unwrap_or_else(|| StellarAsset::new())
}
pub fn get_buying_asset(&self) -> &StellarAsset {
self.buying_asset.as_ref().unwrap_or_else(|| <StellarAsset as ::protobuf::Message>::default_instance())
}
pub fn clear_buying_asset(&mut self) {
self.buying_asset.clear();
}
pub fn has_buying_asset(&self) -> bool {
self.buying_asset.is_some()
}
pub fn set_buying_asset(&mut self, v: StellarAsset) {
self.buying_asset = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_buying_asset(&mut self) -> &mut StellarAsset {
if self.buying_asset.is_none() {
self.buying_asset.set_default();
}
self.buying_asset.as_mut().unwrap()
}
pub fn take_buying_asset(&mut self) -> StellarAsset {
self.buying_asset.take().unwrap_or_else(|| StellarAsset::new())
}
pub fn get_amount(&self) -> i64 {
self.amount.unwrap_or(0)
}
pub fn clear_amount(&mut self) {
self.amount = ::std::option::Option::None;
}
pub fn has_amount(&self) -> bool {
self.amount.is_some()
}
pub fn set_amount(&mut self, v: i64) {
self.amount = ::std::option::Option::Some(v);
}
pub fn get_price_n(&self) -> u32 {
self.price_n.unwrap_or(0)
}
pub fn clear_price_n(&mut self) {
self.price_n = ::std::option::Option::None;
}
pub fn has_price_n(&self) -> bool {
self.price_n.is_some()
}
pub fn set_price_n(&mut self, v: u32) {
self.price_n = ::std::option::Option::Some(v);
}
pub fn get_price_d(&self) -> u32 {
self.price_d.unwrap_or(0)
}
pub fn clear_price_d(&mut self) {
self.price_d = ::std::option::Option::None;
}
pub fn has_price_d(&self) -> bool {
self.price_d.is_some()
}
pub fn set_price_d(&mut self, v: u32) {
self.price_d = ::std::option::Option::Some(v);
}
}
impl ::protobuf::Message for StellarCreatePassiveSellOfferOp {
fn is_initialized(&self) -> bool {
if self.selling_asset.is_none() {
return false;
}
if self.buying_asset.is_none() {
return false;
}
if self.amount.is_none() {
return false;
}
if self.price_n.is_none() {
return false;
}
if self.price_d.is_none() {
return false;
}
for v in &self.selling_asset {
if !v.is_initialized() {
return false;
}
};
for v in &self.buying_asset {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.source_account)?;
},
2 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.selling_asset)?;
},
3 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.buying_asset)?;
},
4 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_sint64()?;
self.amount = ::std::option::Option::Some(tmp);
},
5 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint32()?;
self.price_n = ::std::option::Option::Some(tmp);
},
6 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint32()?;
self.price_d = ::std::option::Option::Some(tmp);
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(ref v) = self.source_account.as_ref() {
my_size += ::protobuf::rt::string_size(1, &v);
}
if let Some(ref v) = self.selling_asset.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(ref v) = self.buying_asset.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(v) = self.amount {
my_size += ::protobuf::rt::value_varint_zigzag_size(4, v);
}
if let Some(v) = self.price_n {
my_size += ::protobuf::rt::value_size(5, v, ::protobuf::wire_format::WireTypeVarint);
}
if let Some(v) = self.price_d {
my_size += ::protobuf::rt::value_size(6, v, ::protobuf::wire_format::WireTypeVarint);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.source_account.as_ref() {
os.write_string(1, &v)?;
}
if let Some(ref v) = self.selling_asset.as_ref() {
os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(ref v) = self.buying_asset.as_ref() {
os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(v) = self.amount {
os.write_sint64(4, v)?;
}
if let Some(v) = self.price_n {
os.write_uint32(5, v)?;
}
if let Some(v) = self.price_d {
os.write_uint32(6, v)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> StellarCreatePassiveSellOfferOp {
StellarCreatePassiveSellOfferOp::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"source_account",
|m: &StellarCreatePassiveSellOfferOp| { &m.source_account },
|m: &mut StellarCreatePassiveSellOfferOp| { &mut m.source_account },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<StellarAsset>>(
"selling_asset",
|m: &StellarCreatePassiveSellOfferOp| { &m.selling_asset },
|m: &mut StellarCreatePassiveSellOfferOp| { &mut m.selling_asset },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<StellarAsset>>(
"buying_asset",
|m: &StellarCreatePassiveSellOfferOp| { &m.buying_asset },
|m: &mut StellarCreatePassiveSellOfferOp| { &mut m.buying_asset },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeSint64>(
"amount",
|m: &StellarCreatePassiveSellOfferOp| { &m.amount },
|m: &mut StellarCreatePassiveSellOfferOp| { &mut m.amount },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
"price_n",
|m: &StellarCreatePassiveSellOfferOp| { &m.price_n },
|m: &mut StellarCreatePassiveSellOfferOp| { &mut m.price_n },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
"price_d",
|m: &StellarCreatePassiveSellOfferOp| { &m.price_d },
|m: &mut StellarCreatePassiveSellOfferOp| { &mut m.price_d },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<StellarCreatePassiveSellOfferOp>(
"StellarCreatePassiveSellOfferOp",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static StellarCreatePassiveSellOfferOp {
static instance: ::protobuf::rt::LazyV2<StellarCreatePassiveSellOfferOp> = ::protobuf::rt::LazyV2::INIT;
instance.get(StellarCreatePassiveSellOfferOp::new)
}
}
impl ::protobuf::Clear for StellarCreatePassiveSellOfferOp {
fn clear(&mut self) {
self.source_account.clear();
self.selling_asset.clear();
self.buying_asset.clear();
self.amount = ::std::option::Option::None;
self.price_n = ::std::option::Option::None;
self.price_d = ::std::option::Option::None;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for StellarCreatePassiveSellOfferOp {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for StellarCreatePassiveSellOfferOp {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct StellarSetOptionsOp {
source_account: ::protobuf::SingularField<::std::string::String>,
inflation_destination_account: ::protobuf::SingularField<::std::string::String>,
clear_flags: ::std::option::Option<u32>,
set_flags: ::std::option::Option<u32>,
master_weight: ::std::option::Option<u32>,
low_threshold: ::std::option::Option<u32>,
medium_threshold: ::std::option::Option<u32>,
high_threshold: ::std::option::Option<u32>,
home_domain: ::protobuf::SingularField<::std::string::String>,
signer_type: ::std::option::Option<StellarSetOptionsOp_StellarSignerType>,
signer_key: ::protobuf::SingularField<::std::vec::Vec<u8>>,
signer_weight: ::std::option::Option<u32>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a StellarSetOptionsOp {
fn default() -> &'a StellarSetOptionsOp {
<StellarSetOptionsOp as ::protobuf::Message>::default_instance()
}
}
impl StellarSetOptionsOp {
pub fn new() -> StellarSetOptionsOp {
::std::default::Default::default()
}
pub fn get_source_account(&self) -> &str {
match self.source_account.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_source_account(&mut self) {
self.source_account.clear();
}
pub fn has_source_account(&self) -> bool {
self.source_account.is_some()
}
pub fn set_source_account(&mut self, v: ::std::string::String) {
self.source_account = ::protobuf::SingularField::some(v);
}
pub fn mut_source_account(&mut self) -> &mut ::std::string::String {
if self.source_account.is_none() {
self.source_account.set_default();
}
self.source_account.as_mut().unwrap()
}
pub fn take_source_account(&mut self) -> ::std::string::String {
self.source_account.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_inflation_destination_account(&self) -> &str {
match self.inflation_destination_account.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_inflation_destination_account(&mut self) {
self.inflation_destination_account.clear();
}
pub fn has_inflation_destination_account(&self) -> bool {
self.inflation_destination_account.is_some()
}
pub fn set_inflation_destination_account(&mut self, v: ::std::string::String) {
self.inflation_destination_account = ::protobuf::SingularField::some(v);
}
pub fn mut_inflation_destination_account(&mut self) -> &mut ::std::string::String {
if self.inflation_destination_account.is_none() {
self.inflation_destination_account.set_default();
}
self.inflation_destination_account.as_mut().unwrap()
}
pub fn take_inflation_destination_account(&mut self) -> ::std::string::String {
self.inflation_destination_account.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_clear_flags(&self) -> u32 {
self.clear_flags.unwrap_or(0)
}
pub fn clear_clear_flags(&mut self) {
self.clear_flags = ::std::option::Option::None;
}
pub fn has_clear_flags(&self) -> bool {
self.clear_flags.is_some()
}
pub fn set_clear_flags(&mut self, v: u32) {
self.clear_flags = ::std::option::Option::Some(v);
}
pub fn get_set_flags(&self) -> u32 {
self.set_flags.unwrap_or(0)
}
pub fn clear_set_flags(&mut self) {
self.set_flags = ::std::option::Option::None;
}
pub fn has_set_flags(&self) -> bool {
self.set_flags.is_some()
}
pub fn set_set_flags(&mut self, v: u32) {
self.set_flags = ::std::option::Option::Some(v);
}
pub fn get_master_weight(&self) -> u32 {
self.master_weight.unwrap_or(0)
}
pub fn clear_master_weight(&mut self) {
self.master_weight = ::std::option::Option::None;
}
pub fn has_master_weight(&self) -> bool {
self.master_weight.is_some()
}
pub fn set_master_weight(&mut self, v: u32) {
self.master_weight = ::std::option::Option::Some(v);
}
pub fn get_low_threshold(&self) -> u32 {
self.low_threshold.unwrap_or(0)
}
pub fn clear_low_threshold(&mut self) {
self.low_threshold = ::std::option::Option::None;
}
pub fn has_low_threshold(&self) -> bool {
self.low_threshold.is_some()
}
pub fn set_low_threshold(&mut self, v: u32) {
self.low_threshold = ::std::option::Option::Some(v);
}
pub fn get_medium_threshold(&self) -> u32 {
self.medium_threshold.unwrap_or(0)
}
pub fn clear_medium_threshold(&mut self) {
self.medium_threshold = ::std::option::Option::None;
}
pub fn has_medium_threshold(&self) -> bool {
self.medium_threshold.is_some()
}
pub fn set_medium_threshold(&mut self, v: u32) {
self.medium_threshold = ::std::option::Option::Some(v);
}
pub fn get_high_threshold(&self) -> u32 {
self.high_threshold.unwrap_or(0)
}
pub fn clear_high_threshold(&mut self) {
self.high_threshold = ::std::option::Option::None;
}
pub fn has_high_threshold(&self) -> bool {
self.high_threshold.is_some()
}
pub fn set_high_threshold(&mut self, v: u32) {
self.high_threshold = ::std::option::Option::Some(v);
}
pub fn get_home_domain(&self) -> &str {
match self.home_domain.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_home_domain(&mut self) {
self.home_domain.clear();
}
pub fn has_home_domain(&self) -> bool {
self.home_domain.is_some()
}
pub fn set_home_domain(&mut self, v: ::std::string::String) {
self.home_domain = ::protobuf::SingularField::some(v);
}
pub fn mut_home_domain(&mut self) -> &mut ::std::string::String {
if self.home_domain.is_none() {
self.home_domain.set_default();
}
self.home_domain.as_mut().unwrap()
}
pub fn take_home_domain(&mut self) -> ::std::string::String {
self.home_domain.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_signer_type(&self) -> StellarSetOptionsOp_StellarSignerType {
self.signer_type.unwrap_or(StellarSetOptionsOp_StellarSignerType::ACCOUNT)
}
pub fn clear_signer_type(&mut self) {
self.signer_type = ::std::option::Option::None;
}
pub fn has_signer_type(&self) -> bool {
self.signer_type.is_some()
}
pub fn set_signer_type(&mut self, v: StellarSetOptionsOp_StellarSignerType) {
self.signer_type = ::std::option::Option::Some(v);
}
pub fn get_signer_key(&self) -> &[u8] {
match self.signer_key.as_ref() {
Some(v) => &v,
None => &[],
}
}
pub fn clear_signer_key(&mut self) {
self.signer_key.clear();
}
pub fn has_signer_key(&self) -> bool {
self.signer_key.is_some()
}
pub fn set_signer_key(&mut self, v: ::std::vec::Vec<u8>) {
self.signer_key = ::protobuf::SingularField::some(v);
}
pub fn mut_signer_key(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.signer_key.is_none() {
self.signer_key.set_default();
}
self.signer_key.as_mut().unwrap()
}
pub fn take_signer_key(&mut self) -> ::std::vec::Vec<u8> {
self.signer_key.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn get_signer_weight(&self) -> u32 {
self.signer_weight.unwrap_or(0)
}
pub fn clear_signer_weight(&mut self) {
self.signer_weight = ::std::option::Option::None;
}
pub fn has_signer_weight(&self) -> bool {
self.signer_weight.is_some()
}
pub fn set_signer_weight(&mut self, v: u32) {
self.signer_weight = ::std::option::Option::Some(v);
}
}
impl ::protobuf::Message for StellarSetOptionsOp {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.source_account)?;
},
2 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.inflation_destination_account)?;
},
3 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint32()?;
self.clear_flags = ::std::option::Option::Some(tmp);
},
4 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint32()?;
self.set_flags = ::std::option::Option::Some(tmp);
},
5 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint32()?;
self.master_weight = ::std::option::Option::Some(tmp);
},
6 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint32()?;
self.low_threshold = ::std::option::Option::Some(tmp);
},
7 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint32()?;
self.medium_threshold = ::std::option::Option::Some(tmp);
},
8 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint32()?;
self.high_threshold = ::std::option::Option::Some(tmp);
},
9 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.home_domain)?;
},
10 => {
::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.signer_type, 10, &mut self.unknown_fields)?
},
11 => {
::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.signer_key)?;
},
12 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint32()?;
self.signer_weight = ::std::option::Option::Some(tmp);
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(ref v) = self.source_account.as_ref() {
my_size += ::protobuf::rt::string_size(1, &v);
}
if let Some(ref v) = self.inflation_destination_account.as_ref() {
my_size += ::protobuf::rt::string_size(2, &v);
}
if let Some(v) = self.clear_flags {
my_size += ::protobuf::rt::value_size(3, v, ::protobuf::wire_format::WireTypeVarint);
}
if let Some(v) = self.set_flags {
my_size += ::protobuf::rt::value_size(4, v, ::protobuf::wire_format::WireTypeVarint);
}
if let Some(v) = self.master_weight {
my_size += ::protobuf::rt::value_size(5, v, ::protobuf::wire_format::WireTypeVarint);
}
if let Some(v) = self.low_threshold {
my_size += ::protobuf::rt::value_size(6, v, ::protobuf::wire_format::WireTypeVarint);
}
if let Some(v) = self.medium_threshold {
my_size += ::protobuf::rt::value_size(7, v, ::protobuf::wire_format::WireTypeVarint);
}
if let Some(v) = self.high_threshold {
my_size += ::protobuf::rt::value_size(8, v, ::protobuf::wire_format::WireTypeVarint);
}
if let Some(ref v) = self.home_domain.as_ref() {
my_size += ::protobuf::rt::string_size(9, &v);
}
if let Some(v) = self.signer_type {
my_size += ::protobuf::rt::enum_size(10, v);
}
if let Some(ref v) = self.signer_key.as_ref() {
my_size += ::protobuf::rt::bytes_size(11, &v);
}
if let Some(v) = self.signer_weight {
my_size += ::protobuf::rt::value_size(12, v, ::protobuf::wire_format::WireTypeVarint);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.source_account.as_ref() {
os.write_string(1, &v)?;
}
if let Some(ref v) = self.inflation_destination_account.as_ref() {
os.write_string(2, &v)?;
}
if let Some(v) = self.clear_flags {
os.write_uint32(3, v)?;
}
if let Some(v) = self.set_flags {
os.write_uint32(4, v)?;
}
if let Some(v) = self.master_weight {
os.write_uint32(5, v)?;
}
if let Some(v) = self.low_threshold {
os.write_uint32(6, v)?;
}
if let Some(v) = self.medium_threshold {
os.write_uint32(7, v)?;
}
if let Some(v) = self.high_threshold {
os.write_uint32(8, v)?;
}
if let Some(ref v) = self.home_domain.as_ref() {
os.write_string(9, &v)?;
}
if let Some(v) = self.signer_type {
os.write_enum(10, ::protobuf::ProtobufEnum::value(&v))?;
}
if let Some(ref v) = self.signer_key.as_ref() {
os.write_bytes(11, &v)?;
}
if let Some(v) = self.signer_weight {
os.write_uint32(12, v)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> StellarSetOptionsOp {
StellarSetOptionsOp::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"source_account",
|m: &StellarSetOptionsOp| { &m.source_account },
|m: &mut StellarSetOptionsOp| { &mut m.source_account },
));
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"inflation_destination_account",
|m: &StellarSetOptionsOp| { &m.inflation_destination_account },
|m: &mut StellarSetOptionsOp| { &mut m.inflation_destination_account },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
"clear_flags",
|m: &StellarSetOptionsOp| { &m.clear_flags },
|m: &mut StellarSetOptionsOp| { &mut m.clear_flags },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
"set_flags",
|m: &StellarSetOptionsOp| { &m.set_flags },
|m: &mut StellarSetOptionsOp| { &mut m.set_flags },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
"master_weight",
|m: &StellarSetOptionsOp| { &m.master_weight },
|m: &mut StellarSetOptionsOp| { &mut m.master_weight },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
"low_threshold",
|m: &StellarSetOptionsOp| { &m.low_threshold },
|m: &mut StellarSetOptionsOp| { &mut m.low_threshold },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
"medium_threshold",
|m: &StellarSetOptionsOp| { &m.medium_threshold },
|m: &mut StellarSetOptionsOp| { &mut m.medium_threshold },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
"high_threshold",
|m: &StellarSetOptionsOp| { &m.high_threshold },
|m: &mut StellarSetOptionsOp| { &mut m.high_threshold },
));
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"home_domain",
|m: &StellarSetOptionsOp| { &m.home_domain },
|m: &mut StellarSetOptionsOp| { &mut m.home_domain },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<StellarSetOptionsOp_StellarSignerType>>(
"signer_type",
|m: &StellarSetOptionsOp| { &m.signer_type },
|m: &mut StellarSetOptionsOp| { &mut m.signer_type },
));
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"signer_key",
|m: &StellarSetOptionsOp| { &m.signer_key },
|m: &mut StellarSetOptionsOp| { &mut m.signer_key },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
"signer_weight",
|m: &StellarSetOptionsOp| { &m.signer_weight },
|m: &mut StellarSetOptionsOp| { &mut m.signer_weight },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<StellarSetOptionsOp>(
"StellarSetOptionsOp",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static StellarSetOptionsOp {
static instance: ::protobuf::rt::LazyV2<StellarSetOptionsOp> = ::protobuf::rt::LazyV2::INIT;
instance.get(StellarSetOptionsOp::new)
}
}
impl ::protobuf::Clear for StellarSetOptionsOp {
fn clear(&mut self) {
self.source_account.clear();
self.inflation_destination_account.clear();
self.clear_flags = ::std::option::Option::None;
self.set_flags = ::std::option::Option::None;
self.master_weight = ::std::option::Option::None;
self.low_threshold = ::std::option::Option::None;
self.medium_threshold = ::std::option::Option::None;
self.high_threshold = ::std::option::Option::None;
self.home_domain.clear();
self.signer_type = ::std::option::Option::None;
self.signer_key.clear();
self.signer_weight = ::std::option::Option::None;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for StellarSetOptionsOp {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for StellarSetOptionsOp {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(Clone,PartialEq,Eq,Debug,Hash)]
pub enum StellarSetOptionsOp_StellarSignerType {
ACCOUNT = 0,
PRE_AUTH = 1,
HASH = 2,
}
impl ::protobuf::ProtobufEnum for StellarSetOptionsOp_StellarSignerType {
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<StellarSetOptionsOp_StellarSignerType> {
match value {
0 => ::std::option::Option::Some(StellarSetOptionsOp_StellarSignerType::ACCOUNT),
1 => ::std::option::Option::Some(StellarSetOptionsOp_StellarSignerType::PRE_AUTH),
2 => ::std::option::Option::Some(StellarSetOptionsOp_StellarSignerType::HASH),
_ => ::std::option::Option::None
}
}
fn values() -> &'static [Self] {
static values: &'static [StellarSetOptionsOp_StellarSignerType] = &[
StellarSetOptionsOp_StellarSignerType::ACCOUNT,
StellarSetOptionsOp_StellarSignerType::PRE_AUTH,
StellarSetOptionsOp_StellarSignerType::HASH,
];
values
}
fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
::protobuf::reflect::EnumDescriptor::new_pb_name::<StellarSetOptionsOp_StellarSignerType>("StellarSetOptionsOp.StellarSignerType", file_descriptor_proto())
})
}
}
impl ::std::marker::Copy for StellarSetOptionsOp_StellarSignerType {
}
impl ::std::default::Default for StellarSetOptionsOp_StellarSignerType {
fn default() -> Self {
StellarSetOptionsOp_StellarSignerType::ACCOUNT
}
}
impl ::protobuf::reflect::ProtobufValue for StellarSetOptionsOp_StellarSignerType {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
}
}
#[derive(PartialEq,Clone,Default)]
pub struct StellarChangeTrustOp {
source_account: ::protobuf::SingularField<::std::string::String>,
pub asset: ::protobuf::SingularPtrField<StellarAsset>,
limit: ::std::option::Option<u64>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a StellarChangeTrustOp {
fn default() -> &'a StellarChangeTrustOp {
<StellarChangeTrustOp as ::protobuf::Message>::default_instance()
}
}
impl StellarChangeTrustOp {
pub fn new() -> StellarChangeTrustOp {
::std::default::Default::default()
}
pub fn get_source_account(&self) -> &str {
match self.source_account.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_source_account(&mut self) {
self.source_account.clear();
}
pub fn has_source_account(&self) -> bool {
self.source_account.is_some()
}
pub fn set_source_account(&mut self, v: ::std::string::String) {
self.source_account = ::protobuf::SingularField::some(v);
}
pub fn mut_source_account(&mut self) -> &mut ::std::string::String {
if self.source_account.is_none() {
self.source_account.set_default();
}
self.source_account.as_mut().unwrap()
}
pub fn take_source_account(&mut self) -> ::std::string::String {
self.source_account.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_asset(&self) -> &StellarAsset {
self.asset.as_ref().unwrap_or_else(|| <StellarAsset as ::protobuf::Message>::default_instance())
}
pub fn clear_asset(&mut self) {
self.asset.clear();
}
pub fn has_asset(&self) -> bool {
self.asset.is_some()
}
pub fn set_asset(&mut self, v: StellarAsset) {
self.asset = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_asset(&mut self) -> &mut StellarAsset {
if self.asset.is_none() {
self.asset.set_default();
}
self.asset.as_mut().unwrap()
}
pub fn take_asset(&mut self) -> StellarAsset {
self.asset.take().unwrap_or_else(|| StellarAsset::new())
}
pub fn get_limit(&self) -> u64 {
self.limit.unwrap_or(0)
}
pub fn clear_limit(&mut self) {
self.limit = ::std::option::Option::None;
}
pub fn has_limit(&self) -> bool {
self.limit.is_some()
}
pub fn set_limit(&mut self, v: u64) {
self.limit = ::std::option::Option::Some(v);
}
}
impl ::protobuf::Message for StellarChangeTrustOp {
fn is_initialized(&self) -> bool {
if self.asset.is_none() {
return false;
}
if self.limit.is_none() {
return false;
}
for v in &self.asset {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.source_account)?;
},
2 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.asset)?;
},
3 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint64()?;
self.limit = ::std::option::Option::Some(tmp);
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(ref v) = self.source_account.as_ref() {
my_size += ::protobuf::rt::string_size(1, &v);
}
if let Some(ref v) = self.asset.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(v) = self.limit {
my_size += ::protobuf::rt::value_size(3, v, ::protobuf::wire_format::WireTypeVarint);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.source_account.as_ref() {
os.write_string(1, &v)?;
}
if let Some(ref v) = self.asset.as_ref() {
os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(v) = self.limit {
os.write_uint64(3, v)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> StellarChangeTrustOp {
StellarChangeTrustOp::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"source_account",
|m: &StellarChangeTrustOp| { &m.source_account },
|m: &mut StellarChangeTrustOp| { &mut m.source_account },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<StellarAsset>>(
"asset",
|m: &StellarChangeTrustOp| { &m.asset },
|m: &mut StellarChangeTrustOp| { &mut m.asset },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
"limit",
|m: &StellarChangeTrustOp| { &m.limit },
|m: &mut StellarChangeTrustOp| { &mut m.limit },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<StellarChangeTrustOp>(
"StellarChangeTrustOp",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static StellarChangeTrustOp {
static instance: ::protobuf::rt::LazyV2<StellarChangeTrustOp> = ::protobuf::rt::LazyV2::INIT;
instance.get(StellarChangeTrustOp::new)
}
}
impl ::protobuf::Clear for StellarChangeTrustOp {
fn clear(&mut self) {
self.source_account.clear();
self.asset.clear();
self.limit = ::std::option::Option::None;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for StellarChangeTrustOp {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for StellarChangeTrustOp {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct StellarAllowTrustOp {
source_account: ::protobuf::SingularField<::std::string::String>,
trusted_account: ::protobuf::SingularField<::std::string::String>,
asset_type: ::std::option::Option<StellarAssetType>,
asset_code: ::protobuf::SingularField<::std::string::String>,
is_authorized: ::std::option::Option<bool>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a StellarAllowTrustOp {
fn default() -> &'a StellarAllowTrustOp {
<StellarAllowTrustOp as ::protobuf::Message>::default_instance()
}
}
impl StellarAllowTrustOp {
pub fn new() -> StellarAllowTrustOp {
::std::default::Default::default()
}
pub fn get_source_account(&self) -> &str {
match self.source_account.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_source_account(&mut self) {
self.source_account.clear();
}
pub fn has_source_account(&self) -> bool {
self.source_account.is_some()
}
pub fn set_source_account(&mut self, v: ::std::string::String) {
self.source_account = ::protobuf::SingularField::some(v);
}
pub fn mut_source_account(&mut self) -> &mut ::std::string::String {
if self.source_account.is_none() {
self.source_account.set_default();
}
self.source_account.as_mut().unwrap()
}
pub fn take_source_account(&mut self) -> ::std::string::String {
self.source_account.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_trusted_account(&self) -> &str {
match self.trusted_account.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_trusted_account(&mut self) {
self.trusted_account.clear();
}
pub fn has_trusted_account(&self) -> bool {
self.trusted_account.is_some()
}
pub fn set_trusted_account(&mut self, v: ::std::string::String) {
self.trusted_account = ::protobuf::SingularField::some(v);
}
pub fn mut_trusted_account(&mut self) -> &mut ::std::string::String {
if self.trusted_account.is_none() {
self.trusted_account.set_default();
}
self.trusted_account.as_mut().unwrap()
}
pub fn take_trusted_account(&mut self) -> ::std::string::String {
self.trusted_account.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_asset_type(&self) -> StellarAssetType {
self.asset_type.unwrap_or(StellarAssetType::NATIVE)
}
pub fn clear_asset_type(&mut self) {
self.asset_type = ::std::option::Option::None;
}
pub fn has_asset_type(&self) -> bool {
self.asset_type.is_some()
}
pub fn set_asset_type(&mut self, v: StellarAssetType) {
self.asset_type = ::std::option::Option::Some(v);
}
pub fn get_asset_code(&self) -> &str {
match self.asset_code.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_asset_code(&mut self) {
self.asset_code.clear();
}
pub fn has_asset_code(&self) -> bool {
self.asset_code.is_some()
}
pub fn set_asset_code(&mut self, v: ::std::string::String) {
self.asset_code = ::protobuf::SingularField::some(v);
}
pub fn mut_asset_code(&mut self) -> &mut ::std::string::String {
if self.asset_code.is_none() {
self.asset_code.set_default();
}
self.asset_code.as_mut().unwrap()
}
pub fn take_asset_code(&mut self) -> ::std::string::String {
self.asset_code.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_is_authorized(&self) -> bool {
self.is_authorized.unwrap_or(false)
}
pub fn clear_is_authorized(&mut self) {
self.is_authorized = ::std::option::Option::None;
}
pub fn has_is_authorized(&self) -> bool {
self.is_authorized.is_some()
}
pub fn set_is_authorized(&mut self, v: bool) {
self.is_authorized = ::std::option::Option::Some(v);
}
}
impl ::protobuf::Message for StellarAllowTrustOp {
fn is_initialized(&self) -> bool {
if self.trusted_account.is_none() {
return false;
}
if self.asset_type.is_none() {
return false;
}
if self.is_authorized.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.source_account)?;
},
2 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.trusted_account)?;
},
3 => {
::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.asset_type, 3, &mut self.unknown_fields)?
},
4 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.asset_code)?;
},
5 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_bool()?;
self.is_authorized = ::std::option::Option::Some(tmp);
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(ref v) = self.source_account.as_ref() {
my_size += ::protobuf::rt::string_size(1, &v);
}
if let Some(ref v) = self.trusted_account.as_ref() {
my_size += ::protobuf::rt::string_size(2, &v);
}
if let Some(v) = self.asset_type {
my_size += ::protobuf::rt::enum_size(3, v);
}
if let Some(ref v) = self.asset_code.as_ref() {
my_size += ::protobuf::rt::string_size(4, &v);
}
if let Some(v) = self.is_authorized {
my_size += 2;
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.source_account.as_ref() {
os.write_string(1, &v)?;
}
if let Some(ref v) = self.trusted_account.as_ref() {
os.write_string(2, &v)?;
}
if let Some(v) = self.asset_type {
os.write_enum(3, ::protobuf::ProtobufEnum::value(&v))?;
}
if let Some(ref v) = self.asset_code.as_ref() {
os.write_string(4, &v)?;
}
if let Some(v) = self.is_authorized {
os.write_bool(5, v)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> StellarAllowTrustOp {
StellarAllowTrustOp::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"source_account",
|m: &StellarAllowTrustOp| { &m.source_account },
|m: &mut StellarAllowTrustOp| { &mut m.source_account },
));
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"trusted_account",
|m: &StellarAllowTrustOp| { &m.trusted_account },
|m: &mut StellarAllowTrustOp| { &mut m.trusted_account },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<StellarAssetType>>(
"asset_type",
|m: &StellarAllowTrustOp| { &m.asset_type },
|m: &mut StellarAllowTrustOp| { &mut m.asset_type },
));
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"asset_code",
|m: &StellarAllowTrustOp| { &m.asset_code },
|m: &mut StellarAllowTrustOp| { &mut m.asset_code },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
"is_authorized",
|m: &StellarAllowTrustOp| { &m.is_authorized },
|m: &mut StellarAllowTrustOp| { &mut m.is_authorized },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<StellarAllowTrustOp>(
"StellarAllowTrustOp",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static StellarAllowTrustOp {
static instance: ::protobuf::rt::LazyV2<StellarAllowTrustOp> = ::protobuf::rt::LazyV2::INIT;
instance.get(StellarAllowTrustOp::new)
}
}
impl ::protobuf::Clear for StellarAllowTrustOp {
fn clear(&mut self) {
self.source_account.clear();
self.trusted_account.clear();
self.asset_type = ::std::option::Option::None;
self.asset_code.clear();
self.is_authorized = ::std::option::Option::None;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for StellarAllowTrustOp {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for StellarAllowTrustOp {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct StellarAccountMergeOp {
source_account: ::protobuf::SingularField<::std::string::String>,
destination_account: ::protobuf::SingularField<::std::string::String>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a StellarAccountMergeOp {
fn default() -> &'a StellarAccountMergeOp {
<StellarAccountMergeOp as ::protobuf::Message>::default_instance()
}
}
impl StellarAccountMergeOp {
pub fn new() -> StellarAccountMergeOp {
::std::default::Default::default()
}
pub fn get_source_account(&self) -> &str {
match self.source_account.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_source_account(&mut self) {
self.source_account.clear();
}
pub fn has_source_account(&self) -> bool {
self.source_account.is_some()
}
pub fn set_source_account(&mut self, v: ::std::string::String) {
self.source_account = ::protobuf::SingularField::some(v);
}
pub fn mut_source_account(&mut self) -> &mut ::std::string::String {
if self.source_account.is_none() {
self.source_account.set_default();
}
self.source_account.as_mut().unwrap()
}
pub fn take_source_account(&mut self) -> ::std::string::String {
self.source_account.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_destination_account(&self) -> &str {
match self.destination_account.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_destination_account(&mut self) {
self.destination_account.clear();
}
pub fn has_destination_account(&self) -> bool {
self.destination_account.is_some()
}
pub fn set_destination_account(&mut self, v: ::std::string::String) {
self.destination_account = ::protobuf::SingularField::some(v);
}
pub fn mut_destination_account(&mut self) -> &mut ::std::string::String {
if self.destination_account.is_none() {
self.destination_account.set_default();
}
self.destination_account.as_mut().unwrap()
}
pub fn take_destination_account(&mut self) -> ::std::string::String {
self.destination_account.take().unwrap_or_else(|| ::std::string::String::new())
}
}
impl ::protobuf::Message for StellarAccountMergeOp {
fn is_initialized(&self) -> bool {
if self.destination_account.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.source_account)?;
},
2 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.destination_account)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(ref v) = self.source_account.as_ref() {
my_size += ::protobuf::rt::string_size(1, &v);
}
if let Some(ref v) = self.destination_account.as_ref() {
my_size += ::protobuf::rt::string_size(2, &v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.source_account.as_ref() {
os.write_string(1, &v)?;
}
if let Some(ref v) = self.destination_account.as_ref() {
os.write_string(2, &v)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> StellarAccountMergeOp {
StellarAccountMergeOp::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"source_account",
|m: &StellarAccountMergeOp| { &m.source_account },
|m: &mut StellarAccountMergeOp| { &mut m.source_account },
));
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"destination_account",
|m: &StellarAccountMergeOp| { &m.destination_account },
|m: &mut StellarAccountMergeOp| { &mut m.destination_account },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<StellarAccountMergeOp>(
"StellarAccountMergeOp",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static StellarAccountMergeOp {
static instance: ::protobuf::rt::LazyV2<StellarAccountMergeOp> = ::protobuf::rt::LazyV2::INIT;
instance.get(StellarAccountMergeOp::new)
}
}
impl ::protobuf::Clear for StellarAccountMergeOp {
fn clear(&mut self) {
self.source_account.clear();
self.destination_account.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for StellarAccountMergeOp {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for StellarAccountMergeOp {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct StellarManageDataOp {
source_account: ::protobuf::SingularField<::std::string::String>,
key: ::protobuf::SingularField<::std::string::String>,
value: ::protobuf::SingularField<::std::vec::Vec<u8>>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a StellarManageDataOp {
fn default() -> &'a StellarManageDataOp {
<StellarManageDataOp as ::protobuf::Message>::default_instance()
}
}
impl StellarManageDataOp {
pub fn new() -> StellarManageDataOp {
::std::default::Default::default()
}
pub fn get_source_account(&self) -> &str {
match self.source_account.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_source_account(&mut self) {
self.source_account.clear();
}
pub fn has_source_account(&self) -> bool {
self.source_account.is_some()
}
pub fn set_source_account(&mut self, v: ::std::string::String) {
self.source_account = ::protobuf::SingularField::some(v);
}
pub fn mut_source_account(&mut self) -> &mut ::std::string::String {
if self.source_account.is_none() {
self.source_account.set_default();
}
self.source_account.as_mut().unwrap()
}
pub fn take_source_account(&mut self) -> ::std::string::String {
self.source_account.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_key(&self) -> &str {
match self.key.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_key(&mut self) {
self.key.clear();
}
pub fn has_key(&self) -> bool {
self.key.is_some()
}
pub fn set_key(&mut self, v: ::std::string::String) {
self.key = ::protobuf::SingularField::some(v);
}
pub fn mut_key(&mut self) -> &mut ::std::string::String {
if self.key.is_none() {
self.key.set_default();
}
self.key.as_mut().unwrap()
}
pub fn take_key(&mut self) -> ::std::string::String {
self.key.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_value(&self) -> &[u8] {
match self.value.as_ref() {
Some(v) => &v,
None => &[],
}
}
pub fn clear_value(&mut self) {
self.value.clear();
}
pub fn has_value(&self) -> bool {
self.value.is_some()
}
pub fn set_value(&mut self, v: ::std::vec::Vec<u8>) {
self.value = ::protobuf::SingularField::some(v);
}
pub fn mut_value(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.value.is_none() {
self.value.set_default();
}
self.value.as_mut().unwrap()
}
pub fn take_value(&mut self) -> ::std::vec::Vec<u8> {
self.value.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
}
impl ::protobuf::Message for StellarManageDataOp {
fn is_initialized(&self) -> bool {
if self.key.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.source_account)?;
},
2 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.key)?;
},
3 => {
::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.value)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(ref v) = self.source_account.as_ref() {
my_size += ::protobuf::rt::string_size(1, &v);
}
if let Some(ref v) = self.key.as_ref() {
my_size += ::protobuf::rt::string_size(2, &v);
}
if let Some(ref v) = self.value.as_ref() {
my_size += ::protobuf::rt::bytes_size(3, &v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.source_account.as_ref() {
os.write_string(1, &v)?;
}
if let Some(ref v) = self.key.as_ref() {
os.write_string(2, &v)?;
}
if let Some(ref v) = self.value.as_ref() {
os.write_bytes(3, &v)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> StellarManageDataOp {
StellarManageDataOp::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"source_account",
|m: &StellarManageDataOp| { &m.source_account },
|m: &mut StellarManageDataOp| { &mut m.source_account },
));
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"key",
|m: &StellarManageDataOp| { &m.key },
|m: &mut StellarManageDataOp| { &mut m.key },
));
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"value",
|m: &StellarManageDataOp| { &m.value },
|m: &mut StellarManageDataOp| { &mut m.value },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<StellarManageDataOp>(
"StellarManageDataOp",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static StellarManageDataOp {
static instance: ::protobuf::rt::LazyV2<StellarManageDataOp> = ::protobuf::rt::LazyV2::INIT;
instance.get(StellarManageDataOp::new)
}
}
impl ::protobuf::Clear for StellarManageDataOp {
fn clear(&mut self) {
self.source_account.clear();
self.key.clear();
self.value.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for StellarManageDataOp {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for StellarManageDataOp {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct StellarBumpSequenceOp {
source_account: ::protobuf::SingularField<::std::string::String>,
bump_to: ::std::option::Option<u64>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a StellarBumpSequenceOp {
fn default() -> &'a StellarBumpSequenceOp {
<StellarBumpSequenceOp as ::protobuf::Message>::default_instance()
}
}
impl StellarBumpSequenceOp {
pub fn new() -> StellarBumpSequenceOp {
::std::default::Default::default()
}
pub fn get_source_account(&self) -> &str {
match self.source_account.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_source_account(&mut self) {
self.source_account.clear();
}
pub fn has_source_account(&self) -> bool {
self.source_account.is_some()
}
pub fn set_source_account(&mut self, v: ::std::string::String) {
self.source_account = ::protobuf::SingularField::some(v);
}
pub fn mut_source_account(&mut self) -> &mut ::std::string::String {
if self.source_account.is_none() {
self.source_account.set_default();
}
self.source_account.as_mut().unwrap()
}
pub fn take_source_account(&mut self) -> ::std::string::String {
self.source_account.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_bump_to(&self) -> u64 {
self.bump_to.unwrap_or(0)
}
pub fn clear_bump_to(&mut self) {
self.bump_to = ::std::option::Option::None;
}
pub fn has_bump_to(&self) -> bool {
self.bump_to.is_some()
}
pub fn set_bump_to(&mut self, v: u64) {
self.bump_to = ::std::option::Option::Some(v);
}
}
impl ::protobuf::Message for StellarBumpSequenceOp {
fn is_initialized(&self) -> bool {
if self.bump_to.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.source_account)?;
},
2 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint64()?;
self.bump_to = ::std::option::Option::Some(tmp);
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(ref v) = self.source_account.as_ref() {
my_size += ::protobuf::rt::string_size(1, &v);
}
if let Some(v) = self.bump_to {
my_size += ::protobuf::rt::value_size(2, v, ::protobuf::wire_format::WireTypeVarint);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.source_account.as_ref() {
os.write_string(1, &v)?;
}
if let Some(v) = self.bump_to {
os.write_uint64(2, v)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> StellarBumpSequenceOp {
StellarBumpSequenceOp::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"source_account",
|m: &StellarBumpSequenceOp| { &m.source_account },
|m: &mut StellarBumpSequenceOp| { &mut m.source_account },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
"bump_to",
|m: &StellarBumpSequenceOp| { &m.bump_to },
|m: &mut StellarBumpSequenceOp| { &mut m.bump_to },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<StellarBumpSequenceOp>(
"StellarBumpSequenceOp",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static StellarBumpSequenceOp {
static instance: ::protobuf::rt::LazyV2<StellarBumpSequenceOp> = ::protobuf::rt::LazyV2::INIT;
instance.get(StellarBumpSequenceOp::new)
}
}
impl ::protobuf::Clear for StellarBumpSequenceOp {
fn clear(&mut self) {
self.source_account.clear();
self.bump_to = ::std::option::Option::None;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for StellarBumpSequenceOp {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for StellarBumpSequenceOp {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct StellarSignedTx {
public_key: ::protobuf::SingularField<::std::vec::Vec<u8>>,
signature: ::protobuf::SingularField<::std::vec::Vec<u8>>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a StellarSignedTx {
fn default() -> &'a StellarSignedTx {
<StellarSignedTx as ::protobuf::Message>::default_instance()
}
}
impl StellarSignedTx {
pub fn new() -> StellarSignedTx {
::std::default::Default::default()
}
pub fn get_public_key(&self) -> &[u8] {
match self.public_key.as_ref() {
Some(v) => &v,
None => &[],
}
}
pub fn clear_public_key(&mut self) {
self.public_key.clear();
}
pub fn has_public_key(&self) -> bool {
self.public_key.is_some()
}
pub fn set_public_key(&mut self, v: ::std::vec::Vec<u8>) {
self.public_key = ::protobuf::SingularField::some(v);
}
pub fn mut_public_key(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.public_key.is_none() {
self.public_key.set_default();
}
self.public_key.as_mut().unwrap()
}
pub fn take_public_key(&mut self) -> ::std::vec::Vec<u8> {
self.public_key.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn get_signature(&self) -> &[u8] {
match self.signature.as_ref() {
Some(v) => &v,
None => &[],
}
}
pub fn clear_signature(&mut self) {
self.signature.clear();
}
pub fn has_signature(&self) -> bool {
self.signature.is_some()
}
pub fn set_signature(&mut self, v: ::std::vec::Vec<u8>) {
self.signature = ::protobuf::SingularField::some(v);
}
pub fn mut_signature(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.signature.is_none() {
self.signature.set_default();
}
self.signature.as_mut().unwrap()
}
pub fn take_signature(&mut self) -> ::std::vec::Vec<u8> {
self.signature.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
}
impl ::protobuf::Message for StellarSignedTx {
fn is_initialized(&self) -> bool {
if self.public_key.is_none() {
return false;
}
if self.signature.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.public_key)?;
},
2 => {
::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.signature)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(ref v) = self.public_key.as_ref() {
my_size += ::protobuf::rt::bytes_size(1, &v);
}
if let Some(ref v) = self.signature.as_ref() {
my_size += ::protobuf::rt::bytes_size(2, &v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.public_key.as_ref() {
os.write_bytes(1, &v)?;
}
if let Some(ref v) = self.signature.as_ref() {
os.write_bytes(2, &v)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> StellarSignedTx {
StellarSignedTx::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"public_key",
|m: &StellarSignedTx| { &m.public_key },
|m: &mut StellarSignedTx| { &mut m.public_key },
));
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"signature",
|m: &StellarSignedTx| { &m.signature },
|m: &mut StellarSignedTx| { &mut m.signature },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<StellarSignedTx>(
"StellarSignedTx",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static StellarSignedTx {
static instance: ::protobuf::rt::LazyV2<StellarSignedTx> = ::protobuf::rt::LazyV2::INIT;
instance.get(StellarSignedTx::new)
}
}
impl ::protobuf::Clear for StellarSignedTx {
fn clear(&mut self) {
self.public_key.clear();
self.signature.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for StellarSignedTx {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for StellarSignedTx {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(Clone,PartialEq,Eq,Debug,Hash)]
pub enum StellarAssetType {
NATIVE = 0,
ALPHANUM4 = 1,
ALPHANUM12 = 2,
}
impl ::protobuf::ProtobufEnum for StellarAssetType {
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<StellarAssetType> {
match value {
0 => ::std::option::Option::Some(StellarAssetType::NATIVE),
1 => ::std::option::Option::Some(StellarAssetType::ALPHANUM4),
2 => ::std::option::Option::Some(StellarAssetType::ALPHANUM12),
_ => ::std::option::Option::None
}
}
fn values() -> &'static [Self] {
static values: &'static [StellarAssetType] = &[
StellarAssetType::NATIVE,
StellarAssetType::ALPHANUM4,
StellarAssetType::ALPHANUM12,
];
values
}
fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
::protobuf::reflect::EnumDescriptor::new_pb_name::<StellarAssetType>("StellarAssetType", file_descriptor_proto())
})
}
}
impl ::std::marker::Copy for StellarAssetType {
}
impl ::std::default::Default for StellarAssetType {
fn default() -> Self {
StellarAssetType::NATIVE
}
}
impl ::protobuf::reflect::ProtobufValue for StellarAssetType {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
}
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n\x16messages-stellar.proto\x12\x1ahw.trezor.messages.stellar\"|\n\x0cS\
tellarAsset\x12@\n\x04type\x18\x01\x20\x02(\x0e2,.hw.trezor.messages.ste\
llar.StellarAssetTypeR\x04type\x12\x12\n\x04code\x18\x02\x20\x01(\tR\x04\
code\x12\x16\n\x06issuer\x18\x03\x20\x01(\tR\x06issuer\"S\n\x11StellarGe\
tAddress\x12\x1b\n\taddress_n\x18\x01\x20\x03(\rR\x08addressN\x12!\n\x0c\
show_display\x18\x02\x20\x01(\x08R\x0bshowDisplay\"*\n\x0eStellarAddress\
\x12\x18\n\x07address\x18\x01\x20\x02(\tR\x07address\"\xa6\x04\n\rStella\
rSignTx\x12\x1b\n\taddress_n\x18\x02\x20\x03(\rR\x08addressN\x12-\n\x12n\
etwork_passphrase\x18\x03\x20\x02(\tR\x11networkPassphrase\x12%\n\x0esou\
rce_account\x18\x04\x20\x02(\tR\rsourceAccount\x12\x10\n\x03fee\x18\x05\
\x20\x02(\rR\x03fee\x12'\n\x0fsequence_number\x18\x06\x20\x02(\x04R\x0es\
equenceNumber\x12)\n\x10timebounds_start\x18\x08\x20\x02(\rR\x0ftimeboun\
dsStart\x12%\n\x0etimebounds_end\x18\t\x20\x02(\rR\rtimeboundsEnd\x12V\n\
\tmemo_type\x18\n\x20\x02(\x0e29.hw.trezor.messages.stellar.StellarSignT\
x.StellarMemoTypeR\x08memoType\x12\x1b\n\tmemo_text\x18\x0b\x20\x01(\tR\
\x08memoText\x12\x17\n\x07memo_id\x18\x0c\x20\x01(\x04R\x06memoId\x12\
\x1b\n\tmemo_hash\x18\r\x20\x01(\x0cR\x08memoHash\x12%\n\x0enum_operatio\
ns\x18\x0e\x20\x02(\rR\rnumOperations\"C\n\x0fStellarMemoType\x12\x08\n\
\x04NONE\x10\0\x12\x08\n\x04TEXT\x10\x01\x12\x06\n\x02ID\x10\x02\x12\x08\
\n\x04HASH\x10\x03\x12\n\n\x06RETURN\x10\x04\"\x14\n\x12StellarTxOpReque\
st\"\xc2\x01\n\x10StellarPaymentOp\x12%\n\x0esource_account\x18\x01\x20\
\x01(\tR\rsourceAccount\x12/\n\x13destination_account\x18\x02\x20\x02(\t\
R\x12destinationAccount\x12>\n\x05asset\x18\x03\x20\x02(\x0b2(.hw.trezor\
.messages.stellar.StellarAssetR\x05asset\x12\x16\n\x06amount\x18\x04\x20\
\x02(\x12R\x06amount\"\x8b\x01\n\x16StellarCreateAccountOp\x12%\n\x0esou\
rce_account\x18\x01\x20\x01(\tR\rsourceAccount\x12\x1f\n\x0bnew_account\
\x18\x02\x20\x02(\tR\nnewAccount\x12)\n\x10starting_balance\x18\x03\x20\
\x02(\x12R\x0fstartingBalance\"\xa5\x03\n!StellarPathPaymentStrictReceiv\
eOp\x12%\n\x0esource_account\x18\x01\x20\x01(\tR\rsourceAccount\x12G\n\n\
send_asset\x18\x02\x20\x02(\x0b2(.hw.trezor.messages.stellar.StellarAsse\
tR\tsendAsset\x12\x19\n\x08send_max\x18\x03\x20\x02(\x12R\x07sendMax\x12\
/\n\x13destination_account\x18\x04\x20\x02(\tR\x12destinationAccount\x12\
U\n\x11destination_asset\x18\x05\x20\x02(\x0b2(.hw.trezor.messages.stell\
ar.StellarAssetR\x10destinationAsset\x12-\n\x12destination_amount\x18\
\x06\x20\x02(\x12R\x11destinationAmount\x12>\n\x05paths\x18\x07\x20\x03(\
\x0b2(.hw.trezor.messages.stellar.StellarAssetR\x05paths\"\xa2\x03\n\x1e\
StellarPathPaymentStrictSendOp\x12%\n\x0esource_account\x18\x01\x20\x01(\
\tR\rsourceAccount\x12G\n\nsend_asset\x18\x02\x20\x02(\x0b2(.hw.trezor.m\
essages.stellar.StellarAssetR\tsendAsset\x12\x1f\n\x0bsend_amount\x18\
\x03\x20\x02(\x12R\nsendAmount\x12/\n\x13destination_account\x18\x04\x20\
\x02(\tR\x12destinationAccount\x12U\n\x11destination_asset\x18\x05\x20\
\x02(\x0b2(.hw.trezor.messages.stellar.StellarAssetR\x10destinationAsset\
\x12'\n\x0fdestination_min\x18\x06\x20\x02(\x12R\x0edestinationMin\x12>\
\n\x05paths\x18\x07\x20\x03(\x0b2(.hw.trezor.messages.stellar.StellarAss\
etR\x05paths\"\xc2\x02\n\x18StellarManageSellOfferOp\x12%\n\x0esource_ac\
count\x18\x01\x20\x01(\tR\rsourceAccount\x12M\n\rselling_asset\x18\x02\
\x20\x02(\x0b2(.hw.trezor.messages.stellar.StellarAssetR\x0csellingAsset\
\x12K\n\x0cbuying_asset\x18\x03\x20\x02(\x0b2(.hw.trezor.messages.stella\
r.StellarAssetR\x0bbuyingAsset\x12\x16\n\x06amount\x18\x04\x20\x02(\x12R\
\x06amount\x12\x17\n\x07price_n\x18\x05\x20\x02(\rR\x06priceN\x12\x17\n\
\x07price_d\x18\x06\x20\x02(\rR\x06priceD\x12\x19\n\x08offer_id\x18\x07\
\x20\x02(\x04R\x07offerId\"\xc1\x02\n\x17StellarManageBuyOfferOp\x12%\n\
\x0esource_account\x18\x01\x20\x01(\tR\rsourceAccount\x12M\n\rselling_as\
set\x18\x02\x20\x02(\x0b2(.hw.trezor.messages.stellar.StellarAssetR\x0cs\
ellingAsset\x12K\n\x0cbuying_asset\x18\x03\x20\x02(\x0b2(.hw.trezor.mess\
ages.stellar.StellarAssetR\x0bbuyingAsset\x12\x16\n\x06amount\x18\x04\
\x20\x02(\x12R\x06amount\x12\x17\n\x07price_n\x18\x05\x20\x02(\rR\x06pri\
ceN\x12\x17\n\x07price_d\x18\x06\x20\x02(\rR\x06priceD\x12\x19\n\x08offe\
r_id\x18\x07\x20\x02(\x04R\x07offerId\"\xae\x02\n\x1fStellarCreatePassiv\
eSellOfferOp\x12%\n\x0esource_account\x18\x01\x20\x01(\tR\rsourceAccount\
\x12M\n\rselling_asset\x18\x02\x20\x02(\x0b2(.hw.trezor.messages.stellar\
.StellarAssetR\x0csellingAsset\x12K\n\x0cbuying_asset\x18\x03\x20\x02(\
\x0b2(.hw.trezor.messages.stellar.StellarAssetR\x0bbuyingAsset\x12\x16\n\
\x06amount\x18\x04\x20\x02(\x12R\x06amount\x12\x17\n\x07price_n\x18\x05\
\x20\x02(\rR\x06priceN\x12\x17\n\x07price_d\x18\x06\x20\x02(\rR\x06price\
D\"\xdd\x04\n\x13StellarSetOptionsOp\x12%\n\x0esource_account\x18\x01\
\x20\x01(\tR\rsourceAccount\x12B\n\x1dinflation_destination_account\x18\
\x02\x20\x01(\tR\x1binflationDestinationAccount\x12\x1f\n\x0bclear_flags\
\x18\x03\x20\x01(\rR\nclearFlags\x12\x1b\n\tset_flags\x18\x04\x20\x01(\r\
R\x08setFlags\x12#\n\rmaster_weight\x18\x05\x20\x01(\rR\x0cmasterWeight\
\x12#\n\rlow_threshold\x18\x06\x20\x01(\rR\x0clowThreshold\x12)\n\x10med\
ium_threshold\x18\x07\x20\x01(\rR\x0fmediumThreshold\x12%\n\x0ehigh_thre\
shold\x18\x08\x20\x01(\rR\rhighThreshold\x12\x1f\n\x0bhome_domain\x18\t\
\x20\x01(\tR\nhomeDomain\x12b\n\x0bsigner_type\x18\n\x20\x01(\x0e2A.hw.t\
rezor.messages.stellar.StellarSetOptionsOp.StellarSignerTypeR\nsignerTyp\
e\x12\x1d\n\nsigner_key\x18\x0b\x20\x01(\x0cR\tsignerKey\x12#\n\rsigner_\
weight\x18\x0c\x20\x01(\rR\x0csignerWeight\"8\n\x11StellarSignerType\x12\
\x0b\n\x07ACCOUNT\x10\0\x12\x0c\n\x08PRE_AUTH\x10\x01\x12\x08\n\x04HASH\
\x10\x02\"\x93\x01\n\x14StellarChangeTrustOp\x12%\n\x0esource_account\
\x18\x01\x20\x01(\tR\rsourceAccount\x12>\n\x05asset\x18\x02\x20\x02(\x0b\
2(.hw.trezor.messages.stellar.StellarAssetR\x05asset\x12\x14\n\x05limit\
\x18\x03\x20\x02(\x04R\x05limit\"\xf6\x01\n\x13StellarAllowTrustOp\x12%\
\n\x0esource_account\x18\x01\x20\x01(\tR\rsourceAccount\x12'\n\x0ftruste\
d_account\x18\x02\x20\x02(\tR\x0etrustedAccount\x12K\n\nasset_type\x18\
\x03\x20\x02(\x0e2,.hw.trezor.messages.stellar.StellarAssetTypeR\tassetT\
ype\x12\x1d\n\nasset_code\x18\x04\x20\x01(\tR\tassetCode\x12#\n\ris_auth\
orized\x18\x05\x20\x02(\x08R\x0cisAuthorized\"o\n\x15StellarAccountMerge\
Op\x12%\n\x0esource_account\x18\x01\x20\x01(\tR\rsourceAccount\x12/\n\
\x13destination_account\x18\x02\x20\x02(\tR\x12destinationAccount\"d\n\
\x13StellarManageDataOp\x12%\n\x0esource_account\x18\x01\x20\x01(\tR\rso\
urceAccount\x12\x10\n\x03key\x18\x02\x20\x02(\tR\x03key\x12\x14\n\x05val\
ue\x18\x03\x20\x01(\x0cR\x05value\"W\n\x15StellarBumpSequenceOp\x12%\n\
\x0esource_account\x18\x01\x20\x01(\tR\rsourceAccount\x12\x17\n\x07bump_\
to\x18\x02\x20\x02(\x04R\x06bumpTo\"N\n\x0fStellarSignedTx\x12\x1d\n\npu\
blic_key\x18\x01\x20\x02(\x0cR\tpublicKey\x12\x1c\n\tsignature\x18\x02\
\x20\x02(\x0cR\tsignature*=\n\x10StellarAssetType\x12\n\n\x06NATIVE\x10\
\0\x12\r\n\tALPHANUM4\x10\x01\x12\x0e\n\nALPHANUM12\x10\x02B;\n#com.sato\
shilabs.trezor.lib.protobufB\x14TrezorMessageStellarJ\xb5a\n\x07\x12\x05\
\0\0\x95\x02\x01\n\x08\n\x01\x0c\x12\x03\0\0\x12\n\x08\n\x01\x02\x12\x03\
\x01\x08\"\n\x08\n\x01\x08\x12\x03\x04\0<\n.\n\x02\x08\x01\x12\x03\x04\0\
<\x1a#\x20Sugar\x20for\x20easier\x20handling\x20in\x20Java\n\n\x08\n\x01\
\x08\x12\x03\x05\05\n\t\n\x02\x08\x08\x12\x03\x05\05\n\x8d\x01\n\x02\x05\
\0\x12\x04\x08\0\x0c\x01\x1a\x80\x01\x20https://github.com/stellar/stell\
ar-core/blob/02d26858069de7c0eefe065056fb0a19bf72ea56/src/xdr/Stellar-le\
dger-entries.x#L25-L31\n\n\n\n\x03\x05\0\x01\x12\x03\x08\x05\x15\n\x0b\n\
\x04\x05\0\x02\0\x12\x03\t\x04\x0f\n\x0c\n\x05\x05\0\x02\0\x01\x12\x03\t\
\x04\n\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03\t\r\x0e\n\x0b\n\x04\x05\0\x02\
\x01\x12\x03\n\x04\x12\n\x0c\n\x05\x05\0\x02\x01\x01\x12\x03\n\x04\r\n\
\x0c\n\x05\x05\0\x02\x01\x02\x12\x03\n\x10\x11\n\x0b\n\x04\x05\0\x02\x02\
\x12\x03\x0b\x04\x13\n\x0c\n\x05\x05\0\x02\x02\x01\x12\x03\x0b\x04\x0e\n\
\x0c\n\x05\x05\0\x02\x02\x02\x12\x03\x0b\x11\x12\n1\n\x02\x04\0\x12\x04\
\x12\0\x17\x01\x1a%*\n\x20Describes\x20a\x20Stellar\x20asset\n\x20@embed\
\n\n\n\n\x03\x04\0\x01\x12\x03\x12\x08\x14\n\x0b\n\x04\x04\0\x02\0\x12\
\x03\x13\x04'\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03\x13\x04\x0c\n\x0c\n\
\x05\x04\0\x02\0\x06\x12\x03\x13\r\x1d\n\x0c\n\x05\x04\0\x02\0\x01\x12\
\x03\x13\x1e\"\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x13%&\n@\n\x04\x04\0\
\x02\x01\x12\x03\x14\x04\x1d\"3\x20for\x20non-native\x20assets,\x20strin\
g\x20describing\x20the\x20code\n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x03\
\x14\x04\x0c\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03\x14\r\x13\n\x0c\n\x05\
\x04\0\x02\x01\x01\x12\x03\x14\x14\x18\n\x0c\n\x05\x04\0\x02\x01\x03\x12\
\x03\x14\x1b\x1c\n\x1e\n\x04\x04\0\x02\x02\x12\x03\x15\x04\x1f\"\x11\x20\
issuing\x20address\n\n\x0c\n\x05\x04\0\x02\x02\x04\x12\x03\x15\x04\x0c\n\
\x0c\n\x05\x04\0\x02\x02\x05\x12\x03\x15\r\x13\n\x0c\n\x05\x04\0\x02\x02\
\x01\x12\x03\x15\x14\x1a\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03\x15\x1d\
\x1e\nU\n\x02\x04\x01\x12\x04\x1e\0!\x01\x1aI*\n\x20Request:\x20Address\
\x20at\x20the\x20specified\x20index\n\x20@start\n\x20@next\x20StellarAdd\
ress\n\n\n\n\x03\x04\x01\x01\x12\x03\x1e\x08\x19\n[\n\x04\x04\x01\x02\0\
\x12\x03\x1f\x04\"\"N\x20BIP-32\x20path.\x20For\x20compatibility\x20with\
\x20other\x20wallets,\x20must\x20be\x20m/44'/148'/index'\n\n\x0c\n\x05\
\x04\x01\x02\0\x04\x12\x03\x1f\x04\x0c\n\x0c\n\x05\x04\x01\x02\0\x05\x12\
\x03\x1f\r\x13\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03\x1f\x14\x1d\n\x0c\n\
\x05\x04\x01\x02\0\x03\x12\x03\x1f\x20!\nC\n\x04\x04\x01\x02\x01\x12\x03\
\x20\x04#\"6\x20optionally\x20show\x20on\x20display\x20before\x20sending\
\x20the\x20result\n\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\x03\x20\x04\x0c\
\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03\x20\r\x11\n\x0c\n\x05\x04\x01\
\x02\x01\x01\x12\x03\x20\x12\x1e\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03\
\x20!\"\n;\n\x02\x04\x02\x12\x04'\0)\x01\x1a/*\n\x20Response:\x20Address\
\x20for\x20the\x20given\x20index\n\x20@end\n\n\n\n\x03\x04\x02\x01\x12\
\x03'\x08\x16\nK\n\x04\x04\x02\x02\0\x12\x03(\x04\x20\">\x20Address\x20i\
n\x20Stellar\x20format\x20(base32\x20of\x20a\x20pubkey\x20with\x20checks\
um)\n\n\x0c\n\x05\x04\x02\x02\0\x04\x12\x03(\x04\x0c\n\x0c\n\x05\x04\x02\
\x02\0\x05\x12\x03(\r\x13\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03(\x14\x1b\
\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03(\x1e\x1f\na\n\x02\x04\x03\x12\x04\
0\0F\x01\x1aU*\n\x20Request:\x20ask\x20device\x20to\x20sign\x20Stellar\
\x20transaction\n\x20@start\n\x20@next\x20StellarTxOpRequest\n\n\n\n\x03\
\x04\x03\x01\x12\x030\x08\x15\n[\n\x04\x04\x03\x02\0\x12\x031\x04\"\"N\
\x20BIP-32\x20path.\x20For\x20compatibility\x20with\x20other\x20wallets,\
\x20must\x20be\x20m/44'/148'/index'\n\n\x0c\n\x05\x04\x03\x02\0\x04\x12\
\x031\x04\x0c\n\x0c\n\x05\x04\x03\x02\0\x05\x12\x031\r\x13\n\x0c\n\x05\
\x04\x03\x02\0\x01\x12\x031\x14\x1d\n\x0c\n\x05\x04\x03\x02\0\x03\x12\
\x031\x20!\nI\n\x04\x04\x03\x02\x01\x12\x032\x04+\"<\x20passphrase\x20fo\
r\x20signing\x20messages\x20on\x20the\x20destination\x20network\n\n\x0c\
\n\x05\x04\x03\x02\x01\x04\x12\x032\x04\x0c\n\x0c\n\x05\x04\x03\x02\x01\
\x05\x12\x032\r\x13\n\x0c\n\x05\x04\x03\x02\x01\x01\x12\x032\x14&\n\x0c\
\n\x05\x04\x03\x02\x01\x03\x12\x032)*\n%\n\x04\x04\x03\x02\x02\x12\x033\
\x04'\"\x18\x20source\x20account\x20address\n\n\x0c\n\x05\x04\x03\x02\
\x02\x04\x12\x033\x04\x0c\n\x0c\n\x05\x04\x03\x02\x02\x05\x12\x033\r\x13\
\n\x0c\n\x05\x04\x03\x02\x02\x01\x12\x033\x14\"\n\x0c\n\x05\x04\x03\x02\
\x02\x03\x12\x033%&\n3\n\x04\x04\x03\x02\x03\x12\x034\x04\x1c\"&\x20Fee\
\x20(in\x20stroops)\x20for\x20the\x20transaction\n\n\x0c\n\x05\x04\x03\
\x02\x03\x04\x12\x034\x04\x0c\n\x0c\n\x05\x04\x03\x02\x03\x05\x12\x034\r\
\x13\n\x0c\n\x05\x04\x03\x02\x03\x01\x12\x034\x14\x17\n\x0c\n\x05\x04\
\x03\x02\x03\x03\x12\x034\x1a\x1b\n*\n\x04\x04\x03\x02\x04\x12\x035\x04(\
\"\x1d\x20transaction\x20sequence\x20number\n\n\x0c\n\x05\x04\x03\x02\
\x04\x04\x12\x035\x04\x0c\n\x0c\n\x05\x04\x03\x02\x04\x05\x12\x035\r\x13\
\n\x0c\n\x05\x04\x03\x02\x04\x01\x12\x035\x14#\n\x0c\n\x05\x04\x03\x02\
\x04\x03\x12\x035&'\nE\n\x04\x04\x03\x02\x05\x12\x036\x04)\"8\x20unix\
\x20timestamp\x20(client\x20must\x20truncate\x20this\x20to\x2032\x20byte\
s)\n\n\x0c\n\x05\x04\x03\x02\x05\x04\x12\x036\x04\x0c\n\x0c\n\x05\x04\
\x03\x02\x05\x05\x12\x036\r\x13\n\x0c\n\x05\x04\x03\x02\x05\x01\x12\x036\
\x14$\n\x0c\n\x05\x04\x03\x02\x05\x03\x12\x036'(\nE\n\x04\x04\x03\x02\
\x06\x12\x037\x04'\"8\x20unix\x20timestamp\x20(client\x20must\x20truncat\
e\x20this\x20to\x2032\x20bytes)\n\n\x0c\n\x05\x04\x03\x02\x06\x04\x12\
\x037\x04\x0c\n\x0c\n\x05\x04\x03\x02\x06\x05\x12\x037\r\x13\n\x0c\n\x05\
\x04\x03\x02\x06\x01\x12\x037\x14\"\n\x0c\n\x05\x04\x03\x02\x06\x03\x12\
\x037%&\n7\n\x04\x04\x03\x02\x07\x12\x038\x04,\"*\x20type\x20of\x20memo\
\x20attached\x20to\x20the\x20transaction\n\n\x0c\n\x05\x04\x03\x02\x07\
\x04\x12\x038\x04\x0c\n\x0c\n\x05\x04\x03\x02\x07\x06\x12\x038\r\x1c\n\
\x0c\n\x05\x04\x03\x02\x07\x01\x12\x038\x1d&\n\x0c\n\x05\x04\x03\x02\x07\
\x03\x12\x038)+\n;\n\x04\x04\x03\x02\x08\x12\x039\x04#\".\x20up\x20to\
\x2028\x20characters\x20(4\x20bytes\x20are\x20for\x20length)\n\n\x0c\n\
\x05\x04\x03\x02\x08\x04\x12\x039\x04\x0c\n\x0c\n\x05\x04\x03\x02\x08\
\x05\x12\x039\r\x13\n\x0c\n\x05\x04\x03\x02\x08\x01\x12\x039\x14\x1d\n\
\x0c\n\x05\x04\x03\x02\x08\x03\x12\x039\x20\"\n\x1c\n\x04\x04\x03\x02\t\
\x12\x03:\x04!\"\x0f\x208-byte\x20uint64\n\n\x0c\n\x05\x04\x03\x02\t\x04\
\x12\x03:\x04\x0c\n\x0c\n\x05\x04\x03\x02\t\x05\x12\x03:\r\x13\n\x0c\n\
\x05\x04\x03\x02\t\x01\x12\x03:\x14\x1b\n\x0c\n\x05\x04\x03\x02\t\x03\
\x12\x03:\x1e\x20\n+\n\x04\x04\x03\x02\n\x12\x03;\x04\"\"\x1e\x2032\x20b\
ytes\x20representing\x20a\x20hash\n\n\x0c\n\x05\x04\x03\x02\n\x04\x12\
\x03;\x04\x0c\n\x0c\n\x05\x04\x03\x02\n\x05\x12\x03;\r\x12\n\x0c\n\x05\
\x04\x03\x02\n\x01\x12\x03;\x13\x1c\n\x0c\n\x05\x04\x03\x02\n\x03\x12\
\x03;\x1f!\n7\n\x04\x04\x03\x02\x0b\x12\x03<\x04(\"*\x20number\x20of\x20\
operations\x20in\x20this\x20transaction\n\n\x0c\n\x05\x04\x03\x02\x0b\
\x04\x12\x03<\x04\x0c\n\x0c\n\x05\x04\x03\x02\x0b\x05\x12\x03<\r\x13\n\
\x0c\n\x05\x04\x03\x02\x0b\x01\x12\x03<\x14\"\n\x0c\n\x05\x04\x03\x02\
\x0b\x03\x12\x03<%'\n\x8d\x01\n\x04\x04\x03\x04\0\x12\x04?\x04E\x05\x1a\
\x7f\x20https://github.com/stellar/stellar-core/blob/02d26858069de7c0eef\
e065056fb0a19bf72ea56/src/xdr/Stellar-transaction.x#L506-L513\n\n\x0c\n\
\x05\x04\x03\x04\0\x01\x12\x03?\t\x18\n\r\n\x06\x04\x03\x04\0\x02\0\x12\
\x03@\x08\x11\n\x0e\n\x07\x04\x03\x04\0\x02\0\x01\x12\x03@\x08\x0c\n\x0e\
\n\x07\x04\x03\x04\0\x02\0\x02\x12\x03@\x0f\x10\n\r\n\x06\x04\x03\x04\0\
\x02\x01\x12\x03A\x08\x11\n\x0e\n\x07\x04\x03\x04\0\x02\x01\x01\x12\x03A\
\x08\x0c\n\x0e\n\x07\x04\x03\x04\0\x02\x01\x02\x12\x03A\x0f\x10\n\r\n\
\x06\x04\x03\x04\0\x02\x02\x12\x03B\x08\x0f\n\x0e\n\x07\x04\x03\x04\0\
\x02\x02\x01\x12\x03B\x08\n\n\x0e\n\x07\x04\x03\x04\0\x02\x02\x02\x12\
\x03B\r\x0e\n\r\n\x06\x04\x03\x04\0\x02\x03\x12\x03C\x08\x11\n\x0e\n\x07\
\x04\x03\x04\0\x02\x03\x01\x12\x03C\x08\x0c\n\x0e\n\x07\x04\x03\x04\0\
\x02\x03\x02\x12\x03C\x0f\x10\n\r\n\x06\x04\x03\x04\0\x02\x04\x12\x03D\
\x08\x13\n\x0e\n\x07\x04\x03\x04\0\x02\x04\x01\x12\x03D\x08\x0e\n\x0e\n\
\x07\x04\x03\x04\0\x02\x04\x02\x12\x03D\x11\x12\n\xe2\x03\n\x02\x04\x04\
\x12\x04X\0Y\x01\x1a\xd5\x03*\n\x20Response:\x20device\x20is\x20ready\
\x20for\x20client\x20to\x20send\x20the\x20next\x20operation\n\x20@next\
\x20StellarPaymentOp\n\x20@next\x20StellarCreateAccountOp\n\x20@next\x20\
StellarPathPaymentStrictReceiveOp\n\x20@next\x20StellarPathPaymentStrict\
SendOp\n\x20@next\x20StellarManageSellOfferOp\n\x20@next\x20StellarManag\
eBuyOfferOp\n\x20@next\x20StellarCreatePassiveSellOfferOp\n\x20@next\x20\
StellarSetOptionsOp\n\x20@next\x20StellarChangeTrustOp\n\x20@next\x20Ste\
llarAllowTrustOp\n\x20@next\x20StellarAccountMergeOp\n\x20@next\x20Stell\
arManageDataOp\n\x20@next\x20StellarBumpSequenceOp\n\n\n\n\x03\x04\x04\
\x01\x12\x03X\x08\x1a\ns\n\x02\x04\x05\x12\x04`\0e\x01\x1ag*\n\x20Reques\
t:\x20ask\x20device\x20to\x20confirm\x20this\x20operation\x20type\n\x20@\
next\x20StellarTxOpRequest\n\x20@next\x20StellarSignedTx\n\n\n\n\x03\x04\
\x05\x01\x12\x03`\x08\x18\n0\n\x04\x04\x05\x02\0\x12\x03a\x04'\"#\x20(op\
tional)\x20source\x20account\x20address\n\n\x0c\n\x05\x04\x05\x02\0\x04\
\x12\x03a\x04\x0c\n\x0c\n\x05\x04\x05\x02\0\x05\x12\x03a\r\x13\n\x0c\n\
\x05\x04\x05\x02\0\x01\x12\x03a\x14\"\n\x0c\n\x05\x04\x05\x02\0\x03\x12\
\x03a%&\n*\n\x04\x04\x05\x02\x01\x12\x03b\x04,\"\x1d\x20destination\x20a\
ccount\x20address\n\n\x0c\n\x05\x04\x05\x02\x01\x04\x12\x03b\x04\x0c\n\
\x0c\n\x05\x04\x05\x02\x01\x05\x12\x03b\r\x13\n\x0c\n\x05\x04\x05\x02\
\x01\x01\x12\x03b\x14'\n\x0c\n\x05\x04\x05\x02\x01\x03\x12\x03b*+\n.\n\
\x04\x04\x05\x02\x02\x12\x03c\x04$\"!\x20asset\x20involved\x20in\x20the\
\x20operation\n\n\x0c\n\x05\x04\x05\x02\x02\x04\x12\x03c\x04\x0c\n\x0c\n\
\x05\x04\x05\x02\x02\x06\x12\x03c\r\x19\n\x0c\n\x05\x04\x05\x02\x02\x01\
\x12\x03c\x1a\x1f\n\x0c\n\x05\x04\x05\x02\x02\x03\x12\x03c\"#\n/\n\x04\
\x04\x05\x02\x03\x12\x03d\x04\x1f\"\"\x20amount\x20of\x20the\x20given\
\x20asset\x20to\x20pay\n\n\x0c\n\x05\x04\x05\x02\x03\x04\x12\x03d\x04\
\x0c\n\x0c\n\x05\x04\x05\x02\x03\x05\x12\x03d\r\x13\n\x0c\n\x05\x04\x05\
\x02\x03\x01\x12\x03d\x14\x1a\n\x0c\n\x05\x04\x05\x02\x03\x03\x12\x03d\
\x1d\x1e\ns\n\x02\x04\x06\x12\x04l\0p\x01\x1ag*\n\x20Request:\x20ask\x20\
device\x20to\x20confirm\x20this\x20operation\x20type\n\x20@next\x20Stell\
arTxOpRequest\n\x20@next\x20StellarSignedTx\n\n\n\n\x03\x04\x06\x01\x12\
\x03l\x08\x1e\n0\n\x04\x04\x06\x02\0\x12\x03m\x04'\"#\x20(optional)\x20s\
ource\x20account\x20address\n\n\x0c\n\x05\x04\x06\x02\0\x04\x12\x03m\x04\
\x0c\n\x0c\n\x05\x04\x06\x02\0\x05\x12\x03m\r\x13\n\x0c\n\x05\x04\x06\
\x02\0\x01\x12\x03m\x14\"\n\x0c\n\x05\x04\x06\x02\0\x03\x12\x03m%&\n(\n\
\x04\x04\x06\x02\x01\x12\x03n\x04$\"\x1b\x20account\x20address\x20to\x20\
create\n\n\x0c\n\x05\x04\x06\x02\x01\x04\x12\x03n\x04\x0c\n\x0c\n\x05\
\x04\x06\x02\x01\x05\x12\x03n\r\x13\n\x0c\n\x05\x04\x06\x02\x01\x01\x12\
\x03n\x14\x1f\n\x0c\n\x05\x04\x06\x02\x01\x03\x12\x03n\"#\n;\n\x04\x04\
\x06\x02\x02\x12\x03o\x04)\".\x20initial\x20starting\x20balance\x20for\
\x20the\x20new\x20account\n\n\x0c\n\x05\x04\x06\x02\x02\x04\x12\x03o\x04\
\x0c\n\x0c\n\x05\x04\x06\x02\x02\x05\x12\x03o\r\x13\n\x0c\n\x05\x04\x06\
\x02\x02\x01\x12\x03o\x14$\n\x0c\n\x05\x04\x06\x02\x02\x03\x12\x03o'(\ns\
\n\x02\x04\x07\x12\x04w\0\x7f\x01\x1ag*\n\x20Request:\x20ask\x20device\
\x20to\x20confirm\x20this\x20operation\x20type\n\x20@next\x20StellarTxOp\
Request\n\x20@next\x20StellarSignedTx\n\n\n\n\x03\x04\x07\x01\x12\x03w\
\x08)\n(\n\x04\x04\x07\x02\0\x12\x03x\x04'\"\x1b\x20(optional)\x20source\
\x20address\n\n\x0c\n\x05\x04\x07\x02\0\x04\x12\x03x\x04\x0c\n\x0c\n\x05\
\x04\x07\x02\0\x05\x12\x03x\r\x13\n\x0c\n\x05\x04\x07\x02\0\x01\x12\x03x\
\x14\"\n\x0c\n\x05\x04\x07\x02\0\x03\x12\x03x%&\n\x20\n\x04\x04\x07\x02\
\x01\x12\x03y\x04)\"\x13\x20asset\x20we\x20pay\x20with\n\n\x0c\n\x05\x04\
\x07\x02\x01\x04\x12\x03y\x04\x0c\n\x0c\n\x05\x04\x07\x02\x01\x06\x12\
\x03y\r\x19\n\x0c\n\x05\x04\x07\x02\x01\x01\x12\x03y\x1a$\n\x0c\n\x05\
\x04\x07\x02\x01\x03\x12\x03y'(\nG\n\x04\x04\x07\x02\x02\x12\x03z\x04!\"\
:\x20the\x20maximum\x20amount\x20of\x20sendAsset\x20to\x20send\x20(exclu\
ding\x20fees)\n\n\x0c\n\x05\x04\x07\x02\x02\x04\x12\x03z\x04\x0c\n\x0c\n\
\x05\x04\x07\x02\x02\x05\x12\x03z\r\x13\n\x0c\n\x05\x04\x07\x02\x02\x01\
\x12\x03z\x14\x1c\n\x0c\n\x05\x04\x07\x02\x02\x03\x12\x03z\x1f\x20\n'\n\
\x04\x04\x07\x02\x03\x12\x03{\x04,\"\x1a\x20recipient\x20of\x20the\x20pa\
yment\n\n\x0c\n\x05\x04\x07\x02\x03\x04\x12\x03{\x04\x0c\n\x0c\n\x05\x04\
\x07\x02\x03\x05\x12\x03{\r\x13\n\x0c\n\x05\x04\x07\x02\x03\x01\x12\x03{\
\x14'\n\x0c\n\x05\x04\x07\x02\x03\x03\x12\x03{*+\n$\n\x04\x04\x07\x02\
\x04\x12\x03|\x040\"\x17\x20what\x20they\x20end\x20up\x20with\n\n\x0c\n\
\x05\x04\x07\x02\x04\x04\x12\x03|\x04\x0c\n\x0c\n\x05\x04\x07\x02\x04\
\x06\x12\x03|\r\x19\n\x0c\n\x05\x04\x07\x02\x04\x01\x12\x03|\x1a+\n\x0c\
\n\x05\x04\x07\x02\x04\x03\x12\x03|./\n&\n\x04\x04\x07\x02\x05\x12\x03}\
\x04+\"\x19\x20amount\x20they\x20end\x20up\x20with\n\n\x0c\n\x05\x04\x07\
\x02\x05\x04\x12\x03}\x04\x0c\n\x0c\n\x05\x04\x07\x02\x05\x05\x12\x03}\r\
\x13\n\x0c\n\x05\x04\x07\x02\x05\x01\x12\x03}\x14&\n\x0c\n\x05\x04\x07\
\x02\x05\x03\x12\x03})*\n>\n\x04\x04\x07\x02\x06\x12\x03~\x04$\"1\x20add\
itional\x20hops\x20it\x20must\x20go\x20through\x20to\x20get\x20there\n\n\
\x0c\n\x05\x04\x07\x02\x06\x04\x12\x03~\x04\x0c\n\x0c\n\x05\x04\x07\x02\
\x06\x06\x12\x03~\r\x19\n\x0c\n\x05\x04\x07\x02\x06\x01\x12\x03~\x1a\x1f\
\n\x0c\n\x05\x04\x07\x02\x06\x03\x12\x03~\"#\nu\n\x02\x04\x08\x12\x06\
\x86\x01\0\x8e\x01\x01\x1ag*\n\x20Request:\x20ask\x20device\x20to\x20con\
firm\x20this\x20operation\x20type\n\x20@next\x20StellarTxOpRequest\n\x20\
@next\x20StellarSignedTx\n\n\x0b\n\x03\x04\x08\x01\x12\x04\x86\x01\x08&\
\n)\n\x04\x04\x08\x02\0\x12\x04\x87\x01\x04'\"\x1b\x20(optional)\x20sour\
ce\x20address\n\n\r\n\x05\x04\x08\x02\0\x04\x12\x04\x87\x01\x04\x0c\n\r\
\n\x05\x04\x08\x02\0\x05\x12\x04\x87\x01\r\x13\n\r\n\x05\x04\x08\x02\0\
\x01\x12\x04\x87\x01\x14\"\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\x87\x01%&\
\n!\n\x04\x04\x08\x02\x01\x12\x04\x88\x01\x04)\"\x13\x20asset\x20we\x20p\
ay\x20with\n\n\r\n\x05\x04\x08\x02\x01\x04\x12\x04\x88\x01\x04\x0c\n\r\n\
\x05\x04\x08\x02\x01\x06\x12\x04\x88\x01\r\x19\n\r\n\x05\x04\x08\x02\x01\
\x01\x12\x04\x88\x01\x1a$\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\x88\x01'\
(\n<\n\x04\x04\x08\x02\x02\x12\x04\x89\x01\x04$\".\x20amount\x20of\x20se\
ndAsset\x20to\x20send\x20(excluding\x20fees)\n\n\r\n\x05\x04\x08\x02\x02\
\x04\x12\x04\x89\x01\x04\x0c\n\r\n\x05\x04\x08\x02\x02\x05\x12\x04\x89\
\x01\r\x13\n\r\n\x05\x04\x08\x02\x02\x01\x12\x04\x89\x01\x14\x1f\n\r\n\
\x05\x04\x08\x02\x02\x03\x12\x04\x89\x01\"#\n(\n\x04\x04\x08\x02\x03\x12\
\x04\x8a\x01\x04,\"\x1a\x20recipient\x20of\x20the\x20payment\n\n\r\n\x05\
\x04\x08\x02\x03\x04\x12\x04\x8a\x01\x04\x0c\n\r\n\x05\x04\x08\x02\x03\
\x05\x12\x04\x8a\x01\r\x13\n\r\n\x05\x04\x08\x02\x03\x01\x12\x04\x8a\x01\
\x14'\n\r\n\x05\x04\x08\x02\x03\x03\x12\x04\x8a\x01*+\n%\n\x04\x04\x08\
\x02\x04\x12\x04\x8b\x01\x040\"\x17\x20what\x20they\x20end\x20up\x20with\
\n\n\r\n\x05\x04\x08\x02\x04\x04\x12\x04\x8b\x01\x04\x0c\n\r\n\x05\x04\
\x08\x02\x04\x06\x12\x04\x8b\x01\r\x19\n\r\n\x05\x04\x08\x02\x04\x01\x12\
\x04\x8b\x01\x1a+\n\r\n\x05\x04\x08\x02\x04\x03\x12\x04\x8b\x01./\n?\n\
\x04\x04\x08\x02\x05\x12\x04\x8c\x01\x04(\"1\x20the\x20minimum\x20amount\
\x20of\x20dest\x20asset\x20to\x20be\x20received\n\n\r\n\x05\x04\x08\x02\
\x05\x04\x12\x04\x8c\x01\x04\x0c\n\r\n\x05\x04\x08\x02\x05\x05\x12\x04\
\x8c\x01\r\x13\n\r\n\x05\x04\x08\x02\x05\x01\x12\x04\x8c\x01\x14#\n\r\n\
\x05\x04\x08\x02\x05\x03\x12\x04\x8c\x01&'\n>\n\x04\x04\x08\x02\x06\x12\
\x04\x8d\x01\x04$\"0additional\x20hops\x20it\x20must\x20go\x20through\
\x20to\x20get\x20there\n\n\r\n\x05\x04\x08\x02\x06\x04\x12\x04\x8d\x01\
\x04\x0c\n\r\n\x05\x04\x08\x02\x06\x06\x12\x04\x8d\x01\r\x19\n\r\n\x05\
\x04\x08\x02\x06\x01\x12\x04\x8d\x01\x1a\x1f\n\r\n\x05\x04\x08\x02\x06\
\x03\x12\x04\x8d\x01\"#\nu\n\x02\x04\t\x12\x06\x95\x01\0\x9d\x01\x01\x1a\
g*\n\x20Request:\x20ask\x20device\x20to\x20confirm\x20this\x20operation\
\x20type\n\x20@next\x20StellarTxOpRequest\n\x20@next\x20StellarSignedTx\
\n\n\x0b\n\x03\x04\t\x01\x12\x04\x95\x01\x08\x20\n1\n\x04\x04\t\x02\0\
\x12\x04\x96\x01\x04'\"#\x20(optional)\x20source\x20account\x20address\n\
\n\r\n\x05\x04\t\x02\0\x04\x12\x04\x96\x01\x04\x0c\n\r\n\x05\x04\t\x02\0\
\x05\x12\x04\x96\x01\r\x13\n\r\n\x05\x04\t\x02\0\x01\x12\x04\x96\x01\x14\
\"\n\r\n\x05\x04\t\x02\0\x03\x12\x04\x96\x01%&\n\x0c\n\x04\x04\t\x02\x01\
\x12\x04\x97\x01\x04,\n\r\n\x05\x04\t\x02\x01\x04\x12\x04\x97\x01\x04\
\x0c\n\r\n\x05\x04\t\x02\x01\x06\x12\x04\x97\x01\r\x19\n\r\n\x05\x04\t\
\x02\x01\x01\x12\x04\x97\x01\x1a'\n\r\n\x05\x04\t\x02\x01\x03\x12\x04\
\x97\x01*+\n\x0c\n\x04\x04\t\x02\x02\x12\x04\x98\x01\x04+\n\r\n\x05\x04\
\t\x02\x02\x04\x12\x04\x98\x01\x04\x0c\n\r\n\x05\x04\t\x02\x02\x06\x12\
\x04\x98\x01\r\x19\n\r\n\x05\x04\t\x02\x02\x01\x12\x04\x98\x01\x1a&\n\r\
\n\x05\x04\t\x02\x02\x03\x12\x04\x98\x01)*\n\x0c\n\x04\x04\t\x02\x03\x12\
\x04\x99\x01\x04\x1f\n\r\n\x05\x04\t\x02\x03\x04\x12\x04\x99\x01\x04\x0c\
\n\r\n\x05\x04\t\x02\x03\x05\x12\x04\x99\x01\r\x13\n\r\n\x05\x04\t\x02\
\x03\x01\x12\x04\x99\x01\x14\x1a\n\r\n\x05\x04\t\x02\x03\x03\x12\x04\x99\
\x01\x1d\x1e\n\x1f\n\x04\x04\t\x02\x04\x12\x04\x9a\x01\x04\x20\"\x11\x20\
Price\x20numerator\n\n\r\n\x05\x04\t\x02\x04\x04\x12\x04\x9a\x01\x04\x0c\
\n\r\n\x05\x04\t\x02\x04\x05\x12\x04\x9a\x01\r\x13\n\r\n\x05\x04\t\x02\
\x04\x01\x12\x04\x9a\x01\x14\x1b\n\r\n\x05\x04\t\x02\x04\x03\x12\x04\x9a\
\x01\x1e\x1f\n!\n\x04\x04\t\x02\x05\x12\x04\x9b\x01\x04\x20\"\x13\x20Pri\
ce\x20denominator\n\n\r\n\x05\x04\t\x02\x05\x04\x12\x04\x9b\x01\x04\x0c\
\n\r\n\x05\x04\t\x02\x05\x05\x12\x04\x9b\x01\r\x13\n\r\n\x05\x04\t\x02\
\x05\x01\x12\x04\x9b\x01\x14\x1b\n\r\n\x05\x04\t\x02\x05\x03\x12\x04\x9b\
\x01\x1e\x1f\n7\n\x04\x04\t\x02\x06\x12\x04\x9c\x01\x04!\")\x20Offer\x20\
ID\x20for\x20updating\x20an\x20existing\x20offer\n\n\r\n\x05\x04\t\x02\
\x06\x04\x12\x04\x9c\x01\x04\x0c\n\r\n\x05\x04\t\x02\x06\x05\x12\x04\x9c\
\x01\r\x13\n\r\n\x05\x04\t\x02\x06\x01\x12\x04\x9c\x01\x14\x1c\n\r\n\x05\
\x04\t\x02\x06\x03\x12\x04\x9c\x01\x1f\x20\nu\n\x02\x04\n\x12\x06\xa4\
\x01\0\xac\x01\x01\x1ag*\n\x20Request:\x20ask\x20device\x20to\x20confirm\
\x20this\x20operation\x20type\n\x20@next\x20StellarTxOpRequest\n\x20@nex\
t\x20StellarSignedTx\n\n\x0b\n\x03\x04\n\x01\x12\x04\xa4\x01\x08\x1f\n1\
\n\x04\x04\n\x02\0\x12\x04\xa5\x01\x04'\"#\x20(optional)\x20source\x20ac\
count\x20address\n\n\r\n\x05\x04\n\x02\0\x04\x12\x04\xa5\x01\x04\x0c\n\r\
\n\x05\x04\n\x02\0\x05\x12\x04\xa5\x01\r\x13\n\r\n\x05\x04\n\x02\0\x01\
\x12\x04\xa5\x01\x14\"\n\r\n\x05\x04\n\x02\0\x03\x12\x04\xa5\x01%&\n\x0c\
\n\x04\x04\n\x02\x01\x12\x04\xa6\x01\x04,\n\r\n\x05\x04\n\x02\x01\x04\
\x12\x04\xa6\x01\x04\x0c\n\r\n\x05\x04\n\x02\x01\x06\x12\x04\xa6\x01\r\
\x19\n\r\n\x05\x04\n\x02\x01\x01\x12\x04\xa6\x01\x1a'\n\r\n\x05\x04\n\
\x02\x01\x03\x12\x04\xa6\x01*+\n\x0c\n\x04\x04\n\x02\x02\x12\x04\xa7\x01\
\x04+\n\r\n\x05\x04\n\x02\x02\x04\x12\x04\xa7\x01\x04\x0c\n\r\n\x05\x04\
\n\x02\x02\x06\x12\x04\xa7\x01\r\x19\n\r\n\x05\x04\n\x02\x02\x01\x12\x04\
\xa7\x01\x1a&\n\r\n\x05\x04\n\x02\x02\x03\x12\x04\xa7\x01)*\n\x0c\n\x04\
\x04\n\x02\x03\x12\x04\xa8\x01\x04\x1f\n\r\n\x05\x04\n\x02\x03\x04\x12\
\x04\xa8\x01\x04\x0c\n\r\n\x05\x04\n\x02\x03\x05\x12\x04\xa8\x01\r\x13\n\
\r\n\x05\x04\n\x02\x03\x01\x12\x04\xa8\x01\x14\x1a\n\r\n\x05\x04\n\x02\
\x03\x03\x12\x04\xa8\x01\x1d\x1e\n\x1f\n\x04\x04\n\x02\x04\x12\x04\xa9\
\x01\x04\x20\"\x11\x20Price\x20numerator\n\n\r\n\x05\x04\n\x02\x04\x04\
\x12\x04\xa9\x01\x04\x0c\n\r\n\x05\x04\n\x02\x04\x05\x12\x04\xa9\x01\r\
\x13\n\r\n\x05\x04\n\x02\x04\x01\x12\x04\xa9\x01\x14\x1b\n\r\n\x05\x04\n\
\x02\x04\x03\x12\x04\xa9\x01\x1e\x1f\n!\n\x04\x04\n\x02\x05\x12\x04\xaa\
\x01\x04\x20\"\x13\x20Price\x20denominator\n\n\r\n\x05\x04\n\x02\x05\x04\
\x12\x04\xaa\x01\x04\x0c\n\r\n\x05\x04\n\x02\x05\x05\x12\x04\xaa\x01\r\
\x13\n\r\n\x05\x04\n\x02\x05\x01\x12\x04\xaa\x01\x14\x1b\n\r\n\x05\x04\n\
\x02\x05\x03\x12\x04\xaa\x01\x1e\x1f\n7\n\x04\x04\n\x02\x06\x12\x04\xab\
\x01\x04!\")\x20Offer\x20ID\x20for\x20updating\x20an\x20existing\x20offe\
r\n\n\r\n\x05\x04\n\x02\x06\x04\x12\x04\xab\x01\x04\x0c\n\r\n\x05\x04\n\
\x02\x06\x05\x12\x04\xab\x01\r\x13\n\r\n\x05\x04\n\x02\x06\x01\x12\x04\
\xab\x01\x14\x1c\n\r\n\x05\x04\n\x02\x06\x03\x12\x04\xab\x01\x1f\x20\nu\
\n\x02\x04\x0b\x12\x06\xb3\x01\0\xba\x01\x01\x1ag*\n\x20Request:\x20ask\
\x20device\x20to\x20confirm\x20this\x20operation\x20type\n\x20@next\x20S\
tellarTxOpRequest\n\x20@next\x20StellarSignedTx\n\n\x0b\n\x03\x04\x0b\
\x01\x12\x04\xb3\x01\x08'\n1\n\x04\x04\x0b\x02\0\x12\x04\xb4\x01\x04'\"#\
\x20(optional)\x20source\x20account\x20address\n\n\r\n\x05\x04\x0b\x02\0\
\x04\x12\x04\xb4\x01\x04\x0c\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\xb4\x01\
\r\x13\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\xb4\x01\x14\"\n\r\n\x05\x04\
\x0b\x02\0\x03\x12\x04\xb4\x01%&\n\x0c\n\x04\x04\x0b\x02\x01\x12\x04\xb5\
\x01\x04,\n\r\n\x05\x04\x0b\x02\x01\x04\x12\x04\xb5\x01\x04\x0c\n\r\n\
\x05\x04\x0b\x02\x01\x06\x12\x04\xb5\x01\r\x19\n\r\n\x05\x04\x0b\x02\x01\
\x01\x12\x04\xb5\x01\x1a'\n\r\n\x05\x04\x0b\x02\x01\x03\x12\x04\xb5\x01*\
+\n\x0c\n\x04\x04\x0b\x02\x02\x12\x04\xb6\x01\x04+\n\r\n\x05\x04\x0b\x02\
\x02\x04\x12\x04\xb6\x01\x04\x0c\n\r\n\x05\x04\x0b\x02\x02\x06\x12\x04\
\xb6\x01\r\x19\n\r\n\x05\x04\x0b\x02\x02\x01\x12\x04\xb6\x01\x1a&\n\r\n\
\x05\x04\x0b\x02\x02\x03\x12\x04\xb6\x01)*\n\x0c\n\x04\x04\x0b\x02\x03\
\x12\x04\xb7\x01\x04\x1f\n\r\n\x05\x04\x0b\x02\x03\x04\x12\x04\xb7\x01\
\x04\x0c\n\r\n\x05\x04\x0b\x02\x03\x05\x12\x04\xb7\x01\r\x13\n\r\n\x05\
\x04\x0b\x02\x03\x01\x12\x04\xb7\x01\x14\x1a\n\r\n\x05\x04\x0b\x02\x03\
\x03\x12\x04\xb7\x01\x1d\x1e\n\x1f\n\x04\x04\x0b\x02\x04\x12\x04\xb8\x01\
\x04\x20\"\x11\x20Price\x20numerator\n\n\r\n\x05\x04\x0b\x02\x04\x04\x12\
\x04\xb8\x01\x04\x0c\n\r\n\x05\x04\x0b\x02\x04\x05\x12\x04\xb8\x01\r\x13\
\n\r\n\x05\x04\x0b\x02\x04\x01\x12\x04\xb8\x01\x14\x1b\n\r\n\x05\x04\x0b\
\x02\x04\x03\x12\x04\xb8\x01\x1e\x1f\n!\n\x04\x04\x0b\x02\x05\x12\x04\
\xb9\x01\x04\x20\"\x13\x20Price\x20denominator\n\n\r\n\x05\x04\x0b\x02\
\x05\x04\x12\x04\xb9\x01\x04\x0c\n\r\n\x05\x04\x0b\x02\x05\x05\x12\x04\
\xb9\x01\r\x13\n\r\n\x05\x04\x0b\x02\x05\x01\x12\x04\xb9\x01\x14\x1b\n\r\
\n\x05\x04\x0b\x02\x05\x03\x12\x04\xb9\x01\x1e\x1f\nu\n\x02\x04\x0c\x12\
\x06\xc1\x01\0\xd5\x01\x01\x1ag*\n\x20Request:\x20ask\x20device\x20to\
\x20confirm\x20this\x20operation\x20type\n\x20@next\x20StellarTxOpReques\
t\n\x20@next\x20StellarSignedTx\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\xc1\
\x01\x08\x1b\n1\n\x04\x04\x0c\x02\0\x12\x04\xc2\x01\x04'\"#\x20(optional\
)\x20source\x20account\x20address\n\n\r\n\x05\x04\x0c\x02\0\x04\x12\x04\
\xc2\x01\x04\x0c\n\r\n\x05\x04\x0c\x02\0\x05\x12\x04\xc2\x01\r\x13\n\r\n\
\x05\x04\x0c\x02\0\x01\x12\x04\xc2\x01\x14\"\n\r\n\x05\x04\x0c\x02\0\x03\
\x12\x04\xc2\x01%&\n8\n\x04\x04\x0c\x02\x01\x12\x04\xc3\x01\x046\"*\x20(\
optional)\x20inflation\x20destination\x20address\n\n\r\n\x05\x04\x0c\x02\
\x01\x04\x12\x04\xc3\x01\x04\x0c\n\r\n\x05\x04\x0c\x02\x01\x05\x12\x04\
\xc3\x01\r\x13\n\r\n\x05\x04\x0c\x02\x01\x01\x12\x04\xc3\x01\x141\n\r\n\
\x05\x04\x0c\x02\x01\x03\x12\x04\xc3\x0145\n\x0c\n\x04\x04\x0c\x02\x02\
\x12\x04\xc4\x01\x04$\n\r\n\x05\x04\x0c\x02\x02\x04\x12\x04\xc4\x01\x04\
\x0c\n\r\n\x05\x04\x0c\x02\x02\x05\x12\x04\xc4\x01\r\x13\n\r\n\x05\x04\
\x0c\x02\x02\x01\x12\x04\xc4\x01\x14\x1f\n\r\n\x05\x04\x0c\x02\x02\x03\
\x12\x04\xc4\x01\"#\n\x0c\n\x04\x04\x0c\x02\x03\x12\x04\xc5\x01\x04\"\n\
\r\n\x05\x04\x0c\x02\x03\x04\x12\x04\xc5\x01\x04\x0c\n\r\n\x05\x04\x0c\
\x02\x03\x05\x12\x04\xc5\x01\r\x13\n\r\n\x05\x04\x0c\x02\x03\x01\x12\x04\
\xc5\x01\x14\x1d\n\r\n\x05\x04\x0c\x02\x03\x03\x12\x04\xc5\x01\x20!\n\
\x0c\n\x04\x04\x0c\x02\x04\x12\x04\xc6\x01\x04&\n\r\n\x05\x04\x0c\x02\
\x04\x04\x12\x04\xc6\x01\x04\x0c\n\r\n\x05\x04\x0c\x02\x04\x05\x12\x04\
\xc6\x01\r\x13\n\r\n\x05\x04\x0c\x02\x04\x01\x12\x04\xc6\x01\x14!\n\r\n\
\x05\x04\x0c\x02\x04\x03\x12\x04\xc6\x01$%\n\x0c\n\x04\x04\x0c\x02\x05\
\x12\x04\xc7\x01\x04&\n\r\n\x05\x04\x0c\x02\x05\x04\x12\x04\xc7\x01\x04\
\x0c\n\r\n\x05\x04\x0c\x02\x05\x05\x12\x04\xc7\x01\r\x13\n\r\n\x05\x04\
\x0c\x02\x05\x01\x12\x04\xc7\x01\x14!\n\r\n\x05\x04\x0c\x02\x05\x03\x12\
\x04\xc7\x01$%\n\x0c\n\x04\x04\x0c\x02\x06\x12\x04\xc8\x01\x04)\n\r\n\
\x05\x04\x0c\x02\x06\x04\x12\x04\xc8\x01\x04\x0c\n\r\n\x05\x04\x0c\x02\
\x06\x05\x12\x04\xc8\x01\r\x13\n\r\n\x05\x04\x0c\x02\x06\x01\x12\x04\xc8\
\x01\x14$\n\r\n\x05\x04\x0c\x02\x06\x03\x12\x04\xc8\x01'(\n\x0c\n\x04\
\x04\x0c\x02\x07\x12\x04\xc9\x01\x04'\n\r\n\x05\x04\x0c\x02\x07\x04\x12\
\x04\xc9\x01\x04\x0c\n\r\n\x05\x04\x0c\x02\x07\x05\x12\x04\xc9\x01\r\x13\
\n\r\n\x05\x04\x0c\x02\x07\x01\x12\x04\xc9\x01\x14\"\n\r\n\x05\x04\x0c\
\x02\x07\x03\x12\x04\xc9\x01%&\n\x0c\n\x04\x04\x0c\x02\x08\x12\x04\xca\
\x01\x04$\n\r\n\x05\x04\x0c\x02\x08\x04\x12\x04\xca\x01\x04\x0c\n\r\n\
\x05\x04\x0c\x02\x08\x05\x12\x04\xca\x01\r\x13\n\r\n\x05\x04\x0c\x02\x08\
\x01\x12\x04\xca\x01\x14\x1f\n\r\n\x05\x04\x0c\x02\x08\x03\x12\x04\xca\
\x01\"#\n\x0c\n\x04\x04\x0c\x02\t\x12\x04\xcb\x01\x040\n\r\n\x05\x04\x0c\
\x02\t\x04\x12\x04\xcb\x01\x04\x0c\n\r\n\x05\x04\x0c\x02\t\x06\x12\x04\
\xcb\x01\r\x1e\n\r\n\x05\x04\x0c\x02\t\x01\x12\x04\xcb\x01\x1f*\n\r\n\
\x05\x04\x0c\x02\t\x03\x12\x04\xcb\x01-/\n\x0c\n\x04\x04\x0c\x02\n\x12\
\x04\xcc\x01\x04#\n\r\n\x05\x04\x0c\x02\n\x04\x12\x04\xcc\x01\x04\x0c\n\
\r\n\x05\x04\x0c\x02\n\x05\x12\x04\xcc\x01\r\x12\n\r\n\x05\x04\x0c\x02\n\
\x01\x12\x04\xcc\x01\x13\x1d\n\r\n\x05\x04\x0c\x02\n\x03\x12\x04\xcc\x01\
\x20\"\n\x0c\n\x04\x04\x0c\x02\x0b\x12\x04\xcd\x01\x04'\n\r\n\x05\x04\
\x0c\x02\x0b\x04\x12\x04\xcd\x01\x04\x0c\n\r\n\x05\x04\x0c\x02\x0b\x05\
\x12\x04\xcd\x01\r\x13\n\r\n\x05\x04\x0c\x02\x0b\x01\x12\x04\xcd\x01\x14\
!\n\r\n\x05\x04\x0c\x02\x0b\x03\x12\x04\xcd\x01$&\n\x87\x01\n\x04\x04\
\x0c\x04\0\x12\x06\xd0\x01\x04\xd4\x01\x05\x1aw\x20https://github.com/st\
ellar/stellar-core/blob/02d26858069de7c0eefe065056fb0a19bf72ea56/src/xdr\
/Stellar-types.x#L32-L37\n\n\r\n\x05\x04\x0c\x04\0\x01\x12\x04\xd0\x01\t\
\x1a\n\x0e\n\x06\x04\x0c\x04\0\x02\0\x12\x04\xd1\x01\x08\x14\n\x0f\n\x07\
\x04\x0c\x04\0\x02\0\x01\x12\x04\xd1\x01\x08\x0f\n\x0f\n\x07\x04\x0c\x04\
\0\x02\0\x02\x12\x04\xd1\x01\x12\x13\n\x0e\n\x06\x04\x0c\x04\0\x02\x01\
\x12\x04\xd2\x01\x08\x15\n\x0f\n\x07\x04\x0c\x04\0\x02\x01\x01\x12\x04\
\xd2\x01\x08\x10\n\x0f\n\x07\x04\x0c\x04\0\x02\x01\x02\x12\x04\xd2\x01\
\x13\x14\n\x0e\n\x06\x04\x0c\x04\0\x02\x02\x12\x04\xd3\x01\x08\x11\n\x0f\
\n\x07\x04\x0c\x04\0\x02\x02\x01\x12\x04\xd3\x01\x08\x0c\n\x0f\n\x07\x04\
\x0c\x04\0\x02\x02\x02\x12\x04\xd3\x01\x0f\x10\nu\n\x02\x04\r\x12\x06\
\xdc\x01\0\xe0\x01\x01\x1ag*\n\x20Request:\x20ask\x20device\x20to\x20con\
firm\x20this\x20operation\x20type\n\x20@next\x20StellarTxOpRequest\n\x20\
@next\x20StellarSignedTx\n\n\x0b\n\x03\x04\r\x01\x12\x04\xdc\x01\x08\x1c\
\n1\n\x04\x04\r\x02\0\x12\x04\xdd\x01\x04'\"#\x20(optional)\x20source\
\x20account\x20address\n\n\r\n\x05\x04\r\x02\0\x04\x12\x04\xdd\x01\x04\
\x0c\n\r\n\x05\x04\r\x02\0\x05\x12\x04\xdd\x01\r\x13\n\r\n\x05\x04\r\x02\
\0\x01\x12\x04\xdd\x01\x14\"\n\r\n\x05\x04\r\x02\0\x03\x12\x04\xdd\x01%&\
\n\x0c\n\x04\x04\r\x02\x01\x12\x04\xde\x01\x04$\n\r\n\x05\x04\r\x02\x01\
\x04\x12\x04\xde\x01\x04\x0c\n\r\n\x05\x04\r\x02\x01\x06\x12\x04\xde\x01\
\r\x19\n\r\n\x05\x04\r\x02\x01\x01\x12\x04\xde\x01\x1a\x1f\n\r\n\x05\x04\
\r\x02\x01\x03\x12\x04\xde\x01\"#\n\x0c\n\x04\x04\r\x02\x02\x12\x04\xdf\
\x01\x04\x1e\n\r\n\x05\x04\r\x02\x02\x04\x12\x04\xdf\x01\x04\x0c\n\r\n\
\x05\x04\r\x02\x02\x05\x12\x04\xdf\x01\r\x13\n\r\n\x05\x04\r\x02\x02\x01\
\x12\x04\xdf\x01\x14\x19\n\r\n\x05\x04\r\x02\x02\x03\x12\x04\xdf\x01\x1c\
\x1d\nu\n\x02\x04\x0e\x12\x06\xe7\x01\0\xed\x01\x01\x1ag*\n\x20Request:\
\x20ask\x20device\x20to\x20confirm\x20this\x20operation\x20type\n\x20@ne\
xt\x20StellarTxOpRequest\n\x20@next\x20StellarSignedTx\n\n\x0b\n\x03\x04\
\x0e\x01\x12\x04\xe7\x01\x08\x1b\n1\n\x04\x04\x0e\x02\0\x12\x04\xe8\x01\
\x04'\"#\x20(optional)\x20source\x20account\x20address\n\n\r\n\x05\x04\
\x0e\x02\0\x04\x12\x04\xe8\x01\x04\x0c\n\r\n\x05\x04\x0e\x02\0\x05\x12\
\x04\xe8\x01\r\x13\n\r\n\x05\x04\x0e\x02\0\x01\x12\x04\xe8\x01\x14\"\n\r\
\n\x05\x04\x0e\x02\0\x03\x12\x04\xe8\x01%&\n;\n\x04\x04\x0e\x02\x01\x12\
\x04\xe9\x01\x04(\"-\x20The\x20account\x20being\x20allowed\x20to\x20hold\
\x20the\x20asset\n\n\r\n\x05\x04\x0e\x02\x01\x04\x12\x04\xe9\x01\x04\x0c\
\n\r\n\x05\x04\x0e\x02\x01\x05\x12\x04\xe9\x01\r\x13\n\r\n\x05\x04\x0e\
\x02\x01\x01\x12\x04\xe9\x01\x14#\n\r\n\x05\x04\x0e\x02\x01\x03\x12\x04\
\xe9\x01&'\n\x0c\n\x04\x04\x0e\x02\x02\x12\x04\xea\x01\x04-\n\r\n\x05\
\x04\x0e\x02\x02\x04\x12\x04\xea\x01\x04\x0c\n\r\n\x05\x04\x0e\x02\x02\
\x06\x12\x04\xea\x01\r\x1d\n\r\n\x05\x04\x0e\x02\x02\x01\x12\x04\xea\x01\
\x1e(\n\r\n\x05\x04\x0e\x02\x02\x03\x12\x04\xea\x01+,\n)\n\x04\x04\x0e\
\x02\x03\x12\x04\xeb\x01\x04#\"\x1b\x20human-readable\x20asset\x20code\n\
\n\r\n\x05\x04\x0e\x02\x03\x04\x12\x04\xeb\x01\x04\x0c\n\r\n\x05\x04\x0e\
\x02\x03\x05\x12\x04\xeb\x01\r\x13\n\r\n\x05\x04\x0e\x02\x03\x01\x12\x04\
\xeb\x01\x14\x1e\n\r\n\x05\x04\x0e\x02\x03\x03\x12\x04\xeb\x01!\"\n\x0c\
\n\x04\x04\x0e\x02\x04\x12\x04\xec\x01\x04$\n\r\n\x05\x04\x0e\x02\x04\
\x04\x12\x04\xec\x01\x04\x0c\n\r\n\x05\x04\x0e\x02\x04\x05\x12\x04\xec\
\x01\r\x11\n\r\n\x05\x04\x0e\x02\x04\x01\x12\x04\xec\x01\x12\x1f\n\r\n\
\x05\x04\x0e\x02\x04\x03\x12\x04\xec\x01\"#\nu\n\x02\x04\x0f\x12\x06\xf4\
\x01\0\xf7\x01\x01\x1ag*\n\x20Request:\x20ask\x20device\x20to\x20confirm\
\x20this\x20operation\x20type\n\x20@next\x20StellarTxOpRequest\n\x20@nex\
t\x20StellarSignedTx\n\n\x0b\n\x03\x04\x0f\x01\x12\x04\xf4\x01\x08\x1d\n\
1\n\x04\x04\x0f\x02\0\x12\x04\xf5\x01\x04'\"#\x20(optional)\x20source\
\x20account\x20address\n\n\r\n\x05\x04\x0f\x02\0\x04\x12\x04\xf5\x01\x04\
\x0c\n\r\n\x05\x04\x0f\x02\0\x05\x12\x04\xf5\x01\r\x13\n\r\n\x05\x04\x0f\
\x02\0\x01\x12\x04\xf5\x01\x14\"\n\r\n\x05\x04\x0f\x02\0\x03\x12\x04\xf5\
\x01%&\n+\n\x04\x04\x0f\x02\x01\x12\x04\xf6\x01\x04,\"\x1d\x20destinatio\
n\x20account\x20address\n\n\r\n\x05\x04\x0f\x02\x01\x04\x12\x04\xf6\x01\
\x04\x0c\n\r\n\x05\x04\x0f\x02\x01\x05\x12\x04\xf6\x01\r\x13\n\r\n\x05\
\x04\x0f\x02\x01\x01\x12\x04\xf6\x01\x14'\n\r\n\x05\x04\x0f\x02\x01\x03\
\x12\x04\xf6\x01*+\nu\n\x02\x04\x10\x12\x06\xfe\x01\0\x82\x02\x01\x1ag*\
\n\x20Request:\x20ask\x20device\x20to\x20confirm\x20this\x20operation\
\x20type\n\x20@next\x20StellarTxOpRequest\n\x20@next\x20StellarSignedTx\
\n\n\x0b\n\x03\x04\x10\x01\x12\x04\xfe\x01\x08\x1b\n1\n\x04\x04\x10\x02\
\0\x12\x04\xff\x01\x04'\"#\x20(optional)\x20source\x20account\x20address\
\n\n\r\n\x05\x04\x10\x02\0\x04\x12\x04\xff\x01\x04\x0c\n\r\n\x05\x04\x10\
\x02\0\x05\x12\x04\xff\x01\r\x13\n\r\n\x05\x04\x10\x02\0\x01\x12\x04\xff\
\x01\x14\"\n\r\n\x05\x04\x10\x02\0\x03\x12\x04\xff\x01%&\n\x0c\n\x04\x04\
\x10\x02\x01\x12\x04\x80\x02\x04\x1c\n\r\n\x05\x04\x10\x02\x01\x04\x12\
\x04\x80\x02\x04\x0c\n\r\n\x05\x04\x10\x02\x01\x05\x12\x04\x80\x02\r\x13\
\n\r\n\x05\x04\x10\x02\x01\x01\x12\x04\x80\x02\x14\x17\n\r\n\x05\x04\x10\
\x02\x01\x03\x12\x04\x80\x02\x1a\x1b\n*\n\x04\x04\x10\x02\x02\x12\x04\
\x81\x02\x04\x1d\"\x1c\x2064\x20bytes\x20of\x20arbitrary\x20data\n\n\r\n\
\x05\x04\x10\x02\x02\x04\x12\x04\x81\x02\x04\x0c\n\r\n\x05\x04\x10\x02\
\x02\x05\x12\x04\x81\x02\r\x12\n\r\n\x05\x04\x10\x02\x02\x01\x12\x04\x81\
\x02\x13\x18\n\r\n\x05\x04\x10\x02\x02\x03\x12\x04\x81\x02\x1b\x1c\nu\n\
\x02\x04\x11\x12\x06\x89\x02\0\x8c\x02\x01\x1ag*\n\x20Request:\x20ask\
\x20device\x20to\x20confirm\x20this\x20operation\x20type\n\x20@next\x20S\
tellarTxOpRequest\n\x20@next\x20StellarSignedTx\n\n\x0b\n\x03\x04\x11\
\x01\x12\x04\x89\x02\x08\x1d\n1\n\x04\x04\x11\x02\0\x12\x04\x8a\x02\x04'\
\"#\x20(optional)\x20source\x20account\x20address\n\n\r\n\x05\x04\x11\
\x02\0\x04\x12\x04\x8a\x02\x04\x0c\n\r\n\x05\x04\x11\x02\0\x05\x12\x04\
\x8a\x02\r\x13\n\r\n\x05\x04\x11\x02\0\x01\x12\x04\x8a\x02\x14\"\n\r\n\
\x05\x04\x11\x02\0\x03\x12\x04\x8a\x02%&\n#\n\x04\x04\x11\x02\x01\x12\
\x04\x8b\x02\x04\x20\"\x15\x20new\x20sequence\x20number\n\n\r\n\x05\x04\
\x11\x02\x01\x04\x12\x04\x8b\x02\x04\x0c\n\r\n\x05\x04\x11\x02\x01\x05\
\x12\x04\x8b\x02\r\x13\n\r\n\x05\x04\x11\x02\x01\x01\x12\x04\x8b\x02\x14\
\x1b\n\r\n\x05\x04\x11\x02\x01\x03\x12\x04\x8b\x02\x1e\x1f\n;\n\x02\x04\
\x12\x12\x06\x92\x02\0\x95\x02\x01\x1a-*\n\x20Response:\x20signature\x20\
for\x20transaction\n\x20@end\n\n\x0b\n\x03\x04\x12\x01\x12\x04\x92\x02\
\x08\x17\n@\n\x04\x04\x12\x02\0\x12\x04\x93\x02\x04\"\"2\x20public\x20ke\
y\x20for\x20the\x20private\x20key\x20used\x20to\x20sign\x20data\n\n\r\n\
\x05\x04\x12\x02\0\x04\x12\x04\x93\x02\x04\x0c\n\r\n\x05\x04\x12\x02\0\
\x05\x12\x04\x93\x02\r\x12\n\r\n\x05\x04\x12\x02\0\x01\x12\x04\x93\x02\
\x13\x1d\n\r\n\x05\x04\x12\x02\0\x03\x12\x04\x93\x02\x20!\nE\n\x04\x04\
\x12\x02\x01\x12\x04\x94\x02\x04!\"7\x20signature\x20suitable\x20for\x20\
sending\x20to\x20the\x20Stellar\x20network\n\n\r\n\x05\x04\x12\x02\x01\
\x04\x12\x04\x94\x02\x04\x0c\n\r\n\x05\x04\x12\x02\x01\x05\x12\x04\x94\
\x02\r\x12\n\r\n\x05\x04\x12\x02\x01\x01\x12\x04\x94\x02\x13\x1c\n\r\n\
\x05\x04\x12\x02\x01\x03\x12\x04\x94\x02\x1f\x20\
";
static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
}
pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
file_descriptor_proto_lazy.get(|| {
parse_descriptor_proto()
})
}