accounts

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accounts

type Accounts struct {
	// contains filtered or unexported fields
}

func NewAccounts

func NewAccounts(stateBus *bus.Bus, iavl tree.MTree) (*Accounts, error)

func (*Accounts) Export

func (a *Accounts) Export(state *types.AppState, coinsMap map[types.CoinSymbol]types.Coin)

func (*Accounts) GetAccount

func (a *Accounts) GetAccount(address types.Address) *Model

func (*Accounts) GetBalance

func (a *Accounts) GetBalance(address types.Address, coin types.CoinSymbol) *big.Int

func (*Accounts) GetBalances

func (a *Accounts) GetBalances(address types.Address) map[types.CoinSymbol]*big.Int

func (*Accounts) GetNonce

func (a *Accounts) GetNonce(address types.Address) uint64

type Model

type Model struct {
	Nonce        uint64
	MultisigData Multisig
	// contains filtered or unexported fields
}

func (*Model) IsMultisig

func (model *Model) IsMultisig() bool

func (*Model) Multisig

func (model *Model) Multisig() Multisig

type Multisig

type Multisig struct {
	Threshold uint32
	Weights   []uint32
	Addresses []types.Address
}

func (*Multisig) Address

func (m *Multisig) Address() types.Address

func (*Multisig) GetWeight

func (m *Multisig) GetWeight(address types.Address) uint32

Jump to

Keyboard shortcuts

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