ethconnect

package
v0.0.44 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEthconnectServiceDefinitions

func GetEthconnectServiceDefinitions(s *types.Stack, blockchainServiceName 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) error

type DeployContractResponseBody

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

func DeployContract

func DeployContract(ethconnectUrl string, abiId string, fromAddress string, params map[string]string, registeredName string) (*DeployContractResponseBody, error)

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"`
}

func PublishABI

func PublishABI(ethconnectUrl string, contract *types.Contract) (*PublishAbiResponseBody, error)

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"`
}

func RegisterContract

func RegisterContract(ethconnectUrl string, abiId string, contractAddress string, fromAddress string, registeredName string, params map[string]string) (*RegisterResponseBody, error)

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