This project is for the NCD program.
- fn nft_mint => Register assets to NFT and input information.
- fn nft_approve => Register assets to the market and input the number of tokens to divide the assets and their price.
- fn nft_on_approve => Register assets to the market and input the number of tokens to divide the assets and their price. called by NFT contract
- fn buy_token => Purchase of assets that have been divided into each token.
- fn sell_token => Sell of assets that have been divided into each token.
Unit test to confirm NFT registration on the market.
- contract build & deploy
- nft contract deploy && fn new_default_meta call
- market contract deploy && fn new call
- mint NFT to register a asset
- approve NFT to market
- now, you can buy asset tokens and sell asset tokens
- Plan to use Oracle to allow only whitelisted accounts to trade.
- Plan to allow price fluctuations triggered by Oracle to make it possible to change the price of assets.