-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
98 changed files
with
17,375 additions
and
217 deletions.
There are no files selected for viewing
Binary file added
BIN
+314 KB
.yarn/cache/@ethersproject-providers-npm-5.6.2-d76b025e22-30409755c2.zip
Binary file not shown.
Binary file added
BIN
+31.2 KB
.yarn/cache/@typechain-ethers-v5-npm-10.0.0-2673cc9679-f89a442829.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
"author": "TateB <[email protected]>", | ||
"license": "MIT", | ||
"scripts": { | ||
"generate-types": "ts-node scripts/runTypechain.ts", | ||
"start": "ts-node --files src/index.test.ts", | ||
"test": "jest --run-in-band src/tests", | ||
"test:specific": "ts-node --files ", | ||
|
@@ -33,9 +34,12 @@ | |
"devDependencies": { | ||
"@ensdomains/buffer": "^0.0.13", | ||
"@ensdomains/ens-test-env": "workspace:*", | ||
"@ethersproject/abi": "^5.6.0", | ||
"@ethersproject/providers": "^5.6.2", | ||
"@openzeppelin/contracts": "^4.5.0", | ||
"@swc/core": "^1.2.162", | ||
"@swc/jest": "^0.2.20", | ||
"@typechain/ethers-v5": "^10.0.0", | ||
"@types/bn.js": "^5.1.0", | ||
"@types/jest": "^27.4.1", | ||
"dotenv": "^16.0.0", | ||
|
@@ -46,17 +50,10 @@ | |
"solc": "^0.8.13", | ||
"ts-jest": "^27.1.4", | ||
"ts-node": "^10.7.0", | ||
"typechain": "^8.0.0", | ||
"typescript": "^4.6.2" | ||
}, | ||
"peerDependencies": { | ||
"ethers": "*" | ||
}, | ||
"dependenciesMeta": { | ||
"ens-contracts-namewrapper": { | ||
"built": false | ||
}, | ||
"ens-contracts-universal": { | ||
"built": false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import nModule from 'module' | ||
import { glob, runTypeChain } from 'typechain' | ||
|
||
const pnp = (nModule as any).findPnpApi('./') | ||
const contracts = pnp.resolveToUnqualified('@ensdomains/ens-contracts', './') | ||
|
||
async function main() { | ||
const cwd = process.cwd() | ||
const importABIs = glob(cwd, [ | ||
`${contracts}/deployments/mainnet/**/+([a-zA-Z0-9_]).json`, | ||
]) | ||
const customABIs = glob(cwd, ['./src/ABIs/**/*.json']) | ||
|
||
await runTypeChain({ | ||
cwd, | ||
filesToProcess: importABIs, | ||
allFiles: importABIs, | ||
outDir: './src/generated', | ||
target: 'ethers-v5', | ||
}) | ||
await runTypeChain({ | ||
cwd, | ||
filesToProcess: customABIs, | ||
allFiles: customABIs, | ||
outDir: './src/generated', | ||
target: 'ethers-v5', | ||
}) | ||
} | ||
|
||
main().catch(console.error) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "NodeNext", | ||
"moduleResolution": "node", | ||
|
||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"type":"constructor","payable":false,"inputs":[{"type":"address","name":"_resolver"}]},{"type":"event","anonymous":false,"name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","indexed":true},{"type":"address","name":"newOwner","indexed":true}]},{"type":"function","name":"isOwner","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"address","name":"addr"}],"outputs":[{"type":"bool"}]},{"type":"function","name":"owner","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"address"}]},{"type":"function","name":"reverse","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"bytes","name":"reverseNode"},{"type":"tuple[]","name":"calls","components":[{"type":"address","name":"target"},{"type":"bytes","name":"data"},{"type":"uint8","name":"dataType"},{"type":"uint256[]","name":"locations"}]}],"outputs":[{"type":"string","name":"name"},{"type":"bytes[]","name":"returnData"}]},{"type":"function","name":"setUniversalResolver","constant":false,"payable":false,"inputs":[{"type":"address","name":"newUniversalResolver"}],"outputs":[]},{"type":"function","name":"transferOwnership","constant":false,"payable":false,"inputs":[{"type":"address","name":"newOwner"}],"outputs":[]},{"type":"function","name":"universalResolver","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"address"}]}] |
Oops, something went wrong.