Skip to content

Commit 1785c6d

Browse files
committed
Merge branch 'listOutNegOffset'
2 parents 7e8c600 + 43f4c33 commit 1785c6d

File tree

15 files changed

+150
-57
lines changed

15 files changed

+150
-57
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,6 @@ backup-*.sqlite
3737
test/wallet/support/reqhistory.sqlite
3838

3939
node_modules
40+
src/services/chaintracker/chaintracks/__tests/*.sqlite
41+
src/services/chaintracker/chaintracks/__tests/data/*.sqlite
42+
src/services/chaintracker/chaintracks/__tests/data/export*

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
This document captures the history of significant changes to the wallet-toolbox repository. The git commit history contains the details but is unable to draw
44
attention to changes that materially alter behavior or extend functionality.
55

6+
## wallet-toolbox 1.5.21
7+
8+
- Add support for listOutputs with negative offsets. (Sorts newest first, offset -1 is newest output).
9+
610
## wallet-toolbox 1.5.10
711

812
- Add automatic request timeouts and deprioritization of postBeef services.

client/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.

client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bsv/wallet-toolbox-client",
3-
"version": "1.5.20",
3+
"version": "1.5.21",
44
"description": "Client only Wallet Storage",
55
"main": "./out/src/index.client.js",
66
"types": "./out/src/index.client.d.ts",
@@ -20,7 +20,7 @@
2020
},
2121
"homepage": "https://github.com/bsv-blockchain/wallet-toolbox#readme",
2222
"dependencies": {
23-
"@bsv/sdk": "^1.6.20",
23+
"@bsv/sdk": "^1.6.23",
2424
"idb": "^8.0.2"
2525
}
2626
}

docs/client.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5142,7 +5142,7 @@ export interface ValidListOutputsArgs extends ValidWalletSignerArgs {
51425142
includeTags: BooleanDefaultFalse;
51435143
includeLabels: BooleanDefaultFalse;
51445144
limit: PositiveIntegerDefault10Max10000;
5145-
offset: PositiveIntegerOrZero;
5145+
offset: number;
51465146
seekPermission: BooleanDefaultTrue;
51475147
knownTxids: string[];
51485148
}
@@ -13210,7 +13210,10 @@ Argument Details
1321013210
+ **args.limit**
1321113211
+ Optional limit on the number of outputs to return.
1321213212
+ **args.offset**
13213-
+ Optional. Number of outputs to skip before starting to return results.
13213+
+ If positive or zero: Number of outputs to skip before starting to return results, oldest first.
13214+
If negative: Outputs are returned newest first and offset of -1 is the newest output.
13215+
When using negative offsets, caution is required as new outputs may be added between calls,
13216+
potentially causing outputs to be duplicated across calls.
1321413217
+ **args.seekPermission**
1321513218
+ — Optional. Whether to seek permission from the user for this operation if required. Default true, will return an error rather than proceed if set to false.
1321613219

docs/wallet.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5141,7 +5141,7 @@ export interface ValidListOutputsArgs extends ValidWalletSignerArgs {
51415141
includeTags: BooleanDefaultFalse;
51425142
includeLabels: BooleanDefaultFalse;
51435143
limit: PositiveIntegerDefault10Max10000;
5144-
offset: PositiveIntegerOrZero;
5144+
offset: number;
51455145
seekPermission: BooleanDefaultTrue;
51465146
knownTxids: string[];
51475147
}
@@ -13209,7 +13209,10 @@ Argument Details
1320913209
+ **args.limit**
1321013210
+ Optional limit on the number of outputs to return.
1321113211
+ **args.offset**
13212-
+ Optional. Number of outputs to skip before starting to return results.
13212+
+ If positive or zero: Number of outputs to skip before starting to return results, oldest first.
13213+
If negative: Outputs are returned newest first and offset of -1 is the newest output.
13214+
When using negative offsets, caution is required as new outputs may be added between calls,
13215+
potentially causing outputs to be duplicated across calls.
1321313216
+ **args.seekPermission**
1321413217
+ — Optional. Whether to seek permission from the user for this operation if required. Default true, will return an error rather than proceed if set to false.
1321513218

mobile/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.

mobile/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bsv/wallet-toolbox-mobile",
3-
"version": "1.5.20",
3+
"version": "1.5.21",
44
"description": "Client only Wallet Storage",
55
"main": "./out/src/index.mobile.js",
66
"types": "./out/src/index.mobile.d.ts",
@@ -20,6 +20,6 @@
2020
},
2121
"homepage": "https://github.com/bsv-blockchain/wallet-toolbox#readme",
2222
"dependencies": {
23-
"@bsv/sdk": "^1.6.20"
23+
"@bsv/sdk": "^1.6.23"
2424
}
2525
}

package-lock.json

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bsv/wallet-toolbox",
3-
"version": "1.5.20",
3+
"version": "1.5.21",
44
"description": "BRC100 conforming wallet, wallet storage and wallet signer components",
55
"main": "./out/src/index.js",
66
"types": "./out/src/index.d.ts",
@@ -30,9 +30,9 @@
3030
},
3131
"homepage": "https://github.com/bsv-blockchain/wallet-toolbox#readme",
3232
"dependencies": {
33-
"@bsv/auth-express-middleware": "^1.2.2",
33+
"@bsv/auth-express-middleware": "^1.2.3",
3434
"@bsv/payment-express-middleware": "^1.2.3",
35-
"@bsv/sdk": "^1.6.20",
35+
"@bsv/sdk": "^1.6.23",
3636
"express": "^4.21.2",
3737
"idb": "^8.0.2",
3838
"knex": "^3.1.0",

0 commit comments

Comments
 (0)