Form Related Entities
These keep track of forms, vaults and superforms which are core of the protocol
Introduction
These queries can be used to keep track of Forms, vaults, and consequently Superforms that are created.
Core Concepts
formImplementaion
formBeacons are form implementations that have been added to the protocol using SuperformFactory. When vaults are added to them, Superforms are created, and handle the actual deposit/withdraw in our protocol. They can be queried as follows-
The fields of formBeacon are as follows-
id-
This is the stringifed representation offormBeaconId
and is used as the reference for the entityformImplementationAddress-
It is the address of the underlying form implementation for the formBeaconcreationBlockNumber-
Block Number in which the formBeacon was createdcreationTransactionHash-
Hash of transacrtion used to create the formBeacontotalBeaconCreated-
Total number of formBeacons that were created on the chain as of creation of the formBeacon
Superforms
This tracks all the Superforms that have been created in the protocol using the various formBeacons created on the chain. The Superforms can be queried as follows-
The fields are as follows-
id-
This is the stringified version of the superformId and is used for referencing the individual superformsformImplementationID-
formImplementationID of the underlying form using which the superform has been built.vaultAddress-
Address of the underlying vault serving the superformsuperformId-
This is used as the Id for the superform and is unique for each superForm that is createdsuperformAddress-
Address of the superform itself deployed by the superformFactorycreationBlockNumber-
Block Number in which the superform was createdcreationTransactionHash-
Hash of transaction used to create the superformtotalSuperformsCreated-
Total number of superforms that were created on the chain as of creation of the superformvaultDetails-
This entity represent basic details of the vault on top of which the superform has been built. More details can found in VaultDetails
VaultDetails
This represents basic details related to a vault. Every vault has one VaultBasic which then can be queried using-
Fields for VaultBasic are as follows-
id-
This is the id used for referencing for the VaultBasic. To relate every VaultBasic with individual vaults, the id of VaultBasic is the address of the vault which it represents.name-
Name of the vault that it representssymbol-
Symbol of the vault which is being represented by the VaultBasicdecimals-
Vault decimals for the corresponding vault.
VaultAsset
This represents the underlying asset of the vault. Every vault has one VaultAsset and this can be queried as-
Fields for VaultAsset are as follows-
id-
This is the id used for referencing the VaultAsset. To relate every VaultAsset with individual vaults, the id of VaultAsset is the address of the vault which it represents.name-
Name of the asset used for the vault that it representssymbol-
Symbol of the asset of the vaultdecimals-
Vault decimals for the asset of the corresponding vault.
VaultFinancials
This is the field that actually denotes the financials of the vaults. This helps in establishing metrics like TVL and APR for the vaults in Superform protocol and thus the forms built using them. VaultData can be queried as follows-
The fields in VaultFinancials are as follows-
id-
This is the id used for referencing the VaultData instances. To relate every VaultData with individual vaults, the id of VaultData is the address of the vault which it represents.totalAssets-
This the total assets that are in the vault. This hence thus represents the TVL of the vaults.formBalance-
This is the total assets part of the vault through various forms of the protocolpreviewPPS-
This is used to preview the price per vault share at any given point for the various vaultspricePerVaultShare-
This is used to get the Price Per Vault Share of various vaults which then along withpreviewPPS
can be used for APR calculation.
VaultMapping
This is a mapping of various vaults with the Superforms and formBeacons they serve. This helps to establish an 1 to N connection between vaults and all the different superforms that it serves in the protocol. VaultMapping can be queried as follows-
The fields are as follows-
id-
This is the id used for referencing the VaultMapping instances. To relate every VaultMapping with individual vaults, the id of VaultMapping is the address of the vault which it represents.vaultAddress-
This is the address of the vault itself from which we are establishing the mappings to different superforms and formBeaconssuperForm-
It is a list of Superform entities and lists all the Superforms that are using the particular vault. Different fields part of Superform entity can be queried as part of the mappingsformBeacon-
It is the list of formBeacons that are built using the particular vault. Similar to Superforms, different fields of formBeacons can be queried as part of the mappings.
Last updated