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

Commit

Permalink
Merge branch 'master' into feature/add_free_operation_limit
Browse files Browse the repository at this point in the history
# Conflicts:
#	api/api.proto
  • Loading branch information
sean-liu55 committed May 26, 2018
2 parents 1fc686f + 2135552 commit e994951
Showing 1 changed file with 40 additions and 3 deletions.
43 changes: 40 additions & 3 deletions api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ service WalletSolidity {
}
};
}
rpc GetTransactionsByTimestamp (TimeMessage) returns (TransactionList) {
rpc GetTransactionsByTimestamp (TimePaginatedMessage) returns (TransactionList) {
option (google.api.http) = {
post: "/walletsolidity/gettransactionsbytimestamp"
body: "*"
Expand All @@ -396,7 +396,16 @@ service WalletSolidity {
}
};
}
rpc GetTransactionsFromThis (Account) returns (TransactionList) {
rpc GetTransactionsByTimestampCount (TimeMessage) returns (NumberMessage) {
option (google.api.http) = {
post: "/walletsolidity/gettransactionsbytimestampcount"
body: "*"
additional_bindings {
get: "/walletsolidity/gettransactionsbytimestampcount"
}
};
}
rpc GetTransactionsFromThis (AccountPaginated) returns (TransactionList) {
option (google.api.http) = {
post: "/walletsolidity/gettransactionsfromthis"
body: "*"
Expand All @@ -405,7 +414,7 @@ service WalletSolidity {
}
};
}
rpc GetTransactionsToThis (Account) returns (TransactionList) {
rpc GetTransactionsToThis (AccountPaginated) returns (TransactionList) {
option (google.api.http) = {
post: "/walletsolidity/gettransactionstothis"
body: "*"
Expand All @@ -414,6 +423,24 @@ service WalletSolidity {
}
};
}
rpc GetTransactionsFromThisCount (Account) returns (NumberMessage) {
option (google.api.http) = {
post: "/walletsolidity/gettransactionsfromthiscount"
body: "*"
additional_bindings {
get: "/walletsolidity/gettransactionsfromthiscount"
}
};
}
rpc GetTransactionsToThisCount (Account) returns (NumberMessage) {
option (google.api.http) = {
post: "/walletsolidity/gettransactionstothiscount"
body: "*"
additional_bindings {
get: "/walletsolidity/gettransactionstothiscount"
}
};
}
};

// the api of tron's db
Expand Down Expand Up @@ -512,6 +539,16 @@ message TransactionLimit {
bytes transactionId = 1;
int64 limitNum = 2;
}
message AccountPaginated {
Account account = 1;
int64 offset = 2;
int64 limit = 3;
}
message TimePaginatedMessage {
TimeMessage timeMessage = 1;
int64 offset = 2;
int64 limit = 3;
}
message AccountNetMessage {
int64 freeNetUsed = 1;
int64 freeNetLimit = 2;
Expand Down

0 comments on commit e994951

Please sign in to comment.