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

Commit

Permalink
Merge pull request grpc-ecosystem#58 from tronprotocol/update_proto_f…
Browse files Browse the repository at this point in the history
…or_walletExtension_service

add wallet extension service
  • Loading branch information
huzhenyuan authored May 28, 2018
2 parents 2998ca9 + 2ba20c3 commit e62a2e0
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -387,57 +387,60 @@ service WalletSolidity {
}
};
}
};

service WalletExtension {
rpc GetTransactionsByTimestamp (TimePaginatedMessage) returns (TransactionList) {
option (google.api.http) = {
post: "/walletsolidity/gettransactionsbytimestamp"
post: "/walletextension/gettransactionsbytimestamp"
body: "*"
additional_bindings {
get: "/walletsolidity/gettransactionsbytimestamp"
get: "/walletextension/gettransactionsbytimestamp"
}
};
}
rpc GetTransactionsByTimestampCount (TimeMessage) returns (NumberMessage) {
option (google.api.http) = {
post: "/walletsolidity/gettransactionsbytimestampcount"
post: "/walletextension/gettransactionsbytimestampcount"
body: "*"
additional_bindings {
get: "/walletsolidity/gettransactionsbytimestampcount"
get: "/walletextension/gettransactionsbytimestampcount"
}
};
}
rpc GetTransactionsFromThis (AccountPaginated) returns (TransactionList) {
option (google.api.http) = {
post: "/walletsolidity/gettransactionsfromthis"
post: "/walletextension/gettransactionsfromthis"
body: "*"
additional_bindings {
get: "/walletsolidity/gettransactionsfromthis"
get: "/walletextension/gettransactionsfromthis"
}
};
}
rpc GetTransactionsToThis (AccountPaginated) returns (TransactionList) {
option (google.api.http) = {
post: "/walletsolidity/gettransactionstothis"
post: "/walletextension/gettransactionstothis"
body: "*"
additional_bindings {
get: "/walletsolidity/gettransactionstothis"
get: "/walletextension/gettransactionstothis"
}
};
}
rpc GetTransactionsFromThisCount (Account) returns (NumberMessage) {
option (google.api.http) = {
post: "/walletsolidity/gettransactionsfromthiscount"
post: "/walletextension/gettransactionsfromthiscount"
body: "*"
additional_bindings {
get: "/walletsolidity/gettransactionsfromthiscount"
get: "/walletextension/gettransactionsfromthiscount"
}
};
}
rpc GetTransactionsToThisCount (Account) returns (NumberMessage) {
option (google.api.http) = {
post: "/walletsolidity/gettransactionstothiscount"
post: "/walletextension/gettransactionstothiscount"
body: "*"
additional_bindings {
get: "/walletsolidity/gettransactionstothiscount"
get: "/walletextension/gettransactionstothiscount"
}
};
}
Expand Down

0 comments on commit e62a2e0

Please sign in to comment.