frozenfunds

package
v1.1.0-beta6 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bus

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

func NewBus

func NewBus(frozenfunds *FrozenFunds) *Bus

func (*Bus) AddFrozenFund

func (b *Bus) AddFrozenFund(height uint64, address types.Address, pubkey types.Pubkey, coin types.CoinSymbol, value *big.Int)

type FrozenFunds

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

func NewFrozenFunds

func NewFrozenFunds(stateBus *bus.Bus, iavl tree.Tree) (*FrozenFunds, error)

func (*FrozenFunds) AddFund

func (f *FrozenFunds) AddFund(height uint64, address types.Address, pubkey types.Pubkey, coin types.CoinSymbol, value *big.Int)

func (*FrozenFunds) Commit

func (f *FrozenFunds) Commit() error

func (*FrozenFunds) Delete

func (f *FrozenFunds) Delete(height uint64)

func (*FrozenFunds) Export

func (f *FrozenFunds) Export(state *types.AppState, height uint64)

func (*FrozenFunds) GetFrozenFunds

func (f *FrozenFunds) GetFrozenFunds(height uint64) *Model

func (*FrozenFunds) GetOrNew

func (f *FrozenFunds) GetOrNew(height uint64) *Model

func (*FrozenFunds) PunishFrozenFundsWithAddress

func (f *FrozenFunds) PunishFrozenFundsWithAddress(fromHeight uint64, toHeight uint64, tmAddress types.TmAddress)

type Item

type Item struct {
	Address      types.Address
	CandidateKey *types.Pubkey
	Coin         types.CoinSymbol
	Value        *big.Int
}

type Model

type Model struct {
	List []Item
	// contains filtered or unexported fields
}

func (*Model) Height

func (m *Model) Height() uint64

Jump to

Keyboard shortcuts

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