Skip to content

Commit 5dbdf52

Browse files
committed
Update changelogs once again - rearrange things, mention changes to wallet RPC and node RPC. Also, change how WalletExtraInfo is serializes to json, to make the generated RPC docs prettier.
1 parent 9261b3f commit 5dbdf52

File tree

5 files changed

+88
-44
lines changed

5 files changed

+88
-44
lines changed

CHANGELOG.md

Lines changed: 71 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ The format is loosely based on [Keep a Changelog](https://keepachangelog.com/en/
1111

1212
## [Unreleased]
1313

14+
### Changed
15+
- Wallet RPC:
16+
`wallet_info`: the structure of the returned field `extra_info` was changed.
17+
1418
## [1.2.0] - 2025-10-27
1519

1620
### Changed
17-
1821
- **A Mainnet fork is scheduled at height 517700** with the same consensus changes that previously
1922
happened on Testnet, namely:
2023

@@ -28,39 +31,33 @@ The format is loosely based on [Keep a Changelog](https://keepachangelog.com/en/
2831
## [1.1.0] - 2025-08-21
2932

3033
### Added
31-
3234
- Wallet:
33-
- Added a command to undiscourage a previously discouraged peer - `node-undiscourage-peer-address` in
34-
`wallet-cli`, `node_undiscourage_peer_address` in the wallet rpc.
35+
- Added a new `wallet-cli` command to undiscourage a previously discouraged peer - `node-undiscourage-peer-address`.
3536

36-
- Added a command to return the account's extended public key - `account-extended-public-key-as-hex` in
37-
`wallet-cli`, `account_extended_public_key` in the wallet rpc.
37+
- Added a new `wallet-cli` command to return the account's extended public key - `account-extended-public-key-as-hex`.
3838

39-
- `staking-create-pool` now accepts two optional additional parameters - the staker address and the VRF public key.
40-
This allows to create a pool from a wallet other than the one that will be used for staking.
41-
42-
- Added new option `--no-qr` to `wallet-cli`, which disables QR code output for wallet commands.
39+
- Added new `wallet-cli` command `config-broadcast`. When `config-broadcast no` is called, it prevents all
40+
commands that create transactions from automatically broadcasting them to the network.
4341

44-
- `wallet-cli` commands `transaction-list-by-address` and `transaction-list-pending` now print their output
45-
in the paginated mode.
42+
- `wallet-cli` gained a new option `--no-qr`, which disables QR code output for wallet commands.
4643

47-
- `wallet-cli` command `address-show` now has the option `--include-change`, which makes it include the change
48-
addresses in the output.
44+
- Added support for Trezor hardware wallets (beta).
4945

50-
- `wallet-cli` command `address-sweep-spendable` now has the option `--all`, which makes it sweep all addresses
51-
of the selected account.
46+
Because of this, `wallet-cli` and `wallet-rpc-daemon` gained an additional parameter, `--hardware-wallet`,
47+
which must be used together with `--wallet-file` to indicate that the wallet file being opened corresponds to
48+
a hardware wallet.
5249

53-
- Added new `wallet-cli` command `config-broadcast`. When `config-broadcast no` is called, it prevents all
54-
commands that create transactions from automatically broadcasting them to the network.
50+
- Wallet RPC:
51+
- New methods: `account_extended_public_key`, `node_undiscourage_peer_address` (similar to the corresponding commands
52+
in `wallet-cli`) and `token_make_tx_to_send_with_intent`.
5553

56-
- Added support for Trezor hardware wallets (beta).
54+
- Node RPC: new methods - `chainstate_pool_decommission_destination`, `p2p_undiscourage`.
5755

5856
- `node-gui` and `node-daemon` now can store info-level logs to the data directory, regardless of what is
5957
printed to the console. This is controlled by the `--log-to-file` option, which is enabled by default
6058
for `node-gui`.
6159

6260
### Changed
63-
6461
- **A Testnet fork is scheduled at height 566060** with the following consensus changes:
6562

6663
- Orders V1. The previous (V0) order inputs will no longer be supported, and the new (V1) ones will have
@@ -86,15 +83,67 @@ The format is loosely based on [Keep a Changelog](https://keepachangelog.com/en/
8683

8784
- `ChainstateStorageVersion` was increased, full node resync is required.
8885

89-
### Fixed
86+
- Wallet CLI commands:
87+
- `wallet-create` was split into 2 commands - `wallet-create` and `wallet-recover`. They both create a new wallet
88+
file and the difference is that `wallet-recover` rescans the blockchain upon creation and `wallet-create` doesn't.
89+
90+
- `wallet-create`/`wallet-recover`/`wallet-open` now have a mandatory subcommand, which can be either `software` or
91+
`trezor`, which specifies the type of the wallet to operate on.
92+
93+
- `staking-create-pool` now accepts two optional additional parameters - the staker address and the VRF public key.
94+
This allows to create a pool from a wallet other than the one that will be used for staking.
95+
96+
- `transaction-list-by-address` and `transaction-list-pending` now print their output in paginated mode.
97+
98+
- `address-show` now has the option `--include-change`, which makes it include the change addresses in the output.
99+
The command will now also print the coin balances of shown addresses.
100+
101+
- `address-sweep-spendable` now has the option `--all`, which makes it sweep all addresses of the selected account.
102+
103+
- Wallet RPC:
104+
- Most of the methods that create transactions, such as `address_send`, now accept an additional field in their
105+
`options` parameter - `broadcast_to_mempool`, which specifies whether the transaction should be sent to the mempool
106+
upon creation. The default is `true` (which is the old behavior).
107+
108+
- Methods that create transactions now also return extra information in addition to the transaction id -
109+
the transaction itself (in the hex-encoded form), the info about fees paid by the transaction, whether it was
110+
broadcast to mempool or not.
111+
112+
- `address_sweep_spendable` gained an additional boolean parameter - `all`, which may be used to force it to
113+
sweep all addresses from the given account.
114+
115+
- `staking_create_pool` gained additional optional parameters - `staker_address` and `vrf_public_key`,
116+
same as the corresponding `wallet-cli` command.
90117

118+
- `wallet_create` was split into `wallet_create` and `wallet_recover`, same as the corresponding `wallet-cli` command.
119+
120+
- `wallet_create`, `wallet_recover` and `wallet_open` gained an additional optional parameter - `hardware_wallet`.
121+
This specifies the type of the hardware wallet to use (currently only trezor wallets are supported); if not set,
122+
the wallet is meant to be a software wallet.
123+
124+
The results of `wallet_create`, `wallet_recover` and `wallet_open` now may contain additional data, to indicate
125+
a situation when creating/recovering/opening a hardware wallet could not be completed due to multiple potentially
126+
suitable devices being available.
127+
128+
Also, `wallet_create` and `wallet_recover`'s result will no longer include the passphrase.
129+
130+
- `wallet_info` returns an additional field `extra_info`, which specifies whether it's a software or hardware wallet;
131+
in the latter case the field will also contain additional information, such as the device name.
132+
133+
- `address_show` gained an additional parameter - `include_change_addresses`, similar to the corresponding command
134+
in `wallet-cli`.
135+
136+
Also, the result of the call now contains additional info - the purpose of each address ("Receive" or "Change")
137+
and its coins balance.
138+
139+
### Fixed
91140
- Fixed issues in the wallet related to a transaction with an outdated nonce not being marked as conflicted.
92141

93142
- `node-gui` no longer ignores the network type (i.e. "mainnet" ot "testnet") passed via the command line.
94143

95144
- Fixed an issue where `node-gui` would appear stuck when opening a wallet that wasn't synced in a long time.
96145

97-
- Fixed an issue in the wallet where a text summary for a token-issuing transaction would show its "is freezable"
146+
- Fixed an issue in the wallet where a text summary for a token-issuing transaction would show its "freezable"
98147
status incorrectly.
99148

100149
- Fixed issues with transaction fee calculation in the wallet.

api-server/CHANGELOG.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ The format is loosely based on [Keep a Changelog](https://keepachangelog.com/en/
77
## [Unreleased]
88

99
### Added
10-
1110
- New endpoint was added: `/v2/transaction/{id}/output/{idx}`.
1211

1312
### Changed
14-
1513
- `/v2/token/ticker/{ticker}` will now return all tokens whose ticker has the specified `{ticker}`
1614
as a substring (previously only exact matches were returned).
1715

@@ -24,11 +22,9 @@ No changes
2422
## [1.1.0] - 2025-08-21
2523

2624
### Added
27-
2825
- New endpoint was added: `/v2/address/{address}/token-authority`
2926

3027
### Changed
31-
3228
- Transactions returned by `/v2/transaction` now have a fixed global order; it is defined by the order of blocks and the
3329
order of transactions in each particular block.
3430

@@ -56,35 +52,28 @@ No changes
5652
- `CURRENT_STORAGE_VERSION` was increased, full resync is required.
5753

5854
### Fixed
59-
6055
- Fixed the issue of `Burn` outputs being incorrectly reported as `LockThenTransfer`.
6156

6257
- Fixed the issue of the `MintTokens`'s `amount` being calculated using coin's decimals instead of the token's.
6358

6459
### Removed
65-
6660
- In endpoints that return transaction info (such as `transaction/{id}`), the returned info about a `FillOrder` input
6761
no longer includes `destination`.
6862

69-
### Changed
70-
7163
## [1.0.2] - 2025-01-19
7264

7365
### Added
74-
7566
- New endpoints were added:
7667
- `/v2/order`
7768
- `/v2/order/{id}`
7869
- `/v2/order/pair/{asset1}_{asset2}`
7970

8071
### Changed
81-
8272
- The `/v2/nft/{id}` endpoint now also returns the owner of the NFT.
8373
- The `/v2/order/{id}` endpoint now also returns the current nonce of the order.
8474
- `CURRENT_STORAGE_VERSION` was increased, full resync is required.
8575

8676
### Fixed
87-
8877
- Fixed a crash in the `/v2/transaction/{id}` endpoint due to token info missing in the db after an order fill transaction
8978
has been processed.
9079

wallet/wallet-cli-commands/src/command_handler/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,11 @@ where
187187
MnemonicInfo::NewlyGenerated { mnemonic } => {
188188
format!(
189189
"New wallet created successfully\nYour mnemonic: {}\n\
190-
Please write it somewhere safe to be able to restore your wallet. \
191-
It's recommended that you attempt to recover the wallet now as practice\
192-
to check that you arrive at the same addresses, \
193-
to ensure that you have done everything correctly.
194-
",
190+
Please write it somewhere safe to be able to restore your wallet. \
191+
It's recommended that you attempt to recover the wallet now as practice\
192+
to check that you arrive at the same addresses, \
193+
to ensure that you have done everything correctly.
194+
",
195195
mnemonic
196196
)
197197
}

wallet/wallet-controller/src/types/mod.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ pub struct WalletInfo {
5858
pub extra_info: WalletExtraInfo,
5959
}
6060

61-
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
61+
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, rpc_description::HasValueHint)]
62+
#[serde(tag = "type", content = "content")]
6263
pub enum WalletExtraInfo {
6364
SoftwareWallet,
6465
#[cfg(feature = "trezor")]
@@ -70,10 +71,6 @@ pub enum WalletExtraInfo {
7071
},
7172
}
7273

73-
impl rpc_description::HasValueHint for WalletExtraInfo {
74-
const HINT_SER: rpc_description::ValueHint = rpc_description::ValueHint::GENERIC_OBJECT;
75-
}
76-
7774
// A struct that represents sending a particular amount of unspecified currency.
7875
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
7976
pub struct GenericCurrencyTransfer {

wallet/wallet-rpc-daemon/docs/RPC.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3390,7 +3390,16 @@ Returns:
33903390
"account_names": [ EITHER OF
33913391
1) string
33923392
2) null, .. ],
3393-
"extra_info": object,
3393+
"extra_info": EITHER OF
3394+
1) { "type": "SoftwareWallet" }
3395+
2) {
3396+
"type": "TrezorWallet",
3397+
"content": {
3398+
"device_name": string,
3399+
"device_id": string,
3400+
"firmware_version": string,
3401+
},
3402+
},
33943403
}
33953404
```
33963405

0 commit comments

Comments
 (0)