primitives

package
v1.5.9 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogSpaceNative   uint8 = 1
	LogSpaceEthereum uint8 = 2
)

Variables

This section is empty.

Functions

func MustRLPEncodeBlock added in v1.5.8

func MustRLPEncodeBlock(block *types.BlockSummary) []byte

func MustRLPEncodeReceipt added in v1.5.8

func MustRLPEncodeReceipt(receipt *types.TransactionReceipt) []byte

Types

type BlockHeader added in v1.5.8

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

func ConvertBlock added in v1.5.8

func ConvertBlock(block *types.BlockSummary) BlockHeader

func (BlockHeader) EncodeRLP added in v1.5.8

func (header BlockHeader) EncodeRLP(w io.Writer) error

EncodeRLP implements the rlp.Encoder interface.

type Bool

type Bool bool

Bool represents a bool value that could be RLP encoded in Rust version.

func (Bool) EncodeRLP

func (b Bool) EncodeRLP(w io.Writer) error

type Receipt

type Receipt struct {
	AccumulatedGasUsed    *big.Int
	GasFee                *big.Int
	GasSponsorPaid        Bool
	LogBloom              []byte
	Logs                  []TxLog
	OutcomeStatus         uint8
	StorageSponsorPaid    Bool
	StorageCollateralized []StorageChange
	StorageReleased       []StorageChange
}

func ConvertReceipt

func ConvertReceipt(receipt *types.TransactionReceipt) Receipt

type StorageChange added in v1.5.8

type StorageChange struct {
	Account     common.Address
	Collaterals uint64
}

type TxLog added in v1.5.8

type TxLog struct {
	Addr   common.Address
	Topics []common.Hash
	Data   []byte
	Space  uint8
}

func (TxLog) EncodeRLP added in v1.5.8

func (log TxLog) EncodeRLP(w io.Writer) error

EncodeRLP implements the rlp.Encoder interface.

Jump to

Keyboard shortcuts

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