Smart contracts and dApps are not yet supported on Shardeum. The beta version is expected in Q2 2025, with full launch planned for Q3 2025. We are working closely with the community to build the fastest, most affordable parallel-executing EVM platform and we can't wait to get started.
The contract interface is defined above the contract that will be calling the contract interface.
Functions are then defined inside the interface based on name, inputs and modifiers.
A contract interface instance needs to be created in the contract that will be using the interface.
The contract interface is then defined when its address is set inside the constructor for the contract using the interface.
One popular contract that is useful with interfaces is WETH (Wrapped Ether).
This contract converts MSG.VALUE into an ERC-20 instance. On Shardeum, SHM Is MSG.VALUE.
Therefore, WETH is WSHM on Shardeum. This contract has wrap and unwrap functions:
Deposit (Wrap): SHM => WSHM.
Withdraw (Unwrap): WSHM => SHM.
Using a WSHM interface, we can create a Solidity 0.8.0 contract that can interact with WSHM (Solidity 0.4.0).