Please, note that code from this repository is referenced in the documentation. When making changes to the code especially when moving files, make sure to update the documentation as well.
Welcome to the ZetaChain example contracts repository! This collection of smart contract projects is written using Hardhat and Solidity, specifically for the ZetaChain blockchain. Each project showcases different functionalities and use cases that can be implemented on the ZetaChain platform.
The examples
directory contains the latest universal omnichain example
contracts. A universal app is a smart contract on ZetaChain that is natively
connected to other blockchains like Ethereum, BNB and Bitcoin. These contracts
use the latest gateway architecture and are compatible with localnet. Learn more
about universal apps in the
docs.
If you are new to ZetaChain and would like to learn how to use these example contracts, check out the Tutorial section in the docs. These tutorials provide step-by-step instructions on setting up your development environment, deploying contracts, and interacting with the ZetaChain network.
Contributions to this repository are welcome! If you have an example project or an improvement to an existing one, please fork the repository, create a new branch, make your changes, and submit a pull request.
These example projects are provided for educational purposes only. They are not intended for use in production environments without thorough review, security audits, and customization to meet specific requirements. Use them at your own risk.