{"_id":"@compound-finance/hardhat-import","_rev":"6-0b83885fafd7bdda052feb4d601e5bfa","name":"@compound-finance/hardhat-import","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@compound-finance/hardhat-import","version":"1.0.0","author":{"name":"Compound Labs"},"license":"MIT","_id":"@compound-finance/hardhat-import@1.0.0","maintainers":[{"name":"arr00","email":"arr00comp@gmail.com"},{"name":"hayesgm","email":"geoff@compound.finance"},{"name":"ajb413","email":"adam@compound.finance"}],"dist":{"shasum":"aa2d2ea3bef5bd8c94a90d2cda59288fdff9e3e1","tarball":"https://registry.npmjs.org/@compound-finance/hardhat-import/-/hardhat-import-1.0.0.tgz","fileCount":15,"integrity":"sha512-iKt+SZYlqY6KcN6ZFE9xCyj30yzuK5JA4e/uWVZfJ9h4ngLHWpEIj5a/ow6ngaKUJHMkQ56j+WoD9E4SqzoSgg==","signatures":[{"sig":"MEUCIGOIs824uE4DGwQCGXBn/3DE4RleORmb2Kb6TjA6SQ9YAiEAulpZZFP2Tq2LjkPi2yHL7rS7lffa2smcOnumpnh98n8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10468,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhsQyICRA9TVsSAnZWagAAfU4P/iFuuJ9aytJAfaduLudL\n920b7lGV1xt74ZGT4OxzRqcF+VATgousuOnCC/D59oEH8kRfgLTDpcH0dBjB\nU4MC6rS5AEYEGmeqatXTmscBn5Rj1oOJIp2S1lNScIjQWApUDxtZRBYvKrtL\neJ6DWySNxlY51xCxAVZI3Ya+Nt/QafdQIZ8OeWNJ5fdUwpH6PbaAaoAz45Wj\nICrocwMPdwrS2qHMHuPSoYV8P/I2s++nykOv9+/uYcS+04aQcY3sDofRVKbG\njnseVh3/cKOp3M1ItiCfa25iVp9AnqO+FvOdGMvnkEMpCRYaAvm1cLtO8niU\nTUcMyAhCWOHB82yQs8Pswtf0mOZJ9dPYyvLHJ3w9+J3srvvvu2drSPEaLaLs\n/wmHvuzXjpAqMcgW428Y8by06uGIWadxlXTf1heZ0Pycxli2ayzEAS851mLH\n+f5+kxpN+wU6vq4w/kXj++T7HpLohL164b+vhHQeWpcFG9F2h8cXc7vLNJ6R\nxMOVywgHavDDSYa7XiUI3UMPb0s7MP6FH5m+3RmDryWvDIfZJ9HYUvs9HdNV\n4ZmPE/JriqwscnQoR4zwfR0kgZh91eh79K8Xa1k61rhIjbxNt6C2J1E1dGLI\ndG8rwqjPN8rso5HoHOGbG5neZVBZaiftssa2s8CVza4PgZ0voco544bnQmAf\nEMIH\r\n=rIka\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"yarn prettier --check && yarn eslint","build":"tsc --build .","clean":"rimraf dist","eslint":"eslint 'src/**/*.ts'","lint:fix":"yarn prettier --write && yarn eslint --fix","prettier":"prettier \"**/*.{js,md,json}\""},"_npmUser":{"name":"arr00","email":"arr00comp@gmail.com"},"_npmVersion":"6.14.15","description":"Hardhat plugin for importing deployed contract bytecode and metadata from etherscan.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"axios":"^0.24.0","hardhat":"^2.0.4","ts-node":"^8.1.0","typescript":"~4.0.3","@ethersproject/address":"^5.5.0"},"_hasShrinkwrap":false,"peerDependencies":{"hardhat":"^2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/hardhat-import_1.0.0_1638993032849_0.6781238430988168","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@compound-finance/hardhat-import","version":"1.0.1","author":{"name":"Compound Labs"},"license":"MIT","_id":"@compound-finance/hardhat-import@1.0.1","maintainers":[{"name":"arr00","email":"arr00comp@gmail.com"},{"name":"hayesgm","email":"geoff@compound.finance"},{"name":"ajb413","email":"adam@compound.finance"}],"dist":{"shasum":"3d5a17164f049e9234c4ff66d417eb8fe08b78bd","tarball":"https://registry.npmjs.org/@compound-finance/hardhat-import/-/hardhat-import-1.0.1.tgz","fileCount":15,"integrity":"sha512-N6ax2TgeND7Iglo6dL6cPa7VJ4emxr82A7+OZSybkBPp/j8BlgN3zVr7BYQvwkcAR4yq4eNCWoKExndsA0iUWg==","signatures":[{"sig":"MEYCIQDdg91A7T+ffkD6evztAPLD2e4JglrvgJ+gobqcaVCu0AIhAMyjEuHhJOKtT7aHTfEYYCePUqMPn7/Jd9Yrwz/r0hJ5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10601,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhsRCNCRA9TVsSAnZWagAA+SMP/365nE8eVCs5BTk2mkm4\nc6UW4W/I2hTpeYzOGofXkvgE9fM46bTl/4wqWaqfaOdsV0CWe+YO2wFPYUxV\niWQmwBh9y4Eh3Dh0qp3cnW/rrMhVItG5TVS2Yimqscwv6qoLfuY7klLeytHH\n+YXHfWmKgS0KqYUp3vsKvbMI1Tdukeio7E+EHmkNmWU2KLB6xyITM3jqtXWW\n98PeP+uoltsGi9Xt4jB57IggMVC6fTLk8No7y4aKpzFz89pGsIgPf9VWKRCd\nntim5OiPOvhV9TdlMsxDQ/++LXWg3ephxzRtAF03JthXod9kWrZKFZ/IL5lJ\nzUQm5h2logjDSBeo3czybOgchpxeuDDrv/44cmZaAzvcMwxm7+S+M30kPTs3\nx8bYFxvTNlrqAAxTcQl8AEJxhHJBkykwtqXZ0pO2cRqO8ai6QPBcqs3Tife9\nPIxsD482W0Wi6BCclzJNkxNmWjdZWAIm7Lz493lB+P5KYdpBWoCUr1LWaXqq\nJB1sjlywzvyf5r/d2pfzQb1rJUUcgWE3dK+HOKT5aKXo5omG9DegbSg60Zov\n9jHBmxHSTxATqBxBTw5B6nhNgL3Cq/Rt8sQ6aFdvBChLt6TiKxxCSHlfFbbB\np2MY5sU4d9YPWLKChtZi/4rpjc4NtrUrw+XTe58FExViJqYJom788IPR5V7E\nwUC3\r\n=sUFC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"yarn prettier --check && yarn eslint","build":"tsc --build .","clean":"rimraf dist","eslint":"eslint 'src/**/*.ts'","lint:fix":"yarn prettier --write && yarn eslint --fix","prettier":"prettier \"**/*.{js,md,json}\""},"_npmUser":{"name":"arr00","email":"arr00comp@gmail.com"},"_npmVersion":"6.14.15","description":"Hardhat plugin for importing deployed contract bytecode and metadata from etherscan.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"axios":"^0.24.0","hardhat":"^2.0.4","ts-node":"^8.1.0","typescript":"~4.0.3","@ethersproject/address":"^5.5.0"},"_hasShrinkwrap":false,"peerDependencies":{"hardhat":"^2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/hardhat-import_1.0.1_1638994061117_0.9748679143358021","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@compound-finance/hardhat-import","version":"1.0.2","author":{"name":"Compound Labs"},"license":"MIT","_id":"@compound-finance/hardhat-import@1.0.2","maintainers":[{"name":"arr00","email":"arr00comp@gmail.com"},{"name":"hayesgm","email":"geoff@compound.finance"},{"name":"ajb413","email":"adam@compound.finance"}],"dist":{"shasum":"fe80be6c0ab63637a2ce714bc009c433ed57d56f","tarball":"https://registry.npmjs.org/@compound-finance/hardhat-import/-/hardhat-import-1.0.2.tgz","fileCount":15,"integrity":"sha512-FHRkFNJ1nMOUhjCbk5dGQi3uK1Io2DNCr/2yNiqumvz1OS2SaZNbEowIC4/Nqj/RH3AdaXlMUpcP3H8rADXGUg==","signatures":[{"sig":"MEQCIDteTaV/62YpWEfS+URt9viOpVG9uKsCJw5duch8o5baAiAUO9ae8/K3KXaXO6K7C2AclOJqLt8JHFfz9nDjkKc5Gw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10775,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhvRjVCRA9TVsSAnZWagAAnzsP/2bAsTxX2Owgxy1e7epg\n7+zP8fKtSRaHtyNhTmO1AztjflWjFweJNSHhsHFrAYlhphLeoXI/hxWweD35\njZSJac9BZ5HFwbYgX5E2lART96CYqtR5nhwZm+zizkC/YwdCUKDBwqw4hrUM\nIZnCXkjeq5kU22xXpx81bNoMyql4nUThwZSz0lhtsxI+bYQx9Gwyv8MKaPzY\nP76zw6j1ypK85K1Qbk+89GxXwMEjp0pv9H/gc5VjH3BcFSekyYUxVk5opmbz\nhCGxersMhZQrgdetAY8u+/K0F/UW3J/tifGIoKu6ZvHd8/eCnfcnDcA1wtkG\nQYO7jXrOvZhtQf3AiGMYm61YnbhxwwpaA39R/5qX/DVWyISeFVVJ2bM2aSoU\nHgHw4KVEI1Mmb8+UNE5tVVTH+QGnNQwVrZVn0NU4f0Iz2v0Pz4DUZQZDuN7B\ngd2Ot0IZlb5AeLj/tBKncf6HOQZMsw4eSoDyNiegp5awpvQMaM0vLXhxLNJi\nSnYsjf5IWCvAwXKrCxoRXSqP9Mna7P5PebwPgQfKsEHhkBM4n/YKemSHOFQL\nRZV0VZ43p40533neldjYmao0dBTA4pUDi51gdiMGJndp0rr4sy/XuGdEzXor\nZhjaDozxrSu1lZMlvYY637s5cnJ23Xfxl2jxEUA1qDVT7nD4dlnA+VgoQnM7\nH5o+\r\n=ggUE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"yarn prettier --check && yarn eslint","build":"tsc --build .","clean":"rimraf dist","eslint":"eslint 'src/**/*.ts'","lint:fix":"yarn prettier --write && yarn eslint --fix","prettier":"prettier \"**/*.{js,md,json}\""},"_npmUser":{"name":"arr00","email":"arr00comp@gmail.com"},"_npmVersion":"6.14.15","description":"Hardhat plugin for importing deployed contract bytecode and metadata from etherscan.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"axios":"^0.24.0","hardhat":"^2.0.4","ts-node":"^8.1.0","typescript":"~4.0.3","@ethersproject/address":"^5.5.0"},"_hasShrinkwrap":false,"peerDependencies":{"hardhat":"^2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/hardhat-import_1.0.2_1639782613120_0.8540299777854341","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@compound-finance/hardhat-import","version":"1.0.3","author":{"name":"Compound Labs"},"license":"MIT","_id":"@compound-finance/hardhat-import@1.0.3","maintainers":[{"name":"arr00","email":"arr00comp@gmail.com"},{"name":"hayesgm","email":"geoff@compound.finance"},{"name":"ajb413","email":"adam@compound.finance"}],"dist":{"shasum":"261623dbf3c6e4c314a0767391636d73084e904f","tarball":"https://registry.npmjs.org/@compound-finance/hardhat-import/-/hardhat-import-1.0.3.tgz","fileCount":15,"integrity":"sha512-/WpuUeUshsJEBibT+6Bx5A8vdfhSXWeQiwypQbVi9E6fq73fTYHKs+Ys/PV62eNitVKO3wjsq0TP7AFxmu/CGQ==","signatures":[{"sig":"MEUCIQDn2Il0N2qG0ErQ/Xbrcf81J1ngHDv6NbDTCKbOU2IilQIgUtE7H0yZ6t2jm/Tn9yL/eRFM6x+LVNtjES/Q/Y2EUXg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10794,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhw8WeCRA9TVsSAnZWagAAyPYP/0/2KTVuKMkaYcyAk0pN\ni6mh0U9q6bmLJnS5ec13Uk4550qMuGZtuqexSFBUIHWFQxFrjnZidr055GHp\n4bnisIsGMrh2Qjw0lCLKsiE4p+RWtqfNPnmW2G9UAX1fMWfUl4kmAMbnsyUd\n6ysrfA1S0jMvYSnKrdY+ivkNeOMz+QvO43QPevW2LqtACaYDL2aHC/CehJ8T\n9VLT18eD+goaxLm+Cr2xl46yWk9smIu9Llmj0TRH57yR9xai/qK4nuNq0diX\nmp4NwKJg9KTxBa47phI9hikvVk2BspXApoxD6shqrbLev8zea0ggSQIwrqah\n/tWu4vLPAw8r+MsX6icx3DKlreGoyf0HU9IY/7AqcfIFHiRSq6CYtP/E54Qb\nNsdV0Upmfeld5V300Ha5UUh+YF5bDJIJXxjdw+W7ZtssyaLJmUGE+Yk259Yr\ntlrL5qt01JSXLzTNV08+iYrbDCPQ+HqaSUlI+qIgw1BfeciDLfX5F6l5NWVq\nl4jCVkmrNADWYbDQYLn1n9Bhv5TaiwXWjkJKCQdM9v3Z1B8kblxUpnszj4Et\nYrPYRMNK3ekEQ/5fYlCWyx7Gd8rC1QvEwsDm9DD7IHU96O5g7ysvgyXgXyMY\nEpzEqQmZ/hyJDzA+fntpk8Ra49YC0g8n0SDvCinuAx5vWRqui9FUdRuxdJjJ\nzEOR\r\n=TnIJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"yarn prettier --check && yarn eslint","build":"tsc --build .","clean":"rimraf dist","eslint":"eslint 'src/**/*.ts'","lint:fix":"yarn prettier --write && yarn eslint --fix","prettier":"prettier \"**/*.{js,md,json}\""},"_npmUser":{"name":"arr00","email":"arr00comp@gmail.com"},"_npmVersion":"6.14.15","description":"Hardhat plugin for importing deployed contract bytecode and metadata from etherscan.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"axios":"^0.24.0","hardhat":"^2.0.4","ts-node":"^8.1.0","typescript":"~4.0.3","@ethersproject/address":"^5.5.0"},"_hasShrinkwrap":false,"peerDependencies":{"hardhat":"^2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/hardhat-import_1.0.3_1640220062333_0.33019614882620285","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@compound-finance/hardhat-import","version":"1.0.4","author":{"name":"Compound Labs"},"license":"MIT","_id":"@compound-finance/hardhat-import@1.0.4","maintainers":[{"name":"arr00","email":"arr00comp@gmail.com"},{"name":"hayesgm","email":"geoff@compound.finance"},{"name":"ajb413","email":"adam@compound.finance"}],"dist":{"shasum":"75c5a28ac2bdcf25455be9868ff812cb52287a20","tarball":"https://registry.npmjs.org/@compound-finance/hardhat-import/-/hardhat-import-1.0.4.tgz","fileCount":15,"integrity":"sha512-CJl2BwVVKBMlVAHMm6G5MTqqI+mO5vdYoLiDbhvNOO3Ti+XLmR/vU06BxQxmJb0rijPsM77VuIiPkr15BOM0JQ==","signatures":[{"sig":"MEUCIQDxusr8TlAXgAbbL2J6fNNwlqFzKt1nVTgnx05/qDsFAwIga2Hkcm3Jk8+1RlKG9LhKU3rfXd+qwZZ8csG+OWeQ3cc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10796,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhyhJ0CRA9TVsSAnZWagAAWFIQAKEp6RbgzSGvVhZhflXc\n+sW6ehPBsrLoe2ekD1aRnW2mRNrFtplv7U3EUckLKFCYWYJj8GhDoxsxFf4/\neXAh4J8k2EQ7/3VMfxNqIT0E5sfKtHuM5GcMr6IMJ39RiJGSZOG8DNuPRmMg\nwy0Ju17oT63sXMmVdCdiZXmRrDaERMj8WbkpHDMG8UvWHqHaVKLM2FlTAR6O\ngv5qDeb8xJbef/aL195G/vG7k6DiEtom7LYA3FY+8xN43ccDV1QEuD/TDxM4\ntCQbyl8kZ0s37GSvLsrh8Raj3F1iE3L5ZvSNvTlNH331y9988fDxqMOdoGl5\nv3duDLUC/5tB8dmtZRJP9nkM6GYHRTm67Um38UTW3HurqgO1buBs5ttShTgB\nZUBC2sOCi7PxAnYKyxmDKrtVo48LD5P5ZRTFkfsxStEvmxkhuperr58ZIzFm\nTjjPbusNpbEJAK/egs1HlYZ5NJ9p9ZNopycg2k63CuBnjGZjCICb2iFGqGE0\nGaqCGAWmjkA6rxcAMLrExfN0woFU2B+PprtfgGHZi0JoSmdZHMUbHi2O5uX9\nw9qFOZ/QbUlcQma1HKVdndtcw8zzKzc/Q4C0HpgLIu7+k3vtKO9kCDqDiZiT\nu8PmgxER3ZYdNfnxCtFsU7ILvwCpw7zCpVm9Wlo+HBtTP9orkasO/9sqXdt3\ntPjH\r\n=a1P6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"yarn prettier --check && yarn eslint","build":"tsc --build .","clean":"rimraf dist","eslint":"eslint 'src/**/*.ts'","lint:fix":"yarn prettier --write && yarn eslint --fix","prettier":"prettier \"**/*.{js,md,json}\""},"_npmUser":{"name":"arr00","email":"arr00comp@gmail.com"},"_npmVersion":"6.14.15","description":"Hardhat plugin for importing deployed contract bytecode and metadata from etherscan.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"axios":"^0.24.0","hardhat":"^2.0.4","ts-node":"^8.1.0","typescript":"~4.0.3","@ethersproject/address":"^5.5.0"},"_hasShrinkwrap":false,"peerDependencies":{"hardhat":"^2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/hardhat-import_1.0.4_1640632948348_0.8173472490476288","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-12-08T19:50:32.799Z","modified":"2024-12-12T18:14:47.864Z","1.0.0":"2021-12-08T19:50:32.979Z","1.0.1":"2021-12-08T20:07:41.276Z","1.0.2":"2021-12-17T23:10:13.373Z","1.0.3":"2021-12-23T00:41:02.456Z","1.0.4":"2021-12-27T19:22:28.680Z"},"author":{"name":"Compound Labs"},"license":"MIT","description":"Hardhat plugin for importing deployed contract bytecode and metadata from etherscan.","maintainers":[{"email":"arr00comp@gmail.com","name":"arr00"},{"email":"hayesgm@gmail.com","name":"hayesgm"},{"email":"adam@compound.finance","name":"ajb413"},{"email":"bhasinaryan@gmail.com","name":"aryanbhasin"}],"readme":"# @compound-finance/hardhat-import\n\n[Hardhat](https://hardhat.org) plugin for importing contract bytecode and metadata from verified etherscan data.\n\n## Installation\n\nAdd to your project via npm. If using local source, first build the project using `npm run build`.\n\nAdd the following statement to your `hardhat.config.js`:\n\n```js\nrequire(\"@compound-finance/hardhat-import\");\n```\n\nOr, if you are using TypeScript, add this to your `hardhat.config.ts`:\n\n```js\nimport \"@compound-finance/hardhat-import\";\n```\n\n## Tasks\nThis plugin provides the `import` task, which allows you to import contracts from all Ethereum networks (test and mainnet) supported by Etherscan. The result contains the deployed bytecode and metadata.\n\n## Usage\nAdd your Etherscan API key to config `hardhat.config.js` file:\n\n```js\nmodule.exports = {\n  networks: {\n    mainnet: { ... }\n  },\n  etherscan: {\n    // Your API key for Etherscan\n    // Obtain one at https://etherscan.io/\n    apiKey: \"YOUR_ETHERSCAN_API_KEY\"\n  }\n};\n```\n\nLastly, run the `import` task, passing the address of the contract and the network where it's deployed, and an output directory.\n\n```bash\nnpx hardhat import --address <CONTRACT_ADDRESS> --outdir <OUTPUT_DIRECTORY> --network mainnet\n```\n\n### Using programmatically\n\nTo call the import task from within a Hardhat task or script, use the `\"import\"` task. You can run the subtask like this:\n\n```js\nconst importRes = await hre.run(\"import\", {\n  address: contractAddress,\n});\n```","readmeFilename":"README.md"}