primitives

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func MustRLPEncodeReceipt

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

Types

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

type StorageChange struct {
	Account     common.Address
	Collaterals uint64
}

type TxLog

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

func (TxLog) EncodeRLP

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