https://github.com/thirdweb-example/deterministic-deploy-demo
https://github.com/thirdweb-example/deterministic-deploy-demo
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thirdweb-example/deterministic-deploy-demo
- Owner: thirdweb-example
- Created: 2023-08-22T22:47:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-16T16:05:35.000Z (over 1 year ago)
- Last Synced: 2025-04-02T18:21:55.708Z (11 months ago)
- Language: TypeScript
- Size: 178 KB
- Stars: 4
- Watchers: 5
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deploy contracts with the same address on any chain
This demo script shows how to deploy a [published](https://portal.thirdweb.com/contracts/publish/overview) contract on multiple chains with the same address.
## Run Locally
Install dependencies:
```bash
yarn
```
Run the script:
```bash
yarn start
```
## Environment Variables
To run this project, you will need to add the following environment variables to your .env file:
```bash
WALLET_PRIVATE_KEY=paste_your_private_key_here
THIRDWEB_SECRET_KEY=paste_your_secret_key_here
```
- Generate your `THIRDWEB_SECRET_KEY` via thirdweb's [dashboard](https://thirdweb.com/create-api-key).
- For `WALLET_PRIVATE_KEY` export your wallet private key from your wallet.
## Additional Resources
- [Documentation](https://portal.thirdweb.com)
- [Templates](https://thirdweb.com/templates)
- [Video Tutorials](https://youtube.com/thirdweb_)
- [Blog](https://blog.thirdweb.com)
## Contributing
Contributions and [feedback](https://feedback.thirdweb.com) are always welcome!
Please visit our [open source page](https://thirdweb.com/open-source) for more information.
## Need help?
For help, join the [discord](https://discord.gg/thirdweb) or visit our [support page](https://support.thirdweb.com).