farm

package
v0.0.0-...-ec6187d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	Title           string        `bson:"title"`
	Description     string        `bson:"description"`
	PoolDescription string        `bson:"pool_description"`
	LptDenom        string        `bson:"lpt_denom"`
	RewardPerBlock  []models.Coin `bson:"reward_per_block"`
	FundApplied     []models.Coin `bson:"fund_applied"`
	FundSelfBond    []models.Coin `bson:"fund_self_bond"`
}

CommunityPoolCreateFarmProposal is a gov Content type for creating a farm pool with community pool

type DocTxMsgAdjustPool

type DocTxMsgAdjustPool struct {
	PoolId           string        `bson:"pool_id"`
	AdditionalReward []models.Coin `bson:"additional_reward"`
	RewardPerBlock   []models.Coin `bson:"reward_per_block"`
	Creator          string        `bson:"creator"`
}

func (*DocTxMsgAdjustPool) BuildMsg

func (m *DocTxMsgAdjustPool) BuildMsg(v interface{})

func (*DocTxMsgAdjustPool) GetType

func (m *DocTxMsgAdjustPool) GetType() string

func (*DocTxMsgAdjustPool) HandleTxMsg

func (m *DocTxMsgAdjustPool) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocTxMsgCreatePool

type DocTxMsgCreatePool struct {
	Description    string        `bson:"description"`
	LptDenom       string        `bson:"lpt_denom"`
	StartHeight    int64         `bson:"start_height"`
	RewardPerBlock []models.Coin `bson:"reward_per_block"`
	TotalReward    []models.Coin `bson:"total_reward"`
	Editable       bool          `bson:"editable"`
	Creator        string        `bson:"creator"`
}

func (*DocTxMsgCreatePool) BuildMsg

func (m *DocTxMsgCreatePool) BuildMsg(v interface{})

func (*DocTxMsgCreatePool) GetType

func (m *DocTxMsgCreatePool) GetType() string

func (*DocTxMsgCreatePool) HandleTxMsg

func (m *DocTxMsgCreatePool) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocTxMsgCreatePoolWithCommunityPool

type DocTxMsgCreatePoolWithCommunityPool struct {
	Content        Content       `bson:"content"`
	InitialDeposit []models.Coin `bson:"initial_deposit"`
	Proposer       string        `bson:"proposer"`
}

func (*DocTxMsgCreatePoolWithCommunityPool) BuildMsg

func (m *DocTxMsgCreatePoolWithCommunityPool) BuildMsg(v interface{})

func (*DocTxMsgCreatePoolWithCommunityPool) GetType

func (*DocTxMsgCreatePoolWithCommunityPool) HandleTxMsg

func (m *DocTxMsgCreatePoolWithCommunityPool) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocTxMsgDestroyPool

type DocTxMsgDestroyPool struct {
	PoolId  string `bson:"pool_id"`
	Creator string `bson:"creator"`
}

func (*DocTxMsgDestroyPool) BuildMsg

func (m *DocTxMsgDestroyPool) BuildMsg(v interface{})

func (*DocTxMsgDestroyPool) GetType

func (m *DocTxMsgDestroyPool) GetType() string

func (*DocTxMsgDestroyPool) HandleTxMsg

func (m *DocTxMsgDestroyPool) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocTxMsgHarvest

type DocTxMsgHarvest struct {
	PoolId string `bson:"pool_id"`
	Sender string `bson:"sender"`
}

func (*DocTxMsgHarvest) BuildMsg

func (m *DocTxMsgHarvest) BuildMsg(v interface{})

func (*DocTxMsgHarvest) GetType

func (m *DocTxMsgHarvest) GetType() string

func (*DocTxMsgHarvest) HandleTxMsg

func (m *DocTxMsgHarvest) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocTxMsgStake

type DocTxMsgStake struct {
	PoolId string      `bson:"pool_id"`
	Amount models.Coin `bson:"amount"`
	Sender string      `bson:"sender"`
}

func (*DocTxMsgStake) BuildMsg

func (m *DocTxMsgStake) BuildMsg(v interface{})

func (*DocTxMsgStake) GetType

func (m *DocTxMsgStake) GetType() string

func (*DocTxMsgStake) HandleTxMsg

func (m *DocTxMsgStake) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocTxMsgUnstake

type DocTxMsgUnstake struct {
	PoolId string      `bson:"pool_id"`
	Amount models.Coin `bson:"amount"`
	Sender string      `bson:"sender"`
}

func (*DocTxMsgUnstake) BuildMsg

func (m *DocTxMsgUnstake) BuildMsg(v interface{})

func (*DocTxMsgUnstake) GetType

func (m *DocTxMsgUnstake) GetType() string

func (*DocTxMsgUnstake) HandleTxMsg

func (m *DocTxMsgUnstake) HandleTxMsg(v SdkMsg) MsgDocInfo

type FarmClient

type FarmClient struct {
}

func NewClient

func NewClient() FarmClient

func (FarmClient) HandleTxMsg

func (farm FarmClient) HandleTxMsg(v types.Msg) (MsgDocInfo, bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL