diff --git a/api/api.proto b/api/api.proto index a571e0bdb4c..3b47771b2c3 100644 --- a/api/api.proto +++ b/api/api.proto @@ -84,11 +84,21 @@ service Wallet { } }; + // the api of tron's db service Database { // for tapos rpc getBlockReference (EmptyMessage) returns (BlockReference) { + } + rpc GetDynamicProperties (EmptyMessage) returns (DynamicProperties) { + + } + rpc GetNowBlock (EmptyMessage) returns (Block) { + + } + rpc GetBlockByNum (NumberMessage) returns (Block) { + } }; diff --git a/core/Contract.proto b/core/Contract.proto index b334f7709b0..a00c82eec58 100644 --- a/core/Contract.proto +++ b/core/Contract.proto @@ -19,6 +19,7 @@ package protocol; option java_package = "org.tron.protos"; //Specify the name of the package that generated the Java file option java_outer_classname = "Contract"; //Specify the class name of the generated Java file +option go_package = "github.com/tronprotocol/go-client-api/core"; import "core/Tron.proto"; diff --git a/core/Tron.proto b/core/Tron.proto index 7339733487a..b5914a3d33f 100644 --- a/core/Tron.proto +++ b/core/Tron.proto @@ -182,6 +182,11 @@ message Items { repeated Transaction transactions = 4; } +// DynamicProperties +message DynamicProperties { + int64 last_solidity_block_num = 1; +} + enum ReasonCode { REQUESTED = 0; TCP_ERROR = 1;