Skip to content
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

add event Index to pool transactions #497

Merged
merged 1 commit into from
Jul 26, 2022

Conversation

alexcos20
Copy link
Member

@alexcos20 alexcos20 commented Jul 25, 2022

Changes proposed in this PR:

  • add event index to pool transactions, so we can track multiple pool events in one tx

Query example:

query{
 poolTransactions{
  id,
  tx
  type
  eventIndex
}
}

Result:

{
  "data": {
    "poolTransactions": [
      {
        "id": "0x00128a5bbb7ca28de2f28ab78d6c4d2a3b8dfef1f1f9f65545a295903cec3e32-283",
        "tx": "0x00128a5bbb7ca28de2f28ab78d6c4d2a3b8dfef1f1f9f65545a295903cec3e32",
        "type": "EXIT",
        "eventIndex": "283"
      },
      {
        "id": "0x00128a5bbb7ca28de2f28ab78d6c4d2a3b8dfef1f1f9f65545a295903cec3e32-285",
        "tx": "0x00128a5bbb7ca28de2f28ab78d6c4d2a3b8dfef1f1f9f65545a295903cec3e32",
        "type": "EXIT",
        "eventIndex": "285"
      },
      {
        "id": "0x00128a5bbb7ca28de2f28ab78d6c4d2a3b8dfef1f1f9f65545a295903cec3e32-286",
        "tx": "0x00128a5bbb7ca28de2f28ab78d6c4d2a3b8dfef1f1f9f65545a295903cec3e32",
        "type": "SWAP",
        "eventIndex": "286"
      },
      {
        "id": "0x00128a5bbb7ca28de2f28ab78d6c4d2a3b8dfef1f1f9f65545a295903cec3e32-287",
        "tx": "0x00128a5bbb7ca28de2f28ab78d6c4d2a3b8dfef1f1f9f65545a295903cec3e32",
        "type": "SWAP",
        "eventIndex": "287"
      },
      {
        "id": "0x00128a5bbb7ca28de2f28ab78d6c4d2a3b8dfef1f1f9f65545a295903cec3e32-290",
        "tx": "0x00128a5bbb7ca28de2f28ab78d6c4d2a3b8dfef1f1f9f65545a295903cec3e32",
        "type": "SWAP",
        "eventIndex": "290"
      },
      {
        "id": "0x00128a5bbb7ca28de2f28ab78d6c4d2a3b8dfef1f1f9f65545a295903cec3e32-291",
        "tx": "0x00128a5bbb7ca28de2f28ab78d6c4d2a3b8dfef1f1f9f65545a295903cec3e32",
        "type": "SWAP",
        "eventIndex": "291"
      },
      ....
}

@alexcos20 alexcos20 self-assigned this Jul 25, 2022
Copy link
Member

@jamiehewitt15 jamiehewitt15 left a comment

Choose a reason for hiding this comment

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

Looks good to me

@alexcos20 alexcos20 merged commit e7cb995 into main Jul 26, 2022
@alexcos20 alexcos20 deleted the feature/pool_transaction_logIndex branch July 26, 2022 09:04
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