manager

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2018 License: Apache-2.0 Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TransactionManager

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

func NewTxManager

func NewTxManager(db *dao.RdsService) TransactionManager

func (*TransactionManager) ForkProcess

func (tm *TransactionManager) ForkProcess(input eventemitter.EventData) error

todo: check and test

func (*TransactionManager) SaveApproveEvent

func (tm *TransactionManager) SaveApproveEvent(input eventemitter.EventData) error

func (*TransactionManager) SaveCutoffAllEvent

func (tm *TransactionManager) SaveCutoffAllEvent(input eventemitter.EventData) error

func (*TransactionManager) SaveCutoffPairEvent

func (tm *TransactionManager) SaveCutoffPairEvent(input eventemitter.EventData) error

func (*TransactionManager) SaveEthTransferEvent

func (tm *TransactionManager) SaveEthTransferEvent(input eventemitter.EventData) error

普通的transaction 当value大于0时认为是eth转账 当value等于0时认为是调用系统不支持的合约,默认使用fromTransferEvent/send type为unsupported_contract

func (*TransactionManager) SaveOrderCancelledEvent

func (tm *TransactionManager) SaveOrderCancelledEvent(input eventemitter.EventData) error

func (*TransactionManager) SaveOrderFilledEvent

func (tm *TransactionManager) SaveOrderFilledEvent(input eventemitter.EventData) error

func (*TransactionManager) SaveTransferEvent

func (tm *TransactionManager) SaveTransferEvent(input eventemitter.EventData) error

func (*TransactionManager) SaveUnSupportedContractEvent

func (tm *TransactionManager) SaveUnSupportedContractEvent(input eventemitter.EventData) error

func (*TransactionManager) SaveWethDepositEvent

func (tm *TransactionManager) SaveWethDepositEvent(input eventemitter.EventData) error

func (*TransactionManager) SaveWethWithdrawalEvent

func (tm *TransactionManager) SaveWethWithdrawalEvent(input eventemitter.EventData) error

func (*TransactionManager) Start

func (tm *TransactionManager) Start()

Start start orderbook as a service

func (*TransactionManager) Stop

func (tm *TransactionManager) Stop()

Jump to

Keyboard shortcuts

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