Skip to content

Examples of universal smart contract implementing cross-chain swaps, NFT transfers, ERC-20 transfers and more

License

Notifications You must be signed in to change notification settings

zeta-chain/example-contracts

Repository files navigation

Example ZetaChain contracts

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.

Overview

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.

Universal Apps

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.

The omnichain directory contains contracts that use TSS for interacting with universal apps. These contracts do not use the latest gateway architecture, but are compatible with the current testnet.

Tutorials

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.

Contributing

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.

Disclaimer

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.

About

Examples of universal smart contract implementing cross-chain swaps, NFT transfers, ERC-20 transfers and more

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published