Superform v1
  • Introduction
  • Components
    • Protocol
    • Keepers
    • API
    • App
  • E2E Flows
    • Same-chain Deposit
    • Cross-chain Deposit
    • Same-chain Withdrawal
    • Cross-chain Withdrawal
  • Periphery Contracts
    • SuperformRouter
      • SuperformRouterPlus
      • SuperformRouterPlusAsync
    • PayMaster
    • PaymentHelper
    • EmergencyQueue
    • SuperformFactory
    • Forms
      • ERC4626Form
      • ERC5115Form
      • ERC7540Form
    • SuperPositions
      • ERC1155A
    • RewardsDistributor
  • Core Contracts
    • State Registries
      • CoreStateRegistry
      • AsyncStateRegistry
      • PayloadHelper
    • AMB Implementations
      • LayerzeroImplementation
      • LayerzeroV2Implementation
      • WormholeARImplementation
      • HyperlaneImplementation
      • AxelarImplementation
    • Broadcasting
      • BroadcastRegistry
      • WormholeSRImplementation
    • Bridge Validators
      • LiFiValidator
      • SocketValidator
      • SocketOneInchValidator
      • DebridgeValidator (and forwarder)
      • OneInchValidator
    • DstSwapper
    • Settings
      • SuperRBAC
      • SuperRegistry
  • SuperVaults
    • SuperVaults
  • Resources
    • Deployment Addresses
    • Subgraphs
      • Protocol Level Entities
      • Form Related Entities
      • Deposits and Withdrawals
      • SuperPosition Events
      • External Entities
    • Infrastructure Integrations
    • Security & Audits
    • Protocol License
    • Glossary
    • Protocol Multisig
    • Superform Labs Socials
Powered by GitBook
On this page
  • Introduction
  • Core Concepts
  • TransferSingle
  • TransferBatch

Was this helpful?

  1. Resources
  2. Subgraphs

SuperPosition Events

Introduction

These queries keep track of the transfers taking place for SuperPostions which represent mint and burn actions.

Core Concepts

TransferSingle

These represent the transfer of single type of SuperPositions from one address to another and can be queried using-

{
  transferSingle(id:"0x39ded18f629cb43a7f1ead4365a68137fabddf3f3e72cdda451a7932a4914c63"){
    operator
    from
    to
    superPositionID
    transactionHash
    value
    blockNumber
    blockTimestamp
  }
}

The fields of TransferSingle are as follows-

  1. operator- User which triggered the transfer and for burn and mint this can be considered as the msg.sender

  2. from- Address from which transfer is done

  3. to- Address to which transfer is done

  4. superPositionID- Superposition ID for which the transfer is done. This also happens to be the superform IDs for which Mint or Burn has been done.

  5. value- Value of superpositions that were transferred for the transaction

TransferBatch

These represent the transfer of multiple type of SuperPositions from one address to another and can be queried using-

{
  transferBatches(first:5){
    operator
    from
    to
    superPositionsID
    transactionHash
    values
    blockTimestamp
    blockNumber
  }
}

The fields of TransferBatch are as follows-

  1. operator- User which triggered the transfer and for burn and mint this can be considered as the msg.sender

  2. from- Address from which transfer is done

  3. to- Address to which transfer is done

  4. superPositionsId- List of Superposition IDs for which the transfer is done. This also happens to be the superform IDs for which Mint or Burn has been done.

  5. value- Values of superpositions that were transferred for the transaction for the various superforms

  6. blockNumber- Block in which the transfer was done

Last updated 9 months ago

Was this helpful?