Overview
Learn how to write smart contracts for Treasure Chain.
While Treasure Chain is EVM compatible, it is not yet fully EVM equivalent. This means that there are some differences in how you write smart contracts for Treasure Chain. There are some additional configurations needed to develop smart contracts for Treasure Chain which are outlined in this section.
We recommend using Hardhat for your smart contract development needs instead of Foundry. While a ZK Stack specific fork of Foundry is available, it is in alpha stage and has limited support.
Continue on to the Hardhat section to learn more about how to use Hardhat with Treasure Chain.
To help you get started, we’ve prepared a repository with various smart contract examples that demonstrate common use-cases: treasure-chain-examples. We’re here to support you throughout your discovery and welcome any questions or requests for specific use cases or integrations.
Also check out the ZKsync CLI, a versatile tool that makes it simple to: bridge between Ethereum and ZKsync, configure chains, interact with contracts, scaffold new projects, run local environments, display transaction details, manage wallet assets and more.