This repository contains the smart contracts to tokenize and represent data assets as NFT on the DLT. In detail, AssetFactory is a factory contract that deploys instances of the Asset contract. Asset is an ERC-721 contract. When the tokenize function is invoked, the AssetFactory contract deploys a new Asset contract. Each Asset instance inherits the same properties and functionality defined in the Asset contract, but with unique values specific to each NFT.
nodeandnpm
Clone the repository and install the required packages:
npm installLaunch the Hardhat Network,a local Ethereum network node designed for development. More information here.
npx hardhat nodeIn a different terminal in the same directory, run:
npx hardhat --network localhost faucet <address>
npx hardhat --network localhost run scripts/deploy.jsBefore proceeding, make sure the address linked to your PRIVATE_KEY in the .env file has sufficient funds for transactions. If not, you can request testnet SMR tokens from the IOTA EVM Faucet: https://evm-toolkit.evm.testnet.iotaledger.net.
npx hardhat --network iota-evm-testnet run scripts/deploy.js (To view transactions on the explorer: https://explorer.evm.testnet.iotaledger.net)
More information here to use and interact with the smart contract