@phuture/subgraph
TypeScript icon, indicating that this package has built-in type declarations

0.4.11 • Public • Published

Subgraph Client

Access Phuture's Subgraph

Introduction

This is the graphQL package used by Phuture SDK.

Getting started with development

In this section we will take a look at how to get up and running with this package.

Assuming you have correctly run all the Phuture SDK install commands. If not, take a look at the root Phuture SDK readme for more details.

Building

Run nx build subgraph to build the library.

Running unit tests

Run nx test subgraph to execute the unit tests via Jest.

Adding a schema

in the schemas subdirectory, you can add queries to the liquidity subgraph or the Phuture subgraph by creating a .graphql file that conforms with graphQL Queries and Mutations

Once done, run:

npm generate

This will build a new SDK with the queries strongly typed and ready to go.

Readme

Keywords

none

Package Sidebar

Install

npm i @phuture/subgraph

Weekly Downloads

20

Version

0.4.11

License

none

Unpacked Size

223 kB

Total Files

17

Last publish

Collaborators

  • hvrlk-phuture
  • phuture-finance
  • lepeico