Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CATS,DANZO,JORGE,NIKE,SNOK #335

Merged
merged 2 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -36,6 +37,7 @@ import copiFetcher from "./tokens/copi";
import cswapFetcher from "./tokens/cswap";
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 @@ -67,6 +69,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 @@ -91,6 +94,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 @@ -119,6 +123,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 @@ -405,4 +410,12 @@ export const supplyFetchers: Record<string, SupplyFetcher> = {
rsbtcFetcher,
"04b95368393c821f180deee8229fbd941baaf9bd748ebcdbf7adbb14727352534e":
rsrsnFetcher,
c881c20e49dbaca3ff6cef365969354150983230c39520b917f5cf7c4e696b65: nikeFetcher,
"03dc510dbd1d1321edc06d8ae013f55fdd79f390c7415e2a09b64797534e4f4b":
snokFetcher,
bf3e19192da77dfadc7c9065944e50ca7e1a439d90833e3ae58b720a44414e5a4f:
danzoFetcher,
c0a7eb16fa55a982c63976c34af6e42cb1b5aeb9ab2a7aaec06f6cd04a6f726765:
jorgeFetcher,
bbb0be3f57598bbf6a7d6ce18a60700beceb6904923a6a555ca0345443415453: catsFetcher,
};
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;
Loading