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

Define new grpc bsq/btc balances protos #4793

Merged
merged 1 commit into from
Dec 3, 2020
Merged
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
48 changes: 48 additions & 0 deletions proto/src/main/proto/grpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,12 @@ message TradeInfo {
service Wallets {
rpc GetBalance (GetBalanceRequest) returns (GetBalanceReply) {
}
rpc GetBalances (GetBalancesRequest) returns (GetBalancesReply) {
}
rpc GetBsqBalances (GetBsqBalancesRequest) returns (GetBsqBalancesReply) {
}
rpc GetBtcBalances (GetBtcBalancesRequest) returns (GetBtcBalancesReply) {
}
rpc GetAddressBalance (GetAddressBalanceRequest) returns (GetAddressBalanceReply) {
}
rpc GetFundingAddresses (GetFundingAddressesRequest) returns (GetFundingAddressesReply) {
Expand All @@ -296,6 +302,27 @@ message GetBalanceReply {
uint64 balance = 1;
}

message GetBalancesRequest {
}

message GetBalancesReply {
BalancesInfo balances = 1;
}

message GetBsqBalancesRequest {
}

message GetBsqBalancesReply {
BsqBalanceInfo bsqBalanceInfo = 1;
}

message GetBtcBalancesRequest {
}

message GetBtcBalancesReply {
BtcBalanceInfo btcBalanceInfo = 1;
}

message GetAddressBalanceRequest {
string address = 1;
}
Expand Down Expand Up @@ -340,6 +367,27 @@ message UnlockWalletRequest {
message UnlockWalletReply {
}

message BalancesInfo {
BsqBalanceInfo bsqBalanceInfo = 1;
BtcBalanceInfo btcBalanceInfo = 2;
}

message BsqBalanceInfo {
uint64 availableConfirmedBalance = 1;
uint64 unverifiedBalance = 2;
uint64 unconfirmedChangeBalance = 3;
uint64 lockedForVotingBalance = 4;
uint64 lockupBondsBalance = 5;
uint64 unlockingBondsBalance = 6;
}

message BtcBalanceInfo {
uint64 availableBalance = 1;
uint64 reservedBalance = 2;
uint64 totalAvailableBalance = 3;
uint64 lockedBalance = 4;
}

message AddressBalanceInfo {
string address = 1;
int64 balance = 2;
Expand Down