https://github.com/nuttymoon/christmas-eth
🎁
https://github.com/nuttymoon/christmas-eth
Last synced: 2 months ago
JSON representation
🎁
- Host: GitHub
- URL: https://github.com/nuttymoon/christmas-eth
- Owner: Nuttymoon
- License: mit
- Created: 2022-12-18T22:00:52.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-22T15:41:44.000Z (over 2 years ago)
- Last Synced: 2025-02-06T08:13:02.442Z (4 months ago)
- Language: TypeScript
- Homepage:
- Size: 90.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# All I Want For Christmas is ETH
The [ChristmasPresent](./contracts/ChristmasPresent.sol) contract is used to time-lock some [EVM](https://ethereum.org/en/developers/docs/evm/) native tokens that can only be withdrawn by the contract owner after Christmas.
You can use this contract to introduce a lazy friend to the EVM ecosystem in a funny and motivational way!
If you want to reuse this, quite simple:
1. Change the hard-coded `unlockTime` in the contract
2. Deploy the contract with a reasonable amount of native tokens (those are your present)
3. Give the seed phrase of the contract to your friend along with some hints of what to do with this.## Common commands
```shell
npx hardhat help
npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.ts
```## Credits
This project is strongly inspired of [Hardhat](https://hardhat.org/)'s [TypeScript sample project](https://github.com/NomicFoundation/hardhat/tree/main/packages/hardhat-core/sample-projects/typescript).