0.0.9 • Published 10 months ago

@glowlabs-org/utils v0.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months 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

10 months ago

0.0.8

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago