- Read existing admin enforcement implementation (
src/shared_admin.rs). - Identify contracts using single admin gating (asset_factory, rwa_token, compliance_registry, dividend_distributor).
- Implement threshold-based multi-owner governance module.
- Store owners + threshold in contract instance storage.
- Provide
propose/approve/execute(optionally timelock).
- Replace
require_admin/assert_adminpaths in:-
src/asset_factory.rs -
src/rwa_token.rs -
src/compliance_registry.rs -
src/dividend_distributor.rs
-
- Decide storage compatibility strategy and implement
migrateupdates.
- Add/adjust unit tests to cover:
- single-owner cannot execute
- threshold approvals can execute
- Run
cargo testand ensure build/test passes.