Skip to content

Define core data types for Groups and Members #55

Description

@Akshola00

Description

Define core Rust structs and data types for representing payroll groups and members in the contract state.

Implement data types in src/base/types.rs.

Relevant files:

  • contract/src/base/types.rs

Acceptance Criteria

  • Create Group struct with: id, creator, token, created_at, member_count
  • Create Member struct with: address, percentage, joined_at
  • Create GroupMember struct combining Group and Member data
  • All structs implement Serialize/Deserialize traits (Soroban compatible)
  • Structs include proper type annotations and documentation comments
  • Types are exported for use in contract functions
  • Relevant contract tests are written
  • All contract tests pass
  • Contract code builds successfully
  • Contract code is properly formatted

Dependencies

None

Additional Notes

  • Use Soroban SDK types where applicable (Symbol, Address, u128, etc.)
  • Add doc comments explaining each field

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third CampaigncontractSmart Contract (Soroban/Rust)entry-levelEntry-level difficultytypesData types and structures

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions