@ledgerhq/coin-tester-bitcoin 1.2.0-nightly.20251108023448 → 1.2.0-nightly.20251111023817
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -7
- package/lib/src/scenarii/bitcoin.d.ts.map +1 -1
- package/lib/src/scenarii/bitcoin.js +5 -0
- package/lib/src/scenarii/bitcoin.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib-es/src/scenarii/bitcoin.d.ts.map +1 -1
- package/lib-es/src/scenarii/bitcoin.js +5 -0
- package/lib-es/src/scenarii/bitcoin.js.map +1 -1
- package/lib-es/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/scenarii/bitcoin.ts +7 -0
- package/src/scenarii.test.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/coin-tester-bitcoin",
|
|
3
|
-
"version": "1.2.0-nightly.
|
|
3
|
+
"version": "1.2.0-nightly.20251111023817",
|
|
4
4
|
"description": "Ledger BTC Coin Tester",
|
|
5
5
|
"main": "src/scenarii.test.ts",
|
|
6
6
|
"keywords": [
|
|
@@ -48,15 +48,15 @@
|
|
|
48
48
|
"bignumber.js": "^9.1.2",
|
|
49
49
|
"bitcoin-core": "^5.0.0",
|
|
50
50
|
"docker-compose": "^1.1.0",
|
|
51
|
-
"@ledgerhq/coin-bitcoin": "^0.25.0-nightly.
|
|
52
|
-
"@ledgerhq/coin-framework": "^6.9.0-nightly.
|
|
53
|
-
"@ledgerhq/coin-tester": "^0.12.0-nightly.
|
|
54
|
-
"@ledgerhq/cryptoassets": "^13.33.0-nightly.
|
|
51
|
+
"@ledgerhq/coin-bitcoin": "^0.25.0-nightly.20251111023817",
|
|
52
|
+
"@ledgerhq/coin-framework": "^6.9.0-nightly.20251111023817",
|
|
53
|
+
"@ledgerhq/coin-tester": "^0.12.0-nightly.20251111023817",
|
|
54
|
+
"@ledgerhq/cryptoassets": "^13.33.0-nightly.20251111023817",
|
|
55
55
|
"@ledgerhq/live-config": "^3.2.0",
|
|
56
|
-
"@ledgerhq/live-network": "^2.1.
|
|
56
|
+
"@ledgerhq/live-network": "^2.1.1-nightly.20251111023817",
|
|
57
|
+
"@ledgerhq/hw-app-btc": "^10.12.0",
|
|
57
58
|
"@ledgerhq/types-cryptoassets": "^7.30.0",
|
|
58
|
-
"@ledgerhq/types-live": "^6.89.0-nightly.
|
|
59
|
-
"@ledgerhq/hw-app-btc": "^10.12.0"
|
|
59
|
+
"@ledgerhq/types-live": "^6.89.0-nightly.20251111023817"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/jest": "^29.5.10",
|
package/src/scenarii/bitcoin.ts
CHANGED
|
@@ -237,6 +237,9 @@ const makeInternalScenarioTransactions = async () => {
|
|
|
237
237
|
const mempool = await getRawMempool();
|
|
238
238
|
expect(mempool.includes(txId)).toBe(false);
|
|
239
239
|
expect(mempool.includes(replacementTxid)).toBe(true);
|
|
240
|
+
|
|
241
|
+
// Ensure explorer is synced after replacement
|
|
242
|
+
await waitForExplorerSync();
|
|
240
243
|
},
|
|
241
244
|
};
|
|
242
245
|
const scenarioCancelBtcTransaction: BitcoinScenarioTransaction = {
|
|
@@ -254,6 +257,9 @@ const makeInternalScenarioTransactions = async () => {
|
|
|
254
257
|
const mempool = await getRawMempool();
|
|
255
258
|
expect(mempool.includes(txId)).toBe(false);
|
|
256
259
|
expect(mempool.includes(replacementTxid)).toBe(true);
|
|
260
|
+
|
|
261
|
+
// Ensure explorer is synced after cancellation
|
|
262
|
+
await waitForExplorerSync();
|
|
257
263
|
},
|
|
258
264
|
};
|
|
259
265
|
|
|
@@ -342,6 +348,7 @@ export const scenarioBitcoin: Scenario<BtcTransaction, BitcoinAccount> = {
|
|
|
342
348
|
await waitForExplorerSync();
|
|
343
349
|
},
|
|
344
350
|
afterAll: async account => {
|
|
351
|
+
await waitForExplorerSync();
|
|
345
352
|
expect(account.operations.length).toBeGreaterThanOrEqual(14);
|
|
346
353
|
},
|
|
347
354
|
beforeEach: async () => {
|
package/src/scenarii.test.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { scenarioBitcoin } from "./scenarii/bitcoin";
|
|
|
5
5
|
import { killAtlas } from "./atlas";
|
|
6
6
|
|
|
7
7
|
global.console = console;
|
|
8
|
-
jest.setTimeout(
|
|
8
|
+
jest.setTimeout(1_000_000);
|
|
9
9
|
|
|
10
10
|
describe("Bitcoin Deterministic Tester", () => {
|
|
11
11
|
it("scenario Bitcoin", async () => {
|