#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BalanceCommitment {
#[prost(bytes = "vec", tag = "1")]
pub inner: ::prost::alloc::vec::Vec<u8>,
}
impl ::prost::Name for BalanceCommitment {
const NAME: &'static str = "BalanceCommitment";
const PACKAGE: &'static str = "penumbra.core.asset.v1";
fn full_name() -> ::prost::alloc::string::String {
::prost::alloc::format!("penumbra.core.asset.v1.{}", Self::NAME)
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AssetId {
#[prost(bytes = "vec", tag = "1")]
pub inner: ::prost::alloc::vec::Vec<u8>,
#[prost(string, tag = "2")]
pub alt_bech32m: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub alt_base_denom: ::prost::alloc::string::String,
}
impl ::prost::Name for AssetId {
const NAME: &'static str = "AssetId";
const PACKAGE: &'static str = "penumbra.core.asset.v1";
fn full_name() -> ::prost::alloc::string::String {
::prost::alloc::format!("penumbra.core.asset.v1.{}", Self::NAME)
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Denom {
#[prost(string, tag = "1")]
pub denom: ::prost::alloc::string::String,
}
impl ::prost::Name for Denom {
const NAME: &'static str = "Denom";
const PACKAGE: &'static str = "penumbra.core.asset.v1";
fn full_name() -> ::prost::alloc::string::String {
::prost::alloc::format!("penumbra.core.asset.v1.{}", Self::NAME)
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Metadata {
#[prost(string, tag = "1")]
pub description: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "2")]
pub denom_units: ::prost::alloc::vec::Vec<DenomUnit>,
#[prost(string, tag = "3")]
pub base: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub display: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub symbol: ::prost::alloc::string::String,
#[prost(message, optional, tag = "1984")]
pub penumbra_asset_id: ::core::option::Option<AssetId>,
#[prost(message, repeated, tag = "1985")]
pub images: ::prost::alloc::vec::Vec<AssetImage>,
#[prost(uint64, tag = "1986")]
pub priority_score: u64,
#[prost(message, repeated, tag = "1987")]
pub badges: ::prost::alloc::vec::Vec<AssetImage>,
}
impl ::prost::Name for Metadata {
const NAME: &'static str = "Metadata";
const PACKAGE: &'static str = "penumbra.core.asset.v1";
fn full_name() -> ::prost::alloc::string::String {
::prost::alloc::format!("penumbra.core.asset.v1.{}", Self::NAME)
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DenomUnit {
#[prost(string, tag = "1")]
pub denom: ::prost::alloc::string::String,
#[prost(uint32, tag = "2")]
pub exponent: u32,
#[prost(string, repeated, tag = "3")]
pub aliases: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
impl ::prost::Name for DenomUnit {
const NAME: &'static str = "DenomUnit";
const PACKAGE: &'static str = "penumbra.core.asset.v1";
fn full_name() -> ::prost::alloc::string::String {
::prost::alloc::format!("penumbra.core.asset.v1.{}", Self::NAME)
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Value {
#[prost(message, optional, tag = "1")]
pub amount: ::core::option::Option<super::super::num::v1::Amount>,
#[prost(message, optional, tag = "2")]
pub asset_id: ::core::option::Option<AssetId>,
}
impl ::prost::Name for Value {
const NAME: &'static str = "Value";
const PACKAGE: &'static str = "penumbra.core.asset.v1";
fn full_name() -> ::prost::alloc::string::String {
::prost::alloc::format!("penumbra.core.asset.v1.{}", Self::NAME)
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValueView {
#[prost(oneof = "value_view::ValueView", tags = "1, 2")]
pub value_view: ::core::option::Option<value_view::ValueView>,
}
pub mod value_view {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KnownAssetId {
#[prost(message, optional, tag = "1")]
pub amount: ::core::option::Option<super::super::super::num::v1::Amount>,
#[prost(message, optional, tag = "2")]
pub metadata: ::core::option::Option<super::Metadata>,
#[prost(message, repeated, tag = "3")]
pub equivalent_values: ::prost::alloc::vec::Vec<super::EquivalentValue>,
#[prost(message, optional, tag = "4")]
pub extended_metadata: ::core::option::Option<::pbjson_types::Any>,
}
impl ::prost::Name for KnownAssetId {
const NAME: &'static str = "KnownAssetId";
const PACKAGE: &'static str = "penumbra.core.asset.v1";
fn full_name() -> ::prost::alloc::string::String {
::prost::alloc::format!("penumbra.core.asset.v1.ValueView.{}", Self::NAME)
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UnknownAssetId {
#[prost(message, optional, tag = "1")]
pub amount: ::core::option::Option<super::super::super::num::v1::Amount>,
#[prost(message, optional, tag = "2")]
pub asset_id: ::core::option::Option<super::AssetId>,
}
impl ::prost::Name for UnknownAssetId {
const NAME: &'static str = "UnknownAssetId";
const PACKAGE: &'static str = "penumbra.core.asset.v1";
fn full_name() -> ::prost::alloc::string::String {
::prost::alloc::format!("penumbra.core.asset.v1.ValueView.{}", Self::NAME)
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum ValueView {
#[prost(message, tag = "1")]
KnownAssetId(KnownAssetId),
#[prost(message, tag = "2")]
UnknownAssetId(UnknownAssetId),
}
}
impl ::prost::Name for ValueView {
const NAME: &'static str = "ValueView";
const PACKAGE: &'static str = "penumbra.core.asset.v1";
fn full_name() -> ::prost::alloc::string::String {
::prost::alloc::format!("penumbra.core.asset.v1.{}", Self::NAME)
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AssetImage {
#[prost(string, tag = "1")]
pub png: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub svg: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub theme: ::core::option::Option<asset_image::Theme>,
}
pub mod asset_image {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Theme {
#[prost(string, tag = "1")]
pub primary_color_hex: ::prost::alloc::string::String,
#[prost(bool, tag = "2")]
pub circle: bool,
#[prost(bool, tag = "3")]
pub dark_mode: bool,
}
impl ::prost::Name for Theme {
const NAME: &'static str = "Theme";
const PACKAGE: &'static str = "penumbra.core.asset.v1";
fn full_name() -> ::prost::alloc::string::String {
::prost::alloc::format!("penumbra.core.asset.v1.AssetImage.{}", Self::NAME)
}
}
}
impl ::prost::Name for AssetImage {
const NAME: &'static str = "AssetImage";
const PACKAGE: &'static str = "penumbra.core.asset.v1";
fn full_name() -> ::prost::alloc::string::String {
::prost::alloc::format!("penumbra.core.asset.v1.{}", Self::NAME)
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EstimatedPrice {
#[prost(message, optional, tag = "1")]
pub priced_asset: ::core::option::Option<AssetId>,
#[prost(message, optional, tag = "2")]
pub numeraire: ::core::option::Option<AssetId>,
#[prost(double, tag = "3")]
pub numeraire_per_unit: f64,
#[prost(uint64, tag = "4")]
pub as_of_height: u64,
}
impl ::prost::Name for EstimatedPrice {
const NAME: &'static str = "EstimatedPrice";
const PACKAGE: &'static str = "penumbra.core.asset.v1";
fn full_name() -> ::prost::alloc::string::String {
::prost::alloc::format!("penumbra.core.asset.v1.{}", Self::NAME)
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EquivalentValue {
#[prost(message, optional, tag = "1")]
pub equivalent_amount: ::core::option::Option<super::super::num::v1::Amount>,
#[prost(message, optional, tag = "2")]
pub numeraire: ::core::option::Option<Metadata>,
#[prost(uint64, tag = "3")]
pub as_of_height: u64,
}
impl ::prost::Name for EquivalentValue {
const NAME: &'static str = "EquivalentValue";
const PACKAGE: &'static str = "penumbra.core.asset.v1";
fn full_name() -> ::prost::alloc::string::String {
::prost::alloc::format!("penumbra.core.asset.v1.{}", Self::NAME)
}
}