This directory contains the source code and documentation for the Fractional NFTs smart contract. The Fractional NFTs contract enables the fractionalization of Non-Fungible Tokens, allowing users to own and trade fractions of high-value NFTs.
- Supported Networks: Mumbai Testnet (Polygon)
- Fractionalization: Enable users to own fractions of NFTs
- Governance: Governance token for decision-making
- Liquidity Pool: Facilitate trading of fractionalized NFTs
- Contract Name: fNFT.sol
- Network: Mumbai Testnet (Polygon)
- Version: 1.0.0
To deploy and interact with the fractionalNFTs smart contract, follow the steps below:
Ensure you have the following tools installed:
Helpful, but optional:
Ganache is a personal blockchain for Ethereum development, providing a local blockchain environment. Infura offers a scalable and reliable Ethereum and IPFS infrastructure. MetaMask is a popular Ethereum wallet and browser extension.
# Clone the repository with HTTPS.
git clone https://github.com/kevalsayar/SmartContracts.git
# Clone the repository with SSH.
git clone git@github.com:kevalsayar/SmartContracts.git
cd SmartContracts/fractionalNFTs
$ npm install
Create a new file named .env in the root of the project. Copy the variable names from the example.env file and populate their values in the .env file.
-
$ truffle compile --all
-
Deploy the fractionalNFTs smart contract to the Binance Smart Chain:
$ truffle migrate --network <Network Name>
-
$ truffle run verify <Contract Name> --network <Network Name>
Run tests to ensure the fractionalNFTs contract behaves as expected:
$ truffle test
The test suite includes comprehensive tests to validate the functionality and behavior of the fractionalNFTs smart contract. Ensure all tests pass before deploying the contract in a production environment.
Please see the Official Truffle Documentation for guides, tips, and examples