Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ModuleName is the name of the module ModuleName = "pofe" // StoreKey to be used when creating the KVStore StoreKey = ModuleName // RouterKey to be used for routing msgs RouterKey = ModuleName // QuerierRoute to be used for querier msgs QuerierRoute = ModuleName )
View Source
const (
AttributeValueCategory = ModuleName
)
pofe module event types
View Source
const (
ClaimPrefix = "claim-"
)
View Source
const (
DefaultParamspace = ModuleName
)
Default parameter namespace
View Source
const QueryGetClaim = "get-claim"
View Source
const QueryListClaim = "list-claim"
Variables ¶
View Source
var (
ErrInvalid = sdkerrors.Register(ModuleName, 1, "custom error message")
)
View Source
var ModuleCdc *codec.Codec
ModuleCdc defines the module codec
Functions ¶
func RegisterCodec ¶
RegisterCodec registers concrete types on codec
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
ValidateGenesis validates the pofe genesis parameters
Types ¶
type Claim ¶
type Claim struct { Creator sdk.AccAddress `json:"creator" yaml:"creator"` Proof string `json:"proof" yaml:"proof"` }
type GenesisState ¶
type GenesisState struct { }
GenesisState - all pofe state that must be provided at genesis
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
DefaultGenesisState - default GenesisState used by Cosmos Hub
func NewGenesisState ¶
func NewGenesisState() GenesisState
NewGenesisState creates a new GenesisState object
type MsgCreateClaim ¶
type MsgCreateClaim struct { Creator sdk.AccAddress `json:"creator" yaml:"creator"` Proof string `json:"proof" yaml:"proof"` }
func NewMsgCreateClaim ¶
func NewMsgCreateClaim(creator sdk.AccAddress, proof string) MsgCreateClaim
func (MsgCreateClaim) GetSignBytes ¶
func (msg MsgCreateClaim) GetSignBytes() []byte
func (MsgCreateClaim) GetSigners ¶
func (msg MsgCreateClaim) GetSigners() []sdk.AccAddress
func (MsgCreateClaim) Route ¶
func (msg MsgCreateClaim) Route() string
func (MsgCreateClaim) Type ¶
func (msg MsgCreateClaim) Type() string
func (MsgCreateClaim) ValidateBasic ¶
func (msg MsgCreateClaim) ValidateBasic() error
type MsgDeleteClaim ¶
type MsgDeleteClaim struct { Proof string `json:"proof" yaml:"proof"` Creator sdk.AccAddress `json:"creator" yaml:"creator"` }
func NewMsgDeleteClaim ¶
func NewMsgDeleteClaim(proof string, creator sdk.AccAddress) MsgDeleteClaim
func (MsgDeleteClaim) GetSignBytes ¶
func (msg MsgDeleteClaim) GetSignBytes() []byte
func (MsgDeleteClaim) GetSigners ¶
func (msg MsgDeleteClaim) GetSigners() []sdk.AccAddress
func (MsgDeleteClaim) Route ¶
func (msg MsgDeleteClaim) Route() string
func (MsgDeleteClaim) Type ¶
func (msg MsgDeleteClaim) Type() string
func (MsgDeleteClaim) ValidateBasic ¶
func (msg MsgDeleteClaim) ValidateBasic() error
type ParamSubspace ¶
type ParamSubspace interface { WithKeyTable(table params.KeyTable) params.Subspace Get(ctx sdk.Context, key []byte, ptr interface{}) GetParamSet(ctx sdk.Context, ps params.ParamSet) SetParamSet(ctx sdk.Context, ps params.ParamSet) }
ParamSubspace defines the expected Subspace interfacace
type Params ¶
type Params struct { }
Params - used for initializing default parameter for pofe at genesis
func DefaultParams ¶
func DefaultParams() Params
DefaultParams defines the parameters for this module
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() params.ParamSetPairs
ParamSetPairs - Implements params.ParamSet
Click to show internal directories.
Click to hide internal directories.