Skip to content
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
6 changes: 4 additions & 2 deletions packages/dapi-grpc/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig {
// Derive features for versioned messages
//
// "GetConsensusParamsRequest" is excluded as this message does not support proofs
const VERSIONED_REQUESTS: [&str; 56] = [
const VERSIONED_REQUESTS: [&str; 57] = [
"GetDataContractHistoryRequest",
"GetDataContractRequest",
"GetDataContractsRequest",
Expand Down Expand Up @@ -138,6 +138,7 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig {
"GetShieldedAnchorsRequest",
"GetMostRecentShieldedAnchorRequest",
"GetShieldedPoolStateRequest",
"GetShieldedNotesCountRequest",
"GetShieldedNullifiersRequest",
"GetRecentNullifierChangesRequest",
"GetRecentCompactedNullifierChangesRequest",
Expand All @@ -161,7 +162,7 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig {
// - "GetIdentityByNonUniquePublicKeyHashResponse"
//
// "GetEvonodesProposedEpochBlocksResponse" is used for 2 Requests
const VERSIONED_RESPONSES: [&str; 54] = [
const VERSIONED_RESPONSES: [&str; 55] = [
"GetDataContractHistoryResponse",
"GetDataContractResponse",
"GetDataContractsResponse",
Expand Down Expand Up @@ -213,6 +214,7 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig {
"GetShieldedAnchorsResponse",
"GetMostRecentShieldedAnchorResponse",
"GetShieldedPoolStateResponse",
"GetShieldedNotesCountResponse",
"GetShieldedNullifiersResponse",
"GetRecentNullifierChangesResponse",
"GetRecentCompactedNullifierChangesResponse",
Expand Down
919 changes: 919 additions & 0 deletions packages/dapi-grpc/clients/drive/v0/nodejs/drive_pbjs.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1782,6 +1782,37 @@ org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedPoolStateResponse> getGe
return getGetShieldedPoolStateMethod;
}

private static volatile io.grpc.MethodDescriptor<org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNotesCountRequest,
org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNotesCountResponse> getGetShieldedNotesCountMethod;

@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getShieldedNotesCount",
requestType = org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNotesCountRequest.class,
responseType = org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNotesCountResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNotesCountRequest,
org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNotesCountResponse> getGetShieldedNotesCountMethod() {
io.grpc.MethodDescriptor<org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNotesCountRequest, org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNotesCountResponse> getGetShieldedNotesCountMethod;
if ((getGetShieldedNotesCountMethod = PlatformGrpc.getGetShieldedNotesCountMethod) == null) {
synchronized (PlatformGrpc.class) {
if ((getGetShieldedNotesCountMethod = PlatformGrpc.getGetShieldedNotesCountMethod) == null) {
PlatformGrpc.getGetShieldedNotesCountMethod = getGetShieldedNotesCountMethod =
io.grpc.MethodDescriptor.<org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNotesCountRequest, org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNotesCountResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getShieldedNotesCount"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNotesCountRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNotesCountResponse.getDefaultInstance()))
.setSchemaDescriptor(new PlatformMethodDescriptorSupplier("getShieldedNotesCount"))
.build();
}
}
}
return getGetShieldedNotesCountMethod;
}

private static volatile io.grpc.MethodDescriptor<org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNullifiersRequest,
org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNullifiersResponse> getGetShieldedNullifiersMethod;

Expand Down Expand Up @@ -2405,6 +2436,13 @@ public void getShieldedPoolState(org.dash.platform.dapi.v0.PlatformOuterClass.Ge
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetShieldedPoolStateMethod(), responseObserver);
}

/**
*/
public void getShieldedNotesCount(org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNotesCountRequest request,
io.grpc.stub.StreamObserver<org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNotesCountResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetShieldedNotesCountMethod(), responseObserver);
}

/**
*/
public void getShieldedNullifiers(org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNullifiersRequest request,
Expand Down Expand Up @@ -2841,6 +2879,13 @@ public void getRecentCompactedNullifierChanges(org.dash.platform.dapi.v0.Platfor
org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedPoolStateRequest,
org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedPoolStateResponse>(
this, METHODID_GET_SHIELDED_POOL_STATE)))
.addMethod(
getGetShieldedNotesCountMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNotesCountRequest,
org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNotesCountResponse>(
this, METHODID_GET_SHIELDED_NOTES_COUNT)))
.addMethod(
getGetShieldedNullifiersMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
Expand Down Expand Up @@ -3371,6 +3416,14 @@ public void getShieldedPoolState(org.dash.platform.dapi.v0.PlatformOuterClass.Ge
getChannel().newCall(getGetShieldedPoolStateMethod(), getCallOptions()), request, responseObserver);
}

/**
*/
public void getShieldedNotesCount(org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNotesCountRequest request,
io.grpc.stub.StreamObserver<org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNotesCountResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetShieldedNotesCountMethod(), getCallOptions()), request, responseObserver);
}

/**
*/
public void getShieldedNullifiers(org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNullifiersRequest request,
Expand Down Expand Up @@ -3846,6 +3899,13 @@ public org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedPoolStateResponse
getChannel(), getGetShieldedPoolStateMethod(), getCallOptions(), request);
}

/**
*/
public org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNotesCountResponse getShieldedNotesCount(org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNotesCountRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetShieldedNotesCountMethod(), getCallOptions(), request);
}

/**
*/
public org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNullifiersResponse getShieldedNullifiers(org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNullifiersRequest request) {
Expand Down Expand Up @@ -4373,6 +4433,14 @@ public com.google.common.util.concurrent.ListenableFuture<org.dash.platform.dapi
getChannel().newCall(getGetShieldedPoolStateMethod(), getCallOptions()), request);
}

/**
*/
public com.google.common.util.concurrent.ListenableFuture<org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNotesCountResponse> getShieldedNotesCount(
org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNotesCountRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetShieldedNotesCountMethod(), getCallOptions()), request);
}

/**
*/
public com.google.common.util.concurrent.ListenableFuture<org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNullifiersResponse> getShieldedNullifiers(
Expand Down Expand Up @@ -4471,11 +4539,12 @@ public com.google.common.util.concurrent.ListenableFuture<org.dash.platform.dapi
private static final int METHODID_GET_SHIELDED_ANCHORS = 54;
private static final int METHODID_GET_MOST_RECENT_SHIELDED_ANCHOR = 55;
private static final int METHODID_GET_SHIELDED_POOL_STATE = 56;
private static final int METHODID_GET_SHIELDED_NULLIFIERS = 57;
private static final int METHODID_GET_NULLIFIERS_TRUNK_STATE = 58;
private static final int METHODID_GET_NULLIFIERS_BRANCH_STATE = 59;
private static final int METHODID_GET_RECENT_NULLIFIER_CHANGES = 60;
private static final int METHODID_GET_RECENT_COMPACTED_NULLIFIER_CHANGES = 61;
private static final int METHODID_GET_SHIELDED_NOTES_COUNT = 57;
private static final int METHODID_GET_SHIELDED_NULLIFIERS = 58;
private static final int METHODID_GET_NULLIFIERS_TRUNK_STATE = 59;
private static final int METHODID_GET_NULLIFIERS_BRANCH_STATE = 60;
private static final int METHODID_GET_RECENT_NULLIFIER_CHANGES = 61;
private static final int METHODID_GET_RECENT_COMPACTED_NULLIFIER_CHANGES = 62;

private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
Expand Down Expand Up @@ -4722,6 +4791,10 @@ public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserv
serviceImpl.getShieldedPoolState((org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedPoolStateRequest) request,
(io.grpc.stub.StreamObserver<org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedPoolStateResponse>) responseObserver);
break;
case METHODID_GET_SHIELDED_NOTES_COUNT:
serviceImpl.getShieldedNotesCount((org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNotesCountRequest) request,
(io.grpc.stub.StreamObserver<org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNotesCountResponse>) responseObserver);
break;
case METHODID_GET_SHIELDED_NULLIFIERS:
serviceImpl.getShieldedNullifiers((org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNullifiersRequest) request,
(io.grpc.stub.StreamObserver<org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNullifiersResponse>) responseObserver);
Expand Down Expand Up @@ -4860,6 +4933,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
.addMethod(getGetShieldedAnchorsMethod())
.addMethod(getGetMostRecentShieldedAnchorMethod())
.addMethod(getGetShieldedPoolStateMethod())
.addMethod(getGetShieldedNotesCountMethod())
.addMethod(getGetShieldedNullifiersMethod())
.addMethod(getGetNullifiersTrunkStateMethod())
.addMethod(getGetNullifiersBranchStateMethod())
Expand Down
Loading
Loading