Skip to content

v2.1.0

Choose a tag to compare

@qwe638853 qwe638853 released this 14 May 11:19
· 46 commits to master since this release
c23634e

Breaking changes:

  • GET / POST blockchain/wallets/:wallet_id/accounts/metadata is removed;
    range read is now GET blockchain/wallets/:wallet_id/accounts?start=N&end=M
    (same behaviour: both params required, span ≤ 10 000, all indices must exist)

New features:

  • Batch account creation — POST .../accounts/batch count=N derives up to 10 000
    accounts in a single request; the entire batch is rejected upfront if any index
    would exceed the BIP-44 maximum (2147483647), so no partial writes for
    out-of-range batches
  • Per-wallet atomic counter — ethereumBackend holds a sync.Map of per-wallet
    mutex locks; counter read-increment-write is fully serialised within the active
    Vault node, preventing duplicate index assignment under concurrent requests
  • Range read on collection endpoint — GET .../accounts?start=N&end=M replaces
    the dedicated /metadata path; vault read and HTTP GET with query params
    both work

Bug fixes:

  • start / end values beyond 2147483647 now return a clear validation error
    instead of silently wrapping

Other:

  • Unit tests: partial-write self-heal, UpdateOperation routing, _missingStart
    / _missingEnd Method-A validation matrix, path registration assertions for
    ReadOperation on accounts/?
  • E2E smoke test extended with range-read step (vault read .../accounts start=2 end=3)