Skip to content

B-oxygen/sto_project

 
 

Repository files navigation

near-sto-Project-T.rusT

image This project is for the NCD program.

STO Project Goal

Key features

NFT Contract

  • fn nft_mint => Register assets to NFT and input information.

image

  • fn nft_approve => Register assets to the market and input the number of tokens to divide the assets and their price.

image

Market Contract

  • 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

image

  • fn buy_token => Purchase of assets that have been divided into each token.

image

  • fn sell_token => Sell of assets that have been divided into each token.

image

Unit Test

Unit test to confirm NFT registration on the market.

image

How to use

  1. contract build & deploy
    • nft contract deploy && fn new_default_meta call
    • market contract deploy && fn new call
  2. mint NFT to register a asset
  3. approve NFT to market
  4. now, you can buy asset tokens and sell asset tokens

Next Step

  1. Plan to use Oracle to allow only whitelisted accounts to trade.
  2. Plan to allow price fluctuations triggered by Oracle to make it possible to change the price of assets.

The reference documents

Releases

No releases published

Packages

No packages published

Languages

  • Rust 53.6%
  • Makefile 42.3%
  • LLVM 3.7%
  • JavaScript 0.3%
  • C 0.1%
  • CSS 0.0%