Documentation ¶
Index ¶
Constants ¶
View Source
const ( // module name ModuleName = "swingset" // StoreKey to be used when creating the KVStore StoreKey = ModuleName )
View Source
const EmptyMailboxValue = "\"{\\\"outbox\\\":[], \\\"ack\\\":0}\""
View Source
const RouterKey = ModuleName // this was defined in your key.go file
Variables ¶
View Source
var ModuleCdc = codec.New()
Functions ¶
func RegisterCodec ¶
RegisterCodec registers concrete types on the Amino codec
Types ¶
type Messages ¶
func UnmarshalMessagesJSON ¶
type MsgDeliverInbound ¶
type MsgDeliverInbound struct { Peer string Messages []string Nums []int Ack int Submitter sdk.AccAddress }
MsgDeliverInbound defines a DeliverInbound message
func NewMsgDeliverInbound ¶
func NewMsgDeliverInbound(peer string, msgs *Messages, submitter sdk.AccAddress) MsgDeliverInbound
func (MsgDeliverInbound) GetSignBytes ¶
func (msg MsgDeliverInbound) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgDeliverInbound) GetSigners ¶
func (msg MsgDeliverInbound) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (MsgDeliverInbound) Route ¶
func (msg MsgDeliverInbound) Route() string
Route should return the name of the module
func (MsgDeliverInbound) Type ¶
func (msg MsgDeliverInbound) Type() string
Type should return the action
func (MsgDeliverInbound) ValidateBasic ¶
func (msg MsgDeliverInbound) ValidateBasic() sdk.Error
ValidateBasic runs stateless checks on the message
type QueryResKeys ¶
type QueryResKeys struct {
Keys []string `json:"keys"`
}
Query Result Payload for a keys query
type QueryResStorage ¶
type QueryResStorage struct {
Value string `json:"value"`
}
Query Result Payload for a storage query
Click to show internal directories.
Click to hide internal directories.