Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add get full collection by id api #1463

Merged
merged 1 commit into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions protobuf/flow/access/access.proto
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ service AccessAPI {

// GetCollectionByID gets a collection by ID.
rpc GetCollectionByID(GetCollectionByIDRequest) returns (CollectionResponse);
// GetFullCollectionByID gets a collection by ID.
rpc GetFullCollectionByID(GetFullCollectionByIDRequest) returns (FullCollectionResponse);

// Transactions

Expand Down Expand Up @@ -189,7 +191,7 @@ service AccessAPI {
// if the status is "sealed", only sealed blocks will be returned.
rpc SubscribeBlocksFromLatest(SubscribeBlocksFromLatestRequest)
returns (stream SubscribeBlocksResponse);

// Subscribe block headers

// SubscribeBlockHeadersFromStartBlockID streams finalized or sealed block headers starting at the requested
Expand Down Expand Up @@ -317,11 +319,20 @@ message GetCollectionByIDRequest {
bytes id = 1;
}

message GetFullCollectionByIDRequest {
bytes id = 1;
}

message CollectionResponse {
entities.Collection collection = 1;
entities.Metadata metadata = 2;
}

message FullCollectionResponse {
repeated entities.Transaction transactions = 1;
entities.Metadata metadata = 2;
}

// Transactions

message SendTransactionRequest {
Expand Down Expand Up @@ -666,4 +677,4 @@ message SendAndSubscribeTransactionStatusesResponse {
TransactionResultResponse transaction_results = 1;
// The message index of the response message. Used by the client to ensure they received all messages. Starts from "0".
uint64 message_index = 2;
}
}
Loading
Loading