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

feat: query block count per Evonode proposed in any given epoch #2114

Merged
merged 13 commits into from
Sep 12, 2024
8 changes: 6 additions & 2 deletions packages/dapi-grpc/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
// Derive features for versioned messages
//
// "GetConsensusParamsRequest" is excluded as this message does not support proofs
const VERSIONED_REQUESTS: [&str; 27] = [
const VERSIONED_REQUESTS: [&str; 29] = [
"GetDataContractHistoryRequest",
"GetDataContractRequest",
"GetDataContractsRequest",
Expand Down Expand Up @@ -75,10 +75,13 @@
"GetContestedResourceIdentityVotesRequest",
"GetVotePollsByEndDateRequest",
"GetTotalCreditsInPlatformRequest",
"GetEvonodesProposedEpochBlocksByIdsRequest",
"GetEvonodesProposedEpochBlocksByRangeRequest",
];

// "GetConsensusParamsResponse" is excluded as this message does not support proofs
const VERSIONED_RESPONSES: [&str; 28] = [
// "GetEvonodesProposedEpochBlocksResponse" is used for 2 Requests
const VERSIONED_RESPONSES: [&str; 29] = [
"GetDataContractHistoryResponse",
"GetDataContractResponse",
"GetDataContractsResponse",
Expand Down Expand Up @@ -107,6 +110,7 @@
"GetContestedResourceIdentityVotesResponse",
"GetVotePollsByEndDateResponse",
"GetTotalCreditsInPlatformResponse",
"GetEvonodesProposedEpochBlocksResponse",
];

check_unique(&VERSIONED_REQUESTS).expect("VERSIONED_REQUESTS");
Expand Down Expand Up @@ -209,8 +213,8 @@
///
/// * `protobuf_file` - Path to the protobuf file to use as input.
/// * `out_dir` - Output directory where subdirectories for generated files will be created.
/// Depending on the features, either `client`, `server` or `client_server` subdirectory

Check warning on line 216 in packages/dapi-grpc/build.rs

View workflow job for this annotation

GitHub Actions / Rust packages (dapi-grpc) / Linting

doc list item missing indentation

warning: doc list item missing indentation --> packages/dapi-grpc/build.rs:216:9 | 216 | /// Depending on the features, either `client`, `server` or `client_server` subdirectory | ^ | = help: if this is supposed to be its own paragraph, add a blank line = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation = note: `#[warn(clippy::doc_lazy_continuation)]` on by default help: indent this line | 216 | /// Depending on the features, either `client`, `server` or `client_server` subdirectory | ++
/// will be created inside `out_dir`.

Check warning on line 217 in packages/dapi-grpc/build.rs

View workflow job for this annotation

GitHub Actions / Rust packages (dapi-grpc) / Linting

doc list item missing indentation

warning: doc list item missing indentation --> packages/dapi-grpc/build.rs:217:9 | 217 | /// will be created inside `out_dir`. | ^ | = help: if this is supposed to be its own paragraph, add a blank line = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation help: indent this line | 217 | /// will be created inside `out_dir`. | ++
fn new(protobuf_file: PathBuf, out_dir: PathBuf) -> Self {
let protobuf_file = abs_path(&protobuf_file);

Expand Down

Large diffs are not rendered by default.

1,972 changes: 1,972 additions & 0 deletions packages/dapi-grpc/clients/platform/v0/nodejs/platform_pbjs.js

Large diffs are not rendered by default.

1,950 changes: 1,950 additions & 0 deletions packages/dapi-grpc/clients/platform/v0/nodejs/platform_protoc.js

Large diffs are not rendered by default.

207 changes: 207 additions & 0 deletions packages/dapi-grpc/clients/platform/v0/objective-c/Platform.pbobjc.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading