Documentation
¶
Index ¶
- type Config
- type DeployContractResponseBody
- type Ethconnect
- func (e *Ethconnect) DeployContract(contract *ethtypes.CompiledContract, contractName string, ...) (*types.ContractDeploymentResult, error)
- func (e *Ethconnect) FirstTimeSetup(stack *types.Stack) error
- func (e *Ethconnect) GenerateConfig(stack *types.Stack, member *types.Organization, blockchainServiceName string) connector.Config
- func (e *Ethconnect) GetServiceDefinitions(s *types.Stack, dependentServices map[string]string) []*docker.ServiceDefinition
- func (e *Ethconnect) Name() string
- func (e *Ethconnect) Port() int
- 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 ¶
This section is empty.
Types ¶
type DeployContractResponseBody ¶
type DeployContractResponseBody struct {
ContractAddress string `json:"contractAddress,omitempty"`
}
type Ethconnect ¶
type Ethconnect struct {
// contains filtered or unexported fields
}
func NewEthconnect ¶
func NewEthconnect(ctx context.Context) *Ethconnect
func (*Ethconnect) DeployContract ¶
func (e *Ethconnect) DeployContract(contract *ethtypes.CompiledContract, contractName string, member *types.Organization, extraArgs []string) (*types.ContractDeploymentResult, error)
func (*Ethconnect) FirstTimeSetup ¶ added in v1.3.0
func (e *Ethconnect) FirstTimeSetup(stack *types.Stack) error
func (*Ethconnect) GenerateConfig ¶
func (e *Ethconnect) GenerateConfig(stack *types.Stack, member *types.Organization, blockchainServiceName string) connector.Config
func (*Ethconnect) GetServiceDefinitions ¶
func (e *Ethconnect) GetServiceDefinitions(s *types.Stack, dependentServices map[string]string) []*docker.ServiceDefinition
func (*Ethconnect) Name ¶
func (e *Ethconnect) Name() string
func (*Ethconnect) Port ¶
func (e *Ethconnect) Port() int
type EthconnectMessageRequest ¶
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"`
Params []interface{} `json:"params"`
}
type EthconnectReply ¶
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 ¶
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 ¶
type Rest struct {
RestGateway *RestGateway `yaml:"rest-gateway,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.