From 183a7a83e522385bc2db85459c8cb48dabe3e6d4 Mon Sep 17 00:00:00 2001 From: NFTKri <166889251+NFTKri@users.noreply.github.com> Date: Sat, 6 Jul 2024 17:38:41 -0400 Subject: [PATCH 01/18] Create scale.ts --- src/tokens/scale.ts | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/tokens/scale.ts diff --git a/src/tokens/scale.ts b/src/tokens/scale.ts new file mode 100644 index 00000000..71c1b795 --- /dev/null +++ b/src/tokens/scale.ts @@ -0,0 +1,29 @@ +import { defaultFetcherOptions, SupplyFetcher } from "../types"; +import { getAmountInAddresses, getBlockFrostInstance } from "../utils"; + +const SCALE = "1f01188ffed79a9296d824c49eec851c21ea860e7c4f88324de50f2c7363616c65"; + +const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => { + const blockFrost = getBlockFrostInstance(options); + const total = 40_000_000; + const treasuryRaw = await getAmountInAddresses(blockFrost, SCALE, [ + "stake1u8mceu7uqd943my6k3mmja9j7rm5kjg7ezgnzwcfqvranfsl0p2ku", // $scale.ipdholder + "stake1uy9tsassdgfqpkdxmtusnd7r39z3j5sp2judhl7g449jltgr4kkx5", // $partner.market + "stake1u86fxn5kx4s0qsh0zj4xkzs4xsrkl9pku3xjughdyhva86qhs4eem", // $scale.ispo.drip + "stake1u8sm7tl8u0n6yc8vlzpds06cpqclen490tptxn223zaq20scvlgtj", // $scale.vaultfeed + "stake1uykxdu30uduseadh5zwj43f88um8dr9y6renkf6e9mjerys84df64", // $scale.vesting + ]); + + const burnRaw = await getAmountInAddresses(blockFrost, SCALE, [ + "addr1w8qmxkacjdffxah0l3qg8hq2pmvs58q8lcy42zy9kda2ylc6dy5r4", // burn address + ]); + + const treasury = Number(treasuryRaw); + const burn = Number(burnRaw); + return { + circulating: (total - treasury - burn).toString(), + total: (total - burn).toString(), + }; +}; + +export default fetcher; From 2c6233953f631d206a053a773f6c685fbbe6c38d Mon Sep 17 00:00:00 2001 From: NFTKri <166889251+NFTKri@users.noreply.github.com> Date: Sat, 6 Jul 2024 17:41:00 -0400 Subject: [PATCH 02/18] Update index.ts --- src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.ts b/src/index.ts index dd530bca..3059816b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -123,6 +123,7 @@ import rjvFetcher from "./tokens/rjv"; import rsbtcFetcher from "./tokens/rsbtc"; import rsergFetcher from "./tokens/rserg"; import rsrsnFetcher from "./tokens/rsrsn"; +import scale from "./tokens/scale"; import shardsFetcher from "./tokens/shards"; import sharkyFetcher from "./tokens/sharky"; import sharlFetcher from "./tokens/sharl"; @@ -438,4 +439,6 @@ export const supplyFetchers: Record = { rausiFetcher, a1ce0414d79b040f986f3bcd187a7563fd26662390dece6b12262b52464c45534820544f4b454e: fleshFetcher, + "1f01188ffed79a9296d824c49eec851c21ea860e7c4f88324de50f2c7363616c65": + scaleFetcher, }; From c8a4469ee7c25503a7771eeddf03ea9eb8628e18 Mon Sep 17 00:00:00 2001 From: NFTKri <166889251+NFTKri@users.noreply.github.com> Date: Sat, 6 Jul 2024 17:44:03 -0400 Subject: [PATCH 03/18] Update index.ts --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 3059816b..cd0e1b6c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -439,6 +439,6 @@ export const supplyFetchers: Record = { rausiFetcher, a1ce0414d79b040f986f3bcd187a7563fd26662390dece6b12262b52464c45534820544f4b454e: fleshFetcher, - "1f01188ffed79a9296d824c49eec851c21ea860e7c4f88324de50f2c7363616c65": + 1f01188ffed79a9296d824c49eec851c21ea860e7c4f88324de50f2c7363616c65: scaleFetcher, }; From 26bc788cd6e02cc4d0972fd14be3d0fbb91c55f9 Mon Sep 17 00:00:00 2001 From: NFTKri <166889251+NFTKri@users.noreply.github.com> Date: Sat, 6 Jul 2024 17:46:07 -0400 Subject: [PATCH 04/18] Update index.ts --- src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index cd0e1b6c..b3d85f65 100644 --- a/src/index.ts +++ b/src/index.ts @@ -439,6 +439,5 @@ export const supplyFetchers: Record = { rausiFetcher, a1ce0414d79b040f986f3bcd187a7563fd26662390dece6b12262b52464c45534820544f4b454e: fleshFetcher, - 1f01188ffed79a9296d824c49eec851c21ea860e7c4f88324de50f2c7363616c65: - scaleFetcher, + "1f01188ffed79a9296d824c49eec851c21ea860e7c4f88324de50f2c7363616c65": scaleFetcher, }; From 5a8a8dc800915d0ea724030b99d00e6bbb421691 Mon Sep 17 00:00:00 2001 From: NFTKri <166889251+NFTKri@users.noreply.github.com> Date: Sat, 6 Jul 2024 17:47:11 -0400 Subject: [PATCH 05/18] Update index.ts --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index b3d85f65..1ae4bba4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -123,7 +123,7 @@ import rjvFetcher from "./tokens/rjv"; import rsbtcFetcher from "./tokens/rsbtc"; import rsergFetcher from "./tokens/rserg"; import rsrsnFetcher from "./tokens/rsrsn"; -import scale from "./tokens/scale"; +import scaleFetcher from "./tokens/scale"; import shardsFetcher from "./tokens/shards"; import sharkyFetcher from "./tokens/sharky"; import sharlFetcher from "./tokens/sharl"; From 620a7d162a17bee6a294a670e2fedbf20be7e341 Mon Sep 17 00:00:00 2001 From: NFTKri <166889251+NFTKri@users.noreply.github.com> Date: Sat, 6 Jul 2024 17:48:04 -0400 Subject: [PATCH 06/18] Update index.ts --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 1ae4bba4..d4489d51 100644 --- a/src/index.ts +++ b/src/index.ts @@ -439,5 +439,6 @@ export const supplyFetchers: Record = { rausiFetcher, a1ce0414d79b040f986f3bcd187a7563fd26662390dece6b12262b52464c45534820544f4b454e: fleshFetcher, - "1f01188ffed79a9296d824c49eec851c21ea860e7c4f88324de50f2c7363616c65": scaleFetcher, + "1f01188ffed79a9296d824c49eec851c21ea860e7c4f88324de50f2c7363616c65": + scaleFetcher, }; From b04250da291d90709535b637cf986bbf426abb49 Mon Sep 17 00:00:00 2001 From: NFTKri <166889251+NFTKri@users.noreply.github.com> Date: Sat, 6 Jul 2024 17:50:22 -0400 Subject: [PATCH 07/18] Update index.ts --- src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index d4489d51..a2db7a67 100644 --- a/src/index.ts +++ b/src/index.ts @@ -439,6 +439,5 @@ export const supplyFetchers: Record = { rausiFetcher, a1ce0414d79b040f986f3bcd187a7563fd26662390dece6b12262b52464c45534820544f4b454e: fleshFetcher, - "1f01188ffed79a9296d824c49eec851c21ea860e7c4f88324de50f2c7363616c65": - scaleFetcher, + 1f01188ffed79a9296d824c49eec851c21ea860e7c4f88324de50f2c7363616c65: scaleFetcher, }; From 0056aebff5ccc5f1e1b08cb46e3e04781a409e8e Mon Sep 17 00:00:00 2001 From: NFTKri <166889251+NFTKri@users.noreply.github.com> Date: Sat, 6 Jul 2024 17:51:36 -0400 Subject: [PATCH 08/18] Update index.ts --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index a2db7a67..af81190c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -439,5 +439,6 @@ export const supplyFetchers: Record = { rausiFetcher, a1ce0414d79b040f986f3bcd187a7563fd26662390dece6b12262b52464c45534820544f4b454e: fleshFetcher, - 1f01188ffed79a9296d824c49eec851c21ea860e7c4f88324de50f2c7363616c65: scaleFetcher, + 1f01188ffed79a9296d824c49eec851c21ea860e7c4f88324de50f2c7363616c65: + scaleFetcher, }; From 6e8c3bf6223f82c1935605d0792860bf78381e85 Mon Sep 17 00:00:00 2001 From: NFTKri <166889251+NFTKri@users.noreply.github.com> Date: Sat, 6 Jul 2024 17:52:30 -0400 Subject: [PATCH 09/18] Update index.ts --- src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index af81190c..1ae4bba4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -439,6 +439,5 @@ export const supplyFetchers: Record = { rausiFetcher, a1ce0414d79b040f986f3bcd187a7563fd26662390dece6b12262b52464c45534820544f4b454e: fleshFetcher, - 1f01188ffed79a9296d824c49eec851c21ea860e7c4f88324de50f2c7363616c65: - scaleFetcher, + "1f01188ffed79a9296d824c49eec851c21ea860e7c4f88324de50f2c7363616c65": scaleFetcher, }; From f6fcac7874945ed79e79b3b4b600cad3624f978a Mon Sep 17 00:00:00 2001 From: NFTKri <166889251+NFTKri@users.noreply.github.com> Date: Sat, 6 Jul 2024 17:53:29 -0400 Subject: [PATCH 10/18] Update index.ts --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 1ae4bba4..d4489d51 100644 --- a/src/index.ts +++ b/src/index.ts @@ -439,5 +439,6 @@ export const supplyFetchers: Record = { rausiFetcher, a1ce0414d79b040f986f3bcd187a7563fd26662390dece6b12262b52464c45534820544f4b454e: fleshFetcher, - "1f01188ffed79a9296d824c49eec851c21ea860e7c4f88324de50f2c7363616c65": scaleFetcher, + "1f01188ffed79a9296d824c49eec851c21ea860e7c4f88324de50f2c7363616c65": + scaleFetcher, }; From 9e9ef54668281ff579c1f8a810f5d9e743b37663 Mon Sep 17 00:00:00 2001 From: NFTKri <166889251+NFTKri@users.noreply.github.com> Date: Sat, 6 Jul 2024 17:54:56 -0400 Subject: [PATCH 11/18] Update index.ts --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index d4489d51..2397f2ed 100644 --- a/src/index.ts +++ b/src/index.ts @@ -439,6 +439,6 @@ export const supplyFetchers: Record = { rausiFetcher, a1ce0414d79b040f986f3bcd187a7563fd26662390dece6b12262b52464c45534820544f4b454e: fleshFetcher, - "1f01188ffed79a9296d824c49eec851c21ea860e7c4f88324de50f2c7363616c65": + "1f01188ffed79a9296d824c49eec851c21ea860e7c4f88324de50f2c7363616c65": scaleFetcher, }; From 654e99a93c73e721f1cfea668d693ca74cc1aef1 Mon Sep 17 00:00:00 2001 From: NFTKri <166889251+NFTKri@users.noreply.github.com> Date: Sat, 6 Jul 2024 22:49:17 -0400 Subject: [PATCH 12/18] Create slop.ts --- src/tokens/slop.ts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/tokens/slop.ts diff --git a/src/tokens/slop.ts b/src/tokens/slop.ts new file mode 100644 index 00000000..f6c5bd74 --- /dev/null +++ b/src/tokens/slop.ts @@ -0,0 +1,26 @@ +import { defaultFetcherOptions, SupplyFetcher } from "../types"; +import { getAmountInAddresses, getBlockFrostInstance } from "../utils"; + +const SLOP = "ea02c99c0668891d6b7cdc49e075cbddf9cd5b89404e5a8a8e5d7016534c4f5020436f696e"; + +const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => { + const blockFrost = getBlockFrostInstance(options); + const total = 1_000_000_000; + const treasuryRaw = await getAmountInAddresses(blockFrost, SLOP, [ + "stake1u8ugkt7a7p8wl4635lsjamepma9dvtyhye378g6z8vuvrqqujky50", // $slop + "stake1u9l00ughh8q2v7a6gd20fl3z2nq2ft0g4c2rr4pvucjwmvs2a9vfs", // $hogsweeper + ]); + + const burnRaw = await getAmountInAddresses(blockFrost, SLOP, [ + "addr1w8qmxkacjdffxah0l3qg8hq2pmvs58q8lcy42zy9kda2ylc6dy5r4", // burn address + ]); + + const treasury = Number(treasuryRaw); + const burn = Number(burnRaw); + return { + circulating: (total - treasury - burn).toString(), + total: (total - burn).toString(), + }; +}; + +export default fetcher; From 24868355ad67b0fff510034cce9d8e7e5000173f Mon Sep 17 00:00:00 2001 From: NFTKri <166889251+NFTKri@users.noreply.github.com> Date: Sat, 6 Jul 2024 22:52:46 -0400 Subject: [PATCH 13/18] Update index.ts --- src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.ts b/src/index.ts index 2397f2ed..03195216 100644 --- a/src/index.ts +++ b/src/index.ts @@ -128,6 +128,7 @@ import shardsFetcher from "./tokens/shards"; import sharkyFetcher from "./tokens/sharky"; import sharlFetcher from "./tokens/sharl"; import shenFetcher from "./tokens/shen"; +import slopFetcher from ".tokens/slop:; import smokeFetcher from "./tokens/smoke"; import snekFetcher from "./tokens/snek"; import snepeFetcher from "./tokens/snepe"; @@ -441,4 +442,6 @@ export const supplyFetchers: Record = { fleshFetcher, "1f01188ffed79a9296d824c49eec851c21ea860e7c4f88324de50f2c7363616c65": scaleFetcher, + "ea02c99c0668891d6b7cdc49e075cbddf9cd5b89404e5a8a8e5d7016534c4f5020436f696e": + slopFetcher, }; From 6e2450fa9f1f045c014ccc16a4c366d30e22d4d0 Mon Sep 17 00:00:00 2001 From: NFTKri <166889251+NFTKri@users.noreply.github.com> Date: Sat, 6 Jul 2024 22:53:51 -0400 Subject: [PATCH 14/18] Update index.ts --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 03195216..b2381db3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -128,7 +128,7 @@ import shardsFetcher from "./tokens/shards"; import sharkyFetcher from "./tokens/sharky"; import sharlFetcher from "./tokens/sharl"; import shenFetcher from "./tokens/shen"; -import slopFetcher from ".tokens/slop:; +import slopFetcher from ".tokens/slop"; import smokeFetcher from "./tokens/smoke"; import snekFetcher from "./tokens/snek"; import snepeFetcher from "./tokens/snepe"; From b0b83c5e6ce5a308459c3b9518866947ed546975 Mon Sep 17 00:00:00 2001 From: NFTKri <166889251+NFTKri@users.noreply.github.com> Date: Sat, 6 Jul 2024 22:55:03 -0400 Subject: [PATCH 15/18] Update index.ts --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index b2381db3..8674d516 100644 --- a/src/index.ts +++ b/src/index.ts @@ -442,6 +442,6 @@ export const supplyFetchers: Record = { fleshFetcher, "1f01188ffed79a9296d824c49eec851c21ea860e7c4f88324de50f2c7363616c65": scaleFetcher, - "ea02c99c0668891d6b7cdc49e075cbddf9cd5b89404e5a8a8e5d7016534c4f5020436f696e": + ea02c99c0668891d6b7cdc49e075cbddf9cd5b89404e5a8a8e5d7016534c4f5020436f696e: slopFetcher, }; From c9708ced14430fb4bc7f654df281c1e7015133a6 Mon Sep 17 00:00:00 2001 From: NFTKri <166889251+NFTKri@users.noreply.github.com> Date: Sat, 6 Jul 2024 22:56:27 -0400 Subject: [PATCH 16/18] Update index.ts fixing format --- src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 8674d516..cb7bbc32 100644 --- a/src/index.ts +++ b/src/index.ts @@ -442,6 +442,5 @@ export const supplyFetchers: Record = { fleshFetcher, "1f01188ffed79a9296d824c49eec851c21ea860e7c4f88324de50f2c7363616c65": scaleFetcher, - ea02c99c0668891d6b7cdc49e075cbddf9cd5b89404e5a8a8e5d7016534c4f5020436f696e: - slopFetcher, + ea02c99c0668891d6b7cdc49e075cbddf9cd5b89404e5a8a8e5d7016534c4f5020436f696e: slopFetcher, }; From 5fde51d4a0e8f05b42bc1176b1d7a999e11cbfe5 Mon Sep 17 00:00:00 2001 From: NFTKri <166889251+NFTKri@users.noreply.github.com> Date: Sat, 6 Jul 2024 22:58:25 -0400 Subject: [PATCH 17/18] Update index.ts correcting format --- src/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index cb7bbc32..3f1edbc2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -128,7 +128,7 @@ import shardsFetcher from "./tokens/shards"; import sharkyFetcher from "./tokens/sharky"; import sharlFetcher from "./tokens/sharl"; import shenFetcher from "./tokens/shen"; -import slopFetcher from ".tokens/slop"; +import slopFetcher from "./tokens/slop"; import smokeFetcher from "./tokens/smoke"; import snekFetcher from "./tokens/snek"; import snepeFetcher from "./tokens/snepe"; @@ -442,5 +442,6 @@ export const supplyFetchers: Record = { fleshFetcher, "1f01188ffed79a9296d824c49eec851c21ea860e7c4f88324de50f2c7363616c65": scaleFetcher, - ea02c99c0668891d6b7cdc49e075cbddf9cd5b89404e5a8a8e5d7016534c4f5020436f696e: slopFetcher, + ea02c99c0668891d6b7cdc49e075cbddf9cd5b89404e5a8a8e5d7016534c4f5020436f696e: + slopFetcher, }; From bccbb1418a539a8124484b785cf9413c91382d8b Mon Sep 17 00:00:00 2001 From: NFTKri <166889251+NFTKri@users.noreply.github.com> Date: Sat, 6 Jul 2024 22:59:39 -0400 Subject: [PATCH 18/18] Update index.ts --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 3f1edbc2..b2c37ded 100644 --- a/src/index.ts +++ b/src/index.ts @@ -442,6 +442,6 @@ export const supplyFetchers: Record = { fleshFetcher, "1f01188ffed79a9296d824c49eec851c21ea860e7c4f88324de50f2c7363616c65": scaleFetcher, - ea02c99c0668891d6b7cdc49e075cbddf9cd5b89404e5a8a8e5d7016534c4f5020436f696e: + ea02c99c0668891d6b7cdc49e075cbddf9cd5b89404e5a8a8e5d7016534c4f5020436f696e: slopFetcher, };