קודם הבא
Blockchain Help logo

solidity.png

3 מאי, 2018

Entry statistics

0 צפיות
0 שבחים

Entry content

Entry 154491 in Portfolio by Blockchain Help

Entry content

Entry 154490 in Portfolio by Blockchain Help

Entry content

Entry content

Entry 154488 in Portfolio by Blockchain Help

Entry content

Entry 154487 in Portfolio by Blockchain Help

Entry content

Entry 153755 in Portfolio by Blockchain Help

Entry content

Entry 153754 in Portfolio by Blockchain Help

Entry content

Entry 153753 in Portfolio by Blockchain Help

Entry content

Entry 153752 in Portfolio by Blockchain Help

Entry content

Entry 153751 in Portfolio by Blockchain Help

Entry content

Entry 153750 in Portfolio by Blockchain Help

Entry description

I can create ERC-20 Token Smart Contract for Ethereum Blockchain Platform.

Let’s show me a Sample:

pragma solidity ^0.4.16; interface tokenRecipient
{
function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public;
}
contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
uint256 public totalSupply;

// This creates an array with all balances mapping (address => uint256) public balanceOf;
mapping (address => mapping (address => uint256)) public allowance;

// This notifies clients about the amount burnt event Burn(address indexed from, uint256 value);
function TokenERC20(
uint256 initialSupply,
string tokenName,
string tokenSymbol
) public { totalSupply = initialSupply * 10 ** uint256(decimals);
הוסף תגובה 0 תגובות
אנא היכנס למערכת כדי להגיב