This repository hosts the smart contracts for the OmniFlix launchpad. These contracts empower creators to launch an NFT collection where the user’s themselves mint NFTs. After setting these up, creators can share the details with their community or users, enabling them to mint an NFT.
Launchpad utilizes a singleton structure for each collection that is released through this launchpad. The purpose of these factory contracts is to create an instance of minters & whitelist contracts.
To build the contracts, use the following command:
cargo build
Testing is done using multi-test package. To run the tests, use the following command:
cargo test
To optimize the contract and generate the wasm files, run the following command:
docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/workspace-optimizer:0.14.0