Event Entity
Description
Represents a specific event within the Azuro system, such as new games, bets, or liquidity actions. It stores transaction details, timestamps, and references to related entities like bets and conditions.
List of event names:
- NewGame: A new game has been created.
- GameShifted: The game’s start time or conditions have been altered.
- BettorWin: A bettor has won their bet.
- ConditionCreated: A new betting condition has been created.
- ConditionResolved: A betting condition has been resolved.
- ConditionShifted: The condition has been changed, such as an odds adjustment.
- ConditionStopped: A condition has been halted or paused.
- NewBet: A new bet has been placed.
- NewLiveBet: A new live bet has been placed.
- BetSettled: A bet has been settled.
- FreeBetMinted: A freebet has been created and issued.
- FreeBetReissued: A freebet has been reissued.
- FreeBetRedeemed: A freebet has been redeemed.
- FreeBetBettorWin: A freebet has resulted in a win.
- FreeBetTransfer: A freebet has been transferred.
- LiquidityAdded: Liquidity has been added to a liquidity pool.
- LiquidityRemoved: Liquidity has been removed from a liquidity pool.
- LiquidityTransfer: Liquidity has been transferred between pools or users.
- AzuroBetTransfer: An Azuro bet has been transferred.
- MarginChanged: The margin on a bet or condition has been altered.
- ReinforcementChanged: The reinforcement (backing amount) for a condition has been adjusted.
Usage
This entity is essential for tracking specific events like new game creations, bets being placed, or conditions being resolved. Use it to build real-time updates or historical event logs in your interface.
Attributes
Attribute | Type | Description |
---|---|---|
id | ID! | Unique identifier for the event. |
contractAddress | String! | Address of the contract where the event was generated. |
name | EventName! | Name of the event (e.g., NewGame , BetSettled , LiquidityAdded , etc.). |
blockNumber | BigInt! | Block number where the event occurred. |
blockTimestamp | BigInt! | Timestamp of the block when the event occurred. |
txHash | String! | Transaction hash associated with the event. |
transactionIndex | BigInt! | Transaction index within the block. |
logIndex | BigInt! | Log index for the event. |
sortOrder | BigInt! | Sort order for the event. |
betId | String | ID of the bet related to the event (if applicable). |
conditionId | String | ID of the condition related to the event (if applicable). |
gameId | String | ID of the game related to the event (if applicable). |
freebetId | String | ID of the freebet related to the event (if applicable). |
depositId | String | ID of the deposit related to the event (if applicable). |
gasPrice | BigInt! | Gas price for the transaction where the event occurred. |
gasUsed | BigInt | Amount of gas used during the event. |