Documentation ¶
Index ¶
- Variables
- func MarshalBinaryBare(o interface{}) ([]byte, error)
- func MarshalJSON(o interface{}) ([]byte, error)
- func UnmarshalBinaryBare(bz []byte, ptr interface{}) error
- func UnmarshalJSON(bz []byte, ptr interface{}) error
- type IssuePayload
- type Payload
- type TokenApp
- type TransferPayload
- type Tx
- type Wallet
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SYSTEM_ISSUER = crypto.Address("KING_OF_TOKEN")
)
Functions ¶
func MarshalBinaryBare ¶
func MarshalJSON ¶
func UnmarshalBinaryBare ¶
func UnmarshalJSON ¶
Types ¶
type IssuePayload ¶
func NewIssuePayload ¶
func NewIssuePayload(issuer, to crypto.Address, value int) *IssuePayload
func (*IssuePayload) GetSignBytes ¶
func (pld *IssuePayload) GetSignBytes() []byte
func (*IssuePayload) GetSigner ¶
func (pld *IssuePayload) GetSigner() crypto.Address
func (*IssuePayload) GetType ¶
func (pld *IssuePayload) GetType() string
type TokenApp ¶
type TokenApp struct { types.BaseApplication Accounts map[string]int }
func NewTokenApp ¶
func NewTokenApp() *TokenApp
func (*TokenApp) DeliverTx ¶
func (app *TokenApp) DeliverTx(raw []byte) (rsp types.ResponseDeliverTx)
func (*TokenApp) Query ¶
func (app *TokenApp) Query(req types.RequestQuery) (rsp types.ResponseQuery)
type TransferPayload ¶
func NewTransferPayload ¶
func NewTransferPayload(from, to crypto.Address, value int) *TransferPayload
func (*TransferPayload) GetSignBytes ¶
func (pld *TransferPayload) GetSignBytes() []byte
func (*TransferPayload) GetSigner ¶
func (pld *TransferPayload) GetSigner() crypto.Address
func (*TransferPayload) GetType ¶
func (pld *TransferPayload) GetType() string
type Wallet ¶
func LoadWallet ¶
Click to show internal directories.
Click to hide internal directories.