From 30b08720a5e7cd20bef00b9532c410ca3786a154 Mon Sep 17 00:00:00 2001 From: mikeluxue Date: Mon, 10 Apr 2023 17:40:43 +0800 Subject: [PATCH 1/9] feat(core): 0ptimize the way of building transactions --- trident-java/build.gradle | 2 +- .../grpc/org/tron/trident/api/WalletGrpc.java | 9890 +++++------------ .../java/org/tron/trident/api/GrpcAPI.java | 448 +- .../org/tron/trident/core/ApiWrapper.java | 174 +- .../trident/core/transaction/BlockId.java | 58 + .../core/transaction/TransactionCapsule.java | 100 + .../tron/trident/core/utils/ByteArray.java | 128 + .../tron/trident/core/utils/Sha256Hash.java | 333 + .../org/tron/trident/core/utils/Utils.java | 32 + .../java/org/tron/trident/proto/Response.java | 568 +- .../core/src/main/proto/api/api.proto | 152 +- 11 files changed, 4436 insertions(+), 7449 deletions(-) create mode 100644 trident-java/core/src/main/java/org/tron/trident/core/transaction/BlockId.java create mode 100644 trident-java/core/src/main/java/org/tron/trident/core/transaction/TransactionCapsule.java create mode 100644 trident-java/core/src/main/java/org/tron/trident/core/utils/ByteArray.java create mode 100644 trident-java/core/src/main/java/org/tron/trident/core/utils/Sha256Hash.java create mode 100644 trident-java/core/src/main/java/org/tron/trident/core/utils/Utils.java diff --git a/trident-java/build.gradle b/trident-java/build.gradle index ad0c1f5..0859707 100644 --- a/trident-java/build.gradle +++ b/trident-java/build.gradle @@ -8,7 +8,7 @@ ext { } allprojects { - version '0.4.1' + version '0.5.0' group = 'org.tron.trident' repositories { diff --git a/trident-java/core/src/main/grpc/org/tron/trident/api/WalletGrpc.java b/trident-java/core/src/main/grpc/org/tron/trident/api/WalletGrpc.java index f62e436..4eb4a84 100644 --- a/trident-java/core/src/main/grpc/org/tron/trident/api/WalletGrpc.java +++ b/trident-java/core/src/main/grpc/org/tron/trident/api/WalletGrpc.java @@ -58,7006 +58,3585 @@ org.tron.trident.proto.Response.TransactionReturn> getBroadcastTransactionMethod return getBroadcastTransactionMethod; } - private static volatile io.grpc.MethodDescriptor getCreateCommonTransactionMethod; + private static volatile io.grpc.MethodDescriptor getGetNodeInfoMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCommonTransaction", - requestType = org.tron.trident.proto.Chain.Transaction.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetNodeInfo", + requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, + responseType = org.tron.trident.proto.Response.NodeInfo.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateCommonTransactionMethod() { - io.grpc.MethodDescriptor getCreateCommonTransactionMethod; - if ((getCreateCommonTransactionMethod = WalletGrpc.getCreateCommonTransactionMethod) == null) { + public static io.grpc.MethodDescriptor getGetNodeInfoMethod() { + io.grpc.MethodDescriptor getGetNodeInfoMethod; + if ((getGetNodeInfoMethod = WalletGrpc.getGetNodeInfoMethod) == null) { synchronized (WalletGrpc.class) { - if ((getCreateCommonTransactionMethod = WalletGrpc.getCreateCommonTransactionMethod) == null) { - WalletGrpc.getCreateCommonTransactionMethod = getCreateCommonTransactionMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetNodeInfoMethod = WalletGrpc.getGetNodeInfoMethod) == null) { + WalletGrpc.getGetNodeInfoMethod = getGetNodeInfoMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCommonTransaction")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNodeInfo")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Chain.Transaction.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("CreateCommonTransaction")) + org.tron.trident.proto.Response.NodeInfo.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetNodeInfo")) .build(); } } } - return getCreateCommonTransactionMethod; + return getGetNodeInfoMethod; } - private static volatile io.grpc.MethodDescriptor getCreateAccountMethod; + private static volatile io.grpc.MethodDescriptor getListNodesMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateAccount", - requestType = org.tron.trident.proto.Contract.AccountCreateContract.class, - responseType = org.tron.trident.proto.Chain.Transaction.class, + fullMethodName = SERVICE_NAME + '/' + "ListNodes", + requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, + responseType = org.tron.trident.proto.Response.NodeList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateAccountMethod() { - io.grpc.MethodDescriptor getCreateAccountMethod; - if ((getCreateAccountMethod = WalletGrpc.getCreateAccountMethod) == null) { + public static io.grpc.MethodDescriptor getListNodesMethod() { + io.grpc.MethodDescriptor getListNodesMethod; + if ((getListNodesMethod = WalletGrpc.getListNodesMethod) == null) { synchronized (WalletGrpc.class) { - if ((getCreateAccountMethod = WalletGrpc.getCreateAccountMethod) == null) { - WalletGrpc.getCreateAccountMethod = getCreateAccountMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getListNodesMethod = WalletGrpc.getListNodesMethod) == null) { + WalletGrpc.getListNodesMethod = getListNodesMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAccount")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNodes")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.AccountCreateContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Chain.Transaction.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("CreateAccount")) + org.tron.trident.proto.Response.NodeList.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("ListNodes")) .build(); } } } - return getCreateAccountMethod; + return getListNodesMethod; } - private static volatile io.grpc.MethodDescriptor getCreateAccount2Method; + private static volatile io.grpc.MethodDescriptor getGetChainParametersMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateAccount2", - requestType = org.tron.trident.proto.Contract.AccountCreateContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetChainParameters", + requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, + responseType = org.tron.trident.proto.Response.ChainParameters.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateAccount2Method() { - io.grpc.MethodDescriptor getCreateAccount2Method; - if ((getCreateAccount2Method = WalletGrpc.getCreateAccount2Method) == null) { + public static io.grpc.MethodDescriptor getGetChainParametersMethod() { + io.grpc.MethodDescriptor getGetChainParametersMethod; + if ((getGetChainParametersMethod = WalletGrpc.getGetChainParametersMethod) == null) { synchronized (WalletGrpc.class) { - if ((getCreateAccount2Method = WalletGrpc.getCreateAccount2Method) == null) { - WalletGrpc.getCreateAccount2Method = getCreateAccount2Method = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetChainParametersMethod = WalletGrpc.getGetChainParametersMethod) == null) { + WalletGrpc.getGetChainParametersMethod = getGetChainParametersMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAccount2")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetChainParameters")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.AccountCreateContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("CreateAccount2")) + org.tron.trident.proto.Response.ChainParameters.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetChainParameters")) .build(); } } } - return getCreateAccount2Method; + return getGetChainParametersMethod; } - private static volatile io.grpc.MethodDescriptor getUpdateAccountMethod; + private static volatile io.grpc.MethodDescriptor getTotalTransactionMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateAccount", - requestType = org.tron.trident.proto.Contract.AccountUpdateContract.class, - responseType = org.tron.trident.proto.Chain.Transaction.class, + fullMethodName = SERVICE_NAME + '/' + "TotalTransaction", + requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, + responseType = org.tron.trident.api.GrpcAPI.NumberMessage.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateAccountMethod() { - io.grpc.MethodDescriptor getUpdateAccountMethod; - if ((getUpdateAccountMethod = WalletGrpc.getUpdateAccountMethod) == null) { + public static io.grpc.MethodDescriptor getTotalTransactionMethod() { + io.grpc.MethodDescriptor getTotalTransactionMethod; + if ((getTotalTransactionMethod = WalletGrpc.getTotalTransactionMethod) == null) { synchronized (WalletGrpc.class) { - if ((getUpdateAccountMethod = WalletGrpc.getUpdateAccountMethod) == null) { - WalletGrpc.getUpdateAccountMethod = getUpdateAccountMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getTotalTransactionMethod = WalletGrpc.getTotalTransactionMethod) == null) { + WalletGrpc.getTotalTransactionMethod = getTotalTransactionMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAccount")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TotalTransaction")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.AccountUpdateContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Chain.Transaction.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("UpdateAccount")) + org.tron.trident.api.GrpcAPI.NumberMessage.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("TotalTransaction")) .build(); } } } - return getUpdateAccountMethod; + return getTotalTransactionMethod; } - private static volatile io.grpc.MethodDescriptor getUpdateAccount2Method; + private static volatile io.grpc.MethodDescriptor getGetNextMaintenanceTimeMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateAccount2", - requestType = org.tron.trident.proto.Contract.AccountUpdateContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetNextMaintenanceTime", + requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, + responseType = org.tron.trident.api.GrpcAPI.NumberMessage.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateAccount2Method() { - io.grpc.MethodDescriptor getUpdateAccount2Method; - if ((getUpdateAccount2Method = WalletGrpc.getUpdateAccount2Method) == null) { + public static io.grpc.MethodDescriptor getGetNextMaintenanceTimeMethod() { + io.grpc.MethodDescriptor getGetNextMaintenanceTimeMethod; + if ((getGetNextMaintenanceTimeMethod = WalletGrpc.getGetNextMaintenanceTimeMethod) == null) { synchronized (WalletGrpc.class) { - if ((getUpdateAccount2Method = WalletGrpc.getUpdateAccount2Method) == null) { - WalletGrpc.getUpdateAccount2Method = getUpdateAccount2Method = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetNextMaintenanceTimeMethod = WalletGrpc.getGetNextMaintenanceTimeMethod) == null) { + WalletGrpc.getGetNextMaintenanceTimeMethod = getGetNextMaintenanceTimeMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAccount2")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNextMaintenanceTime")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.AccountUpdateContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("UpdateAccount2")) + org.tron.trident.api.GrpcAPI.NumberMessage.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetNextMaintenanceTime")) .build(); } } } - return getUpdateAccount2Method; + return getGetNextMaintenanceTimeMethod; } - private static volatile io.grpc.MethodDescriptor getSetAccountIdMethod; + private static volatile io.grpc.MethodDescriptor getGetTransactionSignWeightMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetAccountId", - requestType = org.tron.trident.proto.Contract.SetAccountIdContract.class, - responseType = org.tron.trident.proto.Chain.Transaction.class, + fullMethodName = SERVICE_NAME + '/' + "GetTransactionSignWeight", + requestType = org.tron.trident.proto.Chain.Transaction.class, + responseType = org.tron.trident.proto.Response.TransactionSignWeight.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetAccountIdMethod() { - io.grpc.MethodDescriptor getSetAccountIdMethod; - if ((getSetAccountIdMethod = WalletGrpc.getSetAccountIdMethod) == null) { + public static io.grpc.MethodDescriptor getGetTransactionSignWeightMethod() { + io.grpc.MethodDescriptor getGetTransactionSignWeightMethod; + if ((getGetTransactionSignWeightMethod = WalletGrpc.getGetTransactionSignWeightMethod) == null) { synchronized (WalletGrpc.class) { - if ((getSetAccountIdMethod = WalletGrpc.getSetAccountIdMethod) == null) { - WalletGrpc.getSetAccountIdMethod = getSetAccountIdMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetTransactionSignWeightMethod = WalletGrpc.getGetTransactionSignWeightMethod) == null) { + WalletGrpc.getGetTransactionSignWeightMethod = getGetTransactionSignWeightMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetAccountId")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactionSignWeight")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.SetAccountIdContract.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tron.trident.proto.Chain.Transaction.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("SetAccountId")) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.tron.trident.proto.Response.TransactionSignWeight.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetTransactionSignWeight")) .build(); } } } - return getSetAccountIdMethod; + return getGetTransactionSignWeightMethod; } - private static volatile io.grpc.MethodDescriptor getAccountPermissionUpdateMethod; + private static volatile io.grpc.MethodDescriptor getGetTransactionApprovedListMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AccountPermissionUpdate", - requestType = org.tron.trident.proto.Contract.AccountPermissionUpdateContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetTransactionApprovedList", + requestType = org.tron.trident.proto.Chain.Transaction.class, + responseType = org.tron.trident.proto.Response.TransactionApprovedList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getAccountPermissionUpdateMethod() { - io.grpc.MethodDescriptor getAccountPermissionUpdateMethod; - if ((getAccountPermissionUpdateMethod = WalletGrpc.getAccountPermissionUpdateMethod) == null) { + public static io.grpc.MethodDescriptor getGetTransactionApprovedListMethod() { + io.grpc.MethodDescriptor getGetTransactionApprovedListMethod; + if ((getGetTransactionApprovedListMethod = WalletGrpc.getGetTransactionApprovedListMethod) == null) { synchronized (WalletGrpc.class) { - if ((getAccountPermissionUpdateMethod = WalletGrpc.getAccountPermissionUpdateMethod) == null) { - WalletGrpc.getAccountPermissionUpdateMethod = getAccountPermissionUpdateMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetTransactionApprovedListMethod = WalletGrpc.getGetTransactionApprovedListMethod) == null) { + WalletGrpc.getGetTransactionApprovedListMethod = getGetTransactionApprovedListMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AccountPermissionUpdate")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactionApprovedList")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.AccountPermissionUpdateContract.getDefaultInstance())) + org.tron.trident.proto.Chain.Transaction.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("AccountPermissionUpdate")) + org.tron.trident.proto.Response.TransactionApprovedList.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetTransactionApprovedList")) .build(); } } } - return getAccountPermissionUpdateMethod; + return getGetTransactionApprovedListMethod; } - private static volatile io.grpc.MethodDescriptor getCreateTransactionMethod; + private static volatile io.grpc.MethodDescriptor getGetAccountMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateTransaction", - requestType = org.tron.trident.proto.Contract.TransferContract.class, - responseType = org.tron.trident.proto.Chain.Transaction.class, + fullMethodName = SERVICE_NAME + '/' + "GetAccount", + requestType = org.tron.trident.api.GrpcAPI.AccountAddressMessage.class, + responseType = org.tron.trident.proto.Response.Account.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateTransactionMethod() { - io.grpc.MethodDescriptor getCreateTransactionMethod; - if ((getCreateTransactionMethod = WalletGrpc.getCreateTransactionMethod) == null) { + public static io.grpc.MethodDescriptor getGetAccountMethod() { + io.grpc.MethodDescriptor getGetAccountMethod; + if ((getGetAccountMethod = WalletGrpc.getGetAccountMethod) == null) { synchronized (WalletGrpc.class) { - if ((getCreateTransactionMethod = WalletGrpc.getCreateTransactionMethod) == null) { - WalletGrpc.getCreateTransactionMethod = getCreateTransactionMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetAccountMethod = WalletGrpc.getGetAccountMethod) == null) { + WalletGrpc.getGetAccountMethod = getGetAccountMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTransaction")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccount")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.TransferContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.AccountAddressMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Chain.Transaction.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("CreateTransaction")) + org.tron.trident.proto.Response.Account.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetAccount")) .build(); } } } - return getCreateTransactionMethod; + return getGetAccountMethod; } - private static volatile io.grpc.MethodDescriptor getCreateTransaction2Method; + private static volatile io.grpc.MethodDescriptor getGetAccountByIdMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateTransaction2", - requestType = org.tron.trident.proto.Contract.TransferContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetAccountById", + requestType = org.tron.trident.api.GrpcAPI.AccountIdMessage.class, + responseType = org.tron.trident.proto.Response.Account.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateTransaction2Method() { - io.grpc.MethodDescriptor getCreateTransaction2Method; - if ((getCreateTransaction2Method = WalletGrpc.getCreateTransaction2Method) == null) { + public static io.grpc.MethodDescriptor getGetAccountByIdMethod() { + io.grpc.MethodDescriptor getGetAccountByIdMethod; + if ((getGetAccountByIdMethod = WalletGrpc.getGetAccountByIdMethod) == null) { synchronized (WalletGrpc.class) { - if ((getCreateTransaction2Method = WalletGrpc.getCreateTransaction2Method) == null) { - WalletGrpc.getCreateTransaction2Method = getCreateTransaction2Method = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetAccountByIdMethod = WalletGrpc.getGetAccountByIdMethod) == null) { + WalletGrpc.getGetAccountByIdMethod = getGetAccountByIdMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTransaction2")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccountById")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.TransferContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.AccountIdMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("CreateTransaction2")) + org.tron.trident.proto.Response.Account.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetAccountById")) .build(); } } } - return getCreateTransaction2Method; + return getGetAccountByIdMethod; } - private static volatile io.grpc.MethodDescriptor getCreateAssetIssueMethod; + private static volatile io.grpc.MethodDescriptor getGetAccountNetMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateAssetIssue", - requestType = org.tron.trident.proto.Contract.AssetIssueContract.class, - responseType = org.tron.trident.proto.Chain.Transaction.class, + fullMethodName = SERVICE_NAME + '/' + "GetAccountNet", + requestType = org.tron.trident.api.GrpcAPI.AccountAddressMessage.class, + responseType = org.tron.trident.proto.Response.AccountNetMessage.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateAssetIssueMethod() { - io.grpc.MethodDescriptor getCreateAssetIssueMethod; - if ((getCreateAssetIssueMethod = WalletGrpc.getCreateAssetIssueMethod) == null) { + public static io.grpc.MethodDescriptor getGetAccountNetMethod() { + io.grpc.MethodDescriptor getGetAccountNetMethod; + if ((getGetAccountNetMethod = WalletGrpc.getGetAccountNetMethod) == null) { synchronized (WalletGrpc.class) { - if ((getCreateAssetIssueMethod = WalletGrpc.getCreateAssetIssueMethod) == null) { - WalletGrpc.getCreateAssetIssueMethod = getCreateAssetIssueMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetAccountNetMethod = WalletGrpc.getGetAccountNetMethod) == null) { + WalletGrpc.getGetAccountNetMethod = getGetAccountNetMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAssetIssue")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccountNet")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.AssetIssueContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.AccountAddressMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Chain.Transaction.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("CreateAssetIssue")) + org.tron.trident.proto.Response.AccountNetMessage.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetAccountNet")) .build(); } } } - return getCreateAssetIssueMethod; + return getGetAccountNetMethod; } - private static volatile io.grpc.MethodDescriptor getCreateAssetIssue2Method; + private static volatile io.grpc.MethodDescriptor getGetAccountResourceMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateAssetIssue2", - requestType = org.tron.trident.proto.Contract.AssetIssueContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetAccountResource", + requestType = org.tron.trident.api.GrpcAPI.AccountAddressMessage.class, + responseType = org.tron.trident.proto.Response.AccountResourceMessage.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateAssetIssue2Method() { - io.grpc.MethodDescriptor getCreateAssetIssue2Method; - if ((getCreateAssetIssue2Method = WalletGrpc.getCreateAssetIssue2Method) == null) { + public static io.grpc.MethodDescriptor getGetAccountResourceMethod() { + io.grpc.MethodDescriptor getGetAccountResourceMethod; + if ((getGetAccountResourceMethod = WalletGrpc.getGetAccountResourceMethod) == null) { synchronized (WalletGrpc.class) { - if ((getCreateAssetIssue2Method = WalletGrpc.getCreateAssetIssue2Method) == null) { - WalletGrpc.getCreateAssetIssue2Method = getCreateAssetIssue2Method = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetAccountResourceMethod = WalletGrpc.getGetAccountResourceMethod) == null) { + WalletGrpc.getGetAccountResourceMethod = getGetAccountResourceMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAssetIssue2")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccountResource")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.AssetIssueContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.AccountAddressMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("CreateAssetIssue2")) + org.tron.trident.proto.Response.AccountResourceMessage.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetAccountResource")) .build(); } } } - return getCreateAssetIssue2Method; + return getGetAccountResourceMethod; } - private static volatile io.grpc.MethodDescriptor getUpdateAssetMethod; + private static volatile io.grpc.MethodDescriptor getGetAssetIssueByAccountMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateAsset", - requestType = org.tron.trident.proto.Contract.UpdateAssetContract.class, - responseType = org.tron.trident.proto.Chain.Transaction.class, + fullMethodName = SERVICE_NAME + '/' + "GetAssetIssueByAccount", + requestType = org.tron.trident.api.GrpcAPI.AccountAddressMessage.class, + responseType = org.tron.trident.proto.Response.AssetIssueList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateAssetMethod() { - io.grpc.MethodDescriptor getUpdateAssetMethod; - if ((getUpdateAssetMethod = WalletGrpc.getUpdateAssetMethod) == null) { + public static io.grpc.MethodDescriptor getGetAssetIssueByAccountMethod() { + io.grpc.MethodDescriptor getGetAssetIssueByAccountMethod; + if ((getGetAssetIssueByAccountMethod = WalletGrpc.getGetAssetIssueByAccountMethod) == null) { synchronized (WalletGrpc.class) { - if ((getUpdateAssetMethod = WalletGrpc.getUpdateAssetMethod) == null) { - WalletGrpc.getUpdateAssetMethod = getUpdateAssetMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetAssetIssueByAccountMethod = WalletGrpc.getGetAssetIssueByAccountMethod) == null) { + WalletGrpc.getGetAssetIssueByAccountMethod = getGetAssetIssueByAccountMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAsset")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAssetIssueByAccount")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.UpdateAssetContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.AccountAddressMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Chain.Transaction.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("UpdateAsset")) + org.tron.trident.proto.Response.AssetIssueList.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetAssetIssueByAccount")) .build(); } } } - return getUpdateAssetMethod; + return getGetAssetIssueByAccountMethod; } - private static volatile io.grpc.MethodDescriptor getUpdateAsset2Method; + private static volatile io.grpc.MethodDescriptor getGetAssetIssueByNameMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateAsset2", - requestType = org.tron.trident.proto.Contract.UpdateAssetContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetAssetIssueByName", + requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, + responseType = org.tron.trident.proto.Contract.AssetIssueContract.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateAsset2Method() { - io.grpc.MethodDescriptor getUpdateAsset2Method; - if ((getUpdateAsset2Method = WalletGrpc.getUpdateAsset2Method) == null) { + public static io.grpc.MethodDescriptor getGetAssetIssueByNameMethod() { + io.grpc.MethodDescriptor getGetAssetIssueByNameMethod; + if ((getGetAssetIssueByNameMethod = WalletGrpc.getGetAssetIssueByNameMethod) == null) { synchronized (WalletGrpc.class) { - if ((getUpdateAsset2Method = WalletGrpc.getUpdateAsset2Method) == null) { - WalletGrpc.getUpdateAsset2Method = getUpdateAsset2Method = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetAssetIssueByNameMethod = WalletGrpc.getGetAssetIssueByNameMethod) == null) { + WalletGrpc.getGetAssetIssueByNameMethod = getGetAssetIssueByNameMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAsset2")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAssetIssueByName")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.UpdateAssetContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("UpdateAsset2")) + org.tron.trident.proto.Contract.AssetIssueContract.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetAssetIssueByName")) .build(); } } } - return getUpdateAsset2Method; + return getGetAssetIssueByNameMethod; } - private static volatile io.grpc.MethodDescriptor getTransferAssetMethod; + private static volatile io.grpc.MethodDescriptor getGetAssetIssueListByNameMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TransferAsset", - requestType = org.tron.trident.proto.Contract.TransferAssetContract.class, - responseType = org.tron.trident.proto.Chain.Transaction.class, + fullMethodName = SERVICE_NAME + '/' + "GetAssetIssueListByName", + requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, + responseType = org.tron.trident.proto.Response.AssetIssueList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTransferAssetMethod() { - io.grpc.MethodDescriptor getTransferAssetMethod; - if ((getTransferAssetMethod = WalletGrpc.getTransferAssetMethod) == null) { + public static io.grpc.MethodDescriptor getGetAssetIssueListByNameMethod() { + io.grpc.MethodDescriptor getGetAssetIssueListByNameMethod; + if ((getGetAssetIssueListByNameMethod = WalletGrpc.getGetAssetIssueListByNameMethod) == null) { synchronized (WalletGrpc.class) { - if ((getTransferAssetMethod = WalletGrpc.getTransferAssetMethod) == null) { - WalletGrpc.getTransferAssetMethod = getTransferAssetMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetAssetIssueListByNameMethod = WalletGrpc.getGetAssetIssueListByNameMethod) == null) { + WalletGrpc.getGetAssetIssueListByNameMethod = getGetAssetIssueListByNameMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TransferAsset")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAssetIssueListByName")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.TransferAssetContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Chain.Transaction.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("TransferAsset")) + org.tron.trident.proto.Response.AssetIssueList.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetAssetIssueListByName")) .build(); } } } - return getTransferAssetMethod; + return getGetAssetIssueListByNameMethod; } - private static volatile io.grpc.MethodDescriptor getTransferAsset2Method; + private static volatile io.grpc.MethodDescriptor getGetAssetIssueByIdMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TransferAsset2", - requestType = org.tron.trident.proto.Contract.TransferAssetContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetAssetIssueById", + requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, + responseType = org.tron.trident.proto.Contract.AssetIssueContract.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTransferAsset2Method() { - io.grpc.MethodDescriptor getTransferAsset2Method; - if ((getTransferAsset2Method = WalletGrpc.getTransferAsset2Method) == null) { + public static io.grpc.MethodDescriptor getGetAssetIssueByIdMethod() { + io.grpc.MethodDescriptor getGetAssetIssueByIdMethod; + if ((getGetAssetIssueByIdMethod = WalletGrpc.getGetAssetIssueByIdMethod) == null) { synchronized (WalletGrpc.class) { - if ((getTransferAsset2Method = WalletGrpc.getTransferAsset2Method) == null) { - WalletGrpc.getTransferAsset2Method = getTransferAsset2Method = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetAssetIssueByIdMethod = WalletGrpc.getGetAssetIssueByIdMethod) == null) { + WalletGrpc.getGetAssetIssueByIdMethod = getGetAssetIssueByIdMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TransferAsset2")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAssetIssueById")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.TransferAssetContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("TransferAsset2")) + org.tron.trident.proto.Contract.AssetIssueContract.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetAssetIssueById")) .build(); } } } - return getTransferAsset2Method; + return getGetAssetIssueByIdMethod; } - private static volatile io.grpc.MethodDescriptor getParticipateAssetIssueMethod; + private static volatile io.grpc.MethodDescriptor getGetAssetIssueListMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ParticipateAssetIssue", - requestType = org.tron.trident.proto.Contract.ParticipateAssetIssueContract.class, - responseType = org.tron.trident.proto.Chain.Transaction.class, + fullMethodName = SERVICE_NAME + '/' + "GetAssetIssueList", + requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, + responseType = org.tron.trident.proto.Response.AssetIssueList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getParticipateAssetIssueMethod() { - io.grpc.MethodDescriptor getParticipateAssetIssueMethod; - if ((getParticipateAssetIssueMethod = WalletGrpc.getParticipateAssetIssueMethod) == null) { + public static io.grpc.MethodDescriptor getGetAssetIssueListMethod() { + io.grpc.MethodDescriptor getGetAssetIssueListMethod; + if ((getGetAssetIssueListMethod = WalletGrpc.getGetAssetIssueListMethod) == null) { synchronized (WalletGrpc.class) { - if ((getParticipateAssetIssueMethod = WalletGrpc.getParticipateAssetIssueMethod) == null) { - WalletGrpc.getParticipateAssetIssueMethod = getParticipateAssetIssueMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetAssetIssueListMethod = WalletGrpc.getGetAssetIssueListMethod) == null) { + WalletGrpc.getGetAssetIssueListMethod = getGetAssetIssueListMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ParticipateAssetIssue")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAssetIssueList")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.ParticipateAssetIssueContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Chain.Transaction.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("ParticipateAssetIssue")) + org.tron.trident.proto.Response.AssetIssueList.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetAssetIssueList")) .build(); } } } - return getParticipateAssetIssueMethod; + return getGetAssetIssueListMethod; } - private static volatile io.grpc.MethodDescriptor getParticipateAssetIssue2Method; + private static volatile io.grpc.MethodDescriptor getGetPaginatedAssetIssueListMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ParticipateAssetIssue2", - requestType = org.tron.trident.proto.Contract.ParticipateAssetIssueContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetPaginatedAssetIssueList", + requestType = org.tron.trident.api.GrpcAPI.PaginatedMessage.class, + responseType = org.tron.trident.proto.Response.AssetIssueList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getParticipateAssetIssue2Method() { - io.grpc.MethodDescriptor getParticipateAssetIssue2Method; - if ((getParticipateAssetIssue2Method = WalletGrpc.getParticipateAssetIssue2Method) == null) { + public static io.grpc.MethodDescriptor getGetPaginatedAssetIssueListMethod() { + io.grpc.MethodDescriptor getGetPaginatedAssetIssueListMethod; + if ((getGetPaginatedAssetIssueListMethod = WalletGrpc.getGetPaginatedAssetIssueListMethod) == null) { synchronized (WalletGrpc.class) { - if ((getParticipateAssetIssue2Method = WalletGrpc.getParticipateAssetIssue2Method) == null) { - WalletGrpc.getParticipateAssetIssue2Method = getParticipateAssetIssue2Method = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetPaginatedAssetIssueListMethod = WalletGrpc.getGetPaginatedAssetIssueListMethod) == null) { + WalletGrpc.getGetPaginatedAssetIssueListMethod = getGetPaginatedAssetIssueListMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ParticipateAssetIssue2")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPaginatedAssetIssueList")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.ParticipateAssetIssueContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.PaginatedMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("ParticipateAssetIssue2")) + org.tron.trident.proto.Response.AssetIssueList.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetPaginatedAssetIssueList")) .build(); } } } - return getParticipateAssetIssue2Method; + return getGetPaginatedAssetIssueListMethod; } - private static volatile io.grpc.MethodDescriptor getUnfreezeAssetMethod; + private static volatile io.grpc.MethodDescriptor getGetNowBlockMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UnfreezeAsset", - requestType = org.tron.trident.proto.Contract.UnfreezeAssetContract.class, - responseType = org.tron.trident.proto.Chain.Transaction.class, + fullMethodName = SERVICE_NAME + '/' + "GetNowBlock", + requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, + responseType = org.tron.trident.proto.Chain.Block.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUnfreezeAssetMethod() { - io.grpc.MethodDescriptor getUnfreezeAssetMethod; - if ((getUnfreezeAssetMethod = WalletGrpc.getUnfreezeAssetMethod) == null) { + public static io.grpc.MethodDescriptor getGetNowBlockMethod() { + io.grpc.MethodDescriptor getGetNowBlockMethod; + if ((getGetNowBlockMethod = WalletGrpc.getGetNowBlockMethod) == null) { synchronized (WalletGrpc.class) { - if ((getUnfreezeAssetMethod = WalletGrpc.getUnfreezeAssetMethod) == null) { - WalletGrpc.getUnfreezeAssetMethod = getUnfreezeAssetMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetNowBlockMethod = WalletGrpc.getGetNowBlockMethod) == null) { + WalletGrpc.getGetNowBlockMethod = getGetNowBlockMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UnfreezeAsset")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNowBlock")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.UnfreezeAssetContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Chain.Transaction.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("UnfreezeAsset")) + org.tron.trident.proto.Chain.Block.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetNowBlock")) .build(); } } } - return getUnfreezeAssetMethod; + return getGetNowBlockMethod; } - private static volatile io.grpc.MethodDescriptor getUnfreezeAsset2Method; + private static volatile io.grpc.MethodDescriptor getGetNowBlock2Method; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UnfreezeAsset2", - requestType = org.tron.trident.proto.Contract.UnfreezeAssetContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetNowBlock2", + requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, + responseType = org.tron.trident.proto.Response.BlockExtention.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUnfreezeAsset2Method() { - io.grpc.MethodDescriptor getUnfreezeAsset2Method; - if ((getUnfreezeAsset2Method = WalletGrpc.getUnfreezeAsset2Method) == null) { + public static io.grpc.MethodDescriptor getGetNowBlock2Method() { + io.grpc.MethodDescriptor getGetNowBlock2Method; + if ((getGetNowBlock2Method = WalletGrpc.getGetNowBlock2Method) == null) { synchronized (WalletGrpc.class) { - if ((getUnfreezeAsset2Method = WalletGrpc.getUnfreezeAsset2Method) == null) { - WalletGrpc.getUnfreezeAsset2Method = getUnfreezeAsset2Method = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetNowBlock2Method = WalletGrpc.getGetNowBlock2Method) == null) { + WalletGrpc.getGetNowBlock2Method = getGetNowBlock2Method = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UnfreezeAsset2")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNowBlock2")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.UnfreezeAssetContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("UnfreezeAsset2")) + org.tron.trident.proto.Response.BlockExtention.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetNowBlock2")) .build(); } } } - return getUnfreezeAsset2Method; + return getGetNowBlock2Method; } - private static volatile io.grpc.MethodDescriptor getCreateWitnessMethod; + private static volatile io.grpc.MethodDescriptor getGetBlockByNumMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWitness", - requestType = org.tron.trident.proto.Contract.WitnessCreateContract.class, - responseType = org.tron.trident.proto.Chain.Transaction.class, + fullMethodName = SERVICE_NAME + '/' + "GetBlockByNum", + requestType = org.tron.trident.api.GrpcAPI.NumberMessage.class, + responseType = org.tron.trident.proto.Chain.Block.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateWitnessMethod() { - io.grpc.MethodDescriptor getCreateWitnessMethod; - if ((getCreateWitnessMethod = WalletGrpc.getCreateWitnessMethod) == null) { + public static io.grpc.MethodDescriptor getGetBlockByNumMethod() { + io.grpc.MethodDescriptor getGetBlockByNumMethod; + if ((getGetBlockByNumMethod = WalletGrpc.getGetBlockByNumMethod) == null) { synchronized (WalletGrpc.class) { - if ((getCreateWitnessMethod = WalletGrpc.getCreateWitnessMethod) == null) { - WalletGrpc.getCreateWitnessMethod = getCreateWitnessMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetBlockByNumMethod = WalletGrpc.getGetBlockByNumMethod) == null) { + WalletGrpc.getGetBlockByNumMethod = getGetBlockByNumMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWitness")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockByNum")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.WitnessCreateContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.NumberMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Chain.Transaction.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("CreateWitness")) + org.tron.trident.proto.Chain.Block.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetBlockByNum")) .build(); } } } - return getCreateWitnessMethod; + return getGetBlockByNumMethod; } - private static volatile io.grpc.MethodDescriptor getCreateWitness2Method; + private static volatile io.grpc.MethodDescriptor getGetBlockByNum2Method; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWitness2", - requestType = org.tron.trident.proto.Contract.WitnessCreateContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetBlockByNum2", + requestType = org.tron.trident.api.GrpcAPI.NumberMessage.class, + responseType = org.tron.trident.proto.Response.BlockExtention.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateWitness2Method() { - io.grpc.MethodDescriptor getCreateWitness2Method; - if ((getCreateWitness2Method = WalletGrpc.getCreateWitness2Method) == null) { + public static io.grpc.MethodDescriptor getGetBlockByNum2Method() { + io.grpc.MethodDescriptor getGetBlockByNum2Method; + if ((getGetBlockByNum2Method = WalletGrpc.getGetBlockByNum2Method) == null) { synchronized (WalletGrpc.class) { - if ((getCreateWitness2Method = WalletGrpc.getCreateWitness2Method) == null) { - WalletGrpc.getCreateWitness2Method = getCreateWitness2Method = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetBlockByNum2Method = WalletGrpc.getGetBlockByNum2Method) == null) { + WalletGrpc.getGetBlockByNum2Method = getGetBlockByNum2Method = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWitness2")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockByNum2")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.WitnessCreateContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.NumberMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("CreateWitness2")) + org.tron.trident.proto.Response.BlockExtention.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetBlockByNum2")) .build(); } } } - return getCreateWitness2Method; + return getGetBlockByNum2Method; } - private static volatile io.grpc.MethodDescriptor getUpdateWitnessMethod; + private static volatile io.grpc.MethodDescriptor getGetBlockByIdMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWitness", - requestType = org.tron.trident.proto.Contract.WitnessUpdateContract.class, - responseType = org.tron.trident.proto.Chain.Transaction.class, + fullMethodName = SERVICE_NAME + '/' + "GetBlockById", + requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, + responseType = org.tron.trident.proto.Chain.Block.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateWitnessMethod() { - io.grpc.MethodDescriptor getUpdateWitnessMethod; - if ((getUpdateWitnessMethod = WalletGrpc.getUpdateWitnessMethod) == null) { + public static io.grpc.MethodDescriptor getGetBlockByIdMethod() { + io.grpc.MethodDescriptor getGetBlockByIdMethod; + if ((getGetBlockByIdMethod = WalletGrpc.getGetBlockByIdMethod) == null) { synchronized (WalletGrpc.class) { - if ((getUpdateWitnessMethod = WalletGrpc.getUpdateWitnessMethod) == null) { - WalletGrpc.getUpdateWitnessMethod = getUpdateWitnessMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetBlockByIdMethod = WalletGrpc.getGetBlockByIdMethod) == null) { + WalletGrpc.getGetBlockByIdMethod = getGetBlockByIdMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWitness")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockById")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.WitnessUpdateContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Chain.Transaction.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("UpdateWitness")) + org.tron.trident.proto.Chain.Block.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetBlockById")) .build(); } } } - return getUpdateWitnessMethod; + return getGetBlockByIdMethod; } - private static volatile io.grpc.MethodDescriptor getUpdateWitness2Method; + private static volatile io.grpc.MethodDescriptor getGetBlockByLimitNextMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWitness2", - requestType = org.tron.trident.proto.Contract.WitnessUpdateContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetBlockByLimitNext", + requestType = org.tron.trident.api.GrpcAPI.BlockLimit.class, + responseType = org.tron.trident.proto.Response.BlockList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateWitness2Method() { - io.grpc.MethodDescriptor getUpdateWitness2Method; - if ((getUpdateWitness2Method = WalletGrpc.getUpdateWitness2Method) == null) { + public static io.grpc.MethodDescriptor getGetBlockByLimitNextMethod() { + io.grpc.MethodDescriptor getGetBlockByLimitNextMethod; + if ((getGetBlockByLimitNextMethod = WalletGrpc.getGetBlockByLimitNextMethod) == null) { synchronized (WalletGrpc.class) { - if ((getUpdateWitness2Method = WalletGrpc.getUpdateWitness2Method) == null) { - WalletGrpc.getUpdateWitness2Method = getUpdateWitness2Method = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetBlockByLimitNextMethod = WalletGrpc.getGetBlockByLimitNextMethod) == null) { + WalletGrpc.getGetBlockByLimitNextMethod = getGetBlockByLimitNextMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWitness2")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockByLimitNext")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.WitnessUpdateContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.BlockLimit.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("UpdateWitness2")) + org.tron.trident.proto.Response.BlockList.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetBlockByLimitNext")) .build(); } } } - return getUpdateWitness2Method; + return getGetBlockByLimitNextMethod; } - private static volatile io.grpc.MethodDescriptor getUpdateBrokerageMethod; + private static volatile io.grpc.MethodDescriptor getGetBlockByLimitNext2Method; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateBrokerage", - requestType = org.tron.trident.proto.Contract.UpdateBrokerageContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetBlockByLimitNext2", + requestType = org.tron.trident.api.GrpcAPI.BlockLimit.class, + responseType = org.tron.trident.proto.Response.BlockListExtention.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateBrokerageMethod() { - io.grpc.MethodDescriptor getUpdateBrokerageMethod; - if ((getUpdateBrokerageMethod = WalletGrpc.getUpdateBrokerageMethod) == null) { + public static io.grpc.MethodDescriptor getGetBlockByLimitNext2Method() { + io.grpc.MethodDescriptor getGetBlockByLimitNext2Method; + if ((getGetBlockByLimitNext2Method = WalletGrpc.getGetBlockByLimitNext2Method) == null) { synchronized (WalletGrpc.class) { - if ((getUpdateBrokerageMethod = WalletGrpc.getUpdateBrokerageMethod) == null) { - WalletGrpc.getUpdateBrokerageMethod = getUpdateBrokerageMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetBlockByLimitNext2Method = WalletGrpc.getGetBlockByLimitNext2Method) == null) { + WalletGrpc.getGetBlockByLimitNext2Method = getGetBlockByLimitNext2Method = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBrokerage")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockByLimitNext2")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.UpdateBrokerageContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.BlockLimit.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("UpdateBrokerage")) + org.tron.trident.proto.Response.BlockListExtention.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetBlockByLimitNext2")) .build(); } } } - return getUpdateBrokerageMethod; + return getGetBlockByLimitNext2Method; } - private static volatile io.grpc.MethodDescriptor getVoteWitnessAccountMethod; + private static volatile io.grpc.MethodDescriptor getGetBlockByLatestNumMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "VoteWitnessAccount", - requestType = org.tron.trident.proto.Contract.VoteWitnessContract.class, - responseType = org.tron.trident.proto.Chain.Transaction.class, + fullMethodName = SERVICE_NAME + '/' + "GetBlockByLatestNum", + requestType = org.tron.trident.api.GrpcAPI.NumberMessage.class, + responseType = org.tron.trident.proto.Response.BlockList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getVoteWitnessAccountMethod() { - io.grpc.MethodDescriptor getVoteWitnessAccountMethod; - if ((getVoteWitnessAccountMethod = WalletGrpc.getVoteWitnessAccountMethod) == null) { + public static io.grpc.MethodDescriptor getGetBlockByLatestNumMethod() { + io.grpc.MethodDescriptor getGetBlockByLatestNumMethod; + if ((getGetBlockByLatestNumMethod = WalletGrpc.getGetBlockByLatestNumMethod) == null) { synchronized (WalletGrpc.class) { - if ((getVoteWitnessAccountMethod = WalletGrpc.getVoteWitnessAccountMethod) == null) { - WalletGrpc.getVoteWitnessAccountMethod = getVoteWitnessAccountMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetBlockByLatestNumMethod = WalletGrpc.getGetBlockByLatestNumMethod) == null) { + WalletGrpc.getGetBlockByLatestNumMethod = getGetBlockByLatestNumMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VoteWitnessAccount")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockByLatestNum")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.VoteWitnessContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.NumberMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Chain.Transaction.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("VoteWitnessAccount")) + org.tron.trident.proto.Response.BlockList.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetBlockByLatestNum")) .build(); } } } - return getVoteWitnessAccountMethod; + return getGetBlockByLatestNumMethod; } - private static volatile io.grpc.MethodDescriptor getVoteWitnessAccount2Method; + private static volatile io.grpc.MethodDescriptor getGetBlockByLatestNum2Method; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "VoteWitnessAccount2", - requestType = org.tron.trident.proto.Contract.VoteWitnessContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetBlockByLatestNum2", + requestType = org.tron.trident.api.GrpcAPI.NumberMessage.class, + responseType = org.tron.trident.proto.Response.BlockListExtention.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getVoteWitnessAccount2Method() { - io.grpc.MethodDescriptor getVoteWitnessAccount2Method; - if ((getVoteWitnessAccount2Method = WalletGrpc.getVoteWitnessAccount2Method) == null) { + public static io.grpc.MethodDescriptor getGetBlockByLatestNum2Method() { + io.grpc.MethodDescriptor getGetBlockByLatestNum2Method; + if ((getGetBlockByLatestNum2Method = WalletGrpc.getGetBlockByLatestNum2Method) == null) { synchronized (WalletGrpc.class) { - if ((getVoteWitnessAccount2Method = WalletGrpc.getVoteWitnessAccount2Method) == null) { - WalletGrpc.getVoteWitnessAccount2Method = getVoteWitnessAccount2Method = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetBlockByLatestNum2Method = WalletGrpc.getGetBlockByLatestNum2Method) == null) { + WalletGrpc.getGetBlockByLatestNum2Method = getGetBlockByLatestNum2Method = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VoteWitnessAccount2")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockByLatestNum2")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.VoteWitnessContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.NumberMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("VoteWitnessAccount2")) + org.tron.trident.proto.Response.BlockListExtention.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetBlockByLatestNum2")) .build(); } } } - return getVoteWitnessAccount2Method; + return getGetBlockByLatestNum2Method; } - private static volatile io.grpc.MethodDescriptor getFreezeBalanceMethod; + private static volatile io.grpc.MethodDescriptor getGetTransactionCountByBlockNumMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FreezeBalance", - requestType = org.tron.trident.proto.Contract.FreezeBalanceContract.class, - responseType = org.tron.trident.proto.Chain.Transaction.class, + fullMethodName = SERVICE_NAME + '/' + "GetTransactionCountByBlockNum", + requestType = org.tron.trident.api.GrpcAPI.NumberMessage.class, + responseType = org.tron.trident.api.GrpcAPI.NumberMessage.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getFreezeBalanceMethod() { - io.grpc.MethodDescriptor getFreezeBalanceMethod; - if ((getFreezeBalanceMethod = WalletGrpc.getFreezeBalanceMethod) == null) { + public static io.grpc.MethodDescriptor getGetTransactionCountByBlockNumMethod() { + io.grpc.MethodDescriptor getGetTransactionCountByBlockNumMethod; + if ((getGetTransactionCountByBlockNumMethod = WalletGrpc.getGetTransactionCountByBlockNumMethod) == null) { synchronized (WalletGrpc.class) { - if ((getFreezeBalanceMethod = WalletGrpc.getFreezeBalanceMethod) == null) { - WalletGrpc.getFreezeBalanceMethod = getFreezeBalanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FreezeBalance")) - .setSampledToLocalTracing(true) + if ((getGetTransactionCountByBlockNumMethod = WalletGrpc.getGetTransactionCountByBlockNumMethod) == null) { + WalletGrpc.getGetTransactionCountByBlockNumMethod = getGetTransactionCountByBlockNumMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactionCountByBlockNum")) + .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.FreezeBalanceContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.NumberMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Chain.Transaction.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("FreezeBalance")) + org.tron.trident.api.GrpcAPI.NumberMessage.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetTransactionCountByBlockNum")) .build(); } } } - return getFreezeBalanceMethod; + return getGetTransactionCountByBlockNumMethod; } - private static volatile io.grpc.MethodDescriptor getFreezeBalance2Method; + private static volatile io.grpc.MethodDescriptor getGetTransactionByIdMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FreezeBalance2", - requestType = org.tron.trident.proto.Contract.FreezeBalanceContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetTransactionById", + requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, + responseType = org.tron.trident.proto.Chain.Transaction.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getFreezeBalance2Method() { - io.grpc.MethodDescriptor getFreezeBalance2Method; - if ((getFreezeBalance2Method = WalletGrpc.getFreezeBalance2Method) == null) { + public static io.grpc.MethodDescriptor getGetTransactionByIdMethod() { + io.grpc.MethodDescriptor getGetTransactionByIdMethod; + if ((getGetTransactionByIdMethod = WalletGrpc.getGetTransactionByIdMethod) == null) { synchronized (WalletGrpc.class) { - if ((getFreezeBalance2Method = WalletGrpc.getFreezeBalance2Method) == null) { - WalletGrpc.getFreezeBalance2Method = getFreezeBalance2Method = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetTransactionByIdMethod = WalletGrpc.getGetTransactionByIdMethod) == null) { + WalletGrpc.getGetTransactionByIdMethod = getGetTransactionByIdMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FreezeBalance2")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactionById")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.FreezeBalanceContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("FreezeBalance2")) + org.tron.trident.proto.Chain.Transaction.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetTransactionById")) .build(); } } } - return getFreezeBalance2Method; + return getGetTransactionByIdMethod; } - private static volatile io.grpc.MethodDescriptor getUnfreezeBalanceMethod; + private static volatile io.grpc.MethodDescriptor getGetTransactionInfoByIdMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UnfreezeBalance", - requestType = org.tron.trident.proto.Contract.UnfreezeBalanceContract.class, - responseType = org.tron.trident.proto.Chain.Transaction.class, + fullMethodName = SERVICE_NAME + '/' + "GetTransactionInfoById", + requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, + responseType = org.tron.trident.proto.Response.TransactionInfo.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUnfreezeBalanceMethod() { - io.grpc.MethodDescriptor getUnfreezeBalanceMethod; - if ((getUnfreezeBalanceMethod = WalletGrpc.getUnfreezeBalanceMethod) == null) { + public static io.grpc.MethodDescriptor getGetTransactionInfoByIdMethod() { + io.grpc.MethodDescriptor getGetTransactionInfoByIdMethod; + if ((getGetTransactionInfoByIdMethod = WalletGrpc.getGetTransactionInfoByIdMethod) == null) { synchronized (WalletGrpc.class) { - if ((getUnfreezeBalanceMethod = WalletGrpc.getUnfreezeBalanceMethod) == null) { - WalletGrpc.getUnfreezeBalanceMethod = getUnfreezeBalanceMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetTransactionInfoByIdMethod = WalletGrpc.getGetTransactionInfoByIdMethod) == null) { + WalletGrpc.getGetTransactionInfoByIdMethod = getGetTransactionInfoByIdMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UnfreezeBalance")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactionInfoById")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.UnfreezeBalanceContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Chain.Transaction.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("UnfreezeBalance")) + org.tron.trident.proto.Response.TransactionInfo.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetTransactionInfoById")) .build(); } } } - return getUnfreezeBalanceMethod; + return getGetTransactionInfoByIdMethod; } - private static volatile io.grpc.MethodDescriptor getUnfreezeBalance2Method; + private static volatile io.grpc.MethodDescriptor getGetTransactionInfoByBlockNumMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UnfreezeBalance2", - requestType = org.tron.trident.proto.Contract.UnfreezeBalanceContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetTransactionInfoByBlockNum", + requestType = org.tron.trident.api.GrpcAPI.NumberMessage.class, + responseType = org.tron.trident.proto.Response.TransactionInfoList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUnfreezeBalance2Method() { - io.grpc.MethodDescriptor getUnfreezeBalance2Method; - if ((getUnfreezeBalance2Method = WalletGrpc.getUnfreezeBalance2Method) == null) { + public static io.grpc.MethodDescriptor getGetTransactionInfoByBlockNumMethod() { + io.grpc.MethodDescriptor getGetTransactionInfoByBlockNumMethod; + if ((getGetTransactionInfoByBlockNumMethod = WalletGrpc.getGetTransactionInfoByBlockNumMethod) == null) { synchronized (WalletGrpc.class) { - if ((getUnfreezeBalance2Method = WalletGrpc.getUnfreezeBalance2Method) == null) { - WalletGrpc.getUnfreezeBalance2Method = getUnfreezeBalance2Method = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetTransactionInfoByBlockNumMethod = WalletGrpc.getGetTransactionInfoByBlockNumMethod) == null) { + WalletGrpc.getGetTransactionInfoByBlockNumMethod = getGetTransactionInfoByBlockNumMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UnfreezeBalance2")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactionInfoByBlockNum")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.UnfreezeBalanceContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.NumberMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("UnfreezeBalance2")) + org.tron.trident.proto.Response.TransactionInfoList.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetTransactionInfoByBlockNum")) .build(); } } } - return getUnfreezeBalance2Method; + return getGetTransactionInfoByBlockNumMethod; } - private static volatile io.grpc.MethodDescriptor getWithdrawBalanceMethod; + private static volatile io.grpc.MethodDescriptor getGetContractMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "WithdrawBalance", - requestType = org.tron.trident.proto.Contract.WithdrawBalanceContract.class, - responseType = org.tron.trident.proto.Chain.Transaction.class, + fullMethodName = SERVICE_NAME + '/' + "GetContract", + requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, + responseType = org.tron.trident.proto.Common.SmartContract.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getWithdrawBalanceMethod() { - io.grpc.MethodDescriptor getWithdrawBalanceMethod; - if ((getWithdrawBalanceMethod = WalletGrpc.getWithdrawBalanceMethod) == null) { + public static io.grpc.MethodDescriptor getGetContractMethod() { + io.grpc.MethodDescriptor getGetContractMethod; + if ((getGetContractMethod = WalletGrpc.getGetContractMethod) == null) { synchronized (WalletGrpc.class) { - if ((getWithdrawBalanceMethod = WalletGrpc.getWithdrawBalanceMethod) == null) { - WalletGrpc.getWithdrawBalanceMethod = getWithdrawBalanceMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetContractMethod = WalletGrpc.getGetContractMethod) == null) { + WalletGrpc.getGetContractMethod = getGetContractMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "WithdrawBalance")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetContract")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.WithdrawBalanceContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Chain.Transaction.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("WithdrawBalance")) + org.tron.trident.proto.Common.SmartContract.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetContract")) .build(); } } } - return getWithdrawBalanceMethod; + return getGetContractMethod; } - private static volatile io.grpc.MethodDescriptor getWithdrawBalance2Method; + private static volatile io.grpc.MethodDescriptor getGetContractInfoMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "WithdrawBalance2", - requestType = org.tron.trident.proto.Contract.WithdrawBalanceContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetContractInfo", + requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, + responseType = org.tron.trident.proto.Response.SmartContractDataWrapper.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getWithdrawBalance2Method() { - io.grpc.MethodDescriptor getWithdrawBalance2Method; - if ((getWithdrawBalance2Method = WalletGrpc.getWithdrawBalance2Method) == null) { + public static io.grpc.MethodDescriptor getGetContractInfoMethod() { + io.grpc.MethodDescriptor getGetContractInfoMethod; + if ((getGetContractInfoMethod = WalletGrpc.getGetContractInfoMethod) == null) { synchronized (WalletGrpc.class) { - if ((getWithdrawBalance2Method = WalletGrpc.getWithdrawBalance2Method) == null) { - WalletGrpc.getWithdrawBalance2Method = getWithdrawBalance2Method = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetContractInfoMethod = WalletGrpc.getGetContractInfoMethod) == null) { + WalletGrpc.getGetContractInfoMethod = getGetContractInfoMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "WithdrawBalance2")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetContractInfo")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.WithdrawBalanceContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("WithdrawBalance2")) + org.tron.trident.proto.Response.SmartContractDataWrapper.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetContractInfo")) .build(); } } } - return getWithdrawBalance2Method; + return getGetContractInfoMethod; } - private static volatile io.grpc.MethodDescriptor getProposalCreateMethod; + private static volatile io.grpc.MethodDescriptor getListWitnessesMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ProposalCreate", - requestType = org.tron.trident.proto.Contract.ProposalCreateContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "ListWitnesses", + requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, + responseType = org.tron.trident.proto.Response.WitnessList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getProposalCreateMethod() { - io.grpc.MethodDescriptor getProposalCreateMethod; - if ((getProposalCreateMethod = WalletGrpc.getProposalCreateMethod) == null) { + public static io.grpc.MethodDescriptor getListWitnessesMethod() { + io.grpc.MethodDescriptor getListWitnessesMethod; + if ((getListWitnessesMethod = WalletGrpc.getListWitnessesMethod) == null) { synchronized (WalletGrpc.class) { - if ((getProposalCreateMethod = WalletGrpc.getProposalCreateMethod) == null) { - WalletGrpc.getProposalCreateMethod = getProposalCreateMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getListWitnessesMethod = WalletGrpc.getListWitnessesMethod) == null) { + WalletGrpc.getListWitnessesMethod = getListWitnessesMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ProposalCreate")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWitnesses")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.ProposalCreateContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("ProposalCreate")) + org.tron.trident.proto.Response.WitnessList.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("ListWitnesses")) .build(); } } } - return getProposalCreateMethod; + return getListWitnessesMethod; } - private static volatile io.grpc.MethodDescriptor getProposalApproveMethod; + private static volatile io.grpc.MethodDescriptor getGetBrokerageInfoMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ProposalApprove", - requestType = org.tron.trident.proto.Contract.ProposalApproveContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetBrokerageInfo", + requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, + responseType = org.tron.trident.api.GrpcAPI.NumberMessage.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getProposalApproveMethod() { - io.grpc.MethodDescriptor getProposalApproveMethod; - if ((getProposalApproveMethod = WalletGrpc.getProposalApproveMethod) == null) { + public static io.grpc.MethodDescriptor getGetBrokerageInfoMethod() { + io.grpc.MethodDescriptor getGetBrokerageInfoMethod; + if ((getGetBrokerageInfoMethod = WalletGrpc.getGetBrokerageInfoMethod) == null) { synchronized (WalletGrpc.class) { - if ((getProposalApproveMethod = WalletGrpc.getProposalApproveMethod) == null) { - WalletGrpc.getProposalApproveMethod = getProposalApproveMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetBrokerageInfoMethod = WalletGrpc.getGetBrokerageInfoMethod) == null) { + WalletGrpc.getGetBrokerageInfoMethod = getGetBrokerageInfoMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ProposalApprove")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBrokerageInfo")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.ProposalApproveContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("ProposalApprove")) + org.tron.trident.api.GrpcAPI.NumberMessage.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetBrokerageInfo")) .build(); } } } - return getProposalApproveMethod; + return getGetBrokerageInfoMethod; } - private static volatile io.grpc.MethodDescriptor getProposalDeleteMethod; + private static volatile io.grpc.MethodDescriptor getGetRewardInfoMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ProposalDelete", - requestType = org.tron.trident.proto.Contract.ProposalDeleteContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetRewardInfo", + requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, + responseType = org.tron.trident.api.GrpcAPI.NumberMessage.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getProposalDeleteMethod() { - io.grpc.MethodDescriptor getProposalDeleteMethod; - if ((getProposalDeleteMethod = WalletGrpc.getProposalDeleteMethod) == null) { + public static io.grpc.MethodDescriptor getGetRewardInfoMethod() { + io.grpc.MethodDescriptor getGetRewardInfoMethod; + if ((getGetRewardInfoMethod = WalletGrpc.getGetRewardInfoMethod) == null) { synchronized (WalletGrpc.class) { - if ((getProposalDeleteMethod = WalletGrpc.getProposalDeleteMethod) == null) { - WalletGrpc.getProposalDeleteMethod = getProposalDeleteMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetRewardInfoMethod = WalletGrpc.getGetRewardInfoMethod) == null) { + WalletGrpc.getGetRewardInfoMethod = getGetRewardInfoMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ProposalDelete")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRewardInfo")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.ProposalDeleteContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("ProposalDelete")) + org.tron.trident.api.GrpcAPI.NumberMessage.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetRewardInfo")) .build(); } } } - return getProposalDeleteMethod; + return getGetRewardInfoMethod; } - private static volatile io.grpc.MethodDescriptor getDeployContractMethod; + private static volatile io.grpc.MethodDescriptor getGetDelegatedResourceMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeployContract", - requestType = org.tron.trident.proto.Contract.CreateSmartContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetDelegatedResource", + requestType = org.tron.trident.proto.Response.DelegatedResourceMessage.class, + responseType = org.tron.trident.proto.Response.DelegatedResourceList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeployContractMethod() { - io.grpc.MethodDescriptor getDeployContractMethod; - if ((getDeployContractMethod = WalletGrpc.getDeployContractMethod) == null) { + public static io.grpc.MethodDescriptor getGetDelegatedResourceMethod() { + io.grpc.MethodDescriptor getGetDelegatedResourceMethod; + if ((getGetDelegatedResourceMethod = WalletGrpc.getGetDelegatedResourceMethod) == null) { synchronized (WalletGrpc.class) { - if ((getDeployContractMethod = WalletGrpc.getDeployContractMethod) == null) { - WalletGrpc.getDeployContractMethod = getDeployContractMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetDelegatedResourceMethod = WalletGrpc.getGetDelegatedResourceMethod) == null) { + WalletGrpc.getGetDelegatedResourceMethod = getGetDelegatedResourceMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeployContract")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDelegatedResource")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.CreateSmartContract.getDefaultInstance())) + org.tron.trident.proto.Response.DelegatedResourceMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("DeployContract")) + org.tron.trident.proto.Response.DelegatedResourceList.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetDelegatedResource")) .build(); } } } - return getDeployContractMethod; + return getGetDelegatedResourceMethod; } - private static volatile io.grpc.MethodDescriptor getUpdateSettingMethod; + private static volatile io.grpc.MethodDescriptor getGetDelegatedResourceAccountIndexMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSetting", - requestType = org.tron.trident.proto.Contract.UpdateSettingContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetDelegatedResourceAccountIndex", + requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, + responseType = org.tron.trident.proto.Response.DelegatedResourceAccountIndex.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateSettingMethod() { - io.grpc.MethodDescriptor getUpdateSettingMethod; - if ((getUpdateSettingMethod = WalletGrpc.getUpdateSettingMethod) == null) { + public static io.grpc.MethodDescriptor getGetDelegatedResourceAccountIndexMethod() { + io.grpc.MethodDescriptor getGetDelegatedResourceAccountIndexMethod; + if ((getGetDelegatedResourceAccountIndexMethod = WalletGrpc.getGetDelegatedResourceAccountIndexMethod) == null) { synchronized (WalletGrpc.class) { - if ((getUpdateSettingMethod = WalletGrpc.getUpdateSettingMethod) == null) { - WalletGrpc.getUpdateSettingMethod = getUpdateSettingMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetDelegatedResourceAccountIndexMethod = WalletGrpc.getGetDelegatedResourceAccountIndexMethod) == null) { + WalletGrpc.getGetDelegatedResourceAccountIndexMethod = getGetDelegatedResourceAccountIndexMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSetting")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDelegatedResourceAccountIndex")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.UpdateSettingContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("UpdateSetting")) + org.tron.trident.proto.Response.DelegatedResourceAccountIndex.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetDelegatedResourceAccountIndex")) .build(); } } } - return getUpdateSettingMethod; + return getGetDelegatedResourceAccountIndexMethod; } - private static volatile io.grpc.MethodDescriptor getUpdateEnergyLimitMethod; + private static volatile io.grpc.MethodDescriptor getListProposalsMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateEnergyLimit", - requestType = org.tron.trident.proto.Contract.UpdateEnergyLimitContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "ListProposals", + requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, + responseType = org.tron.trident.proto.Response.ProposalList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateEnergyLimitMethod() { - io.grpc.MethodDescriptor getUpdateEnergyLimitMethod; - if ((getUpdateEnergyLimitMethod = WalletGrpc.getUpdateEnergyLimitMethod) == null) { + public static io.grpc.MethodDescriptor getListProposalsMethod() { + io.grpc.MethodDescriptor getListProposalsMethod; + if ((getListProposalsMethod = WalletGrpc.getListProposalsMethod) == null) { synchronized (WalletGrpc.class) { - if ((getUpdateEnergyLimitMethod = WalletGrpc.getUpdateEnergyLimitMethod) == null) { - WalletGrpc.getUpdateEnergyLimitMethod = getUpdateEnergyLimitMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getListProposalsMethod = WalletGrpc.getListProposalsMethod) == null) { + WalletGrpc.getListProposalsMethod = getListProposalsMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateEnergyLimit")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProposals")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.UpdateEnergyLimitContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("UpdateEnergyLimit")) + org.tron.trident.proto.Response.ProposalList.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("ListProposals")) .build(); } } } - return getUpdateEnergyLimitMethod; + return getListProposalsMethod; } - private static volatile io.grpc.MethodDescriptor getClearContractABIMethod; + private static volatile io.grpc.MethodDescriptor getGetProposalByIdMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ClearContractABI", - requestType = org.tron.trident.proto.Contract.ClearABIContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetProposalById", + requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, + responseType = org.tron.trident.proto.Response.Proposal.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getClearContractABIMethod() { - io.grpc.MethodDescriptor getClearContractABIMethod; - if ((getClearContractABIMethod = WalletGrpc.getClearContractABIMethod) == null) { + public static io.grpc.MethodDescriptor getGetProposalByIdMethod() { + io.grpc.MethodDescriptor getGetProposalByIdMethod; + if ((getGetProposalByIdMethod = WalletGrpc.getGetProposalByIdMethod) == null) { synchronized (WalletGrpc.class) { - if ((getClearContractABIMethod = WalletGrpc.getClearContractABIMethod) == null) { - WalletGrpc.getClearContractABIMethod = getClearContractABIMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetProposalByIdMethod = WalletGrpc.getGetProposalByIdMethod) == null) { + WalletGrpc.getGetProposalByIdMethod = getGetProposalByIdMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ClearContractABI")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProposalById")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.ClearABIContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("ClearContractABI")) + org.tron.trident.proto.Response.Proposal.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetProposalById")) .build(); } } } - return getClearContractABIMethod; + return getGetProposalByIdMethod; } - private static volatile io.grpc.MethodDescriptor getTriggerContractMethod; + private static volatile io.grpc.MethodDescriptor getGetPaginatedProposalListMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TriggerContract", - requestType = org.tron.trident.proto.Contract.TriggerSmartContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetPaginatedProposalList", + requestType = org.tron.trident.api.GrpcAPI.PaginatedMessage.class, + responseType = org.tron.trident.proto.Response.ProposalList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTriggerContractMethod() { - io.grpc.MethodDescriptor getTriggerContractMethod; - if ((getTriggerContractMethod = WalletGrpc.getTriggerContractMethod) == null) { + public static io.grpc.MethodDescriptor getGetPaginatedProposalListMethod() { + io.grpc.MethodDescriptor getGetPaginatedProposalListMethod; + if ((getGetPaginatedProposalListMethod = WalletGrpc.getGetPaginatedProposalListMethod) == null) { synchronized (WalletGrpc.class) { - if ((getTriggerContractMethod = WalletGrpc.getTriggerContractMethod) == null) { - WalletGrpc.getTriggerContractMethod = getTriggerContractMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetPaginatedProposalListMethod = WalletGrpc.getGetPaginatedProposalListMethod) == null) { + WalletGrpc.getGetPaginatedProposalListMethod = getGetPaginatedProposalListMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TriggerContract")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPaginatedProposalList")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.TriggerSmartContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.PaginatedMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("TriggerContract")) - .build(); + org.tron.trident.proto.Response.ProposalList.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetPaginatedProposalList")) + .build(); } } } - return getTriggerContractMethod; + return getGetPaginatedProposalListMethod; } - private static volatile io.grpc.MethodDescriptor getTriggerConstantContractMethod; + private static volatile io.grpc.MethodDescriptor getListExchangesMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TriggerConstantContract", - requestType = org.tron.trident.proto.Contract.TriggerSmartContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "ListExchanges", + requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, + responseType = org.tron.trident.proto.Response.ExchangeList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTriggerConstantContractMethod() { - io.grpc.MethodDescriptor getTriggerConstantContractMethod; - if ((getTriggerConstantContractMethod = WalletGrpc.getTriggerConstantContractMethod) == null) { + public static io.grpc.MethodDescriptor getListExchangesMethod() { + io.grpc.MethodDescriptor getListExchangesMethod; + if ((getListExchangesMethod = WalletGrpc.getListExchangesMethod) == null) { synchronized (WalletGrpc.class) { - if ((getTriggerConstantContractMethod = WalletGrpc.getTriggerConstantContractMethod) == null) { - WalletGrpc.getTriggerConstantContractMethod = getTriggerConstantContractMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getListExchangesMethod = WalletGrpc.getListExchangesMethod) == null) { + WalletGrpc.getListExchangesMethod = getListExchangesMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TriggerConstantContract")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExchanges")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.TriggerSmartContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("TriggerConstantContract")) + org.tron.trident.proto.Response.ExchangeList.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("ListExchanges")) .build(); } } } - return getTriggerConstantContractMethod; + return getListExchangesMethod; } - private static volatile io.grpc.MethodDescriptor getExchangeCreateMethod; + private static volatile io.grpc.MethodDescriptor getGetExchangeByIdMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ExchangeCreate", - requestType = org.tron.trident.proto.Contract.ExchangeCreateContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetExchangeById", + requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, + responseType = org.tron.trident.proto.Response.Exchange.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getExchangeCreateMethod() { - io.grpc.MethodDescriptor getExchangeCreateMethod; - if ((getExchangeCreateMethod = WalletGrpc.getExchangeCreateMethod) == null) { + public static io.grpc.MethodDescriptor getGetExchangeByIdMethod() { + io.grpc.MethodDescriptor getGetExchangeByIdMethod; + if ((getGetExchangeByIdMethod = WalletGrpc.getGetExchangeByIdMethod) == null) { synchronized (WalletGrpc.class) { - if ((getExchangeCreateMethod = WalletGrpc.getExchangeCreateMethod) == null) { - WalletGrpc.getExchangeCreateMethod = getExchangeCreateMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetExchangeByIdMethod = WalletGrpc.getGetExchangeByIdMethod) == null) { + WalletGrpc.getGetExchangeByIdMethod = getGetExchangeByIdMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExchangeCreate")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExchangeById")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.ExchangeCreateContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("ExchangeCreate")) + org.tron.trident.proto.Response.Exchange.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetExchangeById")) .build(); } } } - return getExchangeCreateMethod; + return getGetExchangeByIdMethod; } - private static volatile io.grpc.MethodDescriptor getExchangeInjectMethod; + private static volatile io.grpc.MethodDescriptor getGetPaginatedExchangeListMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ExchangeInject", - requestType = org.tron.trident.proto.Contract.ExchangeInjectContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetPaginatedExchangeList", + requestType = org.tron.trident.api.GrpcAPI.PaginatedMessage.class, + responseType = org.tron.trident.proto.Response.ExchangeList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getExchangeInjectMethod() { - io.grpc.MethodDescriptor getExchangeInjectMethod; - if ((getExchangeInjectMethod = WalletGrpc.getExchangeInjectMethod) == null) { + public static io.grpc.MethodDescriptor getGetPaginatedExchangeListMethod() { + io.grpc.MethodDescriptor getGetPaginatedExchangeListMethod; + if ((getGetPaginatedExchangeListMethod = WalletGrpc.getGetPaginatedExchangeListMethod) == null) { synchronized (WalletGrpc.class) { - if ((getExchangeInjectMethod = WalletGrpc.getExchangeInjectMethod) == null) { - WalletGrpc.getExchangeInjectMethod = getExchangeInjectMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetPaginatedExchangeListMethod = WalletGrpc.getGetPaginatedExchangeListMethod) == null) { + WalletGrpc.getGetPaginatedExchangeListMethod = getGetPaginatedExchangeListMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExchangeInject")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPaginatedExchangeList")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.ExchangeInjectContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.PaginatedMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("ExchangeInject")) + org.tron.trident.proto.Response.ExchangeList.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetPaginatedExchangeList")) .build(); } } } - return getExchangeInjectMethod; + return getGetPaginatedExchangeListMethod; } - private static volatile io.grpc.MethodDescriptor getExchangeWithdrawMethod; + private static volatile io.grpc.MethodDescriptor getScanShieldedTRC20NotesByIvkMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ExchangeWithdraw", - requestType = org.tron.trident.proto.Contract.ExchangeWithdrawContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "ScanShieldedTRC20NotesByIvk", + requestType = org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters.class, + responseType = org.tron.trident.proto.Response.DecryptNotesTRC20.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getExchangeWithdrawMethod() { - io.grpc.MethodDescriptor getExchangeWithdrawMethod; - if ((getExchangeWithdrawMethod = WalletGrpc.getExchangeWithdrawMethod) == null) { + public static io.grpc.MethodDescriptor getScanShieldedTRC20NotesByIvkMethod() { + io.grpc.MethodDescriptor getScanShieldedTRC20NotesByIvkMethod; + if ((getScanShieldedTRC20NotesByIvkMethod = WalletGrpc.getScanShieldedTRC20NotesByIvkMethod) == null) { synchronized (WalletGrpc.class) { - if ((getExchangeWithdrawMethod = WalletGrpc.getExchangeWithdrawMethod) == null) { - WalletGrpc.getExchangeWithdrawMethod = getExchangeWithdrawMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getScanShieldedTRC20NotesByIvkMethod = WalletGrpc.getScanShieldedTRC20NotesByIvkMethod) == null) { + WalletGrpc.getScanShieldedTRC20NotesByIvkMethod = getScanShieldedTRC20NotesByIvkMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExchangeWithdraw")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ScanShieldedTRC20NotesByIvk")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.ExchangeWithdrawContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("ExchangeWithdraw")) + org.tron.trident.proto.Response.DecryptNotesTRC20.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("ScanShieldedTRC20NotesByIvk")) .build(); } } } - return getExchangeWithdrawMethod; + return getScanShieldedTRC20NotesByIvkMethod; } - private static volatile io.grpc.MethodDescriptor getExchangeTransactionMethod; + private static volatile io.grpc.MethodDescriptor getScanShieldedTRC20NotesByOvkMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ExchangeTransaction", - requestType = org.tron.trident.proto.Contract.ExchangeTransactionContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "ScanShieldedTRC20NotesByOvk", + requestType = org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters.class, + responseType = org.tron.trident.proto.Response.DecryptNotesTRC20.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getExchangeTransactionMethod() { - io.grpc.MethodDescriptor getExchangeTransactionMethod; - if ((getExchangeTransactionMethod = WalletGrpc.getExchangeTransactionMethod) == null) { + public static io.grpc.MethodDescriptor getScanShieldedTRC20NotesByOvkMethod() { + io.grpc.MethodDescriptor getScanShieldedTRC20NotesByOvkMethod; + if ((getScanShieldedTRC20NotesByOvkMethod = WalletGrpc.getScanShieldedTRC20NotesByOvkMethod) == null) { synchronized (WalletGrpc.class) { - if ((getExchangeTransactionMethod = WalletGrpc.getExchangeTransactionMethod) == null) { - WalletGrpc.getExchangeTransactionMethod = getExchangeTransactionMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getScanShieldedTRC20NotesByOvkMethod = WalletGrpc.getScanShieldedTRC20NotesByOvkMethod) == null) { + WalletGrpc.getScanShieldedTRC20NotesByOvkMethod = getScanShieldedTRC20NotesByOvkMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExchangeTransaction")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ScanShieldedTRC20NotesByOvk")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.ExchangeTransactionContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("ExchangeTransaction")) + org.tron.trident.proto.Response.DecryptNotesTRC20.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("ScanShieldedTRC20NotesByOvk")) .build(); } } } - return getExchangeTransactionMethod; + return getScanShieldedTRC20NotesByOvkMethod; } - private static volatile io.grpc.MethodDescriptor getMarketSellAssetMethod; + private static volatile io.grpc.MethodDescriptor getIsShieldedTRC20ContractNoteSpentMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MarketSellAsset", - requestType = org.tron.trident.proto.Contract.MarketSellAssetContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "IsShieldedTRC20ContractNoteSpent", + requestType = org.tron.trident.api.GrpcAPI.NfTRC20Parameters.class, + responseType = org.tron.trident.proto.Response.NullifierResult.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getMarketSellAssetMethod() { - io.grpc.MethodDescriptor getMarketSellAssetMethod; - if ((getMarketSellAssetMethod = WalletGrpc.getMarketSellAssetMethod) == null) { + public static io.grpc.MethodDescriptor getIsShieldedTRC20ContractNoteSpentMethod() { + io.grpc.MethodDescriptor getIsShieldedTRC20ContractNoteSpentMethod; + if ((getIsShieldedTRC20ContractNoteSpentMethod = WalletGrpc.getIsShieldedTRC20ContractNoteSpentMethod) == null) { synchronized (WalletGrpc.class) { - if ((getMarketSellAssetMethod = WalletGrpc.getMarketSellAssetMethod) == null) { - WalletGrpc.getMarketSellAssetMethod = getMarketSellAssetMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getIsShieldedTRC20ContractNoteSpentMethod = WalletGrpc.getIsShieldedTRC20ContractNoteSpentMethod) == null) { + WalletGrpc.getIsShieldedTRC20ContractNoteSpentMethod = getIsShieldedTRC20ContractNoteSpentMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MarketSellAsset")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "IsShieldedTRC20ContractNoteSpent")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.MarketSellAssetContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.NfTRC20Parameters.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("MarketSellAsset")) + org.tron.trident.proto.Response.NullifierResult.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("IsShieldedTRC20ContractNoteSpent")) .build(); } } } - return getMarketSellAssetMethod; + return getIsShieldedTRC20ContractNoteSpentMethod; } - private static volatile io.grpc.MethodDescriptor getMarketCancelOrderMethod; + private static volatile io.grpc.MethodDescriptor getGetMarketOrderByAccountMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MarketCancelOrder", - requestType = org.tron.trident.proto.Contract.MarketCancelOrderContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetMarketOrderByAccount", + requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, + responseType = org.tron.trident.proto.Response.MarketOrderList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getMarketCancelOrderMethod() { - io.grpc.MethodDescriptor getMarketCancelOrderMethod; - if ((getMarketCancelOrderMethod = WalletGrpc.getMarketCancelOrderMethod) == null) { + public static io.grpc.MethodDescriptor getGetMarketOrderByAccountMethod() { + io.grpc.MethodDescriptor getGetMarketOrderByAccountMethod; + if ((getGetMarketOrderByAccountMethod = WalletGrpc.getGetMarketOrderByAccountMethod) == null) { synchronized (WalletGrpc.class) { - if ((getMarketCancelOrderMethod = WalletGrpc.getMarketCancelOrderMethod) == null) { - WalletGrpc.getMarketCancelOrderMethod = getMarketCancelOrderMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetMarketOrderByAccountMethod = WalletGrpc.getGetMarketOrderByAccountMethod) == null) { + WalletGrpc.getGetMarketOrderByAccountMethod = getGetMarketOrderByAccountMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MarketCancelOrder")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMarketOrderByAccount")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.MarketCancelOrderContract.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("MarketCancelOrder")) + org.tron.trident.proto.Response.MarketOrderList.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetMarketOrderByAccount")) .build(); } } } - return getMarketCancelOrderMethod; + return getGetMarketOrderByAccountMethod; } - private static volatile io.grpc.MethodDescriptor getGetNodeInfoMethod; + private static volatile io.grpc.MethodDescriptor getGetMarketOrderByIdMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNodeInfo", - requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, - responseType = org.tron.trident.proto.Response.NodeInfo.class, + fullMethodName = SERVICE_NAME + '/' + "GetMarketOrderById", + requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, + responseType = org.tron.trident.proto.Response.MarketOrder.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNodeInfoMethod() { - io.grpc.MethodDescriptor getGetNodeInfoMethod; - if ((getGetNodeInfoMethod = WalletGrpc.getGetNodeInfoMethod) == null) { + public static io.grpc.MethodDescriptor getGetMarketOrderByIdMethod() { + io.grpc.MethodDescriptor getGetMarketOrderByIdMethod; + if ((getGetMarketOrderByIdMethod = WalletGrpc.getGetMarketOrderByIdMethod) == null) { synchronized (WalletGrpc.class) { - if ((getGetNodeInfoMethod = WalletGrpc.getGetNodeInfoMethod) == null) { - WalletGrpc.getGetNodeInfoMethod = getGetNodeInfoMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetMarketOrderByIdMethod = WalletGrpc.getGetMarketOrderByIdMethod) == null) { + WalletGrpc.getGetMarketOrderByIdMethod = getGetMarketOrderByIdMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNodeInfo")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMarketOrderById")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.NodeInfo.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetNodeInfo")) + org.tron.trident.proto.Response.MarketOrder.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetMarketOrderById")) .build(); } } } - return getGetNodeInfoMethod; + return getGetMarketOrderByIdMethod; } - private static volatile io.grpc.MethodDescriptor getListNodesMethod; + private static volatile io.grpc.MethodDescriptor getGetMarketPriceByPairMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNodes", - requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, - responseType = org.tron.trident.proto.Response.NodeList.class, + fullMethodName = SERVICE_NAME + '/' + "GetMarketPriceByPair", + requestType = org.tron.trident.proto.Response.MarketOrderPair.class, + responseType = org.tron.trident.proto.Response.MarketPriceList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListNodesMethod() { - io.grpc.MethodDescriptor getListNodesMethod; - if ((getListNodesMethod = WalletGrpc.getListNodesMethod) == null) { + public static io.grpc.MethodDescriptor getGetMarketPriceByPairMethod() { + io.grpc.MethodDescriptor getGetMarketPriceByPairMethod; + if ((getGetMarketPriceByPairMethod = WalletGrpc.getGetMarketPriceByPairMethod) == null) { synchronized (WalletGrpc.class) { - if ((getListNodesMethod = WalletGrpc.getListNodesMethod) == null) { - WalletGrpc.getListNodesMethod = getListNodesMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetMarketPriceByPairMethod = WalletGrpc.getGetMarketPriceByPairMethod) == null) { + WalletGrpc.getGetMarketPriceByPairMethod = getGetMarketPriceByPairMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNodes")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMarketPriceByPair")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) + org.tron.trident.proto.Response.MarketOrderPair.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.NodeList.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("ListNodes")) + org.tron.trident.proto.Response.MarketPriceList.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetMarketPriceByPair")) .build(); } } } - return getListNodesMethod; + return getGetMarketPriceByPairMethod; } - private static volatile io.grpc.MethodDescriptor getGetChainParametersMethod; + private static volatile io.grpc.MethodDescriptor getGetMarketOrderListByPairMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetChainParameters", - requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, - responseType = org.tron.trident.proto.Response.ChainParameters.class, + fullMethodName = SERVICE_NAME + '/' + "GetMarketOrderListByPair", + requestType = org.tron.trident.proto.Response.MarketOrderPair.class, + responseType = org.tron.trident.proto.Response.MarketOrderList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetChainParametersMethod() { - io.grpc.MethodDescriptor getGetChainParametersMethod; - if ((getGetChainParametersMethod = WalletGrpc.getGetChainParametersMethod) == null) { + public static io.grpc.MethodDescriptor getGetMarketOrderListByPairMethod() { + io.grpc.MethodDescriptor getGetMarketOrderListByPairMethod; + if ((getGetMarketOrderListByPairMethod = WalletGrpc.getGetMarketOrderListByPairMethod) == null) { synchronized (WalletGrpc.class) { - if ((getGetChainParametersMethod = WalletGrpc.getGetChainParametersMethod) == null) { - WalletGrpc.getGetChainParametersMethod = getGetChainParametersMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetMarketOrderListByPairMethod = WalletGrpc.getGetMarketOrderListByPairMethod) == null) { + WalletGrpc.getGetMarketOrderListByPairMethod = getGetMarketOrderListByPairMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetChainParameters")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMarketOrderListByPair")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) + org.tron.trident.proto.Response.MarketOrderPair.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.ChainParameters.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetChainParameters")) + org.tron.trident.proto.Response.MarketOrderList.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetMarketOrderListByPair")) .build(); } } } - return getGetChainParametersMethod; + return getGetMarketOrderListByPairMethod; } private static volatile io.grpc.MethodDescriptor getTotalTransactionMethod; + org.tron.trident.proto.Response.MarketOrderPairList> getGetMarketPairListMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TotalTransaction", + fullMethodName = SERVICE_NAME + '/' + "GetMarketPairList", requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, - responseType = org.tron.trident.api.GrpcAPI.NumberMessage.class, + responseType = org.tron.trident.proto.Response.MarketOrderPairList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getTotalTransactionMethod() { - io.grpc.MethodDescriptor getTotalTransactionMethod; - if ((getTotalTransactionMethod = WalletGrpc.getTotalTransactionMethod) == null) { + org.tron.trident.proto.Response.MarketOrderPairList> getGetMarketPairListMethod() { + io.grpc.MethodDescriptor getGetMarketPairListMethod; + if ((getGetMarketPairListMethod = WalletGrpc.getGetMarketPairListMethod) == null) { synchronized (WalletGrpc.class) { - if ((getTotalTransactionMethod = WalletGrpc.getTotalTransactionMethod) == null) { - WalletGrpc.getTotalTransactionMethod = getTotalTransactionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TotalTransaction")) + if ((getGetMarketPairListMethod = WalletGrpc.getGetMarketPairListMethod) == null) { + WalletGrpc.getGetMarketPairListMethod = getGetMarketPairListMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMarketPairList")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.NumberMessage.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("TotalTransaction")) + org.tron.trident.proto.Response.MarketOrderPairList.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetMarketPairList")) .build(); } } } - return getTotalTransactionMethod; + return getGetMarketPairListMethod; } - private static volatile io.grpc.MethodDescriptor getGetNextMaintenanceTimeMethod; + private static volatile io.grpc.MethodDescriptor getGetTransactionSignMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNextMaintenanceTime", - requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, - responseType = org.tron.trident.api.GrpcAPI.NumberMessage.class, + fullMethodName = SERVICE_NAME + '/' + "GetTransactionSign", + requestType = org.tron.trident.proto.Response.TransactionSign.class, + responseType = org.tron.trident.proto.Chain.Transaction.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNextMaintenanceTimeMethod() { - io.grpc.MethodDescriptor getGetNextMaintenanceTimeMethod; - if ((getGetNextMaintenanceTimeMethod = WalletGrpc.getGetNextMaintenanceTimeMethod) == null) { + public static io.grpc.MethodDescriptor getGetTransactionSignMethod() { + io.grpc.MethodDescriptor getGetTransactionSignMethod; + if ((getGetTransactionSignMethod = WalletGrpc.getGetTransactionSignMethod) == null) { synchronized (WalletGrpc.class) { - if ((getGetNextMaintenanceTimeMethod = WalletGrpc.getGetNextMaintenanceTimeMethod) == null) { - WalletGrpc.getGetNextMaintenanceTimeMethod = getGetNextMaintenanceTimeMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetTransactionSignMethod = WalletGrpc.getGetTransactionSignMethod) == null) { + WalletGrpc.getGetTransactionSignMethod = getGetTransactionSignMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNextMaintenanceTime")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactionSign")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) + org.tron.trident.proto.Response.TransactionSign.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.NumberMessage.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetNextMaintenanceTime")) + org.tron.trident.proto.Chain.Transaction.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetTransactionSign")) .build(); } } } - return getGetNextMaintenanceTimeMethod; + return getGetTransactionSignMethod; } - private static volatile io.grpc.MethodDescriptor getGetTransactionSignWeightMethod; + private static volatile io.grpc.MethodDescriptor getGetTransactionSign2Method; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTransactionSignWeight", - requestType = org.tron.trident.proto.Chain.Transaction.class, - responseType = org.tron.trident.proto.Response.TransactionSignWeight.class, + fullMethodName = SERVICE_NAME + '/' + "GetTransactionSign2", + requestType = org.tron.trident.proto.Response.TransactionSign.class, + responseType = org.tron.trident.proto.Response.TransactionExtention.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetTransactionSignWeightMethod() { - io.grpc.MethodDescriptor getGetTransactionSignWeightMethod; - if ((getGetTransactionSignWeightMethod = WalletGrpc.getGetTransactionSignWeightMethod) == null) { + public static io.grpc.MethodDescriptor getGetTransactionSign2Method() { + io.grpc.MethodDescriptor getGetTransactionSign2Method; + if ((getGetTransactionSign2Method = WalletGrpc.getGetTransactionSign2Method) == null) { synchronized (WalletGrpc.class) { - if ((getGetTransactionSignWeightMethod = WalletGrpc.getGetTransactionSignWeightMethod) == null) { - WalletGrpc.getGetTransactionSignWeightMethod = getGetTransactionSignWeightMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetTransactionSign2Method = WalletGrpc.getGetTransactionSign2Method) == null) { + WalletGrpc.getGetTransactionSign2Method = getGetTransactionSign2Method = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactionSignWeight")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactionSign2")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Chain.Transaction.getDefaultInstance())) + org.tron.trident.proto.Response.TransactionSign.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionSignWeight.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetTransactionSignWeight")) + org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetTransactionSign2")) .build(); } } } - return getGetTransactionSignWeightMethod; + return getGetTransactionSign2Method; } - private static volatile io.grpc.MethodDescriptor getGetTransactionApprovedListMethod; + private static volatile io.grpc.MethodDescriptor getEasyTransferAssetMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTransactionApprovedList", - requestType = org.tron.trident.proto.Chain.Transaction.class, - responseType = org.tron.trident.proto.Response.TransactionApprovedList.class, + fullMethodName = SERVICE_NAME + '/' + "EasyTransferAsset", + requestType = org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage.class, + responseType = org.tron.trident.proto.Response.EasyTransferResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetTransactionApprovedListMethod() { - io.grpc.MethodDescriptor getGetTransactionApprovedListMethod; - if ((getGetTransactionApprovedListMethod = WalletGrpc.getGetTransactionApprovedListMethod) == null) { + public static io.grpc.MethodDescriptor getEasyTransferAssetMethod() { + io.grpc.MethodDescriptor getEasyTransferAssetMethod; + if ((getEasyTransferAssetMethod = WalletGrpc.getEasyTransferAssetMethod) == null) { synchronized (WalletGrpc.class) { - if ((getGetTransactionApprovedListMethod = WalletGrpc.getGetTransactionApprovedListMethod) == null) { - WalletGrpc.getGetTransactionApprovedListMethod = getGetTransactionApprovedListMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getEasyTransferAssetMethod = WalletGrpc.getEasyTransferAssetMethod) == null) { + WalletGrpc.getEasyTransferAssetMethod = getEasyTransferAssetMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactionApprovedList")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EasyTransferAsset")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Chain.Transaction.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionApprovedList.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetTransactionApprovedList")) + org.tron.trident.proto.Response.EasyTransferResponse.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("EasyTransferAsset")) .build(); } } } - return getGetTransactionApprovedListMethod; + return getEasyTransferAssetMethod; } - private static volatile io.grpc.MethodDescriptor getGetAccountMethod; + private static volatile io.grpc.MethodDescriptor getEasyTransferAssetByPrivateMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAccount", - requestType = org.tron.trident.api.GrpcAPI.AccountAddressMessage.class, - responseType = org.tron.trident.proto.Response.Account.class, + fullMethodName = SERVICE_NAME + '/' + "EasyTransferAssetByPrivate", + requestType = org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage.class, + responseType = org.tron.trident.proto.Response.EasyTransferResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAccountMethod() { - io.grpc.MethodDescriptor getGetAccountMethod; - if ((getGetAccountMethod = WalletGrpc.getGetAccountMethod) == null) { + public static io.grpc.MethodDescriptor getEasyTransferAssetByPrivateMethod() { + io.grpc.MethodDescriptor getEasyTransferAssetByPrivateMethod; + if ((getEasyTransferAssetByPrivateMethod = WalletGrpc.getEasyTransferAssetByPrivateMethod) == null) { synchronized (WalletGrpc.class) { - if ((getGetAccountMethod = WalletGrpc.getGetAccountMethod) == null) { - WalletGrpc.getGetAccountMethod = getGetAccountMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getEasyTransferAssetByPrivateMethod = WalletGrpc.getEasyTransferAssetByPrivateMethod) == null) { + WalletGrpc.getEasyTransferAssetByPrivateMethod = getEasyTransferAssetByPrivateMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccount")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EasyTransferAssetByPrivate")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.AccountAddressMessage.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.Account.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetAccount")) + org.tron.trident.proto.Response.EasyTransferResponse.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("EasyTransferAssetByPrivate")) .build(); } } } - return getGetAccountMethod; + return getEasyTransferAssetByPrivateMethod; } - private static volatile io.grpc.MethodDescriptor getGetAccountByIdMethod; + private static volatile io.grpc.MethodDescriptor getEasyTransferMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAccountById", - requestType = org.tron.trident.api.GrpcAPI.AccountIdMessage.class, - responseType = org.tron.trident.proto.Response.Account.class, + fullMethodName = SERVICE_NAME + '/' + "EasyTransfer", + requestType = org.tron.trident.api.GrpcAPI.EasyTransferMessage.class, + responseType = org.tron.trident.proto.Response.EasyTransferResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAccountByIdMethod() { - io.grpc.MethodDescriptor getGetAccountByIdMethod; - if ((getGetAccountByIdMethod = WalletGrpc.getGetAccountByIdMethod) == null) { + public static io.grpc.MethodDescriptor getEasyTransferMethod() { + io.grpc.MethodDescriptor getEasyTransferMethod; + if ((getEasyTransferMethod = WalletGrpc.getEasyTransferMethod) == null) { synchronized (WalletGrpc.class) { - if ((getGetAccountByIdMethod = WalletGrpc.getGetAccountByIdMethod) == null) { - WalletGrpc.getGetAccountByIdMethod = getGetAccountByIdMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getEasyTransferMethod = WalletGrpc.getEasyTransferMethod) == null) { + WalletGrpc.getEasyTransferMethod = getEasyTransferMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccountById")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EasyTransfer")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.AccountIdMessage.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.EasyTransferMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.Account.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetAccountById")) + org.tron.trident.proto.Response.EasyTransferResponse.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("EasyTransfer")) .build(); } } } - return getGetAccountByIdMethod; + return getEasyTransferMethod; } - private static volatile io.grpc.MethodDescriptor getGetAccountNetMethod; + private static volatile io.grpc.MethodDescriptor getEasyTransferByPrivateMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAccountNet", - requestType = org.tron.trident.api.GrpcAPI.AccountAddressMessage.class, - responseType = org.tron.trident.proto.Response.AccountNetMessage.class, + fullMethodName = SERVICE_NAME + '/' + "EasyTransferByPrivate", + requestType = org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage.class, + responseType = org.tron.trident.proto.Response.EasyTransferResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAccountNetMethod() { - io.grpc.MethodDescriptor getGetAccountNetMethod; - if ((getGetAccountNetMethod = WalletGrpc.getGetAccountNetMethod) == null) { + public static io.grpc.MethodDescriptor getEasyTransferByPrivateMethod() { + io.grpc.MethodDescriptor getEasyTransferByPrivateMethod; + if ((getEasyTransferByPrivateMethod = WalletGrpc.getEasyTransferByPrivateMethod) == null) { synchronized (WalletGrpc.class) { - if ((getGetAccountNetMethod = WalletGrpc.getGetAccountNetMethod) == null) { - WalletGrpc.getGetAccountNetMethod = getGetAccountNetMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getEasyTransferByPrivateMethod = WalletGrpc.getEasyTransferByPrivateMethod) == null) { + WalletGrpc.getEasyTransferByPrivateMethod = getEasyTransferByPrivateMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccountNet")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EasyTransferByPrivate")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.AccountAddressMessage.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.AccountNetMessage.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetAccountNet")) + org.tron.trident.proto.Response.EasyTransferResponse.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("EasyTransferByPrivate")) .build(); } } } - return getGetAccountNetMethod; + return getEasyTransferByPrivateMethod; } - private static volatile io.grpc.MethodDescriptor getGetAccountResourceMethod; + private static volatile io.grpc.MethodDescriptor getCreateAddressMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAccountResource", - requestType = org.tron.trident.api.GrpcAPI.AccountAddressMessage.class, - responseType = org.tron.trident.proto.Response.AccountResourceMessage.class, + fullMethodName = SERVICE_NAME + '/' + "CreateAddress", + requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, + responseType = org.tron.trident.api.GrpcAPI.BytesMessage.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAccountResourceMethod() { - io.grpc.MethodDescriptor getGetAccountResourceMethod; - if ((getGetAccountResourceMethod = WalletGrpc.getGetAccountResourceMethod) == null) { + public static io.grpc.MethodDescriptor getCreateAddressMethod() { + io.grpc.MethodDescriptor getCreateAddressMethod; + if ((getCreateAddressMethod = WalletGrpc.getCreateAddressMethod) == null) { synchronized (WalletGrpc.class) { - if ((getGetAccountResourceMethod = WalletGrpc.getGetAccountResourceMethod) == null) { - WalletGrpc.getGetAccountResourceMethod = getGetAccountResourceMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getCreateAddressMethod = WalletGrpc.getCreateAddressMethod) == null) { + WalletGrpc.getCreateAddressMethod = getCreateAddressMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccountResource")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAddress")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.AccountAddressMessage.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.AccountResourceMessage.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetAccountResource")) + org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("CreateAddress")) .build(); } } } - return getGetAccountResourceMethod; + return getCreateAddressMethod; } - private static volatile io.grpc.MethodDescriptor getGetAssetIssueByAccountMethod; + private static volatile io.grpc.MethodDescriptor getGenerateAddressMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAssetIssueByAccount", - requestType = org.tron.trident.api.GrpcAPI.AccountAddressMessage.class, - responseType = org.tron.trident.proto.Response.AssetIssueList.class, + fullMethodName = SERVICE_NAME + '/' + "GenerateAddress", + requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, + responseType = org.tron.trident.proto.Response.AddressPrKeyPairMessage.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAssetIssueByAccountMethod() { - io.grpc.MethodDescriptor getGetAssetIssueByAccountMethod; - if ((getGetAssetIssueByAccountMethod = WalletGrpc.getGetAssetIssueByAccountMethod) == null) { + public static io.grpc.MethodDescriptor getGenerateAddressMethod() { + io.grpc.MethodDescriptor getGenerateAddressMethod; + if ((getGenerateAddressMethod = WalletGrpc.getGenerateAddressMethod) == null) { synchronized (WalletGrpc.class) { - if ((getGetAssetIssueByAccountMethod = WalletGrpc.getGetAssetIssueByAccountMethod) == null) { - WalletGrpc.getGetAssetIssueByAccountMethod = getGetAssetIssueByAccountMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGenerateAddressMethod = WalletGrpc.getGenerateAddressMethod) == null) { + WalletGrpc.getGenerateAddressMethod = getGenerateAddressMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAssetIssueByAccount")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateAddress")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.AccountAddressMessage.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.AssetIssueList.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetAssetIssueByAccount")) + org.tron.trident.proto.Response.AddressPrKeyPairMessage.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GenerateAddress")) .build(); } } } - return getGetAssetIssueByAccountMethod; + return getGenerateAddressMethod; } - private static volatile io.grpc.MethodDescriptor getGetAssetIssueByNameMethod; + private static volatile io.grpc.MethodDescriptor getAddSignMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAssetIssueByName", - requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, - responseType = org.tron.trident.proto.Contract.AssetIssueContract.class, + fullMethodName = SERVICE_NAME + '/' + "AddSign", + requestType = org.tron.trident.proto.Response.TransactionSign.class, + responseType = org.tron.trident.proto.Response.TransactionExtention.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAssetIssueByNameMethod() { - io.grpc.MethodDescriptor getGetAssetIssueByNameMethod; - if ((getGetAssetIssueByNameMethod = WalletGrpc.getGetAssetIssueByNameMethod) == null) { + public static io.grpc.MethodDescriptor getAddSignMethod() { + io.grpc.MethodDescriptor getAddSignMethod; + if ((getAddSignMethod = WalletGrpc.getAddSignMethod) == null) { synchronized (WalletGrpc.class) { - if ((getGetAssetIssueByNameMethod = WalletGrpc.getGetAssetIssueByNameMethod) == null) { - WalletGrpc.getGetAssetIssueByNameMethod = getGetAssetIssueByNameMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getAddSignMethod = WalletGrpc.getAddSignMethod) == null) { + WalletGrpc.getAddSignMethod = getAddSignMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAssetIssueByName")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AddSign")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) + org.tron.trident.proto.Response.TransactionSign.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.AssetIssueContract.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetAssetIssueByName")) + org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("AddSign")) .build(); } } } - return getGetAssetIssueByNameMethod; + return getAddSignMethod; } - private static volatile io.grpc.MethodDescriptor getGetAssetIssueListByNameMethod; + private static volatile io.grpc.MethodDescriptor getGetSpendingKeyMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAssetIssueListByName", - requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, - responseType = org.tron.trident.proto.Response.AssetIssueList.class, + fullMethodName = SERVICE_NAME + '/' + "GetSpendingKey", + requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, + responseType = org.tron.trident.api.GrpcAPI.BytesMessage.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAssetIssueListByNameMethod() { - io.grpc.MethodDescriptor getGetAssetIssueListByNameMethod; - if ((getGetAssetIssueListByNameMethod = WalletGrpc.getGetAssetIssueListByNameMethod) == null) { + public static io.grpc.MethodDescriptor getGetSpendingKeyMethod() { + io.grpc.MethodDescriptor getGetSpendingKeyMethod; + if ((getGetSpendingKeyMethod = WalletGrpc.getGetSpendingKeyMethod) == null) { synchronized (WalletGrpc.class) { - if ((getGetAssetIssueListByNameMethod = WalletGrpc.getGetAssetIssueListByNameMethod) == null) { - WalletGrpc.getGetAssetIssueListByNameMethod = getGetAssetIssueListByNameMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetSpendingKeyMethod = WalletGrpc.getGetSpendingKeyMethod) == null) { + WalletGrpc.getGetSpendingKeyMethod = getGetSpendingKeyMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAssetIssueListByName")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpendingKey")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.AssetIssueList.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetAssetIssueListByName")) + org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetSpendingKey")) .build(); } } } - return getGetAssetIssueListByNameMethod; + return getGetSpendingKeyMethod; } private static volatile io.grpc.MethodDescriptor getGetAssetIssueByIdMethod; + org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage> getGetExpandedSpendingKeyMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAssetIssueById", + fullMethodName = SERVICE_NAME + '/' + "GetExpandedSpendingKey", requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, - responseType = org.tron.trident.proto.Contract.AssetIssueContract.class, + responseType = org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetAssetIssueByIdMethod() { - io.grpc.MethodDescriptor getGetAssetIssueByIdMethod; - if ((getGetAssetIssueByIdMethod = WalletGrpc.getGetAssetIssueByIdMethod) == null) { + org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage> getGetExpandedSpendingKeyMethod() { + io.grpc.MethodDescriptor getGetExpandedSpendingKeyMethod; + if ((getGetExpandedSpendingKeyMethod = WalletGrpc.getGetExpandedSpendingKeyMethod) == null) { synchronized (WalletGrpc.class) { - if ((getGetAssetIssueByIdMethod = WalletGrpc.getGetAssetIssueByIdMethod) == null) { - WalletGrpc.getGetAssetIssueByIdMethod = getGetAssetIssueByIdMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetExpandedSpendingKeyMethod = WalletGrpc.getGetExpandedSpendingKeyMethod) == null) { + WalletGrpc.getGetExpandedSpendingKeyMethod = getGetExpandedSpendingKeyMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAssetIssueById")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExpandedSpendingKey")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.AssetIssueContract.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetAssetIssueById")) + org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetExpandedSpendingKey")) .build(); } } } - return getGetAssetIssueByIdMethod; + return getGetExpandedSpendingKeyMethod; } - private static volatile io.grpc.MethodDescriptor getGetAssetIssueListMethod; + private static volatile io.grpc.MethodDescriptor getGetAkFromAskMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAssetIssueList", - requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, - responseType = org.tron.trident.proto.Response.AssetIssueList.class, + fullMethodName = SERVICE_NAME + '/' + "GetAkFromAsk", + requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, + responseType = org.tron.trident.api.GrpcAPI.BytesMessage.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAssetIssueListMethod() { - io.grpc.MethodDescriptor getGetAssetIssueListMethod; - if ((getGetAssetIssueListMethod = WalletGrpc.getGetAssetIssueListMethod) == null) { + public static io.grpc.MethodDescriptor getGetAkFromAskMethod() { + io.grpc.MethodDescriptor getGetAkFromAskMethod; + if ((getGetAkFromAskMethod = WalletGrpc.getGetAkFromAskMethod) == null) { synchronized (WalletGrpc.class) { - if ((getGetAssetIssueListMethod = WalletGrpc.getGetAssetIssueListMethod) == null) { - WalletGrpc.getGetAssetIssueListMethod = getGetAssetIssueListMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetAkFromAskMethod = WalletGrpc.getGetAkFromAskMethod) == null) { + WalletGrpc.getGetAkFromAskMethod = getGetAkFromAskMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAssetIssueList")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAkFromAsk")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.AssetIssueList.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetAssetIssueList")) + org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetAkFromAsk")) .build(); } } } - return getGetAssetIssueListMethod; + return getGetAkFromAskMethod; } - private static volatile io.grpc.MethodDescriptor getGetPaginatedAssetIssueListMethod; + private static volatile io.grpc.MethodDescriptor getGetNkFromNskMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPaginatedAssetIssueList", - requestType = org.tron.trident.api.GrpcAPI.PaginatedMessage.class, - responseType = org.tron.trident.proto.Response.AssetIssueList.class, + fullMethodName = SERVICE_NAME + '/' + "GetNkFromNsk", + requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, + responseType = org.tron.trident.api.GrpcAPI.BytesMessage.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetPaginatedAssetIssueListMethod() { - io.grpc.MethodDescriptor getGetPaginatedAssetIssueListMethod; - if ((getGetPaginatedAssetIssueListMethod = WalletGrpc.getGetPaginatedAssetIssueListMethod) == null) { + public static io.grpc.MethodDescriptor getGetNkFromNskMethod() { + io.grpc.MethodDescriptor getGetNkFromNskMethod; + if ((getGetNkFromNskMethod = WalletGrpc.getGetNkFromNskMethod) == null) { synchronized (WalletGrpc.class) { - if ((getGetPaginatedAssetIssueListMethod = WalletGrpc.getGetPaginatedAssetIssueListMethod) == null) { - WalletGrpc.getGetPaginatedAssetIssueListMethod = getGetPaginatedAssetIssueListMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetNkFromNskMethod = WalletGrpc.getGetNkFromNskMethod) == null) { + WalletGrpc.getGetNkFromNskMethod = getGetNkFromNskMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPaginatedAssetIssueList")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNkFromNsk")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.PaginatedMessage.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.AssetIssueList.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetPaginatedAssetIssueList")) + org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetNkFromNsk")) .build(); } } } - return getGetPaginatedAssetIssueListMethod; + return getGetNkFromNskMethod; } - private static volatile io.grpc.MethodDescriptor getGetNowBlockMethod; + private static volatile io.grpc.MethodDescriptor getGetIncomingViewingKeyMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNowBlock", - requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, - responseType = org.tron.trident.proto.Chain.Block.class, + fullMethodName = SERVICE_NAME + '/' + "GetIncomingViewingKey", + requestType = org.tron.trident.api.GrpcAPI.ViewingKeyMessage.class, + responseType = org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNowBlockMethod() { - io.grpc.MethodDescriptor getGetNowBlockMethod; - if ((getGetNowBlockMethod = WalletGrpc.getGetNowBlockMethod) == null) { + public static io.grpc.MethodDescriptor getGetIncomingViewingKeyMethod() { + io.grpc.MethodDescriptor getGetIncomingViewingKeyMethod; + if ((getGetIncomingViewingKeyMethod = WalletGrpc.getGetIncomingViewingKeyMethod) == null) { synchronized (WalletGrpc.class) { - if ((getGetNowBlockMethod = WalletGrpc.getGetNowBlockMethod) == null) { - WalletGrpc.getGetNowBlockMethod = getGetNowBlockMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetIncomingViewingKeyMethod = WalletGrpc.getGetIncomingViewingKeyMethod) == null) { + WalletGrpc.getGetIncomingViewingKeyMethod = getGetIncomingViewingKeyMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNowBlock")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIncomingViewingKey")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.ViewingKeyMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Chain.Block.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetNowBlock")) + org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetIncomingViewingKey")) .build(); } } } - return getGetNowBlockMethod; + return getGetIncomingViewingKeyMethod; } private static volatile io.grpc.MethodDescriptor getGetNowBlock2Method; + org.tron.trident.api.GrpcAPI.DiversifierMessage> getGetDiversifierMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNowBlock2", + fullMethodName = SERVICE_NAME + '/' + "GetDiversifier", requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, - responseType = org.tron.trident.proto.Response.BlockExtention.class, + responseType = org.tron.trident.api.GrpcAPI.DiversifierMessage.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetNowBlock2Method() { - io.grpc.MethodDescriptor getGetNowBlock2Method; - if ((getGetNowBlock2Method = WalletGrpc.getGetNowBlock2Method) == null) { + org.tron.trident.api.GrpcAPI.DiversifierMessage> getGetDiversifierMethod() { + io.grpc.MethodDescriptor getGetDiversifierMethod; + if ((getGetDiversifierMethod = WalletGrpc.getGetDiversifierMethod) == null) { synchronized (WalletGrpc.class) { - if ((getGetNowBlock2Method = WalletGrpc.getGetNowBlock2Method) == null) { - WalletGrpc.getGetNowBlock2Method = getGetNowBlock2Method = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetDiversifierMethod = WalletGrpc.getGetDiversifierMethod) == null) { + WalletGrpc.getGetDiversifierMethod = getGetDiversifierMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNowBlock2")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDiversifier")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.BlockExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetNowBlock2")) + org.tron.trident.api.GrpcAPI.DiversifierMessage.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetDiversifier")) .build(); } } } - return getGetNowBlock2Method; + return getGetDiversifierMethod; } - private static volatile io.grpc.MethodDescriptor getGetBlockByNumMethod; + private static volatile io.grpc.MethodDescriptor getGetZenPaymentAddressMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBlockByNum", - requestType = org.tron.trident.api.GrpcAPI.NumberMessage.class, - responseType = org.tron.trident.proto.Chain.Block.class, + fullMethodName = SERVICE_NAME + '/' + "GetZenPaymentAddress", + requestType = org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage.class, + responseType = org.tron.trident.api.GrpcAPI.PaymentAddressMessage.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetBlockByNumMethod() { - io.grpc.MethodDescriptor getGetBlockByNumMethod; - if ((getGetBlockByNumMethod = WalletGrpc.getGetBlockByNumMethod) == null) { + public static io.grpc.MethodDescriptor getGetZenPaymentAddressMethod() { + io.grpc.MethodDescriptor getGetZenPaymentAddressMethod; + if ((getGetZenPaymentAddressMethod = WalletGrpc.getGetZenPaymentAddressMethod) == null) { synchronized (WalletGrpc.class) { - if ((getGetBlockByNumMethod = WalletGrpc.getGetBlockByNumMethod) == null) { - WalletGrpc.getGetBlockByNumMethod = getGetBlockByNumMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetZenPaymentAddressMethod = WalletGrpc.getGetZenPaymentAddressMethod) == null) { + WalletGrpc.getGetZenPaymentAddressMethod = getGetZenPaymentAddressMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockByNum")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetZenPaymentAddress")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.NumberMessage.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Chain.Block.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetBlockByNum")) + org.tron.trident.api.GrpcAPI.PaymentAddressMessage.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetZenPaymentAddress")) .build(); } } } - return getGetBlockByNumMethod; + return getGetZenPaymentAddressMethod; } - private static volatile io.grpc.MethodDescriptor getGetBlockByNum2Method; + private static volatile io.grpc.MethodDescriptor getGetNewShieldedAddressMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBlockByNum2", - requestType = org.tron.trident.api.GrpcAPI.NumberMessage.class, - responseType = org.tron.trident.proto.Response.BlockExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetNewShieldedAddress", + requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, + responseType = org.tron.trident.api.GrpcAPI.ShieldedAddressInfo.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetBlockByNum2Method() { - io.grpc.MethodDescriptor getGetBlockByNum2Method; - if ((getGetBlockByNum2Method = WalletGrpc.getGetBlockByNum2Method) == null) { + public static io.grpc.MethodDescriptor getGetNewShieldedAddressMethod() { + io.grpc.MethodDescriptor getGetNewShieldedAddressMethod; + if ((getGetNewShieldedAddressMethod = WalletGrpc.getGetNewShieldedAddressMethod) == null) { synchronized (WalletGrpc.class) { - if ((getGetBlockByNum2Method = WalletGrpc.getGetBlockByNum2Method) == null) { - WalletGrpc.getGetBlockByNum2Method = getGetBlockByNum2Method = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetNewShieldedAddressMethod = WalletGrpc.getGetNewShieldedAddressMethod) == null) { + WalletGrpc.getGetNewShieldedAddressMethod = getGetNewShieldedAddressMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockByNum2")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNewShieldedAddress")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.NumberMessage.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.BlockExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetBlockByNum2")) + org.tron.trident.api.GrpcAPI.ShieldedAddressInfo.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetNewShieldedAddress")) .build(); } } } - return getGetBlockByNum2Method; + return getGetNewShieldedAddressMethod; } - private static volatile io.grpc.MethodDescriptor getGetBlockByIdMethod; + private static volatile io.grpc.MethodDescriptor getGetRcmMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBlockById", - requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, - responseType = org.tron.trident.proto.Chain.Block.class, + fullMethodName = SERVICE_NAME + '/' + "GetRcm", + requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, + responseType = org.tron.trident.api.GrpcAPI.BytesMessage.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetBlockByIdMethod() { - io.grpc.MethodDescriptor getGetBlockByIdMethod; - if ((getGetBlockByIdMethod = WalletGrpc.getGetBlockByIdMethod) == null) { + public static io.grpc.MethodDescriptor getGetRcmMethod() { + io.grpc.MethodDescriptor getGetRcmMethod; + if ((getGetRcmMethod = WalletGrpc.getGetRcmMethod) == null) { synchronized (WalletGrpc.class) { - if ((getGetBlockByIdMethod = WalletGrpc.getGetBlockByIdMethod) == null) { - WalletGrpc.getGetBlockByIdMethod = getGetBlockByIdMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetRcmMethod = WalletGrpc.getGetRcmMethod) == null) { + WalletGrpc.getGetRcmMethod = getGetRcmMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockById")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRcm")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Chain.Block.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetBlockById")) + org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetRcm")) .build(); } } } - return getGetBlockByIdMethod; + return getGetRcmMethod; } - private static volatile io.grpc.MethodDescriptor getGetBlockByLimitNextMethod; + private static volatile io.grpc.MethodDescriptor getCreateShieldedContractParametersMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBlockByLimitNext", - requestType = org.tron.trident.api.GrpcAPI.BlockLimit.class, - responseType = org.tron.trident.proto.Response.BlockList.class, + fullMethodName = SERVICE_NAME + '/' + "CreateShieldedContractParameters", + requestType = org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters.class, + responseType = org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetBlockByLimitNextMethod() { - io.grpc.MethodDescriptor getGetBlockByLimitNextMethod; - if ((getGetBlockByLimitNextMethod = WalletGrpc.getGetBlockByLimitNextMethod) == null) { + public static io.grpc.MethodDescriptor getCreateShieldedContractParametersMethod() { + io.grpc.MethodDescriptor getCreateShieldedContractParametersMethod; + if ((getCreateShieldedContractParametersMethod = WalletGrpc.getCreateShieldedContractParametersMethod) == null) { synchronized (WalletGrpc.class) { - if ((getGetBlockByLimitNextMethod = WalletGrpc.getGetBlockByLimitNextMethod) == null) { - WalletGrpc.getGetBlockByLimitNextMethod = getGetBlockByLimitNextMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getCreateShieldedContractParametersMethod = WalletGrpc.getCreateShieldedContractParametersMethod) == null) { + WalletGrpc.getCreateShieldedContractParametersMethod = getCreateShieldedContractParametersMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockByLimitNext")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateShieldedContractParameters")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.BlockLimit.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.BlockList.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetBlockByLimitNext")) + org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("CreateShieldedContractParameters")) .build(); } } } - return getGetBlockByLimitNextMethod; + return getCreateShieldedContractParametersMethod; } - private static volatile io.grpc.MethodDescriptor getGetBlockByLimitNext2Method; + private static volatile io.grpc.MethodDescriptor getCreateShieldedContractParametersWithoutAskMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBlockByLimitNext2", - requestType = org.tron.trident.api.GrpcAPI.BlockLimit.class, - responseType = org.tron.trident.proto.Response.BlockListExtention.class, + fullMethodName = SERVICE_NAME + '/' + "CreateShieldedContractParametersWithoutAsk", + requestType = org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk.class, + responseType = org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetBlockByLimitNext2Method() { - io.grpc.MethodDescriptor getGetBlockByLimitNext2Method; - if ((getGetBlockByLimitNext2Method = WalletGrpc.getGetBlockByLimitNext2Method) == null) { + public static io.grpc.MethodDescriptor getCreateShieldedContractParametersWithoutAskMethod() { + io.grpc.MethodDescriptor getCreateShieldedContractParametersWithoutAskMethod; + if ((getCreateShieldedContractParametersWithoutAskMethod = WalletGrpc.getCreateShieldedContractParametersWithoutAskMethod) == null) { synchronized (WalletGrpc.class) { - if ((getGetBlockByLimitNext2Method = WalletGrpc.getGetBlockByLimitNext2Method) == null) { - WalletGrpc.getGetBlockByLimitNext2Method = getGetBlockByLimitNext2Method = - io.grpc.MethodDescriptor.newBuilder() + if ((getCreateShieldedContractParametersWithoutAskMethod = WalletGrpc.getCreateShieldedContractParametersWithoutAskMethod) == null) { + WalletGrpc.getCreateShieldedContractParametersWithoutAskMethod = getCreateShieldedContractParametersWithoutAskMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockByLimitNext2")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateShieldedContractParametersWithoutAsk")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.BlockLimit.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.BlockListExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetBlockByLimitNext2")) + org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("CreateShieldedContractParametersWithoutAsk")) .build(); } } } - return getGetBlockByLimitNext2Method; + return getCreateShieldedContractParametersWithoutAskMethod; } - private static volatile io.grpc.MethodDescriptor getGetBlockByLatestNumMethod; + private static volatile io.grpc.MethodDescriptor getGetTriggerInputForShieldedTRC20ContractMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBlockByLatestNum", - requestType = org.tron.trident.api.GrpcAPI.NumberMessage.class, - responseType = org.tron.trident.proto.Response.BlockList.class, + fullMethodName = SERVICE_NAME + '/' + "GetTriggerInputForShieldedTRC20Contract", + requestType = org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters.class, + responseType = org.tron.trident.api.GrpcAPI.BytesMessage.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetBlockByLatestNumMethod() { - io.grpc.MethodDescriptor getGetBlockByLatestNumMethod; - if ((getGetBlockByLatestNumMethod = WalletGrpc.getGetBlockByLatestNumMethod) == null) { + public static io.grpc.MethodDescriptor getGetTriggerInputForShieldedTRC20ContractMethod() { + io.grpc.MethodDescriptor getGetTriggerInputForShieldedTRC20ContractMethod; + if ((getGetTriggerInputForShieldedTRC20ContractMethod = WalletGrpc.getGetTriggerInputForShieldedTRC20ContractMethod) == null) { synchronized (WalletGrpc.class) { - if ((getGetBlockByLatestNumMethod = WalletGrpc.getGetBlockByLatestNumMethod) == null) { - WalletGrpc.getGetBlockByLatestNumMethod = getGetBlockByLatestNumMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetTriggerInputForShieldedTRC20ContractMethod = WalletGrpc.getGetTriggerInputForShieldedTRC20ContractMethod) == null) { + WalletGrpc.getGetTriggerInputForShieldedTRC20ContractMethod = getGetTriggerInputForShieldedTRC20ContractMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockByLatestNum")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTriggerInputForShieldedTRC20Contract")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.NumberMessage.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.BlockList.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetBlockByLatestNum")) + org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetTriggerInputForShieldedTRC20Contract")) .build(); } } } - return getGetBlockByLatestNumMethod; + return getGetTriggerInputForShieldedTRC20ContractMethod; } - private static volatile io.grpc.MethodDescriptor getGetBlockByLatestNum2Method; + private static volatile io.grpc.MethodDescriptor getGetAvailableUnfreezeCountMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBlockByLatestNum2", - requestType = org.tron.trident.api.GrpcAPI.NumberMessage.class, - responseType = org.tron.trident.proto.Response.BlockListExtention.class, + fullMethodName = SERVICE_NAME + '/' + "GetAvailableUnfreezeCount", + requestType = org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage.class, + responseType = org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetBlockByLatestNum2Method() { - io.grpc.MethodDescriptor getGetBlockByLatestNum2Method; - if ((getGetBlockByLatestNum2Method = WalletGrpc.getGetBlockByLatestNum2Method) == null) { + public static io.grpc.MethodDescriptor getGetAvailableUnfreezeCountMethod() { + io.grpc.MethodDescriptor getGetAvailableUnfreezeCountMethod; + if ((getGetAvailableUnfreezeCountMethod = WalletGrpc.getGetAvailableUnfreezeCountMethod) == null) { synchronized (WalletGrpc.class) { - if ((getGetBlockByLatestNum2Method = WalletGrpc.getGetBlockByLatestNum2Method) == null) { - WalletGrpc.getGetBlockByLatestNum2Method = getGetBlockByLatestNum2Method = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetAvailableUnfreezeCountMethod = WalletGrpc.getGetAvailableUnfreezeCountMethod) == null) { + WalletGrpc.getGetAvailableUnfreezeCountMethod = getGetAvailableUnfreezeCountMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockByLatestNum2")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAvailableUnfreezeCount")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.NumberMessage.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.BlockListExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetBlockByLatestNum2")) + org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetAvailableUnfreezeCount")) .build(); } } } - return getGetBlockByLatestNum2Method; + return getGetAvailableUnfreezeCountMethod; } - private static volatile io.grpc.MethodDescriptor getGetTransactionCountByBlockNumMethod; + private static volatile io.grpc.MethodDescriptor getGetCanWithdrawUnfreezeAmountMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTransactionCountByBlockNum", - requestType = org.tron.trident.api.GrpcAPI.NumberMessage.class, - responseType = org.tron.trident.api.GrpcAPI.NumberMessage.class, + fullMethodName = SERVICE_NAME + '/' + "GetCanWithdrawUnfreezeAmount", + requestType = org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage.class, + responseType = org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetTransactionCountByBlockNumMethod() { - io.grpc.MethodDescriptor getGetTransactionCountByBlockNumMethod; - if ((getGetTransactionCountByBlockNumMethod = WalletGrpc.getGetTransactionCountByBlockNumMethod) == null) { + public static io.grpc.MethodDescriptor getGetCanWithdrawUnfreezeAmountMethod() { + io.grpc.MethodDescriptor getGetCanWithdrawUnfreezeAmountMethod; + if ((getGetCanWithdrawUnfreezeAmountMethod = WalletGrpc.getGetCanWithdrawUnfreezeAmountMethod) == null) { synchronized (WalletGrpc.class) { - if ((getGetTransactionCountByBlockNumMethod = WalletGrpc.getGetTransactionCountByBlockNumMethod) == null) { - WalletGrpc.getGetTransactionCountByBlockNumMethod = getGetTransactionCountByBlockNumMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetCanWithdrawUnfreezeAmountMethod = WalletGrpc.getGetCanWithdrawUnfreezeAmountMethod) == null) { + WalletGrpc.getGetCanWithdrawUnfreezeAmountMethod = getGetCanWithdrawUnfreezeAmountMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactionCountByBlockNum")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.NumberMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.NumberMessage.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetTransactionCountByBlockNum")) - .build(); - } - } - } - return getGetTransactionCountByBlockNumMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetTransactionByIdMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTransactionById", - requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, - responseType = org.tron.trident.proto.Chain.Transaction.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetTransactionByIdMethod() { - io.grpc.MethodDescriptor getGetTransactionByIdMethod; - if ((getGetTransactionByIdMethod = WalletGrpc.getGetTransactionByIdMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetTransactionByIdMethod = WalletGrpc.getGetTransactionByIdMethod) == null) { - WalletGrpc.getGetTransactionByIdMethod = getGetTransactionByIdMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactionById")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCanWithdrawUnfreezeAmount")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Chain.Transaction.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetTransactionById")) + org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetCanWithdrawUnfreezeAmount")) .build(); } } } - return getGetTransactionByIdMethod; + return getGetCanWithdrawUnfreezeAmountMethod; } - private static volatile io.grpc.MethodDescriptor getGetTransactionInfoByIdMethod; + private static volatile io.grpc.MethodDescriptor getGetCanDelegatedMaxSizeMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTransactionInfoById", - requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, - responseType = org.tron.trident.proto.Response.TransactionInfo.class, + fullMethodName = SERVICE_NAME + '/' + "GetCanDelegatedMaxSize", + requestType = org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage.class, + responseType = org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetTransactionInfoByIdMethod() { - io.grpc.MethodDescriptor getGetTransactionInfoByIdMethod; - if ((getGetTransactionInfoByIdMethod = WalletGrpc.getGetTransactionInfoByIdMethod) == null) { + public static io.grpc.MethodDescriptor getGetCanDelegatedMaxSizeMethod() { + io.grpc.MethodDescriptor getGetCanDelegatedMaxSizeMethod; + if ((getGetCanDelegatedMaxSizeMethod = WalletGrpc.getGetCanDelegatedMaxSizeMethod) == null) { synchronized (WalletGrpc.class) { - if ((getGetTransactionInfoByIdMethod = WalletGrpc.getGetTransactionInfoByIdMethod) == null) { - WalletGrpc.getGetTransactionInfoByIdMethod = getGetTransactionInfoByIdMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetCanDelegatedMaxSizeMethod = WalletGrpc.getGetCanDelegatedMaxSizeMethod) == null) { + WalletGrpc.getGetCanDelegatedMaxSizeMethod = getGetCanDelegatedMaxSizeMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactionInfoById")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCanDelegatedMaxSize")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) + org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionInfo.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetTransactionInfoById")) + org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetCanDelegatedMaxSize")) .build(); } } } - return getGetTransactionInfoByIdMethod; + return getGetCanDelegatedMaxSizeMethod; } - private static volatile io.grpc.MethodDescriptor getGetTransactionInfoByBlockNumMethod; + private static volatile io.grpc.MethodDescriptor getGetDelegatedResourceV2Method; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTransactionInfoByBlockNum", - requestType = org.tron.trident.api.GrpcAPI.NumberMessage.class, - responseType = org.tron.trident.proto.Response.TransactionInfoList.class, + fullMethodName = SERVICE_NAME + '/' + "GetDelegatedResourceV2", + requestType = org.tron.trident.proto.Response.DelegatedResourceMessage.class, + responseType = org.tron.trident.proto.Response.DelegatedResourceList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetTransactionInfoByBlockNumMethod() { - io.grpc.MethodDescriptor getGetTransactionInfoByBlockNumMethod; - if ((getGetTransactionInfoByBlockNumMethod = WalletGrpc.getGetTransactionInfoByBlockNumMethod) == null) { + public static io.grpc.MethodDescriptor getGetDelegatedResourceV2Method() { + io.grpc.MethodDescriptor getGetDelegatedResourceV2Method; + if ((getGetDelegatedResourceV2Method = WalletGrpc.getGetDelegatedResourceV2Method) == null) { synchronized (WalletGrpc.class) { - if ((getGetTransactionInfoByBlockNumMethod = WalletGrpc.getGetTransactionInfoByBlockNumMethod) == null) { - WalletGrpc.getGetTransactionInfoByBlockNumMethod = getGetTransactionInfoByBlockNumMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetDelegatedResourceV2Method = WalletGrpc.getGetDelegatedResourceV2Method) == null) { + WalletGrpc.getGetDelegatedResourceV2Method = getGetDelegatedResourceV2Method = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactionInfoByBlockNum")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDelegatedResourceV2")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.NumberMessage.getDefaultInstance())) + org.tron.trident.proto.Response.DelegatedResourceMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionInfoList.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetTransactionInfoByBlockNum")) + org.tron.trident.proto.Response.DelegatedResourceList.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetDelegatedResourceV2")) .build(); } } } - return getGetTransactionInfoByBlockNumMethod; + return getGetDelegatedResourceV2Method; } private static volatile io.grpc.MethodDescriptor getGetContractMethod; + org.tron.trident.proto.Response.DelegatedResourceAccountIndex> getGetDelegatedResourceAccountIndexV2Method; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetContract", + fullMethodName = SERVICE_NAME + '/' + "GetDelegatedResourceAccountIndexV2", requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, - responseType = org.tron.trident.proto.Common.SmartContract.class, + responseType = org.tron.trident.proto.Response.DelegatedResourceAccountIndex.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetContractMethod() { - io.grpc.MethodDescriptor getGetContractMethod; - if ((getGetContractMethod = WalletGrpc.getGetContractMethod) == null) { + org.tron.trident.proto.Response.DelegatedResourceAccountIndex> getGetDelegatedResourceAccountIndexV2Method() { + io.grpc.MethodDescriptor getGetDelegatedResourceAccountIndexV2Method; + if ((getGetDelegatedResourceAccountIndexV2Method = WalletGrpc.getGetDelegatedResourceAccountIndexV2Method) == null) { synchronized (WalletGrpc.class) { - if ((getGetContractMethod = WalletGrpc.getGetContractMethod) == null) { - WalletGrpc.getGetContractMethod = getGetContractMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetDelegatedResourceAccountIndexV2Method = WalletGrpc.getGetDelegatedResourceAccountIndexV2Method) == null) { + WalletGrpc.getGetDelegatedResourceAccountIndexV2Method = getGetDelegatedResourceAccountIndexV2Method = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetContract")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDelegatedResourceAccountIndexV2")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Common.SmartContract.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetContract")) + org.tron.trident.proto.Response.DelegatedResourceAccountIndex.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetDelegatedResourceAccountIndexV2")) .build(); } } } - return getGetContractMethod; + return getGetDelegatedResourceAccountIndexV2Method; } - private static volatile io.grpc.MethodDescriptor getGetContractInfoMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetContractInfo", - requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, - responseType = org.tron.trident.proto.Response.SmartContractDataWrapper.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetContractInfoMethod() { - io.grpc.MethodDescriptor getGetContractInfoMethod; - if ((getGetContractInfoMethod = WalletGrpc.getGetContractInfoMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetContractInfoMethod = WalletGrpc.getGetContractInfoMethod) == null) { - WalletGrpc.getGetContractInfoMethod = getGetContractInfoMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetContractInfo")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.SmartContractDataWrapper.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetContractInfo")) - .build(); + /** + * Creates a new async stub that supports all call types for the service + */ + public static WalletStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WalletStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WalletStub(channel, callOptions); } - } - } - return getGetContractInfoMethod; + }; + return WalletStub.newStub(factory, channel); } - private static volatile io.grpc.MethodDescriptor getListWitnessesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWitnesses", - requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, - responseType = org.tron.trident.proto.Response.WitnessList.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListWitnessesMethod() { - io.grpc.MethodDescriptor getListWitnessesMethod; - if ((getListWitnessesMethod = WalletGrpc.getListWitnessesMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getListWitnessesMethod = WalletGrpc.getListWitnessesMethod) == null) { - WalletGrpc.getListWitnessesMethod = getListWitnessesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWitnesses")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.WitnessList.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("ListWitnesses")) - .build(); + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static WalletBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WalletBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WalletBlockingStub(channel, callOptions); } - } - } - return getListWitnessesMethod; + }; + return WalletBlockingStub.newStub(factory, channel); } - private static volatile io.grpc.MethodDescriptor getGetBrokerageInfoMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBrokerageInfo", - requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, - responseType = org.tron.trident.api.GrpcAPI.NumberMessage.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetBrokerageInfoMethod() { - io.grpc.MethodDescriptor getGetBrokerageInfoMethod; - if ((getGetBrokerageInfoMethod = WalletGrpc.getGetBrokerageInfoMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetBrokerageInfoMethod = WalletGrpc.getGetBrokerageInfoMethod) == null) { - WalletGrpc.getGetBrokerageInfoMethod = getGetBrokerageInfoMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBrokerageInfo")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.NumberMessage.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetBrokerageInfo")) - .build(); + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static WalletFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WalletFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WalletFutureStub(channel, callOptions); } - } - } - return getGetBrokerageInfoMethod; + }; + return WalletFutureStub.newStub(factory, channel); } - private static volatile io.grpc.MethodDescriptor getGetRewardInfoMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRewardInfo", - requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, - responseType = org.tron.trident.api.GrpcAPI.NumberMessage.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetRewardInfoMethod() { - io.grpc.MethodDescriptor getGetRewardInfoMethod; - if ((getGetRewardInfoMethod = WalletGrpc.getGetRewardInfoMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetRewardInfoMethod = WalletGrpc.getGetRewardInfoMethod) == null) { - WalletGrpc.getGetRewardInfoMethod = getGetRewardInfoMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRewardInfo")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.NumberMessage.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetRewardInfo")) - .build(); - } - } + /** + */ + public static abstract class WalletImplBase implements io.grpc.BindableService { + + /** + *
+     * Transactions:
+     * 
+ */ + public void broadcastTransaction(org.tron.trident.proto.Chain.Transaction request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getBroadcastTransactionMethod(), responseObserver); } - return getGetRewardInfoMethod; - } - private static volatile io.grpc.MethodDescriptor getGetDelegatedResourceMethod; + /** + *
+     * The real APIs:
+     * 
+ */ + public void getNodeInfo(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetNodeInfoMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDelegatedResource", - requestType = org.tron.trident.proto.Response.DelegatedResourceMessage.class, - responseType = org.tron.trident.proto.Response.DelegatedResourceList.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetDelegatedResourceMethod() { - io.grpc.MethodDescriptor getGetDelegatedResourceMethod; - if ((getGetDelegatedResourceMethod = WalletGrpc.getGetDelegatedResourceMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetDelegatedResourceMethod = WalletGrpc.getGetDelegatedResourceMethod) == null) { - WalletGrpc.getGetDelegatedResourceMethod = getGetDelegatedResourceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDelegatedResource")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.DelegatedResourceMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.DelegatedResourceList.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetDelegatedResource")) - .build(); - } - } + /** + */ + public void listNodes(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getListNodesMethod(), responseObserver); } - return getGetDelegatedResourceMethod; - } - private static volatile io.grpc.MethodDescriptor getGetDelegatedResourceAccountIndexMethod; + /** + */ + public void getChainParameters(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetChainParametersMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDelegatedResourceAccountIndex", - requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, - responseType = org.tron.trident.proto.Response.DelegatedResourceAccountIndex.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetDelegatedResourceAccountIndexMethod() { - io.grpc.MethodDescriptor getGetDelegatedResourceAccountIndexMethod; - if ((getGetDelegatedResourceAccountIndexMethod = WalletGrpc.getGetDelegatedResourceAccountIndexMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetDelegatedResourceAccountIndexMethod = WalletGrpc.getGetDelegatedResourceAccountIndexMethod) == null) { - WalletGrpc.getGetDelegatedResourceAccountIndexMethod = getGetDelegatedResourceAccountIndexMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDelegatedResourceAccountIndex")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.DelegatedResourceAccountIndex.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetDelegatedResourceAccountIndex")) - .build(); - } - } + /** + */ + public void totalTransaction(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getTotalTransactionMethod(), responseObserver); } - return getGetDelegatedResourceAccountIndexMethod; - } - private static volatile io.grpc.MethodDescriptor getListProposalsMethod; + /** + */ + public void getNextMaintenanceTime(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetNextMaintenanceTimeMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListProposals", - requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, - responseType = org.tron.trident.proto.Response.ProposalList.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListProposalsMethod() { - io.grpc.MethodDescriptor getListProposalsMethod; - if ((getListProposalsMethod = WalletGrpc.getListProposalsMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getListProposalsMethod = WalletGrpc.getListProposalsMethod) == null) { - WalletGrpc.getListProposalsMethod = getListProposalsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProposals")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.ProposalList.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("ListProposals")) - .build(); - } - } + /** + */ + public void getTransactionSignWeight(org.tron.trident.proto.Chain.Transaction request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetTransactionSignWeightMethod(), responseObserver); } - return getListProposalsMethod; - } - private static volatile io.grpc.MethodDescriptor getGetProposalByIdMethod; + /** + */ + public void getTransactionApprovedList(org.tron.trident.proto.Chain.Transaction request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetTransactionApprovedListMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetProposalById", - requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, - responseType = org.tron.trident.proto.Response.Proposal.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetProposalByIdMethod() { - io.grpc.MethodDescriptor getGetProposalByIdMethod; - if ((getGetProposalByIdMethod = WalletGrpc.getGetProposalByIdMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetProposalByIdMethod = WalletGrpc.getGetProposalByIdMethod) == null) { - WalletGrpc.getGetProposalByIdMethod = getGetProposalByIdMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProposalById")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.Proposal.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetProposalById")) - .build(); - } - } + /** + *
+     * FLAW: Although the parameters' type is changed, it is still bad API design.
+     * 
+ */ + public void getAccount(org.tron.trident.api.GrpcAPI.AccountAddressMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetAccountMethod(), responseObserver); } - return getGetProposalByIdMethod; - } - private static volatile io.grpc.MethodDescriptor getGetPaginatedProposalListMethod; + /** + */ + public void getAccountById(org.tron.trident.api.GrpcAPI.AccountIdMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetAccountByIdMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPaginatedProposalList", - requestType = org.tron.trident.api.GrpcAPI.PaginatedMessage.class, - responseType = org.tron.trident.proto.Response.ProposalList.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetPaginatedProposalListMethod() { - io.grpc.MethodDescriptor getGetPaginatedProposalListMethod; - if ((getGetPaginatedProposalListMethod = WalletGrpc.getGetPaginatedProposalListMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetPaginatedProposalListMethod = WalletGrpc.getGetPaginatedProposalListMethod) == null) { - WalletGrpc.getGetPaginatedProposalListMethod = getGetPaginatedProposalListMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPaginatedProposalList")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.PaginatedMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.ProposalList.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetPaginatedProposalList")) - .build(); - } - } + /** + */ + public void getAccountNet(org.tron.trident.api.GrpcAPI.AccountAddressMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetAccountNetMethod(), responseObserver); } - return getGetPaginatedProposalListMethod; - } - private static volatile io.grpc.MethodDescriptor getListExchangesMethod; + /** + */ + public void getAccountResource(org.tron.trident.api.GrpcAPI.AccountAddressMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetAccountResourceMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListExchanges", - requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, - responseType = org.tron.trident.proto.Response.ExchangeList.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListExchangesMethod() { - io.grpc.MethodDescriptor getListExchangesMethod; - if ((getListExchangesMethod = WalletGrpc.getListExchangesMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getListExchangesMethod = WalletGrpc.getListExchangesMethod) == null) { - WalletGrpc.getListExchangesMethod = getListExchangesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExchanges")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.ExchangeList.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("ListExchanges")) - .build(); - } - } + /** + */ + public void getAssetIssueByAccount(org.tron.trident.api.GrpcAPI.AccountAddressMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetAssetIssueByAccountMethod(), responseObserver); } - return getListExchangesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetExchangeByIdMethod; - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetExchangeById", - requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, - responseType = org.tron.trident.proto.Response.Exchange.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetExchangeByIdMethod() { - io.grpc.MethodDescriptor getGetExchangeByIdMethod; - if ((getGetExchangeByIdMethod = WalletGrpc.getGetExchangeByIdMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetExchangeByIdMethod = WalletGrpc.getGetExchangeByIdMethod) == null) { - WalletGrpc.getGetExchangeByIdMethod = getGetExchangeByIdMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExchangeById")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.Exchange.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetExchangeById")) - .build(); - } - } + /** + */ + public void getAssetIssueByName(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetAssetIssueByNameMethod(), responseObserver); } - return getGetExchangeByIdMethod; - } - private static volatile io.grpc.MethodDescriptor getGetPaginatedExchangeListMethod; + /** + */ + public void getAssetIssueListByName(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetAssetIssueListByNameMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPaginatedExchangeList", - requestType = org.tron.trident.api.GrpcAPI.PaginatedMessage.class, - responseType = org.tron.trident.proto.Response.ExchangeList.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetPaginatedExchangeListMethod() { - io.grpc.MethodDescriptor getGetPaginatedExchangeListMethod; - if ((getGetPaginatedExchangeListMethod = WalletGrpc.getGetPaginatedExchangeListMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetPaginatedExchangeListMethod = WalletGrpc.getGetPaginatedExchangeListMethod) == null) { - WalletGrpc.getGetPaginatedExchangeListMethod = getGetPaginatedExchangeListMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPaginatedExchangeList")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.PaginatedMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.ExchangeList.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetPaginatedExchangeList")) - .build(); - } - } + /** + */ + public void getAssetIssueById(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetAssetIssueByIdMethod(), responseObserver); } - return getGetPaginatedExchangeListMethod; - } - private static volatile io.grpc.MethodDescriptor getScanShieldedTRC20NotesByIvkMethod; + /** + */ + public void getAssetIssueList(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetAssetIssueListMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ScanShieldedTRC20NotesByIvk", - requestType = org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters.class, - responseType = org.tron.trident.proto.Response.DecryptNotesTRC20.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getScanShieldedTRC20NotesByIvkMethod() { - io.grpc.MethodDescriptor getScanShieldedTRC20NotesByIvkMethod; - if ((getScanShieldedTRC20NotesByIvkMethod = WalletGrpc.getScanShieldedTRC20NotesByIvkMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getScanShieldedTRC20NotesByIvkMethod = WalletGrpc.getScanShieldedTRC20NotesByIvkMethod) == null) { - WalletGrpc.getScanShieldedTRC20NotesByIvkMethod = getScanShieldedTRC20NotesByIvkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ScanShieldedTRC20NotesByIvk")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.DecryptNotesTRC20.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("ScanShieldedTRC20NotesByIvk")) - .build(); - } - } + /** + */ + public void getPaginatedAssetIssueList(org.tron.trident.api.GrpcAPI.PaginatedMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetPaginatedAssetIssueListMethod(), responseObserver); } - return getScanShieldedTRC20NotesByIvkMethod; - } - private static volatile io.grpc.MethodDescriptor getScanShieldedTRC20NotesByOvkMethod; + /** + */ + public void getNowBlock(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetNowBlockMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ScanShieldedTRC20NotesByOvk", - requestType = org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters.class, - responseType = org.tron.trident.proto.Response.DecryptNotesTRC20.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getScanShieldedTRC20NotesByOvkMethod() { - io.grpc.MethodDescriptor getScanShieldedTRC20NotesByOvkMethod; - if ((getScanShieldedTRC20NotesByOvkMethod = WalletGrpc.getScanShieldedTRC20NotesByOvkMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getScanShieldedTRC20NotesByOvkMethod = WalletGrpc.getScanShieldedTRC20NotesByOvkMethod) == null) { - WalletGrpc.getScanShieldedTRC20NotesByOvkMethod = getScanShieldedTRC20NotesByOvkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ScanShieldedTRC20NotesByOvk")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.DecryptNotesTRC20.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("ScanShieldedTRC20NotesByOvk")) - .build(); - } - } + /** + */ + public void getNowBlock2(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetNowBlock2Method(), responseObserver); } - return getScanShieldedTRC20NotesByOvkMethod; - } - private static volatile io.grpc.MethodDescriptor getIsShieldedTRC20ContractNoteSpentMethod; + /** + */ + public void getBlockByNum(org.tron.trident.api.GrpcAPI.NumberMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetBlockByNumMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "IsShieldedTRC20ContractNoteSpent", - requestType = org.tron.trident.api.GrpcAPI.NfTRC20Parameters.class, - responseType = org.tron.trident.proto.Response.NullifierResult.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getIsShieldedTRC20ContractNoteSpentMethod() { - io.grpc.MethodDescriptor getIsShieldedTRC20ContractNoteSpentMethod; - if ((getIsShieldedTRC20ContractNoteSpentMethod = WalletGrpc.getIsShieldedTRC20ContractNoteSpentMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getIsShieldedTRC20ContractNoteSpentMethod = WalletGrpc.getIsShieldedTRC20ContractNoteSpentMethod) == null) { - WalletGrpc.getIsShieldedTRC20ContractNoteSpentMethod = getIsShieldedTRC20ContractNoteSpentMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "IsShieldedTRC20ContractNoteSpent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.NfTRC20Parameters.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.NullifierResult.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("IsShieldedTRC20ContractNoteSpent")) - .build(); - } - } + /** + */ + public void getBlockByNum2(org.tron.trident.api.GrpcAPI.NumberMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetBlockByNum2Method(), responseObserver); } - return getIsShieldedTRC20ContractNoteSpentMethod; - } - private static volatile io.grpc.MethodDescriptor getGetMarketOrderByAccountMethod; + /** + *
+     * NOTE: `GetBlockById2` is missing. The closest is `GetBlockByLatestNum2`.
+     * 
+ */ + public void getBlockById(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetBlockByIdMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMarketOrderByAccount", - requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, - responseType = org.tron.trident.proto.Response.MarketOrderList.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetMarketOrderByAccountMethod() { - io.grpc.MethodDescriptor getGetMarketOrderByAccountMethod; - if ((getGetMarketOrderByAccountMethod = WalletGrpc.getGetMarketOrderByAccountMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetMarketOrderByAccountMethod = WalletGrpc.getGetMarketOrderByAccountMethod) == null) { - WalletGrpc.getGetMarketOrderByAccountMethod = getGetMarketOrderByAccountMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMarketOrderByAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.MarketOrderList.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetMarketOrderByAccount")) - .build(); - } - } + /** + */ + public void getBlockByLimitNext(org.tron.trident.api.GrpcAPI.BlockLimit request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetBlockByLimitNextMethod(), responseObserver); } - return getGetMarketOrderByAccountMethod; - } - private static volatile io.grpc.MethodDescriptor getGetMarketOrderByIdMethod; + /** + */ + public void getBlockByLimitNext2(org.tron.trident.api.GrpcAPI.BlockLimit request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetBlockByLimitNext2Method(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMarketOrderById", - requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, - responseType = org.tron.trident.proto.Response.MarketOrder.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetMarketOrderByIdMethod() { - io.grpc.MethodDescriptor getGetMarketOrderByIdMethod; - if ((getGetMarketOrderByIdMethod = WalletGrpc.getGetMarketOrderByIdMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetMarketOrderByIdMethod = WalletGrpc.getGetMarketOrderByIdMethod) == null) { - WalletGrpc.getGetMarketOrderByIdMethod = getGetMarketOrderByIdMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMarketOrderById")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.MarketOrder.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetMarketOrderById")) - .build(); - } - } + /** + */ + public void getBlockByLatestNum(org.tron.trident.api.GrpcAPI.NumberMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetBlockByLatestNumMethod(), responseObserver); } - return getGetMarketOrderByIdMethod; - } - private static volatile io.grpc.MethodDescriptor getGetMarketPriceByPairMethod; + /** + */ + public void getBlockByLatestNum2(org.tron.trident.api.GrpcAPI.NumberMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetBlockByLatestNum2Method(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMarketPriceByPair", - requestType = org.tron.trident.proto.Response.MarketOrderPair.class, - responseType = org.tron.trident.proto.Response.MarketPriceList.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetMarketPriceByPairMethod() { - io.grpc.MethodDescriptor getGetMarketPriceByPairMethod; - if ((getGetMarketPriceByPairMethod = WalletGrpc.getGetMarketPriceByPairMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetMarketPriceByPairMethod = WalletGrpc.getGetMarketPriceByPairMethod) == null) { - WalletGrpc.getGetMarketPriceByPairMethod = getGetMarketPriceByPairMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMarketPriceByPair")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.MarketOrderPair.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.MarketPriceList.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetMarketPriceByPair")) - .build(); - } - } + /** + */ + public void getTransactionCountByBlockNum(org.tron.trident.api.GrpcAPI.NumberMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetTransactionCountByBlockNumMethod(), responseObserver); } - return getGetMarketPriceByPairMethod; - } - private static volatile io.grpc.MethodDescriptor getGetMarketOrderListByPairMethod; + /** + */ + public void getTransactionById(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetTransactionByIdMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMarketOrderListByPair", - requestType = org.tron.trident.proto.Response.MarketOrderPair.class, - responseType = org.tron.trident.proto.Response.MarketOrderList.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetMarketOrderListByPairMethod() { - io.grpc.MethodDescriptor getGetMarketOrderListByPairMethod; - if ((getGetMarketOrderListByPairMethod = WalletGrpc.getGetMarketOrderListByPairMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetMarketOrderListByPairMethod = WalletGrpc.getGetMarketOrderListByPairMethod) == null) { - WalletGrpc.getGetMarketOrderListByPairMethod = getGetMarketOrderListByPairMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMarketOrderListByPair")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.MarketOrderPair.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.MarketOrderList.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetMarketOrderListByPair")) - .build(); - } - } + /** + */ + public void getTransactionInfoById(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetTransactionInfoByIdMethod(), responseObserver); } - return getGetMarketOrderListByPairMethod; - } - private static volatile io.grpc.MethodDescriptor getGetMarketPairListMethod; + /** + */ + public void getTransactionInfoByBlockNum(org.tron.trident.api.GrpcAPI.NumberMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetTransactionInfoByBlockNumMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMarketPairList", - requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, - responseType = org.tron.trident.proto.Response.MarketOrderPairList.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetMarketPairListMethod() { - io.grpc.MethodDescriptor getGetMarketPairListMethod; - if ((getGetMarketPairListMethod = WalletGrpc.getGetMarketPairListMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetMarketPairListMethod = WalletGrpc.getGetMarketPairListMethod) == null) { - WalletGrpc.getGetMarketPairListMethod = getGetMarketPairListMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMarketPairList")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.MarketOrderPairList.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetMarketPairList")) - .build(); - } - } + /** + */ + public void getContract(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetContractMethod(), responseObserver); } - return getGetMarketPairListMethod; - } - private static volatile io.grpc.MethodDescriptor getGetTransactionSignMethod; + /** + *
+     * FLAW: Abusing of `info`. Should be a `GetContractCode`.
+     * 
+ */ + public void getContractInfo(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetContractInfoMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTransactionSign", - requestType = org.tron.trident.proto.Response.TransactionSign.class, - responseType = org.tron.trident.proto.Chain.Transaction.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetTransactionSignMethod() { - io.grpc.MethodDescriptor getGetTransactionSignMethod; - if ((getGetTransactionSignMethod = WalletGrpc.getGetTransactionSignMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetTransactionSignMethod = WalletGrpc.getGetTransactionSignMethod) == null) { - WalletGrpc.getGetTransactionSignMethod = getGetTransactionSignMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactionSign")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionSign.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Chain.Transaction.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetTransactionSign")) - .build(); - } - } + /** + */ + public void listWitnesses(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getListWitnessesMethod(), responseObserver); } - return getGetTransactionSignMethod; - } - private static volatile io.grpc.MethodDescriptor getGetTransactionSign2Method; + /** + */ + public void getBrokerageInfo(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetBrokerageInfoMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTransactionSign2", - requestType = org.tron.trident.proto.Response.TransactionSign.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetTransactionSign2Method() { - io.grpc.MethodDescriptor getGetTransactionSign2Method; - if ((getGetTransactionSign2Method = WalletGrpc.getGetTransactionSign2Method) == null) { - synchronized (WalletGrpc.class) { - if ((getGetTransactionSign2Method = WalletGrpc.getGetTransactionSign2Method) == null) { - WalletGrpc.getGetTransactionSign2Method = getGetTransactionSign2Method = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactionSign2")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionSign.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetTransactionSign2")) - .build(); - } - } + /** + */ + public void getRewardInfo(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetRewardInfoMethod(), responseObserver); } - return getGetTransactionSign2Method; - } - private static volatile io.grpc.MethodDescriptor getEasyTransferAssetMethod; + /** + */ + public void getDelegatedResource(org.tron.trident.proto.Response.DelegatedResourceMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetDelegatedResourceMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "EasyTransferAsset", - requestType = org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage.class, - responseType = org.tron.trident.proto.Response.EasyTransferResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getEasyTransferAssetMethod() { - io.grpc.MethodDescriptor getEasyTransferAssetMethod; - if ((getEasyTransferAssetMethod = WalletGrpc.getEasyTransferAssetMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getEasyTransferAssetMethod = WalletGrpc.getEasyTransferAssetMethod) == null) { - WalletGrpc.getEasyTransferAssetMethod = getEasyTransferAssetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EasyTransferAsset")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.EasyTransferResponse.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("EasyTransferAsset")) - .build(); - } - } + /** + */ + public void getDelegatedResourceAccountIndex(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetDelegatedResourceAccountIndexMethod(), responseObserver); } - return getEasyTransferAssetMethod; - } - - private static volatile io.grpc.MethodDescriptor getEasyTransferAssetByPrivateMethod; - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "EasyTransferAssetByPrivate", - requestType = org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage.class, - responseType = org.tron.trident.proto.Response.EasyTransferResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getEasyTransferAssetByPrivateMethod() { - io.grpc.MethodDescriptor getEasyTransferAssetByPrivateMethod; - if ((getEasyTransferAssetByPrivateMethod = WalletGrpc.getEasyTransferAssetByPrivateMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getEasyTransferAssetByPrivateMethod = WalletGrpc.getEasyTransferAssetByPrivateMethod) == null) { - WalletGrpc.getEasyTransferAssetByPrivateMethod = getEasyTransferAssetByPrivateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EasyTransferAssetByPrivate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.EasyTransferResponse.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("EasyTransferAssetByPrivate")) - .build(); - } - } + /** + */ + public void listProposals(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getListProposalsMethod(), responseObserver); } - return getEasyTransferAssetByPrivateMethod; - } - private static volatile io.grpc.MethodDescriptor getEasyTransferMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "EasyTransfer", - requestType = org.tron.trident.api.GrpcAPI.EasyTransferMessage.class, - responseType = org.tron.trident.proto.Response.EasyTransferResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getEasyTransferMethod() { - io.grpc.MethodDescriptor getEasyTransferMethod; - if ((getEasyTransferMethod = WalletGrpc.getEasyTransferMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getEasyTransferMethod = WalletGrpc.getEasyTransferMethod) == null) { - WalletGrpc.getEasyTransferMethod = getEasyTransferMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EasyTransfer")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.EasyTransferMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.EasyTransferResponse.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("EasyTransfer")) - .build(); - } - } + /** + */ + public void getProposalById(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetProposalByIdMethod(), responseObserver); } - return getEasyTransferMethod; - } - private static volatile io.grpc.MethodDescriptor getEasyTransferByPrivateMethod; + /** + */ + public void getPaginatedProposalList(org.tron.trident.api.GrpcAPI.PaginatedMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetPaginatedProposalListMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "EasyTransferByPrivate", - requestType = org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage.class, - responseType = org.tron.trident.proto.Response.EasyTransferResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getEasyTransferByPrivateMethod() { - io.grpc.MethodDescriptor getEasyTransferByPrivateMethod; - if ((getEasyTransferByPrivateMethod = WalletGrpc.getEasyTransferByPrivateMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getEasyTransferByPrivateMethod = WalletGrpc.getEasyTransferByPrivateMethod) == null) { - WalletGrpc.getEasyTransferByPrivateMethod = getEasyTransferByPrivateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EasyTransferByPrivate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.EasyTransferResponse.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("EasyTransferByPrivate")) - .build(); - } - } + /** + */ + public void listExchanges(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getListExchangesMethod(), responseObserver); } - return getEasyTransferByPrivateMethod; - } - private static volatile io.grpc.MethodDescriptor getCreateAddressMethod; + /** + */ + public void getExchangeById(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetExchangeByIdMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateAddress", - requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, - responseType = org.tron.trident.api.GrpcAPI.BytesMessage.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateAddressMethod() { - io.grpc.MethodDescriptor getCreateAddressMethod; - if ((getCreateAddressMethod = WalletGrpc.getCreateAddressMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getCreateAddressMethod = WalletGrpc.getCreateAddressMethod) == null) { - WalletGrpc.getCreateAddressMethod = getCreateAddressMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAddress")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("CreateAddress")) - .build(); - } - } + /** + */ + public void getPaginatedExchangeList(org.tron.trident.api.GrpcAPI.PaginatedMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetPaginatedExchangeListMethod(), responseObserver); } - return getCreateAddressMethod; - } - private static volatile io.grpc.MethodDescriptor getGenerateAddressMethod; + /** + *
+     * Shielded helpers:
+     * 
+ */ + public void scanShieldedTRC20NotesByIvk(org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getScanShieldedTRC20NotesByIvkMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateAddress", - requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, - responseType = org.tron.trident.proto.Response.AddressPrKeyPairMessage.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGenerateAddressMethod() { - io.grpc.MethodDescriptor getGenerateAddressMethod; - if ((getGenerateAddressMethod = WalletGrpc.getGenerateAddressMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGenerateAddressMethod = WalletGrpc.getGenerateAddressMethod) == null) { - WalletGrpc.getGenerateAddressMethod = getGenerateAddressMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateAddress")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.AddressPrKeyPairMessage.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GenerateAddress")) - .build(); - } - } + /** + */ + public void scanShieldedTRC20NotesByOvk(org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getScanShieldedTRC20NotesByOvkMethod(), responseObserver); } - return getGenerateAddressMethod; - } - private static volatile io.grpc.MethodDescriptor getAddSignMethod; + /** + */ + public void isShieldedTRC20ContractNoteSpent(org.tron.trident.api.GrpcAPI.NfTRC20Parameters request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getIsShieldedTRC20ContractNoteSpentMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AddSign", - requestType = org.tron.trident.proto.Response.TransactionSign.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getAddSignMethod() { - io.grpc.MethodDescriptor getAddSignMethod; - if ((getAddSignMethod = WalletGrpc.getAddSignMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getAddSignMethod = WalletGrpc.getAddSignMethod) == null) { - WalletGrpc.getAddSignMethod = getAddSignMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AddSign")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionSign.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("AddSign")) - .build(); - } - } + /** + *
+     * Market API:
+     * 
+ */ + public void getMarketOrderByAccount(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetMarketOrderByAccountMethod(), responseObserver); } - return getAddSignMethod; - } - private static volatile io.grpc.MethodDescriptor getGetSpendingKeyMethod; + /** + */ + public void getMarketOrderById(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetMarketOrderByIdMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSpendingKey", - requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, - responseType = org.tron.trident.api.GrpcAPI.BytesMessage.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSpendingKeyMethod() { - io.grpc.MethodDescriptor getGetSpendingKeyMethod; - if ((getGetSpendingKeyMethod = WalletGrpc.getGetSpendingKeyMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetSpendingKeyMethod = WalletGrpc.getGetSpendingKeyMethod) == null) { - WalletGrpc.getGetSpendingKeyMethod = getGetSpendingKeyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpendingKey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetSpendingKey")) - .build(); - } - } + /** + */ + public void getMarketPriceByPair(org.tron.trident.proto.Response.MarketOrderPair request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetMarketPriceByPairMethod(), responseObserver); } - return getGetSpendingKeyMethod; - } - private static volatile io.grpc.MethodDescriptor getGetExpandedSpendingKeyMethod; + /** + */ + public void getMarketOrderListByPair(org.tron.trident.proto.Response.MarketOrderPair request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetMarketOrderListByPairMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetExpandedSpendingKey", - requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, - responseType = org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetExpandedSpendingKeyMethod() { - io.grpc.MethodDescriptor getGetExpandedSpendingKeyMethod; - if ((getGetExpandedSpendingKeyMethod = WalletGrpc.getGetExpandedSpendingKeyMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetExpandedSpendingKeyMethod = WalletGrpc.getGetExpandedSpendingKeyMethod) == null) { - WalletGrpc.getGetExpandedSpendingKeyMethod = getGetExpandedSpendingKeyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExpandedSpendingKey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetExpandedSpendingKey")) - .build(); - } - } + /** + */ + public void getMarketPairList(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetMarketPairListMethod(), responseObserver); } - return getGetExpandedSpendingKeyMethod; - } - private static volatile io.grpc.MethodDescriptor getGetAkFromAskMethod; + /** + *
+     * FLAW: Unsafe junk.
+     * 
+ */ + public void getTransactionSign(org.tron.trident.proto.Response.TransactionSign request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetTransactionSignMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAkFromAsk", - requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, - responseType = org.tron.trident.api.GrpcAPI.BytesMessage.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAkFromAskMethod() { - io.grpc.MethodDescriptor getGetAkFromAskMethod; - if ((getGetAkFromAskMethod = WalletGrpc.getGetAkFromAskMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetAkFromAskMethod = WalletGrpc.getGetAkFromAskMethod) == null) { - WalletGrpc.getGetAkFromAskMethod = getGetAkFromAskMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAkFromAsk")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetAkFromAsk")) - .build(); - } - } + /** + */ + public void getTransactionSign2(org.tron.trident.proto.Response.TransactionSign request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetTransactionSign2Method(), responseObserver); } - return getGetAkFromAskMethod; - } - private static volatile io.grpc.MethodDescriptor getGetNkFromNskMethod; + /** + */ + public void easyTransferAsset(org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getEasyTransferAssetMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNkFromNsk", - requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, - responseType = org.tron.trident.api.GrpcAPI.BytesMessage.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNkFromNskMethod() { - io.grpc.MethodDescriptor getGetNkFromNskMethod; - if ((getGetNkFromNskMethod = WalletGrpc.getGetNkFromNskMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetNkFromNskMethod = WalletGrpc.getGetNkFromNskMethod) == null) { - WalletGrpc.getGetNkFromNskMethod = getGetNkFromNskMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNkFromNsk")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetNkFromNsk")) - .build(); - } - } + /** + */ + public void easyTransferAssetByPrivate(org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getEasyTransferAssetByPrivateMethod(), responseObserver); } - return getGetNkFromNskMethod; - } - private static volatile io.grpc.MethodDescriptor getGetIncomingViewingKeyMethod; + /** + */ + public void easyTransfer(org.tron.trident.api.GrpcAPI.EasyTransferMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getEasyTransferMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIncomingViewingKey", - requestType = org.tron.trident.api.GrpcAPI.ViewingKeyMessage.class, - responseType = org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetIncomingViewingKeyMethod() { - io.grpc.MethodDescriptor getGetIncomingViewingKeyMethod; - if ((getGetIncomingViewingKeyMethod = WalletGrpc.getGetIncomingViewingKeyMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetIncomingViewingKeyMethod = WalletGrpc.getGetIncomingViewingKeyMethod) == null) { - WalletGrpc.getGetIncomingViewingKeyMethod = getGetIncomingViewingKeyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIncomingViewingKey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.ViewingKeyMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetIncomingViewingKey")) - .build(); - } - } + /** + */ + public void easyTransferByPrivate(org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getEasyTransferByPrivateMethod(), responseObserver); } - return getGetIncomingViewingKeyMethod; - } - private static volatile io.grpc.MethodDescriptor getGetDiversifierMethod; + /** + */ + public void createAddress(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateAddressMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDiversifier", - requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, - responseType = org.tron.trident.api.GrpcAPI.DiversifierMessage.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetDiversifierMethod() { - io.grpc.MethodDescriptor getGetDiversifierMethod; - if ((getGetDiversifierMethod = WalletGrpc.getGetDiversifierMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetDiversifierMethod = WalletGrpc.getGetDiversifierMethod) == null) { - WalletGrpc.getGetDiversifierMethod = getGetDiversifierMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDiversifier")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.DiversifierMessage.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetDiversifier")) - .build(); - } - } + /** + */ + public void generateAddress(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGenerateAddressMethod(), responseObserver); } - return getGetDiversifierMethod; - } - private static volatile io.grpc.MethodDescriptor getGetZenPaymentAddressMethod; + /** + */ + public void addSign(org.tron.trident.proto.Response.TransactionSign request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getAddSignMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetZenPaymentAddress", - requestType = org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage.class, - responseType = org.tron.trident.api.GrpcAPI.PaymentAddressMessage.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetZenPaymentAddressMethod() { - io.grpc.MethodDescriptor getGetZenPaymentAddressMethod; - if ((getGetZenPaymentAddressMethod = WalletGrpc.getGetZenPaymentAddressMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetZenPaymentAddressMethod = WalletGrpc.getGetZenPaymentAddressMethod) == null) { - WalletGrpc.getGetZenPaymentAddressMethod = getGetZenPaymentAddressMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetZenPaymentAddress")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.PaymentAddressMessage.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetZenPaymentAddress")) - .build(); - } - } + /** + *
+     * FLAW: Unsafe shielded junk(should be implemented offline).
+     * 
+ */ + public void getSpendingKey(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetSpendingKeyMethod(), responseObserver); } - return getGetZenPaymentAddressMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetNewShieldedAddressMethod; - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNewShieldedAddress", - requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, - responseType = org.tron.trident.api.GrpcAPI.ShieldedAddressInfo.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNewShieldedAddressMethod() { - io.grpc.MethodDescriptor getGetNewShieldedAddressMethod; - if ((getGetNewShieldedAddressMethod = WalletGrpc.getGetNewShieldedAddressMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetNewShieldedAddressMethod = WalletGrpc.getGetNewShieldedAddressMethod) == null) { - WalletGrpc.getGetNewShieldedAddressMethod = getGetNewShieldedAddressMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNewShieldedAddress")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.ShieldedAddressInfo.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetNewShieldedAddress")) - .build(); - } - } + /** + */ + public void getExpandedSpendingKey(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetExpandedSpendingKeyMethod(), responseObserver); } - return getGetNewShieldedAddressMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetRcmMethod; - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRcm", - requestType = org.tron.trident.api.GrpcAPI.EmptyMessage.class, - responseType = org.tron.trident.api.GrpcAPI.BytesMessage.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetRcmMethod() { - io.grpc.MethodDescriptor getGetRcmMethod; - if ((getGetRcmMethod = WalletGrpc.getGetRcmMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetRcmMethod = WalletGrpc.getGetRcmMethod) == null) { - WalletGrpc.getGetRcmMethod = getGetRcmMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRcm")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetRcm")) - .build(); - } - } + /** + */ + public void getAkFromAsk(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetAkFromAskMethod(), responseObserver); } - return getGetRcmMethod; - } - private static volatile io.grpc.MethodDescriptor getCreateShieldedContractParametersMethod; + /** + */ + public void getNkFromNsk(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetNkFromNskMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateShieldedContractParameters", - requestType = org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters.class, - responseType = org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateShieldedContractParametersMethod() { - io.grpc.MethodDescriptor getCreateShieldedContractParametersMethod; - if ((getCreateShieldedContractParametersMethod = WalletGrpc.getCreateShieldedContractParametersMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getCreateShieldedContractParametersMethod = WalletGrpc.getCreateShieldedContractParametersMethod) == null) { - WalletGrpc.getCreateShieldedContractParametersMethod = getCreateShieldedContractParametersMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateShieldedContractParameters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("CreateShieldedContractParameters")) - .build(); - } - } + /** + */ + public void getIncomingViewingKey(org.tron.trident.api.GrpcAPI.ViewingKeyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetIncomingViewingKeyMethod(), responseObserver); } - return getCreateShieldedContractParametersMethod; - } - private static volatile io.grpc.MethodDescriptor getCreateShieldedContractParametersWithoutAskMethod; + /** + */ + public void getDiversifier(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetDiversifierMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateShieldedContractParametersWithoutAsk", - requestType = org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk.class, - responseType = org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateShieldedContractParametersWithoutAskMethod() { - io.grpc.MethodDescriptor getCreateShieldedContractParametersWithoutAskMethod; - if ((getCreateShieldedContractParametersWithoutAskMethod = WalletGrpc.getCreateShieldedContractParametersWithoutAskMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getCreateShieldedContractParametersWithoutAskMethod = WalletGrpc.getCreateShieldedContractParametersWithoutAskMethod) == null) { - WalletGrpc.getCreateShieldedContractParametersWithoutAskMethod = getCreateShieldedContractParametersWithoutAskMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateShieldedContractParametersWithoutAsk")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("CreateShieldedContractParametersWithoutAsk")) - .build(); - } - } + /** + */ + public void getZenPaymentAddress(org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetZenPaymentAddressMethod(), responseObserver); } - return getCreateShieldedContractParametersWithoutAskMethod; - } - private static volatile io.grpc.MethodDescriptor getGetTriggerInputForShieldedTRC20ContractMethod; + /** + */ + public void getNewShieldedAddress(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetNewShieldedAddressMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTriggerInputForShieldedTRC20Contract", - requestType = org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters.class, - responseType = org.tron.trident.api.GrpcAPI.BytesMessage.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetTriggerInputForShieldedTRC20ContractMethod() { - io.grpc.MethodDescriptor getGetTriggerInputForShieldedTRC20ContractMethod; - if ((getGetTriggerInputForShieldedTRC20ContractMethod = WalletGrpc.getGetTriggerInputForShieldedTRC20ContractMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetTriggerInputForShieldedTRC20ContractMethod = WalletGrpc.getGetTriggerInputForShieldedTRC20ContractMethod) == null) { - WalletGrpc.getGetTriggerInputForShieldedTRC20ContractMethod = getGetTriggerInputForShieldedTRC20ContractMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTriggerInputForShieldedTRC20Contract")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetTriggerInputForShieldedTRC20Contract")) - .build(); - } - } + /** + */ + public void getRcm(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetRcmMethod(), responseObserver); } - return getGetTriggerInputForShieldedTRC20ContractMethod; - } - private static volatile io.grpc.MethodDescriptor getFreezeBalanceV2Method; + /** + */ + public void createShieldedContractParameters(org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateShieldedContractParametersMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FreezeBalanceV2", - requestType = org.tron.trident.proto.Contract.FreezeBalanceV2Contract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getFreezeBalanceV2Method() { - io.grpc.MethodDescriptor getFreezeBalanceV2Method; - if ((getFreezeBalanceV2Method = WalletGrpc.getFreezeBalanceV2Method) == null) { - synchronized (WalletGrpc.class) { - if ((getFreezeBalanceV2Method = WalletGrpc.getFreezeBalanceV2Method) == null) { - WalletGrpc.getFreezeBalanceV2Method = getFreezeBalanceV2Method = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FreezeBalanceV2")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.FreezeBalanceV2Contract.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("FreezeBalanceV2")) - .build(); - } - } + /** + */ + public void createShieldedContractParametersWithoutAsk(org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateShieldedContractParametersWithoutAskMethod(), responseObserver); } - return getFreezeBalanceV2Method; - } - private static volatile io.grpc.MethodDescriptor getUnfreezeBalanceV2Method; + /** + */ + public void getTriggerInputForShieldedTRC20Contract(org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetTriggerInputForShieldedTRC20ContractMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UnfreezeBalanceV2", - requestType = org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUnfreezeBalanceV2Method() { - io.grpc.MethodDescriptor getUnfreezeBalanceV2Method; - if ((getUnfreezeBalanceV2Method = WalletGrpc.getUnfreezeBalanceV2Method) == null) { - synchronized (WalletGrpc.class) { - if ((getUnfreezeBalanceV2Method = WalletGrpc.getUnfreezeBalanceV2Method) == null) { - WalletGrpc.getUnfreezeBalanceV2Method = getUnfreezeBalanceV2Method = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UnfreezeBalanceV2")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("UnfreezeBalanceV2")) - .build(); - } - } + /** + *
+     *  rpc FreezeBalanceV2 (FreezeBalanceV2Contract) returns (TransactionExtention) {}
+     *  rpc UnfreezeBalanceV2 (UnfreezeBalanceV2Contract) returns (TransactionExtention) {}
+     *  rpc DelegateResource (DelegateResourceContract) returns (TransactionExtention) {}
+     *  rpc UnDelegateResource (UnDelegateResourceContract) returns (TransactionExtention) {}
+     *  rpc WithdrawExpireUnfreeze (WithdrawExpireUnfreezeContract) returns (TransactionExtention) {}
+     * 
+ */ + public void getAvailableUnfreezeCount(org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetAvailableUnfreezeCountMethod(), responseObserver); } - return getUnfreezeBalanceV2Method; - } - private static volatile io.grpc.MethodDescriptor getDelegateResourceMethod; + /** + */ + public void getCanWithdrawUnfreezeAmount(org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetCanWithdrawUnfreezeAmountMethod(), responseObserver); + } - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DelegateResource", - requestType = org.tron.trident.proto.Contract.DelegateResourceContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDelegateResourceMethod() { - io.grpc.MethodDescriptor getDelegateResourceMethod; - if ((getDelegateResourceMethod = WalletGrpc.getDelegateResourceMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getDelegateResourceMethod = WalletGrpc.getDelegateResourceMethod) == null) { - WalletGrpc.getDelegateResourceMethod = getDelegateResourceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DelegateResource")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.DelegateResourceContract.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("DelegateResource")) - .build(); - } - } - } - return getDelegateResourceMethod; - } - - private static volatile io.grpc.MethodDescriptor getUnDelegateResourceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UnDelegateResource", - requestType = org.tron.trident.proto.Contract.UnDelegateResourceContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUnDelegateResourceMethod() { - io.grpc.MethodDescriptor getUnDelegateResourceMethod; - if ((getUnDelegateResourceMethod = WalletGrpc.getUnDelegateResourceMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getUnDelegateResourceMethod = WalletGrpc.getUnDelegateResourceMethod) == null) { - WalletGrpc.getUnDelegateResourceMethod = getUnDelegateResourceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UnDelegateResource")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.UnDelegateResourceContract.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("UnDelegateResource")) - .build(); - } - } - } - return getUnDelegateResourceMethod; - } - - private static volatile io.grpc.MethodDescriptor getWithdrawExpireUnfreezeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "WithdrawExpireUnfreeze", - requestType = org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract.class, - responseType = org.tron.trident.proto.Response.TransactionExtention.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getWithdrawExpireUnfreezeMethod() { - io.grpc.MethodDescriptor getWithdrawExpireUnfreezeMethod; - if ((getWithdrawExpireUnfreezeMethod = WalletGrpc.getWithdrawExpireUnfreezeMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getWithdrawExpireUnfreezeMethod = WalletGrpc.getWithdrawExpireUnfreezeMethod) == null) { - WalletGrpc.getWithdrawExpireUnfreezeMethod = getWithdrawExpireUnfreezeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "WithdrawExpireUnfreeze")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("WithdrawExpireUnfreeze")) - .build(); - } - } - } - return getWithdrawExpireUnfreezeMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetAvailableUnfreezeCountMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAvailableUnfreezeCount", - requestType = org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage.class, - responseType = org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAvailableUnfreezeCountMethod() { - io.grpc.MethodDescriptor getGetAvailableUnfreezeCountMethod; - if ((getGetAvailableUnfreezeCountMethod = WalletGrpc.getGetAvailableUnfreezeCountMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetAvailableUnfreezeCountMethod = WalletGrpc.getGetAvailableUnfreezeCountMethod) == null) { - WalletGrpc.getGetAvailableUnfreezeCountMethod = getGetAvailableUnfreezeCountMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAvailableUnfreezeCount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetAvailableUnfreezeCount")) - .build(); - } - } - } - return getGetAvailableUnfreezeCountMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetCanWithdrawUnfreezeAmountMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCanWithdrawUnfreezeAmount", - requestType = org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage.class, - responseType = org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetCanWithdrawUnfreezeAmountMethod() { - io.grpc.MethodDescriptor getGetCanWithdrawUnfreezeAmountMethod; - if ((getGetCanWithdrawUnfreezeAmountMethod = WalletGrpc.getGetCanWithdrawUnfreezeAmountMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetCanWithdrawUnfreezeAmountMethod = WalletGrpc.getGetCanWithdrawUnfreezeAmountMethod) == null) { - WalletGrpc.getGetCanWithdrawUnfreezeAmountMethod = getGetCanWithdrawUnfreezeAmountMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCanWithdrawUnfreezeAmount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetCanWithdrawUnfreezeAmount")) - .build(); - } - } - } - return getGetCanWithdrawUnfreezeAmountMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetCanDelegatedMaxSizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCanDelegatedMaxSize", - requestType = org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage.class, - responseType = org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetCanDelegatedMaxSizeMethod() { - io.grpc.MethodDescriptor getGetCanDelegatedMaxSizeMethod; - if ((getGetCanDelegatedMaxSizeMethod = WalletGrpc.getGetCanDelegatedMaxSizeMethod) == null) { - synchronized (WalletGrpc.class) { - if ((getGetCanDelegatedMaxSizeMethod = WalletGrpc.getGetCanDelegatedMaxSizeMethod) == null) { - WalletGrpc.getGetCanDelegatedMaxSizeMethod = getGetCanDelegatedMaxSizeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCanDelegatedMaxSize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetCanDelegatedMaxSize")) - .build(); - } - } + /** + */ + public void getCanDelegatedMaxSize(org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetCanDelegatedMaxSizeMethod(), responseObserver); } - return getGetCanDelegatedMaxSizeMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetDelegatedResourceV2Method; - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDelegatedResourceV2", - requestType = org.tron.trident.proto.Response.DelegatedResourceMessage.class, - responseType = org.tron.trident.proto.Response.DelegatedResourceList.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetDelegatedResourceV2Method() { - io.grpc.MethodDescriptor getGetDelegatedResourceV2Method; - if ((getGetDelegatedResourceV2Method = WalletGrpc.getGetDelegatedResourceV2Method) == null) { - synchronized (WalletGrpc.class) { - if ((getGetDelegatedResourceV2Method = WalletGrpc.getGetDelegatedResourceV2Method) == null) { - WalletGrpc.getGetDelegatedResourceV2Method = getGetDelegatedResourceV2Method = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDelegatedResourceV2")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.DelegatedResourceMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.DelegatedResourceList.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetDelegatedResourceV2")) - .build(); - } - } + /** + */ + public void getDelegatedResourceV2(org.tron.trident.proto.Response.DelegatedResourceMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetDelegatedResourceV2Method(), responseObserver); } - return getGetDelegatedResourceV2Method; - } - - private static volatile io.grpc.MethodDescriptor getGetDelegatedResourceAccountIndexV2Method; - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDelegatedResourceAccountIndexV2", - requestType = org.tron.trident.api.GrpcAPI.BytesMessage.class, - responseType = org.tron.trident.proto.Response.DelegatedResourceAccountIndex.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetDelegatedResourceAccountIndexV2Method() { - io.grpc.MethodDescriptor getGetDelegatedResourceAccountIndexV2Method; - if ((getGetDelegatedResourceAccountIndexV2Method = WalletGrpc.getGetDelegatedResourceAccountIndexV2Method) == null) { - synchronized (WalletGrpc.class) { - if ((getGetDelegatedResourceAccountIndexV2Method = WalletGrpc.getGetDelegatedResourceAccountIndexV2Method) == null) { - WalletGrpc.getGetDelegatedResourceAccountIndexV2Method = getGetDelegatedResourceAccountIndexV2Method = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDelegatedResourceAccountIndexV2")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.tron.trident.proto.Response.DelegatedResourceAccountIndex.getDefaultInstance())) - .setSchemaDescriptor(new WalletMethodDescriptorSupplier("GetDelegatedResourceAccountIndexV2")) - .build(); - } - } + /** + */ + public void getDelegatedResourceAccountIndexV2(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetDelegatedResourceAccountIndexV2Method(), responseObserver); } - return getGetDelegatedResourceAccountIndexV2Method; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static WalletStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WalletStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WalletStub(channel, callOptions); - } - }; - return WalletStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static WalletBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WalletBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WalletBlockingStub(channel, callOptions); - } - }; - return WalletBlockingStub.newStub(factory, channel); - } - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static WalletFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WalletFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WalletFutureStub(channel, callOptions); - } - }; - return WalletFutureStub.newStub(factory, channel); - } - - /** - */ - public static abstract class WalletImplBase implements io.grpc.BindableService { - - /** - *
-     * Transactions:
-     * 
- */ - public void broadcastTransaction(org.tron.trident.proto.Chain.Transaction request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBroadcastTransactionMethod(), responseObserver); - } - - /** - */ - public void createCommonTransaction(org.tron.trident.proto.Chain.Transaction request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateCommonTransactionMethod(), responseObserver); - } - - /** - */ - public void createAccount(org.tron.trident.proto.Contract.AccountCreateContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateAccountMethod(), responseObserver); - } - - /** - */ - public void createAccount2(org.tron.trident.proto.Contract.AccountCreateContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateAccount2Method(), responseObserver); - } - - /** - */ - public void updateAccount(org.tron.trident.proto.Contract.AccountUpdateContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateAccountMethod(), responseObserver); - } - - /** - */ - public void updateAccount2(org.tron.trident.proto.Contract.AccountUpdateContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateAccount2Method(), responseObserver); - } - - /** - */ - public void setAccountId(org.tron.trident.proto.Contract.SetAccountIdContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetAccountIdMethod(), responseObserver); - } - - /** - */ - public void accountPermissionUpdate(org.tron.trident.proto.Contract.AccountPermissionUpdateContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getAccountPermissionUpdateMethod(), responseObserver); - } - - /** - */ - public void createTransaction(org.tron.trident.proto.Contract.TransferContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateTransactionMethod(), responseObserver); - } - - /** - */ - public void createTransaction2(org.tron.trident.proto.Contract.TransferContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateTransaction2Method(), responseObserver); - } - - /** - */ - public void createAssetIssue(org.tron.trident.proto.Contract.AssetIssueContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateAssetIssueMethod(), responseObserver); - } - - /** - */ - public void createAssetIssue2(org.tron.trident.proto.Contract.AssetIssueContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateAssetIssue2Method(), responseObserver); - } - - /** - */ - public void updateAsset(org.tron.trident.proto.Contract.UpdateAssetContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateAssetMethod(), responseObserver); - } - - /** - */ - public void updateAsset2(org.tron.trident.proto.Contract.UpdateAssetContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateAsset2Method(), responseObserver); - } - - /** - */ - public void transferAsset(org.tron.trident.proto.Contract.TransferAssetContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getTransferAssetMethod(), responseObserver); - } - - /** - */ - public void transferAsset2(org.tron.trident.proto.Contract.TransferAssetContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getTransferAsset2Method(), responseObserver); - } - - /** - */ - public void participateAssetIssue(org.tron.trident.proto.Contract.ParticipateAssetIssueContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getParticipateAssetIssueMethod(), responseObserver); - } - - /** - */ - public void participateAssetIssue2(org.tron.trident.proto.Contract.ParticipateAssetIssueContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getParticipateAssetIssue2Method(), responseObserver); - } - - /** - */ - public void unfreezeAsset(org.tron.trident.proto.Contract.UnfreezeAssetContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUnfreezeAssetMethod(), responseObserver); - } - - /** - */ - public void unfreezeAsset2(org.tron.trident.proto.Contract.UnfreezeAssetContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUnfreezeAsset2Method(), responseObserver); - } - - /** - */ - public void createWitness(org.tron.trident.proto.Contract.WitnessCreateContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateWitnessMethod(), responseObserver); - } - - /** - */ - public void createWitness2(org.tron.trident.proto.Contract.WitnessCreateContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateWitness2Method(), responseObserver); - } - - /** - */ - public void updateWitness(org.tron.trident.proto.Contract.WitnessUpdateContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateWitnessMethod(), responseObserver); - } - - /** - */ - public void updateWitness2(org.tron.trident.proto.Contract.WitnessUpdateContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateWitness2Method(), responseObserver); - } - - /** - */ - public void updateBrokerage(org.tron.trident.proto.Contract.UpdateBrokerageContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateBrokerageMethod(), responseObserver); - } - - /** - */ - public void voteWitnessAccount(org.tron.trident.proto.Contract.VoteWitnessContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getVoteWitnessAccountMethod(), responseObserver); - } - - /** - */ - public void voteWitnessAccount2(org.tron.trident.proto.Contract.VoteWitnessContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getVoteWitnessAccount2Method(), responseObserver); - } - - /** - */ - public void freezeBalance(org.tron.trident.proto.Contract.FreezeBalanceContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getFreezeBalanceMethod(), responseObserver); - } - - /** - */ - public void freezeBalance2(org.tron.trident.proto.Contract.FreezeBalanceContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getFreezeBalance2Method(), responseObserver); - } - - /** - */ - public void unfreezeBalance(org.tron.trident.proto.Contract.UnfreezeBalanceContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUnfreezeBalanceMethod(), responseObserver); - } - - /** - */ - public void unfreezeBalance2(org.tron.trident.proto.Contract.UnfreezeBalanceContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUnfreezeBalance2Method(), responseObserver); - } - - /** - */ - public void withdrawBalance(org.tron.trident.proto.Contract.WithdrawBalanceContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getWithdrawBalanceMethod(), responseObserver); - } - - /** - */ - public void withdrawBalance2(org.tron.trident.proto.Contract.WithdrawBalanceContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getWithdrawBalance2Method(), responseObserver); - } - - /** - */ - public void proposalCreate(org.tron.trident.proto.Contract.ProposalCreateContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getProposalCreateMethod(), responseObserver); - } - - /** - */ - public void proposalApprove(org.tron.trident.proto.Contract.ProposalApproveContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getProposalApproveMethod(), responseObserver); - } - - /** - */ - public void proposalDelete(org.tron.trident.proto.Contract.ProposalDeleteContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getProposalDeleteMethod(), responseObserver); - } - - /** - */ - public void deployContract(org.tron.trident.proto.Contract.CreateSmartContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeployContractMethod(), responseObserver); - } - - /** - */ - public void updateSetting(org.tron.trident.proto.Contract.UpdateSettingContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateSettingMethod(), responseObserver); - } - - /** - */ - public void updateEnergyLimit(org.tron.trident.proto.Contract.UpdateEnergyLimitContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateEnergyLimitMethod(), responseObserver); - } - - /** - */ - public void clearContractABI(org.tron.trident.proto.Contract.ClearABIContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getClearContractABIMethod(), responseObserver); - } - - /** - */ - public void triggerContract(org.tron.trident.proto.Contract.TriggerSmartContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getTriggerContractMethod(), responseObserver); - } - - /** - */ - public void triggerConstantContract(org.tron.trident.proto.Contract.TriggerSmartContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getTriggerConstantContractMethod(), responseObserver); - } - - /** - */ - public void exchangeCreate(org.tron.trident.proto.Contract.ExchangeCreateContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getExchangeCreateMethod(), responseObserver); - } - - /** - */ - public void exchangeInject(org.tron.trident.proto.Contract.ExchangeInjectContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getExchangeInjectMethod(), responseObserver); - } - - /** - */ - public void exchangeWithdraw(org.tron.trident.proto.Contract.ExchangeWithdrawContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getExchangeWithdrawMethod(), responseObserver); - } - - /** - */ - public void exchangeTransaction(org.tron.trident.proto.Contract.ExchangeTransactionContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getExchangeTransactionMethod(), responseObserver); - } - - /** - */ - public void marketSellAsset(org.tron.trident.proto.Contract.MarketSellAssetContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getMarketSellAssetMethod(), responseObserver); - } - - /** - */ - public void marketCancelOrder(org.tron.trident.proto.Contract.MarketCancelOrderContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getMarketCancelOrderMethod(), responseObserver); - } - - /** - *
-     * The real APIs:
-     * 
- */ - public void getNodeInfo(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetNodeInfoMethod(), responseObserver); - } - - /** - */ - public void listNodes(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListNodesMethod(), responseObserver); - } - - /** - */ - public void getChainParameters(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetChainParametersMethod(), responseObserver); - } - - /** - */ - public void totalTransaction(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getTotalTransactionMethod(), responseObserver); - } - - /** - */ - public void getNextMaintenanceTime(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetNextMaintenanceTimeMethod(), responseObserver); - } - - /** - */ - public void getTransactionSignWeight(org.tron.trident.proto.Chain.Transaction request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetTransactionSignWeightMethod(), responseObserver); - } - - /** - */ - public void getTransactionApprovedList(org.tron.trident.proto.Chain.Transaction request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetTransactionApprovedListMethod(), responseObserver); - } - - /** - *
-     * FLAW: Although the parameters' type is changed, it is still bad API design.
-     * 
- */ - public void getAccount(org.tron.trident.api.GrpcAPI.AccountAddressMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAccountMethod(), responseObserver); - } - - /** - */ - public void getAccountById(org.tron.trident.api.GrpcAPI.AccountIdMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAccountByIdMethod(), responseObserver); - } - - /** - */ - public void getAccountNet(org.tron.trident.api.GrpcAPI.AccountAddressMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAccountNetMethod(), responseObserver); - } - - /** - */ - public void getAccountResource(org.tron.trident.api.GrpcAPI.AccountAddressMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAccountResourceMethod(), responseObserver); - } - - /** - */ - public void getAssetIssueByAccount(org.tron.trident.api.GrpcAPI.AccountAddressMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAssetIssueByAccountMethod(), responseObserver); - } - - /** - */ - public void getAssetIssueByName(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAssetIssueByNameMethod(), responseObserver); - } - - /** - */ - public void getAssetIssueListByName(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAssetIssueListByNameMethod(), responseObserver); - } - - /** - */ - public void getAssetIssueById(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAssetIssueByIdMethod(), responseObserver); - } - - /** - */ - public void getAssetIssueList(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAssetIssueListMethod(), responseObserver); - } - - /** - */ - public void getPaginatedAssetIssueList(org.tron.trident.api.GrpcAPI.PaginatedMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetPaginatedAssetIssueListMethod(), responseObserver); - } - - /** - */ - public void getNowBlock(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetNowBlockMethod(), responseObserver); - } - - /** - */ - public void getNowBlock2(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetNowBlock2Method(), responseObserver); - } - - /** - */ - public void getBlockByNum(org.tron.trident.api.GrpcAPI.NumberMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetBlockByNumMethod(), responseObserver); - } - - /** - */ - public void getBlockByNum2(org.tron.trident.api.GrpcAPI.NumberMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetBlockByNum2Method(), responseObserver); - } - - /** - *
-     * NOTE: `GetBlockById2` is missing. The closest is `GetBlockByLatestNum2`.
-     * 
- */ - public void getBlockById(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetBlockByIdMethod(), responseObserver); - } - - /** - */ - public void getBlockByLimitNext(org.tron.trident.api.GrpcAPI.BlockLimit request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetBlockByLimitNextMethod(), responseObserver); - } - - /** - */ - public void getBlockByLimitNext2(org.tron.trident.api.GrpcAPI.BlockLimit request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetBlockByLimitNext2Method(), responseObserver); - } - - /** - */ - public void getBlockByLatestNum(org.tron.trident.api.GrpcAPI.NumberMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetBlockByLatestNumMethod(), responseObserver); - } - - /** - */ - public void getBlockByLatestNum2(org.tron.trident.api.GrpcAPI.NumberMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetBlockByLatestNum2Method(), responseObserver); - } - - /** - */ - public void getTransactionCountByBlockNum(org.tron.trident.api.GrpcAPI.NumberMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetTransactionCountByBlockNumMethod(), responseObserver); - } - - /** - */ - public void getTransactionById(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetTransactionByIdMethod(), responseObserver); - } - - /** - */ - public void getTransactionInfoById(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetTransactionInfoByIdMethod(), responseObserver); - } - - /** - */ - public void getTransactionInfoByBlockNum(org.tron.trident.api.GrpcAPI.NumberMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetTransactionInfoByBlockNumMethod(), responseObserver); - } - - /** - */ - public void getContract(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetContractMethod(), responseObserver); - } - - /** - *
-     * FLAW: Abusing of `info`. Should be a `GetContractCode`.
-     * 
- */ - public void getContractInfo(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetContractInfoMethod(), responseObserver); - } - - /** - */ - public void listWitnesses(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListWitnessesMethod(), responseObserver); - } - - /** - */ - public void getBrokerageInfo(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetBrokerageInfoMethod(), responseObserver); - } - - /** - */ - public void getRewardInfo(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetRewardInfoMethod(), responseObserver); - } - - /** - */ - public void getDelegatedResource(org.tron.trident.proto.Response.DelegatedResourceMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetDelegatedResourceMethod(), responseObserver); - } - - /** - */ - public void getDelegatedResourceAccountIndex(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetDelegatedResourceAccountIndexMethod(), responseObserver); - } - - /** - */ - public void listProposals(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListProposalsMethod(), responseObserver); - } - - /** - */ - public void getProposalById(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetProposalByIdMethod(), responseObserver); - } - - /** - */ - public void getPaginatedProposalList(org.tron.trident.api.GrpcAPI.PaginatedMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetPaginatedProposalListMethod(), responseObserver); - } - - /** - */ - public void listExchanges(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListExchangesMethod(), responseObserver); - } - - /** - */ - public void getExchangeById(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetExchangeByIdMethod(), responseObserver); - } - - /** - */ - public void getPaginatedExchangeList(org.tron.trident.api.GrpcAPI.PaginatedMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetPaginatedExchangeListMethod(), responseObserver); - } - - /** - *
-     * Shielded helpers:
-     * 
- */ - public void scanShieldedTRC20NotesByIvk(org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getScanShieldedTRC20NotesByIvkMethod(), responseObserver); - } - - /** - */ - public void scanShieldedTRC20NotesByOvk(org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getScanShieldedTRC20NotesByOvkMethod(), responseObserver); - } - - /** - */ - public void isShieldedTRC20ContractNoteSpent(org.tron.trident.api.GrpcAPI.NfTRC20Parameters request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getIsShieldedTRC20ContractNoteSpentMethod(), responseObserver); - } - - /** - *
-     * Market API:
-     * 
- */ - public void getMarketOrderByAccount(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetMarketOrderByAccountMethod(), responseObserver); - } - - /** - */ - public void getMarketOrderById(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetMarketOrderByIdMethod(), responseObserver); - } - - /** - */ - public void getMarketPriceByPair(org.tron.trident.proto.Response.MarketOrderPair request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetMarketPriceByPairMethod(), responseObserver); - } - - /** - */ - public void getMarketOrderListByPair(org.tron.trident.proto.Response.MarketOrderPair request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetMarketOrderListByPairMethod(), responseObserver); - } - - /** - */ - public void getMarketPairList(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetMarketPairListMethod(), responseObserver); - } - - /** - *
-     * FLAW: Unsafe junk.
-     * 
- */ - public void getTransactionSign(org.tron.trident.proto.Response.TransactionSign request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetTransactionSignMethod(), responseObserver); - } - - /** - */ - public void getTransactionSign2(org.tron.trident.proto.Response.TransactionSign request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetTransactionSign2Method(), responseObserver); - } - - /** - */ - public void easyTransferAsset(org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getEasyTransferAssetMethod(), responseObserver); - } - - /** - */ - public void easyTransferAssetByPrivate(org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getEasyTransferAssetByPrivateMethod(), responseObserver); - } - - /** - */ - public void easyTransfer(org.tron.trident.api.GrpcAPI.EasyTransferMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getEasyTransferMethod(), responseObserver); - } - - /** - */ - public void easyTransferByPrivate(org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getEasyTransferByPrivateMethod(), responseObserver); - } - - /** - */ - public void createAddress(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateAddressMethod(), responseObserver); - } - - /** - */ - public void generateAddress(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGenerateAddressMethod(), responseObserver); - } - - /** - */ - public void addSign(org.tron.trident.proto.Response.TransactionSign request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getAddSignMethod(), responseObserver); - } - - /** - *
-     * FLAW: Unsafe shielded junk(should be implemented offline).
-     * 
- */ - public void getSpendingKey(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetSpendingKeyMethod(), responseObserver); - } - - /** - */ - public void getExpandedSpendingKey(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetExpandedSpendingKeyMethod(), responseObserver); - } - - /** - */ - public void getAkFromAsk(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAkFromAskMethod(), responseObserver); - } - - /** - */ - public void getNkFromNsk(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetNkFromNskMethod(), responseObserver); - } - - /** - */ - public void getIncomingViewingKey(org.tron.trident.api.GrpcAPI.ViewingKeyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetIncomingViewingKeyMethod(), responseObserver); - } - - /** - */ - public void getDiversifier(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetDiversifierMethod(), responseObserver); - } - - /** - */ - public void getZenPaymentAddress(org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetZenPaymentAddressMethod(), responseObserver); - } - - /** - */ - public void getNewShieldedAddress(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetNewShieldedAddressMethod(), responseObserver); - } - - /** - */ - public void getRcm(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetRcmMethod(), responseObserver); - } - - /** - */ - public void createShieldedContractParameters(org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateShieldedContractParametersMethod(), responseObserver); - } - - /** - */ - public void createShieldedContractParametersWithoutAsk(org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateShieldedContractParametersWithoutAskMethod(), responseObserver); - } - - /** - */ - public void getTriggerInputForShieldedTRC20Contract(org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetTriggerInputForShieldedTRC20ContractMethod(), responseObserver); - } - - /** - *
-     * Stake 2.0
-     * 
- */ - public void freezeBalanceV2(org.tron.trident.proto.Contract.FreezeBalanceV2Contract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getFreezeBalanceV2Method(), responseObserver); - } - - /** - */ - public void unfreezeBalanceV2(org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUnfreezeBalanceV2Method(), responseObserver); - } - - /** - */ - public void delegateResource(org.tron.trident.proto.Contract.DelegateResourceContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDelegateResourceMethod(), responseObserver); - } - - /** - */ - public void unDelegateResource(org.tron.trident.proto.Contract.UnDelegateResourceContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUnDelegateResourceMethod(), responseObserver); - } - - /** - */ - public void withdrawExpireUnfreeze(org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getWithdrawExpireUnfreezeMethod(), responseObserver); - } - - /** - */ - public void getAvailableUnfreezeCount(org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAvailableUnfreezeCountMethod(), responseObserver); - } - - /** - */ - public void getCanWithdrawUnfreezeAmount(org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetCanWithdrawUnfreezeAmountMethod(), responseObserver); - } - - /** - */ - public void getCanDelegatedMaxSize(org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetCanDelegatedMaxSizeMethod(), responseObserver); - } - - /** - */ - public void getDelegatedResourceV2(org.tron.trident.proto.Response.DelegatedResourceMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetDelegatedResourceV2Method(), responseObserver); - } - - /** - */ - public void getDelegatedResourceAccountIndexV2(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetDelegatedResourceAccountIndexV2Method(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getBroadcastTransactionMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Chain.Transaction, - org.tron.trident.proto.Response.TransactionReturn>( - this, METHODID_BROADCAST_TRANSACTION))) - .addMethod( - getCreateCommonTransactionMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Chain.Transaction, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_CREATE_COMMON_TRANSACTION))) - .addMethod( - getCreateAccountMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.AccountCreateContract, - org.tron.trident.proto.Chain.Transaction>( - this, METHODID_CREATE_ACCOUNT))) - .addMethod( - getCreateAccount2Method(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.AccountCreateContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_CREATE_ACCOUNT2))) - .addMethod( - getUpdateAccountMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.AccountUpdateContract, - org.tron.trident.proto.Chain.Transaction>( - this, METHODID_UPDATE_ACCOUNT))) - .addMethod( - getUpdateAccount2Method(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.AccountUpdateContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_UPDATE_ACCOUNT2))) - .addMethod( - getSetAccountIdMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.SetAccountIdContract, - org.tron.trident.proto.Chain.Transaction>( - this, METHODID_SET_ACCOUNT_ID))) - .addMethod( - getAccountPermissionUpdateMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.AccountPermissionUpdateContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_ACCOUNT_PERMISSION_UPDATE))) - .addMethod( - getCreateTransactionMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.TransferContract, - org.tron.trident.proto.Chain.Transaction>( - this, METHODID_CREATE_TRANSACTION))) - .addMethod( - getCreateTransaction2Method(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.TransferContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_CREATE_TRANSACTION2))) - .addMethod( - getCreateAssetIssueMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.AssetIssueContract, - org.tron.trident.proto.Chain.Transaction>( - this, METHODID_CREATE_ASSET_ISSUE))) - .addMethod( - getCreateAssetIssue2Method(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.AssetIssueContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_CREATE_ASSET_ISSUE2))) - .addMethod( - getUpdateAssetMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.UpdateAssetContract, - org.tron.trident.proto.Chain.Transaction>( - this, METHODID_UPDATE_ASSET))) - .addMethod( - getUpdateAsset2Method(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.UpdateAssetContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_UPDATE_ASSET2))) - .addMethod( - getTransferAssetMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.TransferAssetContract, - org.tron.trident.proto.Chain.Transaction>( - this, METHODID_TRANSFER_ASSET))) - .addMethod( - getTransferAsset2Method(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.TransferAssetContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_TRANSFER_ASSET2))) - .addMethod( - getParticipateAssetIssueMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.ParticipateAssetIssueContract, - org.tron.trident.proto.Chain.Transaction>( - this, METHODID_PARTICIPATE_ASSET_ISSUE))) - .addMethod( - getParticipateAssetIssue2Method(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.ParticipateAssetIssueContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_PARTICIPATE_ASSET_ISSUE2))) - .addMethod( - getUnfreezeAssetMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.UnfreezeAssetContract, - org.tron.trident.proto.Chain.Transaction>( - this, METHODID_UNFREEZE_ASSET))) - .addMethod( - getUnfreezeAsset2Method(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.UnfreezeAssetContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_UNFREEZE_ASSET2))) - .addMethod( - getCreateWitnessMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.WitnessCreateContract, - org.tron.trident.proto.Chain.Transaction>( - this, METHODID_CREATE_WITNESS))) - .addMethod( - getCreateWitness2Method(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.WitnessCreateContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_CREATE_WITNESS2))) - .addMethod( - getUpdateWitnessMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.WitnessUpdateContract, - org.tron.trident.proto.Chain.Transaction>( - this, METHODID_UPDATE_WITNESS))) - .addMethod( - getUpdateWitness2Method(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.WitnessUpdateContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_UPDATE_WITNESS2))) - .addMethod( - getUpdateBrokerageMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.UpdateBrokerageContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_UPDATE_BROKERAGE))) - .addMethod( - getVoteWitnessAccountMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.VoteWitnessContract, - org.tron.trident.proto.Chain.Transaction>( - this, METHODID_VOTE_WITNESS_ACCOUNT))) - .addMethod( - getVoteWitnessAccount2Method(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.VoteWitnessContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_VOTE_WITNESS_ACCOUNT2))) - .addMethod( - getFreezeBalanceMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.FreezeBalanceContract, - org.tron.trident.proto.Chain.Transaction>( - this, METHODID_FREEZE_BALANCE))) - .addMethod( - getFreezeBalance2Method(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.FreezeBalanceContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_FREEZE_BALANCE2))) - .addMethod( - getUnfreezeBalanceMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.UnfreezeBalanceContract, - org.tron.trident.proto.Chain.Transaction>( - this, METHODID_UNFREEZE_BALANCE))) - .addMethod( - getUnfreezeBalance2Method(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.UnfreezeBalanceContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_UNFREEZE_BALANCE2))) - .addMethod( - getWithdrawBalanceMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.WithdrawBalanceContract, - org.tron.trident.proto.Chain.Transaction>( - this, METHODID_WITHDRAW_BALANCE))) - .addMethod( - getWithdrawBalance2Method(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.WithdrawBalanceContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_WITHDRAW_BALANCE2))) - .addMethod( - getProposalCreateMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.ProposalCreateContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_PROPOSAL_CREATE))) - .addMethod( - getProposalApproveMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.ProposalApproveContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_PROPOSAL_APPROVE))) - .addMethod( - getProposalDeleteMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.ProposalDeleteContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_PROPOSAL_DELETE))) - .addMethod( - getDeployContractMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.CreateSmartContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_DEPLOY_CONTRACT))) - .addMethod( - getUpdateSettingMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.UpdateSettingContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_UPDATE_SETTING))) - .addMethod( - getUpdateEnergyLimitMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.UpdateEnergyLimitContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_UPDATE_ENERGY_LIMIT))) - .addMethod( - getClearContractABIMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.ClearABIContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_CLEAR_CONTRACT_ABI))) - .addMethod( - getTriggerContractMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.TriggerSmartContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_TRIGGER_CONTRACT))) - .addMethod( - getTriggerConstantContractMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.TriggerSmartContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_TRIGGER_CONSTANT_CONTRACT))) - .addMethod( - getExchangeCreateMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.ExchangeCreateContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_EXCHANGE_CREATE))) - .addMethod( - getExchangeInjectMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.ExchangeInjectContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_EXCHANGE_INJECT))) - .addMethod( - getExchangeWithdrawMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.ExchangeWithdrawContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_EXCHANGE_WITHDRAW))) - .addMethod( - getExchangeTransactionMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.ExchangeTransactionContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_EXCHANGE_TRANSACTION))) - .addMethod( - getMarketSellAssetMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.MarketSellAssetContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_MARKET_SELL_ASSET))) - .addMethod( - getMarketCancelOrderMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.MarketCancelOrderContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_MARKET_CANCEL_ORDER))) - .addMethod( - getGetNodeInfoMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.EmptyMessage, - org.tron.trident.proto.Response.NodeInfo>( - this, METHODID_GET_NODE_INFO))) - .addMethod( - getListNodesMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.EmptyMessage, - org.tron.trident.proto.Response.NodeList>( - this, METHODID_LIST_NODES))) - .addMethod( - getGetChainParametersMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.EmptyMessage, - org.tron.trident.proto.Response.ChainParameters>( - this, METHODID_GET_CHAIN_PARAMETERS))) - .addMethod( - getTotalTransactionMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.EmptyMessage, - org.tron.trident.api.GrpcAPI.NumberMessage>( - this, METHODID_TOTAL_TRANSACTION))) - .addMethod( - getGetNextMaintenanceTimeMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.EmptyMessage, - org.tron.trident.api.GrpcAPI.NumberMessage>( - this, METHODID_GET_NEXT_MAINTENANCE_TIME))) - .addMethod( - getGetTransactionSignWeightMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Chain.Transaction, - org.tron.trident.proto.Response.TransactionSignWeight>( - this, METHODID_GET_TRANSACTION_SIGN_WEIGHT))) - .addMethod( - getGetTransactionApprovedListMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Chain.Transaction, - org.tron.trident.proto.Response.TransactionApprovedList>( - this, METHODID_GET_TRANSACTION_APPROVED_LIST))) - .addMethod( - getGetAccountMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.AccountAddressMessage, - org.tron.trident.proto.Response.Account>( - this, METHODID_GET_ACCOUNT))) - .addMethod( - getGetAccountByIdMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.AccountIdMessage, - org.tron.trident.proto.Response.Account>( - this, METHODID_GET_ACCOUNT_BY_ID))) - .addMethod( - getGetAccountNetMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.AccountAddressMessage, - org.tron.trident.proto.Response.AccountNetMessage>( - this, METHODID_GET_ACCOUNT_NET))) - .addMethod( - getGetAccountResourceMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.AccountAddressMessage, - org.tron.trident.proto.Response.AccountResourceMessage>( - this, METHODID_GET_ACCOUNT_RESOURCE))) - .addMethod( - getGetAssetIssueByAccountMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.AccountAddressMessage, - org.tron.trident.proto.Response.AssetIssueList>( - this, METHODID_GET_ASSET_ISSUE_BY_ACCOUNT))) - .addMethod( - getGetAssetIssueByNameMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.BytesMessage, - org.tron.trident.proto.Contract.AssetIssueContract>( - this, METHODID_GET_ASSET_ISSUE_BY_NAME))) - .addMethod( - getGetAssetIssueListByNameMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.BytesMessage, - org.tron.trident.proto.Response.AssetIssueList>( - this, METHODID_GET_ASSET_ISSUE_LIST_BY_NAME))) - .addMethod( - getGetAssetIssueByIdMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.BytesMessage, - org.tron.trident.proto.Contract.AssetIssueContract>( - this, METHODID_GET_ASSET_ISSUE_BY_ID))) - .addMethod( - getGetAssetIssueListMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.EmptyMessage, - org.tron.trident.proto.Response.AssetIssueList>( - this, METHODID_GET_ASSET_ISSUE_LIST))) - .addMethod( - getGetPaginatedAssetIssueListMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.PaginatedMessage, - org.tron.trident.proto.Response.AssetIssueList>( - this, METHODID_GET_PAGINATED_ASSET_ISSUE_LIST))) - .addMethod( - getGetNowBlockMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.EmptyMessage, - org.tron.trident.proto.Chain.Block>( - this, METHODID_GET_NOW_BLOCK))) - .addMethod( - getGetNowBlock2Method(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.EmptyMessage, - org.tron.trident.proto.Response.BlockExtention>( - this, METHODID_GET_NOW_BLOCK2))) - .addMethod( - getGetBlockByNumMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.NumberMessage, - org.tron.trident.proto.Chain.Block>( - this, METHODID_GET_BLOCK_BY_NUM))) - .addMethod( - getGetBlockByNum2Method(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.NumberMessage, - org.tron.trident.proto.Response.BlockExtention>( - this, METHODID_GET_BLOCK_BY_NUM2))) - .addMethod( - getGetBlockByIdMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.BytesMessage, - org.tron.trident.proto.Chain.Block>( - this, METHODID_GET_BLOCK_BY_ID))) - .addMethod( - getGetBlockByLimitNextMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.BlockLimit, - org.tron.trident.proto.Response.BlockList>( - this, METHODID_GET_BLOCK_BY_LIMIT_NEXT))) - .addMethod( - getGetBlockByLimitNext2Method(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.BlockLimit, - org.tron.trident.proto.Response.BlockListExtention>( - this, METHODID_GET_BLOCK_BY_LIMIT_NEXT2))) - .addMethod( - getGetBlockByLatestNumMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.NumberMessage, - org.tron.trident.proto.Response.BlockList>( - this, METHODID_GET_BLOCK_BY_LATEST_NUM))) - .addMethod( - getGetBlockByLatestNum2Method(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.NumberMessage, - org.tron.trident.proto.Response.BlockListExtention>( - this, METHODID_GET_BLOCK_BY_LATEST_NUM2))) - .addMethod( - getGetTransactionCountByBlockNumMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.NumberMessage, - org.tron.trident.api.GrpcAPI.NumberMessage>( - this, METHODID_GET_TRANSACTION_COUNT_BY_BLOCK_NUM))) - .addMethod( - getGetTransactionByIdMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.BytesMessage, - org.tron.trident.proto.Chain.Transaction>( - this, METHODID_GET_TRANSACTION_BY_ID))) - .addMethod( - getGetTransactionInfoByIdMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.BytesMessage, - org.tron.trident.proto.Response.TransactionInfo>( - this, METHODID_GET_TRANSACTION_INFO_BY_ID))) - .addMethod( - getGetTransactionInfoByBlockNumMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.NumberMessage, - org.tron.trident.proto.Response.TransactionInfoList>( - this, METHODID_GET_TRANSACTION_INFO_BY_BLOCK_NUM))) - .addMethod( - getGetContractMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.BytesMessage, - org.tron.trident.proto.Common.SmartContract>( - this, METHODID_GET_CONTRACT))) - .addMethod( - getGetContractInfoMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.BytesMessage, - org.tron.trident.proto.Response.SmartContractDataWrapper>( - this, METHODID_GET_CONTRACT_INFO))) - .addMethod( - getListWitnessesMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.EmptyMessage, - org.tron.trident.proto.Response.WitnessList>( - this, METHODID_LIST_WITNESSES))) - .addMethod( - getGetBrokerageInfoMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.BytesMessage, - org.tron.trident.api.GrpcAPI.NumberMessage>( - this, METHODID_GET_BROKERAGE_INFO))) - .addMethod( - getGetRewardInfoMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.BytesMessage, - org.tron.trident.api.GrpcAPI.NumberMessage>( - this, METHODID_GET_REWARD_INFO))) - .addMethod( - getGetDelegatedResourceMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Response.DelegatedResourceMessage, - org.tron.trident.proto.Response.DelegatedResourceList>( - this, METHODID_GET_DELEGATED_RESOURCE))) - .addMethod( - getGetDelegatedResourceAccountIndexMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.BytesMessage, - org.tron.trident.proto.Response.DelegatedResourceAccountIndex>( - this, METHODID_GET_DELEGATED_RESOURCE_ACCOUNT_INDEX))) - .addMethod( - getListProposalsMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.EmptyMessage, - org.tron.trident.proto.Response.ProposalList>( - this, METHODID_LIST_PROPOSALS))) - .addMethod( - getGetProposalByIdMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.BytesMessage, - org.tron.trident.proto.Response.Proposal>( - this, METHODID_GET_PROPOSAL_BY_ID))) - .addMethod( - getGetPaginatedProposalListMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.PaginatedMessage, - org.tron.trident.proto.Response.ProposalList>( - this, METHODID_GET_PAGINATED_PROPOSAL_LIST))) - .addMethod( - getListExchangesMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.EmptyMessage, - org.tron.trident.proto.Response.ExchangeList>( - this, METHODID_LIST_EXCHANGES))) - .addMethod( - getGetExchangeByIdMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.BytesMessage, - org.tron.trident.proto.Response.Exchange>( - this, METHODID_GET_EXCHANGE_BY_ID))) - .addMethod( - getGetPaginatedExchangeListMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.PaginatedMessage, - org.tron.trident.proto.Response.ExchangeList>( - this, METHODID_GET_PAGINATED_EXCHANGE_LIST))) - .addMethod( - getScanShieldedTRC20NotesByIvkMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters, - org.tron.trident.proto.Response.DecryptNotesTRC20>( - this, METHODID_SCAN_SHIELDED_TRC20NOTES_BY_IVK))) - .addMethod( - getScanShieldedTRC20NotesByOvkMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters, - org.tron.trident.proto.Response.DecryptNotesTRC20>( - this, METHODID_SCAN_SHIELDED_TRC20NOTES_BY_OVK))) - .addMethod( - getIsShieldedTRC20ContractNoteSpentMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.NfTRC20Parameters, - org.tron.trident.proto.Response.NullifierResult>( - this, METHODID_IS_SHIELDED_TRC20CONTRACT_NOTE_SPENT))) - .addMethod( - getGetMarketOrderByAccountMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.BytesMessage, - org.tron.trident.proto.Response.MarketOrderList>( - this, METHODID_GET_MARKET_ORDER_BY_ACCOUNT))) - .addMethod( - getGetMarketOrderByIdMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.BytesMessage, - org.tron.trident.proto.Response.MarketOrder>( - this, METHODID_GET_MARKET_ORDER_BY_ID))) - .addMethod( - getGetMarketPriceByPairMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Response.MarketOrderPair, - org.tron.trident.proto.Response.MarketPriceList>( - this, METHODID_GET_MARKET_PRICE_BY_PAIR))) - .addMethod( - getGetMarketOrderListByPairMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Response.MarketOrderPair, - org.tron.trident.proto.Response.MarketOrderList>( - this, METHODID_GET_MARKET_ORDER_LIST_BY_PAIR))) - .addMethod( - getGetMarketPairListMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.EmptyMessage, - org.tron.trident.proto.Response.MarketOrderPairList>( - this, METHODID_GET_MARKET_PAIR_LIST))) - .addMethod( - getGetTransactionSignMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Response.TransactionSign, - org.tron.trident.proto.Chain.Transaction>( - this, METHODID_GET_TRANSACTION_SIGN))) - .addMethod( - getGetTransactionSign2Method(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Response.TransactionSign, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_GET_TRANSACTION_SIGN2))) - .addMethod( - getEasyTransferAssetMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage, - org.tron.trident.proto.Response.EasyTransferResponse>( - this, METHODID_EASY_TRANSFER_ASSET))) - .addMethod( - getEasyTransferAssetByPrivateMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage, - org.tron.trident.proto.Response.EasyTransferResponse>( - this, METHODID_EASY_TRANSFER_ASSET_BY_PRIVATE))) - .addMethod( - getEasyTransferMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.EasyTransferMessage, - org.tron.trident.proto.Response.EasyTransferResponse>( - this, METHODID_EASY_TRANSFER))) - .addMethod( - getEasyTransferByPrivateMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage, - org.tron.trident.proto.Response.EasyTransferResponse>( - this, METHODID_EASY_TRANSFER_BY_PRIVATE))) - .addMethod( - getCreateAddressMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.BytesMessage, - org.tron.trident.api.GrpcAPI.BytesMessage>( - this, METHODID_CREATE_ADDRESS))) - .addMethod( - getGenerateAddressMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.EmptyMessage, - org.tron.trident.proto.Response.AddressPrKeyPairMessage>( - this, METHODID_GENERATE_ADDRESS))) - .addMethod( - getAddSignMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Response.TransactionSign, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_ADD_SIGN))) - .addMethod( - getGetSpendingKeyMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.EmptyMessage, - org.tron.trident.api.GrpcAPI.BytesMessage>( - this, METHODID_GET_SPENDING_KEY))) - .addMethod( - getGetExpandedSpendingKeyMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.BytesMessage, - org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage>( - this, METHODID_GET_EXPANDED_SPENDING_KEY))) - .addMethod( - getGetAkFromAskMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.BytesMessage, - org.tron.trident.api.GrpcAPI.BytesMessage>( - this, METHODID_GET_AK_FROM_ASK))) - .addMethod( - getGetNkFromNskMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.BytesMessage, - org.tron.trident.api.GrpcAPI.BytesMessage>( - this, METHODID_GET_NK_FROM_NSK))) - .addMethod( - getGetIncomingViewingKeyMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.ViewingKeyMessage, - org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage>( - this, METHODID_GET_INCOMING_VIEWING_KEY))) - .addMethod( - getGetDiversifierMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.EmptyMessage, - org.tron.trident.api.GrpcAPI.DiversifierMessage>( - this, METHODID_GET_DIVERSIFIER))) - .addMethod( - getGetZenPaymentAddressMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage, - org.tron.trident.api.GrpcAPI.PaymentAddressMessage>( - this, METHODID_GET_ZEN_PAYMENT_ADDRESS))) - .addMethod( - getGetNewShieldedAddressMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.EmptyMessage, - org.tron.trident.api.GrpcAPI.ShieldedAddressInfo>( - this, METHODID_GET_NEW_SHIELDED_ADDRESS))) - .addMethod( - getGetRcmMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.EmptyMessage, - org.tron.trident.api.GrpcAPI.BytesMessage>( - this, METHODID_GET_RCM))) - .addMethod( - getCreateShieldedContractParametersMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters, - org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters>( - this, METHODID_CREATE_SHIELDED_CONTRACT_PARAMETERS))) - .addMethod( - getCreateShieldedContractParametersWithoutAskMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk, - org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters>( - this, METHODID_CREATE_SHIELDED_CONTRACT_PARAMETERS_WITHOUT_ASK))) - .addMethod( - getGetTriggerInputForShieldedTRC20ContractMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters, - org.tron.trident.api.GrpcAPI.BytesMessage>( - this, METHODID_GET_TRIGGER_INPUT_FOR_SHIELDED_TRC20CONTRACT))) - .addMethod( - getFreezeBalanceV2Method(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.FreezeBalanceV2Contract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_FREEZE_BALANCE_V2))) - .addMethod( - getUnfreezeBalanceV2Method(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_UNFREEZE_BALANCE_V2))) - .addMethod( - getDelegateResourceMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.DelegateResourceContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_DELEGATE_RESOURCE))) - .addMethod( - getUnDelegateResourceMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.UnDelegateResourceContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_UN_DELEGATE_RESOURCE))) - .addMethod( - getWithdrawExpireUnfreezeMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract, - org.tron.trident.proto.Response.TransactionExtention>( - this, METHODID_WITHDRAW_EXPIRE_UNFREEZE))) - .addMethod( - getGetAvailableUnfreezeCountMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage, - org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage>( - this, METHODID_GET_AVAILABLE_UNFREEZE_COUNT))) - .addMethod( - getGetCanWithdrawUnfreezeAmountMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage, - org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage>( - this, METHODID_GET_CAN_WITHDRAW_UNFREEZE_AMOUNT))) - .addMethod( - getGetCanDelegatedMaxSizeMethod(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage, - org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage>( - this, METHODID_GET_CAN_DELEGATED_MAX_SIZE))) - .addMethod( - getGetDelegatedResourceV2Method(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.proto.Response.DelegatedResourceMessage, - org.tron.trident.proto.Response.DelegatedResourceList>( - this, METHODID_GET_DELEGATED_RESOURCE_V2))) - .addMethod( - getGetDelegatedResourceAccountIndexV2Method(), - asyncUnaryCall( - new MethodHandlers< - org.tron.trident.api.GrpcAPI.BytesMessage, - org.tron.trident.proto.Response.DelegatedResourceAccountIndex>( - this, METHODID_GET_DELEGATED_RESOURCE_ACCOUNT_INDEX_V2))) - .build(); - } - } - - /** - */ - public static final class WalletStub extends io.grpc.stub.AbstractAsyncStub { - private WalletStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WalletStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WalletStub(channel, callOptions); - } - - /** - *
-     * Transactions:
-     * 
- */ - public void broadcastTransaction(org.tron.trident.proto.Chain.Transaction request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getBroadcastTransactionMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void createCommonTransaction(org.tron.trident.proto.Chain.Transaction request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateCommonTransactionMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void createAccount(org.tron.trident.proto.Contract.AccountCreateContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateAccountMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void createAccount2(org.tron.trident.proto.Contract.AccountCreateContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateAccount2Method(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void updateAccount(org.tron.trident.proto.Contract.AccountUpdateContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUpdateAccountMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void updateAccount2(org.tron.trident.proto.Contract.AccountUpdateContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUpdateAccount2Method(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void setAccountId(org.tron.trident.proto.Contract.SetAccountIdContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSetAccountIdMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void accountPermissionUpdate(org.tron.trident.proto.Contract.AccountPermissionUpdateContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getAccountPermissionUpdateMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void createTransaction(org.tron.trident.proto.Contract.TransferContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateTransactionMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void createTransaction2(org.tron.trident.proto.Contract.TransferContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateTransaction2Method(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void createAssetIssue(org.tron.trident.proto.Contract.AssetIssueContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateAssetIssueMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void createAssetIssue2(org.tron.trident.proto.Contract.AssetIssueContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateAssetIssue2Method(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void updateAsset(org.tron.trident.proto.Contract.UpdateAssetContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUpdateAssetMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void updateAsset2(org.tron.trident.proto.Contract.UpdateAssetContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUpdateAsset2Method(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void transferAsset(org.tron.trident.proto.Contract.TransferAssetContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getTransferAssetMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void transferAsset2(org.tron.trident.proto.Contract.TransferAssetContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getTransferAsset2Method(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void participateAssetIssue(org.tron.trident.proto.Contract.ParticipateAssetIssueContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getParticipateAssetIssueMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void participateAssetIssue2(org.tron.trident.proto.Contract.ParticipateAssetIssueContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getParticipateAssetIssue2Method(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void unfreezeAsset(org.tron.trident.proto.Contract.UnfreezeAssetContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUnfreezeAssetMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void unfreezeAsset2(org.tron.trident.proto.Contract.UnfreezeAssetContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUnfreezeAsset2Method(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void createWitness(org.tron.trident.proto.Contract.WitnessCreateContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateWitnessMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void createWitness2(org.tron.trident.proto.Contract.WitnessCreateContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateWitness2Method(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void updateWitness(org.tron.trident.proto.Contract.WitnessUpdateContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUpdateWitnessMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void updateWitness2(org.tron.trident.proto.Contract.WitnessUpdateContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUpdateWitness2Method(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void updateBrokerage(org.tron.trident.proto.Contract.UpdateBrokerageContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUpdateBrokerageMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void voteWitnessAccount(org.tron.trident.proto.Contract.VoteWitnessContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getVoteWitnessAccountMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void voteWitnessAccount2(org.tron.trident.proto.Contract.VoteWitnessContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getVoteWitnessAccount2Method(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void freezeBalance(org.tron.trident.proto.Contract.FreezeBalanceContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getFreezeBalanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void freezeBalance2(org.tron.trident.proto.Contract.FreezeBalanceContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getFreezeBalance2Method(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void unfreezeBalance(org.tron.trident.proto.Contract.UnfreezeBalanceContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUnfreezeBalanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void unfreezeBalance2(org.tron.trident.proto.Contract.UnfreezeBalanceContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUnfreezeBalance2Method(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void withdrawBalance(org.tron.trident.proto.Contract.WithdrawBalanceContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getWithdrawBalanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void withdrawBalance2(org.tron.trident.proto.Contract.WithdrawBalanceContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getWithdrawBalance2Method(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void proposalCreate(org.tron.trident.proto.Contract.ProposalCreateContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getProposalCreateMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void proposalApprove(org.tron.trident.proto.Contract.ProposalApproveContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getProposalApproveMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void proposalDelete(org.tron.trident.proto.Contract.ProposalDeleteContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getProposalDeleteMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void deployContract(org.tron.trident.proto.Contract.CreateSmartContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDeployContractMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void updateSetting(org.tron.trident.proto.Contract.UpdateSettingContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUpdateSettingMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void updateEnergyLimit(org.tron.trident.proto.Contract.UpdateEnergyLimitContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUpdateEnergyLimitMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void clearContractABI(org.tron.trident.proto.Contract.ClearABIContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getClearContractABIMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void triggerContract(org.tron.trident.proto.Contract.TriggerSmartContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getTriggerContractMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void triggerConstantContract(org.tron.trident.proto.Contract.TriggerSmartContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getTriggerConstantContractMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void exchangeCreate(org.tron.trident.proto.Contract.ExchangeCreateContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getExchangeCreateMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void exchangeInject(org.tron.trident.proto.Contract.ExchangeInjectContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getExchangeInjectMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void exchangeWithdraw(org.tron.trident.proto.Contract.ExchangeWithdrawContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getExchangeWithdrawMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void exchangeTransaction(org.tron.trident.proto.Contract.ExchangeTransactionContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getExchangeTransactionMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void marketSellAsset(org.tron.trident.proto.Contract.MarketSellAssetContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getMarketSellAssetMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void marketCancelOrder(org.tron.trident.proto.Contract.MarketCancelOrderContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getMarketCancelOrderMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * The real APIs:
-     * 
- */ - public void getNodeInfo(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetNodeInfoMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void listNodes(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getListNodesMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getChainParameters(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetChainParametersMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void totalTransaction(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getTotalTransactionMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getNextMaintenanceTime(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetNextMaintenanceTimeMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getTransactionSignWeight(org.tron.trident.proto.Chain.Transaction request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetTransactionSignWeightMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getTransactionApprovedList(org.tron.trident.proto.Chain.Transaction request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetTransactionApprovedListMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * FLAW: Although the parameters' type is changed, it is still bad API design.
-     * 
- */ - public void getAccount(org.tron.trident.api.GrpcAPI.AccountAddressMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetAccountMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getAccountById(org.tron.trident.api.GrpcAPI.AccountIdMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetAccountByIdMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getAccountNet(org.tron.trident.api.GrpcAPI.AccountAddressMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetAccountNetMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getAccountResource(org.tron.trident.api.GrpcAPI.AccountAddressMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetAccountResourceMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getAssetIssueByAccount(org.tron.trident.api.GrpcAPI.AccountAddressMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetAssetIssueByAccountMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getAssetIssueByName(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetAssetIssueByNameMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getAssetIssueListByName(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetAssetIssueListByNameMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getAssetIssueById(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetAssetIssueByIdMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getAssetIssueList(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetAssetIssueListMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getPaginatedAssetIssueList(org.tron.trident.api.GrpcAPI.PaginatedMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetPaginatedAssetIssueListMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getNowBlock(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetNowBlockMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getNowBlock2(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetNowBlock2Method(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getBlockByNum(org.tron.trident.api.GrpcAPI.NumberMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetBlockByNumMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getBlockByNum2(org.tron.trident.api.GrpcAPI.NumberMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetBlockByNum2Method(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * NOTE: `GetBlockById2` is missing. The closest is `GetBlockByLatestNum2`.
-     * 
- */ - public void getBlockById(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetBlockByIdMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getBlockByLimitNext(org.tron.trident.api.GrpcAPI.BlockLimit request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetBlockByLimitNextMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getBlockByLimitNext2(org.tron.trident.api.GrpcAPI.BlockLimit request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetBlockByLimitNext2Method(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getBlockByLatestNum(org.tron.trident.api.GrpcAPI.NumberMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetBlockByLatestNumMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getBlockByLatestNum2(org.tron.trident.api.GrpcAPI.NumberMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetBlockByLatestNum2Method(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getTransactionCountByBlockNum(org.tron.trident.api.GrpcAPI.NumberMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetTransactionCountByBlockNumMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getTransactionById(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetTransactionByIdMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getTransactionInfoById(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetTransactionInfoByIdMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getTransactionInfoByBlockNum(org.tron.trident.api.GrpcAPI.NumberMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetTransactionInfoByBlockNumMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getContract(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetContractMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * FLAW: Abusing of `info`. Should be a `GetContractCode`.
-     * 
- */ - public void getContractInfo(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetContractInfoMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void listWitnesses(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getListWitnessesMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getBrokerageInfo(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetBrokerageInfoMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getRewardInfo(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetRewardInfoMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getDelegatedResource(org.tron.trident.proto.Response.DelegatedResourceMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetDelegatedResourceMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getDelegatedResourceAccountIndex(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetDelegatedResourceAccountIndexMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void listProposals(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getListProposalsMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getProposalById(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetProposalByIdMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getPaginatedProposalList(org.tron.trident.api.GrpcAPI.PaginatedMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetPaginatedProposalListMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void listExchanges(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getListExchangesMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getExchangeById(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetExchangeByIdMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getPaginatedExchangeList(org.tron.trident.api.GrpcAPI.PaginatedMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetPaginatedExchangeListMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Shielded helpers:
-     * 
- */ - public void scanShieldedTRC20NotesByIvk(org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getScanShieldedTRC20NotesByIvkMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void scanShieldedTRC20NotesByOvk(org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getScanShieldedTRC20NotesByOvkMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void isShieldedTRC20ContractNoteSpent(org.tron.trident.api.GrpcAPI.NfTRC20Parameters request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getIsShieldedTRC20ContractNoteSpentMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Market API:
-     * 
- */ - public void getMarketOrderByAccount(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetMarketOrderByAccountMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getMarketOrderById(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetMarketOrderByIdMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getMarketPriceByPair(org.tron.trident.proto.Response.MarketOrderPair request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetMarketPriceByPairMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getMarketOrderListByPair(org.tron.trident.proto.Response.MarketOrderPair request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetMarketOrderListByPairMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getMarketPairList(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetMarketPairListMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * FLAW: Unsafe junk.
-     * 
- */ - public void getTransactionSign(org.tron.trident.proto.Response.TransactionSign request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetTransactionSignMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getTransactionSign2(org.tron.trident.proto.Response.TransactionSign request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetTransactionSign2Method(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void easyTransferAsset(org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getEasyTransferAssetMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void easyTransferAssetByPrivate(org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getEasyTransferAssetByPrivateMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void easyTransfer(org.tron.trident.api.GrpcAPI.EasyTransferMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getEasyTransferMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void easyTransferByPrivate(org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getEasyTransferByPrivateMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void createAddress(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateAddressMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void generateAddress(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGenerateAddressMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void addSign(org.tron.trident.proto.Response.TransactionSign request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getAddSignMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * FLAW: Unsafe shielded junk(should be implemented offline).
-     * 
- */ - public void getSpendingKey(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetSpendingKeyMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getExpandedSpendingKey(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetExpandedSpendingKeyMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getAkFromAsk(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetAkFromAskMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getNkFromNsk(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetNkFromNskMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getIncomingViewingKey(org.tron.trident.api.GrpcAPI.ViewingKeyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetIncomingViewingKeyMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getDiversifier(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetDiversifierMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getZenPaymentAddress(org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetZenPaymentAddressMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getNewShieldedAddress(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetNewShieldedAddressMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getRcm(org.tron.trident.api.GrpcAPI.EmptyMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetRcmMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void createShieldedContractParameters(org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateShieldedContractParametersMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void createShieldedContractParametersWithoutAsk(org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateShieldedContractParametersWithoutAskMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getTriggerInputForShieldedTRC20Contract(org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetTriggerInputForShieldedTRC20ContractMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Stake 2.0
-     * 
- */ - public void freezeBalanceV2(org.tron.trident.proto.Contract.FreezeBalanceV2Contract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getFreezeBalanceV2Method(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void unfreezeBalanceV2(org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUnfreezeBalanceV2Method(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void delegateResource(org.tron.trident.proto.Contract.DelegateResourceContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDelegateResourceMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void unDelegateResource(org.tron.trident.proto.Contract.UnDelegateResourceContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUnDelegateResourceMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void withdrawExpireUnfreeze(org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getWithdrawExpireUnfreezeMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getAvailableUnfreezeCount(org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetAvailableUnfreezeCountMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getCanWithdrawUnfreezeAmount(org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetCanWithdrawUnfreezeAmountMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getCanDelegatedMaxSize(org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetCanDelegatedMaxSizeMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getDelegatedResourceV2(org.tron.trident.proto.Response.DelegatedResourceMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetDelegatedResourceV2Method(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getDelegatedResourceAccountIndexV2(org.tron.trident.api.GrpcAPI.BytesMessage request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetDelegatedResourceAccountIndexV2Method(), getCallOptions()), request, responseObserver); + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getBroadcastTransactionMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.proto.Chain.Transaction, + org.tron.trident.proto.Response.TransactionReturn>( + this, METHODID_BROADCAST_TRANSACTION))) + .addMethod( + getGetNodeInfoMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.EmptyMessage, + org.tron.trident.proto.Response.NodeInfo>( + this, METHODID_GET_NODE_INFO))) + .addMethod( + getListNodesMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.EmptyMessage, + org.tron.trident.proto.Response.NodeList>( + this, METHODID_LIST_NODES))) + .addMethod( + getGetChainParametersMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.EmptyMessage, + org.tron.trident.proto.Response.ChainParameters>( + this, METHODID_GET_CHAIN_PARAMETERS))) + .addMethod( + getTotalTransactionMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.EmptyMessage, + org.tron.trident.api.GrpcAPI.NumberMessage>( + this, METHODID_TOTAL_TRANSACTION))) + .addMethod( + getGetNextMaintenanceTimeMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.EmptyMessage, + org.tron.trident.api.GrpcAPI.NumberMessage>( + this, METHODID_GET_NEXT_MAINTENANCE_TIME))) + .addMethod( + getGetTransactionSignWeightMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.proto.Chain.Transaction, + org.tron.trident.proto.Response.TransactionSignWeight>( + this, METHODID_GET_TRANSACTION_SIGN_WEIGHT))) + .addMethod( + getGetTransactionApprovedListMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.proto.Chain.Transaction, + org.tron.trident.proto.Response.TransactionApprovedList>( + this, METHODID_GET_TRANSACTION_APPROVED_LIST))) + .addMethod( + getGetAccountMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.AccountAddressMessage, + org.tron.trident.proto.Response.Account>( + this, METHODID_GET_ACCOUNT))) + .addMethod( + getGetAccountByIdMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.AccountIdMessage, + org.tron.trident.proto.Response.Account>( + this, METHODID_GET_ACCOUNT_BY_ID))) + .addMethod( + getGetAccountNetMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.AccountAddressMessage, + org.tron.trident.proto.Response.AccountNetMessage>( + this, METHODID_GET_ACCOUNT_NET))) + .addMethod( + getGetAccountResourceMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.AccountAddressMessage, + org.tron.trident.proto.Response.AccountResourceMessage>( + this, METHODID_GET_ACCOUNT_RESOURCE))) + .addMethod( + getGetAssetIssueByAccountMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.AccountAddressMessage, + org.tron.trident.proto.Response.AssetIssueList>( + this, METHODID_GET_ASSET_ISSUE_BY_ACCOUNT))) + .addMethod( + getGetAssetIssueByNameMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.BytesMessage, + org.tron.trident.proto.Contract.AssetIssueContract>( + this, METHODID_GET_ASSET_ISSUE_BY_NAME))) + .addMethod( + getGetAssetIssueListByNameMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.BytesMessage, + org.tron.trident.proto.Response.AssetIssueList>( + this, METHODID_GET_ASSET_ISSUE_LIST_BY_NAME))) + .addMethod( + getGetAssetIssueByIdMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.BytesMessage, + org.tron.trident.proto.Contract.AssetIssueContract>( + this, METHODID_GET_ASSET_ISSUE_BY_ID))) + .addMethod( + getGetAssetIssueListMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.EmptyMessage, + org.tron.trident.proto.Response.AssetIssueList>( + this, METHODID_GET_ASSET_ISSUE_LIST))) + .addMethod( + getGetPaginatedAssetIssueListMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.PaginatedMessage, + org.tron.trident.proto.Response.AssetIssueList>( + this, METHODID_GET_PAGINATED_ASSET_ISSUE_LIST))) + .addMethod( + getGetNowBlockMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.EmptyMessage, + org.tron.trident.proto.Chain.Block>( + this, METHODID_GET_NOW_BLOCK))) + .addMethod( + getGetNowBlock2Method(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.EmptyMessage, + org.tron.trident.proto.Response.BlockExtention>( + this, METHODID_GET_NOW_BLOCK2))) + .addMethod( + getGetBlockByNumMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.NumberMessage, + org.tron.trident.proto.Chain.Block>( + this, METHODID_GET_BLOCK_BY_NUM))) + .addMethod( + getGetBlockByNum2Method(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.NumberMessage, + org.tron.trident.proto.Response.BlockExtention>( + this, METHODID_GET_BLOCK_BY_NUM2))) + .addMethod( + getGetBlockByIdMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.BytesMessage, + org.tron.trident.proto.Chain.Block>( + this, METHODID_GET_BLOCK_BY_ID))) + .addMethod( + getGetBlockByLimitNextMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.BlockLimit, + org.tron.trident.proto.Response.BlockList>( + this, METHODID_GET_BLOCK_BY_LIMIT_NEXT))) + .addMethod( + getGetBlockByLimitNext2Method(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.BlockLimit, + org.tron.trident.proto.Response.BlockListExtention>( + this, METHODID_GET_BLOCK_BY_LIMIT_NEXT2))) + .addMethod( + getGetBlockByLatestNumMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.NumberMessage, + org.tron.trident.proto.Response.BlockList>( + this, METHODID_GET_BLOCK_BY_LATEST_NUM))) + .addMethod( + getGetBlockByLatestNum2Method(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.NumberMessage, + org.tron.trident.proto.Response.BlockListExtention>( + this, METHODID_GET_BLOCK_BY_LATEST_NUM2))) + .addMethod( + getGetTransactionCountByBlockNumMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.NumberMessage, + org.tron.trident.api.GrpcAPI.NumberMessage>( + this, METHODID_GET_TRANSACTION_COUNT_BY_BLOCK_NUM))) + .addMethod( + getGetTransactionByIdMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.BytesMessage, + org.tron.trident.proto.Chain.Transaction>( + this, METHODID_GET_TRANSACTION_BY_ID))) + .addMethod( + getGetTransactionInfoByIdMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.BytesMessage, + org.tron.trident.proto.Response.TransactionInfo>( + this, METHODID_GET_TRANSACTION_INFO_BY_ID))) + .addMethod( + getGetTransactionInfoByBlockNumMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.NumberMessage, + org.tron.trident.proto.Response.TransactionInfoList>( + this, METHODID_GET_TRANSACTION_INFO_BY_BLOCK_NUM))) + .addMethod( + getGetContractMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.BytesMessage, + org.tron.trident.proto.Common.SmartContract>( + this, METHODID_GET_CONTRACT))) + .addMethod( + getGetContractInfoMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.BytesMessage, + org.tron.trident.proto.Response.SmartContractDataWrapper>( + this, METHODID_GET_CONTRACT_INFO))) + .addMethod( + getListWitnessesMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.EmptyMessage, + org.tron.trident.proto.Response.WitnessList>( + this, METHODID_LIST_WITNESSES))) + .addMethod( + getGetBrokerageInfoMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.BytesMessage, + org.tron.trident.api.GrpcAPI.NumberMessage>( + this, METHODID_GET_BROKERAGE_INFO))) + .addMethod( + getGetRewardInfoMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.BytesMessage, + org.tron.trident.api.GrpcAPI.NumberMessage>( + this, METHODID_GET_REWARD_INFO))) + .addMethod( + getGetDelegatedResourceMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.proto.Response.DelegatedResourceMessage, + org.tron.trident.proto.Response.DelegatedResourceList>( + this, METHODID_GET_DELEGATED_RESOURCE))) + .addMethod( + getGetDelegatedResourceAccountIndexMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.BytesMessage, + org.tron.trident.proto.Response.DelegatedResourceAccountIndex>( + this, METHODID_GET_DELEGATED_RESOURCE_ACCOUNT_INDEX))) + .addMethod( + getListProposalsMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.EmptyMessage, + org.tron.trident.proto.Response.ProposalList>( + this, METHODID_LIST_PROPOSALS))) + .addMethod( + getGetProposalByIdMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.BytesMessage, + org.tron.trident.proto.Response.Proposal>( + this, METHODID_GET_PROPOSAL_BY_ID))) + .addMethod( + getGetPaginatedProposalListMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.PaginatedMessage, + org.tron.trident.proto.Response.ProposalList>( + this, METHODID_GET_PAGINATED_PROPOSAL_LIST))) + .addMethod( + getListExchangesMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.EmptyMessage, + org.tron.trident.proto.Response.ExchangeList>( + this, METHODID_LIST_EXCHANGES))) + .addMethod( + getGetExchangeByIdMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.BytesMessage, + org.tron.trident.proto.Response.Exchange>( + this, METHODID_GET_EXCHANGE_BY_ID))) + .addMethod( + getGetPaginatedExchangeListMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.PaginatedMessage, + org.tron.trident.proto.Response.ExchangeList>( + this, METHODID_GET_PAGINATED_EXCHANGE_LIST))) + .addMethod( + getScanShieldedTRC20NotesByIvkMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters, + org.tron.trident.proto.Response.DecryptNotesTRC20>( + this, METHODID_SCAN_SHIELDED_TRC20NOTES_BY_IVK))) + .addMethod( + getScanShieldedTRC20NotesByOvkMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters, + org.tron.trident.proto.Response.DecryptNotesTRC20>( + this, METHODID_SCAN_SHIELDED_TRC20NOTES_BY_OVK))) + .addMethod( + getIsShieldedTRC20ContractNoteSpentMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.NfTRC20Parameters, + org.tron.trident.proto.Response.NullifierResult>( + this, METHODID_IS_SHIELDED_TRC20CONTRACT_NOTE_SPENT))) + .addMethod( + getGetMarketOrderByAccountMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.BytesMessage, + org.tron.trident.proto.Response.MarketOrderList>( + this, METHODID_GET_MARKET_ORDER_BY_ACCOUNT))) + .addMethod( + getGetMarketOrderByIdMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.BytesMessage, + org.tron.trident.proto.Response.MarketOrder>( + this, METHODID_GET_MARKET_ORDER_BY_ID))) + .addMethod( + getGetMarketPriceByPairMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.proto.Response.MarketOrderPair, + org.tron.trident.proto.Response.MarketPriceList>( + this, METHODID_GET_MARKET_PRICE_BY_PAIR))) + .addMethod( + getGetMarketOrderListByPairMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.proto.Response.MarketOrderPair, + org.tron.trident.proto.Response.MarketOrderList>( + this, METHODID_GET_MARKET_ORDER_LIST_BY_PAIR))) + .addMethod( + getGetMarketPairListMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.EmptyMessage, + org.tron.trident.proto.Response.MarketOrderPairList>( + this, METHODID_GET_MARKET_PAIR_LIST))) + .addMethod( + getGetTransactionSignMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.proto.Response.TransactionSign, + org.tron.trident.proto.Chain.Transaction>( + this, METHODID_GET_TRANSACTION_SIGN))) + .addMethod( + getGetTransactionSign2Method(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.proto.Response.TransactionSign, + org.tron.trident.proto.Response.TransactionExtention>( + this, METHODID_GET_TRANSACTION_SIGN2))) + .addMethod( + getEasyTransferAssetMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage, + org.tron.trident.proto.Response.EasyTransferResponse>( + this, METHODID_EASY_TRANSFER_ASSET))) + .addMethod( + getEasyTransferAssetByPrivateMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage, + org.tron.trident.proto.Response.EasyTransferResponse>( + this, METHODID_EASY_TRANSFER_ASSET_BY_PRIVATE))) + .addMethod( + getEasyTransferMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.EasyTransferMessage, + org.tron.trident.proto.Response.EasyTransferResponse>( + this, METHODID_EASY_TRANSFER))) + .addMethod( + getEasyTransferByPrivateMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage, + org.tron.trident.proto.Response.EasyTransferResponse>( + this, METHODID_EASY_TRANSFER_BY_PRIVATE))) + .addMethod( + getCreateAddressMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.BytesMessage, + org.tron.trident.api.GrpcAPI.BytesMessage>( + this, METHODID_CREATE_ADDRESS))) + .addMethod( + getGenerateAddressMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.EmptyMessage, + org.tron.trident.proto.Response.AddressPrKeyPairMessage>( + this, METHODID_GENERATE_ADDRESS))) + .addMethod( + getAddSignMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.proto.Response.TransactionSign, + org.tron.trident.proto.Response.TransactionExtention>( + this, METHODID_ADD_SIGN))) + .addMethod( + getGetSpendingKeyMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.EmptyMessage, + org.tron.trident.api.GrpcAPI.BytesMessage>( + this, METHODID_GET_SPENDING_KEY))) + .addMethod( + getGetExpandedSpendingKeyMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.BytesMessage, + org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage>( + this, METHODID_GET_EXPANDED_SPENDING_KEY))) + .addMethod( + getGetAkFromAskMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.BytesMessage, + org.tron.trident.api.GrpcAPI.BytesMessage>( + this, METHODID_GET_AK_FROM_ASK))) + .addMethod( + getGetNkFromNskMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.BytesMessage, + org.tron.trident.api.GrpcAPI.BytesMessage>( + this, METHODID_GET_NK_FROM_NSK))) + .addMethod( + getGetIncomingViewingKeyMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.ViewingKeyMessage, + org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage>( + this, METHODID_GET_INCOMING_VIEWING_KEY))) + .addMethod( + getGetDiversifierMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.EmptyMessage, + org.tron.trident.api.GrpcAPI.DiversifierMessage>( + this, METHODID_GET_DIVERSIFIER))) + .addMethod( + getGetZenPaymentAddressMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage, + org.tron.trident.api.GrpcAPI.PaymentAddressMessage>( + this, METHODID_GET_ZEN_PAYMENT_ADDRESS))) + .addMethod( + getGetNewShieldedAddressMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.EmptyMessage, + org.tron.trident.api.GrpcAPI.ShieldedAddressInfo>( + this, METHODID_GET_NEW_SHIELDED_ADDRESS))) + .addMethod( + getGetRcmMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.EmptyMessage, + org.tron.trident.api.GrpcAPI.BytesMessage>( + this, METHODID_GET_RCM))) + .addMethod( + getCreateShieldedContractParametersMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters, + org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters>( + this, METHODID_CREATE_SHIELDED_CONTRACT_PARAMETERS))) + .addMethod( + getCreateShieldedContractParametersWithoutAskMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk, + org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters>( + this, METHODID_CREATE_SHIELDED_CONTRACT_PARAMETERS_WITHOUT_ASK))) + .addMethod( + getGetTriggerInputForShieldedTRC20ContractMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters, + org.tron.trident.api.GrpcAPI.BytesMessage>( + this, METHODID_GET_TRIGGER_INPUT_FOR_SHIELDED_TRC20CONTRACT))) + .addMethod( + getGetAvailableUnfreezeCountMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage, + org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage>( + this, METHODID_GET_AVAILABLE_UNFREEZE_COUNT))) + .addMethod( + getGetCanWithdrawUnfreezeAmountMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage, + org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage>( + this, METHODID_GET_CAN_WITHDRAW_UNFREEZE_AMOUNT))) + .addMethod( + getGetCanDelegatedMaxSizeMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage, + org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage>( + this, METHODID_GET_CAN_DELEGATED_MAX_SIZE))) + .addMethod( + getGetDelegatedResourceV2Method(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.proto.Response.DelegatedResourceMessage, + org.tron.trident.proto.Response.DelegatedResourceList>( + this, METHODID_GET_DELEGATED_RESOURCE_V2))) + .addMethod( + getGetDelegatedResourceAccountIndexV2Method(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.api.GrpcAPI.BytesMessage, + org.tron.trident.proto.Response.DelegatedResourceAccountIndex>( + this, METHODID_GET_DELEGATED_RESOURCE_ACCOUNT_INDEX_V2))) + .build(); } } /** */ - public static final class WalletBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private WalletBlockingStub( + public static final class WalletStub extends io.grpc.stub.AbstractAsyncStub { + private WalletStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected WalletBlockingStub build( + protected WalletStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WalletBlockingStub(channel, callOptions); + return new WalletStub(channel, callOptions); } /** @@ -7065,1341 +3644,1278 @@ protected WalletBlockingStub build( * Transactions: * */ - public org.tron.trident.proto.Response.TransactionReturn broadcastTransaction(org.tron.trident.proto.Chain.Transaction request) { - return blockingUnaryCall( - getChannel(), getBroadcastTransactionMethod(), getCallOptions(), request); - } - - /** - */ - public org.tron.trident.proto.Response.TransactionExtention createCommonTransaction(org.tron.trident.proto.Chain.Transaction request) { - return blockingUnaryCall( - getChannel(), getCreateCommonTransactionMethod(), getCallOptions(), request); - } - - /** - */ - public org.tron.trident.proto.Chain.Transaction createAccount(org.tron.trident.proto.Contract.AccountCreateContract request) { - return blockingUnaryCall( - getChannel(), getCreateAccountMethod(), getCallOptions(), request); - } - - /** - */ - public org.tron.trident.proto.Response.TransactionExtention createAccount2(org.tron.trident.proto.Contract.AccountCreateContract request) { - return blockingUnaryCall( - getChannel(), getCreateAccount2Method(), getCallOptions(), request); - } - - /** - */ - public org.tron.trident.proto.Chain.Transaction updateAccount(org.tron.trident.proto.Contract.AccountUpdateContract request) { - return blockingUnaryCall( - getChannel(), getUpdateAccountMethod(), getCallOptions(), request); - } - - /** - */ - public org.tron.trident.proto.Response.TransactionExtention updateAccount2(org.tron.trident.proto.Contract.AccountUpdateContract request) { - return blockingUnaryCall( - getChannel(), getUpdateAccount2Method(), getCallOptions(), request); - } - - /** - */ - public org.tron.trident.proto.Chain.Transaction setAccountId(org.tron.trident.proto.Contract.SetAccountIdContract request) { - return blockingUnaryCall( - getChannel(), getSetAccountIdMethod(), getCallOptions(), request); - } - - /** - */ - public org.tron.trident.proto.Response.TransactionExtention accountPermissionUpdate(org.tron.trident.proto.Contract.AccountPermissionUpdateContract request) { - return blockingUnaryCall( - getChannel(), getAccountPermissionUpdateMethod(), getCallOptions(), request); - } - - /** - */ - public org.tron.trident.proto.Chain.Transaction createTransaction(org.tron.trident.proto.Contract.TransferContract request) { - return blockingUnaryCall( - getChannel(), getCreateTransactionMethod(), getCallOptions(), request); - } - - /** - */ - public org.tron.trident.proto.Response.TransactionExtention createTransaction2(org.tron.trident.proto.Contract.TransferContract request) { - return blockingUnaryCall( - getChannel(), getCreateTransaction2Method(), getCallOptions(), request); - } - - /** - */ - public org.tron.trident.proto.Chain.Transaction createAssetIssue(org.tron.trident.proto.Contract.AssetIssueContract request) { - return blockingUnaryCall( - getChannel(), getCreateAssetIssueMethod(), getCallOptions(), request); - } - - /** - */ - public org.tron.trident.proto.Response.TransactionExtention createAssetIssue2(org.tron.trident.proto.Contract.AssetIssueContract request) { - return blockingUnaryCall( - getChannel(), getCreateAssetIssue2Method(), getCallOptions(), request); - } - - /** - */ - public org.tron.trident.proto.Chain.Transaction updateAsset(org.tron.trident.proto.Contract.UpdateAssetContract request) { - return blockingUnaryCall( - getChannel(), getUpdateAssetMethod(), getCallOptions(), request); - } - - /** - */ - public org.tron.trident.proto.Response.TransactionExtention updateAsset2(org.tron.trident.proto.Contract.UpdateAssetContract request) { - return blockingUnaryCall( - getChannel(), getUpdateAsset2Method(), getCallOptions(), request); - } - - /** - */ - public org.tron.trident.proto.Chain.Transaction transferAsset(org.tron.trident.proto.Contract.TransferAssetContract request) { - return blockingUnaryCall( - getChannel(), getTransferAssetMethod(), getCallOptions(), request); - } - - /** - */ - public org.tron.trident.proto.Response.TransactionExtention transferAsset2(org.tron.trident.proto.Contract.TransferAssetContract request) { - return blockingUnaryCall( - getChannel(), getTransferAsset2Method(), getCallOptions(), request); - } - - /** - */ - public org.tron.trident.proto.Chain.Transaction participateAssetIssue(org.tron.trident.proto.Contract.ParticipateAssetIssueContract request) { - return blockingUnaryCall( - getChannel(), getParticipateAssetIssueMethod(), getCallOptions(), request); - } - - /** - */ - public org.tron.trident.proto.Response.TransactionExtention participateAssetIssue2(org.tron.trident.proto.Contract.ParticipateAssetIssueContract request) { - return blockingUnaryCall( - getChannel(), getParticipateAssetIssue2Method(), getCallOptions(), request); - } - - /** - */ - public org.tron.trident.proto.Chain.Transaction unfreezeAsset(org.tron.trident.proto.Contract.UnfreezeAssetContract request) { - return blockingUnaryCall( - getChannel(), getUnfreezeAssetMethod(), getCallOptions(), request); + public void broadcastTransaction(org.tron.trident.proto.Chain.Transaction request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getBroadcastTransactionMethod(), getCallOptions()), request, responseObserver); } /** + *
+     * The real APIs:
+     * 
*/ - public org.tron.trident.proto.Response.TransactionExtention unfreezeAsset2(org.tron.trident.proto.Contract.UnfreezeAssetContract request) { - return blockingUnaryCall( - getChannel(), getUnfreezeAsset2Method(), getCallOptions(), request); + public void getNodeInfo(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetNodeInfoMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Chain.Transaction createWitness(org.tron.trident.proto.Contract.WitnessCreateContract request) { - return blockingUnaryCall( - getChannel(), getCreateWitnessMethod(), getCallOptions(), request); + public void listNodes(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListNodesMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.TransactionExtention createWitness2(org.tron.trident.proto.Contract.WitnessCreateContract request) { - return blockingUnaryCall( - getChannel(), getCreateWitness2Method(), getCallOptions(), request); + public void getChainParameters(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetChainParametersMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Chain.Transaction updateWitness(org.tron.trident.proto.Contract.WitnessUpdateContract request) { - return blockingUnaryCall( - getChannel(), getUpdateWitnessMethod(), getCallOptions(), request); + public void totalTransaction(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getTotalTransactionMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.TransactionExtention updateWitness2(org.tron.trident.proto.Contract.WitnessUpdateContract request) { - return blockingUnaryCall( - getChannel(), getUpdateWitness2Method(), getCallOptions(), request); + public void getNextMaintenanceTime(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetNextMaintenanceTimeMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.TransactionExtention updateBrokerage(org.tron.trident.proto.Contract.UpdateBrokerageContract request) { - return blockingUnaryCall( - getChannel(), getUpdateBrokerageMethod(), getCallOptions(), request); + public void getTransactionSignWeight(org.tron.trident.proto.Chain.Transaction request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetTransactionSignWeightMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Chain.Transaction voteWitnessAccount(org.tron.trident.proto.Contract.VoteWitnessContract request) { - return blockingUnaryCall( - getChannel(), getVoteWitnessAccountMethod(), getCallOptions(), request); + public void getTransactionApprovedList(org.tron.trident.proto.Chain.Transaction request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetTransactionApprovedListMethod(), getCallOptions()), request, responseObserver); } /** + *
+     * FLAW: Although the parameters' type is changed, it is still bad API design.
+     * 
*/ - public org.tron.trident.proto.Response.TransactionExtention voteWitnessAccount2(org.tron.trident.proto.Contract.VoteWitnessContract request) { - return blockingUnaryCall( - getChannel(), getVoteWitnessAccount2Method(), getCallOptions(), request); + public void getAccount(org.tron.trident.api.GrpcAPI.AccountAddressMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetAccountMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Chain.Transaction freezeBalance(org.tron.trident.proto.Contract.FreezeBalanceContract request) { - return blockingUnaryCall( - getChannel(), getFreezeBalanceMethod(), getCallOptions(), request); + public void getAccountById(org.tron.trident.api.GrpcAPI.AccountIdMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetAccountByIdMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.TransactionExtention freezeBalance2(org.tron.trident.proto.Contract.FreezeBalanceContract request) { - return blockingUnaryCall( - getChannel(), getFreezeBalance2Method(), getCallOptions(), request); + public void getAccountNet(org.tron.trident.api.GrpcAPI.AccountAddressMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetAccountNetMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Chain.Transaction unfreezeBalance(org.tron.trident.proto.Contract.UnfreezeBalanceContract request) { - return blockingUnaryCall( - getChannel(), getUnfreezeBalanceMethod(), getCallOptions(), request); + public void getAccountResource(org.tron.trident.api.GrpcAPI.AccountAddressMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetAccountResourceMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.TransactionExtention unfreezeBalance2(org.tron.trident.proto.Contract.UnfreezeBalanceContract request) { - return blockingUnaryCall( - getChannel(), getUnfreezeBalance2Method(), getCallOptions(), request); + public void getAssetIssueByAccount(org.tron.trident.api.GrpcAPI.AccountAddressMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetAssetIssueByAccountMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Chain.Transaction withdrawBalance(org.tron.trident.proto.Contract.WithdrawBalanceContract request) { - return blockingUnaryCall( - getChannel(), getWithdrawBalanceMethod(), getCallOptions(), request); + public void getAssetIssueByName(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetAssetIssueByNameMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.TransactionExtention withdrawBalance2(org.tron.trident.proto.Contract.WithdrawBalanceContract request) { - return blockingUnaryCall( - getChannel(), getWithdrawBalance2Method(), getCallOptions(), request); + public void getAssetIssueListByName(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetAssetIssueListByNameMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.TransactionExtention proposalCreate(org.tron.trident.proto.Contract.ProposalCreateContract request) { - return blockingUnaryCall( - getChannel(), getProposalCreateMethod(), getCallOptions(), request); + public void getAssetIssueById(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetAssetIssueByIdMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.TransactionExtention proposalApprove(org.tron.trident.proto.Contract.ProposalApproveContract request) { - return blockingUnaryCall( - getChannel(), getProposalApproveMethod(), getCallOptions(), request); + public void getAssetIssueList(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetAssetIssueListMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.TransactionExtention proposalDelete(org.tron.trident.proto.Contract.ProposalDeleteContract request) { - return blockingUnaryCall( - getChannel(), getProposalDeleteMethod(), getCallOptions(), request); + public void getPaginatedAssetIssueList(org.tron.trident.api.GrpcAPI.PaginatedMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetPaginatedAssetIssueListMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.TransactionExtention deployContract(org.tron.trident.proto.Contract.CreateSmartContract request) { - return blockingUnaryCall( - getChannel(), getDeployContractMethod(), getCallOptions(), request); + public void getNowBlock(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetNowBlockMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.TransactionExtention updateSetting(org.tron.trident.proto.Contract.UpdateSettingContract request) { - return blockingUnaryCall( - getChannel(), getUpdateSettingMethod(), getCallOptions(), request); + public void getNowBlock2(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetNowBlock2Method(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.TransactionExtention updateEnergyLimit(org.tron.trident.proto.Contract.UpdateEnergyLimitContract request) { - return blockingUnaryCall( - getChannel(), getUpdateEnergyLimitMethod(), getCallOptions(), request); + public void getBlockByNum(org.tron.trident.api.GrpcAPI.NumberMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetBlockByNumMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.TransactionExtention clearContractABI(org.tron.trident.proto.Contract.ClearABIContract request) { - return blockingUnaryCall( - getChannel(), getClearContractABIMethod(), getCallOptions(), request); + public void getBlockByNum2(org.tron.trident.api.GrpcAPI.NumberMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetBlockByNum2Method(), getCallOptions()), request, responseObserver); } /** + *
+     * NOTE: `GetBlockById2` is missing. The closest is `GetBlockByLatestNum2`.
+     * 
*/ - public org.tron.trident.proto.Response.TransactionExtention triggerContract(org.tron.trident.proto.Contract.TriggerSmartContract request) { - return blockingUnaryCall( - getChannel(), getTriggerContractMethod(), getCallOptions(), request); + public void getBlockById(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetBlockByIdMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.TransactionExtention triggerConstantContract(org.tron.trident.proto.Contract.TriggerSmartContract request) { - return blockingUnaryCall( - getChannel(), getTriggerConstantContractMethod(), getCallOptions(), request); + public void getBlockByLimitNext(org.tron.trident.api.GrpcAPI.BlockLimit request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetBlockByLimitNextMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.TransactionExtention exchangeCreate(org.tron.trident.proto.Contract.ExchangeCreateContract request) { - return blockingUnaryCall( - getChannel(), getExchangeCreateMethod(), getCallOptions(), request); + public void getBlockByLimitNext2(org.tron.trident.api.GrpcAPI.BlockLimit request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetBlockByLimitNext2Method(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.TransactionExtention exchangeInject(org.tron.trident.proto.Contract.ExchangeInjectContract request) { - return blockingUnaryCall( - getChannel(), getExchangeInjectMethod(), getCallOptions(), request); + public void getBlockByLatestNum(org.tron.trident.api.GrpcAPI.NumberMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetBlockByLatestNumMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.TransactionExtention exchangeWithdraw(org.tron.trident.proto.Contract.ExchangeWithdrawContract request) { - return blockingUnaryCall( - getChannel(), getExchangeWithdrawMethod(), getCallOptions(), request); + public void getBlockByLatestNum2(org.tron.trident.api.GrpcAPI.NumberMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetBlockByLatestNum2Method(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.TransactionExtention exchangeTransaction(org.tron.trident.proto.Contract.ExchangeTransactionContract request) { - return blockingUnaryCall( - getChannel(), getExchangeTransactionMethod(), getCallOptions(), request); + public void getTransactionCountByBlockNum(org.tron.trident.api.GrpcAPI.NumberMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetTransactionCountByBlockNumMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.TransactionExtention marketSellAsset(org.tron.trident.proto.Contract.MarketSellAssetContract request) { - return blockingUnaryCall( - getChannel(), getMarketSellAssetMethod(), getCallOptions(), request); + public void getTransactionById(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetTransactionByIdMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.TransactionExtention marketCancelOrder(org.tron.trident.proto.Contract.MarketCancelOrderContract request) { - return blockingUnaryCall( - getChannel(), getMarketCancelOrderMethod(), getCallOptions(), request); + public void getTransactionInfoById(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetTransactionInfoByIdMethod(), getCallOptions()), request, responseObserver); } /** - *
-     * The real APIs:
-     * 
*/ - public org.tron.trident.proto.Response.NodeInfo getNodeInfo(org.tron.trident.api.GrpcAPI.EmptyMessage request) { - return blockingUnaryCall( - getChannel(), getGetNodeInfoMethod(), getCallOptions(), request); + public void getTransactionInfoByBlockNum(org.tron.trident.api.GrpcAPI.NumberMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetTransactionInfoByBlockNumMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.NodeList listNodes(org.tron.trident.api.GrpcAPI.EmptyMessage request) { - return blockingUnaryCall( - getChannel(), getListNodesMethod(), getCallOptions(), request); + public void getContract(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetContractMethod(), getCallOptions()), request, responseObserver); } /** + *
+     * FLAW: Abusing of `info`. Should be a `GetContractCode`.
+     * 
*/ - public org.tron.trident.proto.Response.ChainParameters getChainParameters(org.tron.trident.api.GrpcAPI.EmptyMessage request) { - return blockingUnaryCall( - getChannel(), getGetChainParametersMethod(), getCallOptions(), request); + public void getContractInfo(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetContractInfoMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.api.GrpcAPI.NumberMessage totalTransaction(org.tron.trident.api.GrpcAPI.EmptyMessage request) { - return blockingUnaryCall( - getChannel(), getTotalTransactionMethod(), getCallOptions(), request); + public void listWitnesses(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListWitnessesMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.api.GrpcAPI.NumberMessage getNextMaintenanceTime(org.tron.trident.api.GrpcAPI.EmptyMessage request) { - return blockingUnaryCall( - getChannel(), getGetNextMaintenanceTimeMethod(), getCallOptions(), request); + public void getBrokerageInfo(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetBrokerageInfoMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.TransactionSignWeight getTransactionSignWeight(org.tron.trident.proto.Chain.Transaction request) { - return blockingUnaryCall( - getChannel(), getGetTransactionSignWeightMethod(), getCallOptions(), request); + public void getRewardInfo(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetRewardInfoMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.TransactionApprovedList getTransactionApprovedList(org.tron.trident.proto.Chain.Transaction request) { - return blockingUnaryCall( - getChannel(), getGetTransactionApprovedListMethod(), getCallOptions(), request); + public void getDelegatedResource(org.tron.trident.proto.Response.DelegatedResourceMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetDelegatedResourceMethod(), getCallOptions()), request, responseObserver); } /** - *
-     * FLAW: Although the parameters' type is changed, it is still bad API design.
-     * 
*/ - public org.tron.trident.proto.Response.Account getAccount(org.tron.trident.api.GrpcAPI.AccountAddressMessage request) { - return blockingUnaryCall( - getChannel(), getGetAccountMethod(), getCallOptions(), request); + public void getDelegatedResourceAccountIndex(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetDelegatedResourceAccountIndexMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.Account getAccountById(org.tron.trident.api.GrpcAPI.AccountIdMessage request) { - return blockingUnaryCall( - getChannel(), getGetAccountByIdMethod(), getCallOptions(), request); + public void listProposals(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListProposalsMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.AccountNetMessage getAccountNet(org.tron.trident.api.GrpcAPI.AccountAddressMessage request) { - return blockingUnaryCall( - getChannel(), getGetAccountNetMethod(), getCallOptions(), request); + public void getProposalById(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetProposalByIdMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.AccountResourceMessage getAccountResource(org.tron.trident.api.GrpcAPI.AccountAddressMessage request) { - return blockingUnaryCall( - getChannel(), getGetAccountResourceMethod(), getCallOptions(), request); + public void getPaginatedProposalList(org.tron.trident.api.GrpcAPI.PaginatedMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetPaginatedProposalListMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.AssetIssueList getAssetIssueByAccount(org.tron.trident.api.GrpcAPI.AccountAddressMessage request) { - return blockingUnaryCall( - getChannel(), getGetAssetIssueByAccountMethod(), getCallOptions(), request); + public void listExchanges(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListExchangesMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Contract.AssetIssueContract getAssetIssueByName(org.tron.trident.api.GrpcAPI.BytesMessage request) { - return blockingUnaryCall( - getChannel(), getGetAssetIssueByNameMethod(), getCallOptions(), request); + public void getExchangeById(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetExchangeByIdMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.AssetIssueList getAssetIssueListByName(org.tron.trident.api.GrpcAPI.BytesMessage request) { - return blockingUnaryCall( - getChannel(), getGetAssetIssueListByNameMethod(), getCallOptions(), request); + public void getPaginatedExchangeList(org.tron.trident.api.GrpcAPI.PaginatedMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetPaginatedExchangeListMethod(), getCallOptions()), request, responseObserver); } /** + *
+     * Shielded helpers:
+     * 
*/ - public org.tron.trident.proto.Contract.AssetIssueContract getAssetIssueById(org.tron.trident.api.GrpcAPI.BytesMessage request) { - return blockingUnaryCall( - getChannel(), getGetAssetIssueByIdMethod(), getCallOptions(), request); + public void scanShieldedTRC20NotesByIvk(org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getScanShieldedTRC20NotesByIvkMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.AssetIssueList getAssetIssueList(org.tron.trident.api.GrpcAPI.EmptyMessage request) { - return blockingUnaryCall( - getChannel(), getGetAssetIssueListMethod(), getCallOptions(), request); + public void scanShieldedTRC20NotesByOvk(org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getScanShieldedTRC20NotesByOvkMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.AssetIssueList getPaginatedAssetIssueList(org.tron.trident.api.GrpcAPI.PaginatedMessage request) { - return blockingUnaryCall( - getChannel(), getGetPaginatedAssetIssueListMethod(), getCallOptions(), request); + public void isShieldedTRC20ContractNoteSpent(org.tron.trident.api.GrpcAPI.NfTRC20Parameters request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getIsShieldedTRC20ContractNoteSpentMethod(), getCallOptions()), request, responseObserver); } /** + *
+     * Market API:
+     * 
*/ - public org.tron.trident.proto.Chain.Block getNowBlock(org.tron.trident.api.GrpcAPI.EmptyMessage request) { - return blockingUnaryCall( - getChannel(), getGetNowBlockMethod(), getCallOptions(), request); + public void getMarketOrderByAccount(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetMarketOrderByAccountMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.BlockExtention getNowBlock2(org.tron.trident.api.GrpcAPI.EmptyMessage request) { - return blockingUnaryCall( - getChannel(), getGetNowBlock2Method(), getCallOptions(), request); + public void getMarketOrderById(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetMarketOrderByIdMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Chain.Block getBlockByNum(org.tron.trident.api.GrpcAPI.NumberMessage request) { - return blockingUnaryCall( - getChannel(), getGetBlockByNumMethod(), getCallOptions(), request); + public void getMarketPriceByPair(org.tron.trident.proto.Response.MarketOrderPair request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetMarketPriceByPairMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.BlockExtention getBlockByNum2(org.tron.trident.api.GrpcAPI.NumberMessage request) { - return blockingUnaryCall( - getChannel(), getGetBlockByNum2Method(), getCallOptions(), request); + public void getMarketOrderListByPair(org.tron.trident.proto.Response.MarketOrderPair request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetMarketOrderListByPairMethod(), getCallOptions()), request, responseObserver); } /** - *
-     * NOTE: `GetBlockById2` is missing. The closest is `GetBlockByLatestNum2`.
-     * 
*/ - public org.tron.trident.proto.Chain.Block getBlockById(org.tron.trident.api.GrpcAPI.BytesMessage request) { - return blockingUnaryCall( - getChannel(), getGetBlockByIdMethod(), getCallOptions(), request); + public void getMarketPairList(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetMarketPairListMethod(), getCallOptions()), request, responseObserver); } /** + *
+     * FLAW: Unsafe junk.
+     * 
*/ - public org.tron.trident.proto.Response.BlockList getBlockByLimitNext(org.tron.trident.api.GrpcAPI.BlockLimit request) { - return blockingUnaryCall( - getChannel(), getGetBlockByLimitNextMethod(), getCallOptions(), request); + public void getTransactionSign(org.tron.trident.proto.Response.TransactionSign request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetTransactionSignMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.BlockListExtention getBlockByLimitNext2(org.tron.trident.api.GrpcAPI.BlockLimit request) { - return blockingUnaryCall( - getChannel(), getGetBlockByLimitNext2Method(), getCallOptions(), request); + public void getTransactionSign2(org.tron.trident.proto.Response.TransactionSign request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetTransactionSign2Method(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.BlockList getBlockByLatestNum(org.tron.trident.api.GrpcAPI.NumberMessage request) { - return blockingUnaryCall( - getChannel(), getGetBlockByLatestNumMethod(), getCallOptions(), request); + public void easyTransferAsset(org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getEasyTransferAssetMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.BlockListExtention getBlockByLatestNum2(org.tron.trident.api.GrpcAPI.NumberMessage request) { - return blockingUnaryCall( - getChannel(), getGetBlockByLatestNum2Method(), getCallOptions(), request); + public void easyTransferAssetByPrivate(org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getEasyTransferAssetByPrivateMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.api.GrpcAPI.NumberMessage getTransactionCountByBlockNum(org.tron.trident.api.GrpcAPI.NumberMessage request) { - return blockingUnaryCall( - getChannel(), getGetTransactionCountByBlockNumMethod(), getCallOptions(), request); + public void easyTransfer(org.tron.trident.api.GrpcAPI.EasyTransferMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getEasyTransferMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Chain.Transaction getTransactionById(org.tron.trident.api.GrpcAPI.BytesMessage request) { - return blockingUnaryCall( - getChannel(), getGetTransactionByIdMethod(), getCallOptions(), request); + public void easyTransferByPrivate(org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getEasyTransferByPrivateMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.TransactionInfo getTransactionInfoById(org.tron.trident.api.GrpcAPI.BytesMessage request) { - return blockingUnaryCall( - getChannel(), getGetTransactionInfoByIdMethod(), getCallOptions(), request); + public void createAddress(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateAddressMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.TransactionInfoList getTransactionInfoByBlockNum(org.tron.trident.api.GrpcAPI.NumberMessage request) { - return blockingUnaryCall( - getChannel(), getGetTransactionInfoByBlockNumMethod(), getCallOptions(), request); + public void generateAddress(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGenerateAddressMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Common.SmartContract getContract(org.tron.trident.api.GrpcAPI.BytesMessage request) { - return blockingUnaryCall( - getChannel(), getGetContractMethod(), getCallOptions(), request); + public void addSign(org.tron.trident.proto.Response.TransactionSign request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getAddSignMethod(), getCallOptions()), request, responseObserver); } /** *
-     * FLAW: Abusing of `info`. Should be a `GetContractCode`.
+     * FLAW: Unsafe shielded junk(should be implemented offline).
      * 
*/ - public org.tron.trident.proto.Response.SmartContractDataWrapper getContractInfo(org.tron.trident.api.GrpcAPI.BytesMessage request) { - return blockingUnaryCall( - getChannel(), getGetContractInfoMethod(), getCallOptions(), request); + public void getSpendingKey(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetSpendingKeyMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.WitnessList listWitnesses(org.tron.trident.api.GrpcAPI.EmptyMessage request) { - return blockingUnaryCall( - getChannel(), getListWitnessesMethod(), getCallOptions(), request); + public void getExpandedSpendingKey(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetExpandedSpendingKeyMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.api.GrpcAPI.NumberMessage getBrokerageInfo(org.tron.trident.api.GrpcAPI.BytesMessage request) { - return blockingUnaryCall( - getChannel(), getGetBrokerageInfoMethod(), getCallOptions(), request); + public void getAkFromAsk(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetAkFromAskMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.api.GrpcAPI.NumberMessage getRewardInfo(org.tron.trident.api.GrpcAPI.BytesMessage request) { - return blockingUnaryCall( - getChannel(), getGetRewardInfoMethod(), getCallOptions(), request); + public void getNkFromNsk(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetNkFromNskMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.DelegatedResourceList getDelegatedResource(org.tron.trident.proto.Response.DelegatedResourceMessage request) { - return blockingUnaryCall( - getChannel(), getGetDelegatedResourceMethod(), getCallOptions(), request); + public void getIncomingViewingKey(org.tron.trident.api.GrpcAPI.ViewingKeyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetIncomingViewingKeyMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.DelegatedResourceAccountIndex getDelegatedResourceAccountIndex(org.tron.trident.api.GrpcAPI.BytesMessage request) { - return blockingUnaryCall( - getChannel(), getGetDelegatedResourceAccountIndexMethod(), getCallOptions(), request); + public void getDiversifier(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetDiversifierMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.ProposalList listProposals(org.tron.trident.api.GrpcAPI.EmptyMessage request) { - return blockingUnaryCall( - getChannel(), getListProposalsMethod(), getCallOptions(), request); + public void getZenPaymentAddress(org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetZenPaymentAddressMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.Proposal getProposalById(org.tron.trident.api.GrpcAPI.BytesMessage request) { - return blockingUnaryCall( - getChannel(), getGetProposalByIdMethod(), getCallOptions(), request); + public void getNewShieldedAddress(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetNewShieldedAddressMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.ProposalList getPaginatedProposalList(org.tron.trident.api.GrpcAPI.PaginatedMessage request) { - return blockingUnaryCall( - getChannel(), getGetPaginatedProposalListMethod(), getCallOptions(), request); + public void getRcm(org.tron.trident.api.GrpcAPI.EmptyMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetRcmMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.ExchangeList listExchanges(org.tron.trident.api.GrpcAPI.EmptyMessage request) { - return blockingUnaryCall( - getChannel(), getListExchangesMethod(), getCallOptions(), request); + public void createShieldedContractParameters(org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateShieldedContractParametersMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.Exchange getExchangeById(org.tron.trident.api.GrpcAPI.BytesMessage request) { - return blockingUnaryCall( - getChannel(), getGetExchangeByIdMethod(), getCallOptions(), request); + public void createShieldedContractParametersWithoutAsk(org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateShieldedContractParametersWithoutAskMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.ExchangeList getPaginatedExchangeList(org.tron.trident.api.GrpcAPI.PaginatedMessage request) { - return blockingUnaryCall( - getChannel(), getGetPaginatedExchangeListMethod(), getCallOptions(), request); + public void getTriggerInputForShieldedTRC20Contract(org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetTriggerInputForShieldedTRC20ContractMethod(), getCallOptions()), request, responseObserver); } /** *
-     * Shielded helpers:
+     *  rpc FreezeBalanceV2 (FreezeBalanceV2Contract) returns (TransactionExtention) {}
+     *  rpc UnfreezeBalanceV2 (UnfreezeBalanceV2Contract) returns (TransactionExtention) {}
+     *  rpc DelegateResource (DelegateResourceContract) returns (TransactionExtention) {}
+     *  rpc UnDelegateResource (UnDelegateResourceContract) returns (TransactionExtention) {}
+     *  rpc WithdrawExpireUnfreeze (WithdrawExpireUnfreezeContract) returns (TransactionExtention) {}
      * 
*/ - public org.tron.trident.proto.Response.DecryptNotesTRC20 scanShieldedTRC20NotesByIvk(org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters request) { - return blockingUnaryCall( - getChannel(), getScanShieldedTRC20NotesByIvkMethod(), getCallOptions(), request); + public void getAvailableUnfreezeCount(org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetAvailableUnfreezeCountMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.DecryptNotesTRC20 scanShieldedTRC20NotesByOvk(org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters request) { - return blockingUnaryCall( - getChannel(), getScanShieldedTRC20NotesByOvkMethod(), getCallOptions(), request); + public void getCanWithdrawUnfreezeAmount(org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetCanWithdrawUnfreezeAmountMethod(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.NullifierResult isShieldedTRC20ContractNoteSpent(org.tron.trident.api.GrpcAPI.NfTRC20Parameters request) { - return blockingUnaryCall( - getChannel(), getIsShieldedTRC20ContractNoteSpentMethod(), getCallOptions(), request); + public void getCanDelegatedMaxSize(org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetCanDelegatedMaxSizeMethod(), getCallOptions()), request, responseObserver); } /** - *
-     * Market API:
-     * 
*/ - public org.tron.trident.proto.Response.MarketOrderList getMarketOrderByAccount(org.tron.trident.api.GrpcAPI.BytesMessage request) { - return blockingUnaryCall( - getChannel(), getGetMarketOrderByAccountMethod(), getCallOptions(), request); + public void getDelegatedResourceV2(org.tron.trident.proto.Response.DelegatedResourceMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetDelegatedResourceV2Method(), getCallOptions()), request, responseObserver); } /** */ - public org.tron.trident.proto.Response.MarketOrder getMarketOrderById(org.tron.trident.api.GrpcAPI.BytesMessage request) { - return blockingUnaryCall( - getChannel(), getGetMarketOrderByIdMethod(), getCallOptions(), request); + public void getDelegatedResourceAccountIndexV2(org.tron.trident.api.GrpcAPI.BytesMessage request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetDelegatedResourceAccountIndexV2Method(), getCallOptions()), request, responseObserver); } + } - /** - */ - public org.tron.trident.proto.Response.MarketPriceList getMarketPriceByPair(org.tron.trident.proto.Response.MarketOrderPair request) { - return blockingUnaryCall( - getChannel(), getGetMarketPriceByPairMethod(), getCallOptions(), request); + /** + */ + public static final class WalletBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private WalletBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); } - /** - */ - public org.tron.trident.proto.Response.MarketOrderList getMarketOrderListByPair(org.tron.trident.proto.Response.MarketOrderPair request) { - return blockingUnaryCall( - getChannel(), getGetMarketOrderListByPairMethod(), getCallOptions(), request); + @java.lang.Override + protected WalletBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WalletBlockingStub(channel, callOptions); } /** + *
+     * Transactions:
+     * 
*/ - public org.tron.trident.proto.Response.MarketOrderPairList getMarketPairList(org.tron.trident.api.GrpcAPI.EmptyMessage request) { + public org.tron.trident.proto.Response.TransactionReturn broadcastTransaction(org.tron.trident.proto.Chain.Transaction request) { return blockingUnaryCall( - getChannel(), getGetMarketPairListMethod(), getCallOptions(), request); + getChannel(), getBroadcastTransactionMethod(), getCallOptions(), request); } /** *
-     * FLAW: Unsafe junk.
+     * The real APIs:
      * 
*/ - public org.tron.trident.proto.Chain.Transaction getTransactionSign(org.tron.trident.proto.Response.TransactionSign request) { + public org.tron.trident.proto.Response.NodeInfo getNodeInfo(org.tron.trident.api.GrpcAPI.EmptyMessage request) { return blockingUnaryCall( - getChannel(), getGetTransactionSignMethod(), getCallOptions(), request); + getChannel(), getGetNodeInfoMethod(), getCallOptions(), request); } /** */ - public org.tron.trident.proto.Response.TransactionExtention getTransactionSign2(org.tron.trident.proto.Response.TransactionSign request) { + public org.tron.trident.proto.Response.NodeList listNodes(org.tron.trident.api.GrpcAPI.EmptyMessage request) { return blockingUnaryCall( - getChannel(), getGetTransactionSign2Method(), getCallOptions(), request); + getChannel(), getListNodesMethod(), getCallOptions(), request); } /** */ - public org.tron.trident.proto.Response.EasyTransferResponse easyTransferAsset(org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage request) { + public org.tron.trident.proto.Response.ChainParameters getChainParameters(org.tron.trident.api.GrpcAPI.EmptyMessage request) { return blockingUnaryCall( - getChannel(), getEasyTransferAssetMethod(), getCallOptions(), request); + getChannel(), getGetChainParametersMethod(), getCallOptions(), request); } /** */ - public org.tron.trident.proto.Response.EasyTransferResponse easyTransferAssetByPrivate(org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage request) { + public org.tron.trident.api.GrpcAPI.NumberMessage totalTransaction(org.tron.trident.api.GrpcAPI.EmptyMessage request) { return blockingUnaryCall( - getChannel(), getEasyTransferAssetByPrivateMethod(), getCallOptions(), request); + getChannel(), getTotalTransactionMethod(), getCallOptions(), request); } /** */ - public org.tron.trident.proto.Response.EasyTransferResponse easyTransfer(org.tron.trident.api.GrpcAPI.EasyTransferMessage request) { + public org.tron.trident.api.GrpcAPI.NumberMessage getNextMaintenanceTime(org.tron.trident.api.GrpcAPI.EmptyMessage request) { return blockingUnaryCall( - getChannel(), getEasyTransferMethod(), getCallOptions(), request); + getChannel(), getGetNextMaintenanceTimeMethod(), getCallOptions(), request); } /** */ - public org.tron.trident.proto.Response.EasyTransferResponse easyTransferByPrivate(org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage request) { + public org.tron.trident.proto.Response.TransactionSignWeight getTransactionSignWeight(org.tron.trident.proto.Chain.Transaction request) { return blockingUnaryCall( - getChannel(), getEasyTransferByPrivateMethod(), getCallOptions(), request); + getChannel(), getGetTransactionSignWeightMethod(), getCallOptions(), request); } /** */ - public org.tron.trident.api.GrpcAPI.BytesMessage createAddress(org.tron.trident.api.GrpcAPI.BytesMessage request) { + public org.tron.trident.proto.Response.TransactionApprovedList getTransactionApprovedList(org.tron.trident.proto.Chain.Transaction request) { return blockingUnaryCall( - getChannel(), getCreateAddressMethod(), getCallOptions(), request); + getChannel(), getGetTransactionApprovedListMethod(), getCallOptions(), request); } /** + *
+     * FLAW: Although the parameters' type is changed, it is still bad API design.
+     * 
*/ - public org.tron.trident.proto.Response.AddressPrKeyPairMessage generateAddress(org.tron.trident.api.GrpcAPI.EmptyMessage request) { + public org.tron.trident.proto.Response.Account getAccount(org.tron.trident.api.GrpcAPI.AccountAddressMessage request) { return blockingUnaryCall( - getChannel(), getGenerateAddressMethod(), getCallOptions(), request); + getChannel(), getGetAccountMethod(), getCallOptions(), request); } /** */ - public org.tron.trident.proto.Response.TransactionExtention addSign(org.tron.trident.proto.Response.TransactionSign request) { + public org.tron.trident.proto.Response.Account getAccountById(org.tron.trident.api.GrpcAPI.AccountIdMessage request) { return blockingUnaryCall( - getChannel(), getAddSignMethod(), getCallOptions(), request); + getChannel(), getGetAccountByIdMethod(), getCallOptions(), request); } /** - *
-     * FLAW: Unsafe shielded junk(should be implemented offline).
-     * 
*/ - public org.tron.trident.api.GrpcAPI.BytesMessage getSpendingKey(org.tron.trident.api.GrpcAPI.EmptyMessage request) { + public org.tron.trident.proto.Response.AccountNetMessage getAccountNet(org.tron.trident.api.GrpcAPI.AccountAddressMessage request) { return blockingUnaryCall( - getChannel(), getGetSpendingKeyMethod(), getCallOptions(), request); + getChannel(), getGetAccountNetMethod(), getCallOptions(), request); } /** */ - public org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage getExpandedSpendingKey(org.tron.trident.api.GrpcAPI.BytesMessage request) { + public org.tron.trident.proto.Response.AccountResourceMessage getAccountResource(org.tron.trident.api.GrpcAPI.AccountAddressMessage request) { return blockingUnaryCall( - getChannel(), getGetExpandedSpendingKeyMethod(), getCallOptions(), request); + getChannel(), getGetAccountResourceMethod(), getCallOptions(), request); } /** */ - public org.tron.trident.api.GrpcAPI.BytesMessage getAkFromAsk(org.tron.trident.api.GrpcAPI.BytesMessage request) { + public org.tron.trident.proto.Response.AssetIssueList getAssetIssueByAccount(org.tron.trident.api.GrpcAPI.AccountAddressMessage request) { return blockingUnaryCall( - getChannel(), getGetAkFromAskMethod(), getCallOptions(), request); + getChannel(), getGetAssetIssueByAccountMethod(), getCallOptions(), request); } /** */ - public org.tron.trident.api.GrpcAPI.BytesMessage getNkFromNsk(org.tron.trident.api.GrpcAPI.BytesMessage request) { + public org.tron.trident.proto.Contract.AssetIssueContract getAssetIssueByName(org.tron.trident.api.GrpcAPI.BytesMessage request) { return blockingUnaryCall( - getChannel(), getGetNkFromNskMethod(), getCallOptions(), request); + getChannel(), getGetAssetIssueByNameMethod(), getCallOptions(), request); } /** */ - public org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage getIncomingViewingKey(org.tron.trident.api.GrpcAPI.ViewingKeyMessage request) { + public org.tron.trident.proto.Response.AssetIssueList getAssetIssueListByName(org.tron.trident.api.GrpcAPI.BytesMessage request) { return blockingUnaryCall( - getChannel(), getGetIncomingViewingKeyMethod(), getCallOptions(), request); + getChannel(), getGetAssetIssueListByNameMethod(), getCallOptions(), request); } /** */ - public org.tron.trident.api.GrpcAPI.DiversifierMessage getDiversifier(org.tron.trident.api.GrpcAPI.EmptyMessage request) { + public org.tron.trident.proto.Contract.AssetIssueContract getAssetIssueById(org.tron.trident.api.GrpcAPI.BytesMessage request) { return blockingUnaryCall( - getChannel(), getGetDiversifierMethod(), getCallOptions(), request); + getChannel(), getGetAssetIssueByIdMethod(), getCallOptions(), request); } /** */ - public org.tron.trident.api.GrpcAPI.PaymentAddressMessage getZenPaymentAddress(org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage request) { + public org.tron.trident.proto.Response.AssetIssueList getAssetIssueList(org.tron.trident.api.GrpcAPI.EmptyMessage request) { return blockingUnaryCall( - getChannel(), getGetZenPaymentAddressMethod(), getCallOptions(), request); + getChannel(), getGetAssetIssueListMethod(), getCallOptions(), request); } /** */ - public org.tron.trident.api.GrpcAPI.ShieldedAddressInfo getNewShieldedAddress(org.tron.trident.api.GrpcAPI.EmptyMessage request) { + public org.tron.trident.proto.Response.AssetIssueList getPaginatedAssetIssueList(org.tron.trident.api.GrpcAPI.PaginatedMessage request) { return blockingUnaryCall( - getChannel(), getGetNewShieldedAddressMethod(), getCallOptions(), request); + getChannel(), getGetPaginatedAssetIssueListMethod(), getCallOptions(), request); } /** */ - public org.tron.trident.api.GrpcAPI.BytesMessage getRcm(org.tron.trident.api.GrpcAPI.EmptyMessage request) { + public org.tron.trident.proto.Chain.Block getNowBlock(org.tron.trident.api.GrpcAPI.EmptyMessage request) { return blockingUnaryCall( - getChannel(), getGetRcmMethod(), getCallOptions(), request); + getChannel(), getGetNowBlockMethod(), getCallOptions(), request); } /** */ - public org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters createShieldedContractParameters(org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters request) { + public org.tron.trident.proto.Response.BlockExtention getNowBlock2(org.tron.trident.api.GrpcAPI.EmptyMessage request) { return blockingUnaryCall( - getChannel(), getCreateShieldedContractParametersMethod(), getCallOptions(), request); + getChannel(), getGetNowBlock2Method(), getCallOptions(), request); } /** */ - public org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters createShieldedContractParametersWithoutAsk(org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk request) { + public org.tron.trident.proto.Chain.Block getBlockByNum(org.tron.trident.api.GrpcAPI.NumberMessage request) { return blockingUnaryCall( - getChannel(), getCreateShieldedContractParametersWithoutAskMethod(), getCallOptions(), request); + getChannel(), getGetBlockByNumMethod(), getCallOptions(), request); } /** */ - public org.tron.trident.api.GrpcAPI.BytesMessage getTriggerInputForShieldedTRC20Contract(org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters request) { + public org.tron.trident.proto.Response.BlockExtention getBlockByNum2(org.tron.trident.api.GrpcAPI.NumberMessage request) { return blockingUnaryCall( - getChannel(), getGetTriggerInputForShieldedTRC20ContractMethod(), getCallOptions(), request); + getChannel(), getGetBlockByNum2Method(), getCallOptions(), request); } /** *
-     * Stake 2.0
+     * NOTE: `GetBlockById2` is missing. The closest is `GetBlockByLatestNum2`.
      * 
*/ - public org.tron.trident.proto.Response.TransactionExtention freezeBalanceV2(org.tron.trident.proto.Contract.FreezeBalanceV2Contract request) { + public org.tron.trident.proto.Chain.Block getBlockById(org.tron.trident.api.GrpcAPI.BytesMessage request) { return blockingUnaryCall( - getChannel(), getFreezeBalanceV2Method(), getCallOptions(), request); + getChannel(), getGetBlockByIdMethod(), getCallOptions(), request); } /** */ - public org.tron.trident.proto.Response.TransactionExtention unfreezeBalanceV2(org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract request) { + public org.tron.trident.proto.Response.BlockList getBlockByLimitNext(org.tron.trident.api.GrpcAPI.BlockLimit request) { return blockingUnaryCall( - getChannel(), getUnfreezeBalanceV2Method(), getCallOptions(), request); + getChannel(), getGetBlockByLimitNextMethod(), getCallOptions(), request); } /** */ - public org.tron.trident.proto.Response.TransactionExtention delegateResource(org.tron.trident.proto.Contract.DelegateResourceContract request) { + public org.tron.trident.proto.Response.BlockListExtention getBlockByLimitNext2(org.tron.trident.api.GrpcAPI.BlockLimit request) { return blockingUnaryCall( - getChannel(), getDelegateResourceMethod(), getCallOptions(), request); + getChannel(), getGetBlockByLimitNext2Method(), getCallOptions(), request); } /** */ - public org.tron.trident.proto.Response.TransactionExtention unDelegateResource(org.tron.trident.proto.Contract.UnDelegateResourceContract request) { + public org.tron.trident.proto.Response.BlockList getBlockByLatestNum(org.tron.trident.api.GrpcAPI.NumberMessage request) { return blockingUnaryCall( - getChannel(), getUnDelegateResourceMethod(), getCallOptions(), request); + getChannel(), getGetBlockByLatestNumMethod(), getCallOptions(), request); } /** */ - public org.tron.trident.proto.Response.TransactionExtention withdrawExpireUnfreeze(org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract request) { + public org.tron.trident.proto.Response.BlockListExtention getBlockByLatestNum2(org.tron.trident.api.GrpcAPI.NumberMessage request) { return blockingUnaryCall( - getChannel(), getWithdrawExpireUnfreezeMethod(), getCallOptions(), request); + getChannel(), getGetBlockByLatestNum2Method(), getCallOptions(), request); } /** */ - public org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage getAvailableUnfreezeCount(org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage request) { + public org.tron.trident.api.GrpcAPI.NumberMessage getTransactionCountByBlockNum(org.tron.trident.api.GrpcAPI.NumberMessage request) { return blockingUnaryCall( - getChannel(), getGetAvailableUnfreezeCountMethod(), getCallOptions(), request); + getChannel(), getGetTransactionCountByBlockNumMethod(), getCallOptions(), request); } /** */ - public org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage getCanWithdrawUnfreezeAmount(org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage request) { + public org.tron.trident.proto.Chain.Transaction getTransactionById(org.tron.trident.api.GrpcAPI.BytesMessage request) { return blockingUnaryCall( - getChannel(), getGetCanWithdrawUnfreezeAmountMethod(), getCallOptions(), request); + getChannel(), getGetTransactionByIdMethod(), getCallOptions(), request); } /** */ - public org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage getCanDelegatedMaxSize(org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage request) { + public org.tron.trident.proto.Response.TransactionInfo getTransactionInfoById(org.tron.trident.api.GrpcAPI.BytesMessage request) { return blockingUnaryCall( - getChannel(), getGetCanDelegatedMaxSizeMethod(), getCallOptions(), request); + getChannel(), getGetTransactionInfoByIdMethod(), getCallOptions(), request); } /** */ - public org.tron.trident.proto.Response.DelegatedResourceList getDelegatedResourceV2(org.tron.trident.proto.Response.DelegatedResourceMessage request) { + public org.tron.trident.proto.Response.TransactionInfoList getTransactionInfoByBlockNum(org.tron.trident.api.GrpcAPI.NumberMessage request) { return blockingUnaryCall( - getChannel(), getGetDelegatedResourceV2Method(), getCallOptions(), request); + getChannel(), getGetTransactionInfoByBlockNumMethod(), getCallOptions(), request); } /** */ - public org.tron.trident.proto.Response.DelegatedResourceAccountIndex getDelegatedResourceAccountIndexV2(org.tron.trident.api.GrpcAPI.BytesMessage request) { + public org.tron.trident.proto.Common.SmartContract getContract(org.tron.trident.api.GrpcAPI.BytesMessage request) { return blockingUnaryCall( - getChannel(), getGetDelegatedResourceAccountIndexV2Method(), getCallOptions(), request); - } - } - - /** - */ - public static final class WalletFutureStub extends io.grpc.stub.AbstractFutureStub { - private WalletFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WalletFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WalletFutureStub(channel, callOptions); + getChannel(), getGetContractMethod(), getCallOptions(), request); } /** *
-     * Transactions:
+     * FLAW: Abusing of `info`. Should be a `GetContractCode`.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture broadcastTransaction( - org.tron.trident.proto.Chain.Transaction request) { - return futureUnaryCall( - getChannel().newCall(getBroadcastTransactionMethod(), getCallOptions()), request); + public org.tron.trident.proto.Response.SmartContractDataWrapper getContractInfo(org.tron.trident.api.GrpcAPI.BytesMessage request) { + return blockingUnaryCall( + getChannel(), getGetContractInfoMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture createCommonTransaction( - org.tron.trident.proto.Chain.Transaction request) { - return futureUnaryCall( - getChannel().newCall(getCreateCommonTransactionMethod(), getCallOptions()), request); + public org.tron.trident.proto.Response.WitnessList listWitnesses(org.tron.trident.api.GrpcAPI.EmptyMessage request) { + return blockingUnaryCall( + getChannel(), getListWitnessesMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture createAccount( - org.tron.trident.proto.Contract.AccountCreateContract request) { - return futureUnaryCall( - getChannel().newCall(getCreateAccountMethod(), getCallOptions()), request); + public org.tron.trident.api.GrpcAPI.NumberMessage getBrokerageInfo(org.tron.trident.api.GrpcAPI.BytesMessage request) { + return blockingUnaryCall( + getChannel(), getGetBrokerageInfoMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture createAccount2( - org.tron.trident.proto.Contract.AccountCreateContract request) { - return futureUnaryCall( - getChannel().newCall(getCreateAccount2Method(), getCallOptions()), request); + public org.tron.trident.api.GrpcAPI.NumberMessage getRewardInfo(org.tron.trident.api.GrpcAPI.BytesMessage request) { + return blockingUnaryCall( + getChannel(), getGetRewardInfoMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture updateAccount( - org.tron.trident.proto.Contract.AccountUpdateContract request) { - return futureUnaryCall( - getChannel().newCall(getUpdateAccountMethod(), getCallOptions()), request); + public org.tron.trident.proto.Response.DelegatedResourceList getDelegatedResource(org.tron.trident.proto.Response.DelegatedResourceMessage request) { + return blockingUnaryCall( + getChannel(), getGetDelegatedResourceMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture updateAccount2( - org.tron.trident.proto.Contract.AccountUpdateContract request) { - return futureUnaryCall( - getChannel().newCall(getUpdateAccount2Method(), getCallOptions()), request); + public org.tron.trident.proto.Response.DelegatedResourceAccountIndex getDelegatedResourceAccountIndex(org.tron.trident.api.GrpcAPI.BytesMessage request) { + return blockingUnaryCall( + getChannel(), getGetDelegatedResourceAccountIndexMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture setAccountId( - org.tron.trident.proto.Contract.SetAccountIdContract request) { - return futureUnaryCall( - getChannel().newCall(getSetAccountIdMethod(), getCallOptions()), request); + public org.tron.trident.proto.Response.ProposalList listProposals(org.tron.trident.api.GrpcAPI.EmptyMessage request) { + return blockingUnaryCall( + getChannel(), getListProposalsMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture accountPermissionUpdate( - org.tron.trident.proto.Contract.AccountPermissionUpdateContract request) { - return futureUnaryCall( - getChannel().newCall(getAccountPermissionUpdateMethod(), getCallOptions()), request); + public org.tron.trident.proto.Response.Proposal getProposalById(org.tron.trident.api.GrpcAPI.BytesMessage request) { + return blockingUnaryCall( + getChannel(), getGetProposalByIdMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture createTransaction( - org.tron.trident.proto.Contract.TransferContract request) { - return futureUnaryCall( - getChannel().newCall(getCreateTransactionMethod(), getCallOptions()), request); + public org.tron.trident.proto.Response.ProposalList getPaginatedProposalList(org.tron.trident.api.GrpcAPI.PaginatedMessage request) { + return blockingUnaryCall( + getChannel(), getGetPaginatedProposalListMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture createTransaction2( - org.tron.trident.proto.Contract.TransferContract request) { - return futureUnaryCall( - getChannel().newCall(getCreateTransaction2Method(), getCallOptions()), request); + public org.tron.trident.proto.Response.ExchangeList listExchanges(org.tron.trident.api.GrpcAPI.EmptyMessage request) { + return blockingUnaryCall( + getChannel(), getListExchangesMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture createAssetIssue( - org.tron.trident.proto.Contract.AssetIssueContract request) { - return futureUnaryCall( - getChannel().newCall(getCreateAssetIssueMethod(), getCallOptions()), request); + public org.tron.trident.proto.Response.Exchange getExchangeById(org.tron.trident.api.GrpcAPI.BytesMessage request) { + return blockingUnaryCall( + getChannel(), getGetExchangeByIdMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture createAssetIssue2( - org.tron.trident.proto.Contract.AssetIssueContract request) { - return futureUnaryCall( - getChannel().newCall(getCreateAssetIssue2Method(), getCallOptions()), request); + public org.tron.trident.proto.Response.ExchangeList getPaginatedExchangeList(org.tron.trident.api.GrpcAPI.PaginatedMessage request) { + return blockingUnaryCall( + getChannel(), getGetPaginatedExchangeListMethod(), getCallOptions(), request); } /** + *
+     * Shielded helpers:
+     * 
*/ - public com.google.common.util.concurrent.ListenableFuture updateAsset( - org.tron.trident.proto.Contract.UpdateAssetContract request) { - return futureUnaryCall( - getChannel().newCall(getUpdateAssetMethod(), getCallOptions()), request); + public org.tron.trident.proto.Response.DecryptNotesTRC20 scanShieldedTRC20NotesByIvk(org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters request) { + return blockingUnaryCall( + getChannel(), getScanShieldedTRC20NotesByIvkMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture updateAsset2( - org.tron.trident.proto.Contract.UpdateAssetContract request) { - return futureUnaryCall( - getChannel().newCall(getUpdateAsset2Method(), getCallOptions()), request); + public org.tron.trident.proto.Response.DecryptNotesTRC20 scanShieldedTRC20NotesByOvk(org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters request) { + return blockingUnaryCall( + getChannel(), getScanShieldedTRC20NotesByOvkMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture transferAsset( - org.tron.trident.proto.Contract.TransferAssetContract request) { - return futureUnaryCall( - getChannel().newCall(getTransferAssetMethod(), getCallOptions()), request); + public org.tron.trident.proto.Response.NullifierResult isShieldedTRC20ContractNoteSpent(org.tron.trident.api.GrpcAPI.NfTRC20Parameters request) { + return blockingUnaryCall( + getChannel(), getIsShieldedTRC20ContractNoteSpentMethod(), getCallOptions(), request); } /** + *
+     * Market API:
+     * 
*/ - public com.google.common.util.concurrent.ListenableFuture transferAsset2( - org.tron.trident.proto.Contract.TransferAssetContract request) { - return futureUnaryCall( - getChannel().newCall(getTransferAsset2Method(), getCallOptions()), request); + public org.tron.trident.proto.Response.MarketOrderList getMarketOrderByAccount(org.tron.trident.api.GrpcAPI.BytesMessage request) { + return blockingUnaryCall( + getChannel(), getGetMarketOrderByAccountMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture participateAssetIssue( - org.tron.trident.proto.Contract.ParticipateAssetIssueContract request) { - return futureUnaryCall( - getChannel().newCall(getParticipateAssetIssueMethod(), getCallOptions()), request); + public org.tron.trident.proto.Response.MarketOrder getMarketOrderById(org.tron.trident.api.GrpcAPI.BytesMessage request) { + return blockingUnaryCall( + getChannel(), getGetMarketOrderByIdMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture participateAssetIssue2( - org.tron.trident.proto.Contract.ParticipateAssetIssueContract request) { - return futureUnaryCall( - getChannel().newCall(getParticipateAssetIssue2Method(), getCallOptions()), request); + public org.tron.trident.proto.Response.MarketPriceList getMarketPriceByPair(org.tron.trident.proto.Response.MarketOrderPair request) { + return blockingUnaryCall( + getChannel(), getGetMarketPriceByPairMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture unfreezeAsset( - org.tron.trident.proto.Contract.UnfreezeAssetContract request) { - return futureUnaryCall( - getChannel().newCall(getUnfreezeAssetMethod(), getCallOptions()), request); + public org.tron.trident.proto.Response.MarketOrderList getMarketOrderListByPair(org.tron.trident.proto.Response.MarketOrderPair request) { + return blockingUnaryCall( + getChannel(), getGetMarketOrderListByPairMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture unfreezeAsset2( - org.tron.trident.proto.Contract.UnfreezeAssetContract request) { - return futureUnaryCall( - getChannel().newCall(getUnfreezeAsset2Method(), getCallOptions()), request); + public org.tron.trident.proto.Response.MarketOrderPairList getMarketPairList(org.tron.trident.api.GrpcAPI.EmptyMessage request) { + return blockingUnaryCall( + getChannel(), getGetMarketPairListMethod(), getCallOptions(), request); } /** + *
+     * FLAW: Unsafe junk.
+     * 
*/ - public com.google.common.util.concurrent.ListenableFuture createWitness( - org.tron.trident.proto.Contract.WitnessCreateContract request) { - return futureUnaryCall( - getChannel().newCall(getCreateWitnessMethod(), getCallOptions()), request); + public org.tron.trident.proto.Chain.Transaction getTransactionSign(org.tron.trident.proto.Response.TransactionSign request) { + return blockingUnaryCall( + getChannel(), getGetTransactionSignMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture createWitness2( - org.tron.trident.proto.Contract.WitnessCreateContract request) { - return futureUnaryCall( - getChannel().newCall(getCreateWitness2Method(), getCallOptions()), request); + public org.tron.trident.proto.Response.TransactionExtention getTransactionSign2(org.tron.trident.proto.Response.TransactionSign request) { + return blockingUnaryCall( + getChannel(), getGetTransactionSign2Method(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture updateWitness( - org.tron.trident.proto.Contract.WitnessUpdateContract request) { - return futureUnaryCall( - getChannel().newCall(getUpdateWitnessMethod(), getCallOptions()), request); + public org.tron.trident.proto.Response.EasyTransferResponse easyTransferAsset(org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage request) { + return blockingUnaryCall( + getChannel(), getEasyTransferAssetMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture updateWitness2( - org.tron.trident.proto.Contract.WitnessUpdateContract request) { - return futureUnaryCall( - getChannel().newCall(getUpdateWitness2Method(), getCallOptions()), request); + public org.tron.trident.proto.Response.EasyTransferResponse easyTransferAssetByPrivate(org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage request) { + return blockingUnaryCall( + getChannel(), getEasyTransferAssetByPrivateMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture updateBrokerage( - org.tron.trident.proto.Contract.UpdateBrokerageContract request) { - return futureUnaryCall( - getChannel().newCall(getUpdateBrokerageMethod(), getCallOptions()), request); + public org.tron.trident.proto.Response.EasyTransferResponse easyTransfer(org.tron.trident.api.GrpcAPI.EasyTransferMessage request) { + return blockingUnaryCall( + getChannel(), getEasyTransferMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture voteWitnessAccount( - org.tron.trident.proto.Contract.VoteWitnessContract request) { - return futureUnaryCall( - getChannel().newCall(getVoteWitnessAccountMethod(), getCallOptions()), request); + public org.tron.trident.proto.Response.EasyTransferResponse easyTransferByPrivate(org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage request) { + return blockingUnaryCall( + getChannel(), getEasyTransferByPrivateMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture voteWitnessAccount2( - org.tron.trident.proto.Contract.VoteWitnessContract request) { - return futureUnaryCall( - getChannel().newCall(getVoteWitnessAccount2Method(), getCallOptions()), request); + public org.tron.trident.api.GrpcAPI.BytesMessage createAddress(org.tron.trident.api.GrpcAPI.BytesMessage request) { + return blockingUnaryCall( + getChannel(), getCreateAddressMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture freezeBalance( - org.tron.trident.proto.Contract.FreezeBalanceContract request) { - return futureUnaryCall( - getChannel().newCall(getFreezeBalanceMethod(), getCallOptions()), request); + public org.tron.trident.proto.Response.AddressPrKeyPairMessage generateAddress(org.tron.trident.api.GrpcAPI.EmptyMessage request) { + return blockingUnaryCall( + getChannel(), getGenerateAddressMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture freezeBalance2( - org.tron.trident.proto.Contract.FreezeBalanceContract request) { - return futureUnaryCall( - getChannel().newCall(getFreezeBalance2Method(), getCallOptions()), request); + public org.tron.trident.proto.Response.TransactionExtention addSign(org.tron.trident.proto.Response.TransactionSign request) { + return blockingUnaryCall( + getChannel(), getAddSignMethod(), getCallOptions(), request); } /** + *
+     * FLAW: Unsafe shielded junk(should be implemented offline).
+     * 
*/ - public com.google.common.util.concurrent.ListenableFuture unfreezeBalance( - org.tron.trident.proto.Contract.UnfreezeBalanceContract request) { - return futureUnaryCall( - getChannel().newCall(getUnfreezeBalanceMethod(), getCallOptions()), request); + public org.tron.trident.api.GrpcAPI.BytesMessage getSpendingKey(org.tron.trident.api.GrpcAPI.EmptyMessage request) { + return blockingUnaryCall( + getChannel(), getGetSpendingKeyMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture unfreezeBalance2( - org.tron.trident.proto.Contract.UnfreezeBalanceContract request) { - return futureUnaryCall( - getChannel().newCall(getUnfreezeBalance2Method(), getCallOptions()), request); + public org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage getExpandedSpendingKey(org.tron.trident.api.GrpcAPI.BytesMessage request) { + return blockingUnaryCall( + getChannel(), getGetExpandedSpendingKeyMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture withdrawBalance( - org.tron.trident.proto.Contract.WithdrawBalanceContract request) { - return futureUnaryCall( - getChannel().newCall(getWithdrawBalanceMethod(), getCallOptions()), request); + public org.tron.trident.api.GrpcAPI.BytesMessage getAkFromAsk(org.tron.trident.api.GrpcAPI.BytesMessage request) { + return blockingUnaryCall( + getChannel(), getGetAkFromAskMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture withdrawBalance2( - org.tron.trident.proto.Contract.WithdrawBalanceContract request) { - return futureUnaryCall( - getChannel().newCall(getWithdrawBalance2Method(), getCallOptions()), request); + public org.tron.trident.api.GrpcAPI.BytesMessage getNkFromNsk(org.tron.trident.api.GrpcAPI.BytesMessage request) { + return blockingUnaryCall( + getChannel(), getGetNkFromNskMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture proposalCreate( - org.tron.trident.proto.Contract.ProposalCreateContract request) { - return futureUnaryCall( - getChannel().newCall(getProposalCreateMethod(), getCallOptions()), request); + public org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage getIncomingViewingKey(org.tron.trident.api.GrpcAPI.ViewingKeyMessage request) { + return blockingUnaryCall( + getChannel(), getGetIncomingViewingKeyMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture proposalApprove( - org.tron.trident.proto.Contract.ProposalApproveContract request) { - return futureUnaryCall( - getChannel().newCall(getProposalApproveMethod(), getCallOptions()), request); + public org.tron.trident.api.GrpcAPI.DiversifierMessage getDiversifier(org.tron.trident.api.GrpcAPI.EmptyMessage request) { + return blockingUnaryCall( + getChannel(), getGetDiversifierMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture proposalDelete( - org.tron.trident.proto.Contract.ProposalDeleteContract request) { - return futureUnaryCall( - getChannel().newCall(getProposalDeleteMethod(), getCallOptions()), request); + public org.tron.trident.api.GrpcAPI.PaymentAddressMessage getZenPaymentAddress(org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage request) { + return blockingUnaryCall( + getChannel(), getGetZenPaymentAddressMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture deployContract( - org.tron.trident.proto.Contract.CreateSmartContract request) { - return futureUnaryCall( - getChannel().newCall(getDeployContractMethod(), getCallOptions()), request); + public org.tron.trident.api.GrpcAPI.ShieldedAddressInfo getNewShieldedAddress(org.tron.trident.api.GrpcAPI.EmptyMessage request) { + return blockingUnaryCall( + getChannel(), getGetNewShieldedAddressMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture updateSetting( - org.tron.trident.proto.Contract.UpdateSettingContract request) { - return futureUnaryCall( - getChannel().newCall(getUpdateSettingMethod(), getCallOptions()), request); + public org.tron.trident.api.GrpcAPI.BytesMessage getRcm(org.tron.trident.api.GrpcAPI.EmptyMessage request) { + return blockingUnaryCall( + getChannel(), getGetRcmMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture updateEnergyLimit( - org.tron.trident.proto.Contract.UpdateEnergyLimitContract request) { - return futureUnaryCall( - getChannel().newCall(getUpdateEnergyLimitMethod(), getCallOptions()), request); + public org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters createShieldedContractParameters(org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters request) { + return blockingUnaryCall( + getChannel(), getCreateShieldedContractParametersMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture clearContractABI( - org.tron.trident.proto.Contract.ClearABIContract request) { - return futureUnaryCall( - getChannel().newCall(getClearContractABIMethod(), getCallOptions()), request); + public org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters createShieldedContractParametersWithoutAsk(org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk request) { + return blockingUnaryCall( + getChannel(), getCreateShieldedContractParametersWithoutAskMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture triggerContract( - org.tron.trident.proto.Contract.TriggerSmartContract request) { - return futureUnaryCall( - getChannel().newCall(getTriggerContractMethod(), getCallOptions()), request); + public org.tron.trident.api.GrpcAPI.BytesMessage getTriggerInputForShieldedTRC20Contract(org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters request) { + return blockingUnaryCall( + getChannel(), getGetTriggerInputForShieldedTRC20ContractMethod(), getCallOptions(), request); } /** + *
+     *  rpc FreezeBalanceV2 (FreezeBalanceV2Contract) returns (TransactionExtention) {}
+     *  rpc UnfreezeBalanceV2 (UnfreezeBalanceV2Contract) returns (TransactionExtention) {}
+     *  rpc DelegateResource (DelegateResourceContract) returns (TransactionExtention) {}
+     *  rpc UnDelegateResource (UnDelegateResourceContract) returns (TransactionExtention) {}
+     *  rpc WithdrawExpireUnfreeze (WithdrawExpireUnfreezeContract) returns (TransactionExtention) {}
+     * 
*/ - public com.google.common.util.concurrent.ListenableFuture triggerConstantContract( - org.tron.trident.proto.Contract.TriggerSmartContract request) { - return futureUnaryCall( - getChannel().newCall(getTriggerConstantContractMethod(), getCallOptions()), request); + public org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage getAvailableUnfreezeCount(org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage request) { + return blockingUnaryCall( + getChannel(), getGetAvailableUnfreezeCountMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture exchangeCreate( - org.tron.trident.proto.Contract.ExchangeCreateContract request) { - return futureUnaryCall( - getChannel().newCall(getExchangeCreateMethod(), getCallOptions()), request); + public org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage getCanWithdrawUnfreezeAmount(org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage request) { + return blockingUnaryCall( + getChannel(), getGetCanWithdrawUnfreezeAmountMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture exchangeInject( - org.tron.trident.proto.Contract.ExchangeInjectContract request) { - return futureUnaryCall( - getChannel().newCall(getExchangeInjectMethod(), getCallOptions()), request); + public org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage getCanDelegatedMaxSize(org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage request) { + return blockingUnaryCall( + getChannel(), getGetCanDelegatedMaxSizeMethod(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture exchangeWithdraw( - org.tron.trident.proto.Contract.ExchangeWithdrawContract request) { - return futureUnaryCall( - getChannel().newCall(getExchangeWithdrawMethod(), getCallOptions()), request); + public org.tron.trident.proto.Response.DelegatedResourceList getDelegatedResourceV2(org.tron.trident.proto.Response.DelegatedResourceMessage request) { + return blockingUnaryCall( + getChannel(), getGetDelegatedResourceV2Method(), getCallOptions(), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture exchangeTransaction( - org.tron.trident.proto.Contract.ExchangeTransactionContract request) { - return futureUnaryCall( - getChannel().newCall(getExchangeTransactionMethod(), getCallOptions()), request); + public org.tron.trident.proto.Response.DelegatedResourceAccountIndex getDelegatedResourceAccountIndexV2(org.tron.trident.api.GrpcAPI.BytesMessage request) { + return blockingUnaryCall( + getChannel(), getGetDelegatedResourceAccountIndexV2Method(), getCallOptions(), request); } + } - /** - */ - public com.google.common.util.concurrent.ListenableFuture marketSellAsset( - org.tron.trident.proto.Contract.MarketSellAssetContract request) { - return futureUnaryCall( - getChannel().newCall(getMarketSellAssetMethod(), getCallOptions()), request); + /** + */ + public static final class WalletFutureStub extends io.grpc.stub.AbstractFutureStub { + private WalletFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WalletFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WalletFutureStub(channel, callOptions); } /** + *
+     * Transactions:
+     * 
*/ - public com.google.common.util.concurrent.ListenableFuture marketCancelOrder( - org.tron.trident.proto.Contract.MarketCancelOrderContract request) { + public com.google.common.util.concurrent.ListenableFuture broadcastTransaction( + org.tron.trident.proto.Chain.Transaction request) { return futureUnaryCall( - getChannel().newCall(getMarketCancelOrderMethod(), getCallOptions()), request); + getChannel().newCall(getBroadcastTransactionMethod(), getCallOptions()), request); } /** @@ -9004,49 +5520,13 @@ public com.google.common.util.concurrent.ListenableFuture - * Stake 2.0 + * rpc FreezeBalanceV2 (FreezeBalanceV2Contract) returns (TransactionExtention) {} + * rpc UnfreezeBalanceV2 (UnfreezeBalanceV2Contract) returns (TransactionExtention) {} + * rpc DelegateResource (DelegateResourceContract) returns (TransactionExtention) {} + * rpc UnDelegateResource (UnDelegateResourceContract) returns (TransactionExtention) {} + * rpc WithdrawExpireUnfreeze (WithdrawExpireUnfreezeContract) returns (TransactionExtention) {} * */ - public com.google.common.util.concurrent.ListenableFuture freezeBalanceV2( - org.tron.trident.proto.Contract.FreezeBalanceV2Contract request) { - return futureUnaryCall( - getChannel().newCall(getFreezeBalanceV2Method(), getCallOptions()), request); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture unfreezeBalanceV2( - org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract request) { - return futureUnaryCall( - getChannel().newCall(getUnfreezeBalanceV2Method(), getCallOptions()), request); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture delegateResource( - org.tron.trident.proto.Contract.DelegateResourceContract request) { - return futureUnaryCall( - getChannel().newCall(getDelegateResourceMethod(), getCallOptions()), request); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture unDelegateResource( - org.tron.trident.proto.Contract.UnDelegateResourceContract request) { - return futureUnaryCall( - getChannel().newCall(getUnDelegateResourceMethod(), getCallOptions()), request); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture withdrawExpireUnfreeze( - org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract request) { - return futureUnaryCall( - getChannel().newCall(getWithdrawExpireUnfreezeMethod(), getCallOptions()), request); - } - - /** - */ public com.google.common.util.concurrent.ListenableFuture getAvailableUnfreezeCount( org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage request) { return futureUnaryCall( @@ -9087,135 +5567,83 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -9238,194 +5666,6 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.broadcastTransaction((org.tron.trident.proto.Chain.Transaction) request, (io.grpc.stub.StreamObserver) responseObserver); break; - case METHODID_CREATE_COMMON_TRANSACTION: - serviceImpl.createCommonTransaction((org.tron.trident.proto.Chain.Transaction) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_ACCOUNT: - serviceImpl.createAccount((org.tron.trident.proto.Contract.AccountCreateContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_ACCOUNT2: - serviceImpl.createAccount2((org.tron.trident.proto.Contract.AccountCreateContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_ACCOUNT: - serviceImpl.updateAccount((org.tron.trident.proto.Contract.AccountUpdateContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_ACCOUNT2: - serviceImpl.updateAccount2((org.tron.trident.proto.Contract.AccountUpdateContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_ACCOUNT_ID: - serviceImpl.setAccountId((org.tron.trident.proto.Contract.SetAccountIdContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ACCOUNT_PERMISSION_UPDATE: - serviceImpl.accountPermissionUpdate((org.tron.trident.proto.Contract.AccountPermissionUpdateContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_TRANSACTION: - serviceImpl.createTransaction((org.tron.trident.proto.Contract.TransferContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_TRANSACTION2: - serviceImpl.createTransaction2((org.tron.trident.proto.Contract.TransferContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_ASSET_ISSUE: - serviceImpl.createAssetIssue((org.tron.trident.proto.Contract.AssetIssueContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_ASSET_ISSUE2: - serviceImpl.createAssetIssue2((org.tron.trident.proto.Contract.AssetIssueContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_ASSET: - serviceImpl.updateAsset((org.tron.trident.proto.Contract.UpdateAssetContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_ASSET2: - serviceImpl.updateAsset2((org.tron.trident.proto.Contract.UpdateAssetContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TRANSFER_ASSET: - serviceImpl.transferAsset((org.tron.trident.proto.Contract.TransferAssetContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TRANSFER_ASSET2: - serviceImpl.transferAsset2((org.tron.trident.proto.Contract.TransferAssetContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PARTICIPATE_ASSET_ISSUE: - serviceImpl.participateAssetIssue((org.tron.trident.proto.Contract.ParticipateAssetIssueContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PARTICIPATE_ASSET_ISSUE2: - serviceImpl.participateAssetIssue2((org.tron.trident.proto.Contract.ParticipateAssetIssueContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNFREEZE_ASSET: - serviceImpl.unfreezeAsset((org.tron.trident.proto.Contract.UnfreezeAssetContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNFREEZE_ASSET2: - serviceImpl.unfreezeAsset2((org.tron.trident.proto.Contract.UnfreezeAssetContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_WITNESS: - serviceImpl.createWitness((org.tron.trident.proto.Contract.WitnessCreateContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_WITNESS2: - serviceImpl.createWitness2((org.tron.trident.proto.Contract.WitnessCreateContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WITNESS: - serviceImpl.updateWitness((org.tron.trident.proto.Contract.WitnessUpdateContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WITNESS2: - serviceImpl.updateWitness2((org.tron.trident.proto.Contract.WitnessUpdateContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_BROKERAGE: - serviceImpl.updateBrokerage((org.tron.trident.proto.Contract.UpdateBrokerageContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_VOTE_WITNESS_ACCOUNT: - serviceImpl.voteWitnessAccount((org.tron.trident.proto.Contract.VoteWitnessContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_VOTE_WITNESS_ACCOUNT2: - serviceImpl.voteWitnessAccount2((org.tron.trident.proto.Contract.VoteWitnessContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FREEZE_BALANCE: - serviceImpl.freezeBalance((org.tron.trident.proto.Contract.FreezeBalanceContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FREEZE_BALANCE2: - serviceImpl.freezeBalance2((org.tron.trident.proto.Contract.FreezeBalanceContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNFREEZE_BALANCE: - serviceImpl.unfreezeBalance((org.tron.trident.proto.Contract.UnfreezeBalanceContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNFREEZE_BALANCE2: - serviceImpl.unfreezeBalance2((org.tron.trident.proto.Contract.UnfreezeBalanceContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_WITHDRAW_BALANCE: - serviceImpl.withdrawBalance((org.tron.trident.proto.Contract.WithdrawBalanceContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_WITHDRAW_BALANCE2: - serviceImpl.withdrawBalance2((org.tron.trident.proto.Contract.WithdrawBalanceContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PROPOSAL_CREATE: - serviceImpl.proposalCreate((org.tron.trident.proto.Contract.ProposalCreateContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PROPOSAL_APPROVE: - serviceImpl.proposalApprove((org.tron.trident.proto.Contract.ProposalApproveContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PROPOSAL_DELETE: - serviceImpl.proposalDelete((org.tron.trident.proto.Contract.ProposalDeleteContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DEPLOY_CONTRACT: - serviceImpl.deployContract((org.tron.trident.proto.Contract.CreateSmartContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SETTING: - serviceImpl.updateSetting((org.tron.trident.proto.Contract.UpdateSettingContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_ENERGY_LIMIT: - serviceImpl.updateEnergyLimit((org.tron.trident.proto.Contract.UpdateEnergyLimitContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CLEAR_CONTRACT_ABI: - serviceImpl.clearContractABI((org.tron.trident.proto.Contract.ClearABIContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TRIGGER_CONTRACT: - serviceImpl.triggerContract((org.tron.trident.proto.Contract.TriggerSmartContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TRIGGER_CONSTANT_CONTRACT: - serviceImpl.triggerConstantContract((org.tron.trident.proto.Contract.TriggerSmartContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_EXCHANGE_CREATE: - serviceImpl.exchangeCreate((org.tron.trident.proto.Contract.ExchangeCreateContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_EXCHANGE_INJECT: - serviceImpl.exchangeInject((org.tron.trident.proto.Contract.ExchangeInjectContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_EXCHANGE_WITHDRAW: - serviceImpl.exchangeWithdraw((org.tron.trident.proto.Contract.ExchangeWithdrawContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_EXCHANGE_TRANSACTION: - serviceImpl.exchangeTransaction((org.tron.trident.proto.Contract.ExchangeTransactionContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MARKET_SELL_ASSET: - serviceImpl.marketSellAsset((org.tron.trident.proto.Contract.MarketSellAssetContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MARKET_CANCEL_ORDER: - serviceImpl.marketCancelOrder((org.tron.trident.proto.Contract.MarketCancelOrderContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; case METHODID_GET_NODE_INFO: serviceImpl.getNodeInfo((org.tron.trident.api.GrpcAPI.EmptyMessage) request, (io.grpc.stub.StreamObserver) responseObserver); @@ -9714,26 +5954,6 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.getTriggerInputForShieldedTRC20Contract((org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters) request, (io.grpc.stub.StreamObserver) responseObserver); break; - case METHODID_FREEZE_BALANCE_V2: - serviceImpl.freezeBalanceV2((org.tron.trident.proto.Contract.FreezeBalanceV2Contract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNFREEZE_BALANCE_V2: - serviceImpl.unfreezeBalanceV2((org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELEGATE_RESOURCE: - serviceImpl.delegateResource((org.tron.trident.proto.Contract.DelegateResourceContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UN_DELEGATE_RESOURCE: - serviceImpl.unDelegateResource((org.tron.trident.proto.Contract.UnDelegateResourceContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_WITHDRAW_EXPIRE_UNFREEZE: - serviceImpl.withdrawExpireUnfreeze((org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; case METHODID_GET_AVAILABLE_UNFREEZE_COUNT: serviceImpl.getAvailableUnfreezeCount((org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage) request, (io.grpc.stub.StreamObserver) responseObserver); @@ -9816,53 +6036,6 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new WalletFileDescriptorSupplier()) .addMethod(getBroadcastTransactionMethod()) - .addMethod(getCreateCommonTransactionMethod()) - .addMethod(getCreateAccountMethod()) - .addMethod(getCreateAccount2Method()) - .addMethod(getUpdateAccountMethod()) - .addMethod(getUpdateAccount2Method()) - .addMethod(getSetAccountIdMethod()) - .addMethod(getAccountPermissionUpdateMethod()) - .addMethod(getCreateTransactionMethod()) - .addMethod(getCreateTransaction2Method()) - .addMethod(getCreateAssetIssueMethod()) - .addMethod(getCreateAssetIssue2Method()) - .addMethod(getUpdateAssetMethod()) - .addMethod(getUpdateAsset2Method()) - .addMethod(getTransferAssetMethod()) - .addMethod(getTransferAsset2Method()) - .addMethod(getParticipateAssetIssueMethod()) - .addMethod(getParticipateAssetIssue2Method()) - .addMethod(getUnfreezeAssetMethod()) - .addMethod(getUnfreezeAsset2Method()) - .addMethod(getCreateWitnessMethod()) - .addMethod(getCreateWitness2Method()) - .addMethod(getUpdateWitnessMethod()) - .addMethod(getUpdateWitness2Method()) - .addMethod(getUpdateBrokerageMethod()) - .addMethod(getVoteWitnessAccountMethod()) - .addMethod(getVoteWitnessAccount2Method()) - .addMethod(getFreezeBalanceMethod()) - .addMethod(getFreezeBalance2Method()) - .addMethod(getUnfreezeBalanceMethod()) - .addMethod(getUnfreezeBalance2Method()) - .addMethod(getWithdrawBalanceMethod()) - .addMethod(getWithdrawBalance2Method()) - .addMethod(getProposalCreateMethod()) - .addMethod(getProposalApproveMethod()) - .addMethod(getProposalDeleteMethod()) - .addMethod(getDeployContractMethod()) - .addMethod(getUpdateSettingMethod()) - .addMethod(getUpdateEnergyLimitMethod()) - .addMethod(getClearContractABIMethod()) - .addMethod(getTriggerContractMethod()) - .addMethod(getTriggerConstantContractMethod()) - .addMethod(getExchangeCreateMethod()) - .addMethod(getExchangeInjectMethod()) - .addMethod(getExchangeWithdrawMethod()) - .addMethod(getExchangeTransactionMethod()) - .addMethod(getMarketSellAssetMethod()) - .addMethod(getMarketCancelOrderMethod()) .addMethod(getGetNodeInfoMethod()) .addMethod(getListNodesMethod()) .addMethod(getGetChainParametersMethod()) @@ -9935,11 +6108,6 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateShieldedContractParametersMethod()) .addMethod(getCreateShieldedContractParametersWithoutAskMethod()) .addMethod(getGetTriggerInputForShieldedTRC20ContractMethod()) - .addMethod(getFreezeBalanceV2Method()) - .addMethod(getUnfreezeBalanceV2Method()) - .addMethod(getDelegateResourceMethod()) - .addMethod(getUnDelegateResourceMethod()) - .addMethod(getWithdrawExpireUnfreezeMethod()) .addMethod(getGetAvailableUnfreezeCountMethod()) .addMethod(getGetCanWithdrawUnfreezeAmountMethod()) .addMethod(getGetCanDelegatedMaxSizeMethod()) diff --git a/trident-java/core/src/main/java/org/tron/trident/api/GrpcAPI.java b/trident-java/core/src/main/java/org/tron/trident/api/GrpcAPI.java index 620192b..e245dc9 100644 --- a/trident-java/core/src/main/java/org/tron/trident/api/GrpcAPI.java +++ b/trident-java/core/src/main/java/org/tron/trident/api/GrpcAPI.java @@ -27657,286 +27657,176 @@ public org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage getDefaul "nt\030\001 \001(\003\"H\n!CanDelegatedMaxSizeRequestMe" + "ssage\022\014\n\004type\030\001 \001(\005\022\025\n\rowner_address\030\002 \001" + "(\014\"6\n\"CanDelegatedMaxSizeResponseMessage" + - "\022\020\n\010max_size\030\001 \001(\0032\327T\n\006Wallet\022L\n\024Broadca" + + "\022\020\n\010max_size\030\001 \001(\0032\2272\n\006Wallet\022L\n\024Broadca" + "stTransaction\022\025.protocol.Transaction\032\033.p" + - "rotocol.TransactionReturn\"\000\022R\n\027CreateCom" + - "monTransaction\022\025.protocol.Transaction\032\036." + - "protocol.TransactionExtention\"\000\022I\n\rCreat" + - "eAccount\022\037.protocol.AccountCreateContrac" + - "t\032\025.protocol.Transaction\"\000\022S\n\016CreateAcco" + - "unt2\022\037.protocol.AccountCreateContract\032\036." + - "protocol.TransactionExtention\"\000\022I\n\rUpdat" + - "eAccount\022\037.protocol.AccountUpdateContrac" + - "t\032\025.protocol.Transaction\"\000\022S\n\016UpdateAcco" + - "unt2\022\037.protocol.AccountUpdateContract\032\036." + - "protocol.TransactionExtention\"\000\022G\n\014SetAc" + - "countId\022\036.protocol.SetAccountIdContract\032" + - "\025.protocol.Transaction\"\000\022f\n\027AccountPermi" + - "ssionUpdate\022).protocol.AccountPermission" + - "UpdateContract\032\036.protocol.TransactionExt" + - "ention\"\000\022H\n\021CreateTransaction\022\032.protocol" + - ".TransferContract\032\025.protocol.Transaction" + - "\"\000\022R\n\022CreateTransaction2\022\032.protocol.Tran" + - "sferContract\032\036.protocol.TransactionExten" + - "tion\"\000\022I\n\020CreateAssetIssue\022\034.protocol.As" + - "setIssueContract\032\025.protocol.Transaction\"" + - "\000\022S\n\021CreateAssetIssue2\022\034.protocol.AssetI" + - "ssueContract\032\036.protocol.TransactionExten" + - "tion\"\000\022E\n\013UpdateAsset\022\035.protocol.UpdateA" + - "ssetContract\032\025.protocol.Transaction\"\000\022O\n" + - "\014UpdateAsset2\022\035.protocol.UpdateAssetCont" + - "ract\032\036.protocol.TransactionExtention\"\000\022I" + - "\n\rTransferAsset\022\037.protocol.TransferAsset" + - "Contract\032\025.protocol.Transaction\"\000\022S\n\016Tra" + - "nsferAsset2\022\037.protocol.TransferAssetCont" + - "ract\032\036.protocol.TransactionExtention\"\000\022Y" + - "\n\025ParticipateAssetIssue\022\'.protocol.Parti" + - "cipateAssetIssueContract\032\025.protocol.Tran" + - "saction\"\000\022c\n\026ParticipateAssetIssue2\022\'.pr" + - "otocol.ParticipateAssetIssueContract\032\036.p" + - "rotocol.TransactionExtention\"\000\022I\n\rUnfree" + - "zeAsset\022\037.protocol.UnfreezeAssetContract" + - "\032\025.protocol.Transaction\"\000\022S\n\016UnfreezeAss" + - "et2\022\037.protocol.UnfreezeAssetContract\032\036.p" + - "rotocol.TransactionExtention\"\000\022I\n\rCreate" + - "Witness\022\037.protocol.WitnessCreateContract" + - "\032\025.protocol.Transaction\"\000\022S\n\016CreateWitne" + - "ss2\022\037.protocol.WitnessCreateContract\032\036.p" + - "rotocol.TransactionExtention\"\000\022I\n\rUpdate" + - "Witness\022\037.protocol.WitnessUpdateContract" + - "\032\025.protocol.Transaction\"\000\022S\n\016UpdateWitne" + - "ss2\022\037.protocol.WitnessUpdateContract\032\036.p" + - "rotocol.TransactionExtention\"\000\022V\n\017Update" + - "Brokerage\022!.protocol.UpdateBrokerageCont" + - "ract\032\036.protocol.TransactionExtention\"\000\022L" + - "\n\022VoteWitnessAccount\022\035.protocol.VoteWitn" + - "essContract\032\025.protocol.Transaction\"\000\022V\n\023" + - "VoteWitnessAccount2\022\035.protocol.VoteWitne" + - "ssContract\032\036.protocol.TransactionExtenti" + - "on\"\000\022I\n\rFreezeBalance\022\037.protocol.FreezeB" + - "alanceContract\032\025.protocol.Transaction\"\000\022" + - "S\n\016FreezeBalance2\022\037.protocol.FreezeBalan" + - "ceContract\032\036.protocol.TransactionExtenti" + - "on\"\000\022M\n\017UnfreezeBalance\022!.protocol.Unfre" + - "ezeBalanceContract\032\025.protocol.Transactio" + - "n\"\000\022W\n\020UnfreezeBalance2\022!.protocol.Unfre" + - "ezeBalanceContract\032\036.protocol.Transactio" + - "nExtention\"\000\022M\n\017WithdrawBalance\022!.protoc" + - "ol.WithdrawBalanceContract\032\025.protocol.Tr" + - "ansaction\"\000\022W\n\020WithdrawBalance2\022!.protoc" + - "ol.WithdrawBalanceContract\032\036.protocol.Tr" + - "ansactionExtention\"\000\022T\n\016ProposalCreate\022 " + - ".protocol.ProposalCreateContract\032\036.proto" + - "col.TransactionExtention\"\000\022V\n\017ProposalAp" + - "prove\022!.protocol.ProposalApproveContract" + - "\032\036.protocol.TransactionExtention\"\000\022T\n\016Pr" + - "oposalDelete\022 .protocol.ProposalDeleteCo" + - "ntract\032\036.protocol.TransactionExtention\"\000" + - "\022Q\n\016DeployContract\022\035.protocol.CreateSmar" + - "tContract\032\036.protocol.TransactionExtentio" + - "n\"\000\022R\n\rUpdateSetting\022\037.protocol.UpdateSe" + - "ttingContract\032\036.protocol.TransactionExte" + - "ntion\"\000\022Z\n\021UpdateEnergyLimit\022#.protocol." + - "UpdateEnergyLimitContract\032\036.protocol.Tra" + - "nsactionExtention\"\000\022P\n\020ClearContractABI\022" + - "\032.protocol.ClearABIContract\032\036.protocol.T" + - "ransactionExtention\"\000\022S\n\017TriggerContract" + - "\022\036.protocol.TriggerSmartContract\032\036.proto" + - "col.TransactionExtention\"\000\022[\n\027TriggerCon" + - "stantContract\022\036.protocol.TriggerSmartCon" + - "tract\032\036.protocol.TransactionExtention\"\000\022" + - "T\n\016ExchangeCreate\022 .protocol.ExchangeCre" + - "ateContract\032\036.protocol.TransactionExtent" + - "ion\"\000\022T\n\016ExchangeInject\022 .protocol.Excha" + - "ngeInjectContract\032\036.protocol.Transaction" + - "Extention\"\000\022X\n\020ExchangeWithdraw\022\".protoc" + - "ol.ExchangeWithdrawContract\032\036.protocol.T" + - "ransactionExtention\"\000\022^\n\023ExchangeTransac" + - "tion\022%.protocol.ExchangeTransactionContr" + - "act\032\036.protocol.TransactionExtention\"\000\022V\n" + - "\017MarketSellAsset\022!.protocol.MarketSellAs" + - "setContract\032\036.protocol.TransactionExtent" + - "ion\"\000\022Z\n\021MarketCancelOrder\022#.protocol.Ma" + - "rketCancelOrderContract\032\036.protocol.Trans" + - "actionExtention\"\000\022;\n\013GetNodeInfo\022\026.proto" + - "col.EmptyMessage\032\022.protocol.NodeInfo\"\000\0229" + - "\n\tListNodes\022\026.protocol.EmptyMessage\032\022.pr" + - "otocol.NodeList\"\000\022I\n\022GetChainParameters\022" + - "\026.protocol.EmptyMessage\032\031.protocol.Chain" + - "Parameters\"\000\022E\n\020TotalTransaction\022\026.proto" + - "col.EmptyMessage\032\027.protocol.NumberMessag" + - "e\"\000\022K\n\026GetNextMaintenanceTime\022\026.protocol" + - ".EmptyMessage\032\027.protocol.NumberMessage\"\000" + - "\022T\n\030GetTransactionSignWeight\022\025.protocol." + - "Transaction\032\037.protocol.TransactionSignWe" + - "ight\"\000\022X\n\032GetTransactionApprovedList\022\025.p" + - "rotocol.Transaction\032!.protocol.Transacti" + - "onApprovedList\"\000\022B\n\nGetAccount\022\037.protoco" + - "l.AccountAddressMessage\032\021.protocol.Accou" + - "nt\"\000\022A\n\016GetAccountById\022\032.protocol.Accoun" + - "tIdMessage\032\021.protocol.Account\"\000\022O\n\rGetAc" + - "countNet\022\037.protocol.AccountAddressMessag" + - "e\032\033.protocol.AccountNetMessage\"\000\022Y\n\022GetA" + - "ccountResource\022\037.protocol.AccountAddress" + - "Message\032 .protocol.AccountResourceMessag" + - "e\"\000\022U\n\026GetAssetIssueByAccount\022\037.protocol" + - ".AccountAddressMessage\032\030.protocol.AssetI" + - "ssueList\"\000\022M\n\023GetAssetIssueByName\022\026.prot" + - "ocol.BytesMessage\032\034.protocol.AssetIssueC" + - "ontract\"\000\022M\n\027GetAssetIssueListByName\022\026.p" + - "rotocol.BytesMessage\032\030.protocol.AssetIss" + - "ueList\"\000\022K\n\021GetAssetIssueById\022\026.protocol" + - ".BytesMessage\032\034.protocol.AssetIssueContr" + - "act\"\000\022G\n\021GetAssetIssueList\022\026.protocol.Em" + - "ptyMessage\032\030.protocol.AssetIssueList\"\000\022T" + - "\n\032GetPaginatedAssetIssueList\022\032.protocol." + - "PaginatedMessage\032\030.protocol.AssetIssueLi" + - "st\"\000\0228\n\013GetNowBlock\022\026.protocol.EmptyMess" + - "age\032\017.protocol.Block\"\000\022B\n\014GetNowBlock2\022\026" + - ".protocol.EmptyMessage\032\030.protocol.BlockE" + - "xtention\"\000\022;\n\rGetBlockByNum\022\027.protocol.N" + - "umberMessage\032\017.protocol.Block\"\000\022E\n\016GetBl" + - "ockByNum2\022\027.protocol.NumberMessage\032\030.pro" + - "tocol.BlockExtention\"\000\0229\n\014GetBlockById\022\026" + - ".protocol.BytesMessage\032\017.protocol.Block\"" + - "\000\022B\n\023GetBlockByLimitNext\022\024.protocol.Bloc" + - "kLimit\032\023.protocol.BlockList\"\000\022L\n\024GetBloc" + - "kByLimitNext2\022\024.protocol.BlockLimit\032\034.pr" + - "otocol.BlockListExtention\"\000\022E\n\023GetBlockB" + - "yLatestNum\022\027.protocol.NumberMessage\032\023.pr" + - "otocol.BlockList\"\000\022O\n\024GetBlockByLatestNu" + - "m2\022\027.protocol.NumberMessage\032\034.protocol.B" + - "lockListExtention\"\000\022S\n\035GetTransactionCou" + - "ntByBlockNum\022\027.protocol.NumberMessage\032\027." + - "protocol.NumberMessage\"\000\022E\n\022GetTransacti" + - "onById\022\026.protocol.BytesMessage\032\025.protoco" + - "l.Transaction\"\000\022M\n\026GetTransactionInfoByI" + - "d\022\026.protocol.BytesMessage\032\031.protocol.Tra" + - "nsactionInfo\"\000\022X\n\034GetTransactionInfoByBl" + - "ockNum\022\027.protocol.NumberMessage\032\035.protoc" + - "ol.TransactionInfoList\"\000\022@\n\013GetContract\022" + - "\026.protocol.BytesMessage\032\027.protocol.Smart" + - "Contract\"\000\022O\n\017GetContractInfo\022\026.protocol" + - ".BytesMessage\032\".protocol.SmartContractDa" + - "taWrapper\"\000\022@\n\rListWitnesses\022\026.protocol." + - "EmptyMessage\032\025.protocol.WitnessList\"\000\022E\n" + - "\020GetBrokerageInfo\022\026.protocol.BytesMessag" + - "e\032\027.protocol.NumberMessage\"\000\022B\n\rGetRewar" + - "dInfo\022\026.protocol.BytesMessage\032\027.protocol" + - ".NumberMessage\"\000\022]\n\024GetDelegatedResource" + - "\022\".protocol.DelegatedResourceMessage\032\037.p" + - "rotocol.DelegatedResourceList\"\000\022e\n GetDe" + - "legatedResourceAccountIndex\022\026.protocol.B" + - "ytesMessage\032\'.protocol.DelegatedResource" + - "AccountIndex\"\000\022A\n\rListProposals\022\026.protoc" + - "ol.EmptyMessage\032\026.protocol.ProposalList\"" + - "\000\022?\n\017GetProposalById\022\026.protocol.BytesMes" + - "sage\032\022.protocol.Proposal\"\000\022P\n\030GetPaginat" + - "edProposalList\022\032.protocol.PaginatedMessa" + - "ge\032\026.protocol.ProposalList\"\000\022A\n\rListExch" + - "anges\022\026.protocol.EmptyMessage\032\026.protocol" + - ".ExchangeList\"\000\022?\n\017GetExchangeById\022\026.pro" + - "tocol.BytesMessage\032\022.protocol.Exchange\"\000" + - "\022P\n\030GetPaginatedExchangeList\022\032.protocol." + - "PaginatedMessage\032\026.protocol.ExchangeList" + - "\"\000\022a\n\033ScanShieldedTRC20NotesByIvk\022#.prot" + - "ocol.IvkDecryptTRC20Parameters\032\033.protoco" + - "l.DecryptNotesTRC20\"\000\022a\n\033ScanShieldedTRC" + - "20NotesByOvk\022#.protocol.OvkDecryptTRC20P" + - "arameters\032\033.protocol.DecryptNotesTRC20\"\000" + - "\022\\\n IsShieldedTRC20ContractNoteSpent\022\033.p" + - "rotocol.NfTRC20Parameters\032\031.protocol.Nul" + - "lifierResult\"\000\022N\n\027GetMarketOrderByAccoun" + - "t\022\026.protocol.BytesMessage\032\031.protocol.Mar" + - "ketOrderList\"\000\022E\n\022GetMarketOrderById\022\026.p" + - "rotocol.BytesMessage\032\025.protocol.MarketOr" + - "der\"\000\022N\n\024GetMarketPriceByPair\022\031.protocol" + - ".MarketOrderPair\032\031.protocol.MarketPriceL" + - "ist\"\000\022R\n\030GetMarketOrderListByPair\022\031.prot" + - "ocol.MarketOrderPair\032\031.protocol.MarketOr" + - "derList\"\000\022L\n\021GetMarketPairList\022\026.protoco" + - "l.EmptyMessage\032\035.protocol.MarketOrderPai" + - "rList\"\000\022H\n\022GetTransactionSign\022\031.protocol" + - ".TransactionSign\032\025.protocol.Transaction\"" + - "\000\022R\n\023GetTransactionSign2\022\031.protocol.Tran" + - "sactionSign\032\036.protocol.TransactionExtent" + - "ion\"\000\022Y\n\021EasyTransferAsset\022\".protocol.Ea" + - "syTransferAssetMessage\032\036.protocol.EasyTr" + - "ansferResponse\"\000\022k\n\032EasyTransferAssetByP" + - "rivate\022+.protocol.EasyTransferAssetByPri" + - "vateMessage\032\036.protocol.EasyTransferRespo" + - "nse\"\000\022O\n\014EasyTransfer\022\035.protocol.EasyTra" + - "nsferMessage\032\036.protocol.EasyTransferResp" + - "onse\"\000\022a\n\025EasyTransferByPrivate\022&.protoc" + - "ol.EasyTransferByPrivateMessage\032\036.protoc" + - "ol.EasyTransferResponse\"\000\022A\n\rCreateAddre" + - "ss\022\026.protocol.BytesMessage\032\026.protocol.By" + - "tesMessage\"\000\022N\n\017GenerateAddress\022\026.protoc" + - "ol.EmptyMessage\032!.protocol.AddressPrKeyP" + - "airMessage\"\000\022F\n\007AddSign\022\031.protocol.Trans" + - "actionSign\032\036.protocol.TransactionExtenti" + - "on\"\000\022B\n\016GetSpendingKey\022\026.protocol.EmptyM" + - "essage\032\026.protocol.BytesMessage\"\000\022X\n\026GetE" + - "xpandedSpendingKey\022\026.protocol.BytesMessa" + - "ge\032$.protocol.ExpandedSpendingKeyMessage" + - "\"\000\022@\n\014GetAkFromAsk\022\026.protocol.BytesMessa" + - "ge\032\026.protocol.BytesMessage\"\000\022@\n\014GetNkFro" + - "mNsk\022\026.protocol.BytesMessage\032\026.protocol." + - "BytesMessage\"\000\022[\n\025GetIncomingViewingKey\022" + - "\033.protocol.ViewingKeyMessage\032#.protocol." + - "IncomingViewingKeyMessage\"\000\022H\n\016GetDivers" + - "ifier\022\026.protocol.EmptyMessage\032\034.protocol" + - ".DiversifierMessage\"\000\022i\n\024GetZenPaymentAd" + - "dress\022..protocol.IncomingViewingKeyDiver" + - "sifierMessage\032\037.protocol.PaymentAddressM" + - "essage\"\000\022P\n\025GetNewShieldedAddress\022\026.prot" + - "ocol.EmptyMessage\032\035.protocol.ShieldedAdd" + - "ressInfo\"\000\022:\n\006GetRcm\022\026.protocol.EmptyMes" + - "sage\032\026.protocol.BytesMessage\"\000\022q\n Create" + - "ShieldedContractParameters\022(.protocol.Pr" + - "ivateShieldedTRC20Parameters\032!.protocol." + - "ShieldedTRC20Parameters\"\000\022\205\001\n*CreateShie" + - "ldedContractParametersWithoutAsk\0222.proto" + - "col.PrivateShieldedTRC20ParametersWithou" + - "tAsk\032!.protocol.ShieldedTRC20Parameters\"" + - "\000\022u\n\'GetTriggerInputForShieldedTRC20Cont" + - "ract\0220.protocol.ShieldedTRC20TriggerCont" + - "ractParameters\032\026.protocol.BytesMessage\"\000" + - "\022V\n\017FreezeBalanceV2\022!.protocol.FreezeBal" + - "anceV2Contract\032\036.protocol.TransactionExt" + - "ention\"\000\022Z\n\021UnfreezeBalanceV2\022#.protocol" + - ".UnfreezeBalanceV2Contract\032\036.protocol.Tr" + - "ansactionExtention\"\000\022X\n\020DelegateResource" + - "\022\".protocol.DelegateResourceContract\032\036.p" + - "rotocol.TransactionExtention\"\000\022\\\n\022UnDele" + - "gateResource\022$.protocol.UnDelegateResour" + - "ceContract\032\036.protocol.TransactionExtenti" + - "on\"\000\022d\n\026WithdrawExpireUnfreeze\022(.protoco" + - "l.WithdrawExpireUnfreezeContract\032\036.proto" + - "col.TransactionExtention\"\000\022\204\001\n\031GetAvaila" + - "bleUnfreezeCount\0221.protocol.GetAvailable" + - "UnfreezeCountRequestMessage\0322.protocol.G" + - "etAvailableUnfreezeCountResponseMessage\"" + - "\000\022\207\001\n\034GetCanWithdrawUnfreezeAmount\0221.pro" + - "tocol.CanWithdrawUnfreezeAmountRequestMe" + - "ssage\0322.protocol.CanWithdrawUnfreezeAmou" + - "ntResponseMessage\"\000\022u\n\026GetCanDelegatedMa" + - "xSize\022+.protocol.CanDelegatedMaxSizeRequ" + - "estMessage\032,.protocol.CanDelegatedMaxSiz" + - "eResponseMessage\"\000\022_\n\026GetDelegatedResour" + - "ceV2\022\".protocol.DelegatedResourceMessage" + - "\032\037.protocol.DelegatedResourceList\"\000\022g\n\"G" + - "etDelegatedResourceAccountIndexV2\022\026.prot" + - "ocol.BytesMessage\032\'.protocol.DelegatedRe" + - "sourceAccountIndex\"\0002\243\002\n\016WalletSolidity\022" + - "B\n\nGetAccount\022\037.protocol.AccountAddressM" + - "essage\032\021.protocol.Account\"\000\022B\n\014GetNowBlo" + - "ck2\022\026.protocol.EmptyMessage\032\030.protocol.B" + - "lockExtention\"\000\022E\n\022GetTransactionById\022\026." + - "protocol.BytesMessage\032\025.protocol.Transac" + - "tion\"\000\022B\n\rGetRewardInfo\022\026.protocol.Bytes" + - "Message\032\027.protocol.NumberMessage\"\000B\037\n\024or" + - "g.tron.trident.apiB\007GrpcAPIb\006proto3" + "rotocol.TransactionReturn\"\000\022;\n\013GetNodeIn" + + "fo\022\026.protocol.EmptyMessage\032\022.protocol.No" + + "deInfo\"\000\0229\n\tListNodes\022\026.protocol.EmptyMe" + + "ssage\032\022.protocol.NodeList\"\000\022I\n\022GetChainP" + + "arameters\022\026.protocol.EmptyMessage\032\031.prot" + + "ocol.ChainParameters\"\000\022E\n\020TotalTransacti" + + "on\022\026.protocol.EmptyMessage\032\027.protocol.Nu" + + "mberMessage\"\000\022K\n\026GetNextMaintenanceTime\022" + + "\026.protocol.EmptyMessage\032\027.protocol.Numbe" + + "rMessage\"\000\022T\n\030GetTransactionSignWeight\022\025" + + ".protocol.Transaction\032\037.protocol.Transac" + + "tionSignWeight\"\000\022X\n\032GetTransactionApprov" + + "edList\022\025.protocol.Transaction\032!.protocol" + + ".TransactionApprovedList\"\000\022B\n\nGetAccount" + + "\022\037.protocol.AccountAddressMessage\032\021.prot" + + "ocol.Account\"\000\022A\n\016GetAccountById\022\032.proto" + + "col.AccountIdMessage\032\021.protocol.Account\"" + + "\000\022O\n\rGetAccountNet\022\037.protocol.AccountAdd" + + "ressMessage\032\033.protocol.AccountNetMessage" + + "\"\000\022Y\n\022GetAccountResource\022\037.protocol.Acco" + + "untAddressMessage\032 .protocol.AccountReso" + + "urceMessage\"\000\022U\n\026GetAssetIssueByAccount\022" + + "\037.protocol.AccountAddressMessage\032\030.proto" + + "col.AssetIssueList\"\000\022M\n\023GetAssetIssueByN" + + "ame\022\026.protocol.BytesMessage\032\034.protocol.A" + + "ssetIssueContract\"\000\022M\n\027GetAssetIssueList" + + "ByName\022\026.protocol.BytesMessage\032\030.protoco" + + "l.AssetIssueList\"\000\022K\n\021GetAssetIssueById\022" + + "\026.protocol.BytesMessage\032\034.protocol.Asset" + + "IssueContract\"\000\022G\n\021GetAssetIssueList\022\026.p" + + "rotocol.EmptyMessage\032\030.protocol.AssetIss" + + "ueList\"\000\022T\n\032GetPaginatedAssetIssueList\022\032" + + ".protocol.PaginatedMessage\032\030.protocol.As" + + "setIssueList\"\000\0228\n\013GetNowBlock\022\026.protocol" + + ".EmptyMessage\032\017.protocol.Block\"\000\022B\n\014GetN" + + "owBlock2\022\026.protocol.EmptyMessage\032\030.proto" + + "col.BlockExtention\"\000\022;\n\rGetBlockByNum\022\027." + + "protocol.NumberMessage\032\017.protocol.Block\"" + + "\000\022E\n\016GetBlockByNum2\022\027.protocol.NumberMes" + + "sage\032\030.protocol.BlockExtention\"\000\0229\n\014GetB" + + "lockById\022\026.protocol.BytesMessage\032\017.proto" + + "col.Block\"\000\022B\n\023GetBlockByLimitNext\022\024.pro" + + "tocol.BlockLimit\032\023.protocol.BlockList\"\000\022" + + "L\n\024GetBlockByLimitNext2\022\024.protocol.Block" + + "Limit\032\034.protocol.BlockListExtention\"\000\022E\n" + + "\023GetBlockByLatestNum\022\027.protocol.NumberMe" + + "ssage\032\023.protocol.BlockList\"\000\022O\n\024GetBlock" + + "ByLatestNum2\022\027.protocol.NumberMessage\032\034." + + "protocol.BlockListExtention\"\000\022S\n\035GetTran" + + "sactionCountByBlockNum\022\027.protocol.Number" + + "Message\032\027.protocol.NumberMessage\"\000\022E\n\022Ge" + + "tTransactionById\022\026.protocol.BytesMessage" + + "\032\025.protocol.Transaction\"\000\022M\n\026GetTransact" + + "ionInfoById\022\026.protocol.BytesMessage\032\031.pr" + + "otocol.TransactionInfo\"\000\022X\n\034GetTransacti" + + "onInfoByBlockNum\022\027.protocol.NumberMessag" + + "e\032\035.protocol.TransactionInfoList\"\000\022@\n\013Ge" + + "tContract\022\026.protocol.BytesMessage\032\027.prot" + + "ocol.SmartContract\"\000\022O\n\017GetContractInfo\022" + + "\026.protocol.BytesMessage\032\".protocol.Smart" + + "ContractDataWrapper\"\000\022@\n\rListWitnesses\022\026" + + ".protocol.EmptyMessage\032\025.protocol.Witnes" + + "sList\"\000\022E\n\020GetBrokerageInfo\022\026.protocol.B" + + "ytesMessage\032\027.protocol.NumberMessage\"\000\022B" + + "\n\rGetRewardInfo\022\026.protocol.BytesMessage\032" + + "\027.protocol.NumberMessage\"\000\022]\n\024GetDelegat" + + "edResource\022\".protocol.DelegatedResourceM" + + "essage\032\037.protocol.DelegatedResourceList\"" + + "\000\022e\n GetDelegatedResourceAccountIndex\022\026." + + "protocol.BytesMessage\032\'.protocol.Delegat" + + "edResourceAccountIndex\"\000\022A\n\rListProposal" + + "s\022\026.protocol.EmptyMessage\032\026.protocol.Pro" + + "posalList\"\000\022?\n\017GetProposalById\022\026.protoco" + + "l.BytesMessage\032\022.protocol.Proposal\"\000\022P\n\030" + + "GetPaginatedProposalList\022\032.protocol.Pagi" + + "natedMessage\032\026.protocol.ProposalList\"\000\022A" + + "\n\rListExchanges\022\026.protocol.EmptyMessage\032" + + "\026.protocol.ExchangeList\"\000\022?\n\017GetExchange" + + "ById\022\026.protocol.BytesMessage\032\022.protocol." + + "Exchange\"\000\022P\n\030GetPaginatedExchangeList\022\032" + + ".protocol.PaginatedMessage\032\026.protocol.Ex" + + "changeList\"\000\022a\n\033ScanShieldedTRC20NotesBy" + + "Ivk\022#.protocol.IvkDecryptTRC20Parameters" + + "\032\033.protocol.DecryptNotesTRC20\"\000\022a\n\033ScanS" + + "hieldedTRC20NotesByOvk\022#.protocol.OvkDec" + + "ryptTRC20Parameters\032\033.protocol.DecryptNo" + + "tesTRC20\"\000\022\\\n IsShieldedTRC20ContractNot" + + "eSpent\022\033.protocol.NfTRC20Parameters\032\031.pr" + + "otocol.NullifierResult\"\000\022N\n\027GetMarketOrd" + + "erByAccount\022\026.protocol.BytesMessage\032\031.pr" + + "otocol.MarketOrderList\"\000\022E\n\022GetMarketOrd" + + "erById\022\026.protocol.BytesMessage\032\025.protoco" + + "l.MarketOrder\"\000\022N\n\024GetMarketPriceByPair\022" + + "\031.protocol.MarketOrderPair\032\031.protocol.Ma" + + "rketPriceList\"\000\022R\n\030GetMarketOrderListByP" + + "air\022\031.protocol.MarketOrderPair\032\031.protoco" + + "l.MarketOrderList\"\000\022L\n\021GetMarketPairList" + + "\022\026.protocol.EmptyMessage\032\035.protocol.Mark" + + "etOrderPairList\"\000\022H\n\022GetTransactionSign\022" + + "\031.protocol.TransactionSign\032\025.protocol.Tr" + + "ansaction\"\000\022R\n\023GetTransactionSign2\022\031.pro" + + "tocol.TransactionSign\032\036.protocol.Transac" + + "tionExtention\"\000\022Y\n\021EasyTransferAsset\022\".p" + + "rotocol.EasyTransferAssetMessage\032\036.proto" + + "col.EasyTransferResponse\"\000\022k\n\032EasyTransf" + + "erAssetByPrivate\022+.protocol.EasyTransfer" + + "AssetByPrivateMessage\032\036.protocol.EasyTra" + + "nsferResponse\"\000\022O\n\014EasyTransfer\022\035.protoc" + + "ol.EasyTransferMessage\032\036.protocol.EasyTr" + + "ansferResponse\"\000\022a\n\025EasyTransferByPrivat" + + "e\022&.protocol.EasyTransferByPrivateMessag" + + "e\032\036.protocol.EasyTransferResponse\"\000\022A\n\rC" + + "reateAddress\022\026.protocol.BytesMessage\032\026.p" + + "rotocol.BytesMessage\"\000\022N\n\017GenerateAddres" + + "s\022\026.protocol.EmptyMessage\032!.protocol.Add" + + "ressPrKeyPairMessage\"\000\022F\n\007AddSign\022\031.prot" + + "ocol.TransactionSign\032\036.protocol.Transact" + + "ionExtention\"\000\022B\n\016GetSpendingKey\022\026.proto" + + "col.EmptyMessage\032\026.protocol.BytesMessage" + + "\"\000\022X\n\026GetExpandedSpendingKey\022\026.protocol." + + "BytesMessage\032$.protocol.ExpandedSpending" + + "KeyMessage\"\000\022@\n\014GetAkFromAsk\022\026.protocol." + + "BytesMessage\032\026.protocol.BytesMessage\"\000\022@" + + "\n\014GetNkFromNsk\022\026.protocol.BytesMessage\032\026" + + ".protocol.BytesMessage\"\000\022[\n\025GetIncomingV" + + "iewingKey\022\033.protocol.ViewingKeyMessage\032#" + + ".protocol.IncomingViewingKeyMessage\"\000\022H\n" + + "\016GetDiversifier\022\026.protocol.EmptyMessage\032" + + "\034.protocol.DiversifierMessage\"\000\022i\n\024GetZe" + + "nPaymentAddress\022..protocol.IncomingViewi" + + "ngKeyDiversifierMessage\032\037.protocol.Payme" + + "ntAddressMessage\"\000\022P\n\025GetNewShieldedAddr" + + "ess\022\026.protocol.EmptyMessage\032\035.protocol.S" + + "hieldedAddressInfo\"\000\022:\n\006GetRcm\022\026.protoco" + + "l.EmptyMessage\032\026.protocol.BytesMessage\"\000" + + "\022q\n CreateShieldedContractParameters\022(.p" + + "rotocol.PrivateShieldedTRC20Parameters\032!" + + ".protocol.ShieldedTRC20Parameters\"\000\022\205\001\n*" + + "CreateShieldedContractParametersWithoutA" + + "sk\0222.protocol.PrivateShieldedTRC20Parame" + + "tersWithoutAsk\032!.protocol.ShieldedTRC20P" + + "arameters\"\000\022u\n\'GetTriggerInputForShielde" + + "dTRC20Contract\0220.protocol.ShieldedTRC20T" + + "riggerContractParameters\032\026.protocol.Byte" + + "sMessage\"\000\022\204\001\n\031GetAvailableUnfreezeCount" + + "\0221.protocol.GetAvailableUnfreezeCountReq" + + "uestMessage\0322.protocol.GetAvailableUnfre" + + "ezeCountResponseMessage\"\000\022\207\001\n\034GetCanWith" + + "drawUnfreezeAmount\0221.protocol.CanWithdra" + + "wUnfreezeAmountRequestMessage\0322.protocol" + + ".CanWithdrawUnfreezeAmountResponseMessag" + + "e\"\000\022u\n\026GetCanDelegatedMaxSize\022+.protocol" + + ".CanDelegatedMaxSizeRequestMessage\032,.pro" + + "tocol.CanDelegatedMaxSizeResponseMessage" + + "\"\000\022_\n\026GetDelegatedResourceV2\022\".protocol." + + "DelegatedResourceMessage\032\037.protocol.Dele" + + "gatedResourceList\"\000\022g\n\"GetDelegatedResou" + + "rceAccountIndexV2\022\026.protocol.BytesMessag" + + "e\032\'.protocol.DelegatedResourceAccountInd" + + "ex\"\0002\243\002\n\016WalletSolidity\022B\n\nGetAccount\022\037." + + "protocol.AccountAddressMessage\032\021.protoco" + + "l.Account\"\000\022B\n\014GetNowBlock2\022\026.protocol.E" + + "mptyMessage\032\030.protocol.BlockExtention\"\000\022" + + "E\n\022GetTransactionById\022\026.protocol.BytesMe" + + "ssage\032\025.protocol.Transaction\"\000\022B\n\rGetRew" + + "ardInfo\022\026.protocol.BytesMessage\032\027.protoc" + + "ol.NumberMessage\"\000B\037\n\024org.tron.trident.a" + + "piB\007GrpcAPIb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java b/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java index 61736db..dbb8432 100644 --- a/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java +++ b/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java @@ -1,20 +1,22 @@ package org.tron.trident.core; import com.google.protobuf.InvalidProtocolBufferException; +import com.google.protobuf.Message; import org.tron.trident.abi.FunctionEncoder; import org.tron.trident.abi.datatypes.Function; import org.tron.trident.api.GrpcAPI; import org.tron.trident.api.GrpcAPI.BytesMessage; import org.tron.trident.core.contract.Contract; -import org.tron.trident.core.Constant; import org.tron.trident.api.WalletGrpc; import org.tron.trident.api.WalletSolidityGrpc; import org.tron.trident.core.contract.ContractFunction; import org.tron.trident.core.exceptions.IllegalException; import org.tron.trident.core.key.KeyPair; import org.tron.trident.core.transaction.TransactionBuilder; -import org.tron.trident.crypto.SECP256K1; +import org.tron.trident.core.utils.Sha256Hash; +import org.tron.trident.core.transaction.TransactionCapsule; +import org.tron.trident.core.utils.Utils; import org.tron.trident.proto.Chain.Transaction; import org.tron.trident.proto.Chain.Block; @@ -103,6 +105,8 @@ */ public class ApiWrapper { + public static final long TRANSACTION_DEFAULT_EXPIRATION_TIME = 60 * 1_000L; //60 seconds + public final WalletGrpc.WalletBlockingStub blockingStub; public final WalletSolidityGrpc.WalletSolidityBlockingStub blockingStubSolidity; public final KeyPair keyPair; @@ -263,6 +267,53 @@ public Transaction signTransaction(Transaction txn) { return signTransaction(txn, keyPair); } + + private TransactionCapsule createTransactionCapsuleWithoutValidate( + Message message, Transaction.Contract.ContractType contractType) throws Exception { + TransactionCapsule trx = new TransactionCapsule(message, contractType); + + if (contractType == Transaction.Contract.ContractType.CreateSmartContract) { + trx.setTransactionCreate(true); + org.tron.trident.proto.Contract.CreateSmartContract contract = Utils.getSmartContractFromTransaction(trx.getTransaction()); + long percent = contract.getNewContract().getConsumeUserResourcePercent(); + if (percent < 0 || percent > 100) { + throw new Exception("percent must be >= 0 and <= 100"); + } + } + //build transaction + trx.setTransactionCreate(false); + BlockExtention solidHeadBlock = blockingStubSolidity.getNowBlock2(EmptyMessage.getDefaultInstance()); + //get solid head blockId + byte[] blockHash = Utils.getBlockId(solidHeadBlock).getBytes(); + trx.setReference(solidHeadBlock.getBlockHeader().getRawData().getNumber(), blockHash); + + long expiration = solidHeadBlock.getBlockHeader().getRawData().getTimestamp() + TRANSACTION_DEFAULT_EXPIRATION_TIME; + trx.setExpiration(expiration); + trx.setTimestamp(); + + return trx; + } + /** + * build Transaction Extention in local. + * @param contractType transaction type. + * @param request transaction message object. + */ + public TransactionExtention createTransactionExtention(Message request, Transaction.Contract.ContractType contractType) throws IllegalException { + TransactionExtention.Builder trxExtBuilder = TransactionExtention.newBuilder(); + + try { + TransactionCapsule trx = createTransactionCapsuleWithoutValidate(request, contractType); + trxExtBuilder.setTransaction(trx.getTransaction()); + trxExtBuilder.setTxid(ByteString.copyFrom(Sha256Hash.hash(true, trx.getTransaction().getRawData().toByteArray()))); + } catch (Exception e) { + throw new IllegalException("createTransactionExtention error,"+e.getMessage()); + } + + return trxExtBuilder.build(); + } + + + /** * Estimate the bandwidth consumption of the transaction. * Please note that bandwidth estimations are based on signed transactions. @@ -346,11 +397,7 @@ public TransactionExtention transfer(String fromAddress, String toAddress, long .setToAddress(rawTo) .setAmount(amount) .build(); - TransactionExtention txnExt = blockingStub.createTransaction2(req); - - if(SUCCESS != txnExt.getResult().getCode()){ - throw new IllegalException(txnExt.getResult().getMessage().toStringUtf8()); - } + TransactionExtention txnExt = createTransactionExtention(req, Transaction.Contract.ContractType.TransferContract); return txnExt; } @@ -377,11 +424,7 @@ public TransactionExtention transferTrc10(String fromAddress, String toAddress, .setAmount(amount) .build(); - TransactionExtention txnExt = blockingStub.transferAsset2(req); - - if(SUCCESS != txnExt.getResult().getCode()){ - throw new IllegalException(txnExt.getResult().getMessage().toStringUtf8()); - } + TransactionExtention txnExt = createTransactionExtention(req, Transaction.Contract.ContractType.TransferAssetContract); return txnExt; } @@ -421,11 +464,7 @@ public TransactionExtention freezeBalance(String ownerAddress, long frozenBalanc .setResourceValue(resourceCode) .setReceiverAddress(rawReceiveFrom) .build(); - TransactionExtention txnExt = blockingStub.freezeBalance2(freezeBalanceContract); - - if(SUCCESS != txnExt.getResult().getCode()){ - throw new IllegalException(txnExt.getResult().getMessage().toStringUtf8()); - } + TransactionExtention txnExt = createTransactionExtention(freezeBalanceContract, Transaction.Contract.ContractType.FreezeBalanceContract); return txnExt; } @@ -447,11 +486,7 @@ public TransactionExtention freezeBalanceV2(String ownerAddress, long frozenBala .setFrozenBalance(frozenBalance) .setResourceValue(resourceCode) .build(); - TransactionExtention txnExt = blockingStub.freezeBalanceV2(freezeBalanceContract); - - if(SUCCESS != txnExt.getResult().getCode()){ - throw new IllegalException(txnExt.getResult().getMessage().toStringUtf8()); - } + TransactionExtention txnExt = createTransactionExtention(freezeBalanceContract, Transaction.Contract.ContractType.FreezeBalanceV2Contract); return txnExt; } @@ -486,11 +521,7 @@ public TransactionExtention unfreezeBalance(String ownerAddress, int resourceCod .setReceiverAddress(parseAddress(receiveAddress)) .build(); - TransactionExtention txnExt = blockingStub.unfreezeBalance2(unfreeze); - - if(SUCCESS != txnExt.getResult().getCode()){ - throw new IllegalException(txnExt.getResult().getMessage().toStringUtf8()); - } + TransactionExtention txnExt = createTransactionExtention(unfreeze, Transaction.Contract.ContractType.UnfreezeBalanceContract); return txnExt; } @@ -513,11 +544,7 @@ public TransactionExtention unfreezeBalanceV2(String ownerAddress, long unfreeze .setUnfreezeBalance(unfreezeBalance) .build(); - TransactionExtention txnExt = blockingStub.unfreezeBalanceV2(unfreeze); - - if(SUCCESS != txnExt.getResult().getCode()){ - throw new IllegalException(txnExt.getResult().getMessage().toStringUtf8()); - } + TransactionExtention txnExt = createTransactionExtention(unfreeze, Transaction.Contract.ContractType.UnfreezeBalanceV2Contract); return txnExt; } @@ -548,11 +575,7 @@ public TransactionExtention delegateResource(String ownerAddress, long balance, .setLock(lock) .setResourceValue(resourceCode) .build(); - TransactionExtention txnExt = blockingStub.delegateResource(delegateResourceContract); - - if(SUCCESS != txnExt.getResult().getCode()){ - throw new IllegalException(txnExt.getResult().getMessage().toStringUtf8()); - } + TransactionExtention txnExt = createTransactionExtention(delegateResourceContract, Transaction.Contract.ContractType.DelegateResourceContract); return txnExt; } @@ -577,11 +600,7 @@ public TransactionExtention undelegateResource(String ownerAddress, long balance .setReceiverAddress(rawReciever) .setResourceValue(resourceCode) .build(); - TransactionExtention txnExt = blockingStub.unDelegateResource(unDelegateResourceContract); - - if(SUCCESS != txnExt.getResult().getCode()){ - throw new IllegalException(txnExt.getResult().getMessage().toStringUtf8()); - } + TransactionExtention txnExt = createTransactionExtention(unDelegateResourceContract, Transaction.Contract.ContractType.UnDelegateResourceContract); return txnExt; } @@ -600,11 +619,7 @@ public TransactionExtention withdrawExpireUnfreeze(String ownerAddress) throws I WithdrawExpireUnfreezeContract.newBuilder() .setOwnerAddress(rawOwner) .build(); - TransactionExtention txnExt = blockingStub.withdrawExpireUnfreeze(withdrawExpireUnfreezeContract); - - if(SUCCESS != txnExt.getResult().getCode()){ - throw new IllegalException(txnExt.getResult().getMessage().toStringUtf8()); - } + TransactionExtention txnExt = createTransactionExtention(withdrawExpireUnfreezeContract, Transaction.Contract.ContractType.WithdrawExpireUnfreezeContract); return txnExt; } @@ -710,11 +725,7 @@ public DelegatedResourceAccountIndex getDelegatedResourceAccountIndexV2(String a public TransactionExtention voteWitness(String ownerAddress, HashMap votes) throws IllegalException { ByteString rawFrom = parseAddress(ownerAddress); VoteWitnessContract voteWitnessContract = createVoteWitnessContract(rawFrom, votes); - TransactionExtention txnExt = blockingStub.voteWitnessAccount2(voteWitnessContract); - - if(SUCCESS != txnExt.getResult().getCode()){ - throw new IllegalException(txnExt.getResult().getMessage().toStringUtf8()); - } + TransactionExtention txnExt = createTransactionExtention(voteWitnessContract, Transaction.Contract.ContractType.VoteWitnessContract); return txnExt; } @@ -733,11 +744,7 @@ public TransactionExtention createAccount(String ownerAddress, String accountAdd AccountCreateContract contract = createAccountCreateContract(bsOwnerAddress, bsAccountAddress); - TransactionExtention transactionExtention= blockingStub.createAccount2(contract); - - if(SUCCESS != transactionExtention.getResult().getCode()){ - throw new IllegalException(transactionExtention.getResult().getMessage().toStringUtf8()); - } + TransactionExtention transactionExtention = createTransactionExtention(contract, Transaction.Contract.ContractType.AccountCreateContract); return transactionExtention; } @@ -758,11 +765,7 @@ public TransactionExtention updateAccount(String address, String accountName) th AccountUpdateContract contract = createAccountUpdateContract(bsAccountName, bsAddress); - TransactionExtention transactionExtention= blockingStub.updateAccount2(contract); - - if(SUCCESS != transactionExtention.getResult().getCode()){ - throw new IllegalException(transactionExtention.getResult().getMessage().toStringUtf8()); - } + TransactionExtention transactionExtention = createTransactionExtention(contract, Transaction.Contract.ContractType.AccountUpdateContract); return transactionExtention; } @@ -787,10 +790,10 @@ public Block getNowBlock() throws IllegalException { * @return Block * @throws IllegalException if the parameters are not correct */ - public Block getBlockByNum(long blockNum) throws IllegalException { + public BlockExtention getBlockByNum(long blockNum) throws IllegalException { NumberMessage.Builder builder = NumberMessage.newBuilder(); builder.setNum(blockNum); - Block block = blockingStub.getBlockByNum(builder.build()); + BlockExtention block = blockingStub.getBlockByNum2(builder.build()); if(!block.hasBlockHeader()){ throw new IllegalException(); @@ -980,7 +983,7 @@ public Transaction setAccountId(String id, String address) throws IllegalExcepti SetAccountIdContract contract = createSetAccountIdContract(bsId, bsAddress); - Transaction transaction= blockingStub.setAccountId(contract); + Transaction transaction = createTransactionExtention(contract, Transaction.Contract.ContractType.SetAccountIdContract).getTransaction(); return transaction; } @@ -1144,10 +1147,8 @@ public TransactionExtention participateAssetIssue(String toAddress, String owner .setAmount(amount) .build(); - TransactionExtention transactionExtention = blockingStub.participateAssetIssue2(builder); - if(SUCCESS != transactionExtention.getResult().getCode()){ - throw new IllegalException(transactionExtention.getResult().getMessage().toStringUtf8()); - } + TransactionExtention transactionExtention = createTransactionExtention(builder, Transaction.Contract.ContractType.ParticipateAssetIssueContract); + return transactionExtention; } @@ -1262,11 +1263,8 @@ public TransactionExtention createAssetIssue(String ownerAddress, String name, S builder.addFrozenSupply(frozenBuilder.build()); } - TransactionExtention transactionExtention = blockingStub.createAssetIssue2(builder.build()); + TransactionExtention transactionExtention = createTransactionExtention(builder.build(), Transaction.Contract.ContractType.AssetIssueContract); - if(SUCCESS != transactionExtention.getResult().getCode()){ - throw new IllegalException(transactionExtention.getResult().getMessage().toStringUtf8()); - } return transactionExtention; } @@ -1297,11 +1295,8 @@ public TransactionExtention createAssetIssue(String ownerAddress, String name, S AssetIssueContract.Builder builder = assetIssueContractBuilder(ownerAddress, name, abbr, totalSupply, trxNum, icoNum, startTime, endTime, url, freeAssetNetLimit, publicFreeAssetNetLimit, precision, description); - TransactionExtention transactionExtention = blockingStub.createAssetIssue2(builder.build()); + TransactionExtention transactionExtention = createTransactionExtention(builder.build(), Transaction.Contract.ContractType.AssetIssueContract); - if(SUCCESS != transactionExtention.getResult().getCode()){ - throw new IllegalException(transactionExtention.getResult().getMessage().toStringUtf8()); - } return transactionExtention; } @@ -1347,11 +1342,7 @@ public TransactionExtention updateAsset(String ownerAddress, String description, UpdateAssetContract contract = createUpdateAssetContract(bsOwnerAddress, bsDescription,bsUrl,newLimit,newPublicLimit); - TransactionExtention transactionExtention= blockingStub.updateAsset2(contract); - - if(SUCCESS != transactionExtention.getResult().getCode()){ - throw new IllegalException(transactionExtention.getResult().getMessage().toStringUtf8()); - } + TransactionExtention transactionExtention = createTransactionExtention(contract, Transaction.Contract.ContractType.UpdateAssetContract); return transactionExtention; } @@ -1367,11 +1358,7 @@ public TransactionExtention unfreezeAsset(String ownerAddress) throws IllegalExc UnfreezeAssetContract contract = createUnfreezeAssetContract(bsOwnerAddress); - TransactionExtention transactionExtention= blockingStub.unfreezeAsset2(contract); - - if(SUCCESS != transactionExtention.getResult().getCode()){ - throw new IllegalException(transactionExtention.getResult().getMessage().toStringUtf8()); - } + TransactionExtention transactionExtention = createTransactionExtention(contract, Transaction.Contract.ContractType.UnfreezeAssetContract); return transactionExtention; } @@ -1384,11 +1371,8 @@ public TransactionExtention unfreezeAsset(String ownerAddress) throws IllegalExc */ public TransactionExtention accountPermissionUpdate(AccountPermissionUpdateContract contract) throws IllegalException { - TransactionExtention transactionExtention = blockingStub.accountPermissionUpdate(contract); + TransactionExtention transactionExtention = createTransactionExtention(contract, Transaction.Contract.ContractType.AccountPermissionUpdateContract); - if(SUCCESS != transactionExtention.getResult().getCode()){ - throw new IllegalException(transactionExtention.getResult().getMessage().toStringUtf8()); - } return transactionExtention; } @@ -1409,7 +1393,7 @@ public TransactionSignWeight getTransactionSignWeight(Transaction trx) { * @param trx transaction object * @return TransactionApprovedList */ - public TransactionApprovedList getTransactionApprovedList(Transaction trx) throws InvalidProtocolBufferException { + public TransactionApprovedList getTransactionApprovedList(Transaction trx) { TransactionApprovedList transactionApprovedList = blockingStub.getTransactionApprovedList(trx); @@ -1470,7 +1454,7 @@ public Transaction getTransactionByIdSolidity(String txID) throws IllegalExcepti * @param address address, default hexString * @return NumberMessage */ - public NumberMessage getRewardSolidity(String address) throws IllegalException { + public NumberMessage getRewardSolidity(String address) { ByteString bsAddress = parseAddress(address); BytesMessage bytesMessage = BytesMessage.newBuilder() .setValue(bsAddress) @@ -1555,7 +1539,9 @@ public TransactionExtention updateBrokerage(String address, int brokerage) throw .setOwnerAddress(ownerAddr) .setBrokerage(brokerage) .build(); - return blockingStub.updateBrokerage(upContract); + TransactionExtention transactionExtention = createTransactionExtention(upContract, Transaction.Contract.ContractType.UpdateBrokerageContract); + + return transactionExtention; } public long getBrokerageInfo(String address) { diff --git a/trident-java/core/src/main/java/org/tron/trident/core/transaction/BlockId.java b/trident-java/core/src/main/java/org/tron/trident/core/transaction/BlockId.java new file mode 100644 index 0000000..d37e1c6 --- /dev/null +++ b/trident-java/core/src/main/java/org/tron/trident/core/transaction/BlockId.java @@ -0,0 +1,58 @@ +package org.tron.trident.core.transaction; + +import org.tron.trident.core.utils.Sha256Hash; + +import java.util.Arrays; + +public class BlockId extends Sha256Hash { + + private long num; + + /** + * Use {@link #wrap(byte[])} instead. + */ + public BlockId(Sha256Hash hash, long num) { + super(num, hash); + this.num = num; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || (getClass() != o.getClass() && !(o instanceof Sha256Hash))) { + return false; + } + return Arrays.equals(getBytes(), ((Sha256Hash) o).getBytes()); + } + + public String getString() { + return "Num:" + num + ",ID:" + super.toString(); + } + + @Override + public String toString() { + return super.toString(); + } + + @Override + public int hashCode() { + return super.hashCode(); + } + + @Override + public int compareTo(Sha256Hash other) { + if (other.getClass().equals(BlockId.class)) { + long otherNum = ((BlockId) other).getNum(); + return Long.compare(num, otherNum); + } + return super.compareTo(other); + } + + public long getNum() { + return num; + } +} + + diff --git a/trident-java/core/src/main/java/org/tron/trident/core/transaction/TransactionCapsule.java b/trident-java/core/src/main/java/org/tron/trident/core/transaction/TransactionCapsule.java new file mode 100644 index 0000000..48b4163 --- /dev/null +++ b/trident-java/core/src/main/java/org/tron/trident/core/transaction/TransactionCapsule.java @@ -0,0 +1,100 @@ +package org.tron.trident.core.transaction; + +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import org.tron.trident.core.utils.ByteArray; +import org.tron.trident.proto.Chain; + +public class TransactionCapsule { + + public TransactionCapsule(com.google.protobuf.Message message, Chain.Transaction.Contract.ContractType contractType) { + Chain.Transaction.raw.Builder transactionBuilder = Chain.Transaction.raw.newBuilder().addContract( + Chain.Transaction.Contract.newBuilder().setType(contractType).setParameter( + (message instanceof Any ? (Any) message : Any.pack(message))).build()); + transaction = Chain.Transaction.newBuilder().setRawData(transactionBuilder.build()).build(); + } + + private Chain.Transaction transaction; + + private boolean isVerified = false; + + private long blockNum = -1; + + + private long time; + + private long order; + + private boolean isTransactionCreate = false; + + public boolean isTransactionCreate() { + return isTransactionCreate; + } + + public void setTransactionCreate(boolean transactionCreate) { + isTransactionCreate = transactionCreate; + } + + + public Chain.Transaction getTransaction() { + return transaction; + } + + public void setTransaction(Chain.Transaction transaction) { + this.transaction = transaction; + } + + public boolean isVerified() { + return isVerified; + } + + public void setVerified(boolean verified) { + isVerified = verified; + } + + public long getBlockNum() { + return blockNum; + } + + public void setBlockNum(long blockNum) { + this.blockNum = blockNum; + } + + public long getTime() { + return time; + } + + public void setTime(long time) { + this.time = time; + } + + public long getOrder() { + return order; + } + + public void setOrder(long order) { + this.order = order; + } + + public void setReference(long blockNum, byte[] blockHash) { + byte[] refBlockNum = ByteArray.fromLong(blockNum); + Chain.Transaction.raw rawData = this.transaction.getRawData().toBuilder() + .setRefBlockHash(ByteString.copyFrom(ByteArray.subArray(blockHash, 8, 16))) + .setRefBlockBytes(ByteString.copyFrom(ByteArray.subArray(refBlockNum, 6, 8))) + .build(); + this.transaction = this.transaction.toBuilder().setRawData(rawData).build(); + } + + public void setExpiration(long expiration) { + Chain.Transaction.raw rawData = this.transaction.getRawData().toBuilder().setExpiration(expiration) + .build(); + this.transaction = this.transaction.toBuilder().setRawData(rawData).build(); + } + + public void setTimestamp() { + Chain.Transaction.raw rawData = this.transaction.getRawData().toBuilder() + .setTimestamp(System.currentTimeMillis()) + .build(); + this.transaction = this.transaction.toBuilder().setRawData(rawData).build(); + } +} diff --git a/trident-java/core/src/main/java/org/tron/trident/core/utils/ByteArray.java b/trident-java/core/src/main/java/org/tron/trident/core/utils/ByteArray.java new file mode 100644 index 0000000..68520a2 --- /dev/null +++ b/trident-java/core/src/main/java/org/tron/trident/core/utils/ByteArray.java @@ -0,0 +1,128 @@ +package org.tron.trident.core.utils; + +import com.google.common.primitives.Ints; +import com.google.common.primitives.Longs; +import org.bouncycastle.util.encoders.Hex; + +import java.math.BigInteger; +import java.util.Arrays; +import java.util.List; + +/* + * Copyright (c) [2016] [ ] + * This file is part of the ethereumJ library. + * + * The ethereumJ library is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * The ethereumJ library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with the ethereumJ library. If not, see . + */ +public class ByteArray { + + public static String toHexString(byte[] data) { + return data == null ? "" : Hex.toHexString(data); + } + public static final byte[] EMPTY_BYTE_ARRAY = new byte[0]; + /** + * get bytes data from hex string data. + */ + public static byte[] fromHexString(String data) { + if (data == null) { + return EMPTY_BYTE_ARRAY; + } + if (data.startsWith("0x")) { + data = data.substring(2); + } + if (data.length() % 2 != 0) { + data = "0" + data; + } + return Hex.decode(data); + } + + public static byte[] fromLong(long val) { + return Longs.toByteArray(val); + } + + public static byte[] fromInt(int val) { + return Ints.toByteArray(val); + } + + + /** + * Stringify byte[] x + * null for null + * null for empty [] + */ + public static String toJsonHex(byte[] x) { + return x == null || x.length == 0 ? "0x" : "0x" + Hex.toHexString(x); + } + + public static String toJsonHex(Long x) { + return x == null ? null : "0x" + Long.toHexString(x); + } + + + public static BigInteger hexToBigInteger(String input) { + if (input.startsWith("0x")) { + return new BigInteger(input.substring(2), 16); + } else { + return new BigInteger(input, 10); + } + } + + + + public static int jsonHexToInt(String x) throws Exception { + if (!x.startsWith("0x")) { + throw new Exception("Incorrect hex syntax"); + } + x = x.substring(2); + return Integer.parseInt(x, 16); + } + + /** + * Generate a subarray of a given byte array. + * + * @param input the input byte array + * @param start the start index + * @param end the end index + * @return a subarray of input, ranging from start (inclusively) to end + * (exclusively) + */ + public static byte[] subArray(byte[] input, int start, int end) { + byte[] result = new byte[end - start]; + System.arraycopy(input, start, result, 0, end - start); + return result; + } + + public static boolean isEmpty(byte[] input) { + return input == null || input.length == 0; + } + + public static boolean matrixContains(List source, byte[] obj) { + for (byte[] sobj : source) { + if (Arrays.equals(sobj, obj)) { + return true; + } + } + return false; + } + + public static String fromHex(String x) { + if (x.startsWith("0x")) { + x = x.substring(2); + } + if (x.length() % 2 != 0) { + x = "0" + x; + } + return x; + } +} diff --git a/trident-java/core/src/main/java/org/tron/trident/core/utils/Sha256Hash.java b/trident-java/core/src/main/java/org/tron/trident/core/utils/Sha256Hash.java new file mode 100644 index 0000000..95ff7f4 --- /dev/null +++ b/trident-java/core/src/main/java/org/tron/trident/core/utils/Sha256Hash.java @@ -0,0 +1,333 @@ +package org.tron.trident.core.utils; + +/* + * Copyright 2011 Google Inc. + * Copyright 2014 Andreas Schildbach + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import com.google.common.io.ByteStreams; +import com.google.common.primitives.Ints; +import com.google.common.primitives.Longs; +import com.google.protobuf.ByteString; +import org.bouncycastle.crypto.digests.SM3Digest; + +import java.io.File; +import java.io.FileInputStream; +import java.io.IOException; +import java.io.Serializable; +import java.math.BigInteger; +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; +import java.util.Arrays; + +import static com.google.common.base.Preconditions.checkArgument; + + +/** + * A Sha256Hash just wraps a byte[] so that equals and hashcode work correctly, allowing it to be + * used as keys in a map. It also checks that the length is correct and provides a bit more type + * safety. + */ +public class Sha256Hash implements Serializable, Comparable { + + public static final int LENGTH = 32; // bytes + public static final Sha256Hash ZERO_HASH = wrap(new byte[LENGTH]); + + private final byte[] bytes; + + public Sha256Hash(long num, byte[] hash) { + byte[] rawHashBytes = this.generateBlockId(num, hash); + checkArgument(rawHashBytes.length == LENGTH); + this.bytes = rawHashBytes; + } + + public Sha256Hash(long num, Sha256Hash hash) { + byte[] rawHashBytes = this.generateBlockId(num, hash); + checkArgument(rawHashBytes.length == LENGTH); + this.bytes = rawHashBytes; + } + + /** + * Use {@link #wrap(byte[])} instead. + */ + @Deprecated + public Sha256Hash(byte[] rawHashBytes) { + checkArgument(rawHashBytes.length == LENGTH); + this.bytes = rawHashBytes; + } + + /** + * Creates a new instance that wraps the given hash value. + * + * @param rawHashBytes the raw hash bytes to wrap + * @return a new instance + * @throws IllegalArgumentException if the given array length is not exactly 32 + */ + @SuppressWarnings("deprecation") // the constructor will be made private in the future + public static Sha256Hash wrap(byte[] rawHashBytes) { + return new Sha256Hash(rawHashBytes); + } + + public static Sha256Hash wrap(ByteString rawHashByteString) { + return wrap(rawHashByteString.toByteArray()); + } + + /** + * Use {@link #of(byte[])} instead: this old name is ambiguous. + */ + @Deprecated + public static Sha256Hash create(boolean isSha256, byte[] contents) { + return of(isSha256, contents); + } + + /** + * Creates a new instance containing the calculated (one-time) hash of the given bytes. + * + * @param contents the bytes on which the hash value is calculated + * @return a new instance containing the calculated (one-time) hash + */ + public static Sha256Hash of(boolean isSha256, byte[] contents) { + return wrap(hash(isSha256, contents)); + } + + /** + * Creates a new instance containing the calculated (one-time) hash of the given file's contents. + * The file contents are read fully into memory, so this method should only be used with small + * files. + * + * @param file the file on which the hash value is calculated + * @return a new instance containing the calculated (one-time) hash + * @throws IOException if an error occurs while reading the file + */ + public static Sha256Hash of(boolean isSha256, File file) throws IOException { + + try (FileInputStream in = new FileInputStream(file)) { + return of(isSha256, ByteStreams.toByteArray(in)); + } + } + + /** + * Use {@link #twiceOf(byte[])} instead: this old name is ambiguous. + */ + @Deprecated + public static Sha256Hash createDouble(boolean isSha256, byte[] contents) { + return twiceOf(isSha256, contents); + } + + /** + * Creates a new instance containing the hash of the calculated hash of the given bytes. + * + * @param contents the bytes on which the hash value is calculated + * @return a new instance containing the calculated (two-time) hash + */ + public static Sha256Hash twiceOf(boolean isSha256, byte[] contents) { + return wrap(hashTwice(isSha256, contents)); + } + + /** + * Returns a new SHA-256 MessageDigest instance. This is a convenience method which wraps the + * checked exception that can never occur with a RuntimeException. + * + * @return a new SHA-256 MessageDigest instance + */ + public static MessageDigest newDigest() { + try { + return MessageDigest.getInstance("SHA-256"); + } catch (NoSuchAlgorithmException e) { + throw new RuntimeException(e); // Can't happen. + } + } + + /** + * Returns a new SM3 MessageDigest instance. This is a convenience method which wraps the checked + * exception that can never occur with a RuntimeException. + * + * @return a new SM3 MessageDigest instance + */ + public static SM3Digest newSM3Digest() { + return new SM3Digest(); + } + + /** + * Calculates the SHA-256 hash of the given bytes. + * + * @param input the bytes to hash + * @return the hash (in big-endian order) + */ + public static byte[] hash(boolean isSha256, byte[] input) { + return hash(isSha256, input, 0, input.length); + } + + /** + * Calculates the SHA-256 hash of the given byte range. + * + * @param input the array containing the bytes to hash + * @param offset the offset within the array of the bytes to hash + * @param length the number of bytes to hash + * @return the hash (in big-endian order) + */ + public static byte[] hash(boolean isSha256, byte[] input, int offset, int length) { + if (isSha256) { + MessageDigest digest = newDigest(); + digest.update(input, offset, length); + return digest.digest(); + } else { + SM3Digest digest = newSM3Digest(); + digest.update(input, offset, length); + byte[] eHash = new byte[digest.getDigestSize()]; + digest.doFinal(eHash, 0); + return eHash; + } + + } + + /** + * Calculates the SHA-256 hash of the given bytes, and then hashes the resulting hash again. + * + * @param input the bytes to hash + * @return the double-hash (in big-endian order) + */ + public static byte[] hashTwice(boolean isSha256, byte[] input) { + return hashTwice(isSha256, input, 0, input.length); + } + + /** + * Calculates the SHA-256 hash of the given byte range, and then hashes the resulting hash again. + * + * @param input the array containing the bytes to hash + * @param offset the offset within the array of the bytes to hash + * @param length the number of bytes to hash + * @return the double-hash (in big-endian order) + */ + public static byte[] hashTwice(boolean isSha256, byte[] input, int offset, int length) { + if (isSha256) { + MessageDigest digest = newDigest(); + digest.update(input, offset, length); + return digest.digest(digest.digest()); + } else { + SM3Digest digest = newSM3Digest(); + digest.update(input, offset, length); + byte[] eHash = new byte[digest.getDigestSize()]; + digest.doFinal(eHash, 0); + digest.reset(); + digest.update(eHash, 0, eHash.length); + digest.doFinal(eHash, 0); + return eHash; + } + + } + + /** + * Calculates the hash of hash on the given byte ranges. This is equivalent to concatenating the + * two ranges and then passing the result to {@link #hashTwice(byte[])}. + */ + public static byte[] hashTwice(boolean isSha256, byte[] input1, int offset1, int length1, + byte[] input2, int offset2, int length2) { + if (isSha256) { + MessageDigest digest = newDigest(); + digest.update(input1, offset1, length1); + digest.update(input2, offset2, length2); + return digest.digest(digest.digest()); + } else { + SM3Digest digest = newSM3Digest(); + digest.update(input1, offset1, length1); + digest.update(input2, offset2, length2); + byte[] eHash = new byte[digest.getDigestSize()]; + digest.doFinal(eHash, 0); + return eHash; + } + } + + private byte[] generateBlockId(long blockNum, Sha256Hash blockHash) { + byte[] numBytes = Longs.toByteArray(blockNum); + byte[] hash = new byte[blockHash.getBytes().length]; + System.arraycopy(numBytes, 0, hash, 0, 8); + System.arraycopy(blockHash.getBytes(), 8, hash, 8, blockHash.getBytes().length - 8); + return hash; + } + + private byte[] generateBlockId(long blockNum, byte[] blockHash) { + byte[] numBytes = Longs.toByteArray(blockNum); + byte[] hash = new byte[blockHash.length]; + System.arraycopy(numBytes, 0, hash, 0, 8); + System.arraycopy(blockHash, 8, hash, 8, blockHash.length - 8); + return hash; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || !(o instanceof Sha256Hash)) { + return false; + } + return Arrays.equals(bytes, ((Sha256Hash) o).bytes); + } + + @Override + public String toString() { + return ByteArray.toHexString(bytes); + } + + /** + * Returns the last four bytes of the wrapped hash. This should be unique enough to be a suitable + * hash code even for blocks, where the goal is to try and get the first bytes to be zeros (i.e. + * the value as a big integer lower than the target value). + */ + @Override + public int hashCode() { + // Use the last 4 bytes, not the first 4 which are often zeros in Bitcoin. + return Ints + .fromBytes(bytes[LENGTH - 4], bytes[LENGTH - 3], bytes[LENGTH - 2], bytes[LENGTH - 1]); + } + + /** + * Returns the bytes interpreted as a positive integer. + */ + public BigInteger toBigInteger() { + return new BigInteger(1, bytes); + } + + /** + * Returns the internal byte array, without defensively copying. Therefore do NOT modify the + * returned array. + */ + public byte[] getBytes() { + return bytes; + } + + /** + * For pb return ByteString. + */ + public ByteString getByteString() { + return ByteString.copyFrom(bytes); + } + + @Override + public int compareTo(final Sha256Hash other) { + for (int i = LENGTH - 1; i >= 0; i--) { + final int thisByte = this.bytes[i] & 0xff; + final int otherByte = other.bytes[i] & 0xff; + if (thisByte > otherByte) { + return 1; + } + if (thisByte < otherByte) { + return -1; + } + } + return 0; + } +} diff --git a/trident-java/core/src/main/java/org/tron/trident/core/utils/Utils.java b/trident-java/core/src/main/java/org/tron/trident/core/utils/Utils.java new file mode 100644 index 0000000..9251fe8 --- /dev/null +++ b/trident-java/core/src/main/java/org/tron/trident/core/utils/Utils.java @@ -0,0 +1,32 @@ +package org.tron.trident.core.utils; + +import com.google.protobuf.Any; +import com.google.protobuf.InvalidProtocolBufferException; +import org.tron.trident.core.transaction.BlockId; +import org.tron.trident.proto.Chain; +import org.tron.trident.proto.Contract; +import org.tron.trident.proto.Response; + +public class Utils { + + public static BlockId getBlockId(Response.BlockExtention blockExtention) { + BlockId blockId = new BlockId(Sha256Hash.ZERO_HASH, 0); + if (blockId.equals(Sha256Hash.ZERO_HASH)) { + blockId = + new BlockId(Sha256Hash.of(true, + blockExtention.getBlockHeader().getRawData().toByteArray()), blockExtention.getBlockHeader().getRawData().getNumber()); + } + return blockId; + } + + public static Contract.CreateSmartContract getSmartContractFromTransaction(Chain.Transaction trx) { + try { + Any any = trx.getRawData().getContract(0).getParameter(); + Contract.CreateSmartContract createSmartContract = any.unpack(Contract.CreateSmartContract.class); + return createSmartContract; + } catch (InvalidProtocolBufferException e) { + return null; + } + } + +} diff --git a/trident-java/core/src/main/java/org/tron/trident/proto/Response.java b/trident-java/core/src/main/java/org/tron/trident/proto/Response.java index 5e96e06..acf944b 100644 --- a/trident-java/core/src/main/java/org/tron/trident/proto/Response.java +++ b/trident-java/core/src/main/java/org/tron/trident/proto/Response.java @@ -35670,6 +35670,12 @@ public interface DelegatedResourceAccountIndexOrBuilder extends * @return The toAccounts at the given index. */ com.google.protobuf.ByteString getToAccounts(int index); + + /** + * int64 timestamp = 4; + * @return The timestamp. + */ + long getTimestamp(); } /** * Protobuf type {@code protocol.DelegatedResourceAccountIndex} @@ -35741,6 +35747,11 @@ private DelegatedResourceAccountIndex( toAccounts_.add(input.readBytes()); break; } + case 32: { + + timestamp_ = input.readInt64(); + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -35844,6 +35855,17 @@ public com.google.protobuf.ByteString getToAccounts(int index) { return toAccounts_.get(index); } + public static final int TIMESTAMP_FIELD_NUMBER = 4; + private long timestamp_; + /** + * int64 timestamp = 4; + * @return The timestamp. + */ + @java.lang.Override + public long getTimestamp() { + return timestamp_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -35867,6 +35889,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < toAccounts_.size(); i++) { output.writeBytes(3, toAccounts_.get(i)); } + if (timestamp_ != 0L) { + output.writeInt64(4, timestamp_); + } unknownFields.writeTo(output); } @@ -35898,6 +35923,10 @@ public int getSerializedSize() { size += dataSize; size += 1 * getToAccountsList().size(); } + if (timestamp_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, timestamp_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -35919,6 +35948,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getFromAccountsList())) return false; if (!getToAccountsList() .equals(other.getToAccountsList())) return false; + if (getTimestamp() + != other.getTimestamp()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -35940,6 +35971,9 @@ public int hashCode() { hash = (37 * hash) + TOACCOUNTS_FIELD_NUMBER; hash = (53 * hash) + getToAccountsList().hashCode(); } + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimestamp()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -36079,6 +36113,8 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000001); toAccounts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); + timestamp_ = 0L; + return this; } @@ -36117,6 +36153,7 @@ public org.tron.trident.proto.Response.DelegatedResourceAccountIndex buildPartia bitField0_ = (bitField0_ & ~0x00000002); } result.toAccounts_ = toAccounts_; + result.timestamp_ = timestamp_; onBuilt(); return result; } @@ -36188,6 +36225,9 @@ public Builder mergeFrom(org.tron.trident.proto.Response.DelegatedResourceAccoun } onChanged(); } + if (other.getTimestamp() != 0L) { + setTimestamp(other.getTimestamp()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -36421,6 +36461,37 @@ public Builder clearToAccounts() { onChanged(); return this; } + + private long timestamp_ ; + /** + * int64 timestamp = 4; + * @return The timestamp. + */ + @java.lang.Override + public long getTimestamp() { + return timestamp_; + } + /** + * int64 timestamp = 4; + * @param value The timestamp to set. + * @return This builder for chaining. + */ + public Builder setTimestamp(long value) { + + timestamp_ = value; + onChanged(); + return this; + } + /** + * int64 timestamp = 4; + * @return This builder for chaining. + */ + public Builder clearTimestamp() { + + timestamp_ = 0L; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -65487,6 +65558,24 @@ long getAssetNetLimitOrThrow( */ long getTotalNetWeight(); + /** + * int64 TotalTronPowerWeight = 9; + * @return The totalTronPowerWeight. + */ + long getTotalTronPowerWeight(); + + /** + * int64 tronPowerUsed = 10; + * @return The tronPowerUsed. + */ + long getTronPowerUsed(); + + /** + * int64 tronPowerLimit = 11; + * @return The tronPowerLimit. + */ + long getTronPowerLimit(); + /** * int64 EnergyUsed = 13; * @return The energyUsed. @@ -65625,6 +65714,21 @@ private AccountResourceMessage( totalNetWeight_ = input.readInt64(); break; } + case 72: { + + totalTronPowerWeight_ = input.readInt64(); + break; + } + case 80: { + + tronPowerUsed_ = input.readInt64(); + break; + } + case 88: { + + tronPowerLimit_ = input.readInt64(); + break; + } case 104: { energyUsed_ = input.readInt64(); @@ -65929,6 +66033,39 @@ public long getTotalNetWeight() { return totalNetWeight_; } + public static final int TOTALTRONPOWERWEIGHT_FIELD_NUMBER = 9; + private long totalTronPowerWeight_; + /** + * int64 TotalTronPowerWeight = 9; + * @return The totalTronPowerWeight. + */ + @java.lang.Override + public long getTotalTronPowerWeight() { + return totalTronPowerWeight_; + } + + public static final int TRONPOWERUSED_FIELD_NUMBER = 10; + private long tronPowerUsed_; + /** + * int64 tronPowerUsed = 10; + * @return The tronPowerUsed. + */ + @java.lang.Override + public long getTronPowerUsed() { + return tronPowerUsed_; + } + + public static final int TRONPOWERLIMIT_FIELD_NUMBER = 11; + private long tronPowerLimit_; + /** + * int64 tronPowerLimit = 11; + * @return The tronPowerLimit. + */ + @java.lang.Override + public long getTronPowerLimit() { + return tronPowerLimit_; + } + public static final int ENERGYUSED_FIELD_NUMBER = 13; private long energyUsed_; /** @@ -66039,6 +66176,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (totalNetWeight_ != 0L) { output.writeInt64(8, totalNetWeight_); } + if (totalTronPowerWeight_ != 0L) { + output.writeInt64(9, totalTronPowerWeight_); + } + if (tronPowerUsed_ != 0L) { + output.writeInt64(10, tronPowerUsed_); + } + if (tronPowerLimit_ != 0L) { + output.writeInt64(11, tronPowerLimit_); + } if (energyUsed_ != 0L) { output.writeInt64(13, energyUsed_); } @@ -66110,6 +66256,18 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, totalNetWeight_); } + if (totalTronPowerWeight_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(9, totalTronPowerWeight_); + } + if (tronPowerUsed_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(10, tronPowerUsed_); + } + if (tronPowerLimit_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(11, tronPowerLimit_); + } if (energyUsed_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(13, energyUsed_); @@ -66165,6 +66323,12 @@ public boolean equals(final java.lang.Object obj) { != other.getTotalNetLimit()) return false; if (getTotalNetWeight() != other.getTotalNetWeight()) return false; + if (getTotalTronPowerWeight() + != other.getTotalTronPowerWeight()) return false; + if (getTronPowerUsed() + != other.getTronPowerUsed()) return false; + if (getTronPowerLimit() + != other.getTronPowerLimit()) return false; if (getEnergyUsed() != other.getEnergyUsed()) return false; if (getEnergyLimit() @@ -66214,6 +66378,15 @@ public int hashCode() { hash = (37 * hash) + TOTALNETWEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalNetWeight()); + hash = (37 * hash) + TOTALTRONPOWERWEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalTronPowerWeight()); + hash = (37 * hash) + TRONPOWERUSED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTronPowerUsed()); + hash = (37 * hash) + TRONPOWERLIMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTronPowerLimit()); hash = (37 * hash) + ENERGYUSED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEnergyUsed()); @@ -66405,6 +66578,12 @@ public Builder clear() { totalNetWeight_ = 0L; + totalTronPowerWeight_ = 0L; + + tronPowerUsed_ = 0L; + + tronPowerLimit_ = 0L; + energyUsed_ = 0L; energyLimit_ = 0L; @@ -66454,6 +66633,9 @@ public org.tron.trident.proto.Response.AccountResourceMessage buildPartial() { result.assetNetLimit_.makeImmutable(); result.totalNetLimit_ = totalNetLimit_; result.totalNetWeight_ = totalNetWeight_; + result.totalTronPowerWeight_ = totalTronPowerWeight_; + result.tronPowerUsed_ = tronPowerUsed_; + result.tronPowerLimit_ = tronPowerLimit_; result.energyUsed_ = energyUsed_; result.energyLimit_ = energyLimit_; result.totalEnergyLimit_ = totalEnergyLimit_; @@ -66530,6 +66712,15 @@ public Builder mergeFrom(org.tron.trident.proto.Response.AccountResourceMessage if (other.getTotalNetWeight() != 0L) { setTotalNetWeight(other.getTotalNetWeight()); } + if (other.getTotalTronPowerWeight() != 0L) { + setTotalTronPowerWeight(other.getTotalTronPowerWeight()); + } + if (other.getTronPowerUsed() != 0L) { + setTronPowerUsed(other.getTronPowerUsed()); + } + if (other.getTronPowerLimit() != 0L) { + setTronPowerLimit(other.getTronPowerLimit()); + } if (other.getEnergyUsed() != 0L) { setEnergyUsed(other.getEnergyUsed()); } @@ -67020,6 +67211,99 @@ public Builder clearTotalNetWeight() { return this; } + private long totalTronPowerWeight_ ; + /** + * int64 TotalTronPowerWeight = 9; + * @return The totalTronPowerWeight. + */ + @java.lang.Override + public long getTotalTronPowerWeight() { + return totalTronPowerWeight_; + } + /** + * int64 TotalTronPowerWeight = 9; + * @param value The totalTronPowerWeight to set. + * @return This builder for chaining. + */ + public Builder setTotalTronPowerWeight(long value) { + + totalTronPowerWeight_ = value; + onChanged(); + return this; + } + /** + * int64 TotalTronPowerWeight = 9; + * @return This builder for chaining. + */ + public Builder clearTotalTronPowerWeight() { + + totalTronPowerWeight_ = 0L; + onChanged(); + return this; + } + + private long tronPowerUsed_ ; + /** + * int64 tronPowerUsed = 10; + * @return The tronPowerUsed. + */ + @java.lang.Override + public long getTronPowerUsed() { + return tronPowerUsed_; + } + /** + * int64 tronPowerUsed = 10; + * @param value The tronPowerUsed to set. + * @return This builder for chaining. + */ + public Builder setTronPowerUsed(long value) { + + tronPowerUsed_ = value; + onChanged(); + return this; + } + /** + * int64 tronPowerUsed = 10; + * @return This builder for chaining. + */ + public Builder clearTronPowerUsed() { + + tronPowerUsed_ = 0L; + onChanged(); + return this; + } + + private long tronPowerLimit_ ; + /** + * int64 tronPowerLimit = 11; + * @return The tronPowerLimit. + */ + @java.lang.Override + public long getTronPowerLimit() { + return tronPowerLimit_; + } + /** + * int64 tronPowerLimit = 11; + * @param value The tronPowerLimit to set. + * @return This builder for chaining. + */ + public Builder setTronPowerLimit(long value) { + + tronPowerLimit_ = value; + onChanged(); + return this; + } + /** + * int64 tronPowerLimit = 11; + * @return This builder for chaining. + */ + public Builder clearTronPowerLimit() { + + tronPowerLimit_ = 0L; + onChanged(); + return this; + } + private long energyUsed_ ; /** * int64 EnergyUsed = 13; @@ -67786,147 +68070,149 @@ public org.tron.trident.proto.Response.AccountResourceMessage getDefaultInstance "\022\n\n\002to\030\002 \001(\014\022$\n\034frozen_balance_for_bandw" + "idth\030\003 \001(\003\022!\n\031frozen_balance_for_energy\030" + "\004 \001(\003\022!\n\031expire_time_for_bandwidth\030\005 \001(\003" + - "\022\036\n\026expire_time_for_energy\030\006 \001(\003\"Z\n\035Dele" + + "\022\036\n\026expire_time_for_energy\030\006 \001(\003\"m\n\035Dele" + "gatedResourceAccountIndex\022\017\n\007account\030\001 \001" + "(\014\022\024\n\014fromAccounts\030\002 \003(\014\022\022\n\ntoAccounts\030\003" + - " \003(\014\"Q\n\017TransactionSign\022*\n\013transaction\030\001" + - " \001(\0132\025.protocol.Transaction\022\022\n\nprivateKe" + - "y\030\002 \001(\014\"\201\001\n\017ChainParameters\022@\n\016chainPara" + - "meter\030\001 \003(\0132(.protocol.ChainParameters.C" + - "hainParameter\032,\n\016ChainParameter\022\013\n\003key\030\001" + - " \001(\t\022\r\n\005value\030\002 \001(\003\"\240\021\n\010NodeInfo\022\024\n\014begi" + - "nSyncNum\030\001 \001(\003\022\r\n\005block\030\002 \001(\t\022\025\n\rsolidit" + - "yBlock\030\003 \001(\t\022\033\n\023currentConnectCount\030\004 \001(" + - "\005\022\032\n\022activeConnectCount\030\005 \001(\005\022\033\n\023passive" + - "ConnectCount\030\006 \001(\005\022\021\n\ttotalFlow\030\007 \001(\003\0221\n" + - "\014peerInfoList\030\010 \003(\0132\033.protocol.NodeInfo." + - "PeerInfo\0229\n\016configNodeInfo\030\t \001(\0132!.proto" + - "col.NodeInfo.ConfigNodeInfo\0223\n\013machineIn" + - "fo\030\n \001(\0132\036.protocol.NodeInfo.MachineInfo" + - "\022H\n\023cheatWitnessInfoMap\030\013 \003(\0132+.protocol" + - ".NodeInfo.CheatWitnessInfoMapEntry\032:\n\030Ch" + - "eatWitnessInfoMapEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + - "alue\030\002 \001(\t:\0028\001\032\315\004\n\010PeerInfo\022\025\n\rlastSyncB" + - "lock\030\001 \001(\t\022\021\n\tremainNum\030\002 \001(\003\022\033\n\023lastBlo" + - "ckUpdateTime\030\003 \001(\003\022\020\n\010syncFlag\030\004 \001(\010\022\037\n\027" + - "headBlockTimeWeBothHave\030\005 \001(\003\022\030\n\020needSyn" + - "cFromPeer\030\006 \001(\010\022\026\n\016needSyncFromUs\030\007 \001(\010\022" + - "\014\n\004host\030\010 \001(\t\022\014\n\004port\030\t \001(\005\022\016\n\006nodeId\030\n " + - "\001(\t\022\023\n\013connectTime\030\013 \001(\003\022\022\n\navgLatency\030\014" + - " \001(\001\022\027\n\017syncToFetchSize\030\r \001(\005\022\036\n\026syncToF" + - "etchSizePeekNum\030\016 \001(\003\022\036\n\026syncBlockReques" + - "tedSize\030\017 \001(\005\022\025\n\runFetchSynNum\030\020 \001(\003\022\027\n\017" + - "blockInPorcSize\030\021 \001(\005\022\033\n\023headBlockWeBoth" + - "Have\030\022 \001(\t\022\020\n\010isActive\030\023 \001(\010\022\r\n\005score\030\024 " + - "\001(\005\022\021\n\tnodeCount\030\025 \001(\005\022\016\n\006inFlow\030\026 \001(\003\022\027" + - "\n\017disconnectTimes\030\027 \001(\005\022\035\n\025localDisconne" + - "ctReason\030\030 \001(\t\022\036\n\026remoteDisconnectReason" + - "\030\031 \001(\t\032\345\003\n\016ConfigNodeInfo\022\023\n\013codeVersion" + - "\030\001 \001(\t\022\022\n\np2pVersion\030\002 \001(\t\022\022\n\nlistenPort" + - "\030\003 \001(\005\022\026\n\016discoverEnable\030\004 \001(\010\022\026\n\016active" + - "NodeSize\030\005 \001(\005\022\027\n\017passiveNodeSize\030\006 \001(\005\022" + - "\024\n\014sendNodeSize\030\007 \001(\005\022\027\n\017maxConnectCount" + - "\030\010 \001(\005\022\035\n\025sameIpMaxConnectCount\030\t \001(\005\022\030\n" + - "\020backupListenPort\030\n \001(\005\022\030\n\020backupMemberS" + - "ize\030\013 \001(\005\022\026\n\016backupPriority\030\014 \001(\005\022\021\n\tdbV" + - "ersion\030\r \001(\005\022\034\n\024minParticipationRate\030\016 \001" + - "(\005\022\027\n\017supportConstant\030\017 \001(\010\022\024\n\014minTimeRa" + - "tio\030\020 \001(\001\022\024\n\014maxTimeRatio\030\021 \001(\001\022 \n\030allow" + - "CreationOfContracts\030\022 \001(\003\022\033\n\023allowAdapti" + - "veEnergy\030\023 \001(\003\032\215\005\n\013MachineInfo\022\023\n\013thread" + - "Count\030\001 \001(\005\022\033\n\023deadLockThreadCount\030\002 \001(\005" + - "\022\020\n\010cpuCount\030\003 \001(\005\022\023\n\013totalMemory\030\004 \001(\003\022" + - "\022\n\nfreeMemory\030\005 \001(\003\022\017\n\007cpuRate\030\006 \001(\001\022\023\n\013" + - "javaVersion\030\007 \001(\t\022\016\n\006osName\030\010 \001(\t\022\027\n\017jvm" + - "TotalMemoery\030\t \001(\003\022\025\n\rjvmFreeMemory\030\n \001(" + - "\003\022\026\n\016processCpuRate\030\013 \001(\001\022I\n\022memoryDescI" + - "nfoList\030\014 \003(\0132-.protocol.NodeInfo.Machin" + - "eInfo.MemoryDescInfo\022Q\n\026deadLockThreadIn" + - "foList\030\r \003(\01321.protocol.NodeInfo.Machine" + - "Info.DeadLockThreadInfo\032c\n\016MemoryDescInf" + - "o\022\014\n\004name\030\001 \001(\t\022\020\n\010initSize\030\002 \001(\003\022\017\n\007use" + - "Size\030\003 \001(\003\022\017\n\007maxSize\030\004 \001(\003\022\017\n\007useRate\030\005" + - " \001(\001\032\217\001\n\022DeadLockThreadInfo\022\014\n\004name\030\001 \001(" + - "\t\022\020\n\010lockName\030\002 \001(\t\022\021\n\tlockOwner\030\003 \001(\t\022\r" + - "\n\005state\030\004 \001(\t\022\021\n\tblockTime\030\005 \001(\003\022\020\n\010wait" + - "Time\030\006 \001(\003\022\022\n\nstackTrace\030\007 \001(\t\"\362\002\n\013Marke" + - "tOrder\022\020\n\010order_id\030\001 \001(\014\022\025\n\rowner_addres" + - "s\030\002 \001(\014\022\023\n\013create_time\030\003 \001(\003\022\025\n\rsell_tok" + - "en_id\030\004 \001(\014\022\033\n\023sell_token_quantity\030\005 \001(\003" + - "\022\024\n\014buy_token_id\030\006 \001(\014\022\032\n\022buy_token_quan" + - "tity\030\007 \001(\003\022\"\n\032sell_token_quantity_remain" + - "\030\t \001(\003\022\"\n\032sell_token_quantity_return\030\n \001" + - "(\003\022*\n\005state\030\013 \001(\0162\033.protocol.MarketOrder" + - ".State\022\014\n\004prev\030\014 \001(\014\022\014\n\004next\030\r \001(\014\"/\n\005St" + - "ate\022\n\n\006ACTIVE\020\000\022\014\n\010INACTIVE\020\001\022\014\n\010CANCELE" + - "D\020\002\"8\n\017MarketOrderList\022%\n\006orders\030\001 \003(\0132\025" + - ".protocol.MarketOrder\">\n\017MarketOrderPair" + - "\022\025\n\rsell_token_id\030\001 \001(\014\022\024\n\014buy_token_id\030" + - "\002 \001(\014\"C\n\023MarketOrderPairList\022,\n\torderPai" + - "r\030\001 \003(\0132\031.protocol.MarketOrderPair\"F\n\013Ma" + - "rketPrice\022\033\n\023sell_token_quantity\030\001 \001(\003\022\032" + - "\n\022buy_token_quantity\030\002 \001(\003\"e\n\017MarketPric" + - "eList\022\025\n\rsell_token_id\030\001 \001(\014\022\024\n\014buy_toke" + - "n_id\030\002 \001(\014\022%\n\006prices\030\003 \003(\0132\025.protocol.Ma" + - "rketPrice\"#\n\017NullifierResult\022\020\n\010is_spent" + - "\030\001 \001(\010\"\345\001\n\021DecryptNotesTRC20\0223\n\007noteTxs\030" + - "\001 \003(\0132\".protocol.DecryptNotesTRC20.NoteT" + - "x\032\232\001\n\006NoteTx\022\034\n\004note\030\001 \001(\0132\016.protocol.No" + - "te\022\020\n\010position\030\002 \001(\003\022\020\n\010is_spent\030\003 \001(\010\022\014" + - "\n\004txid\030\004 \001(\014\022\r\n\005index\030\005 \001(\005\022\021\n\tto_amount" + - "\030\006 \001(\t\022\036\n\026transparent_to_address\030\007 \001(\014\"I" + - "\n\023TransactionInfoList\0222\n\017transactionInfo" + - "\030\001 \003(\0132\031.protocol.TransactionInfo\"\347\002\n\027Tr" + - "ansactionApprovedList\022\025\n\rapproved_list\030\002" + - " \003(\014\0228\n\006result\030\004 \001(\0132(.protocol.Transact" + - "ionApprovedList.Result\0223\n\013transaction\030\005 " + - "\001(\0132\036.protocol.TransactionExtention\032\305\001\n\006" + - "Result\022D\n\004code\030\001 \001(\01626.protocol.Transact" + - "ionApprovedList.Result.response_code\022\017\n\007" + - "message\030\002 \001(\t\"d\n\rresponse_code\022\013\n\007SUCCES" + - "S\020\000\022\032\n\026SIGNATURE_FORMAT_ERROR\020\001\022\031\n\025COMPU" + - "TE_ADDRESS_ERROR\020\002\022\017\n\013OTHER_ERROR\020\024\"\337\003\n\025" + - "TransactionSignWeight\022(\n\npermission\030\001 \001(" + - "\0132\024.protocol.Permission\022\025\n\rapproved_list" + - "\030\002 \003(\014\022\026\n\016current_weight\030\003 \001(\003\0226\n\006result" + - "\030\004 \001(\0132&.protocol.TransactionSignWeight." + - "Result\0223\n\013transaction\030\005 \001(\0132\036.protocol.T" + - "ransactionExtention\032\377\001\n\006Result\022B\n\004code\030\001" + - " \001(\01624.protocol.TransactionSignWeight.Re" + - "sult.response_code\022\017\n\007message\030\002 \001(\t\"\237\001\n\r" + - "response_code\022\025\n\021ENOUGH_PERMISSION\020\000\022\031\n\025" + - "NOT_ENOUGH_PERMISSION\020\001\022\032\n\026SIGNATURE_FOR" + - "MAT_ERROR\020\002\022\031\n\025COMPUTE_ADDRESS_ERROR\020\003\022\024" + - "\n\020PERMISSION_ERROR\020\004\022\017\n\013OTHER_ERROR\020\024\"\223\001" + - "\n\010NodeList\022&\n\005nodes\030\001 \003(\0132\027.protocol.Nod" + - "eList.Node\032_\n\004Node\0220\n\007address\030\001 \001(\0132\037.pr" + - "otocol.NodeList.Node.Address\032%\n\007Address\022" + - "\014\n\004host\030\001 \001(\014\022\014\n\004port\030\002 \001(\005\"\207\003\n\021AccountN" + - "etMessage\022\023\n\013freeNetUsed\030\001 \001(\003\022\024\n\014freeNe" + - "tLimit\030\002 \001(\003\022\017\n\007NetUsed\030\003 \001(\003\022\020\n\010NetLimi" + - "t\030\004 \001(\003\022C\n\014assetNetUsed\030\005 \003(\0132-.protocol" + - ".AccountNetMessage.AssetNetUsedEntry\022E\n\r" + - "assetNetLimit\030\006 \003(\0132..protocol.AccountNe" + - "tMessage.AssetNetLimitEntry\022\025\n\rTotalNetL" + - "imit\030\007 \001(\003\022\026\n\016TotalNetWeight\030\010 \001(\003\0323\n\021As" + - "setNetUsedEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + - "\001(\003:\0028\001\0324\n\022AssetNetLimitEntry\022\013\n\003key\030\001 \001" + - "(\t\022\r\n\005value\030\002 \001(\003:\0028\001\"\237\004\n\026AccountResourc" + - "eMessage\022\023\n\013freeNetUsed\030\001 \001(\003\022\024\n\014freeNet" + - "Limit\030\002 \001(\003\022\017\n\007NetUsed\030\003 \001(\003\022\020\n\010NetLimit" + - "\030\004 \001(\003\022H\n\014assetNetUsed\030\005 \003(\01322.protocol." + - "AccountResourceMessage.AssetNetUsedEntry" + - "\022J\n\rassetNetLimit\030\006 \003(\01323.protocol.Accou" + - "ntResourceMessage.AssetNetLimitEntry\022\025\n\r" + - "TotalNetLimit\030\007 \001(\003\022\026\n\016TotalNetWeight\030\010 " + - "\001(\003\022\022\n\nEnergyUsed\030\r \001(\003\022\023\n\013EnergyLimit\030\016" + - " \001(\003\022\030\n\020TotalEnergyLimit\030\017 \001(\003\022\031\n\021TotalE" + - "nergyWeight\030\020 \001(\003\022\023\n\013storageUsed\030\025 \001(\003\022\024" + - "\n\014storageLimit\030\026 \001(\003\0323\n\021AssetNetUsedEntr" + - "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\0324\n\022Ass" + - "etNetLimitEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + - "\001(\003:\0028\001B\030\n\026org.tron.trident.protob\006proto" + - "3" + " \003(\014\022\021\n\ttimestamp\030\004 \001(\003\"Q\n\017TransactionSi" + + "gn\022*\n\013transaction\030\001 \001(\0132\025.protocol.Trans" + + "action\022\022\n\nprivateKey\030\002 \001(\014\"\201\001\n\017ChainPara" + + "meters\022@\n\016chainParameter\030\001 \003(\0132(.protoco" + + "l.ChainParameters.ChainParameter\032,\n\016Chai" + + "nParameter\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003\"\240" + + "\021\n\010NodeInfo\022\024\n\014beginSyncNum\030\001 \001(\003\022\r\n\005blo" + + "ck\030\002 \001(\t\022\025\n\rsolidityBlock\030\003 \001(\t\022\033\n\023curre" + + "ntConnectCount\030\004 \001(\005\022\032\n\022activeConnectCou" + + "nt\030\005 \001(\005\022\033\n\023passiveConnectCount\030\006 \001(\005\022\021\n" + + "\ttotalFlow\030\007 \001(\003\0221\n\014peerInfoList\030\010 \003(\0132\033" + + ".protocol.NodeInfo.PeerInfo\0229\n\016configNod" + + "eInfo\030\t \001(\0132!.protocol.NodeInfo.ConfigNo" + + "deInfo\0223\n\013machineInfo\030\n \001(\0132\036.protocol.N" + + "odeInfo.MachineInfo\022H\n\023cheatWitnessInfoM" + + "ap\030\013 \003(\0132+.protocol.NodeInfo.CheatWitnes" + + "sInfoMapEntry\032:\n\030CheatWitnessInfoMapEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032\315\004\n\010Pe" + + "erInfo\022\025\n\rlastSyncBlock\030\001 \001(\t\022\021\n\tremainN" + + "um\030\002 \001(\003\022\033\n\023lastBlockUpdateTime\030\003 \001(\003\022\020\n" + + "\010syncFlag\030\004 \001(\010\022\037\n\027headBlockTimeWeBothHa" + + "ve\030\005 \001(\003\022\030\n\020needSyncFromPeer\030\006 \001(\010\022\026\n\016ne" + + "edSyncFromUs\030\007 \001(\010\022\014\n\004host\030\010 \001(\t\022\014\n\004port" + + "\030\t \001(\005\022\016\n\006nodeId\030\n \001(\t\022\023\n\013connectTime\030\013 " + + "\001(\003\022\022\n\navgLatency\030\014 \001(\001\022\027\n\017syncToFetchSi" + + "ze\030\r \001(\005\022\036\n\026syncToFetchSizePeekNum\030\016 \001(\003" + + "\022\036\n\026syncBlockRequestedSize\030\017 \001(\005\022\025\n\runFe" + + "tchSynNum\030\020 \001(\003\022\027\n\017blockInPorcSize\030\021 \001(\005" + + "\022\033\n\023headBlockWeBothHave\030\022 \001(\t\022\020\n\010isActiv" + + "e\030\023 \001(\010\022\r\n\005score\030\024 \001(\005\022\021\n\tnodeCount\030\025 \001(" + + "\005\022\016\n\006inFlow\030\026 \001(\003\022\027\n\017disconnectTimes\030\027 \001" + + "(\005\022\035\n\025localDisconnectReason\030\030 \001(\t\022\036\n\026rem" + + "oteDisconnectReason\030\031 \001(\t\032\345\003\n\016ConfigNode" + + "Info\022\023\n\013codeVersion\030\001 \001(\t\022\022\n\np2pVersion\030" + + "\002 \001(\t\022\022\n\nlistenPort\030\003 \001(\005\022\026\n\016discoverEna" + + "ble\030\004 \001(\010\022\026\n\016activeNodeSize\030\005 \001(\005\022\027\n\017pas" + + "siveNodeSize\030\006 \001(\005\022\024\n\014sendNodeSize\030\007 \001(\005" + + "\022\027\n\017maxConnectCount\030\010 \001(\005\022\035\n\025sameIpMaxCo" + + "nnectCount\030\t \001(\005\022\030\n\020backupListenPort\030\n \001" + + "(\005\022\030\n\020backupMemberSize\030\013 \001(\005\022\026\n\016backupPr" + + "iority\030\014 \001(\005\022\021\n\tdbVersion\030\r \001(\005\022\034\n\024minPa" + + "rticipationRate\030\016 \001(\005\022\027\n\017supportConstant" + + "\030\017 \001(\010\022\024\n\014minTimeRatio\030\020 \001(\001\022\024\n\014maxTimeR" + + "atio\030\021 \001(\001\022 \n\030allowCreationOfContracts\030\022" + + " \001(\003\022\033\n\023allowAdaptiveEnergy\030\023 \001(\003\032\215\005\n\013Ma" + + "chineInfo\022\023\n\013threadCount\030\001 \001(\005\022\033\n\023deadLo" + + "ckThreadCount\030\002 \001(\005\022\020\n\010cpuCount\030\003 \001(\005\022\023\n" + + "\013totalMemory\030\004 \001(\003\022\022\n\nfreeMemory\030\005 \001(\003\022\017" + + "\n\007cpuRate\030\006 \001(\001\022\023\n\013javaVersion\030\007 \001(\t\022\016\n\006" + + "osName\030\010 \001(\t\022\027\n\017jvmTotalMemoery\030\t \001(\003\022\025\n" + + "\rjvmFreeMemory\030\n \001(\003\022\026\n\016processCpuRate\030\013" + + " \001(\001\022I\n\022memoryDescInfoList\030\014 \003(\0132-.proto" + + "col.NodeInfo.MachineInfo.MemoryDescInfo\022" + + "Q\n\026deadLockThreadInfoList\030\r \003(\01321.protoc" + + "ol.NodeInfo.MachineInfo.DeadLockThreadIn" + + "fo\032c\n\016MemoryDescInfo\022\014\n\004name\030\001 \001(\t\022\020\n\010in" + + "itSize\030\002 \001(\003\022\017\n\007useSize\030\003 \001(\003\022\017\n\007maxSize" + + "\030\004 \001(\003\022\017\n\007useRate\030\005 \001(\001\032\217\001\n\022DeadLockThre" + + "adInfo\022\014\n\004name\030\001 \001(\t\022\020\n\010lockName\030\002 \001(\t\022\021" + + "\n\tlockOwner\030\003 \001(\t\022\r\n\005state\030\004 \001(\t\022\021\n\tbloc" + + "kTime\030\005 \001(\003\022\020\n\010waitTime\030\006 \001(\003\022\022\n\nstackTr" + + "ace\030\007 \001(\t\"\362\002\n\013MarketOrder\022\020\n\010order_id\030\001 " + + "\001(\014\022\025\n\rowner_address\030\002 \001(\014\022\023\n\013create_tim" + + "e\030\003 \001(\003\022\025\n\rsell_token_id\030\004 \001(\014\022\033\n\023sell_t" + + "oken_quantity\030\005 \001(\003\022\024\n\014buy_token_id\030\006 \001(" + + "\014\022\032\n\022buy_token_quantity\030\007 \001(\003\022\"\n\032sell_to" + + "ken_quantity_remain\030\t \001(\003\022\"\n\032sell_token_" + + "quantity_return\030\n \001(\003\022*\n\005state\030\013 \001(\0162\033.p" + + "rotocol.MarketOrder.State\022\014\n\004prev\030\014 \001(\014\022" + + "\014\n\004next\030\r \001(\014\"/\n\005State\022\n\n\006ACTIVE\020\000\022\014\n\010IN" + + "ACTIVE\020\001\022\014\n\010CANCELED\020\002\"8\n\017MarketOrderLis" + + "t\022%\n\006orders\030\001 \003(\0132\025.protocol.MarketOrder" + + "\">\n\017MarketOrderPair\022\025\n\rsell_token_id\030\001 \001" + + "(\014\022\024\n\014buy_token_id\030\002 \001(\014\"C\n\023MarketOrderP" + + "airList\022,\n\torderPair\030\001 \003(\0132\031.protocol.Ma" + + "rketOrderPair\"F\n\013MarketPrice\022\033\n\023sell_tok" + + "en_quantity\030\001 \001(\003\022\032\n\022buy_token_quantity\030" + + "\002 \001(\003\"e\n\017MarketPriceList\022\025\n\rsell_token_i" + + "d\030\001 \001(\014\022\024\n\014buy_token_id\030\002 \001(\014\022%\n\006prices\030" + + "\003 \003(\0132\025.protocol.MarketPrice\"#\n\017Nullifie" + + "rResult\022\020\n\010is_spent\030\001 \001(\010\"\345\001\n\021DecryptNot" + + "esTRC20\0223\n\007noteTxs\030\001 \003(\0132\".protocol.Decr" + + "yptNotesTRC20.NoteTx\032\232\001\n\006NoteTx\022\034\n\004note\030" + + "\001 \001(\0132\016.protocol.Note\022\020\n\010position\030\002 \001(\003\022" + + "\020\n\010is_spent\030\003 \001(\010\022\014\n\004txid\030\004 \001(\014\022\r\n\005index" + + "\030\005 \001(\005\022\021\n\tto_amount\030\006 \001(\t\022\036\n\026transparent" + + "_to_address\030\007 \001(\014\"I\n\023TransactionInfoList" + + "\0222\n\017transactionInfo\030\001 \003(\0132\031.protocol.Tra" + + "nsactionInfo\"\347\002\n\027TransactionApprovedList" + + "\022\025\n\rapproved_list\030\002 \003(\014\0228\n\006result\030\004 \001(\0132" + + "(.protocol.TransactionApprovedList.Resul" + + "t\0223\n\013transaction\030\005 \001(\0132\036.protocol.Transa" + + "ctionExtention\032\305\001\n\006Result\022D\n\004code\030\001 \001(\0162" + + "6.protocol.TransactionApprovedList.Resul" + + "t.response_code\022\017\n\007message\030\002 \001(\t\"d\n\rresp" + + "onse_code\022\013\n\007SUCCESS\020\000\022\032\n\026SIGNATURE_FORM" + + "AT_ERROR\020\001\022\031\n\025COMPUTE_ADDRESS_ERROR\020\002\022\017\n" + + "\013OTHER_ERROR\020\024\"\337\003\n\025TransactionSignWeight" + + "\022(\n\npermission\030\001 \001(\0132\024.protocol.Permissi" + + "on\022\025\n\rapproved_list\030\002 \003(\014\022\026\n\016current_wei" + + "ght\030\003 \001(\003\0226\n\006result\030\004 \001(\0132&.protocol.Tra" + + "nsactionSignWeight.Result\0223\n\013transaction" + + "\030\005 \001(\0132\036.protocol.TransactionExtention\032\377" + + "\001\n\006Result\022B\n\004code\030\001 \001(\01624.protocol.Trans" + + "actionSignWeight.Result.response_code\022\017\n" + + "\007message\030\002 \001(\t\"\237\001\n\rresponse_code\022\025\n\021ENOU" + + "GH_PERMISSION\020\000\022\031\n\025NOT_ENOUGH_PERMISSION" + + "\020\001\022\032\n\026SIGNATURE_FORMAT_ERROR\020\002\022\031\n\025COMPUT" + + "E_ADDRESS_ERROR\020\003\022\024\n\020PERMISSION_ERROR\020\004\022" + + "\017\n\013OTHER_ERROR\020\024\"\223\001\n\010NodeList\022&\n\005nodes\030\001" + + " \003(\0132\027.protocol.NodeList.Node\032_\n\004Node\0220\n" + + "\007address\030\001 \001(\0132\037.protocol.NodeList.Node." + + "Address\032%\n\007Address\022\014\n\004host\030\001 \001(\014\022\014\n\004port" + + "\030\002 \001(\005\"\207\003\n\021AccountNetMessage\022\023\n\013freeNetU" + + "sed\030\001 \001(\003\022\024\n\014freeNetLimit\030\002 \001(\003\022\017\n\007NetUs" + + "ed\030\003 \001(\003\022\020\n\010NetLimit\030\004 \001(\003\022C\n\014assetNetUs" + + "ed\030\005 \003(\0132-.protocol.AccountNetMessage.As" + + "setNetUsedEntry\022E\n\rassetNetLimit\030\006 \003(\0132." + + ".protocol.AccountNetMessage.AssetNetLimi" + + "tEntry\022\025\n\rTotalNetLimit\030\007 \001(\003\022\026\n\016TotalNe" + + "tWeight\030\010 \001(\003\0323\n\021AssetNetUsedEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\0324\n\022AssetNetLi" + + "mitEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001" + + "\"\354\004\n\026AccountResourceMessage\022\023\n\013freeNetUs" + + "ed\030\001 \001(\003\022\024\n\014freeNetLimit\030\002 \001(\003\022\017\n\007NetUse" + + "d\030\003 \001(\003\022\020\n\010NetLimit\030\004 \001(\003\022H\n\014assetNetUse" + + "d\030\005 \003(\01322.protocol.AccountResourceMessag" + + "e.AssetNetUsedEntry\022J\n\rassetNetLimit\030\006 \003" + + "(\01323.protocol.AccountResourceMessage.Ass" + + "etNetLimitEntry\022\025\n\rTotalNetLimit\030\007 \001(\003\022\026" + + "\n\016TotalNetWeight\030\010 \001(\003\022\034\n\024TotalTronPower" + + "Weight\030\t \001(\003\022\025\n\rtronPowerUsed\030\n \001(\003\022\026\n\016t" + + "ronPowerLimit\030\013 \001(\003\022\022\n\nEnergyUsed\030\r \001(\003\022" + + "\023\n\013EnergyLimit\030\016 \001(\003\022\030\n\020TotalEnergyLimit" + + "\030\017 \001(\003\022\031\n\021TotalEnergyWeight\030\020 \001(\003\022\023\n\013sto" + + "rageUsed\030\025 \001(\003\022\024\n\014storageLimit\030\026 \001(\003\0323\n\021" + + "AssetNetUsedEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\003:\0028\001\0324\n\022AssetNetLimitEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001B\030\n\026org.tron.trid" + + "ent.protob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -68162,7 +68448,7 @@ public org.tron.trident.proto.Response.AccountResourceMessage getDefaultInstance internal_static_protocol_DelegatedResourceAccountIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_DelegatedResourceAccountIndex_descriptor, - new java.lang.String[] { "Account", "FromAccounts", "ToAccounts", }); + new java.lang.String[] { "Account", "FromAccounts", "ToAccounts", "Timestamp", }); internal_static_protocol_TransactionSign_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_protocol_TransactionSign_fieldAccessorTable = new @@ -68348,7 +68634,7 @@ public org.tron.trident.proto.Response.AccountResourceMessage getDefaultInstance internal_static_protocol_AccountResourceMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_AccountResourceMessage_descriptor, - new java.lang.String[] { "FreeNetUsed", "FreeNetLimit", "NetUsed", "NetLimit", "AssetNetUsed", "AssetNetLimit", "TotalNetLimit", "TotalNetWeight", "EnergyUsed", "EnergyLimit", "TotalEnergyLimit", "TotalEnergyWeight", "StorageUsed", "StorageLimit", }); + new java.lang.String[] { "FreeNetUsed", "FreeNetLimit", "NetUsed", "NetLimit", "AssetNetUsed", "AssetNetLimit", "TotalNetLimit", "TotalNetWeight", "TotalTronPowerWeight", "TronPowerUsed", "TronPowerLimit", "EnergyUsed", "EnergyLimit", "TotalEnergyLimit", "TotalEnergyWeight", "StorageUsed", "StorageLimit", }); internal_static_protocol_AccountResourceMessage_AssetNetUsedEntry_descriptor = internal_static_protocol_AccountResourceMessage_descriptor.getNestedTypes().get(0); internal_static_protocol_AccountResourceMessage_AssetNetUsedEntry_fieldAccessorTable = new diff --git a/trident-java/core/src/main/proto/api/api.proto b/trident-java/core/src/main/proto/api/api.proto index 693759a..a458896 100644 --- a/trident-java/core/src/main/proto/api/api.proto +++ b/trident-java/core/src/main/proto/api/api.proto @@ -13,75 +13,77 @@ import "core/response.proto"; service Wallet { // Transactions: rpc BroadcastTransaction(Transaction) returns (TransactionReturn) {} - - rpc CreateCommonTransaction(Transaction) returns (TransactionExtention) {} - - rpc CreateAccount(AccountCreateContract) returns (Transaction) {} - rpc CreateAccount2(AccountCreateContract) returns (TransactionExtention) {} - - rpc UpdateAccount(AccountUpdateContract) returns (Transaction) {} - rpc UpdateAccount2(AccountUpdateContract) returns (TransactionExtention) {} - - rpc SetAccountId(SetAccountIdContract) returns (Transaction) {} - - rpc AccountPermissionUpdate(AccountPermissionUpdateContract) returns (TransactionExtention) {} - - rpc CreateTransaction(TransferContract) returns (Transaction) {} - rpc CreateTransaction2(TransferContract) returns (TransactionExtention) {} - - rpc CreateAssetIssue(AssetIssueContract) returns (Transaction) {} - rpc CreateAssetIssue2(AssetIssueContract) returns (TransactionExtention) {} - - rpc UpdateAsset(UpdateAssetContract) returns (Transaction) {} - rpc UpdateAsset2(UpdateAssetContract) returns (TransactionExtention) {} - - rpc TransferAsset(TransferAssetContract) returns (Transaction) {} - rpc TransferAsset2(TransferAssetContract) returns (TransactionExtention) {} - - rpc ParticipateAssetIssue(ParticipateAssetIssueContract) returns (Transaction) {} - rpc ParticipateAssetIssue2(ParticipateAssetIssueContract) returns (TransactionExtention) {} - - rpc UnfreezeAsset(UnfreezeAssetContract) returns (Transaction) {} - rpc UnfreezeAsset2(UnfreezeAssetContract) returns (TransactionExtention) {} - - rpc CreateWitness(WitnessCreateContract) returns (Transaction) {} - rpc CreateWitness2(WitnessCreateContract) returns (TransactionExtention) {} - - rpc UpdateWitness(WitnessUpdateContract) returns (Transaction) {} - rpc UpdateWitness2(WitnessUpdateContract) returns (TransactionExtention) {} - - rpc UpdateBrokerage(UpdateBrokerageContract) returns (TransactionExtention) {} - - rpc VoteWitnessAccount(VoteWitnessContract) returns (Transaction) {} - rpc VoteWitnessAccount2(VoteWitnessContract) returns (TransactionExtention) {} - - rpc FreezeBalance(FreezeBalanceContract) returns (Transaction) {} - rpc FreezeBalance2(FreezeBalanceContract) returns (TransactionExtention) {} - - rpc UnfreezeBalance(UnfreezeBalanceContract) returns (Transaction) {} - rpc UnfreezeBalance2(UnfreezeBalanceContract) returns (TransactionExtention) {} - - rpc WithdrawBalance(WithdrawBalanceContract) returns (Transaction) {} - rpc WithdrawBalance2(WithdrawBalanceContract) returns (TransactionExtention) {} - - rpc ProposalCreate(ProposalCreateContract) returns (TransactionExtention) {} - rpc ProposalApprove(ProposalApproveContract) returns (TransactionExtention) {} - rpc ProposalDelete(ProposalDeleteContract) returns (TransactionExtention) {} - +/* + * change to local build instead of remote build + */ +// rpc CreateCommonTransaction(Transaction) returns (TransactionExtention) {} +// +// rpc CreateAccount(AccountCreateContract) returns (Transaction) {} +// rpc CreateAccount2(AccountCreateContract) returns (TransactionExtention) {} +// +// rpc UpdateAccount(AccountUpdateContract) returns (Transaction) {} +// rpc UpdateAccount2(AccountUpdateContract) returns (TransactionExtention) {} +// +// rpc SetAccountId(SetAccountIdContract) returns (Transaction) {} +// +// rpc AccountPermissionUpdate(AccountPermissionUpdateContract) returns (TransactionExtention) {} +// +// rpc CreateTransaction(TransferContract) returns (Transaction) {} +// rpc CreateTransaction2(TransferContract) returns (TransactionExtention) {} +// +// rpc CreateAssetIssue(AssetIssueContract) returns (Transaction) {} +// rpc CreateAssetIssue2(AssetIssueContract) returns (TransactionExtention) {} +// +// rpc UpdateAsset(UpdateAssetContract) returns (Transaction) {} +// rpc UpdateAsset2(UpdateAssetContract) returns (TransactionExtention) {} +// +// rpc TransferAsset(TransferAssetContract) returns (Transaction) {} +// rpc TransferAsset2(TransferAssetContract) returns (TransactionExtention) {} +// +// rpc ParticipateAssetIssue(ParticipateAssetIssueContract) returns (Transaction) {} +// rpc ParticipateAssetIssue2(ParticipateAssetIssueContract) returns (TransactionExtention) {} +// +// rpc UnfreezeAsset(UnfreezeAssetContract) returns (Transaction) {} +// rpc UnfreezeAsset2(UnfreezeAssetContract) returns (TransactionExtention) {} +// +// rpc CreateWitness(WitnessCreateContract) returns (Transaction) {} +// rpc CreateWitness2(WitnessCreateContract) returns (TransactionExtention) {} +// +// rpc UpdateWitness(WitnessUpdateContract) returns (Transaction) {} +// rpc UpdateWitness2(WitnessUpdateContract) returns (TransactionExtention) {} +// +// rpc UpdateBrokerage(UpdateBrokerageContract) returns (TransactionExtention) {} +// +// rpc VoteWitnessAccount(VoteWitnessContract) returns (Transaction) {} +// rpc VoteWitnessAccount2(VoteWitnessContract) returns (TransactionExtention) {} +// +// rpc FreezeBalance(FreezeBalanceContract) returns (Transaction) {} +// rpc FreezeBalance2(FreezeBalanceContract) returns (TransactionExtention) {} +// +// rpc UnfreezeBalance(UnfreezeBalanceContract) returns (Transaction) {} +// rpc UnfreezeBalance2(UnfreezeBalanceContract) returns (TransactionExtention) {} +// +// rpc WithdrawBalance(WithdrawBalanceContract) returns (Transaction) {} +// rpc WithdrawBalance2(WithdrawBalanceContract) returns (TransactionExtention) {} +// +// rpc ProposalCreate(ProposalCreateContract) returns (TransactionExtention) {} +// rpc ProposalApprove(ProposalApproveContract) returns (TransactionExtention) {} +// rpc ProposalDelete(ProposalDeleteContract) returns (TransactionExtention) {} +// rpc DeployContract(CreateSmartContract) returns (TransactionExtention) {} - rpc UpdateSetting(UpdateSettingContract) returns (TransactionExtention) {} // consume_user_resource_percent - rpc UpdateEnergyLimit(UpdateEnergyLimitContract) returns (TransactionExtention) {} // origin_energy_limit - rpc ClearContractABI(ClearABIContract) returns (TransactionExtention) {} +// rpc UpdateSetting(UpdateSettingContract) returns (TransactionExtention) {} // consume_user_resource_percent +// rpc UpdateEnergyLimit(UpdateEnergyLimitContract) returns (TransactionExtention) {} // origin_energy_limit +// rpc ClearContractABI(ClearABIContract) returns (TransactionExtention) {} rpc TriggerContract(TriggerSmartContract) returns (TransactionExtention) {} rpc TriggerConstantContract(TriggerSmartContract) returns (TransactionExtention) {} // not a txn type - - rpc ExchangeCreate(ExchangeCreateContract) returns (TransactionExtention) {} - rpc ExchangeInject(ExchangeInjectContract) returns (TransactionExtention) {} - rpc ExchangeWithdraw(ExchangeWithdrawContract) returns (TransactionExtention) {} - rpc ExchangeTransaction(ExchangeTransactionContract) returns (TransactionExtention) {} - - rpc MarketSellAsset(MarketSellAssetContract) returns (TransactionExtention) {} - rpc MarketCancelOrder(MarketCancelOrderContract) returns (TransactionExtention) {} +// +// rpc ExchangeCreate(ExchangeCreateContract) returns (TransactionExtention) {} +// rpc ExchangeInject(ExchangeInjectContract) returns (TransactionExtention) {} +// rpc ExchangeWithdraw(ExchangeWithdrawContract) returns (TransactionExtention) {} +// rpc ExchangeTransaction(ExchangeTransactionContract) returns (TransactionExtention) {} +// +// rpc MarketSellAsset(MarketSellAssetContract) returns (TransactionExtention) {} +// rpc MarketCancelOrder(MarketCancelOrderContract) returns (TransactionExtention) {} // The real APIs: rpc GetNodeInfo(EmptyMessage) returns (NodeInfo) {} @@ -110,8 +112,9 @@ service Wallet { rpc GetNowBlock(EmptyMessage) returns (Block) {} rpc GetNowBlock2(EmptyMessage) returns (BlockExtention) {} - + //deprecated rpc GetBlockByNum(NumberMessage) returns (Block) {} + //Use this function instead of GetBlockByNum. rpc GetBlockByNum2(NumberMessage) returns (BlockExtention) {} // NOTE: `GetBlockById2` is missing. The closest is `GetBlockByLatestNum2`. @@ -188,12 +191,15 @@ service Wallet { rpc GetTriggerInputForShieldedTRC20Contract(ShieldedTRC20TriggerContractParameters) returns (BytesMessage) {} // Stake 2.0 - rpc FreezeBalanceV2 (FreezeBalanceV2Contract) returns (TransactionExtention) {} - rpc UnfreezeBalanceV2 (UnfreezeBalanceV2Contract) returns (TransactionExtention) {} - rpc DelegateResource (DelegateResourceContract) returns (TransactionExtention) {} - - rpc UnDelegateResource (UnDelegateResourceContract) returns (TransactionExtention) {} - rpc WithdrawExpireUnfreeze (WithdrawExpireUnfreezeContract) returns (TransactionExtention) {} + /* + * change to local build instead of remote build + */ +// rpc FreezeBalanceV2 (FreezeBalanceV2Contract) returns (TransactionExtention) {} +// rpc UnfreezeBalanceV2 (UnfreezeBalanceV2Contract) returns (TransactionExtention) {} +// rpc DelegateResource (DelegateResourceContract) returns (TransactionExtention) {} +// rpc UnDelegateResource (UnDelegateResourceContract) returns (TransactionExtention) {} +// rpc WithdrawExpireUnfreeze (WithdrawExpireUnfreezeContract) returns (TransactionExtention) {} +// rpc GetAvailableUnfreezeCount (GetAvailableUnfreezeCountRequestMessage) returns (GetAvailableUnfreezeCountResponseMessage) {} rpc GetCanWithdrawUnfreezeAmount (CanWithdrawUnfreezeAmountRequestMessage) From e2c306119daae341d069f52047877193f17afafe Mon Sep 17 00:00:00 2001 From: mikeluxue Date: Mon, 10 Apr 2023 17:42:36 +0800 Subject: [PATCH 2/9] feat(README): change readme.md --- trident-java/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trident-java/README.md b/trident-java/README.md index 619bab9..975fcc9 100644 --- a/trident-java/README.md +++ b/trident-java/README.md @@ -51,21 +51,21 @@ dependencies { org.tron.trident abi - 0.3.0 + 0.5.0 system your path org.tron.trident utils - 0.3.0 + 0.5.0 system your path org.tron.trident core - 0.3.0 + 0.5.0 system your path From bb8b015849864c5a19ed859cf1bb4b3b6dacb96d Mon Sep 17 00:00:00 2001 From: mikeluxue Date: Mon, 10 Apr 2023 17:54:36 +0800 Subject: [PATCH 3/9] feat(core): modify protobuf auto generated file --- README.md | 2 + .../grpc/org/tron/trident/api/WalletGrpc.java | 568 +++++++++++++++--- .../java/org/tron/trident/api/GrpcAPI.java | 342 +++++------ 3 files changed, 667 insertions(+), 245 deletions(-) diff --git a/README.md b/README.md index f69363e..3d5b446 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,8 @@ Functions include: - Offline address generation +- Offline transaction build + - Offline transaction signature - java-tron full node API support diff --git a/trident-java/core/src/main/grpc/org/tron/trident/api/WalletGrpc.java b/trident-java/core/src/main/grpc/org/tron/trident/api/WalletGrpc.java index 4eb4a84..d879627 100644 --- a/trident-java/core/src/main/grpc/org/tron/trident/api/WalletGrpc.java +++ b/trident-java/core/src/main/grpc/org/tron/trident/api/WalletGrpc.java @@ -58,6 +58,99 @@ org.tron.trident.proto.Response.TransactionReturn> getBroadcastTransactionMethod return getBroadcastTransactionMethod; } + private static volatile io.grpc.MethodDescriptor getDeployContractMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeployContract", + requestType = org.tron.trident.proto.Contract.CreateSmartContract.class, + responseType = org.tron.trident.proto.Response.TransactionExtention.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeployContractMethod() { + io.grpc.MethodDescriptor getDeployContractMethod; + if ((getDeployContractMethod = WalletGrpc.getDeployContractMethod) == null) { + synchronized (WalletGrpc.class) { + if ((getDeployContractMethod = WalletGrpc.getDeployContractMethod) == null) { + WalletGrpc.getDeployContractMethod = getDeployContractMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeployContract")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.tron.trident.proto.Contract.CreateSmartContract.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("DeployContract")) + .build(); + } + } + } + return getDeployContractMethod; + } + + private static volatile io.grpc.MethodDescriptor getTriggerContractMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TriggerContract", + requestType = org.tron.trident.proto.Contract.TriggerSmartContract.class, + responseType = org.tron.trident.proto.Response.TransactionExtention.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getTriggerContractMethod() { + io.grpc.MethodDescriptor getTriggerContractMethod; + if ((getTriggerContractMethod = WalletGrpc.getTriggerContractMethod) == null) { + synchronized (WalletGrpc.class) { + if ((getTriggerContractMethod = WalletGrpc.getTriggerContractMethod) == null) { + WalletGrpc.getTriggerContractMethod = getTriggerContractMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TriggerContract")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.tron.trident.proto.Contract.TriggerSmartContract.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("TriggerContract")) + .build(); + } + } + } + return getTriggerContractMethod; + } + + private static volatile io.grpc.MethodDescriptor getTriggerConstantContractMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TriggerConstantContract", + requestType = org.tron.trident.proto.Contract.TriggerSmartContract.class, + responseType = org.tron.trident.proto.Response.TransactionExtention.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getTriggerConstantContractMethod() { + io.grpc.MethodDescriptor getTriggerConstantContractMethod; + if ((getTriggerConstantContractMethod = WalletGrpc.getTriggerConstantContractMethod) == null) { + synchronized (WalletGrpc.class) { + if ((getTriggerConstantContractMethod = WalletGrpc.getTriggerConstantContractMethod) == null) { + WalletGrpc.getTriggerConstantContractMethod = getTriggerConstantContractMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TriggerConstantContract")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.tron.trident.proto.Contract.TriggerSmartContract.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance())) + .setSchemaDescriptor(new WalletMethodDescriptorSupplier("TriggerConstantContract")) + .build(); + } + } + } + return getTriggerConstantContractMethod; + } + private static volatile io.grpc.MethodDescriptor getGetNodeInfoMethod; @@ -2503,6 +2596,69 @@ public void broadcastTransaction(org.tron.trident.proto.Chain.Transaction reques asyncUnimplementedUnaryCall(getBroadcastTransactionMethod(), responseObserver); } + /** + *
+     *  rpc CreateCommonTransaction(Transaction) returns (TransactionExtention) {}
+     *  rpc CreateAccount(AccountCreateContract) returns (Transaction) {}
+     *  rpc CreateAccount2(AccountCreateContract) returns (TransactionExtention) {}
+     *  rpc UpdateAccount(AccountUpdateContract) returns (Transaction) {}
+     *  rpc UpdateAccount2(AccountUpdateContract) returns (TransactionExtention) {}
+     *  rpc SetAccountId(SetAccountIdContract) returns (Transaction) {}
+     *  rpc AccountPermissionUpdate(AccountPermissionUpdateContract) returns (TransactionExtention) {}
+     *  rpc CreateTransaction(TransferContract) returns (Transaction) {}
+     *  rpc CreateTransaction2(TransferContract) returns (TransactionExtention) {}
+     *  rpc CreateAssetIssue(AssetIssueContract) returns (Transaction) {}
+     *  rpc CreateAssetIssue2(AssetIssueContract) returns (TransactionExtention) {}
+     *  rpc UpdateAsset(UpdateAssetContract) returns (Transaction) {}
+     *  rpc UpdateAsset2(UpdateAssetContract) returns (TransactionExtention) {}
+     *  rpc TransferAsset(TransferAssetContract) returns (Transaction) {}
+     *  rpc TransferAsset2(TransferAssetContract) returns (TransactionExtention) {}
+     *  rpc ParticipateAssetIssue(ParticipateAssetIssueContract) returns (Transaction) {}
+     *  rpc ParticipateAssetIssue2(ParticipateAssetIssueContract) returns (TransactionExtention) {}
+     *  rpc UnfreezeAsset(UnfreezeAssetContract) returns (Transaction) {}
+     *  rpc UnfreezeAsset2(UnfreezeAssetContract) returns (TransactionExtention) {}
+     *  rpc CreateWitness(WitnessCreateContract) returns (Transaction) {}
+     *  rpc CreateWitness2(WitnessCreateContract) returns (TransactionExtention) {}
+     *  rpc UpdateWitness(WitnessUpdateContract) returns (Transaction) {}
+     *  rpc UpdateWitness2(WitnessUpdateContract) returns (TransactionExtention) {}
+     *  rpc UpdateBrokerage(UpdateBrokerageContract) returns (TransactionExtention) {}
+     *  rpc VoteWitnessAccount(VoteWitnessContract) returns (Transaction) {}
+     *  rpc VoteWitnessAccount2(VoteWitnessContract) returns (TransactionExtention) {}
+     *  rpc FreezeBalance(FreezeBalanceContract) returns (Transaction) {}
+     *  rpc FreezeBalance2(FreezeBalanceContract) returns (TransactionExtention) {}
+     *  rpc UnfreezeBalance(UnfreezeBalanceContract) returns (Transaction) {}
+     *  rpc UnfreezeBalance2(UnfreezeBalanceContract) returns (TransactionExtention) {}
+     *  rpc WithdrawBalance(WithdrawBalanceContract) returns (Transaction) {}
+     *  rpc WithdrawBalance2(WithdrawBalanceContract) returns (TransactionExtention) {}
+     *  rpc ProposalCreate(ProposalCreateContract) returns (TransactionExtention) {}
+     *  rpc ProposalApprove(ProposalApproveContract) returns (TransactionExtention) {}
+     *  rpc ProposalDelete(ProposalDeleteContract) returns (TransactionExtention) {}
+     * 
+ */ + public void deployContract(org.tron.trident.proto.Contract.CreateSmartContract request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeployContractMethod(), responseObserver); + } + + /** + *
+     *  rpc UpdateSetting(UpdateSettingContract) returns (TransactionExtention) {}          // consume_user_resource_percent
+     *  rpc UpdateEnergyLimit(UpdateEnergyLimitContract) returns (TransactionExtention) {}  // origin_energy_limit
+     *  rpc ClearContractABI(ClearABIContract) returns (TransactionExtention) {}
+     * 
+ */ + public void triggerContract(org.tron.trident.proto.Contract.TriggerSmartContract request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getTriggerContractMethod(), responseObserver); + } + + /** + */ + public void triggerConstantContract(org.tron.trident.proto.Contract.TriggerSmartContract request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getTriggerConstantContractMethod(), responseObserver); + } + /** *
      * The real APIs:
@@ -2643,6 +2799,9 @@ public void getNowBlock2(org.tron.trident.api.GrpcAPI.EmptyMessage request,
     }
 
     /**
+     * 
+     *deprecated
+     * 
*/ public void getBlockByNum(org.tron.trident.api.GrpcAPI.NumberMessage request, io.grpc.stub.StreamObserver responseObserver) { @@ -2650,6 +2809,9 @@ public void getBlockByNum(org.tron.trident.api.GrpcAPI.NumberMessage request, } /** + *
+     *Use this function instead of GetBlockByNum.
+     * 
*/ public void getBlockByNum2(org.tron.trident.api.GrpcAPI.NumberMessage request, io.grpc.stub.StreamObserver responseObserver) { @@ -3082,6 +3244,27 @@ public void getDelegatedResourceAccountIndexV2(org.tron.trident.api.GrpcAPI.Byte org.tron.trident.proto.Chain.Transaction, org.tron.trident.proto.Response.TransactionReturn>( this, METHODID_BROADCAST_TRANSACTION))) + .addMethod( + getDeployContractMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.proto.Contract.CreateSmartContract, + org.tron.trident.proto.Response.TransactionExtention>( + this, METHODID_DEPLOY_CONTRACT))) + .addMethod( + getTriggerContractMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.proto.Contract.TriggerSmartContract, + org.tron.trident.proto.Response.TransactionExtention>( + this, METHODID_TRIGGER_CONTRACT))) + .addMethod( + getTriggerConstantContractMethod(), + asyncUnaryCall( + new MethodHandlers< + org.tron.trident.proto.Contract.TriggerSmartContract, + org.tron.trident.proto.Response.TransactionExtention>( + this, METHODID_TRIGGER_CONSTANT_CONTRACT))) .addMethod( getGetNodeInfoMethod(), asyncUnaryCall( @@ -3650,6 +3833,72 @@ public void broadcastTransaction(org.tron.trident.proto.Chain.Transaction reques getChannel().newCall(getBroadcastTransactionMethod(), getCallOptions()), request, responseObserver); } + /** + *
+     *  rpc CreateCommonTransaction(Transaction) returns (TransactionExtention) {}
+     *  rpc CreateAccount(AccountCreateContract) returns (Transaction) {}
+     *  rpc CreateAccount2(AccountCreateContract) returns (TransactionExtention) {}
+     *  rpc UpdateAccount(AccountUpdateContract) returns (Transaction) {}
+     *  rpc UpdateAccount2(AccountUpdateContract) returns (TransactionExtention) {}
+     *  rpc SetAccountId(SetAccountIdContract) returns (Transaction) {}
+     *  rpc AccountPermissionUpdate(AccountPermissionUpdateContract) returns (TransactionExtention) {}
+     *  rpc CreateTransaction(TransferContract) returns (Transaction) {}
+     *  rpc CreateTransaction2(TransferContract) returns (TransactionExtention) {}
+     *  rpc CreateAssetIssue(AssetIssueContract) returns (Transaction) {}
+     *  rpc CreateAssetIssue2(AssetIssueContract) returns (TransactionExtention) {}
+     *  rpc UpdateAsset(UpdateAssetContract) returns (Transaction) {}
+     *  rpc UpdateAsset2(UpdateAssetContract) returns (TransactionExtention) {}
+     *  rpc TransferAsset(TransferAssetContract) returns (Transaction) {}
+     *  rpc TransferAsset2(TransferAssetContract) returns (TransactionExtention) {}
+     *  rpc ParticipateAssetIssue(ParticipateAssetIssueContract) returns (Transaction) {}
+     *  rpc ParticipateAssetIssue2(ParticipateAssetIssueContract) returns (TransactionExtention) {}
+     *  rpc UnfreezeAsset(UnfreezeAssetContract) returns (Transaction) {}
+     *  rpc UnfreezeAsset2(UnfreezeAssetContract) returns (TransactionExtention) {}
+     *  rpc CreateWitness(WitnessCreateContract) returns (Transaction) {}
+     *  rpc CreateWitness2(WitnessCreateContract) returns (TransactionExtention) {}
+     *  rpc UpdateWitness(WitnessUpdateContract) returns (Transaction) {}
+     *  rpc UpdateWitness2(WitnessUpdateContract) returns (TransactionExtention) {}
+     *  rpc UpdateBrokerage(UpdateBrokerageContract) returns (TransactionExtention) {}
+     *  rpc VoteWitnessAccount(VoteWitnessContract) returns (Transaction) {}
+     *  rpc VoteWitnessAccount2(VoteWitnessContract) returns (TransactionExtention) {}
+     *  rpc FreezeBalance(FreezeBalanceContract) returns (Transaction) {}
+     *  rpc FreezeBalance2(FreezeBalanceContract) returns (TransactionExtention) {}
+     *  rpc UnfreezeBalance(UnfreezeBalanceContract) returns (Transaction) {}
+     *  rpc UnfreezeBalance2(UnfreezeBalanceContract) returns (TransactionExtention) {}
+     *  rpc WithdrawBalance(WithdrawBalanceContract) returns (Transaction) {}
+     *  rpc WithdrawBalance2(WithdrawBalanceContract) returns (TransactionExtention) {}
+     *  rpc ProposalCreate(ProposalCreateContract) returns (TransactionExtention) {}
+     *  rpc ProposalApprove(ProposalApproveContract) returns (TransactionExtention) {}
+     *  rpc ProposalDelete(ProposalDeleteContract) returns (TransactionExtention) {}
+     * 
+ */ + public void deployContract(org.tron.trident.proto.Contract.CreateSmartContract request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeployContractMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     *  rpc UpdateSetting(UpdateSettingContract) returns (TransactionExtention) {}          // consume_user_resource_percent
+     *  rpc UpdateEnergyLimit(UpdateEnergyLimitContract) returns (TransactionExtention) {}  // origin_energy_limit
+     *  rpc ClearContractABI(ClearABIContract) returns (TransactionExtention) {}
+     * 
+ */ + public void triggerContract(org.tron.trident.proto.Contract.TriggerSmartContract request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getTriggerContractMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void triggerConstantContract(org.tron.trident.proto.Contract.TriggerSmartContract request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getTriggerConstantContractMethod(), getCallOptions()), request, responseObserver); + } + /** *
      * The real APIs:
@@ -3809,6 +4058,9 @@ public void getNowBlock2(org.tron.trident.api.GrpcAPI.EmptyMessage request,
     }
 
     /**
+     * 
+     *deprecated
+     * 
*/ public void getBlockByNum(org.tron.trident.api.GrpcAPI.NumberMessage request, io.grpc.stub.StreamObserver responseObserver) { @@ -3817,6 +4069,9 @@ public void getBlockByNum(org.tron.trident.api.GrpcAPI.NumberMessage request, } /** + *
+     *Use this function instead of GetBlockByNum.
+     * 
*/ public void getBlockByNum2(org.tron.trident.api.GrpcAPI.NumberMessage request, io.grpc.stub.StreamObserver responseObserver) { @@ -4322,6 +4577,69 @@ public org.tron.trident.proto.Response.TransactionReturn broadcastTransaction(or getChannel(), getBroadcastTransactionMethod(), getCallOptions(), request); } + /** + *
+     *  rpc CreateCommonTransaction(Transaction) returns (TransactionExtention) {}
+     *  rpc CreateAccount(AccountCreateContract) returns (Transaction) {}
+     *  rpc CreateAccount2(AccountCreateContract) returns (TransactionExtention) {}
+     *  rpc UpdateAccount(AccountUpdateContract) returns (Transaction) {}
+     *  rpc UpdateAccount2(AccountUpdateContract) returns (TransactionExtention) {}
+     *  rpc SetAccountId(SetAccountIdContract) returns (Transaction) {}
+     *  rpc AccountPermissionUpdate(AccountPermissionUpdateContract) returns (TransactionExtention) {}
+     *  rpc CreateTransaction(TransferContract) returns (Transaction) {}
+     *  rpc CreateTransaction2(TransferContract) returns (TransactionExtention) {}
+     *  rpc CreateAssetIssue(AssetIssueContract) returns (Transaction) {}
+     *  rpc CreateAssetIssue2(AssetIssueContract) returns (TransactionExtention) {}
+     *  rpc UpdateAsset(UpdateAssetContract) returns (Transaction) {}
+     *  rpc UpdateAsset2(UpdateAssetContract) returns (TransactionExtention) {}
+     *  rpc TransferAsset(TransferAssetContract) returns (Transaction) {}
+     *  rpc TransferAsset2(TransferAssetContract) returns (TransactionExtention) {}
+     *  rpc ParticipateAssetIssue(ParticipateAssetIssueContract) returns (Transaction) {}
+     *  rpc ParticipateAssetIssue2(ParticipateAssetIssueContract) returns (TransactionExtention) {}
+     *  rpc UnfreezeAsset(UnfreezeAssetContract) returns (Transaction) {}
+     *  rpc UnfreezeAsset2(UnfreezeAssetContract) returns (TransactionExtention) {}
+     *  rpc CreateWitness(WitnessCreateContract) returns (Transaction) {}
+     *  rpc CreateWitness2(WitnessCreateContract) returns (TransactionExtention) {}
+     *  rpc UpdateWitness(WitnessUpdateContract) returns (Transaction) {}
+     *  rpc UpdateWitness2(WitnessUpdateContract) returns (TransactionExtention) {}
+     *  rpc UpdateBrokerage(UpdateBrokerageContract) returns (TransactionExtention) {}
+     *  rpc VoteWitnessAccount(VoteWitnessContract) returns (Transaction) {}
+     *  rpc VoteWitnessAccount2(VoteWitnessContract) returns (TransactionExtention) {}
+     *  rpc FreezeBalance(FreezeBalanceContract) returns (Transaction) {}
+     *  rpc FreezeBalance2(FreezeBalanceContract) returns (TransactionExtention) {}
+     *  rpc UnfreezeBalance(UnfreezeBalanceContract) returns (Transaction) {}
+     *  rpc UnfreezeBalance2(UnfreezeBalanceContract) returns (TransactionExtention) {}
+     *  rpc WithdrawBalance(WithdrawBalanceContract) returns (Transaction) {}
+     *  rpc WithdrawBalance2(WithdrawBalanceContract) returns (TransactionExtention) {}
+     *  rpc ProposalCreate(ProposalCreateContract) returns (TransactionExtention) {}
+     *  rpc ProposalApprove(ProposalApproveContract) returns (TransactionExtention) {}
+     *  rpc ProposalDelete(ProposalDeleteContract) returns (TransactionExtention) {}
+     * 
+ */ + public org.tron.trident.proto.Response.TransactionExtention deployContract(org.tron.trident.proto.Contract.CreateSmartContract request) { + return blockingUnaryCall( + getChannel(), getDeployContractMethod(), getCallOptions(), request); + } + + /** + *
+     *  rpc UpdateSetting(UpdateSettingContract) returns (TransactionExtention) {}          // consume_user_resource_percent
+     *  rpc UpdateEnergyLimit(UpdateEnergyLimitContract) returns (TransactionExtention) {}  // origin_energy_limit
+     *  rpc ClearContractABI(ClearABIContract) returns (TransactionExtention) {}
+     * 
+ */ + public org.tron.trident.proto.Response.TransactionExtention triggerContract(org.tron.trident.proto.Contract.TriggerSmartContract request) { + return blockingUnaryCall( + getChannel(), getTriggerContractMethod(), getCallOptions(), request); + } + + /** + */ + public org.tron.trident.proto.Response.TransactionExtention triggerConstantContract(org.tron.trident.proto.Contract.TriggerSmartContract request) { + return blockingUnaryCall( + getChannel(), getTriggerConstantContractMethod(), getCallOptions(), request); + } + /** *
      * The real APIs:
@@ -4462,6 +4780,9 @@ public org.tron.trident.proto.Response.BlockExtention getNowBlock2(org.tron.trid
     }
 
     /**
+     * 
+     *deprecated
+     * 
*/ public org.tron.trident.proto.Chain.Block getBlockByNum(org.tron.trident.api.GrpcAPI.NumberMessage request) { return blockingUnaryCall( @@ -4469,6 +4790,9 @@ public org.tron.trident.proto.Chain.Block getBlockByNum(org.tron.trident.api.Grp } /** + *
+     *Use this function instead of GetBlockByNum.
+     * 
*/ public org.tron.trident.proto.Response.BlockExtention getBlockByNum2(org.tron.trident.api.GrpcAPI.NumberMessage request) { return blockingUnaryCall( @@ -4918,6 +5242,72 @@ public com.google.common.util.concurrent.ListenableFuture + * rpc CreateCommonTransaction(Transaction) returns (TransactionExtention) {} + * rpc CreateAccount(AccountCreateContract) returns (Transaction) {} + * rpc CreateAccount2(AccountCreateContract) returns (TransactionExtention) {} + * rpc UpdateAccount(AccountUpdateContract) returns (Transaction) {} + * rpc UpdateAccount2(AccountUpdateContract) returns (TransactionExtention) {} + * rpc SetAccountId(SetAccountIdContract) returns (Transaction) {} + * rpc AccountPermissionUpdate(AccountPermissionUpdateContract) returns (TransactionExtention) {} + * rpc CreateTransaction(TransferContract) returns (Transaction) {} + * rpc CreateTransaction2(TransferContract) returns (TransactionExtention) {} + * rpc CreateAssetIssue(AssetIssueContract) returns (Transaction) {} + * rpc CreateAssetIssue2(AssetIssueContract) returns (TransactionExtention) {} + * rpc UpdateAsset(UpdateAssetContract) returns (Transaction) {} + * rpc UpdateAsset2(UpdateAssetContract) returns (TransactionExtention) {} + * rpc TransferAsset(TransferAssetContract) returns (Transaction) {} + * rpc TransferAsset2(TransferAssetContract) returns (TransactionExtention) {} + * rpc ParticipateAssetIssue(ParticipateAssetIssueContract) returns (Transaction) {} + * rpc ParticipateAssetIssue2(ParticipateAssetIssueContract) returns (TransactionExtention) {} + * rpc UnfreezeAsset(UnfreezeAssetContract) returns (Transaction) {} + * rpc UnfreezeAsset2(UnfreezeAssetContract) returns (TransactionExtention) {} + * rpc CreateWitness(WitnessCreateContract) returns (Transaction) {} + * rpc CreateWitness2(WitnessCreateContract) returns (TransactionExtention) {} + * rpc UpdateWitness(WitnessUpdateContract) returns (Transaction) {} + * rpc UpdateWitness2(WitnessUpdateContract) returns (TransactionExtention) {} + * rpc UpdateBrokerage(UpdateBrokerageContract) returns (TransactionExtention) {} + * rpc VoteWitnessAccount(VoteWitnessContract) returns (Transaction) {} + * rpc VoteWitnessAccount2(VoteWitnessContract) returns (TransactionExtention) {} + * rpc FreezeBalance(FreezeBalanceContract) returns (Transaction) {} + * rpc FreezeBalance2(FreezeBalanceContract) returns (TransactionExtention) {} + * rpc UnfreezeBalance(UnfreezeBalanceContract) returns (Transaction) {} + * rpc UnfreezeBalance2(UnfreezeBalanceContract) returns (TransactionExtention) {} + * rpc WithdrawBalance(WithdrawBalanceContract) returns (Transaction) {} + * rpc WithdrawBalance2(WithdrawBalanceContract) returns (TransactionExtention) {} + * rpc ProposalCreate(ProposalCreateContract) returns (TransactionExtention) {} + * rpc ProposalApprove(ProposalApproveContract) returns (TransactionExtention) {} + * rpc ProposalDelete(ProposalDeleteContract) returns (TransactionExtention) {} + *
+ */ + public com.google.common.util.concurrent.ListenableFuture deployContract( + org.tron.trident.proto.Contract.CreateSmartContract request) { + return futureUnaryCall( + getChannel().newCall(getDeployContractMethod(), getCallOptions()), request); + } + + /** + *
+     *  rpc UpdateSetting(UpdateSettingContract) returns (TransactionExtention) {}          // consume_user_resource_percent
+     *  rpc UpdateEnergyLimit(UpdateEnergyLimitContract) returns (TransactionExtention) {}  // origin_energy_limit
+     *  rpc ClearContractABI(ClearABIContract) returns (TransactionExtention) {}
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture triggerContract( + org.tron.trident.proto.Contract.TriggerSmartContract request) { + return futureUnaryCall( + getChannel().newCall(getTriggerContractMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture triggerConstantContract( + org.tron.trident.proto.Contract.TriggerSmartContract request) { + return futureUnaryCall( + getChannel().newCall(getTriggerConstantContractMethod(), getCallOptions()), request); + } + /** *
      * The real APIs:
@@ -5077,6 +5467,9 @@ public com.google.common.util.concurrent.ListenableFuture
+     *deprecated
+     * 
*/ public com.google.common.util.concurrent.ListenableFuture getBlockByNum( org.tron.trident.api.GrpcAPI.NumberMessage request) { @@ -5085,6 +5478,9 @@ public com.google.common.util.concurrent.ListenableFuture + *Use this function instead of GetBlockByNum. + *
*/ public com.google.common.util.concurrent.ListenableFuture getBlockByNum2( org.tron.trident.api.GrpcAPI.NumberMessage request) { @@ -5567,83 +5963,86 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -5666,6 +6065,18 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.broadcastTransaction((org.tron.trident.proto.Chain.Transaction) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_DEPLOY_CONTRACT: + serviceImpl.deployContract((org.tron.trident.proto.Contract.CreateSmartContract) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TRIGGER_CONTRACT: + serviceImpl.triggerContract((org.tron.trident.proto.Contract.TriggerSmartContract) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TRIGGER_CONSTANT_CONTRACT: + serviceImpl.triggerConstantContract((org.tron.trident.proto.Contract.TriggerSmartContract) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_GET_NODE_INFO: serviceImpl.getNodeInfo((org.tron.trident.api.GrpcAPI.EmptyMessage) request, (io.grpc.stub.StreamObserver) responseObserver); @@ -6036,6 +6447,9 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new WalletFileDescriptorSupplier()) .addMethod(getBroadcastTransactionMethod()) + .addMethod(getDeployContractMethod()) + .addMethod(getTriggerContractMethod()) + .addMethod(getTriggerConstantContractMethod()) .addMethod(getGetNodeInfoMethod()) .addMethod(getListNodesMethod()) .addMethod(getGetChainParametersMethod()) diff --git a/trident-java/core/src/main/java/org/tron/trident/api/GrpcAPI.java b/trident-java/core/src/main/java/org/tron/trident/api/GrpcAPI.java index e245dc9..b735595 100644 --- a/trident-java/core/src/main/java/org/tron/trident/api/GrpcAPI.java +++ b/trident-java/core/src/main/java/org/tron/trident/api/GrpcAPI.java @@ -27657,176 +27657,182 @@ public org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage getDefaul "nt\030\001 \001(\003\"H\n!CanDelegatedMaxSizeRequestMe" + "ssage\022\014\n\004type\030\001 \001(\005\022\025\n\rowner_address\030\002 \001" + "(\014\"6\n\"CanDelegatedMaxSizeResponseMessage" + - "\022\020\n\010max_size\030\001 \001(\0032\2272\n\006Wallet\022L\n\024Broadca" + + "\022\020\n\010max_size\030\001 \001(\0032\2344\n\006Wallet\022L\n\024Broadca" + "stTransaction\022\025.protocol.Transaction\032\033.p" + - "rotocol.TransactionReturn\"\000\022;\n\013GetNodeIn" + - "fo\022\026.protocol.EmptyMessage\032\022.protocol.No" + - "deInfo\"\000\0229\n\tListNodes\022\026.protocol.EmptyMe" + - "ssage\032\022.protocol.NodeList\"\000\022I\n\022GetChainP" + - "arameters\022\026.protocol.EmptyMessage\032\031.prot" + - "ocol.ChainParameters\"\000\022E\n\020TotalTransacti" + - "on\022\026.protocol.EmptyMessage\032\027.protocol.Nu" + - "mberMessage\"\000\022K\n\026GetNextMaintenanceTime\022" + - "\026.protocol.EmptyMessage\032\027.protocol.Numbe" + - "rMessage\"\000\022T\n\030GetTransactionSignWeight\022\025" + - ".protocol.Transaction\032\037.protocol.Transac" + - "tionSignWeight\"\000\022X\n\032GetTransactionApprov" + - "edList\022\025.protocol.Transaction\032!.protocol" + - ".TransactionApprovedList\"\000\022B\n\nGetAccount" + - "\022\037.protocol.AccountAddressMessage\032\021.prot" + - "ocol.Account\"\000\022A\n\016GetAccountById\022\032.proto" + - "col.AccountIdMessage\032\021.protocol.Account\"" + - "\000\022O\n\rGetAccountNet\022\037.protocol.AccountAdd" + - "ressMessage\032\033.protocol.AccountNetMessage" + - "\"\000\022Y\n\022GetAccountResource\022\037.protocol.Acco" + - "untAddressMessage\032 .protocol.AccountReso" + - "urceMessage\"\000\022U\n\026GetAssetIssueByAccount\022" + - "\037.protocol.AccountAddressMessage\032\030.proto" + - "col.AssetIssueList\"\000\022M\n\023GetAssetIssueByN" + - "ame\022\026.protocol.BytesMessage\032\034.protocol.A" + - "ssetIssueContract\"\000\022M\n\027GetAssetIssueList" + - "ByName\022\026.protocol.BytesMessage\032\030.protoco" + - "l.AssetIssueList\"\000\022K\n\021GetAssetIssueById\022" + - "\026.protocol.BytesMessage\032\034.protocol.Asset" + - "IssueContract\"\000\022G\n\021GetAssetIssueList\022\026.p" + - "rotocol.EmptyMessage\032\030.protocol.AssetIss" + - "ueList\"\000\022T\n\032GetPaginatedAssetIssueList\022\032" + - ".protocol.PaginatedMessage\032\030.protocol.As" + - "setIssueList\"\000\0228\n\013GetNowBlock\022\026.protocol" + - ".EmptyMessage\032\017.protocol.Block\"\000\022B\n\014GetN" + + "rotocol.TransactionReturn\"\000\022Q\n\016DeployCon" + + "tract\022\035.protocol.CreateSmartContract\032\036.p" + + "rotocol.TransactionExtention\"\000\022S\n\017Trigge" + + "rContract\022\036.protocol.TriggerSmartContrac" + + "t\032\036.protocol.TransactionExtention\"\000\022[\n\027T" + + "riggerConstantContract\022\036.protocol.Trigge" + + "rSmartContract\032\036.protocol.TransactionExt" + + "ention\"\000\022;\n\013GetNodeInfo\022\026.protocol.Empty" + + "Message\032\022.protocol.NodeInfo\"\000\0229\n\tListNod" + + "es\022\026.protocol.EmptyMessage\032\022.protocol.No" + + "deList\"\000\022I\n\022GetChainParameters\022\026.protoco" + + "l.EmptyMessage\032\031.protocol.ChainParameter" + + "s\"\000\022E\n\020TotalTransaction\022\026.protocol.Empty" + + "Message\032\027.protocol.NumberMessage\"\000\022K\n\026Ge" + + "tNextMaintenanceTime\022\026.protocol.EmptyMes" + + "sage\032\027.protocol.NumberMessage\"\000\022T\n\030GetTr" + + "ansactionSignWeight\022\025.protocol.Transacti" + + "on\032\037.protocol.TransactionSignWeight\"\000\022X\n" + + "\032GetTransactionApprovedList\022\025.protocol.T" + + "ransaction\032!.protocol.TransactionApprove" + + "dList\"\000\022B\n\nGetAccount\022\037.protocol.Account" + + "AddressMessage\032\021.protocol.Account\"\000\022A\n\016G" + + "etAccountById\022\032.protocol.AccountIdMessag" + + "e\032\021.protocol.Account\"\000\022O\n\rGetAccountNet\022" + + "\037.protocol.AccountAddressMessage\032\033.proto" + + "col.AccountNetMessage\"\000\022Y\n\022GetAccountRes" + + "ource\022\037.protocol.AccountAddressMessage\032 " + + ".protocol.AccountResourceMessage\"\000\022U\n\026Ge" + + "tAssetIssueByAccount\022\037.protocol.AccountA" + + "ddressMessage\032\030.protocol.AssetIssueList\"" + + "\000\022M\n\023GetAssetIssueByName\022\026.protocol.Byte" + + "sMessage\032\034.protocol.AssetIssueContract\"\000" + + "\022M\n\027GetAssetIssueListByName\022\026.protocol.B" + + "ytesMessage\032\030.protocol.AssetIssueList\"\000\022" + + "K\n\021GetAssetIssueById\022\026.protocol.BytesMes" + + "sage\032\034.protocol.AssetIssueContract\"\000\022G\n\021" + + "GetAssetIssueList\022\026.protocol.EmptyMessag" + + "e\032\030.protocol.AssetIssueList\"\000\022T\n\032GetPagi" + + "natedAssetIssueList\022\032.protocol.Paginated" + + "Message\032\030.protocol.AssetIssueList\"\000\0228\n\013G" + + "etNowBlock\022\026.protocol.EmptyMessage\032\017.pro" + + "tocol.Block\"\000\022B\n\014GetNowBlock2\022\026.protocol" + + ".EmptyMessage\032\030.protocol.BlockExtention\"" + + "\000\022;\n\rGetBlockByNum\022\027.protocol.NumberMess" + + "age\032\017.protocol.Block\"\000\022E\n\016GetBlockByNum2" + + "\022\027.protocol.NumberMessage\032\030.protocol.Blo" + + "ckExtention\"\000\0229\n\014GetBlockById\022\026.protocol" + + ".BytesMessage\032\017.protocol.Block\"\000\022B\n\023GetB" + + "lockByLimitNext\022\024.protocol.BlockLimit\032\023." + + "protocol.BlockList\"\000\022L\n\024GetBlockByLimitN" + + "ext2\022\024.protocol.BlockLimit\032\034.protocol.Bl" + + "ockListExtention\"\000\022E\n\023GetBlockByLatestNu" + + "m\022\027.protocol.NumberMessage\032\023.protocol.Bl" + + "ockList\"\000\022O\n\024GetBlockByLatestNum2\022\027.prot" + + "ocol.NumberMessage\032\034.protocol.BlockListE" + + "xtention\"\000\022S\n\035GetTransactionCountByBlock" + + "Num\022\027.protocol.NumberMessage\032\027.protocol." + + "NumberMessage\"\000\022E\n\022GetTransactionById\022\026." + + "protocol.BytesMessage\032\025.protocol.Transac" + + "tion\"\000\022M\n\026GetTransactionInfoById\022\026.proto" + + "col.BytesMessage\032\031.protocol.TransactionI" + + "nfo\"\000\022X\n\034GetTransactionInfoByBlockNum\022\027." + + "protocol.NumberMessage\032\035.protocol.Transa" + + "ctionInfoList\"\000\022@\n\013GetContract\022\026.protoco" + + "l.BytesMessage\032\027.protocol.SmartContract\"" + + "\000\022O\n\017GetContractInfo\022\026.protocol.BytesMes" + + "sage\032\".protocol.SmartContractDataWrapper" + + "\"\000\022@\n\rListWitnesses\022\026.protocol.EmptyMess" + + "age\032\025.protocol.WitnessList\"\000\022E\n\020GetBroke" + + "rageInfo\022\026.protocol.BytesMessage\032\027.proto" + + "col.NumberMessage\"\000\022B\n\rGetRewardInfo\022\026.p" + + "rotocol.BytesMessage\032\027.protocol.NumberMe" + + "ssage\"\000\022]\n\024GetDelegatedResource\022\".protoc" + + "ol.DelegatedResourceMessage\032\037.protocol.D" + + "elegatedResourceList\"\000\022e\n GetDelegatedRe" + + "sourceAccountIndex\022\026.protocol.BytesMessa" + + "ge\032\'.protocol.DelegatedResourceAccountIn" + + "dex\"\000\022A\n\rListProposals\022\026.protocol.EmptyM" + + "essage\032\026.protocol.ProposalList\"\000\022?\n\017GetP" + + "roposalById\022\026.protocol.BytesMessage\032\022.pr" + + "otocol.Proposal\"\000\022P\n\030GetPaginatedProposa" + + "lList\022\032.protocol.PaginatedMessage\032\026.prot" + + "ocol.ProposalList\"\000\022A\n\rListExchanges\022\026.p" + + "rotocol.EmptyMessage\032\026.protocol.Exchange" + + "List\"\000\022?\n\017GetExchangeById\022\026.protocol.Byt" + + "esMessage\032\022.protocol.Exchange\"\000\022P\n\030GetPa" + + "ginatedExchangeList\022\032.protocol.Paginated" + + "Message\032\026.protocol.ExchangeList\"\000\022a\n\033Sca" + + "nShieldedTRC20NotesByIvk\022#.protocol.IvkD" + + "ecryptTRC20Parameters\032\033.protocol.Decrypt" + + "NotesTRC20\"\000\022a\n\033ScanShieldedTRC20NotesBy" + + "Ovk\022#.protocol.OvkDecryptTRC20Parameters" + + "\032\033.protocol.DecryptNotesTRC20\"\000\022\\\n IsShi" + + "eldedTRC20ContractNoteSpent\022\033.protocol.N" + + "fTRC20Parameters\032\031.protocol.NullifierRes" + + "ult\"\000\022N\n\027GetMarketOrderByAccount\022\026.proto" + + "col.BytesMessage\032\031.protocol.MarketOrderL" + + "ist\"\000\022E\n\022GetMarketOrderById\022\026.protocol.B" + + "ytesMessage\032\025.protocol.MarketOrder\"\000\022N\n\024" + + "GetMarketPriceByPair\022\031.protocol.MarketOr" + + "derPair\032\031.protocol.MarketPriceList\"\000\022R\n\030" + + "GetMarketOrderListByPair\022\031.protocol.Mark" + + "etOrderPair\032\031.protocol.MarketOrderList\"\000" + + "\022L\n\021GetMarketPairList\022\026.protocol.EmptyMe" + + "ssage\032\035.protocol.MarketOrderPairList\"\000\022H" + + "\n\022GetTransactionSign\022\031.protocol.Transact" + + "ionSign\032\025.protocol.Transaction\"\000\022R\n\023GetT" + + "ransactionSign2\022\031.protocol.TransactionSi" + + "gn\032\036.protocol.TransactionExtention\"\000\022Y\n\021" + + "EasyTransferAsset\022\".protocol.EasyTransfe" + + "rAssetMessage\032\036.protocol.EasyTransferRes" + + "ponse\"\000\022k\n\032EasyTransferAssetByPrivate\022+." + + "protocol.EasyTransferAssetByPrivateMessa" + + "ge\032\036.protocol.EasyTransferResponse\"\000\022O\n\014" + + "EasyTransfer\022\035.protocol.EasyTransferMess" + + "age\032\036.protocol.EasyTransferResponse\"\000\022a\n" + + "\025EasyTransferByPrivate\022&.protocol.EasyTr" + + "ansferByPrivateMessage\032\036.protocol.EasyTr" + + "ansferResponse\"\000\022A\n\rCreateAddress\022\026.prot" + + "ocol.BytesMessage\032\026.protocol.BytesMessag" + + "e\"\000\022N\n\017GenerateAddress\022\026.protocol.EmptyM" + + "essage\032!.protocol.AddressPrKeyPairMessag" + + "e\"\000\022F\n\007AddSign\022\031.protocol.TransactionSig" + + "n\032\036.protocol.TransactionExtention\"\000\022B\n\016G" + + "etSpendingKey\022\026.protocol.EmptyMessage\032\026." + + "protocol.BytesMessage\"\000\022X\n\026GetExpandedSp" + + "endingKey\022\026.protocol.BytesMessage\032$.prot" + + "ocol.ExpandedSpendingKeyMessage\"\000\022@\n\014Get" + + "AkFromAsk\022\026.protocol.BytesMessage\032\026.prot" + + "ocol.BytesMessage\"\000\022@\n\014GetNkFromNsk\022\026.pr" + + "otocol.BytesMessage\032\026.protocol.BytesMess" + + "age\"\000\022[\n\025GetIncomingViewingKey\022\033.protoco" + + "l.ViewingKeyMessage\032#.protocol.IncomingV" + + "iewingKeyMessage\"\000\022H\n\016GetDiversifier\022\026.p" + + "rotocol.EmptyMessage\032\034.protocol.Diversif" + + "ierMessage\"\000\022i\n\024GetZenPaymentAddress\022..p" + + "rotocol.IncomingViewingKeyDiversifierMes" + + "sage\032\037.protocol.PaymentAddressMessage\"\000\022" + + "P\n\025GetNewShieldedAddress\022\026.protocol.Empt" + + "yMessage\032\035.protocol.ShieldedAddressInfo\"" + + "\000\022:\n\006GetRcm\022\026.protocol.EmptyMessage\032\026.pr" + + "otocol.BytesMessage\"\000\022q\n CreateShieldedC" + + "ontractParameters\022(.protocol.PrivateShie" + + "ldedTRC20Parameters\032!.protocol.ShieldedT" + + "RC20Parameters\"\000\022\205\001\n*CreateShieldedContr" + + "actParametersWithoutAsk\0222.protocol.Priva" + + "teShieldedTRC20ParametersWithoutAsk\032!.pr" + + "otocol.ShieldedTRC20Parameters\"\000\022u\n\'GetT" + + "riggerInputForShieldedTRC20Contract\0220.pr" + + "otocol.ShieldedTRC20TriggerContractParam" + + "eters\032\026.protocol.BytesMessage\"\000\022\204\001\n\031GetA" + + "vailableUnfreezeCount\0221.protocol.GetAvai" + + "lableUnfreezeCountRequestMessage\0322.proto" + + "col.GetAvailableUnfreezeCountResponseMes" + + "sage\"\000\022\207\001\n\034GetCanWithdrawUnfreezeAmount\022" + + "1.protocol.CanWithdrawUnfreezeAmountRequ" + + "estMessage\0322.protocol.CanWithdrawUnfreez" + + "eAmountResponseMessage\"\000\022u\n\026GetCanDelega" + + "tedMaxSize\022+.protocol.CanDelegatedMaxSiz" + + "eRequestMessage\032,.protocol.CanDelegatedM" + + "axSizeResponseMessage\"\000\022_\n\026GetDelegatedR" + + "esourceV2\022\".protocol.DelegatedResourceMe" + + "ssage\032\037.protocol.DelegatedResourceList\"\000" + + "\022g\n\"GetDelegatedResourceAccountIndexV2\022\026" + + ".protocol.BytesMessage\032\'.protocol.Delega" + + "tedResourceAccountIndex\"\0002\243\002\n\016WalletSoli" + + "dity\022B\n\nGetAccount\022\037.protocol.AccountAdd" + + "ressMessage\032\021.protocol.Account\"\000\022B\n\014GetN" + "owBlock2\022\026.protocol.EmptyMessage\032\030.proto" + - "col.BlockExtention\"\000\022;\n\rGetBlockByNum\022\027." + - "protocol.NumberMessage\032\017.protocol.Block\"" + - "\000\022E\n\016GetBlockByNum2\022\027.protocol.NumberMes" + - "sage\032\030.protocol.BlockExtention\"\000\0229\n\014GetB" + - "lockById\022\026.protocol.BytesMessage\032\017.proto" + - "col.Block\"\000\022B\n\023GetBlockByLimitNext\022\024.pro" + - "tocol.BlockLimit\032\023.protocol.BlockList\"\000\022" + - "L\n\024GetBlockByLimitNext2\022\024.protocol.Block" + - "Limit\032\034.protocol.BlockListExtention\"\000\022E\n" + - "\023GetBlockByLatestNum\022\027.protocol.NumberMe" + - "ssage\032\023.protocol.BlockList\"\000\022O\n\024GetBlock" + - "ByLatestNum2\022\027.protocol.NumberMessage\032\034." + - "protocol.BlockListExtention\"\000\022S\n\035GetTran" + - "sactionCountByBlockNum\022\027.protocol.Number" + - "Message\032\027.protocol.NumberMessage\"\000\022E\n\022Ge" + - "tTransactionById\022\026.protocol.BytesMessage" + - "\032\025.protocol.Transaction\"\000\022M\n\026GetTransact" + - "ionInfoById\022\026.protocol.BytesMessage\032\031.pr" + - "otocol.TransactionInfo\"\000\022X\n\034GetTransacti" + - "onInfoByBlockNum\022\027.protocol.NumberMessag" + - "e\032\035.protocol.TransactionInfoList\"\000\022@\n\013Ge" + - "tContract\022\026.protocol.BytesMessage\032\027.prot" + - "ocol.SmartContract\"\000\022O\n\017GetContractInfo\022" + - "\026.protocol.BytesMessage\032\".protocol.Smart" + - "ContractDataWrapper\"\000\022@\n\rListWitnesses\022\026" + - ".protocol.EmptyMessage\032\025.protocol.Witnes" + - "sList\"\000\022E\n\020GetBrokerageInfo\022\026.protocol.B" + - "ytesMessage\032\027.protocol.NumberMessage\"\000\022B" + - "\n\rGetRewardInfo\022\026.protocol.BytesMessage\032" + - "\027.protocol.NumberMessage\"\000\022]\n\024GetDelegat" + - "edResource\022\".protocol.DelegatedResourceM" + - "essage\032\037.protocol.DelegatedResourceList\"" + - "\000\022e\n GetDelegatedResourceAccountIndex\022\026." + - "protocol.BytesMessage\032\'.protocol.Delegat" + - "edResourceAccountIndex\"\000\022A\n\rListProposal" + - "s\022\026.protocol.EmptyMessage\032\026.protocol.Pro" + - "posalList\"\000\022?\n\017GetProposalById\022\026.protoco" + - "l.BytesMessage\032\022.protocol.Proposal\"\000\022P\n\030" + - "GetPaginatedProposalList\022\032.protocol.Pagi" + - "natedMessage\032\026.protocol.ProposalList\"\000\022A" + - "\n\rListExchanges\022\026.protocol.EmptyMessage\032" + - "\026.protocol.ExchangeList\"\000\022?\n\017GetExchange" + - "ById\022\026.protocol.BytesMessage\032\022.protocol." + - "Exchange\"\000\022P\n\030GetPaginatedExchangeList\022\032" + - ".protocol.PaginatedMessage\032\026.protocol.Ex" + - "changeList\"\000\022a\n\033ScanShieldedTRC20NotesBy" + - "Ivk\022#.protocol.IvkDecryptTRC20Parameters" + - "\032\033.protocol.DecryptNotesTRC20\"\000\022a\n\033ScanS" + - "hieldedTRC20NotesByOvk\022#.protocol.OvkDec" + - "ryptTRC20Parameters\032\033.protocol.DecryptNo" + - "tesTRC20\"\000\022\\\n IsShieldedTRC20ContractNot" + - "eSpent\022\033.protocol.NfTRC20Parameters\032\031.pr" + - "otocol.NullifierResult\"\000\022N\n\027GetMarketOrd" + - "erByAccount\022\026.protocol.BytesMessage\032\031.pr" + - "otocol.MarketOrderList\"\000\022E\n\022GetMarketOrd" + - "erById\022\026.protocol.BytesMessage\032\025.protoco" + - "l.MarketOrder\"\000\022N\n\024GetMarketPriceByPair\022" + - "\031.protocol.MarketOrderPair\032\031.protocol.Ma" + - "rketPriceList\"\000\022R\n\030GetMarketOrderListByP" + - "air\022\031.protocol.MarketOrderPair\032\031.protoco" + - "l.MarketOrderList\"\000\022L\n\021GetMarketPairList" + - "\022\026.protocol.EmptyMessage\032\035.protocol.Mark" + - "etOrderPairList\"\000\022H\n\022GetTransactionSign\022" + - "\031.protocol.TransactionSign\032\025.protocol.Tr" + - "ansaction\"\000\022R\n\023GetTransactionSign2\022\031.pro" + - "tocol.TransactionSign\032\036.protocol.Transac" + - "tionExtention\"\000\022Y\n\021EasyTransferAsset\022\".p" + - "rotocol.EasyTransferAssetMessage\032\036.proto" + - "col.EasyTransferResponse\"\000\022k\n\032EasyTransf" + - "erAssetByPrivate\022+.protocol.EasyTransfer" + - "AssetByPrivateMessage\032\036.protocol.EasyTra" + - "nsferResponse\"\000\022O\n\014EasyTransfer\022\035.protoc" + - "ol.EasyTransferMessage\032\036.protocol.EasyTr" + - "ansferResponse\"\000\022a\n\025EasyTransferByPrivat" + - "e\022&.protocol.EasyTransferByPrivateMessag" + - "e\032\036.protocol.EasyTransferResponse\"\000\022A\n\rC" + - "reateAddress\022\026.protocol.BytesMessage\032\026.p" + - "rotocol.BytesMessage\"\000\022N\n\017GenerateAddres" + - "s\022\026.protocol.EmptyMessage\032!.protocol.Add" + - "ressPrKeyPairMessage\"\000\022F\n\007AddSign\022\031.prot" + - "ocol.TransactionSign\032\036.protocol.Transact" + - "ionExtention\"\000\022B\n\016GetSpendingKey\022\026.proto" + - "col.EmptyMessage\032\026.protocol.BytesMessage" + - "\"\000\022X\n\026GetExpandedSpendingKey\022\026.protocol." + - "BytesMessage\032$.protocol.ExpandedSpending" + - "KeyMessage\"\000\022@\n\014GetAkFromAsk\022\026.protocol." + - "BytesMessage\032\026.protocol.BytesMessage\"\000\022@" + - "\n\014GetNkFromNsk\022\026.protocol.BytesMessage\032\026" + - ".protocol.BytesMessage\"\000\022[\n\025GetIncomingV" + - "iewingKey\022\033.protocol.ViewingKeyMessage\032#" + - ".protocol.IncomingViewingKeyMessage\"\000\022H\n" + - "\016GetDiversifier\022\026.protocol.EmptyMessage\032" + - "\034.protocol.DiversifierMessage\"\000\022i\n\024GetZe" + - "nPaymentAddress\022..protocol.IncomingViewi" + - "ngKeyDiversifierMessage\032\037.protocol.Payme" + - "ntAddressMessage\"\000\022P\n\025GetNewShieldedAddr" + - "ess\022\026.protocol.EmptyMessage\032\035.protocol.S" + - "hieldedAddressInfo\"\000\022:\n\006GetRcm\022\026.protoco" + - "l.EmptyMessage\032\026.protocol.BytesMessage\"\000" + - "\022q\n CreateShieldedContractParameters\022(.p" + - "rotocol.PrivateShieldedTRC20Parameters\032!" + - ".protocol.ShieldedTRC20Parameters\"\000\022\205\001\n*" + - "CreateShieldedContractParametersWithoutA" + - "sk\0222.protocol.PrivateShieldedTRC20Parame" + - "tersWithoutAsk\032!.protocol.ShieldedTRC20P" + - "arameters\"\000\022u\n\'GetTriggerInputForShielde" + - "dTRC20Contract\0220.protocol.ShieldedTRC20T" + - "riggerContractParameters\032\026.protocol.Byte" + - "sMessage\"\000\022\204\001\n\031GetAvailableUnfreezeCount" + - "\0221.protocol.GetAvailableUnfreezeCountReq" + - "uestMessage\0322.protocol.GetAvailableUnfre" + - "ezeCountResponseMessage\"\000\022\207\001\n\034GetCanWith" + - "drawUnfreezeAmount\0221.protocol.CanWithdra" + - "wUnfreezeAmountRequestMessage\0322.protocol" + - ".CanWithdrawUnfreezeAmountResponseMessag" + - "e\"\000\022u\n\026GetCanDelegatedMaxSize\022+.protocol" + - ".CanDelegatedMaxSizeRequestMessage\032,.pro" + - "tocol.CanDelegatedMaxSizeResponseMessage" + - "\"\000\022_\n\026GetDelegatedResourceV2\022\".protocol." + - "DelegatedResourceMessage\032\037.protocol.Dele" + - "gatedResourceList\"\000\022g\n\"GetDelegatedResou" + - "rceAccountIndexV2\022\026.protocol.BytesMessag" + - "e\032\'.protocol.DelegatedResourceAccountInd" + - "ex\"\0002\243\002\n\016WalletSolidity\022B\n\nGetAccount\022\037." + - "protocol.AccountAddressMessage\032\021.protoco" + - "l.Account\"\000\022B\n\014GetNowBlock2\022\026.protocol.E" + - "mptyMessage\032\030.protocol.BlockExtention\"\000\022" + - "E\n\022GetTransactionById\022\026.protocol.BytesMe" + - "ssage\032\025.protocol.Transaction\"\000\022B\n\rGetRew" + - "ardInfo\022\026.protocol.BytesMessage\032\027.protoc" + - "ol.NumberMessage\"\000B\037\n\024org.tron.trident.a" + - "piB\007GrpcAPIb\006proto3" + "col.BlockExtention\"\000\022E\n\022GetTransactionBy" + + "Id\022\026.protocol.BytesMessage\032\025.protocol.Tr" + + "ansaction\"\000\022B\n\rGetRewardInfo\022\026.protocol." + + "BytesMessage\032\027.protocol.NumberMessage\"\000B" + + "\037\n\024org.tron.trident.apiB\007GrpcAPIb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, From 9ccbd7abaf646f5e6616875d59337c54c5eb76fd Mon Sep 17 00:00:00 2001 From: mikeluxue Date: Tue, 11 Apr 2023 11:50:09 +0800 Subject: [PATCH 4/9] feat(core): optimize readme.md&comments --- README.md | 2 +- .../core/src/main/java/org/tron/trident/core/ApiWrapper.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3d5b446..a8d6e91 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Functions include: - Offline address generation -- Offline transaction build +- Offline transaction construct - Offline transaction signature diff --git a/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java b/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java index dbb8432..1256d89 100644 --- a/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java +++ b/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java @@ -787,7 +787,7 @@ public Block getNowBlock() throws IllegalException { /** * Returns the Block Object corresponding to the 'Block Height' specified (number of blocks preceding it) * @param blockNum The block height - * @return Block + * @return BlockExtention block details * @throws IllegalException if the parameters are not correct */ public BlockExtention getBlockByNum(long blockNum) throws IllegalException { From ee259584c46bfe9802dd869082ba7d9357f6fb0f Mon Sep 17 00:00:00 2001 From: mikeluxue Date: Tue, 11 Apr 2023 14:32:51 +0800 Subject: [PATCH 5/9] feat(core): increase default tx expiration time --- .../core/src/main/java/org/tron/trident/core/ApiWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java b/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java index 1256d89..83b4a54 100644 --- a/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java +++ b/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java @@ -105,7 +105,7 @@ */ public class ApiWrapper { - public static final long TRANSACTION_DEFAULT_EXPIRATION_TIME = 60 * 1_000L; //60 seconds + public static final long TRANSACTION_DEFAULT_EXPIRATION_TIME = 300 * 1_000L; //300 seconds public final WalletGrpc.WalletBlockingStub blockingStub; public final WalletSolidityGrpc.WalletSolidityBlockingStub blockingStubSolidity; From 928d908844cfb68859a74896add195815b3b2a33 Mon Sep 17 00:00:00 2001 From: mikeluxue Date: Tue, 11 Apr 2023 14:48:48 +0800 Subject: [PATCH 6/9] feat(core): restore default tx expiration time --- .../core/src/main/java/org/tron/trident/core/ApiWrapper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java b/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java index 83b4a54..49ee35b 100644 --- a/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java +++ b/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java @@ -105,7 +105,7 @@ */ public class ApiWrapper { - public static final long TRANSACTION_DEFAULT_EXPIRATION_TIME = 300 * 1_000L; //300 seconds + public static final long TRANSACTION_DEFAULT_EXPIRATION_TIME = 60 * 1_000L; //60 seconds public final WalletGrpc.WalletBlockingStub blockingStub; public final WalletSolidityGrpc.WalletSolidityBlockingStub blockingStubSolidity; @@ -282,7 +282,7 @@ private TransactionCapsule createTransactionCapsuleWithoutValidate( } //build transaction trx.setTransactionCreate(false); - BlockExtention solidHeadBlock = blockingStubSolidity.getNowBlock2(EmptyMessage.getDefaultInstance()); + BlockExtention solidHeadBlock = blockingStub.getNowBlock2(EmptyMessage.getDefaultInstance()); //get solid head blockId byte[] blockHash = Utils.getBlockId(solidHeadBlock).getBytes(); trx.setReference(solidHeadBlock.getBlockHeader().getRawData().getNumber(), blockHash); From 0281ab7dc2d30be83c06ae895094fb62e24cf475 Mon Sep 17 00:00:00 2001 From: mikeluxue Date: Tue, 11 Apr 2023 14:50:16 +0800 Subject: [PATCH 7/9] feat(core): refactor codes --- .../main/java/org/tron/trident/core/ApiWrapper.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java b/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java index 49ee35b..02ee100 100644 --- a/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java +++ b/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java @@ -282,12 +282,12 @@ private TransactionCapsule createTransactionCapsuleWithoutValidate( } //build transaction trx.setTransactionCreate(false); - BlockExtention solidHeadBlock = blockingStub.getNowBlock2(EmptyMessage.getDefaultInstance()); - //get solid head blockId - byte[] blockHash = Utils.getBlockId(solidHeadBlock).getBytes(); - trx.setReference(solidHeadBlock.getBlockHeader().getRawData().getNumber(), blockHash); + BlockExtention headBlock = blockingStub.getNowBlock2(EmptyMessage.getDefaultInstance()); + //get head blockId + byte[] blockHash = Utils.getBlockId(headBlock).getBytes(); + trx.setReference(headBlock.getBlockHeader().getRawData().getNumber(), blockHash); - long expiration = solidHeadBlock.getBlockHeader().getRawData().getTimestamp() + TRANSACTION_DEFAULT_EXPIRATION_TIME; + long expiration = headBlock.getBlockHeader().getRawData().getTimestamp() + TRANSACTION_DEFAULT_EXPIRATION_TIME; trx.setExpiration(expiration); trx.setTimestamp(); From c48cfb5442a310ab953bb5ce5f2fb9d3802e8356 Mon Sep 17 00:00:00 2001 From: mikeluxue Date: Tue, 11 Apr 2023 14:55:45 +0800 Subject: [PATCH 8/9] feat(core): change tx expiration time value --- .../main/java/org/tron/trident/core/ApiWrapper.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java b/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java index 02ee100..4864170 100644 --- a/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java +++ b/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java @@ -282,11 +282,13 @@ private TransactionCapsule createTransactionCapsuleWithoutValidate( } //build transaction trx.setTransactionCreate(false); - BlockExtention headBlock = blockingStub.getNowBlock2(EmptyMessage.getDefaultInstance()); - //get head blockId - byte[] blockHash = Utils.getBlockId(headBlock).getBytes(); - trx.setReference(headBlock.getBlockHeader().getRawData().getNumber(), blockHash); + BlockExtention solidHeadBlock = blockingStubSolidity.getNowBlock2(EmptyMessage.getDefaultInstance()); + //get solid head blockId + byte[] blockHash = Utils.getBlockId(solidHeadBlock).getBytes(); + trx.setReference(solidHeadBlock.getBlockHeader().getRawData().getNumber(), blockHash); + //get expiration time from head block timestamp + BlockExtention headBlock = blockingStub.getNowBlock2(EmptyMessage.getDefaultInstance()); long expiration = headBlock.getBlockHeader().getRawData().getTimestamp() + TRANSACTION_DEFAULT_EXPIRATION_TIME; trx.setExpiration(expiration); trx.setTimestamp(); From 11bbd5af88a18cdddc0e739842e7e1f2c63171be Mon Sep 17 00:00:00 2001 From: mikeluxue Date: Wed, 12 Apr 2023 11:16:19 +0800 Subject: [PATCH 9/9] feat(core): optimize setAccountId to keep interface compatibility --- .../java/org/tron/trident/core/ApiWrapper.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java b/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java index 1256d89..9920203 100644 --- a/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java +++ b/trident-java/core/src/main/java/org/tron/trident/core/ApiWrapper.java @@ -89,8 +89,6 @@ import org.tron.trident.proto.Response.TransactionSignWeight; import org.tron.trident.proto.Response.TransactionApprovedList; -import static org.tron.trident.proto.Response.TransactionReturn.response_code.SUCCESS; - /** * A {@code ApiWrapper} object is the entry point for calling the functions. * @@ -988,6 +986,18 @@ public Transaction setAccountId(String id, String address) throws IllegalExcepti return transaction; } + //use this method instead of setAccountId + public TransactionExtention setAccountId2(String id, String address) throws IllegalException { + ByteString bsId = ByteString.copyFrom(id.getBytes()); + ByteString bsAddress = parseAddress(address); + + SetAccountIdContract contract = createSetAccountIdContract(bsId, bsAddress); + + TransactionExtention extention = createTransactionExtention(contract, Transaction.Contract.ContractType.SetAccountIdContract); + + return extention; + } + /** * All parameters that the blockchain committee can set * @return ChainParameters