GithubHelp home page GithubHelp logo

artstakes's Introduction

ArtStakes (WIP) made in ETHGlobal's Superhack

ArtStakes is a protocol seeking to unlock usecases for NFT's

Components

  • AS_ERC721X: Cloned ERC721 token representing the erc721 staked on the L1 chain, user can choose between an ERC20 or an ERC721, and this is the ERC721 bridged over to L2 with the matching metadata, with subtle differences such as totalSupply and tokenId, which are still saved.

  • AS_ERC20: Cloneable ERC20 Token contract following the spec, has the L2artStakes contract set as owner, with limited capabilities such as burning, minting under certain conditions.

  • L1ArtStakes: This is the beginning of the user-flow, here you can set your NFT metadata, you can choose type: 1 for ERC721 cloned NFT on the L2 Chain or type: 2 for ERC20 tokens that you can specify the totalSupply for, once the transaction for setting the metadata is confirmed, you can stake your token (after giving approval to this contract on your NFT's contract) and have it ready for you to mint on the L2 of your choice.

  • L2ArtStakes: This is where the user-flow continues, after your Nft was staked on the L1ArtStakes, it's clone will be unlocked here, you can then mint the corresponding token, which will be the token choice you've made already on the L1, additionally, the holder of the Cloned NFT, or a certain threshold of the ERC20 tokens, a user can burn the L2 Contract, and claim the Original NFT on the L1ArtStakes, working as an intermediary that facilitates permissionless fractionalization, Cloning as well as hopefully inspiring new ideas to be built on top.

Build

$ forge install openzeppelin/[email protected]
$ cd lib
$ yarn
$ cd ..

Test

$ forge test

Audit details:

Auditor
Notes

All changes for MAIN until commit 62348787bd3099a564099e8f8779d124d389eaf6 have been audited and are considered in the audit report.

mitigations: (pending)

Links

artstakes's People

Contributors

owl11 avatar

Watchers

 avatar

artstakes's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.