Skip to content

Refactor: split lib.rs into types, errors, and contract modules #85

@henrypeters

Description

@henrypeters

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions