First of all, I have to say it’s a great work for you geeks building this huge project for ethereum ecosystem.
Now here is my questions,I have create a new ERC20Token on remix with an exist smart contract code downloaded from anwhere else.
But ,I could not find the one for ERC721 token deploy.(I mean the full code in one file without importing any *.sol files)
So,does it mean:
1.Do I have to install openzeppelin on my computer?
2.Could it be installed on win10 system?
3.Is there a step to step guideline (more details)to deploy ERC721 token?
4.Advantage course of setting more specifics for the ERC721 token……
Thanks for all your kindly replies!
Happy ThanksGiving day!
This is a good question for a newbie without coding skills.
yes,you can make a simple erc20 token with just one sol file on remix .
but it’s more complex to erc721 contract.
so you should learn more,anyway,it could be easier in the future IMO.
GOOD LUCK!
You can deploy the following SimpleERC721 using Remix, you can then call mintWithTokenURI to mint tokens.
Note: You should only use code published in an official release of OpenZeppelin Contracts, the latest release is 2.4. When importing via GitHub on Remix you can specify the release tag, (otherwise you will get the latest code in the master branch). The example below imports v2.4.0.
SimpleERC721
pragma solidity ^0.5.5;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.4.0/contracts/token/ERC721/ERC721Full.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.4.0/contracts/token/ERC721/ERC721MetadataMintable.sol";
contract SimpleERC721 is ERC721Full, ERC721MetadataMintable {
constructor() ERC721Full("Token", "TKN") public {
}
}
You can deploy an ERC721 token from Remix importing OpenZeppelin from GitHub.
Though for a production project, you need appropriate testing, so would likely want to use OpenZeppelin SDK or Truffle.
For now I am a newbie,first step for me is to create a simple contract,so,how could I import all necessary files by a simple way,if I just create a simple erc721token contract with remix?
awesome,I have done it .
still,First I met a red error about compiler .
a bit issue confused me:the right compiler should be 0.5.5 ,but not the 0.5.0 mentioned in the code.
Sorry about the pragma solidity ^0.5.0;, I was using the default compiler so didn’t have any issues. I have changed the code above to be pragma solidity ^0.5.5;
There is no cap on how many tokens you can mint in the one ERC721 contract (tokenID is uint256). (Though you could add a cap if required, e.g. only 10,000)