Contract 0x971A63F862A7788cccB3C4F8a6c9E5e0AB66754f 1

Contract Overview

Balance:
0 MATIC
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x64a5eaa5f29d27affbafd222050a6c7999c51bcaad9ec43b6ae6495018db77e50x60806040239127822022-01-15 12:46:4013 days 7 hrs ago0x8e1d4ee6c2948316fe34b76613284eeea8f5aff0 IN  Create: IndexTokenFactory0 MATIC0.0034723739941.999999997
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
IndexTokenFactory

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 7 : IndexTokenFactory.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;


import "Ownable.sol";
import {IndexToken} from "IndexToken.sol";

contract IndexTokenFactory is Ownable{
    address[] private allTokens;
    mapping(string => address) private _getToken;
    mapping(address => string) private _getSymbol;

    function createIndexToken(string memory name, string memory symbol) external onlyOwner{
        require (_getToken[symbol] == address(0), "Token already exists!");
        IndexToken token = new IndexToken(name, symbol);
        token.transferOwnership(owner());
        allTokens.push(address(token));
        _getToken[symbol] = address(token);
        _getSymbol[address(token)] = symbol;
    }

    function latestToken() external view returns(address){
        return allTokens[allTokens.length -1];
    }

    function getToken(string memory symbol) public view returns(address){
        return _getToken[symbol];
    }

    function getSymbol(address token) public view returns(string memory){
        return _getSymbol[token];
    }
}

File 2 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "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);
    }
}

File 3 of 7 : Context.sol
// 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;
    }
}

File 4 of 7 : IndexToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import { ERC20 } from "ERC20.sol";
import "Ownable.sol";

contract IndexToken is ERC20, Ownable{
    string private _name;
    string private _symbol;
    uint8 private _decimals;
    address private _factory;

    function _initialize(string memory nameArg, string memory symbolArg, uint8 decimalsArg) internal {
        _name = nameArg;
        _symbol = symbolArg;
        _decimals = decimalsArg;
        _factory = msg.sender;
    }

    function name() public override view returns (string memory) {
        return _name;
    }

    function symbol() public override view returns (string memory) {
        return _symbol;
    }

    function decimals() public override view returns (uint8) {
        return _decimals;
    }
    function factory() public view returns (address) {
        return _factory;
    }

    mapping(address => uint) private _totalTokenMinted;
    mapping(address => uint) private _totalAmountPaid;
     
    address[] private minters; 
    
    constructor(string memory _name, string memory _symbol) ERC20(_name, _symbol){
        _initialize(_name, _symbol, 18);
    }
    function mint(address _account, uint _tokenMinted, uint _amountPaid) external onlyOwner{
        _mint(_account, _tokenMinted);
        _totalTokenMinted[_account] += _tokenMinted;
        _totalAmountPaid[_account] += _amountPaid;
        minters.push(_account);
    }
    function burn(address _account, uint _tokenBurned, uint _amountRedeemed) external onlyOwner{
        _burn(_account, _tokenBurned);
        _totalTokenMinted[_account] -= _tokenBurned;
        _totalAmountPaid[_account] -= _amountRedeemed;
    }
    function burnLiquidate(address _account, uint _tokenBurned, uint _amountRedeemed) external onlyOwner{
        _burn(msg.sender, _tokenBurned);
        _totalTokenMinted[_account] -= _tokenBurned;
        _totalAmountPaid[_account] -= _amountRedeemed;
    }
    function getTotalTokenMinted(address _account) external view returns (uint){
        return _totalTokenMinted[_account];
    }
    function getTotalAmountPaid(address _account) external view returns (uint){
        return _totalAmountPaid[_account];
    }
    function setTotalAmountPaid(address _account, uint amount) external onlyOwner{
        _totalAmountPaid[_account] =  amount;
    }
    function getMinters() external view  onlyOwner returns (address[] memory) {
        return minters;
    }   
}

File 5 of 7 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "IERC20.sol";
import "IERC20Metadata.sol";
import "Context.sol";

/**
 * @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 Contracts guidelines: functions revert
 * instead 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 default 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");
        unchecked {
            _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");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This 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");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(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:
     *
     * - `account` 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);

        _afterTokenTransfer(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");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(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 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 {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 6 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 7 of 7 : IERC20Metadata.sol
// 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);
}

Settings
{
  "evmVersion": "istanbul",
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "libraries": {
    "IndexTokenFactory.sol": {}
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"name":"createIndexToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"getSymbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"symbol","type":"string"}],"name":"getToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611e078061007e6000396000f3fe60806040523480156200001157600080fd5b5060043610620000875760003560e01c8063c1733f681162000062578063c1733f6814620000d1578063c9b2e52214620000e8578063f184c3b6146200010e578063f2fde38b146200012557600080fd5b8063715018a6146200008c57806385fffcd514620000985780638da5cb5b14620000bf575b600080fd5b620000966200013c565b005b620000a262000180565b6040516001600160a01b0390911681526020015b60405180910390f35b6000546001600160a01b0316620000a2565b620000a2620000e236600462000710565b620001c2565b620000ff620000f936600462000751565b620001f5565b604051620000b69190620007e0565b620000966200011f366004620007f5565b620002a9565b620000966200013636600462000751565b620004bf565b6000546001600160a01b03163314620001725760405162461bcd60e51b8152600401620001699062000860565b60405180910390fd5b6200017e600062000561565b565b60018054600091906200019590829062000895565b81548110620001a857620001a8620008bb565b6000918252602090912001546001600160a01b0316919050565b6000600282604051620001d69190620008d1565b908152604051908190036020019020546001600160a01b031692915050565b6001600160a01b03811660009081526003602052604090208054606091906200021e90620008ef565b80601f01602080910402602001604051908101604052809291908181526020018280546200024c90620008ef565b80156200029d5780601f1062000271576101008083540402835291602001916200029d565b820191906000526020600020905b8154815290600101906020018083116200027f57829003601f168201915b50505050509050919050565b6000546001600160a01b03163314620002d65760405162461bcd60e51b8152600401620001699062000860565b60006001600160a01b0316600282604051620002f39190620008d1565b908152604051908190036020019020546001600160a01b031614620003535760405162461bcd60e51b8152602060048201526015602482015274546f6b656e20616c7265616479206578697374732160581b604482015260640162000169565b600082826040516200036590620005b1565b620003729291906200092c565b604051809103906000f0801580156200038f573d6000803e3d6000fd5b509050806001600160a01b031663f2fde38b620003b46000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b158015620003f657600080fd5b505af11580156200040b573d6000803e3d6000fd5b50506001805480820182556000919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b0319166001600160a01b038516179055505060405181906002906200046e908590620008d1565b908152604080516020928190038301902080546001600160a01b0319166001600160a01b03948516179055918316600090815260038252919091208351620004b992850190620005bf565b50505050565b6000546001600160a01b03163314620004ec5760405162461bcd60e51b8152600401620001699062000860565b6001600160a01b038116620005535760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840162000169565b6200055e8162000561565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611473806200095f83390190565b828054620005cd90620008ef565b90600052602060002090601f016020900481019282620005f157600085556200063c565b82601f106200060c57805160ff19168380011785556200063c565b828001600101855582156200063c579182015b828111156200063c5782518255916020019190600101906200061f565b506200064a9291506200064e565b5090565b5b808211156200064a57600081556001016200064f565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200068d57600080fd5b813567ffffffffffffffff80821115620006ab57620006ab62000665565b604051601f8301601f19908116603f01168101908282118183101715620006d657620006d662000665565b81604052838152866020858801011115620006f057600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000602082840312156200072357600080fd5b813567ffffffffffffffff8111156200073b57600080fd5b62000749848285016200067b565b949350505050565b6000602082840312156200076457600080fd5b81356001600160a01b03811681146200077c57600080fd5b9392505050565b60005b83811015620007a057818101518382015260200162000786565b83811115620004b95750506000910152565b60008151808452620007cc81602086016020860162000783565b601f01601f19169290920160200192915050565b6020815260006200077c6020830184620007b2565b600080604083850312156200080957600080fd5b823567ffffffffffffffff808211156200082257600080fd5b62000830868387016200067b565b935060208501359150808211156200084757600080fd5b5062000856858286016200067b565b9150509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082821015620008b657634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052603260045260246000fd5b60008251620008e581846020870162000783565b9190910192915050565b600181811c908216806200090457607f821691505b602082108114156200092657634e487b7160e01b600052602260045260246000fd5b50919050565b604081526000620009416040830185620007b2565b8281036020840152620009558185620007b2565b9594505050505056fe60806040523480156200001157600080fd5b5060405162001473380380620014738339810160408190526200003491620002b1565b8151829082906200004d9060039060208501906200013e565b508051620000639060049060208401906200013e565b505050620000806200007a6200009660201b60201c565b6200009a565b6200008e82826012620000ec565b505062000358565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8251620001019060069060208601906200013e565b508151620001179060079060208501906200013e565b506008805460ff929092166001600160a81b03199092169190911761010033021790555050565b8280546200014c906200031b565b90600052602060002090601f016020900481019282620001705760008555620001bb565b82601f106200018b57805160ff1916838001178555620001bb565b82800160010185558215620001bb579182015b82811115620001bb5782518255916020019190600101906200019e565b50620001c9929150620001cd565b5090565b5b80821115620001c95760008155600101620001ce565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200020c57600080fd5b81516001600160401b0380821115620002295762000229620001e4565b604051601f8301601f19908116603f01168101908282118183101715620002545762000254620001e4565b816040528381526020925086838588010111156200027157600080fd5b600091505b8382101562000295578582018301518183018401529082019062000276565b83821115620002a75760008385830101525b9695505050505050565b60008060408385031215620002c557600080fd5b82516001600160401b0380821115620002dd57600080fd5b620002eb86838701620001fa565b935060208501519150808211156200030257600080fd5b506200031185828601620001fa565b9150509250929050565b600181811c908216806200033057607f821691505b602082108114156200035257634e487b7160e01b600052602260045260246000fd5b50919050565b61110b80620003686000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c80638da5cb5b116100b8578063c45a01551161007c578063c45a0155146102d5578063d5216e1f146102eb578063dd62ed3e146102fe578063e96b147114610337578063f2fde38b1461034a578063f5298aca1461035d57600080fd5b80638da5cb5b1461025957806395d89b411461027e578063a457c2d714610286578063a9059cbb14610299578063baa3c88b146102ac57600080fd5b8063313ce5671161010a578063313ce567146101c257806339509351146101d75780636b32810b146101ea57806370a08231146101ff578063715018a6146102285780638433f12f1461023057600080fd5b806306fdde0314610147578063095ea7b314610165578063156e29f61461018857806318160ddd1461019d57806323b872dd146101af575b600080fd5b61014f610370565b60405161015c9190610e74565b60405180910390f35b610178610173366004610ee5565b610402565b604051901515815260200161015c565b61019b610196366004610f0f565b610418565b005b6002545b60405190815260200161015c565b6101786101bd366004610f42565b610504565b60085460405160ff909116815260200161015c565b6101786101e5366004610ee5565b6105ae565b6101f26105ea565b60405161015c9190610f7e565b6101a161020d366004610fcb565b6001600160a01b031660009081526020819052604090205490565b61019b610676565b6101a161023e366004610fcb565b6001600160a01b03166000908152600a602052604090205490565b6005546001600160a01b03165b6040516001600160a01b03909116815260200161015c565b61014f6106ac565b610178610294366004610ee5565b6106bb565b6101786102a7366004610ee5565b610754565b6101a16102ba366004610fcb565b6001600160a01b031660009081526009602052604090205490565b60085461010090046001600160a01b0316610266565b61019b6102f9366004610f0f565b610761565b6101a161030c366004610fed565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61019b610345366004610ee5565b6107f4565b61019b610358366004610fcb565b61083a565b61019b61036b366004610f0f565b6108d5565b60606006805461037f90611020565b80601f01602080910402602001604051908101604052809291908181526020018280546103ab90611020565b80156103f85780601f106103cd576101008083540402835291602001916103f8565b820191906000526020600020905b8154815290600101906020018083116103db57829003601f168201915b5050505050905090565b600061040f338484610909565b50600192915050565b6005546001600160a01b0316331461044b5760405162461bcd60e51b81526004016104429061105b565b60405180910390fd5b6104558383610a2e565b6001600160a01b0383166000908152600960205260408120805484929061047d9084906110a6565b90915550506001600160a01b0383166000908152600a6020526040812080548392906104aa9084906110a6565b9091555050600b80546001810182556000919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90180546001600160a01b0319166001600160a01b0394909416939093179092555050565b6000610511848484610b0d565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156105965760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610442565b6105a38533858403610909565b506001949350505050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161040f9185906105e59086906110a6565b610909565b6005546060906001600160a01b031633146106175760405162461bcd60e51b81526004016104429061105b565b600b8054806020026020016040519081016040528092919081815260200182805480156103f857602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161064f575050505050905090565b6005546001600160a01b031633146106a05760405162461bcd60e51b81526004016104429061105b565b6106aa6000610cdc565b565b60606007805461037f90611020565b3360009081526001602090815260408083206001600160a01b03861684529091528120548281101561073d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610442565b61074a3385858403610909565b5060019392505050565b600061040f338484610b0d565b6005546001600160a01b0316331461078b5760405162461bcd60e51b81526004016104429061105b565b6107953383610d2e565b6001600160a01b038316600090815260096020526040812080548492906107bd9084906110be565b90915550506001600160a01b0383166000908152600a6020526040812080548392906107ea9084906110be565b9091555050505050565b6005546001600160a01b0316331461081e5760405162461bcd60e51b81526004016104429061105b565b6001600160a01b039091166000908152600a6020526040902055565b6005546001600160a01b031633146108645760405162461bcd60e51b81526004016104429061105b565b6001600160a01b0381166108c95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610442565b6108d281610cdc565b50565b6005546001600160a01b031633146108ff5760405162461bcd60e51b81526004016104429061105b565b6107958383610d2e565b6001600160a01b03831661096b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610442565b6001600160a01b0382166109cc5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610442565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038216610a845760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610442565b8060026000828254610a9691906110a6565b90915550506001600160a01b03821660009081526020819052604081208054839290610ac39084906110a6565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038316610b715760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610442565b6001600160a01b038216610bd35760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610442565b6001600160a01b03831660009081526020819052604090205481811015610c4b5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610442565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610c829084906110a6565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610cce91815260200190565b60405180910390a350505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216610d8e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610442565b6001600160a01b03821660009081526020819052604090205481811015610e025760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610442565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610e319084906110be565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610a21565b600060208083528351808285015260005b81811015610ea157858101830151858201604001528201610e85565b81811115610eb3576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114610ee057600080fd5b919050565b60008060408385031215610ef857600080fd5b610f0183610ec9565b946020939093013593505050565b600080600060608486031215610f2457600080fd5b610f2d84610ec9565b95602085013595506040909401359392505050565b600080600060608486031215610f5757600080fd5b610f6084610ec9565b9250610f6e60208501610ec9565b9150604084013590509250925092565b6020808252825182820181905260009190848201906040850190845b81811015610fbf5783516001600160a01b031683529284019291840191600101610f9a565b50909695505050505050565b600060208284031215610fdd57600080fd5b610fe682610ec9565b9392505050565b6000806040838503121561100057600080fd5b61100983610ec9565b915061101760208401610ec9565b90509250929050565b600181811c9082168061103457607f821691505b6020821081141561105557634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156110b9576110b9611090565b500190565b6000828210156110d0576110d0611090565b50039056fea2646970667358221220c79d2046ce6aa45c1b6830e750e387a51841d8e07cdc84d35dbb01e54fa6f4a764736f6c634300080a0033a2646970667358221220046fd917bf9dfbbcb46bf6e291c1cbd928de940efd6c4ea300eb684bf74769c664736f6c634300080a0033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading