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:
8
models/models.go
Normal file → Executable file
8
models/models.go
Normal file → Executable file
@@ -78,6 +78,7 @@ type SmartContractCreateRequest struct {
|
||||
ExecutionOrder string `json:"executionOrder"`
|
||||
EnvironmentVariables map[string]string `json:"environmentVariables,omitempty"`
|
||||
Secrets map[string]string `json:"secret,omitempty"`
|
||||
Remote bool `json:"remote,omitempty"`
|
||||
}
|
||||
|
||||
type SmartContractUpdateRequest struct {
|
||||
@@ -101,6 +102,13 @@ type SmartContract struct {
|
||||
|
||||
EnvVars map[string]string `json:"envVars"`
|
||||
Secrets []string `json:"secrets"`
|
||||
|
||||
GrpcConnectionInfo *GrpcConnectionInfo `json:"grpcConnectionInfo,omitempty"`
|
||||
}
|
||||
|
||||
type GrpcConnectionInfo struct {
|
||||
Address string `json:"address"`
|
||||
ApiKey string `json:"apiKey,omitempty"`
|
||||
}
|
||||
|
||||
type SmartContractExecutionInfo struct {
|
||||
|
||||
Reference in New Issue
Block a user