Skip to content

Conversation

@aditya1702
Copy link
Contributor

What

Add setup and fixtures to test the balances feature end to end. The following is added:

  • Deploy USDC and EURC test SAC contracts
  • Use example wasm code to deploy a test contract that will be used to hold some balances
  • Use a SEP41 token wasm code to deploy SEP41 tokens
  • Generate test transactions that transfer these tokens between G and C addresses

Why

Part of the account balances milestone: https://github.com/stellar/wallet-backend/milestone/13

Known limitations

N/A

Issue that this PR addresses

Closes #366

@aditya1702 aditya1702 changed the base branch from main to graphql-balances-resolver November 13, 2025 20:53
@aditya1702 aditya1702 marked this pull request as ready for review November 13, 2025 23:31
// TestCheckpoint_HolderContract_HasInitialBalances verifies that the holder contract
// has the expected initial balances from checkpoint setup:
// - USDC SAC tokens (200)
// - SEP-41 contract tokens (300)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: looks like the balance is actually 500

@@ -0,0 +1,298 @@
// Account Balance Integration Tests
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this suite include tests for balances of 0?

@aditya1702 aditya1702 requested a review from a team November 14, 2025 18:15
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.

Add comprehensive integration test suite for account balances

3 participants