token

package
v0.0.0-...-ec6187d Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocMsgBurnToken

type DocMsgBurnToken struct {
	Symbol string `bson:"symbol"`
	Amount string `bson:"amount"`
	Sender string `bson:"sender"`
}

func (*DocMsgBurnToken) BuildMsg

func (m *DocMsgBurnToken) BuildMsg(v interface{})

func (*DocMsgBurnToken) GetType

func (m *DocMsgBurnToken) GetType() string

func (*DocMsgBurnToken) HandleTxMsg

func (m *DocMsgBurnToken) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocMsgEditToken

type DocMsgEditToken struct {
	Symbol    string `bson:"symbol"`
	Name      string `bson:"name"`
	MaxSupply string `bson:"max_supply"`
	Mintable  bool   `bson:"mintable"`
	Owner     string `bson:"owner"`
}

func (*DocMsgEditToken) BuildMsg

func (m *DocMsgEditToken) BuildMsg(v interface{})

func (*DocMsgEditToken) GetType

func (m *DocMsgEditToken) GetType() string

func (*DocMsgEditToken) HandleTxMsg

func (m *DocMsgEditToken) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocMsgIssueToken

type DocMsgIssueToken struct {
	Symbol        string `bson:"symbol"`
	Name          string `bson:"name"`
	Scale         uint32 `bson:"scale"`
	MinUnit       string `bson:"min_unit"`
	InitialSupply string `bson:"initial_supply"`
	MaxSupply     string `bson:"max_supply"`
	Mintable      bool   `bson:"mintable"`
	Owner         string `bson:"owner"`
}

func (*DocMsgIssueToken) BuildMsg

func (m *DocMsgIssueToken) BuildMsg(v interface{})

func (*DocMsgIssueToken) GetType

func (m *DocMsgIssueToken) GetType() string

func (*DocMsgIssueToken) HandleTxMsg

func (m *DocMsgIssueToken) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocMsgMintToken

type DocMsgMintToken struct {
	Symbol string `bson:"symbol"`
	Amount string `bson:"amount"`
	To     string `bson:"to"`
	Owner  string `bson:"owner"`
}

func (*DocMsgMintToken) BuildMsg

func (m *DocMsgMintToken) BuildMsg(v interface{})

func (*DocMsgMintToken) GetType

func (m *DocMsgMintToken) GetType() string

func (*DocMsgMintToken) HandleTxMsg

func (m *DocMsgMintToken) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocMsgTransferTokenOwner

type DocMsgTransferTokenOwner struct {
	SrcOwner string `bson:"src_owner"`
	DstOwner string `bson:"dst_owner"`
	Symbol   string `bson:"symbol"`
}

func (*DocMsgTransferTokenOwner) BuildMsg

func (m *DocMsgTransferTokenOwner) BuildMsg(v interface{})

func (*DocMsgTransferTokenOwner) GetType

func (m *DocMsgTransferTokenOwner) GetType() string

func (*DocMsgTransferTokenOwner) HandleTxMsg

func (m *DocMsgTransferTokenOwner) HandleTxMsg(v SdkMsg) MsgDocInfo

type TokenClient

type TokenClient struct {
}

func NewClient

func NewClient() TokenClient

func (TokenClient) HandleTxMsg

func (token TokenClient) HandleTxMsg(v types.Msg) (MsgDocInfo, bool)

Jump to

Keyboard shortcuts

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