events

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 9 Imported by: 0

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

func UnmarshalAccount(data []byte) (*Account, error)

UnmarshalAccount unmarshal a JSON byte slice into an Account instance.

func (*Account) MarshalBinary

func (e *Account) MarshalBinary() ([]byte, error)

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

func UnmarshalBlock(data []byte) (*Block, error)

UnmarshalBlock unmarshal a JSON byte slice into an Block instance.

func (*Block) MarshalBinary

func (e *Block) MarshalBinary() ([]byte, error)

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

func UnmarshalUnpack(data []byte) (*Unpack, error)

UnmarshalUnpack unmarshal a JSON byte slice into an Unpack instance.

func (*Unpack) MarshalBinary

func (e *Unpack) MarshalBinary() ([]byte, error)

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)

Jump to

Keyboard shortcuts

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