Hello all.
I’m studing in university, I have to find on internet an ICO solidities scripts over solidity 0.7, all that I found are in solidity 0.4.22 (MasterICo.sol, controlled.sol ownable.sol and mastertoken.sol) or similar, when I try to convert to 0.7.x is getting very difficult.
Well, where I can find them?
Many thanks and have nice week.
Nov 30, 2020, 5:56 PM
Check openzeppelin project
You will find there many interesting.
Nov 30, 2020, 6:27 PM
Many thanks, I will.
Nov 30, 2020, 7:30 PM
Quite a good question, actually. Not enough literature on the breaking changes after 0.5.x
Although, one approach that’s worked out for many including me is, learn the data structures. It does not matter the version. Since 0.4.x are available, go with them. They’re consistent across versions. Breaking changes are mostly centered around the security & transaction failure prospects.
Once you have a fair bit of understanding of solidity & its syntax, I do suggest refering the official documentation, and update notes. It’s actually connecting pieces from multiple places. Same with web3. Although, I can share a good learning materal on web3, ganache & truffle.
Although, one approach that’s worked out for many including me is, learn the data structures. It does not matter the version. Since 0.4.x are available, go with them. They’re consistent across versions. Breaking changes are mostly centered around the security & transaction failure prospects.
Once you have a fair bit of understanding of solidity & its syntax, I do suggest refering the official documentation, and update notes. It’s actually connecting pieces from multiple places. Same with web3. Although, I can share a good learning materal on web3, ganache & truffle.
ERC20 token checklist
1. Basic token contract + functions[transfer, approve, transferFrom, allowances[increased, decreased], mint, burn]
2. contract interface
3. modifiers[role based access]
4. proxy delegation[upgradeable contracts]
5. deployment - testnet, mainnet.
Am i missing any?
1. Basic token contract + functions[transfer, approve, transferFrom, allowances[increased, decreased], mint, burn]
2. contract interface
3. modifiers[role based access]
4. proxy delegation[upgradeable contracts]
5. deployment - testnet, mainnet.
Am i missing any?
Nov 30, 2020, 8:31 PM
Depends on your needs. You can either include a lot or very little. You already have a lot of stuff listed which is not required by the standard.
One clear thing which is missing: unit tests
Nov 30, 2020, 8:32 PM
I’m looking at it from a scaleability perspective. Say, tomorrow, i want to build a dapp on top of this.
Goes without saying. 😄
Nov 30, 2020, 8:33 PM
Basic tokens don't have scalability issues. Only the functionality you build on top of it may have
Sorry, no, not my speciality
Nov 30, 2020, 8:34 PM
No problem. Thanks.
Nov 30, 2020, 8:35 PM
Many many thanks, Coin TA, i el work on it. Have a nice week.
Nov 30, 2020, 8:46 PM