Feature Tip: Add private address tag to any address under My Name Tag !
Overview
Max Total Supply
10,000,000,000 G7
Holders
26 (0.00%)
Transfers
-
0
Market
Price
$0.00 @ 0.000000 ETH (+0.46%)
Onchain Market Cap
$341,500.00
Circulating Supply Market Cap
$77,209.00
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
| # | Exchange | Pair | Price | 24H Volume | % Volume |
|---|
Contract Name:
ERC20
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
Yes with 99999 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
import { IERC20 } from '../interfaces/IERC20.sol';
/**
* @title ERC20 Token
* @author Game7 Engineering Team - [email protected]
* @dev Adapted from WETH9: https://etherscan.io/address/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2#code
*/
contract ERC20 is IERC20 {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
mapping(address => uint256) public balanceOf;
mapping(address => mapping(address => uint256)) public allowance;
constructor(string memory _tokenName, string memory _symbol, uint8 _decimals, uint256 _totalSupply) {
name = _tokenName;
symbol = _symbol;
decimals = _decimals;
balanceOf[msg.sender] = _totalSupply;
totalSupply = _totalSupply;
emit Transfer(address(0), msg.sender, _totalSupply);
}
function approve(address spender, uint256 amount) external returns (bool) {
allowance[msg.sender][spender] = amount;
emit Approval(msg.sender, spender, amount);
return true;
}
function transfer(address to, uint256 amount) external returns (bool) {
return transferFrom(msg.sender, to, amount);
}
function transferFrom(address from, address to, uint256 amount) public returns (bool) {
require(balanceOf[from] >= amount, 'ERC20: transfer amount exceeds balance');
if (msg.sender != from && allowance[from][msg.sender] != type(uint256).max) {
require(allowance[from][msg.sender] >= amount, 'ERC20: insufficient allowance');
allowance[from][msg.sender] -= amount;
}
balanceOf[from] -= amount;
balanceOf[to] += amount;
emit Transfer(from, to, amount);
return true;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}{
"optimizer": {
"enabled": true,
"runs": 99999
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint8","name":"_decimals","type":"uint8"},{"internalType":"uint256","name":"_totalSupply","type":"uint256"}],"stateMutability":"nonpayable","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"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b5060405162000b5938038062000b5983398101604081905262000034916200017c565b600062000042858262000298565b50600162000051848262000298565b506002805460ff191660ff84161790553360008181526004602090815260408083208590556003859055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050505062000364565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620000dc57600080fd5b81516001600160401b0380821115620000f957620000f9620000b4565b604051601f8301601f19908116603f01168101908282118183101715620001245762000124620000b4565b81604052838152602092508660208588010111156200014257600080fd5b600091505b8382101562000166578582018301518183018401529082019062000147565b6000602085830101528094505050505092915050565b600080600080608085870312156200019357600080fd5b84516001600160401b0380821115620001ab57600080fd5b620001b988838901620000ca565b95506020870151915080821115620001d057600080fd5b50620001df87828801620000ca565b935050604085015160ff81168114620001f757600080fd5b6060959095015193969295505050565b600181811c908216806200021c57607f821691505b6020821081036200023d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000293576000816000526020600020601f850160051c810160208610156200026e5750805b601f850160051c820191505b818110156200028f578281556001016200027a565b5050505b505050565b81516001600160401b03811115620002b457620002b4620000b4565b620002cc81620002c5845462000207565b8462000243565b602080601f831160018114620003045760008415620002eb5750858301515b600019600386901b1c1916600185901b1785556200028f565b600085815260208120601f198616915b82811015620003355788860151825594840194600190910190840162000314565b5085821015620003545787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6107e580620003746000396000f3fe608060405234801561001057600080fd5b50600436106100a35760003560e01c8063313ce5671161007657806395d89b411161005b57806395d89b4114610152578063a9059cbb1461015a578063dd62ed3e1461016d57600080fd5b8063313ce5671461011357806370a082311461013257600080fd5b806306fdde03146100a8578063095ea7b3146100c657806318160ddd146100e957806323b872dd14610100575b600080fd5b6100b0610198565b6040516100bd91906105bd565b60405180910390f35b6100d96100d4366004610653565b610226565b60405190151581526020016100bd565b6100f260035481565b6040519081526020016100bd565b6100d961010e36600461067d565b6102a0565b6002546101209060ff1681565b60405160ff90911681526020016100bd565b6100f26101403660046106b9565b60046020526000908152604090205481565b6100b061059c565b6100d9610168366004610653565b6105a9565b6100f261017b3660046106d4565b600560209081526000928352604080842090915290825290205481565b600080546101a590610707565b80601f01602080910402602001604051908101604052809291908181526020018280546101d190610707565b801561021e5780601f106101f35761010080835404028352916020019161021e565b820191906000526020600020905b81548152906001019060200180831161020157829003601f168201915b505050505081565b33600081815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061028e9086815260200190565b60405180910390a35060015b92915050565b73ffffffffffffffffffffffffffffffffffffffff831660009081526004602052604081205482111561035a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff8516148015906103d0575073ffffffffffffffffffffffffffffffffffffffff841660009081526005602090815260408083203384529091529020547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14155b156104b55773ffffffffffffffffffffffffffffffffffffffff8416600090815260056020908152604080832033845290915290205482111561046f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610351565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600560209081526040808320338452909152812080548492906104af908490610789565b90915550505b73ffffffffffffffffffffffffffffffffffffffff8416600090815260046020526040812080548492906104ea908490610789565b909155505073ffffffffffffffffffffffffffffffffffffffff83166000908152600460205260408120805484929061052490849061079c565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161058a91815260200190565b60405180910390a35060019392505050565b600180546101a590610707565b60006105b63384846102a0565b9392505050565b60006020808352835180602085015260005b818110156105eb578581018301518582016040015282016105cf565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461064e57600080fd5b919050565b6000806040838503121561066657600080fd5b61066f8361062a565b946020939093013593505050565b60008060006060848603121561069257600080fd5b61069b8461062a565b92506106a96020850161062a565b9150604084013590509250925092565b6000602082840312156106cb57600080fd5b6105b68261062a565b600080604083850312156106e757600080fd5b6106f08361062a565b91506106fe6020840161062a565b90509250929050565b600181811c9082168061071b57607f821691505b602082108103610754577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8181038181111561029a5761029a61075a565b8082018082111561029a5761029a61075a56fea2646970667358221220a517a1430df5fb9f752a156fc931c7bd0d52b457e9d22bd6b2738b64ea6023e164736f6c63430008180033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000204fce5e3e25026110000000000000000000000000000000000000000000000000000000000000000000000547616d653700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024737000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100a35760003560e01c8063313ce5671161007657806395d89b411161005b57806395d89b4114610152578063a9059cbb1461015a578063dd62ed3e1461016d57600080fd5b8063313ce5671461011357806370a082311461013257600080fd5b806306fdde03146100a8578063095ea7b3146100c657806318160ddd146100e957806323b872dd14610100575b600080fd5b6100b0610198565b6040516100bd91906105bd565b60405180910390f35b6100d96100d4366004610653565b610226565b60405190151581526020016100bd565b6100f260035481565b6040519081526020016100bd565b6100d961010e36600461067d565b6102a0565b6002546101209060ff1681565b60405160ff90911681526020016100bd565b6100f26101403660046106b9565b60046020526000908152604090205481565b6100b061059c565b6100d9610168366004610653565b6105a9565b6100f261017b3660046106d4565b600560209081526000928352604080842090915290825290205481565b600080546101a590610707565b80601f01602080910402602001604051908101604052809291908181526020018280546101d190610707565b801561021e5780601f106101f35761010080835404028352916020019161021e565b820191906000526020600020905b81548152906001019060200180831161020157829003601f168201915b505050505081565b33600081815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061028e9086815260200190565b60405180910390a35060015b92915050565b73ffffffffffffffffffffffffffffffffffffffff831660009081526004602052604081205482111561035a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff8516148015906103d0575073ffffffffffffffffffffffffffffffffffffffff841660009081526005602090815260408083203384529091529020547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14155b156104b55773ffffffffffffffffffffffffffffffffffffffff8416600090815260056020908152604080832033845290915290205482111561046f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610351565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600560209081526040808320338452909152812080548492906104af908490610789565b90915550505b73ffffffffffffffffffffffffffffffffffffffff8416600090815260046020526040812080548492906104ea908490610789565b909155505073ffffffffffffffffffffffffffffffffffffffff83166000908152600460205260408120805484929061052490849061079c565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161058a91815260200190565b60405180910390a35060019392505050565b600180546101a590610707565b60006105b63384846102a0565b9392505050565b60006020808352835180602085015260005b818110156105eb578581018301518582016040015282016105cf565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461064e57600080fd5b919050565b6000806040838503121561066657600080fd5b61066f8361062a565b946020939093013593505050565b60008060006060848603121561069257600080fd5b61069b8461062a565b92506106a96020850161062a565b9150604084013590509250925092565b6000602082840312156106cb57600080fd5b6105b68261062a565b600080604083850312156106e757600080fd5b6106f08361062a565b91506106fe6020840161062a565b90509250929050565b600181811c9082168061071b57607f821691505b602082108103610754577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8181038181111561029a5761029a61075a565b8082018082111561029a5761029a61075a56fea2646970667358221220a517a1430df5fb9f752a156fc931c7bd0d52b457e9d22bd6b2738b64ea6023e164736f6c63430008180033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000204fce5e3e25026110000000000000000000000000000000000000000000000000000000000000000000000547616d653700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024737000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _tokenName (string): Game7
Arg [1] : _symbol (string): G7
Arg [2] : _decimals (uint8): 18
Arg [3] : _totalSupply (uint256): 10000000000000000000000000000
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [3] : 0000000000000000000000000000000000000000204fce5e3e25026110000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [5] : 47616d6537000000000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [7] : 4737000000000000000000000000000000000000000000000000000000000000
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.
Add Token to MetaMask (Web3)