diff --git a/src/index.ts b/src/index.ts index eb0b5f4a..d2bfb19d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -52,6 +52,7 @@ import fetFetcher from "./tokens/fet"; import fireFetcher from "./tokens/fire"; import flacFetcher from "./tokens/flac"; import fldtFetcher from "./tokens/fldt"; +import fleshFetcher from "./tokens/flesh"; import frenFetcher from "./tokens/fren"; import gensFetcher from "./tokens/gens"; import gensxFetcher from "./tokens/gensx"; @@ -429,4 +430,6 @@ export const supplyFetchers: Record = { girlfrenFetcher, c80d335ae2206381ae3dfe07b1ef38e43af95736e7f5d4f150663c255241555349: rausiFetcher, + a1ce0414d79b040f986f3bcd187a7563fd26662390dece6b12262b52464c45534820544f4b454e: + fleshFetcher, }; diff --git a/src/tokens/ashib.ts b/src/tokens/ashib.ts index 4d0806fb..3386df18 100644 --- a/src/tokens/ashib.ts +++ b/src/tokens/ashib.ts @@ -7,13 +7,30 @@ const ASHIB = const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => { const blockFrost = getBlockFrostInstance(options); const total = 1_000_000_000_000; + const treasury_team_and_distributorsRaw = await getAmountInAddresses( + blockFrost, + ASHIB, + [ + "addr1q9pyzv7p23c7sqsrd9y50pl9csefm5y9gs74t9zs7zqhxmlvevz8mzgjhfmjv87qdj45l7mfrfnv2v5dgr70uky86txqvfusqz", // community wallet + "addr1qxrlzwkmv826sps9sfjdg3cr8malcr2wmfvhvt0sqpd84xaq4rezcdmnr9f52x0zsgpz3zl8klrwjhmynksx5lhs5scsdqcx9d", // team 1 + "addr1qy40nxgx8wk03xn0k0xega3l6fwrekwsyuuj7cyyhsz8fl2zhw8y7c92vew3fqwy7u4yrq66d2yt8wmd0tm3uyhsxapsy4t5ms", // team 2 + "addr1qxpeczj2lluh88sa2g3tm0e3fj39c34rlctmvcszjs67g6wjj9djsz0020h68nz3rxknzdh93nryqzhq6h9z0nnzf0rshrectt", // tosidrop distribution + "addr1w9rerwzk0f5v4den9u2c7anv2d4dl88hq9cq0xgcmernsfsak7w6r", // dripdropz distribution + "addr1qyjhg2ge6w6tzwc9gwmddp5ha07zsawpd3pse7v9a0893jufgx9ne2hurkmz7adclf0tpehwdqwuhfejtph98vpfhulscdnlzz", // adalot exchange vending + "addr1q8xhjg9tn29a6vpv9e52xf8zn7hl7nqkv99kk4uac08myjud244wsz2v65xv0jc4tgjyfxrhgnmcav0upfcvcdv2d8qq7fqgh3", // adalot jackpot vending + "addr1qxkmr0m22xeqludcg5rjdmecjxasu9fat0680qehtcsnftaadgykewa9ufvegeuca9yyq03d9v7ea2y2zthgu7hfgjtsddp6gr", // minswap farm distribution + "addr1qx3wvec7uhweerzqaeezzepmrwft8sfpucgk50tsuluz8f8cfhlykwhxy66aazkjmfp4euf0yhpeezx3exncm7e69pvs7jetw6", // starcada distribution + ] + ); const burnRaw = await getAmountInAddresses(blockFrost, ASHIB, [ "addr1w8qvvu0m5jpkgxn3hwfd829hc5kfp0cuq83tsvgk44752dsea0svn", // burn wallet ]); + const uncirculated = Number(treasury_team_and_distributorsRaw) / 1e6; const burn = Number(burnRaw) / 1e6; return { + circulating: (total - uncirculated - burn).toString(), total: (total - burn).toString(), }; }; diff --git a/src/tokens/flesh.ts b/src/tokens/flesh.ts new file mode 100644 index 00000000..88f25b94 --- /dev/null +++ b/src/tokens/flesh.ts @@ -0,0 +1,33 @@ +import { defaultFetcherOptions, SupplyFetcher } from "../types"; +import { getAmountInAddresses, getBlockFrostInstance } from "../utils"; + +const FLESH = + "a1ce0414d79b040f986f3bcd187a7563fd26662390dece6b12262b52464c45534820544f4b454e"; + +const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => { + const blockFrost = getBlockFrostInstance(options); + const total = 420_000_000_000_000_000; + const treasury_team_and_distributorsRaw = await getAmountInAddresses( + blockFrost, + FLESH, + [ + "addr1qx7454h55m7mddcqfjm36fm7nmy8n09360w3mqgn8ucsqc6676h2cefplfw3ja5fy3903a4xpaletxqk0pmt2ykwym7sp0un3u", // community wallet + "addr1qxpeczj2lluh88sa2g3tm0e3fj39c34rlctmvcszjs67g6wjj9djsz0020h68nz3rxknzdh93nryqzhq6h9z0nnzf0rshrectt", // tosidrop distribution + "addr1w858jt2qn8c7zaw4fdpccpeejwjsd38guu9kx3qmchg2k0cymsdmg", // dripdropz distribution + "addr1qxkmr0m22xeqludcg5rjdmecjxasu9fat0680qehtcsnftaadgykewa9ufvegeuca9yyq03d9v7ea2y2zthgu7hfgjtsddp6gr", // minswap farm distribution + ] + ); + + const burnRaw = await getAmountInAddresses(blockFrost, FLESH, [ + "addr1w8t6qhfx7cty7pg805adz62gjfkld0c70usezv4e4uxfk0sf0e2mj", // burn wallet + ]); + + const uncirculated = Number(treasury_team_and_distributorsRaw) / 1e1; + const burn = Number(burnRaw) / 1e1; + return { + circulating: (total - uncirculated - burn).toString(), + total: (total - burn).toString(), + }; +}; + +export default fetcher; diff --git a/src/tokens/mtc.ts b/src/tokens/mtc.ts index 42873aa1..3867a468 100644 --- a/src/tokens/mtc.ts +++ b/src/tokens/mtc.ts @@ -1,9 +1,32 @@ -import { SupplyFetcher } from "../types"; +import { defaultFetcherOptions, SupplyFetcher } from "../types"; +import { getAmountInAddresses, getBlockFrostInstance } from "../utils"; -const fetcher: SupplyFetcher = async () => { +const MTC = "f6ac48c64aa7af16434d9f84e014d11fba38525b436acc338ff20b0d4d7463"; + +const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => { + const blockFrost = getBlockFrostInstance(options); const total = 1_000_000; + const treasury_team_and_distributorsRaw = await getAmountInAddresses( + blockFrost, + MTC, + [ + "addr1q8yll2vw2h2dhv7fccdxwfm95puje3zelredzmw97w34hdwm9dndrhqfvas9nvg7rgn8wrwnzxsj7wp2msuthuvfuwsq9e905k", // team 1 + "addr1q9hsauvnf9dt88skshp76t45hp27c9p6y9rv6au74s43uqjx7gax6jgkwyn7vhvqet6n05quma2y5wdghj5arlzmmjpq2xyg4t", // team 2 + "addr1qx42lkkh8qhnetve4cmx74mzqx4qkssxz9ltmsn8nmgcxxs6gw4tkslgkhp8m2pgkedxlhtx7e8k5dj5xn7yt88p54kq69nh0h", // team 3 + "addr1wxqg5vgp3fsh6ddmr0vhc5xuhrckhyav9emdtwpfmafaf5q63x6rc", // dripdropz distribution + "addr1qx3wvec7uhweerzqaeezzepmrwft8sfpucgk50tsuluz8f8cfhlykwhxy66aazkjmfp4euf0yhpeezx3exncm7e69pvs7jetw6", // starcada distribution + ] + ); + + const burnRaw = await getAmountInAddresses(blockFrost, MTC, [ + "addr1w8qvvu0m5jpkgxn3hwfd829hc5kfp0cuq83tsvgk44752dsea0svn", // burn wallet + ]); + + const uncirculated = Number(treasury_team_and_distributorsRaw); + const burn = Number(burnRaw); return { - total: total.toString(), + circulating: (total - uncirculated - burn).toString(), + total: (total - burn).toString(), }; };