Versions in this module Expand all Collapse all v1 v1.2.2 Aug 29, 2024 v1.2.1 Apr 25, 2024 v1.2.0 Apr 11, 2024 Changes in this version + func GetReceiptsByTxsHash(cli *Client, receipts []*types.Receipt) type Client + func (c *Client) TransactionReceiptRpcOutput(ctx context.Context, txHash common.Hash) (map[string]interface{}, error) + type GovernanceVote struct + Key string + Validator common.Address + Value interface{} + type TxReceipt struct + Bloom []byte + CumulativeGasUsed *big.Int + Logs []mapprotocol.TxLog + PostStateOrStatus []byte v1.1.0 Jul 13, 2023 Changes in this version + const PrefixOfHex + var ErrNoResult = errors.New("no result in JSON-RPC response") + func AssembleProof(header Header, log types.Log, fId msg.ChainId, receipts []*types.Receipt, ...) ([]byte, error) + func DeriveTire(rs utils.DerivableList, tr *trie.Trie) *trie.Trie + func GetProof(client *ethclient.Client, kClient *Client, latestBlock *big.Int, ...) ([]byte, error) + func GetTxReceipt(receipt *types.Receipt) (*mapprotocol.TxReceipt, error) + func GetTxsHashByBlockNumber(conn *Client, number *big.Int) ([]common.Hash, error) + type Client struct + func DialHttp(endpoint string, isHttp bool) (*Client, error) + func (c *Client) BlockByNumber(ctx context.Context, number *big.Int) (*RpcHeader, error) + func (c *Client) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error + type DeriveShaOriginal uint8 + const DeriveShaConcat + const DeriveShaOrigin + const DeriveShaSimple + type Header struct + BaseFee *big.Int + BlockScore *big.Int + ExtraData []byte + GasUsed *big.Int + GovernanceData []byte + LogsBloom []byte + Number *big.Int + ParentHash []byte + ReceiptsRoot []byte + Reward common.Address + StateRoot []byte + Timestamp *big.Int + TimestampFoS *big.Int + TransactionsRoot []byte + VoteData []byte + func ConvertContractHeader(ethHeader *types.Header, rh *RpcHeader) Header + type ReceiptProof struct + DeriveSha DeriveShaOriginal + Proof []byte + type ReceiptProofOriginal struct + Header Header + KeyIndex []byte + Proof [][]byte + TxReceipt mapprotocol.TxReceipt + type ReceiptRLP struct + Bloom types.Bloom + GasUsed uint64 + Logs []*types.Log + Status uint + type ReceiptRlps []*ReceiptRLP + func (rs ReceiptRlps) EncodeIndex(i int, w *bytes.Buffer) + func (rs ReceiptRlps) Len() int + type RpcHeader struct + BaseFeePerGas string + BlockScore string + ExtraData string + GasUsed string + GovernanceData string + Hash common.Hash + LogsBloom string + Number string + ParentHash common.Hash + ReceiptsRoot common.Hash + Reward common.Address + Size string + StateRoot common.Hash + Timestamp string + TimestampFoS string + TotalBlockScore string + Transactions []Transactions + TransactionsRoot common.Hash + VoteData string + type Transactions struct + AccessList []interface{} + BlockHash string + BlockNumber string + ChainID string + From string + Gas string + GasPrice string + Hash string + Input string + MaxFeePerGas string + MaxPriorityFeePerGas string + Nonce string + R string + S string + To string + TransactionIndex string + Type string + V string + Value string + type TxLog struct + Addr common.Address + Data []byte + Topics [][]byte