Documentation ¶
Index ¶
Constants ¶
View Source
const NewChainNotifyMonitorLatestHeight = ".BlockHeight"
LatestHeight config file
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MonitorNotify ¶
type MonitorNotify struct { Notify // contains filtered or unexported fields }
func NewMonitorNotify ¶
func NewMonitorNotify(p *NotifyConfig, rpcURL string, blockDelay int64, enableTracer bool, traceConfig *tracer.TraceConfig, logger *log.Logger) (*MonitorNotify, error)
func (*MonitorNotify) MarshalJSON ¶
func (n *MonitorNotify) MarshalJSON() ([]byte, error)
MarshalJSON encodes to json format.
func (*MonitorNotify) Run ¶
func (n *MonitorNotify) Run() error
type NotifyConfig ¶
type PendingNotify ¶
type PendingNotify struct {
Notify
}
func NewPendingNotify ¶
func NewPendingNotify(s, p *NotifyConfig, logger *log.Logger) (*PendingNotify, error)
func (*PendingNotify) MarshalJSON ¶
func (n *PendingNotify) MarshalJSON() ([]byte, error)
MarshalJSON encodes to json format.
func (*PendingNotify) Run ¶
func (n *PendingNotify) Run() error
type TransaferNotify ¶
type TransaferNotify struct { Notify // contains filtered or unexported fields }
func NewTransferNotify ¶
func NewTransferNotify(s, p *NotifyConfig, rpcURL string, block int64, logger *log.Logger) (*TransaferNotify, error)
func (*TransaferNotify) MarshalJSON ¶
func (n *TransaferNotify) MarshalJSON() ([]byte, error)
MarshalJSON encodes to json format.
func (*TransaferNotify) Run ¶
func (n *TransaferNotify) Run() error
type TransferTx ¶
type TransferTx struct { From common.Address `json:"from"` To *common.Address `json:"to"` Value *big.Int `json:"value"` Hash common.Hash `json:"hash"` Data []byte `json:"data"` BlockNumber *big.Int `json:"blockNumber"` }
func (*TransferTx) MarshalJSON ¶
func (c *TransferTx) MarshalJSON() ([]byte, error)
MarshalJSON encodes to json format.
func (*TransferTx) UnmarshalJSON ¶
func (c *TransferTx) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes from json format to a TransferTx.
Click to show internal directories.
Click to hide internal directories.