Contract 0x096c64d79a85c8fd2e963c4abd9373301d2cf801 2

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xc04f9beb77f576027b4698c08e9831ffcdd6b4b20b1fdbbce413c923608af317Transfer From(pending)2022-11-28 10:13:327 hrs 42 mins ago0x75f84c45ed419735f6177bedb081a92279b8296b IN 0x096c64d79a85c8fd2e963c4abd9373301d2cf8010 BTT(Pending)
0x01cbe29d70049ba0d8295229deb52d5b30f9ae41e0f553f597a6bfc74d70f7b9Withdraw To147775902022-11-28 15:03:532 hrs 52 mins ago0xd005546c72e643351d853c8818750957fe48a491 IN  0x096c64d79a85c8fd2e963c4abd9373301d2cf8010 BTT6.4614
0x7474531e95fb2bbad7f2467847e7ea62d5d7331161a32a1772c7faf7dd1f9c62Approve147691522022-11-28 10:13:537 hrs 42 mins ago0x9c15eb544c220ae3e33418176840f708a58028c1 IN  0x096c64d79a85c8fd2e963c4abd9373301d2cf8010 BTT14.0283
0x6cdb4715656f1ecdf0ccebc99b5b86b17005e21860ebfb1dc5ec3dfacfd3a8c2Withdraw To147021632022-11-26 19:51:071 day 22 hrs ago0x488ef110425d2f080a7f8f58898b9933369765a1 IN  0x096c64d79a85c8fd2e963c4abd9373301d2cf8010 BTT10.965
0x2bdf7d895dfaf7d009548840bee2918053a6e418ea6cbe5035dbfae1afd66c85Withdraw To146641162022-11-25 22:03:132 days 19 hrs ago0x789c652475e7c97b0a83219be57f63a07bb2aeab IN  0x096c64d79a85c8fd2e963c4abd9373301d2cf8010 BTT6.4686
0x6c6e4d13a5f0170ead92cbb5deba5c52302e4afa51cc1d0736fd7e93b8d9e40dWithdraw To146278242022-11-25 1:09:393 days 16 hrs ago0x1fef9673568c30528446cdef3378186db8319a81 IN  0x096c64d79a85c8fd2e963c4abd9373301d2cf8010 BTT10.965
0xb13d2bf49897006f06da5c2781f3ae5d805ba96171948371ac176098b14471deWithdraw To146267542022-11-25 0:32:553 days 17 hrs ago0x1fef9673568c30528446cdef3378186db8319a81 IN  0x096c64d79a85c8fd2e963c4abd9373301d2cf8010 BTT6.465
0x5e4fc6d3aa9ef8b670e75d79c790db91e82fd57823bcf206c08aa65fb7a3a2e5Withdraw To146207682022-11-24 21:07:073 days 20 hrs ago0x789c652475e7c97b0a83219be57f63a07bb2aeab IN  0x096c64d79a85c8fd2e963c4abd9373301d2cf8010 BTT6.4614
0xce245ced0509b9546fb2cc9e33ed397383bf117c09bce37c93e20e773e17930bApprove146191942022-11-24 20:12:593 days 21 hrs ago0x960f53196181a6a76ad20eecca5591215c6d0fa4 IN  0x096c64d79a85c8fd2e963c4abd9373301d2cf8010 BTT19.17201
0x8d53566ecefcfe1737e373046ddd1c87d64d059521a8d4c74156bc3296d541eeWithdraw To146081932022-11-24 13:54:534 days 4 hrs ago0x789c652475e7c97b0a83219be57f63a07bb2aeab IN  0x096c64d79a85c8fd2e963c4abd9373301d2cf8010 BTT6.4614
0xedcafb11e59384647d310fba1ac112250619a94356f3d7b7b769d460a5a62704Withdraw To145632022022-11-23 12:08:195 days 5 hrs ago0xa8deeb1f6170c2daaf20104dbd08b84a7ceb759e IN  0x096c64d79a85c8fd2e963c4abd9373301d2cf8010 BTT6.4686
0xfb94ffe2355e7cb0673a4780b6267a86b4174c7528100c81856216ade0eb06ffWithdraw To144388752022-11-20 12:54:338 days 5 hrs ago0x789c652475e7c97b0a83219be57f63a07bb2aeab IN  0x096c64d79a85c8fd2e963c4abd9373301d2cf8010 BTT6.4686
0x969e95a62b7247fce393d73062c4a6d845221bc2e4f2bea0cbeebfb8e4c3f7ceWithdraw To144129922022-11-19 22:04:518 days 19 hrs ago0x789c652475e7c97b0a83219be57f63a07bb2aeab IN  0x096c64d79a85c8fd2e963c4abd9373301d2cf8010 BTT6.4614
0x264060a2bffdabf03e38e013ccb9167b42c5aa91706523bc6af06c03196129d3Approve143569232022-11-18 13:57:2510 days 3 hrs ago0xf9c8451cebc3ad3fde9a9d3eb3fac2583d3992fd IN  0x096c64d79a85c8fd2e963c4abd9373301d2cf8010 BTT14.0283
0x64bd98b57f7218681ae03299121884b6616fe6c36ee215fa25696c97534df8a2Withdraw To141670872022-11-14 1:09:4114 days 16 hrs ago0x789c652475e7c97b0a83219be57f63a07bb2aeab IN  0x096c64d79a85c8fd2e963c4abd9373301d2cf8010 BTT6.465
0xa6df97eab3c0fe53ee556cf2f3746971995cd363dc1087ab9e0c0a8ea95fc283Withdraw To141645432022-11-13 23:42:1314 days 18 hrs ago0x789c652475e7c97b0a83219be57f63a07bb2aeab IN  0x096c64d79a85c8fd2e963c4abd9373301d2cf8010 BTT6.4614
0xa35433dfe59626f98767e0394f70c26ba9e8c8cb30d25c4850c395a3d7ba6f7eWithdraw To141256102022-11-13 1:23:5515 days 16 hrs ago0x789c652475e7c97b0a83219be57f63a07bb2aeab IN  0x096c64d79a85c8fd2e963c4abd9373301d2cf8010 BTT6.465
0xc95a9aa2e4a8986cf09324c47f18c03c2809a99c926e02d154c4cd279d21db12Withdraw To140520042022-11-11 7:13:4317 days 10 hrs ago0x789c652475e7c97b0a83219be57f63a07bb2aeab IN  0x096c64d79a85c8fd2e963c4abd9373301d2cf8010 BTT6.4686
0x2f3403179b5d79c6f3fb4fc742251f13b4f7c22eed490d3c8bc071ed970e4b15Withdraw To140415772022-11-11 1:15:1717 days 16 hrs ago0x789c652475e7c97b0a83219be57f63a07bb2aeab IN  0x096c64d79a85c8fd2e963c4abd9373301d2cf8010 BTT6.4686
0xd27d677d632074dff93b1916741530604566d4389bde361a77e2de0d7b200d41Withdraw To139818002022-11-09 15:00:2719 days 2 hrs ago0x789c652475e7c97b0a83219be57f63a07bb2aeab IN  0x096c64d79a85c8fd2e963c4abd9373301d2cf8010 BTT6.465
0xac1f09e0a7414eaf9d072a62550fd416e471d8f969d8865645082e304daac04bWithdraw To139375242022-11-08 13:38:2720 days 4 hrs ago0x789c652475e7c97b0a83219be57f63a07bb2aeab IN  0x096c64d79a85c8fd2e963c4abd9373301d2cf8010 BTT6.4614
0x3ff5eec7acbdad06b0325a1a976fe9219fa939f2689e3787c1f7190300c7cf57Withdraw To139155182022-11-08 1:01:5920 days 16 hrs ago0x789c652475e7c97b0a83219be57f63a07bb2aeab IN  0x096c64d79a85c8fd2e963c4abd9373301d2cf8010 BTT6.4614
0x8ed85a096002088f7f7b0831031cfa2222550f351b08ef6d2d3b08389f3d2e06Withdraw To139096352022-11-07 21:39:4920 days 20 hrs ago0x789c652475e7c97b0a83219be57f63a07bb2aeab IN  0x096c64d79a85c8fd2e963c4abd9373301d2cf8010 BTT6.465
0x1e14032cbfcf0497e77f7c17cad256d474df7e2663ffc731f09041e81f91734cWithdraw To138897282022-11-07 10:15:2921 days 7 hrs ago0xa8deeb1f6170c2daaf20104dbd08b84a7ceb759e IN  0x096c64d79a85c8fd2e963c4abd9373301d2cf8010 BTT6.465
0x71a4b6ba97bbf820b9254f72169df8c99e25aa2d14b6f981abf807ed37d1685dWithdraw To138713682022-11-06 23:44:2121 days 18 hrs ago0x789c652475e7c97b0a83219be57f63a07bb2aeab IN  0x096c64d79a85c8fd2e963c4abd9373301d2cf8010 BTT6.465
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
InterCroneChild

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at bttcscan.com on 2022-02-07
*/

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with 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 payable(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;
    }
}




/**
 * @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);
}




/**
 * @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;
    }
}





/**
 * @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_)  {
        _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 { }
}


/**
 * @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));
    }
}



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




/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context {
    using EnumerableSet for EnumerableSet.AddressSet;
    using Address for address;

    struct RoleData {
        EnumerableSet.AddressSet members;
        bytes32 adminRole;
    }

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view returns (bool) {
        return _roles[role].members.contains(account);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view returns (uint256) {
        return _roles[role].members.length();
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view returns (address) {
        return _roles[role].members.at(index);
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant");

        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke");

        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        emit RoleAdminChanged(role, _roles[role].adminRole, adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (_roles[role].members.add(account)) {
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (_roles[role].members.remove(account)) {
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

contract AccessControlMixin is AccessControl {
    string private _revertMsg;
    function _setupContractId(string memory contractId) internal {
        _revertMsg = string(abi.encodePacked(contractId, ": INSUFFICIENT_PERMISSIONS"));
    }

    modifier only(bytes32 role) {
        require(
            hasRole(role, _msgSender()),
            _revertMsg
        );
        _;
    }
}



interface IChildToken {
    event WithdrawTo(address indexed from, address indexed to, uint256 amount);
    function deposit(address user, bytes calldata depositData) external;
}


contract Initializable {
    bool inited = false;

    modifier initializer() {
        require(!inited, "already inited");
        _;
        inited = true;
    }
}


contract EIP712Base is Initializable {
    struct EIP712Domain {
        string name;
        string version;
        address verifyingContract;
        bytes32 salt;
    }

    string constant public ERC712_VERSION = "1";

    bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256(
        bytes(
            "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"
        )
    );
    bytes32 internal domainSeperator;

    // supposed to be called once while initializing.
    // one of the contractsa that inherits this contract follows proxy pattern
    // so it is not possible to do this in a constructor
    function _initializeEIP712(
        string memory name
    )
        internal
        initializer
    {
        _setDomainSeperator(name);
    }

    function _setDomainSeperator(string memory name) internal {
        domainSeperator = keccak256(
            abi.encode(
                EIP712_DOMAIN_TYPEHASH,
                keccak256(bytes(name)),
                keccak256(bytes(ERC712_VERSION)),
                address(this),
                bytes32(getChainId())
            )
        );
    }

    function getDomainSeperator() public view returns (bytes32) {
        return domainSeperator;
    }

    function getChainId() public view returns (uint256) {
        uint256 id;
        assembly {
            id := chainid()
        }
        return id;
    }

    /**
     * Accept message hash and returns hash message in EIP712 compatible form
     * So that it can be used to recover signer from signature signed using EIP712 formatted data
     * https://eips.ethereum.org/EIPS/eip-712
     * "\\x19" makes the encoding deterministic
     * "\\x01" is the version byte to make it compatible to EIP-191
     */
    function toTypedMessageHash(bytes32 messageHash)
        internal
        view
        returns (bytes32)
    {
        return
            keccak256(
                abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash)
            );
    }
}


contract NativeMetaTransaction is EIP712Base {
    using SafeMath for uint256;
    bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256(
        bytes(
            "MetaTransaction(uint256 nonce,address from,bytes functionSignature)"
        )
    );
    event MetaTransactionExecuted(
        address userAddress,
        address payable relayerAddress,
        bytes functionSignature
    );
    mapping(address => uint256) nonces;

    /*
     * Meta transaction structure.
     * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas
     * He should call the desired function directly in that case.
     */
    struct MetaTransaction {
        uint256 nonce;
        address from;
        bytes functionSignature;
    }

    function executeMetaTransaction(
        address userAddress,
        bytes memory functionSignature,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) public payable returns (bytes memory) {
        MetaTransaction memory metaTx = MetaTransaction({
            nonce: nonces[userAddress],
            from: userAddress,
            functionSignature: functionSignature
        });

        require(
            verify(userAddress, metaTx, sigR, sigS, sigV),
            "Signer and signature do not match"
        );

        // increase nonce for user (to avoid re-use)
        nonces[userAddress] = nonces[userAddress].add(1);

        emit MetaTransactionExecuted(
            userAddress,
            payable(msg.sender),
            functionSignature
        );

        // Append userAddress and relayer address at the end to extract it from calling context
        (bool success, bytes memory returnData) = address(this).call(
            abi.encodePacked(functionSignature, userAddress)
        );
        require(success, "Function call not successful");

        return returnData;
    }

    function hashMetaTransaction(MetaTransaction memory metaTx)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encode(
                    META_TRANSACTION_TYPEHASH,
                    metaTx.nonce,
                    metaTx.from,
                    keccak256(metaTx.functionSignature)
                )
            );
    }

    function getNonce(address user) public view returns (uint256 nonce) {
        nonce = nonces[user];
    }

    function verify(
        address signer,
        MetaTransaction memory metaTx,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) internal view returns (bool) {
        require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER");
        return
            signer ==
            ecrecover(
                toTypedMessageHash(hashMetaTransaction(metaTx)),
                sigV,
                sigR,
                sigS
            );
    }
}

abstract contract ContextMixin {
    function msgSender()
        internal
        view
        returns (address payable sender)
    {
        if (msg.sender == address(this)) {
            bytes memory array = msg.data;
            uint256 index = msg.data.length;
            assembly {
                // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
                sender := and(
                    mload(add(array, index)),
                    0xffffffffffffffffffffffffffffffffffffffff
                )
            }
        } else {
            sender =payable( msg.sender);
        }
        return sender;
    }
}








contract InterCroneChild is
    ERC20,
    IChildToken,
    AccessControlMixin,
    NativeMetaTransaction,
    ContextMixin
{
    bytes32 public constant DEPOSITOR_ROLE = keccak256("DEPOSITOR_ROLE");

    constructor()  ERC20("InterCrone", "ICR") {
        _setupContractId("InterCroneChild");
        _setupDecimals(8);
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setupRole(DEPOSITOR_ROLE, 0x5E87D84828eDDD249e7463e9fBD06A49920114E9);
        _setupRole(DEPOSITOR_ROLE, msg.sender);
        _initializeEIP712("InterCrone");
    }

    // This is to support Native meta transactions
    // never use msg.sender directly, use _msgSender() instead
    function _msgSender()
        internal
        override
        view
        returns (address payable sender)
    {
        return ContextMixin.msgSender();
    }

    /**
     * @notice called when token is deposited on root chain
     * @dev Should be callable only by ChildChainManager
     * Should handle deposit by minting the required amount for user
     * Make sure minting is done only by this function
     * @param user user address for whom deposit is being done
     * @param depositData abi encoded amount
     */
    function deposit(address user, bytes calldata depositData)
        external
        override
        only(DEPOSITOR_ROLE)
    {
        uint256 amount = abi.decode(depositData, (uint256));
        _mint(user, amount);
    }

    /**
     * @notice called when user wants to withdraw tokens back to root chain
     * @dev Should burn user's tokens. This transaction will be verified when exiting on root chain
     * @param amount amount of tokens to withdraw
     */
    function withdrawTo(address to, uint256 amount) public {
        _burn(_msgSender(), amount);
        emit WithdrawTo(to, address(0x00), amount);
    }

    function withdraw(uint256 amount) external {
        withdrawTo(_msgSender(), amount);
    }
}

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawTo","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEPOSITOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bytes","name":"depositData","type":"bytes"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526008805460ff191690553480156200001b57600080fd5b506040518060400160405280600a815260200169496e74657243726f6e6560b01b8152506040518060400160405280600381526020016224a1a960e91b81525081600390805190602001906200007392919062000434565b5080516200008990600490602084019062000434565b50506005805460ff191660121790555060408051808201909152600f81526e125b9d195c90dc9bdb9950da1a5b19608a1b6020820152620000ca9062000168565b620000d66008620001a5565b620000ec6000620000e6620001bb565b620001d8565b6200011b60008051602062002471833981519152735e87d84828eddd249e7463e9fbd06a49920114e9620001d8565b620001366000805160206200247183398151915233620001d8565b60408051808201909152600a815269496e74657243726f6e6560b01b60208201526200016290620001e4565b620005cc565b806040516020016200017b9190620004da565b60405160208183030381529060405260079080519060200190620001a192919062000434565b5050565b6005805460ff191660ff92909216919091179055565b6000620001d26200022e60201b62000b801760201c565b90505b90565b620001a182826200028c565b60085460ff1615620002135760405162461bcd60e51b81526004016200020a9062000567565b60405180910390fd5b6200021e8162000307565b506008805460ff19166001179055565b6000333014156200028757600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620001d59050565b503390565b6000828152600660209081526040909120620002b391839062000bdc620003a9821b17901c565b15620001a157620002c3620001bb565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6040518060800160405280604f815260200162002422604f913980516020918201208251838301206040805180820190915260018152603160f81b930192909252907fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc63062000375620003c9565b6040516200038b9594939291906020016200053b565b60408051601f19818403018152919052805160209091012060095550565b6000620003c0836001600160a01b038416620003cd565b90505b92915050565b4690565b6000620003db83836200041c565b6200041357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620003c3565b506000620003c3565b60009081526001919091016020526040902054151590565b82805462000442906200058f565b90600052602060002090601f016020900481019282620004665760008555620004b1565b82601f106200048157805160ff1916838001178555620004b1565b82800160010185558215620004b1579182015b82811115620004b157825182559160200191906001019062000494565b50620004bf929150620004c3565b5090565b5b80821115620004bf5760008155600101620004c4565b60008251815b81811015620004fc5760208186018101518583015201620004e0565b818111156200050b5782828501525b507f3a20494e53554646494349454e545f5045524d495353494f4e53000000000000920191825250601a01919050565b948552602085019390935260408401919091526001600160a01b03166060830152608082015260a00190565b6020808252600e908201526d185b1c9958591e481a5b9a5d195960921b604082015260600190565b600281046001821680620005a457607f821691505b60208210811415620005c657634e487b7160e01b600052602260045260246000fd5b50919050565b611e4680620005dc6000396000f3fe6080604052600436106101b75760003560e01c806336568abe116100ec578063a3b0b5a31161008a578063ca15c87311610064578063ca15c87314610498578063cf2c52cb146104b8578063d547741f146104d8578063dd62ed3e146104f8576101b7565b8063a3b0b5a314610443578063a457c2d714610458578063a9059cbb14610478576101b7565b80639010d07c116100c65780639010d07c146103cc57806391d14854146103f957806395d89b4114610419578063a217fddf1461042e576101b7565b806336568abe1461036c578063395093511461038c57806370a08231146103ac576101b7565b806323b872dd116101595780632e1a7d4d116101335780632e1a7d4d146102f55780632f2ff15d14610315578063313ce567146103355780633408e47014610357576101b7565b806323b872dd14610295578063248a9ca3146102b55780632d0335ab146102d5576101b7565b80630f7e5970116101955780630f7e59701461022757806318160ddd1461023c57806320379ee51461025e578063205c287814610273576101b7565b806306fdde03146101bc578063095ea7b3146101e75780630c53c51c14610214575b600080fd5b3480156101c857600080fd5b506101d1610518565b6040516101de91906117ba565b60405180910390f35b3480156101f357600080fd5b506102076102023660046115fd565b6105ab565b6040516101de9190611764565b6101d1610222366004611526565b6105c9565b34801561023357600080fd5b506101d1610752565b34801561024857600080fd5b5061025161076f565b6040516101de919061176f565b34801561026a57600080fd5b50610251610775565b34801561027f57600080fd5b5061029361028e3660046115fd565b61077b565b005b3480156102a157600080fd5b506102076102b036600461146d565b6107dc565b3480156102c157600080fd5b506102516102d0366004611626565b610863565b3480156102e157600080fd5b506102516102f0366004611421565b61087b565b34801561030157600080fd5b50610293610310366004611626565b610896565b34801561032157600080fd5b5061029361033036600461163e565b6108aa565b34801561034157600080fd5b5061034a6108f2565b6040516101de9190611c58565b34801561036357600080fd5b506102516108fb565b34801561037857600080fd5b5061029361038736600461163e565b6108ff565b34801561039857600080fd5b506102076103a73660046115fd565b610941565b3480156103b857600080fd5b506102516103c7366004611421565b61098f565b3480156103d857600080fd5b506103ec6103e7366004611660565b6109aa565b6040516101de919061171b565b34801561040557600080fd5b5061020761041436600461163e565b6109c9565b34801561042557600080fd5b506101d16109e1565b34801561043a57600080fd5b506102516109f0565b34801561044f57600080fd5b506102516109f5565b34801561046457600080fd5b506102076104733660046115fd565b610a19565b34801561048457600080fd5b506102076104933660046115fd565b610a81565b3480156104a457600080fd5b506102516104b3366004611626565b610a95565b3480156104c457600080fd5b506102936104d33660046114a8565b610aac565b3480156104e457600080fd5b506102936104f336600461163e565b610b1b565b34801561050457600080fd5b5061025161051336600461143b565b610b55565b60606003805461052790611cd1565b80601f016020809104026020016040519081016040528092919081815260200182805461055390611cd1565b80156105a05780601f10610575576101008083540402835291602001916105a0565b820191906000526020600020905b81548152906001019060200180831161058357829003601f168201915b505050505090505b90565b60006105bf6105b8610bf1565b8484610c00565b5060015b92915050565b60408051606081810183526001600160a01b0388166000818152600a6020908152908590205484528301529181018690526106078782878787610cb4565b61062c5760405162461bcd60e51b815260040161062390611ac7565b60405180910390fd5b6001600160a01b0387166000908152600a6020526040902054610650906001610d5a565b6001600160a01b0388166000908152600a60205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b906106a090899033908a9061172f565b60405180910390a1600080306001600160a01b0316888a6040516020016106c89291906116c9565b60408051601f19818403018152908290526106e2916116ad565b6000604051808303816000865af19150503d806000811461071f576040519150601f19603f3d011682016040523d82523d6000602084013e610724565b606091505b5091509150816107465760405162461bcd60e51b81526004016106239061198d565b98975050505050505050565b604051806040016040528060018152602001603160f81b81525081565b60025490565b60095490565b61078c610786610bf1565b82610d89565b60006001600160a01b0316826001600160a01b03167f67b714876402c93362735688659e2283b4a37fb21bab24bc759ca759ae851fd8836040516107d0919061176f565b60405180910390a35050565b60006107e9848484610e5f565b610859846107f5610bf1565b61085485604051806060016040528060288152602001611dc4602891396001600160a01b038a16600090815260016020526040812090610833610bf1565b6001600160a01b031681526020810191909152604001600020549190610f74565b610c00565b5060019392505050565b6000818152600660205260409020600201545b919050565b6001600160a01b03166000908152600a602052604090205490565b6108a76108a1610bf1565b8261077b565b50565b6000828152600660205260409020600201546108c890610414610bf1565b6108e45760405162461bcd60e51b8152600401610623906118fc565b6108ee8282610fab565b5050565b60055460ff1690565b4690565b610907610bf1565b6001600160a01b0316816001600160a01b0316146109375760405162461bcd60e51b815260040161062390611bd2565b6108ee8282611014565b60006105bf61094e610bf1565b84610854856001600061095f610bf1565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610d5a565b6001600160a01b031660009081526020819052604090205490565b60008281526006602052604081206109c2908361107d565b9392505050565b60008281526006602052604081206109c29083611089565b60606004805461052790611cd1565b600081565b7f8f4f2da22e8ac8f11e15f9fc141cddbb5deea8800186560abb6e68c5496619a981565b60006105bf610a26610bf1565b8461085485604051806060016040528060258152602001611dec6025913960016000610a50610bf1565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610f74565b60006105bf610a8e610bf1565b8484610e5f565b60008181526006602052604081206105c39061109e565b7f8f4f2da22e8ac8f11e15f9fc141cddbb5deea8800186560abb6e68c5496619a9610ad981610414610bf1565b600790610af95760405162461bcd60e51b815260040161062391906117cd565b506000610b0883850185611626565b9050610b1485826110a9565b5050505050565b600082815260066020526040902060020154610b3990610414610bf1565b6109375760405162461bcd60e51b815260040161062390611a32565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600033301415610bd757600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506105a89050565b503390565b60006109c2836001600160a01b03841661115d565b6000610bfb610b80565b905090565b6001600160a01b038316610c265760405162461bcd60e51b815260040161062390611b8e565b6001600160a01b038216610c4c5760405162461bcd60e51b81526004016106239061194b565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590610ca790859061176f565b60405180910390a3505050565b60006001600160a01b038616610cdc5760405162461bcd60e51b815260040161062390611a82565b6001610cef610cea876111a7565b611205565b83868660405160008152602001604052604051610d0f949392919061179c565b6020604051602081039080840390855afa158015610d31573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b600080610d678385611c72565b9050838110156109c25760405162461bcd60e51b8152600401610623906119c4565b6001600160a01b038216610daf5760405162461bcd60e51b815260040161062390611b08565b610dbb82600083611221565b610df881604051806060016040528060228152602001611d39602291396001600160a01b0385166000908152602081905260409020549190610f74565b6001600160a01b038316600090815260208190526040902055600254610e1e9082611226565b6002556040516000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906107d090859061176f565b6001600160a01b038316610e855760405162461bcd60e51b815260040161062390611b49565b6001600160a01b038216610eab5760405162461bcd60e51b8152600401610623906118b9565b610eb6838383611221565b610ef381604051806060016040528060268152602001611d9e602691396001600160a01b0386166000908152602081905260409020549190610f74565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610f229082610d5a565b6001600160a01b0380841660008181526020819052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610ca790859061176f565b60008184841115610f985760405162461bcd60e51b815260040161062391906117ba565b50610fa38385611c8a565b949350505050565b6000828152600660205260409020610fc39082610bdc565b156108ee57610fd0610bf1565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260066020526040902061102c9082611252565b156108ee57611039610bf1565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60006109c28383611267565b60006109c2836001600160a01b0384166112c0565b60006105c3826112d8565b6001600160a01b0382166110cf5760405162461bcd60e51b815260040161062390611c21565b6110db60008383611221565b6002546110e89082610d5a565b6002556001600160a01b03821660009081526020819052604090205461110e9082610d5a565b6001600160a01b0383166000818152602081905260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906107d090859061176f565b600061116983836112c0565b61119f575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556105c3565b5060006105c3565b6000604051806080016040528060438152602001611d5b60439139805160209182012083518483015160408087015180519086012090516111e89501611778565b604051602081830303815290604052805190602001209050919050565b600061120f610775565b826040516020016111e8929190611700565b505050565b6000828211156112485760405162461bcd60e51b8152600401610623906119fb565b6109c28284611c8a565b60006109c2836001600160a01b0384166112dc565b8154600090821061128a5760405162461bcd60e51b815260040161062390611877565b8260000182815481106112ad57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b600081815260018301602052604081205480156113ef576000611300600183611c8a565b855490915060009061131490600190611c8a565b9050600086600001828154811061133b57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508087600001848154811061136c57634e487b7160e01b600052603260045260246000fd5b600091825260209091200155611383836001611c72565b600082815260018901602052604090205586548790806113b357634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506105c3565b60009150506105c3565b80356001600160a01b038116811461087657600080fd5b803560ff8116811461087657600080fd5b600060208284031215611432578081fd5b6109c2826113f9565b6000806040838503121561144d578081fd5b611456836113f9565b9150611464602084016113f9565b90509250929050565b600080600060608486031215611481578081fd5b61148a846113f9565b9250611498602085016113f9565b9150604084013590509250925092565b6000806000604084860312156114bc578283fd5b6114c5846113f9565b9250602084013567ffffffffffffffff808211156114e1578384fd5b818601915086601f8301126114f4578384fd5b813581811115611502578485fd5b876020828501011115611513578485fd5b6020830194508093505050509250925092565b600080600080600060a0868803121561153d578081fd5b611546866113f9565b945060208087013567ffffffffffffffff80821115611563578384fd5b818901915089601f830112611576578384fd5b81358181111561158857611588611d22565b604051601f8201601f19168101850183811182821017156115ab576115ab611d22565b60405281815283820185018c10156115c1578586fd5b8185850186830137908101909301849052509094505060408601359250606086013591506115f160808701611410565b90509295509295909350565b6000806040838503121561160f578182fd5b611618836113f9565b946020939093013593505050565b600060208284031215611637578081fd5b5035919050565b60008060408385031215611650578182fd5b82359150611464602084016113f9565b60008060408385031215611672578182fd5b50508035926020909101359150565b60008151808452611699816020860160208601611ca1565b601f01601f19169290920160200192915050565b600082516116bf818460208701611ca1565b9190910192915050565b600083516116db818460208801611ca1565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b61190160f01b81526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b6001600160a01b0384811682528316602082015260606040820181905260009061175b90830184611681565b95945050505050565b901515815260200190565b90815260200190565b93845260208401929092526001600160a01b03166040830152606082015260800190565b93845260ff9290921660208401526040830152606082015260800190565b6000602082526109c26020830184611681565b60006020808352818454836002820490506001808316806117ef57607f831692505b85831081141561180d57634e487b7160e01b87526022600452602487fd5b61181983878a0161176f565b81801561182d576001811461183e57611868565b60ff19861682528782019650611868565b6118478b611c66565b895b8681101561186257815484820152908501908901611849565b83019750505b50949998505050505050505050565b60208082526022908201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602f908201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60408201526e0818591b5a5b881d1bc819dc985b9d608a1b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b6020808252601c908201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b60208082526030908201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60408201526f2061646d696e20746f207265766f6b6560801b606082015260800190565b60208082526025908201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360408201526424a3a722a960d91b606082015260800190565b60208082526021908201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636040820152600d60fb1b606082015260800190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252602f908201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560408201526e103937b632b9903337b91039b2b63360891b606082015260800190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b60ff91909116815260200190565b60009081526020902090565b60008219821115611c8557611c85611d0c565b500190565b600082821015611c9c57611c9c611d0c565b500390565b60005b83811015611cbc578181015183820152602001611ca4565b83811115611ccb576000848401525b50505050565b600281046001821680611ce557607f821691505b60208210811415611d0657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfe45524332303a206275726e20616d6f756e7420657863656564732062616c616e63654d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e61747572652945524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220ebab3611a48cafecac65ddc4b3e883b2420acd4d973073195d19c41750f798b064736f6c63430008000033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c74298f4f2da22e8ac8f11e15f9fc141cddbb5deea8800186560abb6e68c5496619a9

Deployed ByteCode Sourcemap

53597:1983:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13185:91;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;15331:169;;;;;;;;;;-1:-1:-1;15331:169:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;50703:1151::-;;;;;;:::i;:::-;;:::i;47965:43::-;;;;;;;;;;;;;:::i;14284:108::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;48975:101::-;;;;;;;;;;;;;:::i;55321:154::-;;;;;;;;;;-1:-1:-1;55321:154:0;;;;;:::i;:::-;;:::i;:::-;;15982:321;;;;;;;;;;-1:-1:-1;15982:321:0;;;;;:::i;:::-;;:::i;43784:114::-;;;;;;;;;;-1:-1:-1;43784:114:0;;;;;:::i;:::-;;:::i;52280:107::-;;;;;;;;;;-1:-1:-1;52280:107:0;;;;;:::i;:::-;;:::i;55483:94::-;;;;;;;;;;-1:-1:-1;55483:94:0;;;;;:::i;:::-;;:::i;44160:227::-;;;;;;;;;;-1:-1:-1;44160:227:0;;;;;:::i;:::-;;:::i;14128:91::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;49084:161::-;;;;;;;;;;;;;:::i;45369:209::-;;;;;;;;;;-1:-1:-1;45369:209:0;;;;;:::i;:::-;;:::i;16712:218::-;;;;;;;;;;-1:-1:-1;16712:218:0;;;;;:::i;:::-;;:::i;14455:127::-;;;;;;;;;;-1:-1:-1;14455:127:0;;;;;:::i;:::-;;:::i;43457:138::-;;;;;;;;;;-1:-1:-1;43457:138:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;42418:139::-;;;;;;;;;;-1:-1:-1;42418:139:0;;;;;:::i;:::-;;:::i;13395:95::-;;;;;;;;;;;;;:::i;41163:49::-;;;;;;;;;;;;;:::i;53734:68::-;;;;;;;;;;;;;:::i;17433:269::-;;;;;;;;;;-1:-1:-1;17433:269:0;;;;;:::i;:::-;;:::i;14795:175::-;;;;;;;;;;-1:-1:-1;14795:175:0;;;;;:::i;:::-;;:::i;42731:127::-;;;;;;;;;;-1:-1:-1;42731:127:0;;;;;:::i;:::-;;:::i;54836:230::-;;;;;;;;;;-1:-1:-1;54836:230:0;;;;;:::i;:::-;;:::i;44632:::-;;;;;;;;;;-1:-1:-1;44632:230:0;;;;;:::i;:::-;;:::i;15033:151::-;;;;;;;;;;-1:-1:-1;15033:151:0;;;;;:::i;:::-;;:::i;13185:91::-;13230:13;13263:5;13256:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13185:91;;:::o;15331:169::-;15414:4;15431:39;15440:12;:10;:12::i;:::-;15454:7;15463:6;15431:8;:39::i;:::-;-1:-1:-1;15488:4:0;15331:169;;;;;:::o;50703:1151::-;50961:152;;;50904:12;50961:152;;;;;-1:-1:-1;;;;;50999:19:0;;50929:29;50999:19;;;:6;:19;;;;;;;;;50961:152;;;;;;;;;;;51148:45;51006:11;50961:152;51176:4;51182;51188;51148:6;:45::i;:::-;51126:128;;;;-1:-1:-1;;;51126:128:0;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;;;;;51343:19:0;;;;;;:6;:19;;;;;;:26;;51367:1;51343:23;:26::i;:::-;-1:-1:-1;;;;;51321:19:0;;;;;;:6;:19;;;;;;;:48;;;;51387:126;;;;;51328:11;;51459:10;;51485:17;;51387:126;:::i;:::-;;;;;;;;51624:12;51638:23;51673:4;-1:-1:-1;;;;;51665:18:0;51715:17;51734:11;51698:48;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;51698:48:0;;;;;;;;;;51665:92;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51623:134;;;;51776:7;51768:48;;;;-1:-1:-1;;;51768:48:0;;;;;;;:::i;:::-;51836:10;50703:1151;-1:-1:-1;;;;;;;;50703:1151:0:o;47965:43::-;;;;;;;;;;;;;;-1:-1:-1;;;47965:43:0;;;;:::o;14284:108::-;14372:12;;14284:108;:::o;48975:101::-;49053:15;;48975:101;:::o;55321:154::-;55387:27;55393:12;:10;:12::i;:::-;55407:6;55387:5;:27::i;:::-;55453:4;-1:-1:-1;;;;;55430:37:0;55441:2;-1:-1:-1;;;;;55430:37:0;;55460:6;55430:37;;;;;;:::i;:::-;;;;;;;;55321:154;;:::o;15982:321::-;16088:4;16105:36;16115:6;16123:9;16134:6;16105:9;:36::i;:::-;16152:121;16161:6;16169:12;:10;:12::i;:::-;16183:89;16221:6;16183:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16183:19:0;;;;;;:11;:19;;;;;;16203:12;:10;:12::i;:::-;-1:-1:-1;;;;;16183:33:0;;;;;;;;;;;;-1:-1:-1;16183:33:0;;;:89;:37;:89::i;:::-;16152:8;:121::i;:::-;-1:-1:-1;16291:4:0;15982:321;;;;;:::o;43784:114::-;43841:7;43868:12;;;:6;:12;;;;;:22;;;43784:114;;;;:::o;52280:107::-;-1:-1:-1;;;;;52367:12:0;52333:13;52367:12;;;:6;:12;;;;;;;52280:107::o;55483:94::-;55537:32;55548:12;:10;:12::i;:::-;55562:6;55537:10;:32::i;:::-;55483:94;:::o;44160:227::-;44252:12;;;;:6;:12;;;;;:22;;;44244:45;;44276:12;:10;:12::i;44244:45::-;44236:105;;;;-1:-1:-1;;;44236:105:0;;;;;;;:::i;:::-;44354:25;44365:4;44371:7;44354:10;:25::i;:::-;44160:227;;:::o;14128:91::-;14202:9;;;;14128:91;:::o;49084:161::-;49198:9;49084:161;:::o;45369:209::-;45467:12;:10;:12::i;:::-;-1:-1:-1;;;;;45456:23:0;:7;-1:-1:-1;;;;;45456:23:0;;45448:83;;;;-1:-1:-1;;;45448:83:0;;;;;;;:::i;:::-;45544:26;45556:4;45562:7;45544:11;:26::i;16712:218::-;16800:4;16817:83;16826:12;:10;:12::i;:::-;16840:7;16849:50;16888:10;16849:11;:25;16861:12;:10;:12::i;:::-;-1:-1:-1;;;;;16849:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;16849:25:0;;;:34;;;;;;;;;;;:38;:50::i;14455:127::-;-1:-1:-1;;;;;14556:18:0;14529:7;14556:18;;;;;;;;;;;;14455:127::o;43457:138::-;43530:7;43557:12;;;:6;:12;;;;;:30;;43581:5;43557:23;:30::i;:::-;43550:37;43457:138;-1:-1:-1;;;43457:138:0:o;42418:139::-;42487:4;42511:12;;;:6;:12;;;;;:38;;42541:7;42511:29;:38::i;13395:95::-;13442:13;13475:7;13468:14;;;;;:::i;41163:49::-;41208:4;41163:49;:::o;53734:68::-;53775:27;53734:68;:::o;17433:269::-;17526:4;17543:129;17552:12;:10;:12::i;:::-;17566:7;17575:96;17614:15;17575:96;;;;;;;;;;;;;;;;;:11;:25;17587:12;:10;:12::i;:::-;-1:-1:-1;;;;;17575:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;17575:25:0;;;:34;;;;;;;;;;;:96;:38;:96::i;14795:175::-;14881:4;14898:42;14908:12;:10;:12::i;:::-;14922:9;14933:6;14898:9;:42::i;42731:127::-;42794:7;42821:12;;;:6;:12;;;;;:29;;:27;:29::i;54836:230::-;53775:27;47319;47327:4;47333:12;:10;:12::i;47319:27::-;47361:10;47297:85;;;;;-1:-1:-1;;;47297:85:0;;;;;;;;:::i;:::-;-1:-1:-1;54977:14:0::1;54994:34;::::0;;::::1;55005:11:::0;54994:34:::1;:::i;:::-;54977:51;;55039:19;55045:4;55051:6;55039:5;:19::i;:::-;47393:1;54836:230:::0;;;;:::o;44632:::-;44725:12;;;;:6;:12;;;;;:22;;;44717:45;;44749:12;:10;:12::i;44717:45::-;44709:106;;;;-1:-1:-1;;;44709:106:0;;;;;;;:::i;15033:151::-;-1:-1:-1;;;;;15149:18:0;;;15122:7;15149:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;15033:151::o;52926:650::-;52997:22;53041:10;53063:4;53041:27;53037:508;;;53085:18;53106:8;;53085:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;53145:8:0;53356:17;53350:24;-1:-1:-1;;;;;53324:134:0;;-1:-1:-1;53184:289:0;;-1:-1:-1;53184:289:0;;-1:-1:-1;53522:10:0;52926:650;:::o;28619:152::-;28689:4;28713:50;28718:3;-1:-1:-1;;;;;28738:23:0;;28713:4;:50::i;54286:169::-;54376:22;54423:24;:22;:24::i;:::-;54416:31;;54286:169;:::o;20580:346::-;-1:-1:-1;;;;;20682:19:0;;20674:68;;;;-1:-1:-1;;;20674:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;20761:21:0;;20753:68;;;;-1:-1:-1;;;20753:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;20834:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;;:36;;;20886:32;;;;;20864:6;;20886:32;:::i;:::-;;;;;;;;20580:346;;;:::o;52395:486::-;52573:4;-1:-1:-1;;;;;52598:20:0;;52590:70;;;;-1:-1:-1;;;52590:70:0;;;;;;;:::i;:::-;52714:159;52742:47;52761:27;52781:6;52761:19;:27::i;:::-;52742:18;:47::i;:::-;52808:4;52831;52854;52714:159;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;52691:182:0;:6;-1:-1:-1;;;;;52691:182:0;;52671:202;;52395:486;;;;;;;:::o;6451:179::-;6509:7;;6541:5;6545:1;6541;:5;:::i;:::-;6529:17;;6570:1;6565;:6;;6557:46;;;;-1:-1:-1;;;6557:46:0;;;;;;;:::i;19724:418::-;-1:-1:-1;;;;;19808:21:0;;19800:67;;;;-1:-1:-1;;;19800:67:0;;;;;;;:::i;:::-;19880:49;19901:7;19918:1;19922:6;19880:20;:49::i;:::-;19963:68;19986:6;19963:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19963:18:0;;:9;:18;;;;;;;;;;;;:68;:22;:68::i;:::-;-1:-1:-1;;;;;19942:18:0;;:9;:18;;;;;;;;;;:89;20057:12;;:24;;20074:6;20057:16;:24::i;:::-;20042:12;:39;20097:37;;20123:1;;-1:-1:-1;;;;;20097:37:0;;;;;;;20127:6;;20097:37;:::i;18192:539::-;-1:-1:-1;;;;;18298:20:0;;18290:70;;;;-1:-1:-1;;;18290:70:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;18379:23:0;;18371:71;;;;-1:-1:-1;;;18371:71:0;;;;;;;:::i;:::-;18455:47;18476:6;18484:9;18495:6;18455:20;:47::i;:::-;18535:71;18557:6;18535:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18535:17:0;;:9;:17;;;;;;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;18515:17:0;;;:9;:17;;;;;;;;;;;:91;;;;18640:20;;;;;;;:32;;18665:6;18640:24;:32::i;:::-;-1:-1:-1;;;;;18617:20:0;;;:9;:20;;;;;;;;;;;;:55;;;;18688:35;;;;;;;;;;18716:6;;18688:35;:::i;9278:166::-;9364:7;9400:12;9392:6;;;;9384:29;;;;-1:-1:-1;;;9384:29:0;;;;;;;;:::i;:::-;-1:-1:-1;9431:5:0;9435:1;9431;:5;:::i;:::-;9424:12;9278:166;-1:-1:-1;;;;9278:166:0:o;46612:188::-;46686:12;;;;:6;:12;;;;;:33;;46711:7;46686:24;:33::i;:::-;46682:111;;;46768:12;:10;:12::i;:::-;-1:-1:-1;;;;;46741:40:0;46759:7;-1:-1:-1;;;;;46741:40:0;46753:4;46741:40;;;;;;;;;;46612:188;;:::o;46808:192::-;46883:12;;;;:6;:12;;;;;:36;;46911:7;46883:27;:36::i;:::-;46879:114;;;46968:12;:10;:12::i;:::-;-1:-1:-1;;;;;46941:40:0;46959:7;-1:-1:-1;;;;;46941:40:0;46953:4;46941:40;;;;;;;;;;46808:192;;:::o;29905:158::-;29979:7;30030:22;30034:3;30046:5;30030:3;:22::i;29191:167::-;29271:4;29295:55;29305:3;-1:-1:-1;;;;;29325:23:0;;29295:9;:55::i;29444:117::-;29507:7;29534:19;29542:3;29534:7;:19::i;19013:378::-;-1:-1:-1;;;;;19097:21:0;;19089:65;;;;-1:-1:-1;;;19089:65:0;;;;;;;:::i;:::-;19167:49;19196:1;19200:7;19209:6;19167:20;:49::i;:::-;19244:12;;:24;;19261:6;19244:16;:24::i;:::-;19229:12;:39;-1:-1:-1;;;;;19300:18:0;;:9;:18;;;;;;;;;;;:30;;19323:6;19300:22;:30::i;:::-;-1:-1:-1;;;;;19279:18:0;;:9;:18;;;;;;;;;;;:51;;;;19346:37;;19279:18;;:9;19346:37;;;;19376:6;;19346:37;:::i;23683:414::-;23746:4;23768:21;23778:3;23783:5;23768:9;:21::i;:::-;23763:327;;-1:-1:-1;23806:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;23989:18;;23967:19;;;:12;;;:19;;;;;;:40;;;;24022:11;;23763:327;-1:-1:-1;24073:5:0;24066:12;;51862:410;51972:7;50039:100;;;;;;;;;;;;;;;;;50019:127;;;;;;;52126:12;;52161:11;;;;52205:24;;;;;52195:35;;;;;;52045:204;;;;;;:::i;:::-;;;;;;;;;;;;;52017:247;;;;;;51997:267;;51862:410;;;:::o;49614:258::-;49713:7;49815:20;:18;:20::i;:::-;49837:11;49786:63;;;;;;;;;:::i;21959:92::-;;;;:::o;6913:158::-;6971:7;7004:1;6999;:6;;6991:49;;;;-1:-1:-1;;;6991:49:0;;;;;;;:::i;:::-;7058:5;7062:1;7058;:5;:::i;28947:158::-;29020:4;29044:53;29052:3;-1:-1:-1;;;;;29072:23:0;;29044:7;:53::i;26571:204::-;26666:18;;26638:7;;26666:26;-1:-1:-1;26658:73:0;;;;-1:-1:-1;;;26658:73:0;;;;;;;:::i;:::-;26749:3;:11;;26761:5;26749:18;;;;;;-1:-1:-1;;;26749:18:0;;;;;;;;;;;;;;;;;26742:25;;26571:204;;;;:::o;25903:129::-;25976:4;26000:19;;;:12;;;;;:19;;;;;;:24;;;25903:129::o;26118:109::-;26201:18;;26118:109::o;24273:1544::-;24339:4;24478:19;;;:12;;;:19;;;;;;24514:15;;24510:1300;;24876:21;24900:14;24913:1;24900:10;:14;:::i;:::-;24949:18;;24876:38;;-1:-1:-1;24929:17:0;;24949:22;;24970:1;;24949:22;:::i;:::-;24929:42;;25216:17;25236:3;:11;;25248:9;25236:22;;;;;;-1:-1:-1;;;25236:22:0;;;;;;;;;;;;;;;;;25216:42;;25382:9;25353:3;:11;;25365:13;25353:26;;;;;;-1:-1:-1;;;25353:26:0;;;;;;;;;;;;;;;;;;:38;25485:17;:13;25501:1;25485:17;:::i;:::-;25459:23;;;;:12;;;:23;;;;;:43;25611:17;;25459:3;;25611:17;;;-1:-1:-1;;;25611:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;25706:3;:12;;:19;25719:5;25706:19;;;;;;;;;;;25699:26;;;25749:4;25742:11;;;;;;;;24510:1300;25793:5;25786:12;;;;;14:175:1;84:20;;-1:-1:-1;;;;;133:31:1;;123:42;;113:2;;179:1;176;169:12;194:158;262:20;;322:4;311:16;;301:27;;291:2;;342:1;339;332:12;357:198;;469:2;457:9;448:7;444:23;440:32;437:2;;;490:6;482;475:22;437:2;518:31;539:9;518:31;:::i;560:274::-;;;689:2;677:9;668:7;664:23;660:32;657:2;;;710:6;702;695:22;657:2;738:31;759:9;738:31;:::i;:::-;728:41;;788:40;824:2;813:9;809:18;788:40;:::i;:::-;778:50;;647:187;;;;;:::o;839:342::-;;;;985:2;973:9;964:7;960:23;956:32;953:2;;;1006:6;998;991:22;953:2;1034:31;1055:9;1034:31;:::i;:::-;1024:41;;1084:40;1120:2;1109:9;1105:18;1084:40;:::i;:::-;1074:50;;1171:2;1160:9;1156:18;1143:32;1133:42;;943:238;;;;;:::o;1186:717::-;;;;1334:2;1322:9;1313:7;1309:23;1305:32;1302:2;;;1355:6;1347;1340:22;1302:2;1383:31;1404:9;1383:31;:::i;:::-;1373:41;;1465:2;1454:9;1450:18;1437:32;1488:18;1529:2;1521:6;1518:14;1515:2;;;1550:6;1542;1535:22;1515:2;1593:6;1582:9;1578:22;1568:32;;1638:7;1631:4;1627:2;1623:13;1619:27;1609:2;;1665:6;1657;1650:22;1609:2;1710;1697:16;1736:2;1728:6;1725:14;1722:2;;;1757:6;1749;1742:22;1722:2;1807:7;1802:2;1793:6;1789:2;1785:15;1781:24;1778:37;1775:2;;;1833:6;1825;1818:22;1775:2;1869;1865;1861:11;1851:21;;1891:6;1881:16;;;;;1292:611;;;;;:::o;1908:1243::-;;;;;;2095:3;2083:9;2074:7;2070:23;2066:33;2063:2;;;2117:6;2109;2102:22;2063:2;2145:31;2166:9;2145:31;:::i;:::-;2135:41;;2195:2;2248;2237:9;2233:18;2220:32;2271:18;2312:2;2304:6;2301:14;2298:2;;;2333:6;2325;2318:22;2298:2;2376:6;2365:9;2361:22;2351:32;;2421:7;2414:4;2410:2;2406:13;2402:27;2392:2;;2448:6;2440;2433:22;2392:2;2489;2476:16;2511:2;2507;2504:10;2501:2;;;2517:18;;:::i;:::-;2566:2;2560:9;2635:2;2616:13;;-1:-1:-1;;2612:27:1;2600:40;;2596:49;;2660:18;;;2680:22;;;2657:46;2654:2;;;2706:18;;:::i;:::-;2742:2;2735:22;2766:18;;;2803:11;;;2799:20;;2796:33;-1:-1:-1;2793:2:1;;;2847:6;2839;2832:22;2793:2;2908;2903;2899;2895:11;2890:2;2882:6;2878:15;2865:46;2931:15;;;2927:24;;;2920:40;;;-1:-1:-1;2935:6:1;;-1:-1:-1;;3032:2:1;3017:18;;3004:32;;-1:-1:-1;3083:2:1;3068:18;;3055:32;;-1:-1:-1;3106:39:1;3140:3;3125:19;;3106:39;:::i;:::-;3096:49;;2053:1098;;;;;;;;:::o;3156:266::-;;;3285:2;3273:9;3264:7;3260:23;3256:32;3253:2;;;3306:6;3298;3291:22;3253:2;3334:31;3355:9;3334:31;:::i;:::-;3324:41;3412:2;3397:18;;;;3384:32;;-1:-1:-1;;;3243:179:1:o;3427:190::-;;3539:2;3527:9;3518:7;3514:23;3510:32;3507:2;;;3560:6;3552;3545:22;3507:2;-1:-1:-1;3588:23:1;;3497:120;-1:-1:-1;3497:120:1:o;3622:266::-;;;3751:2;3739:9;3730:7;3726:23;3722:32;3719:2;;;3772:6;3764;3757:22;3719:2;3813:9;3800:23;3790:33;;3842:40;3878:2;3867:9;3863:18;3842:40;:::i;3893:258::-;;;4022:2;4010:9;4001:7;3997:23;3993:32;3990:2;;;4043:6;4035;4028:22;3990:2;-1:-1:-1;;4071:23:1;;;4141:2;4126:18;;;4113:32;;-1:-1:-1;3980:171:1:o;4351:259::-;;4432:5;4426:12;4459:6;4454:3;4447:19;4475:63;4531:6;4524:4;4519:3;4515:14;4508:4;4501:5;4497:16;4475:63;:::i;:::-;4592:2;4571:15;-1:-1:-1;;4567:29:1;4558:39;;;;4599:4;4554:50;;4402:208;-1:-1:-1;;4402:208:1:o;4615:274::-;;4782:6;4776:13;4798:53;4844:6;4839:3;4832:4;4824:6;4820:17;4798:53;:::i;:::-;4867:16;;;;;4752:137;-1:-1:-1;;4752:137:1:o;4894:415::-;;5089:6;5083:13;5105:53;5151:6;5146:3;5139:4;5131:6;5127:17;5105:53;:::i;:::-;5227:2;5223:15;;;;-1:-1:-1;;5219:53:1;5180:16;;;;5205:68;;;5300:2;5289:14;;5059:250;-1:-1:-1;;5059:250:1:o;5314:392::-;-1:-1:-1;;;5572:27:1;;5624:1;5615:11;;5608:27;;;;5660:2;5651:12;;5644:28;5697:2;5688:12;;5562:144::o;5711:203::-;-1:-1:-1;;;;;5875:32:1;;;;5857:51;;5845:2;5830:18;;5812:102::o;5919:433::-;-1:-1:-1;;;;;6176:15:1;;;6158:34;;6228:15;;6223:2;6208:18;;6201:43;6280:2;6275;6260:18;;6253:30;;;5919:433;;6300:46;;6327:18;;6319:6;6300:46;:::i;:::-;6292:54;6110:242;-1:-1:-1;;;;;6110:242:1:o;6357:187::-;6522:14;;6515:22;6497:41;;6485:2;6470:18;;6452:92::o;6549:177::-;6695:25;;;6683:2;6668:18;;6650:76::o;6731:417::-;6962:25;;;7018:2;7003:18;;6996:34;;;;-1:-1:-1;;;;;7066:32:1;7061:2;7046:18;;7039:60;7130:2;7115:18;;7108:34;6949:3;6934:19;;6916:232::o;7153:398::-;7380:25;;;7453:4;7441:17;;;;7436:2;7421:18;;7414:45;7490:2;7475:18;;7468:34;7533:2;7518:18;;7511:34;7367:3;7352:19;;7334:217::o;7556:219::-;;7703:2;7692:9;7685:21;7723:46;7765:2;7754:9;7750:18;7742:6;7723:46;:::i;8006:1197::-;;8144:2;8173;8162:9;8155:21;8196:4;8232:6;8226:13;8262:4;8300:1;8289:9;8285:17;8275:27;;8321:1;8372:2;8361:9;8357:18;8394;8384:2;;8438:4;8430:6;8426:17;8416:27;;8384:2;8491;8483:6;8480:14;8460:18;8457:38;8454:2;;;-1:-1:-1;;;8518:34:1;;8575:4;8572:1;8565:15;8606:4;8525;8593:18;8454:2;8641:64;8698:6;8693:2;8682:9;8678:18;8641:64;:::i;:::-;8721:18;8748:100;;;;8862:1;8857:320;;;;8714:463;;8748:100;-1:-1:-1;;8781:24:1;;8769:37;;8826:12;;;;-1:-1:-1;8748:100:1;;8857:320;8893:39;8925:6;8893:39;:::i;:::-;8954:4;8971:165;8985:6;8982:1;8979:13;8971:165;;;9063:14;;9050:11;;;9043:35;9106:16;;;;9000:10;;8971:165;;;9156:11;;;-1:-1:-1;;8714:463:1;-1:-1:-1;9194:3:1;;8124:1079;-1:-1:-1;;;;;;;;;8124:1079:1:o;9208:398::-;9410:2;9392:21;;;9449:2;9429:18;;;9422:30;9488:34;9483:2;9468:18;;9461:62;-1:-1:-1;;;9554:2:1;9539:18;;9532:32;9596:3;9581:19;;9382:224::o;9611:399::-;9813:2;9795:21;;;9852:2;9832:18;;;9825:30;9891:34;9886:2;9871:18;;9864:62;-1:-1:-1;;;9957:2:1;9942:18;;9935:33;10000:3;9985:19;;9785:225::o;10015:411::-;10217:2;10199:21;;;10256:2;10236:18;;;10229:30;10295:34;10290:2;10275:18;;10268:62;-1:-1:-1;;;10361:2:1;10346:18;;10339:45;10416:3;10401:19;;10189:237::o;10431:398::-;10633:2;10615:21;;;10672:2;10652:18;;;10645:30;10711:34;10706:2;10691:18;;10684:62;-1:-1:-1;;;10777:2:1;10762:18;;10755:32;10819:3;10804:19;;10605:224::o;10834:352::-;11036:2;11018:21;;;11075:2;11055:18;;;11048:30;11114;11109:2;11094:18;;11087:58;11177:2;11162:18;;11008:178::o;11191:351::-;11393:2;11375:21;;;11432:2;11412:18;;;11405:30;11471:29;11466:2;11451:18;;11444:57;11533:2;11518:18;;11365:177::o;11547:354::-;11749:2;11731:21;;;11788:2;11768:18;;;11761:30;11827:32;11822:2;11807:18;;11800:60;11892:2;11877:18;;11721:180::o;11906:412::-;12108:2;12090:21;;;12147:2;12127:18;;;12120:30;12186:34;12181:2;12166:18;;12159:62;-1:-1:-1;;;12252:2:1;12237:18;;12230:46;12308:3;12293:19;;12080:238::o;12323:401::-;12525:2;12507:21;;;12564:2;12544:18;;;12537:30;12603:34;12598:2;12583:18;;12576:62;-1:-1:-1;;;12669:2:1;12654:18;;12647:35;12714:3;12699:19;;12497:227::o;12729:397::-;12931:2;12913:21;;;12970:2;12950:18;;;12943:30;13009:34;13004:2;12989:18;;12982:62;-1:-1:-1;;;13075:2:1;13060:18;;13053:31;13116:3;13101:19;;12903:223::o;13131:397::-;13333:2;13315:21;;;13372:2;13352:18;;;13345:30;13411:34;13406:2;13391:18;;13384:62;-1:-1:-1;;;13477:2:1;13462:18;;13455:31;13518:3;13503:19;;13305:223::o;13533:401::-;13735:2;13717:21;;;13774:2;13754:18;;;13747:30;13813:34;13808:2;13793:18;;13786:62;-1:-1:-1;;;13879:2:1;13864:18;;13857:35;13924:3;13909:19;;13707:227::o;13939:400::-;14141:2;14123:21;;;14180:2;14160:18;;;14153:30;14219:34;14214:2;14199:18;;14192:62;-1:-1:-1;;;14285:2:1;14270:18;;14263:34;14329:3;14314:19;;14113:226::o;14344:411::-;14546:2;14528:21;;;14585:2;14565:18;;;14558:30;14624:34;14619:2;14604:18;;14597:62;-1:-1:-1;;;14690:2:1;14675:18;;14668:45;14745:3;14730:19;;14518:237::o;14760:355::-;14962:2;14944:21;;;15001:2;14981:18;;;14974:30;15040:33;15035:2;15020:18;;15013:61;15106:2;15091:18;;14934:181::o;15302:184::-;15474:4;15462:17;;;;15444:36;;15432:2;15417:18;;15399:87::o;15491:129::-;;15559:17;;;15609:4;15593:21;;;15549:71::o;15781:128::-;;15852:1;15848:6;15845:1;15842:13;15839:2;;;15858:18;;:::i;:::-;-1:-1:-1;15894:9:1;;15829:80::o;15914:125::-;;15982:1;15979;15976:8;15973:2;;;15987:18;;:::i;:::-;-1:-1:-1;16024:9:1;;15963:76::o;16044:258::-;16116:1;16126:113;16140:6;16137:1;16134:13;16126:113;;;16216:11;;;16210:18;16197:11;;;16190:39;16162:2;16155:10;16126:113;;;16257:6;16254:1;16251:13;16248:2;;;16292:1;16283:6;16278:3;16274:16;16267:27;16248:2;;16097:205;;;:::o;16307:380::-;16392:1;16382:12;;16439:1;16429:12;;;16450:2;;16504:4;16496:6;16492:17;16482:27;;16450:2;16557;16549:6;16546:14;16526:18;16523:38;16520:2;;;16603:10;16598:3;16594:20;16591:1;16584:31;16638:4;16635:1;16628:15;16666:4;16663:1;16656:15;16520:2;;16362:325;;;:::o;16692:127::-;16753:10;16748:3;16744:20;16741:1;16734:31;16784:4;16781:1;16774:15;16808:4;16805:1;16798:15;16824:127;16885:10;16880:3;16876:20;16873:1;16866:31;16916:4;16913:1;16906:15;16940:4;16937:1;16930:15

Swarm Source

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