Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
1,000,000,000 AT
Holders
21,422
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 5 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TokenArtFinity
Compiler Version
v0.4.25+commit.59dbf8f1
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2019-03-07 */ pragma solidity ^0.4.16; contract owned { constructor () public { owner = msg.sender; } address owner; modifier onlyOwner { require(msg.sender == owner); _; } } contract TokenArtFinity is owned { mapping (address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; string public name = "ArtFinity"; //token name uint8 public decimals = 5; string public symbol = "AT"; uint256 public totalSupply = 100000000000000; GoodsTransferInfo[] public goodsTransferArray; event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); struct GoodsTransferInfo { address withDrawAddress; uint32 goodsId; uint32 goodsNum; } constructor () public { balances[msg.sender] = totalSupply; } function transfer(address _to, uint256 _value) public returns (bool success) { require(balances[msg.sender] >= _value && balances[_to] + _value > balances[_to]); require(_to != 0x0); balances[msg.sender] -= _value; balances[_to] += _value; emit Transfer(msg.sender, _to, _value); return true; } function transferTokenWithGoods(address goodsWithdrawer, uint256 _value, uint32 goodsId, uint32 goodsNum) public onlyOwner returns (bool success) { require(balances[msg.sender] >= _value && balances[goodsWithdrawer] + _value > balances[goodsWithdrawer]); require(goodsWithdrawer != 0x0); balances[msg.sender] -= _value; balances[goodsWithdrawer] += _value; goodsTransferArray.push(GoodsTransferInfo(goodsWithdrawer, goodsId, goodsNum)); emit Transfer(msg.sender, goodsWithdrawer, _value); return true; } function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { require(balances[_from] >= _value && allowed[_from][msg.sender] >= _value); balances[_to] += _value; balances[_from] -= _value; allowed[_from][msg.sender] -= _value; emit Transfer(_from, _to, _value); return true; } function balanceOf(address _owner) public constant returns (uint256 balance) { return balances[_owner]; } function approve(address _spender, uint256 _value) public returns (bool success) { allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } function allowance(address _owner, address _spender) public constant returns (uint256 remaining) { return allowed[_owner][_spender]; } function goodsTransferArrayLength() public constant returns(uint256 length) { return goodsTransferArray.length; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","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":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"goodsTransferArrayLength","outputs":[{"name":"length","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":"","type":"uint256"}],"name":"goodsTransferArray","outputs":[{"name":"withDrawAddress","type":"address"},{"name":"goodsId","type":"uint32"},{"name":"goodsNum","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","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"},{"constant":false,"inputs":[{"name":"goodsWithdrawer","type":"address"},{"name":"_value","type":"uint256"},{"name":"goodsId","type":"uint32"},{"name":"goodsNum","type":"uint32"}],"name":"transferTokenWithGoods","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"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
60c0604052600960808190527f41727446696e697479000000000000000000000000000000000000000000000060a090815261003e91600391906100d4565b506004805460ff191660059081179091556040805180820190915260028082527f415400000000000000000000000000000000000000000000000000000000000060209092019182526100929291906100d4565b50655af3107a40006006553480156100a957600080fd5b5060008054600160a060020a031916339081178255600654908252600160205260409091205561016f565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061011557805160ff1916838001178555610142565b82800160010185558215610142579182015b82811115610142578251825591602001919060010190610127565b5061014e929150610152565b5090565b61016c91905b8082111561014e5760008155600101610158565b90565b6108cc8061017e6000396000f3006080604052600436106100b95763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100be578063095ea7b31461014857806318160ddd1461018057806323b872dd146101a7578063313ce567146101d15780634ea0b1c8146101fc57806370a08231146102115780637b9089281461023257806395d89b4114610279578063a9059cbb1461028e578063dd62ed3e146102b2578063ebf75d35146102d9575b600080fd5b3480156100ca57600080fd5b506100d361030c565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561010d5781810151838201526020016100f5565b50505050905090810190601f16801561013a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561015457600080fd5b5061016c600160a060020a036004351660243561039a565b604080519115158252519081900360200190f35b34801561018c57600080fd5b50610195610400565b60408051918252519081900360200190f35b3480156101b357600080fd5b5061016c600160a060020a0360043581169060243516604435610406565b3480156101dd57600080fd5b506101e66104e4565b6040805160ff9092168252519081900360200190f35b34801561020857600080fd5b506101956104ed565b34801561021d57600080fd5b50610195600160a060020a03600435166104f3565b34801561023e57600080fd5b5061024a60043561050e565b60408051600160a060020a03909416845263ffffffff9283166020850152911682820152519081900360600190f35b34801561028557600080fd5b506100d3610574565b34801561029a57600080fd5b5061016c600160a060020a03600435166024356105cf565b3480156102be57600080fd5b50610195600160a060020a0360043581169060243516610695565b3480156102e557600080fd5b5061016c600160a060020a036004351660243563ffffffff604435811690606435166106c0565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103925780601f1061036757610100808354040283529160200191610392565b820191906000526020600020905b81548152906001019060200180831161037557829003601f168201915b505050505081565b336000818152600260209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60065481565b600160a060020a03831660009081526001602052604081205482118015906104515750600160a060020a03841660009081526002602090815260408083203384529091529020548211155b151561045c57600080fd5b600160a060020a03808416600081815260016020908152604080832080548801905593881680835284832080548890039055600282528483203384528252918490208054879003905583518681529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060019392505050565b60045460ff1681565b60075490565b600160a060020a031660009081526001602052604090205490565b600780548290811061051c57fe5b600091825260209091200154600160a060020a038116915063ffffffff740100000000000000000000000000000000000000008204811691780100000000000000000000000000000000000000000000000090041683565b6005805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103925780601f1061036757610100808354040283529160200191610392565b3360009081526001602052604081205482118015906106075750600160a060020a038316600090815260016020526040902054828101115b151561061257600080fd5b600160a060020a038316151561062757600080fd5b33600081815260016020908152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b60008054600160a060020a031633146106d857600080fd5b3360009081526001602052604090205484118015906107105750600160a060020a038516600090815260016020526040902054848101115b151561071b57600080fd5b600160a060020a038516151561073057600080fd5b33600081815260016020818152604080842080548a90039055600160a060020a038a811680865282862080548c019055825160608101845281815263ffffffff808c168287019081528b821683870190815260078054998a01815590995291517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68890970180549251985182167801000000000000000000000000000000000000000000000000027fffffffff00000000ffffffffffffffffffffffffffffffffffffffffffffffff99909216740100000000000000000000000000000000000000000277ffffffff0000000000000000000000000000000000000000199890951673ffffffffffffffffffffffffffffffffffffffff199093169290921796909616929092179590951693909317909255815188815291519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060019493505050505600a165627a7a72305820b14c386230af931ede75cf01410519b3cdd193e2b40f0333241f5c6201e2acb90029
Deployed Bytecode
0x6080604052600436106100b95763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100be578063095ea7b31461014857806318160ddd1461018057806323b872dd146101a7578063313ce567146101d15780634ea0b1c8146101fc57806370a08231146102115780637b9089281461023257806395d89b4114610279578063a9059cbb1461028e578063dd62ed3e146102b2578063ebf75d35146102d9575b600080fd5b3480156100ca57600080fd5b506100d361030c565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561010d5781810151838201526020016100f5565b50505050905090810190601f16801561013a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561015457600080fd5b5061016c600160a060020a036004351660243561039a565b604080519115158252519081900360200190f35b34801561018c57600080fd5b50610195610400565b60408051918252519081900360200190f35b3480156101b357600080fd5b5061016c600160a060020a0360043581169060243516604435610406565b3480156101dd57600080fd5b506101e66104e4565b6040805160ff9092168252519081900360200190f35b34801561020857600080fd5b506101956104ed565b34801561021d57600080fd5b50610195600160a060020a03600435166104f3565b34801561023e57600080fd5b5061024a60043561050e565b60408051600160a060020a03909416845263ffffffff9283166020850152911682820152519081900360600190f35b34801561028557600080fd5b506100d3610574565b34801561029a57600080fd5b5061016c600160a060020a03600435166024356105cf565b3480156102be57600080fd5b50610195600160a060020a0360043581169060243516610695565b3480156102e557600080fd5b5061016c600160a060020a036004351660243563ffffffff604435811690606435166106c0565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103925780601f1061036757610100808354040283529160200191610392565b820191906000526020600020905b81548152906001019060200180831161037557829003601f168201915b505050505081565b336000818152600260209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60065481565b600160a060020a03831660009081526001602052604081205482118015906104515750600160a060020a03841660009081526002602090815260408083203384529091529020548211155b151561045c57600080fd5b600160a060020a03808416600081815260016020908152604080832080548801905593881680835284832080548890039055600282528483203384528252918490208054879003905583518681529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060019392505050565b60045460ff1681565b60075490565b600160a060020a031660009081526001602052604090205490565b600780548290811061051c57fe5b600091825260209091200154600160a060020a038116915063ffffffff740100000000000000000000000000000000000000008204811691780100000000000000000000000000000000000000000000000090041683565b6005805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103925780601f1061036757610100808354040283529160200191610392565b3360009081526001602052604081205482118015906106075750600160a060020a038316600090815260016020526040902054828101115b151561061257600080fd5b600160a060020a038316151561062757600080fd5b33600081815260016020908152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b60008054600160a060020a031633146106d857600080fd5b3360009081526001602052604090205484118015906107105750600160a060020a038516600090815260016020526040902054848101115b151561071b57600080fd5b600160a060020a038516151561073057600080fd5b33600081815260016020818152604080842080548a90039055600160a060020a038a811680865282862080548c019055825160608101845281815263ffffffff808c168287019081528b821683870190815260078054998a01815590995291517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68890970180549251985182167801000000000000000000000000000000000000000000000000027fffffffff00000000ffffffffffffffffffffffffffffffffffffffffffffffff99909216740100000000000000000000000000000000000000000277ffffffff0000000000000000000000000000000000000000199890951673ffffffffffffffffffffffffffffffffffffffff199093169290921796909616929092179590951693909317909255815188815291519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060019493505050505600a165627a7a72305820b14c386230af931ede75cf01410519b3cdd193e2b40f0333241f5c6201e2acb90029
Swarm Source
bzzr://b14c386230af931ede75cf01410519b3cdd193e2b40f0333241f5c6201e2acb9
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.