Body:
Category: Smart Contract - Refactor
Priority: Medium
Estimated Time: 2 hours
Description:
Both lib.rs files mix type definitions, storage keys, contract logic, and tests in a single file. Split into modules for maintainability.
Tasks:
- Create
types.rs for structs and enums
- Create
errors.rs for ContractError
- Move test module to
tests.rs
- Update
lib.rs to declare modules
Body:
Category: Smart Contract - Refactor
Priority: Medium
Estimated Time: 2 hours
Description:
Both
lib.rsfiles mix type definitions, storage keys, contract logic, and tests in a single file. Split into modules for maintainability.Tasks:
types.rsfor structs and enumserrors.rsforContractErrortests.rslib.rsto declare modules