#![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_results)]
#![allow(unused_mut)]
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0;
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoBlockchainPointerType {
pub block_index: ::std::option::Option<u32>,
pub tx_index: ::std::option::Option<u32>,
pub certificate_index: ::std::option::Option<u32>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoBlockchainPointerType {
fn default() -> &'a CardanoBlockchainPointerType {
<CardanoBlockchainPointerType as ::protobuf::Message>::default_instance()
}
}
impl CardanoBlockchainPointerType {
pub fn new() -> CardanoBlockchainPointerType {
::std::default::Default::default()
}
pub fn block_index(&self) -> u32 {
self.block_index.unwrap_or(0)
}
pub fn clear_block_index(&mut self) {
self.block_index = ::std::option::Option::None;
}
pub fn has_block_index(&self) -> bool {
self.block_index.is_some()
}
pub fn set_block_index(&mut self, v: u32) {
self.block_index = ::std::option::Option::Some(v);
}
pub fn tx_index(&self) -> u32 {
self.tx_index.unwrap_or(0)
}
pub fn clear_tx_index(&mut self) {
self.tx_index = ::std::option::Option::None;
}
pub fn has_tx_index(&self) -> bool {
self.tx_index.is_some()
}
pub fn set_tx_index(&mut self, v: u32) {
self.tx_index = ::std::option::Option::Some(v);
}
pub fn certificate_index(&self) -> u32 {
self.certificate_index.unwrap_or(0)
}
pub fn clear_certificate_index(&mut self) {
self.certificate_index = ::std::option::Option::None;
}
pub fn has_certificate_index(&self) -> bool {
self.certificate_index.is_some()
}
pub fn set_certificate_index(&mut self, v: u32) {
self.certificate_index = ::std::option::Option::Some(v);
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(3);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"block_index",
|m: &CardanoBlockchainPointerType| { &m.block_index },
|m: &mut CardanoBlockchainPointerType| { &mut m.block_index },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"tx_index",
|m: &CardanoBlockchainPointerType| { &m.tx_index },
|m: &mut CardanoBlockchainPointerType| { &mut m.tx_index },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"certificate_index",
|m: &CardanoBlockchainPointerType| { &m.certificate_index },
|m: &mut CardanoBlockchainPointerType| { &mut m.certificate_index },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoBlockchainPointerType>(
"CardanoBlockchainPointerType",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoBlockchainPointerType {
const NAME: &'static str = "CardanoBlockchainPointerType";
fn is_initialized(&self) -> bool {
if self.block_index.is_none() {
return false;
}
if self.tx_index.is_none() {
return false;
}
if self.certificate_index.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.block_index = ::std::option::Option::Some(is.read_uint32()?);
},
16 => {
self.tx_index = ::std::option::Option::Some(is.read_uint32()?);
},
24 => {
self.certificate_index = ::std::option::Option::Some(is.read_uint32()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.block_index {
my_size += ::protobuf::rt::uint32_size(1, v);
}
if let Some(v) = self.tx_index {
my_size += ::protobuf::rt::uint32_size(2, v);
}
if let Some(v) = self.certificate_index {
my_size += ::protobuf::rt::uint32_size(3, v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.block_index {
os.write_uint32(1, v)?;
}
if let Some(v) = self.tx_index {
os.write_uint32(2, v)?;
}
if let Some(v) = self.certificate_index {
os.write_uint32(3, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoBlockchainPointerType {
CardanoBlockchainPointerType::new()
}
fn clear(&mut self) {
self.block_index = ::std::option::Option::None;
self.tx_index = ::std::option::Option::None;
self.certificate_index = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoBlockchainPointerType {
static instance: CardanoBlockchainPointerType = CardanoBlockchainPointerType {
block_index: ::std::option::Option::None,
tx_index: ::std::option::Option::None,
certificate_index: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoBlockchainPointerType {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoBlockchainPointerType").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoBlockchainPointerType {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoBlockchainPointerType {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoNativeScript {
pub type_: ::std::option::Option<::protobuf::EnumOrUnknown<CardanoNativeScriptType>>,
pub scripts: ::std::vec::Vec<CardanoNativeScript>,
pub key_hash: ::std::option::Option<::std::vec::Vec<u8>>,
pub key_path: ::std::vec::Vec<u32>,
pub required_signatures_count: ::std::option::Option<u32>,
pub invalid_before: ::std::option::Option<u64>,
pub invalid_hereafter: ::std::option::Option<u64>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoNativeScript {
fn default() -> &'a CardanoNativeScript {
<CardanoNativeScript as ::protobuf::Message>::default_instance()
}
}
impl CardanoNativeScript {
pub fn new() -> CardanoNativeScript {
::std::default::Default::default()
}
pub fn type_(&self) -> CardanoNativeScriptType {
match self.type_ {
Some(e) => e.enum_value_or(CardanoNativeScriptType::PUB_KEY),
None => CardanoNativeScriptType::PUB_KEY,
}
}
pub fn clear_type_(&mut self) {
self.type_ = ::std::option::Option::None;
}
pub fn has_type(&self) -> bool {
self.type_.is_some()
}
pub fn set_type(&mut self, v: CardanoNativeScriptType) {
self.type_ = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
}
pub fn key_hash(&self) -> &[u8] {
match self.key_hash.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_key_hash(&mut self) {
self.key_hash = ::std::option::Option::None;
}
pub fn has_key_hash(&self) -> bool {
self.key_hash.is_some()
}
pub fn set_key_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.key_hash = ::std::option::Option::Some(v);
}
pub fn mut_key_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.key_hash.is_none() {
self.key_hash = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.key_hash.as_mut().unwrap()
}
pub fn take_key_hash(&mut self) -> ::std::vec::Vec<u8> {
self.key_hash.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn required_signatures_count(&self) -> u32 {
self.required_signatures_count.unwrap_or(0)
}
pub fn clear_required_signatures_count(&mut self) {
self.required_signatures_count = ::std::option::Option::None;
}
pub fn has_required_signatures_count(&self) -> bool {
self.required_signatures_count.is_some()
}
pub fn set_required_signatures_count(&mut self, v: u32) {
self.required_signatures_count = ::std::option::Option::Some(v);
}
pub fn invalid_before(&self) -> u64 {
self.invalid_before.unwrap_or(0)
}
pub fn clear_invalid_before(&mut self) {
self.invalid_before = ::std::option::Option::None;
}
pub fn has_invalid_before(&self) -> bool {
self.invalid_before.is_some()
}
pub fn set_invalid_before(&mut self, v: u64) {
self.invalid_before = ::std::option::Option::Some(v);
}
pub fn invalid_hereafter(&self) -> u64 {
self.invalid_hereafter.unwrap_or(0)
}
pub fn clear_invalid_hereafter(&mut self) {
self.invalid_hereafter = ::std::option::Option::None;
}
pub fn has_invalid_hereafter(&self) -> bool {
self.invalid_hereafter.is_some()
}
pub fn set_invalid_hereafter(&mut self, v: u64) {
self.invalid_hereafter = ::std::option::Option::Some(v);
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(7);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"type",
|m: &CardanoNativeScript| { &m.type_ },
|m: &mut CardanoNativeScript| { &mut m.type_ },
));
fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
"scripts",
|m: &CardanoNativeScript| { &m.scripts },
|m: &mut CardanoNativeScript| { &mut m.scripts },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"key_hash",
|m: &CardanoNativeScript| { &m.key_hash },
|m: &mut CardanoNativeScript| { &mut m.key_hash },
));
fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
"key_path",
|m: &CardanoNativeScript| { &m.key_path },
|m: &mut CardanoNativeScript| { &mut m.key_path },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"required_signatures_count",
|m: &CardanoNativeScript| { &m.required_signatures_count },
|m: &mut CardanoNativeScript| { &mut m.required_signatures_count },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"invalid_before",
|m: &CardanoNativeScript| { &m.invalid_before },
|m: &mut CardanoNativeScript| { &mut m.invalid_before },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"invalid_hereafter",
|m: &CardanoNativeScript| { &m.invalid_hereafter },
|m: &mut CardanoNativeScript| { &mut m.invalid_hereafter },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoNativeScript>(
"CardanoNativeScript",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoNativeScript {
const NAME: &'static str = "CardanoNativeScript";
fn is_initialized(&self) -> bool {
if self.type_.is_none() {
return false;
}
for v in &self.scripts {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.type_ = ::std::option::Option::Some(is.read_enum_or_unknown()?);
},
18 => {
self.scripts.push(is.read_message()?);
},
26 => {
self.key_hash = ::std::option::Option::Some(is.read_bytes()?);
},
34 => {
is.read_repeated_packed_uint32_into(&mut self.key_path)?;
},
32 => {
self.key_path.push(is.read_uint32()?);
},
40 => {
self.required_signatures_count = ::std::option::Option::Some(is.read_uint32()?);
},
48 => {
self.invalid_before = ::std::option::Option::Some(is.read_uint64()?);
},
56 => {
self.invalid_hereafter = ::std::option::Option::Some(is.read_uint64()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.type_ {
my_size += ::protobuf::rt::int32_size(1, v.value());
}
for value in &self.scripts {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
};
if let Some(v) = self.key_hash.as_ref() {
my_size += ::protobuf::rt::bytes_size(3, &v);
}
for value in &self.key_path {
my_size += ::protobuf::rt::uint32_size(4, *value);
};
if let Some(v) = self.required_signatures_count {
my_size += ::protobuf::rt::uint32_size(5, v);
}
if let Some(v) = self.invalid_before {
my_size += ::protobuf::rt::uint64_size(6, v);
}
if let Some(v) = self.invalid_hereafter {
my_size += ::protobuf::rt::uint64_size(7, v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.type_ {
os.write_enum(1, ::protobuf::EnumOrUnknown::value(&v))?;
}
for v in &self.scripts {
::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
};
if let Some(v) = self.key_hash.as_ref() {
os.write_bytes(3, v)?;
}
for v in &self.key_path {
os.write_uint32(4, *v)?;
};
if let Some(v) = self.required_signatures_count {
os.write_uint32(5, v)?;
}
if let Some(v) = self.invalid_before {
os.write_uint64(6, v)?;
}
if let Some(v) = self.invalid_hereafter {
os.write_uint64(7, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoNativeScript {
CardanoNativeScript::new()
}
fn clear(&mut self) {
self.type_ = ::std::option::Option::None;
self.scripts.clear();
self.key_hash = ::std::option::Option::None;
self.key_path.clear();
self.required_signatures_count = ::std::option::Option::None;
self.invalid_before = ::std::option::Option::None;
self.invalid_hereafter = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoNativeScript {
static instance: CardanoNativeScript = CardanoNativeScript {
type_: ::std::option::Option::None,
scripts: ::std::vec::Vec::new(),
key_hash: ::std::option::Option::None,
key_path: ::std::vec::Vec::new(),
required_signatures_count: ::std::option::Option::None,
invalid_before: ::std::option::Option::None,
invalid_hereafter: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoNativeScript {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoNativeScript").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoNativeScript {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoNativeScript {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoGetNativeScriptHash {
pub script: ::protobuf::MessageField<CardanoNativeScript>,
pub display_format: ::std::option::Option<::protobuf::EnumOrUnknown<CardanoNativeScriptHashDisplayFormat>>,
pub derivation_type: ::std::option::Option<::protobuf::EnumOrUnknown<CardanoDerivationType>>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoGetNativeScriptHash {
fn default() -> &'a CardanoGetNativeScriptHash {
<CardanoGetNativeScriptHash as ::protobuf::Message>::default_instance()
}
}
impl CardanoGetNativeScriptHash {
pub fn new() -> CardanoGetNativeScriptHash {
::std::default::Default::default()
}
pub fn display_format(&self) -> CardanoNativeScriptHashDisplayFormat {
match self.display_format {
Some(e) => e.enum_value_or(CardanoNativeScriptHashDisplayFormat::HIDE),
None => CardanoNativeScriptHashDisplayFormat::HIDE,
}
}
pub fn clear_display_format(&mut self) {
self.display_format = ::std::option::Option::None;
}
pub fn has_display_format(&self) -> bool {
self.display_format.is_some()
}
pub fn set_display_format(&mut self, v: CardanoNativeScriptHashDisplayFormat) {
self.display_format = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
}
pub fn derivation_type(&self) -> CardanoDerivationType {
match self.derivation_type {
Some(e) => e.enum_value_or(CardanoDerivationType::LEDGER),
None => CardanoDerivationType::LEDGER,
}
}
pub fn clear_derivation_type(&mut self) {
self.derivation_type = ::std::option::Option::None;
}
pub fn has_derivation_type(&self) -> bool {
self.derivation_type.is_some()
}
pub fn set_derivation_type(&mut self, v: CardanoDerivationType) {
self.derivation_type = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(3);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, CardanoNativeScript>(
"script",
|m: &CardanoGetNativeScriptHash| { &m.script },
|m: &mut CardanoGetNativeScriptHash| { &mut m.script },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"display_format",
|m: &CardanoGetNativeScriptHash| { &m.display_format },
|m: &mut CardanoGetNativeScriptHash| { &mut m.display_format },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"derivation_type",
|m: &CardanoGetNativeScriptHash| { &m.derivation_type },
|m: &mut CardanoGetNativeScriptHash| { &mut m.derivation_type },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoGetNativeScriptHash>(
"CardanoGetNativeScriptHash",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoGetNativeScriptHash {
const NAME: &'static str = "CardanoGetNativeScriptHash";
fn is_initialized(&self) -> bool {
if self.script.is_none() {
return false;
}
if self.display_format.is_none() {
return false;
}
if self.derivation_type.is_none() {
return false;
}
for v in &self.script {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.script)?;
},
16 => {
self.display_format = ::std::option::Option::Some(is.read_enum_or_unknown()?);
},
24 => {
self.derivation_type = ::std::option::Option::Some(is.read_enum_or_unknown()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.script.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
}
if let Some(v) = self.display_format {
my_size += ::protobuf::rt::int32_size(2, v.value());
}
if let Some(v) = self.derivation_type {
my_size += ::protobuf::rt::int32_size(3, v.value());
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.script.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
}
if let Some(v) = self.display_format {
os.write_enum(2, ::protobuf::EnumOrUnknown::value(&v))?;
}
if let Some(v) = self.derivation_type {
os.write_enum(3, ::protobuf::EnumOrUnknown::value(&v))?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoGetNativeScriptHash {
CardanoGetNativeScriptHash::new()
}
fn clear(&mut self) {
self.script.clear();
self.display_format = ::std::option::Option::None;
self.derivation_type = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoGetNativeScriptHash {
static instance: CardanoGetNativeScriptHash = CardanoGetNativeScriptHash {
script: ::protobuf::MessageField::none(),
display_format: ::std::option::Option::None,
derivation_type: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoGetNativeScriptHash {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoGetNativeScriptHash").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoGetNativeScriptHash {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoGetNativeScriptHash {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoNativeScriptHash {
pub script_hash: ::std::option::Option<::std::vec::Vec<u8>>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoNativeScriptHash {
fn default() -> &'a CardanoNativeScriptHash {
<CardanoNativeScriptHash as ::protobuf::Message>::default_instance()
}
}
impl CardanoNativeScriptHash {
pub fn new() -> CardanoNativeScriptHash {
::std::default::Default::default()
}
pub fn script_hash(&self) -> &[u8] {
match self.script_hash.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_script_hash(&mut self) {
self.script_hash = ::std::option::Option::None;
}
pub fn has_script_hash(&self) -> bool {
self.script_hash.is_some()
}
pub fn set_script_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.script_hash = ::std::option::Option::Some(v);
}
pub fn mut_script_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.script_hash.is_none() {
self.script_hash = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.script_hash.as_mut().unwrap()
}
pub fn take_script_hash(&mut self) -> ::std::vec::Vec<u8> {
self.script_hash.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(1);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"script_hash",
|m: &CardanoNativeScriptHash| { &m.script_hash },
|m: &mut CardanoNativeScriptHash| { &mut m.script_hash },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoNativeScriptHash>(
"CardanoNativeScriptHash",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoNativeScriptHash {
const NAME: &'static str = "CardanoNativeScriptHash";
fn is_initialized(&self) -> bool {
if self.script_hash.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.script_hash = ::std::option::Option::Some(is.read_bytes()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.script_hash.as_ref() {
my_size += ::protobuf::rt::bytes_size(1, &v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.script_hash.as_ref() {
os.write_bytes(1, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoNativeScriptHash {
CardanoNativeScriptHash::new()
}
fn clear(&mut self) {
self.script_hash = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoNativeScriptHash {
static instance: CardanoNativeScriptHash = CardanoNativeScriptHash {
script_hash: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoNativeScriptHash {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoNativeScriptHash").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoNativeScriptHash {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoNativeScriptHash {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoAddressParametersType {
pub address_type: ::std::option::Option<::protobuf::EnumOrUnknown<CardanoAddressType>>,
pub address_n: ::std::vec::Vec<u32>,
pub address_n_staking: ::std::vec::Vec<u32>,
pub staking_key_hash: ::std::option::Option<::std::vec::Vec<u8>>,
pub certificate_pointer: ::protobuf::MessageField<CardanoBlockchainPointerType>,
pub script_payment_hash: ::std::option::Option<::std::vec::Vec<u8>>,
pub script_staking_hash: ::std::option::Option<::std::vec::Vec<u8>>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoAddressParametersType {
fn default() -> &'a CardanoAddressParametersType {
<CardanoAddressParametersType as ::protobuf::Message>::default_instance()
}
}
impl CardanoAddressParametersType {
pub fn new() -> CardanoAddressParametersType {
::std::default::Default::default()
}
pub fn address_type(&self) -> CardanoAddressType {
match self.address_type {
Some(e) => e.enum_value_or(CardanoAddressType::BASE),
None => CardanoAddressType::BASE,
}
}
pub fn clear_address_type(&mut self) {
self.address_type = ::std::option::Option::None;
}
pub fn has_address_type(&self) -> bool {
self.address_type.is_some()
}
pub fn set_address_type(&mut self, v: CardanoAddressType) {
self.address_type = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
}
pub fn staking_key_hash(&self) -> &[u8] {
match self.staking_key_hash.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_staking_key_hash(&mut self) {
self.staking_key_hash = ::std::option::Option::None;
}
pub fn has_staking_key_hash(&self) -> bool {
self.staking_key_hash.is_some()
}
pub fn set_staking_key_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.staking_key_hash = ::std::option::Option::Some(v);
}
pub fn mut_staking_key_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.staking_key_hash.is_none() {
self.staking_key_hash = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.staking_key_hash.as_mut().unwrap()
}
pub fn take_staking_key_hash(&mut self) -> ::std::vec::Vec<u8> {
self.staking_key_hash.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn script_payment_hash(&self) -> &[u8] {
match self.script_payment_hash.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_script_payment_hash(&mut self) {
self.script_payment_hash = ::std::option::Option::None;
}
pub fn has_script_payment_hash(&self) -> bool {
self.script_payment_hash.is_some()
}
pub fn set_script_payment_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.script_payment_hash = ::std::option::Option::Some(v);
}
pub fn mut_script_payment_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.script_payment_hash.is_none() {
self.script_payment_hash = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.script_payment_hash.as_mut().unwrap()
}
pub fn take_script_payment_hash(&mut self) -> ::std::vec::Vec<u8> {
self.script_payment_hash.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn script_staking_hash(&self) -> &[u8] {
match self.script_staking_hash.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_script_staking_hash(&mut self) {
self.script_staking_hash = ::std::option::Option::None;
}
pub fn has_script_staking_hash(&self) -> bool {
self.script_staking_hash.is_some()
}
pub fn set_script_staking_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.script_staking_hash = ::std::option::Option::Some(v);
}
pub fn mut_script_staking_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.script_staking_hash.is_none() {
self.script_staking_hash = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.script_staking_hash.as_mut().unwrap()
}
pub fn take_script_staking_hash(&mut self) -> ::std::vec::Vec<u8> {
self.script_staking_hash.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(7);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"address_type",
|m: &CardanoAddressParametersType| { &m.address_type },
|m: &mut CardanoAddressParametersType| { &mut m.address_type },
));
fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
"address_n",
|m: &CardanoAddressParametersType| { &m.address_n },
|m: &mut CardanoAddressParametersType| { &mut m.address_n },
));
fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
"address_n_staking",
|m: &CardanoAddressParametersType| { &m.address_n_staking },
|m: &mut CardanoAddressParametersType| { &mut m.address_n_staking },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"staking_key_hash",
|m: &CardanoAddressParametersType| { &m.staking_key_hash },
|m: &mut CardanoAddressParametersType| { &mut m.staking_key_hash },
));
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, CardanoBlockchainPointerType>(
"certificate_pointer",
|m: &CardanoAddressParametersType| { &m.certificate_pointer },
|m: &mut CardanoAddressParametersType| { &mut m.certificate_pointer },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"script_payment_hash",
|m: &CardanoAddressParametersType| { &m.script_payment_hash },
|m: &mut CardanoAddressParametersType| { &mut m.script_payment_hash },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"script_staking_hash",
|m: &CardanoAddressParametersType| { &m.script_staking_hash },
|m: &mut CardanoAddressParametersType| { &mut m.script_staking_hash },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoAddressParametersType>(
"CardanoAddressParametersType",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoAddressParametersType {
const NAME: &'static str = "CardanoAddressParametersType";
fn is_initialized(&self) -> bool {
if self.address_type.is_none() {
return false;
}
for v in &self.certificate_pointer {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.address_type = ::std::option::Option::Some(is.read_enum_or_unknown()?);
},
18 => {
is.read_repeated_packed_uint32_into(&mut self.address_n)?;
},
16 => {
self.address_n.push(is.read_uint32()?);
},
26 => {
is.read_repeated_packed_uint32_into(&mut self.address_n_staking)?;
},
24 => {
self.address_n_staking.push(is.read_uint32()?);
},
34 => {
self.staking_key_hash = ::std::option::Option::Some(is.read_bytes()?);
},
42 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.certificate_pointer)?;
},
50 => {
self.script_payment_hash = ::std::option::Option::Some(is.read_bytes()?);
},
58 => {
self.script_staking_hash = ::std::option::Option::Some(is.read_bytes()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.address_type {
my_size += ::protobuf::rt::int32_size(1, v.value());
}
for value in &self.address_n {
my_size += ::protobuf::rt::uint32_size(2, *value);
};
for value in &self.address_n_staking {
my_size += ::protobuf::rt::uint32_size(3, *value);
};
if let Some(v) = self.staking_key_hash.as_ref() {
my_size += ::protobuf::rt::bytes_size(4, &v);
}
if let Some(v) = self.certificate_pointer.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
}
if let Some(v) = self.script_payment_hash.as_ref() {
my_size += ::protobuf::rt::bytes_size(6, &v);
}
if let Some(v) = self.script_staking_hash.as_ref() {
my_size += ::protobuf::rt::bytes_size(7, &v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.address_type {
os.write_enum(1, ::protobuf::EnumOrUnknown::value(&v))?;
}
for v in &self.address_n {
os.write_uint32(2, *v)?;
};
for v in &self.address_n_staking {
os.write_uint32(3, *v)?;
};
if let Some(v) = self.staking_key_hash.as_ref() {
os.write_bytes(4, v)?;
}
if let Some(v) = self.certificate_pointer.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(5, v, os)?;
}
if let Some(v) = self.script_payment_hash.as_ref() {
os.write_bytes(6, v)?;
}
if let Some(v) = self.script_staking_hash.as_ref() {
os.write_bytes(7, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoAddressParametersType {
CardanoAddressParametersType::new()
}
fn clear(&mut self) {
self.address_type = ::std::option::Option::None;
self.address_n.clear();
self.address_n_staking.clear();
self.staking_key_hash = ::std::option::Option::None;
self.certificate_pointer.clear();
self.script_payment_hash = ::std::option::Option::None;
self.script_staking_hash = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoAddressParametersType {
static instance: CardanoAddressParametersType = CardanoAddressParametersType {
address_type: ::std::option::Option::None,
address_n: ::std::vec::Vec::new(),
address_n_staking: ::std::vec::Vec::new(),
staking_key_hash: ::std::option::Option::None,
certificate_pointer: ::protobuf::MessageField::none(),
script_payment_hash: ::std::option::Option::None,
script_staking_hash: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoAddressParametersType {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoAddressParametersType").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoAddressParametersType {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoAddressParametersType {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoGetAddress {
pub show_display: ::std::option::Option<bool>,
pub protocol_magic: ::std::option::Option<u32>,
pub network_id: ::std::option::Option<u32>,
pub address_parameters: ::protobuf::MessageField<CardanoAddressParametersType>,
pub derivation_type: ::std::option::Option<::protobuf::EnumOrUnknown<CardanoDerivationType>>,
pub chunkify: ::std::option::Option<bool>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoGetAddress {
fn default() -> &'a CardanoGetAddress {
<CardanoGetAddress as ::protobuf::Message>::default_instance()
}
}
impl CardanoGetAddress {
pub fn new() -> CardanoGetAddress {
::std::default::Default::default()
}
pub fn 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);
}
pub fn protocol_magic(&self) -> u32 {
self.protocol_magic.unwrap_or(0)
}
pub fn clear_protocol_magic(&mut self) {
self.protocol_magic = ::std::option::Option::None;
}
pub fn has_protocol_magic(&self) -> bool {
self.protocol_magic.is_some()
}
pub fn set_protocol_magic(&mut self, v: u32) {
self.protocol_magic = ::std::option::Option::Some(v);
}
pub fn network_id(&self) -> u32 {
self.network_id.unwrap_or(0)
}
pub fn clear_network_id(&mut self) {
self.network_id = ::std::option::Option::None;
}
pub fn has_network_id(&self) -> bool {
self.network_id.is_some()
}
pub fn set_network_id(&mut self, v: u32) {
self.network_id = ::std::option::Option::Some(v);
}
pub fn derivation_type(&self) -> CardanoDerivationType {
match self.derivation_type {
Some(e) => e.enum_value_or(CardanoDerivationType::LEDGER),
None => CardanoDerivationType::LEDGER,
}
}
pub fn clear_derivation_type(&mut self) {
self.derivation_type = ::std::option::Option::None;
}
pub fn has_derivation_type(&self) -> bool {
self.derivation_type.is_some()
}
pub fn set_derivation_type(&mut self, v: CardanoDerivationType) {
self.derivation_type = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
}
pub fn chunkify(&self) -> bool {
self.chunkify.unwrap_or(false)
}
pub fn clear_chunkify(&mut self) {
self.chunkify = ::std::option::Option::None;
}
pub fn has_chunkify(&self) -> bool {
self.chunkify.is_some()
}
pub fn set_chunkify(&mut self, v: bool) {
self.chunkify = ::std::option::Option::Some(v);
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(6);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"show_display",
|m: &CardanoGetAddress| { &m.show_display },
|m: &mut CardanoGetAddress| { &mut m.show_display },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"protocol_magic",
|m: &CardanoGetAddress| { &m.protocol_magic },
|m: &mut CardanoGetAddress| { &mut m.protocol_magic },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"network_id",
|m: &CardanoGetAddress| { &m.network_id },
|m: &mut CardanoGetAddress| { &mut m.network_id },
));
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, CardanoAddressParametersType>(
"address_parameters",
|m: &CardanoGetAddress| { &m.address_parameters },
|m: &mut CardanoGetAddress| { &mut m.address_parameters },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"derivation_type",
|m: &CardanoGetAddress| { &m.derivation_type },
|m: &mut CardanoGetAddress| { &mut m.derivation_type },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"chunkify",
|m: &CardanoGetAddress| { &m.chunkify },
|m: &mut CardanoGetAddress| { &mut m.chunkify },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoGetAddress>(
"CardanoGetAddress",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoGetAddress {
const NAME: &'static str = "CardanoGetAddress";
fn is_initialized(&self) -> bool {
if self.protocol_magic.is_none() {
return false;
}
if self.network_id.is_none() {
return false;
}
if self.address_parameters.is_none() {
return false;
}
if self.derivation_type.is_none() {
return false;
}
for v in &self.address_parameters {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
16 => {
self.show_display = ::std::option::Option::Some(is.read_bool()?);
},
24 => {
self.protocol_magic = ::std::option::Option::Some(is.read_uint32()?);
},
32 => {
self.network_id = ::std::option::Option::Some(is.read_uint32()?);
},
42 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.address_parameters)?;
},
48 => {
self.derivation_type = ::std::option::Option::Some(is.read_enum_or_unknown()?);
},
56 => {
self.chunkify = ::std::option::Option::Some(is.read_bool()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.show_display {
my_size += 1 + 1;
}
if let Some(v) = self.protocol_magic {
my_size += ::protobuf::rt::uint32_size(3, v);
}
if let Some(v) = self.network_id {
my_size += ::protobuf::rt::uint32_size(4, v);
}
if let Some(v) = self.address_parameters.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
}
if let Some(v) = self.derivation_type {
my_size += ::protobuf::rt::int32_size(6, v.value());
}
if let Some(v) = self.chunkify {
my_size += 1 + 1;
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.show_display {
os.write_bool(2, v)?;
}
if let Some(v) = self.protocol_magic {
os.write_uint32(3, v)?;
}
if let Some(v) = self.network_id {
os.write_uint32(4, v)?;
}
if let Some(v) = self.address_parameters.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(5, v, os)?;
}
if let Some(v) = self.derivation_type {
os.write_enum(6, ::protobuf::EnumOrUnknown::value(&v))?;
}
if let Some(v) = self.chunkify {
os.write_bool(7, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoGetAddress {
CardanoGetAddress::new()
}
fn clear(&mut self) {
self.show_display = ::std::option::Option::None;
self.protocol_magic = ::std::option::Option::None;
self.network_id = ::std::option::Option::None;
self.address_parameters.clear();
self.derivation_type = ::std::option::Option::None;
self.chunkify = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoGetAddress {
static instance: CardanoGetAddress = CardanoGetAddress {
show_display: ::std::option::Option::None,
protocol_magic: ::std::option::Option::None,
network_id: ::std::option::Option::None,
address_parameters: ::protobuf::MessageField::none(),
derivation_type: ::std::option::Option::None,
chunkify: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoGetAddress {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoGetAddress").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoGetAddress {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoGetAddress {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoAddress {
pub address: ::std::option::Option<::std::string::String>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoAddress {
fn default() -> &'a CardanoAddress {
<CardanoAddress as ::protobuf::Message>::default_instance()
}
}
impl CardanoAddress {
pub fn new() -> CardanoAddress {
::std::default::Default::default()
}
pub fn address(&self) -> &str {
match self.address.as_ref() {
Some(v) => v,
None => "",
}
}
pub fn clear_address(&mut self) {
self.address = ::std::option::Option::None;
}
pub fn has_address(&self) -> bool {
self.address.is_some()
}
pub fn set_address(&mut self, v: ::std::string::String) {
self.address = ::std::option::Option::Some(v);
}
pub fn mut_address(&mut self) -> &mut ::std::string::String {
if self.address.is_none() {
self.address = ::std::option::Option::Some(::std::string::String::new());
}
self.address.as_mut().unwrap()
}
pub fn take_address(&mut self) -> ::std::string::String {
self.address.take().unwrap_or_else(|| ::std::string::String::new())
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(1);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"address",
|m: &CardanoAddress| { &m.address },
|m: &mut CardanoAddress| { &mut m.address },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoAddress>(
"CardanoAddress",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoAddress {
const NAME: &'static str = "CardanoAddress";
fn is_initialized(&self) -> bool {
if self.address.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.address = ::std::option::Option::Some(is.read_string()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.address.as_ref() {
my_size += ::protobuf::rt::string_size(1, &v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.address.as_ref() {
os.write_string(1, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoAddress {
CardanoAddress::new()
}
fn clear(&mut self) {
self.address = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoAddress {
static instance: CardanoAddress = CardanoAddress {
address: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoAddress {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoAddress").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoAddress {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoAddress {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoGetPublicKey {
pub address_n: ::std::vec::Vec<u32>,
pub show_display: ::std::option::Option<bool>,
pub derivation_type: ::std::option::Option<::protobuf::EnumOrUnknown<CardanoDerivationType>>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoGetPublicKey {
fn default() -> &'a CardanoGetPublicKey {
<CardanoGetPublicKey as ::protobuf::Message>::default_instance()
}
}
impl CardanoGetPublicKey {
pub fn new() -> CardanoGetPublicKey {
::std::default::Default::default()
}
pub fn 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);
}
pub fn derivation_type(&self) -> CardanoDerivationType {
match self.derivation_type {
Some(e) => e.enum_value_or(CardanoDerivationType::LEDGER),
None => CardanoDerivationType::LEDGER,
}
}
pub fn clear_derivation_type(&mut self) {
self.derivation_type = ::std::option::Option::None;
}
pub fn has_derivation_type(&self) -> bool {
self.derivation_type.is_some()
}
pub fn set_derivation_type(&mut self, v: CardanoDerivationType) {
self.derivation_type = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(3);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
"address_n",
|m: &CardanoGetPublicKey| { &m.address_n },
|m: &mut CardanoGetPublicKey| { &mut m.address_n },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"show_display",
|m: &CardanoGetPublicKey| { &m.show_display },
|m: &mut CardanoGetPublicKey| { &mut m.show_display },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"derivation_type",
|m: &CardanoGetPublicKey| { &m.derivation_type },
|m: &mut CardanoGetPublicKey| { &mut m.derivation_type },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoGetPublicKey>(
"CardanoGetPublicKey",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoGetPublicKey {
const NAME: &'static str = "CardanoGetPublicKey";
fn is_initialized(&self) -> bool {
if self.derivation_type.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
is.read_repeated_packed_uint32_into(&mut self.address_n)?;
},
8 => {
self.address_n.push(is.read_uint32()?);
},
16 => {
self.show_display = ::std::option::Option::Some(is.read_bool()?);
},
24 => {
self.derivation_type = ::std::option::Option::Some(is.read_enum_or_unknown()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
for value in &self.address_n {
my_size += ::protobuf::rt::uint32_size(1, *value);
};
if let Some(v) = self.show_display {
my_size += 1 + 1;
}
if let Some(v) = self.derivation_type {
my_size += ::protobuf::rt::int32_size(3, v.value());
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
for v in &self.address_n {
os.write_uint32(1, *v)?;
};
if let Some(v) = self.show_display {
os.write_bool(2, v)?;
}
if let Some(v) = self.derivation_type {
os.write_enum(3, ::protobuf::EnumOrUnknown::value(&v))?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoGetPublicKey {
CardanoGetPublicKey::new()
}
fn clear(&mut self) {
self.address_n.clear();
self.show_display = ::std::option::Option::None;
self.derivation_type = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoGetPublicKey {
static instance: CardanoGetPublicKey = CardanoGetPublicKey {
address_n: ::std::vec::Vec::new(),
show_display: ::std::option::Option::None,
derivation_type: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoGetPublicKey {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoGetPublicKey").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoGetPublicKey {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoGetPublicKey {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoPublicKey {
pub xpub: ::std::option::Option<::std::string::String>,
pub node: ::protobuf::MessageField<super::messages_common::HDNodeType>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoPublicKey {
fn default() -> &'a CardanoPublicKey {
<CardanoPublicKey as ::protobuf::Message>::default_instance()
}
}
impl CardanoPublicKey {
pub fn new() -> CardanoPublicKey {
::std::default::Default::default()
}
pub fn xpub(&self) -> &str {
match self.xpub.as_ref() {
Some(v) => v,
None => "",
}
}
pub fn clear_xpub(&mut self) {
self.xpub = ::std::option::Option::None;
}
pub fn has_xpub(&self) -> bool {
self.xpub.is_some()
}
pub fn set_xpub(&mut self, v: ::std::string::String) {
self.xpub = ::std::option::Option::Some(v);
}
pub fn mut_xpub(&mut self) -> &mut ::std::string::String {
if self.xpub.is_none() {
self.xpub = ::std::option::Option::Some(::std::string::String::new());
}
self.xpub.as_mut().unwrap()
}
pub fn take_xpub(&mut self) -> ::std::string::String {
self.xpub.take().unwrap_or_else(|| ::std::string::String::new())
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(2);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"xpub",
|m: &CardanoPublicKey| { &m.xpub },
|m: &mut CardanoPublicKey| { &mut m.xpub },
));
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::messages_common::HDNodeType>(
"node",
|m: &CardanoPublicKey| { &m.node },
|m: &mut CardanoPublicKey| { &mut m.node },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoPublicKey>(
"CardanoPublicKey",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoPublicKey {
const NAME: &'static str = "CardanoPublicKey";
fn is_initialized(&self) -> bool {
if self.xpub.is_none() {
return false;
}
if self.node.is_none() {
return false;
}
for v in &self.node {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.xpub = ::std::option::Option::Some(is.read_string()?);
},
18 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.node)?;
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.xpub.as_ref() {
my_size += ::protobuf::rt::string_size(1, &v);
}
if let Some(v) = self.node.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.xpub.as_ref() {
os.write_string(1, v)?;
}
if let Some(v) = self.node.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoPublicKey {
CardanoPublicKey::new()
}
fn clear(&mut self) {
self.xpub = ::std::option::Option::None;
self.node.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoPublicKey {
static instance: CardanoPublicKey = CardanoPublicKey {
xpub: ::std::option::Option::None,
node: ::protobuf::MessageField::none(),
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoPublicKey {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoPublicKey").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoPublicKey {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoPublicKey {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoSignTxInit {
pub signing_mode: ::std::option::Option<::protobuf::EnumOrUnknown<CardanoTxSigningMode>>,
pub protocol_magic: ::std::option::Option<u32>,
pub network_id: ::std::option::Option<u32>,
pub inputs_count: ::std::option::Option<u32>,
pub outputs_count: ::std::option::Option<u32>,
pub fee: ::std::option::Option<u64>,
pub ttl: ::std::option::Option<u64>,
pub certificates_count: ::std::option::Option<u32>,
pub withdrawals_count: ::std::option::Option<u32>,
pub has_auxiliary_data: ::std::option::Option<bool>,
pub validity_interval_start: ::std::option::Option<u64>,
pub witness_requests_count: ::std::option::Option<u32>,
pub minting_asset_groups_count: ::std::option::Option<u32>,
pub derivation_type: ::std::option::Option<::protobuf::EnumOrUnknown<CardanoDerivationType>>,
pub include_network_id: ::std::option::Option<bool>,
pub script_data_hash: ::std::option::Option<::std::vec::Vec<u8>>,
pub collateral_inputs_count: ::std::option::Option<u32>,
pub required_signers_count: ::std::option::Option<u32>,
pub has_collateral_return: ::std::option::Option<bool>,
pub total_collateral: ::std::option::Option<u64>,
pub reference_inputs_count: ::std::option::Option<u32>,
pub chunkify: ::std::option::Option<bool>,
pub tag_cbor_sets: ::std::option::Option<bool>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoSignTxInit {
fn default() -> &'a CardanoSignTxInit {
<CardanoSignTxInit as ::protobuf::Message>::default_instance()
}
}
impl CardanoSignTxInit {
pub fn new() -> CardanoSignTxInit {
::std::default::Default::default()
}
pub fn signing_mode(&self) -> CardanoTxSigningMode {
match self.signing_mode {
Some(e) => e.enum_value_or(CardanoTxSigningMode::ORDINARY_TRANSACTION),
None => CardanoTxSigningMode::ORDINARY_TRANSACTION,
}
}
pub fn clear_signing_mode(&mut self) {
self.signing_mode = ::std::option::Option::None;
}
pub fn has_signing_mode(&self) -> bool {
self.signing_mode.is_some()
}
pub fn set_signing_mode(&mut self, v: CardanoTxSigningMode) {
self.signing_mode = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
}
pub fn protocol_magic(&self) -> u32 {
self.protocol_magic.unwrap_or(0)
}
pub fn clear_protocol_magic(&mut self) {
self.protocol_magic = ::std::option::Option::None;
}
pub fn has_protocol_magic(&self) -> bool {
self.protocol_magic.is_some()
}
pub fn set_protocol_magic(&mut self, v: u32) {
self.protocol_magic = ::std::option::Option::Some(v);
}
pub fn network_id(&self) -> u32 {
self.network_id.unwrap_or(0)
}
pub fn clear_network_id(&mut self) {
self.network_id = ::std::option::Option::None;
}
pub fn has_network_id(&self) -> bool {
self.network_id.is_some()
}
pub fn set_network_id(&mut self, v: u32) {
self.network_id = ::std::option::Option::Some(v);
}
pub fn inputs_count(&self) -> u32 {
self.inputs_count.unwrap_or(0)
}
pub fn clear_inputs_count(&mut self) {
self.inputs_count = ::std::option::Option::None;
}
pub fn has_inputs_count(&self) -> bool {
self.inputs_count.is_some()
}
pub fn set_inputs_count(&mut self, v: u32) {
self.inputs_count = ::std::option::Option::Some(v);
}
pub fn outputs_count(&self) -> u32 {
self.outputs_count.unwrap_or(0)
}
pub fn clear_outputs_count(&mut self) {
self.outputs_count = ::std::option::Option::None;
}
pub fn has_outputs_count(&self) -> bool {
self.outputs_count.is_some()
}
pub fn set_outputs_count(&mut self, v: u32) {
self.outputs_count = ::std::option::Option::Some(v);
}
pub fn fee(&self) -> u64 {
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: u64) {
self.fee = ::std::option::Option::Some(v);
}
pub fn ttl(&self) -> u64 {
self.ttl.unwrap_or(0)
}
pub fn clear_ttl(&mut self) {
self.ttl = ::std::option::Option::None;
}
pub fn has_ttl(&self) -> bool {
self.ttl.is_some()
}
pub fn set_ttl(&mut self, v: u64) {
self.ttl = ::std::option::Option::Some(v);
}
pub fn certificates_count(&self) -> u32 {
self.certificates_count.unwrap_or(0)
}
pub fn clear_certificates_count(&mut self) {
self.certificates_count = ::std::option::Option::None;
}
pub fn has_certificates_count(&self) -> bool {
self.certificates_count.is_some()
}
pub fn set_certificates_count(&mut self, v: u32) {
self.certificates_count = ::std::option::Option::Some(v);
}
pub fn withdrawals_count(&self) -> u32 {
self.withdrawals_count.unwrap_or(0)
}
pub fn clear_withdrawals_count(&mut self) {
self.withdrawals_count = ::std::option::Option::None;
}
pub fn has_withdrawals_count(&self) -> bool {
self.withdrawals_count.is_some()
}
pub fn set_withdrawals_count(&mut self, v: u32) {
self.withdrawals_count = ::std::option::Option::Some(v);
}
pub fn has_auxiliary_data(&self) -> bool {
self.has_auxiliary_data.unwrap_or(false)
}
pub fn clear_has_auxiliary_data(&mut self) {
self.has_auxiliary_data = ::std::option::Option::None;
}
pub fn has_has_auxiliary_data(&self) -> bool {
self.has_auxiliary_data.is_some()
}
pub fn set_has_auxiliary_data(&mut self, v: bool) {
self.has_auxiliary_data = ::std::option::Option::Some(v);
}
pub fn validity_interval_start(&self) -> u64 {
self.validity_interval_start.unwrap_or(0)
}
pub fn clear_validity_interval_start(&mut self) {
self.validity_interval_start = ::std::option::Option::None;
}
pub fn has_validity_interval_start(&self) -> bool {
self.validity_interval_start.is_some()
}
pub fn set_validity_interval_start(&mut self, v: u64) {
self.validity_interval_start = ::std::option::Option::Some(v);
}
pub fn witness_requests_count(&self) -> u32 {
self.witness_requests_count.unwrap_or(0)
}
pub fn clear_witness_requests_count(&mut self) {
self.witness_requests_count = ::std::option::Option::None;
}
pub fn has_witness_requests_count(&self) -> bool {
self.witness_requests_count.is_some()
}
pub fn set_witness_requests_count(&mut self, v: u32) {
self.witness_requests_count = ::std::option::Option::Some(v);
}
pub fn minting_asset_groups_count(&self) -> u32 {
self.minting_asset_groups_count.unwrap_or(0)
}
pub fn clear_minting_asset_groups_count(&mut self) {
self.minting_asset_groups_count = ::std::option::Option::None;
}
pub fn has_minting_asset_groups_count(&self) -> bool {
self.minting_asset_groups_count.is_some()
}
pub fn set_minting_asset_groups_count(&mut self, v: u32) {
self.minting_asset_groups_count = ::std::option::Option::Some(v);
}
pub fn derivation_type(&self) -> CardanoDerivationType {
match self.derivation_type {
Some(e) => e.enum_value_or(CardanoDerivationType::LEDGER),
None => CardanoDerivationType::LEDGER,
}
}
pub fn clear_derivation_type(&mut self) {
self.derivation_type = ::std::option::Option::None;
}
pub fn has_derivation_type(&self) -> bool {
self.derivation_type.is_some()
}
pub fn set_derivation_type(&mut self, v: CardanoDerivationType) {
self.derivation_type = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
}
pub fn include_network_id(&self) -> bool {
self.include_network_id.unwrap_or(false)
}
pub fn clear_include_network_id(&mut self) {
self.include_network_id = ::std::option::Option::None;
}
pub fn has_include_network_id(&self) -> bool {
self.include_network_id.is_some()
}
pub fn set_include_network_id(&mut self, v: bool) {
self.include_network_id = ::std::option::Option::Some(v);
}
pub fn script_data_hash(&self) -> &[u8] {
match self.script_data_hash.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_script_data_hash(&mut self) {
self.script_data_hash = ::std::option::Option::None;
}
pub fn has_script_data_hash(&self) -> bool {
self.script_data_hash.is_some()
}
pub fn set_script_data_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.script_data_hash = ::std::option::Option::Some(v);
}
pub fn mut_script_data_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.script_data_hash.is_none() {
self.script_data_hash = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.script_data_hash.as_mut().unwrap()
}
pub fn take_script_data_hash(&mut self) -> ::std::vec::Vec<u8> {
self.script_data_hash.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn collateral_inputs_count(&self) -> u32 {
self.collateral_inputs_count.unwrap_or(0)
}
pub fn clear_collateral_inputs_count(&mut self) {
self.collateral_inputs_count = ::std::option::Option::None;
}
pub fn has_collateral_inputs_count(&self) -> bool {
self.collateral_inputs_count.is_some()
}
pub fn set_collateral_inputs_count(&mut self, v: u32) {
self.collateral_inputs_count = ::std::option::Option::Some(v);
}
pub fn required_signers_count(&self) -> u32 {
self.required_signers_count.unwrap_or(0)
}
pub fn clear_required_signers_count(&mut self) {
self.required_signers_count = ::std::option::Option::None;
}
pub fn has_required_signers_count(&self) -> bool {
self.required_signers_count.is_some()
}
pub fn set_required_signers_count(&mut self, v: u32) {
self.required_signers_count = ::std::option::Option::Some(v);
}
pub fn has_collateral_return(&self) -> bool {
self.has_collateral_return.unwrap_or(false)
}
pub fn clear_has_collateral_return(&mut self) {
self.has_collateral_return = ::std::option::Option::None;
}
pub fn has_has_collateral_return(&self) -> bool {
self.has_collateral_return.is_some()
}
pub fn set_has_collateral_return(&mut self, v: bool) {
self.has_collateral_return = ::std::option::Option::Some(v);
}
pub fn total_collateral(&self) -> u64 {
self.total_collateral.unwrap_or(0)
}
pub fn clear_total_collateral(&mut self) {
self.total_collateral = ::std::option::Option::None;
}
pub fn has_total_collateral(&self) -> bool {
self.total_collateral.is_some()
}
pub fn set_total_collateral(&mut self, v: u64) {
self.total_collateral = ::std::option::Option::Some(v);
}
pub fn reference_inputs_count(&self) -> u32 {
self.reference_inputs_count.unwrap_or(0u32)
}
pub fn clear_reference_inputs_count(&mut self) {
self.reference_inputs_count = ::std::option::Option::None;
}
pub fn has_reference_inputs_count(&self) -> bool {
self.reference_inputs_count.is_some()
}
pub fn set_reference_inputs_count(&mut self, v: u32) {
self.reference_inputs_count = ::std::option::Option::Some(v);
}
pub fn chunkify(&self) -> bool {
self.chunkify.unwrap_or(false)
}
pub fn clear_chunkify(&mut self) {
self.chunkify = ::std::option::Option::None;
}
pub fn has_chunkify(&self) -> bool {
self.chunkify.is_some()
}
pub fn set_chunkify(&mut self, v: bool) {
self.chunkify = ::std::option::Option::Some(v);
}
pub fn tag_cbor_sets(&self) -> bool {
self.tag_cbor_sets.unwrap_or(false)
}
pub fn clear_tag_cbor_sets(&mut self) {
self.tag_cbor_sets = ::std::option::Option::None;
}
pub fn has_tag_cbor_sets(&self) -> bool {
self.tag_cbor_sets.is_some()
}
pub fn set_tag_cbor_sets(&mut self, v: bool) {
self.tag_cbor_sets = ::std::option::Option::Some(v);
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(23);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"signing_mode",
|m: &CardanoSignTxInit| { &m.signing_mode },
|m: &mut CardanoSignTxInit| { &mut m.signing_mode },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"protocol_magic",
|m: &CardanoSignTxInit| { &m.protocol_magic },
|m: &mut CardanoSignTxInit| { &mut m.protocol_magic },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"network_id",
|m: &CardanoSignTxInit| { &m.network_id },
|m: &mut CardanoSignTxInit| { &mut m.network_id },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"inputs_count",
|m: &CardanoSignTxInit| { &m.inputs_count },
|m: &mut CardanoSignTxInit| { &mut m.inputs_count },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"outputs_count",
|m: &CardanoSignTxInit| { &m.outputs_count },
|m: &mut CardanoSignTxInit| { &mut m.outputs_count },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"fee",
|m: &CardanoSignTxInit| { &m.fee },
|m: &mut CardanoSignTxInit| { &mut m.fee },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"ttl",
|m: &CardanoSignTxInit| { &m.ttl },
|m: &mut CardanoSignTxInit| { &mut m.ttl },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"certificates_count",
|m: &CardanoSignTxInit| { &m.certificates_count },
|m: &mut CardanoSignTxInit| { &mut m.certificates_count },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"withdrawals_count",
|m: &CardanoSignTxInit| { &m.withdrawals_count },
|m: &mut CardanoSignTxInit| { &mut m.withdrawals_count },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"has_auxiliary_data",
|m: &CardanoSignTxInit| { &m.has_auxiliary_data },
|m: &mut CardanoSignTxInit| { &mut m.has_auxiliary_data },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"validity_interval_start",
|m: &CardanoSignTxInit| { &m.validity_interval_start },
|m: &mut CardanoSignTxInit| { &mut m.validity_interval_start },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"witness_requests_count",
|m: &CardanoSignTxInit| { &m.witness_requests_count },
|m: &mut CardanoSignTxInit| { &mut m.witness_requests_count },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"minting_asset_groups_count",
|m: &CardanoSignTxInit| { &m.minting_asset_groups_count },
|m: &mut CardanoSignTxInit| { &mut m.minting_asset_groups_count },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"derivation_type",
|m: &CardanoSignTxInit| { &m.derivation_type },
|m: &mut CardanoSignTxInit| { &mut m.derivation_type },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"include_network_id",
|m: &CardanoSignTxInit| { &m.include_network_id },
|m: &mut CardanoSignTxInit| { &mut m.include_network_id },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"script_data_hash",
|m: &CardanoSignTxInit| { &m.script_data_hash },
|m: &mut CardanoSignTxInit| { &mut m.script_data_hash },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"collateral_inputs_count",
|m: &CardanoSignTxInit| { &m.collateral_inputs_count },
|m: &mut CardanoSignTxInit| { &mut m.collateral_inputs_count },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"required_signers_count",
|m: &CardanoSignTxInit| { &m.required_signers_count },
|m: &mut CardanoSignTxInit| { &mut m.required_signers_count },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"has_collateral_return",
|m: &CardanoSignTxInit| { &m.has_collateral_return },
|m: &mut CardanoSignTxInit| { &mut m.has_collateral_return },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"total_collateral",
|m: &CardanoSignTxInit| { &m.total_collateral },
|m: &mut CardanoSignTxInit| { &mut m.total_collateral },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"reference_inputs_count",
|m: &CardanoSignTxInit| { &m.reference_inputs_count },
|m: &mut CardanoSignTxInit| { &mut m.reference_inputs_count },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"chunkify",
|m: &CardanoSignTxInit| { &m.chunkify },
|m: &mut CardanoSignTxInit| { &mut m.chunkify },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"tag_cbor_sets",
|m: &CardanoSignTxInit| { &m.tag_cbor_sets },
|m: &mut CardanoSignTxInit| { &mut m.tag_cbor_sets },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoSignTxInit>(
"CardanoSignTxInit",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoSignTxInit {
const NAME: &'static str = "CardanoSignTxInit";
fn is_initialized(&self) -> bool {
if self.signing_mode.is_none() {
return false;
}
if self.protocol_magic.is_none() {
return false;
}
if self.network_id.is_none() {
return false;
}
if self.inputs_count.is_none() {
return false;
}
if self.outputs_count.is_none() {
return false;
}
if self.fee.is_none() {
return false;
}
if self.certificates_count.is_none() {
return false;
}
if self.withdrawals_count.is_none() {
return false;
}
if self.has_auxiliary_data.is_none() {
return false;
}
if self.witness_requests_count.is_none() {
return false;
}
if self.minting_asset_groups_count.is_none() {
return false;
}
if self.derivation_type.is_none() {
return false;
}
if self.collateral_inputs_count.is_none() {
return false;
}
if self.required_signers_count.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.signing_mode = ::std::option::Option::Some(is.read_enum_or_unknown()?);
},
16 => {
self.protocol_magic = ::std::option::Option::Some(is.read_uint32()?);
},
24 => {
self.network_id = ::std::option::Option::Some(is.read_uint32()?);
},
32 => {
self.inputs_count = ::std::option::Option::Some(is.read_uint32()?);
},
40 => {
self.outputs_count = ::std::option::Option::Some(is.read_uint32()?);
},
48 => {
self.fee = ::std::option::Option::Some(is.read_uint64()?);
},
56 => {
self.ttl = ::std::option::Option::Some(is.read_uint64()?);
},
64 => {
self.certificates_count = ::std::option::Option::Some(is.read_uint32()?);
},
72 => {
self.withdrawals_count = ::std::option::Option::Some(is.read_uint32()?);
},
80 => {
self.has_auxiliary_data = ::std::option::Option::Some(is.read_bool()?);
},
88 => {
self.validity_interval_start = ::std::option::Option::Some(is.read_uint64()?);
},
96 => {
self.witness_requests_count = ::std::option::Option::Some(is.read_uint32()?);
},
104 => {
self.minting_asset_groups_count = ::std::option::Option::Some(is.read_uint32()?);
},
112 => {
self.derivation_type = ::std::option::Option::Some(is.read_enum_or_unknown()?);
},
120 => {
self.include_network_id = ::std::option::Option::Some(is.read_bool()?);
},
130 => {
self.script_data_hash = ::std::option::Option::Some(is.read_bytes()?);
},
136 => {
self.collateral_inputs_count = ::std::option::Option::Some(is.read_uint32()?);
},
144 => {
self.required_signers_count = ::std::option::Option::Some(is.read_uint32()?);
},
152 => {
self.has_collateral_return = ::std::option::Option::Some(is.read_bool()?);
},
160 => {
self.total_collateral = ::std::option::Option::Some(is.read_uint64()?);
},
168 => {
self.reference_inputs_count = ::std::option::Option::Some(is.read_uint32()?);
},
176 => {
self.chunkify = ::std::option::Option::Some(is.read_bool()?);
},
184 => {
self.tag_cbor_sets = ::std::option::Option::Some(is.read_bool()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.signing_mode {
my_size += ::protobuf::rt::int32_size(1, v.value());
}
if let Some(v) = self.protocol_magic {
my_size += ::protobuf::rt::uint32_size(2, v);
}
if let Some(v) = self.network_id {
my_size += ::protobuf::rt::uint32_size(3, v);
}
if let Some(v) = self.inputs_count {
my_size += ::protobuf::rt::uint32_size(4, v);
}
if let Some(v) = self.outputs_count {
my_size += ::protobuf::rt::uint32_size(5, v);
}
if let Some(v) = self.fee {
my_size += ::protobuf::rt::uint64_size(6, v);
}
if let Some(v) = self.ttl {
my_size += ::protobuf::rt::uint64_size(7, v);
}
if let Some(v) = self.certificates_count {
my_size += ::protobuf::rt::uint32_size(8, v);
}
if let Some(v) = self.withdrawals_count {
my_size += ::protobuf::rt::uint32_size(9, v);
}
if let Some(v) = self.has_auxiliary_data {
my_size += 1 + 1;
}
if let Some(v) = self.validity_interval_start {
my_size += ::protobuf::rt::uint64_size(11, v);
}
if let Some(v) = self.witness_requests_count {
my_size += ::protobuf::rt::uint32_size(12, v);
}
if let Some(v) = self.minting_asset_groups_count {
my_size += ::protobuf::rt::uint32_size(13, v);
}
if let Some(v) = self.derivation_type {
my_size += ::protobuf::rt::int32_size(14, v.value());
}
if let Some(v) = self.include_network_id {
my_size += 1 + 1;
}
if let Some(v) = self.script_data_hash.as_ref() {
my_size += ::protobuf::rt::bytes_size(16, &v);
}
if let Some(v) = self.collateral_inputs_count {
my_size += ::protobuf::rt::uint32_size(17, v);
}
if let Some(v) = self.required_signers_count {
my_size += ::protobuf::rt::uint32_size(18, v);
}
if let Some(v) = self.has_collateral_return {
my_size += 2 + 1;
}
if let Some(v) = self.total_collateral {
my_size += ::protobuf::rt::uint64_size(20, v);
}
if let Some(v) = self.reference_inputs_count {
my_size += ::protobuf::rt::uint32_size(21, v);
}
if let Some(v) = self.chunkify {
my_size += 2 + 1;
}
if let Some(v) = self.tag_cbor_sets {
my_size += 2 + 1;
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.signing_mode {
os.write_enum(1, ::protobuf::EnumOrUnknown::value(&v))?;
}
if let Some(v) = self.protocol_magic {
os.write_uint32(2, v)?;
}
if let Some(v) = self.network_id {
os.write_uint32(3, v)?;
}
if let Some(v) = self.inputs_count {
os.write_uint32(4, v)?;
}
if let Some(v) = self.outputs_count {
os.write_uint32(5, v)?;
}
if let Some(v) = self.fee {
os.write_uint64(6, v)?;
}
if let Some(v) = self.ttl {
os.write_uint64(7, v)?;
}
if let Some(v) = self.certificates_count {
os.write_uint32(8, v)?;
}
if let Some(v) = self.withdrawals_count {
os.write_uint32(9, v)?;
}
if let Some(v) = self.has_auxiliary_data {
os.write_bool(10, v)?;
}
if let Some(v) = self.validity_interval_start {
os.write_uint64(11, v)?;
}
if let Some(v) = self.witness_requests_count {
os.write_uint32(12, v)?;
}
if let Some(v) = self.minting_asset_groups_count {
os.write_uint32(13, v)?;
}
if let Some(v) = self.derivation_type {
os.write_enum(14, ::protobuf::EnumOrUnknown::value(&v))?;
}
if let Some(v) = self.include_network_id {
os.write_bool(15, v)?;
}
if let Some(v) = self.script_data_hash.as_ref() {
os.write_bytes(16, v)?;
}
if let Some(v) = self.collateral_inputs_count {
os.write_uint32(17, v)?;
}
if let Some(v) = self.required_signers_count {
os.write_uint32(18, v)?;
}
if let Some(v) = self.has_collateral_return {
os.write_bool(19, v)?;
}
if let Some(v) = self.total_collateral {
os.write_uint64(20, v)?;
}
if let Some(v) = self.reference_inputs_count {
os.write_uint32(21, v)?;
}
if let Some(v) = self.chunkify {
os.write_bool(22, v)?;
}
if let Some(v) = self.tag_cbor_sets {
os.write_bool(23, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoSignTxInit {
CardanoSignTxInit::new()
}
fn clear(&mut self) {
self.signing_mode = ::std::option::Option::None;
self.protocol_magic = ::std::option::Option::None;
self.network_id = ::std::option::Option::None;
self.inputs_count = ::std::option::Option::None;
self.outputs_count = ::std::option::Option::None;
self.fee = ::std::option::Option::None;
self.ttl = ::std::option::Option::None;
self.certificates_count = ::std::option::Option::None;
self.withdrawals_count = ::std::option::Option::None;
self.has_auxiliary_data = ::std::option::Option::None;
self.validity_interval_start = ::std::option::Option::None;
self.witness_requests_count = ::std::option::Option::None;
self.minting_asset_groups_count = ::std::option::Option::None;
self.derivation_type = ::std::option::Option::None;
self.include_network_id = ::std::option::Option::None;
self.script_data_hash = ::std::option::Option::None;
self.collateral_inputs_count = ::std::option::Option::None;
self.required_signers_count = ::std::option::Option::None;
self.has_collateral_return = ::std::option::Option::None;
self.total_collateral = ::std::option::Option::None;
self.reference_inputs_count = ::std::option::Option::None;
self.chunkify = ::std::option::Option::None;
self.tag_cbor_sets = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoSignTxInit {
static instance: CardanoSignTxInit = CardanoSignTxInit {
signing_mode: ::std::option::Option::None,
protocol_magic: ::std::option::Option::None,
network_id: ::std::option::Option::None,
inputs_count: ::std::option::Option::None,
outputs_count: ::std::option::Option::None,
fee: ::std::option::Option::None,
ttl: ::std::option::Option::None,
certificates_count: ::std::option::Option::None,
withdrawals_count: ::std::option::Option::None,
has_auxiliary_data: ::std::option::Option::None,
validity_interval_start: ::std::option::Option::None,
witness_requests_count: ::std::option::Option::None,
minting_asset_groups_count: ::std::option::Option::None,
derivation_type: ::std::option::Option::None,
include_network_id: ::std::option::Option::None,
script_data_hash: ::std::option::Option::None,
collateral_inputs_count: ::std::option::Option::None,
required_signers_count: ::std::option::Option::None,
has_collateral_return: ::std::option::Option::None,
total_collateral: ::std::option::Option::None,
reference_inputs_count: ::std::option::Option::None,
chunkify: ::std::option::Option::None,
tag_cbor_sets: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoSignTxInit {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoSignTxInit").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoSignTxInit {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoSignTxInit {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoTxInput {
pub prev_hash: ::std::option::Option<::std::vec::Vec<u8>>,
pub prev_index: ::std::option::Option<u32>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoTxInput {
fn default() -> &'a CardanoTxInput {
<CardanoTxInput as ::protobuf::Message>::default_instance()
}
}
impl CardanoTxInput {
pub fn new() -> CardanoTxInput {
::std::default::Default::default()
}
pub fn prev_hash(&self) -> &[u8] {
match self.prev_hash.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_prev_hash(&mut self) {
self.prev_hash = ::std::option::Option::None;
}
pub fn has_prev_hash(&self) -> bool {
self.prev_hash.is_some()
}
pub fn set_prev_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.prev_hash = ::std::option::Option::Some(v);
}
pub fn mut_prev_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.prev_hash.is_none() {
self.prev_hash = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.prev_hash.as_mut().unwrap()
}
pub fn take_prev_hash(&mut self) -> ::std::vec::Vec<u8> {
self.prev_hash.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn prev_index(&self) -> u32 {
self.prev_index.unwrap_or(0)
}
pub fn clear_prev_index(&mut self) {
self.prev_index = ::std::option::Option::None;
}
pub fn has_prev_index(&self) -> bool {
self.prev_index.is_some()
}
pub fn set_prev_index(&mut self, v: u32) {
self.prev_index = ::std::option::Option::Some(v);
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(2);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"prev_hash",
|m: &CardanoTxInput| { &m.prev_hash },
|m: &mut CardanoTxInput| { &mut m.prev_hash },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"prev_index",
|m: &CardanoTxInput| { &m.prev_index },
|m: &mut CardanoTxInput| { &mut m.prev_index },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoTxInput>(
"CardanoTxInput",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoTxInput {
const NAME: &'static str = "CardanoTxInput";
fn is_initialized(&self) -> bool {
if self.prev_hash.is_none() {
return false;
}
if self.prev_index.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.prev_hash = ::std::option::Option::Some(is.read_bytes()?);
},
16 => {
self.prev_index = ::std::option::Option::Some(is.read_uint32()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.prev_hash.as_ref() {
my_size += ::protobuf::rt::bytes_size(1, &v);
}
if let Some(v) = self.prev_index {
my_size += ::protobuf::rt::uint32_size(2, v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.prev_hash.as_ref() {
os.write_bytes(1, v)?;
}
if let Some(v) = self.prev_index {
os.write_uint32(2, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoTxInput {
CardanoTxInput::new()
}
fn clear(&mut self) {
self.prev_hash = ::std::option::Option::None;
self.prev_index = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoTxInput {
static instance: CardanoTxInput = CardanoTxInput {
prev_hash: ::std::option::Option::None,
prev_index: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoTxInput {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoTxInput").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoTxInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoTxInput {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoTxOutput {
pub address: ::std::option::Option<::std::string::String>,
pub address_parameters: ::protobuf::MessageField<CardanoAddressParametersType>,
pub amount: ::std::option::Option<u64>,
pub asset_groups_count: ::std::option::Option<u32>,
pub datum_hash: ::std::option::Option<::std::vec::Vec<u8>>,
pub format: ::std::option::Option<::protobuf::EnumOrUnknown<CardanoTxOutputSerializationFormat>>,
pub inline_datum_size: ::std::option::Option<u32>,
pub reference_script_size: ::std::option::Option<u32>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoTxOutput {
fn default() -> &'a CardanoTxOutput {
<CardanoTxOutput as ::protobuf::Message>::default_instance()
}
}
impl CardanoTxOutput {
pub fn new() -> CardanoTxOutput {
::std::default::Default::default()
}
pub fn address(&self) -> &str {
match self.address.as_ref() {
Some(v) => v,
None => "",
}
}
pub fn clear_address(&mut self) {
self.address = ::std::option::Option::None;
}
pub fn has_address(&self) -> bool {
self.address.is_some()
}
pub fn set_address(&mut self, v: ::std::string::String) {
self.address = ::std::option::Option::Some(v);
}
pub fn mut_address(&mut self) -> &mut ::std::string::String {
if self.address.is_none() {
self.address = ::std::option::Option::Some(::std::string::String::new());
}
self.address.as_mut().unwrap()
}
pub fn take_address(&mut self) -> ::std::string::String {
self.address.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn amount(&self) -> u64 {
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: u64) {
self.amount = ::std::option::Option::Some(v);
}
pub fn asset_groups_count(&self) -> u32 {
self.asset_groups_count.unwrap_or(0)
}
pub fn clear_asset_groups_count(&mut self) {
self.asset_groups_count = ::std::option::Option::None;
}
pub fn has_asset_groups_count(&self) -> bool {
self.asset_groups_count.is_some()
}
pub fn set_asset_groups_count(&mut self, v: u32) {
self.asset_groups_count = ::std::option::Option::Some(v);
}
pub fn datum_hash(&self) -> &[u8] {
match self.datum_hash.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_datum_hash(&mut self) {
self.datum_hash = ::std::option::Option::None;
}
pub fn has_datum_hash(&self) -> bool {
self.datum_hash.is_some()
}
pub fn set_datum_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.datum_hash = ::std::option::Option::Some(v);
}
pub fn mut_datum_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.datum_hash.is_none() {
self.datum_hash = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.datum_hash.as_mut().unwrap()
}
pub fn take_datum_hash(&mut self) -> ::std::vec::Vec<u8> {
self.datum_hash.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn format(&self) -> CardanoTxOutputSerializationFormat {
match self.format {
Some(e) => e.enum_value_or(CardanoTxOutputSerializationFormat::ARRAY_LEGACY),
None => CardanoTxOutputSerializationFormat::ARRAY_LEGACY,
}
}
pub fn clear_format(&mut self) {
self.format = ::std::option::Option::None;
}
pub fn has_format(&self) -> bool {
self.format.is_some()
}
pub fn set_format(&mut self, v: CardanoTxOutputSerializationFormat) {
self.format = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
}
pub fn inline_datum_size(&self) -> u32 {
self.inline_datum_size.unwrap_or(0u32)
}
pub fn clear_inline_datum_size(&mut self) {
self.inline_datum_size = ::std::option::Option::None;
}
pub fn has_inline_datum_size(&self) -> bool {
self.inline_datum_size.is_some()
}
pub fn set_inline_datum_size(&mut self, v: u32) {
self.inline_datum_size = ::std::option::Option::Some(v);
}
pub fn reference_script_size(&self) -> u32 {
self.reference_script_size.unwrap_or(0u32)
}
pub fn clear_reference_script_size(&mut self) {
self.reference_script_size = ::std::option::Option::None;
}
pub fn has_reference_script_size(&self) -> bool {
self.reference_script_size.is_some()
}
pub fn set_reference_script_size(&mut self, v: u32) {
self.reference_script_size = ::std::option::Option::Some(v);
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(8);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"address",
|m: &CardanoTxOutput| { &m.address },
|m: &mut CardanoTxOutput| { &mut m.address },
));
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, CardanoAddressParametersType>(
"address_parameters",
|m: &CardanoTxOutput| { &m.address_parameters },
|m: &mut CardanoTxOutput| { &mut m.address_parameters },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"amount",
|m: &CardanoTxOutput| { &m.amount },
|m: &mut CardanoTxOutput| { &mut m.amount },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"asset_groups_count",
|m: &CardanoTxOutput| { &m.asset_groups_count },
|m: &mut CardanoTxOutput| { &mut m.asset_groups_count },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"datum_hash",
|m: &CardanoTxOutput| { &m.datum_hash },
|m: &mut CardanoTxOutput| { &mut m.datum_hash },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"format",
|m: &CardanoTxOutput| { &m.format },
|m: &mut CardanoTxOutput| { &mut m.format },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"inline_datum_size",
|m: &CardanoTxOutput| { &m.inline_datum_size },
|m: &mut CardanoTxOutput| { &mut m.inline_datum_size },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"reference_script_size",
|m: &CardanoTxOutput| { &m.reference_script_size },
|m: &mut CardanoTxOutput| { &mut m.reference_script_size },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoTxOutput>(
"CardanoTxOutput",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoTxOutput {
const NAME: &'static str = "CardanoTxOutput";
fn is_initialized(&self) -> bool {
if self.amount.is_none() {
return false;
}
if self.asset_groups_count.is_none() {
return false;
}
for v in &self.address_parameters {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.address = ::std::option::Option::Some(is.read_string()?);
},
18 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.address_parameters)?;
},
24 => {
self.amount = ::std::option::Option::Some(is.read_uint64()?);
},
32 => {
self.asset_groups_count = ::std::option::Option::Some(is.read_uint32()?);
},
42 => {
self.datum_hash = ::std::option::Option::Some(is.read_bytes()?);
},
48 => {
self.format = ::std::option::Option::Some(is.read_enum_or_unknown()?);
},
56 => {
self.inline_datum_size = ::std::option::Option::Some(is.read_uint32()?);
},
64 => {
self.reference_script_size = ::std::option::Option::Some(is.read_uint32()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.address.as_ref() {
my_size += ::protobuf::rt::string_size(1, &v);
}
if let Some(v) = self.address_parameters.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
}
if let Some(v) = self.amount {
my_size += ::protobuf::rt::uint64_size(3, v);
}
if let Some(v) = self.asset_groups_count {
my_size += ::protobuf::rt::uint32_size(4, v);
}
if let Some(v) = self.datum_hash.as_ref() {
my_size += ::protobuf::rt::bytes_size(5, &v);
}
if let Some(v) = self.format {
my_size += ::protobuf::rt::int32_size(6, v.value());
}
if let Some(v) = self.inline_datum_size {
my_size += ::protobuf::rt::uint32_size(7, v);
}
if let Some(v) = self.reference_script_size {
my_size += ::protobuf::rt::uint32_size(8, v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.address.as_ref() {
os.write_string(1, v)?;
}
if let Some(v) = self.address_parameters.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
}
if let Some(v) = self.amount {
os.write_uint64(3, v)?;
}
if let Some(v) = self.asset_groups_count {
os.write_uint32(4, v)?;
}
if let Some(v) = self.datum_hash.as_ref() {
os.write_bytes(5, v)?;
}
if let Some(v) = self.format {
os.write_enum(6, ::protobuf::EnumOrUnknown::value(&v))?;
}
if let Some(v) = self.inline_datum_size {
os.write_uint32(7, v)?;
}
if let Some(v) = self.reference_script_size {
os.write_uint32(8, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoTxOutput {
CardanoTxOutput::new()
}
fn clear(&mut self) {
self.address = ::std::option::Option::None;
self.address_parameters.clear();
self.amount = ::std::option::Option::None;
self.asset_groups_count = ::std::option::Option::None;
self.datum_hash = ::std::option::Option::None;
self.format = ::std::option::Option::None;
self.inline_datum_size = ::std::option::Option::None;
self.reference_script_size = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoTxOutput {
static instance: CardanoTxOutput = CardanoTxOutput {
address: ::std::option::Option::None,
address_parameters: ::protobuf::MessageField::none(),
amount: ::std::option::Option::None,
asset_groups_count: ::std::option::Option::None,
datum_hash: ::std::option::Option::None,
format: ::std::option::Option::None,
inline_datum_size: ::std::option::Option::None,
reference_script_size: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoTxOutput {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoTxOutput").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoTxOutput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoTxOutput {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoAssetGroup {
pub policy_id: ::std::option::Option<::std::vec::Vec<u8>>,
pub tokens_count: ::std::option::Option<u32>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoAssetGroup {
fn default() -> &'a CardanoAssetGroup {
<CardanoAssetGroup as ::protobuf::Message>::default_instance()
}
}
impl CardanoAssetGroup {
pub fn new() -> CardanoAssetGroup {
::std::default::Default::default()
}
pub fn policy_id(&self) -> &[u8] {
match self.policy_id.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_policy_id(&mut self) {
self.policy_id = ::std::option::Option::None;
}
pub fn has_policy_id(&self) -> bool {
self.policy_id.is_some()
}
pub fn set_policy_id(&mut self, v: ::std::vec::Vec<u8>) {
self.policy_id = ::std::option::Option::Some(v);
}
pub fn mut_policy_id(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.policy_id.is_none() {
self.policy_id = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.policy_id.as_mut().unwrap()
}
pub fn take_policy_id(&mut self) -> ::std::vec::Vec<u8> {
self.policy_id.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn tokens_count(&self) -> u32 {
self.tokens_count.unwrap_or(0)
}
pub fn clear_tokens_count(&mut self) {
self.tokens_count = ::std::option::Option::None;
}
pub fn has_tokens_count(&self) -> bool {
self.tokens_count.is_some()
}
pub fn set_tokens_count(&mut self, v: u32) {
self.tokens_count = ::std::option::Option::Some(v);
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(2);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"policy_id",
|m: &CardanoAssetGroup| { &m.policy_id },
|m: &mut CardanoAssetGroup| { &mut m.policy_id },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"tokens_count",
|m: &CardanoAssetGroup| { &m.tokens_count },
|m: &mut CardanoAssetGroup| { &mut m.tokens_count },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoAssetGroup>(
"CardanoAssetGroup",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoAssetGroup {
const NAME: &'static str = "CardanoAssetGroup";
fn is_initialized(&self) -> bool {
if self.policy_id.is_none() {
return false;
}
if self.tokens_count.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.policy_id = ::std::option::Option::Some(is.read_bytes()?);
},
16 => {
self.tokens_count = ::std::option::Option::Some(is.read_uint32()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.policy_id.as_ref() {
my_size += ::protobuf::rt::bytes_size(1, &v);
}
if let Some(v) = self.tokens_count {
my_size += ::protobuf::rt::uint32_size(2, v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.policy_id.as_ref() {
os.write_bytes(1, v)?;
}
if let Some(v) = self.tokens_count {
os.write_uint32(2, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoAssetGroup {
CardanoAssetGroup::new()
}
fn clear(&mut self) {
self.policy_id = ::std::option::Option::None;
self.tokens_count = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoAssetGroup {
static instance: CardanoAssetGroup = CardanoAssetGroup {
policy_id: ::std::option::Option::None,
tokens_count: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoAssetGroup {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoAssetGroup").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoAssetGroup {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoAssetGroup {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoToken {
pub asset_name_bytes: ::std::option::Option<::std::vec::Vec<u8>>,
pub amount: ::std::option::Option<u64>,
pub mint_amount: ::std::option::Option<i64>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoToken {
fn default() -> &'a CardanoToken {
<CardanoToken as ::protobuf::Message>::default_instance()
}
}
impl CardanoToken {
pub fn new() -> CardanoToken {
::std::default::Default::default()
}
pub fn asset_name_bytes(&self) -> &[u8] {
match self.asset_name_bytes.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_asset_name_bytes(&mut self) {
self.asset_name_bytes = ::std::option::Option::None;
}
pub fn has_asset_name_bytes(&self) -> bool {
self.asset_name_bytes.is_some()
}
pub fn set_asset_name_bytes(&mut self, v: ::std::vec::Vec<u8>) {
self.asset_name_bytes = ::std::option::Option::Some(v);
}
pub fn mut_asset_name_bytes(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.asset_name_bytes.is_none() {
self.asset_name_bytes = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.asset_name_bytes.as_mut().unwrap()
}
pub fn take_asset_name_bytes(&mut self) -> ::std::vec::Vec<u8> {
self.asset_name_bytes.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn amount(&self) -> u64 {
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: u64) {
self.amount = ::std::option::Option::Some(v);
}
pub fn mint_amount(&self) -> i64 {
self.mint_amount.unwrap_or(0)
}
pub fn clear_mint_amount(&mut self) {
self.mint_amount = ::std::option::Option::None;
}
pub fn has_mint_amount(&self) -> bool {
self.mint_amount.is_some()
}
pub fn set_mint_amount(&mut self, v: i64) {
self.mint_amount = ::std::option::Option::Some(v);
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(3);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"asset_name_bytes",
|m: &CardanoToken| { &m.asset_name_bytes },
|m: &mut CardanoToken| { &mut m.asset_name_bytes },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"amount",
|m: &CardanoToken| { &m.amount },
|m: &mut CardanoToken| { &mut m.amount },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"mint_amount",
|m: &CardanoToken| { &m.mint_amount },
|m: &mut CardanoToken| { &mut m.mint_amount },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoToken>(
"CardanoToken",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoToken {
const NAME: &'static str = "CardanoToken";
fn is_initialized(&self) -> bool {
if self.asset_name_bytes.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.asset_name_bytes = ::std::option::Option::Some(is.read_bytes()?);
},
16 => {
self.amount = ::std::option::Option::Some(is.read_uint64()?);
},
24 => {
self.mint_amount = ::std::option::Option::Some(is.read_sint64()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.asset_name_bytes.as_ref() {
my_size += ::protobuf::rt::bytes_size(1, &v);
}
if let Some(v) = self.amount {
my_size += ::protobuf::rt::uint64_size(2, v);
}
if let Some(v) = self.mint_amount {
my_size += ::protobuf::rt::sint64_size(3, v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.asset_name_bytes.as_ref() {
os.write_bytes(1, v)?;
}
if let Some(v) = self.amount {
os.write_uint64(2, v)?;
}
if let Some(v) = self.mint_amount {
os.write_sint64(3, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoToken {
CardanoToken::new()
}
fn clear(&mut self) {
self.asset_name_bytes = ::std::option::Option::None;
self.amount = ::std::option::Option::None;
self.mint_amount = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoToken {
static instance: CardanoToken = CardanoToken {
asset_name_bytes: ::std::option::Option::None,
amount: ::std::option::Option::None,
mint_amount: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoToken {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoToken").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoToken {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoToken {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoTxInlineDatumChunk {
pub data: ::std::option::Option<::std::vec::Vec<u8>>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoTxInlineDatumChunk {
fn default() -> &'a CardanoTxInlineDatumChunk {
<CardanoTxInlineDatumChunk as ::protobuf::Message>::default_instance()
}
}
impl CardanoTxInlineDatumChunk {
pub fn new() -> CardanoTxInlineDatumChunk {
::std::default::Default::default()
}
pub fn data(&self) -> &[u8] {
match self.data.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_data(&mut self) {
self.data = ::std::option::Option::None;
}
pub fn has_data(&self) -> bool {
self.data.is_some()
}
pub fn set_data(&mut self, v: ::std::vec::Vec<u8>) {
self.data = ::std::option::Option::Some(v);
}
pub fn mut_data(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.data.is_none() {
self.data = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.data.as_mut().unwrap()
}
pub fn take_data(&mut self) -> ::std::vec::Vec<u8> {
self.data.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(1);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"data",
|m: &CardanoTxInlineDatumChunk| { &m.data },
|m: &mut CardanoTxInlineDatumChunk| { &mut m.data },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoTxInlineDatumChunk>(
"CardanoTxInlineDatumChunk",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoTxInlineDatumChunk {
const NAME: &'static str = "CardanoTxInlineDatumChunk";
fn is_initialized(&self) -> bool {
if self.data.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.data = ::std::option::Option::Some(is.read_bytes()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.data.as_ref() {
my_size += ::protobuf::rt::bytes_size(1, &v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.data.as_ref() {
os.write_bytes(1, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoTxInlineDatumChunk {
CardanoTxInlineDatumChunk::new()
}
fn clear(&mut self) {
self.data = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoTxInlineDatumChunk {
static instance: CardanoTxInlineDatumChunk = CardanoTxInlineDatumChunk {
data: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoTxInlineDatumChunk {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoTxInlineDatumChunk").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoTxInlineDatumChunk {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoTxInlineDatumChunk {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoTxReferenceScriptChunk {
pub data: ::std::option::Option<::std::vec::Vec<u8>>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoTxReferenceScriptChunk {
fn default() -> &'a CardanoTxReferenceScriptChunk {
<CardanoTxReferenceScriptChunk as ::protobuf::Message>::default_instance()
}
}
impl CardanoTxReferenceScriptChunk {
pub fn new() -> CardanoTxReferenceScriptChunk {
::std::default::Default::default()
}
pub fn data(&self) -> &[u8] {
match self.data.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_data(&mut self) {
self.data = ::std::option::Option::None;
}
pub fn has_data(&self) -> bool {
self.data.is_some()
}
pub fn set_data(&mut self, v: ::std::vec::Vec<u8>) {
self.data = ::std::option::Option::Some(v);
}
pub fn mut_data(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.data.is_none() {
self.data = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.data.as_mut().unwrap()
}
pub fn take_data(&mut self) -> ::std::vec::Vec<u8> {
self.data.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(1);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"data",
|m: &CardanoTxReferenceScriptChunk| { &m.data },
|m: &mut CardanoTxReferenceScriptChunk| { &mut m.data },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoTxReferenceScriptChunk>(
"CardanoTxReferenceScriptChunk",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoTxReferenceScriptChunk {
const NAME: &'static str = "CardanoTxReferenceScriptChunk";
fn is_initialized(&self) -> bool {
if self.data.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.data = ::std::option::Option::Some(is.read_bytes()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.data.as_ref() {
my_size += ::protobuf::rt::bytes_size(1, &v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.data.as_ref() {
os.write_bytes(1, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoTxReferenceScriptChunk {
CardanoTxReferenceScriptChunk::new()
}
fn clear(&mut self) {
self.data = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoTxReferenceScriptChunk {
static instance: CardanoTxReferenceScriptChunk = CardanoTxReferenceScriptChunk {
data: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoTxReferenceScriptChunk {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoTxReferenceScriptChunk").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoTxReferenceScriptChunk {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoTxReferenceScriptChunk {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoPoolOwner {
pub staking_key_path: ::std::vec::Vec<u32>,
pub staking_key_hash: ::std::option::Option<::std::vec::Vec<u8>>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoPoolOwner {
fn default() -> &'a CardanoPoolOwner {
<CardanoPoolOwner as ::protobuf::Message>::default_instance()
}
}
impl CardanoPoolOwner {
pub fn new() -> CardanoPoolOwner {
::std::default::Default::default()
}
pub fn staking_key_hash(&self) -> &[u8] {
match self.staking_key_hash.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_staking_key_hash(&mut self) {
self.staking_key_hash = ::std::option::Option::None;
}
pub fn has_staking_key_hash(&self) -> bool {
self.staking_key_hash.is_some()
}
pub fn set_staking_key_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.staking_key_hash = ::std::option::Option::Some(v);
}
pub fn mut_staking_key_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.staking_key_hash.is_none() {
self.staking_key_hash = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.staking_key_hash.as_mut().unwrap()
}
pub fn take_staking_key_hash(&mut self) -> ::std::vec::Vec<u8> {
self.staking_key_hash.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(2);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
"staking_key_path",
|m: &CardanoPoolOwner| { &m.staking_key_path },
|m: &mut CardanoPoolOwner| { &mut m.staking_key_path },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"staking_key_hash",
|m: &CardanoPoolOwner| { &m.staking_key_hash },
|m: &mut CardanoPoolOwner| { &mut m.staking_key_hash },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoPoolOwner>(
"CardanoPoolOwner",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoPoolOwner {
const NAME: &'static str = "CardanoPoolOwner";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
is.read_repeated_packed_uint32_into(&mut self.staking_key_path)?;
},
8 => {
self.staking_key_path.push(is.read_uint32()?);
},
18 => {
self.staking_key_hash = ::std::option::Option::Some(is.read_bytes()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
for value in &self.staking_key_path {
my_size += ::protobuf::rt::uint32_size(1, *value);
};
if let Some(v) = self.staking_key_hash.as_ref() {
my_size += ::protobuf::rt::bytes_size(2, &v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
for v in &self.staking_key_path {
os.write_uint32(1, *v)?;
};
if let Some(v) = self.staking_key_hash.as_ref() {
os.write_bytes(2, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoPoolOwner {
CardanoPoolOwner::new()
}
fn clear(&mut self) {
self.staking_key_path.clear();
self.staking_key_hash = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoPoolOwner {
static instance: CardanoPoolOwner = CardanoPoolOwner {
staking_key_path: ::std::vec::Vec::new(),
staking_key_hash: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoPoolOwner {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoPoolOwner").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoPoolOwner {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoPoolOwner {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoPoolRelayParameters {
pub type_: ::std::option::Option<::protobuf::EnumOrUnknown<CardanoPoolRelayType>>,
pub ipv4_address: ::std::option::Option<::std::vec::Vec<u8>>,
pub ipv6_address: ::std::option::Option<::std::vec::Vec<u8>>,
pub host_name: ::std::option::Option<::std::string::String>,
pub port: ::std::option::Option<u32>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoPoolRelayParameters {
fn default() -> &'a CardanoPoolRelayParameters {
<CardanoPoolRelayParameters as ::protobuf::Message>::default_instance()
}
}
impl CardanoPoolRelayParameters {
pub fn new() -> CardanoPoolRelayParameters {
::std::default::Default::default()
}
pub fn type_(&self) -> CardanoPoolRelayType {
match self.type_ {
Some(e) => e.enum_value_or(CardanoPoolRelayType::SINGLE_HOST_IP),
None => CardanoPoolRelayType::SINGLE_HOST_IP,
}
}
pub fn clear_type_(&mut self) {
self.type_ = ::std::option::Option::None;
}
pub fn has_type(&self) -> bool {
self.type_.is_some()
}
pub fn set_type(&mut self, v: CardanoPoolRelayType) {
self.type_ = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
}
pub fn ipv4_address(&self) -> &[u8] {
match self.ipv4_address.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_ipv4_address(&mut self) {
self.ipv4_address = ::std::option::Option::None;
}
pub fn has_ipv4_address(&self) -> bool {
self.ipv4_address.is_some()
}
pub fn set_ipv4_address(&mut self, v: ::std::vec::Vec<u8>) {
self.ipv4_address = ::std::option::Option::Some(v);
}
pub fn mut_ipv4_address(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.ipv4_address.is_none() {
self.ipv4_address = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.ipv4_address.as_mut().unwrap()
}
pub fn take_ipv4_address(&mut self) -> ::std::vec::Vec<u8> {
self.ipv4_address.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn ipv6_address(&self) -> &[u8] {
match self.ipv6_address.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_ipv6_address(&mut self) {
self.ipv6_address = ::std::option::Option::None;
}
pub fn has_ipv6_address(&self) -> bool {
self.ipv6_address.is_some()
}
pub fn set_ipv6_address(&mut self, v: ::std::vec::Vec<u8>) {
self.ipv6_address = ::std::option::Option::Some(v);
}
pub fn mut_ipv6_address(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.ipv6_address.is_none() {
self.ipv6_address = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.ipv6_address.as_mut().unwrap()
}
pub fn take_ipv6_address(&mut self) -> ::std::vec::Vec<u8> {
self.ipv6_address.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn host_name(&self) -> &str {
match self.host_name.as_ref() {
Some(v) => v,
None => "",
}
}
pub fn clear_host_name(&mut self) {
self.host_name = ::std::option::Option::None;
}
pub fn has_host_name(&self) -> bool {
self.host_name.is_some()
}
pub fn set_host_name(&mut self, v: ::std::string::String) {
self.host_name = ::std::option::Option::Some(v);
}
pub fn mut_host_name(&mut self) -> &mut ::std::string::String {
if self.host_name.is_none() {
self.host_name = ::std::option::Option::Some(::std::string::String::new());
}
self.host_name.as_mut().unwrap()
}
pub fn take_host_name(&mut self) -> ::std::string::String {
self.host_name.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn port(&self) -> u32 {
self.port.unwrap_or(0)
}
pub fn clear_port(&mut self) {
self.port = ::std::option::Option::None;
}
pub fn has_port(&self) -> bool {
self.port.is_some()
}
pub fn set_port(&mut self, v: u32) {
self.port = ::std::option::Option::Some(v);
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(5);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"type",
|m: &CardanoPoolRelayParameters| { &m.type_ },
|m: &mut CardanoPoolRelayParameters| { &mut m.type_ },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"ipv4_address",
|m: &CardanoPoolRelayParameters| { &m.ipv4_address },
|m: &mut CardanoPoolRelayParameters| { &mut m.ipv4_address },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"ipv6_address",
|m: &CardanoPoolRelayParameters| { &m.ipv6_address },
|m: &mut CardanoPoolRelayParameters| { &mut m.ipv6_address },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"host_name",
|m: &CardanoPoolRelayParameters| { &m.host_name },
|m: &mut CardanoPoolRelayParameters| { &mut m.host_name },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"port",
|m: &CardanoPoolRelayParameters| { &m.port },
|m: &mut CardanoPoolRelayParameters| { &mut m.port },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoPoolRelayParameters>(
"CardanoPoolRelayParameters",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoPoolRelayParameters {
const NAME: &'static str = "CardanoPoolRelayParameters";
fn is_initialized(&self) -> bool {
if self.type_.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.type_ = ::std::option::Option::Some(is.read_enum_or_unknown()?);
},
18 => {
self.ipv4_address = ::std::option::Option::Some(is.read_bytes()?);
},
26 => {
self.ipv6_address = ::std::option::Option::Some(is.read_bytes()?);
},
34 => {
self.host_name = ::std::option::Option::Some(is.read_string()?);
},
40 => {
self.port = ::std::option::Option::Some(is.read_uint32()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.type_ {
my_size += ::protobuf::rt::int32_size(1, v.value());
}
if let Some(v) = self.ipv4_address.as_ref() {
my_size += ::protobuf::rt::bytes_size(2, &v);
}
if let Some(v) = self.ipv6_address.as_ref() {
my_size += ::protobuf::rt::bytes_size(3, &v);
}
if let Some(v) = self.host_name.as_ref() {
my_size += ::protobuf::rt::string_size(4, &v);
}
if let Some(v) = self.port {
my_size += ::protobuf::rt::uint32_size(5, v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.type_ {
os.write_enum(1, ::protobuf::EnumOrUnknown::value(&v))?;
}
if let Some(v) = self.ipv4_address.as_ref() {
os.write_bytes(2, v)?;
}
if let Some(v) = self.ipv6_address.as_ref() {
os.write_bytes(3, v)?;
}
if let Some(v) = self.host_name.as_ref() {
os.write_string(4, v)?;
}
if let Some(v) = self.port {
os.write_uint32(5, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoPoolRelayParameters {
CardanoPoolRelayParameters::new()
}
fn clear(&mut self) {
self.type_ = ::std::option::Option::None;
self.ipv4_address = ::std::option::Option::None;
self.ipv6_address = ::std::option::Option::None;
self.host_name = ::std::option::Option::None;
self.port = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoPoolRelayParameters {
static instance: CardanoPoolRelayParameters = CardanoPoolRelayParameters {
type_: ::std::option::Option::None,
ipv4_address: ::std::option::Option::None,
ipv6_address: ::std::option::Option::None,
host_name: ::std::option::Option::None,
port: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoPoolRelayParameters {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoPoolRelayParameters").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoPoolRelayParameters {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoPoolRelayParameters {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoPoolMetadataType {
pub url: ::std::option::Option<::std::string::String>,
pub hash: ::std::option::Option<::std::vec::Vec<u8>>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoPoolMetadataType {
fn default() -> &'a CardanoPoolMetadataType {
<CardanoPoolMetadataType as ::protobuf::Message>::default_instance()
}
}
impl CardanoPoolMetadataType {
pub fn new() -> CardanoPoolMetadataType {
::std::default::Default::default()
}
pub fn url(&self) -> &str {
match self.url.as_ref() {
Some(v) => v,
None => "",
}
}
pub fn clear_url(&mut self) {
self.url = ::std::option::Option::None;
}
pub fn has_url(&self) -> bool {
self.url.is_some()
}
pub fn set_url(&mut self, v: ::std::string::String) {
self.url = ::std::option::Option::Some(v);
}
pub fn mut_url(&mut self) -> &mut ::std::string::String {
if self.url.is_none() {
self.url = ::std::option::Option::Some(::std::string::String::new());
}
self.url.as_mut().unwrap()
}
pub fn take_url(&mut self) -> ::std::string::String {
self.url.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn hash(&self) -> &[u8] {
match self.hash.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_hash(&mut self) {
self.hash = ::std::option::Option::None;
}
pub fn has_hash(&self) -> bool {
self.hash.is_some()
}
pub fn set_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.hash = ::std::option::Option::Some(v);
}
pub fn mut_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.hash.is_none() {
self.hash = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.hash.as_mut().unwrap()
}
pub fn take_hash(&mut self) -> ::std::vec::Vec<u8> {
self.hash.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(2);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"url",
|m: &CardanoPoolMetadataType| { &m.url },
|m: &mut CardanoPoolMetadataType| { &mut m.url },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"hash",
|m: &CardanoPoolMetadataType| { &m.hash },
|m: &mut CardanoPoolMetadataType| { &mut m.hash },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoPoolMetadataType>(
"CardanoPoolMetadataType",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoPoolMetadataType {
const NAME: &'static str = "CardanoPoolMetadataType";
fn is_initialized(&self) -> bool {
if self.url.is_none() {
return false;
}
if self.hash.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.url = ::std::option::Option::Some(is.read_string()?);
},
18 => {
self.hash = ::std::option::Option::Some(is.read_bytes()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.url.as_ref() {
my_size += ::protobuf::rt::string_size(1, &v);
}
if let Some(v) = self.hash.as_ref() {
my_size += ::protobuf::rt::bytes_size(2, &v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.url.as_ref() {
os.write_string(1, v)?;
}
if let Some(v) = self.hash.as_ref() {
os.write_bytes(2, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoPoolMetadataType {
CardanoPoolMetadataType::new()
}
fn clear(&mut self) {
self.url = ::std::option::Option::None;
self.hash = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoPoolMetadataType {
static instance: CardanoPoolMetadataType = CardanoPoolMetadataType {
url: ::std::option::Option::None,
hash: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoPoolMetadataType {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoPoolMetadataType").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoPoolMetadataType {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoPoolMetadataType {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoPoolParametersType {
pub pool_id: ::std::option::Option<::std::vec::Vec<u8>>,
pub vrf_key_hash: ::std::option::Option<::std::vec::Vec<u8>>,
pub pledge: ::std::option::Option<u64>,
pub cost: ::std::option::Option<u64>,
pub margin_numerator: ::std::option::Option<u64>,
pub margin_denominator: ::std::option::Option<u64>,
pub reward_account: ::std::option::Option<::std::string::String>,
pub metadata: ::protobuf::MessageField<CardanoPoolMetadataType>,
pub owners_count: ::std::option::Option<u32>,
pub relays_count: ::std::option::Option<u32>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoPoolParametersType {
fn default() -> &'a CardanoPoolParametersType {
<CardanoPoolParametersType as ::protobuf::Message>::default_instance()
}
}
impl CardanoPoolParametersType {
pub fn new() -> CardanoPoolParametersType {
::std::default::Default::default()
}
pub fn pool_id(&self) -> &[u8] {
match self.pool_id.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_pool_id(&mut self) {
self.pool_id = ::std::option::Option::None;
}
pub fn has_pool_id(&self) -> bool {
self.pool_id.is_some()
}
pub fn set_pool_id(&mut self, v: ::std::vec::Vec<u8>) {
self.pool_id = ::std::option::Option::Some(v);
}
pub fn mut_pool_id(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.pool_id.is_none() {
self.pool_id = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.pool_id.as_mut().unwrap()
}
pub fn take_pool_id(&mut self) -> ::std::vec::Vec<u8> {
self.pool_id.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn vrf_key_hash(&self) -> &[u8] {
match self.vrf_key_hash.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_vrf_key_hash(&mut self) {
self.vrf_key_hash = ::std::option::Option::None;
}
pub fn has_vrf_key_hash(&self) -> bool {
self.vrf_key_hash.is_some()
}
pub fn set_vrf_key_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.vrf_key_hash = ::std::option::Option::Some(v);
}
pub fn mut_vrf_key_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.vrf_key_hash.is_none() {
self.vrf_key_hash = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.vrf_key_hash.as_mut().unwrap()
}
pub fn take_vrf_key_hash(&mut self) -> ::std::vec::Vec<u8> {
self.vrf_key_hash.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn pledge(&self) -> u64 {
self.pledge.unwrap_or(0)
}
pub fn clear_pledge(&mut self) {
self.pledge = ::std::option::Option::None;
}
pub fn has_pledge(&self) -> bool {
self.pledge.is_some()
}
pub fn set_pledge(&mut self, v: u64) {
self.pledge = ::std::option::Option::Some(v);
}
pub fn cost(&self) -> u64 {
self.cost.unwrap_or(0)
}
pub fn clear_cost(&mut self) {
self.cost = ::std::option::Option::None;
}
pub fn has_cost(&self) -> bool {
self.cost.is_some()
}
pub fn set_cost(&mut self, v: u64) {
self.cost = ::std::option::Option::Some(v);
}
pub fn margin_numerator(&self) -> u64 {
self.margin_numerator.unwrap_or(0)
}
pub fn clear_margin_numerator(&mut self) {
self.margin_numerator = ::std::option::Option::None;
}
pub fn has_margin_numerator(&self) -> bool {
self.margin_numerator.is_some()
}
pub fn set_margin_numerator(&mut self, v: u64) {
self.margin_numerator = ::std::option::Option::Some(v);
}
pub fn margin_denominator(&self) -> u64 {
self.margin_denominator.unwrap_or(0)
}
pub fn clear_margin_denominator(&mut self) {
self.margin_denominator = ::std::option::Option::None;
}
pub fn has_margin_denominator(&self) -> bool {
self.margin_denominator.is_some()
}
pub fn set_margin_denominator(&mut self, v: u64) {
self.margin_denominator = ::std::option::Option::Some(v);
}
pub fn reward_account(&self) -> &str {
match self.reward_account.as_ref() {
Some(v) => v,
None => "",
}
}
pub fn clear_reward_account(&mut self) {
self.reward_account = ::std::option::Option::None;
}
pub fn has_reward_account(&self) -> bool {
self.reward_account.is_some()
}
pub fn set_reward_account(&mut self, v: ::std::string::String) {
self.reward_account = ::std::option::Option::Some(v);
}
pub fn mut_reward_account(&mut self) -> &mut ::std::string::String {
if self.reward_account.is_none() {
self.reward_account = ::std::option::Option::Some(::std::string::String::new());
}
self.reward_account.as_mut().unwrap()
}
pub fn take_reward_account(&mut self) -> ::std::string::String {
self.reward_account.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn owners_count(&self) -> u32 {
self.owners_count.unwrap_or(0)
}
pub fn clear_owners_count(&mut self) {
self.owners_count = ::std::option::Option::None;
}
pub fn has_owners_count(&self) -> bool {
self.owners_count.is_some()
}
pub fn set_owners_count(&mut self, v: u32) {
self.owners_count = ::std::option::Option::Some(v);
}
pub fn relays_count(&self) -> u32 {
self.relays_count.unwrap_or(0)
}
pub fn clear_relays_count(&mut self) {
self.relays_count = ::std::option::Option::None;
}
pub fn has_relays_count(&self) -> bool {
self.relays_count.is_some()
}
pub fn set_relays_count(&mut self, v: u32) {
self.relays_count = ::std::option::Option::Some(v);
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(10);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"pool_id",
|m: &CardanoPoolParametersType| { &m.pool_id },
|m: &mut CardanoPoolParametersType| { &mut m.pool_id },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"vrf_key_hash",
|m: &CardanoPoolParametersType| { &m.vrf_key_hash },
|m: &mut CardanoPoolParametersType| { &mut m.vrf_key_hash },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"pledge",
|m: &CardanoPoolParametersType| { &m.pledge },
|m: &mut CardanoPoolParametersType| { &mut m.pledge },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"cost",
|m: &CardanoPoolParametersType| { &m.cost },
|m: &mut CardanoPoolParametersType| { &mut m.cost },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"margin_numerator",
|m: &CardanoPoolParametersType| { &m.margin_numerator },
|m: &mut CardanoPoolParametersType| { &mut m.margin_numerator },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"margin_denominator",
|m: &CardanoPoolParametersType| { &m.margin_denominator },
|m: &mut CardanoPoolParametersType| { &mut m.margin_denominator },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"reward_account",
|m: &CardanoPoolParametersType| { &m.reward_account },
|m: &mut CardanoPoolParametersType| { &mut m.reward_account },
));
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, CardanoPoolMetadataType>(
"metadata",
|m: &CardanoPoolParametersType| { &m.metadata },
|m: &mut CardanoPoolParametersType| { &mut m.metadata },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"owners_count",
|m: &CardanoPoolParametersType| { &m.owners_count },
|m: &mut CardanoPoolParametersType| { &mut m.owners_count },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"relays_count",
|m: &CardanoPoolParametersType| { &m.relays_count },
|m: &mut CardanoPoolParametersType| { &mut m.relays_count },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoPoolParametersType>(
"CardanoPoolParametersType",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoPoolParametersType {
const NAME: &'static str = "CardanoPoolParametersType";
fn is_initialized(&self) -> bool {
if self.pool_id.is_none() {
return false;
}
if self.vrf_key_hash.is_none() {
return false;
}
if self.pledge.is_none() {
return false;
}
if self.cost.is_none() {
return false;
}
if self.margin_numerator.is_none() {
return false;
}
if self.margin_denominator.is_none() {
return false;
}
if self.reward_account.is_none() {
return false;
}
if self.owners_count.is_none() {
return false;
}
if self.relays_count.is_none() {
return false;
}
for v in &self.metadata {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.pool_id = ::std::option::Option::Some(is.read_bytes()?);
},
18 => {
self.vrf_key_hash = ::std::option::Option::Some(is.read_bytes()?);
},
24 => {
self.pledge = ::std::option::Option::Some(is.read_uint64()?);
},
32 => {
self.cost = ::std::option::Option::Some(is.read_uint64()?);
},
40 => {
self.margin_numerator = ::std::option::Option::Some(is.read_uint64()?);
},
48 => {
self.margin_denominator = ::std::option::Option::Some(is.read_uint64()?);
},
58 => {
self.reward_account = ::std::option::Option::Some(is.read_string()?);
},
82 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.metadata)?;
},
88 => {
self.owners_count = ::std::option::Option::Some(is.read_uint32()?);
},
96 => {
self.relays_count = ::std::option::Option::Some(is.read_uint32()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.pool_id.as_ref() {
my_size += ::protobuf::rt::bytes_size(1, &v);
}
if let Some(v) = self.vrf_key_hash.as_ref() {
my_size += ::protobuf::rt::bytes_size(2, &v);
}
if let Some(v) = self.pledge {
my_size += ::protobuf::rt::uint64_size(3, v);
}
if let Some(v) = self.cost {
my_size += ::protobuf::rt::uint64_size(4, v);
}
if let Some(v) = self.margin_numerator {
my_size += ::protobuf::rt::uint64_size(5, v);
}
if let Some(v) = self.margin_denominator {
my_size += ::protobuf::rt::uint64_size(6, v);
}
if let Some(v) = self.reward_account.as_ref() {
my_size += ::protobuf::rt::string_size(7, &v);
}
if let Some(v) = self.metadata.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
}
if let Some(v) = self.owners_count {
my_size += ::protobuf::rt::uint32_size(11, v);
}
if let Some(v) = self.relays_count {
my_size += ::protobuf::rt::uint32_size(12, v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.pool_id.as_ref() {
os.write_bytes(1, v)?;
}
if let Some(v) = self.vrf_key_hash.as_ref() {
os.write_bytes(2, v)?;
}
if let Some(v) = self.pledge {
os.write_uint64(3, v)?;
}
if let Some(v) = self.cost {
os.write_uint64(4, v)?;
}
if let Some(v) = self.margin_numerator {
os.write_uint64(5, v)?;
}
if let Some(v) = self.margin_denominator {
os.write_uint64(6, v)?;
}
if let Some(v) = self.reward_account.as_ref() {
os.write_string(7, v)?;
}
if let Some(v) = self.metadata.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(10, v, os)?;
}
if let Some(v) = self.owners_count {
os.write_uint32(11, v)?;
}
if let Some(v) = self.relays_count {
os.write_uint32(12, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoPoolParametersType {
CardanoPoolParametersType::new()
}
fn clear(&mut self) {
self.pool_id = ::std::option::Option::None;
self.vrf_key_hash = ::std::option::Option::None;
self.pledge = ::std::option::Option::None;
self.cost = ::std::option::Option::None;
self.margin_numerator = ::std::option::Option::None;
self.margin_denominator = ::std::option::Option::None;
self.reward_account = ::std::option::Option::None;
self.metadata.clear();
self.owners_count = ::std::option::Option::None;
self.relays_count = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoPoolParametersType {
static instance: CardanoPoolParametersType = CardanoPoolParametersType {
pool_id: ::std::option::Option::None,
vrf_key_hash: ::std::option::Option::None,
pledge: ::std::option::Option::None,
cost: ::std::option::Option::None,
margin_numerator: ::std::option::Option::None,
margin_denominator: ::std::option::Option::None,
reward_account: ::std::option::Option::None,
metadata: ::protobuf::MessageField::none(),
owners_count: ::std::option::Option::None,
relays_count: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoPoolParametersType {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoPoolParametersType").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoPoolParametersType {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoPoolParametersType {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoDRep {
pub type_: ::std::option::Option<::protobuf::EnumOrUnknown<CardanoDRepType>>,
pub key_hash: ::std::option::Option<::std::vec::Vec<u8>>,
pub script_hash: ::std::option::Option<::std::vec::Vec<u8>>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoDRep {
fn default() -> &'a CardanoDRep {
<CardanoDRep as ::protobuf::Message>::default_instance()
}
}
impl CardanoDRep {
pub fn new() -> CardanoDRep {
::std::default::Default::default()
}
pub fn type_(&self) -> CardanoDRepType {
match self.type_ {
Some(e) => e.enum_value_or(CardanoDRepType::KEY_HASH),
None => CardanoDRepType::KEY_HASH,
}
}
pub fn clear_type_(&mut self) {
self.type_ = ::std::option::Option::None;
}
pub fn has_type(&self) -> bool {
self.type_.is_some()
}
pub fn set_type(&mut self, v: CardanoDRepType) {
self.type_ = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
}
pub fn key_hash(&self) -> &[u8] {
match self.key_hash.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_key_hash(&mut self) {
self.key_hash = ::std::option::Option::None;
}
pub fn has_key_hash(&self) -> bool {
self.key_hash.is_some()
}
pub fn set_key_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.key_hash = ::std::option::Option::Some(v);
}
pub fn mut_key_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.key_hash.is_none() {
self.key_hash = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.key_hash.as_mut().unwrap()
}
pub fn take_key_hash(&mut self) -> ::std::vec::Vec<u8> {
self.key_hash.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn script_hash(&self) -> &[u8] {
match self.script_hash.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_script_hash(&mut self) {
self.script_hash = ::std::option::Option::None;
}
pub fn has_script_hash(&self) -> bool {
self.script_hash.is_some()
}
pub fn set_script_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.script_hash = ::std::option::Option::Some(v);
}
pub fn mut_script_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.script_hash.is_none() {
self.script_hash = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.script_hash.as_mut().unwrap()
}
pub fn take_script_hash(&mut self) -> ::std::vec::Vec<u8> {
self.script_hash.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(3);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"type",
|m: &CardanoDRep| { &m.type_ },
|m: &mut CardanoDRep| { &mut m.type_ },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"key_hash",
|m: &CardanoDRep| { &m.key_hash },
|m: &mut CardanoDRep| { &mut m.key_hash },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"script_hash",
|m: &CardanoDRep| { &m.script_hash },
|m: &mut CardanoDRep| { &mut m.script_hash },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoDRep>(
"CardanoDRep",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoDRep {
const NAME: &'static str = "CardanoDRep";
fn is_initialized(&self) -> bool {
if self.type_.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.type_ = ::std::option::Option::Some(is.read_enum_or_unknown()?);
},
18 => {
self.key_hash = ::std::option::Option::Some(is.read_bytes()?);
},
26 => {
self.script_hash = ::std::option::Option::Some(is.read_bytes()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.type_ {
my_size += ::protobuf::rt::int32_size(1, v.value());
}
if let Some(v) = self.key_hash.as_ref() {
my_size += ::protobuf::rt::bytes_size(2, &v);
}
if let Some(v) = self.script_hash.as_ref() {
my_size += ::protobuf::rt::bytes_size(3, &v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.type_ {
os.write_enum(1, ::protobuf::EnumOrUnknown::value(&v))?;
}
if let Some(v) = self.key_hash.as_ref() {
os.write_bytes(2, v)?;
}
if let Some(v) = self.script_hash.as_ref() {
os.write_bytes(3, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoDRep {
CardanoDRep::new()
}
fn clear(&mut self) {
self.type_ = ::std::option::Option::None;
self.key_hash = ::std::option::Option::None;
self.script_hash = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoDRep {
static instance: CardanoDRep = CardanoDRep {
type_: ::std::option::Option::None,
key_hash: ::std::option::Option::None,
script_hash: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoDRep {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoDRep").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoDRep {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoDRep {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoTxCertificate {
pub type_: ::std::option::Option<::protobuf::EnumOrUnknown<CardanoCertificateType>>,
pub path: ::std::vec::Vec<u32>,
pub pool: ::std::option::Option<::std::vec::Vec<u8>>,
pub pool_parameters: ::protobuf::MessageField<CardanoPoolParametersType>,
pub script_hash: ::std::option::Option<::std::vec::Vec<u8>>,
pub key_hash: ::std::option::Option<::std::vec::Vec<u8>>,
pub deposit: ::std::option::Option<u64>,
pub drep: ::protobuf::MessageField<CardanoDRep>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoTxCertificate {
fn default() -> &'a CardanoTxCertificate {
<CardanoTxCertificate as ::protobuf::Message>::default_instance()
}
}
impl CardanoTxCertificate {
pub fn new() -> CardanoTxCertificate {
::std::default::Default::default()
}
pub fn type_(&self) -> CardanoCertificateType {
match self.type_ {
Some(e) => e.enum_value_or(CardanoCertificateType::STAKE_REGISTRATION),
None => CardanoCertificateType::STAKE_REGISTRATION,
}
}
pub fn clear_type_(&mut self) {
self.type_ = ::std::option::Option::None;
}
pub fn has_type(&self) -> bool {
self.type_.is_some()
}
pub fn set_type(&mut self, v: CardanoCertificateType) {
self.type_ = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
}
pub fn pool(&self) -> &[u8] {
match self.pool.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_pool(&mut self) {
self.pool = ::std::option::Option::None;
}
pub fn has_pool(&self) -> bool {
self.pool.is_some()
}
pub fn set_pool(&mut self, v: ::std::vec::Vec<u8>) {
self.pool = ::std::option::Option::Some(v);
}
pub fn mut_pool(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.pool.is_none() {
self.pool = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.pool.as_mut().unwrap()
}
pub fn take_pool(&mut self) -> ::std::vec::Vec<u8> {
self.pool.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn script_hash(&self) -> &[u8] {
match self.script_hash.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_script_hash(&mut self) {
self.script_hash = ::std::option::Option::None;
}
pub fn has_script_hash(&self) -> bool {
self.script_hash.is_some()
}
pub fn set_script_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.script_hash = ::std::option::Option::Some(v);
}
pub fn mut_script_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.script_hash.is_none() {
self.script_hash = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.script_hash.as_mut().unwrap()
}
pub fn take_script_hash(&mut self) -> ::std::vec::Vec<u8> {
self.script_hash.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn key_hash(&self) -> &[u8] {
match self.key_hash.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_key_hash(&mut self) {
self.key_hash = ::std::option::Option::None;
}
pub fn has_key_hash(&self) -> bool {
self.key_hash.is_some()
}
pub fn set_key_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.key_hash = ::std::option::Option::Some(v);
}
pub fn mut_key_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.key_hash.is_none() {
self.key_hash = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.key_hash.as_mut().unwrap()
}
pub fn take_key_hash(&mut self) -> ::std::vec::Vec<u8> {
self.key_hash.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn deposit(&self) -> u64 {
self.deposit.unwrap_or(0)
}
pub fn clear_deposit(&mut self) {
self.deposit = ::std::option::Option::None;
}
pub fn has_deposit(&self) -> bool {
self.deposit.is_some()
}
pub fn set_deposit(&mut self, v: u64) {
self.deposit = ::std::option::Option::Some(v);
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(8);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"type",
|m: &CardanoTxCertificate| { &m.type_ },
|m: &mut CardanoTxCertificate| { &mut m.type_ },
));
fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
"path",
|m: &CardanoTxCertificate| { &m.path },
|m: &mut CardanoTxCertificate| { &mut m.path },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"pool",
|m: &CardanoTxCertificate| { &m.pool },
|m: &mut CardanoTxCertificate| { &mut m.pool },
));
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, CardanoPoolParametersType>(
"pool_parameters",
|m: &CardanoTxCertificate| { &m.pool_parameters },
|m: &mut CardanoTxCertificate| { &mut m.pool_parameters },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"script_hash",
|m: &CardanoTxCertificate| { &m.script_hash },
|m: &mut CardanoTxCertificate| { &mut m.script_hash },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"key_hash",
|m: &CardanoTxCertificate| { &m.key_hash },
|m: &mut CardanoTxCertificate| { &mut m.key_hash },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"deposit",
|m: &CardanoTxCertificate| { &m.deposit },
|m: &mut CardanoTxCertificate| { &mut m.deposit },
));
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, CardanoDRep>(
"drep",
|m: &CardanoTxCertificate| { &m.drep },
|m: &mut CardanoTxCertificate| { &mut m.drep },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoTxCertificate>(
"CardanoTxCertificate",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoTxCertificate {
const NAME: &'static str = "CardanoTxCertificate";
fn is_initialized(&self) -> bool {
if self.type_.is_none() {
return false;
}
for v in &self.pool_parameters {
if !v.is_initialized() {
return false;
}
};
for v in &self.drep {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.type_ = ::std::option::Option::Some(is.read_enum_or_unknown()?);
},
18 => {
is.read_repeated_packed_uint32_into(&mut self.path)?;
},
16 => {
self.path.push(is.read_uint32()?);
},
26 => {
self.pool = ::std::option::Option::Some(is.read_bytes()?);
},
34 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.pool_parameters)?;
},
42 => {
self.script_hash = ::std::option::Option::Some(is.read_bytes()?);
},
50 => {
self.key_hash = ::std::option::Option::Some(is.read_bytes()?);
},
56 => {
self.deposit = ::std::option::Option::Some(is.read_uint64()?);
},
66 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.drep)?;
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.type_ {
my_size += ::protobuf::rt::int32_size(1, v.value());
}
for value in &self.path {
my_size += ::protobuf::rt::uint32_size(2, *value);
};
if let Some(v) = self.pool.as_ref() {
my_size += ::protobuf::rt::bytes_size(3, &v);
}
if let Some(v) = self.pool_parameters.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
}
if let Some(v) = self.script_hash.as_ref() {
my_size += ::protobuf::rt::bytes_size(5, &v);
}
if let Some(v) = self.key_hash.as_ref() {
my_size += ::protobuf::rt::bytes_size(6, &v);
}
if let Some(v) = self.deposit {
my_size += ::protobuf::rt::uint64_size(7, v);
}
if let Some(v) = self.drep.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.type_ {
os.write_enum(1, ::protobuf::EnumOrUnknown::value(&v))?;
}
for v in &self.path {
os.write_uint32(2, *v)?;
};
if let Some(v) = self.pool.as_ref() {
os.write_bytes(3, v)?;
}
if let Some(v) = self.pool_parameters.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(4, v, os)?;
}
if let Some(v) = self.script_hash.as_ref() {
os.write_bytes(5, v)?;
}
if let Some(v) = self.key_hash.as_ref() {
os.write_bytes(6, v)?;
}
if let Some(v) = self.deposit {
os.write_uint64(7, v)?;
}
if let Some(v) = self.drep.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(8, v, os)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoTxCertificate {
CardanoTxCertificate::new()
}
fn clear(&mut self) {
self.type_ = ::std::option::Option::None;
self.path.clear();
self.pool = ::std::option::Option::None;
self.pool_parameters.clear();
self.script_hash = ::std::option::Option::None;
self.key_hash = ::std::option::Option::None;
self.deposit = ::std::option::Option::None;
self.drep.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoTxCertificate {
static instance: CardanoTxCertificate = CardanoTxCertificate {
type_: ::std::option::Option::None,
path: ::std::vec::Vec::new(),
pool: ::std::option::Option::None,
pool_parameters: ::protobuf::MessageField::none(),
script_hash: ::std::option::Option::None,
key_hash: ::std::option::Option::None,
deposit: ::std::option::Option::None,
drep: ::protobuf::MessageField::none(),
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoTxCertificate {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoTxCertificate").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoTxCertificate {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoTxCertificate {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoTxWithdrawal {
pub path: ::std::vec::Vec<u32>,
pub amount: ::std::option::Option<u64>,
pub script_hash: ::std::option::Option<::std::vec::Vec<u8>>,
pub key_hash: ::std::option::Option<::std::vec::Vec<u8>>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoTxWithdrawal {
fn default() -> &'a CardanoTxWithdrawal {
<CardanoTxWithdrawal as ::protobuf::Message>::default_instance()
}
}
impl CardanoTxWithdrawal {
pub fn new() -> CardanoTxWithdrawal {
::std::default::Default::default()
}
pub fn amount(&self) -> u64 {
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: u64) {
self.amount = ::std::option::Option::Some(v);
}
pub fn script_hash(&self) -> &[u8] {
match self.script_hash.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_script_hash(&mut self) {
self.script_hash = ::std::option::Option::None;
}
pub fn has_script_hash(&self) -> bool {
self.script_hash.is_some()
}
pub fn set_script_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.script_hash = ::std::option::Option::Some(v);
}
pub fn mut_script_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.script_hash.is_none() {
self.script_hash = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.script_hash.as_mut().unwrap()
}
pub fn take_script_hash(&mut self) -> ::std::vec::Vec<u8> {
self.script_hash.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn key_hash(&self) -> &[u8] {
match self.key_hash.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_key_hash(&mut self) {
self.key_hash = ::std::option::Option::None;
}
pub fn has_key_hash(&self) -> bool {
self.key_hash.is_some()
}
pub fn set_key_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.key_hash = ::std::option::Option::Some(v);
}
pub fn mut_key_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.key_hash.is_none() {
self.key_hash = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.key_hash.as_mut().unwrap()
}
pub fn take_key_hash(&mut self) -> ::std::vec::Vec<u8> {
self.key_hash.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(4);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
"path",
|m: &CardanoTxWithdrawal| { &m.path },
|m: &mut CardanoTxWithdrawal| { &mut m.path },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"amount",
|m: &CardanoTxWithdrawal| { &m.amount },
|m: &mut CardanoTxWithdrawal| { &mut m.amount },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"script_hash",
|m: &CardanoTxWithdrawal| { &m.script_hash },
|m: &mut CardanoTxWithdrawal| { &mut m.script_hash },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"key_hash",
|m: &CardanoTxWithdrawal| { &m.key_hash },
|m: &mut CardanoTxWithdrawal| { &mut m.key_hash },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoTxWithdrawal>(
"CardanoTxWithdrawal",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoTxWithdrawal {
const NAME: &'static str = "CardanoTxWithdrawal";
fn is_initialized(&self) -> bool {
if self.amount.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
is.read_repeated_packed_uint32_into(&mut self.path)?;
},
8 => {
self.path.push(is.read_uint32()?);
},
16 => {
self.amount = ::std::option::Option::Some(is.read_uint64()?);
},
26 => {
self.script_hash = ::std::option::Option::Some(is.read_bytes()?);
},
34 => {
self.key_hash = ::std::option::Option::Some(is.read_bytes()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
for value in &self.path {
my_size += ::protobuf::rt::uint32_size(1, *value);
};
if let Some(v) = self.amount {
my_size += ::protobuf::rt::uint64_size(2, v);
}
if let Some(v) = self.script_hash.as_ref() {
my_size += ::protobuf::rt::bytes_size(3, &v);
}
if let Some(v) = self.key_hash.as_ref() {
my_size += ::protobuf::rt::bytes_size(4, &v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
for v in &self.path {
os.write_uint32(1, *v)?;
};
if let Some(v) = self.amount {
os.write_uint64(2, v)?;
}
if let Some(v) = self.script_hash.as_ref() {
os.write_bytes(3, v)?;
}
if let Some(v) = self.key_hash.as_ref() {
os.write_bytes(4, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoTxWithdrawal {
CardanoTxWithdrawal::new()
}
fn clear(&mut self) {
self.path.clear();
self.amount = ::std::option::Option::None;
self.script_hash = ::std::option::Option::None;
self.key_hash = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoTxWithdrawal {
static instance: CardanoTxWithdrawal = CardanoTxWithdrawal {
path: ::std::vec::Vec::new(),
amount: ::std::option::Option::None,
script_hash: ::std::option::Option::None,
key_hash: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoTxWithdrawal {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoTxWithdrawal").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoTxWithdrawal {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoTxWithdrawal {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoCVoteRegistrationDelegation {
pub vote_public_key: ::std::option::Option<::std::vec::Vec<u8>>,
pub weight: ::std::option::Option<u32>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoCVoteRegistrationDelegation {
fn default() -> &'a CardanoCVoteRegistrationDelegation {
<CardanoCVoteRegistrationDelegation as ::protobuf::Message>::default_instance()
}
}
impl CardanoCVoteRegistrationDelegation {
pub fn new() -> CardanoCVoteRegistrationDelegation {
::std::default::Default::default()
}
pub fn vote_public_key(&self) -> &[u8] {
match self.vote_public_key.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_vote_public_key(&mut self) {
self.vote_public_key = ::std::option::Option::None;
}
pub fn has_vote_public_key(&self) -> bool {
self.vote_public_key.is_some()
}
pub fn set_vote_public_key(&mut self, v: ::std::vec::Vec<u8>) {
self.vote_public_key = ::std::option::Option::Some(v);
}
pub fn mut_vote_public_key(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.vote_public_key.is_none() {
self.vote_public_key = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.vote_public_key.as_mut().unwrap()
}
pub fn take_vote_public_key(&mut self) -> ::std::vec::Vec<u8> {
self.vote_public_key.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn weight(&self) -> u32 {
self.weight.unwrap_or(0)
}
pub fn clear_weight(&mut self) {
self.weight = ::std::option::Option::None;
}
pub fn has_weight(&self) -> bool {
self.weight.is_some()
}
pub fn set_weight(&mut self, v: u32) {
self.weight = ::std::option::Option::Some(v);
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(2);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"vote_public_key",
|m: &CardanoCVoteRegistrationDelegation| { &m.vote_public_key },
|m: &mut CardanoCVoteRegistrationDelegation| { &mut m.vote_public_key },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"weight",
|m: &CardanoCVoteRegistrationDelegation| { &m.weight },
|m: &mut CardanoCVoteRegistrationDelegation| { &mut m.weight },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoCVoteRegistrationDelegation>(
"CardanoCVoteRegistrationDelegation",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoCVoteRegistrationDelegation {
const NAME: &'static str = "CardanoCVoteRegistrationDelegation";
fn is_initialized(&self) -> bool {
if self.vote_public_key.is_none() {
return false;
}
if self.weight.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.vote_public_key = ::std::option::Option::Some(is.read_bytes()?);
},
16 => {
self.weight = ::std::option::Option::Some(is.read_uint32()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.vote_public_key.as_ref() {
my_size += ::protobuf::rt::bytes_size(1, &v);
}
if let Some(v) = self.weight {
my_size += ::protobuf::rt::uint32_size(2, v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.vote_public_key.as_ref() {
os.write_bytes(1, v)?;
}
if let Some(v) = self.weight {
os.write_uint32(2, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoCVoteRegistrationDelegation {
CardanoCVoteRegistrationDelegation::new()
}
fn clear(&mut self) {
self.vote_public_key = ::std::option::Option::None;
self.weight = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoCVoteRegistrationDelegation {
static instance: CardanoCVoteRegistrationDelegation = CardanoCVoteRegistrationDelegation {
vote_public_key: ::std::option::Option::None,
weight: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoCVoteRegistrationDelegation {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoCVoteRegistrationDelegation").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoCVoteRegistrationDelegation {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoCVoteRegistrationDelegation {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoCVoteRegistrationParametersType {
pub vote_public_key: ::std::option::Option<::std::vec::Vec<u8>>,
pub staking_path: ::std::vec::Vec<u32>,
pub payment_address_parameters: ::protobuf::MessageField<CardanoAddressParametersType>,
pub nonce: ::std::option::Option<u64>,
pub format: ::std::option::Option<::protobuf::EnumOrUnknown<CardanoCVoteRegistrationFormat>>,
pub delegations: ::std::vec::Vec<CardanoCVoteRegistrationDelegation>,
pub voting_purpose: ::std::option::Option<u64>,
pub payment_address: ::std::option::Option<::std::string::String>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoCVoteRegistrationParametersType {
fn default() -> &'a CardanoCVoteRegistrationParametersType {
<CardanoCVoteRegistrationParametersType as ::protobuf::Message>::default_instance()
}
}
impl CardanoCVoteRegistrationParametersType {
pub fn new() -> CardanoCVoteRegistrationParametersType {
::std::default::Default::default()
}
pub fn vote_public_key(&self) -> &[u8] {
match self.vote_public_key.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_vote_public_key(&mut self) {
self.vote_public_key = ::std::option::Option::None;
}
pub fn has_vote_public_key(&self) -> bool {
self.vote_public_key.is_some()
}
pub fn set_vote_public_key(&mut self, v: ::std::vec::Vec<u8>) {
self.vote_public_key = ::std::option::Option::Some(v);
}
pub fn mut_vote_public_key(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.vote_public_key.is_none() {
self.vote_public_key = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.vote_public_key.as_mut().unwrap()
}
pub fn take_vote_public_key(&mut self) -> ::std::vec::Vec<u8> {
self.vote_public_key.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn nonce(&self) -> u64 {
self.nonce.unwrap_or(0)
}
pub fn clear_nonce(&mut self) {
self.nonce = ::std::option::Option::None;
}
pub fn has_nonce(&self) -> bool {
self.nonce.is_some()
}
pub fn set_nonce(&mut self, v: u64) {
self.nonce = ::std::option::Option::Some(v);
}
pub fn format(&self) -> CardanoCVoteRegistrationFormat {
match self.format {
Some(e) => e.enum_value_or(CardanoCVoteRegistrationFormat::CIP15),
None => CardanoCVoteRegistrationFormat::CIP15,
}
}
pub fn clear_format(&mut self) {
self.format = ::std::option::Option::None;
}
pub fn has_format(&self) -> bool {
self.format.is_some()
}
pub fn set_format(&mut self, v: CardanoCVoteRegistrationFormat) {
self.format = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
}
pub fn voting_purpose(&self) -> u64 {
self.voting_purpose.unwrap_or(0)
}
pub fn clear_voting_purpose(&mut self) {
self.voting_purpose = ::std::option::Option::None;
}
pub fn has_voting_purpose(&self) -> bool {
self.voting_purpose.is_some()
}
pub fn set_voting_purpose(&mut self, v: u64) {
self.voting_purpose = ::std::option::Option::Some(v);
}
pub fn payment_address(&self) -> &str {
match self.payment_address.as_ref() {
Some(v) => v,
None => "",
}
}
pub fn clear_payment_address(&mut self) {
self.payment_address = ::std::option::Option::None;
}
pub fn has_payment_address(&self) -> bool {
self.payment_address.is_some()
}
pub fn set_payment_address(&mut self, v: ::std::string::String) {
self.payment_address = ::std::option::Option::Some(v);
}
pub fn mut_payment_address(&mut self) -> &mut ::std::string::String {
if self.payment_address.is_none() {
self.payment_address = ::std::option::Option::Some(::std::string::String::new());
}
self.payment_address.as_mut().unwrap()
}
pub fn take_payment_address(&mut self) -> ::std::string::String {
self.payment_address.take().unwrap_or_else(|| ::std::string::String::new())
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(8);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"vote_public_key",
|m: &CardanoCVoteRegistrationParametersType| { &m.vote_public_key },
|m: &mut CardanoCVoteRegistrationParametersType| { &mut m.vote_public_key },
));
fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
"staking_path",
|m: &CardanoCVoteRegistrationParametersType| { &m.staking_path },
|m: &mut CardanoCVoteRegistrationParametersType| { &mut m.staking_path },
));
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, CardanoAddressParametersType>(
"payment_address_parameters",
|m: &CardanoCVoteRegistrationParametersType| { &m.payment_address_parameters },
|m: &mut CardanoCVoteRegistrationParametersType| { &mut m.payment_address_parameters },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"nonce",
|m: &CardanoCVoteRegistrationParametersType| { &m.nonce },
|m: &mut CardanoCVoteRegistrationParametersType| { &mut m.nonce },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"format",
|m: &CardanoCVoteRegistrationParametersType| { &m.format },
|m: &mut CardanoCVoteRegistrationParametersType| { &mut m.format },
));
fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
"delegations",
|m: &CardanoCVoteRegistrationParametersType| { &m.delegations },
|m: &mut CardanoCVoteRegistrationParametersType| { &mut m.delegations },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"voting_purpose",
|m: &CardanoCVoteRegistrationParametersType| { &m.voting_purpose },
|m: &mut CardanoCVoteRegistrationParametersType| { &mut m.voting_purpose },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"payment_address",
|m: &CardanoCVoteRegistrationParametersType| { &m.payment_address },
|m: &mut CardanoCVoteRegistrationParametersType| { &mut m.payment_address },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoCVoteRegistrationParametersType>(
"CardanoCVoteRegistrationParametersType",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoCVoteRegistrationParametersType {
const NAME: &'static str = "CardanoCVoteRegistrationParametersType";
fn is_initialized(&self) -> bool {
if self.nonce.is_none() {
return false;
}
for v in &self.payment_address_parameters {
if !v.is_initialized() {
return false;
}
};
for v in &self.delegations {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.vote_public_key = ::std::option::Option::Some(is.read_bytes()?);
},
18 => {
is.read_repeated_packed_uint32_into(&mut self.staking_path)?;
},
16 => {
self.staking_path.push(is.read_uint32()?);
},
26 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.payment_address_parameters)?;
},
32 => {
self.nonce = ::std::option::Option::Some(is.read_uint64()?);
},
40 => {
self.format = ::std::option::Option::Some(is.read_enum_or_unknown()?);
},
50 => {
self.delegations.push(is.read_message()?);
},
56 => {
self.voting_purpose = ::std::option::Option::Some(is.read_uint64()?);
},
66 => {
self.payment_address = ::std::option::Option::Some(is.read_string()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.vote_public_key.as_ref() {
my_size += ::protobuf::rt::bytes_size(1, &v);
}
for value in &self.staking_path {
my_size += ::protobuf::rt::uint32_size(2, *value);
};
if let Some(v) = self.payment_address_parameters.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
}
if let Some(v) = self.nonce {
my_size += ::protobuf::rt::uint64_size(4, v);
}
if let Some(v) = self.format {
my_size += ::protobuf::rt::int32_size(5, v.value());
}
for value in &self.delegations {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
};
if let Some(v) = self.voting_purpose {
my_size += ::protobuf::rt::uint64_size(7, v);
}
if let Some(v) = self.payment_address.as_ref() {
my_size += ::protobuf::rt::string_size(8, &v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.vote_public_key.as_ref() {
os.write_bytes(1, v)?;
}
for v in &self.staking_path {
os.write_uint32(2, *v)?;
};
if let Some(v) = self.payment_address_parameters.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(3, v, os)?;
}
if let Some(v) = self.nonce {
os.write_uint64(4, v)?;
}
if let Some(v) = self.format {
os.write_enum(5, ::protobuf::EnumOrUnknown::value(&v))?;
}
for v in &self.delegations {
::protobuf::rt::write_message_field_with_cached_size(6, v, os)?;
};
if let Some(v) = self.voting_purpose {
os.write_uint64(7, v)?;
}
if let Some(v) = self.payment_address.as_ref() {
os.write_string(8, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoCVoteRegistrationParametersType {
CardanoCVoteRegistrationParametersType::new()
}
fn clear(&mut self) {
self.vote_public_key = ::std::option::Option::None;
self.staking_path.clear();
self.payment_address_parameters.clear();
self.nonce = ::std::option::Option::None;
self.format = ::std::option::Option::None;
self.delegations.clear();
self.voting_purpose = ::std::option::Option::None;
self.payment_address = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoCVoteRegistrationParametersType {
static instance: CardanoCVoteRegistrationParametersType = CardanoCVoteRegistrationParametersType {
vote_public_key: ::std::option::Option::None,
staking_path: ::std::vec::Vec::new(),
payment_address_parameters: ::protobuf::MessageField::none(),
nonce: ::std::option::Option::None,
format: ::std::option::Option::None,
delegations: ::std::vec::Vec::new(),
voting_purpose: ::std::option::Option::None,
payment_address: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoCVoteRegistrationParametersType {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoCVoteRegistrationParametersType").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoCVoteRegistrationParametersType {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoCVoteRegistrationParametersType {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoTxAuxiliaryData {
pub cvote_registration_parameters: ::protobuf::MessageField<CardanoCVoteRegistrationParametersType>,
pub hash: ::std::option::Option<::std::vec::Vec<u8>>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoTxAuxiliaryData {
fn default() -> &'a CardanoTxAuxiliaryData {
<CardanoTxAuxiliaryData as ::protobuf::Message>::default_instance()
}
}
impl CardanoTxAuxiliaryData {
pub fn new() -> CardanoTxAuxiliaryData {
::std::default::Default::default()
}
pub fn hash(&self) -> &[u8] {
match self.hash.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_hash(&mut self) {
self.hash = ::std::option::Option::None;
}
pub fn has_hash(&self) -> bool {
self.hash.is_some()
}
pub fn set_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.hash = ::std::option::Option::Some(v);
}
pub fn mut_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.hash.is_none() {
self.hash = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.hash.as_mut().unwrap()
}
pub fn take_hash(&mut self) -> ::std::vec::Vec<u8> {
self.hash.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(2);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, CardanoCVoteRegistrationParametersType>(
"cvote_registration_parameters",
|m: &CardanoTxAuxiliaryData| { &m.cvote_registration_parameters },
|m: &mut CardanoTxAuxiliaryData| { &mut m.cvote_registration_parameters },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"hash",
|m: &CardanoTxAuxiliaryData| { &m.hash },
|m: &mut CardanoTxAuxiliaryData| { &mut m.hash },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoTxAuxiliaryData>(
"CardanoTxAuxiliaryData",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoTxAuxiliaryData {
const NAME: &'static str = "CardanoTxAuxiliaryData";
fn is_initialized(&self) -> bool {
for v in &self.cvote_registration_parameters {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.cvote_registration_parameters)?;
},
18 => {
self.hash = ::std::option::Option::Some(is.read_bytes()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.cvote_registration_parameters.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
}
if let Some(v) = self.hash.as_ref() {
my_size += ::protobuf::rt::bytes_size(2, &v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.cvote_registration_parameters.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
}
if let Some(v) = self.hash.as_ref() {
os.write_bytes(2, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoTxAuxiliaryData {
CardanoTxAuxiliaryData::new()
}
fn clear(&mut self) {
self.cvote_registration_parameters.clear();
self.hash = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoTxAuxiliaryData {
static instance: CardanoTxAuxiliaryData = CardanoTxAuxiliaryData {
cvote_registration_parameters: ::protobuf::MessageField::none(),
hash: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoTxAuxiliaryData {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoTxAuxiliaryData").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoTxAuxiliaryData {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoTxAuxiliaryData {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoTxMint {
pub asset_groups_count: ::std::option::Option<u32>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoTxMint {
fn default() -> &'a CardanoTxMint {
<CardanoTxMint as ::protobuf::Message>::default_instance()
}
}
impl CardanoTxMint {
pub fn new() -> CardanoTxMint {
::std::default::Default::default()
}
pub fn asset_groups_count(&self) -> u32 {
self.asset_groups_count.unwrap_or(0)
}
pub fn clear_asset_groups_count(&mut self) {
self.asset_groups_count = ::std::option::Option::None;
}
pub fn has_asset_groups_count(&self) -> bool {
self.asset_groups_count.is_some()
}
pub fn set_asset_groups_count(&mut self, v: u32) {
self.asset_groups_count = ::std::option::Option::Some(v);
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(1);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"asset_groups_count",
|m: &CardanoTxMint| { &m.asset_groups_count },
|m: &mut CardanoTxMint| { &mut m.asset_groups_count },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoTxMint>(
"CardanoTxMint",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoTxMint {
const NAME: &'static str = "CardanoTxMint";
fn is_initialized(&self) -> bool {
if self.asset_groups_count.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.asset_groups_count = ::std::option::Option::Some(is.read_uint32()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.asset_groups_count {
my_size += ::protobuf::rt::uint32_size(1, v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.asset_groups_count {
os.write_uint32(1, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoTxMint {
CardanoTxMint::new()
}
fn clear(&mut self) {
self.asset_groups_count = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoTxMint {
static instance: CardanoTxMint = CardanoTxMint {
asset_groups_count: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoTxMint {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoTxMint").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoTxMint {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoTxMint {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoTxCollateralInput {
pub prev_hash: ::std::option::Option<::std::vec::Vec<u8>>,
pub prev_index: ::std::option::Option<u32>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoTxCollateralInput {
fn default() -> &'a CardanoTxCollateralInput {
<CardanoTxCollateralInput as ::protobuf::Message>::default_instance()
}
}
impl CardanoTxCollateralInput {
pub fn new() -> CardanoTxCollateralInput {
::std::default::Default::default()
}
pub fn prev_hash(&self) -> &[u8] {
match self.prev_hash.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_prev_hash(&mut self) {
self.prev_hash = ::std::option::Option::None;
}
pub fn has_prev_hash(&self) -> bool {
self.prev_hash.is_some()
}
pub fn set_prev_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.prev_hash = ::std::option::Option::Some(v);
}
pub fn mut_prev_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.prev_hash.is_none() {
self.prev_hash = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.prev_hash.as_mut().unwrap()
}
pub fn take_prev_hash(&mut self) -> ::std::vec::Vec<u8> {
self.prev_hash.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn prev_index(&self) -> u32 {
self.prev_index.unwrap_or(0)
}
pub fn clear_prev_index(&mut self) {
self.prev_index = ::std::option::Option::None;
}
pub fn has_prev_index(&self) -> bool {
self.prev_index.is_some()
}
pub fn set_prev_index(&mut self, v: u32) {
self.prev_index = ::std::option::Option::Some(v);
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(2);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"prev_hash",
|m: &CardanoTxCollateralInput| { &m.prev_hash },
|m: &mut CardanoTxCollateralInput| { &mut m.prev_hash },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"prev_index",
|m: &CardanoTxCollateralInput| { &m.prev_index },
|m: &mut CardanoTxCollateralInput| { &mut m.prev_index },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoTxCollateralInput>(
"CardanoTxCollateralInput",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoTxCollateralInput {
const NAME: &'static str = "CardanoTxCollateralInput";
fn is_initialized(&self) -> bool {
if self.prev_hash.is_none() {
return false;
}
if self.prev_index.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.prev_hash = ::std::option::Option::Some(is.read_bytes()?);
},
16 => {
self.prev_index = ::std::option::Option::Some(is.read_uint32()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.prev_hash.as_ref() {
my_size += ::protobuf::rt::bytes_size(1, &v);
}
if let Some(v) = self.prev_index {
my_size += ::protobuf::rt::uint32_size(2, v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.prev_hash.as_ref() {
os.write_bytes(1, v)?;
}
if let Some(v) = self.prev_index {
os.write_uint32(2, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoTxCollateralInput {
CardanoTxCollateralInput::new()
}
fn clear(&mut self) {
self.prev_hash = ::std::option::Option::None;
self.prev_index = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoTxCollateralInput {
static instance: CardanoTxCollateralInput = CardanoTxCollateralInput {
prev_hash: ::std::option::Option::None,
prev_index: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoTxCollateralInput {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoTxCollateralInput").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoTxCollateralInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoTxCollateralInput {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoTxRequiredSigner {
pub key_hash: ::std::option::Option<::std::vec::Vec<u8>>,
pub key_path: ::std::vec::Vec<u32>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoTxRequiredSigner {
fn default() -> &'a CardanoTxRequiredSigner {
<CardanoTxRequiredSigner as ::protobuf::Message>::default_instance()
}
}
impl CardanoTxRequiredSigner {
pub fn new() -> CardanoTxRequiredSigner {
::std::default::Default::default()
}
pub fn key_hash(&self) -> &[u8] {
match self.key_hash.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_key_hash(&mut self) {
self.key_hash = ::std::option::Option::None;
}
pub fn has_key_hash(&self) -> bool {
self.key_hash.is_some()
}
pub fn set_key_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.key_hash = ::std::option::Option::Some(v);
}
pub fn mut_key_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.key_hash.is_none() {
self.key_hash = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.key_hash.as_mut().unwrap()
}
pub fn take_key_hash(&mut self) -> ::std::vec::Vec<u8> {
self.key_hash.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(2);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"key_hash",
|m: &CardanoTxRequiredSigner| { &m.key_hash },
|m: &mut CardanoTxRequiredSigner| { &mut m.key_hash },
));
fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
"key_path",
|m: &CardanoTxRequiredSigner| { &m.key_path },
|m: &mut CardanoTxRequiredSigner| { &mut m.key_path },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoTxRequiredSigner>(
"CardanoTxRequiredSigner",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoTxRequiredSigner {
const NAME: &'static str = "CardanoTxRequiredSigner";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.key_hash = ::std::option::Option::Some(is.read_bytes()?);
},
18 => {
is.read_repeated_packed_uint32_into(&mut self.key_path)?;
},
16 => {
self.key_path.push(is.read_uint32()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.key_hash.as_ref() {
my_size += ::protobuf::rt::bytes_size(1, &v);
}
for value in &self.key_path {
my_size += ::protobuf::rt::uint32_size(2, *value);
};
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.key_hash.as_ref() {
os.write_bytes(1, v)?;
}
for v in &self.key_path {
os.write_uint32(2, *v)?;
};
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoTxRequiredSigner {
CardanoTxRequiredSigner::new()
}
fn clear(&mut self) {
self.key_hash = ::std::option::Option::None;
self.key_path.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoTxRequiredSigner {
static instance: CardanoTxRequiredSigner = CardanoTxRequiredSigner {
key_hash: ::std::option::Option::None,
key_path: ::std::vec::Vec::new(),
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoTxRequiredSigner {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoTxRequiredSigner").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoTxRequiredSigner {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoTxRequiredSigner {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoTxReferenceInput {
pub prev_hash: ::std::option::Option<::std::vec::Vec<u8>>,
pub prev_index: ::std::option::Option<u32>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoTxReferenceInput {
fn default() -> &'a CardanoTxReferenceInput {
<CardanoTxReferenceInput as ::protobuf::Message>::default_instance()
}
}
impl CardanoTxReferenceInput {
pub fn new() -> CardanoTxReferenceInput {
::std::default::Default::default()
}
pub fn prev_hash(&self) -> &[u8] {
match self.prev_hash.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_prev_hash(&mut self) {
self.prev_hash = ::std::option::Option::None;
}
pub fn has_prev_hash(&self) -> bool {
self.prev_hash.is_some()
}
pub fn set_prev_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.prev_hash = ::std::option::Option::Some(v);
}
pub fn mut_prev_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.prev_hash.is_none() {
self.prev_hash = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.prev_hash.as_mut().unwrap()
}
pub fn take_prev_hash(&mut self) -> ::std::vec::Vec<u8> {
self.prev_hash.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn prev_index(&self) -> u32 {
self.prev_index.unwrap_or(0)
}
pub fn clear_prev_index(&mut self) {
self.prev_index = ::std::option::Option::None;
}
pub fn has_prev_index(&self) -> bool {
self.prev_index.is_some()
}
pub fn set_prev_index(&mut self, v: u32) {
self.prev_index = ::std::option::Option::Some(v);
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(2);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"prev_hash",
|m: &CardanoTxReferenceInput| { &m.prev_hash },
|m: &mut CardanoTxReferenceInput| { &mut m.prev_hash },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"prev_index",
|m: &CardanoTxReferenceInput| { &m.prev_index },
|m: &mut CardanoTxReferenceInput| { &mut m.prev_index },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoTxReferenceInput>(
"CardanoTxReferenceInput",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoTxReferenceInput {
const NAME: &'static str = "CardanoTxReferenceInput";
fn is_initialized(&self) -> bool {
if self.prev_hash.is_none() {
return false;
}
if self.prev_index.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.prev_hash = ::std::option::Option::Some(is.read_bytes()?);
},
16 => {
self.prev_index = ::std::option::Option::Some(is.read_uint32()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.prev_hash.as_ref() {
my_size += ::protobuf::rt::bytes_size(1, &v);
}
if let Some(v) = self.prev_index {
my_size += ::protobuf::rt::uint32_size(2, v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.prev_hash.as_ref() {
os.write_bytes(1, v)?;
}
if let Some(v) = self.prev_index {
os.write_uint32(2, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoTxReferenceInput {
CardanoTxReferenceInput::new()
}
fn clear(&mut self) {
self.prev_hash = ::std::option::Option::None;
self.prev_index = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoTxReferenceInput {
static instance: CardanoTxReferenceInput = CardanoTxReferenceInput {
prev_hash: ::std::option::Option::None,
prev_index: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoTxReferenceInput {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoTxReferenceInput").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoTxReferenceInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoTxReferenceInput {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoTxItemAck {
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoTxItemAck {
fn default() -> &'a CardanoTxItemAck {
<CardanoTxItemAck as ::protobuf::Message>::default_instance()
}
}
impl CardanoTxItemAck {
pub fn new() -> CardanoTxItemAck {
::std::default::Default::default()
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(0);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoTxItemAck>(
"CardanoTxItemAck",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoTxItemAck {
const NAME: &'static str = "CardanoTxItemAck";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoTxItemAck {
CardanoTxItemAck::new()
}
fn clear(&mut self) {
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoTxItemAck {
static instance: CardanoTxItemAck = CardanoTxItemAck {
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoTxItemAck {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoTxItemAck").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoTxItemAck {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoTxItemAck {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoTxAuxiliaryDataSupplement {
pub type_: ::std::option::Option<::protobuf::EnumOrUnknown<CardanoTxAuxiliaryDataSupplementType>>,
pub auxiliary_data_hash: ::std::option::Option<::std::vec::Vec<u8>>,
pub cvote_registration_signature: ::std::option::Option<::std::vec::Vec<u8>>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoTxAuxiliaryDataSupplement {
fn default() -> &'a CardanoTxAuxiliaryDataSupplement {
<CardanoTxAuxiliaryDataSupplement as ::protobuf::Message>::default_instance()
}
}
impl CardanoTxAuxiliaryDataSupplement {
pub fn new() -> CardanoTxAuxiliaryDataSupplement {
::std::default::Default::default()
}
pub fn type_(&self) -> CardanoTxAuxiliaryDataSupplementType {
match self.type_ {
Some(e) => e.enum_value_or(CardanoTxAuxiliaryDataSupplementType::NONE),
None => CardanoTxAuxiliaryDataSupplementType::NONE,
}
}
pub fn clear_type_(&mut self) {
self.type_ = ::std::option::Option::None;
}
pub fn has_type(&self) -> bool {
self.type_.is_some()
}
pub fn set_type(&mut self, v: CardanoTxAuxiliaryDataSupplementType) {
self.type_ = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
}
pub fn auxiliary_data_hash(&self) -> &[u8] {
match self.auxiliary_data_hash.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_auxiliary_data_hash(&mut self) {
self.auxiliary_data_hash = ::std::option::Option::None;
}
pub fn has_auxiliary_data_hash(&self) -> bool {
self.auxiliary_data_hash.is_some()
}
pub fn set_auxiliary_data_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.auxiliary_data_hash = ::std::option::Option::Some(v);
}
pub fn mut_auxiliary_data_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.auxiliary_data_hash.is_none() {
self.auxiliary_data_hash = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.auxiliary_data_hash.as_mut().unwrap()
}
pub fn take_auxiliary_data_hash(&mut self) -> ::std::vec::Vec<u8> {
self.auxiliary_data_hash.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn cvote_registration_signature(&self) -> &[u8] {
match self.cvote_registration_signature.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_cvote_registration_signature(&mut self) {
self.cvote_registration_signature = ::std::option::Option::None;
}
pub fn has_cvote_registration_signature(&self) -> bool {
self.cvote_registration_signature.is_some()
}
pub fn set_cvote_registration_signature(&mut self, v: ::std::vec::Vec<u8>) {
self.cvote_registration_signature = ::std::option::Option::Some(v);
}
pub fn mut_cvote_registration_signature(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.cvote_registration_signature.is_none() {
self.cvote_registration_signature = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.cvote_registration_signature.as_mut().unwrap()
}
pub fn take_cvote_registration_signature(&mut self) -> ::std::vec::Vec<u8> {
self.cvote_registration_signature.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(3);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"type",
|m: &CardanoTxAuxiliaryDataSupplement| { &m.type_ },
|m: &mut CardanoTxAuxiliaryDataSupplement| { &mut m.type_ },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"auxiliary_data_hash",
|m: &CardanoTxAuxiliaryDataSupplement| { &m.auxiliary_data_hash },
|m: &mut CardanoTxAuxiliaryDataSupplement| { &mut m.auxiliary_data_hash },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"cvote_registration_signature",
|m: &CardanoTxAuxiliaryDataSupplement| { &m.cvote_registration_signature },
|m: &mut CardanoTxAuxiliaryDataSupplement| { &mut m.cvote_registration_signature },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoTxAuxiliaryDataSupplement>(
"CardanoTxAuxiliaryDataSupplement",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoTxAuxiliaryDataSupplement {
const NAME: &'static str = "CardanoTxAuxiliaryDataSupplement";
fn is_initialized(&self) -> bool {
if self.type_.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.type_ = ::std::option::Option::Some(is.read_enum_or_unknown()?);
},
18 => {
self.auxiliary_data_hash = ::std::option::Option::Some(is.read_bytes()?);
},
26 => {
self.cvote_registration_signature = ::std::option::Option::Some(is.read_bytes()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.type_ {
my_size += ::protobuf::rt::int32_size(1, v.value());
}
if let Some(v) = self.auxiliary_data_hash.as_ref() {
my_size += ::protobuf::rt::bytes_size(2, &v);
}
if let Some(v) = self.cvote_registration_signature.as_ref() {
my_size += ::protobuf::rt::bytes_size(3, &v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.type_ {
os.write_enum(1, ::protobuf::EnumOrUnknown::value(&v))?;
}
if let Some(v) = self.auxiliary_data_hash.as_ref() {
os.write_bytes(2, v)?;
}
if let Some(v) = self.cvote_registration_signature.as_ref() {
os.write_bytes(3, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoTxAuxiliaryDataSupplement {
CardanoTxAuxiliaryDataSupplement::new()
}
fn clear(&mut self) {
self.type_ = ::std::option::Option::None;
self.auxiliary_data_hash = ::std::option::Option::None;
self.cvote_registration_signature = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoTxAuxiliaryDataSupplement {
static instance: CardanoTxAuxiliaryDataSupplement = CardanoTxAuxiliaryDataSupplement {
type_: ::std::option::Option::None,
auxiliary_data_hash: ::std::option::Option::None,
cvote_registration_signature: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoTxAuxiliaryDataSupplement {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoTxAuxiliaryDataSupplement").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoTxAuxiliaryDataSupplement {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoTxAuxiliaryDataSupplement {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoTxWitnessRequest {
pub path: ::std::vec::Vec<u32>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoTxWitnessRequest {
fn default() -> &'a CardanoTxWitnessRequest {
<CardanoTxWitnessRequest as ::protobuf::Message>::default_instance()
}
}
impl CardanoTxWitnessRequest {
pub fn new() -> CardanoTxWitnessRequest {
::std::default::Default::default()
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(1);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
"path",
|m: &CardanoTxWitnessRequest| { &m.path },
|m: &mut CardanoTxWitnessRequest| { &mut m.path },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoTxWitnessRequest>(
"CardanoTxWitnessRequest",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoTxWitnessRequest {
const NAME: &'static str = "CardanoTxWitnessRequest";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
is.read_repeated_packed_uint32_into(&mut self.path)?;
},
8 => {
self.path.push(is.read_uint32()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
for value in &self.path {
my_size += ::protobuf::rt::uint32_size(1, *value);
};
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
for v in &self.path {
os.write_uint32(1, *v)?;
};
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoTxWitnessRequest {
CardanoTxWitnessRequest::new()
}
fn clear(&mut self) {
self.path.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoTxWitnessRequest {
static instance: CardanoTxWitnessRequest = CardanoTxWitnessRequest {
path: ::std::vec::Vec::new(),
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoTxWitnessRequest {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoTxWitnessRequest").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoTxWitnessRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoTxWitnessRequest {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoTxWitnessResponse {
pub type_: ::std::option::Option<::protobuf::EnumOrUnknown<CardanoTxWitnessType>>,
pub pub_key: ::std::option::Option<::std::vec::Vec<u8>>,
pub signature: ::std::option::Option<::std::vec::Vec<u8>>,
pub chain_code: ::std::option::Option<::std::vec::Vec<u8>>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoTxWitnessResponse {
fn default() -> &'a CardanoTxWitnessResponse {
<CardanoTxWitnessResponse as ::protobuf::Message>::default_instance()
}
}
impl CardanoTxWitnessResponse {
pub fn new() -> CardanoTxWitnessResponse {
::std::default::Default::default()
}
pub fn type_(&self) -> CardanoTxWitnessType {
match self.type_ {
Some(e) => e.enum_value_or(CardanoTxWitnessType::BYRON_WITNESS),
None => CardanoTxWitnessType::BYRON_WITNESS,
}
}
pub fn clear_type_(&mut self) {
self.type_ = ::std::option::Option::None;
}
pub fn has_type(&self) -> bool {
self.type_.is_some()
}
pub fn set_type(&mut self, v: CardanoTxWitnessType) {
self.type_ = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
}
pub fn pub_key(&self) -> &[u8] {
match self.pub_key.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_pub_key(&mut self) {
self.pub_key = ::std::option::Option::None;
}
pub fn has_pub_key(&self) -> bool {
self.pub_key.is_some()
}
pub fn set_pub_key(&mut self, v: ::std::vec::Vec<u8>) {
self.pub_key = ::std::option::Option::Some(v);
}
pub fn mut_pub_key(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.pub_key.is_none() {
self.pub_key = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.pub_key.as_mut().unwrap()
}
pub fn take_pub_key(&mut self) -> ::std::vec::Vec<u8> {
self.pub_key.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn signature(&self) -> &[u8] {
match self.signature.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_signature(&mut self) {
self.signature = ::std::option::Option::None;
}
pub fn has_signature(&self) -> bool {
self.signature.is_some()
}
pub fn set_signature(&mut self, v: ::std::vec::Vec<u8>) {
self.signature = ::std::option::Option::Some(v);
}
pub fn mut_signature(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.signature.is_none() {
self.signature = ::std::option::Option::Some(::std::vec::Vec::new());
}
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())
}
pub fn chain_code(&self) -> &[u8] {
match self.chain_code.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_chain_code(&mut self) {
self.chain_code = ::std::option::Option::None;
}
pub fn has_chain_code(&self) -> bool {
self.chain_code.is_some()
}
pub fn set_chain_code(&mut self, v: ::std::vec::Vec<u8>) {
self.chain_code = ::std::option::Option::Some(v);
}
pub fn mut_chain_code(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.chain_code.is_none() {
self.chain_code = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.chain_code.as_mut().unwrap()
}
pub fn take_chain_code(&mut self) -> ::std::vec::Vec<u8> {
self.chain_code.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(4);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"type",
|m: &CardanoTxWitnessResponse| { &m.type_ },
|m: &mut CardanoTxWitnessResponse| { &mut m.type_ },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"pub_key",
|m: &CardanoTxWitnessResponse| { &m.pub_key },
|m: &mut CardanoTxWitnessResponse| { &mut m.pub_key },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"signature",
|m: &CardanoTxWitnessResponse| { &m.signature },
|m: &mut CardanoTxWitnessResponse| { &mut m.signature },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"chain_code",
|m: &CardanoTxWitnessResponse| { &m.chain_code },
|m: &mut CardanoTxWitnessResponse| { &mut m.chain_code },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoTxWitnessResponse>(
"CardanoTxWitnessResponse",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoTxWitnessResponse {
const NAME: &'static str = "CardanoTxWitnessResponse";
fn is_initialized(&self) -> bool {
if self.type_.is_none() {
return false;
}
if self.pub_key.is_none() {
return false;
}
if self.signature.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.type_ = ::std::option::Option::Some(is.read_enum_or_unknown()?);
},
18 => {
self.pub_key = ::std::option::Option::Some(is.read_bytes()?);
},
26 => {
self.signature = ::std::option::Option::Some(is.read_bytes()?);
},
34 => {
self.chain_code = ::std::option::Option::Some(is.read_bytes()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.type_ {
my_size += ::protobuf::rt::int32_size(1, v.value());
}
if let Some(v) = self.pub_key.as_ref() {
my_size += ::protobuf::rt::bytes_size(2, &v);
}
if let Some(v) = self.signature.as_ref() {
my_size += ::protobuf::rt::bytes_size(3, &v);
}
if let Some(v) = self.chain_code.as_ref() {
my_size += ::protobuf::rt::bytes_size(4, &v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.type_ {
os.write_enum(1, ::protobuf::EnumOrUnknown::value(&v))?;
}
if let Some(v) = self.pub_key.as_ref() {
os.write_bytes(2, v)?;
}
if let Some(v) = self.signature.as_ref() {
os.write_bytes(3, v)?;
}
if let Some(v) = self.chain_code.as_ref() {
os.write_bytes(4, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoTxWitnessResponse {
CardanoTxWitnessResponse::new()
}
fn clear(&mut self) {
self.type_ = ::std::option::Option::None;
self.pub_key = ::std::option::Option::None;
self.signature = ::std::option::Option::None;
self.chain_code = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoTxWitnessResponse {
static instance: CardanoTxWitnessResponse = CardanoTxWitnessResponse {
type_: ::std::option::Option::None,
pub_key: ::std::option::Option::None,
signature: ::std::option::Option::None,
chain_code: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoTxWitnessResponse {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoTxWitnessResponse").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoTxWitnessResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoTxWitnessResponse {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoTxHostAck {
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoTxHostAck {
fn default() -> &'a CardanoTxHostAck {
<CardanoTxHostAck as ::protobuf::Message>::default_instance()
}
}
impl CardanoTxHostAck {
pub fn new() -> CardanoTxHostAck {
::std::default::Default::default()
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(0);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoTxHostAck>(
"CardanoTxHostAck",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoTxHostAck {
const NAME: &'static str = "CardanoTxHostAck";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoTxHostAck {
CardanoTxHostAck::new()
}
fn clear(&mut self) {
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoTxHostAck {
static instance: CardanoTxHostAck = CardanoTxHostAck {
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoTxHostAck {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoTxHostAck").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoTxHostAck {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoTxHostAck {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoTxBodyHash {
pub tx_hash: ::std::option::Option<::std::vec::Vec<u8>>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoTxBodyHash {
fn default() -> &'a CardanoTxBodyHash {
<CardanoTxBodyHash as ::protobuf::Message>::default_instance()
}
}
impl CardanoTxBodyHash {
pub fn new() -> CardanoTxBodyHash {
::std::default::Default::default()
}
pub fn tx_hash(&self) -> &[u8] {
match self.tx_hash.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_tx_hash(&mut self) {
self.tx_hash = ::std::option::Option::None;
}
pub fn has_tx_hash(&self) -> bool {
self.tx_hash.is_some()
}
pub fn set_tx_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.tx_hash = ::std::option::Option::Some(v);
}
pub fn mut_tx_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.tx_hash.is_none() {
self.tx_hash = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.tx_hash.as_mut().unwrap()
}
pub fn take_tx_hash(&mut self) -> ::std::vec::Vec<u8> {
self.tx_hash.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(1);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"tx_hash",
|m: &CardanoTxBodyHash| { &m.tx_hash },
|m: &mut CardanoTxBodyHash| { &mut m.tx_hash },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoTxBodyHash>(
"CardanoTxBodyHash",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoTxBodyHash {
const NAME: &'static str = "CardanoTxBodyHash";
fn is_initialized(&self) -> bool {
if self.tx_hash.is_none() {
return false;
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.tx_hash = ::std::option::Option::Some(is.read_bytes()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.tx_hash.as_ref() {
my_size += ::protobuf::rt::bytes_size(1, &v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.tx_hash.as_ref() {
os.write_bytes(1, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoTxBodyHash {
CardanoTxBodyHash::new()
}
fn clear(&mut self) {
self.tx_hash = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoTxBodyHash {
static instance: CardanoTxBodyHash = CardanoTxBodyHash {
tx_hash: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoTxBodyHash {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoTxBodyHash").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoTxBodyHash {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoTxBodyHash {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CardanoSignTxFinished {
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CardanoSignTxFinished {
fn default() -> &'a CardanoSignTxFinished {
<CardanoSignTxFinished as ::protobuf::Message>::default_instance()
}
}
impl CardanoSignTxFinished {
pub fn new() -> CardanoSignTxFinished {
::std::default::Default::default()
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(0);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CardanoSignTxFinished>(
"CardanoSignTxFinished",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CardanoSignTxFinished {
const NAME: &'static str = "CardanoSignTxFinished";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> CardanoSignTxFinished {
CardanoSignTxFinished::new()
}
fn clear(&mut self) {
self.special_fields.clear();
}
fn default_instance() -> &'static CardanoSignTxFinished {
static instance: CardanoSignTxFinished = CardanoSignTxFinished {
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for CardanoSignTxFinished {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("CardanoSignTxFinished").unwrap()).clone()
}
}
impl ::std::fmt::Display for CardanoSignTxFinished {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CardanoSignTxFinished {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
pub enum CardanoDerivationType {
LEDGER = 0,
ICARUS = 1,
ICARUS_TREZOR = 2,
}
impl ::protobuf::Enum for CardanoDerivationType {
const NAME: &'static str = "CardanoDerivationType";
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<CardanoDerivationType> {
match value {
0 => ::std::option::Option::Some(CardanoDerivationType::LEDGER),
1 => ::std::option::Option::Some(CardanoDerivationType::ICARUS),
2 => ::std::option::Option::Some(CardanoDerivationType::ICARUS_TREZOR),
_ => ::std::option::Option::None
}
}
fn from_str(str: &str) -> ::std::option::Option<CardanoDerivationType> {
match str {
"LEDGER" => ::std::option::Option::Some(CardanoDerivationType::LEDGER),
"ICARUS" => ::std::option::Option::Some(CardanoDerivationType::ICARUS),
"ICARUS_TREZOR" => ::std::option::Option::Some(CardanoDerivationType::ICARUS_TREZOR),
_ => ::std::option::Option::None
}
}
const VALUES: &'static [CardanoDerivationType] = &[
CardanoDerivationType::LEDGER,
CardanoDerivationType::ICARUS,
CardanoDerivationType::ICARUS_TREZOR,
];
}
impl ::protobuf::EnumFull for CardanoDerivationType {
fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().enum_by_package_relative_name("CardanoDerivationType").unwrap()).clone()
}
fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
let index = *self as usize;
Self::enum_descriptor().value_by_index(index)
}
}
impl ::std::default::Default for CardanoDerivationType {
fn default() -> Self {
CardanoDerivationType::LEDGER
}
}
impl CardanoDerivationType {
fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
::protobuf::reflect::GeneratedEnumDescriptorData::new::<CardanoDerivationType>("CardanoDerivationType")
}
}
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
pub enum CardanoAddressType {
BASE = 0,
BASE_SCRIPT_KEY = 1,
BASE_KEY_SCRIPT = 2,
BASE_SCRIPT_SCRIPT = 3,
POINTER = 4,
POINTER_SCRIPT = 5,
ENTERPRISE = 6,
ENTERPRISE_SCRIPT = 7,
BYRON = 8,
REWARD = 14,
REWARD_SCRIPT = 15,
}
impl ::protobuf::Enum for CardanoAddressType {
const NAME: &'static str = "CardanoAddressType";
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<CardanoAddressType> {
match value {
0 => ::std::option::Option::Some(CardanoAddressType::BASE),
1 => ::std::option::Option::Some(CardanoAddressType::BASE_SCRIPT_KEY),
2 => ::std::option::Option::Some(CardanoAddressType::BASE_KEY_SCRIPT),
3 => ::std::option::Option::Some(CardanoAddressType::BASE_SCRIPT_SCRIPT),
4 => ::std::option::Option::Some(CardanoAddressType::POINTER),
5 => ::std::option::Option::Some(CardanoAddressType::POINTER_SCRIPT),
6 => ::std::option::Option::Some(CardanoAddressType::ENTERPRISE),
7 => ::std::option::Option::Some(CardanoAddressType::ENTERPRISE_SCRIPT),
8 => ::std::option::Option::Some(CardanoAddressType::BYRON),
14 => ::std::option::Option::Some(CardanoAddressType::REWARD),
15 => ::std::option::Option::Some(CardanoAddressType::REWARD_SCRIPT),
_ => ::std::option::Option::None
}
}
fn from_str(str: &str) -> ::std::option::Option<CardanoAddressType> {
match str {
"BASE" => ::std::option::Option::Some(CardanoAddressType::BASE),
"BASE_SCRIPT_KEY" => ::std::option::Option::Some(CardanoAddressType::BASE_SCRIPT_KEY),
"BASE_KEY_SCRIPT" => ::std::option::Option::Some(CardanoAddressType::BASE_KEY_SCRIPT),
"BASE_SCRIPT_SCRIPT" => ::std::option::Option::Some(CardanoAddressType::BASE_SCRIPT_SCRIPT),
"POINTER" => ::std::option::Option::Some(CardanoAddressType::POINTER),
"POINTER_SCRIPT" => ::std::option::Option::Some(CardanoAddressType::POINTER_SCRIPT),
"ENTERPRISE" => ::std::option::Option::Some(CardanoAddressType::ENTERPRISE),
"ENTERPRISE_SCRIPT" => ::std::option::Option::Some(CardanoAddressType::ENTERPRISE_SCRIPT),
"BYRON" => ::std::option::Option::Some(CardanoAddressType::BYRON),
"REWARD" => ::std::option::Option::Some(CardanoAddressType::REWARD),
"REWARD_SCRIPT" => ::std::option::Option::Some(CardanoAddressType::REWARD_SCRIPT),
_ => ::std::option::Option::None
}
}
const VALUES: &'static [CardanoAddressType] = &[
CardanoAddressType::BASE,
CardanoAddressType::BASE_SCRIPT_KEY,
CardanoAddressType::BASE_KEY_SCRIPT,
CardanoAddressType::BASE_SCRIPT_SCRIPT,
CardanoAddressType::POINTER,
CardanoAddressType::POINTER_SCRIPT,
CardanoAddressType::ENTERPRISE,
CardanoAddressType::ENTERPRISE_SCRIPT,
CardanoAddressType::BYRON,
CardanoAddressType::REWARD,
CardanoAddressType::REWARD_SCRIPT,
];
}
impl ::protobuf::EnumFull for CardanoAddressType {
fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().enum_by_package_relative_name("CardanoAddressType").unwrap()).clone()
}
fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
let index = match self {
CardanoAddressType::BASE => 0,
CardanoAddressType::BASE_SCRIPT_KEY => 1,
CardanoAddressType::BASE_KEY_SCRIPT => 2,
CardanoAddressType::BASE_SCRIPT_SCRIPT => 3,
CardanoAddressType::POINTER => 4,
CardanoAddressType::POINTER_SCRIPT => 5,
CardanoAddressType::ENTERPRISE => 6,
CardanoAddressType::ENTERPRISE_SCRIPT => 7,
CardanoAddressType::BYRON => 8,
CardanoAddressType::REWARD => 9,
CardanoAddressType::REWARD_SCRIPT => 10,
};
Self::enum_descriptor().value_by_index(index)
}
}
impl ::std::default::Default for CardanoAddressType {
fn default() -> Self {
CardanoAddressType::BASE
}
}
impl CardanoAddressType {
fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
::protobuf::reflect::GeneratedEnumDescriptorData::new::<CardanoAddressType>("CardanoAddressType")
}
}
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
pub enum CardanoNativeScriptType {
PUB_KEY = 0,
ALL = 1,
ANY = 2,
N_OF_K = 3,
INVALID_BEFORE = 4,
INVALID_HEREAFTER = 5,
}
impl ::protobuf::Enum for CardanoNativeScriptType {
const NAME: &'static str = "CardanoNativeScriptType";
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<CardanoNativeScriptType> {
match value {
0 => ::std::option::Option::Some(CardanoNativeScriptType::PUB_KEY),
1 => ::std::option::Option::Some(CardanoNativeScriptType::ALL),
2 => ::std::option::Option::Some(CardanoNativeScriptType::ANY),
3 => ::std::option::Option::Some(CardanoNativeScriptType::N_OF_K),
4 => ::std::option::Option::Some(CardanoNativeScriptType::INVALID_BEFORE),
5 => ::std::option::Option::Some(CardanoNativeScriptType::INVALID_HEREAFTER),
_ => ::std::option::Option::None
}
}
fn from_str(str: &str) -> ::std::option::Option<CardanoNativeScriptType> {
match str {
"PUB_KEY" => ::std::option::Option::Some(CardanoNativeScriptType::PUB_KEY),
"ALL" => ::std::option::Option::Some(CardanoNativeScriptType::ALL),
"ANY" => ::std::option::Option::Some(CardanoNativeScriptType::ANY),
"N_OF_K" => ::std::option::Option::Some(CardanoNativeScriptType::N_OF_K),
"INVALID_BEFORE" => ::std::option::Option::Some(CardanoNativeScriptType::INVALID_BEFORE),
"INVALID_HEREAFTER" => ::std::option::Option::Some(CardanoNativeScriptType::INVALID_HEREAFTER),
_ => ::std::option::Option::None
}
}
const VALUES: &'static [CardanoNativeScriptType] = &[
CardanoNativeScriptType::PUB_KEY,
CardanoNativeScriptType::ALL,
CardanoNativeScriptType::ANY,
CardanoNativeScriptType::N_OF_K,
CardanoNativeScriptType::INVALID_BEFORE,
CardanoNativeScriptType::INVALID_HEREAFTER,
];
}
impl ::protobuf::EnumFull for CardanoNativeScriptType {
fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().enum_by_package_relative_name("CardanoNativeScriptType").unwrap()).clone()
}
fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
let index = *self as usize;
Self::enum_descriptor().value_by_index(index)
}
}
impl ::std::default::Default for CardanoNativeScriptType {
fn default() -> Self {
CardanoNativeScriptType::PUB_KEY
}
}
impl CardanoNativeScriptType {
fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
::protobuf::reflect::GeneratedEnumDescriptorData::new::<CardanoNativeScriptType>("CardanoNativeScriptType")
}
}
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
pub enum CardanoNativeScriptHashDisplayFormat {
HIDE = 0,
BECH32 = 1,
POLICY_ID = 2,
}
impl ::protobuf::Enum for CardanoNativeScriptHashDisplayFormat {
const NAME: &'static str = "CardanoNativeScriptHashDisplayFormat";
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<CardanoNativeScriptHashDisplayFormat> {
match value {
0 => ::std::option::Option::Some(CardanoNativeScriptHashDisplayFormat::HIDE),
1 => ::std::option::Option::Some(CardanoNativeScriptHashDisplayFormat::BECH32),
2 => ::std::option::Option::Some(CardanoNativeScriptHashDisplayFormat::POLICY_ID),
_ => ::std::option::Option::None
}
}
fn from_str(str: &str) -> ::std::option::Option<CardanoNativeScriptHashDisplayFormat> {
match str {
"HIDE" => ::std::option::Option::Some(CardanoNativeScriptHashDisplayFormat::HIDE),
"BECH32" => ::std::option::Option::Some(CardanoNativeScriptHashDisplayFormat::BECH32),
"POLICY_ID" => ::std::option::Option::Some(CardanoNativeScriptHashDisplayFormat::POLICY_ID),
_ => ::std::option::Option::None
}
}
const VALUES: &'static [CardanoNativeScriptHashDisplayFormat] = &[
CardanoNativeScriptHashDisplayFormat::HIDE,
CardanoNativeScriptHashDisplayFormat::BECH32,
CardanoNativeScriptHashDisplayFormat::POLICY_ID,
];
}
impl ::protobuf::EnumFull for CardanoNativeScriptHashDisplayFormat {
fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().enum_by_package_relative_name("CardanoNativeScriptHashDisplayFormat").unwrap()).clone()
}
fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
let index = *self as usize;
Self::enum_descriptor().value_by_index(index)
}
}
impl ::std::default::Default for CardanoNativeScriptHashDisplayFormat {
fn default() -> Self {
CardanoNativeScriptHashDisplayFormat::HIDE
}
}
impl CardanoNativeScriptHashDisplayFormat {
fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
::protobuf::reflect::GeneratedEnumDescriptorData::new::<CardanoNativeScriptHashDisplayFormat>("CardanoNativeScriptHashDisplayFormat")
}
}
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
pub enum CardanoTxOutputSerializationFormat {
ARRAY_LEGACY = 0,
MAP_BABBAGE = 1,
}
impl ::protobuf::Enum for CardanoTxOutputSerializationFormat {
const NAME: &'static str = "CardanoTxOutputSerializationFormat";
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<CardanoTxOutputSerializationFormat> {
match value {
0 => ::std::option::Option::Some(CardanoTxOutputSerializationFormat::ARRAY_LEGACY),
1 => ::std::option::Option::Some(CardanoTxOutputSerializationFormat::MAP_BABBAGE),
_ => ::std::option::Option::None
}
}
fn from_str(str: &str) -> ::std::option::Option<CardanoTxOutputSerializationFormat> {
match str {
"ARRAY_LEGACY" => ::std::option::Option::Some(CardanoTxOutputSerializationFormat::ARRAY_LEGACY),
"MAP_BABBAGE" => ::std::option::Option::Some(CardanoTxOutputSerializationFormat::MAP_BABBAGE),
_ => ::std::option::Option::None
}
}
const VALUES: &'static [CardanoTxOutputSerializationFormat] = &[
CardanoTxOutputSerializationFormat::ARRAY_LEGACY,
CardanoTxOutputSerializationFormat::MAP_BABBAGE,
];
}
impl ::protobuf::EnumFull for CardanoTxOutputSerializationFormat {
fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().enum_by_package_relative_name("CardanoTxOutputSerializationFormat").unwrap()).clone()
}
fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
let index = *self as usize;
Self::enum_descriptor().value_by_index(index)
}
}
impl ::std::default::Default for CardanoTxOutputSerializationFormat {
fn default() -> Self {
CardanoTxOutputSerializationFormat::ARRAY_LEGACY
}
}
impl CardanoTxOutputSerializationFormat {
fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
::protobuf::reflect::GeneratedEnumDescriptorData::new::<CardanoTxOutputSerializationFormat>("CardanoTxOutputSerializationFormat")
}
}
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
pub enum CardanoCertificateType {
STAKE_REGISTRATION = 0,
STAKE_DEREGISTRATION = 1,
STAKE_DELEGATION = 2,
STAKE_POOL_REGISTRATION = 3,
STAKE_REGISTRATION_CONWAY = 7,
STAKE_DEREGISTRATION_CONWAY = 8,
VOTE_DELEGATION = 9,
}
impl ::protobuf::Enum for CardanoCertificateType {
const NAME: &'static str = "CardanoCertificateType";
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<CardanoCertificateType> {
match value {
0 => ::std::option::Option::Some(CardanoCertificateType::STAKE_REGISTRATION),
1 => ::std::option::Option::Some(CardanoCertificateType::STAKE_DEREGISTRATION),
2 => ::std::option::Option::Some(CardanoCertificateType::STAKE_DELEGATION),
3 => ::std::option::Option::Some(CardanoCertificateType::STAKE_POOL_REGISTRATION),
7 => ::std::option::Option::Some(CardanoCertificateType::STAKE_REGISTRATION_CONWAY),
8 => ::std::option::Option::Some(CardanoCertificateType::STAKE_DEREGISTRATION_CONWAY),
9 => ::std::option::Option::Some(CardanoCertificateType::VOTE_DELEGATION),
_ => ::std::option::Option::None
}
}
fn from_str(str: &str) -> ::std::option::Option<CardanoCertificateType> {
match str {
"STAKE_REGISTRATION" => ::std::option::Option::Some(CardanoCertificateType::STAKE_REGISTRATION),
"STAKE_DEREGISTRATION" => ::std::option::Option::Some(CardanoCertificateType::STAKE_DEREGISTRATION),
"STAKE_DELEGATION" => ::std::option::Option::Some(CardanoCertificateType::STAKE_DELEGATION),
"STAKE_POOL_REGISTRATION" => ::std::option::Option::Some(CardanoCertificateType::STAKE_POOL_REGISTRATION),
"STAKE_REGISTRATION_CONWAY" => ::std::option::Option::Some(CardanoCertificateType::STAKE_REGISTRATION_CONWAY),
"STAKE_DEREGISTRATION_CONWAY" => ::std::option::Option::Some(CardanoCertificateType::STAKE_DEREGISTRATION_CONWAY),
"VOTE_DELEGATION" => ::std::option::Option::Some(CardanoCertificateType::VOTE_DELEGATION),
_ => ::std::option::Option::None
}
}
const VALUES: &'static [CardanoCertificateType] = &[
CardanoCertificateType::STAKE_REGISTRATION,
CardanoCertificateType::STAKE_DEREGISTRATION,
CardanoCertificateType::STAKE_DELEGATION,
CardanoCertificateType::STAKE_POOL_REGISTRATION,
CardanoCertificateType::STAKE_REGISTRATION_CONWAY,
CardanoCertificateType::STAKE_DEREGISTRATION_CONWAY,
CardanoCertificateType::VOTE_DELEGATION,
];
}
impl ::protobuf::EnumFull for CardanoCertificateType {
fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().enum_by_package_relative_name("CardanoCertificateType").unwrap()).clone()
}
fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
let index = match self {
CardanoCertificateType::STAKE_REGISTRATION => 0,
CardanoCertificateType::STAKE_DEREGISTRATION => 1,
CardanoCertificateType::STAKE_DELEGATION => 2,
CardanoCertificateType::STAKE_POOL_REGISTRATION => 3,
CardanoCertificateType::STAKE_REGISTRATION_CONWAY => 4,
CardanoCertificateType::STAKE_DEREGISTRATION_CONWAY => 5,
CardanoCertificateType::VOTE_DELEGATION => 6,
};
Self::enum_descriptor().value_by_index(index)
}
}
impl ::std::default::Default for CardanoCertificateType {
fn default() -> Self {
CardanoCertificateType::STAKE_REGISTRATION
}
}
impl CardanoCertificateType {
fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
::protobuf::reflect::GeneratedEnumDescriptorData::new::<CardanoCertificateType>("CardanoCertificateType")
}
}
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
pub enum CardanoDRepType {
KEY_HASH = 0,
SCRIPT_HASH = 1,
ABSTAIN = 2,
NO_CONFIDENCE = 3,
}
impl ::protobuf::Enum for CardanoDRepType {
const NAME: &'static str = "CardanoDRepType";
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<CardanoDRepType> {
match value {
0 => ::std::option::Option::Some(CardanoDRepType::KEY_HASH),
1 => ::std::option::Option::Some(CardanoDRepType::SCRIPT_HASH),
2 => ::std::option::Option::Some(CardanoDRepType::ABSTAIN),
3 => ::std::option::Option::Some(CardanoDRepType::NO_CONFIDENCE),
_ => ::std::option::Option::None
}
}
fn from_str(str: &str) -> ::std::option::Option<CardanoDRepType> {
match str {
"KEY_HASH" => ::std::option::Option::Some(CardanoDRepType::KEY_HASH),
"SCRIPT_HASH" => ::std::option::Option::Some(CardanoDRepType::SCRIPT_HASH),
"ABSTAIN" => ::std::option::Option::Some(CardanoDRepType::ABSTAIN),
"NO_CONFIDENCE" => ::std::option::Option::Some(CardanoDRepType::NO_CONFIDENCE),
_ => ::std::option::Option::None
}
}
const VALUES: &'static [CardanoDRepType] = &[
CardanoDRepType::KEY_HASH,
CardanoDRepType::SCRIPT_HASH,
CardanoDRepType::ABSTAIN,
CardanoDRepType::NO_CONFIDENCE,
];
}
impl ::protobuf::EnumFull for CardanoDRepType {
fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().enum_by_package_relative_name("CardanoDRepType").unwrap()).clone()
}
fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
let index = *self as usize;
Self::enum_descriptor().value_by_index(index)
}
}
impl ::std::default::Default for CardanoDRepType {
fn default() -> Self {
CardanoDRepType::KEY_HASH
}
}
impl CardanoDRepType {
fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
::protobuf::reflect::GeneratedEnumDescriptorData::new::<CardanoDRepType>("CardanoDRepType")
}
}
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
pub enum CardanoPoolRelayType {
SINGLE_HOST_IP = 0,
SINGLE_HOST_NAME = 1,
MULTIPLE_HOST_NAME = 2,
}
impl ::protobuf::Enum for CardanoPoolRelayType {
const NAME: &'static str = "CardanoPoolRelayType";
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<CardanoPoolRelayType> {
match value {
0 => ::std::option::Option::Some(CardanoPoolRelayType::SINGLE_HOST_IP),
1 => ::std::option::Option::Some(CardanoPoolRelayType::SINGLE_HOST_NAME),
2 => ::std::option::Option::Some(CardanoPoolRelayType::MULTIPLE_HOST_NAME),
_ => ::std::option::Option::None
}
}
fn from_str(str: &str) -> ::std::option::Option<CardanoPoolRelayType> {
match str {
"SINGLE_HOST_IP" => ::std::option::Option::Some(CardanoPoolRelayType::SINGLE_HOST_IP),
"SINGLE_HOST_NAME" => ::std::option::Option::Some(CardanoPoolRelayType::SINGLE_HOST_NAME),
"MULTIPLE_HOST_NAME" => ::std::option::Option::Some(CardanoPoolRelayType::MULTIPLE_HOST_NAME),
_ => ::std::option::Option::None
}
}
const VALUES: &'static [CardanoPoolRelayType] = &[
CardanoPoolRelayType::SINGLE_HOST_IP,
CardanoPoolRelayType::SINGLE_HOST_NAME,
CardanoPoolRelayType::MULTIPLE_HOST_NAME,
];
}
impl ::protobuf::EnumFull for CardanoPoolRelayType {
fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().enum_by_package_relative_name("CardanoPoolRelayType").unwrap()).clone()
}
fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
let index = *self as usize;
Self::enum_descriptor().value_by_index(index)
}
}
impl ::std::default::Default for CardanoPoolRelayType {
fn default() -> Self {
CardanoPoolRelayType::SINGLE_HOST_IP
}
}
impl CardanoPoolRelayType {
fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
::protobuf::reflect::GeneratedEnumDescriptorData::new::<CardanoPoolRelayType>("CardanoPoolRelayType")
}
}
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
pub enum CardanoTxAuxiliaryDataSupplementType {
NONE = 0,
CVOTE_REGISTRATION_SIGNATURE = 1,
}
impl ::protobuf::Enum for CardanoTxAuxiliaryDataSupplementType {
const NAME: &'static str = "CardanoTxAuxiliaryDataSupplementType";
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<CardanoTxAuxiliaryDataSupplementType> {
match value {
0 => ::std::option::Option::Some(CardanoTxAuxiliaryDataSupplementType::NONE),
1 => ::std::option::Option::Some(CardanoTxAuxiliaryDataSupplementType::CVOTE_REGISTRATION_SIGNATURE),
_ => ::std::option::Option::None
}
}
fn from_str(str: &str) -> ::std::option::Option<CardanoTxAuxiliaryDataSupplementType> {
match str {
"NONE" => ::std::option::Option::Some(CardanoTxAuxiliaryDataSupplementType::NONE),
"CVOTE_REGISTRATION_SIGNATURE" => ::std::option::Option::Some(CardanoTxAuxiliaryDataSupplementType::CVOTE_REGISTRATION_SIGNATURE),
_ => ::std::option::Option::None
}
}
const VALUES: &'static [CardanoTxAuxiliaryDataSupplementType] = &[
CardanoTxAuxiliaryDataSupplementType::NONE,
CardanoTxAuxiliaryDataSupplementType::CVOTE_REGISTRATION_SIGNATURE,
];
}
impl ::protobuf::EnumFull for CardanoTxAuxiliaryDataSupplementType {
fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().enum_by_package_relative_name("CardanoTxAuxiliaryDataSupplementType").unwrap()).clone()
}
fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
let index = *self as usize;
Self::enum_descriptor().value_by_index(index)
}
}
impl ::std::default::Default for CardanoTxAuxiliaryDataSupplementType {
fn default() -> Self {
CardanoTxAuxiliaryDataSupplementType::NONE
}
}
impl CardanoTxAuxiliaryDataSupplementType {
fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
::protobuf::reflect::GeneratedEnumDescriptorData::new::<CardanoTxAuxiliaryDataSupplementType>("CardanoTxAuxiliaryDataSupplementType")
}
}
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
pub enum CardanoCVoteRegistrationFormat {
CIP15 = 0,
CIP36 = 1,
}
impl ::protobuf::Enum for CardanoCVoteRegistrationFormat {
const NAME: &'static str = "CardanoCVoteRegistrationFormat";
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<CardanoCVoteRegistrationFormat> {
match value {
0 => ::std::option::Option::Some(CardanoCVoteRegistrationFormat::CIP15),
1 => ::std::option::Option::Some(CardanoCVoteRegistrationFormat::CIP36),
_ => ::std::option::Option::None
}
}
fn from_str(str: &str) -> ::std::option::Option<CardanoCVoteRegistrationFormat> {
match str {
"CIP15" => ::std::option::Option::Some(CardanoCVoteRegistrationFormat::CIP15),
"CIP36" => ::std::option::Option::Some(CardanoCVoteRegistrationFormat::CIP36),
_ => ::std::option::Option::None
}
}
const VALUES: &'static [CardanoCVoteRegistrationFormat] = &[
CardanoCVoteRegistrationFormat::CIP15,
CardanoCVoteRegistrationFormat::CIP36,
];
}
impl ::protobuf::EnumFull for CardanoCVoteRegistrationFormat {
fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().enum_by_package_relative_name("CardanoCVoteRegistrationFormat").unwrap()).clone()
}
fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
let index = *self as usize;
Self::enum_descriptor().value_by_index(index)
}
}
impl ::std::default::Default for CardanoCVoteRegistrationFormat {
fn default() -> Self {
CardanoCVoteRegistrationFormat::CIP15
}
}
impl CardanoCVoteRegistrationFormat {
fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
::protobuf::reflect::GeneratedEnumDescriptorData::new::<CardanoCVoteRegistrationFormat>("CardanoCVoteRegistrationFormat")
}
}
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
pub enum CardanoTxSigningMode {
ORDINARY_TRANSACTION = 0,
POOL_REGISTRATION_AS_OWNER = 1,
MULTISIG_TRANSACTION = 2,
PLUTUS_TRANSACTION = 3,
}
impl ::protobuf::Enum for CardanoTxSigningMode {
const NAME: &'static str = "CardanoTxSigningMode";
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<CardanoTxSigningMode> {
match value {
0 => ::std::option::Option::Some(CardanoTxSigningMode::ORDINARY_TRANSACTION),
1 => ::std::option::Option::Some(CardanoTxSigningMode::POOL_REGISTRATION_AS_OWNER),
2 => ::std::option::Option::Some(CardanoTxSigningMode::MULTISIG_TRANSACTION),
3 => ::std::option::Option::Some(CardanoTxSigningMode::PLUTUS_TRANSACTION),
_ => ::std::option::Option::None
}
}
fn from_str(str: &str) -> ::std::option::Option<CardanoTxSigningMode> {
match str {
"ORDINARY_TRANSACTION" => ::std::option::Option::Some(CardanoTxSigningMode::ORDINARY_TRANSACTION),
"POOL_REGISTRATION_AS_OWNER" => ::std::option::Option::Some(CardanoTxSigningMode::POOL_REGISTRATION_AS_OWNER),
"MULTISIG_TRANSACTION" => ::std::option::Option::Some(CardanoTxSigningMode::MULTISIG_TRANSACTION),
"PLUTUS_TRANSACTION" => ::std::option::Option::Some(CardanoTxSigningMode::PLUTUS_TRANSACTION),
_ => ::std::option::Option::None
}
}
const VALUES: &'static [CardanoTxSigningMode] = &[
CardanoTxSigningMode::ORDINARY_TRANSACTION,
CardanoTxSigningMode::POOL_REGISTRATION_AS_OWNER,
CardanoTxSigningMode::MULTISIG_TRANSACTION,
CardanoTxSigningMode::PLUTUS_TRANSACTION,
];
}
impl ::protobuf::EnumFull for CardanoTxSigningMode {
fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().enum_by_package_relative_name("CardanoTxSigningMode").unwrap()).clone()
}
fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
let index = *self as usize;
Self::enum_descriptor().value_by_index(index)
}
}
impl ::std::default::Default for CardanoTxSigningMode {
fn default() -> Self {
CardanoTxSigningMode::ORDINARY_TRANSACTION
}
}
impl CardanoTxSigningMode {
fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
::protobuf::reflect::GeneratedEnumDescriptorData::new::<CardanoTxSigningMode>("CardanoTxSigningMode")
}
}
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
pub enum CardanoTxWitnessType {
BYRON_WITNESS = 0,
SHELLEY_WITNESS = 1,
}
impl ::protobuf::Enum for CardanoTxWitnessType {
const NAME: &'static str = "CardanoTxWitnessType";
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<CardanoTxWitnessType> {
match value {
0 => ::std::option::Option::Some(CardanoTxWitnessType::BYRON_WITNESS),
1 => ::std::option::Option::Some(CardanoTxWitnessType::SHELLEY_WITNESS),
_ => ::std::option::Option::None
}
}
fn from_str(str: &str) -> ::std::option::Option<CardanoTxWitnessType> {
match str {
"BYRON_WITNESS" => ::std::option::Option::Some(CardanoTxWitnessType::BYRON_WITNESS),
"SHELLEY_WITNESS" => ::std::option::Option::Some(CardanoTxWitnessType::SHELLEY_WITNESS),
_ => ::std::option::Option::None
}
}
const VALUES: &'static [CardanoTxWitnessType] = &[
CardanoTxWitnessType::BYRON_WITNESS,
CardanoTxWitnessType::SHELLEY_WITNESS,
];
}
impl ::protobuf::EnumFull for CardanoTxWitnessType {
fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().enum_by_package_relative_name("CardanoTxWitnessType").unwrap()).clone()
}
fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
let index = *self as usize;
Self::enum_descriptor().value_by_index(index)
}
}
impl ::std::default::Default for CardanoTxWitnessType {
fn default() -> Self {
CardanoTxWitnessType::BYRON_WITNESS
}
}
impl CardanoTxWitnessType {
fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
::protobuf::reflect::GeneratedEnumDescriptorData::new::<CardanoTxWitnessType>("CardanoTxWitnessType")
}
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n\x16messages-cardano.proto\x12\x1ahw.trezor.messages.cardano\x1a\x15me\
ssages-common.proto\"\x87\x01\n\x1cCardanoBlockchainPointerType\x12\x1f\
\n\x0bblock_index\x18\x01\x20\x02(\rR\nblockIndex\x12\x19\n\x08tx_index\
\x18\x02\x20\x02(\rR\x07txIndex\x12+\n\x11certificate_index\x18\x03\x20\
\x02(\rR\x10certificateIndex\"\xef\x02\n\x13CardanoNativeScript\x12G\n\
\x04type\x18\x01\x20\x02(\x0e23.hw.trezor.messages.cardano.CardanoNative\
ScriptTypeR\x04type\x12I\n\x07scripts\x18\x02\x20\x03(\x0b2/.hw.trezor.m\
essages.cardano.CardanoNativeScriptR\x07scripts\x12\x19\n\x08key_hash\
\x18\x03\x20\x01(\x0cR\x07keyHash\x12\x19\n\x08key_path\x18\x04\x20\x03(\
\rR\x07keyPath\x12:\n\x19required_signatures_count\x18\x05\x20\x01(\rR\
\x17requiredSignaturesCount\x12%\n\x0einvalid_before\x18\x06\x20\x01(\
\x04R\rinvalidBefore\x12+\n\x11invalid_hereafter\x18\x07\x20\x01(\x04R\
\x10invalidHereafter\"\xaa\x02\n\x1aCardanoGetNativeScriptHash\x12G\n\
\x06script\x18\x01\x20\x02(\x0b2/.hw.trezor.messages.cardano.CardanoNati\
veScriptR\x06script\x12g\n\x0edisplay_format\x18\x02\x20\x02(\x0e2@.hw.t\
rezor.messages.cardano.CardanoNativeScriptHashDisplayFormatR\rdisplayFor\
mat\x12Z\n\x0fderivation_type\x18\x03\x20\x02(\x0e21.hw.trezor.messages.\
cardano.CardanoDerivationTypeR\x0ederivationType\":\n\x17CardanoNativeSc\
riptHash\x12\x1f\n\x0bscript_hash\x18\x01\x20\x02(\x0cR\nscriptHash\"\
\xaf\x03\n\x1cCardanoAddressParametersType\x12Q\n\x0caddress_type\x18\
\x01\x20\x02(\x0e2..hw.trezor.messages.cardano.CardanoAddressTypeR\x0bad\
dressType\x12\x1b\n\taddress_n\x18\x02\x20\x03(\rR\x08addressN\x12*\n\
\x11address_n_staking\x18\x03\x20\x03(\rR\x0faddressNStaking\x12(\n\x10s\
taking_key_hash\x18\x04\x20\x01(\x0cR\x0estakingKeyHash\x12i\n\x13certif\
icate_pointer\x18\x05\x20\x01(\x0b28.hw.trezor.messages.cardano.CardanoB\
lockchainPointerTypeR\x12certificatePointer\x12.\n\x13script_payment_has\
h\x18\x06\x20\x01(\x0cR\x11scriptPaymentHash\x12.\n\x13script_staking_ha\
sh\x18\x07\x20\x01(\x0cR\x11scriptStakingHash\"\xe4\x02\n\x11CardanoGetA\
ddress\x12(\n\x0cshow_display\x18\x02\x20\x01(\x08:\x05falseR\x0bshowDis\
play\x12%\n\x0eprotocol_magic\x18\x03\x20\x02(\rR\rprotocolMagic\x12\x1d\
\n\nnetwork_id\x18\x04\x20\x02(\rR\tnetworkId\x12g\n\x12address_paramete\
rs\x18\x05\x20\x02(\x0b28.hw.trezor.messages.cardano.CardanoAddressParam\
etersTypeR\x11addressParameters\x12Z\n\x0fderivation_type\x18\x06\x20\
\x02(\x0e21.hw.trezor.messages.cardano.CardanoDerivationTypeR\x0ederivat\
ionType\x12\x1a\n\x08chunkify\x18\x07\x20\x01(\x08R\x08chunkify\"*\n\x0e\
CardanoAddress\x12\x18\n\x07address\x18\x01\x20\x02(\tR\x07address\"\xb1\
\x01\n\x13CardanoGetPublicKey\x12\x1b\n\taddress_n\x18\x01\x20\x03(\rR\
\x08addressN\x12!\n\x0cshow_display\x18\x02\x20\x01(\x08R\x0bshowDisplay\
\x12Z\n\x0fderivation_type\x18\x03\x20\x02(\x0e21.hw.trezor.messages.car\
dano.CardanoDerivationTypeR\x0ederivationType\"a\n\x10CardanoPublicKey\
\x12\x12\n\x04xpub\x18\x01\x20\x02(\tR\x04xpub\x129\n\x04node\x18\x02\
\x20\x02(\x0b2%.hw.trezor.messages.common.HDNodeTypeR\x04node\"\xde\x08\
\n\x11CardanoSignTxInit\x12S\n\x0csigning_mode\x18\x01\x20\x02(\x0e20.hw\
.trezor.messages.cardano.CardanoTxSigningModeR\x0bsigningMode\x12%\n\x0e\
protocol_magic\x18\x02\x20\x02(\rR\rprotocolMagic\x12\x1d\n\nnetwork_id\
\x18\x03\x20\x02(\rR\tnetworkId\x12!\n\x0cinputs_count\x18\x04\x20\x02(\
\rR\x0binputsCount\x12#\n\routputs_count\x18\x05\x20\x02(\rR\x0coutputsC\
ount\x12\x10\n\x03fee\x18\x06\x20\x02(\x04R\x03fee\x12\x10\n\x03ttl\x18\
\x07\x20\x01(\x04R\x03ttl\x12-\n\x12certificates_count\x18\x08\x20\x02(\
\rR\x11certificatesCount\x12+\n\x11withdrawals_count\x18\t\x20\x02(\rR\
\x10withdrawalsCount\x12,\n\x12has_auxiliary_data\x18\n\x20\x02(\x08R\
\x10hasAuxiliaryData\x126\n\x17validity_interval_start\x18\x0b\x20\x01(\
\x04R\x15validityIntervalStart\x124\n\x16witness_requests_count\x18\x0c\
\x20\x02(\rR\x14witnessRequestsCount\x12;\n\x1aminting_asset_groups_coun\
t\x18\r\x20\x02(\rR\x17mintingAssetGroupsCount\x12Z\n\x0fderivation_type\
\x18\x0e\x20\x02(\x0e21.hw.trezor.messages.cardano.CardanoDerivationType\
R\x0ederivationType\x123\n\x12include_network_id\x18\x0f\x20\x01(\x08:\
\x05falseR\x10includeNetworkId\x12(\n\x10script_data_hash\x18\x10\x20\
\x01(\x0cR\x0escriptDataHash\x126\n\x17collateral_inputs_count\x18\x11\
\x20\x02(\rR\x15collateralInputsCount\x124\n\x16required_signers_count\
\x18\x12\x20\x02(\rR\x14requiredSignersCount\x129\n\x15has_collateral_re\
turn\x18\x13\x20\x01(\x08:\x05falseR\x13hasCollateralReturn\x12)\n\x10to\
tal_collateral\x18\x14\x20\x01(\x04R\x0ftotalCollateral\x127\n\x16refere\
nce_inputs_count\x18\x15\x20\x01(\r:\x010R\x14referenceInputsCount\x12\
\x1a\n\x08chunkify\x18\x16\x20\x01(\x08R\x08chunkify\x12)\n\rtag_cbor_se\
ts\x18\x17\x20\x01(\x08:\x05falseR\x0btagCborSets\"L\n\x0eCardanoTxInput\
\x12\x1b\n\tprev_hash\x18\x01\x20\x02(\x0cR\x08prevHash\x12\x1d\n\nprev_\
index\x18\x02\x20\x02(\rR\tprevIndex\"\xc5\x03\n\x0fCardanoTxOutput\x12\
\x18\n\x07address\x18\x01\x20\x01(\tR\x07address\x12g\n\x12address_param\
eters\x18\x02\x20\x01(\x0b28.hw.trezor.messages.cardano.CardanoAddressPa\
rametersTypeR\x11addressParameters\x12\x16\n\x06amount\x18\x03\x20\x02(\
\x04R\x06amount\x12,\n\x12asset_groups_count\x18\x04\x20\x02(\rR\x10asse\
tGroupsCount\x12\x1d\n\ndatum_hash\x18\x05\x20\x01(\x0cR\tdatumHash\x12d\
\n\x06format\x18\x06\x20\x01(\x0e2>.hw.trezor.messages.cardano.CardanoTx\
OutputSerializationFormat:\x0cARRAY_LEGACYR\x06format\x12-\n\x11inline_d\
atum_size\x18\x07\x20\x01(\r:\x010R\x0finlineDatumSize\x125\n\x15referen\
ce_script_size\x18\x08\x20\x01(\r:\x010R\x13referenceScriptSize\"S\n\x11\
CardanoAssetGroup\x12\x1b\n\tpolicy_id\x18\x01\x20\x02(\x0cR\x08policyId\
\x12!\n\x0ctokens_count\x18\x02\x20\x02(\rR\x0btokensCount\"q\n\x0cCarda\
noToken\x12(\n\x10asset_name_bytes\x18\x01\x20\x02(\x0cR\x0eassetNameByt\
es\x12\x16\n\x06amount\x18\x02\x20\x01(\x04R\x06amount\x12\x1f\n\x0bmint\
_amount\x18\x03\x20\x01(\x12R\nmintAmount\"/\n\x19CardanoTxInlineDatumCh\
unk\x12\x12\n\x04data\x18\x01\x20\x02(\x0cR\x04data\"3\n\x1dCardanoTxRef\
erenceScriptChunk\x12\x12\n\x04data\x18\x01\x20\x02(\x0cR\x04data\"f\n\
\x10CardanoPoolOwner\x12(\n\x10staking_key_path\x18\x01\x20\x03(\rR\x0es\
takingKeyPath\x12(\n\x10staking_key_hash\x18\x02\x20\x01(\x0cR\x0estakin\
gKeyHash\"\xd9\x01\n\x1aCardanoPoolRelayParameters\x12D\n\x04type\x18\
\x01\x20\x02(\x0e20.hw.trezor.messages.cardano.CardanoPoolRelayTypeR\x04\
type\x12!\n\x0cipv4_address\x18\x02\x20\x01(\x0cR\x0bipv4Address\x12!\n\
\x0cipv6_address\x18\x03\x20\x01(\x0cR\x0bipv6Address\x12\x1b\n\thost_na\
me\x18\x04\x20\x01(\tR\x08hostName\x12\x12\n\x04port\x18\x05\x20\x01(\rR\
\x04port\"?\n\x17CardanoPoolMetadataType\x12\x10\n\x03url\x18\x01\x20\
\x02(\tR\x03url\x12\x12\n\x04hash\x18\x02\x20\x02(\x0cR\x04hash\"\x9a\
\x03\n\x19CardanoPoolParametersType\x12\x17\n\x07pool_id\x18\x01\x20\x02\
(\x0cR\x06poolId\x12\x20\n\x0cvrf_key_hash\x18\x02\x20\x02(\x0cR\nvrfKey\
Hash\x12\x16\n\x06pledge\x18\x03\x20\x02(\x04R\x06pledge\x12\x12\n\x04co\
st\x18\x04\x20\x02(\x04R\x04cost\x12)\n\x10margin_numerator\x18\x05\x20\
\x02(\x04R\x0fmarginNumerator\x12-\n\x12margin_denominator\x18\x06\x20\
\x02(\x04R\x11marginDenominator\x12%\n\x0ereward_account\x18\x07\x20\x02\
(\tR\rrewardAccount\x12O\n\x08metadata\x18\n\x20\x01(\x0b23.hw.trezor.me\
ssages.cardano.CardanoPoolMetadataTypeR\x08metadata\x12!\n\x0cowners_cou\
nt\x18\x0b\x20\x02(\rR\x0bownersCount\x12!\n\x0crelays_count\x18\x0c\x20\
\x02(\rR\x0brelaysCount\"\x8a\x01\n\x0bCardanoDRep\x12?\n\x04type\x18\
\x01\x20\x02(\x0e2+.hw.trezor.messages.cardano.CardanoDRepTypeR\x04type\
\x12\x19\n\x08key_hash\x18\x02\x20\x01(\x0cR\x07keyHash\x12\x1f\n\x0bscr\
ipt_hash\x18\x03\x20\x01(\x0cR\nscriptHash\"\xf9\x02\n\x14CardanoTxCerti\
ficate\x12F\n\x04type\x18\x01\x20\x02(\x0e22.hw.trezor.messages.cardano.\
CardanoCertificateTypeR\x04type\x12\x12\n\x04path\x18\x02\x20\x03(\rR\
\x04path\x12\x12\n\x04pool\x18\x03\x20\x01(\x0cR\x04pool\x12^\n\x0fpool_\
parameters\x18\x04\x20\x01(\x0b25.hw.trezor.messages.cardano.CardanoPool\
ParametersTypeR\x0epoolParameters\x12\x1f\n\x0bscript_hash\x18\x05\x20\
\x01(\x0cR\nscriptHash\x12\x19\n\x08key_hash\x18\x06\x20\x01(\x0cR\x07ke\
yHash\x12\x18\n\x07deposit\x18\x07\x20\x01(\x04R\x07deposit\x12;\n\x04dr\
ep\x18\x08\x20\x01(\x0b2'.hw.trezor.messages.cardano.CardanoDRepR\x04dre\
p\"}\n\x13CardanoTxWithdrawal\x12\x12\n\x04path\x18\x01\x20\x03(\rR\x04p\
ath\x12\x16\n\x06amount\x18\x02\x20\x02(\x04R\x06amount\x12\x1f\n\x0bscr\
ipt_hash\x18\x03\x20\x01(\x0cR\nscriptHash\x12\x19\n\x08key_hash\x18\x04\
\x20\x01(\x0cR\x07keyHash\"d\n\"CardanoCVoteRegistrationDelegation\x12&\
\n\x0fvote_public_key\x18\x01\x20\x02(\x0cR\rvotePublicKey\x12\x16\n\x06\
weight\x18\x02\x20\x02(\rR\x06weight\"\x8e\x04\n&CardanoCVoteRegistratio\
nParametersType\x12&\n\x0fvote_public_key\x18\x01\x20\x01(\x0cR\rvotePub\
licKey\x12!\n\x0cstaking_path\x18\x02\x20\x03(\rR\x0bstakingPath\x12v\n\
\x1apayment_address_parameters\x18\x03\x20\x01(\x0b28.hw.trezor.messages\
.cardano.CardanoAddressParametersTypeR\x18paymentAddressParameters\x12\
\x14\n\x05nonce\x18\x04\x20\x02(\x04R\x05nonce\x12Y\n\x06format\x18\x05\
\x20\x01(\x0e2:.hw.trezor.messages.cardano.CardanoCVoteRegistrationForma\
t:\x05CIP15R\x06format\x12`\n\x0bdelegations\x18\x06\x20\x03(\x0b2>.hw.t\
rezor.messages.cardano.CardanoCVoteRegistrationDelegationR\x0bdelegation\
s\x12%\n\x0evoting_purpose\x18\x07\x20\x01(\x04R\rvotingPurpose\x12'\n\
\x0fpayment_address\x18\x08\x20\x01(\tR\x0epaymentAddress\"\xb5\x01\n\
\x16CardanoTxAuxiliaryData\x12\x86\x01\n\x1dcvote_registration_parameter\
s\x18\x01\x20\x01(\x0b2B.hw.trezor.messages.cardano.CardanoCVoteRegistra\
tionParametersTypeR\x1bcvoteRegistrationParameters\x12\x12\n\x04hash\x18\
\x02\x20\x01(\x0cR\x04hash\"=\n\rCardanoTxMint\x12,\n\x12asset_groups_co\
unt\x18\x01\x20\x02(\rR\x10assetGroupsCount\"V\n\x18CardanoTxCollateralI\
nput\x12\x1b\n\tprev_hash\x18\x01\x20\x02(\x0cR\x08prevHash\x12\x1d\n\np\
rev_index\x18\x02\x20\x02(\rR\tprevIndex\"O\n\x17CardanoTxRequiredSigner\
\x12\x19\n\x08key_hash\x18\x01\x20\x01(\x0cR\x07keyHash\x12\x19\n\x08key\
_path\x18\x02\x20\x03(\rR\x07keyPath\"U\n\x17CardanoTxReferenceInput\x12\
\x1b\n\tprev_hash\x18\x01\x20\x02(\x0cR\x08prevHash\x12\x1d\n\nprev_inde\
x\x18\x02\x20\x02(\rR\tprevIndex\"\x12\n\x10CardanoTxItemAck\"\xea\x01\n\
\x20CardanoTxAuxiliaryDataSupplement\x12T\n\x04type\x18\x01\x20\x02(\x0e\
2@.hw.trezor.messages.cardano.CardanoTxAuxiliaryDataSupplementTypeR\x04t\
ype\x12.\n\x13auxiliary_data_hash\x18\x02\x20\x01(\x0cR\x11auxiliaryData\
Hash\x12@\n\x1ccvote_registration_signature\x18\x03\x20\x01(\x0cR\x1acvo\
teRegistrationSignature\"-\n\x17CardanoTxWitnessRequest\x12\x12\n\x04pat\
h\x18\x01\x20\x03(\rR\x04path\"\xb6\x01\n\x18CardanoTxWitnessResponse\
\x12D\n\x04type\x18\x01\x20\x02(\x0e20.hw.trezor.messages.cardano.Cardan\
oTxWitnessTypeR\x04type\x12\x17\n\x07pub_key\x18\x02\x20\x02(\x0cR\x06pu\
bKey\x12\x1c\n\tsignature\x18\x03\x20\x02(\x0cR\tsignature\x12\x1d\n\nch\
ain_code\x18\x04\x20\x01(\x0cR\tchainCode\"\x12\n\x10CardanoTxHostAck\",\
\n\x11CardanoTxBodyHash\x12\x17\n\x07tx_hash\x18\x01\x20\x02(\x0cR\x06tx\
Hash\"\x17\n\x15CardanoSignTxFinished*B\n\x15CardanoDerivationType\x12\n\
\n\x06LEDGER\x10\0\x12\n\n\x06ICARUS\x10\x01\x12\x11\n\rICARUS_TREZOR\
\x10\x02*\xd2\x01\n\x12CardanoAddressType\x12\x08\n\x04BASE\x10\0\x12\
\x13\n\x0fBASE_SCRIPT_KEY\x10\x01\x12\x13\n\x0fBASE_KEY_SCRIPT\x10\x02\
\x12\x16\n\x12BASE_SCRIPT_SCRIPT\x10\x03\x12\x0b\n\x07POINTER\x10\x04\
\x12\x12\n\x0ePOINTER_SCRIPT\x10\x05\x12\x0e\n\nENTERPRISE\x10\x06\x12\
\x15\n\x11ENTERPRISE_SCRIPT\x10\x07\x12\t\n\x05BYRON\x10\x08\x12\n\n\x06\
REWARD\x10\x0e\x12\x11\n\rREWARD_SCRIPT\x10\x0f*o\n\x17CardanoNativeScri\
ptType\x12\x0b\n\x07PUB_KEY\x10\0\x12\x07\n\x03ALL\x10\x01\x12\x07\n\x03\
ANY\x10\x02\x12\n\n\x06N_OF_K\x10\x03\x12\x12\n\x0eINVALID_BEFORE\x10\
\x04\x12\x15\n\x11INVALID_HEREAFTER\x10\x05*K\n$CardanoNativeScriptHashD\
isplayFormat\x12\x08\n\x04HIDE\x10\0\x12\n\n\x06BECH32\x10\x01\x12\r\n\t\
POLICY_ID\x10\x02*G\n\"CardanoTxOutputSerializationFormat\x12\x10\n\x0cA\
RRAY_LEGACY\x10\0\x12\x0f\n\x0bMAP_BABBAGE\x10\x01*\xd2\x01\n\x16Cardano\
CertificateType\x12\x16\n\x12STAKE_REGISTRATION\x10\0\x12\x18\n\x14STAKE\
_DEREGISTRATION\x10\x01\x12\x14\n\x10STAKE_DELEGATION\x10\x02\x12\x1b\n\
\x17STAKE_POOL_REGISTRATION\x10\x03\x12\x1d\n\x19STAKE_REGISTRATION_CONW\
AY\x10\x07\x12\x1f\n\x1bSTAKE_DEREGISTRATION_CONWAY\x10\x08\x12\x13\n\
\x0fVOTE_DELEGATION\x10\t*P\n\x0fCardanoDRepType\x12\x0c\n\x08KEY_HASH\
\x10\0\x12\x0f\n\x0bSCRIPT_HASH\x10\x01\x12\x0b\n\x07ABSTAIN\x10\x02\x12\
\x11\n\rNO_CONFIDENCE\x10\x03*X\n\x14CardanoPoolRelayType\x12\x12\n\x0eS\
INGLE_HOST_IP\x10\0\x12\x14\n\x10SINGLE_HOST_NAME\x10\x01\x12\x16\n\x12M\
ULTIPLE_HOST_NAME\x10\x02*R\n$CardanoTxAuxiliaryDataSupplementType\x12\
\x08\n\x04NONE\x10\0\x12\x20\n\x1cCVOTE_REGISTRATION_SIGNATURE\x10\x01*6\
\n\x1eCardanoCVoteRegistrationFormat\x12\t\n\x05CIP15\x10\0\x12\t\n\x05C\
IP36\x10\x01*\x82\x01\n\x14CardanoTxSigningMode\x12\x18\n\x14ORDINARY_TR\
ANSACTION\x10\0\x12\x1e\n\x1aPOOL_REGISTRATION_AS_OWNER\x10\x01\x12\x18\
\n\x14MULTISIG_TRANSACTION\x10\x02\x12\x16\n\x12PLUTUS_TRANSACTION\x10\
\x03*>\n\x14CardanoTxWitnessType\x12\x11\n\rBYRON_WITNESS\x10\0\x12\x13\
\n\x0fSHELLEY_WITNESS\x10\x01B;\n#com.satoshilabs.trezor.lib.protobufB\
\x14TrezorMessageCardano\
";
fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
file_descriptor_proto_lazy.get(|| {
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
})
}
pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
file_descriptor.get(|| {
let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
let mut deps = ::std::vec::Vec::with_capacity(1);
deps.push(super::messages_common::file_descriptor().clone());
let mut messages = ::std::vec::Vec::with_capacity(37);
messages.push(CardanoBlockchainPointerType::generated_message_descriptor_data());
messages.push(CardanoNativeScript::generated_message_descriptor_data());
messages.push(CardanoGetNativeScriptHash::generated_message_descriptor_data());
messages.push(CardanoNativeScriptHash::generated_message_descriptor_data());
messages.push(CardanoAddressParametersType::generated_message_descriptor_data());
messages.push(CardanoGetAddress::generated_message_descriptor_data());
messages.push(CardanoAddress::generated_message_descriptor_data());
messages.push(CardanoGetPublicKey::generated_message_descriptor_data());
messages.push(CardanoPublicKey::generated_message_descriptor_data());
messages.push(CardanoSignTxInit::generated_message_descriptor_data());
messages.push(CardanoTxInput::generated_message_descriptor_data());
messages.push(CardanoTxOutput::generated_message_descriptor_data());
messages.push(CardanoAssetGroup::generated_message_descriptor_data());
messages.push(CardanoToken::generated_message_descriptor_data());
messages.push(CardanoTxInlineDatumChunk::generated_message_descriptor_data());
messages.push(CardanoTxReferenceScriptChunk::generated_message_descriptor_data());
messages.push(CardanoPoolOwner::generated_message_descriptor_data());
messages.push(CardanoPoolRelayParameters::generated_message_descriptor_data());
messages.push(CardanoPoolMetadataType::generated_message_descriptor_data());
messages.push(CardanoPoolParametersType::generated_message_descriptor_data());
messages.push(CardanoDRep::generated_message_descriptor_data());
messages.push(CardanoTxCertificate::generated_message_descriptor_data());
messages.push(CardanoTxWithdrawal::generated_message_descriptor_data());
messages.push(CardanoCVoteRegistrationDelegation::generated_message_descriptor_data());
messages.push(CardanoCVoteRegistrationParametersType::generated_message_descriptor_data());
messages.push(CardanoTxAuxiliaryData::generated_message_descriptor_data());
messages.push(CardanoTxMint::generated_message_descriptor_data());
messages.push(CardanoTxCollateralInput::generated_message_descriptor_data());
messages.push(CardanoTxRequiredSigner::generated_message_descriptor_data());
messages.push(CardanoTxReferenceInput::generated_message_descriptor_data());
messages.push(CardanoTxItemAck::generated_message_descriptor_data());
messages.push(CardanoTxAuxiliaryDataSupplement::generated_message_descriptor_data());
messages.push(CardanoTxWitnessRequest::generated_message_descriptor_data());
messages.push(CardanoTxWitnessResponse::generated_message_descriptor_data());
messages.push(CardanoTxHostAck::generated_message_descriptor_data());
messages.push(CardanoTxBodyHash::generated_message_descriptor_data());
messages.push(CardanoSignTxFinished::generated_message_descriptor_data());
let mut enums = ::std::vec::Vec::with_capacity(12);
enums.push(CardanoDerivationType::generated_enum_descriptor_data());
enums.push(CardanoAddressType::generated_enum_descriptor_data());
enums.push(CardanoNativeScriptType::generated_enum_descriptor_data());
enums.push(CardanoNativeScriptHashDisplayFormat::generated_enum_descriptor_data());
enums.push(CardanoTxOutputSerializationFormat::generated_enum_descriptor_data());
enums.push(CardanoCertificateType::generated_enum_descriptor_data());
enums.push(CardanoDRepType::generated_enum_descriptor_data());
enums.push(CardanoPoolRelayType::generated_enum_descriptor_data());
enums.push(CardanoTxAuxiliaryDataSupplementType::generated_enum_descriptor_data());
enums.push(CardanoCVoteRegistrationFormat::generated_enum_descriptor_data());
enums.push(CardanoTxSigningMode::generated_enum_descriptor_data());
enums.push(CardanoTxWitnessType::generated_enum_descriptor_data());
::protobuf::reflect::GeneratedFileDescriptor::new_generated(
file_descriptor_proto(),
deps,
messages,
enums,
)
});
::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
})
}