hi guys, how does a token erc20 works? I mean, each token is smart contract with the standard (interface) for ERC20?

Jun 7, 2018, 3:33 PM
so supposing we have an erc20 token called ZZZ, 1 ZZZ is represented as a smart contract on the ethereum chain where the owner of the contract is my address?
Jun 7, 2018, 3:34 PM
the owner of every token recorded in erc20-smart contract
not just you
Jun 7, 2018, 4:38 PM
I dont get It sorry
The erc20 has the owner function as well
Jun 7, 2018, 4:39 PM
erc20 is a contract that have records which address have amount token. for first first only deployer address will have amount as much as total supply
btw for standart erc20 token there is no one own the contract
Jun 7, 2018, 4:47 PM
Ok so basically when i deploy the contract ad erc20 i own the whole max supply as balance. If i pass 10 token to another address It Will have a 10 coins in its balance Right? So basically the whole deployed sc erc20 is the only One Who is deployed and keeps tracks of all' the transactions and balances?
Jun 7, 2018, 4:51 PM
👍
Jun 7, 2018, 4:52 PM
And i can query It asking the balances of everyone?
So the owner of the contract (erc20) is the First deployer?
Jun 7, 2018, 4:53 PM
q1: yes q2: its depend, you may save deployer address as variable named "owner" in erc20, not a standard in erc20. you may use the address for something unique, ex: send some token to "owner" address when there is transaction - of course it is not standard
Jun 7, 2018, 4:56 PM
Ok, but for being an erc20 the code must ne standard or i can change It with further features
Jun 7, 2018, 4:57 PM
its up to you, if your community accept that feature, why not. btw source code must be opened so other can see there is no malicious code
to be accepted on exchange the token must have minimal erc20 interface, you may add some function/feature without change/remove erc20 function
Jun 7, 2018, 5:00 PM
Ok
And what about erc721?
Jun 7, 2018, 5:01 PM
cryptokitties
Jun 7, 2018, 5:03 PM
Yes i knoe
But i mean they are non fungible
So the interface is different? They do not Need the max supply ?
Jun 7, 2018, 5:04 PM
they are different. erc721 not erc20+some features
Jun 7, 2018, 6:12 PM
why they are different?
Jun 7, 2018, 6:14 PM
erc20 => money erc721 => things
Jun 7, 2018, 6:18 PM
in erc721 there is again just a single SC? it shoudl change since objects/things can change among owners
Jun 7, 2018, 6:23 PM
yes, erc721 just a single sc. its record uniqueid paired to address, not like erc20 thats record amount paired to address
Jun 7, 2018, 6:27 PM
and the uniqueid is the single object/thing related t that address?
Jun 7, 2018, 6:29 PM
yes
Jun 7, 2018, 6:30 PM
what a time to be alive !! hahaha
thanks man
Jun 7, 2018, 6:33 PM

© 2024 Draquery.com All rights reserved.