{"id":18794460,"url":"https://github.com/chainstacklabs/deterministic-contract-deployment-remix","last_synced_at":"2025-04-13T14:32:44.699Z","repository":{"id":113050437,"uuid":"512998514","full_name":"chainstacklabs/deterministic-contract-deployment-remix","owner":"chainstacklabs","description":"Tutorial on deterministically deploying EVM smart contracts","archived":false,"fork":false,"pushed_at":"2024-10-12T06:08:33.000Z","size":17,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-27T06:11:57.832Z","etag":null,"topics":["create2","create2-contract-deployment","deterministic","ethereum","evm"],"latest_commit_sha":null,"homepage":"https://chainstack.com/deploying-a-deterministic-contract-on-ethereum/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chainstacklabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-07-12T04:30:33.000Z","updated_at":"2023-04-28T02:35:03.000Z","dependencies_parsed_at":"2023-07-24T08:43:14.754Z","dependency_job_id":null,"html_url":"https://github.com/chainstacklabs/deterministic-contract-deployment-remix","commit_stats":null,"previous_names":["chainstacklabs/deterministic-contract-deployment-remix"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainstacklabs%2Fdeterministic-contract-deployment-remix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainstacklabs%2Fdeterministic-contract-deployment-remix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainstacklabs%2Fdeterministic-contract-deployment-remix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainstacklabs%2Fdeterministic-contract-deployment-remix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chainstacklabs","download_url":"https://codeload.github.com/chainstacklabs/deterministic-contract-deployment-remix/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248728224,"owners_count":21152180,"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":["create2","create2-contract-deployment","deterministic","ethereum","evm"],"created_at":"2024-11-07T21:29:29.339Z","updated_at":"2025-04-13T14:32:44.463Z","avatar_url":"https://github.com/chainstacklabs.png","language":"JavaScript","readme":"\u003cimg width=\"1200\" alt=\"Labs\" src=\"https://user-images.githubusercontent.com/99700157/213291931-5a822628-5b8a-4768-980d-65f324985d32.png\"\u003e\n\n\u003cp\u003e\n \u003ch3 align=\"center\"\u003eChainstack is the leading suite of services connecting developers with Web3 infrastructure\u003c/h3\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca target=\"_blank\" href=\"https://chainstack.com/build-better-with-ethereum/\"\u003e\u003cimg src=\"https://github.com/soos3d/blockchain-badges/blob/main/protocols_badges/Ethereum.svg\" /\u003e\u003c/a\u003e\u0026nbsp;  \n  \u003ca target=\"_blank\" href=\"https://chainstack.com/build-better-with-bnb-smart-chain/\"\u003e\u003cimg src=\"https://github.com/soos3d/blockchain-badges/blob/main/protocols_badges/BNB.svg\" /\u003e\u003c/a\u003e\u0026nbsp;\n  \u003ca target=\"_blank\" href=\"https://chainstack.com/build-better-with-polygon/\"\u003e\u003cimg src=\"https://github.com/soos3d/blockchain-badges/blob/main/protocols_badges/Polygon.svg\" /\u003e\u003c/a\u003e\u0026nbsp;\n  \u003ca target=\"_blank\" href=\"https://chainstack.com/build-better-with-avalanche/\"\u003e\u003cimg src=\"https://github.com/soos3d/blockchain-badges/blob/main/protocols_badges/Avalanche.svg\" /\u003e\u003c/a\u003e\u0026nbsp;\n  \u003ca target=\"_blank\" href=\"https://chainstack.com/build-better-with-fantom/\"\u003e\u003cimg src=\"https://github.com/soos3d/blockchain-badges/blob/main/protocols_badges/Fantom.svg\" /\u003e\u003c/a\u003e\u0026nbsp;\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  • \u003ca target=\"_blank\" href=\"https://chainstack.com/\"\u003eHomepage\u003c/a\u003e •\n  \u003ca target=\"_blank\" href=\"https://chainstack.com/protocols/\"\u003eSupported protocols\u003c/a\u003e •\n  \u003ca target=\"_blank\" href=\"https://chainstack.com/blog/\"\u003eChainstack blog\u003c/a\u003e •\n  \u003ca target=\"_blank\" href=\"https://docs.chainstack.com/quickstart/\"\u003eChainstack docs\u003c/a\u003e •\n  \u003ca target=\"_blank\" href=\"https://docs.chainstack.com/quickstart/\"\u003eBlockchain API reference\u003c/a\u003e • \u003cbr\u003e\n  • \u003ca target=\"_blank\" href=\"https://console.chainstack.com/user/account/create\"\u003eStart for free\u003c/a\u003e •\n\u003c/p\u003e\n\n# Deploying a deterministic smart contract on Ethereum\n\nThis project shows how you how to use a method called deterministic deployment that allows for precomputing contract addresses before deployment. \n\nRead the full guide on the Chainstack Blog\n* [Deploying a deterministic smart contract on Ethereum](https://chainstack.com/deploying-a-deterministic-contract-on-ethereum/)\n\n## Project details\n\nFor this example, we built a simple contract factory for a `SimpleWallet` contract. The factory allows you to deploy the `SimpleWallet` at a predefined address. The `index.js` file holds a script in interact with the smart contract.\n\n## Quickstart\n\nClone the repository:\n\n```sh\ngit clone https://github.com/chainstacklabs/deterministic-contract-deployment-remix.git\n```\n\nDeploy an instance of the `SimpleWallet` contract with [Remix](https://remix.ethereum.org/).\n\nEdit the `index.js` file to include the contract address, private key, and RPC endpoint.\n\n```js\nconst PRIVATE_KEY = \"\u003cYOUR_PRIVATE_KEY\u003e\";\n\nconst simpleWalletAddress = \"\u003cYOUR_INSTANCE_ADDRESS\u003e\";\n\nconst provider = ethers.getDefaultProvider(\"\u003cYOUR_GOERLI_PROVIDER\u003e\");\n```\n\nInstall  dependencies:\n\n```sh\nnpm ci\n```\n\n\u003e Use `npm ci` to launch a `clean install` of the dependencies, this will install the same version as in the `package.json` file.\n\nRun the script to interact:\n\n```sh\nnode index\n```\n\n## Prerequisites\n\n* Node.js: ^16.17.0— [install Node](https://nodejs.org/en/download/)\n* A node RPC endpoint.\n\nDeploy a node with Chainstack:\n\n1. [Sign up with Chainstack](https://console.chainstack.com/user/account/create).  \n1. [Deploy a node](https://docs.chainstack.com/platform/join-a-public-network).  \n1. [View node access and credentials](https://docs.chainstack.com/platform/view-node-access-and-credentials).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainstacklabs%2Fdeterministic-contract-deployment-remix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchainstacklabs%2Fdeterministic-contract-deployment-remix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainstacklabs%2Fdeterministic-contract-deployment-remix/lists"}