Skip to content

Wrapped contract allow wrap any ERC20 and extend its functionalities.

License

Notifications You must be signed in to change notification settings

estlosan/WrappedToken

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wrapped Smart Contract 🍬

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.

Table of Contents

🛠️ Pre-requisites

1. Node.js

To install the latest version of Node.js, click here and follow the steps.

2. Truffle

To install truffle, run the following command:

npm i -g truffle

👨‍💻 Getting Started

Install Dependencies

npm i

⚗️ Testing

All the testing scripts are under the test folder. To run the test run the following commands:

$ truffle test

⌨️ Playground

Ethereum - Goerli testnet

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

About

Wrapped contract allow wrap any ERC20 and extend its functionalities.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published