gamma

package
v1.3.13 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: MIT Imports: 26 Imported by: 0

Documentation

Index

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 Main added in v1.1.0

func Main(listening chan<- int)

func NewDevelopmentNetwork

func NewDevelopmentNetwork(ctx context.Context, logger log.Logger, maybeClock adapter.Clock, overrideConfigJson string) *inmemory.Network

func RunMain added in v1.2.1

func RunMain(t testing.TB, port int, overrideConfig string) int

func RunOnRandomPort added in v1.2.2

func RunOnRandomPort(t testing.TB, overrideConfig string) string

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

func Shutdown added in v1.2.2

func Shutdown(t *testing.T, endpoint string)

func TimeTravel added in v1.2.2

func TimeTravel(t *testing.T, endpoint string, delta time.Duration)

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

func (s *Server) GracefulShutdown(shutdownContext context.Context)

type ServerConfig added in v1.2.1

type ServerConfig struct {
	ServerAddress      string
	Profiling          bool
	OverrideConfigJson string
	Silent             bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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