PROJECTS_DIR=/Users/apple/aigen
ACCOUNT_ADDRESS=0x0000000000000000000000000000000000000000
PRIVATE_KEY=000000000000000000000000000000000000000000000000000000000000000
AINFT_CONTRACT_ADDRESS=0x000000000000000000000000000000000000
PROVIDER_URL=http://0.0.0.0:8545
NFTSTORAGE_TOKEN=<NFTStorage Token>
AIGEN_LAUNCHPAD_CONTRACT_ADDRESS=0x000000000000000000000000000000000
npm install
or
yarn
The smart contracts can be found inside the contracts directory
- AINFTToken.sol
- AigenLaunchpad.sol
npm run compileAINFTTokenContract
npm run deployAINFTTokenContract
this will automatically deploy the smart contract to 'PROVIDER_URL'
Note:
- You can also use Remix IDE to deploy the smart contract to the local Ganache or Goerli testnet.
- It is recommended that you test the smart contract before deploying it to the mainnet.
npm run ainft --action="createAIProject" --project_name="test" --project_description="test project"
--project_logo_path="<project_logo_path>" --project_banner_path="<project_banner_path>"
npm run ainft --action="createAINFT" --project_id="10" --project_name="test"
this step will deploy files to NFTStorage and mint AINFTs
npm run ainft --action=downloadAINFT --project_id="10" --project_name="test"
this will automatically download and decrypt the content of AINFTs
This project is licensed under the MIT License - see the LICENSE file for details