Skip to content

REPLICA · NOT AN EMPLOYER REPO

Controlled asset registry

A local registry with roles, a pause, and tests. Synthetic assets only. Tests start red. Edit the service, then run. The preview calls that same process. No wallet, no chain, no employer exam.

BCL-184 · registry-service · local replica

A paused registry must revert a transfer. Balances stay put. After unpause, 100 posts once.

FAIL paused transfer reverts1 failed · 2 passed

Where to look

In transfer(), return early when paused is true. Do not change treasury or ops on that path.

Client of your service. Same process as the tests.

Treasury1000
Paused
Ops0

$ npm test · registry-service

  • PASSpause is observable
  • FAILpaused transfer revertstransfer returned {"ok":true,"error":null,"treasury":900,"ops":100,"paused":true} and state is {"paused":true,"treasury":900,"ops":100}
  • PASSunpaused transfer posts 100 once

Seats that use this task

All test tasks