Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Beat2Message ¶
type Beat2Message struct { Number uint32 `json:"number"` ID workshare.Bytes32 `json:"id"` ParentID workshare.Bytes32 `json:"parentID"` Timestamp uint64 `json:"timestamp"` TxsFeatures uint32 `json:"txsFeatures"` GasLimit uint64 `json:"gasLimit"` Bloom string `json:"bloom"` K uint8 `json:"k"` Obsolete bool `json:"obsolete"` }
type BeatMessage ¶
type BlockMessage ¶
type BlockMessage struct { Number uint32 `json:"number"` ID workshare.Bytes32 `json:"id"` Size uint32 `json:"size"` ParentID workshare.Bytes32 `json:"parentID"` Timestamp uint64 `json:"timestamp"` GasLimit uint64 `json:"gasLimit"` Beneficiary workshare.Address `json:"beneficiary"` GasUsed uint64 `json:"gasUsed"` TotalScore uint64 `json:"totalScore"` TxsRoot workshare.Bytes32 `json:"txsRoot"` TxsFeatures uint32 `json:"txsFeatures"` StateRoot workshare.Bytes32 `json:"stateRoot"` ReceiptsRoot workshare.Bytes32 `json:"receiptsRoot"` Signer workshare.Address `json:"signer"` Transactions []workshare.Bytes32 `json:"transactions"` Obsolete bool `json:"obsolete"` }
BlockMessage block piped by websocket
type EventFilter ¶
type EventFilter struct { Address *workshare.Address // restricts matches to events created by specific contracts Topic0 *workshare.Bytes32 Topic1 *workshare.Bytes32 Topic2 *workshare.Bytes32 Topic3 *workshare.Bytes32 Topic4 *workshare.Bytes32 }
EventFilter contains options for contract event filtering.
type EventMessage ¶
type EventMessage struct { Address workshare.Address `json:"address"` Topics []workshare.Bytes32 `json:"topics"` Data string `json:"data"` Meta LogMeta `json:"meta"` Obsolete bool `json:"obsolete"` }
EventMessage event piped by websocket
type Subscriptions ¶
type Subscriptions struct {
// contains filtered or unexported fields
}
func New ¶
func New(repo *chain.Repository, allowedOrigins []string, backtraceLimit uint32) *Subscriptions
func (*Subscriptions) Close ¶
func (s *Subscriptions) Close()
type TransferFilter ¶
type TransferFilter struct { TxOrigin *workshare.Address // who send transaction Sender *workshare.Address // who transferred tokens Recipient *workshare.Address // who received tokens }
TransferFilter contains options for contract transfer filtering.
type TransferMessage ¶
type TransferMessage struct { Sender workshare.Address `json:"sender"` Recipient workshare.Address `json:"recipient"` Amount *math.HexOrDecimal256 `json:"amount"` Meta LogMeta `json:"meta"` Obsolete bool `json:"obsolete"` }
TransferMessage transfer piped by websocket
Click to show internal directories.
Click to hide internal directories.