Documentation ¶
Index ¶
- func BorReceiptKey(number uint64, hash common.Hash) []byte
- func BuildBlockProof(ctx context.Context, client types.IClient, ...) ([]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 Get(url string, params map[string]string, headers map[string]string) (string, error)
- func GetAllLogIndices(logEventSig string, receipt *ether.Receipt) ([]uint64, error)
- func GetContractByNetwork(network types.Network) types.Contract
- func GetDerivedBorTxHash(receiptKey []byte) common.Hash
- func GetLogIndex(logEventSig string, receipt *ether.Receipt) uint64
- func GetReceiptProof(ctx context.Context, client types.IClient, txReceipt *ether.Receipt, ...) ([]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 GetContractByNetwork ¶ added in v0.1.0
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.