common

package
v0.0.0-...-1ac23cf Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 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 Bandwidth

type Bandwidth struct {
	Upload   int64 `json:"upload"`
	Download int64 `json:"download"`
}

func NewBandwidthFromRaw

func NewBandwidthFromRaw(item hubtypes.Bandwidth) Bandwidth

type Coin

type Coin struct {
	Denom string `json:"denom"`
	Value int64  `json:"value"`
}

func NewCoinFromRaw

func NewCoinFromRaw(item *sdk.Coin) Coin

func (*Coin) Raw

func (c *Coin) Raw() sdk.Coin

type Coins

type Coins []Coin

func NewCoinsFromRaw

func NewCoinsFromRaw(items sdk.Coins) Coins

func (Coins) Raw

func (c Coins) Raw() sdk.Coins

type DecCoin

type DecCoin struct {
	Denom string `json:"denom"`
	Value string `json:"value"`
}

func NewDecCoinFromRaw

func NewDecCoinFromRaw(item *sdk.DecCoin) DecCoin

func (*DecCoin) Raw

func (c *DecCoin) Raw() sdk.DecCoin

type DecCoins

type DecCoins []DecCoin

func NewDecCoinsFromRaw

func NewDecCoinsFromRaw(items sdk.DecCoins) DecCoins

func (DecCoins) Raw

func (c DecCoins) Raw() sdk.DecCoins

type Deposit

type Deposit struct {
	Address string `json:"address"`
	Amount  Coins  `json:"amount"`
}

func NewDepositFromRaw

func NewDepositFromRaw(item *deposittypes.Deposit) Deposit

type Deposits

type Deposits []Deposit

func NewDepositsFromRaw

func NewDepositsFromRaw(items deposittypes.Deposits) Deposits

type Key

type Key struct {
	Name     string `json:"name"`
	PubKey   string `json:"pub_key"`
	Address  string `json:"address"`
	Mnemonic string `json:"mnemonic,omitempty"`
}

func NewKeyFromRaw

func NewKeyFromRaw(info keyring.Info, mnemonic string) Key

type Keys

type Keys []Key

func NewKeysFromRaw

func NewKeysFromRaw(infos []keyring.Info, mnemonics []string) Keys

Jump to

Keyboard shortcuts

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