types

package
v0.0.0-...-3da4e07 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 2 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDocSigners

func BuildDocSigners(signers []sdk.AccAddress) (string, []string)

func MsgTypeURL

func MsgTypeURL(msg SdkMsg) string

Types

type Coin

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

func BuildDocCoin

func BuildDocCoin(coin sdk.Coin) Coin

func BuildDocCoins

func BuildDocCoins(coins sdk.Coins) []Coin

type Coins

type Coins []Coin

type DenomTrace

type DenomTrace struct {
	// path defines the chain of port/channel identifiers used for tracing the
	// source of the fungible token.
	Path string
	// base denomination of the relayed fungible token.
	BaseDenom string
}

DenomTrace contains the base denomination for ICS20 fungible tokens and the source tracing information path.

type EncodingConfig

type EncodingConfig codec.EncodingConfig

type Fee

type Fee struct {
	Amount []Coin `bson:"amount"`
	Gas    int64  `bson:"gas"`
}

func BuildFee

func BuildFee(fee sdk.Coins, gas uint64) *Fee

type Msg

type Msg interface {
	GetType() string
	BuildMsg(msg interface{})
}

type SdkMsg

type SdkMsg types.Msg

type TxMsg

type TxMsg struct {
	Type string `bson:"type"`
	Msg  Msg    `bson:"msg"`
}

Jump to

Keyboard shortcuts

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