types

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2019 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName = "asset"
	RouterKey  = ModuleName
	StoreKey   = RouterKey
)

Variables

View Source
var ModuleCdc = codec.New()

Functions

func Coin

func Coin(id store.EntityID, quantity sdk.Uint) sdk.Coin

func Coins

func Coins(id store.EntityID, quantity sdk.Uint) sdk.Coins

func RegisterCodec

func RegisterCodec(cdc *codec.Codec)

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"`
}

func New

func New(id store.EntityID, name string, symbol string, owner sdk.AccAddress, circSup sdk.Uint, totalSup sdk.Uint) Asset

func (Asset) String

func (a Asset) String() string

type ListQueryResult

type ListQueryResult struct {
	Assets []Asset `json:"assets"`
}

func (ListQueryResult) String

func (l ListQueryResult) String() string

type MsgBurn

type MsgBurn struct {
	ID     store.EntityID
	Burner sdk.AccAddress
	Amount sdk.Uint
}

func NewMsgBurn

func NewMsgBurn(id store.EntityID, burner sdk.AccAddress, amount sdk.Uint) MsgBurn

func (MsgBurn) GetSignBytes

func (msg MsgBurn) GetSignBytes() []byte

func (MsgBurn) GetSigners

func (msg MsgBurn) GetSigners() []sdk.AccAddress

func (MsgBurn) Route

func (msg MsgBurn) Route() string

func (MsgBurn) Type

func (msg MsgBurn) Type() string

func (MsgBurn) ValidateBasic

func (msg MsgBurn) ValidateBasic() sdk.Error

type MsgCreate

type MsgCreate struct {
	Name        string
	Symbol      string
	Owner       sdk.AccAddress
	TotalSupply sdk.Uint
}

type MsgMint

type MsgMint struct {
	ID     store.EntityID
	Minter sdk.AccAddress
	Amount sdk.Uint
}

func NewMsgMint

func NewMsgMint(id store.EntityID, minter sdk.AccAddress, amount sdk.Uint) MsgMint

func (MsgMint) GetSignBytes

func (msg MsgMint) GetSignBytes() []byte

func (MsgMint) GetSigners

func (msg MsgMint) GetSigners() []sdk.AccAddress

func (MsgMint) Route

func (msg MsgMint) Route() string

func (MsgMint) Type

func (msg MsgMint) Type() string

func (MsgMint) ValidateBasic

func (msg MsgMint) ValidateBasic() sdk.Error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL