Documentation ¶
Index ¶
- Constants
- func DeployContract(t *testing.T, orbs *orbsClient.OrbsClient, account *orbsClient.OrbsAccount, ...)
- func Main(listening chan<- int)
- func NewDevelopmentNetwork(ctx context.Context, logger log.Logger, maybeClock adapter.Clock, ...) *inmemory.Network
- func RunMain(t testing.TB, port int, overrideConfig string) int
- func RunOnRandomPort(t testing.TB, overrideConfig string) string
- func SendQuery(t testing.TB, orbs *orbsClient.OrbsClient, sender *orbsClient.OrbsAccount, ...) *codec.RunQueryResponse
- func SendTransaction(t testing.TB, orbs *orbsClient.OrbsClient, sender *orbsClient.OrbsAccount, ...) *codec.SendTransactionResponse
- func Shutdown(t *testing.T, endpoint string)
- func TimeTravel(t *testing.T, endpoint string, delta time.Duration)
- type Server
- type ServerConfig
Constants ¶
View Source
const WAIT_FOR_BLOCK_TIMEOUT = 20 * time.Second
Variables ¶
This section is empty.
Functions ¶
func DeployContract ¶ added in v1.2.2
func DeployContract(t *testing.T, orbs *orbsClient.OrbsClient, account *orbsClient.OrbsAccount, contractName string, code []byte)
func NewDevelopmentNetwork ¶
func RunOnRandomPort ¶ added in v1.2.2
func SendQuery ¶ added in v1.2.2
func SendQuery(t testing.TB, orbs *orbsClient.OrbsClient, sender *orbsClient.OrbsAccount, minBlockHeight uint64, contractName string, method string, args ...interface{}) *codec.RunQueryResponse
func SendTransaction ¶ added in v1.2.2
func SendTransaction(t testing.TB, orbs *orbsClient.OrbsClient, sender *orbsClient.OrbsAccount, contractName string, method string, args ...interface{}) *codec.SendTransactionResponse
Types ¶
type Server ¶ added in v1.2.1
type Server struct { govnr.TreeSupervisor // contains filtered or unexported fields }
func StartGammaServer ¶
func StartGammaServer(config ServerConfig) *Server
func (*Server) GracefulShutdown ¶ added in v1.2.1
Source Files ¶
Click to show internal directories.
Click to hide internal directories.