Documentation ¶
Index ¶
- type APIConfig
- type Config
- type ConfirmationsConfig
- type ConnectorConfig
- type Evmconnect
- func (e *Evmconnect) DeployContract(contract *ethtypes.CompiledContract, contractName string, ...) (*types.ContractDeploymentResult, error)
- func (e *Evmconnect) FirstTimeSetup(stack *types.Stack) error
- func (e *Evmconnect) GenerateConfig(stack *types.Stack, org *types.Organization, blockchainServiceName string) connector.Config
- func (e *Evmconnect) GetServiceDefinitions(s *types.Stack, dependentServices map[string]string) []*docker.ServiceDefinition
- func (e *Evmconnect) Name() string
- func (e *Evmconnect) Port() int
- type EvmconnectHeaders
- type EvmconnectRequest
- type EvmconnectTransactionResponse
- type ExtraInfo
- type FFCoreConfig
- type GasOracleConfig
- type LevelDBConfig
- type PersistenceConfig
- type PolicyEngineSimpleConfig
- type Receipt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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"` }
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 ExtraInfo ¶
type ExtraInfo struct {
ContractAddress string `json:"contractAddress,omitempty"`
}
type FFCoreConfig ¶
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"` }
Click to show internal directories.
Click to hide internal directories.