{"id":20002073,"url":"https://github.com/pooltogether/deploy-eip-1820","last_synced_at":"2025-05-04T15:33:59.218Z","repository":{"id":50065998,"uuid":"251159269","full_name":"pooltogether/deploy-eip-1820","owner":"pooltogether","description":null,"archived":false,"fork":false,"pushed_at":"2021-06-05T04:53:20.000Z","size":34,"stargazers_count":1,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-23T21:42:35.533Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pooltogether.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-29T23:55:22.000Z","updated_at":"2024-04-23T21:42:35.534Z","dependencies_parsed_at":"2022-09-19T05:51:38.079Z","dependency_job_id":null,"html_url":"https://github.com/pooltogether/deploy-eip-1820","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pooltogether%2Fdeploy-eip-1820","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pooltogether%2Fdeploy-eip-1820/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pooltogether%2Fdeploy-eip-1820/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pooltogether%2Fdeploy-eip-1820/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pooltogether","download_url":"https://codeload.github.com/pooltogether/deploy-eip-1820/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224394432,"owners_count":17303914,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T05:19:40.377Z","updated_at":"2024-11-13T05:19:40.968Z","avatar_url":"https://github.com/pooltogether.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deploy EIP 1820\n\nEthereum [EIP 1820](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1820.md) is a standard for pseudo-introspection of smart contracts on Ethereum.\n\nThis library ensures that the EIP 1820 registry smart contract exists on any given chain.  Particularly useful for test environments.\n\nUses [ethers.js v5](https://docs.ethers.io/v5).\n\nIf you're using ethers.js v4 then try the 0.2 version.\n\n# Setup\n\nInstall `deploy-eip-1820` via yarn:\n\n```sh\n$ yarn add deploy-eip-1820\n```\n\nor npm:\n\n```sh\n$ npm i deploy-eip-1820\n```\n\n# Usage\n\nTo ensure that the EIP 1820 Registry contract exists on the network you are using, use the `setup1820` function:\n\n```javascript\nconst { deploy1820 } = require('deploy-eip-1820')\n\nasync function deploy() {\n    const wallet = ethers.Wallet.fromMnemonic(\"...your mnemonic...\")\n    // The wallet must have at least 0.08 Ether\n    const registryContract = await deploy1820(wallet)\n\n    // Now we have an Ethers Contract instance for the ERC1820 Registry contract\n    let implementer = await registryContract.getInterfaceImplementer('0x1234...', '0xINTERFACE_HASH')\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpooltogether%2Fdeploy-eip-1820","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpooltogether%2Fdeploy-eip-1820","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpooltogether%2Fdeploy-eip-1820/lists"}