use elys_std_deriv::CosmwasmExt;
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/elys.assetprofile.Entry")]
pub struct Entry {
#[prost(string, tag = "1")]
pub base_denom: ::prost::alloc::string::String,
#[prost(uint64, tag = "2")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub decimals: u64,
#[prost(string, tag = "3")]
pub denom: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub path: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
#[serde(alias = "ibc_channelID")]
pub ibc_channel_id: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
#[serde(alias = "ibc_counterparty_channelID")]
pub ibc_counterparty_channel_id: ::prost::alloc::string::String,
#[prost(string, tag = "7")]
pub display_name: ::prost::alloc::string::String,
#[prost(string, tag = "8")]
pub display_symbol: ::prost::alloc::string::String,
#[prost(string, tag = "9")]
pub network: ::prost::alloc::string::String,
#[prost(string, tag = "10")]
pub address: ::prost::alloc::string::String,
#[prost(string, tag = "11")]
pub external_symbol: ::prost::alloc::string::String,
#[prost(string, tag = "12")]
pub transfer_limit: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "13")]
pub permissions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, tag = "14")]
pub unit_denom: ::prost::alloc::string::String,
#[prost(string, tag = "15")]
pub ibc_counterparty_denom: ::prost::alloc::string::String,
#[prost(string, tag = "16")]
#[serde(alias = "ibc_counterparty_chainID")]
pub ibc_counterparty_chain_id: ::prost::alloc::string::String,
#[prost(string, tag = "17")]
pub authority: ::prost::alloc::string::String,
#[prost(bool, tag = "18")]
pub commit_enabled: bool,
#[prost(bool, tag = "19")]
pub withdraw_enabled: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/elys.assetprofile.Params")]
pub struct Params {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/elys.assetprofile.GenesisState")]
pub struct GenesisState {
#[prost(message, optional, tag = "1")]
pub params: ::core::option::Option<Params>,
#[prost(message, repeated, tag = "2")]
pub entry_list: ::prost::alloc::vec::Vec<Entry>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/elys.assetprofile.QueryParamsRequest")]
#[proto_query(
path = "/elys.assetprofile.Query/Params",
response_type = QueryParamsResponse
)]
pub struct QueryParamsRequest {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/elys.assetprofile.QueryParamsResponse")]
pub struct QueryParamsResponse {
#[prost(message, optional, tag = "1")]
pub params: ::core::option::Option<Params>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/elys.assetprofile.QueryEntryRequest")]
#[proto_query(
path = "/elys.assetprofile.Query/Entry",
response_type = QueryEntryResponse
)]
pub struct QueryEntryRequest {
#[prost(string, tag = "1")]
pub base_denom: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/elys.assetprofile.QueryEntryByDenomRequest")]
#[proto_query(
path = "/elys.assetprofile.Query/EntryByDenom",
response_type = QueryEntryByDenomResponse
)]
pub struct QueryEntryByDenomRequest {
#[prost(string, tag = "1")]
pub denom: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/elys.assetprofile.QueryEntryResponse")]
pub struct QueryEntryResponse {
#[prost(message, optional, tag = "1")]
pub entry: ::core::option::Option<Entry>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/elys.assetprofile.QueryEntryByDenomResponse")]
pub struct QueryEntryByDenomResponse {
#[prost(message, optional, tag = "1")]
pub entry: ::core::option::Option<Entry>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/elys.assetprofile.QueryAllEntryRequest")]
#[proto_query(
path = "/elys.assetprofile.Query/EntryAll",
response_type = QueryAllEntryResponse
)]
pub struct QueryAllEntryRequest {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/elys.assetprofile.QueryAllEntryResponse")]
pub struct QueryAllEntryResponse {
#[prost(message, repeated, tag = "1")]
pub entry: ::prost::alloc::vec::Vec<Entry>,
#[prost(message, optional, tag = "2")]
pub pagination:
::core::option::Option<super::super::cosmos::base::query::v1beta1::PageResponse>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/elys.assetprofile.MsgUpdateEntry")]
pub struct MsgUpdateEntry {
#[prost(string, tag = "1")]
pub authority: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub base_denom: ::prost::alloc::string::String,
#[prost(uint64, tag = "3")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub decimals: u64,
#[prost(string, tag = "4")]
pub denom: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub path: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
#[serde(alias = "ibc_channelID")]
pub ibc_channel_id: ::prost::alloc::string::String,
#[prost(string, tag = "7")]
#[serde(alias = "ibc_counterparty_channelID")]
pub ibc_counterparty_channel_id: ::prost::alloc::string::String,
#[prost(string, tag = "8")]
pub display_name: ::prost::alloc::string::String,
#[prost(string, tag = "9")]
pub display_symbol: ::prost::alloc::string::String,
#[prost(string, tag = "10")]
pub network: ::prost::alloc::string::String,
#[prost(string, tag = "11")]
pub address: ::prost::alloc::string::String,
#[prost(string, tag = "12")]
pub external_symbol: ::prost::alloc::string::String,
#[prost(string, tag = "13")]
pub transfer_limit: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "14")]
pub permissions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, tag = "15")]
pub unit_denom: ::prost::alloc::string::String,
#[prost(string, tag = "16")]
pub ibc_counterparty_denom: ::prost::alloc::string::String,
#[prost(string, tag = "17")]
#[serde(alias = "ibc_counterparty_chainID")]
pub ibc_counterparty_chain_id: ::prost::alloc::string::String,
#[prost(bool, tag = "18")]
pub commit_enabled: bool,
#[prost(bool, tag = "19")]
pub withdraw_enabled: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/elys.assetprofile.MsgUpdateEntryResponse")]
pub struct MsgUpdateEntryResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/elys.assetprofile.MsgDeleteEntry")]
pub struct MsgDeleteEntry {
#[prost(string, tag = "1")]
pub authority: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub base_denom: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/elys.assetprofile.MsgDeleteEntryResponse")]
pub struct MsgDeleteEntryResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/elys.assetprofile.MsgAddEntry")]
pub struct MsgAddEntry {
#[prost(string, tag = "1")]
pub creator: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub base_denom: ::prost::alloc::string::String,
#[prost(uint64, tag = "3")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub decimals: u64,
#[prost(string, tag = "4")]
pub denom: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub path: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
#[serde(alias = "ibc_channelID")]
pub ibc_channel_id: ::prost::alloc::string::String,
#[prost(string, tag = "7")]
#[serde(alias = "ibc_counterparty_channelID")]
pub ibc_counterparty_channel_id: ::prost::alloc::string::String,
#[prost(string, tag = "8")]
pub display_name: ::prost::alloc::string::String,
#[prost(string, tag = "9")]
pub display_symbol: ::prost::alloc::string::String,
#[prost(string, tag = "10")]
pub network: ::prost::alloc::string::String,
#[prost(string, tag = "11")]
pub address: ::prost::alloc::string::String,
#[prost(string, tag = "12")]
pub external_symbol: ::prost::alloc::string::String,
#[prost(string, tag = "13")]
pub transfer_limit: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "14")]
pub permissions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, tag = "15")]
pub unit_denom: ::prost::alloc::string::String,
#[prost(string, tag = "16")]
pub ibc_counterparty_denom: ::prost::alloc::string::String,
#[prost(string, tag = "17")]
#[serde(alias = "ibc_counterparty_chainID")]
pub ibc_counterparty_chain_id: ::prost::alloc::string::String,
#[prost(bool, tag = "18")]
pub commit_enabled: bool,
#[prost(bool, tag = "19")]
pub withdraw_enabled: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/elys.assetprofile.MsgAddEntryResponse")]
pub struct MsgAddEntryResponse {}
pub struct AssetprofileQuerier<'a, Q: cosmwasm_std::CustomQuery> {
querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>,
}
impl<'a, Q: cosmwasm_std::CustomQuery> AssetprofileQuerier<'a, Q> {
pub fn new(querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>) -> Self {
Self { querier }
}
pub fn params(&self) -> Result<QueryParamsResponse, cosmwasm_std::StdError> {
QueryParamsRequest {}.query(self.querier)
}
pub fn entry(
&self,
base_denom: ::prost::alloc::string::String,
) -> Result<QueryEntryResponse, cosmwasm_std::StdError> {
QueryEntryRequest { base_denom }.query(self.querier)
}
pub fn entry_by_denom(
&self,
denom: ::prost::alloc::string::String,
) -> Result<QueryEntryByDenomResponse, cosmwasm_std::StdError> {
QueryEntryByDenomRequest { denom }.query(self.querier)
}
pub fn entry_all(
&self,
pagination: ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
) -> Result<QueryAllEntryResponse, cosmwasm_std::StdError> {
QueryAllEntryRequest { pagination }.query(self.querier)
}
}