Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowkora authored Sep 11, 2024
2 parents d405865 + 254a623 commit 18bb7fc
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ 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";
import porkeFetcher from "./tokens/porke";
import proxiesFetcher from "./tokens/proxies";
Expand Down Expand Up @@ -148,6 +149,7 @@ import spxFetcher from "./tokens/spx";
import squeakFetcher from "./tokens/squeak";
import ssssFetcher from "./tokens/ssss";
import stableFetcher from "./tokens/stable";
import strikeFetcher from "./tokens/strike";
import sundaeFetcher from "./tokens/sundae";
import tedyFetcher from "./tokens/tedy";
import tetFetcher from "./tokens/tet";
Expand Down Expand Up @@ -175,6 +177,8 @@ export * from "./types";
export const supplyFetchers: Record<string, SupplyFetcher> = {
"338c17dffaaefdb97ace91100724836178c3f9dd994a4798a66f546d4d414e4e59":
mannyFetcher,
f13ac4d66b3ee19a6aa0f2a22298737bd907cc95121662fc971b5275535452494b45:
strikeFetcher,
"633f2e2c5280417c6b76055eda54fc07de984c122c01573ea4a9e8234361746e6970":
catnipFetcher,
"29d222ce763455e3d7a09a665ce554f00ac89d2e99a1a83d267170c64d494e": minFetcher,
Expand Down Expand Up @@ -465,4 +469,6 @@ export const supplyFetchers: Record<string, SupplyFetcher> = {
"05c4bcecccff054c9aefff8bdc310e1edb8baa0756d912b47ae45d694d65656d":
meemFetcher,
b9ae7e3566ad889aae93f500746869e7b3c71480329acd0a9bc01652555341: usaFetcher,
"9d8c863907e6e58823c9af13759e196dbf5da172b7d4ce37d5d1147950494755":
piguFetcher,
};
11 changes: 11 additions & 0 deletions src/tokens/pigu.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { SupplyFetcher } from "../types";

const fetcher: SupplyFetcher = async () => {
const total = 1_000_000_000; // 1B
return {
circulating: total.toString(),
total: total.toString(),
};
};

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

const STRIKE =
"f13ac4d66b3ee19a6aa0f2a22298737bd907cc95121662fc971b5275535452494b45";

const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);
const total = 25_000_000;
const treasuryRaw = await getAmountInAddresses(blockFrost, STRIKE, [
"addr1wxfsprv3e2ar80tf2rkex08673llh6rewhgfpzmeeqgnekqv3n2ps", // team vesting
"addr1qx8xgm3zrytup3mdgzxf93d6hc4x6dxywmzhnste6kzhe4lvvwe5f7xtt25s5fyftlm468rnjznztvgn9p0gvvr72p5qhfgyug", // DAO
]);

const treasury = Number(treasuryRaw) / 1e6;
return {
circulating: (total - treasury).toString(),
total: total.toString(),
};
};

export default fetcher;

0 comments on commit 18bb7fc

Please sign in to comment.