├── .github └── workflows │ └── test.yml ├── .gitignore ├── .gitmodules ├── README.md ├── foundry.toml ├── remappings.txt ├── script ├── Lottery.s.sol └── deploy.js ├── src ├── LotteryToken.sol ├── LotteryV1.sol ├── LotteryV2.sol ├── VRFConsumer.sol ├── WrappedLotteryToken.sol └── interfaces │ ├── ILotteryToken.sol │ ├── ILotteryV1.sol │ ├── IVRFConsumer.sol │ └── IWrappedLotteryToken.sol └── test ├── BaseSetup.sol ├── Lottery.t.sol ├── scripts ├── data │ ├── merkletree.dat │ └── wallets.dat ├── merkle_tree.js ├── package-lock.json └── package.json └── utils ├── Math.sol ├── UUPSProxy.sol └── Util.sol /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/.gitmodules -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/README.md -------------------------------------------------------------------------------- /foundry.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/foundry.toml -------------------------------------------------------------------------------- /remappings.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/remappings.txt -------------------------------------------------------------------------------- /script/Lottery.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/script/Lottery.s.sol -------------------------------------------------------------------------------- /script/deploy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/script/deploy.js -------------------------------------------------------------------------------- /src/LotteryToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/src/LotteryToken.sol -------------------------------------------------------------------------------- /src/LotteryV1.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/src/LotteryV1.sol -------------------------------------------------------------------------------- /src/LotteryV2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/src/LotteryV2.sol -------------------------------------------------------------------------------- /src/VRFConsumer.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/src/VRFConsumer.sol -------------------------------------------------------------------------------- /src/WrappedLotteryToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/src/WrappedLotteryToken.sol -------------------------------------------------------------------------------- /src/interfaces/ILotteryToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/src/interfaces/ILotteryToken.sol -------------------------------------------------------------------------------- /src/interfaces/ILotteryV1.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/src/interfaces/ILotteryV1.sol -------------------------------------------------------------------------------- /src/interfaces/IVRFConsumer.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/src/interfaces/IVRFConsumer.sol -------------------------------------------------------------------------------- /src/interfaces/IWrappedLotteryToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/src/interfaces/IWrappedLotteryToken.sol -------------------------------------------------------------------------------- /test/BaseSetup.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/test/BaseSetup.sol -------------------------------------------------------------------------------- /test/Lottery.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/test/Lottery.t.sol -------------------------------------------------------------------------------- /test/scripts/data/merkletree.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/test/scripts/data/merkletree.dat -------------------------------------------------------------------------------- /test/scripts/data/wallets.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/test/scripts/data/wallets.dat -------------------------------------------------------------------------------- /test/scripts/merkle_tree.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/test/scripts/merkle_tree.js -------------------------------------------------------------------------------- /test/scripts/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/test/scripts/package-lock.json -------------------------------------------------------------------------------- /test/scripts/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/test/scripts/package.json -------------------------------------------------------------------------------- /test/utils/Math.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/test/utils/Math.sol -------------------------------------------------------------------------------- /test/utils/UUPSProxy.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/test/utils/UUPSProxy.sol -------------------------------------------------------------------------------- /test/utils/Util.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0x0geek/Lottery/HEAD/test/utils/Util.sol --------------------------------------------------------------------------------