bank

package
v0.0.0-...-f148bc3 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	HandleTxMsg(v types.Msg) (MsgDocInfo, bool)
}

func NewClient

func NewClient() Client

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      []models.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   []models.Coin `bson:"coins"`
}

Jump to

Keyboard shortcuts

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