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 omnichain
directory contains omnichain contracts. Omnichain is a unique
interoperability feature of ZetaChain that allows you to write and deploy a
single contract that can manage assets on all connected blockchains. Learn more
about
omnichain contracts in the docs.
The messaging
directory contains contracts that demonstrate the ability to
send data and value between blockchains using cross-chain transactions, without
the need for warpped assets and bridges. Learn more about
cross-chain messaging in the docs.
If you are new to ZetaChain and would like to learn how to use these example contracts, check out the developer section in the docs. The 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.