Skip to content

Add Token Transfer Processor #195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 36 commits into
base: indexer
Choose a base branch
from
Open

Add Token Transfer Processor #195

wants to merge 36 commits into from

Conversation

aditya1702
Copy link
Contributor

@aditya1702 aditya1702 commented Jun 13, 2025

What

Add a token transfer processor that uses the corresponding ttp processor to extract debit/credit events. Once the events are extracted, the processor generates state changes with the appropriate information (account ID, operation ID, tx hash, claimable balance ID etc....).

Note: only DEBIT, CREDIT, MINT and BURN state changes are generated.

The following operations are processed:

  • CreateAccount
  • AccountMerge
  • Payment
  • CreateClaimableBalance
  • ClaimClaimableBalance
  • Clawback, ClawbackClaimableBalance
  • LiquidityPoolDeposit, LiquidityPoolWithdraw
  • PathPaymentStrictSend, PathPaymentStrictReceive
  • ManageBuyOffer, ManageSellOffer
  • InvokeHostFunction (SEP-41)

The unit tests build a transaction for each case and asserts the proper creation of transfer events.

Why

Part of the state change indexer work

Known limitations

N/A

Issue that this PR addresses

Closes #194

Checklist

PR Structure

  • It is not possible to break this PR down into smaller PRs.
  • This PR does not mix refactoring changes with feature changes.
  • This PR's title starts with name of package that is most changed in the PR, or all if the changes are broad or impact many packages.

Thoroughness

  • This PR adds tests for the new functionality or fixes.
  • All updated queries have been tested (refer to this check if the data set returned by the updated query is expected to be same as the original one).

Release

  • This is not a breaking change.
  • This is ready to be tested in development.
  • The new functionality is gated with a feature flag if this is not ready for production.

@aditya1702 aditya1702 changed the base branch from main to indexer June 13, 2025 21:18
@aditya1702 aditya1702 changed the title Add Token Transfer Processor [WIP] Add Token Transfer Processor Jun 13, 2025
Copy link
Collaborator

@marcelosalloum marcelosalloum left a comment

Choose a reason for hiding this comment

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

Looking great so far 👏

@aditya1702 aditya1702 marked this pull request as ready for review June 23, 2025 18:36
@aditya1702 aditya1702 changed the title [WIP] Add Token Transfer Processor Add Token Transfer Processor Jun 23, 2025
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.

2 participants