├── .eslintrc.json ├── .gitignore ├── README.md ├── blockchain ├── .env.example ├── contracts │ ├── Lottery.sol │ └── VRFv2DirectFundingConsumer.sol ├── hardhat.config.ts ├── scripts │ └── deploy.ts ├── test │ └── Lottery.ts ├── tsconfig.json └── typechain-types │ ├── common.ts │ ├── contracts │ ├── Lottery.ts │ ├── VRFv2DirectFundingConsumer.ts │ └── index.ts │ ├── factories │ ├── contracts │ │ ├── Lottery__factory.ts │ │ ├── VRFv2DirectFundingConsumer__factory.ts │ │ └── index.ts │ └── index.ts │ ├── hardhat.d.ts │ └── index.ts ├── components ├── ConnectWalletBtn.tsx ├── Header.tsx ├── LotteryCard.tsx ├── Table.tsx ├── TableRow.tsx └── UserCard.tsx ├── context └── context.tsx ├── globals.d.ts ├── next-env.d.ts ├── next.config.js ├── package.json ├── pages ├── _app.tsx ├── api │ └── hello.js └── index.tsx ├── public ├── favicon.ico └── vercel.svg ├── styles ├── Header.module.css ├── Home.module.css ├── PotCard.module.css ├── Table.module.css ├── TableRow.module.css └── globals.css ├── tsconfig.json └── utils ├── Lottery.json ├── constants.ts └── lotteryContract.ts /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/README.md -------------------------------------------------------------------------------- /blockchain/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/blockchain/.env.example -------------------------------------------------------------------------------- /blockchain/contracts/Lottery.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/blockchain/contracts/Lottery.sol -------------------------------------------------------------------------------- /blockchain/contracts/VRFv2DirectFundingConsumer.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/blockchain/contracts/VRFv2DirectFundingConsumer.sol -------------------------------------------------------------------------------- /blockchain/hardhat.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/blockchain/hardhat.config.ts -------------------------------------------------------------------------------- /blockchain/scripts/deploy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/blockchain/scripts/deploy.ts -------------------------------------------------------------------------------- /blockchain/test/Lottery.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/blockchain/test/Lottery.ts -------------------------------------------------------------------------------- /blockchain/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/blockchain/tsconfig.json -------------------------------------------------------------------------------- /blockchain/typechain-types/common.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/blockchain/typechain-types/common.ts -------------------------------------------------------------------------------- /blockchain/typechain-types/contracts/Lottery.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/blockchain/typechain-types/contracts/Lottery.ts -------------------------------------------------------------------------------- /blockchain/typechain-types/contracts/VRFv2DirectFundingConsumer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/blockchain/typechain-types/contracts/VRFv2DirectFundingConsumer.ts -------------------------------------------------------------------------------- /blockchain/typechain-types/contracts/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/blockchain/typechain-types/contracts/index.ts -------------------------------------------------------------------------------- /blockchain/typechain-types/factories/contracts/Lottery__factory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/blockchain/typechain-types/factories/contracts/Lottery__factory.ts -------------------------------------------------------------------------------- /blockchain/typechain-types/factories/contracts/VRFv2DirectFundingConsumer__factory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/blockchain/typechain-types/factories/contracts/VRFv2DirectFundingConsumer__factory.ts -------------------------------------------------------------------------------- /blockchain/typechain-types/factories/contracts/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/blockchain/typechain-types/factories/contracts/index.ts -------------------------------------------------------------------------------- /blockchain/typechain-types/factories/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/blockchain/typechain-types/factories/index.ts -------------------------------------------------------------------------------- /blockchain/typechain-types/hardhat.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/blockchain/typechain-types/hardhat.d.ts -------------------------------------------------------------------------------- /blockchain/typechain-types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/blockchain/typechain-types/index.ts -------------------------------------------------------------------------------- /components/ConnectWalletBtn.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/components/ConnectWalletBtn.tsx -------------------------------------------------------------------------------- /components/Header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/components/Header.tsx -------------------------------------------------------------------------------- /components/LotteryCard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/components/LotteryCard.tsx -------------------------------------------------------------------------------- /components/Table.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/components/Table.tsx -------------------------------------------------------------------------------- /components/TableRow.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/components/TableRow.tsx -------------------------------------------------------------------------------- /components/UserCard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/components/UserCard.tsx -------------------------------------------------------------------------------- /context/context.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/context/context.tsx -------------------------------------------------------------------------------- /globals.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/globals.d.ts -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | reactStrictMode: true, 3 | } 4 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/package.json -------------------------------------------------------------------------------- /pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/pages/_app.tsx -------------------------------------------------------------------------------- /pages/api/hello.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/pages/api/hello.js -------------------------------------------------------------------------------- /pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/pages/index.tsx -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /styles/Header.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/styles/Header.module.css -------------------------------------------------------------------------------- /styles/Home.module.css: -------------------------------------------------------------------------------- 1 | .wrapper { 2 | padding-bottom: 30px; 3 | } 4 | -------------------------------------------------------------------------------- /styles/PotCard.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/styles/PotCard.module.css -------------------------------------------------------------------------------- /styles/Table.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/styles/Table.module.css -------------------------------------------------------------------------------- /styles/TableRow.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/styles/TableRow.module.css -------------------------------------------------------------------------------- /styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/styles/globals.css -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/tsconfig.json -------------------------------------------------------------------------------- /utils/Lottery.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/utils/Lottery.json -------------------------------------------------------------------------------- /utils/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/utils/constants.ts -------------------------------------------------------------------------------- /utils/lotteryContract.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pablopoggiog/lottery/HEAD/utils/lotteryContract.ts --------------------------------------------------------------------------------