From 1554ff25274ca32af244885d6f50b7c330f7428f Mon Sep 17 00:00:00 2001 From: Haz Date: Tue, 17 Oct 2023 22:33:23 +0100 Subject: [PATCH 1/5] Added SNEPE --- src/tokens/snepe.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/tokens/snepe.ts diff --git a/src/tokens/snepe.ts b/src/tokens/snepe.ts new file mode 100644 index 00000000..6bbd29ab --- /dev/null +++ b/src/tokens/snepe.ts @@ -0,0 +1,18 @@ +import { defaultFetcherOptions, SupplyFetcher } from "../types"; +import { getAmountInAddresses, getBlockFrostInstance } from "../utils"; + +const SNEPE = "b3bd74dd43f83815519e387bdffd1cb9be411df8f2774f48e0fd3669534e455045"; + +const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => { + const blockFrost = getBlockFrostInstance(options); + const total = 420_000_000_069n; + const treasury = await getAmountInAddresses(blockFrost, SNEPE, [ + "stake1uxhrhn6n0kszpkrvcn32hrqqx3jmna9n37w9n335u3x54sc5ats0c", // SNEPE treasury + ]); + return { + circulating: (total - treasury).toString(), + total: (total - treasury).toString(), + }; +}; + +export default fetcher; From 323ab702db1cda7dc1196dd35fe2f0a3426604ea Mon Sep 17 00:00:00 2001 From: Haz Date: Tue, 17 Oct 2023 22:37:55 +0100 Subject: [PATCH 2/5] Formatting --- src/tokens/snepe.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tokens/snepe.ts b/src/tokens/snepe.ts index 6bbd29ab..66651449 100644 --- a/src/tokens/snepe.ts +++ b/src/tokens/snepe.ts @@ -1,7 +1,8 @@ import { defaultFetcherOptions, SupplyFetcher } from "../types"; import { getAmountInAddresses, getBlockFrostInstance } from "../utils"; -const SNEPE = "b3bd74dd43f83815519e387bdffd1cb9be411df8f2774f48e0fd3669534e455045"; +const SNEPE = + "b3bd74dd43f83815519e387bdffd1cb9be411df8f2774f48e0fd3669534e455045"; const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => { const blockFrost = getBlockFrostInstance(options); From 1bd7b74d199c125e60f3bc7fb7f04c3362fbe7db Mon Sep 17 00:00:00 2001 From: Haz Date: Tue, 17 Oct 2023 22:53:11 +0100 Subject: [PATCH 3/5] Formatting --- src/index.ts | 3 +++ src/tokens/snepe.ts | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 20b825ce..d6102729 100644 --- a/src/index.ts +++ b/src/index.ts @@ -59,6 +59,7 @@ import prsprFetcher from "./tokens/prspr"; import rjvFetcher from "./tokens/rjv"; import shenFetcher from "./tokens/shen"; import snekFetcher from "./tokens/snek"; +import snepeFetcher from "./tokens/snepe"; import snowFetcher from "./tokens/snow"; import societyFetcher from "./tokens/society"; import spfFetcher from "./tokens/spf"; @@ -210,4 +211,6 @@ export const supplyFetchers: Record = { "52162581184a457fad70470161179c5766f00237d4b67e0f1df1b4e65452544c": trtlFetcher, "09f2d4e4a5c3662f4c1e6a7d9600e9605279dbdcedb22d4507cb6e75": spfFetcher, + b3bd74dd43f83815519e387bdffd1cb9be411df8f2774f48e0fd3669534e455045: + snepeFetcher, }; diff --git a/src/tokens/snepe.ts b/src/tokens/snepe.ts index 66651449..c5ad4e97 100644 --- a/src/tokens/snepe.ts +++ b/src/tokens/snepe.ts @@ -4,7 +4,7 @@ import { getAmountInAddresses, getBlockFrostInstance } from "../utils"; const SNEPE = "b3bd74dd43f83815519e387bdffd1cb9be411df8f2774f48e0fd3669534e455045"; -const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => { +const snepeFetcher: SupplyFetcher = async (options = defaultFetcherOptions) => { const blockFrost = getBlockFrostInstance(options); const total = 420_000_000_069n; const treasury = await getAmountInAddresses(blockFrost, SNEPE, [ @@ -16,4 +16,4 @@ const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => { }; }; -export default fetcher; +export default snepeFetcher; From da0870698b315b40778ad7c77a21b1270f2e1d43 Mon Sep 17 00:00:00 2001 From: Haz Date: Tue, 17 Oct 2023 22:59:16 +0100 Subject: [PATCH 4/5] retrigger checks From 04fd66a4c340c920b897578dc0a2d0c4e62f3bf4 Mon Sep 17 00:00:00 2001 From: Haz Date: Tue, 17 Oct 2023 23:01:28 +0100 Subject: [PATCH 5/5] retrigger checks