Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBTCRPCAndLoadTx ¶
func CreateBTCRPCAndLoadTx(t *testing.T, dir string, chainID int64, txHashes ...string) interfaces.BTCRPCClient
CreateBTCRPCAndLoadTx is a helper function to load raw txs and feed them to mock rpc client
Types ¶
type BtcServer ¶
type BtcServer struct {
*Server
}
BtcServer represents httptest for Bitcoin RPC.
func NewBtcServer ¶
NewBtcServer creates new BtcServer.
func (*BtcServer) SetBlockCount ¶
type EVMServer ¶
EVMServer represents httptest for EVM RPC.
func NewEVMServer ¶
NewEVMServer creates a new EVMServer.
func (*EVMServer) SetBlockNumber ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents JSON RPC mock with a "real" HTTP server allocated (httptest)
type SolanaServer ¶
type SolanaServer struct {
*Server
}
SolanaServer represents httptest for SOL RPC.
func NewSolanaServer ¶
func NewSolanaServer(t *testing.T) (*SolanaServer, config.SolanaConfig)
NewSolanaServer creates a new SolanaServer.
Click to show internal directories.
Click to hide internal directories.