-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: jacobwarren44 <[email protected]> Co-authored-by: Patrik <[email protected]>
- Loading branch information
1 parent
353dc45
commit e21f784
Showing
6 changed files
with
138 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { defaultFetcherOptions, SupplyFetcher } from "../types"; | ||
import { getAmountInAddresses, getBlockFrostInstance } from "../utils"; | ||
|
||
const CATS = "bbb0be3f57598bbf6a7d6ce18a60700beceb6904923a6a555ca0345443415453"; | ||
|
||
const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => { | ||
const blockFrost = getBlockFrostInstance(options); | ||
const total = 88_888_888_888_888_900; | ||
const treasuryRaw = await getAmountInAddresses(blockFrost, CATS, [ | ||
"stake1u923hpvm0kurh8mrav0rcrwfd0qfyguxq3wt9qjlynpqcjgrn8yu8", | ||
"stake1u8fpm0l9wq6ukw7932vwkhlpthhwlk7hx4vx6xe35dzplaq6ckdj5", | ||
"stake1u9a7k0k2t0amdsyyvuyvr6wfdk96egxculjs7ydmehc5ueqljenvv", | ||
]); | ||
|
||
const burnRaw = await getAmountInAddresses(blockFrost, CATS, [ | ||
"addr1w8qmxkacjdffxah0l3qg8hq2pmvs58q8lcy42zy9kda2ylc6dy5r4", //$burnsnek | ||
]); | ||
|
||
const treasury = Number(treasuryRaw); | ||
const burn = Number(burnRaw); | ||
return { | ||
circulating: (total - treasury - burn).toString(), | ||
total: (total - burn).toString(), | ||
}; | ||
}; | ||
|
||
export default fetcher; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { defaultFetcherOptions, SupplyFetcher } from "../types"; | ||
import { getAmountInAddresses, getBlockFrostInstance } from "../utils"; | ||
|
||
const DANZO = "bf3e19192da77dfadc7c9065944e50ca7e1a439d90833e3ae58b720a44414e5a4f"; | ||
|
||
const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => { | ||
const blockFrost = getBlockFrostInstance(options); | ||
const total = 69e9; | ||
const treasuryRaw = await getAmountInAddresses(blockFrost, DANZO, [ | ||
"stake17xnecta77s7r3qp9aryd79tln2wc2qs24sx9gvf4npcyptgqq4p4s", | ||
]); | ||
|
||
const burnRaw = await getAmountInAddresses(blockFrost, DANZO, [ | ||
"addr1w8qmxkacjdffxah0l3qg8hq2pmvs58q8lcy42zy9kda2ylc6dy5r4", //$burnsnek | ||
]); | ||
|
||
const treasury = Number(treasuryRaw); | ||
const burn = Number(burnRaw); | ||
return { | ||
circulating: (total - treasury - burn).toString(), | ||
total: (total - burn).toString(), | ||
}; | ||
}; | ||
|
||
export default fetcher; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { defaultFetcherOptions, SupplyFetcher } from "../types"; | ||
import { getAmountInAddresses, getBlockFrostInstance } from "../utils"; | ||
|
||
const JORGE = "c0a7eb16fa55a982c63976c34af6e42cb1b5aeb9ab2a7aaec06f6cd04a6f726765"; | ||
|
||
const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => { | ||
const blockFrost = getBlockFrostInstance(options); | ||
const total = 1e9; | ||
const treasuryRaw = await getAmountInAddresses(blockFrost, JORGE, [ | ||
"stake1ux438zy2p4e5g8wqg0y8t3ydds02rmaf3eemj38nzn9ydgctfvyne", | ||
"stake1uyft8nlwshrfttzyn8g394d3rx8cck3wusy9l086q35rq9g9e78qd", | ||
"stake1u9psvwyfwskrvz22tlepfsenqzegd5jlyf8mf7hzwhar9mcqncm5y", | ||
]); | ||
|
||
const burnRaw = await getAmountInAddresses(blockFrost, JORGE, [ | ||
"addr1w8qmxkacjdffxah0l3qg8hq2pmvs58q8lcy42zy9kda2ylc6dy5r4", //$burnsnek | ||
]); | ||
|
||
const treasury = Number(treasuryRaw)/1e4; | ||
const burn = Number(burnRaw)/1e4; | ||
return { | ||
circulating: (total - treasury - burn).toString(), | ||
total: (total - burn).toString(), | ||
}; | ||
}; | ||
|
||
export default fetcher; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { defaultFetcherOptions, SupplyFetcher } from "../types"; | ||
import { getAmountInAddresses, getBlockFrostInstance } from "../utils"; | ||
|
||
const NIKE = "c881c20e49dbaca3ff6cef365969354150983230c39520b917f5cf7c4e696b65"; | ||
|
||
const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => { | ||
const blockFrost = getBlockFrostInstance(options); | ||
const total = 1e9; | ||
|
||
const burnRaw = await getAmountInAddresses(blockFrost, NIKE, [ | ||
"addr1w8qmxkacjdffxah0l3qg8hq2pmvs58q8lcy42zy9kda2ylc6dy5r4", //$burnsnek | ||
]); | ||
|
||
const burn = Number(burnRaw); | ||
return { | ||
circulating: (total - burn).toString(), | ||
total: (total - burn).toString(), | ||
}; | ||
}; | ||
|
||
export default fetcher; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { defaultFetcherOptions, SupplyFetcher } from "../types"; | ||
import { getAmountInAddresses, getBlockFrostInstance } from "../utils"; | ||
|
||
const SNOK = "03dc510dbd1d1321edc06d8ae013f55fdd79f390c7415e2a09b64797534e4f4b"; | ||
|
||
const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => { | ||
const blockFrost = getBlockFrostInstance(options); | ||
const total = 1e9; | ||
const treasuryRaw = await getAmountInAddresses(blockFrost, SNOK, [ | ||
"stake17x7ep02m028rqsnrqmse4zyn8nr3v80nkeshq73n2xddxnsmw0uuw", | ||
]); | ||
|
||
const burnRaw = await getAmountInAddresses(blockFrost, SNOK, [ | ||
"addr1w8qmxkacjdffxah0l3qg8hq2pmvs58q8lcy42zy9kda2ylc6dy5r4", //$burnsnek | ||
]); | ||
|
||
const treasury = Number(treasuryRaw); | ||
const burn = Number(burnRaw); | ||
return { | ||
circulating: (total - treasury - burn).toString(), | ||
total: (total - burn).toString(), | ||
}; | ||
}; | ||
|
||
export default fetcher; |