Documentation
¶
Index ¶
- func DeployContract(member *types.Member, contract *types.Contract, name string, ...) (string, error)
- func DeployContracts(s *types.Stack, log log.Logger, verbose bool) error
- func DeployCustomContract(ethconnectUrl, fromAddress, filename, contractName string) (string, error)
- func GetEthconnectServiceDefinitions(s *types.Stack, blockchainServiceName string) []*docker.ServiceDefinition
- func RegisterContract(member *types.Member, contract *types.Contract, contractAddress string, ...) error
- type CompiledContract
- type CompiledContracts
- type Config
- type DeployContractResponseBody
- type EthconnectMessageHeaders
- type EthconnectMessageRequest
- type EthconnectMessageResponse
- type EthconnectReply
- type EthconnectReplyHeaders
- type HTTP
- type OpenAPI
- type PublishAbiResponseBody
- type RPC
- type RegisterResponseBody
- type Rest
- type RestGateway
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeployContract ¶
func DeployContract(member *types.Member, contract *types.Contract, name string, args map[string]string) (string, error)
Deprecated
func DeployContracts ¶ added in v0.0.45
Deprecated
func DeployCustomContract ¶ added in v0.0.45
func GetEthconnectServiceDefinitions ¶
func GetEthconnectServiceDefinitions(s *types.Stack, blockchainServiceName string) []*docker.ServiceDefinition
Types ¶
type CompiledContract ¶ added in v0.0.45
type CompiledContract struct {
ABI interface{} `json:"abi"`
Bytecode string `json:"bin"`
}
type CompiledContracts ¶ added in v0.0.45
type CompiledContracts struct {
Contracts map[string]*CompiledContract `json:"contracts"`
}
type Config ¶ added in v0.0.39
type Config struct {
Rest *Rest `yaml:"rest,omitempty"`
}
func GenerateEthconnectConfig ¶ added in v0.0.39
func (*Config) WriteConfig ¶ added in v0.0.39
type DeployContractResponseBody ¶
type DeployContractResponseBody struct {
ContractAddress string `json:"contractAddress,omitempty"`
}
type EthconnectMessageHeaders ¶ added in v0.0.45
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 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 PublishAbiResponseBody ¶
type PublishAbiResponseBody struct {
ID string `json:"id,omitempty"`
}
type RegisterResponseBody ¶
type Rest ¶ added in v0.0.39
type Rest struct {
RestGateway *RestGateway `yaml:"rest-gateway,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.