Reference
Subgraph
gauges
Entities

Entities

Entities

VotingEscrow

Description: Details of voting escrow

FieldTypeDescription
idID!VotingEscrow contract address
stakedSupplyBigDecimal!Amount of B-80BAL-20WETH BPT locked
locksVotingEscroLock!List of veBAL locks created

VotingEscrowLock

Description: Details of voting escrow lock

FieldTypeDescription
idID!Equal to: <userAdress>-<votingEscrow>
userUser!Reference to User entity
unlockTimeBigIntTimestamp at which B-80BAL-20WETH BPT can be unlocked by user [seconds]
lockedBalanceBigDecimal!Amount of B-80BAL-20WETH BPT the user has locked
votingEscrowIDVotingEscrow!Reference to VotingEscrow entity
updatedAtInt!

GaugeFactory

Description: Details of gauge factory

FieldTypeDescription
idID!Factory contract address
numGaugesInt!Number of gauges created through the factory
gaugesLiquidityGauge!List of gauges created through the factory

LiquidityGauge

Description: Details of the liquidity gauge

FieldTypeDescription
idID!LiquidityGauge contract address
symbolString!ERC20 token symbol
gaugeGaugeReference to Gauge entity - created when LiquidityGauge is added to GaugeController
poolPoolReference to Pool entity
poolAddressBytes!Address of the pool (lp_token of the gauge)
poolIdBytesPool ID if lp_token is a Balancer pool; null otherwise
isKilledBoolean!Whether Balancer DAO killed the gauge
isPreferentialGaugeBoolean!Whether the LiquidityGauge is the most recent added to GaugeController
relativeWeightCapBigDecimalRelative weight cap of the gauge (0.01 = 1%) - V2 factories only
streamerBytesAddress of the contract that streams reward tokens to the gauge - ChildChainLiquidityGauge only
factoryGaugeFactory!Factory contract address
totalSupplyBigDecimal!Total of BPTs users have staked in the LiquidityGauge
sharesGaugeShare!List of user shares
tokensRewardToken!List of reward tokens depositted in the gauge

RootGauge

Description: Details of the liquidity gauge

FieldTypeDescription
idID!RootGauge contract address
chainChain!Chain where emissions by this gauge will be bridged to
recipientBytes!Address where emissions by this gauge will be bridged to
gaugeGaugeReference to Gauge entity - created when LiquidityGauge is added to GaugeController
isKilledBoolean!Whether Balancer DAO killed the gauge
relativeWeightCapBigDecimalRelative weight cap of the gauge (0.01 = 1%) - V2 factories only
factoryGaugeFactory!Factory contract address

Gauge

Description: Details of the gauge

FieldTypeDescription
idID!Equal to <gaugeAddress>-<typeID>
addressBytes!Address of the gauge
typeGaugeType!Type of the gauge
addedTimestampInt!Timestamp at which Balancer DAO added the gauge to GaugeController [seconds]
liquidityGaugeLiquidityGaugeReference to LiquidityGauge
rootGaugeRootGaugeReference to RootGauge

Pool

Description: Details of the pool

FieldTypeDescription
idID!Address of the pool (lp_token of the gauge)
poolIdBytesPool ID if lp_token is a Balancer pool; null otherwise
addressBytes!Address of the pool (lp_token of the gauge)
preferentialGaugeLiquidityGaugeMost recent, unkilled gauge in the GaugeController
gaugesList[Bytes!]!List of the pool's gauges addresses
gaugesLiquidityGauge!List of gauges created for the pool

RewardToken

Description: Details of the reward token

FieldTypeDescription
idID!Equal to <tokenAddress>-<gaugeAddress>
symbolString!ERC20 token symbol - empty string if call to symbol() reverts
decimalsInt!ERC20 token decimals - zero if call to decimals() reverts
gaugeLiquidityGauge!Reference to LiquidityGauge entity
rateBigDecimalRate of reward tokens streamed per second
periodFinishBigIntTimestamp at which finishes the period of rewards
totalDepositedBigDecimal!Amount of reward tokens that has been deposited into the gauge

GaugeShare

Description: Details of the gauge share

FieldTypeDescription
idID!Equal to <userAddress>-<gaugeAddress>
userUser!Reference to User entity
gaugeLiquidityGauge!Reference to LiquidityGauge entity
balanceBigDecimal!User's balance of gauge deposit tokens

GaugeType

Description: Details of the gauge type

FieldTypeDescription
idID!Type Id
nameString!Name of the type - empty string if call reverts }

GaugeVote

Description: Details of the gauge vote

FieldTypeDescription
idID!Equal to <userAddress>-<gaugeAddress>
userUser!Reference to User entity
gaugeGauge!Reference to Gauge entity
weightBigDecimalWeight of veBAL power user has used to vote
timestampBigIntTimestamp at which user voted [seconds]

User

Description: Details of the user

FieldTypeDescription
idID!User address
gaugeVotesGaugeVote!List of votes on gauges
gaugeSharesGaugeShare!List of gauge the user has shares
votingLocksVotingEscroLock!List of locks the user created

}


© 2023 Balancer Labs