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