├── env.example ├── .gitignore ├── contracts ├── imported │ └── ENS.sol ├── ReverseRecords.sol └── Namehash.sol ├── .travis.yml ├── scripts ├── deploy.js └── real_data_test.js ├── README.md ├── hardhat.config.js ├── package.json └── test └── ReverseRecords.js /env.example: -------------------------------------------------------------------------------- 1 | MNEMONIC=hello 2 | INFURA_ID=infuraId 3 | ETHERSCANKEY=etherscankey -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | 3 | #Hardhat files 4 | cache 5 | artifacts 6 | yarn-error.log 7 | .env 8 | -------------------------------------------------------------------------------- /contracts/imported/ENS.sol: -------------------------------------------------------------------------------- 1 | pragma solidity *; 2 | import '@ensdomains/ens/contracts/ENSRegistry.sol'; 3 | import '@ensdomains/ens/contracts/ReverseRegistrar.sol'; 4 | import '@ensdomains/ens/contracts/TestRegistrar.sol'; 5 | // import '@ensdomains/resolver/contracts/PublicResolver.sol'; 6 | 7 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: required 2 | 3 | dist: trusty 4 | 5 | language: node_js 6 | 7 | node_js: 8 | - '14' 9 | install: 10 | - npm install 11 | env: 12 | - TASK=test 13 | matrix: 14 | fast_finish: true 15 | allow_failures: 16 | before_script: 17 | - ganache-cli > /dev/null & 18 | - sleep 5 19 | script: 20 | - npm run $TASK 21 | 22 | notifications: 23 | email: false 24 | -------------------------------------------------------------------------------- /scripts/deploy.js: -------------------------------------------------------------------------------- 1 | // We require the Hardhat Runtime Environment explicitly here. This is optional 2 | // but useful for running the script in a standalone fashion through `node