Skip to content

Wallet interoperability: bounded sync and portable recovery (#544) - #569

Draft
ty-everett wants to merge 386 commits into
mainfrom
codex/wallet-sync-interop-reliability
Draft

ty-everett wants to merge 386 commits into
mainfrom
codex/wallet-sync-interop-reliability

Merge main: preserve single-layer internalize metadata

fbcdbdf
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Oct 13, 2026 in 5m 58s

Quality Gate failed

Failed conditions
5.4% Duplication on New Code (required ≤ 3%)
C Security Rating on New Code (required ≥ A)
D Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 17 in packages/wallet/wallet-toolbox/src/storage/portable/Brc38StagingCleanupError.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Consider using 'await' for the promise inside this 'try' or replace it with 'Promise.prototype.catch(...)' usage.

See more on https://sonarcloud.io/project/issues?id=bsv-blockchain_ts-stack&issues=AaExP8NOm5nztHJVpux_&open=AaExP8NOm5nztHJVpux_&pullRequest=569

Check warning on line 302 in packages/wallet/wallet-toolbox/src/storage/StorageIdb.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer using an optional chain expression instead, as it's more concise and easier to read.

See more on https://sonarcloud.io/project/issues?id=bsv-blockchain_ts-stack&issues=AaExP-POm5nztHJVpvcL&open=AaExP-POm5nztHJVpvcL&pullRequest=569

Check warning on line 683 in packages/wallet/wallet-toolbox/src/storage/idbPackedConnection.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected `await` inside a loop.

See more on https://sonarcloud.io/project/issues?id=bsv-blockchain_ts-stack&issues=AaExP-MYm5nztHJVpvbo&open=AaExP-MYm5nztHJVpvbo&pullRequest=569

Check warning on line 39 in packages/wallet/wallet-toolbox/src/storage/portable/Brc38PrivateNativeMergeRunnerNode.case.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=bsv-blockchain_ts-stack&issues=AaExP8fjm5nztHJVpu6p&open=AaExP8fjm5nztHJVpu6p&pullRequest=569

Check warning on line 284 in packages/wallet/wallet-toolbox/src/storage/portable/Brc38PrivateSelectedFieldInventoryNode.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `String#codePointAt()` over `String#charCodeAt()`.

See more on https://sonarcloud.io/project/issues?id=bsv-blockchain_ts-stack&issues=AaExP8wzm5nztHJVpvDK&open=AaExP8wzm5nztHJVpvDK&pullRequest=569

Check warning on line 1122 in packages/wallet/wallet-toolbox/src/storage/snapshot/IdbSnapshotSyncJournal.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected `await` inside a loop.

See more on https://sonarcloud.io/project/issues?id=bsv-blockchain_ts-stack&issues=AaExP9sVm5nztHJVpvWP&open=AaExP9sVm5nztHJVpvWP&pullRequest=569

Check warning on line 492 in packages/wallet/wallet-toolbox/src/storage/snapshot/journal/SnapshotJournalDestinationSchema.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected `await` inside a loop.

See more on https://sonarcloud.io/project/issues?id=bsv-blockchain_ts-stack&issues=AaExP9c0m5nztHJVpvQb&open=AaExP9c0m5nztHJVpvQb&pullRequest=569

Check warning on line 98 in packages/wallet/wallet-toolbox/src/storage/portable/Brc38PrivateRequestInventoryNode.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=bsv-blockchain_ts-stack&issues=AaExP8sSm5nztHJVpvAL&open=AaExP8sSm5nztHJVpvAL&pullRequest=569

Check warning on line 183 in packages/wallet/wallet-toolbox/src/storage/portable/Brc39OwnedBrowserEnvelope.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

The catch parameter `failure` should be named `error_`.

See more on https://sonarcloud.io/project/issues?id=bsv-blockchain_ts-stack&issues=AaExP8pDm5nztHJVpu--&open=AaExP8pDm5nztHJVpu--&pullRequest=569

Check warning on line 125 in packages/wallet/wallet-toolbox/src/storage/snapshot/journal/SnapshotJournalSharedQuota.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=bsv-blockchain_ts-stack&issues=AaExP9aAm5nztHJVpvPo&open=AaExP9aAm5nztHJVpvPo&pullRequest=569

Check warning on line 205 in packages/wallet/wallet-toolbox/src/storage/snapshot/IdbSnapshotSyncProvenTxReqs.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected `await` inside a loop.

See more on https://sonarcloud.io/project/issues?id=bsv-blockchain_ts-stack&issues=AaExP9n5m5nztHJVpvTS&open=AaExP9n5m5nztHJVpvTS&pullRequest=569

Check warning on line 945 in packages/wallet/wallet-toolbox/src/storage/portable/Brc38KnexSource.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected `await` inside a loop.

See more on https://sonarcloud.io/project/issues?id=bsv-blockchain_ts-stack&issues=AaExP89km5nztHJVpvI9&open=AaExP89km5nztHJVpvI9&pullRequest=569

Check warning on line 91 in packages/wallet/wallet-toolbox/src/storage/portable/Brc38PrivateLocalPackedRowWriterNode.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use concise character class syntax '\w' instead of '[A-Za-z0-9_]'.

See more on https://sonarcloud.io/project/issues?id=bsv-blockchain_ts-stack&issues=AaExP8gRm5nztHJVpu6w&open=AaExP8gRm5nztHJVpu6w&pullRequest=569

Check warning on line 3 in packages/wallet/wallet-toolbox/src/storage/snapshot/KnexSnapshotSyncDestination.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'../portable/Brc38NativePackedSchemaNode' imported multiple times.

See more on https://sonarcloud.io/project/issues?id=bsv-blockchain_ts-stack&issues=AaExP9mkm5nztHJVpvSo&open=AaExP9mkm5nztHJVpvSo&pullRequest=569

Check warning on line 204 in packages/wallet/wallet-toolbox/tools/Brc38NativeCandidateBuild.cjs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected `await` inside a loop.

See more on https://sonarcloud.io/project/issues?id=bsv-blockchain_ts-stack&issues=AaExP-j0m5nztHJVpveW&open=AaExP-j0m5nztHJVpveW&pullRequest=569

Check warning on line 11 in packages/wallet/wallet-toolbox/src/storage/portable/Brc38ImportStructuredEntityRestoreNode.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'./Brc38NativePackedFieldsNode' imported multiple times.

See more on https://sonarcloud.io/project/issues?id=bsv-blockchain_ts-stack&issues=AaExP8a_m5nztHJVpu35&open=AaExP8a_m5nztHJVpu35&pullRequest=569

Check failure on line 37 in packages/wallet/wallet-toolbox/src/storage/snapshot/journal/SnapshotJournalWindowCleanup.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this use of the "void" operator.

See more on https://sonarcloud.io/project/issues?id=bsv-blockchain_ts-stack&issues=AaExP9Yxm5nztHJVpvPK&open=AaExP9Yxm5nztHJVpvPK&pullRequest=569

Check warning on line 311 in packages/wallet/wallet-toolbox/src/storage/portable/Brc38IdbRestoreInventory.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected `await` inside a loop.

See more on https://sonarcloud.io/project/issues?id=bsv-blockchain_ts-stack&issues=AaExP8F9m5nztHJVputp&open=AaExP8F9m5nztHJVputp&pullRequest=569

Check warning on line 667 in packages/wallet/wallet-toolbox/src/storage/portable/Brc38PrivateRequestInventoryNode.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected `await` inside a loop.

See more on https://sonarcloud.io/project/issues?id=bsv-blockchain_ts-stack&issues=AaExP8sSm5nztHJVpvAc&open=AaExP8sSm5nztHJVpvAc&pullRequest=569

Check failure on line 190 in packages/wallet/wallet-toolbox/src/storage/portable/Brc38ImportActionMergeNode.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 73 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=bsv-blockchain_ts-stack&issues=AaExP87cm5nztHJVpvHY&open=AaExP87cm5nztHJVpvHY&pullRequest=569

Check warning on line 195 in packages/wallet/wallet-toolbox/src/storage/portable/Brc38PrivateOutputInventoryNode.case.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected `await` inside a loop.

See more on https://sonarcloud.io/project/issues?id=bsv-blockchain_ts-stack&issues=AaExP8i7m5nztHJVpu7-&open=AaExP8i7m5nztHJVpu7-&pullRequest=569

Check warning on line 281 in packages/wallet/wallet-toolbox/src/storage/portable/Brc38StreamedNativeInventoryNode.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Async function 'inlineText' has too many parameters (9). Maximum allowed is 7.

See more on https://sonarcloud.io/project/issues?id=bsv-blockchain_ts-stack&issues=AaExP814m5nztHJVpvFU&open=AaExP814m5nztHJVpvFU&pullRequest=569

Check warning on line 196 in packages/wallet/wallet-toolbox/src/storage/snapshot/writeNativeSnapshotSyncRowNode.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=bsv-blockchain_ts-stack&issues=AaExP9tim5nztHJVpvWs&open=AaExP9tim5nztHJVpvWs&pullRequest=569

Check warning on line 296 in packages/wallet/wallet-toolbox/src/storage/portable/Brc38SqlStructuredStaging.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer using an optional chain expression instead, as it's more concise and easier to read.

See more on https://sonarcloud.io/project/issues?id=bsv-blockchain_ts-stack&issues=AaExP8iqm5nztHJVpu7r&open=AaExP8iqm5nztHJVpu7r&pullRequest=569

Check warning on line 100 in packages/wallet/wallet-toolbox/src/storage/snapshot/IdbSnapshotSyncActions.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected `await` inside a loop.

See more on https://sonarcloud.io/project/issues?id=bsv-blockchain_ts-stack&issues=AaExP9r_m5nztHJVpvVx&open=AaExP9r_m5nztHJVpvVx&pullRequest=569