- metamask
- remix IDE
First of all, paste the code to remix IDE and compile it.
Add a company ➡️ Issue/Re-issue/Transfer ➡️ Comfirm an Action
Please enter the following information.
1. company name (string)
2. funding date (string)
3. number of shares (uint)
4. funders' adress (array of address)
5. number of comfirmation for each action (uint)
After you add a company, the first number of shares genesis will be minted automatically.
The NFT is under the system (not one of the funder's address)
To issue/mint a token, just enter the company name. The "issue" event will start when the number of confirmation is enough.
Note: Only funders can issue a token.
Same as Issue. The difference is that the "reissue" event will burn a token and issue two tokens.
Note: if the token is not enough, re-issue will fail.
To transfer a token to a given address, enter the following informations:
1. Company name(string)
2. Target address (address)
Note: Only funders can launch a transfer event.
Note: Transfer will start when the number of confirmations is enough.
After an action launched, funders can confirm the action by "confirmAction".
There are two arguments should be checked out:
1. Company name (string)
2. action index (uint)
Once the number of confirmations is enough. the action will be launched automatically.
Note: Only funders can confirm an action.
OpenSea: https://testnets.opensea.io/assets/0xbcef17ee68d05e923a372d489b0185595c430980/0
Github: https://github.com/KaiChen1008/crypto_final_2021
https://www.itread01.com/content/1526458804.html
https://ethereum.stackexchange.com/questions/30912/how-to-compare-strings-in-solidity/103807
https://ithelp.ithome.com.tw/articles/10204297