Skip to content

Commit a3af1c1

Browse files
Start release candidate process for v0.36.1-rc.1 (#564)
2 parents c3f233d + c99fe36 commit a3af1c1

File tree

10 files changed

+24
-73
lines changed

10 files changed

+24
-73
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ If you observe an incorrect behavior while using Hathor headless wallet, see [th
2020

2121
## Tests
2222

23+
The Hathor headless wallet is tested automatically with unit tests and integration tests. See the following documentation for more information:
2324
- [Testing guidelines](/docs/testing.md)
24-
- [QA: suggested test sequence](/docs/QA.md)
25+
26+
Eventually, some changes to plugins or scripts may require specific testing not covered by those automated tests, but those should be analysed case by case on each PR.
2527

2628
## Contributing
2729

__tests__/__fixtures__/http-fixtures.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ export default {
11041104
nc_address: 'WiGFcSYHhfRqWJ7PXYvhjULXtXCYD1VFdS',
11051105
nc_context: {
11061106
actions: [],
1107-
address: 'WiGFcSYHhfRqWJ7PXYvhjULXtXCYD1VFdS',
1107+
caller_id: 'WiGFcSYHhfRqWJ7PXYvhjULXtXCYD1VFdS',
11081108
timestamp: 1748361396
11091109
},
11101110
raw: '00010000004031711a553875276835e0ad02000002977efa41879690fb304cb03583e5a8b74080401f770633faf9091ef695039906854ce6309b3180945f2a23deb9edff369753f7082e19053f5ac11bfbae0000eef210013cb032600bdf7db784800e4ea911b10676fa2f67591f82bb62628c234e7715950a696e697469616c697a65004703200000298f16599418b0475762c9ce570fe966fd8a62fd933888a96a16c0b893b720000002977efa41879690fb304cb03583e5a8b74080401f770633faf9091ef6957196bd490049d6e3295bdb3fd0b01c626fe3d088499d0511aba4806d6159006a47304502210096279fdcc336040aa9cb517241d968b73738de19102ed5f893891a5131644ab00220424091f8efe7b2413669d034e907215dd0ab7386cf983d22019a922d6b4385692102f327b0e8f23b5a714d14786b81f5bd1254cdd6fd096c8f606f743dc90011c2ac'
@@ -1204,7 +1204,7 @@ export default {
12041204
amount: 100
12051205
}
12061206
],
1207-
address: 'WiGFcSYHhfRqWJ7PXYvhjULXtXCYD1VFdS',
1207+
caller_id: 'WiGFcSYHhfRqWJ7PXYvhjULXtXCYD1VFdS',
12081208
timestamp: 1748361399
12091209
},
12101210
raw: '0001010101000002977efa41879690fb304cb03583e5a8b74080401f770633faf9091ef695000002977efa41879690fb304cb03583e5a8b74080401f770633faf9091ef69501006a473045022100a341137acf18c9ac4b42b13d2b8db23a719d2e79510ece61408dffd42cd126e502202f38f44530f990fbb28a3aa9a7a01878dc16e8dcbba341320bb6b9acff5458f5210201917d707d8346ba1daf7225fc4037328085f9291e763e736e26fe74e62d5fd50000c2ec01001976a914eb29951f14b6a497ff6c70e0a47110a782a59c0488ac4035c5beef0668f36835e0b702000033ef9affbd741d477ff62450253a60b5a082c6cf803340ad1a6369ab9f16000002977efa41879690fb304cb03583e5a8b74080401f770633faf9091ef6950038295e1001000033ef9affbd741d477ff62450253a60b5a082c6cf803340ad1a6369ab9f16036265740033021949d6e3295bdb3fd0b01c626fe3d088499d0511aba4806d6159175265616c2d4d616472696432783242617263656c6f6e610101010000006449d6e3295bdb3fd0b01c626fe3d088499d0511aba4806d615900694630440220657cc9e7e362ad20bcf5008d0085943e984f63dc513f5523aaff53d08050a4bb022004c2e32ef271f2544edf48b699456f307b13dd4e468a47e5570f77a5bf4132022102f327b0e8f23b5a714d14786b81f5bd1254cdd6fd096c8f606f743dc90011c2ac'
@@ -1323,7 +1323,7 @@ export default {
13231323
amount: 100
13241324
}
13251325
],
1326-
address: 'WiGFcSYHhfRqWJ7PXYvhjULXtXCYD1VFdS',
1326+
caller_id: 'WiGFcSYHhfRqWJ7PXYvhjULXtXCYD1VFdS',
13271327
timestamp: 1748361466
13281328
},
13291329
tx_id: '0000045a5460cc1d00489c39ae4438c92d26180d996243d2dca8f7c4c62b7b50',
@@ -1351,7 +1351,7 @@ export default {
13511351
nc_address: 'WiGFcSYHhfRqWJ7PXYvhjULXtXCYD1VFdS',
13521352
nc_context: {
13531353
actions: [],
1354-
address: 'WiGFcSYHhfRqWJ7PXYvhjULXtXCYD1VFdS',
1354+
caller_id: 'WiGFcSYHhfRqWJ7PXYvhjULXtXCYD1VFdS',
13551355
timestamp: 1748361396
13561356
},
13571357
tx_id: '000033ef9affbd741d477ff62450253a60b5a082c6cf803340ad1a6369ab9f16',

__tests__/integration/configuration/blueprints/bet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def withdraw(self, ctx: Context) -> None:
191191
assert isinstance(action, NCWithdrawalAction)
192192
self.fail_if_result_is_not_available()
193193
self.fail_if_invalid_token(action)
194-
address = Address(ctx.address)
194+
address = Address(ctx.caller_id)
195195
allowed = self.get_max_withdrawal(address)
196196
if action.amount > allowed:
197197
raise InsufficientBalance(f'withdrawal amount is greater than available (max: {allowed})')

__tests__/integration/configuration/privnet.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
P2PKH_VERSION_BYTE: x49
1010
MULTISIG_VERSION_BYTE: x87
11-
NETWORK_NAME: nano-testnet-alpha
11+
NETWORK_NAME: nano-testnet-bravo
1212
BOOTSTRAP_DNS: []
1313
ENABLE_PEER_WHITELIST: false
1414

@@ -32,8 +32,7 @@ REWARD_SPEND_MIN_BLOCKS: 1
3232

3333
CHECKPOINTS: []
3434

35-
ENABLE_NANO_CONTRACTS: true
36-
ENABLE_ON_CHAIN_BLUEPRINTS: true
35+
ENABLE_NANO_CONTRACTS: enabled
3736
NC_ON_CHAIN_BLUEPRINT_RESTRICTED: false
3837

3938
extends: mainnet.yml

__tests__/integration/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ services:
66

77
fullnode:
88
image:
9-
${HATHOR_LIB_INTEGRATION_TESTS_FULLNODE_IMAGE:-hathornetwork/hathor-core:experimental-nano-preview-924fafb5-python3.12}
9+
${HATHOR_LIB_INTEGRATION_TESTS_FULLNODE_IMAGE:-hathornetwork/hathor-core:v0.65.0-alpha.3}
1010
command: [
1111
"run_node",
1212
"--listen", "tcp:40404",
1313
"--status", "8080",
1414
"--test-mode-tx-weight",
1515
"--wallet-index",
1616
"--allow-mining-without-peers",
17-
"--unsafe-mode", "nano-testnet-alpha",
17+
"--unsafe-mode", "nano-testnet-bravo",
1818
"--data", "./tmp",
19-
"--nc-indices",
19+
"--nc-indexes",
2020
]
2121
environment:
2222
HATHOR_CONFIG_YAML: privnet/conf/privnet.yml

__tests__/integration/tx-template.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ describe('tx-template build', () => {
8080
.post('/wallet/tx-template/build')
8181
.send([
8282
{ type: 'action/setvar', name: 'addr', call: { method: 'get_wallet_address' } },
83-
{ type: 'action/config', tokenName: 'Test Token', tokenSymbol: 'TT' },
83+
{ type: 'action/config', tokenName: 'Test Token', tokenSymbol: 'TT', createToken: true },
8484
{ type: 'input/utxo', fill: 1 },
8585
{ type: 'output/token', amount: 100, address: '{addr}', useCreatedToken: true },
8686
])
@@ -176,7 +176,7 @@ describe('tx-template run', () => {
176176
.post('/wallet/tx-template/run')
177177
.send([
178178
{ type: 'action/setvar', name: 'addr', call: { method: 'get_wallet_address' } },
179-
{ type: 'action/config', tokenName: 'Test Token', tokenSymbol: 'TT' },
179+
{ type: 'action/config', tokenName: 'Test Token', tokenSymbol: 'TT', createToken: true },
180180
{ type: 'input/utxo', fill: 1 },
181181
{ type: 'output/token', amount: 100, address: '{addr}', useCreatedToken: true },
182182
{ type: 'output/authority', authority: 'mint', address: '{addr}', useCreatedToken: true },

docs/QA.md

Lines changed: 0 additions & 49 deletions
This file was deleted.

docs/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ Hathor headless wallet documentation is distributed over the following locations
1616
Documents in this directory:
1717

1818
- [Testing](testing.md)
19-
- [QA](QA.md)
2019
- [Feature: multi-signature wallets](multisig-wallets.md)
2120
- [Feature: atomic swaps](atomic-swaps.md)
2221
- [Feature: plugins](plugins.md)
2322
- [Feature: Fireblocks](fireblocks.md)
24-
- [Feature: HSM](hsm.md)
23+
- [Feature: HSM](hsm.md)

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hathor-wallet-headless",
3-
"version": "0.36.0-rc.1",
3+
"version": "0.36.0",
44
"description": "Hathor Wallet Headless, i.e., without graphical user interface",
55
"main": "index.js",
66
"engines": {
@@ -10,7 +10,7 @@
1010
"dependencies": {
1111
"@dinamonetworks/hsm-dinamo": "4.9.1",
1212
"@hathor/healthcheck-lib": "0.1.0",
13-
"@hathor/wallet-lib": "2.5.1",
13+
"@hathor/wallet-lib": "2.8.2",
1414
"axios": "1.7.7",
1515
"express": "4.18.2",
1616
"express-validator": "6.10.0",

0 commit comments

Comments
 (0)