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.commitment.AtomStaker")]
pub struct AtomStaker {
#[prost(string, tag = "1")]
pub address: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub amount: ::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.commitment.NftHolder")]
pub struct NftHolder {
#[prost(string, tag = "1")]
pub address: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub amount: ::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.commitment.Cadet")]
pub struct Cadet {
#[prost(string, tag = "1")]
pub address: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub amount: ::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.commitment.Governor")]
pub struct Governor {
#[prost(string, tag = "1")]
pub address: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub amount: ::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.commitment.AirdropClaimed")]
pub struct AirdropClaimed {
#[prost(string, tag = "1")]
pub address: ::prost::alloc::string::String,
#[prost(bool, tag = "2")]
pub claimed: 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.commitment.TotalClaimed")]
pub struct TotalClaimed {
#[prost(string, tag = "1")]
pub total_elys_claimed: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub total_eden_claimed: ::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.commitment.KolList")]
pub struct KolList {
#[prost(string, tag = "1")]
pub address: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub amount: ::prost::alloc::string::String,
#[prost(bool, tag = "3")]
pub claimed: bool,
#[prost(bool, tag = "4")]
pub refunded: 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.commitment.LegacyParams")]
pub struct LegacyParams {
#[prost(message, repeated, tag = "1")]
pub vesting_infos: ::prost::alloc::vec::Vec<VestingInfo>,
#[prost(message, repeated, tag = "2")]
pub total_committed: ::prost::alloc::vec::Vec<super::super::cosmos::base::v1beta1::Coin>,
#[prost(uint64, tag = "3")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub number_of_commitments: u64,
#[prost(bool, tag = "4")]
pub enable_vest_now: bool,
#[prost(uint64, tag = "5")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub start_atom_stakers_height: u64,
#[prost(uint64, tag = "6")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub end_atom_stakers_height: u64,
#[prost(uint64, tag = "7")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub start_cadets_height: u64,
#[prost(uint64, tag = "8")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub end_cadets_height: u64,
#[prost(uint64, tag = "9")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub start_nft_holders_height: u64,
#[prost(uint64, tag = "10")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub end_nft_holders_height: u64,
#[prost(uint64, tag = "11")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub start_governors_height: u64,
#[prost(uint64, tag = "12")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub end_governors_height: u64,
}
#[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.commitment.Params")]
pub struct Params {
#[prost(message, repeated, tag = "1")]
pub vesting_infos: ::prost::alloc::vec::Vec<VestingInfo>,
#[prost(message, repeated, tag = "2")]
pub total_committed: ::prost::alloc::vec::Vec<super::super::cosmos::base::v1beta1::Coin>,
#[prost(uint64, tag = "3")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub number_of_commitments: u64,
#[prost(bool, tag = "4")]
pub enable_vest_now: bool,
#[prost(uint64, tag = "5")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub start_airdrop_claim_height: u64,
#[prost(uint64, tag = "6")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub end_airdrop_claim_height: u64,
#[prost(bool, tag = "7")]
pub enable_claim: bool,
#[prost(uint64, tag = "8")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub start_kol_claim_height: u64,
#[prost(uint64, tag = "9")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub end_kol_claim_height: u64,
}
#[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.commitment.VestingInfo")]
pub struct VestingInfo {
#[prost(string, tag = "1")]
pub base_denom: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub vesting_denom: ::prost::alloc::string::String,
#[prost(int64, tag = "3")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub num_blocks: i64,
#[prost(string, tag = "4")]
pub vest_now_factor: ::prost::alloc::string::String,
#[prost(int64, tag = "5")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub num_max_vestings: i64,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema)]
pub enum EarnType {
AllProgram = 0,
UsdcProgram = 1,
ElysProgram = 2,
EdenProgram = 3,
EdenbProgram = 4,
LpMiningProgram = 5,
}
impl EarnType {
pub fn as_str_name(&self) -> &'static str {
match self {
EarnType::AllProgram => "ALL_PROGRAM",
EarnType::UsdcProgram => "USDC_PROGRAM",
EarnType::ElysProgram => "ELYS_PROGRAM",
EarnType::EdenProgram => "EDEN_PROGRAM",
EarnType::EdenbProgram => "EDENB_PROGRAM",
EarnType::LpMiningProgram => "LP_MINING_PROGRAM",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"ALL_PROGRAM" => Some(Self::AllProgram),
"USDC_PROGRAM" => Some(Self::UsdcProgram),
"ELYS_PROGRAM" => Some(Self::ElysProgram),
"EDEN_PROGRAM" => Some(Self::EdenProgram),
"EDENB_PROGRAM" => Some(Self::EdenbProgram),
"LP_MINING_PROGRAM" => Some(Self::LpMiningProgram),
_ => None,
}
}
}
#[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.commitment.Commitments")]
pub struct Commitments {
#[prost(string, tag = "1")]
pub creator: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "2")]
pub committed_tokens: ::prost::alloc::vec::Vec<CommittedTokens>,
#[prost(message, repeated, tag = "3")]
pub claimed: ::prost::alloc::vec::Vec<super::super::cosmos::base::v1beta1::Coin>,
#[prost(message, repeated, tag = "4")]
pub vesting_tokens: ::prost::alloc::vec::Vec<VestingTokens>,
}
#[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.commitment.Lockup")]
pub struct Lockup {
#[prost(string, tag = "1")]
pub amount: ::prost::alloc::string::String,
#[prost(uint64, tag = "2")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub unlock_timestamp: u64,
}
#[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.commitment.CommittedTokens")]
pub struct CommittedTokens {
#[prost(string, tag = "1")]
pub denom: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub amount: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "3")]
pub lockups: ::prost::alloc::vec::Vec<Lockup>,
}
#[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.commitment.VestingTokens")]
pub struct VestingTokens {
#[prost(string, tag = "1")]
pub denom: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub total_amount: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub claimed_amount: ::prost::alloc::string::String,
#[prost(int64, tag = "5")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub num_blocks: i64,
#[prost(int64, tag = "6")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub start_block: i64,
#[prost(int64, tag = "7")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub vest_started_timestamp: i64,
}
#[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.commitment.TotalSupply")]
pub struct TotalSupply {
#[prost(string, tag = "1")]
pub total_eden_supply: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub total_edenb_supply: ::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.commitment.GenesisState")]
pub struct GenesisState {
#[prost(message, optional, tag = "1")]
pub params: ::core::option::Option<Params>,
#[prost(message, repeated, tag = "2")]
pub commitments: ::prost::alloc::vec::Vec<Commitments>,
#[prost(message, repeated, tag = "3")]
pub atom_stakers: ::prost::alloc::vec::Vec<AtomStaker>,
#[prost(message, repeated, tag = "4")]
pub nft_holders: ::prost::alloc::vec::Vec<NftHolder>,
#[prost(message, repeated, tag = "5")]
pub cadets: ::prost::alloc::vec::Vec<Cadet>,
#[prost(message, repeated, tag = "6")]
pub governors: ::prost::alloc::vec::Vec<Governor>,
#[prost(message, repeated, tag = "7")]
pub kol_list: ::prost::alloc::vec::Vec<KolList>,
}
#[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.commitment.QueryParamsRequest")]
#[proto_query(
path = "/elys.commitment.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.commitment.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.commitment.QueryShowCommitmentsRequest")]
#[proto_query(
path = "/elys.commitment.Query/ShowCommitments",
response_type = QueryShowCommitmentsResponse
)]
pub struct QueryShowCommitmentsRequest {
#[prost(string, tag = "1")]
pub creator: ::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.commitment.QueryShowCommitmentsResponse")]
pub struct QueryShowCommitmentsResponse {
#[prost(message, optional, tag = "1")]
pub commitments: ::core::option::Option<Commitments>,
}
#[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.commitment.QueryNumberOfCommitmentsRequest")]
#[proto_query(
path = "/elys.commitment.Query/NumberOfCommitments",
response_type = QueryNumberOfCommitmentsResponse
)]
pub struct QueryNumberOfCommitmentsRequest {}
#[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.commitment.QueryNumberOfCommitmentsResponse")]
pub struct QueryNumberOfCommitmentsResponse {
#[prost(int64, tag = "1")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub number: i64,
}
#[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.commitment.QueryCommittedTokensLockedRequest")]
#[proto_query(
path = "/elys.commitment.Query/CommittedTokensLocked",
response_type = QueryCommittedTokensLockedResponse
)]
pub struct QueryCommittedTokensLockedRequest {
#[prost(string, tag = "1")]
pub address: ::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.commitment.QueryCommittedTokensLockedResponse")]
pub struct QueryCommittedTokensLockedResponse {
#[prost(string, tag = "1")]
pub address: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "2")]
pub locked_committed: ::prost::alloc::vec::Vec<super::super::cosmos::base::v1beta1::Coin>,
#[prost(message, repeated, tag = "3")]
pub total_committed: ::prost::alloc::vec::Vec<super::super::cosmos::base::v1beta1::Coin>,
}
#[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.commitment.QueryCommitmentVestingInfoRequest")]
#[proto_query(
path = "/elys.commitment.Query/CommitmentVestingInfo",
response_type = QueryCommitmentVestingInfoResponse
)]
pub struct QueryCommitmentVestingInfoRequest {
#[prost(string, tag = "1")]
pub address: ::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.commitment.QueryCommitmentVestingInfoResponse")]
pub struct QueryCommitmentVestingInfoResponse {
#[prost(string, tag = "1")]
pub total: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "2")]
pub vesting_details: ::prost::alloc::vec::Vec<VestingDetails>,
}
#[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.commitment.VestingDetails")]
pub struct VestingDetails {
#[prost(string, tag = "1")]
#[serde(alias = "ID")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub total_vesting: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub claimed: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub vested_so_far: ::prost::alloc::string::String,
#[prost(int64, tag = "5")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub remaining_blocks: i64,
}
#[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.commitment.QueryAirDropRequest")]
#[proto_query(
path = "/elys.commitment.Query/AirDrop",
response_type = QueryAirDropResponse
)]
pub struct QueryAirDropRequest {
#[prost(string, tag = "1")]
pub address: ::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.commitment.QueryAirDropResponse")]
pub struct QueryAirDropResponse {
#[prost(string, tag = "1")]
pub atom_staking: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub cadet: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub nft_holder: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub governor: ::prost::alloc::string::String,
#[prost(bool, tag = "5")]
pub claimed: 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.commitment.QueryTotalAirDropClaimedRequest")]
#[proto_query(
path = "/elys.commitment.Query/TotalAirdropClaimed",
response_type = QueryTotalAirDropClaimedResponse
)]
pub struct QueryTotalAirDropClaimedRequest {}
#[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.commitment.QueryTotalAirDropClaimedResponse")]
pub struct QueryTotalAirDropClaimedResponse {
#[prost(string, tag = "1")]
pub total_elys_claimed: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub total_eden_claimed: ::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.commitment.QueryKolRequest")]
#[proto_query(path = "/elys.commitment.Query/Kol", response_type = QueryKolResponse)]
pub struct QueryKolRequest {
#[prost(string, tag = "1")]
pub address: ::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.commitment.QueryKolResponse")]
pub struct QueryKolResponse {
#[prost(string, tag = "1")]
pub elys_amount: ::prost::alloc::string::String,
#[prost(bool, tag = "2")]
pub claimed: bool,
#[prost(bool, tag = "3")]
pub refunded: 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.commitment.QueryTotalSupplyRequest")]
#[proto_query(
path = "/elys.commitment.Query/TotalSupply",
response_type = QueryTotalSupplyResponse
)]
pub struct QueryTotalSupplyRequest {}
#[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.commitment.QueryTotalSupplyResponse")]
pub struct QueryTotalSupplyResponse {
#[prost(string, tag = "1")]
pub total_eden: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub total_edenb: ::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.commitment.MsgCommitClaimedRewards")]
pub struct MsgCommitClaimedRewards {
#[prost(string, tag = "1")]
pub creator: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub amount: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
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.commitment.MsgCommitClaimedRewardsResponse")]
pub struct MsgCommitClaimedRewardsResponse {}
#[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.commitment.MsgUncommitTokens")]
pub struct MsgUncommitTokens {
#[prost(string, tag = "1")]
pub creator: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub amount: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
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.commitment.MsgUncommitTokensResponse")]
pub struct MsgUncommitTokensResponse {}
#[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.commitment.MsgVest")]
pub struct MsgVest {
#[prost(string, tag = "1")]
pub creator: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub amount: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
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.commitment.MsgVestResponse")]
pub struct MsgVestResponse {}
#[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.commitment.MsgCancelVest")]
pub struct MsgCancelVest {
#[prost(string, tag = "1")]
pub creator: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub amount: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
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.commitment.MsgCancelVestResponse")]
pub struct MsgCancelVestResponse {}
#[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.commitment.MsgClaimVesting")]
pub struct MsgClaimVesting {
#[prost(string, tag = "1")]
pub sender: ::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.commitment.MsgClaimVestingResponse")]
pub struct MsgClaimVestingResponse {}
#[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.commitment.MsgVestNow")]
pub struct MsgVestNow {
#[prost(string, tag = "1")]
pub creator: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub amount: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
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.commitment.MsgVestNowResponse")]
pub struct MsgVestNowResponse {}
#[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.commitment.MsgUpdateVestingInfo")]
pub struct MsgUpdateVestingInfo {
#[prost(string, tag = "1")]
pub authority: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub base_denom: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub vesting_denom: ::prost::alloc::string::String,
#[prost(int64, tag = "4")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub num_blocks: i64,
#[prost(int64, tag = "5")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub vest_now_factor: i64,
#[prost(int64, tag = "6")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub num_max_vestings: i64,
}
#[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.commitment.MsgUpdateVestingInfoResponse")]
pub struct MsgUpdateVestingInfoResponse {}
#[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.commitment.MsgUpdateEnableVestNow")]
pub struct MsgUpdateEnableVestNow {
#[prost(string, tag = "1")]
pub authority: ::prost::alloc::string::String,
#[prost(bool, tag = "2")]
pub enable_vest_now: 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.commitment.MsgUpdateEnableVestNowResponse")]
pub struct MsgUpdateEnableVestNowResponse {}
#[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.commitment.MsgVestLiquid")]
pub struct MsgVestLiquid {
#[prost(string, tag = "1")]
pub creator: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub amount: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
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.commitment.MsgVestLiquidResponse")]
pub struct MsgVestLiquidResponse {}
#[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.commitment.MsgStake")]
pub struct MsgStake {
#[prost(string, tag = "1")]
pub creator: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub amount: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub asset: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub validator_address: ::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.commitment.MsgStakeResponse")]
pub struct MsgStakeResponse {
#[prost(uint64, tag = "1")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub code: u64,
#[prost(string, tag = "2")]
pub result: ::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.commitment.MsgUnstake")]
pub struct MsgUnstake {
#[prost(string, tag = "1")]
pub creator: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub amount: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub asset: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub validator_address: ::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.commitment.MsgUnstakeResponse")]
pub struct MsgUnstakeResponse {
#[prost(uint64, tag = "1")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub code: u64,
#[prost(string, tag = "2")]
pub result: ::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.commitment.MsgClaimAirdrop")]
pub struct MsgClaimAirdrop {
#[prost(string, tag = "1")]
pub claim_address: ::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.commitment.MsgClaimAirdropResponse")]
pub struct MsgClaimAirdropResponse {
#[prost(string, tag = "1")]
pub elys_amount: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub eden_amount: ::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.commitment.MsgClaimKol")]
pub struct MsgClaimKol {
#[prost(string, tag = "1")]
pub claim_address: ::prost::alloc::string::String,
#[prost(bool, tag = "2")]
pub refund: 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.commitment.MsgClaimKolResponse")]
pub struct MsgClaimKolResponse {
#[prost(string, tag = "1")]
pub elys_amount: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub vested_elys_amount: ::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.commitment.MsgUpdateAirdropParams")]
pub struct MsgUpdateAirdropParams {
#[prost(string, tag = "1")]
pub authority: ::prost::alloc::string::String,
#[prost(bool, tag = "2")]
pub enable_claim: bool,
#[prost(uint64, tag = "3")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub start_airdrop_claim_height: u64,
#[prost(uint64, tag = "4")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub end_airdrop_claim_height: u64,
#[prost(uint64, tag = "5")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub start_kol_claim_height: u64,
#[prost(uint64, tag = "6")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub end_kol_claim_height: u64,
}
#[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.commitment.MsgUpdateAirdropParamsResponse")]
pub struct MsgUpdateAirdropParamsResponse {}
pub struct CommitmentQuerier<'a, Q: cosmwasm_std::CustomQuery> {
querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>,
}
impl<'a, Q: cosmwasm_std::CustomQuery> CommitmentQuerier<'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 show_commitments(
&self,
creator: ::prost::alloc::string::String,
) -> Result<QueryShowCommitmentsResponse, cosmwasm_std::StdError> {
QueryShowCommitmentsRequest { creator }.query(self.querier)
}
pub fn committed_tokens_locked(
&self,
address: ::prost::alloc::string::String,
) -> Result<QueryCommittedTokensLockedResponse, cosmwasm_std::StdError> {
QueryCommittedTokensLockedRequest { address }.query(self.querier)
}
pub fn number_of_commitments(
&self,
) -> Result<QueryNumberOfCommitmentsResponse, cosmwasm_std::StdError> {
QueryNumberOfCommitmentsRequest {}.query(self.querier)
}
pub fn commitment_vesting_info(
&self,
address: ::prost::alloc::string::String,
) -> Result<QueryCommitmentVestingInfoResponse, cosmwasm_std::StdError> {
QueryCommitmentVestingInfoRequest { address }.query(self.querier)
}
pub fn air_drop(
&self,
address: ::prost::alloc::string::String,
) -> Result<QueryAirDropResponse, cosmwasm_std::StdError> {
QueryAirDropRequest { address }.query(self.querier)
}
pub fn total_airdrop_claimed(
&self,
) -> Result<QueryTotalAirDropClaimedResponse, cosmwasm_std::StdError> {
QueryTotalAirDropClaimedRequest {}.query(self.querier)
}
pub fn kol(
&self,
address: ::prost::alloc::string::String,
) -> Result<QueryKolResponse, cosmwasm_std::StdError> {
QueryKolRequest { address }.query(self.querier)
}
pub fn total_supply(&self) -> Result<QueryTotalSupplyResponse, cosmwasm_std::StdError> {
QueryTotalSupplyRequest {}.query(self.querier)
}
}