GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — rigs/ethereum/scripts/allowlist.ts at main · tablelandnetwork/rigs Expand file tree/ Copy pathallowlist.tsMore file actions 41 lines (36 loc) · 1.32 KB / Copy pathallowlist.tsFile metadata and controls41 lines (36 loc) · 1.32 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 import { rigsConfig } from "hardhat"; import { buildTree, countList, getListFromCSVs } from "../helpers/allowlist"; import assert from "assert"; async function main() { console.log(`\nGenerating lists...`); // Build allow lists const allowlist = await getListFromCSVs(rigsConfig.allowlistFiles); const allowlistTree = buildTree(allowlist); const allowlistAllowances = countList(allowlist); const waitlist = await getListFromCSVs(rigsConfig.waitlistFiles); const waitlistTree = buildTree(waitlist); const waitlistAllowances = countList(waitlist); console.log( `Allowlist has ${allowlistTree.getLeafCount()} entries and ${allowlistAllowances} total allowances with root:`, allowlistTree.getHexRoot() ); console.log( `Waitlist has ${waitlistTree.getLeafCount()} entries and ${waitlistAllowances} total allowances with root:`, waitlistTree.getHexRoot() ); // Ensure we have correct allowances assert( allowlistAllowances === rigsConfig.maxSupply, `allowlist total allowances does not equal max supply ${rigsConfig.maxSupply}` ); assert( waitlistAllowances === rigsConfig.waitlistSize, `waitlist total allowances does not equal waitlist size ${rigsConfig.waitlistSize}` ); } main() .then(() => process.exit(0)) .catch((error) => { console.error(error); process.exit(1); }); |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |