ethconnect

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployCustomContract added in v0.0.45

func DeployCustomContract(member *types.Member, filename, contractName string) (string, error)

func DeployFireFlyContract added in v0.0.47

func DeployFireFlyContract(s *types.Stack, log log.Logger, verbose bool) (*core.BlockchainConfig, *types.ContractDeploymentResult, error)

func DeprecatedDeployContract added in v0.0.47

func DeprecatedDeployContract(member *types.Member, contract *ethereum.CompiledContract, name string, args map[string]string) (string, error)

func DeprecatedRegisterContract added in v0.0.47

func DeprecatedRegisterContract(member *types.Member, contract *ethereum.CompiledContract, contractAddress string, name string, args map[string]string) error

func GetEthconnectServiceDefinitions

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

Types

type Config added in v0.0.39

type Config struct {
	Rest *Rest `yaml:"rest,omitempty"`
}

func GenerateEthconnectConfig added in v0.0.39

func GenerateEthconnectConfig(member *types.Member, blockchainServiceName string) *Config

func (*Config) WriteConfig added in v0.0.39

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

type DeployContractResponseBody

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

type EthconnectMessageHeaders added in v0.0.45

type EthconnectMessageHeaders struct {
	Type string `json:"type,omitempty"`
	ID   string `json:"id,omitempty"`
}

type EthconnectMessageRequest added in v0.0.45

type EthconnectMessageRequest struct {
	Headers  EthconnectMessageHeaders `json:"headers,omitempty"`
	To       string                   `json:"to"`
	From     string                   `json:"from,omitempty"`
	ABI      interface{}              `json:"abi,omitempty"`
	Bytecode string                   `json:"compiled"`
}

type EthconnectMessageResponse added in v0.0.45

type EthconnectMessageResponse struct {
	Sent bool   `json:"sent,omitempty"`
	ID   string `json:"id,omitempty"`
}

type EthconnectReply added in v0.0.45

type EthconnectReply struct {
	ID              string                  `json:"_id,omitempty"`
	Headers         *EthconnectReplyHeaders `json:"headers,omitempty"`
	ContractAddress string                  `json:"contractAddress,omitempty"`
	ErrorCode       string                  `json:"errorCode,omitempty"`
	ErrorMessage    string                  `json:"errorMessage,omitempty"`
}

type EthconnectReplyHeaders added in v0.0.45

type EthconnectReplyHeaders struct {
	ID            string  `json:"id,omitempty"`
	RequestID     string  `json:"requestId,omitempty"`
	RequestOffset string  `json:"requestOffset,omitempty"`
	TimeElapsed   float64 `json:"timeElapsed,omitempty"`
	TimeReceived  string  `json:"timeReceived,omitempty"`
	Type          string  `json:"type,omitempty"`
}

type HTTP added in v0.0.39

type HTTP struct {
	Port int `yaml:"port,omitempty"`
}

type OpenAPI added in v0.0.39

type OpenAPI struct {
	EventPollingIntervalSec int    `yaml:"eventPollingIntervalSec,omitempty"`
	StoragePath             string `yaml:"storagePath,omitempty"`
	EventsDB                string `yaml:"eventsDB,omitempty"`
}

type PublishAbiResponseBody

type PublishAbiResponseBody struct {
	ID string `json:"id,omitempty"`
}

type RPC added in v0.0.39

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

type RegisterResponseBody

type RegisterResponseBody struct {
	Created      string `json:"created,omitempty"`
	Address      string `json:"string,omitempty"`
	Path         string `json:"path,omitempty"`
	ABI          string `json:"ABI,omitempty"`
	OpenAPI      string `json:"openapi,omitempty"`
	RegisteredAs string `json:"registeredAs,omitempty"`
}

type Rest added in v0.0.39

type Rest struct {
	RestGateway *RestGateway `yaml:"rest-gateway,omitempty"`
}

type RestGateway added in v0.0.39

type RestGateway struct {
	RPC           *RPC     `yaml:"rpc,omitempty"`
	OpenAPI       *OpenAPI `yaml:"openapi,omitempty"`
	HTTP          *HTTP    `yaml:"http,omitempty"`
	MaxTXWaitTime int      `yaml:"maxTXWaitTime,omitempty"`
	MaxInFlight   int      `yaml:"maxInFlight,omitempty"`
}

Jump to

Keyboard shortcuts

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