1.18.1 • Published 1 year ago

@voltz-protocol/subgraph-data v1.18.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago
StatementsBranchesFunctionsLines
StatementsBranchesFunctionsLines

Installation

  1. Run yarn

Run tests

  1. Run yarn test

Functionality

The repository currently supports 4 queries:

  • src/queries/voltz-protocol/getAMMs: returns the AMM entities of Voltz Protocol
  • src/queries/voltz-protocol/getPositions: returns the positions of Voltz Protocol
  • src/queries/community-sbt/getSeasonUsers: returns the users of Community v2
  • src/queries/community-sbt/getRoots: returns the merkle roots for the Community v2 badges
  • src/queries/voltz-protocol/getHistoricalFixedRate: returns history of tick updates in the VAMM
  • src/queries/voltz-protocol/getHistoricalVariableIndex: returns history of rate updates in the rate oracle

Implementing new query

To add support for multiple queries, the standard pattern is:

  • to create a new folder inside voltz-protocol or community-sbt (or other) with the name of the query
  • inside the query folder:
    • create a file staticQuery.ts that generates the GraphQL query string
    • create a mapper file that maps the raw response of the query to the corresponding type
    • create a file query.ts that fetches the data (in batches of 1000 items)
    • export the necessary variables via index.ts
    • add tests into a dedicated file inside tests folder
    • add documentation to the query function and update README

Terms & Conditions

The Voltz Protocol, and any products or services associated therewith, is offered only to persons (aged 18 years or older) or entities who are not residents of, citizens of, are incorporated in, owned or controlled by a person or entity in, located in, or have a registered office or principal place of business in any “Restricted Territory.”

The term Restricted Territory includes the United States of America (including its territories), Algeria, Bangladesh, Bolivia, Belarus, Myanmar (Burma), Côte d’Ivoire (Ivory Coast), Egypt, Republic of Crimea, Cuba, Democratic Republic of the Congo, Iran, Iraq, Liberia, Libya, Mali, Morocco, Nepal, North Korea, Oman, Qatar, Somalia, Sudan, Syria, Tunisia, Venezuela, Yemen, Zimbabwe; or any jurisdictions in which the sale of cryptocurrencies are prohibited, restricted or unauthorized in any form or manner whether in full or in part under the laws, regulatory requirements or rules in such jurisdiction; or any state, country, or region that is subject to sanctions enforced by the United States, such as the Specially Designed Nationals and Blocked Persons List (“SDN List”) and Consolidated Sanctions List (“Non-SDN Lists”), the United Kingdom, or the European Union.

1.18.1

1 year ago

1.18.0

1 year ago

1.17.0

1 year ago

1.16.0

1 year ago

1.15.0

1 year ago

1.14.0

1 year ago

1.13.0

1 year ago

1.12.0

1 year ago

1.11.0

1 year ago

1.10.0

1 year ago

1.9.0

1 year ago

1.8.0

1 year ago

1.7.1

1 year ago

1.7.0

1 year ago

1.6.0

1 year ago

1.5.0

1 year ago

1.4.0

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago