bsc

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2025 License: LGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssembleProof

func AssembleProof(header []Header, log *types.Log, receipts []*types.Receipt, method string,
	fId msg.ChainId, proofType int64, sign [][]byte, orderId [32]byte) ([]byte, error)

Types

type Header struct {
	ParentHash            []byte         `json:"parentHash"`
	Sha3Uncles            []byte         `json:"sha3Uncles"`
	Miner                 common.Address `json:"miner"`
	StateRoot             []byte         `json:"stateRoot"`
	TransactionsRoot      []byte         `json:"transactionsRoot"`
	ReceiptsRoot          []byte         `json:"receiptsRoot"`
	LogsBloom             []byte         `json:"logsBloom"`
	Difficulty            *big.Int       `json:"difficulty"`
	Number                *big.Int       `json:"number"`
	GasLimit              *big.Int       `json:"gasLimit"`
	GasUsed               *big.Int       `json:"gasUsed"`
	Timestamp             *big.Int       `json:"timestamp"`
	ExtraData             []byte         `json:"extraData"`
	MixHash               []byte         `json:"mixHash"`
	Nonce                 []byte         `json:"nonce"`
	BaseFeePerGas         *big.Int       `json:"baseFeePerGas"`
	WithdrawalsRoot       []byte         `json:"withdrawalsRoot"`
	BlobGasUsed           *big.Int       `json:"blobGasUsed"`
	ExcessBlobGas         *big.Int       `json:"excessBlobGas"`
	ParentBeaconBlockRoot []byte         `json:"parentBeaconBlockRoot"`
}

func ConvertHeader

func ConvertHeader(header *ethclient.BscHeader) Header

type ProofData

type ProofData struct {
	Headers      []Header
	ReceiptProof ReceiptProof
}

type ReceiptProof

type ReceiptProof struct {
	TxReceipt    mapprotocol.TxReceipt
	KeyIndex     []byte
	Proof        [][]byte
	ReceiptProof proof.NewReceiptProof
}

Jump to

Keyboard shortcuts

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