Skip to content

Commit

Permalink
Add SSSS, SNUK, ACE, BPT market cap and circulating supply (#329)
Browse files Browse the repository at this point in the history
* Create ssss.ts

* Create bpt.ts

* Create ace.ts

* Create snuk.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

---------

Co-authored-by: Patrik <[email protected]>
  • Loading branch information
NFTKri and shadowkora authored Jun 18, 2024
1 parent 5be08a3 commit e055a3b
Show file tree
Hide file tree
Showing 5 changed files with 115 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import aadaFetcher from "./tokens/aada";
import aceFetcher from "./tokens/ace";
import adyFetcher from "./tokens/ady";
import agcFetcher from "./tokens/agc";
import agixFetcher from "./tokens/agix";
Expand All @@ -14,6 +15,7 @@ import betFetcher from "./tokens/bet";
import bookFetcher from "./tokens/book";
import boonFetcher from "./tokens/boon";
import boxFetcher from "./tokens/box";
import bptFetcher from "./tokens/bpt";
import btnFetcher from "./tokens/btn";
import bubbleFetcher from "./tokens/bubble";
import c3Fetcher from "./tokens/c3";
Expand Down Expand Up @@ -118,10 +120,12 @@ import smokeFetcher from "./tokens/smoke";
import snekFetcher from "./tokens/snek";
import snepeFetcher from "./tokens/snepe";
import snowFetcher from "./tokens/snow";
import snukFetcher from "./tokens/snuk";
import societyFetcher from "./tokens/society";
import spfFetcher from "./tokens/spf";
import splashFetcher from "./tokens/splash";
import spxFetcher from "./tokens/spx";
import ssssFetcher from "./tokens/ssss";
import stableFetcher from "./tokens/stable";
import sundaeFetcher from "./tokens/sundae";
import tedyFetcher from "./tokens/tedy";
Expand Down Expand Up @@ -383,6 +387,13 @@ export const supplyFetchers: Record<string, SupplyFetcher> = {
splashFetcher,
"160a880d9fc45380737cb7e57ff859763230aab28b3ef6a84007bfcc4d495241":
miraFetcher,
"7d9aabc78703947e931e28273a96cf7412039fbd2e54a90ffb17239c42616279506f726b65":
aceFetcher,
"4de3c5d6b555c99c7f56a1f917567288f025f337cdf233d99e462a1353737373":
ssssFetcher,
"246d6a8493dd02c1243ccae10b3275f318e4f3144140d05c4c28c422536e556b":
snukFetcher,
d42729a8559b38c5d13009d653e4086404234bdb535a97b945c6ea78425054: bptFetcher,
"4342a3d3c15545a592bf38294dc75c7a1dd3550388303e3a06f4416d4345525241":
cerraFetcher,
"548c390391253aff00af9c95ae310f00803fd28035a6ed6f17c1e5e2424147": bagFetcher,
Expand Down
27 changes: 27 additions & 0 deletions src/tokens/ace.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 ACE = "7d9aabc78703947e931e28273a96cf7412039fbd2e54a90ffb17239c42616279506f726b65";

const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);
const total = 1_000_000_000_000_000;
const treasuryRaw = await getAmountInAddresses(blockFrost, ACE, [
"stake1u8wwshdrztua5qhd9g06g68692dvrgqksncccpxv7pgpzwgd5mxuy", // Treasury
"stake1uxmtrg8cs7d86u8hydvpgjntgnn8apvrpqawaff0f9a270gfhpzpg", // acecoinada
"stake1u82ls6hlnx0hh8ph5fl6kqdxx7mvw9kqz2563l7ukhxwxec0mtv4y", // Farmbot
]);

const burnRaw = await getAmountInAddresses(blockFrost, ACE, [
"addr1w8qmxkacjdffxah0l3qg8hq2pmvs58q8lcy42zy9kda2ylc6dy5r4", // burn address
]);

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/bpt.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 BPT = "d42729a8559b38c5d13009d653e4086404234bdb535a97b945c6ea78425054";

const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);
const total = 155_000_000_000_000_000;
const treasuryRaw = await getAmountInAddresses(blockFrost, BPT, [
"stake1uypqrgwhdktwdc0735wvtclvttu5nxp48fvq6mv742gmmhcjh0xu8", // Treasury
]);

const burnRaw = await getAmountInAddresses(blockFrost, BPT, [
"addr1w8qmxkacjdffxah0l3qg8hq2pmvs58q8lcy42zy9kda2ylc6dy5r4", // burn address
]);

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

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

const SNUK = "246d6a8493dd02c1243ccae10b3275f318e4f3144140d05c4c28c422536e556b";

const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);
const total = 100_000_000_000;
const treasuryRaw = await getAmountInAddresses(blockFrost, SNUK, [
"stake1u8fa4qqljq4kz3hrwnmf76t9w383vl9058rs2mj767hg79g30xyee", // $Snuk
"stake1uxdxf8sjds7nrz8fymjyjrp5kw4cjtdvn6n69qrhkfz8jncnppg45", // $Snuk-staking
]);

const burnRaw = await getAmountInAddresses(blockFrost, SNUK, [
"addr1w8qmxkacjdffxah0l3qg8hq2pmvs58q8lcy42zy9kda2ylc6dy5r4", // burn address
]);

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

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

const SSSS =
"4de3c5d6b555c99c7f56a1f917567288f025f337cdf233d99e462a1353737373";

const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);
const total = 7_777_777_777;
const treasuryRaw = await getAmountInAddresses(blockFrost, SSSS, [
"stake17xjrxzlfv3l9dtlykenxxf4zckh287hmwvzrg3pzhq7n6xqg39z66", // $Sssstreasury
]);

const burnRaw = await getAmountInAddresses(blockFrost, SSSS, [
"addr1w8qmxkacjdffxah0l3qg8hq2pmvs58q8lcy42zy9kda2ylc6dy5r4", // burn address
]);

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 e055a3b

Please sign in to comment.