@cowprotocol/ts-dune-client
Advanced tools
Comparing version 0.0.0-beta.2 to 0.0.1
@@ -92,3 +92,3 @@ "use strict"; | ||
loglevel_1.default.info(utils_2.logPrefix, `waiting for query execution ${jobID} to complete: current state ${state}`); | ||
(0, utils_1.sleep)(pingFrequency); | ||
await (0, utils_1.sleep)(pingFrequency); | ||
state = (await this.getStatus(jobID)).state; | ||
@@ -95,0 +95,0 @@ } |
{ | ||
"name": "@cowprotocol/ts-dune-client", | ||
"version": "0.0.0-beta.2", | ||
"version": "0.0.1", | ||
"author": "Ben Smith <bh2smith@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "Node Client for Dune Analytics' officially supported API.", |
@@ -0,4 +1,7 @@ | ||
[![Styled With Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io/) | ||
[![Build](https://github.com/cowprotocol/ts-dune-client/actions/workflows/pull-request.yaml/badge.svg)](https://github.com/cowprotocol/ts-dune-client/actions/workflows/pull-request.yaml/badge.svg) | ||
# Dune Client TS | ||
This package implements all the basic routes defined in the [Dune API Docs](https://dune.com/docs/api/). It also introduces a convenience method `refresh` which combines `execute`, `getStatus` and `getResults` in a way that makes it nearly trivial to fetch query execution results. | ||
This [NPM package](https://www.npmjs.com/package/@cowprotocol/ts-dune-client) implements all the basic routes defined in the [Dune API Docs](https://dune.com/docs/api/). It also introduces a convenience method `refresh` which combines `execute`, `getStatus` and `getResults` in a way that makes it nearly trivial to fetch query execution results. | ||
@@ -40,1 +43,3 @@ Install the package | ||
Note also that the client has methods `execute`, `getStatus`, `getResult` and `cancelExecution` | ||
Check out this [Demo Project](https://github.com/bh2smith/demo-ts-dune-client)! |
13535
45