Skip to content

[P1] Scaffold Soroban smart contract workspace #10

@Obiajulu-gif

Description

@Obiajulu-gif

Priority

P1

Difficulty

Advanced

Task

Create an initial Soroban contract workspace for ChainMove pool ownership and repayment features.

Suggested folder

contracts/chainmove-pool/

Expected contract scaffold

Include placeholder functions for:

  • creating a pool
  • recording an investment
  • recording a repayment
  • reading pool data
  • reading investor position

Acceptance criteria

  • Contract workspace exists.
  • Contract compiles locally.
  • README added inside the contract folder.
  • Unit tests cover the placeholder functions.
  • Contract is clearly marked as prototype/testnet work.

Test requirement

Add Rust/Soroban tests for creating a pool, recording an investment, recording a repayment, querying pool state, and rejecting invalid input.

Evidence required

  • Screenshot of cargo test passing.
  • Screenshot of contract folder structure.
  • Screenshot of generated build output if available.

Commands

cargo test
npm run lint
npm run build

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official Campaign

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions