This is the official repository for Wrapped Smart Contract using Truffle Framework.
Wrapped contract allow wrap any ERC20 and extend its functionalities.
To extend its functionalities, I have developed a smart contract that allows deposit(wrap) an ERC20, and mint same amount in the extended ERC777 token. See [Wrapped ETH](https://etherscan.io/address/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2#code) to understand how wrapped tokens work.
To install the latest version of Node.js, click here and follow the steps.
To install truffle, run the following command:
npm i -g truffle
npm i
All the testing scripts are under the test
folder. To run the test run the following commands:
$ truffle test
I have already deployed a sample contract to Goerli testnet network. You can play with it. In this test version of the contract, anybody can mint
and wrap
the token.
Contract | Token address |
---|---|
ERC20Token |
0x1b0B584367f7e3a41fCa48a23e6F54Fe9fEC2E79 |
ERC777Token |
0x183D7515fAD3DA55D33BD2e376f6fD813D00780C |