-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into re-introduce-license
- Loading branch information
Showing
7 changed files
with
138 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
105 changes: 105 additions & 0 deletions
105
p8e-proto-internal/src/main/proto/p8e/index_service.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
syntax = "proto3"; | ||
|
||
package p8e; | ||
|
||
option go_package="github.com/FigureTechnologies/p8e-proto-go/pkg/p8e"; | ||
option java_package = "io.p8e.proto"; | ||
|
||
import "google/protobuf/timestamp.proto"; | ||
import "p8e/contract.proto"; | ||
import "p8e/contract_scope.proto"; | ||
import "p8e/util.proto"; | ||
import "p8e/public_key.proto"; | ||
|
||
option java_outer_classname = "Index"; | ||
|
||
service IndexService { | ||
rpc ElasticSearchQuery (ElasticSearchQueryRequest) returns (ScopeWrappers) {}; | ||
|
||
rpc Query (QueryRequest) returns (ScopeWrappers) {}; | ||
|
||
rpc ElasticSearchRawQuery (ElasticSearchQueryRequest) returns (RawQueryResults) {}; | ||
|
||
rpc RawQuery (QueryRequest) returns (RawQueryResults) {}; | ||
|
||
rpc FindLatestScopeByUuid (UUID) returns (ScopeWrapper) {}; | ||
|
||
rpc FindLatestScopesByUuids (ScopesRequest) returns (ScopeWrappers) {}; | ||
|
||
rpc QueryCount (QueryRequest) returns (QueryCountResponse) {}; | ||
|
||
rpc QueryWithCount (QueryRequest) returns (QueryScopeWrapper) {}; | ||
|
||
rpc GetFactHistory (FactHistoryRequest) returns (FactHistoryResponse) {}; | ||
} | ||
|
||
message ElasticSearchQueryRequest { | ||
string query = 1; | ||
} | ||
|
||
message QueryRequest { | ||
string json = 1; | ||
} | ||
|
||
message ScopesRequest { | ||
repeated UUID uuids = 1; | ||
} | ||
|
||
message ScopeWrappers { | ||
repeated ScopeWrapper scopes = 1; | ||
} | ||
|
||
message ScopeWrapper { | ||
uint64 blockNumber = 1; | ||
uint64 blockTransactionIndex = 2; | ||
p8e.Scope scope = 3; | ||
} | ||
|
||
message RawQueryResults { | ||
repeated RawQueryResult results = 1; | ||
} | ||
|
||
message RawQueryResult { | ||
string id = 1; | ||
string fieldJson = 2; | ||
} | ||
|
||
message QueryCountResponse { | ||
uint64 count = 1; | ||
bool isTerminateEarly = 2; | ||
uint32 successfulShards = 3; | ||
uint32 skippedShards = 4; | ||
uint32 failedShards = 5; | ||
uint32 totalShards = 6; | ||
} | ||
|
||
message QueryScopeWrapper { | ||
repeated ScopeWrapper scopes = 1; | ||
uint64 totalHits = 2; | ||
} | ||
|
||
message FactHistoryRequest { | ||
UUID scope_uuid = 1; | ||
string fact_name = 2; | ||
string classname = 3; | ||
google.protobuf.Timestamp start_window = 4; | ||
google.protobuf.Timestamp end_window = 5; | ||
} | ||
|
||
message FactHistoryResponse { | ||
repeated FactHistoryResponseEntry entries = 1; | ||
} | ||
|
||
message FactHistoryResponseEntry { | ||
SigningAndEncryptionPublicKeys executor = 1; | ||
repeated Recital parties = 2; | ||
string contract_jar_hash = 3; | ||
string contract_classname = 4; | ||
string function_name = 5; | ||
string result_name = 6; | ||
string result_hash = 7; | ||
bytes fact_bytes = 8; | ||
AuditFields fact_audit_fields = 9; | ||
uint64 block_number = 10; | ||
uint64 block_transaction_index = 11; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters