Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Loading...
Loading
Contract Name:
ERC20Token
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-07-29 */ /** *Submitted for verification at Etherscan.io on 2021-06-24 */ // File: @openzeppelin/contracts/utils/Context.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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 `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount) external returns (bool); /** * @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); } // File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The defaut value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); _approve(sender, _msgSender(), currentAllowance - amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); _approve(_msgSender(), spender, currentAllowance - subtractedValue); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); _balances[sender] = senderBalance - amount; _balances[recipient] += amount; emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); _balances[account] = accountBalance - amount; _totalSupply -= amount; emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } } // File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol pragma solidity ^0.8.0; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); _approve(account, _msgSender(), currentAllowance - amount); _burn(account, amount); } } // File: @openzeppelin/contracts/token/ERC20/presets/ERC20PresetFixedSupply.sol pragma solidity ^0.8.0; /** * @dev {ERC20} token, including: * * - Preminted initial supply * - Ability for holders to burn (destroy) their tokens * - No access control mechanism (for minting/pausing) and hence no governance * * This contract uses {ERC20Burnable} to include burn capabilities - head to * its documentation for details. * * _Available since v3.4._ */ contract ERC20PresetFixedSupply is ERC20Burnable { /** * @dev Mints `initialSupply` amount of token and transfers them to `owner`. * * See {ERC20-constructor}. */ constructor( string memory name, string memory symbol, uint256 initialSupply, address owner ) ERC20(name, symbol) { _mint(owner, initialSupply); } } // File: contracts/million.sol // Million token pragma solidity ^0.8.0; contract ERC20Token is ERC20PresetFixedSupply { constructor( string memory name, string memory symbol, uint256 initialSupply ) ERC20PresetFixedSupply(name, symbol, initialSupply, msg.sender) {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"initialSupply","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":"owner","type":"address"},{"internalType":"address","name":"spender","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":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162000ef838038062000ef88339810160408190526200003491620002cb565b82828233838381600390805190602001906200005292919062000172565b5080516200006890600490602084019062000172565b5050506200007d81836200008a60201b60201c565b50505050505050620003b3565b6001600160a01b038216620000e55760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060026000828254620000f991906200033b565b90915550506001600160a01b03821660009081526020819052604081208054839290620001289084906200033b565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b828054620001809062000360565b90600052602060002090601f016020900481019282620001a45760008555620001ef565b82601f10620001bf57805160ff1916838001178555620001ef565b82800160010185558215620001ef579182015b82811115620001ef578251825591602001919060010190620001d2565b50620001fd92915062000201565b5090565b5b80821115620001fd576000815560010162000202565b600082601f83011262000229578081fd5b81516001600160401b03808211156200024657620002466200039d565b604051601f8301601f19908116603f011681019082821181831017156200027157620002716200039d565b816040528381526020925086838588010111156200028d578485fd5b8491505b83821015620002b0578582018301518183018401529082019062000291565b83821115620002c157848385830101525b9695505050505050565b600080600060608486031215620002e0578283fd5b83516001600160401b0380821115620002f7578485fd5b620003058783880162000218565b945060208601519150808211156200031b578384fd5b506200032a8682870162000218565b925050604084015190509250925092565b600082198211156200035b57634e487b7160e01b81526011600452602481fd5b500190565b600181811c908216806200037557607f821691505b602082108114156200039757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b610b3580620003c36000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c806342966c681161008c57806395d89b411161006657806395d89b41146101ad578063a457c2d7146101b5578063a9059cbb146101c8578063dd62ed3e146101db57600080fd5b806342966c681461015c57806370a082311461017157806379cc67901461019a57600080fd5b806306fdde03146100d4578063095ea7b3146100f257806318160ddd1461011557806323b872dd14610127578063313ce5671461013a5780633950935114610149575b600080fd5b6100dc610214565b6040516100e99190610a2c565b60405180910390f35b6101056101003660046109eb565b6102a6565b60405190151581526020016100e9565b6002545b6040519081526020016100e9565b6101056101353660046109b0565b6102bc565b604051601281526020016100e9565b6101056101573660046109eb565b610372565b61016f61016a366004610a14565b6103a9565b005b61011961017f36600461095d565b6001600160a01b031660009081526020819052604090205490565b61016f6101a83660046109eb565b6103b6565b6100dc61043e565b6101056101c33660046109eb565b61044d565b6101056101d63660046109eb565b6104e8565b6101196101e936600461097e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606003805461022390610aae565b80601f016020809104026020016040519081016040528092919081815260200182805461024f90610aae565b801561029c5780601f106102715761010080835404028352916020019161029c565b820191906000526020600020905b81548152906001019060200180831161027f57829003601f168201915b5050505050905090565b60006102b33384846104f5565b50600192915050565b60006102c984848461061a565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156103535760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61036785336103628685610a97565b6104f5565b506001949350505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916102b3918590610362908690610a7f565b6103b333826107f2565b50565b60006103c283336101e9565b9050818110156104205760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b606482015260840161034a565b61042f83336103628585610a97565b61043983836107f2565b505050565b60606004805461022390610aae565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156104cf5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161034a565b6104de33856103628685610a97565b5060019392505050565b60006102b333848461061a565b6001600160a01b0383166105575760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161034a565b6001600160a01b0382166105b85760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161034a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b03831661067e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161034a565b6001600160a01b0382166106e05760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161034a565b6001600160a01b038316600090815260208190526040902054818110156107585760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161034a565b6107628282610a97565b6001600160a01b038086166000908152602081905260408082209390935590851681529081208054849290610798908490610a7f565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516107e491815260200190565b60405180910390a350505050565b6001600160a01b0382166108525760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161034a565b6001600160a01b038216600090815260208190526040902054818110156108c65760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161034a565b6108d08282610a97565b6001600160a01b038416600090815260208190526040812091909155600280548492906108fe908490610a97565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161060d565b80356001600160a01b038116811461095857600080fd5b919050565b60006020828403121561096e578081fd5b61097782610941565b9392505050565b60008060408385031215610990578081fd5b61099983610941565b91506109a760208401610941565b90509250929050565b6000806000606084860312156109c4578081fd5b6109cd84610941565b92506109db60208501610941565b9150604084013590509250925092565b600080604083850312156109fd578182fd5b610a0683610941565b946020939093013593505050565b600060208284031215610a25578081fd5b5035919050565b6000602080835283518082850152825b81811015610a5857858101830151858201604001528201610a3c565b81811115610a695783604083870101525b50601f01601f1916929092016040019392505050565b60008219821115610a9257610a92610ae9565b500190565b600082821015610aa957610aa9610ae9565b500390565b600181811c90821680610ac257607f821691505b60208210811415610ae357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea26469706673582212204061bf7fb1e3b22fba37de7a01302aa6d52b12d763a719abc54b223f742447c464736f6c63430008040033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000bc614e00000000000000000000000000000000000000000000000000000000000000085a4b20546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035a4b540000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c806342966c681161008c57806395d89b411161006657806395d89b41146101ad578063a457c2d7146101b5578063a9059cbb146101c8578063dd62ed3e146101db57600080fd5b806342966c681461015c57806370a082311461017157806379cc67901461019a57600080fd5b806306fdde03146100d4578063095ea7b3146100f257806318160ddd1461011557806323b872dd14610127578063313ce5671461013a5780633950935114610149575b600080fd5b6100dc610214565b6040516100e99190610a2c565b60405180910390f35b6101056101003660046109eb565b6102a6565b60405190151581526020016100e9565b6002545b6040519081526020016100e9565b6101056101353660046109b0565b6102bc565b604051601281526020016100e9565b6101056101573660046109eb565b610372565b61016f61016a366004610a14565b6103a9565b005b61011961017f36600461095d565b6001600160a01b031660009081526020819052604090205490565b61016f6101a83660046109eb565b6103b6565b6100dc61043e565b6101056101c33660046109eb565b61044d565b6101056101d63660046109eb565b6104e8565b6101196101e936600461097e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606003805461022390610aae565b80601f016020809104026020016040519081016040528092919081815260200182805461024f90610aae565b801561029c5780601f106102715761010080835404028352916020019161029c565b820191906000526020600020905b81548152906001019060200180831161027f57829003601f168201915b5050505050905090565b60006102b33384846104f5565b50600192915050565b60006102c984848461061a565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156103535760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61036785336103628685610a97565b6104f5565b506001949350505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916102b3918590610362908690610a7f565b6103b333826107f2565b50565b60006103c283336101e9565b9050818110156104205760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b606482015260840161034a565b61042f83336103628585610a97565b61043983836107f2565b505050565b60606004805461022390610aae565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156104cf5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161034a565b6104de33856103628685610a97565b5060019392505050565b60006102b333848461061a565b6001600160a01b0383166105575760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161034a565b6001600160a01b0382166105b85760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161034a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b03831661067e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161034a565b6001600160a01b0382166106e05760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161034a565b6001600160a01b038316600090815260208190526040902054818110156107585760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161034a565b6107628282610a97565b6001600160a01b038086166000908152602081905260408082209390935590851681529081208054849290610798908490610a7f565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516107e491815260200190565b60405180910390a350505050565b6001600160a01b0382166108525760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161034a565b6001600160a01b038216600090815260208190526040902054818110156108c65760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161034a565b6108d08282610a97565b6001600160a01b038416600090815260208190526040812091909155600280548492906108fe908490610a97565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161060d565b80356001600160a01b038116811461095857600080fd5b919050565b60006020828403121561096e578081fd5b61097782610941565b9392505050565b60008060408385031215610990578081fd5b61099983610941565b91506109a760208401610941565b90509250929050565b6000806000606084860312156109c4578081fd5b6109cd84610941565b92506109db60208501610941565b9150604084013590509250925092565b600080604083850312156109fd578182fd5b610a0683610941565b946020939093013593505050565b600060208284031215610a25578081fd5b5035919050565b6000602080835283518082850152825b81811015610a5857858101830151858201604001528201610a3c565b81811115610a695783604083870101525b50601f01601f1916929092016040019392505050565b60008219821115610a9257610a92610ae9565b500190565b600082821015610aa957610aa9610ae9565b500390565b600181811c90821680610ac257607f821691505b60208210811415610ae357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea26469706673582212204061bf7fb1e3b22fba37de7a01302aa6d52b12d763a719abc54b223f742447c464736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000bc614e00000000000000000000000000000000000000000000000000000000000000085a4b20546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035a4b540000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): ZK Token
Arg [1] : symbol (string): ZKT
Arg [2] : initialSupply (uint256): 12345678
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000bc614e
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [4] : 5a4b20546f6b656e000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [6] : 5a4b540000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
17571:233:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6591:100;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;8762:169;;;;;;:::i;:::-;;:::i;:::-;;;1640:14:1;;1633:22;1615:41;;1603:2;1588:18;8762:169:0;1570:92:1;7711:108:0;7799:12;;7711:108;;;6471:25:1;;;6459:2;6444:18;7711:108:0;6426:76:1;9413:422:0;;;;;;:::i;:::-;;:::i;7553:93::-;;;7636:2;6649:36:1;;6637:2;6622:18;7553:93:0;6604:87:1;10244:215:0;;;;;;:::i;:::-;;:::i;15853:91::-;;;;;;:::i;:::-;;:::i;:::-;;7882:127;;;;;;:::i;:::-;-1:-1:-1;;;;;7983:18:0;7956:7;7983:18;;;;;;;;;;;;7882:127;16263:332;;;;;;:::i;:::-;;:::i;6810:104::-;;;:::i;10962:377::-;;;;;;:::i;:::-;;:::i;8222:175::-;;;;;;:::i;:::-;;:::i;8464:151::-;;;;;;:::i;:::-;-1:-1:-1;;;;;8580:18:0;;;8553:7;8580:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;8464:151;6591:100;6645:13;6678:5;6671:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6591:100;:::o;8762:169::-;8845:4;8862:39;806:10;8885:7;8894:6;8862:8;:39::i;:::-;-1:-1:-1;8919:4:0;8762:169;;;;:::o;9413:422::-;9519:4;9536:36;9546:6;9554:9;9565:6;9536:9;:36::i;:::-;-1:-1:-1;;;;;9612:19:0;;9585:24;9612:19;;;:11;:19;;;;;;;;806:10;9612:33;;;;;;;;9664:26;;;;9656:79;;;;-1:-1:-1;;;9656:79:0;;4094:2:1;9656:79:0;;;4076:21:1;4133:2;4113:18;;;4106:30;4172:34;4152:18;;;4145:62;-1:-1:-1;;;4223:18:1;;;4216:38;4271:19;;9656:79:0;;;;;;;;;9746:57;9755:6;806:10;9777:25;9796:6;9777:16;:25;:::i;:::-;9746:8;:57::i;:::-;-1:-1:-1;9823:4:0;;9413:422;-1:-1:-1;;;;9413:422:0:o;10244:215::-;806:10;10332:4;10381:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;10381:34:0;;;;;;;;;;10332:4;;10349:80;;10372:7;;10381:47;;10418:10;;10381:47;:::i;15853:91::-;15909:27;806:10;15929:6;15909:5;:27::i;:::-;15853:91;:::o;16263:332::-;16340:24;16367:32;16377:7;806:10;8464:151;:::i;16367:32::-;16340:59;;16438:6;16418:16;:26;;16410:75;;;;-1:-1:-1;;;16410:75:0;;4503:2:1;16410:75:0;;;4485:21:1;4542:2;4522:18;;;4515:30;4581:34;4561:18;;;4554:62;-1:-1:-1;;;4632:18:1;;;4625:34;4676:19;;16410:75:0;4475:226:1;16410:75:0;16496:58;16505:7;806:10;16528:25;16547:6;16528:16;:25;:::i;16496:58::-;16565:22;16571:7;16580:6;16565:5;:22::i;:::-;16263:332;;;:::o;6810:104::-;6866:13;6899:7;6892:14;;;;;:::i;10962:377::-;806:10;11055:4;11099:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;11099:34:0;;;;;;;;;;11152:35;;;;11144:85;;;;-1:-1:-1;;;11144:85:0;;6121:2:1;11144:85:0;;;6103:21:1;6160:2;6140:18;;;6133:30;6199:34;6179:18;;;6172:62;-1:-1:-1;;;6250:18:1;;;6243:35;6295:19;;11144:85:0;6093:227:1;11144:85:0;11240:67;806:10;11263:7;11272:34;11291:15;11272:16;:34;:::i;11240:67::-;-1:-1:-1;11327:4:0;;10962:377;-1:-1:-1;;;10962:377:0:o;8222:175::-;8308:4;8325:42;806:10;8349:9;8360:6;8325:9;:42::i;14318:346::-;-1:-1:-1;;;;;14420:19:0;;14412:68;;;;-1:-1:-1;;;14412:68:0;;5716:2:1;14412:68:0;;;5698:21:1;5755:2;5735:18;;;5728:30;5794:34;5774:18;;;5767:62;-1:-1:-1;;;5845:18:1;;;5838:34;5889:19;;14412:68:0;5688:226:1;14412:68:0;-1:-1:-1;;;;;14499:21:0;;14491:68;;;;-1:-1:-1;;;14491:68:0;;3284:2:1;14491:68:0;;;3266:21:1;3323:2;3303:18;;;3296:30;3362:34;3342:18;;;3335:62;-1:-1:-1;;;3413:18:1;;;3406:32;3455:19;;14491:68:0;3256:224:1;14491:68:0;-1:-1:-1;;;;;14572:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;14624:32;;6471:25:1;;;14624:32:0;;6444:18:1;14624:32:0;;;;;;;;14318:346;;;:::o;11829:604::-;-1:-1:-1;;;;;11935:20:0;;11927:70;;;;-1:-1:-1;;;11927:70:0;;5310:2:1;11927:70:0;;;5292:21:1;5349:2;5329:18;;;5322:30;5388:34;5368:18;;;5361:62;-1:-1:-1;;;5439:18:1;;;5432:35;5484:19;;11927:70:0;5282:227:1;11927:70:0;-1:-1:-1;;;;;12016:23:0;;12008:71;;;;-1:-1:-1;;;12008:71:0;;2477:2:1;12008:71:0;;;2459:21:1;2516:2;2496:18;;;2489:30;2555:34;2535:18;;;2528:62;-1:-1:-1;;;2606:18:1;;;2599:33;2649:19;;12008:71:0;2449:225:1;12008:71:0;-1:-1:-1;;;;;12176:17:0;;12152:21;12176:17;;;;;;;;;;;12212:23;;;;12204:74;;;;-1:-1:-1;;;12204:74:0;;3687:2:1;12204:74:0;;;3669:21:1;3726:2;3706:18;;;3699:30;3765:34;3745:18;;;3738:62;-1:-1:-1;;;3816:18:1;;;3809:36;3862:19;;12204:74:0;3659:228:1;12204:74:0;12309:22;12325:6;12309:13;:22;:::i;:::-;-1:-1:-1;;;;;12289:17:0;;;:9;:17;;;;;;;;;;;:42;;;;12342:20;;;;;;;;:30;;12366:6;;12289:9;12342:30;;12366:6;;12342:30;:::i;:::-;;;;;;;;12407:9;-1:-1:-1;;;;;12390:35:0;12399:6;-1:-1:-1;;;;;12390:35:0;;12418:6;12390:35;;;;6471:25:1;;6459:2;6444:18;;6426:76;12390:35:0;;;;;;;;11829:604;;;;:::o;13386:494::-;-1:-1:-1;;;;;13470:21:0;;13462:67;;;;-1:-1:-1;;;13462:67:0;;4908:2:1;13462:67:0;;;4890:21:1;4947:2;4927:18;;;4920:30;4986:34;4966:18;;;4959:62;-1:-1:-1;;;5037:18:1;;;5030:31;5078:19;;13462:67:0;4880:223:1;13462:67:0;-1:-1:-1;;;;;13629:18:0;;13604:22;13629:18;;;;;;;;;;;13666:24;;;;13658:71;;;;-1:-1:-1;;;13658:71:0;;2881:2:1;13658:71:0;;;2863:21:1;2920:2;2900:18;;;2893:30;2959:34;2939:18;;;2932:62;-1:-1:-1;;;3010:18:1;;;3003:32;3052:19;;13658:71:0;2853:224:1;13658:71:0;13761:23;13778:6;13761:14;:23;:::i;:::-;-1:-1:-1;;;;;13740:18:0;;:9;:18;;;;;;;;;;:44;;;;13795:12;:22;;13811:6;;13740:9;13795:22;;13811:6;;13795:22;:::i;:::-;;;;-1:-1:-1;;13835:37:0;;6471:25:1;;;13861:1:0;;-1:-1:-1;;;;;13835:37:0;;;;;6459:2:1;6444:18;13835:37:0;6426:76:1;14:173;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:2;;177:1;174;167:12;111:2;63:124;;;:::o;192:196::-;251:6;304:2;292:9;283:7;279:23;275:32;272:2;;;325:6;317;310:22;272:2;353:29;372:9;353:29;:::i;:::-;343:39;262:126;-1:-1:-1;;;262:126:1:o;393:270::-;461:6;469;522:2;510:9;501:7;497:23;493:32;490:2;;;543:6;535;528:22;490:2;571:29;590:9;571:29;:::i;:::-;561:39;;619:38;653:2;642:9;638:18;619:38;:::i;:::-;609:48;;480:183;;;;;:::o;668:338::-;745:6;753;761;814:2;802:9;793:7;789:23;785:32;782:2;;;835:6;827;820:22;782:2;863:29;882:9;863:29;:::i;:::-;853:39;;911:38;945:2;934:9;930:18;911:38;:::i;:::-;901:48;;996:2;985:9;981:18;968:32;958:42;;772:234;;;;;:::o;1011:264::-;1079:6;1087;1140:2;1128:9;1119:7;1115:23;1111:32;1108:2;;;1161:6;1153;1146:22;1108:2;1189:29;1208:9;1189:29;:::i;:::-;1179:39;1265:2;1250:18;;;;1237:32;;-1:-1:-1;;;1098:177:1:o;1280:190::-;1339:6;1392:2;1380:9;1371:7;1367:23;1363:32;1360:2;;;1413:6;1405;1398:22;1360:2;-1:-1:-1;1441:23:1;;1350:120;-1:-1:-1;1350:120:1:o;1667:603::-;1779:4;1808:2;1837;1826:9;1819:21;1869:6;1863:13;1912:6;1907:2;1896:9;1892:18;1885:34;1937:4;1950:140;1964:6;1961:1;1958:13;1950:140;;;2059:14;;;2055:23;;2049:30;2025:17;;;2044:2;2021:26;2014:66;1979:10;;1950:140;;;2108:6;2105:1;2102:13;2099:2;;;2178:4;2173:2;2164:6;2153:9;2149:22;2145:31;2138:45;2099:2;-1:-1:-1;2254:2:1;2233:15;-1:-1:-1;;2229:29:1;2214:45;;;;2261:2;2210:54;;1788:482;-1:-1:-1;;;1788:482:1:o;6696:128::-;6736:3;6767:1;6763:6;6760:1;6757:13;6754:2;;;6773:18;;:::i;:::-;-1:-1:-1;6809:9:1;;6744:80::o;6829:125::-;6869:4;6897:1;6894;6891:8;6888:2;;;6902:18;;:::i;:::-;-1:-1:-1;6939:9:1;;6878:76::o;6959:380::-;7038:1;7034:12;;;;7081;;;7102:2;;7156:4;7148:6;7144:17;7134:27;;7102:2;7209;7201:6;7198:14;7178:18;7175:38;7172:2;;;7255:10;7250:3;7246:20;7243:1;7236:31;7290:4;7287:1;7280:15;7318:4;7315:1;7308:15;7172:2;;7014:325;;;:::o;7344:127::-;7405:10;7400:3;7396:20;7393:1;7386:31;7436:4;7433:1;7426:15;7460:4;7457:1;7450:15
Swarm Source
ipfs://4061bf7fb1e3b22fba37de7a01302aa6d52b12d763a719abc54b223f742447c4
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.