-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat: ListWalletTransactions
rpc
#286
base: master
Are you sure you want to change the base?
Conversation
768ece6
to
357d4f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Misclicked the approve
534d3b8
to
f72a88c
Compare
f72a88c
to
1c74d3b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
@@ -733,6 +738,49 @@ message GetWalletRequest { | |||
optional uint64 id = 2; | |||
} | |||
|
|||
message ListWalletTransactionsRequest { | |||
uint64 id = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does id mean in this context here? It's not clear from just the proto
string address = 1; | ||
uint64 amount = 2; | ||
// wether the address is controlled by the wallet | ||
bool is_our_address = 3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bool is_our_address = 3; | |
bool is_ours = 3; |
// its the sum of all output values minus the sum of all input values which are controlled by the wallet. | ||
// positive values indicate incoming transactions, negative values outgoing transactions | ||
int64 balance_change = 2; | ||
int64 timestamp = 3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
int64 timestamp = 3; | |
uint64 timestamp = 3; |
return nil, err | ||
} | ||
for _, tx := range outputs.Transactions { | ||
if tx.TxId == txId || txId == "" { | ||
for _, tx := range transactoins { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for _, tx := range transactoins { | |
for _, tx := range transactions { |
limit = 30 | ||
} | ||
if limit > 30 { | ||
return nil, errors.New("limit cant be larger than 30") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return nil, errors.New("limit cant be larger than 30") | |
return nil, errors.New("limit cannot be larger than 30") |
message WalletTransaction { | ||
string id = 1; | ||
// balance change of the wallet in satoshis. | ||
// its the sum of all output values minus the sum of all input values which are controlled by the wallet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// its the sum of all output values minus the sum of all input values which are controlled by the wallet. | |
// It is the sum of all output values minus the sum of all input values which are controlled by the wallet. |
|
||
message WalletTransaction { | ||
string id = 1; | ||
// balance change of the wallet in satoshis. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// balance change of the wallet in satoshis. | |
// Balance change of the wallet in satoshis. |
string id = 1; | ||
// balance change of the wallet in satoshis. | ||
// its the sum of all output values minus the sum of all input values which are controlled by the wallet. | ||
// positive values indicate incoming transactions, negative values outgoing transactions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// positive values indicate incoming transactions, negative values outgoing transactions | |
// Positive values indicate incoming transactions, negative values outgoing transactions. |
int64 timestamp = 3; | ||
repeated TransactionOutput outputs = 4; | ||
uint32 block_height = 6; | ||
// swaps which are related to this transaction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// swaps which are related to this transaction | |
// Swaps which are related to this transaction. |
message TransactionOutput { | ||
string address = 1; | ||
uint64 amount = 2; | ||
// wether the address is controlled by the wallet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// wether the address is controlled by the wallet | |
// Whether the address is controlled by the wallet. |
a bit flaky with gdk notifications test helper - nothing to worry about in prod
No description provided.