integration

package
v0.1.0-alpha.8 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

README

Configuration


Documentation

Index

Constants

View Source
const (
	SET_ADMIN    string = "set_admin"
	UPDATE_ADMIN string = "update_admin"
	REMOVE_ADMIN string = "remove_admin"
	GET_ADMIN    string = "get_admin"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain struct {
	Name string `mapstructure:"name"`

	Environment string             `mapstructure:"environment"`
	ChainConfig chains.ChainConfig `mapstructure:"chain_config"`
	URL         string             `mapstructure:"url"`
	NID         string             `mapstructure:"nid"`
	// contains filtered or unexported fields
}

type Config

type Config struct {
	Chain            Chain             `mapstructure:"chain"`
	KeystoreFile     string            `mapstructure:"keystore_file"`
	KeystorePassword string            `mapstructure:"keystore_password"`
	Contracts        map[string]string `mapstructure:"contracts"`
	InitMessage      map[string]string `mapstructure:"init_message"`
}

func GetConfig

func GetConfig() *Config

type Executor

type Executor struct {
	*testing.T
	// contains filtered or unexported fields
}

func NewExecutor

func NewExecutor(t *testing.T) *Executor

func (*Executor) EnsureChainIsRunning

func (e *Executor) EnsureChainIsRunning() (context.Context, error)

func (*Executor) GetContractAddress

func (e *Executor) GetContractAddress(contractName string) string

Jump to

Keyboard shortcuts

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