Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
8,000,000 XRPG
Holders
1,548
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 0 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
RippleGold
Compiler Version
v0.4.19-nightly.2017.11.16+commit.58e452d1
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-11-16 */ pragma solidity ^0.4.9; library SafeMath { function mul(uint256 a, uint256 b) internal constant returns(uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal constant returns(uint256) { uint256 c = a / b; return c; } function sub(uint256 a, uint256 b) internal constant returns(uint256) { assert(b <= a); return a - b; } function add(uint256 a, uint256 b) internal constant returns(uint256) { uint256 c = a + b; assert(c >= a); return c; } } contract RippleGold { using SafeMath for uint256; mapping(address => mapping(address => uint256)) allowed; mapping(address => uint256) balances; uint256 public totalSupply; uint256 public decimals; address public owner; bytes32 public symbol; bool public fullSupplyUnlocked; event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed _owner, address indexed spender, uint256 value); function RippleGold() { totalSupply = 8000000; symbol = 'XRPG'; owner = 0xc9Ae8DA97C70702A7D2Bc39af05Df6629A8DE407; balances[owner] = 8000000; decimals = 0; } function unlockSupply() returns(bool) { require(msg.sender == owner); require(!fullSupplyUnlocked); balances[owner] = balances[owner].add(8000000); fullSupplyUnlocked = true; return true; } function balanceOf(address _owner) constant returns(uint256 balance) { return balances[_owner]; } function allowance(address _owner, address _spender) constant returns(uint256 remaining) { return allowed[_owner][_spender]; } function transfer(address _to, uint256 _value) returns(bool) { balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); Transfer(msg.sender, _to, _value); return true; } function transferFrom(address _from, address _to, uint256 _value) returns(bool) { var _allowance = allowed[_from][msg.sender]; balances[_to] = balances[_to].add(_value); balances[_from] = balances[_from].sub(_value); allowed[_from][msg.sender] = _allowance.sub(_value); Transfer(_from, _to, _value); return true; } function approve(address _spender, uint256 _value) returns(bool) { require((_value == 0) || (allowed[msg.sender][_spender] == 0)); allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; } function() { revert(); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"fullSupplyUnlocked","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"unlockSupply","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":false,"stateMutability":"nonpayable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"}]
Contract Creation Code
6060604052341561000f57600080fd5b627a120060028190557f585250470000000000000000000000000000000000000000000000000000000060055560048054600160a060020a03191673c9ae8da97c70702a7d2bc39af05df6629a8de4071790819055600160a060020a03166000908152600160205260408120919091556003556105e2806100916000396000f3006060604052600436106100ae5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663095ea7b381146100be57806318160ddd146100f457806323b872dd14610119578063313ce5671461014157806370a08231146101545780637c197c09146101735780638da5cb5b1461018657806395d89b41146101b5578063a8dc824c146101c8578063a9059cbb146101db578063dd62ed3e146101fd575b34156100b957600080fd5b600080fd5b34156100c957600080fd5b6100e0600160a060020a0360043516602435610222565b604051901515815260200160405180910390f35b34156100ff57600080fd5b6101076102c4565b60405190815260200160405180910390f35b341561012457600080fd5b6100e0600160a060020a03600435811690602435166044356102ca565b341561014c57600080fd5b6101076103d9565b341561015f57600080fd5b610107600160a060020a03600435166103df565b341561017e57600080fd5b6100e06103fa565b341561019157600080fd5b610199610403565b604051600160a060020a03909116815260200160405180910390f35b34156101c057600080fd5b610107610412565b34156101d357600080fd5b6100e0610418565b34156101e657600080fd5b6100e0600160a060020a03600435166024356104a6565b341561020857600080fd5b610107600160a060020a0360043581169060243516610565565b60008115806102525750600160a060020a0333811660009081526020818152604080832093871683529290522054155b151561025d57600080fd5b600160a060020a0333811660008181526020818152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60025481565b600160a060020a0380841660009081526020818152604080832033851684528252808320549386168352600190915281205490919061030f908463ffffffff61058e16565b600160a060020a038086166000908152600160205260408082209390935590871681522054610344908463ffffffff6105a416565b600160a060020a03861660009081526001602052604090205561036d818463ffffffff6105a416565b600160a060020a0380871660008181526020818152604080832033861684529091529081902093909355908616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3506001949350505050565b60035481565b600160a060020a031660009081526001602052604090205490565b60065460ff1681565b600454600160a060020a031681565b60055481565b60045460009033600160a060020a0390811691161461043657600080fd5b60065460ff161561044657600080fd5b600454600160a060020a031660009081526001602052604090205461047490627a120063ffffffff61058e16565b600454600160a060020a03166000908152600160208190526040909120919091556006805460ff191682179055905090565b600160a060020a0333166000908152600160205260408120546104cf908363ffffffff6105a416565b600160a060020a033381166000908152600160205260408082209390935590851681522054610504908363ffffffff61058e16565b600160a060020a0380851660008181526001602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b600160a060020a0391821660009081526020818152604080832093909416825291909152205490565b60008282018381101561059d57fe5b9392505050565b6000828211156105b057fe5b509003905600a165627a7a72305820fc40a887974bd94757e113ecd61e0825f57400cbb4c249aee7bb692623ecd4dd0029
Deployed Bytecode
0x6060604052600436106100ae5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663095ea7b381146100be57806318160ddd146100f457806323b872dd14610119578063313ce5671461014157806370a08231146101545780637c197c09146101735780638da5cb5b1461018657806395d89b41146101b5578063a8dc824c146101c8578063a9059cbb146101db578063dd62ed3e146101fd575b34156100b957600080fd5b600080fd5b34156100c957600080fd5b6100e0600160a060020a0360043516602435610222565b604051901515815260200160405180910390f35b34156100ff57600080fd5b6101076102c4565b60405190815260200160405180910390f35b341561012457600080fd5b6100e0600160a060020a03600435811690602435166044356102ca565b341561014c57600080fd5b6101076103d9565b341561015f57600080fd5b610107600160a060020a03600435166103df565b341561017e57600080fd5b6100e06103fa565b341561019157600080fd5b610199610403565b604051600160a060020a03909116815260200160405180910390f35b34156101c057600080fd5b610107610412565b34156101d357600080fd5b6100e0610418565b34156101e657600080fd5b6100e0600160a060020a03600435166024356104a6565b341561020857600080fd5b610107600160a060020a0360043581169060243516610565565b60008115806102525750600160a060020a0333811660009081526020818152604080832093871683529290522054155b151561025d57600080fd5b600160a060020a0333811660008181526020818152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60025481565b600160a060020a0380841660009081526020818152604080832033851684528252808320549386168352600190915281205490919061030f908463ffffffff61058e16565b600160a060020a038086166000908152600160205260408082209390935590871681522054610344908463ffffffff6105a416565b600160a060020a03861660009081526001602052604090205561036d818463ffffffff6105a416565b600160a060020a0380871660008181526020818152604080832033861684529091529081902093909355908616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3506001949350505050565b60035481565b600160a060020a031660009081526001602052604090205490565b60065460ff1681565b600454600160a060020a031681565b60055481565b60045460009033600160a060020a0390811691161461043657600080fd5b60065460ff161561044657600080fd5b600454600160a060020a031660009081526001602052604090205461047490627a120063ffffffff61058e16565b600454600160a060020a03166000908152600160208190526040909120919091556006805460ff191682179055905090565b600160a060020a0333166000908152600160205260408120546104cf908363ffffffff6105a416565b600160a060020a033381166000908152600160205260408082209390935590851681522054610504908363ffffffff61058e16565b600160a060020a0380851660008181526001602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b600160a060020a0391821660009081526020818152604080832093909416825291909152205490565b60008282018381101561059d57fe5b9392505050565b6000828211156105b057fe5b509003905600a165627a7a72305820fc40a887974bd94757e113ecd61e0825f57400cbb4c249aee7bb692623ecd4dd0029
Swarm Source
bzzr://fc40a887974bd94757e113ecd61e0825f57400cbb4c249aee7bb692623ecd4dd
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.