Commit 3f631fd
committed
feat: optional policy payout beneficiary + holder-only updates
- Policy.beneficiary Option<Address>; initiate_policy + set_beneficiary
- Payout to beneficiary.unwrap_or(holder); BeneficiaryUpdated events
- Tests: policy_beneficiary + initiate_policy/Claim fixture updates
- Backend: 9-arg golden vectors, BuildTransactionDto aligned with contract
- Frontend: policy detail page + beneficiary mismatch warning
- Remove obsolete tests/events.rs; fix duplicate contractimpl methods
Made-with: Cursor1 parent 3c90de3 commit 3f631fd
43 files changed
Lines changed: 865 additions & 525 deletions
File tree
- backend
- src
- dto
- policy
- dto
- quote/dto
- rpc
- soroban
- types
- tests
- contracts/niffyinsure
- src
- test_snapshots
- tests
- frontend/src
- app/policy/[id]
- lib/schemas
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
132 | 137 | | |
133 | 138 | | |
134 | 139 | | |
| |||
188 | 193 | | |
189 | 194 | | |
190 | 195 | | |
| 196 | + | |
191 | 197 | | |
192 | 198 | | |
193 | 199 | | |
0 commit comments