Skip to content

Commit

Permalink
CATS,DANZO,JORGE,NIKE,SNOK (#335)
Browse files Browse the repository at this point in the history
Co-authored-by: jacobwarren44 <[email protected]>
Co-authored-by: Patrik <[email protected]>
  • Loading branch information
3 people authored Jun 27, 2024
1 parent 353dc45 commit e21f784
Show file tree
Hide file tree
Showing 6 changed files with 138 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import btnFetcher from "./tokens/btn";
import bubbleFetcher from "./tokens/bubble";
import c3Fetcher from "./tokens/c3";
import c4Fetcher from "./tokens/c4";
import catsFetcher from "./tokens/cats";
import catskyFetcher from "./tokens/catsky";
import cblpFetcher from "./tokens/cblp";
import cbtcFetcher from "./tokens/cbtc";
Expand All @@ -37,6 +38,7 @@ import cswapFetcher from "./tokens/cswap";
import ctvFetcher from "./tokens/ctv";
import daddyFetcher from "./tokens/daddy";
import danaFetcher from "./tokens/dana";
import danzoFetcher from "./tokens/danzo";
import derpFetcher from "./tokens/derp";
import dgafFetcher from "./tokens/dgaf";
import dingFetcher from "./tokens/ding";
Expand Down Expand Up @@ -69,6 +71,7 @@ import iethFetcher from "./tokens/ieth";
import indyFetcher from "./tokens/indy";
import iusdFetcher from "./tokens/iusd";
import jellyFetcher from "./tokens/jelly";
import jorgeFetcher from "./tokens/jorge";
import jpgFetcher from "./tokens/jpg";
import kitupFetcher from "./tokens/kitup";
import lccFetcher from "./tokens/lcc";
Expand All @@ -93,6 +96,7 @@ import myusdFetcher from "./tokens/myusd";
import nebulaFetcher from "./tokens/nebula";
import newmFetcher from "./tokens/newm";
import nftcFetcher from "./tokens/nftc";
import nikeFetcher from "./tokens/nike";
import ninjazFetcher from "./tokens/ninjaz";
import nmkrFetcher from "./tokens/nmkr";
import noelFetcher from "./tokens/noel";
Expand Down Expand Up @@ -122,6 +126,7 @@ import shenFetcher from "./tokens/shen";
import smokeFetcher from "./tokens/smoke";
import snekFetcher from "./tokens/snek";
import snepeFetcher from "./tokens/snepe";
import snokFetcher from "./tokens/snok";
import snowFetcher from "./tokens/snow";
import snukFetcher from "./tokens/snuk";
import societyFetcher from "./tokens/society";
Expand Down Expand Up @@ -409,6 +414,14 @@ export const supplyFetchers: Record<string, SupplyFetcher> = {
rsbtcFetcher,
"04b95368393c821f180deee8229fbd941baaf9bd748ebcdbf7adbb14727352534e":
rsrsnFetcher,
c881c20e49dbaca3ff6cef365969354150983230c39520b917f5cf7c4e696b65: nikeFetcher,
"03dc510dbd1d1321edc06d8ae013f55fdd79f390c7415e2a09b64797534e4f4b":
snokFetcher,
bf3e19192da77dfadc7c9065944e50ca7e1a439d90833e3ae58b720a44414e5a4f:
danzoFetcher,
c0a7eb16fa55a982c63976c34af6e42cb1b5aeb9ab2a7aaec06f6cd04a6f726765:
jorgeFetcher,
bbb0be3f57598bbf6a7d6ce18a60700beceb6904923a6a555ca0345443415453: catsFetcher,
"20efaf13727eea5813e57530f1f9bb60fa8a986056b48c4b89d59b414769726c4672656e":
girlfrenFetcher,
c80d335ae2206381ae3dfe07b1ef38e43af95736e7f5d4f150663c255241555349:
Expand Down
27 changes: 27 additions & 0 deletions src/tokens/cats.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { defaultFetcherOptions, SupplyFetcher } from "../types";
import { getAmountInAddresses, getBlockFrostInstance } from "../utils";

const CATS = "bbb0be3f57598bbf6a7d6ce18a60700beceb6904923a6a555ca0345443415453";

const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);
const total = 88_888_888_888_888_900;
const treasuryRaw = await getAmountInAddresses(blockFrost, CATS, [
"stake1u923hpvm0kurh8mrav0rcrwfd0qfyguxq3wt9qjlynpqcjgrn8yu8",
"stake1u8fpm0l9wq6ukw7932vwkhlpthhwlk7hx4vx6xe35dzplaq6ckdj5",
"stake1u9a7k0k2t0amdsyyvuyvr6wfdk96egxculjs7ydmehc5ueqljenvv",
]);

const burnRaw = await getAmountInAddresses(blockFrost, CATS, [
"addr1w8qmxkacjdffxah0l3qg8hq2pmvs58q8lcy42zy9kda2ylc6dy5r4", //$burnsnek
]);

const treasury = Number(treasuryRaw);
const burn = Number(burnRaw);
return {
circulating: (total - treasury - burn).toString(),
total: (total - burn).toString(),
};
};

export default fetcher;
25 changes: 25 additions & 0 deletions src/tokens/danzo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { defaultFetcherOptions, SupplyFetcher } from "../types";
import { getAmountInAddresses, getBlockFrostInstance } from "../utils";

const DANZO = "bf3e19192da77dfadc7c9065944e50ca7e1a439d90833e3ae58b720a44414e5a4f";

const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);
const total = 69e9;
const treasuryRaw = await getAmountInAddresses(blockFrost, DANZO, [
"stake17xnecta77s7r3qp9aryd79tln2wc2qs24sx9gvf4npcyptgqq4p4s",
]);

const burnRaw = await getAmountInAddresses(blockFrost, DANZO, [
"addr1w8qmxkacjdffxah0l3qg8hq2pmvs58q8lcy42zy9kda2ylc6dy5r4", //$burnsnek
]);

const treasury = Number(treasuryRaw);
const burn = Number(burnRaw);
return {
circulating: (total - treasury - burn).toString(),
total: (total - burn).toString(),
};
};

export default fetcher;
27 changes: 27 additions & 0 deletions src/tokens/jorge.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { defaultFetcherOptions, SupplyFetcher } from "../types";
import { getAmountInAddresses, getBlockFrostInstance } from "../utils";

const JORGE = "c0a7eb16fa55a982c63976c34af6e42cb1b5aeb9ab2a7aaec06f6cd04a6f726765";

const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);
const total = 1e9;
const treasuryRaw = await getAmountInAddresses(blockFrost, JORGE, [
"stake1ux438zy2p4e5g8wqg0y8t3ydds02rmaf3eemj38nzn9ydgctfvyne",
"stake1uyft8nlwshrfttzyn8g394d3rx8cck3wusy9l086q35rq9g9e78qd",
"stake1u9psvwyfwskrvz22tlepfsenqzegd5jlyf8mf7hzwhar9mcqncm5y",
]);

const burnRaw = await getAmountInAddresses(blockFrost, JORGE, [
"addr1w8qmxkacjdffxah0l3qg8hq2pmvs58q8lcy42zy9kda2ylc6dy5r4", //$burnsnek
]);

const treasury = Number(treasuryRaw)/1e4;
const burn = Number(burnRaw)/1e4;
return {
circulating: (total - treasury - burn).toString(),
total: (total - burn).toString(),
};
};

export default fetcher;
21 changes: 21 additions & 0 deletions src/tokens/nike.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { defaultFetcherOptions, SupplyFetcher } from "../types";
import { getAmountInAddresses, getBlockFrostInstance } from "../utils";

const NIKE = "c881c20e49dbaca3ff6cef365969354150983230c39520b917f5cf7c4e696b65";

const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);
const total = 1e9;

const burnRaw = await getAmountInAddresses(blockFrost, NIKE, [
"addr1w8qmxkacjdffxah0l3qg8hq2pmvs58q8lcy42zy9kda2ylc6dy5r4", //$burnsnek
]);

const burn = Number(burnRaw);
return {
circulating: (total - burn).toString(),
total: (total - burn).toString(),
};
};

export default fetcher;
25 changes: 25 additions & 0 deletions src/tokens/snok.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { defaultFetcherOptions, SupplyFetcher } from "../types";
import { getAmountInAddresses, getBlockFrostInstance } from "../utils";

const SNOK = "03dc510dbd1d1321edc06d8ae013f55fdd79f390c7415e2a09b64797534e4f4b";

const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);
const total = 1e9;
const treasuryRaw = await getAmountInAddresses(blockFrost, SNOK, [
"stake17x7ep02m028rqsnrqmse4zyn8nr3v80nkeshq73n2xddxnsmw0uuw",
]);

const burnRaw = await getAmountInAddresses(blockFrost, SNOK, [
"addr1w8qmxkacjdffxah0l3qg8hq2pmvs58q8lcy42zy9kda2ylc6dy5r4", //$burnsnek
]);

const treasury = Number(treasuryRaw);
const burn = Number(burnRaw);
return {
circulating: (total - treasury - burn).toString(),
total: (total - burn).toString(),
};
};

export default fetcher;

0 comments on commit e21f784

Please sign in to comment.