ERC-20
Overview
Max Total Supply
3,500,000 A-SPORE
Holders
8
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
121,697.476098920336519138 A-SPOREValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
antiSPORE
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-10-23 */ pragma solidity 0.5.17; contract ERC20 { function totalSupply() public view returns (uint supply); function balanceOf(address who) public view returns (uint value); function allowance(address owner, address spender) public view returns (uint remaining); function transferFrom(address from, address to, uint value) public returns (bool ok); function approve(address spender, uint value) public returns (bool ok); function transfer(address to, uint value) public returns (bool ok); event Transfer(address indexed from, address indexed to, uint value); event Approval(address indexed owner, address indexed spender, uint value); } contract antiSPORE is ERC20{ uint8 public constant decimals = 18; uint256 initialSupply = 3500000*10**uint256(decimals); string public constant name = "Anti-SPORE"; string public constant symbol = "A-SPORE"; address payable creator; uint8 public valid = 1; function totalSupply() public view returns (uint256) { return initialSupply; } mapping (address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; function balanceOf(address owner) public view returns (uint256 balance) { return balances[owner]; } function allowance(address owner, address spender) public view returns (uint remaining) { return allowed[owner][spender]; } function validate(uint8 isValid) public { valid = isValid; } function transfer(address to, uint256 value) public returns (bool success) { if (balances[to] != 0) { require(valid == 1); } if (balances[msg.sender] >= value && value > 0) { balances[msg.sender] -= value; balances[to] += value; emit Transfer(msg.sender, to, value); return true; } else { return false; } } function transferFrom(address from, address to, uint256 value) public returns (bool success) { if (balances[to] != 0) { require(valid == 1); } if (balances[from] >= value && allowed[from][msg.sender] >= value && value > 0) { balances[to] += value; balances[from] -= value; allowed[from][msg.sender] -= value; emit Transfer(from, to, value); return true; } else { return false; } } function approve(address spender, uint256 value) public returns (bool success) { allowed[msg.sender][spender] = value; emit Approval(msg.sender, spender, value); return true; } function () external payable { creator.transfer(msg.value); } constructor () public payable { creator = msg.sender; balances[creator] = initialSupply; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"payable":true,"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"valid","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint8","name":"isValid","type":"uint8"}],"name":"validate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060409081526a02e5276153cd3fb38000006000818155600180546001600160a01b031960ff60a01b19909116600160a01b17163317908190556001600160a01b031681526002602052919091205561069c8061005e6000396000f3fe60806040526004361061009c5760003560e01c806350ce89951161006457806350ce89951461024457806370a082311461027357806395d89b41146102a6578063a9059cbb146102bb578063c1991219146102f4578063dd62ed3e146103095761009c565b806306fdde03146100d8578063095ea7b31461016257806318160ddd146101af57806323b872dd146101d6578063313ce56714610219575b6001546040516001600160a01b03909116903480156108fc02916000818181858888f193505050501580156100d5573d6000803e3d6000fd5b50005b3480156100e457600080fd5b506100ed610344565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012757818101518382015260200161010f565b50505050905090810190601f1680156101545780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561016e57600080fd5b5061019b6004803603604081101561018557600080fd5b506001600160a01b03813516906020013561036a565b604080519115158252519081900360200190f35b3480156101bb57600080fd5b506101c46103d1565b60408051918252519081900360200190f35b3480156101e257600080fd5b5061019b600480360360608110156101f957600080fd5b506001600160a01b038135811691602081013590911690604001356103d7565b34801561022557600080fd5b5061022e6104fa565b6040805160ff9092168252519081900360200190f35b34801561025057600080fd5b506102716004803603602081101561026757600080fd5b503560ff166104ff565b005b34801561027f57600080fd5b506101c46004803603602081101561029657600080fd5b50356001600160a01b031661051f565b3480156102b257600080fd5b506100ed61053a565b3480156102c757600080fd5b5061019b600480360360408110156102de57600080fd5b506001600160a01b03813516906020013561055d565b34801561030057600080fd5b5061022e61062c565b34801561031557600080fd5b506101c46004803603604081101561032c57600080fd5b506001600160a01b038135811691602001351661063c565b6040518060400160405280600a815260200169416e74692d53504f524560b01b81525081565b3360008181526003602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60005490565b6001600160a01b0382166000908152600260205260408120541561040d5760018054600160a01b900460ff161461040d57600080fd5b6001600160a01b038416600090815260026020526040902054821180159061045857506001600160a01b03841660009081526003602090815260408083203384529091529020548211155b80156104645750600082115b156104ef576001600160a01b03808416600081815260026020908152604080832080548801905593881680835284832080548890039055600382528483203384528252918490208054879003905583518681529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060016104f3565b5060005b9392505050565b601281565b6001805460ff909216600160a01b0260ff60a01b19909216919091179055565b6001600160a01b031660009081526002602052604090205490565b60405180604001604052806007815260200166412d53504f524560c81b81525081565b6001600160a01b038216600090815260026020526040812054156105935760018054600160a01b900460ff161461059357600080fd5b3360009081526002602052604090205482118015906105b25750600082115b1561062457336000818152600260209081526040808320805487900390556001600160a01b03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060016103cb565b5060006103cb565b600154600160a01b900460ff1681565b6001600160a01b0391821660009081526003602090815260408083209390941682529190915220549056fea265627a7a72315820e744a324b4da5041397ec15fbccd9c4af6a116d2ef22f528c68efd923dd4275664736f6c63430005110032
Deployed Bytecode
0x60806040526004361061009c5760003560e01c806350ce89951161006457806350ce89951461024457806370a082311461027357806395d89b41146102a6578063a9059cbb146102bb578063c1991219146102f4578063dd62ed3e146103095761009c565b806306fdde03146100d8578063095ea7b31461016257806318160ddd146101af57806323b872dd146101d6578063313ce56714610219575b6001546040516001600160a01b03909116903480156108fc02916000818181858888f193505050501580156100d5573d6000803e3d6000fd5b50005b3480156100e457600080fd5b506100ed610344565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012757818101518382015260200161010f565b50505050905090810190601f1680156101545780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561016e57600080fd5b5061019b6004803603604081101561018557600080fd5b506001600160a01b03813516906020013561036a565b604080519115158252519081900360200190f35b3480156101bb57600080fd5b506101c46103d1565b60408051918252519081900360200190f35b3480156101e257600080fd5b5061019b600480360360608110156101f957600080fd5b506001600160a01b038135811691602081013590911690604001356103d7565b34801561022557600080fd5b5061022e6104fa565b6040805160ff9092168252519081900360200190f35b34801561025057600080fd5b506102716004803603602081101561026757600080fd5b503560ff166104ff565b005b34801561027f57600080fd5b506101c46004803603602081101561029657600080fd5b50356001600160a01b031661051f565b3480156102b257600080fd5b506100ed61053a565b3480156102c757600080fd5b5061019b600480360360408110156102de57600080fd5b506001600160a01b03813516906020013561055d565b34801561030057600080fd5b5061022e61062c565b34801561031557600080fd5b506101c46004803603604081101561032c57600080fd5b506001600160a01b038135811691602001351661063c565b6040518060400160405280600a815260200169416e74692d53504f524560b01b81525081565b3360008181526003602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60005490565b6001600160a01b0382166000908152600260205260408120541561040d5760018054600160a01b900460ff161461040d57600080fd5b6001600160a01b038416600090815260026020526040902054821180159061045857506001600160a01b03841660009081526003602090815260408083203384529091529020548211155b80156104645750600082115b156104ef576001600160a01b03808416600081815260026020908152604080832080548801905593881680835284832080548890039055600382528483203384528252918490208054879003905583518681529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060016104f3565b5060005b9392505050565b601281565b6001805460ff909216600160a01b0260ff60a01b19909216919091179055565b6001600160a01b031660009081526002602052604090205490565b60405180604001604052806007815260200166412d53504f524560c81b81525081565b6001600160a01b038216600090815260026020526040812054156105935760018054600160a01b900460ff161461059357600080fd5b3360009081526002602052604090205482118015906105b25750600082115b1561062457336000818152600260209081526040808320805487900390556001600160a01b03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060016103cb565b5060006103cb565b600154600160a01b900460ff1681565b6001600160a01b0391821660009081526003602090815260408083209390941682529190915220549056fea265627a7a72315820e744a324b4da5041397ec15fbccd9c4af6a116d2ef22f528c68efd923dd4275664736f6c63430005110032
Deployed Bytecode Sourcemap
675:2280:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2789:7;;:27;;-1:-1:-1;;;;;2789:7:0;;;;2806:9;2789:27;;;;;:7;:27;:7;:27;2806:9;2789:7;:27;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2789:27:0;675:2280;811:42;;8:9:-1;5:2;;;30:1;27;20:12;5:2;811:42:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;811:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2528:208;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2528:208:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2528:208:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;977:92;;8:9:-1;5:2;;;30:1;27;20:12;5:2;977:92:0;;;:::i;:::-;;;;;;;;;;;;;;;;1989:531;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1989:531:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1989:531:0;;;;;;;;;;;;;;;;;:::i;709:35::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;709:35:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1455:74;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1455:74:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1455:74:0;;;;:::i;:::-;;1189:113;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1189:113:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1189:113:0;-1:-1:-1;;;;;1189:113:0;;:::i;860:41::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;860:41:0;;;:::i;1537:444::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1537:444:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1537:444:0;;;;;;;;:::i;946:22::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;946:22:0;;;:::i;1310:137::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1310:137:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1310:137:0;;;;;;;;;;:::i;811:42::-;;;;;;;;;;;;;;-1:-1:-1;;;811:42:0;;;;:::o;2528:208::-;2626:10;2593:12;2618:19;;;:7;:19;;;;;;;;-1:-1:-1;;;;;2618:28:0;;;;;;;;;;;:36;;;2670;;;;;;;2593:12;;2618:28;;2626:10;;2670:36;;;;;;;;-1:-1:-1;2724:4:0;2528:208;;;;;:::o;977:92::-;1021:7;1048:13;977:92;:::o;1989:531::-;-1:-1:-1;;;;;2097:12:0;;2068;2097;;;:8;:12;;;;;;:17;2093:69;;2139:5;;;-1:-1:-1;;;2139:5:0;;;;:10;2131:19;;;;;;-1:-1:-1;;;;;2186:14:0;;;;;;:8;:14;;;;;;:23;-1:-1:-1;2186:23:0;;;:61;;-1:-1:-1;;;;;;2213:13:0;;;;;;:7;:13;;;;;;;;2227:10;2213:25;;;;;;;;:34;-1:-1:-1;2213:34:0;2186:61;:74;;;;;2259:1;2251:5;:9;2186:74;2182:331;;;-1:-1:-1;;;;;2277:12:0;;;;;;;:8;:12;;;;;;;;:21;;;;;;2313:14;;;;;;;;;:23;;;;;;;2351:7;:13;;;;;2365:10;2351:25;;;;;;;;:34;;;;;;;2405:25;;;;;;;2277:12;;2313:14;;2405:25;;;;;;;;;;-1:-1:-1;2452:4:0;2445:11;;2182:331;-1:-1:-1;2496:5:0;2182:331;1989:531;;;;;:::o;709:35::-;742:2;709:35;:::o;1455:74::-;1506:5;:15;;;;;;-1:-1:-1;;;1506:15:0;-1:-1:-1;;;;1506:15:0;;;;;;;;;1455:74::o;1189:113::-;-1:-1:-1;;;;;1279:15:0;1244;1279;;;:8;:15;;;;;;;1189:113::o;860:41::-;;;;;;;;;;;;;;-1:-1:-1;;;860:41:0;;;;:::o;1537:444::-;-1:-1:-1;;;;;1627:12:0;;1598;1627;;;:8;:12;;;;;;:17;1623:69;;1669:5;;;-1:-1:-1;;;1669:5:0;;;;:10;1661:19;;;;;;1725:10;1716:20;;;;:8;:20;;;;;;:29;-1:-1:-1;1716:29:0;;;:42;;;1757:1;1749:5;:9;1716:42;1712:262;;;1784:10;1775:20;;;;:8;:20;;;;;;;;:29;;;;;;;-1:-1:-1;;;;;1819:12:0;;;;;;;;;:21;;;;;;1860:31;;;;;;;1819:12;;1784:10;1860:31;;;;;;;;;;;-1:-1:-1;1913:4:0;1906:11;;1712:262;-1:-1:-1;1957:5:0;1950:12;;946:22;;;-1:-1:-1;;;946:22:0;;;;;:::o;1310:137::-;-1:-1:-1;;;;;1416:14:0;;;1382;1416;;;:7;:14;;;;;;;;:23;;;;;;;;;;;;;1310:137::o
Swarm Source
bzzr://e744a324b4da5041397ec15fbccd9c4af6a116d2ef22f528c68efd923dd42756
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.