utilities

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const SendCoinMsgType = "/cosmos.bank.v1beta1.MsgSend"

Variables

This section is empty.

Functions

func GetMsgType

func GetMsgType(msg interface{}) string

Types

type Amount

type Amount struct {
	Denom  string `json:"denom"`
	Amount string `json:"amount"`
}

func ParseAmount

func ParseAmount(amountInterface interface{}) Amount

type SendCoin

type SendCoin struct {
	//Type        string   `json:"@type"`
	FromAddress string   `json:"from_address"`
	ToAddress   string   `json:"to_address"`
	Amounts     []Amount `json:"amounts"`
}

func ParseSendCoin

func ParseSendCoin(msg interface{}) (SendCoin, error)

Jump to

Keyboard shortcuts

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