Skip to content

Commit

Permalink
feat: new drops, working drop checker and missing images
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Harley committed Jan 2, 2022
1 parent 09a6316 commit 88ec3a2
Show file tree
Hide file tree
Showing 13 changed files with 77 additions and 4 deletions.
8 changes: 8 additions & 0 deletions data.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import fs from "fs";
import drops from "./data/drops.json";

const NOW = new Date();
Expand Down Expand Up @@ -25,6 +26,13 @@ function verify(drop: any) {
return "Invalid claim link";
}

if (
!fs.existsSync(`./public/images/${drop.symbol.toLowerCase()}.png`) &&
!fs.existsSync(`./public/images/${drop.network.toLowerCase()}.png`)
) {
return "Missing image";
}

return true;
}

Expand Down
65 changes: 62 additions & 3 deletions data/drops.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@
"name": "Lum Network",
"symbol": "LUM",
"announcementLink": "https://medium.com/lum-network/lum-token-distribution-launch-schedule-95e2a2ff68a6",
"claimLink": "https://airdrop.lum.network/",
"claimLink": "https://wallet.lum.network/welcome/",
"homeLink": "https://lum.network",
"ecosystems": ["cosmos"]
"ecosystems": ["cosmos"],
"startDate": "2021-12-15"
},
{
"network": "desmos",
Expand All @@ -74,7 +75,7 @@
{
"network": "stargaze",
"name": "Stargaze",
"symbol": "GAZE",
"symbol": "STARS",
"homeLink": "https://stargaze.zone/airdrop",
"announcementLink": "https://mirror.xyz/stargazezone.eth/h9Bc7jODUrYB1Jw4mve3QEGVkBwBsyVebN6NP7tRl_Y",
"ecosystems": ["cosmos"]
Expand Down Expand Up @@ -169,5 +170,63 @@
"claimLink": "https://app.deversifi.com/swap?symbol=ETH:USDT",
"announcementLink": "https://deversifi.com/blog/clarifying-the-dvf-airdrop-methodology",
"ecosystems": ["ethereum"]
},

{
"network": "juno",
"name": "Neta",
"symbol": "NETA",
"startDate": "2022-02-01",
"endDate": "2022-02-31",
"homeLink": "https://www.neta.money/",
"announcementLink": "https://www.neta.money/NETA_Money.pdf",
"ecosystems": ["cosmos"]
},
{
"network": "chihuahua",
"name": "Chihuahua",
"symbol": "HUAHUA",
"startDate": "2021-12-15",
"homeLink": "https://chi.huahua.wtf/",
"claimLink": "https://omniflix.chihuahua.wtf/",
"announcementLink": "https://twitter.com/ChihuahuaChain/status/1470731288806047747",
"ecosystems": ["cosmos"]
},
{
"network": "evmos",
"name": "Evmos",
"symbol": "EVMOS",
"startDate": "2022-01-15",
"homeLink": "https://evmos.org/",
"announcementLink": "https://evmos.blog/the-evmos-rektdrop-abbe931ba823",
"ecosystems": ["cosmos", "ethereum"]
},
{
"network": "bitsong",
"name": "BitSong",
"symbol": "BTSG",
"startDate": "2021-12-29",
"homeLink": "https://bitsong.io/",
"announcementLink": "https://twitter.com/bitangel84/status/1473734182685884429",
"claimLink": "https://twitter.com/bitangel84/status/1473734182685884429",
"ecosystems": ["cosmos"]
},
{
"network": "likecoin",
"name": "LikeCoin",
"symbol": "LIKE",
"startDate": "2021-12-08",
"homeLink": "https://about.like.co/",
"announcementLink": "https://stake.like.co/proposals/25",
"claimLink": "https://stake.like.co/welcome/",
"ecosystems": ["cosmos"]
},
{
"network": "avalanche",
"name": "DeFi Kingdoms",
"symbol": "CRYSTAL",
"announcementLink": "https://medium.com/@Samichpunch/defi-kingdoms-expansion-to-avalanche-crystal-airdrops-and-gleading-up-to-expansion-c78d9be01140",
"homeLink": "https://defikingdoms.com/",
"ecosystems": ["avalanche"]
}
]
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
transform: {
"\\.ts$": ["babel-jest", { configFile: "./test-babel.config.js" }],
},
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "next lint",
"test": "jest"
},
"dependencies": {
"@headlessui/react": "^1.4.2",
Expand Down
File renamed without changes
Binary file added public/images/btsg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/crystal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/deversifi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/evmos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/huahua.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/like.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/neta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.

0 comments on commit 88ec3a2

Please sign in to comment.