Documentation ¶
Index ¶
Constants ¶
View Source
const ( ModuleName = "asset" RouterKey = ModuleName StoreKey = RouterKey )
Variables ¶
View Source
var ModuleCdc = codec.New()
Functions ¶
func RegisterCodec ¶
Types ¶
type Asset ¶
type Asset struct { ID store.EntityID `json:"id"` Name string `json:"name"` Symbol string `json:"symbol"` Owner sdk.AccAddress `json:"owner"` CirculatingSupply sdk.Uint `json:"circulating_supply"` TotalSupply sdk.Uint `json:"total_supply"` }
type ListQueryResult ¶
type ListQueryResult struct {
Assets []Asset `json:"assets"`
}
func (ListQueryResult) String ¶
func (l ListQueryResult) String() string
type MsgBurn ¶
func NewMsgBurn ¶
func (MsgBurn) GetSignBytes ¶
func (MsgBurn) GetSigners ¶
func (msg MsgBurn) GetSigners() []sdk.AccAddress
func (MsgBurn) ValidateBasic ¶
type MsgMint ¶
func NewMsgMint ¶
func (MsgMint) GetSignBytes ¶
func (MsgMint) GetSigners ¶
func (msg MsgMint) GetSigners() []sdk.AccAddress
func (MsgMint) ValidateBasic ¶
type MsgTransfer ¶
type MsgTransfer struct { ID store.EntityID From sdk.AccAddress To sdk.AccAddress Amount sdk.Uint }
func NewMsgTransfer ¶
func NewMsgTransfer(id store.EntityID, from sdk.AccAddress, to sdk.AccAddress, amount sdk.Uint) MsgTransfer
func (MsgTransfer) GetSignBytes ¶
func (msg MsgTransfer) GetSignBytes() []byte
func (MsgTransfer) GetSigners ¶
func (msg MsgTransfer) GetSigners() []sdk.AccAddress
func (MsgTransfer) Route ¶
func (msg MsgTransfer) Route() string
func (MsgTransfer) Type ¶
func (msg MsgTransfer) Type() string
func (MsgTransfer) ValidateBasic ¶
func (msg MsgTransfer) ValidateBasic() sdk.Error
Click to show internal directories.
Click to hide internal directories.