Skip to main content

Entities

The main GraphQL entities of the Enso Subgraph#

Factory#

The Factory entity represents the global data that refers to data points about the Enso protocol as a whole

Field NameTypeDescription
idIDThe address on the Enso Factory Contract
strategiesCountIntTotal number of strategies on the Enso platform
managersCountIntTotal number of managers on the Enso platform
allManagers[String]Array of all the manager addresses
allStrategies[String]Array of all the strategy addresses

Strategies#

The Strategy entity represents the Enso Strategies.

Field NameTypeDescription
idIDEthereum Address
manager[Manager]Strategy Manager
nameStringStrategy name
symbolStringStrategy token symbol
totalSupplyBigIntStrategy token total supply
state[StrategyState]Strategy state, contains data editable by the manager
startTimeBigIntTimestamp, starting date of the strategy
navBigDecimalStrategy state, contains data editable by the manager
tvlBigDecimalStrategy state, contains data editable by the manager
tvl24hChangeBigDecimalTVL change in the last 24h
items[StrategyItemHolding]Strategy items
tokenHolders[StrategyTokenHolding]Strategy token holders
strategyDaysData[StrategyDayData]Day data collection of the strategy
rebalances[Rebalance]All the rebalances occured in the strategy
restructures[Restructure]All the restructures occured in the strategy

Managers#

The Manager entity represents the manager of one or more Enso strategy.

Field NameTypeDescription
idIDEthereum Address
strategies[Strategy]Manager's strategies
strategiesCountIntNumber of strategies managed
startTimeBigIntTimestamp of the manager first action on the Enso platform
tvlBigDecimalTotal TVL managed
tvl24hChangeBigDecimalTVL change in the last 24h
holdersCountIntAggregate number of holder for all manager strategies
nav[StrategyState]Strategy state, contains data editable by the manager
tvl[StrategyState]Strategy state, contains data editable by the manager
items[StrategyItemHolding]Strategy items
tokenHolders[StrategyTokenHolding]Strategy token holders
strategyDaysData[StrategyDayData]Day data collection of the strategy
rebalances[Rebalance]All the rebalances occured in the strategy
restructures[Restructure]All the restructures occured in the strategy