https://github.com/anish-agnihotri/ens-lootbox
Bounty/Lootbox system for incentivizing donations of celebrity ENS names.
https://github.com/anish-agnihotri/ens-lootbox
ens ethereum ethereum-name-service
Last synced: about 1 year ago
JSON representation
Bounty/Lootbox system for incentivizing donations of celebrity ENS names.
- Host: GitHub
- URL: https://github.com/anish-agnihotri/ens-lootbox
- Owner: Anish-Agnihotri
- Created: 2021-05-22T08:30:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-22T08:30:48.000Z (over 5 years ago)
- Last Synced: 2025-04-21T02:17:57.312Z (over 1 year ago)
- Topics: ens, ethereum, ethereum-name-service
- Language: JavaScript
- Homepage:
- Size: 243 KB
- Stars: 19
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ENS Lootbox
Quick hack inspired by [Mike's tweet about celebrity ENS domain donations](https://twitter.com/mikedemarais/status/1395910410063253505).
## Run locally
First, update ETH RPC url in `hardhat.config.js` and `test/main.js`.
```bash
# Install dependencies
npm install
# Run tests
npx hardhat test
```
## Flow
**Donator Flow**
1. Anyone can send ETH to fund the donation contract.
**ENS Administrator Flow**
1. Can update the desired ENS names looking to be captured.
2. Can attach a `bounty` to the desired ENS names (where `bounty < balance(contract)`).
3. Can withdraw the ENS names sent to the `ENSLootbox` contract to their EOA.
**ENS Celebrity Name Owner Flow**
1. Can check the `bounty` for a desired ENS name.
2. Can send a matching ENS name to the contract and be rewarded `bounty`.