evmconnect

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	Port      int    `yaml:"port,omitempty"`
	Address   string `yaml:"address,omitempty"`
	PublicURL string `yaml:"publicURL,omitempty"`
}

type Config

type Config struct {
	Log           *types.LogConfig           `yaml:"log,omitempty"`
	Connector     *ConnectorConfig           `yaml:"connector,omitempty"`
	Metrics       *types.MetricsServerConfig `yaml:"metrics,omitempty"`
	Persistence   *PersistenceConfig         `yaml:"persistence,omitempty"`
	FFCore        *FFCoreConfig              `yaml:"ffcore,omitempty"`
	Confirmations *ConfirmationsConfig       `yaml:"confirmations,omitempty"`
	PolicyEngine  *PolicyEngineSimpleConfig  `yaml:"policyengine.simple,omitempty"`
	API           *APIConfig                 `yaml:"api,omitempty"`
}

func (*Config) WriteConfig

func (e *Config) WriteConfig(filename string, extraEvmconnectConfigPath string) error

type ConfirmationsConfig

type ConfirmationsConfig struct {
	Required *int `yaml:"required,omitempty"`
}

type ConnectorConfig

type ConnectorConfig struct {
	URL string `yaml:"url,omitempty"`
}

type Evmconnect

type Evmconnect struct {
	// contains filtered or unexported fields
}

func NewEvmconnect

func NewEvmconnect(ctx context.Context) *Evmconnect

func (*Evmconnect) DeployContract

func (e *Evmconnect) DeployContract(contract *ethtypes.CompiledContract, contractName string, member *types.Organization, extraArgs []string) (*types.ContractDeploymentResult, error)

func (*Evmconnect) FirstTimeSetup added in v1.3.0

func (e *Evmconnect) FirstTimeSetup(stack *types.Stack) error

func (*Evmconnect) GenerateConfig

func (e *Evmconnect) GenerateConfig(stack *types.Stack, org *types.Organization, blockchainServiceName string) connector.Config

func (*Evmconnect) GetServiceDefinitions

func (e *Evmconnect) GetServiceDefinitions(s *types.Stack, dependentServices map[string]string) []*docker.ServiceDefinition

func (*Evmconnect) Name

func (e *Evmconnect) Name() string

func (*Evmconnect) Port

func (e *Evmconnect) Port() int

type EvmconnectHeaders

type EvmconnectHeaders struct {
	Type string `json:"type,omitempty"`
}

type EvmconnectRequest

type EvmconnectRequest struct {
	Headers    EvmconnectHeaders `json:"headers,omitempty"`
	To         string            `json:"to"`
	From       string            `json:"from,omitempty"`
	Definition interface{}       `json:"definition,omitempty"`
	Contract   string            `json:"contract,omitempty"`
	Params     []interface{}     `json:"params,omitempty"`
}

type EvmconnectTransactionResponse

type EvmconnectTransactionResponse struct {
	ID      string   `json:"id"`
	Status  string   `json:"status"`
	Receipt *Receipt `json:"receipt"`
}

type ExtraInfo

type ExtraInfo struct {
	ContractAddress string `json:"contractAddress,omitempty"`
}

type FFCoreConfig

type FFCoreConfig struct {
	URL        string   `yaml:"url,omitempty"`
	Namespaces []string `yaml:"namespaces,omitempty"`
}

type GasOracleConfig

type GasOracleConfig struct {
	Mode string `yaml:"mode,omitempty"`
}

type LevelDBConfig

type LevelDBConfig struct {
	Path string `yaml:"path,omitempty"`
}

type PersistenceConfig

type PersistenceConfig struct {
	LevelDB *LevelDBConfig `yaml:"leveldb,omitempty"`
}

type PolicyEngineSimpleConfig

type PolicyEngineSimpleConfig struct {
	FixedGasPrice *int             `yaml:"fixedGasPrice,omitempty"`
	GasOracle     *GasOracleConfig `yaml:"gasOracle,omitempty"`
}

type Receipt

type Receipt struct {
	ExtraInfo *ExtraInfo `json:"extraInfo,omitempty"`
}

Jump to

Keyboard shortcuts

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