Git Product home page Git Product logo

contractor's Introduction

๐Ÿ•ด The CONTRACTOR

Here to help you create your smart contracts!

The CONTRACTOR can help you:

  • Mint an ERC1155 on Opensea in just 3 easy steps
  • ... and more!

Required software and accounts

[Optional] For Local Testing:


๐Ÿš€ Getting Started With ERC1155 Example

1. Fork the repository

Click here to fork and create your own project.

  • Fork Contractor

2. Create an .env file with the correct mnemonic and API keys

Inside the project directory, create a .env file containing the mnemonics and API keys. You can copy the env.example.

GANACHE_MNEMONIC=[not needed for demo]
TESTNET_MNEMONIC=[mnemonic for wallet with about 2 Rinkeby ETH]
INFURA_API_KEY=[yourInfuraKey]
PINATA_API_KEY=[yourPinataAPIKey]
PINATA_SECRET_API_KEY=[yourPinataSecretAPIKey]

3. Have ๐Ÿ•ด The CONTRACTOR create your contracts and mint your items

  • run yarn demo inside project directory, then wait a bit โŒ› The script will take a while to deploy the contracts on Rinkeby testnet.
  • Once finished, the logs will display the contract details. Copy the FactoryAddress to your clipboard
  • In a browser, go to https://rinkeby.opensea.io/get-listed/step-two and paste the contract address.
  • That's it! See the items you created on Opensea

Rinkeby Opensea Image


Creating Your Own Item Specs

Minting Items

The demo mint parameters are defined in MyLootBox.sol, which pre-mints 1, 5, and 10 copies of the first 3 tokens respectively to the owner account.

This is a custom function based on the Opensea Factory implementation of ERC1155, more info on how to customize it can be found here.

Local Testing

For quicker development, you can use Ganache for local smart contract deployment and testing.

Licenses

GitHub license

contractor's People

Contributors

polats avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.