Skip to content

REPLICA · NOT AN EMPLOYER REPO

Policy-controlled wallet

A simulated wallet with an approval limit and a person who can stop a payment. Tests start red. Edit the service, then run. The preview calls that same process. No wallet, no chain, no employer exam.

BCL-256 · wallet-policy-service · local replica

Send 200. Block anything over 500. A stopper halts the next send. Blocked amounts must not land in spent.

FAIL send over 500 is blocked2 failed · 1 passed

Where to look

Before you add to spent, return ok:false when hold is true or amount is greater than 500.

Client of your service. Same process as the tests.

Spent0
Limit500
0500800

$ npm test · wallet-policy-service

  • PASSsend under the limit posts
  • FAILsend over 500 is blockedspent became 800
  • FAILstopper blocks a sendspent became 850

Seats that use this task

All test tasks