From 701b6c309611cf2c0abe43e6d979cd51b9c38a3b Mon Sep 17 00:00:00 2001 From: Dunamis <126212115+dunamis-ada@users.noreply.github.com> Date: Sun, 21 Jul 2024 02:21:41 -0500 Subject: [PATCH 1/3] Added SupplyFetcher for FIGHT token --- src/tokens/fight.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/tokens/fight.ts diff --git a/src/tokens/fight.ts b/src/tokens/fight.ts new file mode 100644 index 00000000..e1d3b121 --- /dev/null +++ b/src/tokens/fight.ts @@ -0,0 +1,19 @@ +import { defaultFetcherOptions, SupplyFetcher } from "../types"; +import { getAmountInAddresses, getBlockFrostInstance } from "../utils"; + +const FIGHT = "7d869e0e6f936c3299a8b8df2b8f13d5233801e11676ff06e78e8dbe4649474854"; + +const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => { + const blockFrost = getBlockFrostInstance(options); + const total = 450_000_000_000; + const treasuryRaw = await getAmountInAddresses(blockFrost, FIGHT, [ + "stake1uygzdup55m354t6nx9nlj9eqhquh5rfue4tzm3yppaxr6vgz6cspc", // $fight.coin + ]); + const treasury = Number(treasuryRaw); + return { + circulating: (total - treasury).toString(), + total: total.toString(), + }; +}; + +export default fetcher; From 2354e3ec86cf993b83eb8aa67cf4b7c953b3a64a Mon Sep 17 00:00:00 2001 From: Dunamis <126212115+dunamis-ada@users.noreply.github.com> Date: Sun, 21 Jul 2024 02:25:25 -0500 Subject: [PATCH 2/3] Updated index.ts with fightFetcher --- src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.ts b/src/index.ts index b2c37ded..7948c9d6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -49,6 +49,7 @@ import empFetcher from "./tokens/emp"; import encsFetcher from "./tokens/encs"; import factFetcher from "./tokens/fact"; import fetFetcher from "./tokens/fet"; +import fightFetcher from "./tokens/fight"; import fireFetcher from "./tokens/fire"; import flacFetcher from "./tokens/flac"; import fldtFetcher from "./tokens/fldt"; @@ -444,4 +445,6 @@ export const supplyFetchers: Record = { scaleFetcher, ea02c99c0668891d6b7cdc49e075cbddf9cd5b89404e5a8a8e5d7016534c4f5020436f696e: slopFetcher, + "7d869e0e6f936c3299a8b8df2b8f13d5233801e11676ff06e78e8dbe4649474854": + fightFetcher, }; From 6dade49ed8f7057cff96b9e4a7326344cdec74b3 Mon Sep 17 00:00:00 2001 From: Dunamis <126212115+dunamis-ada@users.noreply.github.com> Date: Mon, 22 Jul 2024 23:54:49 -0500 Subject: [PATCH 3/3] Added $burnsnek wallet --- src/tokens/fight.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/tokens/fight.ts b/src/tokens/fight.ts index e1d3b121..da12177e 100644 --- a/src/tokens/fight.ts +++ b/src/tokens/fight.ts @@ -9,10 +9,14 @@ const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => { const treasuryRaw = await getAmountInAddresses(blockFrost, FIGHT, [ "stake1uygzdup55m354t6nx9nlj9eqhquh5rfue4tzm3yppaxr6vgz6cspc", // $fight.coin ]); + const burnRaw = await getAmountInAddresses(blockFrost, FIGHT, [ + "addr1w8qmxkacjdffxah0l3qg8hq2pmvs58q8lcy42zy9kda2ylc6dy5r4", // $burnsnek + ]); const treasury = Number(treasuryRaw); + const burn = Number(burnRaw); return { - circulating: (total - treasury).toString(), - total: total.toString(), + circulating: (total - treasury - burn).toString(), + total: (total - burn).toString(), }; };