Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(dapi): return actual fees paid in state transition broadcast responses #2977

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

Draft
pauldelucia wants to merge 1 commit into v3.0-dev
base: v3.0-dev
Choose a base branch
Loading
from feat/feeResult
Draft

feat(dapi): return actual fees paid in state transition broadcast responses #2977

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
3,895 changes: 3,895 additions & 0 deletions packages/dapi-grpc/clients/drive/v0/nodejs/drive_pbjs.js
View file
Open in desktop

Large diffs are not rendered by default.

148 changes: 148 additions & 0 deletions packages/dapi-grpc/clients/platform/v0/java/org/dash/platfor m/dapi/v0/PlatformGrpc.java
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -1596,6 +1596,68 @@ org.dash.platform.dapi.v0.PlatformOuterClass.GetAddressesBranchStateResponse> ge
return getGetAddressesBranchStateMethod;
}

private static volatile io.grpc.MethodDescriptor
org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentAddressBalanceChangesResponse> getGetRecentAddressBalanceChangesMethod;

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

private static volatile io.grpc.MethodDescriptor
org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentCompactedAddressBalanceChangesResponse> getGetRecentCompactedAddressBalanceChangesMethod;

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

/**
* Creates a new async stub that supports all call types for the service
*/
Expand Down Expand Up @@ -2016,6 +2078,20 @@ public void getAddressesBranchState(org.dash.platform.dapi.v0.PlatformOuterClass
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetA ddressesBranchStateMethod(), responseObserver);
}

/**
*/
public void getRecentAddressBalanceChanges(org.dash.platform.dapi.v0.Pla tformOuterClass.GetRecentAddressBalanceChangesRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetR ecentAddressBalanceChangesMethod(), responseObserver);
}

/**
*/
public void getRecentCompactedAddressBalanceChanges(org.dash.platform.da pi.v0.PlatformOuterClass.GetRecentCompactedAddressBalanceCha ngesRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetR ecentCompactedAddressBalanceChangesMethod(), responseObserver);
}

@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
Expand Down Expand Up @@ -2375,6 +2451,20 @@ public void getAddressesBranchState(org.dash.platform.dapi.v0.PlatformOuterClass
org.dash.platform.dapi.v0.PlatformOuterClass.GetAddressesBranchStateRequest,
org.dash.platform.dapi.v0.PlatformOuterClass.GetAddressesBranchStateResponse>(
this, METHODID_GET_ADDRESSES_BRANCH_STATE)))
.addMethod(
getGetRecentAddressBalanceChangesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentAddressBalanceChangesRequest,
org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentAddressBalanceChangesResponse>(
this, METHODID_GET_RECENT_ADDRESS_BALANCE_CHANGES)))
.addMethod(
getGetRecentCompactedAddressBalanceChangesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentCompactedAddressBalanceChangesRequest,
org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentCompactedAddressBalanceChangesResponse>(
this, METHODID_GET_RECENT_COMPACTED_ADDRESS_BALANCE_CHANGES)))
.build();
}
}
Expand Down Expand Up @@ -2815,6 +2905,22 @@ public void getAddressesBranchState(org.dash.platform.dapi.v0.PlatformOuterClass
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetAddressesBranchStateMethod(), getCallOptions()), request, responseObserver);
}

/**
*/
public void getRecentAddressBalanceChanges(org.dash.platform.dapi.v0.Pla tformOuterClass.GetRecentAddressBalanceChangesRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetRecentAddressBalanceChangesMethod (), getCallOptions()), request, responseObserver);
}

/**
*/
public void getRecentCompactedAddressBalanceChanges(org.dash.platform.da pi.v0.PlatformOuterClass.GetRecentCompactedAddressBalanceCha ngesRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetRecentCompactedAddressBalanceChan gesMethod(), getCallOptions()), request, responseObserver);
}
}

/**
Expand Down Expand Up @@ -3202,6 +3308,20 @@ public org.dash.platform.dapi.v0.PlatformOuterClass.GetAddressesBranchStateRespo
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetAddressesBranchStateMethod(), getCallOptions(), request);
}

/**
*/
public org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentAddres sBalanceChangesResponse getRecentAddressBalanceChanges(org.dash.platform.dapi.v0.Pla tformOuterClass.GetRecentAddressBalanceChangesRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetRecentAddressBalanceChangesMethod(), getCallOptions(), request);
}

/**
*/
public org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentCompac tedAddressBalanceChangesResponse getRecentCompactedAddressBalanceChanges(org.dash.platform.da pi.v0.PlatformOuterClass.GetRecentCompactedAddressBalanceCha ngesRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetRecentCompactedAddressBalanceChangesMethod(), getCallOptions(), request);
}
}

/**
Expand Down Expand Up @@ -3640,6 +3760,22 @@ public com.google.common.util.concurrent.ListenableFuture
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetAddressesBranchStateMethod(), getCallOptions()), request);
}

/**
*/
public com.google.common.util.concurrent.ListenableFuture getRecentAddressBalanceChanges(
org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentAddres sBalanceChangesRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetRecentAddressBalanceChangesMethod (), getCallOptions()), request);
}

/**
*/
public com.google.common.util.concurrent.ListenableFuture getRecentCompactedAddressBalanceChanges(
org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentCompac tedAddressBalanceChangesRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetRecentCompactedAddressBalanceChan gesMethod(), getCallOptions()), request);
}
}

private static final int METHODID_BROADCAST_STATE_TRANSITION = 0;
Expand Down Expand Up @@ -3693,6 +3829,8 @@ public com.google.common.util.concurrent.ListenableFuture
private static final int METHODID_GET_ADDRESSES_INFOS = 48;
private static final int METHODID_GET_ADDRESSES_TRUNK_STATE = 49;
private static final int METHODID_GET_ADDRESSES_BRANCH_STATE = 50;
private static final int METHODID_GET_RECENT_ADDRESS_BALANCE_CHANGES = 51;
private static final int METHODID_GET_RECENT_COMPACTED_ADDRESS_BALANCE_CHANGES = 52;

private static final class MethodHandlers implements
io.grpc.stub.ServerCalls.UnaryMethod,
Expand Down Expand Up @@ -3915,6 +4053,14 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv
serviceImpl.getAddressesBranchState((org.dash.platform.dapi. v0.PlatformOuterClass.GetAddressesBranchStateRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_RECENT_ADDRESS_BALANCE_CHANGES:
serviceImpl.getRecentAddressBalanceChanges((org.dash.platfor m.dapi.v0.PlatformOuterClass.GetRecentAddressBalanceChangesR equest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_RECENT_COMPACTED_ADDRESS_BALANCE_CHANGES:
serviceImpl.getRecentCompactedAddressBalanceChanges((org.das h.platform.dapi.v0.PlatformOuterClass.GetRecentCompactedAddr essBalanceChangesRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
default:
throw new AssertionError();
}
Expand Down Expand Up @@ -4027,6 +4173,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
.addMethod(getGetAddressesInfosMethod())
.addMethod(getGetAddressesTrunkStateMethod())
.addMethod(getGetAddressesBranchStateMethod())
.addMethod(getGetRecentAddressBalanceChangesMethod())
.addMethod(getGetRecentCompactedAddressBalanceChangesMethod())
.build();
}
}
Expand Down
Loading
Loading