package
Version:
v1.1.2
Opens a new window with list of versions in this module.
Published: Jul 4, 2022
License: GPL-3.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
TestAccount = "0x60ceca9c1290ee56b98d4e160ef0453f7c40d219"
)
MockServer mocks a server for http testing
It could either test the http post or the rpc calls
type JsonParam struct {
Jsonrpc string `json:"jsonrpc"`
Method string `json:"method"`
Params interface{} `json:"params"`
Id int `json:"id"`
}
type Receipt struct {
ContractAddress string `json:"contractAddress"`
Logs []struct {
Address string `json:"address"`
Topics []string `json:"topics"`
Data string `json:"data"`
} `json:"logs"`
Status string `json:"status"`
}
type Response struct {
Jsonrpc string `json:"jsonrpc"`
Result interface{} `json:"result"`
Id int `json:"id"`
Error struct {
Code int32 `json:"code"`
Message string `json:"message"`
} `json:"error"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.