Documentation
¶
Index ¶
- func BorReceiptKey(number uint64, hash common.Hash) []byte
- func BuildBlockProof(client types.IClient, txBlockNumber, startBlock, endBlock *big.Int) ([]byte, error)
- func CallContract(ctx context.Context, client types.IClient, to common.Address, abi abi.ABI, ...) ([]interface{}, error)
- func FindRootBlockFromChild(ctx context.Context, client types.IClient, childBlockNumber *big.Int, ...) (*big.Int, error)
- func GetAllLogIndices(logEventSig string, receipt *ether.Receipt) ([]int, error)
- func GetDerivedBorTxHash(receiptKey []byte) common.Hash
- func GetLogIndex(logEventSig string, receipt *ether.Receipt) uint64
- func GetReceiptProof(client types.IClient, txReceipt *ether.Receipt, block *ether.Block) ([]byte, []byte, error)
- type MerkleTree
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BorReceiptKey ¶
BorReceiptKey = borReceiptPrefix + num (uint64 big endian) + hash
func BuildBlockProof ¶
func CallContract ¶
func FindRootBlockFromChild ¶
func GetAllLogIndices ¶
func GetDerivedBorTxHash ¶
Types ¶
type MerkleTree ¶
type MerkleTree struct {
// contains filtered or unexported fields
}
func NewMerkleTree ¶
func NewMerkleTree(leaves []common.Hash) (*MerkleTree, error)
func (*MerkleTree) GetLayers ¶
func (merkleTree *MerkleTree) GetLayers() [][]common.Hash
func (*MerkleTree) GetLeaves ¶
func (merkleTree *MerkleTree) GetLeaves() []common.Hash
func (*MerkleTree) GetRoot ¶
func (merkleTree *MerkleTree) GetRoot() common.Hash
Click to show internal directories.
Click to hide internal directories.