Skip to content

Create mock token contract for testing#29

Merged
meshackyaro merged 2 commits into
mainfrom
feat/mock-token-contract
Jun 22, 2026
Merged

Create mock token contract for testing#29
meshackyaro merged 2 commits into
mainfrom
feat/mock-token-contract

Conversation

@meshackyaro

Copy link
Copy Markdown
Contributor

Description

This PR implements a mock token contract for testing USDC transfers in the TrustFlow escrow system.

Changes

  • Created a basic SAC (Stellar Asset Contract) compliant token
  • Implemented core functions: initialize, mint, transfer, balance
  • Added metadata support (name, symbol, decimals)
  • Included comprehensive unit tests
  • Updated CI workflow to build the mock token

Testing

All tests pass:

  • initialize test
  • mint and balance test
  • transfer test
  • insufficient balance error test

Closes

Closes #12

- Implemented basic SAC (Stellar Asset Contract) compliant token
- Supports initialize, mint, transfer, and balance operations
- Includes metadata (name, symbol, decimals)
- Added comprehensive unit tests
- Designed for testing USDC-like transfers in escrow flows

Resolves #12
@meshackyaro meshackyaro self-assigned this Jun 22, 2026
@meshackyaro meshackyaro mentioned this pull request Jun 22, 2026
10 tasks
@meshackyaro meshackyaro merged commit 17f1037 into main Jun 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create Mock Token for Testing

1 participant