@altangent/lib-luxor
v0.14.0
Published
Basic Luxor API client
Downloads
102
Readme
Luxor Mining API Client
Implementation of the Luxor mining API client as defined here.
The client includes methods for each query method and returns all types and properties in the graph.
For customized queries you can use the query(query: string, variables: any)
method.
Generating Types
Types are generated using @graphql-codegen/cli
. The schema is located
in ./schema.graphql
and was pulled from the documentation. To generate
new types use npm run generate
. The typefile will need to be
formatted using prettier.
Manual work was required to generate the queries found in ./Queries.ts
,
the result types in ./Result.ts
and the options in ./Options.ts
.
These file may need to be adjusted accordingly when changes are made.
Future work may be done to generate this from the schema.