bank

package
v0.0.0-...-0666018 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 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 BankClient

type BankClient struct {
}

func NewClient

func NewClient() BankClient

func (BankClient) HandleTxMsg

func (bank BankClient) HandleTxMsg(v types.Msg) (MsgDocInfo, bool)

type DocMsgMultiSend

type DocMsgMultiSend struct {
	Inputs   []Item   `bson:"inputs"`
	Outputs  []Item   `bson:"outputs"`
	TempData []string `bson:"-"`
}

func (*DocMsgMultiSend) BuildMsg

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

func (*DocMsgMultiSend) GetType

func (m *DocMsgMultiSend) GetType() string

func (*DocMsgMultiSend) HandleTxMsg

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

type DocMsgSend

type DocMsgSend struct {
	FromAddress string       `bson:"from_address"`
	ToAddress   string       `bson:"to_address"`
	Amount      []types.Coin `bson:"amount"`
}

func (*DocMsgSend) BuildMsg

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

func (*DocMsgSend) GetType

func (m *DocMsgSend) GetType() string

func (*DocMsgSend) HandleTxMsg

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

type Item

type Item struct {
	Address string       `bson:"address"`
	Coins   []types.Coin `bson:"coins"`
}

Jump to

Keyboard shortcuts

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