types

package
v0.0.0-...-8ad5b9e Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
	ParentHash common.Hash `json:"parentHash" gencodec:"required"`
	Hash       common.Hash `json:"hash"       gencodec:"required"`
	Number     *big.Int    `json:"number"     gencodec:"required"`
	Time       uint64      `json:"timestamp"  gencodec:"required"`

	Root        common.Hash `json:"stateRoot"    gencodec:"required"`
	ReceiptHash common.Hash `json:"receiptsRoot" gencodec:"required"`
	Bloom       types.Bloom `json:"logsBloom"    gencodec:"required"`
	GasUsed     uint64      `json:"gasUsed"      gencodec:"required"`
}

Header represents a block header in Mive.

func CopyHeader

func CopyHeader(h *Header) *Header

CopyHeader creates a deep copy of a block header.

func (*Header) NumberU64

func (h *Header) NumberU64() uint64

type Tx

type Tx struct {
	Gas        uint64           // gas limit
	To         *common.Address  `rlp:"nil"` // nil means contract creation
	Value      *big.Int         // wei amount
	Data       []byte           // contract invocation input data
	AccessList types.AccessList // EIP-2930 access list
}

Tx represents a Mive transaction.

func (*Tx) DecodeRLP

func (tx *Tx) DecodeRLP(s *rlp.Stream) error

DecodeRLP implements rlp.Decoder

func (*Tx) EncodeRLP

func (tx *Tx) EncodeRLP(w io.Writer) error

EncodeRLP implements rlp.Encoder

Jump to

Keyboard shortcuts

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