Update gRPC API
This commit is contained in:
parent
da75ae9386
commit
cd1471d1ed
@ -110,9 +110,9 @@ public final class AccountingChainProto {
|
|||||||
"in.api.Transaction\022t\n!GetTransactionByBl" +
|
"in.api.Transaction\022t\n!GetTransactionByBl" +
|
||||||
"ockHashAndIndex\0225.bdchain.api.GetTransac" +
|
"ockHashAndIndex\0225.bdchain.api.GetTransac" +
|
||||||
"tionByBlockHashAndIndexRequest\032\030.bdchain" +
|
"tionByBlockHashAndIndexRequest\032\030.bdchain" +
|
||||||
".api.TransactionBD\n\020bdchain.api.grpcB\024Ac" +
|
".api.TransactionBH\n\020bdchain.api.grpcB\024Ac" +
|
||||||
"countingChainProtoP\001Z\030bdchain/api/grpc/a" +
|
"countingChainProtoP\001Z\034bdchain/sdk/api/gr" +
|
||||||
"cchainb\006proto3"
|
"pc/acchainb\006proto3"
|
||||||
};
|
};
|
||||||
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
|
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
|
||||||
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
|
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
|
||||||
|
@ -30,11 +30,11 @@ public final class CommonProto {
|
|||||||
java.lang.String[] descriptorData = {
|
java.lang.String[] descriptorData = {
|
||||||
"\n\030bdchain/api/common.proto\022\013bdchain.api\"" +
|
"\n\030bdchain/api/common.proto\022\013bdchain.api\"" +
|
||||||
"(\n\025ClientVersionResponse\022\017\n\007version\030\001 \001(" +
|
"(\n\025ClientVersionResponse\022\017\n\007version\030\001 \001(" +
|
||||||
"\t*Z\n\017TransactionType\022\n\n\006RECORD\020\000\022\013\n\007MESS" +
|
"\t*o\n\017TransactionType\022\n\n\006RECORD\020\000\022\013\n\007MESS" +
|
||||||
"AGE\020\001\022\025\n\021CONTRACT_CREATION\020\002\022\027\n\023CONTRACT" +
|
"AGE\020\001\022\025\n\021CONTRACT_CREATION\020\002\022\027\n\023CONTRACT" +
|
||||||
"_INVOCATION\020\003B:\n\020bdchain.api.grpcB\013Commo" +
|
"_INVOCATION\020\003\022\023\n\017CONTRACT_STATUS\020\004B>\n\020bd" +
|
||||||
"nProtoP\001Z\027bdchain/api/grpc/commonb\006proto" +
|
"chain.api.grpcB\013CommonProtoP\001Z\033bdchain/s" +
|
||||||
"3"
|
"dk/api/grpc/commonb\006proto3"
|
||||||
};
|
};
|
||||||
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
|
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
|
||||||
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
|
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
|
||||||
|
@ -37,9 +37,9 @@ public final class ErrorDetailsProto {
|
|||||||
"in.api\"\216\001\n\017InvalidArgument\022E\n\020field_viol" +
|
"in.api\"\216\001\n\017InvalidArgument\022E\n\020field_viol" +
|
||||||
"ations\030\001 \003(\0132+.bdchain.api.InvalidArgume" +
|
"ations\030\001 \003(\0132+.bdchain.api.InvalidArgume" +
|
||||||
"nt.FieldViolation\0324\n\016FieldViolation\022\r\n\005f" +
|
"nt.FieldViolation\0324\n\016FieldViolation\022\r\n\005f" +
|
||||||
"ield\030\001 \001(\t\022\023\n\013description\030\002 \001(\tBD\n\020bdcha" +
|
"ield\030\001 \001(\t\022\023\n\013description\030\002 \001(\tBH\n\020bdcha" +
|
||||||
"in.api.grpcB\021ErrorDetailsProtoP\001Z\033bdchai" +
|
"in.api.grpcB\021ErrorDetailsProtoP\001Z\037bdchai" +
|
||||||
"n/api/grpc/errdetailsb\006proto3"
|
"n/sdk/api/grpc/errdetailsb\006proto3"
|
||||||
};
|
};
|
||||||
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
|
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
|
||||||
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
|
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
|
||||||
|
@ -73,9 +73,9 @@ public final class TransactionLedgerProto {
|
|||||||
"mpty\032\037.bdchain.api.GetLedgersResponse\022\\\n" +
|
"mpty\032\037.bdchain.api.GetLedgersResponse\022\\\n" +
|
||||||
"\017SendTransaction\022#.bdchain.api.SendTrans" +
|
"\017SendTransaction\022#.bdchain.api.SendTrans" +
|
||||||
"actionRequest\032$.bdchain.api.SendTransact" +
|
"actionRequest\032$.bdchain.api.SendTransact" +
|
||||||
"ionResponseBG\n\020bdchain.api.grpcB\026Transac" +
|
"ionResponseBK\n\020bdchain.api.grpcB\026Transac" +
|
||||||
"tionLedgerProtoP\001Z\031bdchain/api/grpc/txle" +
|
"tionLedgerProtoP\001Z\035bdchain/sdk/api/grpc/" +
|
||||||
"dgerb\006proto3"
|
"txledgerb\006proto3"
|
||||||
};
|
};
|
||||||
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
|
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
|
||||||
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
|
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
|
||||||
|
@ -44,6 +44,14 @@ public enum TransactionType
|
|||||||
* <code>CONTRACT_INVOCATION = 3;</code>
|
* <code>CONTRACT_INVOCATION = 3;</code>
|
||||||
*/
|
*/
|
||||||
CONTRACT_INVOCATION(3),
|
CONTRACT_INVOCATION(3),
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* 合约状态
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>CONTRACT_STATUS = 4;</code>
|
||||||
|
*/
|
||||||
|
CONTRACT_STATUS(4),
|
||||||
UNRECOGNIZED(-1),
|
UNRECOGNIZED(-1),
|
||||||
;
|
;
|
||||||
|
|
||||||
@ -79,6 +87,14 @@ public enum TransactionType
|
|||||||
* <code>CONTRACT_INVOCATION = 3;</code>
|
* <code>CONTRACT_INVOCATION = 3;</code>
|
||||||
*/
|
*/
|
||||||
public static final int CONTRACT_INVOCATION_VALUE = 3;
|
public static final int CONTRACT_INVOCATION_VALUE = 3;
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* 合约状态
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>CONTRACT_STATUS = 4;</code>
|
||||||
|
*/
|
||||||
|
public static final int CONTRACT_STATUS_VALUE = 4;
|
||||||
|
|
||||||
|
|
||||||
public final int getNumber() {
|
public final int getNumber() {
|
||||||
@ -103,6 +119,7 @@ public enum TransactionType
|
|||||||
case 1: return MESSAGE;
|
case 1: return MESSAGE;
|
||||||
case 2: return CONTRACT_CREATION;
|
case 2: return CONTRACT_CREATION;
|
||||||
case 3: return CONTRACT_INVOCATION;
|
case 3: return CONTRACT_INVOCATION;
|
||||||
|
case 4: return CONTRACT_STATUS;
|
||||||
default: return null;
|
default: return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 3c7efb095d6392eec9d30b2c706af52541384095
|
Subproject commit 07f1e05962d359da4edd9c931cc5d5a37664237d
|
Loading…
Reference in New Issue
Block a user