Skip to content

[contracts] Add SEP-41 compliance test suite that all token contracts must pass #1032

Description

@CelestinaBeing

Context

Every SEP-41 token in contracts/ should pass a standard compliance test suite. Currently tests are per-contract and not standardized.

Work

  • Create contracts/test-support/sep41_compliance.rs with tests for all SEP-41 functions
  • The test suite takes a generic contract type and runs all compliance checks
  • Apply to all token contracts: deposit-withdraw, flashloan-token, amm-pool LP tokens
  • Add to CI as cargo test -p sep41-compliance

Acceptance criteria

  • Compliance suite runs against 3+ contracts
  • Any SEP-41 function deviation causes test failure
  • CI job added

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

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