requests

package
v0.0.0-...-92d349b Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminNodeInfo

func AdminNodeInfo(reqId int) (p2p.NodeInfo, error)

func BlockNumber

func BlockNumber(reqId int) (uint64, error)

func GetAndCompareLogs

func GetAndCompareLogs(reqId int, fromBlock uint64, toBlock uint64, expected rpctest.Log) error

func GetBalance

func GetBalance(reqId int, address libcommon.Address, blockNum models.BlockNumber) (uint64, error)

func GetBlockByNumber

func GetBlockByNumber(reqId int, blockNum uint64, withTxs bool) (rpctest.EthBlockByNumber, error)

func GetBlockByNumberDetails

func GetBlockByNumberDetails(reqId int, blockNum string, withTxs bool) (map[string]interface{}, error)

func GetTransactionCount

func GetTransactionCount(reqId int, address libcommon.Address, blockNum models.BlockNumber) (rpctest.EthGetTransactionCount, error)

func PingErigonRpc

func PingErigonRpc(reqId int) error

func SendTransaction

func SendTransaction(reqId int, signedTx *types.Transaction) (*libcommon.Hash, error)

func TxpoolContent

func TxpoolContent(reqId int) (int, int, int, error)

Types

type RequestGenerator

type RequestGenerator struct {
	// contains filtered or unexported fields
}

func (*RequestGenerator) BlockNumber

func (req *RequestGenerator) BlockNumber() string

func (*RequestGenerator) Erigon

func (req *RequestGenerator) Erigon(method models.RPCMethod, body string, response interface{}) rpctest.CallResult

func (*RequestGenerator) GetAdminNodeInfo

func (req *RequestGenerator) GetAdminNodeInfo() string

func (*RequestGenerator) GetBalance

func (req *RequestGenerator) GetBalance(address libcommon.Address, blockNum models.BlockNumber) string

func (*RequestGenerator) GetBlockByNumber

func (req *RequestGenerator) GetBlockByNumber(blockNum uint64, withTxs bool) string

func (*RequestGenerator) GetBlockByNumberI

func (req *RequestGenerator) GetBlockByNumberI(blockNum string, withTxs bool) string

func (*RequestGenerator) GetBlockDetails

func (req *RequestGenerator) GetBlockDetails(blockNum string) string

func (*RequestGenerator) GetLogs

func (req *RequestGenerator) GetLogs(fromBlock, toBlock uint64, address libcommon.Address) string

func (*RequestGenerator) GetTransactionCount

func (req *RequestGenerator) GetTransactionCount(address libcommon.Address, blockNum models.BlockNumber) string

func (*RequestGenerator) PingErigonRpc

func (req *RequestGenerator) PingErigonRpc() rpctest.CallResult

func (*RequestGenerator) SendRawTransaction

func (req *RequestGenerator) SendRawTransaction(signedTx []byte) string

func (*RequestGenerator) TxpoolContent

func (req *RequestGenerator) TxpoolContent() string

Jump to

Keyboard shortcuts

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