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.
node
andnpm
Clone the repository and install the required packages:
npm install
Launch the Hardhat Network,a local Ethereum network node designed for development. More information here.
npx hardhat node
In a different terminal in the same directory, run:
npx hardhat --network localhost faucet <address>
npx hardhat --network localhost run scripts/deploy.js
Before 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 ShimmerEVM Faucet: https://evm-toolkit.evm.testnet.shimmer.network/.
npx hardhat --network shimmerevm-testnet run scripts/deploy.js
(To view transactions on the explorer: https://explorer.evm.testnet.shimmer.network/)
More information here to use and interact with the smart contract