Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { CorrelationID string `json:"correlationId"` Network utils.Network `json:"network"` NetworkId utils.NetworkID `json:"networkId"` BlockNumber *big.Int `json:"blockNumber"` TxHash common.Hash `json:"transactionHash"` Address common.Address `json:"address"` Resolved bool `json:"resolved"` }
Account represents an Ethereum account.
func UnmarshalAccount ¶
UnmarshalAccount unmarshal a JSON byte slice into an Account instance.
func (*Account) MarshalBinary ¶
MarshalBinary serializes the Account struct into a JSON byte slice.
type Block ¶
type Block struct { CorrelationID string `json:"correlationId"` Network utils.Network `json:"network"` NetworkId utils.NetworkID `json:"networkId"` Block *types.Block `json:"block"` Direction helpers.SyncDirection `json:"direction"` Resolved bool `json:"resolved"` }
Block represents an Ethereum block.
func UnmarshalBlock ¶
UnmarshalBlock unmarshal a JSON byte slice into an Block instance.
func (*Block) MarshalBinary ¶
MarshalBinary serializes the Block struct into a JSON byte slice.
type Transaction ¶
type Transaction struct { CorrelationID string `json:"correlationId"` Network utils.Network `json:"network"` NetworkId utils.NetworkID `json:"networkId"` BlockHeader *types.Header `json:"block"` BlockState *state.BlockEntry `json:"blockState"` Transaction *types.Transaction `json:"transaction"` Direction helpers.SyncDirection `json:"direction"` Resolved bool `json:"resolved"` }
Transaction represents an Ethereum transaction.
func UnmarshalTransaction ¶
func UnmarshalTransaction(data []byte) (*Transaction, error)
UnmarshalTransaction unmarshal a JSON byte slice into an Transaction instance.
func (*Transaction) MarshalBinary ¶
func (e *Transaction) MarshalBinary() ([]byte, error)
MarshalBinary serializes the Transaction struct into a JSON byte slice.
type Unpack ¶
type Unpack struct { CorrelationID string `json:"correlation_id"` Network utils.Network `json:"network"` NetworkId utils.NetworkID `json:"network_id"` Address common.Address `json:"address"` Proxy bool `json:"proxy"` Resolved bool `json:"resolved"` }
func UnmarshalUnpack ¶
UnmarshalUnpack unmarshal a JSON byte slice into an Unpack instance.
func (*Unpack) MarshalBinary ¶
type UnpackSources ¶ added in v1.0.0
type UnpackSources struct { CorrelationID string `json:"correlationId"` Network utils.Network `json:"network"` NetworkId utils.NetworkID `json:"networkId"` BlockNumber *big.Int `json:"blockNumber"` Address common.Address `json:"address"` Sources *solgo.Sources `json:"sources"` }
func UnmarshalUnpackSources ¶ added in v1.0.0
func UnmarshalUnpackSources(data []byte) (*UnpackSources, error)
UnmarshalUnpackSources unmarshal a JSON byte slice into an UnpackSources instance.
func (*UnpackSources) MarshalBinary ¶ added in v1.0.0
func (e *UnpackSources) MarshalBinary() ([]byte, error)