processeddeposits

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: 9 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(deps *ProcessedDeposits) *Bus

func (*Bus) GetDeposit

func (b *Bus) GetDeposit(txid types.Txid) *bus.Deposit

type Model

type Model struct {
	MainnetTxid types.Txid
	Coin        types.CoinSymbol
	Amount      *big.Int
	Owner       types.Address
	// contains filtered or unexported fields
}

func (Model) IsDirty

func (m Model) IsDirty() bool

type ProcessedDeposits

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

func NewProcessedDeposits

func NewProcessedDeposits(stateBus *bus.Bus, iavl tree.Tree) (*ProcessedDeposits, error)

func (*ProcessedDeposits) Commit

func (p *ProcessedDeposits) Commit() error

func (*ProcessedDeposits) Create

func (p *ProcessedDeposits) Create(txid types.Txid, amount *big.Int, coin types.CoinSymbol, owner types.Address)

func (*ProcessedDeposits) Exists

func (p *ProcessedDeposits) Exists(txid types.Txid) bool

func (*ProcessedDeposits) Export

func (p *ProcessedDeposits) Export(state *types.AppState)

func (*ProcessedDeposits) GetDeposit

func (p *ProcessedDeposits) GetDeposit(txid types.Txid) *Model

Jump to

Keyboard shortcuts

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