Skip to content

Commit

Permalink
Merge branch 'main' into feature/add-pigu
Browse files Browse the repository at this point in the history
  • Loading branch information
tehsoul committed Sep 5, 2024
2 parents 1f74319 + 340cade commit 6b3048b
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ import liqwidFetcher from "./tokens/lq";
import lwhFetcher from "./tokens/lwh";
import mannyFetcher from "./tokens/manny";
import mayzFetcher from "./tokens/mayz";
import meemFetcher from "./tokens/meem";
import meldFetcher from "./tokens/meld";
import milkFetcher from "./tokens/milk";
import milkv2Fetcher from "./tokens/milkv2";
Expand All @@ -110,6 +111,7 @@ import nvlFetcher from "./tokens/nvl";
import optFetcher from "./tokens/opt";
import optimFetcher from "./tokens/optim";
import paviaFetcher from "./tokens/pavia";
import peepeeFetcher from "./tokens/peepee";
import pepeblueFetcher from "./tokens/pepeblue";
import piguFetcher from "./tokens/pigu";
import pirateFetcher from "./tokens/pirate";
Expand Down Expand Up @@ -459,6 +461,9 @@ export const supplyFetchers: Record<string, SupplyFetcher> = {
"81926a57a567c11f6dc502254c5ed2d11fdba4ed9f898916699c6f1753414645":
safeFetcher,
dce34158d07be7187401a756a3273b792f6476e2ea09c3f2ae7b229d63756c74: cultFetcher,
"07ccfad78099fef727bfc64de1cf2e684c0872aab3c3bb3bed5e1081": peepeeFetcher,
"05c4bcecccff054c9aefff8bdc310e1edb8baa0756d912b47ae45d694d65656d":
meemFetcher,
"9d8c863907e6e58823c9af13759e196dbf5da172b7d4ce37d5d1147950494755":
piguFetcher,
};
30 changes: 30 additions & 0 deletions src/tokens/meem.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { defaultFetcherOptions, SupplyFetcher } from "../types";
import { getAmountInAddresses, getBlockFrostInstance } from "../utils";

const MEEM = "05c4bcecccff054c9aefff8bdc310e1edb8baa0756d912b47ae45d694d65656d";

const TREASURY_VAULT = [
"addr1vynhwueahpm94x4vdktyenjn9p652rw42v3kh85ghhzgl5cw8jskd", // Faucet
"addr1v858vfzl7hdqduqqa4vsj58nfy9njtw5q98q8tzzds58uncqjezd7", // Casino
];

const FUTURE_BURN_ADDRESSES = [
"addr1w8qmxkacjdffxah0l3qg8hq2pmvs58q8lcy42zy9kda2ylc6dy5r4", //To be burnt
];

const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);
const total = 69e6; // 69,000,000
const treasury = Number(
await getAmountInAddresses(blockFrost, MEEM, TREASURY_VAULT)
);
const burnt = Number(
await getAmountInAddresses(blockFrost, MEEM, FUTURE_BURN_ADDRESSES)
);
return {
circulating: (total - treasury).toString(),
total: (total - burnt).toString(),
};
};

export default fetcher;
26 changes: 26 additions & 0 deletions src/tokens/peepee.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 TOKEN = "07ccfad78099fef727bfc64de1cf2e684c0872aab3c3bb3bed5e1081";

const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);
const total = 3_000_000_000;
const treasuryRaw = await getAmountInAddresses(blockFrost, TOKEN, [
"stake1uxr3vlnzt085c0nyyv4yl7v2zcdewv02x4gslxmdc4cys3scy64vu", // royalties
"stake1799ryumz9g7a6xg8n899lt5g49ru9ccv5v0hhm6856ju54qauwms3", // team
]);

const burnRaw = await getAmountInAddresses(blockFrost, TOKEN, [
"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 6b3048b

Please sign in to comment.