Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update api.proto #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions protos/api/api.proto
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
syntax = "proto3";
package protocol;

option java_package = "org.gsc.api"; //Specify the name of the package that generated the Java file
option java_outer_classname = "GrpcAPI"; //Specify the class name of the generated Java file
option java_package = "org.gsc.api"; //the package name of generated java files
option java_outer_classname = "GrpcAPI"; //the name of generated file

//wallet api service
service Wallet {

rpc GetAccount (Account) returns (Account) {
Expand All @@ -14,13 +16,13 @@ service Wallet {


};

// database api
// storage api server
service Database {

// get the current newest block
rpc GetNowBlock (EmptyMessage) returns (Block) {

}
// get the block by message of the block
rpc GetBlockByNum (NumberMessage) returns (Block) {

}
Expand All @@ -31,14 +33,15 @@ message BlockReference {
bytes block_hash = 2;
}


//network api service
service Network {

};

// the return type
message Return {
bool result = 1;
bool result = 1; // return true or false
bytes message = 2; //message of return content
}

message AccountList {
Expand Down