This project is meant to be the wrapped version of the KDA native token on the Kadena Chainweb EVM chains. It is based on the WETH9 implementatin but upgraded to solidity 0.8.30 (the latest version at the time). One big difference is that that there is no balanceOf mnapping per se. Instead, an ERC-7201 namespaced storage slot is used for the mapping. This was meant to facilitate the planned ERC-20 x-chain mechanism. This mechanism would rely on storage proofs to get an address's balance of WKDA. In order for that to work, the x-chain mechanism would need to know in which slot the mapping is present.
To run the unit tests, clone the repo. Run
npm install
in the project root director.
Then run
npx hardhat test