Get desktop application:
View/edit binary Protocol Buffers messages
Msg defines the farming Msg service.
AdvanceEpoch defines a method for advancing epoch by one, just for testing purpose and shouldn't be used in real world
MsgAdvanceEpoch defines a message to advance epoch by one.
requester defines the bech32-encoded address of the requester
MsgAdvanceEpochResponse defines the Msg/AdvanceEpoch response type.
(message has no fields)
CreateFixedAmountPlan defines a method for creating a new fixed amount farming plan
MsgCreateFixedAmountPlan defines a SDK message for creating a new fixed amount farming plan.
name specifies the name for the plan
creator defines the bech32-encoded address of the creator for the private plan, termination address is also set to this creator.
staking_coin_weights specifies coins weight for the plan
start_time specifies the start time of the plan
end_time specifies the end time of the plan
epoch_amount specifies the distributing amount for each epoch
MsgCreateFixedAmountPlanResponse defines the MsgCreateFixedAmountPlanResponse response type.
(message has no fields)
CreateRatioPlan defines a method for creating a new ratio farming plan
MsgCreateRatioPlan defines a SDK message for creating a new ratio farming plan.
name specifies the name for the plan
creator defines the bech32-encoded address of the creator for the private plan, termination address is also set to this creator.
staking_coin_weights specifies coins weight for the plan
start_time specifies the start time of the plan
end_time specifies the end time of the plan
epoch_ratio specifies the distributing amount by ratio
MsgCreateRatioPlanResponse defines the Msg/MsgCreateRatioPlanResponse response type.
(message has no fields)
Harvest defines a method for claiming farming rewards
MsgHarvest defines a SDK message for claiming rewards from the farming plan.
farmer defines the bech32-encoded address of the farmer
staking_coin_denoms is the set of denoms of staked coins as a source of the reward for harvesting
MsgHarvestResponse defines the Msg/MsgHarvestResponse response type.
(message has no fields)
RemovePlan defines a method for removing a terminated plan.
MsgRemovePlan defines a message for removing a terminated plan.
MsgRemovePlanResponse defines the Msg/RemovePlan response type.
(message has no fields)
Stake defines a method for staking coins into the farming plan
MsgStake defines a SDK message for staking coins into the farming plan.
farmer defines the bech32-encoded address of the farmer
staking_coins specifies coins to stake
MsgStakeResponse defines the Msg/MsgStakeResponse response type.
(message has no fields)
Unstake defines a method for unstaking coins from the farming plan
MsgUnstake defines a SDK message for performing unstaking of coins from the farming plan.
farmer defines the bech32-encoded address of the farmer
unstaking_coins specifies coins to stake
MsgUnstakeResponse defines the Msg/MsgUnstakeResponse response type.
(message has no fields)
Query defines the gRPC query service for the farming module.
CurrentEpochDays returns current epoch days.
QueryCurrentEpochDaysRequest is the request type for the Query/CurrentEpochDays RPC method.
(message has no fields)
QueryCurrentEpochDaysResponse is the response type for the Query/CurrentEpochDays RPC method.
HistoricalRewards returns HistoricalRewards records for a staking coin denom.
QueryHistoricalRewardsRequest is the request type for the Query/HistoricalRewards RPC method.
QueryHistoricalRewardsResponse is the response type for the Query/HistoricalRewards RPC method.
Params returns parameters of the farming module.
QueryParamsRequest is the request type for the Query/Params RPC method.
(message has no fields)
QueryParamsResponse is the response type for the Query/Params RPC method.
Plan returns a specific plan.
QueryPlanRequest is the request type for the Query/Plan RPC method.
QueryPlanResponse is the response type for the Query/Plan RPC method.
Plans returns all plans.
QueryPlansRequest is the request type for the Query/Plans RPC method.
QueryPlansResponse is the response type for the Query/Plans RPC method.
plans are the existing plans
pagination defines the pagination in the response.
QueryPositionRequest is the request type for the Query/Position RPC method.
QueryPositionResponse is the response type for the Query/Position RPC method.
QueryStakings returns all queued stakings by a farmer.
QueryQueuedStakingsRequest is the request type for the Query/QueuedStakings RPC method.
QueryQueuedStakingsResponse is the response type for the Query/QueuedStakings RPC method.
Rewards returns rewards for a farmer
QueryRewardsRequest is the request type for the Query/Rewards RPC method.
QueryRewardsResponse is the response type for the Query/Rewards RPC method.
Stakings returns all stakings by a farmer.
QueryStakingsRequest is the request type for the Query/Stakings RPC method.
QueryStakingsResponse is the response type for the Query/Stakings RPC method.
TotalStakings returns total staking amount for a staking coin denom
QueryTotalStakingsRequest is the request type for the Query/TotalStakings RPC method.
QueryTotalStakingsResponse is the response type for the Query/TotalStakings RPC method.
UnharvestedRewards returns unharvested rewards for a farmer
QueryUnharvestedRewardsRequest is the request type for the Query/UnharvestedRewards RPC method.
QueryUnharvestedRewardsResponse is the response type for the Query/UnharvestedRewards RPC method.
AddPlanRequest details a proposal for creating a public plan.
Used in:
name specifies the plan name for display
farming_pool_address defines the bech32-encoded address of the farming pool
termination_address defines the bech32-encoded address that terminates plan when the plan ends after the end time, the balance of farming pool address is transferred to the termination address
staking_coin_weights specifies coin weights for the plan
start_time specifies the start time of the plan
end_time specifies the end time of the plan
epoch_amount specifies the distributing amount for each epoch
epoch_ratio specifies the distributing amount by ratio
AddressType enumerates the available types of a address.
the 32 bytes length address type of ADR 028.
the default 20 bytes length address type.
BasePlan defines a base plan type and contains the required fields for basic farming plan functionality. Any custom farming plan type must extend this type for additional functionality (for example, fixed amount plan, ratio plan).
Used in: ,
id specifies index of the farming plan
name specifies the name for the plan
type specifies the plan type; type 0 is public and 1 is private public plan must be created through governance proposal and private plan is created by account
farming_pool_address defines the bech32-encoded address of the farming pool
termination_address defines the Bech32-encoded address that terminates the plan when the plan ends after the end time, the balance of the farming pool address is transferred to the termination address
staking_coin_weights specifies the coin weights for the plan
start_time specifies the start time of the plan
end_time specifies the end time of the plan
terminated indicates whether the plan has been terminated or not
last_distribution_time specifies the last time a distribution occurred
distributed_coins specifies the total coins distributed by this plan
CurrentEpochRecord is used for import/export via genesis json.
Used in:
DeletePlanRequest details a proposal for deleting an existing public plan.
Used in:
plan_id specifies index of the farming plan
FixedAmountPlan defines a fixed amount plan that distributes a fixed amount of coins for every epoch.
epoch_amount specifies the distributing amount for each epoch
GenesisState defines the farming module's genesis state.
params defines all the parameters for the farming module
plan_records defines the plan records used for genesis state
reward_pool_coins specifies balance of the reward pool to be distributed in the plans this param is needed for import/export validation
last_epoch_time specifies the last executed epoch time of the plans
current_epoch_days specifies the epoch used when allocating farming rewards in end blocker
HistoricalRewards defines the cumulative unit rewards for a given staking coin denom and an epoch number.
Used in:
HistoricalRewardsRecord is used for import/export via genesis json.
Used in:
Used in:
ModifyPlanRequest details a proposal for modifying the existing public plan.
Used in:
plan_id specifies index of the farming plan
name specifies the plan name for display
farming_pool_address defines the bech32-encoded address of the farming pool
termination_address defines the bech32-encoded address that terminates plan when the plan ends after the end time, the balance of farming pool address is transferred to the termination address
staking_coin_weights specifies coin weights for the plan
start_time specifies the start time of the plan
end_time specifies the end time of the plan
epoch_amount specifies the distributing amount for each epoch
epoch_ratio specifies the distributing amount by ratio
OutstandingRewards represents outstanding (un-withdrawn) rewards for a staking coin denom.
Used in:
OutstandingRewardsRecord is used for import/export via genesis json.
Used in:
Params defines the set of params for the farming module.
Used in: ,
private_plan_creation_fee specifies the fee for plan creation this fee prevents from spamming and is collected in the community pool
next_epoch_days is the epoch length in number of days it updates internal state called CurrentEpochDays that is used to process staking and reward distribution in end blocker
farming_fee_collector is the module account address to collect fees within the farming module
delayed_staking_gas_fee is used to impose gas fee for the delayed staking
max_num_private_plans is the maximum number of active private plans
PlanRecord is used for import/export via genesis json.
Used in:
plan specifies the plan interface; it can be FixedAmountPlan or RatioPlan
farming_pool_coins specifies balance of the farming pool for the plan this param is needed for import/export validation
PlanType enumerates the valid types of a plan.
Used in:
PLAN_TYPE_UNSPECIFIED defines the default plan type.
PLAN_TYPE_PUBLIC defines the public plan type.
PLAN_TYPE_PRIVATE defines the private plan type.
PublicPlanProposal defines a public farming plan governance proposal that receives one of the following requests: A request that creates a public farming plan, a request that updates the plan, and a request that deletes the plan. For public plan creation, depending on which field is passed, either epoch amount or epoch ratio, it creates a fixed amount plan or ratio plan.
title specifies the title of the plan
description specifies the description of the plan
add_plan_requests specifies AddPlanRequest object
modify_plan_requests specifies ModifyPlanRequest object
delete_plan_requests specifies DeletePlanRequest object
QueuedStaking defines staking that is waiting in a queue.
Used in:
QueuedStakingRecord is used for import/export via genesis json.
Used in:
Used in:
RatioPlan defines a plan that distributes to farmers by ratio distribution for every epoch day.
epoch_ratio specifies the distributing amount by ratio
Used in:
Staking defines a farmer's staking information.
Used in:
StakingRecord is used for import/export via genesis json.
Used in:
Used in:
TotalStakings defines the total staking amount for a staking coin denom.
TotalStakingsRecord is used for import/export via genesis json.
Used in:
amount specifies total amount of the staking for the staking coin denom except queued staking
staking_reserve_coins specifies balance of the staking reserve account where staking and queued staking for the staking coin denom is stored this param is needed for import/export validation
UnharvestedRewards represents unharvested rewards of a farmer for a staking coin denom, which increases when there was an automatic withdrawal of rewards due to changes in staked coin amount.
Used in:
Used in:
Used in: