Skip to main content

Entities

Nevellus Vault subgraphs are under development/tests

Entities for the Nevellus Vault subgraph are all listed below.

Nevellus Vault

FieldTypeDescription
idIDid
users[User]array of users
tokens[Token]array of tokens
transactions[VaultAction]array containing all the transactions
flashLoans[FlashLoan]array of Flash Loans
masterContracts[MasterContract]array of MasterContracts
totalTokensBigInttotal number of tokens in Vault
totalUsersBigInttotal number of users
blockBigIntblock
timestampBigInttimestamp

VaultAction

FieldTypeDescription
idIDid
vaultVaultVault
typevaultActionTypeVaultActionType type
fromUseruser initiating the action
toUseruser receiving the action
tokenTokentoken being used
amountBigIntamount of token to use
shareBigIntamount of Vault shares
blockBigIntblock action was taken on
timestampBigInttimestamp

FlashLoan

FieldTypeDescription
idIDid
vaultVaultVault
borrowerBytesborrower's address
receiverBytesreceiver's address
tokenTokentoken being borrowed
amountBigIntamount of token to borrow
feeAmountBigIntfee for loan
blockBigIntblock loan was taken on
timestampBigInttimestamp

MasterContract

FieldTypeDescription
idIDid
vaultVaultVault
clones[Clone]array of clones
masterContractApprovals[MasterContractApproval]array of masterContractApprovals

Clone

FieldTypeDescription
idIDid
vaultVaultVault
masterContractMasterContractMasterContract
dataStringdata needed to build clone
blockBigIntblock clone was created on
timestampBigInttimestamp

MasterContractApproval

FieldTypeDescription
idIDconcantenated user address with MasterContract
masterContractMasterContractMasterContract
userUseruser
approvedBooleanMasterContract approved or not

Protocol

FieldTypeDescription
idIDid

Token

FieldTypeDescription
idIDid
vaultVaultVault
nameStringtoken's name
symbolStringtoken's symbol
decimalsBigInttoken's amount of decimals
totalSupplyElasticBigInttotal amount of elastic supply
totalSupplyBaseBigInttotal amount of base supply
strategyStrategystrategy
strategyTargetPercentageBigInttarget percentage to set for the strategy chosen
blockBigIntblock
timestampBigInttimestamp

User

FieldTypeDescription
idIDid
vaultVaultVault
masterContractApprovals[MasterContractApproval]array of MasterContractApprovals
tokens[UserToken]array of tokens user owns
withdrawals[VaultAction]array containing all the withdrawals owner has made
deposits[VaultAction]array containing all the deposits owner has made
blockBigIntblock user was created on
timestampBigInttimestamp

UserToken

FieldTypeDescription
idIDconcatenated user address with token address
userUseruser
tokenTokentoken
shareBigIntamount of shares user owns
blockBigIntblock user token was created on
timestampBigInttimestamp

Strategy

FieldTypeDescription
idIDid
tokenTokentoken
balanceBigInttoken balance
totalProfitBigIntstrategy's total profit accrued
harvests[StrategyHarvest]array of harvests
timestampBigInttimestamp
blockBigIntblock

StrategyHarvest

FieldTypeDescription
idIDid
strategyStrategystrategy
profitBigIntamount of profit accrued in harvest
tokenElasticBigIntelastic supply of token
timestampBigInttimestamp
blockBigIntblock harvest was called on