Skip to content

kongtaoxing/nftwarper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NFT Wrapper

Warp ERC721 NFT into ERC20 token to increace liquidity of NFT in Starknet.

install dependency

This repository requires cairo v2.6.5, scarb v2.6.5, starknet foundry v0.25.0 and universal-sierra-compiler v2.1.0. Check the project page to install the right version of tools on your system. Try the following command to verify installation:

scarb -V
# expected output: scarb 2.6.5 (d49f54394 2024-06-11)
snforge -V
# expected output: snforge 0.25.0
universal-sierra-compiler -V
#expected output: universal-sierra-compiler 2.1.0

run test

Open this project in VSCode or other IDE, run the following code in terminal:

snforge test

Then you can see the result.

TODO

  • Fix U256 Store trait (waiting for cairo 2.7.0)

    (Fixed using maintain a (contract_address, index) -> value mapping and (contract_address -> array_length) mapping. Still waing for cairo native array storage.)

  • Add more tests for access control

  • Create a dex for the wrapped token.

  • Add more function to the pool.

You are welcomed to contribute!

About

Wrap ERC721 NFT into ERC20 token

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages