https://github.com/hamzayasin1/erc20-token-fixed-supply
Sample fixed supply token contract on ERC20 standard.
https://github.com/hamzayasin1/erc20-token-fixed-supply
erc20 ethereum-contract ethereum-token safemath solidity-contracts token
Last synced: over 1 year ago
JSON representation
Sample fixed supply token contract on ERC20 standard.
- Host: GitHub
- URL: https://github.com/hamzayasin1/erc20-token-fixed-supply
- Owner: HamzaYasin1
- License: mit
- Created: 2017-09-06T12:52:34.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-07T09:28:38.000Z (almost 9 years ago)
- Last Synced: 2025-01-11T03:19:55.165Z (over 1 year ago)
- Topics: erc20, ethereum-contract, ethereum-token, safemath, solidity-contracts, token
- Size: 6.84 KB
- Stars: 11
- Watchers: 1
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ERC20-token-fixed-supply
Sample fixed supply token contract on ERC20 standard.
## Methods
### 1. function totalSupply
Returns the outstanding supply of all tokens.
function totalSupply() constant returns (uint256)
### 2. function balanceOf
Returns the balance of the source address.
function balanceOf(address src) constant returns (uint256)
### 3. function allowance
Returns the amount of tokens that a person can withdraw from the source address via the transferFrom function.
function allowance(address src, address guy) constant returns (uint256)
### 4. function approve
Approves guy to withdraw tokens from msg.sender via the transferFrom function. Throws on uint overflow.
function approve(address guy, uint256 wad) returns (bool)
### 5. function transfer
Transfers wad tokens from msg.sender to the dst address. Throws on uint overflow.
function transfer(address dst, uint wad) returns (bool)
### 6. function transferFrom
Assumes sufficient approval set by the approve function. Transfers wad tokens from the src address to the dst address and decrements
from approvals[src][msg.sender]. Throws on uint overflow.
function transferFrom(address src, address dst, uint wad) returns (bool)
# Imports
import './SafeMath.sol';
import './ERC20.sol';
# Support
Donate Some Ether to the Developer.
Ethereum Address : 0x39886D0BFccc74D8CCb21c44534a41eC626620b3