Contract 0xA609BA2bCB89893B280449Ca57B46dA6edF8023b

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xb85d541f12012d89b7d3aac028f8c29a6a8d015a085507e35e47fd388e23d6e1Smash Eggs215923542021-11-20 11:55:0767 days 23 hrs ago0x0a2484c01f804049fade117e5f68d37ded69b7a5 IN  0xa609ba2bcb89893b280449ca57b46da6edf8023b0 MATIC0.00002652761.1
0xf673812856890f972201451e70712c3ef6d572b95116e1b43a3a434c3b3958f5Smash Eggs179436722021-08-13 16:01:35166 days 19 hrs ago0xc49848dead322d702b71ad7631a9183117a95282 IN  0xa609ba2bcb89893b280449ca57b46da6edf8023b0 MATIC0.000120585
0x16063956d8c40b0e9724a0aa30d3d08059f111899c27d9b0f1dc3e2394be0021Smash Eggs177522052021-08-08 10:11:09172 days 1 hr ago0x4e7b8075036ab897f65be20693aab0727f67f1a2 IN  0xa609ba2bcb89893b280449ca57b46da6edf8023b0 MATIC0.00055466823
0xd64cb28c72a4e7b0f3f0dc1d357dd0d164973daa69dfd6c4854dc0a125d89defSmash Eggs176924642021-08-06 20:02:20173 days 15 hrs ago0x624f90253db80456802ebeb40a02ab3be3b346c2 IN  0xa609ba2bcb89893b280449ca57b46da6edf8023b0 MATIC0.00002652761.1
0x71be61e384b302d483cc42eb6d9ae7b52d620214d6d11c5e1d4c7dee029992e5Accept Owner176168342021-08-04 15:32:49175 days 20 hrs ago0x94a6a15e6693f5bab746f5700c64014ad06ded43 IN  0xa609ba2bcb89893b280449ca57b46da6edf8023b0 MATIC0.0000922648653.885
0x194b7467b74a3e14aca13b6712df22e3527d8755d01b0cf1df77fbd77572391eTransfer Ownersh...176168252021-08-04 15:32:27175 days 20 hrs ago0x94a6a15e6693f5bab746f5700c64014ad06ded43 IN  0xa609ba2bcb89893b280449ca57b46da6edf8023b0 MATIC0.0000947201853.885
0xd5c7e1411f5d955272b722620874a330824301e0a8c43d710a10da105e5bc578Update Random Ad...176168242021-08-04 15:32:25175 days 20 hrs ago0x94a6a15e6693f5bab746f5700c64014ad06ded43 IN  0xa609ba2bcb89893b280449ca57b46da6edf8023b0 MATIC0.000081268653.33
0xe4b3317634f811b0363edd2682cca4d4d8a9103afe3b3716e6bc918a71953a0aSmash Eggs176127002021-08-04 12:55:45175 days 22 hrs ago0x282208f9e6546ac283a3adcd628b85905d07edbd IN  0xa609ba2bcb89893b280449ca57b46da6edf8023b0 MATIC0.000120585
0x8f20848c0050ecd1fa204b527508b583366c3deee1e705bb33954aaa741f4a21Smash Eggs176090582021-08-04 10:46:15176 days 51 mins ago0xb5027f8934abebba661b8bb390cdca66a37bcd06 IN  0xa609ba2bcb89893b280449ca57b46da6edf8023b0 MATIC0.000120585
0x067bf761f75516676de9cc1f7f5942081f53b77ba5564ea534866736efc3e4afSmash Eggs176090582021-08-04 10:46:15176 days 51 mins ago0xb5027f8934abebba661b8bb390cdca66a37bcd06 IN  0xa609ba2bcb89893b280449ca57b46da6edf8023b0 MATIC0.000120585
0x8b31205c0322a491cddd47cee3a17c94b46f68d0280081a56b4ac470882fbb09Smash Eggs176090582021-08-04 10:46:15176 days 51 mins ago0xb5027f8934abebba661b8bb390cdca66a37bcd06 IN  0xa609ba2bcb89893b280449ca57b46da6edf8023b0 MATIC0.00039082389616.206
0xe981309a0d7f18a98a51c4ac5f15fb3873c60edbf903ec106dbc0d3949ce1be7Smash Eggs176090582021-08-04 10:46:15176 days 51 mins ago0xb5027f8934abebba661b8bb390cdca66a37bcd06 IN  0xa609ba2bcb89893b280449ca57b46da6edf8023b0 MATIC0.000120585
0xb8d3d7cef7a883b453ce5da7c17a9313b89792876c4b60ab36aa684f633895f0Smash Eggs176090582021-08-04 10:46:15176 days 51 mins ago0xb5027f8934abebba661b8bb390cdca66a37bcd06 IN  0xa609ba2bcb89893b280449ca57b46da6edf8023b0 MATIC0.000120585
0x848c192fe910df0ed62f93a44e8cdc7839b7c4caa12f89a2a763c396025e5cc4Smash Eggs176090582021-08-04 10:46:15176 days 51 mins ago0xb5027f8934abebba661b8bb390cdca66a37bcd06 IN  0xa609ba2bcb89893b280449ca57b46da6edf8023b0 MATIC0.000120585
0xe9e69b86fa12501e102c0d50dc4995e4cc0853c419b91129bbfc46efba36ddaaSmash Eggs175158112021-08-02 0:19:31178 days 11 hrs ago0x17a8eaf9241a220e1ebda22a623cb058530cb0ab IN  0xa609ba2bcb89893b280449ca57b46da6edf8023b0 MATIC0.001070750444.400000002
0xf220e3840d13e9ebadbe4364fc1fb35500e3ca59521f80c7dc4e091ab7c9cbb5Smash Eggs175158112021-08-02 0:19:31178 days 11 hrs ago0x17a8eaf9241a220e1ebda22a623cb058530cb0ab IN  0xa609ba2bcb89893b280449ca57b46da6edf8023b0 MATIC0.0003212251213.32
0xa1469a94f5080aec1730f5678543c388e480e2ecba11d37b0890a6e5bc9272aeSmash Eggs175158112021-08-02 0:19:31178 days 11 hrs ago0x17a8eaf9241a220e1ebda22a623cb058530cb0ab IN  0xa609ba2bcb89893b280449ca57b46da6edf8023b0 MATIC0.000120585
0xe9f26a1d65e5297146c4c141a6dbff1e597e1d0ce14957b753f48377ba87e092Smash Eggs175001692021-08-01 14:54:05178 days 20 hrs ago0xc4a30458b226630d3fa9961c24974f4e6b043afe IN  0xa609ba2bcb89893b280449ca57b46da6edf8023b0 MATIC0.0001446966
0x0bb630156ce4dfc334f96ece56a6c4bdcc5af0c6c543694abd0a11f96c7be7c3Smash Eggs175001192021-08-01 14:52:21178 days 20 hrs ago0xe660ebf230c00e96a43fb232dfe7bf03600d47ef IN  0xa609ba2bcb89893b280449ca57b46da6edf8023b0 MATIC0.0001446966
0x4d93dfef19bec140f36b0bfa291a23ca21f6f8ba43ddc84ad0a1e4f7d25e920dSmash Eggs174999762021-08-01 14:47:27178 days 20 hrs ago0xc4a30458b226630d3fa9961c24974f4e6b043afe IN  0xa609ba2bcb89893b280449ca57b46da6edf8023b0 MATIC0.0001446966
0x116ef8d385b342d8fc0feed3370eb0f9eeb677c5494cc600b571037ebee3ff35Smash Eggs174999602021-08-01 14:46:51178 days 20 hrs ago0xc4a30458b226630d3fa9961c24974f4e6b043afe IN  0xa609ba2bcb89893b280449ca57b46da6edf8023b0 MATIC0.0001446966
0x8179bfbb66b2f1241c0017370db7140543e90b7fd2a45f0d081b2edf90d1664eSmash Eggs174998832021-08-01 14:44:13178 days 20 hrs ago0x7d693e6cc471ddac0d3908f2451cdcc3782e5ef2 IN  0xa609ba2bcb89893b280449ca57b46da6edf8023b0 MATIC0.0001446966
0xe8071bd0ec47c143094a761600c5d456bd01314f9bab1eb7d7b975e705b923fdSmash Eggs174998672021-08-01 14:43:41178 days 20 hrs ago0x7d693e6cc471ddac0d3908f2451cdcc3782e5ef2 IN  0xa609ba2bcb89893b280449ca57b46da6edf8023b0 MATIC0.0001446966
0xe7d223a9a30d2d612169ffe1f80e4ab380fca6ba527e35edd02eacf0672ce2adSmash Eggs174998492021-08-01 14:43:05178 days 20 hrs ago0x7d693e6cc471ddac0d3908f2451cdcc3782e5ef2 IN  0xa609ba2bcb89893b280449ca57b46da6edf8023b0 MATIC0.0001446966
0xa326ace88f5cef9a073af37726a5b132813c3e279d9e68e8d6758dd79a2aedfeSmash Eggs174997392021-08-01 14:38:05178 days 20 hrs ago0xc07a01daca156abf2c173bd203dda2351fc24678 IN  0xa609ba2bcb89893b280449ca57b46da6edf8023b0 MATIC0.0001446966
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SmashEggs

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-07-22
*/

// File: @openzeppelin\contracts\math\SafeMath.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

// File: ..\node_modules\@openzeppelin\contracts\utils\Context.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: ..\node_modules\@openzeppelin\contracts\token\ERC20\IERC20.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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\ERC20.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) public {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual 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 {_setupDecimals} is
     * called.
     *
     * 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 returns (uint8) {
        return _decimals;
    }

    /**
     * @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);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        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].add(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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        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);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(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 = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(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);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(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 Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal virtual {
        _decimals = decimals_;
    }

    /**
     * @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: contracts\OwnableContract.sol

pragma solidity 0.6.6;

contract OwnableContract {
    address public owner;
    address public pendingOwner;
    address public admin;

    event NewAdmin(address oldAdmin, address newAdmin);
    event NewOwner(address oldOwner, address newOwner);
    event NewPendingOwner(address oldPendingOwner, address newPendingOwner);

    constructor() public {
        owner = msg.sender;
        admin = msg.sender;
    }

    modifier onlyOwner {
        require(msg.sender == owner,"onlyOwner");
        _;
    }

    modifier onlyPendingOwner {
        require(msg.sender == pendingOwner,"onlyPendingOwner");
        _;
    }

    modifier onlyAdmin {
        require(msg.sender == admin || msg.sender == owner,"onlyAdmin");
        _;
    } 
    
    function transferOwnership(address _pendingOwner) public onlyOwner {
        emit NewPendingOwner(pendingOwner, _pendingOwner);
        pendingOwner = _pendingOwner;
    }

    function renounceOwnership() public virtual onlyOwner {
        emit NewOwner(owner, address(0));
        emit NewAdmin(admin, address(0));
        emit NewPendingOwner(pendingOwner, address(0));

        owner = address(0);
        pendingOwner = address(0);
        admin = address(0);
    }
    
    function acceptOwner() public onlyPendingOwner {
        emit NewOwner(owner, pendingOwner);
        owner = pendingOwner;

        address newPendingOwner = address(0);
        emit NewPendingOwner(pendingOwner, newPendingOwner);
        pendingOwner = newPendingOwner;
    }    
    
    function setAdmin(address newAdmin) public onlyOwner {
        emit NewAdmin(admin, newAdmin);
        admin = newAdmin;
    }
}

// File: contracts\ChickToken.sol

pragma solidity 0.6.6;




contract ChickToken is ERC20("loserchick", "CHICK"), OwnableContract{

    using SafeMath for uint256;

    address public teamAddr;

    address public boardAddr;

    uint256 public dayIndex = 0;
    mapping(uint256 => uint256) public burnAmountPerDay;

    mapping(address => uint256) public addUpSwapCchickCountPerUser;

    uint256 public totalSwapCount = 0;

    uint256 public chickSwapCchickIndex = 0;

    event ChickSwapCchick(address userAddress, uint256 amount, uint256 index);

    constructor(address _teamAddr, address _boardAddr) public {
        teamAddr = _teamAddr;
        boardAddr = _boardAddr;

        _setupDecimals(18);
        _mint(msg.sender, uint256(13333333).mul(1e18));
    }

    function updateBurnAmount(uint256 amount) internal{
        dayIndex = now / 86400;
        burnAmountPerDay[dayIndex] = amount.add(burnAmountPerDay[dayIndex]);
    }

    function getBurnAmountPerDay(uint256 _dayIndex) public view returns(uint256){
        return burnAmountPerDay[_dayIndex];
    }

    function getAddUpSwapCchickCountPerUser(address userAddr) public view returns(uint256){
        return addUpSwapCchickCountPerUser[userAddr];
    }

    function chickSwapCchick(uint256 floatAmount) public{
        require(floatAmount != 0, 'floatAmount cannot be zero');               
        addUpSwapCchickCountPerUser[msg.sender] = floatAmount.add(addUpSwapCchickCountPerUser[msg.sender]);

        uint256 amount = floatAmount.mul(1e18);

        uint256 teamAmount = amount.div(10);  // 10 %
        _transfer(msg.sender, teamAddr, teamAmount);

        uint256 boardAmount = amount.div(5);  // 20 %
        _transfer(msg.sender, boardAddr, boardAmount);
        
        uint256 burnAmount = amount.mul(7).div(10); // 70 %
        _burn(msg.sender, burnAmount);

        updateBurnAmount(burnAmount);

        totalSwapCount = totalSwapCount.add(floatAmount);

        chickSwapCchickIndex++;

        emit ChickSwapCchick(msg.sender, floatAmount, chickSwapCchickIndex);
    }

    function updateTeamAddr(address _teamAddr) public onlyOwner{
        teamAddr = _teamAddr;
    }

    function updateBoardAddr(address _boardAddr) public onlyOwner{
        boardAddr = _boardAddr;
    }
}

// File: contracts\EggToken.sol

pragma solidity 0.6.6;
pragma experimental ABIEncoderV2;





contract EggToken is ERC20("LoserchickEgg", "EGG"), OwnableContract{

    using SafeMath for uint256;

    uint256 public constant MAX_TOTAL_SUPPLY  = 7000000 * 1e18;

    uint256 public dayIndex = 0;

    uint256 public perUserPerDayLimit;
    uint256 public marketPerDayLimit;

    uint256 public addUpClaimCount;
    uint256 public addUpBurnCount;

    address public signer1;
    address public signer2;

    mapping(uint256 => bool) public claimedOrderId;

    mapping(uint256 => mapping(address => uint256)) public userClaimCountPerDay; // Maximum per user per day.
    
    mapping(uint256 => uint256) public marketClaimCountPerDay; // Maximum market per day.

    mapping(uint256 => uint256) public burnAmountPerDay;

    uint256[4] public cChickSwapChickLimit;

    uint256[4] public ceggSwapEggProportion;

    mapping(address => uint256) public addUpSwapCeggCountPerUser;

    ChickToken public chickToken;

    uint256 public claimIndex = 0;

    event Claim(uint256 orderId, uint256 amount, address userAddress, address signer, uint256 index);
    event AleadyClaim(uint256 orderId, uint256 amount, address userAddress);
    event Burn(address userAddress, uint256 amount);

    constructor(address _chickAddr) public {
        chickToken = ChickToken(_chickAddr);

        mint(msg.sender, 1);
        _setupDecimals(18);
        perUserPerDayLimit = 1000;
        marketPerDayLimit = 100000;

        cChickSwapChickLimit[0] = 10;
        cChickSwapChickLimit[1] = 20;
        cChickSwapChickLimit[2] = 100;
        cChickSwapChickLimit[3] = 115792089237316195423570985008687907853269984665640564039457584007913129639935;

        ceggSwapEggProportion[0] = 8; // special case : if  addUpSwapCchickCountPerUser[userAddr] <=10 , the max EGG count is 8 
        
        //  maxEggAmount = chickCount.mul(ceggSwapEggProportion[index]).div(100);
        ceggSwapEggProportion[1] = 60; 
        ceggSwapEggProportion[2] = 50;
        ceggSwapEggProportion[3] = 40;
    }

    function setDev1(address _signer) public onlyOwner {
        signer1 = _signer;
    }

    function setDev2(address _signer) public onlyOwner {
        signer2 = _signer;
    }

    function getUserClaimCountPerDay(uint256 _dayIndex, address userAddr) public view returns(uint256){
        return userClaimCountPerDay[_dayIndex][userAddr];
    }

    function getMarketClaimCountPerDay(uint256 _dayIndex) public view returns(uint256){
        return marketClaimCountPerDay[_dayIndex];
    }

    function getBurnAmountPerDay(uint256 _dayIndex) public view returns(uint256){
        return burnAmountPerDay[_dayIndex];
    }

    function getInCirculationCount() public view returns(uint256){
        return addUpClaimCount.sub(addUpBurnCount);
    }

    function getAwaitMiningCount() public view returns(uint256){
        return MAX_TOTAL_SUPPLY.div(1e18).sub(addUpClaimCount);
    }

    function updateCeggSwapEggProportion(uint256 index, uint256 proportion) public onlyOwner{
        require(index < 4, 'Index cannot be greater than 4 !');
        ceggSwapEggProportion[index] = proportion;
    }

    function updateLimitProportion(uint256 index, uint256 proportion) public onlyOwner{
        require(index < 4, 'Index cannot be greater than 4 !');
        cChickSwapChickLimit[index] = proportion;
    }

    // check to avoid bad base, such as centralized db changed by hacker  
    function checkRestrictions(uint256 userAddUpCchickCount, uint256 userAddUpClaimEggCount) internal view returns(bool){
        require(userAddUpClaimEggCount <= userAddUpCchickCount, 'error: userAddUpClaimEggCount > userAddUpCchickCount');
        uint256 index = 0;
        for(uint256 i = 0; i<cChickSwapChickLimit.length; i++){
            if(userAddUpCchickCount <= cChickSwapChickLimit[i]){
                index = i;
                break;
            }
        }
        uint256 maxEggAmount;
        if(index == 0){
            maxEggAmount = ceggSwapEggProportion[0];
        }else{
            maxEggAmount = userAddUpCchickCount.mul(ceggSwapEggProportion[index]).div(100);
        }

        require(maxEggAmount >= userAddUpClaimEggCount, 'error: maxEggAmount < userAddUpClaimEggCount');
    }

    function batchClaim(uint256[] memory orderId, uint256[] memory floatAmount, bytes[] memory signature) public{
        require(orderId.length == floatAmount.length, "orderId length should eq floatAmount length");
        require(floatAmount.length == signature.length, "floatAmount length should eq signature length");
        updateDay();
        for(uint256 i=0; i<orderId.length; i++){
            claim(orderId[i], floatAmount[i], signature[i]);
        }
    }

    function claim(uint256 orderId, uint256 floatAmount, bytes memory signature) internal{
        if(claimedOrderId[orderId]){
            emit AleadyClaim(orderId, floatAmount, msg.sender);
            return;
        }
        require(userClaimCountPerDay[dayIndex][msg.sender].add(floatAmount) <= perUserPerDayLimit, 'Maximum single day limit exceeded!');
        require(marketClaimCountPerDay[dayIndex].add(floatAmount) <= marketPerDayLimit, 'It has exceeded the maximum market quota!');

        bytes32 hash1 = keccak256(abi.encode(address(this), msg.sender, orderId, floatAmount));

        bytes32 hash2 = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash1));

        address signer = recover(hash2, signature);
        require(signer == signer1 || signer == signer2, "invalid signer");

        uint256 userAddUpcChickCount = chickToken.getAddUpSwapCchickCountPerUser(msg.sender);
        uint256 useAddUpClaimEggCount = floatAmount.add(addUpSwapCeggCountPerUser[msg.sender]);
        checkRestrictions(userAddUpcChickCount, useAddUpClaimEggCount);

        mint(msg.sender, floatAmount);

        claimedOrderId[orderId] = true;
        userClaimCountPerDay[dayIndex][msg.sender] = floatAmount.add(userClaimCountPerDay[dayIndex][msg.sender]);
        marketClaimCountPerDay[dayIndex] = floatAmount.add(marketClaimCountPerDay[dayIndex]);
        addUpSwapCeggCountPerUser[msg.sender] = useAddUpClaimEggCount;

        claimIndex++;

        emit Claim(orderId, floatAmount, msg.sender, signer, claimIndex);
    }

    function mint(address _to, uint256 _amount) internal{
        uint256 intAmount = _amount.mul(1e18);
        uint256 totalSupply = totalSupply();
        require(totalSupply.add(intAmount) <= MAX_TOTAL_SUPPLY,"invalid _amount");
        _mint(_to, intAmount);
    
        addUpClaimCount = addUpClaimCount.add(_amount );
    }

    function burn(uint256 amount) public{
        require(amount != 0, 'burnAmount cannot be zero');
        
        address deadAddress = 0x000000000000000000000000000000000000dEaD;
        transfer(deadAddress, amount.mul(1e18));
        emit Burn(msg.sender, amount);

        addUpBurnCount = addUpBurnCount.add(amount);

        updateDay();
        burnAmountPerDay[dayIndex] = amount.add(burnAmountPerDay[dayIndex]);
    }

    function setPerUserPerDayLimit(uint _perUserPerDayLimit) public onlyAdmin {
        perUserPerDayLimit = _perUserPerDayLimit;
    }

    function setMarketPerDayLimit(uint _marketPerDayLimit) public onlyAdmin {
        marketPerDayLimit = _marketPerDayLimit;
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        // Check the signature length
        if (signature.length != 65) {
            revert("ECDSA: invalid signature length");
        }

        // Divide the signature in r, s and v variables
        bytes32 r;
        bytes32 s;
        uint8 v;

        // ecrecover takes the signature parameters, and the only way to get them
        // currently is to use assembly.
        // solhint-disable-next-line no-inline-assembly
        assembly {
            r := mload(add(signature, 0x20))
            s := mload(add(signature, 0x40))
            v := byte(0, mload(add(signature, 0x60)))
        }

        return recover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover-bytes32-bytes-} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value");
        require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value");

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        require(signer != address(0), "ECDSA: invalid signature");

        return signer;
    }

    function updateDay() internal{
        dayIndex = now / 86400;
    }
}

// File: ..\node_modules\@openzeppelin\contracts\introspection\IERC165.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

// File: @openzeppelin\contracts\introspection\ERC165.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;


/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
abstract contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    constructor () internal {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

// File: ..\node_modules\@openzeppelin\contracts\token\ERC721\IERC721.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;


/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
      * @dev Safely transfers `tokenId` token from `from` to `to`.
      *
      * Requirements:
      *
      * - `from` cannot be the zero address.
      * - `to` cannot be the zero address.
      * - `tokenId` token must exist and be owned by `from`.
      * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
      * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
      *
      * Emits a {Transfer} event.
      */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
}

// File: ..\node_modules\@openzeppelin\contracts\token\ERC721\IERC721Metadata.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;


/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {

    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

// File: ..\node_modules\@openzeppelin\contracts\token\ERC721\IERC721Enumerable.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;


/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

// File: ..\node_modules\@openzeppelin\contracts\token\ERC721\IERC721Receiver.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4);
}


// File: ..\node_modules\@openzeppelin\contracts\utils\Address.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: ..\node_modules\@openzeppelin\contracts\utils\EnumerableSet.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

// File: ..\node_modules\@openzeppelin\contracts\utils\EnumerableMap.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Library for managing an enumerable variant of Solidity's
 * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
 * type.
 *
 * Maps have the following properties:
 *
 * - Entries are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Entries are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableMap for EnumerableMap.UintToAddressMap;
 *
 *     // Declare a set state variable
 *     EnumerableMap.UintToAddressMap private myMap;
 * }
 * ```
 *
 * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are
 * supported.
 */
library EnumerableMap {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Map type with
    // bytes32 keys and values.
    // The Map implementation uses private functions, and user-facing
    // implementations (such as Uint256ToAddressMap) are just wrappers around
    // the underlying Map.
    // This means that we can only create new EnumerableMaps for types that fit
    // in bytes32.

    struct MapEntry {
        bytes32 _key;
        bytes32 _value;
    }

    struct Map {
        // Storage of map keys and values
        MapEntry[] _entries;

        // Position of the entry defined by a key in the `entries` array, plus 1
        // because index 0 means a key is not in the map.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex == 0) { // Equivalent to !contains(map, key)
            map._entries.push(MapEntry({ _key: key, _value: value }));
            // The entry is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            map._indexes[key] = map._entries.length;
            return true;
        } else {
            map._entries[keyIndex - 1]._value = value;
            return false;
        }
    }

    /**
     * @dev Removes a key-value pair from a map. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function _remove(Map storage map, bytes32 key) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex != 0) { // Equivalent to contains(map, key)
            // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one
            // in the array, and then remove the last entry (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = keyIndex - 1;
            uint256 lastIndex = map._entries.length - 1;

            // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            MapEntry storage lastEntry = map._entries[lastIndex];

            // Move the last entry to the index where the entry to delete is
            map._entries[toDeleteIndex] = lastEntry;
            // Update the index for the moved entry
            map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved entry was stored
            map._entries.pop();

            // Delete the index for the deleted slot
            delete map._indexes[key];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function _contains(Map storage map, bytes32 key) private view returns (bool) {
        return map._indexes[key] != 0;
    }

    /**
     * @dev Returns the number of key-value pairs in the map. O(1).
     */
    function _length(Map storage map) private view returns (uint256) {
        return map._entries.length;
    }

   /**
    * @dev Returns the key-value pair stored at position `index` in the map. O(1).
    *
    * Note that there are no guarantees on the ordering of entries inside the
    * array, and it may change when more entries are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) {
        require(map._entries.length > index, "EnumerableMap: index out of bounds");

        MapEntry storage entry = map._entries[index];
        return (entry._key, entry._value);
    }

    /**
     * @dev Tries to returns the value associated with `key`.  O(1).
     * Does not revert if `key` is not in the map.
     */
    function _tryGet(Map storage map, bytes32 key) private view returns (bool, bytes32) {
        uint256 keyIndex = map._indexes[key];
        if (keyIndex == 0) return (false, 0); // Equivalent to contains(map, key)
        return (true, map._entries[keyIndex - 1]._value); // All indexes are 1-based
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function _get(Map storage map, bytes32 key) private view returns (bytes32) {
        uint256 keyIndex = map._indexes[key];
        require(keyIndex != 0, "EnumerableMap: nonexistent key"); // Equivalent to contains(map, key)
        return map._entries[keyIndex - 1]._value; // All indexes are 1-based
    }

    /**
     * @dev Same as {_get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {_tryGet}.
     */
    function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) {
        uint256 keyIndex = map._indexes[key];
        require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key)
        return map._entries[keyIndex - 1]._value; // All indexes are 1-based
    }

    // UintToAddressMap

    struct UintToAddressMap {
        Map _inner;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) {
        return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) {
        return _remove(map._inner, bytes32(key));
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) {
        return _contains(map._inner, bytes32(key));
    }

    /**
     * @dev Returns the number of elements in the map. O(1).
     */
    function length(UintToAddressMap storage map) internal view returns (uint256) {
        return _length(map._inner);
    }

   /**
    * @dev Returns the element stored at position `index` in the set. O(1).
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) {
        (bytes32 key, bytes32 value) = _at(map._inner, index);
        return (uint256(key), address(uint160(uint256(value))));
    }

    /**
     * @dev Tries to returns the value associated with `key`.  O(1).
     * Does not revert if `key` is not in the map.
     *
     * _Available since v3.4._
     */
    function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) {
        (bool success, bytes32 value) = _tryGet(map._inner, bytes32(key));
        return (success, address(uint160(uint256(value))));
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function get(UintToAddressMap storage map, uint256 key) internal view returns (address) {
        return address(uint160(uint256(_get(map._inner, bytes32(key)))));
    }

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryGet}.
     */
    function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) {
        return address(uint160(uint256(_get(map._inner, bytes32(key), errorMessage))));
    }
}

// File: ..\node_modules\@openzeppelin\contracts\utils\Strings.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    /**
     * @dev Converts a `uint256` to its ASCII `string` representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        uint256 index = digits - 1;
        temp = value;
        while (temp != 0) {
            buffer[index--] = bytes1(uint8(48 + temp % 10));
            temp /= 10;
        }
        return string(buffer);
    }
}

// File: @openzeppelin\contracts\token\ERC721\ERC721.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;












/**
 * @title ERC721 Non-Fungible Token Standard basic implementation
 * @dev see https://eips.ethereum.org/EIPS/eip-721
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using SafeMath for uint256;
    using Address for address;
    using EnumerableSet for EnumerableSet.UintSet;
    using EnumerableMap for EnumerableMap.UintToAddressMap;
    using Strings for uint256;

    // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
    // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`
    bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;

    // Mapping from holder address to their (enumerable) set of owned tokens
    mapping (address => EnumerableSet.UintSet) private _holderTokens;

    // Enumerable mapping from token ids to their owners
    EnumerableMap.UintToAddressMap private _tokenOwners;

    // Mapping from token ID to approved address
    mapping (uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping (address => mapping (address => bool)) private _operatorApprovals;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Optional mapping for token URIs
    mapping (uint256 => string) private _tokenURIs;

    // Base URI
    string private _baseURI;

    /*
     *     bytes4(keccak256('balanceOf(address)')) == 0x70a08231
     *     bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e
     *     bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3
     *     bytes4(keccak256('getApproved(uint256)')) == 0x081812fc
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
     *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
     *     bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde
     *
     *     => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^
     *        0xa22cb465 ^ 0xe985e9c5 ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd
     */
    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;

    /*
     *     bytes4(keccak256('name()')) == 0x06fdde03
     *     bytes4(keccak256('symbol()')) == 0x95d89b41
     *     bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd
     *
     *     => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f
     */
    bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;

    /*
     *     bytes4(keccak256('totalSupply()')) == 0x18160ddd
     *     bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59
     *     bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7
     *
     *     => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63
     */
    bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor (string memory name_, string memory symbol_) public {
        _name = name_;
        _symbol = symbol_;

        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721);
        _registerInterface(_INTERFACE_ID_ERC721_METADATA);
        _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _holderTokens[owner].length();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token");
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }
        // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI.
        return string(abi.encodePacked(base, tokenId.toString()));
    }

    /**
    * @dev Returns the base URI set via {_setBaseURI}. This will be
    * automatically added as a prefix in {tokenURI} to each token's URI, or
    * to the token ID if no specific URI is set for that token ID.
    */
    function baseURI() public view virtual returns (string memory) {
        return _baseURI;
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        return _holderTokens[owner].at(index);
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds
        return _tokenOwners.length();
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        (uint256 tokenId, ) = _tokenOwners.at(index);
        return tokenId;
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(_msgSender() == owner || ERC721.isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(address from, address to, uint256 tokenId) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _tokenOwners.contains(tokenId);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || ERC721.isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     d*
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual {
        _mint(to, tokenId);
        require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId); // internal owner

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        // Clear metadata (if any)
        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }

        _holderTokens[owner].remove(tokenId);

        _tokenOwners.remove(tokenId);

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(address from, address to, uint256 tokenId) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); // internal owner
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _holderTokens[from].remove(tokenId);
        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev Internal function to set the base URI for all token IDs. It is
     * automatically added as a prefix to the value returned in {tokenURI},
     * or to the token ID if {tokenURI} is empty.
     */
    function _setBaseURI(string memory baseURI_) internal virtual {
        _baseURI = baseURI_;
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)
        private returns (bool)
    {
        if (!to.isContract()) {
            return true;
        }
        bytes memory returndata = to.functionCall(abi.encodeWithSelector(
            IERC721Receiver(to).onERC721Received.selector,
            _msgSender(),
            from,
            tokenId,
            _data
        ), "ERC721: transfer to non ERC721Receiver implementer");
        bytes4 retval = abi.decode(returndata, (bytes4));
        return (retval == _ERC721_RECEIVED);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId); // internal owner
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { }
}

// File: @openzeppelin\contracts\utils\Counters.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;


/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 * Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath}
 * overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never
 * directly accessed.
 */
library Counters {
    using SafeMath for uint256;

    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        // The {SafeMath} overflow check can be skipped here, see the comment at the top
        counter._value += 1;
    }

    function decrement(Counter storage counter) internal {
        counter._value = counter._value.sub(1);
    }
}


// File: contracts\RandomInterface.sol

pragma solidity 0.6.6;

interface RandomInterface{

    function getRandomNumber() external returns(uint256);
}

// File: contracts\LoserChickNFT.sol

pragma solidity 0.6.6;








contract LoserChickNFT is OwnableContract, ERC721("ShriekingChick", "ShriekingChick"){

    using Counters for Counters.Counter;

    struct ChickAttribute{
        uint256 jacket;
        uint256 trousers;
        uint256 suit;
        uint256 expression;
        uint256 hat;
        uint256 leftHandOrnaments;
        uint256 rightHandOrnaments;
        uint256 shoes;
        uint256 bodyOrnaments;
    }

    uint256 public immutable maxSupply;

    uint256 private seed;

    address private randomAddr;

    bool public isLaborChick;

    // Private fields
    Counters.Counter private _tokenIds;

    uint256[7] public jacket = [101, 102, 103, 104, 105, 106, 107];
    uint256[8] public trousers = [201, 202, 203, 204, 205, 206, 207, 208];
    uint256[3] public suit = [301, 302, 303];
    uint256[10] public expression = [401, 402, 403, 404, 405, 406, 407, 408, 409, 410];
    uint256[7] public hat = [501, 502, 503, 504, 505, 506, 507];
    uint256[11] public leftHandOrnaments = [601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611];
    uint256[11] public rightHandOrnaments = [701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711];
    uint256[10] public shoes = [801, 802, 803, 804, 805, 806, 807, 808, 809, 810];
    uint256[11] public bodyOrnaments = [901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911];
    
    mapping(uint256 => ChickAttribute) public tokenIdChickAttribute;

    // Shrieking Chick、 Lucky Chick、Labor Chick、BOSS Chick、Trump Chick
    constructor(uint256 _maxSupply, address _randomAddr, bool _isLaborChick) public{
       maxSupply = _maxSupply;
       randomAddr = _randomAddr;
       isLaborChick = _isLaborChick;
    }

    function getTokenIdChickAttribute(uint256 tokenId) public view returns(ChickAttribute memory){
        return tokenIdChickAttribute[tokenId];
    }

    function tokenOfOwnerPage(address owner, uint256 pageNumber, uint256 pageSize) external view returns (uint256, uint256[] memory){
        uint256 total = balanceOf(owner);
        uint256 start = pageNumber * pageSize;
        require(start < total, 'pageNumber input error!');
        uint256 end;
        if(start + pageSize > total){
            end = total;
        }else{
            end = start + pageSize;
        }
        uint256[] memory tokenIds = new uint256[](end - start);
        uint256 count = 0;
        for(uint256 i=start; i<end; i++){
            uint256 tokenId = tokenOfOwnerByIndex(owner, i);
            tokenIds[count] = tokenId;
            count++;
        }
        return (total, tokenIds);
    }

    /**
     * @notice
     * @param flag If flag is true, it means shriekingChick, otherwise luckyChick.
     */
    function createNFT(address owner) public onlyAdmin returns(uint256){
        require(totalSupply() < maxSupply, 'The limit has been reached!');

        uint256 tokenId = _mintChick(owner);
            
        ChickAttribute memory chickAttribute;
        RandomInterface randomInterface = RandomInterface(randomAddr);
        uint256 randomNumber = randomInterface.getRandomNumber();
        updateSeed();
        bytes32 random = keccak256(abi.encodePacked(now, randomNumber, seed));
        uint256 expressionIndex = uint256(random) % 10;
        uint256 hatIndex = uint256(random) % 7;
        uint256 leftHandOrnamentsIndex = uint256(random) % 11;
        uint256 rightHandOrnamentsIndex = uint256(random) % 11;
        uint256 shoesIndex = uint256(random) % 10;
        uint256 bodyOrnamentsIndex = uint256(random) % 11;

        chickAttribute.expression = expression[expressionIndex];
        chickAttribute.hat = hat[hatIndex];
        chickAttribute.leftHandOrnaments = leftHandOrnaments[leftHandOrnamentsIndex];
        chickAttribute.rightHandOrnaments = rightHandOrnaments[rightHandOrnamentsIndex];
        chickAttribute.shoes = shoes[shoesIndex];
        chickAttribute.bodyOrnaments = bodyOrnaments[bodyOrnamentsIndex];

        if(isLaborChick){
            uint256 suitIndex = uint256(random) % 3;
            chickAttribute.suit = suit[suitIndex];
        }else{
            uint256 isSuitRandom = uint256(random) % 2;
            if(isSuitRandom == 0){
                uint256 suitIndex = uint256(random) % 3;
                chickAttribute.suit = suit[suitIndex];
            }else if(isSuitRandom == 1){
                uint256 jacketIndex = uint256(random) % 7;
                uint256 trousersIndex = uint256(random) % 8;
                
                chickAttribute.jacket = jacket[jacketIndex];
                chickAttribute.trousers = trousers[trousersIndex];
            }
        }
        tokenIdChickAttribute[tokenId] = chickAttribute;
        return tokenId;
    }

    // Private Methods
    function _mintChick(address owner) private returns(uint256){
        _tokenIds.increment();

        uint256 newItemId = _tokenIds.current();
        _mint(owner, newItemId);
        return newItemId;
    }

    function setBaseURI(string memory newBaseURI) public onlyOwner {
        _setBaseURI(newBaseURI);
    }

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory){
        require(tokenId > 0 && tokenId <= totalSupply(), "URI query for nonexistent token");
        // Fallback to centralised URI
        return string(abi.encodePacked(baseURI(), 'getUrl?name=', name(), '&tokenId=', tokenId.toString()));
    }

    function updateSeed() internal{
        seed = seed + now - 5;
    }

    function updateRandomAddr(address _randomAddr) public onlyOwner{
        randomAddr = _randomAddr;
    }
}

// File: contracts\SmashEggs.sol

pragma solidity 0.6.6;






contract SmashEggs is OwnableContract{

    using SafeMath for uint256;

    uint public constant PRECISION = 1e17;

    uint256 public constant SECTION_SIZE = 2000; // Length of contract initialization

    uint256 public constant LUCKY_CHICK_INDEX = 0;
    uint256 public constant LABOR_CHICK_INDEX = 1;
    uint256 public constant BOSS_CHICK_INDEX = 2;
    uint256 public constant TRUMP_CHICK_INDEX = 3;
    uint256 public constant SHRIEKING_CHICK_INDEX = 4;

    uint256 public aleadyBrokenEggAmount; // Broken eggs amount

    address[] public loserChickAddrArray;

    RandomInterface public randomContract;

    uint256 public winningProbability; // Get NFT Probability

    uint256[] public chickProbability; // Per chick Rate, 0 is luckyChick, 1 is laborChick, 2 is bossChick, 3 is trumpChick.

    EggToken public eggToken;

    mapping(uint256 => bool) public shriekingChickSection;

    mapping(uint256 => bool) public sectionHasCreatedShriekingChick;

    mapping(address => uint256) private loserFailCount;

    uint256 private seed;

    uint256 public activityNFTProbability;

    address public activityNFTAddr;

    bool public smathEggSwitch = false;

    event SmashEggsEvent(address userAddr, uint256 eggCount, uint256 chickCount, address[] chickAddrArray, uint256[] tokenIdArray);
    event ActivityEvent(address userAddr, uint256 NFTConut, address NFTAddr);

    constructor(address _shriekingChickAddr, address _luckyChickAddr, address _laborChickAddr, address _bossChickAddr, address _trumpChickAddr, address _eggTokenAddr, address _randomAddr) public{
        loserChickAddrArray = new address[](5);
        loserChickAddrArray[LUCKY_CHICK_INDEX] = _luckyChickAddr;
        loserChickAddrArray[LABOR_CHICK_INDEX] = _laborChickAddr;
        loserChickAddrArray[BOSS_CHICK_INDEX] = _bossChickAddr;
        loserChickAddrArray[TRUMP_CHICK_INDEX] = _trumpChickAddr;
        loserChickAddrArray[SHRIEKING_CHICK_INDEX] = _shriekingChickAddr;

        randomContract = RandomInterface(_randomAddr);

        eggToken = EggToken(_eggTokenAddr);

        // chickProbability = new uint256[](4);
        // chickProbability[LUCKY_CHICK_INDEX] = 99377250806863640; // luckyChick  0.00154093611776619 * 1e17 = 154093611776619    622749193136360 = 0.00622749193136360 = 0.62274919313636%
        // chickProbability[LABOR_CHICK_INDEX] = 94393076549240510; // laborChick  0.01233288491652890 * 1e17 = 1233288491652890   4984174257623130 = 0.04984174257623130 = 4.98417425762313%
        // chickProbability[BOSS_CHICK_INDEX] = 74766975289411744;  // bossChick   0.04856299874094670 * 1e17 = 4856299874094670   19626101259828766 = 0.19626101259828766 = 19.626101259828766%
        // chickProbability[TRUMP_CHICK_INDEX] = 0;                 // trumpChick  0.18500406569673300 * 1e17 = 18500406569673300  74766975289411741 = 0.74766975289411741 = 74.766975289411741%

        // winningProbability = 24744088547197479; // 154093611776619 + 1233288491652890 + 4856299874094670 + 18500406569673300

        chickProbability = new uint256[](4);
        chickProbability[LUCKY_CHICK_INDEX] = 99926853587174232; // luckyChick  0.000428428571428571 * 1e17 = 42842857142857      0.0007314641282576833
        chickProbability[LABOR_CHICK_INDEX] = 99512243426578954; // laborChick  0.002428428571428570 * 1e17 = 242842857142857     0.004146101605952781
        chickProbability[BOSS_CHICK_INDEX] = 97561046401020877;  // bossChick   0.011428428571428600 * 1e17 = 1142842857142860    0.019511970255580775
        chickProbability[TRUMP_CHICK_INDEX] = 0;                 // trumpChick  0.571428428571429000 * 1e17 = 57142842857142900   0.9756104640102089

        winningProbability = 58571371428571464; // 0.571428428571429000 + 0.011428428571428600 + 0.002428428571428570 + 0.000428428571428571


        initializationSection();
    }

    function initializationSection() private{
        uint8[3] memory sectionArray = [10, 140, 255];
        for(uint256 i=0; i<sectionArray.length; i++){
            uint256 section = sectionArray[i];
            shriekingChickSection[section] = true;
        }
    }

    function updateActivityNFT(address _activityNFTAddr, uint256 _activityNFTProbability) public onlyAdmin{
        activityNFTAddr = _activityNFTAddr;
        activityNFTProbability = _activityNFTProbability;
    }

    function updateShriekingChickSection(uint256 section, bool isShriekingChickSection) public onlyAdmin{
        shriekingChickSection[section] = isShriekingChickSection;
    }

    function updateChickProbability(uint index, uint256 probability) public onlyAdmin{
        require(index < 4, 'Index is wrong!');
        chickProbability[index] = probability;
    }

    function updateTotalProbability(uint256 probability) public onlyAdmin{
        winningProbability = probability;
    }

    function smashEggs(uint256 amount) public{
        require(smathEggSwitch, "The smash switch is off!");
        require(amount <= 10, 'amount should be less than or equal to 10');
        uint256 userEggAmount = eggToken.balanceOf(msg.sender);
        require(amount <= userEggAmount.div(1e18), 'user egg shortage in number!');
        eggToken.transferFrom(msg.sender, address(this), amount.mul(1e18));

        address[] memory chickAddrArray = new address[](10);
        uint256[] memory tokenIds = new uint256[](10);
        uint256 count = 0;
        for(uint256 i=0; i<amount; i++){
            aleadyBrokenEggAmount++;
            if(isWon()){
                (uint256 tokenId, address chickAddr) = getOneChickNFT();
                chickAddrArray[count] = chickAddr;
                tokenIds[count] = tokenId;

                count++;
            }
        }

        if(amount == 10 && count < 5){
            uint256 count2 = uint256(5).sub(count);
            for(uint256 i=0; i<count2; i++){
                (uint256 tokenId, address chickAddr) = getOneChickNFT();
                chickAddrArray[count] = chickAddr;
                tokenIds[count] = tokenId;

                count++;
            }
        }
        eggToken.burn(amount);

        if(count == 0){
            loserFailCount[msg.sender] += amount;
        }else{
            loserFailCount[msg.sender] = 0;
        }

        processActivity();

        emit SmashEggsEvent(msg.sender, amount, count, chickAddrArray, tokenIds);
    }

    /**
     * @notice Won or not
     */
    function isWon() internal returns(bool){
        uint256 random = updateSeed() % PRECISION;
        if(random < winningProbability){
            return true;
        }
    }

    function getOneChickNFT() internal returns(uint256, address){
        uint256 random = updateSeed() % PRECISION;
        uint256 index = TRUMP_CHICK_INDEX;
        uint256 sectionIndex = aleadyBrokenEggAmount.div(SECTION_SIZE);

        if(shouldGenerateShriekingChick(sectionIndex)){
            index = SHRIEKING_CHICK_INDEX;
            sectionHasCreatedShriekingChick[sectionIndex] = true;
        }else{
            uint256 startIndex = shriekingChickSection[sectionIndex]? 1: 0;
            for(uint256 i=startIndex; i<chickProbability.length; i++){
                if(random > chickProbability[i]){
                    index = i;
                    break;
                }
            }
        }

        address chickAddr = loserChickAddrArray[index];
        LoserChickNFT loserChickNFT = LoserChickNFT(chickAddr);

        uint256 tokenId;
        if(loserChickNFT.totalSupply() < loserChickNFT.maxSupply()){
            tokenId = loserChickNFT.createNFT(msg.sender);
        }
        return (tokenId, chickAddr);
    }

    function shouldGenerateShriekingChick(uint256 sectionIndex) internal returns(bool){
        if(!shriekingChickSection[sectionIndex]){
            return false;
        }
        if(sectionHasCreatedShriekingChick[sectionIndex]){
            return false;
        }
        uint256 number = aleadyBrokenEggAmount % SECTION_SIZE + 1;
        uint256 random = updateSeed() % SECTION_SIZE;
        return number > random;
    }

    function updateRandomAddr(address _randomAddr) public onlyOwner{
        randomContract = RandomInterface(_randomAddr);
    }

    function updateSeed() internal returns(uint256 random){
        seed += randomContract.getRandomNumber();        
        random = uint256(keccak256(abi.encodePacked(seed)));
    }

    function getLoserFailCount(address owner) public view returns(uint256){
        return loserFailCount[owner];
    }

    function processActivity() internal{
        if(activityNFTProbability == 0){
            return;
        }
        uint256 NFTCount = 0;
        uint256 random = updateSeed() % PRECISION;
        if(activityNFTProbability > random){
            ERC721 erc721 = ERC721(activityNFTAddr);
            uint256 amount = erc721.balanceOf(address(this));
            if(amount > 0){
                uint256 tokenId = erc721.tokenOfOwnerByIndex(address(this), 0);
                erc721.transferFrom(address(this), address(msg.sender), tokenId);
                NFTCount = 1;
                emit ActivityEvent(msg.sender, NFTCount, activityNFTAddr);
            }
        }        
    }

    function transferActivityNFT(address receiver, uint256 count) external onlyAdmin{
        ERC721 erc721 = ERC721(activityNFTAddr);
        uint256 amount = erc721.balanceOf(address(this));
        require(count <= amount, 'Count input error!');
        for(uint256 i=0; i<count; i++){
            uint256 tokenId = erc721.tokenOfOwnerByIndex(address(this), 0);
            erc721.transferFrom(address(this), receiver, tokenId);
        }
    }

    function updateLoserChickAddr(uint256 index, address loserChickAddr) public onlyOwner{
        loserChickAddrArray[index] = loserChickAddr;
    }

    function updateEggToken(address eggTokenAddr) public onlyOwner{
        eggToken = EggToken(eggTokenAddr);
    }

    function updateSmathEggSwitch(bool _smathEggSwitch) public onlyOwner{
        smathEggSwitch = _smathEggSwitch;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_shriekingChickAddr","type":"address"},{"internalType":"address","name":"_luckyChickAddr","type":"address"},{"internalType":"address","name":"_laborChickAddr","type":"address"},{"internalType":"address","name":"_bossChickAddr","type":"address"},{"internalType":"address","name":"_trumpChickAddr","type":"address"},{"internalType":"address","name":"_eggTokenAddr","type":"address"},{"internalType":"address","name":"_randomAddr","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddr","type":"address"},{"indexed":false,"internalType":"uint256","name":"NFTConut","type":"uint256"},{"indexed":false,"internalType":"address","name":"NFTAddr","type":"address"}],"name":"ActivityEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"NewAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"NewOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldPendingOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newPendingOwner","type":"address"}],"name":"NewPendingOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddr","type":"address"},{"indexed":false,"internalType":"uint256","name":"eggCount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"chickCount","type":"uint256"},{"indexed":false,"internalType":"address[]","name":"chickAddrArray","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"tokenIdArray","type":"uint256[]"}],"name":"SmashEggsEvent","type":"event"},{"inputs":[],"name":"BOSS_CHICK_INDEX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LABOR_CHICK_INDEX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LUCKY_CHICK_INDEX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SECTION_SIZE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SHRIEKING_CHICK_INDEX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRUMP_CHICK_INDEX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"activityNFTAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activityNFTProbability","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aleadyBrokenEggAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"chickProbability","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eggToken","outputs":[{"internalType":"contract EggToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getLoserFailCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"loserChickAddrArray","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":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomContract","outputs":[{"internalType":"contract RandomInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"sectionHasCreatedShriekingChick","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"shriekingChickSection","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"smashEggs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"smathEggSwitch","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"transferActivityNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pendingOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_activityNFTAddr","type":"address"},{"internalType":"uint256","name":"_activityNFTProbability","type":"uint256"}],"name":"updateActivityNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"probability","type":"uint256"}],"name":"updateChickProbability","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"eggTokenAddr","type":"address"}],"name":"updateEggToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"address","name":"loserChickAddr","type":"address"}],"name":"updateLoserChickAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_randomAddr","type":"address"}],"name":"updateRandomAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"section","type":"uint256"},{"internalType":"bool","name":"isShriekingChickSection","type":"bool"}],"name":"updateShriekingChickSection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_smathEggSwitch","type":"bool"}],"name":"updateSmathEggSwitch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"probability","type":"uint256"}],"name":"updateTotalProbability","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"winningProbability","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60806040526000600e60146101000a81548160ff0219169083151502179055503480156200002c57600080fd5b5060405162003c2538038062003c258339818101604052810190620000529190620006ae565b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555033600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600567ffffffffffffffff81118015620000ec57600080fd5b506040519080825280602002602001820160405280156200011c5781602001602082028036833780820191505090505b50600490805190602001906200013492919062000526565b508560046000815481106200014557fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508460046001815481106200019d57fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550836004600281548110620001f557fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508260046003815481106200024d57fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508660048081548110620002a457fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600467ffffffffffffffff811180156200038757600080fd5b50604051908082528060200260200182016040528015620003b75781602001602082028036833780820191505090505b5060079080519060200190620003cf929190620005b5565b5067016302f1a39603586007600081548110620003e857fe5b906000526020600020018190555067016189dbb03e520a60076001815481106200040e57fe5b906000526020600020018190555067015a9b413aa5f3cd60076002815481106200043457fe5b9060005260206000200181905550600060076003815481106200045357fe5b906000526020600020018190555066d0165a1c01e9486006819055506200047f6200048c60201b60201c565b50505050505050620007a9565b6200049662000607565b6040518060600160405280600a60ff168152602001608c60ff16815260200160ff8016815250905060008090505b600381101562000522576000828260038110620004dd57fe5b602002015160ff16905060016009600083815260200190815260200160002060006101000a81548160ff021916908315150217905550508080600101915050620004c4565b5050565b828054828255906000526020600020908101928215620005a2579160200282015b82811115620005a15782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509160200191906001019062000547565b5b509050620005b1919062000629565b5090565b828054828255906000526020600020908101928215620005f4579160200282015b82811115620005f3578251825591602001919060010190620005d6565b5b5090506200060391906200066f565b5090565b6040518060600160405280600390602082028036833780820191505090505090565b6200066c91905b808211156200066857600081816101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555060010162000630565b5090565b90565b6200069491905b808211156200069057600081600090555060010162000676565b5090565b90565b600081519050620006a8816200078f565b92915050565b600080600080600080600060e0888a031215620006ca57600080fd5b6000620006da8a828b0162000697565b9750506020620006ed8a828b0162000697565b9650506040620007008a828b0162000697565b9550506060620007138a828b0162000697565b9450506080620007268a828b0162000697565b93505060a0620007398a828b0162000697565b92505060c06200074c8a828b0162000697565b91505092959891949750929550565b600062000768826200076f565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6200079a816200075b565b8114620007a657600080fd5b50565b61346c80620007b96000396000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c8063aaf5eb6811610125578063da5b5c07116100ad578063ecb15d251161007c578063ecb15d25146105e1578063f2fde38b146105fd578063f45bc0d514610619578063f61820d814610637578063f851a440146106555761021c565b8063da5b5c0714610581578063ddd990cf1461059d578063e30c3978146105b9578063ebbc4965146105d75761021c565b8063b4335d7f116100f4578063b4335d7f146104ef578063b840ff7a1461050d578063b954788214610529578063ccf69e9b14610547578063cf7602cf146105655761021c565b8063aaf5eb6814610467578063acd18b3e14610485578063b1618a50146104a3578063b2567764146104bf5761021c565b8063704b6c02116101a85780638709e010116101775780638709e010146103bf5780638da5cb5b146103ef5780638fafbdaa1461040d57806399119d221461042b578063a4c31360146104495761021c565b8063704b6c021461035f578063715018a61461037b5780637df5e9121461038557806382b362b0146103a35761021c565b806331ac67a5116101ef57806331ac67a5146102a75780634349cf5e146102c557806348ecc620146102f55780634c0562121461031357806362d22e69146103435761021c565b806315f4001614610221578063175eb7031461023d57806320e7205a1461025957806324182acc14610289575b600080fd5b61023b60048036038101906102369190612a1c565b610673565b005b610257600480360381019061025291906129a4565b6107bd565b005b610273600480360381019061026e9190612952565b6108a6565b6040516102809190612f09565b60405180910390f35b6102916108e2565b60405161029e9190613271565b60405180910390f35b6102af6108e8565b6040516102bc91906130c0565b60405180910390f35b6102df60048036038101906102da919061289b565b6108fb565b6040516102ec9190613271565b60405180910390f35b6102fd610944565b60405161030a9190613271565b60405180910390f35b61032d60048036038101906103289190612952565b610949565b60405161033a91906130c0565b60405180910390f35b61035d600480360381019061035891906128c4565b610969565b005b6103796004803603810190610374919061289b565b610c69565b005b610383610d97565b005b61038d611000565b60405161039a9190613271565b60405180910390f35b6103bd60048036038101906103b891906128c4565b611005565b005b6103d960048036038101906103d49190612952565b611138565b6040516103e691906130c0565b60405180910390f35b6103f7611158565b6040516104049190612f09565b60405180910390f35b61041561117d565b6040516104229190613271565b60405180910390f35b610433611182565b60405161044091906130db565b60405180910390f35b6104516111a8565b60405161045e9190613271565b60405180910390f35b61046f6111ae565b60405161047c9190613271565b60405180910390f35b61048d6111ba565b60405161049a9190613271565b60405180910390f35b6104bd60048036038101906104b8919061289b565b6111bf565b005b6104d960048036038101906104d49190612952565b611292565b6040516104e69190613271565b60405180910390f35b6104f76112b3565b6040516105049190613271565b60405180910390f35b61052760048036038101906105229190612900565b6112b9565b005b610531611365565b60405161053e9190612f09565b60405180910390f35b61054f61138b565b60405161055c91906130f6565b60405180910390f35b61057f600480360381019061057a919061289b565b6113b1565b005b61059b60048036038101906105969190612952565b611484565b005b6105b760048036038101906105b291906129e0565b611a81565b005b6105c1611b97565b6040516105ce9190612f09565b60405180910390f35b6105df611bbd565b005b6105fb60048036038101906105f69190612952565b611dcf565b005b6106176004803603810190610612919061289b565b611ec0565b005b610621611fee565b60405161062e9190613271565b60405180910390f35b61063f611ff3565b60405161064c9190613271565b60405180910390f35b61065d611ff9565b60405161066a9190612f09565b60405180910390f35b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061071b57506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b61075a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075190613111565b60405180910390fd5b6004821061079d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161079490613211565b60405180910390fd5b80600783815481106107ab57fe5b90600052602060002001819055505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461084c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084390613251565b60405180910390fd5b806004838154811061085a57fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b600481815481106108b357fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60065481565b600e60149054906101000a900460ff1681565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600281565b60096020528060005260406000206000915054906101000a900460ff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610a1157506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610a50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4790613111565b60405180910390fd5b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610ab29190612f09565b60206040518083038186803b158015610aca57600080fd5b505afa158015610ade573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b02919061297b565b905080831115610b47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3e906131f1565b60405180910390fd5b60008090505b83811015610c625760008373ffffffffffffffffffffffffffffffffffffffff16632f745c593060006040518363ffffffff1660e01b8152600401610b93929190613097565b60206040518083038186803b158015610bab57600080fd5b505afa158015610bbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be3919061297b565b90508373ffffffffffffffffffffffffffffffffffffffff166323b872dd3088846040518463ffffffff1660e01b8152600401610c2293929190613060565b600060405180830381600087803b158015610c3c57600080fd5b505af1158015610c50573d6000803e3d6000fd5b50505050508080600101915050610b4d565b5050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610cf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cef90613251565b60405180910390fd5b7ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682604051610d4b92919061300e565b60405180910390a180600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1d90613251565b60405180910390fd5b7f70aea8d848e8a90fb7661b227dc522eb6395c3dac71b63cb59edd5c9899b23646000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000604051610e79929190613037565b60405180910390a17ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000604051610ed5929190613037565b60405180910390a17fb3d55174552271a4f1aaf36b72f50381e892171636b3fb5447fe00e995e7a37b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000604051610f31929190613037565b60405180910390a160008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600381565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806110ad57506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6110ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e390613111565b60405180910390fd5b81600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600d819055505050565b600a6020528060005260406000206000915054906101000a900460ff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600181565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b67016345785d8a000081565b600081565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461124e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124590613251565b60405180910390fd5b80600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6007818154811061129f57fe5b906000526020600020016000915090505481565b600d5481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611348576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133f90613251565b60405180910390fd5b80600e60146101000a81548160ff02191690831515021790555050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611440576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143790613251565b60405180910390fd5b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600e60149054906101000a900460ff166114d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ca90613171565b60405180910390fd5b600a811115611517576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150e90613191565b60405180910390fd5b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016115749190612f24565b60206040518083038186803b15801561158c57600080fd5b505afa1580156115a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c4919061297b565b90506115e1670de0b6b3a76400008261201f90919063ffffffff16565b821115611623576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161a906131b1565b60405180910390fd5b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd333061167e670de0b6b3a76400008761207590919063ffffffff16565b6040518463ffffffff1660e01b815260040161169c93929190612f3f565b602060405180830381600087803b1580156116b657600080fd5b505af11580156116ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116ee9190612929565b506060600a67ffffffffffffffff8111801561170957600080fd5b506040519080825280602002602001820160405280156117385781602001602082028036833780820191505090505b5090506060600a67ffffffffffffffff8111801561175557600080fd5b506040519080825280602002602001820160405280156117845781602001602082028036833780820191505090505b509050600080905060008090505b85811015611840576003600081548092919060010191905055506117b46120e5565b15611833576000806117c461211c565b91509150808685815181106117d557fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508185858151811061181c57fe5b602002602001018181525050838060010194505050505b8080600101915050611792565b50600a851480156118515750600581105b1561190557600061186c82600561240390919063ffffffff16565b905060008090505b818110156119025760008061188761211c565b915091508087868151811061189857fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050818686815181106118df57fe5b602002602001018181525050848060010195505050508080600101915050611874565b50505b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c68866040518263ffffffff1660e01b81526004016119609190613271565b600060405180830381600087803b15801561197a57600080fd5b505af115801561198e573d6000803e3d6000fd5b5050505060008114156119ed5784600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550611a33565b6000600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b611a3b612453565b7f9236a993e536b46864b1eb8c9f20b2c8b896d275ec98bd0e4bee316d814e80b33386838686604051611a72959493929190612fad565b60405180910390a15050505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611b2957506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611b68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5f90613111565b60405180910390fd5b806009600084815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611c4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4490613231565b60405180910390fd5b7f70aea8d848e8a90fb7661b227dc522eb6395c3dac71b63cb59edd5c9899b23646000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051611cc192919061300e565b60405180910390a1600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008090507fb3d55174552271a4f1aaf36b72f50381e892171636b3fb5447fe00e995e7a37b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682604051611d8392919061300e565b60405180910390a180600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611e7757506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611eb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ead90613111565b60405180910390fd5b8060068190555050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611f4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4690613251565b60405180910390fd5b7fb3d55174552271a4f1aaf36b72f50381e892171636b3fb5447fe00e995e7a37b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682604051611fa292919061300e565b60405180910390a180600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600481565b6107d081565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000808211612063576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205a90613151565b60405180910390fd5b81838161206c57fe5b04905092915050565b60008083141561208857600090506120df565b600082840290508284828161209957fe5b04146120da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d1906131d1565b60405180910390fd5b809150505b92915050565b60008067016345785d8a00006120f96126b6565b8161210057fe5b069050600654811015612117576001915050612119565b505b90565b600080600067016345785d8a00006121326126b6565b8161213957fe5b069050600060039050600061215b6107d060035461201f90919063ffffffff16565b90506121668161279a565b156121a057600491506001600a600083815260200190815260200160002060006101000a81548160ff021916908315150217905550612220565b60006009600083815260200190815260200160002060009054906101000a900460ff166121ce5760006121d1565b60015b60ff16905060008190505b60078054905081101561221d57600781815481106121f657fe5b90600052602060002001548511156122105780935061221d565b80806001019150506121dc565b50505b60006004838154811061222f57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600081905060008173ffffffffffffffffffffffffffffffffffffffff1663d5abeb016040518163ffffffff1660e01b815260040160206040518083038186803b1580156122a957600080fd5b505afa1580156122bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122e1919061297b565b8273ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561232757600080fd5b505afa15801561233b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061235f919061297b565b10156123f3578173ffffffffffffffffffffffffffffffffffffffff166317e5883c336040518263ffffffff1660e01b815260040161239e9190612f24565b602060405180830381600087803b1580156123b857600080fd5b505af11580156123cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123f0919061297b565b90505b8083975097505050505050509091565b600082821115612448576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243f90613131565b60405180910390fd5b818303905092915050565b6000600d541415612463576126b4565b6000809050600067016345785d8a000061247b6126b6565b8161248257fe5b06905080600d5411156126b1576000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016124f19190612f09565b60206040518083038186803b15801561250957600080fd5b505afa15801561251d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612541919061297b565b905060008111156126ae5760008273ffffffffffffffffffffffffffffffffffffffff16632f745c593060006040518363ffffffff1660e01b815260040161258a929190613097565b60206040518083038186803b1580156125a257600080fd5b505afa1580156125b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125da919061297b565b90508273ffffffffffffffffffffffffffffffffffffffff166323b872dd3033846040518463ffffffff1660e01b815260040161261993929190613060565b600060405180830381600087803b15801561263357600080fd5b505af1158015612647573d6000803e3d6000fd5b50505050600194507ff465fa07bd90649488109a0615543190cabe8db0fbed07b39aa8e276369f6bec3386600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040516126a493929190612f76565b60405180910390a1505b50505b50505b565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dbdff2c16040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561272257600080fd5b505af1158015612736573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061275a919061297b565b600c60008282540192505081905550600c5460405160200161277c9190612eee565b6040516020818303038152906040528051906020012060001c905090565b60006009600083815260200190815260200160002060009054906101000a900460ff166127ca576000905061282d565b600a600083815260200190815260200160002060009054906101000a900460ff16156127f9576000905061282d565b600060016107d06003548161280a57fe5b0601905060006107d061281b6126b6565b8161282257fe5b069050808211925050505b919050565b600081359050612841816133f1565b92915050565b60008135905061285681613408565b92915050565b60008151905061286b81613408565b92915050565b6000813590506128808161341f565b92915050565b6000815190506128958161341f565b92915050565b6000602082840312156128ad57600080fd5b60006128bb84828501612832565b91505092915050565b600080604083850312156128d757600080fd5b60006128e585828601612832565b92505060206128f685828601612871565b9150509250929050565b60006020828403121561291257600080fd5b600061292084828501612847565b91505092915050565b60006020828403121561293b57600080fd5b60006129498482850161285c565b91505092915050565b60006020828403121561296457600080fd5b600061297284828501612871565b91505092915050565b60006020828403121561298d57600080fd5b600061299b84828501612886565b91505092915050565b600080604083850312156129b757600080fd5b60006129c585828601612871565b92505060206129d685828601612832565b9150509250929050565b600080604083850312156129f357600080fd5b6000612a0185828601612871565b9250506020612a1285828601612847565b9150509250929050565b60008060408385031215612a2f57600080fd5b6000612a3d85828601612871565b9250506020612a4e85828601612871565b9150509250929050565b6000612a648383612a97565b60208301905092915050565b6000612a7c8383612eb9565b60208301905092915050565b612a9181613357565b82525050565b612aa08161330f565b82525050565b612aaf8161330f565b82525050565b6000612ac0826132ac565b612aca81856132dc565b9350612ad58361328c565b8060005b83811015612b06578151612aed8882612a58565b9750612af8836132c2565b925050600181019050612ad9565b5085935050505092915050565b6000612b1e826132b7565b612b2881856132ed565b9350612b338361329c565b8060005b83811015612b64578151612b4b8882612a70565b9750612b56836132cf565b925050600181019050612b37565b5085935050505092915050565b612b7a81613321565b82525050565b612b8981613369565b82525050565b612b988161338d565b82525050565b612ba7816133b1565b82525050565b6000612bba6009836132fe565b91507f6f6e6c7941646d696e00000000000000000000000000000000000000000000006000830152602082019050919050565b6000612bfa601e836132fe565b91507f536166654d6174683a207375627472616374696f6e206f766572666c6f7700006000830152602082019050919050565b6000612c3a601a836132fe565b91507f536166654d6174683a206469766973696f6e206279207a65726f0000000000006000830152602082019050919050565b6000612c7a6018836132fe565b91507f54686520736d61736820737769746368206973206f66662100000000000000006000830152602082019050919050565b6000612cba6029836132fe565b91507f616d6f756e742073686f756c64206265206c657373207468616e206f7220657160008301527f75616c20746f20313000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612d20601c836132fe565b91507f75736572206567672073686f727461676520696e206e756d62657221000000006000830152602082019050919050565b6000612d606021836132fe565b91507f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60008301527f77000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612dc66012836132fe565b91507f436f756e7420696e707574206572726f722100000000000000000000000000006000830152602082019050919050565b6000612e06600f836132fe565b91507f496e6465782069732077726f6e672100000000000000000000000000000000006000830152602082019050919050565b6000612e466010836132fe565b91507f6f6e6c7950656e64696e674f776e6572000000000000000000000000000000006000830152602082019050919050565b6000612e866009836132fe565b91507f6f6e6c794f776e657200000000000000000000000000000000000000000000006000830152602082019050919050565b612ec28161334d565b82525050565b612ed18161334d565b82525050565b612ee8612ee38261334d565b6133e7565b82525050565b6000612efa8284612ed7565b60208201915081905092915050565b6000602082019050612f1e6000830184612aa6565b92915050565b6000602082019050612f396000830184612a88565b92915050565b6000606082019050612f546000830186612a88565b612f616020830185612aa6565b612f6e6040830184612ec8565b949350505050565b6000606082019050612f8b6000830186612a88565b612f986020830185612ec8565b612fa56040830184612aa6565b949350505050565b600060a082019050612fc26000830188612a88565b612fcf6020830187612ec8565b612fdc6040830186612ec8565b8181036060830152612fee8185612ab5565b905081810360808301526130028184612b13565b90509695505050505050565b60006040820190506130236000830185612aa6565b6130306020830184612aa6565b9392505050565b600060408201905061304c6000830185612aa6565b6130596020830184612a88565b9392505050565b60006060820190506130756000830186612aa6565b6130826020830185612aa6565b61308f6040830184612ec8565b949350505050565b60006040820190506130ac6000830185612aa6565b6130b96020830184612b9e565b9392505050565b60006020820190506130d56000830184612b71565b92915050565b60006020820190506130f06000830184612b80565b92915050565b600060208201905061310b6000830184612b8f565b92915050565b6000602082019050818103600083015261312a81612bad565b9050919050565b6000602082019050818103600083015261314a81612bed565b9050919050565b6000602082019050818103600083015261316a81612c2d565b9050919050565b6000602082019050818103600083015261318a81612c6d565b9050919050565b600060208201905081810360008301526131aa81612cad565b9050919050565b600060208201905081810360008301526131ca81612d13565b9050919050565b600060208201905081810360008301526131ea81612d53565b9050919050565b6000602082019050818103600083015261320a81612db9565b9050919050565b6000602082019050818103600083015261322a81612df9565b9050919050565b6000602082019050818103600083015261324a81612e39565b9050919050565b6000602082019050818103600083015261326a81612e79565b9050919050565b60006020820190506132866000830184612ec8565b92915050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600061331a8261332d565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000613362826133c3565b9050919050565b60006133748261337b565b9050919050565b60006133868261332d565b9050919050565b60006133988261339f565b9050919050565b60006133aa8261332d565b9050919050565b60006133bc8261334d565b9050919050565b60006133ce826133d5565b9050919050565b60006133e08261332d565b9050919050565b6000819050919050565b6133fa8161330f565b811461340557600080fd5b50565b61341181613321565b811461341c57600080fd5b50565b6134288161334d565b811461343357600080fd5b5056fea26469706673582212208e70daa9a9209d6b880aa48e8af94751fc1da085bbe6f7b22bb2590896eb534a64736f6c63430006060033000000000000000000000000e50b1f6e58a0a77b0a41aedc085190808d25d7060000000000000000000000008580a90f6e378db283ddb8af06356a962551e89a000000000000000000000000388eb34b54fe92e944b81a23f8e60146ca8381800000000000000000000000004f1e6318acc9ee33c88f0e3e3578d5ad62e192850000000000000000000000004f17c6514b9ca3abccfdefd12df2dfa195a76dc4000000000000000000000000245e5ddb65efea6522fa913229df1f4957fb2e210000000000000000000000003bc29ee3268856e9f4316628a9fe883b678f6114

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000e50b1f6e58a0a77b0a41aedc085190808d25d7060000000000000000000000008580a90f6e378db283ddb8af06356a962551e89a000000000000000000000000388eb34b54fe92e944b81a23f8e60146ca8381800000000000000000000000004f1e6318acc9ee33c88f0e3e3578d5ad62e192850000000000000000000000004f17c6514b9ca3abccfdefd12df2dfa195a76dc4000000000000000000000000245e5ddb65efea6522fa913229df1f4957fb2e210000000000000000000000003bc29ee3268856e9f4316628a9fe883b678f6114

-----Decoded View---------------
Arg [0] : _shriekingChickAddr (address): 0xe50b1f6e58a0a77b0a41aedc085190808d25d706
Arg [1] : _luckyChickAddr (address): 0x8580a90f6e378db283ddb8af06356a962551e89a
Arg [2] : _laborChickAddr (address): 0x388eb34b54fe92e944b81a23f8e60146ca838180
Arg [3] : _bossChickAddr (address): 0x4f1e6318acc9ee33c88f0e3e3578d5ad62e19285
Arg [4] : _trumpChickAddr (address): 0x4f17c6514b9ca3abccfdefd12df2dfa195a76dc4
Arg [5] : _eggTokenAddr (address): 0x245e5ddb65efea6522fa913229df1f4957fb2e21
Arg [6] : _randomAddr (address): 0x3bc29ee3268856e9f4316628a9fe883b678f6114

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000e50b1f6e58a0a77b0a41aedc085190808d25d706
Arg [1] : 0000000000000000000000008580a90f6e378db283ddb8af06356a962551e89a
Arg [2] : 000000000000000000000000388eb34b54fe92e944b81a23f8e60146ca838180
Arg [3] : 0000000000000000000000004f1e6318acc9ee33c88f0e3e3578d5ad62e19285
Arg [4] : 0000000000000000000000004f17c6514b9ca3abccfdefd12df2dfa195a76dc4
Arg [5] : 000000000000000000000000245e5ddb65efea6522fa913229df1f4957fb2e21
Arg [6] : 0000000000000000000000003bc29ee3268856e9f4316628a9fe883b678f6114


Deployed ByteCode Sourcemap

101421:10238:0:-:0;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;101421:10238:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;106022:185:0;;;;;;;;;;;;;;;;:::i;:::-;;111260:147;;;;;;;;;;;;;;;;:::i;:::-;;101969:36;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;102060:33;;;:::i;:::-;;;;;;;;;;;;;;;;102593:34;;;:::i;:::-;;;;;;;;;;;;;;;;109971:117;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;101741:44;;;:::i;:::-;;;;;;;;;;;;;;;;102286:53;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;110801:451;;;;;;;;;;;;;;;;:::i;:::-;;24080:129;;;;;;;;;;;;;;;;:::i;:::-;;23468:301;;;:::i;:::-;;101792:45;;;:::i;:::-;;;;;;;;;;;;;;;;105617:214;;;;;;;;;;;;;;;;:::i;:::-;;102348:63;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;22564:20;;;:::i;:::-;;;;;;;;;;;;;;;;101689:45;;;:::i;:::-;;;;;;;;;;;;;;;;102253:24;;;:::i;:::-;;;;;;;;;;;;;;;;101902:36;;;:::i;:::-;;;;;;;;;;;;;;;;101502:37;;;:::i;:::-;;;;;;;;;;;;;;;;101637:45;;;:::i;:::-;;;;;;;;;;;;;;;;109645:127;;;;;;;;;;;;;;;;:::i;:::-;;102125:33;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;102508:37;;;:::i;:::-;;;;;;;;;;;;;;;;111537:119;;;;;;;;;;;;;;;;:::i;:::-;;102554:30;;;:::i;:::-;;;;;;;;;;;;;;;;102014:37;;;:::i;:::-;;;;;;;;;;;;;;;;111415:114;;;;;;;;;;;;;;;;:::i;:::-;;106343:1555;;;;;;;;;;;;;;;;:::i;:::-;;105839:175;;;;;;;;;;;;;;;;:::i;:::-;;22591:27;;;:::i;:::-;;;;;;;;;;;;;;;;23781:283;;;:::i;:::-;;106215:120;;;;;;;;;;;;;;;;:::i;:::-;;23286:174;;;;;;;;;;;;;;;;:::i;:::-;;101844:49;;;:::i;:::-;;;;;;;;;;;;;;;;101548:43;;;:::i;:::-;;;;;;;;;;;;;;;;22625:20;;;:::i;:::-;;;;;;;;;;;;;;;;106022:185;23212:5;;;;;;;;;;;23198:19;;:10;:19;;;:42;;;;23235:5;;;;;;;;;;;23221:19;;:10;:19;;;23198:42;23190:63;;;;;;;;;;;;;;;;;;;;;;106130:1:::1;106122:5;:9;106114:37;;;;;;;;;;;;;;;;;;;;;;106188:11;106162:16;106179:5;106162:23;;;;;;;;;;;;;;;:37;;;;106022:185:::0;;:::o;111260:147::-;22995:5;;;;;;;;;;;22981:19;;:10;:19;;;22973:40;;;;;;;;;;;;;;;;;;;;;;111385:14:::1;111356:19;111376:5;111356:26;;;;;;;;;;;;;;;;:43;;;;;;;;;;;;;;;;;;111260:147:::0;;:::o;101969:36::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;102060:33::-;;;;:::o;102593:34::-;;;;;;;;;;;;;:::o;109971:117::-;110033:7;110059:14;:21;110074:5;110059:21;;;;;;;;;;;;;;;;110052:28;;109971:117;;;:::o;101741:44::-;101784:1;101741:44;:::o;102286:53::-;;;;;;;;;;;;;;;;;;;;;;:::o;110801:451::-;23212:5;;;;;;;;;;;23198:19;;:10;:19;;;:42;;;;23235:5;;;;;;;;;;;23221:19;;:10;:19;;;23198:42;23190:63;;;;;;;;;;;;;;;;;;;;;;110892:13:::1;110915:15;;;;;;;;;;;110892:39;;110942:14;110959:6;:16;;;110984:4;110959:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;110959:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;110959:31:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;110959:31:0;;;;;;;;;110942:48;;111018:6;111009:5;:15;;111001:46;;;;;;;;;;;;;;;;;;;;;;111062:9;111072:1:::0;111062:11:::1;;111058:187;111077:5;111075:1;:7;111058:187;;;111103:15;111121:6;:26;;;111156:4;111163:1;111121:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;111121:44:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;111121:44:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;111121:44:0;;;;;;;;;111103:62;;111180:6;:19;;;111208:4;111215:8;111225:7;111180:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;111180:53:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;111180:53:0;;;;111058:187;111084:3;;;;;;;111058:187;;;;23264:1;;110801:451:::0;;:::o;24080:129::-;22995:5;;;;;;;;;;;22981:19;;:10;:19;;;22973:40;;;;;;;;;;;;;;;;;;;;;;24149:25:::1;24158:5;;;;;;;;;;;24165:8;24149:25;;;;;;;;;;;;;;;;24193:8;24185:5;;:16;;;;;;;;;;;;;;;;;;24080:129:::0;:::o;23468:301::-;22995:5;;;;;;;;;;;22981:19;;:10;:19;;;22973:40;;;;;;;;;;;;;;;;;;;;;;23538:27:::1;23547:5;::::0;::::1;;;;;;;;;23562:1;23538:27;;;;;;;;;;;;;;;;23581;23590:5;;;;;;;;;;;23605:1;23581:27;;;;;;;;;;;;;;;;23624:41;23640:12;;;;;;;;;;;23662:1;23624:41;;;;;;;;;;;;;;;;23694:1;23678:5:::0;::::1;:18;;;;;;;;;;;;;;;;;;23730:1;23707:12;;:25;;;;;;;;;;;;;;;;;;23759:1;23743:5;;:18;;;;;;;;;;;;;;;;;;23468:301::o:0;101792:45::-;101836:1;101792:45;:::o;105617:214::-;23212:5;;;;;;;;;;;23198:19;;:10;:19;;;:42;;;;23235:5;;;;;;;;;;;23221:19;;:10;:19;;;23198:42;23190:63;;;;;;;;;;;;;;;;;;;;;;105748:16:::1;105730:15;;:34;;;;;;;;;;;;;;;;;;105800:23;105775:22;:48;;;;105617:214:::0;;:::o;102348:63::-;;;;;;;;;;;;;;;;;;;;;;:::o;22564:20::-;;;;;;;;;;;;;:::o;101689:45::-;101733:1;101689:45;:::o;102253:24::-;;;;;;;;;;;;;:::o;101902:36::-;;;;:::o;101502:37::-;101535:4;101502:37;:::o;101637:45::-;101681:1;101637:45;:::o;109645:127::-;22995:5;;;;;;;;;;;22981:19;;:10;:19;;;22973:40;;;;;;;;;;;;;;;;;;;;;;109752:11:::1;109719:14;;:45;;;;;;;;;;;;;;;;;;109645:127:::0;:::o;102125:33::-;;;;;;;;;;;;;;;;;;;;;;;;;:::o;102508:37::-;;;;:::o;111537:119::-;22995:5;;;;;;;;;;;22981:19;;:10;:19;;;22973:40;;;;;;;;;;;;;;;;;;;;;;111633:15:::1;111616:14;;:32;;;;;;;;;;;;;;;;;;111537:119:::0;:::o;102554:30::-;;;;;;;;;;;;;:::o;102014:37::-;;;;;;;;;;;;;:::o;111415:114::-;22995:5;;;;;;;;;;;22981:19;;:10;:19;;;22973:40;;;;;;;;;;;;;;;;;;;;;;111508:12:::1;111488:8;;:33;;;;;;;;;;;;;;;;;;111415:114:::0;:::o;106343:1555::-;106403:14;;;;;;;;;;;106395:51;;;;;;;;;;;;;;;;;;;;;;106475:2;106465:6;:12;;106457:66;;;;;;;;;;;;;;;;;;;;;;106534:21;106558:8;;;;;;;;;;;:18;;;106577:10;106558:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;106558:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;106558:30:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;106558:30:0;;;;;;;;;106534:54;;106617:23;106635:4;106617:13;:17;;:23;;;;:::i;:::-;106607:6;:33;;106599:74;;;;;;;;;;;;;;;;;;;;;;106684:8;;;;;;;;;;;:21;;;106706:10;106726:4;106733:16;106744:4;106733:6;:10;;:16;;;;:::i;:::-;106684:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;106684:66:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;106684:66:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;106684:66:0;;;;;;;;;;106763:31;106811:2;106797:17;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;106797:17:0;;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;125:4;109:14;101:6;88:42;156:4;148:6;144:17;134:27;;0:165;106797:17:0;;;;106763:51;;106825:25;106867:2;106853:17;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;106853:17:0;;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;125:4;109:14;101:6;88:42;156:4;148:6;144:17;134:27;;0:165;106853:17:0;;;;106825:45;;106881:13;106897:1;106881:17;;106913:9;106923:1;106913:11;;106909:320;106928:6;106926:1;:8;106909:320;;;106955:21;;:23;;;;;;;;;;;;;106996:7;:5;:7::i;:::-;106993:225;;;107024:15;107041:17;107062:16;:14;:16::i;:::-;107023:55;;;;107121:9;107097:14;107112:5;107097:21;;;;;;;;;;;;;:33;;;;;;;;;;;107167:7;107149:8;107158:5;107149:15;;;;;;;;;;;;;:25;;;;;107195:7;;;;;;;106993:225;;;106936:3;;;;;;;106909:320;;;;107254:2;107244:6;:12;:25;;;;;107268:1;107260:5;:9;107244:25;107241:353;;;107285:14;107302:21;107317:5;107310:1;107302:14;;:21;;;;:::i;:::-;107285:38;;107342:9;107352:1;107342:11;;107338:245;107357:6;107355:1;:8;107338:245;;;107389:15;107406:17;107427:16;:14;:16::i;:::-;107388:55;;;;107486:9;107462:14;107477:5;107462:21;;;;;;;;;;;;;:33;;;;;;;;;;;107532:7;107514:8;107523:5;107514:15;;;;;;;;;;;;;:25;;;;;107560:7;;;;;;;107338:245;;107365:3;;;;;;;107338:245;;;;107241:353;;107604:8;;;;;;;;;;;:13;;;107618:6;107604:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;107604:21:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;107604:21:0;;;;107650:1;107641:5;:10;107638:138;;;107697:6;107667:14;:26;107682:10;107667:26;;;;;;;;;;;;;;;;:36;;;;;;;;;;;107638:138;;;107763:1;107734:14;:26;107749:10;107734:26;;;;;;;;;;;;;;;:30;;;;107638:138;107788:17;:15;:17::i;:::-;107823:67;107838:10;107850:6;107858:5;107865:14;107881:8;107823:67;;;;;;;;;;;;;;;;;;;106343:1555;;;;;:::o;105839:175::-;23212:5;;;;;;;;;;;23198:19;;:10;:19;;;:42;;;;23235:5;;;;;;;;;;;23221:19;;:10;:19;;;23198:42;23190:63;;;;;;;;;;;;;;;;;;;;;;105983:23:::1;105950:21;:30;105972:7;105950:30;;;;;;;;;;;;:56;;;;;;;;;;;;;;;;;;105839:175:::0;;:::o;22591:27::-;;;;;;;;;;;;;:::o;23781:283::-;23100:12;;;;;;;;;;;23086:26;;:10;:26;;;23078:54;;;;;;;;;;;;;;;;;;;;;;23844:29:::1;23853:5;::::0;::::1;;;;;;;;;23860:12;;;;;;;;;;;23844:29;;;;;;;;;;;;;;;;23892:12;;;;;;;;;;;23884:5;::::0;:20:::1;;;;;;;;;;;;;;;;;;23917:23;23951:1:::0;23917:36:::1;;23969:46;23985:12;;;;;;;;;;;23999:15;23969:46;;;;;;;;;;;;;;;;24041:15;24026:12;;:30;;;;;;;;;;;;;;;;;;23143:1;23781:283::o:0;106215:120::-;23212:5;;;;;;;;;;;23198:19;;:10;:19;;;:42;;;;23235:5;;;;;;;;;;;23221:19;;:10;:19;;;23198:42;23190:63;;;;;;;;;;;;;;;;;;;;;;106316:11:::1;106295:18;:32;;;;106215:120:::0;:::o;23286:174::-;22995:5;;;;;;;;;;;22981:19;;:10;:19;;;22973:40;;;;;;;;;;;;;;;;;;;;;;23369:44:::1;23385:12;;;;;;;;;;;23399:13;23369:44;;;;;;;;;;;;;;;;23439:13;23424:12;;:28;;;;;;;;;;;;;;;;;;23286:174:::0;:::o;101844:49::-;101892:1;101844:49;:::o;101548:43::-;101587:4;101548:43;:::o;22625:20::-;;;;;;;;;;;;;:::o;4405:153::-;4463:7;4495:1;4491;:5;4483:44;;;;;;;;;;;;;;;;;;;;;;4549:1;4545;:5;;;;;;4538:12;;4405:153;;;;:::o;3707:220::-;3765:7;3794:1;3789;:6;3785:20;;;3804:1;3797:8;;;;3785:20;3816:9;3832:1;3828;:5;3816:17;;3861:1;3856;3852;:5;;;;;;:10;3844:56;;;;;;;;;;;;;;;;;;;;;;3918:1;3911:8;;;3707:220;;;;;:::o;107951:178::-;107985:4;108001:14;101535:4;108018:12;:10;:12::i;:::-;:24;;;;;;108001:41;;108065:18;;108056:6;:27;108053:69;;;108106:4;108099:11;;;;;108053:69;107951:178;;;:::o;108137:1059::-;108180:7;108189;108208:14;101535:4;108225:12;:10;:12::i;:::-;:24;;;;;;108208:41;;108260:13;101836:1;108260:33;;108304:20;108327:39;101587:4;108327:21;;:25;;:39;;;;:::i;:::-;108304:62;;108382:42;108411:12;108382:28;:42::i;:::-;108379:479;;;101892:1;108440:29;;108532:4;108484:31;:45;108516:12;108484:45;;;;;;;;;;;;:52;;;;;;;;;;;;;;;;;;108379:479;;;108567:18;108588:21;:35;108610:12;108588:35;;;;;;;;;;;;;;;;;;;;;:41;;108628:1;108588:41;;;108625:1;108588:41;108567:62;;;;108648:9;108658:10;108648:20;;108644:203;108672:16;:23;;;;108670:1;:25;108644:203;;;108732:16;108749:1;108732:19;;;;;;;;;;;;;;;;108723:6;:28;108720:112;;;108783:1;108775:9;;108807:5;;108720:112;108697:3;;;;;;;108644:203;;;;108379:479;;108870:17;108890:19;108910:5;108890:26;;;;;;;;;;;;;;;;;;;;;;;;;108870:46;;108927:27;108971:9;108927:54;;108994:15;109053:13;:23;;;:25;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;109053:25:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;109053:25:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;109053:25:0;;;;;;;;;109023:13;:25;;;:27;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;109023:27:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;109023:27:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;109023:27:0;;;;;;;;;:55;109020:131;;;109104:13;:23;;;109128:10;109104:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;109104:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;109104:35:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;109104:35:0;;;;;;;;;109094:45;;109020:131;109169:7;109178:9;109161:27;;;;;;;;;;108137:1059;;:::o;3290:158::-;3348:7;3381:1;3376;:6;;3368:49;;;;;;;;;;;;;;;;;;;;;;3439:1;3435;:5;3428:12;;3290:158;;;;:::o;110096:697::-;110171:1;110145:22;;:27;110142:64;;;110188:7;;110142:64;110216:16;110235:1;110216:20;;110247:14;101535:4;110264:12;:10;:12::i;:::-;:24;;;;;;110247:41;;110327:6;110302:22;;:31;110299:479;;;110349:13;110372:15;;;;;;;;;;;110349:39;;110403:14;110420:6;:16;;;110445:4;110420:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;110420:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;110420:31:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;110420:31:0;;;;;;;;;110403:48;;110478:1;110469:6;:10;110466:301;;;110499:15;110517:6;:26;;;110552:4;110559:1;110517:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;110517:44:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;110517:44:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;110517:44:0;;;;;;;;;110499:62;;110580:6;:19;;;110608:4;110623:10;110636:7;110580:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;110580:64:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;110580:64:0;;;;110674:1;110663:12;;110699:52;110713:10;110725:8;110735:15;;;;;;;;;;;110699:52;;;;;;;;;;;;;;;;;110466:301;;110299:479;;;110096:697;;;:::o;109780:183::-;109819:14;109853;;;;;;;;;;;:30;;;:32;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;109853:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;109853:32:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;109853:32:0;;;;;;;;;109845:4;;:40;;;;;;;;;;;109948:4;;109931:22;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;109931:22:0;;;109921:33;;;;;;109913:42;;109904:51;;109780:183;:::o;109204:433::-;109281:4;109301:21;:35;109323:12;109301:35;;;;;;;;;;;;;;;;;;;;;109297:79;;109359:5;109352:12;;;;109297:79;109389:31;:45;109421:12;109389:45;;;;;;;;;;;;;;;;;;;;;109386:88;;;109457:5;109450:12;;;;109386:88;109484:14;109540:1;101587:4;109501:21;;:36;;;;;;:40;109484:57;;109552:14;101587:4;109569:12;:10;:12::i;:::-;:27;;;;;;109552:44;;109623:6;109614;:15;109607:22;;;;109204:433;;;;:::o;5:130:-1:-;;85:6;72:20;63:29;;97:33;124:5;97:33;;;57:78;;;;;142:124;;219:6;206:20;197:29;;231:30;255:5;231:30;;;191:75;;;;;273:128;;354:6;348:13;339:22;;366:30;390:5;366:30;;;333:68;;;;;408:130;;488:6;475:20;466:29;;500:33;527:5;500:33;;;460:78;;;;;545:134;;629:6;623:13;614:22;;641:33;668:5;641:33;;;608:71;;;;;686:241;;790:2;778:9;769:7;765:23;761:32;758:2;;;806:1;803;796:12;758:2;841:1;858:53;903:7;894:6;883:9;879:22;858:53;;;848:63;;820:97;752:175;;;;;934:366;;;1055:2;1043:9;1034:7;1030:23;1026:32;1023:2;;;1071:1;1068;1061:12;1023:2;1106:1;1123:53;1168:7;1159:6;1148:9;1144:22;1123:53;;;1113:63;;1085:97;1213:2;1231:53;1276:7;1267:6;1256:9;1252:22;1231:53;;;1221:63;;1192:98;1017:283;;;;;;1307:235;;1408:2;1396:9;1387:7;1383:23;1379:32;1376:2;;;1424:1;1421;1414:12;1376:2;1459:1;1476:50;1518:7;1509:6;1498:9;1494:22;1476:50;;;1466:60;;1438:94;1370:172;;;;;1549:257;;1661:2;1649:9;1640:7;1636:23;1632:32;1629:2;;;1677:1;1674;1667:12;1629:2;1712:1;1729:61;1782:7;1773:6;1762:9;1758:22;1729:61;;;1719:71;;1691:105;1623:183;;;;;1813:241;;1917:2;1905:9;1896:7;1892:23;1888:32;1885:2;;;1933:1;1930;1923:12;1885:2;1968:1;1985:53;2030:7;2021:6;2010:9;2006:22;1985:53;;;1975:63;;1947:97;1879:175;;;;;2061:263;;2176:2;2164:9;2155:7;2151:23;2147:32;2144:2;;;2192:1;2189;2182:12;2144:2;2227:1;2244:64;2300:7;2291:6;2280:9;2276:22;2244:64;;;2234:74;;2206:108;2138:186;;;;;2331:366;;;2452:2;2440:9;2431:7;2427:23;2423:32;2420:2;;;2468:1;2465;2458:12;2420:2;2503:1;2520:53;2565:7;2556:6;2545:9;2541:22;2520:53;;;2510:63;;2482:97;2610:2;2628:53;2673:7;2664:6;2653:9;2649:22;2628:53;;;2618:63;;2589:98;2414:283;;;;;;2704:360;;;2822:2;2810:9;2801:7;2797:23;2793:32;2790:2;;;2838:1;2835;2828:12;2790:2;2873:1;2890:53;2935:7;2926:6;2915:9;2911:22;2890:53;;;2880:63;;2852:97;2980:2;2998:50;3040:7;3031:6;3020:9;3016:22;2998:50;;;2988:60;;2959:95;2784:280;;;;;;3071:366;;;3192:2;3180:9;3171:7;3167:23;3163:32;3160:2;;;3208:1;3205;3198:12;3160:2;3243:1;3260:53;3305:7;3296:6;3285:9;3281:22;3260:53;;;3250:63;;3222:97;3350:2;3368:53;3413:7;3404:6;3393:9;3389:22;3368:53;;;3358:63;;3329:98;3154:283;;;;;;3445:173;;3532:46;3574:3;3566:6;3532:46;;;3607:4;3602:3;3598:14;3584:28;;3525:93;;;;;3627:173;;3714:46;3756:3;3748:6;3714:46;;;3789:4;3784:3;3780:14;3766:28;;3707:93;;;;;3808:142;3899:45;3938:5;3899:45;;;3894:3;3887:58;3881:69;;;3957:103;4030:24;4048:5;4030:24;;;4025:3;4018:37;4012:48;;;4067:113;4150:24;4168:5;4150:24;;;4145:3;4138:37;4132:48;;;4218:690;;4363:54;4411:5;4363:54;;;4430:86;4509:6;4504:3;4430:86;;;4423:93;;4537:56;4587:5;4537:56;;;4613:7;4641:1;4626:260;4651:6;4648:1;4645:13;4626:260;;;4718:6;4712:13;4739:63;4798:3;4783:13;4739:63;;;4732:70;;4819:60;4872:6;4819:60;;;4809:70;;4683:203;4673:1;4670;4666:9;4661:14;;4626:260;;;4630:14;4899:3;4892:10;;4342:566;;;;;;;;4947:690;;5092:54;5140:5;5092:54;;;5159:86;5238:6;5233:3;5159:86;;;5152:93;;5266:56;5316:5;5266:56;;;5342:7;5370:1;5355:260;5380:6;5377:1;5374:13;5355:260;;;5447:6;5441:13;5468:63;5527:3;5512:13;5468:63;;;5461:70;;5548:60;5601:6;5548:60;;;5538:70;;5412:203;5402:1;5399;5395:9;5390:14;;5355:260;;;5359:14;5628:3;5621:10;;5071:566;;;;;;;;5645:104;5722:21;5737:5;5722:21;;;5717:3;5710:34;5704:45;;;5756:160;5856:54;5904:5;5856:54;;;5851:3;5844:67;5838:78;;;5923:174;6030:61;6085:5;6030:61;;;6025:3;6018:74;6012:85;;;6104:142;6195:45;6234:5;6195:45;;;6190:3;6183:58;6177:69;;;6254:308;;6414:66;6478:1;6473:3;6414:66;;;6407:73;;6513:11;6509:1;6504:3;6500:11;6493:32;6553:2;6548:3;6544:12;6537:19;;6400:162;;;;6571:330;;6731:67;6795:2;6790:3;6731:67;;;6724:74;;6831:32;6827:1;6822:3;6818:11;6811:53;6892:2;6887:3;6883:12;6876:19;;6717:184;;;;6910:326;;7070:67;7134:2;7129:3;7070:67;;;7063:74;;7170:28;7166:1;7161:3;7157:11;7150:49;7227:2;7222:3;7218:12;7211:19;;7056:180;;;;7245:324;;7405:67;7469:2;7464:3;7405:67;;;7398:74;;7505:26;7501:1;7496:3;7492:11;7485:47;7560:2;7555:3;7551:12;7544:19;;7391:178;;;;7578:378;;7738:67;7802:2;7797:3;7738:67;;;7731:74;;7838:34;7834:1;7829:3;7825:11;7818:55;7907:11;7902:2;7897:3;7893:12;7886:33;7947:2;7942:3;7938:12;7931:19;;7724:232;;;;7965:328;;8125:67;8189:2;8184:3;8125:67;;;8118:74;;8225:30;8221:1;8216:3;8212:11;8205:51;8284:2;8279:3;8275:12;8268:19;;8111:182;;;;8302:370;;8462:67;8526:2;8521:3;8462:67;;;8455:74;;8562:34;8558:1;8553:3;8549:11;8542:55;8631:3;8626:2;8621:3;8617:12;8610:25;8663:2;8658:3;8654:12;8647:19;;8448:224;;;;8681:318;;8841:67;8905:2;8900:3;8841:67;;;8834:74;;8941:20;8937:1;8932:3;8928:11;8921:41;8990:2;8985:3;8981:12;8974:19;;8827:172;;;;9008:315;;9168:67;9232:2;9227:3;9168:67;;;9161:74;;9268:17;9264:1;9259:3;9255:11;9248:38;9314:2;9309:3;9305:12;9298:19;;9154:169;;;;9332:316;;9492:67;9556:2;9551:3;9492:67;;;9485:74;;9592:18;9588:1;9583:3;9579:11;9572:39;9639:2;9634:3;9630:12;9623:19;;9478:170;;;;9657:308;;9817:66;9881:1;9876:3;9817:66;;;9810:73;;9916:11;9912:1;9907:3;9903:11;9896:32;9956:2;9951:3;9947:12;9940:19;;9803:162;;;;9973:103;10046:24;10064:5;10046:24;;;10041:3;10034:37;10028:48;;;10083:113;10166:24;10184:5;10166:24;;;10161:3;10154:37;10148:48;;;10203:152;10304:45;10324:24;10342:5;10324:24;;;10304:45;;;10299:3;10292:58;10286:69;;;10362:244;;10481:75;10552:3;10543:6;10481:75;;;10578:2;10573:3;10569:12;10562:19;;10598:3;10591:10;;10469:137;;;;;10613:213;;10731:2;10720:9;10716:18;10708:26;;10745:71;10813:1;10802:9;10798:17;10789:6;10745:71;;;10702:124;;;;;10833:229;;10959:2;10948:9;10944:18;10936:26;;10973:79;11049:1;11038:9;11034:17;11025:6;10973:79;;;10930:132;;;;;11069:451;;11251:2;11240:9;11236:18;11228:26;;11265:79;11341:1;11330:9;11326:17;11317:6;11265:79;;;11355:72;11423:2;11412:9;11408:18;11399:6;11355:72;;;11438;11506:2;11495:9;11491:18;11482:6;11438:72;;;11222:298;;;;;;;11527:451;;11709:2;11698:9;11694:18;11686:26;;11723:79;11799:1;11788:9;11784:17;11775:6;11723:79;;;11813:72;11881:2;11870:9;11866:18;11857:6;11813:72;;;11896;11964:2;11953:9;11949:18;11940:6;11896:72;;;11680:298;;;;;;;11985:971;;12323:3;12312:9;12308:19;12300:27;;12338:79;12414:1;12403:9;12399:17;12390:6;12338:79;;;12428:72;12496:2;12485:9;12481:18;12472:6;12428:72;;;12511;12579:2;12568:9;12564:18;12555:6;12511:72;;;12631:9;12625:4;12621:20;12616:2;12605:9;12601:18;12594:48;12656:108;12759:4;12750:6;12656:108;;;12648:116;;12813:9;12807:4;12803:20;12797:3;12786:9;12782:19;12775:49;12838:108;12941:4;12932:6;12838:108;;;12830:116;;12294:662;;;;;;;;;12963:324;;13109:2;13098:9;13094:18;13086:26;;13123:71;13191:1;13180:9;13176:17;13167:6;13123:71;;;13205:72;13273:2;13262:9;13258:18;13249:6;13205:72;;;13080:207;;;;;;13294:340;;13448:2;13437:9;13433:18;13425:26;;13462:71;13530:1;13519:9;13515:17;13506:6;13462:71;;;13544:80;13620:2;13609:9;13605:18;13596:6;13544:80;;;13419:215;;;;;;13641:435;;13815:2;13804:9;13800:18;13792:26;;13829:71;13897:1;13886:9;13882:17;13873:6;13829:71;;;13911:72;13979:2;13968:9;13964:18;13955:6;13911:72;;;13994;14062:2;14051:9;14047:18;14038:6;13994:72;;;13786:290;;;;;;;14083:340;;14237:2;14226:9;14222:18;14214:26;;14251:71;14319:1;14308:9;14304:17;14295:6;14251:71;;;14333:80;14409:2;14398:9;14394:18;14385:6;14333:80;;;14208:215;;;;;;14430:201;;14542:2;14531:9;14527:18;14519:26;;14556:65;14618:1;14607:9;14603:17;14594:6;14556:65;;;14513:118;;;;;14638:247;;14773:2;14762:9;14758:18;14750:26;;14787:88;14872:1;14861:9;14857:17;14848:6;14787:88;;;14744:141;;;;;14892:261;;15034:2;15023:9;15019:18;15011:26;;15048:95;15140:1;15129:9;15125:17;15116:6;15048:95;;;15005:148;;;;;15160:407;;15351:2;15340:9;15336:18;15328:26;;15401:9;15395:4;15391:20;15387:1;15376:9;15372:17;15365:47;15426:131;15552:4;15426:131;;;15418:139;;15322:245;;;;15574:407;;15765:2;15754:9;15750:18;15742:26;;15815:9;15809:4;15805:20;15801:1;15790:9;15786:17;15779:47;15840:131;15966:4;15840:131;;;15832:139;;15736:245;;;;15988:407;;16179:2;16168:9;16164:18;16156:26;;16229:9;16223:4;16219:20;16215:1;16204:9;16200:17;16193:47;16254:131;16380:4;16254:131;;;16246:139;;16150:245;;;;16402:407;;16593:2;16582:9;16578:18;16570:26;;16643:9;16637:4;16633:20;16629:1;16618:9;16614:17;16607:47;16668:131;16794:4;16668:131;;;16660:139;;16564:245;;;;16816:407;;17007:2;16996:9;16992:18;16984:26;;17057:9;17051:4;17047:20;17043:1;17032:9;17028:17;17021:47;17082:131;17208:4;17082:131;;;17074:139;;16978:245;;;;17230:407;;17421:2;17410:9;17406:18;17398:26;;17471:9;17465:4;17461:20;17457:1;17446:9;17442:17;17435:47;17496:131;17622:4;17496:131;;;17488:139;;17392:245;;;;17644:407;;17835:2;17824:9;17820:18;17812:26;;17885:9;17879:4;17875:20;17871:1;17860:9;17856:17;17849:47;17910:131;18036:4;17910:131;;;17902:139;;17806:245;;;;18058:407;;18249:2;18238:9;18234:18;18226:26;;18299:9;18293:4;18289:20;18285:1;18274:9;18270:17;18263:47;18324:131;18450:4;18324:131;;;18316:139;;18220:245;;;;18472:407;;18663:2;18652:9;18648:18;18640:26;;18713:9;18707:4;18703:20;18699:1;18688:9;18684:17;18677:47;18738:131;18864:4;18738:131;;;18730:139;;18634:245;;;;18886:407;;19077:2;19066:9;19062:18;19054:26;;19127:9;19121:4;19117:20;19113:1;19102:9;19098:17;19091:47;19152:131;19278:4;19152:131;;;19144:139;;19048:245;;;;19300:407;;19491:2;19480:9;19476:18;19468:26;;19541:9;19535:4;19531:20;19527:1;19516:9;19512:17;19505:47;19566:131;19692:4;19566:131;;;19558:139;;19462:245;;;;19714:213;;19832:2;19821:9;19817:18;19809:26;;19846:71;19914:1;19903:9;19899:17;19890:6;19846:71;;;19803:124;;;;;19934:151;;20020:3;20012:11;;20058:4;20053:3;20049:14;20041:22;;20006:79;;;;20092:151;;20178:3;20170:11;;20216:4;20211:3;20207:14;20199:22;;20164:79;;;;20250:137;;20359:5;20353:12;20343:22;;20324:63;;;;20394:137;;20503:5;20497:12;20487:22;;20468:63;;;;20538:108;;20636:4;20631:3;20627:14;20619:22;;20613:33;;;;20653:108;;20751:4;20746:3;20742:14;20734:22;;20728:33;;;;20769:178;;20899:6;20894:3;20887:19;20936:4;20931:3;20927:14;20912:29;;20880:67;;;;;20956:178;;21086:6;21081:3;21074:19;21123:4;21118:3;21114:14;21099:29;;21067:67;;;;;21143:163;;21258:6;21253:3;21246:19;21295:4;21290:3;21286:14;21271:29;;21239:67;;;;;21314:91;;21376:24;21394:5;21376:24;;;21365:35;;21359:46;;;;21412:85;;21485:5;21478:13;21471:21;21460:32;;21454:43;;;;21504:121;;21577:42;21570:5;21566:54;21555:65;;21549:76;;;;21632:72;;21694:5;21683:16;;21677:27;;;;21711:129;;21798:37;21829:5;21798:37;;;21785:50;;21779:61;;;;21847:155;;21943:54;21991:5;21943:54;;;21930:67;;21924:78;;;;22009:125;;22105:24;22123:5;22105:24;;;22092:37;;22086:48;;;;22141:169;;22244:61;22299:5;22244:61;;;22231:74;;22225:85;;;;22317:132;;22420:24;22438:5;22420:24;;;22407:37;;22401:48;;;;22456:116;;22543:24;22561:5;22543:24;;;22530:37;;22524:48;;;;22579:121;;22658:37;22689:5;22658:37;;;22645:50;;22639:61;;;;22707:108;;22786:24;22804:5;22786:24;;;22773:37;;22767:48;;;;22822:74;;22886:5;22875:16;;22869:27;;;;22903:117;22972:24;22990:5;22972:24;;;22965:5;22962:35;22952:2;;23011:1;23008;23001:12;22952:2;22946:74;;23027:111;23093:21;23108:5;23093:21;;;23086:5;23083:32;23073:2;;23129:1;23126;23119:12;23073:2;23067:71;;23145:117;23214:24;23232:5;23214:24;;;23207:5;23204:35;23194:2;;23253:1;23250;23243:12;23194:2;23188:74;

Swarm Source

ipfs://8e70daa9a9209d6b880aa48e8af94751fc1da085bbe6f7b22bb2590896eb534a
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.