hardhat-example
provides a simple smart contract deployment framework using the Hardhat development kit on Quai Network using either Solidity or SolidityX.
You can deploy smart contracts to Quai Network using either regular Solidity or the Quai Network specific SolidityX. The primary difference between the two is that SolidityX supports additional cross-chain features. You can read more about the differences between Solidity and SolidityX here.
Solidity:
- Recommended for developers new to Quai Network
- Single chain deployments without cross-chain functionality
- Easier to use, deploy, and test + compatible with existing Solidity tooling
- Supports any previously existing Solidity compiler version
- Can utilize pre-existing Solidity contract libraries like
@openzeppelin/contracts
. - Recommended for most use cases
SolidityX:
- Recommended for more advanced developers looking to experiment with cross-chain functionality
- Enables cross-chain contract deployments
- Requires a different compiler and additional configuration (can be difficult to set up)
- Not compatible with pre-existing Solidity contract libraries.
- Will be forward compatible with dynamic scaling events
To get started with Solidity contract deployments, navigate to the Solidity
directory and checkout the Solidity directory README.md.
To get started with SolidityX contract deployments, navigate to the SolidityX
directory and checkout the SolidityX directory README.md.