Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ModuleName is the name of the module ModuleName = "pdv" // StoreKey to be used when creating the KVStore StoreKey = ModuleName // RouterKey to be used for routing msgs RouterKey = ModuleName // QuerierRoute to be used for querierer msgs QuerierRoute = ModuleName )
View Source
const ( // DefaultParamspace for params keeper DefaultParamspace = ModuleName )
Variables ¶
View Source
var (
DefaultCerberusOwners = []string{}
)
View Source
var ModuleCdc = codec.New()
ModuleCdc is the codec for the module
View Source
var ParamCerberusOwnersKey = []byte("ParamCerberusOwners")
ParamCerberusKey is store's key for ParamCerberus
Functions ¶
func ParamKeyTable ¶ added in v1.0.0
ParamKeyTable type declaration for parameters
func RegisterCodec ¶
RegisterCodec registers concrete types on codec
Types ¶
type MsgDistributeRewards ¶ added in v1.1.0
type MsgDistributeRewards struct { Owner sdk.AccAddress `json:"owner"` Rewards []Reward `json:"rewards"` }
MsgDistributeRewards defines a CreatePDV message
func NewMsgDistributeRewards ¶ added in v1.1.0
func NewMsgDistributeRewards(owner sdk.AccAddress, rewards []Reward) MsgDistributeRewards
NewMsgDistributeRewards is a constructor function for MsgDistributeRewards
func (MsgDistributeRewards) GetSignBytes ¶ added in v1.1.0
func (msg MsgDistributeRewards) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgDistributeRewards) GetSigners ¶ added in v1.1.0
func (msg MsgDistributeRewards) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (MsgDistributeRewards) Route ¶ added in v1.1.0
func (msg MsgDistributeRewards) Route() string
Route should return the name of the module
func (MsgDistributeRewards) Type ¶ added in v1.1.0
func (msg MsgDistributeRewards) Type() string
Type should return the action
func (MsgDistributeRewards) ValidateBasic ¶ added in v1.1.0
func (msg MsgDistributeRewards) ValidateBasic() error
ValidateBasic runs stateless checks on the message
Click to show internal directories.
Click to hide internal directories.