├── .gitattributes ├── .gitignore ├── README.md ├── package.json ├── postcss.config.js ├── public ├── favicon.ico ├── images │ ├── Coin98.png │ ├── MathWallet.svg │ ├── SafePal.svg │ ├── TokenPocket.svg │ ├── TrustWallet.png │ ├── metamaskWallet.png │ ├── ohare.png │ └── walletConnect.svg ├── index.html ├── logo192.png ├── logo512.png ├── manifest.json └── robots.txt ├── src ├── App.js ├── App.test.js ├── components │ ├── Header.jsx │ └── TextField.jsx ├── config │ └── constances.js ├── images │ ├── Coin98.png │ ├── MathWallet.png │ ├── SafePal.png │ ├── TokenPocket.png │ ├── TrustWallet.png │ ├── WalletConnect.png │ ├── metamaskWallet.png │ └── ohare.png ├── index.css ├── index.js ├── logo.svg ├── reportWebVitals.js └── setupTests.js └── tailwind.config.js /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env 17 | .env.local 18 | .env.development.local 19 | .env.test.local 20 | .env.production.local 21 | 22 | npm-debug.log* 23 | yarn-debug.log* 24 | yarn-error.log* 25 | yarn.lock 26 | 27 | node_modules 28 | .env 29 | coverage 30 | coverage.json 31 | typechain 32 | 33 | #Truffle files 34 | /Truffle/build 35 | /Truffle/data -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Getting Started with Create React App 2 | 3 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 4 | 5 | ## Available Scripts 6 | 7 | In the project directory, you can run: 8 | 9 | ### `npm start` 10 | 11 | Runs the app in the development mode.\ 12 | Open [http://localhost:3000](http://localhost:3000) to view it in your browser. 13 | 14 | The page will reload when you make changes.\ 15 | You may also see any lint errors in the console. 16 | 17 | ### `npm test` 18 | 19 | Launches the test runner in the interactive watch mode.\ 20 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 21 | 22 | ### `npm run build` 23 | 24 | Builds the app for production to the `build` folder.\ 25 | It correctly bundles React in production mode and optimizes the build for the best performance. 26 | 27 | The build is minified and the filenames include the hashes.\ 28 | Your app is ready to be deployed! 29 | 30 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 31 | 32 | ### `npm run eject` 33 | 34 | **Note: this is a one-way operation. Once you `eject`, you can't go back!** 35 | 36 | If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. 37 | 38 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own. 39 | 40 | You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it. 41 | 42 | ## Learn More 43 | 44 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 45 | 46 | To learn React, check out the [React documentation](https://reactjs.org/). 47 | 48 | ### Code Splitting 49 | 50 | This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) 51 | 52 | ### Analyzing the Bundle Size 53 | 54 | This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) 55 | 56 | ### Making a Progressive Web App 57 | 58 | This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) 59 | 60 | ### Advanced Configuration 61 | 62 | This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) 63 | 64 | ### Deployment 65 | 66 | This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) 67 | 68 | ### `npm run build` fails to minify 69 | 70 | This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) 71 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ohare", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@emotion/react": "^11.8.2", 7 | "@emotion/styled": "^11.8.1", 8 | "@mui/material": "^5.5.3", 9 | "@testing-library/jest-dom": "^5.16.3", 10 | "@testing-library/react": "^12.1.4", 11 | "@testing-library/user-event": "^13.5.0", 12 | "axios": "^0.26.1", 13 | "moralis": "^1.5.8", 14 | "react": "^18.0.0", 15 | "react-dom": "^18.0.0", 16 | "react-moralis": "^1.3.5", 17 | "react-scripts": "^5.0.0", 18 | "web-vitals": "^2.1.4" 19 | }, 20 | "scripts": { 21 | "start": "react-scripts start", 22 | "build": "react-scripts build", 23 | "test": "react-scripts test", 24 | "eject": "react-scripts eject" 25 | }, 26 | "eslintConfig": { 27 | "extends": [ 28 | "react-app", 29 | "react-app/jest" 30 | ] 31 | }, 32 | "browserslist": { 33 | "production": [ 34 | ">0.2%", 35 | "not dead", 36 | "not op_mini all" 37 | ], 38 | "development": [ 39 | "last 1 chrome version", 40 | "last 1 firefox version", 41 | "last 1 safari version" 42 | ] 43 | }, 44 | "devDependencies": { 45 | "autoprefixer": "^10.4.4", 46 | "postcss": "^8.4.12", 47 | "tailwindcss": "^3.0.23" 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector41/solana-airdrop-frontend/767bc57cf1648b78dacaa8c417f867da6947e640/public/favicon.ico -------------------------------------------------------------------------------- /public/images/Coin98.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector41/solana-airdrop-frontend/767bc57cf1648b78dacaa8c417f867da6947e640/public/images/Coin98.png -------------------------------------------------------------------------------- /public/images/MathWallet.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Logo_Icon_black 5 | Created with Sketch. 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /public/images/SafePal.svg: -------------------------------------------------------------------------------- 1 | 2 | 18 | 20 | 21 | 23 | image/svg+xml 24 | 26 | 形状结合 27 | 28 | 29 | 30 | 32 | 35 | 39 | 43 | 44 | 54 | 55 | 72 | 73 | 形状结合 75 | 81 | Created with Sketch. 83 | 88 | 89 | -------------------------------------------------------------------------------- /public/images/TokenPocket.svg: -------------------------------------------------------------------------------- 1 | 2 | 17 | 19 | 22 | 26 | 27 | 30 | 33 | 34 | 37 | 40 | 41 | 44 | 47 | 48 | 51 | 55 | 56 | 59 | 62 | 63 | 66 | 69 | 70 | 73 | 77 | 78 | 81 | 84 | 85 | 88 | 92 | 93 | 101 | 105 | 109 | 110 | 119 | 123 | 127 | 128 | 129 | 143 | 145 | 146 | 148 | image/svg+xml 149 | 151 | 152 | 153 | 154 | 155 | 160 | 163 | 166 | 168 | 170 | 174 | 175 | 177 | 181 | 182 | 183 | 184 | 185 | 188 | 191 | 193 | 195 | 199 | 201 | 203 | 206 | 209 | 211 | 213 | 216 | 218 | 220 | 223 | 226 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 245 | 248 | 251 | 255 | 256 | 257 | 258 | 259 | 260 | -------------------------------------------------------------------------------- /public/images/TrustWallet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector41/solana-airdrop-frontend/767bc57cf1648b78dacaa8c417f867da6947e640/public/images/TrustWallet.png -------------------------------------------------------------------------------- /public/images/metamaskWallet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector41/solana-airdrop-frontend/767bc57cf1648b78dacaa8c417f867da6947e640/public/images/metamaskWallet.png -------------------------------------------------------------------------------- /public/images/ohare.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector41/solana-airdrop-frontend/767bc57cf1648b78dacaa8c417f867da6947e640/public/images/ohare.png -------------------------------------------------------------------------------- /public/images/walletConnect.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 17 | 18 | 27 | React App 28 | 29 | 30 | 31 |
32 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector41/solana-airdrop-frontend/767bc57cf1648b78dacaa8c417f867da6947e640/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vector41/solana-airdrop-frontend/767bc57cf1648b78dacaa8c417f867da6947e640/public/logo512.png -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import { 2 | Container, 3 | Button, 4 | Grid, 5 | useMediaQuery, 6 | useTheme, 7 | } from "@mui/material"; 8 | import Header from "./components/Header"; 9 | import axios from "axios" 10 | import { ServerURL } from "./config/constances"; 11 | import { useEffect } from "react"; 12 | 13 | function App() { 14 | const theme = useTheme(); 15 | const matches = useMediaQuery(theme.breakpoints.down("sm")); 16 | 17 | useEffect(() => { 18 | axios.get(`${ServerURL}/api`).then(res => { 19 | console.log(res.data) 20 | }) 21 | }, []) 22 | 23 | const uploadHandler = (file) => { 24 | const formData = new FormData(); 25 | formData.append("file", file); 26 | 27 | axios.post(`${ServerURL}/api/file`, formData, { headers: { "Content-Type": "multipart/form-data" } }) 28 | .then(res => { 29 | console.log(res.data) 30 | }) 31 | } 32 | 33 | const requestAirdropHandler = () => { 34 | axios.get(`${ServerURL}/api/airdrop`) 35 | .then(res => { 36 | console.log(res.data); 37 | }) 38 | } 39 | 40 | return ( 41 |
42 |
43 |
44 | 45 |
46 |

53 | Airdrop
Project 54 |

55 | uploadHandler(e.target.files[0])}/> 56 |
57 | 66 | 73 |
74 |
75 |
76 |
77 | 78 |
79 | 80 |

81 | The Project 82 |

83 | 84 | 85 |

86 | Our project is based on a phenomenon that was made popular in 87 | the 80's during the massive Hedge Fund expansion of the time. 88 |

89 |

90 | Traders would deploy a leveraged bet on a commodity, then head 91 | to the Chicago, O'Hare International Airport. 92 |

93 |

94 | If the bet won, they were set for decades. If not, they bought a 95 | one-way ticket to start a new life. 96 |

97 |
98 | 99 |

100 | Luckily, in the world of cryptocurrency regulations we live in, 101 | combined with the beauty of mathematics, we are able to mitigate 102 | the risks of this play while still achieving similar results 103 | through the use of this investment strategy. 104 |

105 |

106 | See whitepages for more. 107 |

108 |
109 |
110 |
111 |
112 |
113 | 114 |

115 | F.A.Q. 116 |

117 | 118 | 119 |

120 | How do wins/loses effect the P/L? 121 |

122 |

123 | If a voted upon play pays off, the treasury profits will be used 124 | in the strategical appreciation of our token immediately. If the 125 | play does not, we will always keep a base amount in the OIF to 126 | maintain coin value. 127 |

128 |
129 | 130 |

131 | How can I participate? 132 |

133 |

134 | Signing our contract will allow you to contribute on the bets 135 | taken, as well as profit from winning investments. 136 |

137 |
138 | 139 |

140 | How do I know this is a legitimate project? 141 |

142 |

143 | Our team is comprised of KYC'd individuals and for guaranteed 144 | security. While rug pulls do exist in the crypto world, a 145 | sustainable business model is much more valuable in this 146 | developing crypto market. 147 |

148 |
149 | 150 |

151 | Who is behind this project? 152 |

153 |

154 | The OP Team is comprised of group of 3 developers, 2 marketers, 155 | and our CEO. Our team has already been KYC approved and will 156 | expand further in the Whitepages for added transparency. Also 157 | note that all new members will be KYC'd when we expand our team. 158 |

159 |
160 |
161 |
162 |
163 | 164 |

165 | Airdrop Project © Copyright {new Date().getFullYear()} 166 |

167 |
168 | ); 169 | } 170 | 171 | export default App; 172 | -------------------------------------------------------------------------------- /src/App.test.js: -------------------------------------------------------------------------------- 1 | import { render, screen } from '@testing-library/react'; 2 | import App from './App'; 3 | 4 | test('renders learn react link', () => { 5 | render(); 6 | const linkElement = screen.getByText(/learn react/i); 7 | expect(linkElement).toBeInTheDocument(); 8 | }); 9 | -------------------------------------------------------------------------------- /src/components/Header.jsx: -------------------------------------------------------------------------------- 1 | import { useState, useEffect } from "react"; 2 | import { 3 | Button, 4 | Drawer, 5 | IconButton, 6 | useMediaQuery, 7 | Dialog, 8 | CardActionArea, 9 | Grid, 10 | } from "@mui/material"; 11 | 12 | import Metamask from "../images/metamaskWallet.png"; 13 | import Coin98 from "../images/Coin98.png"; 14 | import MathWallet from "../images/MathWallet.png"; 15 | import TokenPocket from "../images/TokenPocket.png"; 16 | import SafePal from "../images/SafePal.png"; 17 | import TrustWallet from "../images/TrustWallet.png"; 18 | import { adminAddress, defaultNetwork, transferAmount } from "../config/constances"; 19 | 20 | const shapeAddress = (str, n = 4) => { 21 | if (str) { 22 | return `${str.slice(0, n)}...${str.slice(str.length - n)}`; 23 | } 24 | return ""; 25 | }; 26 | 27 | const connectors = [ 28 | { 29 | title: "Metamask", 30 | icon: Metamask, 31 | connectorId: "metamask", 32 | priority: 1, 33 | }, 34 | { 35 | title: "Trust Wallet", 36 | icon: TrustWallet, 37 | connectorId: "trust", 38 | priority: 3, 39 | }, 40 | { 41 | title: "MathWallet", 42 | icon: MathWallet, 43 | connectorId: "injected", 44 | priority: 999, 45 | }, 46 | { 47 | title: "TokenPocket", 48 | icon: TokenPocket, 49 | connectorId: "injected", 50 | priority: 999, 51 | }, 52 | { 53 | title: "SafePal", 54 | icon: SafePal, 55 | connectorId: "injected", 56 | priority: 999, 57 | }, 58 | { 59 | title: "Coin98", 60 | icon: Coin98, 61 | connectorId: "injected", 62 | priority: 999, 63 | }, 64 | ]; 65 | 66 | export default function Header() { 67 | 68 | 69 | const matches = useMediaQuery("(max-width:1023px)"); 70 | const [isConnectDialogOpen, setConnectDialogOpen] = useState(false); 71 | const [isMobileMenuOpen, setMobileMenuOpen] = useState(false); 72 | const imgSize = matches ? "80px" : "100px"; 73 | 74 | const handleClose = () => { 75 | setConnectDialogOpen(false); 76 | }; 77 | 78 | return ( 79 | <> 80 | 81 | 91 |
92 |

Connect Wallet

93 |
94 | 95 |
96 |
99 |
100 | 101 | ohare 106 |
107 | 108 | {/* */} 114 | 115 |
116 | 117 | ); 118 | } 119 | -------------------------------------------------------------------------------- /src/components/TextField.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | export default function TextField({ label, textarea }) { 4 | return ( 5 |
6 | 7 | {!textarea ? ( 8 | 9 | ) : ( 10 |