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:
2026-02-11 11:20:21 -05:00
parent ee3c6941ee
commit e15b205f9c
14 changed files with 8 additions and 0 deletions

0
.gitignore vendored Normal file → Executable file
View File

0
LICENSE Normal file → Executable file
View File

0
README.md Normal file → Executable file
View File

0
block/block.go Normal file → Executable file
View File

0
client/client.go Normal file → Executable file
View File

0
contract/contract.go Normal file → Executable file
View File

0
credentials/credentials.go Normal file → Executable file
View File

0
dragonchain.go Normal file → Executable file
View File

0
go.mod Normal file → Executable file
View File

0
go.sum Normal file → Executable file
View File

8
models/models.go Normal file → Executable file
View File

@@ -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 {

0
system/system.go Normal file → Executable file
View File

0
transaction/transaction.go Normal file → Executable file
View File

0
transactiontype/transactiontype.go Normal file → Executable file
View File