You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
---
In Tari Universe we want to import tx when view wallet instance is
running. It's only possible via grpc due to exclusive file lock.
* also print out tx_id when send-one-sided completed to export the tx
easily
Motivation and Context
---
How Has This Been Tested?
---
https://drive.google.com/file/d/1iV-cLxqvnTBX0QSs6lAzqg55Zn5aGOu2/view
What process can a PR reviewer use to test or verify this change?
---
<!-- Checklist -->
<!-- 1. Is the title of your PR in the form that would make nice release
notes? The title, excluding the conventional commit
tag, will be included exactly as is in the CHANGELOG, so please think
about it carefully. -->
Breaking Changes
---
- [x] None
- [ ] Requires data directory on base node to be deleted
- [ ] Requires hard fork
- [ ] Other - Please specify
<!-- Does this include a breaking change? If so, include this line as a
footer -->
<!-- BREAKING CHANGE: Description what the user should do, e.g. delete a
database, resync the chain -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
## Summary by CodeRabbit
- **New Features**
- Added the ability to import transactions into the wallet via a new
gRPC method.
- Transaction IDs of sent one-sided transactions to stealth addresses
are now displayed in the console.
- Users receive notifications and balance updates when transactions are
imported.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
// Returns the transaction details for the given transaction IDs.
267
267
//
268
268
// The GetTransactionInfo RPC retrieves detailed information about specific transactions based on their IDs.
269
269
// The response includes details such as transaction status, direction, amount, fee, and more.
270
270
//
271
271
// ### Request Parameters:
272
272
//
273
-
// - `transaction_ids` (required):
274
-
// - **Type**: `repeated uint64`
275
-
// - **Description**: A list of transaction IDs to query.
276
-
// - **Restrictions**:
273
+
// - `transaction_ids` (required):
274
+
// - **Type**: `repeated uint64`
275
+
// - **Description**: A list of transaction IDs to query.
276
+
// - **Restrictions**:
277
277
// - Must contain at least one ID.
278
278
// - All IDs must be valid unsigned 64-bit integers.
279
279
// - Duplicates will be ignored; only the first occurrence is processed.
@@ -440,7 +440,7 @@ service Wallet {
440
440
//
441
441
// ### Request Parameters:
442
442
//
443
-
// - *(none)*
443
+
// - *(none)*
444
444
// - This method uses an empty request body (`google.protobuf.Empty`).
445
445
// - No filters or arguments are required.
446
446
//
@@ -470,29 +470,29 @@ service Wallet {
470
470
//
471
471
// ### Request Parameters:
472
472
//
473
-
// - `amount_per_split` (required):
474
-
// - **Type**: `uint64`
475
-
// - **Description**: The value of each individual output in the split.
473
+
// - `amount_per_split` (required):
474
+
// - **Type**: `uint64`
475
+
// - **Description**: The value of each individual output in the split.
476
476
// - **Restrictions**: Must be greater than zero.
477
477
//
478
-
// - `split_count` (required):
479
-
// - **Type**: `uint64`
480
-
// - **Description**: The number of outputs to create.
478
+
// - `split_count` (required):
479
+
// - **Type**: `uint64`
480
+
// - **Description**: The number of outputs to create.
481
481
// - **Restrictions**: Must be greater than zero and within practical system limits.
482
482
//
483
-
// - `fee_per_gram` (required):
484
-
// - **Type**: `uint64`
485
-
// - **Description**: The transaction fee rate (per gram of weight).
483
+
// - `fee_per_gram` (required):
484
+
// - **Type**: `uint64`
485
+
// - **Description**: The transaction fee rate (per gram of weight).
486
486
// - **Restrictions**: Should be set high enough to ensure confirmation.
487
487
//
488
-
// - `lock_height` (optional):
489
-
// - **Type**: `uint64`
490
-
// - **Description**: The earliest block height at which the transaction becomes valid.
488
+
// - `lock_height` (optional):
489
+
// - **Type**: `uint64`
490
+
// - **Description**: The earliest block height at which the transaction becomes valid.
491
491
// - **Restrictions**: Defaults to 0 if not specified.
492
492
//
493
-
// - `payment_id` (optional):
494
-
// - **Type**: `bytes`
495
-
// - **Description**: A user-defined identifier for tracking or referencing the transaction.
493
+
// - `payment_id` (optional):
494
+
// - **Type**: `bytes`
495
+
// - **Description**: A user-defined identifier for tracking or referencing the transaction.
496
496
// - **Restrictions**: Optional; can be left empty.
497
497
//
498
498
// ### Example JavaScript gRPC client usage:
@@ -528,17 +528,17 @@ service Wallet {
528
528
//
529
529
// ### Request Parameters:
530
530
//
531
-
// - `outputs` (required):
532
-
// - **Type**: `repeated UnblindedOutput`
533
-
// - **Description**: A list of unblinded outputs to import into the wallet.
534
-
// - **Restrictions**:
531
+
// - `outputs` (required):
532
+
// - **Type**: `repeated UnblindedOutput`
533
+
// - **Description**: A list of unblinded outputs to import into the wallet.
534
+
// - **Restrictions**:
535
535
// - Each output must be valid and convertible to an internal UTXO format.
536
536
// - The list must contain at least one item.
537
537
//
538
-
// - `payment_id` (optional):
539
-
// - **Type**: `bytes`
540
-
// - **Description**: An optional user-defined identifier to associate with the imported outputs.
541
-
// - **Restrictions**:
538
+
// - `payment_id` (optional):
539
+
// - **Type**: `bytes`
540
+
// - **Description**: An optional user-defined identifier to associate with the imported outputs.
541
+
// - **Restrictions**:
542
542
// - Can be left empty if not needed.
543
543
// - Must be a valid byte string if provided.
544
544
//
@@ -572,7 +572,7 @@ service Wallet {
572
572
//
573
573
// ### Request Parameters:
574
574
//
575
-
// - *(none)*
575
+
// - *(none)*
576
576
// - This method uses an empty request body (`google.protobuf.Empty`).
577
577
// - No filters or arguments are required.
578
578
//
@@ -599,16 +599,16 @@ service Wallet {
599
599
//
600
600
// The `status` field indicates the current network connectivity of the wallet. Possible values are:
601
601
//
602
-
// - `ONLINE`:
603
-
// - The wallet is fully connected to the network and functioning normally.
602
+
// - `ONLINE`:
603
+
// - The wallet is fully connected to the network and functioning normally.
604
604
// - The node has enough active peer connections to operate efficiently.
605
605
//
606
-
// - `DEGRADED`:
607
-
// - The wallet is connected to some peers but not enough to maintain full functionality.
606
+
// - `DEGRADED`:
607
+
// - The wallet is connected to some peers but not enough to maintain full functionality.
608
608
// - This could indicate issues with network connectivity, such as intermittent disconnections or insufficient peers, leading to reduced performance or reliability.
609
609
//
610
-
// - `OFFLINE`:
611
-
// - The wallet is not connected to any peers.
610
+
// - `OFFLINE`:
611
+
// - The wallet is not connected to any peers.
612
612
// - This status means the wallet is unable to communicate with the network and cannot perform any network-related operations.
0 commit comments