Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
TokenTracker
Multichain Info
N/A
Loading...
Loading
Contract Name:
TestToken
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity 0.8.9; import "@thesis/solidity-contracts/contracts/token/ERC20WithPermit.sol"; contract TestToken is ERC20WithPermit { constructor() ERC20WithPermit("Test Token", "TEST") {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (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 `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); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) 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) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; import "./IERC20WithPermit.sol"; import "./IReceiveApproval.sol"; /// @title ERC20WithPermit /// @notice Burnable ERC20 token with EIP2612 permit functionality. User can /// authorize a transfer of their token with a signature conforming /// EIP712 standard instead of an on-chain transaction from their /// address. Anyone can submit this signature on the user's behalf by /// calling the permit function, as specified in EIP2612 standard, /// paying gas fees, and possibly performing other actions in the same /// transaction. contract ERC20WithPermit is IERC20WithPermit, Ownable { /// @notice The amount of tokens owned by the given account. mapping(address => uint256) public override balanceOf; /// @notice The remaining number of tokens that spender will be /// allowed to spend on behalf of owner through `transferFrom` and /// `burnFrom`. This is zero by default. mapping(address => mapping(address => uint256)) public override allowance; /// @notice Returns the current nonce for EIP2612 permission for the /// provided token owner for a replay protection. Used to construct /// EIP2612 signature provided to `permit` function. mapping(address => uint256) public override nonce; uint256 public immutable cachedChainId; bytes32 public immutable cachedDomainSeparator; /// @notice Returns EIP2612 Permit message hash. Used to construct EIP2612 /// signature provided to `permit` function. bytes32 public constant override PERMIT_TYPEHASH = keccak256( "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)" ); /// @notice The amount of tokens in existence. uint256 public override totalSupply; /// @notice The name of the token. string public override name; /// @notice The symbol of the token. string public override symbol; /// @notice The decimals places of the token. uint8 public constant override decimals = 18; constructor(string memory _name, string memory _symbol) { name = _name; symbol = _symbol; cachedChainId = block.chainid; cachedDomainSeparator = buildDomainSeparator(); } /// @notice Moves `amount` tokens from the caller's account to `recipient`. /// @return True if the operation succeeded, reverts otherwise. /// @dev Requirements: /// - `recipient` cannot be the zero address, /// - the caller must have a balance of at least `amount`. function transfer(address recipient, uint256 amount) external override returns (bool) { _transfer(msg.sender, recipient, amount); return true; } /// @notice Moves `amount` tokens from `spender` to `recipient` using the /// allowance mechanism. `amount` is then deducted from the caller's /// allowance unless the allowance was made for `type(uint256).max`. /// @return True if the operation succeeded, reverts otherwise. /// @dev Requirements: /// - `spender` and `recipient` cannot be the zero address, /// - `spender` must have a balance of at least `amount`, /// - the caller must have allowance for `spender`'s tokens of at least /// `amount`. function transferFrom( address spender, address recipient, uint256 amount ) external override returns (bool) { uint256 currentAllowance = allowance[spender][msg.sender]; if (currentAllowance != type(uint256).max) { require( currentAllowance >= amount, "Transfer amount exceeds allowance" ); _approve(spender, msg.sender, currentAllowance - amount); } _transfer(spender, recipient, amount); return true; } /// @notice EIP2612 approval made with secp256k1 signature. /// Users can authorize a transfer of their tokens with a signature /// conforming EIP712 standard, rather than an on-chain transaction /// from their address. Anyone can submit this signature on the /// user's behalf by calling the permit function, paying gas fees, /// and possibly performing other actions in the same transaction. /// @dev The deadline argument can be set to `type(uint256).max to create /// permits that effectively never expire. If the `amount` is set /// to `type(uint256).max` then `transferFrom` and `burnFrom` will /// not reduce an allowance. function permit( address owner, address spender, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external override { /* solhint-disable-next-line not-rely-on-time */ require(deadline >= block.timestamp, "Permission expired"); // Validate `s` and `v` values for a malleability concern described in EIP2. // Only signatures with `s` value in the lower half of the secp256k1 // curve's order and `v` value of 27 or 28 are considered valid. require( uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "Invalid signature 's' value" ); require(v == 27 || v == 28, "Invalid signature 'v' value"); bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR(), keccak256( abi.encode( PERMIT_TYPEHASH, owner, spender, amount, nonce[owner]++, deadline ) ) ) ); address recoveredAddress = ecrecover(digest, v, r, s); require( recoveredAddress != address(0) && recoveredAddress == owner, "Invalid signature" ); _approve(owner, spender, amount); } /// @notice Creates `amount` tokens and assigns them to `account`, /// increasing the total supply. /// @dev Requirements: /// - `recipient` cannot be the zero address. function mint(address recipient, uint256 amount) external onlyOwner { require(recipient != address(0), "Mint to the zero address"); beforeTokenTransfer(address(0), recipient, amount); totalSupply += amount; balanceOf[recipient] += amount; emit Transfer(address(0), recipient, amount); } /// @notice Destroys `amount` tokens from the caller. /// @dev Requirements: /// - the caller must have a balance of at least `amount`. function burn(uint256 amount) external override { _burn(msg.sender, amount); } /// @notice Destroys `amount` of tokens from `account` using the allowance /// mechanism. `amount` is then deducted from the caller's allowance /// unless the allowance was made for `type(uint256).max`. /// @dev Requirements: /// - `account` must have a balance of at least `amount`, /// - the caller must have allowance for `account`'s tokens of at least /// `amount`. function burnFrom(address account, uint256 amount) external override { uint256 currentAllowance = allowance[account][msg.sender]; if (currentAllowance != type(uint256).max) { require( currentAllowance >= amount, "Burn amount exceeds allowance" ); _approve(account, msg.sender, currentAllowance - amount); } _burn(account, amount); } /// @notice Calls `receiveApproval` function on spender previously approving /// the spender to withdraw from the caller multiple times, up to /// the `amount` amount. If this function is called again, it /// overwrites the current allowance with `amount`. Reverts if the /// approval reverted or if `receiveApproval` call on the spender /// reverted. /// @return True if both approval and `receiveApproval` calls succeeded. /// @dev If the `amount` is set to `type(uint256).max` then /// `transferFrom` and `burnFrom` will not reduce an allowance. function approveAndCall( address spender, uint256 amount, bytes memory extraData ) external override returns (bool) { if (approve(spender, amount)) { IReceiveApproval(spender).receiveApproval( msg.sender, amount, address(this), extraData ); return true; } return false; } /// @notice Sets `amount` as the allowance of `spender` over the caller's /// tokens. /// @return True if the operation succeeded. /// @dev If the `amount` is set to `type(uint256).max` then /// `transferFrom` and `burnFrom` will not reduce an allowance. /// 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 function approve(address spender, uint256 amount) public override returns (bool) { _approve(msg.sender, spender, amount); return true; } /// @notice Returns hash of EIP712 Domain struct with the token name as /// a signing domain and token contract as a verifying contract. /// Used to construct EIP2612 signature provided to `permit` /// function. /* solhint-disable-next-line func-name-mixedcase */ function DOMAIN_SEPARATOR() public view override returns (bytes32) { // As explained in EIP-2612, if the DOMAIN_SEPARATOR contains the // chainId and is defined at contract deployment instead of // reconstructed for every signature, there is a risk of possible replay // attacks between chains in the event of a future chain split. // To address this issue, we check the cached chain ID against the // current one and in case they are different, we build domain separator // from scratch. if (block.chainid == cachedChainId) { return cachedDomainSeparator; } else { return buildDomainSeparator(); } } /// @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. // slither-disable-next-line dead-code function beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} function _burn(address account, uint256 amount) internal { uint256 currentBalance = balanceOf[account]; require(currentBalance >= amount, "Burn amount exceeds balance"); beforeTokenTransfer(account, address(0), amount); balanceOf[account] = currentBalance - amount; totalSupply -= amount; emit Transfer(account, address(0), amount); } function _transfer( address spender, address recipient, uint256 amount ) private { require(spender != address(0), "Transfer from the zero address"); require(recipient != address(0), "Transfer to the zero address"); require(recipient != address(this), "Transfer to the token address"); beforeTokenTransfer(spender, recipient, amount); uint256 spenderBalance = balanceOf[spender]; require(spenderBalance >= amount, "Transfer amount exceeds balance"); balanceOf[spender] = spenderBalance - amount; balanceOf[recipient] += amount; emit Transfer(spender, recipient, amount); } function _approve( address owner, address spender, uint256 amount ) private { require(owner != address(0), "Approve from the zero address"); require(spender != address(0), "Approve to the zero address"); allowance[owner][spender] = amount; emit Approval(owner, spender, amount); } function buildDomainSeparator() private view returns (bytes32) { return keccak256( abi.encode( keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ), keccak256(bytes(name)), keccak256(bytes("1")), block.chainid, address(this) ) ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /// @notice An interface that should be implemented by tokens supporting /// `approveAndCall`/`receiveApproval` pattern. interface IApproveAndCall { /// @notice Executes `receiveApproval` function on spender as specified in /// `IReceiveApproval` interface. Approves spender to withdraw from /// the caller multiple times, up to the `amount`. If this /// function is called again, it overwrites the current allowance /// with `amount`. Reverts if the approval reverted or if /// `receiveApproval` call on the spender reverted. function approveAndCall( address spender, uint256 amount, bytes memory extraData ) external returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import "./IApproveAndCall.sol"; /// @title IERC20WithPermit /// @notice Burnable ERC20 token with EIP2612 permit functionality. User can /// authorize a transfer of their token with a signature conforming /// EIP712 standard instead of an on-chain transaction from their /// address. Anyone can submit this signature on the user's behalf by /// calling the permit function, as specified in EIP2612 standard, /// paying gas fees, and possibly performing other actions in the same /// transaction. interface IERC20WithPermit is IERC20, IERC20Metadata, IApproveAndCall { /// @notice EIP2612 approval made with secp256k1 signature. /// Users can authorize a transfer of their tokens with a signature /// conforming EIP712 standard, rather than an on-chain transaction /// from their address. Anyone can submit this signature on the /// user's behalf by calling the permit function, paying gas fees, /// and possibly performing other actions in the same transaction. /// @dev The deadline argument can be set to `type(uint256).max to create /// permits that effectively never expire. function permit( address owner, address spender, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /// @notice Destroys `amount` tokens from the caller. function burn(uint256 amount) external; /// @notice Destroys `amount` of tokens from `account`, deducting the amount /// from caller's allowance. function burnFrom(address account, uint256 amount) external; /// @notice Returns hash of EIP712 Domain struct with the token name as /// a signing domain and token contract as a verifying contract. /// Used to construct EIP2612 signature provided to `permit` /// function. /* solhint-disable-next-line func-name-mixedcase */ function DOMAIN_SEPARATOR() external view returns (bytes32); /// @notice Returns the current nonce for EIP2612 permission for the /// provided token owner for a replay protection. Used to construct /// EIP2612 signature provided to `permit` function. function nonce(address owner) external view returns (uint256); /// @notice Returns EIP2612 Permit message hash. Used to construct EIP2612 /// signature provided to `permit` function. /* solhint-disable-next-line func-name-mixedcase */ function PERMIT_TYPEHASH() external pure returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /// @notice An interface that should be implemented by contracts supporting /// `approveAndCall`/`receiveApproval` pattern. interface IReceiveApproval { /// @notice Receives approval to spend tokens. Called as a result of /// `approveAndCall` call on the token. function receiveApproval( address from, uint256 amount, address token, bytes calldata extraData ) external; }
{ "evmVersion": "london", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 10 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract ABI
API[{"inputs":[],"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"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":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"name":"approveAndCall","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":[{"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":"cachedChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cachedDomainSeparator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":"spender","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"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040523480156200001157600080fd5b506040518060400160405280600a8152602001692a32b9ba102a37b5b2b760b11b81525060405180604001604052806004815260200163151154d560e21b8152506200006c62000066620000b260201b60201c565b620000b6565b815162000081906005906020850190620001b7565b50805162000097906006906020840190620001b7565b5046608052620000a662000106565b60a052506200033e9050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60056040516200013a91906200029a565b60408051918290038220828201825260018352603160f81b6020938401528151928301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b828054620001c5906200025d565b90600052602060002090601f016020900481019282620001e9576000855562000234565b82601f106200020457805160ff191683800117855562000234565b8280016001018555821562000234579182015b828111156200023457825182559160200191906001019062000217565b506200024292915062000246565b5090565b5b8082111562000242576000815560010162000247565b600181811c908216806200027257607f821691505b602082108114156200029457634e487b7160e01b600052602260045260246000fd5b50919050565b600080835481600182811c915080831680620002b757607f831692505b6020808410821415620002d857634e487b7160e01b86526022600452602486fd5b818015620002ef5760018114620003015762000330565b60ff1986168952848901965062000330565b60008a81526020902060005b86811015620003285781548b8201529085019083016200030d565b505084890196505b509498975050505050505050565b60805160a05161145262000372600039600081816102a301526104b201526000818161022e015261048901526114526000f3fe608060405234801561001057600080fd5b50600436106101125760003560e01c806306fdde0314610117578063095ea7b31461013557806318160ddd1461015857806323b872dd1461016f57806330adf81f14610182578063313ce567146101975780633644e515146101b157806340c10f19146101b957806342966c68146101ce57806370a08231146101e157806370ae92d214610201578063715018a614610221578063771da5c51461022957806379cc6790146102505780638da5cb5b1461026357806395d89b4114610283578063a9059cbb1461028b578063b4f94b2e1461029e578063cae9ca51146102c5578063d505accf146102d8578063dd62ed3e146102eb578063f2fde38b14610316575b600080fd5b61011f610329565b60405161012c9190610fe4565b60405180910390f35b610148610143366004611013565b6103b7565b604051901515815260200161012c565b61016160045481565b60405190815260200161012c565b61014861017d36600461103d565b6103cd565b6101616000805160206113fd83398151915281565b61019f601281565b60405160ff909116815260200161012c565b610161610485565b6101cc6101c7366004611013565b6104e1565b005b6101cc6101dc366004611079565b6105d8565b6101616101ef366004611092565b60016020526000908152604090205481565b61016161020f366004611092565b60036020526000908152604090205481565b6101cc6105e5565b6101617f000000000000000000000000000000000000000000000000000000000000000081565b6101cc61025e366004611013565b610620565b61026b6106bb565b6040516001600160a01b03909116815260200161012c565b61011f6106ca565b610148610299366004611013565b6106d7565b6101617f000000000000000000000000000000000000000000000000000000000000000081565b6101486102d33660046110c3565b6106e4565b6101cc6102e636600461118d565b61076c565b6101616102f9366004611200565b600260209081526000928352604080842090915290825290205481565b6101cc610324366004611092565b610a2a565b6005805461033690611233565b80601f016020809104026020016040519081016040528092919081815260200182805461036290611233565b80156103af5780601f10610384576101008083540402835291602001916103af565b820191906000526020600020905b81548152906001019060200180831161039257829003601f168201915b505050505081565b60006103c4338484610ac7565b50600192915050565b6001600160a01b0383166000908152600260209081526040808320338452909152812054600019811461046d57828110156104595760405162461bcd60e51b815260206004820152602160248201527f5472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636044820152606560f81b60648201526084015b60405180910390fd5b61046d85336104688685611284565b610ac7565b610478858585610bd3565b60019150505b9392505050565b60007f00000000000000000000000000000000000000000000000000000000000000004614156104d457507f000000000000000000000000000000000000000000000000000000000000000090565b6104dc610dc8565b905090565b336104ea6106bb565b6001600160a01b0316146105105760405162461bcd60e51b81526004016104509061129b565b6001600160a01b0382166105615760405162461bcd60e51b81526020600482015260186024820152774d696e7420746f20746865207a65726f206164647265737360401b6044820152606401610450565b806004600082825461057391906112d0565b90915550506001600160a01b038216600090815260016020526040812080548392906105a09084906112d0565b90915550506040518181526001600160a01b038316906000906000805160206113dd8339815191529060200160405180910390a35050565b6105e23382610e77565b50565b336105ee6106bb565b6001600160a01b0316146106145760405162461bcd60e51b81526004016104509061129b565b61061e6000610f47565b565b6001600160a01b038216600090815260026020908152604080832033845290915290205460001981146106ac578181101561069d5760405162461bcd60e51b815260206004820152601d60248201527f4275726e20616d6f756e74206578636565647320616c6c6f77616e63650000006044820152606401610450565b6106ac83336104688585611284565b6106b68383610e77565b505050565b6000546001600160a01b031690565b6006805461033690611233565b60006103c4338484610bd3565b60006106f084846103b7565b1561076257604051638f4ffcb160e01b81526001600160a01b03851690638f4ffcb1906107279033908790309088906004016112e8565b600060405180830381600087803b15801561074157600080fd5b505af1158015610755573d6000803e3d6000fd5b505050506001905061047e565b5060009392505050565b428410156107b15760405162461bcd60e51b815260206004820152601260248201527114195c9b5a5cdcda5bdb88195e1c1a5c995960721b6044820152606401610450565b6fa2a8918ca85bafe22016d0b997e4df60600160ff1b038111156108155760405162461bcd60e51b815260206004820152601b60248201527a496e76616c6964207369676e6174757265202773272076616c756560281b6044820152606401610450565b8260ff16601b148061082a57508260ff16601c145b6108745760405162461bcd60e51b815260206004820152601b60248201527a496e76616c6964207369676e6174757265202776272076616c756560281b6044820152606401610450565b600061087e610485565b6001600160a01b038916600090815260036020526040812080546000805160206113fd833981519152928c928c928c929091906108ba83611325565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810187905260e0016040516020818303038152906040528051906020012060405160200161093392919061190160f01b81526002810192909252602282015260420190565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff88169284019290925260608301869052608083018590529092509060019060a0016020604051602081039080840390855afa15801561099e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906109d45750886001600160a01b0316816001600160a01b0316145b610a145760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610450565b610a1f898989610ac7565b505050505050505050565b33610a336106bb565b6001600160a01b031614610a595760405162461bcd60e51b81526004016104509061129b565b6001600160a01b038116610abe5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610450565b6105e281610f47565b6001600160a01b038316610b1d5760405162461bcd60e51b815260206004820152601d60248201527f417070726f76652066726f6d20746865207a65726f20616464726573730000006044820152606401610450565b6001600160a01b038216610b715760405162461bcd60e51b815260206004820152601b60248201527a417070726f766520746f20746865207a65726f206164647265737360281b6044820152606401610450565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610c295760405162461bcd60e51b815260206004820152601e60248201527f5472616e736665722066726f6d20746865207a65726f206164647265737300006044820152606401610450565b6001600160a01b038216610c7e5760405162461bcd60e51b815260206004820152601c60248201527b5472616e7366657220746f20746865207a65726f206164647265737360201b6044820152606401610450565b6001600160a01b038216301415610cd75760405162461bcd60e51b815260206004820152601d60248201527f5472616e7366657220746f2074686520746f6b656e20616464726573730000006044820152606401610450565b6001600160a01b03831660009081526001602052604090205481811015610d405760405162461bcd60e51b815260206004820152601f60248201527f5472616e7366657220616d6f756e7420657863656564732062616c616e6365006044820152606401610450565b610d4a8282611284565b6001600160a01b038086166000908152600160205260408082209390935590851681529081208054849290610d809084906112d0565b92505081905550826001600160a01b0316846001600160a01b03166000805160206113dd83398151915284604051610dba91815260200190565b60405180910390a350505050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6005604051610dfa9190611340565b60408051918290038220828201825260018352603160f81b6020938401528151928301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b6001600160a01b03821660009081526001602052604090205481811015610ede5760405162461bcd60e51b815260206004820152601b60248201527a4275726e20616d6f756e7420657863656564732062616c616e636560281b6044820152606401610450565b610ee88282611284565b6001600160a01b03841660009081526001602052604081209190915560048054849290610f16908490611284565b90915550506040518281526000906001600160a01b038516906000805160206113dd83398151915290602001610bc6565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000815180845260005b81811015610fbd57602081850181015186830182015201610fa1565b81811115610fcf576000602083870101525b50601f01601f19169290920160200192915050565b60208152600061047e6020830184610f97565b80356001600160a01b038116811461100e57600080fd5b919050565b6000806040838503121561102657600080fd5b61102f83610ff7565b946020939093013593505050565b60008060006060848603121561105257600080fd5b61105b84610ff7565b925061106960208501610ff7565b9150604084013590509250925092565b60006020828403121561108b57600080fd5b5035919050565b6000602082840312156110a457600080fd5b61047e82610ff7565b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156110d857600080fd5b6110e184610ff7565b92506020840135915060408401356001600160401b038082111561110457600080fd5b818601915086601f83011261111857600080fd5b81358181111561112a5761112a6110ad565b604051601f8201601f19908116603f01168101908382118183101715611152576111526110ad565b8160405282815289602084870101111561116b57600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b600080600080600080600060e0888a0312156111a857600080fd5b6111b188610ff7565b96506111bf60208901610ff7565b95506040880135945060608801359350608088013560ff811681146111e357600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561121357600080fd5b61121c83610ff7565b915061122a60208401610ff7565b90509250929050565b600181811c9082168061124757607f821691505b6020821081141561126857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156112965761129661126e565b500390565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156112e3576112e361126e565b500190565b6001600160a01b038581168252602082018590528316604082015260806060820181905260009061131b90830184610f97565b9695505050505050565b60006000198214156113395761133961126e565b5060010190565b600080835481600182811c91508083168061135c57607f831692505b602080841082141561137c57634e487b7160e01b86526022600452602486fd5b81801561139057600181146113a1576113ce565b60ff198616895284890196506113ce565b60008a81526020902060005b868110156113c65781548b8201529085019083016113ad565b505084890196505b50949897505050505050505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9a264697066735822122047c32e1d9a7b0fc2ebfc1d9640afe15da74720b8dcecc5347a0f70c5543ef46064736f6c63430008090033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101125760003560e01c806306fdde0314610117578063095ea7b31461013557806318160ddd1461015857806323b872dd1461016f57806330adf81f14610182578063313ce567146101975780633644e515146101b157806340c10f19146101b957806342966c68146101ce57806370a08231146101e157806370ae92d214610201578063715018a614610221578063771da5c51461022957806379cc6790146102505780638da5cb5b1461026357806395d89b4114610283578063a9059cbb1461028b578063b4f94b2e1461029e578063cae9ca51146102c5578063d505accf146102d8578063dd62ed3e146102eb578063f2fde38b14610316575b600080fd5b61011f610329565b60405161012c9190610fe4565b60405180910390f35b610148610143366004611013565b6103b7565b604051901515815260200161012c565b61016160045481565b60405190815260200161012c565b61014861017d36600461103d565b6103cd565b6101616000805160206113fd83398151915281565b61019f601281565b60405160ff909116815260200161012c565b610161610485565b6101cc6101c7366004611013565b6104e1565b005b6101cc6101dc366004611079565b6105d8565b6101616101ef366004611092565b60016020526000908152604090205481565b61016161020f366004611092565b60036020526000908152604090205481565b6101cc6105e5565b6101617f0000000000000000000000000000000000000000000000000000000000aa36a781565b6101cc61025e366004611013565b610620565b61026b6106bb565b6040516001600160a01b03909116815260200161012c565b61011f6106ca565b610148610299366004611013565b6106d7565b6101617f009f794697853fca079ff5dbedcd7e1c5fffd6f4f26b78a1cf29c276023deab581565b6101486102d33660046110c3565b6106e4565b6101cc6102e636600461118d565b61076c565b6101616102f9366004611200565b600260209081526000928352604080842090915290825290205481565b6101cc610324366004611092565b610a2a565b6005805461033690611233565b80601f016020809104026020016040519081016040528092919081815260200182805461036290611233565b80156103af5780601f10610384576101008083540402835291602001916103af565b820191906000526020600020905b81548152906001019060200180831161039257829003601f168201915b505050505081565b60006103c4338484610ac7565b50600192915050565b6001600160a01b0383166000908152600260209081526040808320338452909152812054600019811461046d57828110156104595760405162461bcd60e51b815260206004820152602160248201527f5472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636044820152606560f81b60648201526084015b60405180910390fd5b61046d85336104688685611284565b610ac7565b610478858585610bd3565b60019150505b9392505050565b60007f0000000000000000000000000000000000000000000000000000000000aa36a74614156104d457507f009f794697853fca079ff5dbedcd7e1c5fffd6f4f26b78a1cf29c276023deab590565b6104dc610dc8565b905090565b336104ea6106bb565b6001600160a01b0316146105105760405162461bcd60e51b81526004016104509061129b565b6001600160a01b0382166105615760405162461bcd60e51b81526020600482015260186024820152774d696e7420746f20746865207a65726f206164647265737360401b6044820152606401610450565b806004600082825461057391906112d0565b90915550506001600160a01b038216600090815260016020526040812080548392906105a09084906112d0565b90915550506040518181526001600160a01b038316906000906000805160206113dd8339815191529060200160405180910390a35050565b6105e23382610e77565b50565b336105ee6106bb565b6001600160a01b0316146106145760405162461bcd60e51b81526004016104509061129b565b61061e6000610f47565b565b6001600160a01b038216600090815260026020908152604080832033845290915290205460001981146106ac578181101561069d5760405162461bcd60e51b815260206004820152601d60248201527f4275726e20616d6f756e74206578636565647320616c6c6f77616e63650000006044820152606401610450565b6106ac83336104688585611284565b6106b68383610e77565b505050565b6000546001600160a01b031690565b6006805461033690611233565b60006103c4338484610bd3565b60006106f084846103b7565b1561076257604051638f4ffcb160e01b81526001600160a01b03851690638f4ffcb1906107279033908790309088906004016112e8565b600060405180830381600087803b15801561074157600080fd5b505af1158015610755573d6000803e3d6000fd5b505050506001905061047e565b5060009392505050565b428410156107b15760405162461bcd60e51b815260206004820152601260248201527114195c9b5a5cdcda5bdb88195e1c1a5c995960721b6044820152606401610450565b6fa2a8918ca85bafe22016d0b997e4df60600160ff1b038111156108155760405162461bcd60e51b815260206004820152601b60248201527a496e76616c6964207369676e6174757265202773272076616c756560281b6044820152606401610450565b8260ff16601b148061082a57508260ff16601c145b6108745760405162461bcd60e51b815260206004820152601b60248201527a496e76616c6964207369676e6174757265202776272076616c756560281b6044820152606401610450565b600061087e610485565b6001600160a01b038916600090815260036020526040812080546000805160206113fd833981519152928c928c928c929091906108ba83611325565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810187905260e0016040516020818303038152906040528051906020012060405160200161093392919061190160f01b81526002810192909252602282015260420190565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff88169284019290925260608301869052608083018590529092509060019060a0016020604051602081039080840390855afa15801561099e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906109d45750886001600160a01b0316816001600160a01b0316145b610a145760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610450565b610a1f898989610ac7565b505050505050505050565b33610a336106bb565b6001600160a01b031614610a595760405162461bcd60e51b81526004016104509061129b565b6001600160a01b038116610abe5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610450565b6105e281610f47565b6001600160a01b038316610b1d5760405162461bcd60e51b815260206004820152601d60248201527f417070726f76652066726f6d20746865207a65726f20616464726573730000006044820152606401610450565b6001600160a01b038216610b715760405162461bcd60e51b815260206004820152601b60248201527a417070726f766520746f20746865207a65726f206164647265737360281b6044820152606401610450565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610c295760405162461bcd60e51b815260206004820152601e60248201527f5472616e736665722066726f6d20746865207a65726f206164647265737300006044820152606401610450565b6001600160a01b038216610c7e5760405162461bcd60e51b815260206004820152601c60248201527b5472616e7366657220746f20746865207a65726f206164647265737360201b6044820152606401610450565b6001600160a01b038216301415610cd75760405162461bcd60e51b815260206004820152601d60248201527f5472616e7366657220746f2074686520746f6b656e20616464726573730000006044820152606401610450565b6001600160a01b03831660009081526001602052604090205481811015610d405760405162461bcd60e51b815260206004820152601f60248201527f5472616e7366657220616d6f756e7420657863656564732062616c616e6365006044820152606401610450565b610d4a8282611284565b6001600160a01b038086166000908152600160205260408082209390935590851681529081208054849290610d809084906112d0565b92505081905550826001600160a01b0316846001600160a01b03166000805160206113dd83398151915284604051610dba91815260200190565b60405180910390a350505050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6005604051610dfa9190611340565b60408051918290038220828201825260018352603160f81b6020938401528151928301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b6001600160a01b03821660009081526001602052604090205481811015610ede5760405162461bcd60e51b815260206004820152601b60248201527a4275726e20616d6f756e7420657863656564732062616c616e636560281b6044820152606401610450565b610ee88282611284565b6001600160a01b03841660009081526001602052604081209190915560048054849290610f16908490611284565b90915550506040518281526000906001600160a01b038516906000805160206113dd83398151915290602001610bc6565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000815180845260005b81811015610fbd57602081850181015186830182015201610fa1565b81811115610fcf576000602083870101525b50601f01601f19169290920160200192915050565b60208152600061047e6020830184610f97565b80356001600160a01b038116811461100e57600080fd5b919050565b6000806040838503121561102657600080fd5b61102f83610ff7565b946020939093013593505050565b60008060006060848603121561105257600080fd5b61105b84610ff7565b925061106960208501610ff7565b9150604084013590509250925092565b60006020828403121561108b57600080fd5b5035919050565b6000602082840312156110a457600080fd5b61047e82610ff7565b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156110d857600080fd5b6110e184610ff7565b92506020840135915060408401356001600160401b038082111561110457600080fd5b818601915086601f83011261111857600080fd5b81358181111561112a5761112a6110ad565b604051601f8201601f19908116603f01168101908382118183101715611152576111526110ad565b8160405282815289602084870101111561116b57600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b600080600080600080600060e0888a0312156111a857600080fd5b6111b188610ff7565b96506111bf60208901610ff7565b95506040880135945060608801359350608088013560ff811681146111e357600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561121357600080fd5b61121c83610ff7565b915061122a60208401610ff7565b90509250929050565b600181811c9082168061124757607f821691505b6020821081141561126857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156112965761129661126e565b500390565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156112e3576112e361126e565b500190565b6001600160a01b038581168252602082018590528316604082015260806060820181905260009061131b90830184610f97565b9695505050505050565b60006000198214156113395761133961126e565b5060010190565b600080835481600182811c91508083168061135c57607f831692505b602080841082141561137c57634e487b7160e01b86526022600452602486fd5b81801561139057600181146113a1576113ce565b60ff198616895284890196506113ce565b60008a81526020902060005b868110156113c65781548b8201529085019083016113ad565b505084890196505b50949897505050505050505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9a264697066735822122047c32e1d9a7b0fc2ebfc1d9640afe15da74720b8dcecc5347a0f70c5543ef46064736f6c63430008090033
Loading...
Loading
Loading...
Loading
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.