Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
add solidity node impl
Browse files Browse the repository at this point in the history
  • Loading branch information
huzhenyuan committed Apr 12, 2018
1 parent f549760 commit c56402e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

}
};

Expand Down
1 change: 1 addition & 0 deletions core/Contract.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
5 changes: 5 additions & 0 deletions core/Tron.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c56402e

Please sign in to comment.