decode

package
v0.0.0-...-24865f3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Amount

func Amount(m map[string]any) decimal.Decimal

func BalanceFromMap

func BalanceFromMap(m map[string]any, key string) (*types.Coin, error)

func DecimalFromMap

func DecimalFromMap(m map[string]any, key string) decimal.Decimal

func JsonTx

func JsonTx(raw []byte) (cosmosTypes.Tx, error)

func StringFromMap

func StringFromMap(m map[string]any, key string) string

Types

type CoinReceived

type CoinReceived struct {
	Amount   *types.Coin
	Receiver string
}

func NewCoinReceived

func NewCoinReceived(m map[string]any) (body CoinReceived, err error)

type CoinSpent

type CoinSpent struct {
	Amount  *types.Coin
	Spender string
}

func NewCoinSpent

func NewCoinSpent(m map[string]any) (body CoinSpent, err error)

type DecodedMsg

type DecodedMsg struct {
	Msg       storage.Message
	BlobsSize int64
	Addresses []storage.AddressWithType
}

func Message

func Message(
	msg cosmosTypes.Msg,
	height types.Level,
	time time.Time,
	position int,
	status storageTypes.Status,
) (d DecodedMsg, err error)

type DecodedTx

type DecodedTx struct {
	AuthInfo      tx.AuthInfo
	TimeoutHeight uint64
	Memo          string
	Messages      []cosmosTypes.Msg
	Fee           decimal.Decimal
	Signers       map[string]struct{}
}

func Tx

func Tx(b types.BlockData, index int) (d DecodedTx, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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