Launch Update
Changelog:
- Added package.json scripts to deploy IPFS enabled or disabled versions of the subgraph.
- Changed GitHub action workflows a bit to reflect the IPFS enabled/disabled changes
- Added fulltext search for curator and delegator entities. (
curatorSearch
anddelegatorSearch
). - Entity changes
GraphNetwork
- Added
ownerTaxPercentage
. Percentage of the GNS migration tax payed by the subgraph owner - Added
activeDelegatorCount
. Total amount of activeDelegator
entities. (at least 1DelegatedStake
with signalAmount > 0) - Added
delegationCount
. Total amount ofDelegatedStake
entities (specific delegations). - Added
activeDelegationCount
. Total amount of activeDelegatedStake
entities (specific delegations with signalAmount > 0). - Added
querySlashingPercentage
andindexSlashingPercentage
. - Deprecation notice on
slashingPercentage
.
- Added
GraphAccount
- Added
tokenLockWallets
array. Used to properly recognize ENS names on vesting contract users.
- Added
Subgraph
- Deprecation notice on
pastVersions
- Added
versions
field which should replacepastVersions
. It's more performant for indexing since it doesn't need to manually handle arrays, with the small caveat that unlikepastVersions
it includes thecurrentVersion
in the list. - Added
versionCount
. - Added
active
field. Used to differentiate active and deprecatedSubgraph
entities. - Added
currentSignalledTokens
. Mostly for sorting purposes on the UI, should becurrentSignalledTokens = signalledTokens - unsignalledTokens
. It only tracks tokens signalled towards that specific subgraph name (NameSignal
), so it could potentially be negative in scenarios where theNameSignal
shares lose value on the bonding curve because ofSignal
(version signals) unsignalling on the same bonding curve. - Added
signalAmount
. Represents the amount of version signal that the name pool for that named subgraph has. - Added
nameSignalCount
. Tracks the total amount ofNameSignal
entities for that subgraph. - All IPFS related fields (
description
,image
,codeRepository
,website
anddisplayName
) are now optional. - Added
categories
list. Many-to-many list that represents all the categories that a subgraph belongs to.
- Deprecation notice on
SubgraphVersion
- All IPFS related fields (
description
andlabel
) are now optional.
- All IPFS related fields (
SubgraphDeployment
- Added
ipfsHash
field. Holds theQm...
string (i.e. the IPFS hash) of the manifest file for theSubgraphDeployment
. - Added
pricePerShare
. Price of the current Curation share (i.e. signal) on this deployment. It's the approximation of the current value of said share, given the bonding curve dynamics (selling or buying the share always has price impact, so this is the snapshot of the value at this particular point in the bonding curve, doesn't mean you will be getting exactly this amount per share if you buy or sell any amount of shares). Also worth noting, this is the price per share of the actual version signals, NOT name signals (Automigrate shares). - Added
manifest
. Raw string of the manifest file located atipfsHash
on the IPFS network. - Added
network
. Link to theNetwork
entity that this deployment indexes. (Deployments that index contracts from themainnet
network will have a link to themainnet
Network
entity here, for example). - Added
schemaIpfsHash
.Qm...
string (IPFS hash) of the schema file for this deployment. - Added
schema
. Raw string of the schema file located atschemaIpfsHash
on the IPFS network.
- Added
Allocation
- Added
createdAtBlockNumber
. Block number at which the allocation was created. closedAtEpoch
is now optional. Should be null until theAllocation
is closed.- Added
closedAt
. Timestamp for the closing of theAllocation
- Added fields to differentiate protocol cuts at the start of the
Allocation
and when it's closed.indexingRewardCutAtStart
indexingRewardEffectiveCutAtStart
queryFeeCutAtStart
queryFeeEffectiveCutAtStart
indexingRewardCutAtClose
indexingRewardEffectiveCutAtClose
indexingRewardCutAtStart
queryFeeCutAtClose
queryFeeEffectiveCutAtClose
- Added
Delegator
- Added fields needed to properly track if the
Delegator
entity is active or not for theactiveDelegatorCount
on theGraphNetwork
entity.stakesCount
. Total amount ofDelegatedStake
entities for thisDelegator
.activeStakesCount
. Amount of activeDelegatedStake
entities for thisDelegator
. (signalAmount > 0)
- Added
defaultDisplayName
. Should be the ENS name for this delegator, doesn't matter if it's a direct account or vesting contract.
- Added fields needed to properly track if the
Curator
- Added
totalSignal
. Represents the total amount of version signal across all bonding curves. - Added
totalSignalAverageCostBasis
. - Added
totalSignalAverageCostBasisPerSignal
. - Added new counters to track the amount of signals (both
NameSignal
andSignal
and combined) the curator owns.signalCount
activeSignalCount
nameSignalCount
activeNameSignalCount
combinedSignalCount
activeCombinedSignalCount
- Added
Signal
- Added
averageCostBasis
andaverageCostBasisPerSignal
to be on par with theNameSignal
entity. - Added created at and last updated at fields for both timestamp and block numbers
createdAt
lastUpdatedAt
createdAtBlock
lastUpdatedAtBlock
- Added
NameSignal
- Added
signal
field to represent the underlying version signal minted for that specificNameSignal
. (remember thatNameSignal.nameSignal
represents the shares of the name pool owned for thatNameSignal
, while the new field represents the amount of version signal minted for theNameSignal
, which is what is the actual shares of the bonding curve) - Deprecation notice on
averageCostBasis
andaverageCostBasisPerSignal
, since we know have new fields to differentiate the values for thenameSignal
andsignal
amounts. - Added separate fields to track average cost basis for
nameSignal
andsignal
fields.nameSignalAverageCostBasis
nameSignalAverageCostBasisPerSignal
signalAverageCostBasis
signalAverageCostBasisPerSignal
- Added
Epoch
- Added
queryFeesCollected
field to track the collected query fees during the epoch. - Added
curatorQueryFees
field to track the amount of query fees going to curators during the epoch.
- Added
- Added new entities
- Added
Network
entity. Represents the different networks that subgraphs are indexing, and has adeployments
list with all the currentSubgraphDeployment
entities that have data sources that index that specificNetwork
. - Added
SubgraphCategory
andSubgraphCategoryRelation
entities.SubgraphCategory
represents the different existing categories that aSubgraph
can belong to.SubgraphCategoryRelation
is an auxiliary entity to represent the many-to-many nature of the relationship without recurring to manual arrays. - Added
NameSignalSubgraphRelation
entity. Auxiliary entity for batch updates for curatorNameSignal
entities. - Added entities from the
token-distribution
subgraph to enable ENS names on vesting contract wallets. (TokenManager
,AuthorizedFunction
,TokenLockWallet
andRevocability
enum). They should be replaced with a cleaner solution in a future refactor, since it's not ideal to keep them here.
- Added