Anchor integration tests
23passing on local validatorThe current Velora backend has been checked through Anchor integration tests, Rust unit coverage, a code-derived security checklist, and a devnet smoke test after redeployment.
Rust unit tests
13pure contract logicRust line coverage
91.52%cargo llvm-covDevnet smoke test
Passedpost-deploy verificationSecurity checklist
- Signer authority checks across create, withdraw, milestone release, and cancel.
- PDA seed uniqueness for stream configuration and token vault custody.
- Checked arithmetic for vesting, claimed amounts, unlocked amounts, and cancellation splits.
- Token account owner and mint validation before vault transfers.
- Reentrancy risk reviewed against Solana atomic execution and SPL Token CPI boundaries.
Integration coverage
- create_stream locks tokens in the PDA vault
- withdraw rejects unavailable claims
- cliff and cliff-linear boundary behavior
- partial, full, and repeated withdrawal paths
- milestone release and expiry checks
- cancel before cliff, mid-stream, after full vest, and already-cancelled states
- non-cancellable, neither-authority, and either-authority cancellation rules
Fixed and deployed
Cancellation authority is enforced on-chain.
Week 7 review found that stream cancellation settings were stored but not fully enforced by the on-chain cancel instruction. The deployed program now rejects non-cancellable streams, rejects neither-authority cancellation, and allows recipient cancellation only when the stream uses either-authority rules.
Devnet smoke evidence
- Non-cancellable stream rejected cancel with CancellationDisabled.
- CancelAuthority::Neither rejected cancel with Unauthorized.
- CancelAuthority::Either allowed recipient cancellation.
- Cancelled vault ended at zero after locked tokens returned correctly.
Deployment evidence
- Program id
- Fwboky3ufxoT43egazAymFmjyAtJVDJLVJs977oLSN4V
- Deploy signature
- 278UTLxQtV54qDWJMj8N7RYgDnWBKpz67yDjRFxVzdFQAiVVGSTSXbTpr98YPeinA8FQmTy5k3kPWxrAvvjuz28b
- IDL account
- 4eTqNL3oeBeh42APfXHFbdu28BSZJWpAsQ9EaCJ79KGe