├── .gitignore ├── .prettierignore ├── .prettierrc ├── artifacts ├── @openzeppelin │ └── contracts │ │ ├── security │ │ └── ReentrancyGuard.sol │ │ │ ├── ReentrancyGuard.dbg.json │ │ │ └── ReentrancyGuard.json │ │ ├── token │ │ └── ERC20 │ │ │ ├── ERC20.sol │ │ │ ├── ERC20.dbg.json │ │ │ └── ERC20.json │ │ │ ├── IERC20.sol │ │ │ ├── IERC20.dbg.json │ │ │ └── IERC20.json │ │ │ └── extensions │ │ │ └── IERC20Metadata.sol │ │ │ ├── IERC20Metadata.dbg.json │ │ │ └── IERC20Metadata.json │ │ └── utils │ │ └── Context.sol │ │ ├── Context.dbg.json │ │ └── Context.json ├── build-info │ ├── 445eecb323e7d6c3c55e36de9f23073e.json │ ├── 5f041c893bdb50a62911c86ee0a9d508.json │ └── c7541d0ecb5103632c8a69dc61f1c96b.json └── contracts │ ├── RewardToken.sol │ ├── RewardToken.dbg.json │ └── RewardToken.json │ └── Staking.sol │ ├── Staking.dbg.json │ └── Staking.json ├── cache ├── console-history.txt └── solidity-files-cache.json ├── contracts ├── RewardToken.sol └── Staking.sol ├── deploy ├── 00-deploy-reward-token.js └── 01-deploy-staking.js ├── deployments └── localhost │ ├── .chainId │ ├── RewardToken.json │ ├── Staking.json │ └── solcInputs │ ├── 960c8b22bdeed37779c70298459cc876.json │ └── d1636a0453ebde4e3c8e414be506f0a7.json ├── hardhat.config.js ├── package.json ├── test └── staking.test.js ├── utils ├── move-blocks.js └── move-time.js └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/.prettierrc -------------------------------------------------------------------------------- /artifacts/@openzeppelin/contracts/security/ReentrancyGuard.sol/ReentrancyGuard.dbg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/artifacts/@openzeppelin/contracts/security/ReentrancyGuard.sol/ReentrancyGuard.dbg.json -------------------------------------------------------------------------------- /artifacts/@openzeppelin/contracts/security/ReentrancyGuard.sol/ReentrancyGuard.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/artifacts/@openzeppelin/contracts/security/ReentrancyGuard.sol/ReentrancyGuard.json -------------------------------------------------------------------------------- /artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json -------------------------------------------------------------------------------- /artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.json -------------------------------------------------------------------------------- /artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json -------------------------------------------------------------------------------- /artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.json -------------------------------------------------------------------------------- /artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json -------------------------------------------------------------------------------- /artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.json -------------------------------------------------------------------------------- /artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json -------------------------------------------------------------------------------- /artifacts/@openzeppelin/contracts/utils/Context.sol/Context.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.json -------------------------------------------------------------------------------- /artifacts/build-info/445eecb323e7d6c3c55e36de9f23073e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/artifacts/build-info/445eecb323e7d6c3c55e36de9f23073e.json -------------------------------------------------------------------------------- /artifacts/build-info/5f041c893bdb50a62911c86ee0a9d508.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/artifacts/build-info/5f041c893bdb50a62911c86ee0a9d508.json -------------------------------------------------------------------------------- /artifacts/build-info/c7541d0ecb5103632c8a69dc61f1c96b.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/artifacts/build-info/c7541d0ecb5103632c8a69dc61f1c96b.json -------------------------------------------------------------------------------- /artifacts/contracts/RewardToken.sol/RewardToken.dbg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/artifacts/contracts/RewardToken.sol/RewardToken.dbg.json -------------------------------------------------------------------------------- /artifacts/contracts/RewardToken.sol/RewardToken.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/artifacts/contracts/RewardToken.sol/RewardToken.json -------------------------------------------------------------------------------- /artifacts/contracts/Staking.sol/Staking.dbg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/artifacts/contracts/Staking.sol/Staking.dbg.json -------------------------------------------------------------------------------- /artifacts/contracts/Staking.sol/Staking.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/artifacts/contracts/Staking.sol/Staking.json -------------------------------------------------------------------------------- /cache/console-history.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/cache/console-history.txt -------------------------------------------------------------------------------- /cache/solidity-files-cache.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/cache/solidity-files-cache.json -------------------------------------------------------------------------------- /contracts/RewardToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/contracts/RewardToken.sol -------------------------------------------------------------------------------- /contracts/Staking.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/contracts/Staking.sol -------------------------------------------------------------------------------- /deploy/00-deploy-reward-token.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/deploy/00-deploy-reward-token.js -------------------------------------------------------------------------------- /deploy/01-deploy-staking.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/deploy/01-deploy-staking.js -------------------------------------------------------------------------------- /deployments/localhost/.chainId: -------------------------------------------------------------------------------- 1 | 31337 -------------------------------------------------------------------------------- /deployments/localhost/RewardToken.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/deployments/localhost/RewardToken.json -------------------------------------------------------------------------------- /deployments/localhost/Staking.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/deployments/localhost/Staking.json -------------------------------------------------------------------------------- /deployments/localhost/solcInputs/960c8b22bdeed37779c70298459cc876.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/deployments/localhost/solcInputs/960c8b22bdeed37779c70298459cc876.json -------------------------------------------------------------------------------- /deployments/localhost/solcInputs/d1636a0453ebde4e3c8e414be506f0a7.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/deployments/localhost/solcInputs/d1636a0453ebde4e3c8e414be506f0a7.json -------------------------------------------------------------------------------- /hardhat.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/hardhat.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/package.json -------------------------------------------------------------------------------- /test/staking.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/test/staking.test.js -------------------------------------------------------------------------------- /utils/move-blocks.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/utils/move-blocks.js -------------------------------------------------------------------------------- /utils/move-time.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/utils/move-time.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HappyMicky0317/staking-dapps/HEAD/yarn.lock --------------------------------------------------------------------------------