JuanVillalba / contractor

The πŸ•΄ CONTRACTOR will help you build your smart contracts!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ•΄ 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

About

The πŸ•΄ CONTRACTOR will help you build your smart contracts!

License:MIT License


Languages

Language:JavaScript 100.0%