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

Update flesh, mtc, ashib, add fleshFetcher #341

Merged
merged 2 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -429,4 +430,6 @@ export const supplyFetchers: Record<string, SupplyFetcher> = {
girlfrenFetcher,
c80d335ae2206381ae3dfe07b1ef38e43af95736e7f5d4f150663c255241555349:
rausiFetcher,
a1ce0414d79b040f986f3bcd187a7563fd26662390dece6b12262b52464c45534820544f4b454e:
fleshFetcher,
};
17 changes: 17 additions & 0 deletions src/tokens/ashib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
};
};
Expand Down
33 changes: 33 additions & 0 deletions src/tokens/flesh.ts
Original file line number Diff line number Diff line change
@@ -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;
29 changes: 26 additions & 3 deletions src/tokens/mtc.ts
Original file line number Diff line number Diff line change
@@ -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(),
};
};

Expand Down
Loading