From e15b205f9cf0dce7f1e1a0f28f9dd0a6c669a219 Mon Sep 17 00:00:00 2001 From: Andrew Miller Date: Wed, 11 Feb 2026 11:20:21 -0500 Subject: [PATCH] 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. --- .gitignore | 0 LICENSE | 0 README.md | 0 block/block.go | 0 client/client.go | 0 contract/contract.go | 0 credentials/credentials.go | 0 dragonchain.go | 0 go.mod | 0 go.sum | 0 models/models.go | 8 ++++++++ system/system.go | 0 transaction/transaction.go | 0 transactiontype/transactiontype.go | 0 14 files changed, 8 insertions(+) mode change 100644 => 100755 .gitignore mode change 100644 => 100755 LICENSE mode change 100644 => 100755 README.md mode change 100644 => 100755 block/block.go mode change 100644 => 100755 client/client.go mode change 100644 => 100755 contract/contract.go mode change 100644 => 100755 credentials/credentials.go mode change 100644 => 100755 dragonchain.go mode change 100644 => 100755 go.mod mode change 100644 => 100755 go.sum mode change 100644 => 100755 models/models.go mode change 100644 => 100755 system/system.go mode change 100644 => 100755 transaction/transaction.go mode change 100644 => 100755 transactiontype/transactiontype.go diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/block/block.go b/block/block.go old mode 100644 new mode 100755 diff --git a/client/client.go b/client/client.go old mode 100644 new mode 100755 diff --git a/contract/contract.go b/contract/contract.go old mode 100644 new mode 100755 diff --git a/credentials/credentials.go b/credentials/credentials.go old mode 100644 new mode 100755 diff --git a/dragonchain.go b/dragonchain.go old mode 100644 new mode 100755 diff --git a/go.mod b/go.mod old mode 100644 new mode 100755 diff --git a/go.sum b/go.sum old mode 100644 new mode 100755 diff --git a/models/models.go b/models/models.go old mode 100644 new mode 100755 index f0adee1..b14a26e --- a/models/models.go +++ b/models/models.go @@ -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 { diff --git a/system/system.go b/system/system.go old mode 100644 new mode 100755 diff --git a/transaction/transaction.go b/transaction/transaction.go old mode 100644 new mode 100755 diff --git a/transactiontype/transactiontype.go b/transactiontype/transactiontype.go old mode 100644 new mode 100755