Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: kashish948 on July 19, 2017, 09:58:54 AM



Title: Ethereum ERC20 code?
Post by: kashish948 on July 19, 2017, 09:58:54 AM
Hi

is there a template for making an erc20 coin?

i see this https://www.ethereum.org/token and the code under "Coin" works but is that erc20 or do i need to add any more parameters?


Title: Re: Ethereum ERC20 code?
Post by: ranreichman on July 19, 2017, 10:26:08 AM
That's the basic code which you need to create a token. You'll probably want to add more smart contract code to allow for vesting and stuff like that.


Title: Re: Ethereum ERC20 code?
Post by: kashish948 on July 19, 2017, 10:55:40 AM
That's the basic code which you need to create a token. You'll probably want to add more smart contract code to allow for vesting and stuff like that.

What all do i need to add to make it an ERC20 standard code?

I found this: https://theethereum.wiki/w/index.php/ERC20_Token_Standard
and that basic code at https://www.ethereum.org/token#the-code covers all these functions.....so does that mean it is erc20?


Title: Re: Ethereum ERC20 code?
Post by: romeo-karrera on July 19, 2017, 11:41:54 AM
That's the basic code which you need to create a token. You'll probably want to add more smart contract code to allow for vesting and stuff like that.

What all do i need to add to make it an ERC20 standard code?

I found this: https://theethereum.wiki/w/index.php/ERC20_Token_Standard
and that basic code at https://www.ethereum.org/token#the-code covers all these functions.....so does that mean it is erc20?


Code:
 /// @title ERC20 interface see https://github.com/ethereum/EIPs/issues/20
 /// mail@smartcontracteam.com
contract ERC20 {
  uint public totalSupply;
  function balanceOf(address who) constant returns (uint);
  function allowance(address owner, address spender) constant returns (uint);
  function transfer(address to, uint value) returns (bool ok);
  function transferFrom(address from, address to, uint value) returns (bool ok);
  function approve(address spender, uint value) returns (bool ok);
  event Transfer(address indexed from, address indexed to, uint value);
  event Approval(address indexed owner, address indexed spender, uint value);
}


Title: Re: Ethereum ERC20 code?
Post by: romanlanskoj on July 19, 2017, 11:42:59 AM
Hi

is there a template for making an erc20 coin?

i see this https://www.ethereum.org/token and the code under "Coin" works but is that erc20 or do i need to add any more parameters?

sorry for long time delay - I am back!  ;)

Since June I  had the  classical problem with Ethereum Wallet synchronization. Very long time my Ethereum node was offline and only I was possible to do - is writing codes. Was no deployment.

Finally solved this problem  these week using the Parity wallet node

Now  I have the ability deploy smartcontracts into the Ethereum Blockchain!!!
Can do it for you + test the code + verification + github + compilation etc


Please, those who wrote me, call or write me again Viber +375298563585
telegram +375298563585
skype open24365


Title: Re: Ethereum ERC20 code?
Post by: kashish948 on July 20, 2017, 08:32:09 PM
up


Title: Re: Ethereum ERC20 code?
Post by: kashish948 on July 21, 2017, 12:56:53 PM
does really nobody know if there is a go to erc20 token code? that one can copy paste to check?


Title: Re: Ethereum ERC20 code?
Post by: kashish948 on July 23, 2017, 04:35:05 PM
upppp


Title: Re: Ethereum ERC20 code?
Post by: newIndia on July 23, 2017, 07:48:37 PM
and that basic code at https://www.ethereum.org/token#the-code covers all these functions.
Can it be deployed using https://www.myetherwallet.com/#contracts ?