Transaction
Last modified:
Entity capturing CenturionDEX transaction details with a list of mint, burn, swap, flash and collects events emitted within a transaction.
Schema
| Field | Type | derivedFrom | Description |
|---|---|---|---|
| id | ID! | Transaction Hash | |
| blockNumber | BigInt! | Block Number where the transaction was added to the chain | |
| timestamp | BigInt! | Timestamp of the block where the transaction was added to the chain | |
| gasUsed | BigInt! | Amount of Gas Units Consumed to execute the transaction | |
| gasPrice | BigInt! | Cost of one unit Gas paid for the transaction | |
| mints | [Mint]! | @derivedFrom(field: "transaction") | Mint entities created in this transaction |
| burns | [Burn]! | @derivedFrom(field: "transaction") | Burn entities created in this transaction |
| swaps | [Swap]! | @derivedFrom(field: "transaction") | Swap entities created in this transaction |
| flashed | [Flash]! | @derivedFrom(field: "transaction") | Flash entities created in this transaction |
| collects | [Collect]! | @derivedFrom(field: "transaction") | Collect entities created in this transaction |
Referencing Functions
| FunctionName | Create | Read | Update | Save |
|---|---|---|---|---|
| loadTransaction() | ||||
| handleMint() | ||||
| handleBurn() | ||||
| handleSwap() | ||||
| getPosition() | ||||
| savePositionSnapshot() |