diff --git a/src/index.ts b/src/index.ts index 7948c9d6..be870fc1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -140,6 +140,7 @@ import societyFetcher from "./tokens/society"; import spfFetcher from "./tokens/spf"; import splashFetcher from "./tokens/splash"; import spxFetcher from "./tokens/spx"; +import squeakFetcher from "./tokens/squeak"; import ssssFetcher from "./tokens/ssss"; import stableFetcher from "./tokens/stable"; import sundaeFetcher from "./tokens/sundae"; @@ -428,6 +429,8 @@ export const supplyFetchers: Record = { "04b95368393c821f180deee8229fbd941baaf9bd748ebcdbf7adbb14727352534e": rsrsnFetcher, c881c20e49dbaca3ff6cef365969354150983230c39520b917f5cf7c4e696b65: nikeFetcher, + "097f37ef3f64a7967c645cb2a40b67594b0f6f4d187d654ff927403753717565616b": + squeakFetcher, "03dc510dbd1d1321edc06d8ae013f55fdd79f390c7415e2a09b64797534e4f4b": snokFetcher, bf3e19192da77dfadc7c9065944e50ca7e1a439d90833e3ae58b720a44414e5a4f: diff --git a/src/tokens/squeak.ts b/src/tokens/squeak.ts new file mode 100644 index 00000000..9a090c1f --- /dev/null +++ b/src/tokens/squeak.ts @@ -0,0 +1,21 @@ +import { defaultFetcherOptions, SupplyFetcher } from "../types"; +import { getAmountInAddresses, getBlockFrostInstance } from "../utils"; + +const SQUEAK = "097f37ef3f64a7967c645cb2a40b67594b0f6f4d187d654ff927403753717565616b"; + +const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => { + const blockFrost = getBlockFrostInstance(options); + const total = 1e9; + + const burnRaw = await getAmountInAddresses(blockFrost, SQUEAK, [ + "addr1z8kadskrrswl3avwe9psd3mar5l7shf06slyxr2tetwln4nzg06w6dvxg0vuzx4s0uenlr0vfucctcfwpa2eshd86taqduntvj", + ]); + + const burn = burnRaw ? Number(burnRaw) : 0; + return { + circulating: (total - burn).toString(), + total: (total - burn).toString(), + }; +}; + +export default fetcher;