GithubHelp home page GithubHelp logo

misterzero / alf Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 9.0 1.82 MB

ERC-721 implementation for listing non-fungible digital art tokens on compliant marketplaces

Home Page: https://artistunleashed.app/

License: MIT License

JavaScript 94.46% HTML 3.50% CSS 2.04%

alf's Introduction

ArtistsLiberationFront ERC-721 token contract

ALF

About ALF

This contract is based on opensea-creatures.

This is a very simple ERC-721 implementation for listing non-fungible digital art tokens on compliant marketplaces like OpenSea and Rarebits.

Additionally, this tokenContract whitelists the proxy accounts of OpenSea users so that they are automatically able to trade the ERC721 item on OpenSea (without having to pay gas for an additional approval). On OpenSea, each user has a "proxy" account that they control, and is ultimately called by the exchange contracts to trade their items. (Note that this addition does not mean that OpenSea itself has access to the items, simply that the users can list them more easily if they wish to do so).

Node version

Either make sure you're running a version of node compliant with the engines requirement in package.json, or install Node Version Manager nvm and run nvm use to use the correct version of node.

User Interface

The frontend application can be run against a local node or ganache-cli, or against compliant contracts on any network connected via MetaMask.

Deploying contracts to a live network

  1. Make sure you copy the latest version of your truffle-compiled contract into ./src/assets/contract.json
  2. You'll need to sign up for Infura. and get an API key.
  3. Using your API key and the mnemonic for your Metamask wallet (make sure you're using a Metamask seed phrase that you're comfortable using for testing purposes), run:
export INFURA_KEY="<infura_key>"
export MNEMONIC="<metmask_mnemonic>"
truffle deploy --network rinkeby

Minting tokens

After deploying to the Rinkeby network, there will be a tokenContract on Rinkeby that will be viewable on Rinkeby Etherscan. For example, here is a recently deployed tokenContract. You should set this tokenContract address and the address of your Metamask account as environment variables when running the minting script:

export OWNER_ADDRESS="<my_address>"
export CONTRACT_ADDRESS="<deployed_contract_address>"
export NETWORK="rinkeby"
node scripts/mint.js

License

MIT © [email protected]

alf's People

Contributors

misterzero avatar

Watchers

 avatar

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.