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.masterchef.ExternalIncentive")]
pub struct ExternalIncentive {
#[prost(uint64, tag = "1")]
#[serde(alias = "ID")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub id: u64,
#[prost(string, tag = "2")]
pub reward_denom: ::prost::alloc::string::String,
#[prost(uint64, tag = "3")]
#[serde(alias = "poolID")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub pool_id: u64,
#[prost(int64, tag = "4")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub from_block: i64,
#[prost(int64, tag = "5")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub to_block: i64,
#[prost(string, tag = "6")]
pub amount_per_block: ::prost::alloc::string::String,
#[prost(string, tag = "7")]
pub apr: ::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.masterchef.LegacyIncentiveInfo")]
pub struct LegacyIncentiveInfo {
#[prost(string, tag = "1")]
pub eden_amount_per_year: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub distribution_start_block: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub total_blocks_per_year: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub blocks_distributed: ::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.masterchef.IncentiveInfo")]
pub struct IncentiveInfo {
#[prost(string, tag = "1")]
pub eden_amount_per_year: ::prost::alloc::string::String,
#[prost(int64, tag = "2")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub blocks_distributed: 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.masterchef.PoolInfo")]
pub struct PoolInfo {
#[prost(uint64, tag = "1")]
#[serde(alias = "poolID")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub pool_id: u64,
#[prost(string, tag = "2")]
pub reward_wallet: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub multiplier: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub eden_apr: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub dex_apr: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub gas_apr: ::prost::alloc::string::String,
#[prost(string, tag = "7")]
pub external_incentive_apr: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "8")]
pub external_reward_denoms: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(bool, tag = "9")]
pub enable_eden_rewards: 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.masterchef.LegacyPoolInfo")]
pub struct LegacyPoolInfo {
#[prost(uint64, tag = "1")]
#[serde(alias = "poolID")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub pool_id: u64,
#[prost(string, tag = "2")]
pub reward_wallet: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub multiplier: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub eden_apr: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub dex_apr: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub gas_apr: ::prost::alloc::string::String,
#[prost(string, tag = "7")]
pub external_incentive_apr: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "8")]
pub external_reward_denoms: ::prost::alloc::vec::Vec<::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.masterchef.PoolRewardInfo")]
pub struct PoolRewardInfo {
#[prost(uint64, tag = "1")]
#[serde(alias = "poolID")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub pool_id: u64,
#[prost(string, tag = "2")]
pub reward_denom: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub pool_acc_reward_per_share: ::prost::alloc::string::String,
#[prost(uint64, tag = "4")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub last_updated_block: 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.masterchef.UserRewardInfo")]
pub struct UserRewardInfo {
#[prost(string, tag = "1")]
pub user: ::prost::alloc::string::String,
#[prost(uint64, tag = "2")]
#[serde(alias = "poolID")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub pool_id: u64,
#[prost(string, tag = "3")]
pub reward_denom: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub reward_debt: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub reward_pending: ::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.masterchef.PoolRewardsAccum")]
pub struct PoolRewardsAccum {
#[prost(uint64, tag = "1")]
#[serde(alias = "poolID")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub pool_id: u64,
#[prost(int64, tag = "2")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub block_height: i64,
#[prost(uint64, tag = "3")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub timestamp: u64,
#[prost(string, tag = "4")]
pub dex_reward: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub gas_reward: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub eden_reward: ::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.masterchef.LegacyParams")]
pub struct LegacyParams {
#[prost(message, optional, tag = "1")]
pub lp_incentives: ::core::option::Option<LegacyIncentiveInfo>,
#[prost(string, tag = "2")]
pub reward_portion_for_lps: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub reward_portion_for_stakers: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub max_eden_reward_apr_lps: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "5")]
pub supported_reward_denoms: ::prost::alloc::vec::Vec<SupportedRewardDenom>,
#[prost(string, tag = "6")]
pub protocol_revenue_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.masterchef.Params")]
pub struct Params {
#[prost(message, optional, tag = "1")]
pub lp_incentives: ::core::option::Option<IncentiveInfo>,
#[prost(string, tag = "2")]
pub reward_portion_for_lps: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub reward_portion_for_stakers: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub max_eden_reward_apr_lps: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "5")]
pub supported_reward_denoms: ::prost::alloc::vec::Vec<SupportedRewardDenom>,
#[prost(string, tag = "6")]
pub protocol_revenue_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.masterchef.SupportedRewardDenom")]
pub struct SupportedRewardDenom {
#[prost(string, tag = "1")]
pub denom: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub min_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.masterchef.GenesisState")]
pub struct GenesisState {
#[prost(message, optional, tag = "1")]
pub params: ::core::option::Option<Params>,
#[prost(message, repeated, tag = "2")]
pub external_incentives: ::prost::alloc::vec::Vec<ExternalIncentive>,
#[prost(uint64, tag = "3")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub external_incentive_index: u64,
#[prost(message, repeated, tag = "4")]
pub pool_infos: ::prost::alloc::vec::Vec<PoolInfo>,
#[prost(message, repeated, tag = "5")]
pub pool_reward_infos: ::prost::alloc::vec::Vec<PoolRewardInfo>,
#[prost(message, repeated, tag = "6")]
pub user_reward_infos: ::prost::alloc::vec::Vec<UserRewardInfo>,
#[prost(message, repeated, tag = "7")]
pub pool_rewards_accum: ::prost::alloc::vec::Vec<PoolRewardsAccum>,
}
#[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.masterchef.FeeInfo")]
pub struct FeeInfo {
#[prost(string, tag = "1")]
pub gas_lp: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub gas_stakers: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub gas_protocol: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub dex_lp: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub dex_stakers: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub dex_protocol: ::prost::alloc::string::String,
#[prost(string, tag = "7")]
pub perp_lp: ::prost::alloc::string::String,
#[prost(string, tag = "8")]
pub perp_stakers: ::prost::alloc::string::String,
#[prost(string, tag = "9")]
pub perp_protocol: ::prost::alloc::string::String,
#[prost(string, tag = "10")]
pub eden_lp: ::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.masterchef.QueryAllLiquidityPoolTVLRequest")]
#[proto_query(
path = "/elys.masterchef.Query/AllLiquidityPoolTVL",
response_type = QueryAllLiquidityPoolTvlResponse
)]
pub struct QueryAllLiquidityPoolTvlRequest {}
#[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.masterchef.QueryAllLiquidityPoolTVLResponse")]
pub struct QueryAllLiquidityPoolTvlResponse {
#[prost(string, tag = "1")]
pub total: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub pools: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub usdc_staking: ::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.masterchef.QueryChainTVLRequest")]
#[proto_query(
path = "/elys.masterchef.Query/ChainTVL",
response_type = QueryChainTvlResponse
)]
pub struct QueryChainTvlRequest {}
#[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.masterchef.QueryChainTVLResponse")]
pub struct QueryChainTvlResponse {
#[prost(string, tag = "1")]
pub total: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub pools: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub usdc_staking: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub staked_elys: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub staked_eden: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "6")]
pub net_stakings: ::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.masterchef.QueryParamsRequest")]
#[proto_query(
path = "/elys.masterchef.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.masterchef.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.masterchef.QueryExternalIncentiveRequest")]
#[proto_query(
path = "/elys.masterchef.Query/ExternalIncentive",
response_type = QueryExternalIncentiveResponse
)]
pub struct QueryExternalIncentiveRequest {
#[prost(uint64, tag = "1")]
#[serde(alias = "ID")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub id: 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.masterchef.QueryExternalIncentiveResponse")]
pub struct QueryExternalIncentiveResponse {
#[prost(message, optional, tag = "1")]
pub external_incentive: ::core::option::Option<ExternalIncentive>,
}
#[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.masterchef.QueryPoolInfoRequest")]
#[proto_query(
path = "/elys.masterchef.Query/PoolInfo",
response_type = QueryPoolInfoResponse
)]
pub struct QueryPoolInfoRequest {
#[prost(uint64, tag = "1")]
#[serde(alias = "poolID")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub pool_id: 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.masterchef.QueryPoolInfoResponse")]
pub struct QueryPoolInfoResponse {
#[prost(message, optional, tag = "1")]
pub pool_info: ::core::option::Option<PoolInfo>,
}
#[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.masterchef.QueryPoolRewardInfoRequest")]
#[proto_query(
path = "/elys.masterchef.Query/PoolRewardInfo",
response_type = QueryPoolRewardInfoResponse
)]
pub struct QueryPoolRewardInfoRequest {
#[prost(uint64, tag = "1")]
#[serde(alias = "poolID")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub pool_id: u64,
#[prost(string, tag = "2")]
pub reward_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.masterchef.QueryPoolRewardInfoResponse")]
pub struct QueryPoolRewardInfoResponse {
#[prost(message, optional, tag = "1")]
pub pool_reward_info: ::core::option::Option<PoolRewardInfo>,
}
#[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.masterchef.QueryUserRewardInfoRequest")]
#[proto_query(
path = "/elys.masterchef.Query/UserRewardInfo",
response_type = QueryUserRewardInfoResponse
)]
pub struct QueryUserRewardInfoRequest {
#[prost(string, tag = "1")]
pub user: ::prost::alloc::string::String,
#[prost(uint64, tag = "2")]
#[serde(alias = "poolID")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub pool_id: u64,
#[prost(string, tag = "3")]
pub reward_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.masterchef.QueryUserRewardInfoResponse")]
pub struct QueryUserRewardInfoResponse {
#[prost(message, optional, tag = "1")]
pub user_reward_info: ::core::option::Option<UserRewardInfo>,
}
#[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.masterchef.QueryUserPendingRewardRequest")]
#[proto_query(
path = "/elys.masterchef.Query/UserPendingReward",
response_type = QueryUserPendingRewardResponse
)]
pub struct QueryUserPendingRewardRequest {
#[prost(string, tag = "1")]
pub user: ::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.masterchef.RewardInfo")]
pub struct RewardInfo {
#[prost(uint64, tag = "1")]
#[serde(alias = "poolID")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub pool_id: u64,
#[prost(message, repeated, tag = "2")]
pub reward: ::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.masterchef.QueryUserPendingRewardResponse")]
pub struct QueryUserPendingRewardResponse {
#[prost(message, repeated, tag = "1")]
pub rewards: ::prost::alloc::vec::Vec<RewardInfo>,
#[prost(message, repeated, tag = "2")]
pub total_rewards: ::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.masterchef.QueryStableStakeAprRequest")]
#[proto_query(
path = "/elys.masterchef.Query/StableStakeApr",
response_type = QueryStableStakeAprResponse
)]
pub struct QueryStableStakeAprRequest {
#[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.masterchef.QueryStableStakeAprResponse")]
pub struct QueryStableStakeAprResponse {
#[prost(string, tag = "1")]
pub apr: ::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.masterchef.QueryPoolAprsRequest")]
#[proto_query(
path = "/elys.masterchef.Query/PoolAprs",
response_type = QueryPoolAprsResponse
)]
pub struct QueryPoolAprsRequest {
#[prost(uint64, repeated, tag = "1")]
#[serde(alias = "poolIDs")]
#[serde(
serialize_with = "crate::serde::as_str_vec::serialize",
deserialize_with = "crate::serde::as_str_vec::deserialize"
)]
pub pool_ids: ::prost::alloc::vec::Vec<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.masterchef.QueryPoolAprsResponse")]
pub struct QueryPoolAprsResponse {
#[prost(message, repeated, tag = "1")]
pub data: ::prost::alloc::vec::Vec<PoolApr>,
}
#[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.masterchef.PoolApr")]
pub struct PoolApr {
#[prost(uint64, tag = "1")]
#[serde(alias = "poolID")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub pool_id: u64,
#[prost(string, tag = "2")]
pub eden_apr: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub usdc_dex_apr: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub usdc_gas_apr: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub total_apr: ::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.masterchef.QueryShowFeeInfoRequest")]
#[proto_query(
path = "/elys.masterchef.Query/ShowFeeInfo",
response_type = QueryShowFeeInfoResponse
)]
pub struct QueryShowFeeInfoRequest {
#[prost(string, tag = "1")]
pub date: ::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.masterchef.QueryShowFeeInfoResponse")]
pub struct QueryShowFeeInfoResponse {
#[prost(message, optional, tag = "1")]
pub fee_info: ::core::option::Option<FeeInfo>,
}
#[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.masterchef.QueryListFeeInfoRequest")]
#[proto_query(
path = "/elys.masterchef.Query/ListFeeInfo",
response_type = QueryListFeeInfoResponse
)]
pub struct QueryListFeeInfoRequest {}
#[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.masterchef.QueryListFeeInfoResponse")]
pub struct QueryListFeeInfoResponse {
#[prost(message, repeated, tag = "1")]
pub fee_info: ::prost::alloc::vec::Vec<FeeInfo>,
}
#[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.masterchef.QueryAprRequest")]
#[proto_query(path = "/elys.masterchef.Query/Apr", response_type = QueryAprResponse)]
pub struct QueryAprRequest {
#[prost(enumeration = "super::commitment::EarnType", tag = "1")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub withdraw_type: i32,
#[prost(string, tag = "2")]
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.masterchef.QueryAprResponse")]
pub struct QueryAprResponse {
#[prost(string, tag = "1")]
pub apr: ::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.masterchef.QueryAprsRequest")]
#[proto_query(path = "/elys.masterchef.Query/Aprs", response_type = QueryAprsResponse)]
pub struct QueryAprsRequest {}
#[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.masterchef.QueryAprsResponse")]
pub struct QueryAprsResponse {
#[prost(string, tag = "1")]
pub usdc_apr_usdc: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub eden_apr_usdc: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub usdc_apr_edenb: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub eden_apr_edenb: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub usdc_apr_eden: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub eden_apr_eden: ::prost::alloc::string::String,
#[prost(string, tag = "7")]
pub edenb_apr_eden: ::prost::alloc::string::String,
#[prost(string, tag = "8")]
pub usdc_apr_elys: ::prost::alloc::string::String,
#[prost(string, tag = "9")]
pub eden_apr_elys: ::prost::alloc::string::String,
#[prost(string, tag = "10")]
pub edenb_apr_elys: ::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.masterchef.QueryPoolRewardsRequest")]
#[proto_query(
path = "/elys.masterchef.Query/PoolRewards",
response_type = QueryPoolRewardsResponse
)]
pub struct QueryPoolRewardsRequest {
#[prost(uint64, repeated, tag = "1")]
#[serde(alias = "poolIDs")]
#[serde(
serialize_with = "crate::serde::as_str_vec::serialize",
deserialize_with = "crate::serde::as_str_vec::deserialize"
)]
pub pool_ids: ::prost::alloc::vec::Vec<u64>,
#[prost(message, optional, tag = "2")]
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.masterchef.PoolRewards")]
pub struct PoolRewards {
#[prost(uint64, tag = "1")]
#[serde(alias = "poolID")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub pool_id: u64,
#[prost(string, tag = "2")]
pub rewards_usd: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "3")]
pub reward_coins: ::prost::alloc::vec::Vec<super::super::cosmos::base::v1beta1::Coin>,
#[prost(message, optional, tag = "4")]
pub eden_forward: ::core::option::Option<super::super::cosmos::base::v1beta1::Coin>,
#[prost(string, tag = "5")]
pub rewards_usd_apr: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub external_rewards_apr: ::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.masterchef.QueryPoolRewardsResponse")]
pub struct QueryPoolRewardsResponse {
#[prost(message, repeated, tag = "1")]
pub pools: ::prost::alloc::vec::Vec<PoolRewards>,
}
#[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.masterchef.MsgAddExternalRewardDenom")]
pub struct MsgAddExternalRewardDenom {
#[prost(string, tag = "1")]
pub authority: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub reward_denom: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub min_amount: ::prost::alloc::string::String,
#[prost(bool, tag = "4")]
pub supported: 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.masterchef.MsgAddExternalRewardDenomResponse")]
pub struct MsgAddExternalRewardDenomResponse {}
#[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.masterchef.MsgAddExternalIncentive")]
pub struct MsgAddExternalIncentive {
#[prost(string, tag = "1")]
pub sender: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub reward_denom: ::prost::alloc::string::String,
#[prost(uint64, tag = "3")]
#[serde(alias = "poolID")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub pool_id: u64,
#[prost(int64, tag = "4")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub from_block: i64,
#[prost(int64, tag = "5")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub to_block: i64,
#[prost(string, tag = "6")]
pub amount_per_block: ::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.masterchef.MsgAddExternalIncentiveResponse")]
pub struct MsgAddExternalIncentiveResponse {}
#[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.masterchef.MsgUpdateParams")]
pub struct MsgUpdateParams {
#[prost(string, tag = "1")]
pub authority: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
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.masterchef.MsgUpdateParamsResponse")]
pub struct MsgUpdateParamsResponse {}
#[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.masterchef.PoolMultiplier")]
pub struct PoolMultiplier {
#[prost(uint64, tag = "1")]
#[serde(alias = "poolID")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub pool_id: u64,
#[prost(string, tag = "2")]
pub multiplier: ::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.masterchef.MsgUpdatePoolMultipliers")]
pub struct MsgUpdatePoolMultipliers {
#[prost(string, tag = "1")]
pub authority: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "2")]
pub pool_multipliers: ::prost::alloc::vec::Vec<PoolMultiplier>,
}
#[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.masterchef.MsgUpdatePoolMultipliersResponse")]
pub struct MsgUpdatePoolMultipliersResponse {}
#[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.masterchef.MsgClaimRewards")]
pub struct MsgClaimRewards {
#[prost(string, tag = "1")]
pub sender: ::prost::alloc::string::String,
#[prost(uint64, repeated, tag = "2")]
#[serde(alias = "poolIDs")]
#[serde(
serialize_with = "crate::serde::as_str_vec::serialize",
deserialize_with = "crate::serde::as_str_vec::deserialize"
)]
pub pool_ids: ::prost::alloc::vec::Vec<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.masterchef.MsgClaimRewardsResponse")]
pub struct MsgClaimRewardsResponse {}
#[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.masterchef.MsgTogglePoolEdenRewards")]
pub struct MsgTogglePoolEdenRewards {
#[prost(string, tag = "1")]
pub authority: ::prost::alloc::string::String,
#[prost(uint64, tag = "2")]
#[serde(alias = "poolID")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub pool_id: u64,
#[prost(bool, tag = "3")]
pub enable: 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.masterchef.MsgTogglePoolEdenRewardsResponse")]
pub struct MsgTogglePoolEdenRewardsResponse {}
pub struct MasterchefQuerier<'a, Q: cosmwasm_std::CustomQuery> {
querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>,
}
impl<'a, Q: cosmwasm_std::CustomQuery> MasterchefQuerier<'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 external_incentive(
&self,
id: u64,
) -> Result<QueryExternalIncentiveResponse, cosmwasm_std::StdError> {
QueryExternalIncentiveRequest { id }.query(self.querier)
}
pub fn pool_info(&self, pool_id: u64) -> Result<QueryPoolInfoResponse, cosmwasm_std::StdError> {
QueryPoolInfoRequest { pool_id }.query(self.querier)
}
pub fn pool_reward_info(
&self,
pool_id: u64,
reward_denom: ::prost::alloc::string::String,
) -> Result<QueryPoolRewardInfoResponse, cosmwasm_std::StdError> {
QueryPoolRewardInfoRequest {
pool_id,
reward_denom,
}
.query(self.querier)
}
pub fn user_reward_info(
&self,
user: ::prost::alloc::string::String,
pool_id: u64,
reward_denom: ::prost::alloc::string::String,
) -> Result<QueryUserRewardInfoResponse, cosmwasm_std::StdError> {
QueryUserRewardInfoRequest {
user,
pool_id,
reward_denom,
}
.query(self.querier)
}
pub fn user_pending_reward(
&self,
user: ::prost::alloc::string::String,
) -> Result<QueryUserPendingRewardResponse, cosmwasm_std::StdError> {
QueryUserPendingRewardRequest { user }.query(self.querier)
}
pub fn stable_stake_apr(
&self,
denom: ::prost::alloc::string::String,
) -> Result<QueryStableStakeAprResponse, cosmwasm_std::StdError> {
QueryStableStakeAprRequest { denom }.query(self.querier)
}
pub fn pool_aprs(
&self,
pool_ids: ::prost::alloc::vec::Vec<u64>,
) -> Result<QueryPoolAprsResponse, cosmwasm_std::StdError> {
QueryPoolAprsRequest { pool_ids }.query(self.querier)
}
pub fn show_fee_info(
&self,
date: ::prost::alloc::string::String,
) -> Result<QueryShowFeeInfoResponse, cosmwasm_std::StdError> {
QueryShowFeeInfoRequest { date }.query(self.querier)
}
pub fn list_fee_info(&self) -> Result<QueryListFeeInfoResponse, cosmwasm_std::StdError> {
QueryListFeeInfoRequest {}.query(self.querier)
}
pub fn apr(
&self,
withdraw_type: i32,
denom: ::prost::alloc::string::String,
) -> Result<QueryAprResponse, cosmwasm_std::StdError> {
QueryAprRequest {
withdraw_type,
denom,
}
.query(self.querier)
}
pub fn aprs(&self) -> Result<QueryAprsResponse, cosmwasm_std::StdError> {
QueryAprsRequest {}.query(self.querier)
}
pub fn pool_rewards(
&self,
pool_ids: ::prost::alloc::vec::Vec<u64>,
pagination: ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
) -> Result<QueryPoolRewardsResponse, cosmwasm_std::StdError> {
QueryPoolRewardsRequest {
pool_ids,
pagination,
}
.query(self.querier)
}
pub fn all_liquidity_pool_tvl(
&self,
) -> Result<QueryAllLiquidityPoolTvlResponse, cosmwasm_std::StdError> {
QueryAllLiquidityPoolTvlRequest {}.query(self.querier)
}
pub fn chain_tvl(&self) -> Result<QueryChainTvlResponse, cosmwasm_std::StdError> {
QueryChainTvlRequest {}.query(self.querier)
}
}