Documentation
¶
Index ¶
- Constants
- func NewHandler(keeper Keeper) sdk.Handler
- func NewQuerier(keeper Keeper) sdk.Querier
- func RegisterCodec(cdc *codec.Codec)
- type Bol
- type Keeper
- func (k Keeper) GetBol(ctx sdk.Context, hash string) Bol
- func (k Keeper) GetHash(ctx sdk.Context, hash string) string
- func (k Keeper) GetHashesIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) GetOwner(ctx sdk.Context, hash string) sdk.AccAddress
- func (k Keeper) SetBol(ctx sdk.Context, hash string, bol Bol)
- func (k Keeper) SetOwner(ctx sdk.Context, hash string, owner sdk.AccAddress)
- type MsgCreateBol
- type MsgSendMoney
- type MsgTransmitBol
- type QueryResHashes
- type QueryResResolve
Constants ¶
const ( QueryResolve = "resolve" // used to get the value of the hash QueryOwner = "owner" // used to get owner QueryBol = "bol" // used for to query the entire bill of lading data QueryHashes = "hashes" // used for the interator to get all the hashes )
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewQuerier ¶
func RegisterCodec ¶
RegisterCodec registers concrete types on wire codec
Types ¶
type Bol ¶
type Bol struct { Value string `json:"value"` Owner sdk.AccAddress `json:"owner"` }
Bol is a strcut containig the metadata of a hash
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper maintains the link to data storage and exposes getter/setter methods for the various parts of the state machine
func (Keeper) GetHash ¶
Return the value of the hash to be used for hash check and comparison for example
func (Keeper) GetHashesIterator ¶
Get an iterator over all hashes in which the keys are the names and the values are the whois
type MsgCreateBol ¶
type MsgCreateBol struct { Hash string Owner sdk.AccAddress }
func NewMsgCreateBol ¶
func NewMsgCreateBol(hash string, owner sdk.AccAddress) MsgCreateBol
constructor function for MsgBuyName
func (MsgCreateBol) GetSignBytes ¶
func (msg MsgCreateBol) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgCreateBol) GetSigners ¶
func (msg MsgCreateBol) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (MsgCreateBol) Route ¶
func (msg MsgCreateBol) Route() string
func (MsgCreateBol) Type ¶
func (msg MsgCreateBol) Type() string
func (MsgCreateBol) ValidateBasic ¶
func (msg MsgCreateBol) ValidateBasic() sdk.Error
type MsgSendMoney ¶
type MsgSendMoney struct { Destination sdk.AccAddress Amount sdk.Coins Sender sdk.AccAddress }
func NewMsgSendMoney ¶
func NewMsgSendMoney(destination sdk.AccAddress, amount sdk.Coins, sender sdk.AccAddress) MsgSendMoney
func (MsgSendMoney) GetSignBytes ¶
func (msg MsgSendMoney) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgSendMoney) GetSigners ¶
func (msg MsgSendMoney) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (MsgSendMoney) Route ¶
func (msg MsgSendMoney) Route() string
Route should return the name of the module
func (MsgSendMoney) Type ¶
func (msg MsgSendMoney) Type() string
func (MsgSendMoney) ValidateBasic ¶
func (msg MsgSendMoney) ValidateBasic() sdk.Error
type MsgTransmitBol ¶
type MsgTransmitBol struct { Hash string Owner sdk.AccAddress NewOwner sdk.AccAddress }
MsgBuyName defines the BuyName message
func NewMsgTransmitBol ¶
func NewMsgTransmitBol(hash string, owner sdk.AccAddress, newOwner sdk.AccAddress) MsgTransmitBol
NewMsgBuyName is the constructor function for MsgBuyName
func (MsgTransmitBol) GetSignBytes ¶
func (msg MsgTransmitBol) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgTransmitBol) GetSigners ¶
func (msg MsgTransmitBol) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (MsgTransmitBol) Route ¶
func (msg MsgTransmitBol) Route() string
Route should return the name of the module
func (MsgTransmitBol) ValidateBasic ¶
func (msg MsgTransmitBol) ValidateBasic() sdk.Error
ValidateBasic runs stateless checks on the message
type QueryResResolve ¶
type QueryResResolve struct {
Value string `json:"value"`
}
Query Result Payload for a resolve query