withdrawals

package
v0.0.0-...-c04c664 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: MIT Imports: 7 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(withdrawals *Withdrawals) *Bus

func (*Bus) GetBtcWithdrawals

func (b *Bus) GetBtcWithdrawals() *[]types.Withdrawal

func (*Bus) GetMntWithdrawals

func (b *Bus) GetMntWithdrawals() *[]types.Withdrawal

type Model

type Model struct {
	List []types.Withdrawal
	// contains filtered or unexported fields
}

func (*Model) Append

func (m *Model) Append(withdrawal types.Withdrawal)

func (*Model) Delete

func (m *Model) Delete(count int)

type Withdrawals

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

func NewWithdrawals

func NewWithdrawals(stateBus *bus.Bus, iavl tree.Tree) (*Withdrawals, error)

func (*Withdrawals) AppendBtcWithdrawal

func (w *Withdrawals) AppendBtcWithdrawal(withdrawal types.Withdrawal)

func (*Withdrawals) AppendMntWithdrawal

func (w *Withdrawals) AppendMntWithdrawal(withdrawal types.Withdrawal)

func (*Withdrawals) Commit

func (w *Withdrawals) Commit() error

func (*Withdrawals) Export

func (w *Withdrawals) Export(state *types.AppState)

func (*Withdrawals) GetBtcListAndClear

func (w *Withdrawals) GetBtcListAndClear(limit int64) []types.Withdrawal

func (*Withdrawals) GetMntListAndClear

func (w *Withdrawals) GetMntListAndClear() []types.Withdrawal

func (*Withdrawals) IsBtcEmpty

func (w *Withdrawals) IsBtcEmpty() bool

func (*Withdrawals) IsMntEmpty

func (w *Withdrawals) IsMntEmpty() bool

func (*Withdrawals) LoadWithdrawals

func (w *Withdrawals) LoadWithdrawals()

func (*Withdrawals) SetBtcWithdrawals

func (w *Withdrawals) SetBtcWithdrawals(withdrawals []types.Withdrawal)

func (*Withdrawals) SetMntWithdrawals

func (w *Withdrawals) SetMntWithdrawals(withdrawals []types.Withdrawal)

Jump to

Keyboard shortcuts

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