Component: Contracts (All) | Effort: 5-7 days | Priority: HIGH
Current State
Contracts exist independently. No cross-contract integration functions.
Missing Functions
Cross-contract integration:
InheritanceContract::get_lending_contract() - Get lending contract address
InheritanceContract::set_lending_contract() - Set lending contract (admin)
InheritanceContract::get_governance_contract() - Get governance contract
LendingContract::get_inheritance_contract() - Get inheritance contract
LendingContract::verify_plan_ownership() - Verify caller owns plan
GovernanceContract::get_controlled_contracts() - List contracts under governance
GovernanceContract::execute_on_contract() - Execute governance decision on contract
Why This Matters
- Integration: Contracts need to communicate
- Security: Verify cross-contract calls
- Governance: Governance contract controls other contracts
- Functionality: Lending needs to verify plan ownership
Tasks
Acceptance Criteria
- Contracts can reference each other
- Cross-contract calls work securely
- Governance can control other contracts
- Ownership verification works
- Tests cover integration scenarios
- Documentation explains architecture
Component: Contracts (All) | Effort: 5-7 days | Priority: HIGH
Current State
Contracts exist independently. No cross-contract integration functions.
Missing Functions
Cross-contract integration:
InheritanceContract::get_lending_contract()- Get lending contract addressInheritanceContract::set_lending_contract()- Set lending contract (admin)InheritanceContract::get_governance_contract()- Get governance contractLendingContract::get_inheritance_contract()- Get inheritance contractLendingContract::verify_plan_ownership()- Verify caller owns planGovernanceContract::get_controlled_contracts()- List contracts under governanceGovernanceContract::execute_on_contract()- Execute governance decision on contractWhy This Matters
Tasks
set_lending_contract()in InheritanceContractset_inheritance_contract()in LendingContractset_governance_contract()in all contractsverify_plan_ownership()in LendingContractexecute_on_contract()in GovernanceContractAcceptance Criteria