Update packages
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bdchain.api;
|
||||
package bdchain.api.acchain;
|
||||
|
||||
import "google/protobuf/empty.proto";
|
||||
import "bdchain/api/common.proto";
|
||||
@@ -11,7 +11,7 @@ option java_outer_classname = "AccountingChainProto";
|
||||
option java_multiple_files = true;
|
||||
|
||||
service AccountingChain {
|
||||
rpc ClientVersion (google.protobuf.Empty) returns (ClientVersionResponse);
|
||||
rpc ClientVersion (google.protobuf.Empty) returns (common.ClientVersionResponse);
|
||||
rpc BlockNumber (BlockNumberRequest) returns (BlockNumberResponse);
|
||||
rpc GetBlockByNumber (GetBlockByNumberRequest) returns (Block);
|
||||
rpc GetBlockByHash (GetBlockByHashRequest) returns (Block);
|
||||
@@ -25,7 +25,7 @@ message Transaction {
|
||||
bytes block_hash = 2; // 事务所在的区块的哈希,当事务处于待确认状态时为`null`
|
||||
uint32 index = 3; // 事务在区块中的位置index,当事务处于待确认状态时为`null`
|
||||
bytes hash = 4; // 事务的哈希
|
||||
TransactionType type = 5; // 事务类型
|
||||
common.TransactionType type = 5; // 事务类型
|
||||
bytes from = 6; // 发送账户地址
|
||||
uint64 nonce = 7; // 这条事务之前发送者所发送的事务数量
|
||||
bytes to = 8; // 接收账户地址,或者调用的合约地址,或者`null`如为合约创建
|
||||
|
||||
Reference in New Issue
Block a user