Skip to content

Latest commit

 

History

History
78 lines (62 loc) · 3.48 KB

06_events.md

File metadata and controls

78 lines (62 loc) · 3.48 KB

Events

The farming module emits the following events:

EndBlocker

Type Attribute Key Attribute Value
plan_terminated plan_id {planID}
plan_terminated farming_pool_address {farmingPoolAddress}
plan_terminated termination_address {terminationAddress}
rewards_allocated plan_id {planID}
rewards_allocated amount {totalAllocatedAmount}

Handlers

MsgCreateFixedAmountPlan

Type Attribute Key Attribute Value
create_fixed_amount_plan plan_id {planID}
create_fixed_amount_plan plan_name {planName}
create_fixed_amount_plan farming_pool_address {farmingPoolAddress}
create_fixed_amount_plan start_time {startTime}
create_fixed_amount_plan end_time {endTime}
create_fixed_amount_plan epoch_amount {epochAmount}
message module farming
message action create_fixed_amount_plan
message sender {senderAddress}

MsgCreateRatioPlan

Type Attribute Key Attribute Value
create_ratio_plan plan_id {planID}
create_ratio_plan plan_name {planName}
create_ratio_plan farming_pool_address {farmingPoolAddress}
create_ratio_plan start_time {startTime}
create_ratio_plan end_time {endTime}
create_ratio_plan epoch_ratio {epochRatio}
message module farming
message action create_ratio_plan
message sender {senderAddress}

MsgStake

Type Attribute Key Attribute Value
stake farmer {farmer}
stake staking_coins {stakingCoins}
message module farming
message action stake
message sender {senderAddress}

MsgUnstake

Type Attribute Key Attribute Value
unstake farmer {farmer}
unstake unstaking_coins {unstakingCoins}
message module farming
message action unstake
message sender {senderAddress}

MsgHarvest

Type Attribute Key Attribute Value
harvest farmer {farmer}
harvest reward_coins {rewardCoins}
message module farming
message action harvest
message sender {senderAddress}

MsgAdvanceEpoch

This message is for testing purpose. It is only available when you build farmingd binary by make install-testing command.