0.0.9 • Published 10 months ago
@glowlabs-org/utils v0.0.9
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.