staking

package
v0.0.0-...-774612f Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommissionRates

type CommissionRates struct {
	Rate          string `bson:"rate"`            // the commission rate charged to delegators
	MaxRate       string `bson:"max_rate"`        // maximum commission rate which validator can ever charge
	MaxChangeRate string `bson:"max_change_rate"` // maximum daily increase of the validator commission
}

type Description

type Description struct {
	Moniker         string `bson:"moniker"`
	Identity        string `bson:"identity"`
	Website         string `bson:"website"`
	SecurityContact string `bson:"security_contact"`
	Details         string `bson:"details"`
}

Description

type DocMsgEditValidator

type DocMsgEditValidator struct {
	Description       Description `bson:"description"`
	ValidatorAddress  string      `bson:"validator_address"`
	CommissionRate    string      `bson:"commission_rate"`
	MinSelfDelegation string      `bson:"min_self_delegation"`
}

MsgEditValidator - struct for editing a validator

func (*DocMsgEditValidator) BuildMsg

func (m *DocMsgEditValidator) BuildMsg(txMsg interface{})

func (*DocMsgEditValidator) GetType

func (m *DocMsgEditValidator) GetType() string

func (*DocMsgEditValidator) HandleTxMsg

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

type DocTxMsgBeginRedelegate

type DocTxMsgBeginRedelegate struct {
	DelegatorAddress    string      `bson:"delegator_address"`
	ValidatorSrcAddress string      `bson:"validator_src_address"`
	ValidatorDstAddress string      `bson:"validator_dst_address"`
	Amount              models.Coin `bson:"amount"`
}

MsgDelegate - struct for bonding transactions

func (*DocTxMsgBeginRedelegate) BuildMsg

func (m *DocTxMsgBeginRedelegate) BuildMsg(txMsg interface{})

func (*DocTxMsgBeginRedelegate) GetType

func (m *DocTxMsgBeginRedelegate) GetType() string

func (*DocTxMsgBeginRedelegate) HandleTxMsg

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

type DocTxMsgBeginUnbonding

type DocTxMsgBeginUnbonding struct {
	DelegatorAddress string      `bson:"delegator_address"`
	ValidatorAddress string      `bson:"validator_address"`
	Amount           models.Coin `bson:"amount"`
}

MsgBeginUnbonding - struct for unbonding transactions

func (*DocTxMsgBeginUnbonding) BuildMsg

func (m *DocTxMsgBeginUnbonding) BuildMsg(txMsg interface{})

func (*DocTxMsgBeginUnbonding) GetType

func (m *DocTxMsgBeginUnbonding) GetType() string

func (*DocTxMsgBeginUnbonding) HandleTxMsg

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

type DocTxMsgCancelUnbondingDelegation

type DocTxMsgCancelUnbondingDelegation struct {
	DelegatorAddress string      `bson:"delegator_address"`
	ValidatorAddress string      `bson:"validator_address"`
	Amount           models.Coin `bson:"amount"`
	CreationHeight   int64       `bson:"creation_height"`
}

func (*DocTxMsgCancelUnbondingDelegation) BuildMsg

func (m *DocTxMsgCancelUnbondingDelegation) BuildMsg(txMsg interface{})

func (*DocTxMsgCancelUnbondingDelegation) GetType

func (*DocTxMsgCancelUnbondingDelegation) HandleTxMsg

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

type DocTxMsgCreateValidator

type DocTxMsgCreateValidator struct {
	Description       Description     `bson:"description"`
	Commission        CommissionRates `bson:"commission"`
	MinSelfDelegation string          `bson:"min_self_delegation"`
	DelegatorAddress  string          `bson:"delegator_address"`
	ValidatorAddress  string          `bson:"validator_address"`
	Pubkey            string          `bson:"pubkey"`
	Value             Coin            `bson:"value"`
}

MsgCreateValidator defines an SDK message for creating a new validator.

func (*DocTxMsgCreateValidator) BuildMsg

func (m *DocTxMsgCreateValidator) BuildMsg(txMsg interface{})

func (*DocTxMsgCreateValidator) GetType

func (m *DocTxMsgCreateValidator) GetType() string

func (*DocTxMsgCreateValidator) HandleTxMsg

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

type DocTxMsgDelegate

type DocTxMsgDelegate struct {
	DelegatorAddress string `bson:"delegator_address"`
	ValidatorAddress string `bson:"validator_address"`
	Amount           Coin   `bson:"amount"`
}

MsgDelegate - struct for bonding transactions

func (*DocTxMsgDelegate) BuildMsg

func (m *DocTxMsgDelegate) BuildMsg(txMsg interface{})

func (*DocTxMsgDelegate) GetType

func (m *DocTxMsgDelegate) GetType() string

func (*DocTxMsgDelegate) HandleTxMsg

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

type DocTxMsgDisableTokenizeShares

type DocTxMsgDisableTokenizeShares struct {
	DelegatorAddress string `bson:"delegator_address"`
}

func (*DocTxMsgDisableTokenizeShares) BuildMsg

func (m *DocTxMsgDisableTokenizeShares) BuildMsg(txMsg interface{})

func (*DocTxMsgDisableTokenizeShares) GetType

func (*DocTxMsgDisableTokenizeShares) HandleTxMsg

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

type DocTxMsgEnableTokenizeShares

type DocTxMsgEnableTokenizeShares struct {
	DelegatorAddress string `bson:"delegator_address"`
}

func (*DocTxMsgEnableTokenizeShares) BuildMsg

func (m *DocTxMsgEnableTokenizeShares) BuildMsg(txMsg interface{})

func (*DocTxMsgEnableTokenizeShares) GetType

func (m *DocTxMsgEnableTokenizeShares) GetType() string

func (*DocTxMsgEnableTokenizeShares) HandleTxMsg

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

type DocTxMsgRedeemTokensForShares

type DocTxMsgRedeemTokensForShares struct {
	DelegatorAddress string `bson:"delegator_address"`
	Amount           Coin   `bson:"amount"`
}

func (*DocTxMsgRedeemTokensForShares) BuildMsg

func (m *DocTxMsgRedeemTokensForShares) BuildMsg(txMsg interface{})

func (*DocTxMsgRedeemTokensForShares) GetType

func (*DocTxMsgRedeemTokensForShares) HandleTxMsg

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

type DocTxMsgTokenizeShares

type DocTxMsgTokenizeShares struct {
	DelegatorAddress    string `bson:"delegator_address"`
	ValidatorAddress    string `bson:"validator_address"`
	Amount              Coin   `bson:"amount"`
	TokenizedShareOwner string `bson:"tokenized_share_owner"`
}

func (*DocTxMsgTokenizeShares) BuildMsg

func (m *DocTxMsgTokenizeShares) BuildMsg(txMsg interface{})

func (*DocTxMsgTokenizeShares) GetType

func (m *DocTxMsgTokenizeShares) GetType() string

func (*DocTxMsgTokenizeShares) HandleTxMsg

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

type DocTxMsgTransferTokenizeShareRecord

type DocTxMsgTransferTokenizeShareRecord struct {
	TokenizeShareRecordId int64  `bson:"tokenize_share_record_id"`
	Sender                string `bson:"sender"`
	NewOwner              string `bson:"new_owner"`
}

func (*DocTxMsgTransferTokenizeShareRecord) BuildMsg

func (m *DocTxMsgTransferTokenizeShareRecord) BuildMsg(txMsg interface{})

func (*DocTxMsgTransferTokenizeShareRecord) GetType

func (*DocTxMsgTransferTokenizeShareRecord) HandleTxMsg

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

type DocTxMsgUnbondValidator

type DocTxMsgUnbondValidator struct {
	ValidatorAddress string `bson:"validator_address"`
}

func (*DocTxMsgUnbondValidator) BuildMsg

func (m *DocTxMsgUnbondValidator) BuildMsg(txMsg interface{})

func (*DocTxMsgUnbondValidator) GetType

func (m *DocTxMsgUnbondValidator) GetType() string

func (*DocTxMsgUnbondValidator) HandleTxMsg

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

type DocTxMsgValidatorBond

type DocTxMsgValidatorBond struct {
	DelegatorAddress string `bson:"delegator_address"`
	ValidatorAddress string `bson:"validator_address"`
}

func (*DocTxMsgValidatorBond) BuildMsg

func (m *DocTxMsgValidatorBond) BuildMsg(txMsg interface{})

func (*DocTxMsgValidatorBond) GetType

func (m *DocTxMsgValidatorBond) GetType() string

func (*DocTxMsgValidatorBond) HandleTxMsg

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

type StakingClient

type StakingClient struct {
}

func NewClient

func NewClient() StakingClient

func (StakingClient) HandleTxMsg

func (staking StakingClient) HandleTxMsg(v sdk.Msg) (MsgDocInfo, bool)

Jump to

Keyboard shortcuts

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