Add remote smart contract and gRPC connection support
Add Remote field to SmartContractCreateRequest and GrpcConnectionInfo struct to SmartContract model for remote smart contract execution via gRPC.
This commit is contained in:
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
+8
@@ -78,6 +78,7 @@ type SmartContractCreateRequest struct {
|
|||||||
ExecutionOrder string `json:"executionOrder"`
|
ExecutionOrder string `json:"executionOrder"`
|
||||||
EnvironmentVariables map[string]string `json:"environmentVariables,omitempty"`
|
EnvironmentVariables map[string]string `json:"environmentVariables,omitempty"`
|
||||||
Secrets map[string]string `json:"secret,omitempty"`
|
Secrets map[string]string `json:"secret,omitempty"`
|
||||||
|
Remote bool `json:"remote,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type SmartContractUpdateRequest struct {
|
type SmartContractUpdateRequest struct {
|
||||||
@@ -101,6 +102,13 @@ type SmartContract struct {
|
|||||||
|
|
||||||
EnvVars map[string]string `json:"envVars"`
|
EnvVars map[string]string `json:"envVars"`
|
||||||
Secrets []string `json:"secrets"`
|
Secrets []string `json:"secrets"`
|
||||||
|
|
||||||
|
GrpcConnectionInfo *GrpcConnectionInfo `json:"grpcConnectionInfo,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type GrpcConnectionInfo struct {
|
||||||
|
Address string `json:"address"`
|
||||||
|
ApiKey string `json:"apiKey,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type SmartContractExecutionInfo struct {
|
type SmartContractExecutionInfo struct {
|
||||||
|
|||||||
Regular → Executable
Regular → Executable
Regular → Executable
Reference in New Issue
Block a user