0.0.9 • Published 1 year ago

@glowlabs-org/utils v0.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Glow Labs Utils

This repository contains utils for interacting with Glow labs data sources

Install

npm install ethers@5.7.2 viem merkletreejs @glowlabs-org/utils

Requirements

  • Ethers V5
  • MerkletreeJS
  • Viem
  • Node version >= 16

Example Usage

import { createWeeklyReport } from "@glowlabs-org/utils";
import * as fs from "fs";
const GCA_URLS = ["http://xx.xx.xx.xx:xxxxx"];
const apiUrl = "https://URL/headline_farm_stats";

const main = async () => {
  const report = await createWeeklyReport({
    gcaUrls: GCA_URLS,
    apiUrl: apiUrl,
    week: 37,
  });

  //Save to 37.json
  fs.writeFileSync("37.json", JSON.stringify(report, null, 4));
};
``;

main();

Contributions

For contributions, feel free to open a PR or raise an issue.

0.0.9

1 year ago

0.0.8

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago