AVAX Price: $22.78 (+11.24%)
Gas: 1 nAVAX
 

Overview

AVAX Balance

Avalanche C-Chain LogoAvalanche C-Chain LogoAvalanche C-Chain Logo131.543066906508 AVAX

AVAX Value

$2,996.98 (@ $22.78/AVAX)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Vote Proposal464530252024-06-08 9:00:43319 days ago1717837243IN
0xc81A7Ec0...c41e09565
0 AVAX0.0067003725
Vote Proposal464529822024-06-08 8:59:14319 days ago1717837154IN
0xc81A7Ec0...c41e09565
0 AVAX0.0070807225
Deposit256990802023-02-01 15:41:34811 days ago1675266094IN
0xc81A7Ec0...c41e09565
0.1275433 AVAX0.0049946827.5
Deposit255760182023-01-29 18:22:42814 days ago1675016562IN
0xc81A7Ec0...c41e09565
0.1275433 AVAX0.0049038727
Deposit234086922022-12-09 10:24:43866 days ago1670581483IN
0xc81A7Ec0...c41e09565
0.21516944 AVAX0.0047054525
Deposit231593792022-12-03 11:39:15872 days ago1670067555IN
0xc81A7Ec0...c41e09565
0.1275433 AVAX0.0049950127.5
Admin Withdraw224282332022-11-16 0:10:10889 days ago1668557410IN
0xc81A7Ec0...c41e09565
0 AVAX0.0012640926
Admin Withdraw224272232022-11-15 23:34:42889 days ago1668555282IN
0xc81A7Ec0...c41e09565
0 AVAX0.00170926
Admin Withdraw224269962022-11-15 23:26:31889 days ago1668554791IN
0xc81A7Ec0...c41e09565
0 AVAX0.0009915126
Admin Withdraw224269202022-11-15 23:23:51889 days ago1668554631IN
0xc81A7Ec0...c41e09565
0 AVAX0.0009915126
Deposit223240232022-11-13 12:23:41892 days ago1668342221IN
0xc81A7Ec0...c41e09565
0.13096896 AVAX0.0046522725
Deposit223230582022-11-13 11:50:27892 days ago1668340227IN
0xc81A7Ec0...c41e09565
0.12204224 AVAX0.0046522725
Deposit223220992022-11-13 11:17:48892 days ago1668338268IN
0xc81A7Ec0...c41e09565
0.13096896 AVAX0.0046522725
Vote Proposal223217702022-11-13 11:06:29892 days ago1668337589IN
0xc81A7Ec0...c41e09565
0 AVAX0.0085100131.875
Deposit223010252022-11-12 23:08:35892 days ago1668294515IN
0xc81A7Ec0...c41e09565
0.21516944 AVAX0.0047123525
Vote Proposal223008772022-11-12 23:03:27892 days ago1668294207IN
0xc81A7Ec0...c41e09565
0 AVAX0.0085452731.875
Vote Proposal222944402022-11-12 19:20:32892 days ago1668280832IN
0xc81A7Ec0...c41e09565
0 AVAX0.0072158931.875
Vote Proposal221497762022-11-09 9:58:17896 days ago1667987897IN
0xc81A7Ec0...c41e09565
0 AVAX0.0072166531.875
Admin Withdraw215681852022-10-26 16:08:26909 days ago1666800506IN
0xc81A7Ec0...c41e09565
0 AVAX0.0017505727
Vote Proposal215615042022-10-26 12:23:42910 days ago1666787022IN
0xc81A7Ec0...c41e09565
0 AVAX0.0084824731.875
Deposit215563602022-10-26 9:29:56910 days ago1666776596IN
0xc81A7Ec0...c41e09565
0.12204224 AVAX0.0046525725
Vote Proposal213446082022-10-21 9:46:37915 days ago1666345597IN
0xc81A7Ec0...c41e09565
0 AVAX0.0084832431.875
Deposit212614022022-10-19 10:45:59917 days ago1666176359IN
0xc81A7Ec0...c41e09565
0.12204224 AVAX0.0051806927.5
Vote Proposal212504662022-10-19 4:32:14917 days ago1666153934IN
0xc81A7Ec0...c41e09565
0 AVAX0.0084824731.875
Vote Proposal212381752022-10-18 21:29:03917 days ago1666128543IN
0xc81A7Ec0...c41e09565
0 AVAX0.0084828631.875
View all transactions

Latest 12 internal transactions

Parent Transaction Hash Block From To
193353962022-08-30 23:57:04966 days ago1661903824
0xc81A7Ec0...c41e09565
10 AVAX
125558292022-03-25 11:02:321125 days ago1648206152
0xc81A7Ec0...c41e09565
133.8206579 AVAX
116050542022-03-02 21:48:361147 days ago1646257716
0xc81A7Ec0...c41e09565
115 AVAX
106456522022-02-08 10:13:141170 days ago1644315194
0xc81A7Ec0...c41e09565
115 AVAX
95751262022-01-14 21:45:121194 days ago1642196712
0xc81A7Ec0...c41e09565
50 AVAX
95750602022-01-14 21:43:201194 days ago1642196600
0xc81A7Ec0...c41e09565
50 AVAX
89579052021-12-31 15:15:461208 days ago1640963746
0xc81A7Ec0...c41e09565
160.93658058 AVAX
82535752021-12-15 3:01:531225 days ago1639537313
0xc81A7Ec0...c41e09565
128 AVAX
73038122021-11-23 1:43:331247 days ago1637631813
0xc81A7Ec0...c41e09565
174.25810155 AVAX
68252982021-11-11 22:05:401258 days ago1636668340
0xc81A7Ec0...c41e09565
360.9227703 AVAX
53064592021-10-06 23:08:271294 days ago1633561707
0xc81A7Ec0...c41e09565
188.69604491 AVAX
52943452021-10-06 16:17:491294 days ago1633537069
0xc81A7Ec0...c41e09565
20 AVAX
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Bridge

Compiler Version
v0.6.4+commit.1dca32f3

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at snowscan.xyz on 2021-11-29
*/

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

pragma solidity ^0.6.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.0.0, only sets of type `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];
    }

    // 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(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(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(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(uint256(_at(set._inner, index)));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

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

pragma solidity ^0.6.2;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

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

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

pragma solidity ^0.6.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.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }

    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

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

// File: @openzeppelin/contracts/access/AccessControl.sol

pragma solidity ^0.6.0;




/**
 * @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 `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.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        _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());
        }
    }
}

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

pragma solidity ^0.6.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

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

pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, 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) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * 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);
        uint256 c = a - b;

        return c;
    }

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

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts 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) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol

pragma solidity ^0.6.0;




/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeERC20: low-level call failed");

        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// File: contracts/utils/Pausable.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;


/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This is a stripped down version of Open zeppelin's Pausable contract.
 * https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/EnumerableSet.sol
 *
 */
contract Pausable {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor () internal {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _whenNotPaused();
        _;
    }

    function _whenNotPaused() private view {
        require(!_paused, "Pausable: paused");
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenPaused() {
        _whenPaused();
        _;
    }

    function _whenPaused() private view {
        require(_paused, "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(msg.sender);
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(msg.sender);
    }
}

// File: contracts/utils/ReducedSafeMath.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * note that this is a stripped down version of open zeppelin's safemath
 * https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/SafeMath.sol
 */

contract ReducedSafeMath {

    /**
     * @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) {
        return _sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * 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);
        uint256 c = a - b;

        return c;
    }

}

// File: contracts/interfaces/IDepositExecute.sol

pragma solidity 0.6.4;

/**
    @title Interface for handler contracts that support deposits and deposit executions.
    @author ChainSafe Systems.
 */
interface IDepositExecute {
    /**
        @notice It is intended that deposit are made using the Bridge contract.
        @param destinationChainID Chain ID deposit is expected to be bridged to.
        @param depositNonce This value is generated as an ID by the Bridge contract.
        @param depositer Address of account making the deposit in the Bridge contract.
        @param data Consists of additional data needed for a specific deposit.
     */
    function deposit(bytes32 resourceID, uint8 destinationChainID, uint64 depositNonce, address depositer, bytes calldata data) external;

    /**
        @notice It is intended that proposals are executed by the Bridge contract.
        @param data Consists of additional data needed for a specific deposit execution.
     */
    function executeProposal(bytes32 resourceID, bytes calldata data) external;
}

// File: contracts/interfaces/IBridge.sol

pragma solidity 0.6.4;

/**
    @title Interface for Bridge contract.
    @author ChainSafe Systems.
 */
interface IBridge {
    /**
        @notice Exposing getter for {_chainID} instead of forcing the use of call.
        @return uint8 The {_chainID} that is currently set for the Bridge contract.
     */
    function _chainID() external returns (uint8);
}

// File: contracts/interfaces/IERCHandler.sol

pragma solidity 0.6.4;

/**
    @title Interface to be used with handlers that support ERC20s and ERC721s.
    @author ChainSafe Systems.
 */
interface IERCHandler {
    /**
        @notice Correlates {resourceID} with {contractAddress}.
        @param resourceID ResourceID to be used when making deposits.
        @param contractAddress Address of contract to be called when a deposit is made and a deposited is executed.
     */
    function setResource(bytes32 resourceID, address contractAddress) external;
    /**
        @notice Marks {contractAddress} as mintable/burnable.
        @param contractAddress Address of contract to be used when making or executing deposits.
        @param burnable Does the token need to be burnable
     */
    function setBurnable(address contractAddress, bool burnable) external;
    /**
        @notice Used to manually release funds from ERC safes.
        @param tokenAddress Address of token contract to release.
        @param recipient Address to release tokens to.
        @param amountOrTokenID Either the amount of ERC20 tokens or the ERC721 token ID to release.
     */
    function withdraw(address tokenAddress, address recipient, uint256 amountOrTokenID) external;
}

// File: contracts/interfaces/IERC20Handler.sol

pragma solidity 0.6.4;

interface IERC20Handler {
    function setFeePercent(uint256 feePercent) external;
    function setFeePercentTreasury(address newTreasury) external;
}

// File: contracts/interfaces/IGenericHandler.sol

pragma solidity 0.6.4;

/**
    @title Interface for handler that handles generic deposits and deposit executions.
    @author ChainSafe Systems.
 */
interface IGenericHandler {
    /**
        @notice Correlates {resourceID} with {contractAddress}, {depositFunctionSig}, and {executeFunctionSig}.
        @param resourceID ResourceID to be used when making deposits.
        @param contractAddress Address of contract to be called when a deposit is made and a deposited is executed.
        @param depositFunctionSig Function signature of method to be called in {contractAddress} when a deposit is made.
        @param executeFunctionSig Function signature of method to be called in {contractAddress} when a deposit is executed.
     */
    function setResource(bytes32 resourceID, address contractAddress, bytes4 depositFunctionSig, bytes4 executeFunctionSig) external;
}

// File: contracts/Bridge.sol

pragma solidity 0.6.4;
pragma experimental ABIEncoderV2;










/**
    @title Facilitates deposits, creation and votiing of deposit proposals, and deposit executions.
    @author ChainSafe Systems.
 */
contract Bridge is Pausable, AccessControl, ReducedSafeMath {

    uint8   public _chainID;
    uint256 public _relayerThreshold;
    uint256 public _totalRelayers;
    uint256 public _totalProposals;

    enum Vote {No, Yes}

    enum ProposalStatus {Inactive, Active, Executed}

    struct Proposal {
        bytes32 _resourceID;
        bytes32 _dataHash;
        address[] _yesVotes;
        address[] _noVotes;
        ProposalStatus _status;
        uint256 _proposedBlock;
    }

    // destinationChainID => number of deposits
    mapping(uint8 => uint64) public _depositCounts;
    // resourceID => handler address
    mapping(bytes32 => address) public _resourceIDToHandlerAddress;
    // destinationChainID + depositNonce => dataHash => Proposal
    mapping(uint72 => mapping(bytes32 => Proposal)) public _proposals;
    // destinationChainID + depositNonce => dataHash => relayerAddress => bool
    mapping(uint72 => mapping(bytes32 => mapping(address => bool))) public _hasVotedOnProposal;
    // destinationChainID => deposit fee
    mapping(uint8 => uint256) public _fees;

    event RelayerThresholdChanged(uint indexed newThreshold);
    event RelayerAdded(address indexed relayer);
    event RelayerRemoved(address indexed relayer);
    event Deposit(
        uint8   indexed destinationChainID,
        bytes32 indexed resourceID,
        uint64  indexed depositNonce
    );
    event ProposalEvent(
        uint8           indexed originChainID,
        uint64          indexed depositNonce,
        ProposalStatus  indexed status,
        bytes32 resourceID,
        bytes32 dataHash
    );

    event ProposalVote(
        uint8   indexed originChainID,
        uint64  indexed depositNonce,
        ProposalStatus indexed status,
        bytes32 resourceID
    );

    bytes32 public constant RELAYER_ROLE = keccak256("RELAYER_ROLE");
    bytes32 public constant FEE_SETTER_ROLE = keccak256("FEE_SETTER_ROLE");
    bytes32 public constant RESOURCE_SETTER_ROLE = keccak256("RESOURCE_SETTER_ROLE");

    modifier onlyAdmin() {
        _onlyAdmin();
        _;
    }

    modifier onlyAdminOrRelayer() {
        _onlyAdminOrRelayer();
        _;
    }

    modifier onlyRelayers() {
        _onlyRelayers();
        _;
    }

    modifier onlyFeeSetter() {
        require(hasRole(FEE_SETTER_ROLE, msg.sender), "sender is not fee setter");
        _;
    }

    modifier onlyResourceSetter() {
        require(hasRole(RESOURCE_SETTER_ROLE, msg.sender), "sender is not resource setter");
        _;
    }

    function _onlyAdminOrRelayer() private view {
        require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender) || hasRole(RELAYER_ROLE, msg.sender),
            "sender is not relayer or admin");
    }

    function _onlyAdmin() private view {
        require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "sender doesn't have admin role");
    }

    function _onlyRelayers() private view {
        require(hasRole(RELAYER_ROLE, msg.sender), "sender doesn't have relayer role");
    }

    /**
        @notice Initializes Bridge, creates and grants {msg.sender} the admin role,
        creates and grants {initialRelayers} the relayer role.
        @param chainID ID of chain the Bridge contract exists on.
        @param initialRelayers Addresses that should be initially granted the relayer role.
        @param initialRelayerThreshold Number of votes needed for a deposit proposal to be considered passed.
     */
    constructor (uint8 chainID, address[] memory initialRelayers, uint initialRelayerThreshold) public {
        _chainID = chainID;
        _relayerThreshold = initialRelayerThreshold;

        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _setupRole(FEE_SETTER_ROLE, msg.sender);
        _setupRole(RESOURCE_SETTER_ROLE, msg.sender);
        _setRoleAdmin(RELAYER_ROLE, DEFAULT_ADMIN_ROLE);
        _setRoleAdmin(FEE_SETTER_ROLE, DEFAULT_ADMIN_ROLE);
        _setRoleAdmin(RESOURCE_SETTER_ROLE, DEFAULT_ADMIN_ROLE);

        for (uint i; i < initialRelayers.length; i++) {
            grantRole(RELAYER_ROLE, initialRelayers[i]);
            _totalRelayers++;
        }
    }

    /**
        @notice Returns true if {relayer} has the relayer role.
        @param relayer Address to check.
     */
    function isRelayer(address relayer) external view returns (bool) {
        return hasRole(RELAYER_ROLE, relayer);
    }

    /**
        @notice Removes admin role from {msg.sender} and grants it to {newAdmin}.
        @notice Only callable by an address that currently has the admin role.
        @param newAdmin Address that admin role will be granted to.
     */
    function renounceAdmin(address newAdmin) external onlyAdmin {
        grantRole(DEFAULT_ADMIN_ROLE, newAdmin);
        renounceRole(DEFAULT_ADMIN_ROLE, msg.sender);
    }

    /**
        @notice Pauses deposits, proposal creation and voting, and deposit executions.
        @notice Only callable by an address that currently has the admin role.
     */
    function adminPauseTransfers() external onlyAdmin {
        _pause();
    }

    /**
        @notice Unpauses deposits, proposal creation and voting, and deposit executions.
        @notice Only callable by an address that currently has the admin role.
     */
    function adminUnpauseTransfers() external onlyAdmin {
        _unpause();
    }

    /**
        @notice Modifies the number of votes required for a proposal to be considered passed.
        @notice Only callable by an address that currently has the admin role.
        @param newThreshold Value {_relayerThreshold} will be changed to.
        @notice Emits {RelayerThresholdChanged} event.
     */
    function adminChangeRelayerThreshold(uint newThreshold) external onlyAdmin {
        _relayerThreshold = newThreshold;
        emit RelayerThresholdChanged(newThreshold);
    }

    /**
        @notice Grants {relayerAddress} the relayer role and increases {_totalRelayer} count.
        @notice Only callable by an address that currently has the admin role.
        @param relayerAddress Address of relayer to be added.
        @notice Emits {RelayerAdded} event.
     */
    function adminAddRelayer(address relayerAddress) external onlyAdmin {
        require(!hasRole(RELAYER_ROLE, relayerAddress), "addr already has relayer role!");
        grantRole(RELAYER_ROLE, relayerAddress);
        emit RelayerAdded(relayerAddress);
        _totalRelayers++;
    }

    /**
        @notice Removes relayer role for {relayerAddress} and decreases {_totalRelayer} count.
        @notice Only callable by an address that currently has the admin role.
        @param relayerAddress Address of relayer to be removed.
        @notice Emits {RelayerRemoved} event.
     */
    function adminRemoveRelayer(address relayerAddress) external onlyAdmin {
        require(hasRole(RELAYER_ROLE, relayerAddress), "addr doesn't have relayer role!");
        revokeRole(RELAYER_ROLE, relayerAddress);
        emit RelayerRemoved(relayerAddress);
        _totalRelayers--;
    }

    /**
        @notice Sets a new resource for handler contracts that use the IERCHandler interface,
        and maps the {handlerAddress} to {resourceID} in {_resourceIDToHandlerAddress}.
        @notice Only callable by an address that currently has the admin role.
        @param handlerAddress Address of handler resource will be set for.
        @param resourceID ResourceID to be used when making deposits.
        @param tokenAddress Address of contract to be called when a deposit is made and a deposited is executed.
     */
    function adminSetResource(address handlerAddress, bytes32 resourceID, address tokenAddress) external onlyResourceSetter {
        _resourceIDToHandlerAddress[resourceID] = handlerAddress;
        IERCHandler handler = IERCHandler(handlerAddress);
        handler.setResource(resourceID, tokenAddress);
    }

    /**
        @notice Sets a new resource for handler contracts that use the IGenericHandler interface,
        and maps the {handlerAddress} to {resourceID} in {_resourceIDToHandlerAddress}.
        @notice Only callable by an address that currently has the admin role.
        @param handlerAddress Address of handler resource will be set for.
        @param resourceID ResourceID to be used when making deposits.
        @param contractAddress Address of contract to be called when a deposit is made and a deposited is executed.
     */
    function adminSetGenericResource(
        address handlerAddress,
        bytes32 resourceID,
        address contractAddress,
        bytes4 depositFunctionSig,
        bytes4 executeFunctionSig
    ) external onlyResourceSetter {
        _resourceIDToHandlerAddress[resourceID] = handlerAddress;
        IGenericHandler handler = IGenericHandler(handlerAddress);
        handler.setResource(resourceID, contractAddress, depositFunctionSig, executeFunctionSig);
    }

    /**
        @notice Sets a resource as burnable for handler contracts that use the IERCHandler interface.
        @notice Only callable by an address that currently has the admin role.
        @param handlerAddress Address of handler resource will be set for.
        @param tokenAddress Address of contract to be called when a deposit is made and a deposited is executed.
        @param burnable Does the token need to be burned and minted
     */
    function adminSetBurnable(address handlerAddress, address tokenAddress, bool burnable) external onlyResourceSetter {
        IERCHandler handler = IERCHandler(handlerAddress);
        handler.setBurnable(tokenAddress, burnable);
    }

    /**
        @notice Returns a proposal.
        @param originChainID Chain ID deposit originated from.
        @param depositNonce ID of proposal generated by proposal's origin Bridge contract.
        @param dataHash Hash of data to be provided when deposit proposal is executed.
        @return Proposal which consists of:
        - _dataHash Hash of data to be provided when deposit proposal is executed.
        - _yesVotes Number of votes in favor of proposal.
        - _noVotes Number of votes against proposal.
        - _status Current status of proposal.
     */
    function getProposal(uint8 originChainID, uint64 depositNonce, bytes32 dataHash) external view returns (Proposal memory) {
        uint72 nonceAndID = (uint72(depositNonce) << 8) | uint72(originChainID);
        return _proposals[nonceAndID][dataHash];
    }

    /**
        @notice Changes deposit fee.
        @notice Only callable by fee setter.
        @param newFee Value {_fees[destinationChainID]} will be updated to.
     */
    function changeFee(uint8 destinationChainID, uint newFee) external onlyFeeSetter {
        _fees[destinationChainID] = newFee;
    }

    function setFeePercent(address handlerAddress, uint256 feePercent) external onlyFeeSetter {
        IERC20Handler handler = IERC20Handler(handlerAddress);
        handler.setFeePercent(feePercent);
    }

    function setFeePercentTreasury(address handlerAddress, address treasuryAddress) external onlyAdmin {
        IERC20Handler handler = IERC20Handler(handlerAddress);
        handler.setFeePercentTreasury(treasuryAddress);
    }

    /**
        @notice Used to manually withdraw funds from ERC safes.
        @param handlerAddress Address of handler to withdraw from.
        @param tokenAddress Address of token to withdraw.
        @param recipient Address to withdraw tokens to.
        @param amountOrTokenID Either the amount of ERC20 tokens or the ERC721 token ID to withdraw.
     */
    function adminWithdraw(
        address handlerAddress,
        address tokenAddress,
        address recipient,
        uint256 amountOrTokenID
    ) external onlyAdmin {
        IERCHandler handler = IERCHandler(handlerAddress);
        handler.withdraw(tokenAddress, recipient, amountOrTokenID);
    }

    /**
        @notice Initiates a transfer using a specified handler contract.
        @notice Only callable when Bridge is not paused.
        @param destinationChainID ID of chain deposit will be bridged to.
        @param resourceID ResourceID used to find address of handler to be used for deposit.
        @param data Additional data to be passed to specified handler.
        @param _auxData Unused parameter, can be used for everything, for example, writing IDs of apps from which the deposit was made.
        @notice Emits {Deposit} event.
     */
    function deposit(uint8 destinationChainID, bytes32 resourceID, bytes calldata data, bytes calldata _auxData) external payable whenNotPaused {
        require(msg.value == _fees[destinationChainID], "Incorrect fee supplied");

        address handler = _resourceIDToHandlerAddress[resourceID];
        require(handler != address(0), "resourceID not mapped to handler");

        uint64 depositNonce = ++_depositCounts[destinationChainID];

        IDepositExecute depositHandler = IDepositExecute(handler);
        depositHandler.deposit(resourceID, destinationChainID, depositNonce, msg.sender, data);

        emit Deposit(destinationChainID, resourceID, depositNonce);
    }

    /**
        @notice When called, {msg.sender} will be marked as voting in favor of proposal.
        @notice Only callable by relayers when Bridge is not paused.
        @param chainID ID of chain deposit originated from.
        @param depositNonce ID of deposited generated by origin Bridge contract.
        @param data data provided when deposit was made.
        @notice Proposal must not have already been passed or executed.
        @notice {msg.sender} must not have already voted on proposal.
        @notice Emits {ProposalEvent} event with status indicating the proposal status.
        @notice Emits {ProposalVote} event.
     */
    function voteProposal(uint8 chainID, uint64 depositNonce, bytes32 resourceID, bytes calldata data) external onlyRelayers whenNotPaused {
        address handler = _resourceIDToHandlerAddress[resourceID];
        bytes32 dataHash = keccak256(abi.encodePacked(handler, data));

        uint72 nonceAndID = (uint72(depositNonce) << 8) | uint72(chainID);
        Proposal storage proposal = _proposals[nonceAndID][dataHash];

        require(_resourceIDToHandlerAddress[resourceID] != address(0), "no handler for resourceID");
        require(uint(proposal._status) <= 1, "proposal already executed");
        require(!_hasVotedOnProposal[nonceAndID][dataHash][msg.sender], "relayer already voted");

        if (uint(proposal._status) == 0) {
            ++_totalProposals;
            _proposals[nonceAndID][dataHash] = Proposal({
                _resourceID : resourceID,
                _dataHash : dataHash,
                _yesVotes : new address[](1),
                _noVotes : new address[](0),
                _status : ProposalStatus.Active,
                _proposedBlock : block.number
                });

            proposal._yesVotes[0] = msg.sender;
            emit ProposalEvent(chainID, depositNonce, ProposalStatus.Active, resourceID, dataHash);
        } else {
            require(dataHash == proposal._dataHash, "datahash mismatch");
            proposal._yesVotes.push(msg.sender);
        }
        
        _hasVotedOnProposal[nonceAndID][dataHash][msg.sender] = true;
        emit ProposalVote(chainID, depositNonce, proposal._status, resourceID);

        // if _relayerThreshold has been exceeded
        if (proposal._yesVotes.length >= _relayerThreshold) {
            require(dataHash == proposal._dataHash, "data doesn't match datahash");

            proposal._status = ProposalStatus.Executed;

            IDepositExecute depositHandler = IDepositExecute(_resourceIDToHandlerAddress[proposal._resourceID]);

            depositHandler.executeProposal(proposal._resourceID, data);

            emit ProposalEvent(chainID, depositNonce, proposal._status, proposal._resourceID, proposal._dataHash);
        }
    }

    /**
        @notice Transfers eth in the contract to the specified addresses. The parameters addrs and amounts are mapped 1-1.
        This means that the address at index 0 for addrs will receive the amount (in WEI) from amounts at index 0.
        @param addrs Array of addresses to transfer {amounts} to.
        @param amounts Array of amonuts to transfer to {addrs}.
     */
    function transferFunds(address payable[] calldata addrs, uint[] calldata amounts) external onlyAdmin {
        for (uint i = 0; i < addrs.length; i++) {
            addrs[i].transfer(amounts[i]);
        }
    }

    function transferFundsERC20(address[] calldata addrs, address[] calldata tokenAddrs, uint[] calldata amounts) external onlyAdmin {
        for (uint i = 0; i < addrs.length; i++) {
            IERC20 token = IERC20(tokenAddrs[i]);
            SafeERC20.safeTransfer(token, addrs[i], amounts[i]);
        }
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"uint8","name":"chainID","type":"uint8"},{"internalType":"address[]","name":"initialRelayers","type":"address[]"},{"internalType":"uint256","name":"initialRelayerThreshold","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint8","name":"destinationChainID","type":"uint8"},{"indexed":true,"internalType":"bytes32","name":"resourceID","type":"bytes32"},{"indexed":true,"internalType":"uint64","name":"depositNonce","type":"uint64"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint8","name":"originChainID","type":"uint8"},{"indexed":true,"internalType":"uint64","name":"depositNonce","type":"uint64"},{"indexed":true,"internalType":"enum Bridge.ProposalStatus","name":"status","type":"uint8"},{"indexed":false,"internalType":"bytes32","name":"resourceID","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"dataHash","type":"bytes32"}],"name":"ProposalEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint8","name":"originChainID","type":"uint8"},{"indexed":true,"internalType":"uint64","name":"depositNonce","type":"uint64"},{"indexed":true,"internalType":"enum Bridge.ProposalStatus","name":"status","type":"uint8"},{"indexed":false,"internalType":"bytes32","name":"resourceID","type":"bytes32"}],"name":"ProposalVote","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"relayer","type":"address"}],"name":"RelayerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"relayer","type":"address"}],"name":"RelayerRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newThreshold","type":"uint256"}],"name":"RelayerThresholdChanged","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEE_SETTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RELAYER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESOURCE_SETTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_chainID","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"_depositCounts","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"_fees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint72","name":"","type":"uint72"},{"internalType":"bytes32","name":"","type":"bytes32"},{"internalType":"address","name":"","type":"address"}],"name":"_hasVotedOnProposal","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint72","name":"","type":"uint72"},{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"_proposals","outputs":[{"internalType":"bytes32","name":"_resourceID","type":"bytes32"},{"internalType":"bytes32","name":"_dataHash","type":"bytes32"},{"internalType":"enum Bridge.ProposalStatus","name":"_status","type":"uint8"},{"internalType":"uint256","name":"_proposedBlock","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_relayerThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"_resourceIDToHandlerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalProposals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalRelayers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"relayerAddress","type":"address"}],"name":"adminAddRelayer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newThreshold","type":"uint256"}],"name":"adminChangeRelayerThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"adminPauseTransfers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"relayerAddress","type":"address"}],"name":"adminRemoveRelayer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"handlerAddress","type":"address"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"bool","name":"burnable","type":"bool"}],"name":"adminSetBurnable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"handlerAddress","type":"address"},{"internalType":"bytes32","name":"resourceID","type":"bytes32"},{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"bytes4","name":"depositFunctionSig","type":"bytes4"},{"internalType":"bytes4","name":"executeFunctionSig","type":"bytes4"}],"name":"adminSetGenericResource","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"handlerAddress","type":"address"},{"internalType":"bytes32","name":"resourceID","type":"bytes32"},{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"adminSetResource","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"adminUnpauseTransfers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"handlerAddress","type":"address"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amountOrTokenID","type":"uint256"}],"name":"adminWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"destinationChainID","type":"uint8"},{"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"changeFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"destinationChainID","type":"uint8"},{"internalType":"bytes32","name":"resourceID","type":"bytes32"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"_auxData","type":"bytes"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"originChainID","type":"uint8"},{"internalType":"uint64","name":"depositNonce","type":"uint64"},{"internalType":"bytes32","name":"dataHash","type":"bytes32"}],"name":"getProposal","outputs":[{"components":[{"internalType":"bytes32","name":"_resourceID","type":"bytes32"},{"internalType":"bytes32","name":"_dataHash","type":"bytes32"},{"internalType":"address[]","name":"_yesVotes","type":"address[]"},{"internalType":"address[]","name":"_noVotes","type":"address[]"},{"internalType":"enum Bridge.ProposalStatus","name":"_status","type":"uint8"},{"internalType":"uint256","name":"_proposedBlock","type":"uint256"}],"internalType":"struct Bridge.Proposal","name":"","type":"tuple"}],"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":"relayer","type":"address"}],"name":"isRelayer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"renounceAdmin","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"handlerAddress","type":"address"},{"internalType":"uint256","name":"feePercent","type":"uint256"}],"name":"setFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"handlerAddress","type":"address"},{"internalType":"address","name":"treasuryAddress","type":"address"}],"name":"setFeePercentTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable[]","name":"addrs","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"transferFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addrs","type":"address[]"},{"internalType":"address[]","name":"tokenAddrs","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"transferFundsERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"chainID","type":"uint8"},{"internalType":"uint64","name":"depositNonce","type":"uint64"},{"internalType":"bytes32","name":"resourceID","type":"bytes32"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"voteProposal","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620030603803806200306083398101604081905262000034916200035f565b6000805460ff1990811682556002805490911660ff861617905560038290556200005f903362000151565b6200008a60405162000071906200047b565b604051908190039020336001600160e01b036200015116565b6200009c60405162000071906200043a565b620000c8604051620000ae9062000463565b60405190819003902060006001600160e01b036200016a16565b620000da604051620000ae906200047b565b620000ec604051620000ae906200043a565b60005b82518110156200014757620001346040516200010b9062000463565b60405180910390208483815181106200012057fe5b60200260200101516200017f60201b60201c565b60048054600190810190915501620000ef565b505050506200050c565b6200016682826001600160e01b03620001e016565b5050565b60009182526001602052604090912060020155565b600082815260016020526040902060020154620001b890620001a96001600160e01b036200026416565b6001600160e01b036200026816565b620001515760405162461bcd60e51b8152600401620001d79062000496565b60405180910390fd5b6000828152600160209081526040909120620002079183906200198162000297821b17901c565b156200016657620002206001600160e01b036200026416565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b3390565b600082815260016020908152604082206200028e91849062001899620002b7821b17901c565b90505b92915050565b60006200028e836001600160a01b0384166001600160e01b03620002d716565b60006200028e836001600160a01b0384166001600160e01b036200032f16565b6000620002ee83836001600160e01b036200032f16565b620003265750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000291565b50600062000291565b60009081526001919091016020526040902054151590565b80516001600160a01b03811681146200029157600080fd5b60008060006060848603121562000374578283fd5b835160ff8116811462000385578384fd5b602085810151919450906001600160401b0380821115620003a4578485fd5b81870188601f820112620003b6578586fd5b8051925081831115620003c7578586fd5b8383029150620003d9848301620004e5565b8381528481019082860184840187018c1015620003f4578889fd5b8894505b8585101562000422576200040d8c8262000347565b835260019490940193918601918601620003f8565b50809750505050505050604084015190509250925092565b7f5245534f555243455f5345545445525f524f4c45000000000000000000000000815260140190565b6b52454c415945525f524f4c4560a01b8152600c0190565b6e4645455f5345545445525f524f4c4560881b8152600f0190565b6020808252602f908201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60408201526e0818591b5a5b881d1bc819dc985b9d608a1b606082015260800190565b6040518181016001600160401b03811182821017156200050457600080fd5b604052919050565b612b44806200051c6000396000f3fe60806040526004361061023b5760003560e01c80639010d07c1161012e578063c0331b3e116100ab578063d7a9cd791161006f578063d7a9cd79146106af578063e8437ee7146106c4578063e9347683146106e4578063eb6e53aa146106f9578063ffaac0eb1461070e5761023b565b8063c0331b3e1461060f578063ca15c8731461062f578063cb10f2151461064f578063cdb0f73a1461066f578063d547741f1461068f5761023b565b8063a217fddf116100f2578063a217fddf1461056b578063a49e88d914610580578063a9cf69fa146105a0578063aa81cea7146105cd578063beab7131146105ed5761023b565b80639010d07c146104e157806391d1485414610501578063926d7d7f146105215780639d5773e0146105365780639d82dd631461054b5761023b565b8063541d5548116101bc5780637febe63f116101805780637febe63f1461044a578063802aabe81461046a57806380ae1c281461047f57806384db809f1461049457806385802129146104c15761023b565b8063541d5548146103b55780635c975abb146103e25780635e1fab0f146103f757806373c45c9814610417578063780cf0041461042a5761023b565b80634603ae38116102035780634603ae38146102f85780634b0b919d146103185780634e05600514610345578063505987191461036557806352bd874b146103955761023b565b806313a7e54e14610240578063248a9ca3146102625780632f2ff15d1461029857806336568abe146102b857806339356261146102d8575b600080fd5b34801561024c57600080fd5b5061026061025b3660046121b6565b610723565b005b34801561026e57600080fd5b5061028261027d36600461208d565b61077b565b60405161028f9190612435565b60405180910390f35b3480156102a457600080fd5b506102606102b33660046120a5565b610790565b3480156102c457600080fd5b506102606102d33660046120a5565b6107d8565b3480156102e457600080fd5b506102606102f3366004611dda565b61081a565b34801561030457600080fd5b50610260610313366004612009565b610887565b34801561032457600080fd5b50610338610333366004612126565b610915565b60405161028f9190612a92565b34801561035157600080fd5b5061026061036036600461208d565b610930565b34801561037157600080fd5b506103856103803660046120ea565b61096b565b60405161028f9493929190612494565b3480156103a157600080fd5b506102606103b0366004611f49565b6109a3565b3480156103c157600080fd5b506103d56103d0366004611dbe565b6109fc565b60405161028f919061242a565b3480156103ee57600080fd5b506103d5610a21565b34801561040357600080fd5b50610260610412366004611dbe565b610a2b565b610260610425366004612141565b610a4c565b34801561043657600080fd5b50610260610445366004611e12565b610ba0565b34801561045657600080fd5b506103d5610465366004612107565b610c13565b34801561047657600080fd5b50610282610c39565b34801561048b57600080fd5b50610260610c3f565b3480156104a057600080fd5b506104b46104af36600461208d565b610c51565b60405161028f91906123be565b3480156104cd57600080fd5b506102606104dc366004611e62565b610c6c565b3480156104ed57600080fd5b506104b46104fc3660046120c9565b610cff565b34801561050d57600080fd5b506103d561051c3660046120a5565b610d24565b34801561052d57600080fd5b50610282610d42565b34801561054257600080fd5b50610282610d59565b34801561055757600080fd5b50610260610566366004611dbe565b610d5f565b34801561057757600080fd5b50610282610dfe565b34801561058c57600080fd5b5061028261059b366004612126565b610e03565b3480156105ac57600080fd5b506105c06105bb3660046121d2565b610e15565b60405161028f9190612a19565b3480156105d957600080fd5b506102606105e8366004611f74565b610f69565b3480156105f957600080fd5b50610602610fe7565b60405161028f9190612aa6565b34801561061b57600080fd5b5061026061062a36600461221c565b610ff0565b34801561063b57600080fd5b5061028261064a36600461208d565b6114cc565b34801561065b57600080fd5b5061026061066a366004611eac565b6114e3565b34801561067b57600080fd5b5061026061068a366004611dbe565b61155f565b34801561069b57600080fd5b506102606106aa3660046120a5565b6115f0565b3480156106bb57600080fd5b5061028261162a565b3480156106d057600080fd5b506102606106df366004611ee2565b611630565b3480156106f057600080fd5b506102826116ea565b34801561070557600080fd5b506102826116f6565b34801561071a57600080fd5b50610260611702565b610740604051610732906123a3565b604051809103902033610d24565b6107655760405162461bcd60e51b815260040161075c9061280d565b60405180910390fd5b60ff9091166000908152600a6020526040902055565b60009081526001602052604090206002015490565b6000828152600160205260409020600201546107ae9061051c611712565b6107ca5760405162461bcd60e51b815260040161075c90612571565b6107d48282611716565b5050565b6107e0611712565b6001600160a01b0316816001600160a01b0316146108105760405162461bcd60e51b815260040161075c90612993565b6107d48282611785565b6108226117f4565b604051630693020f60e51b815282906001600160a01b0382169063d26041e0906108509085906004016123be565b600060405180830381600087803b15801561086a57600080fd5b505af115801561087e573d6000803e3d6000fd5b50505050505050565b61088f6117f4565b60005b8381101561090e578484828181106108a657fe5b90506020020160208101906108bb9190611dbe565b6001600160a01b03166108fc8484848181106108d357fe5b905060200201359081150290604051600060405180830381858888f19350505050158015610905573d6000803e3d6000fd5b50600101610892565b5050505050565b6006602052600090815260409020546001600160401b031681565b6109386117f4565b600381905560405181907fa20d6b84cd798a24038be305eff8a45ca82ef54a2aa2082005d8e14c0a4746c890600090a250565b600860209081526000928352604080842090915290825290208054600182015460048301546005909301549192909160ff9091169084565b6109b2604051610732906123a3565b6109ce5760405162461bcd60e51b815260040161075c9061280d565b604051637ce3489b60e01b815282906001600160a01b03821690637ce3489b90610850908590600401612435565b6000610a1b604051610a0d9061238b565b604051809103902083610d24565b92915050565b60005460ff165b90565b610a336117f4565b610a3e600082610790565b610a496000336107d8565b50565b610a5461181b565b60ff86166000908152600a60205260409020543414610a855760405162461bcd60e51b815260040161075c90612654565b6000858152600760205260409020546001600160a01b031680610aba5760405162461bcd60e51b815260040161075c906126f0565b60ff871660009081526006602052604090819020805467ffffffffffffffff19811660016001600160401b03928316019182161790915590516338995da960e01b815282906001600160a01b038216906338995da990610b28908b908d90879033908e908e906004016124e0565b600060405180830381600087803b158015610b4257600080fd5b505af1158015610b56573d6000803e3d6000fd5b50505050816001600160401b0316888a60ff167fdbb69440df8433824a026ef190652f29929eb64b4d1d5d2a69be8afe3e6eaed860405160405180910390a4505050505050505050565b610ba86117f4565b604051636ce5768960e11b815284906001600160a01b0382169063d9caed1290610bda908790879087906004016123d2565b600060405180830381600087803b158015610bf457600080fd5b505af1158015610c08573d6000803e3d6000fd5b505050505050505050565b600960209081526000938452604080852082529284528284209052825290205460ff1681565b60045481565b610c476117f4565b610c4f61183e565b565b6007602052600090815260409020546001600160a01b031681565b610c7b6040516107329061236b565b610c975760405162461bcd60e51b815260040161075c90612725565b604051631764b06b60e21b815283906001600160a01b03821690635d92c1ac90610cc790869086906004016123f6565b600060405180830381600087803b158015610ce157600080fd5b505af1158015610cf5573d6000803e3d6000fd5b5050505050505050565b6000828152600160205260408120610d1d908363ffffffff61188d16565b9392505050565b6000828152600160205260408120610d1d908363ffffffff61189916565b604051610d4e9061238b565b604051809103902081565b60055481565b610d676117f4565b610d84604051610d769061238b565b604051809103902082610d24565b610da05760405162461bcd60e51b815260040161075c9061261d565b610dbd604051610daf9061238b565b6040518091039020826115f0565b6040516001600160a01b038216907f10e1f7ce9fd7d1b90a66d13a2ab3cb8dd7f29f3f8d520b143b063ccfbab6906b90600090a25060048054600019019055565b600081565b600a6020526000908152604090205481565b610e1d611c65565b68ffffffffffffffffff60ff8516600885811b68ffffffffffffffff001691909117918216600090815260209182526040808220868352835290819020815160c08101835281548152600182015481850152600282018054845181870281018701865281815292959394860193830182828015610ec357602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610ea5575b5050505050815260200160038201805480602002602001604051908101604052809291908181526020018280548015610f2557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610f07575b5050509183525050600482015460209091019060ff166002811115610f4657fe5b6002811115610f5157fe5b81526020016005820154815250509150509392505050565b610f716117f4565b60005b8581101561087e576000858583818110610f8a57fe5b9050602002016020810190610f9f9190611dbe565b9050610fde81898985818110610fb157fe5b9050602002016020810190610fc69190611dbe565b868686818110610fd257fe5b905060200201356118ae565b50600101610f74565b60025460ff1681565b610ff8611909565b61100061181b565b60008381526007602090815260408083205490516001600160a01b0390911692916110319184918791879101612306565b60408051601f19818403018152918152815160209283012068ffffffffffffffff0060088a811b9190911660ff8c161768ffffffffffffffffff8116600090815291855283822083835285528382208a83526007909552929020549093509091906001600160a01b03166110b75760405162461bcd60e51b815260040161075c90612925565b600481015460019060ff1660028111156110cd57fe5b11156110eb5760405162461bcd60e51b815260040161075c906129e2565b68ffffffffffffffffff82166000908152600960209081526040808320868452825280832033845290915290205460ff16156111395760405162461bcd60e51b815260040161075c906125c0565b600481015460ff16600281111561114c57fe5b6112d0576005805460019081019091556040805160c08101825289815260208101869052815183815280830183529092918301918160200160208202803683375050508152604080516000808252602080830184528085019290925260018385018190524360609095019490945268ffffffffffffffffff871681526008825282812088825282528290208451815584820151938101939093559083015180516111fc9260028501920190611c9d565b5060608201518051611218916003840191602090910190611c9d565b50608082015160048201805460ff1916600183600281111561123657fe5b021790555060a08201518160050155905050338160020160008154811061125957fe5b600091825260209091200180546001600160a01b0319166001600160a01b03929092169190911790556001886001600160401b03168a60ff167f803c5a12f6bde629cea32e63d4b92d1b560816a6fb72e939d3c89e1cab6504178a876040516112c3929190612486565b60405180910390a461131b565b806001015483146112f35760405162461bcd60e51b815260040161075c906128fa565b600281018054600181018255600091825260209091200180546001600160a01b031916331790555b68ffffffffffffffffff8216600090815260096020908152604080832086845282528083203384529091529020805460ff19166001179055600481015460ff16600281111561136657fe5b886001600160401b03168a60ff167f25f8daaa4635a7729927ba3f5b3d59cc3320aca7c32c9db4e7ca7b95743436408a6040516113a39190612435565b60405180910390a4600354600282015410610c0857806001015483146113db5760405162461bcd60e51b815260040161075c90612684565b6004818101805460ff1916600217905581546000818152600760205260409081902054905163712467f960e11b81526001600160a01b0390911692839263e248cff29261142c928c918c91016124bd565b600060405180830381600087803b15801561144657600080fd5b505af115801561145a573d6000803e3d6000fd5b50505050600482015460ff16600281111561147157fe5b896001600160401b03168b60ff167f803c5a12f6bde629cea32e63d4b92d1b560816a6fb72e939d3c89e1cab650417856000015486600101546040516114b8929190612486565b60405180910390a450505050505050505050565b6000818152600160205260408120610a1b90611934565b6114f26040516107329061236b565b61150e5760405162461bcd60e51b815260040161075c90612725565b6000828152600760205260409081902080546001600160a01b0319166001600160a01b0386169081179091559051635c7d1b9b60e11b815284919063b8fa373690610cc7908690869060040161243e565b6115676117f4565b611576604051610d769061238b565b156115935760405162461bcd60e51b815260040161075c906127d6565b6115b06040516115a29061238b565b604051809103902082610790565b6040516001600160a01b038216907f03580ee9f53a62b7cb409a2cb56f9be87747dd15017afc5cef6eef321e4fb2c590600090a250600480546001019055565b60008281526001602052604090206002015461160e9061051c611712565b6108105760405162461bcd60e51b815260040161075c9061275c565b60035481565b61163f6040516107329061236b565b61165b5760405162461bcd60e51b815260040161075c90612725565b6000848152600760205260409081902080546001600160a01b0319166001600160a01b0388169081179091559051635dd40c2d60e11b815286919063bba8185a906116b0908890889088908890600401612455565b600060405180830381600087803b1580156116ca57600080fd5b505af11580156116de573d6000803e3d6000fd5b50505050505050505050565b604051610d4e906123a3565b604051610d4e9061236b565b61170a6117f4565b610c4f61193f565b3390565b6000828152600160205260409020611734908263ffffffff61198116565b156107d457611741611712565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526001602052604090206117a3908263ffffffff61199616565b156107d4576117b0611712565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b6117ff600033610d24565b610c4f5760405162461bcd60e51b815260040161075c90612879565b60005460ff1615610c4f5760405162461bcd60e51b815260040161075c906127ac565b61184661181b565b6000805460ff191660011790556040517f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258906118839033906123be565b60405180910390a1565b6000610d1d83836119ab565b6000610d1d836001600160a01b0384166119f0565b6119048363a9059cbb60e01b84846040516024016118cd929190612411565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611a08565b505050565b6119186040516107329061238b565b610c4f5760405162461bcd60e51b815260040161075c90612844565b6000610a1b82611af3565b611947611af7565b6000805460ff191690556040517f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa906118839033906123be565b6000610d1d836001600160a01b038416611b19565b6000610d1d836001600160a01b038416611b63565b815460009082106119ce5760405162461bcd60e51b815260040161075c9061252f565b8260000182815481106119dd57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b611a1a826001600160a01b0316611c29565b611a365760405162461bcd60e51b815260040161075c9061295c565b60006060836001600160a01b031683604051611a529190612332565b6000604051808303816000865af19150503d8060008114611a8f576040519150601f19603f3d011682016040523d82523d6000602084013e611a94565b606091505b509150915081611ab65760405162461bcd60e51b815260040161075c906126bb565b805115611aed5780806020019051810190611ad19190612071565b611aed5760405162461bcd60e51b815260040161075c906128b0565b50505050565b5490565b60005460ff16610c4f5760405162461bcd60e51b815260040161075c906125ef565b6000611b2583836119f0565b611b5b57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610a1b565b506000610a1b565b60008181526001830160205260408120548015611c1f5783546000198083019190810190600090879083908110611b9657fe5b9060005260206000200154905080876000018481548110611bb357fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611be357fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610a1b565b6000915050610a1b565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611c5d57508115155b949350505050565b6040805160c0810182526000808252602082018190526060928201839052828201929092529060808201908152602001600081525090565b828054828255906000526020600020908101928215611cf2579160200282015b82811115611cf257825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190611cbd565b50611cfe929150611d02565b5090565b610a2891905b80821115611cfe5780546001600160a01b0319168155600101611d08565b60008083601f840112611d37578182fd5b5081356001600160401b03811115611d4d578182fd5b6020830191508360208083028501011115611d6757600080fd5b9250929050565b60008083601f840112611d7f578182fd5b5081356001600160401b03811115611d95578182fd5b602083019150836020828501011115611d6757600080fd5b803560ff81168114610a1b57600080fd5b600060208284031215611dcf578081fd5b8135610d1d81612abe565b60008060408385031215611dec578081fd5b8235611df781612abe565b91506020830135611e0781612abe565b809150509250929050565b60008060008060808587031215611e27578182fd5b8435611e3281612abe565b93506020850135611e4281612abe565b92506040850135611e5281612abe565b9396929550929360600135925050565b600080600060608486031215611e76578283fd5b8335611e8181612abe565b92506020840135611e9181612abe565b91506040840135611ea181612ad3565b809150509250925092565b600080600060608486031215611ec0578283fd5b8335611ecb81612abe565b9250602084013591506040840135611ea181612abe565b600080600080600060a08688031215611ef9578081fd5b8535611f0481612abe565b9450602086013593506040860135611f1b81612abe565b92506060860135611f2b81612ae1565b91506080860135611f3b81612ae1565b809150509295509295909350565b60008060408385031215611f5b578182fd5b8235611f6681612abe565b946020939093013593505050565b60008060008060008060608789031215611f8c578081fd5b86356001600160401b0380821115611fa2578283fd5b611fae8a838b01611d26565b90985096506020890135915080821115611fc6578283fd5b611fd28a838b01611d26565b90965094506040890135915080821115611fea578283fd5b50611ff789828a01611d26565b979a9699509497509295939492505050565b6000806000806040858703121561201e578182fd5b84356001600160401b0380821115612034578384fd5b61204088838901611d26565b90965094506020870135915080821115612058578384fd5b5061206587828801611d26565b95989497509550505050565b600060208284031215612082578081fd5b8151610d1d81612ad3565b60006020828403121561209e578081fd5b5035919050565b600080604083850312156120b7578182fd5b823591506020830135611e0781612abe565b600080604083850312156120db578182fd5b50508035926020909101359150565b600080604083850312156120fc578182fd5b8235611f6681612af7565b60008060006060848603121561211b578081fd5b8335611ecb81612af7565b600060208284031215612137578081fd5b610d1d8383611dad565b60008060008060008060808789031215612159578384fd5b6121638888611dad565b95506020870135945060408701356001600160401b0380821115612185578586fd5b6121918a838b01611d6e565b909650945060608901359150808211156121a9578384fd5b50611ff789828a01611d6e565b600080604083850312156121c8578182fd5b611f668484611dad565b6000806000606084860312156121e6578081fd5b6121f08585611dad565b925060208401356001600160401b038116811461220b578182fd5b929592945050506040919091013590565b600080600080600060808688031215612233578283fd5b853560ff81168114612243578384fd5b945060208601356001600160401b03808216821461225f578485fd5b909450604087013593506060870135908082111561227b578283fd5b5061228888828901611d6e565b969995985093965092949392505050565b6000815180845260208085019450808401835b838110156122d15781516001600160a01b0316875295820195908201906001016122ac565b509495945050505050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b60006bffffffffffffffffffffffff198560601b16825282846014840137910160140190815292915050565b60008251815b818110156123525760208186018101518583015201612338565b818111156123605782828501525b509190910192915050565b735245534f555243455f5345545445525f524f4c4560601b815260140190565b6b52454c415945525f524f4c4560a01b8152600c0190565b6e4645455f5345545445525f524f4c4560881b8152600f0190565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b039290921682521515602082015260400190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b90815260200190565b9182526001600160a01b0316602082015260400190565b9384526001600160a01b039290921660208401526001600160e01b0319908116604084015216606082015260800190565b918252602082015260400190565b84815260208101849052608081016124ab84612ab4565b60408201939093526060015292915050565b6000848252604060208301526124d76040830184866122dc565b95945050505050565b86815260ff861660208201526001600160401b03851660408201526001600160a01b038416606082015260a06080820181905260009061252390830184866122dc565b98975050505050505050565b60208082526022908201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b6020808252602f908201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60408201526e0818591b5a5b881d1bc819dc985b9d608a1b606082015260800190565b6020808252601590820152741c995b185e595c88185b1c9958591e481d9bdd1959605a1b604082015260600190565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b6020808252601f908201527f6164647220646f65736e277420686176652072656c6179657220726f6c652100604082015260600190565b602080825260169082015275125b98dbdc9c9958dd08199959481cdd5c1c1b1a595960521b604082015260600190565b6020808252601b908201527f6461746120646f65736e2774206d617463682064617461686173680000000000604082015260600190565b6020808252818101527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604082015260600190565b6020808252818101527f7265736f757263654944206e6f74206d617070656420746f2068616e646c6572604082015260600190565b6020808252601d908201527f73656e646572206973206e6f74207265736f7572636520736574746572000000604082015260600190565b60208082526030908201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60408201526f2061646d696e20746f207265766f6b6560801b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252601e908201527f6164647220616c7265616479206861732072656c6179657220726f6c65210000604082015260600190565b60208082526018908201527f73656e646572206973206e6f7420666565207365747465720000000000000000604082015260600190565b6020808252818101527f73656e64657220646f65736e277420686176652072656c6179657220726f6c65604082015260600190565b6020808252601e908201527f73656e64657220646f65736e277420686176652061646d696e20726f6c650000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601190820152700c8c2e8c2d0c2e6d040dad2e6dac2e8c6d607b1b604082015260600190565b60208082526019908201527f6e6f2068616e646c657220666f72207265736f75726365494400000000000000604082015260600190565b6020808252601f908201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604082015260600190565b6020808252602f908201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560408201526e103937b632b9903337b91039b2b63360891b606082015260800190565b60208082526019908201527f70726f706f73616c20616c726561647920657865637574656400000000000000604082015260600190565b6000602082528251602083015260208301516040830152604083015160c06060840152612a4960e0840182612299565b6060850151848203601f190160808601529150612a668183612299565b60808601519250612a7683612ab4565b8260a086015260a086015160c086015280935050505092915050565b6001600160401b0391909116815260200190565b60ff91909116815260200190565b60038110610a4957fe5b6001600160a01b0381168114610a4957600080fd5b8015158114610a4957600080fd5b6001600160e01b031981168114610a4957600080fd5b68ffffffffffffffffff81168114610a4957600080fdfea2646970667358221220b6f2cf5ee9577c2f5c0078992abdf5b5e3c8aba17863f0b3fe8690ec254f846864736f6c6343000604003300000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000040000000000000000000000000cc35215953725637c433404c01546c49a0ba6a1000000000000000000000000c5e370bf1f1013d913df3acfd5a79d2af8bc88ba0000000000000000000000004f4d8d40eaa65b2dbe7cf9f6e7fb0c807e1ed6540000000000000000000000001e6a269fe265c44eb18ab6633c3137be48e8c898

Deployed Bytecode

0x60806040526004361061023b5760003560e01c80639010d07c1161012e578063c0331b3e116100ab578063d7a9cd791161006f578063d7a9cd79146106af578063e8437ee7146106c4578063e9347683146106e4578063eb6e53aa146106f9578063ffaac0eb1461070e5761023b565b8063c0331b3e1461060f578063ca15c8731461062f578063cb10f2151461064f578063cdb0f73a1461066f578063d547741f1461068f5761023b565b8063a217fddf116100f2578063a217fddf1461056b578063a49e88d914610580578063a9cf69fa146105a0578063aa81cea7146105cd578063beab7131146105ed5761023b565b80639010d07c146104e157806391d1485414610501578063926d7d7f146105215780639d5773e0146105365780639d82dd631461054b5761023b565b8063541d5548116101bc5780637febe63f116101805780637febe63f1461044a578063802aabe81461046a57806380ae1c281461047f57806384db809f1461049457806385802129146104c15761023b565b8063541d5548146103b55780635c975abb146103e25780635e1fab0f146103f757806373c45c9814610417578063780cf0041461042a5761023b565b80634603ae38116102035780634603ae38146102f85780634b0b919d146103185780634e05600514610345578063505987191461036557806352bd874b146103955761023b565b806313a7e54e14610240578063248a9ca3146102625780632f2ff15d1461029857806336568abe146102b857806339356261146102d8575b600080fd5b34801561024c57600080fd5b5061026061025b3660046121b6565b610723565b005b34801561026e57600080fd5b5061028261027d36600461208d565b61077b565b60405161028f9190612435565b60405180910390f35b3480156102a457600080fd5b506102606102b33660046120a5565b610790565b3480156102c457600080fd5b506102606102d33660046120a5565b6107d8565b3480156102e457600080fd5b506102606102f3366004611dda565b61081a565b34801561030457600080fd5b50610260610313366004612009565b610887565b34801561032457600080fd5b50610338610333366004612126565b610915565b60405161028f9190612a92565b34801561035157600080fd5b5061026061036036600461208d565b610930565b34801561037157600080fd5b506103856103803660046120ea565b61096b565b60405161028f9493929190612494565b3480156103a157600080fd5b506102606103b0366004611f49565b6109a3565b3480156103c157600080fd5b506103d56103d0366004611dbe565b6109fc565b60405161028f919061242a565b3480156103ee57600080fd5b506103d5610a21565b34801561040357600080fd5b50610260610412366004611dbe565b610a2b565b610260610425366004612141565b610a4c565b34801561043657600080fd5b50610260610445366004611e12565b610ba0565b34801561045657600080fd5b506103d5610465366004612107565b610c13565b34801561047657600080fd5b50610282610c39565b34801561048b57600080fd5b50610260610c3f565b3480156104a057600080fd5b506104b46104af36600461208d565b610c51565b60405161028f91906123be565b3480156104cd57600080fd5b506102606104dc366004611e62565b610c6c565b3480156104ed57600080fd5b506104b46104fc3660046120c9565b610cff565b34801561050d57600080fd5b506103d561051c3660046120a5565b610d24565b34801561052d57600080fd5b50610282610d42565b34801561054257600080fd5b50610282610d59565b34801561055757600080fd5b50610260610566366004611dbe565b610d5f565b34801561057757600080fd5b50610282610dfe565b34801561058c57600080fd5b5061028261059b366004612126565b610e03565b3480156105ac57600080fd5b506105c06105bb3660046121d2565b610e15565b60405161028f9190612a19565b3480156105d957600080fd5b506102606105e8366004611f74565b610f69565b3480156105f957600080fd5b50610602610fe7565b60405161028f9190612aa6565b34801561061b57600080fd5b5061026061062a36600461221c565b610ff0565b34801561063b57600080fd5b5061028261064a36600461208d565b6114cc565b34801561065b57600080fd5b5061026061066a366004611eac565b6114e3565b34801561067b57600080fd5b5061026061068a366004611dbe565b61155f565b34801561069b57600080fd5b506102606106aa3660046120a5565b6115f0565b3480156106bb57600080fd5b5061028261162a565b3480156106d057600080fd5b506102606106df366004611ee2565b611630565b3480156106f057600080fd5b506102826116ea565b34801561070557600080fd5b506102826116f6565b34801561071a57600080fd5b50610260611702565b610740604051610732906123a3565b604051809103902033610d24565b6107655760405162461bcd60e51b815260040161075c9061280d565b60405180910390fd5b60ff9091166000908152600a6020526040902055565b60009081526001602052604090206002015490565b6000828152600160205260409020600201546107ae9061051c611712565b6107ca5760405162461bcd60e51b815260040161075c90612571565b6107d48282611716565b5050565b6107e0611712565b6001600160a01b0316816001600160a01b0316146108105760405162461bcd60e51b815260040161075c90612993565b6107d48282611785565b6108226117f4565b604051630693020f60e51b815282906001600160a01b0382169063d26041e0906108509085906004016123be565b600060405180830381600087803b15801561086a57600080fd5b505af115801561087e573d6000803e3d6000fd5b50505050505050565b61088f6117f4565b60005b8381101561090e578484828181106108a657fe5b90506020020160208101906108bb9190611dbe565b6001600160a01b03166108fc8484848181106108d357fe5b905060200201359081150290604051600060405180830381858888f19350505050158015610905573d6000803e3d6000fd5b50600101610892565b5050505050565b6006602052600090815260409020546001600160401b031681565b6109386117f4565b600381905560405181907fa20d6b84cd798a24038be305eff8a45ca82ef54a2aa2082005d8e14c0a4746c890600090a250565b600860209081526000928352604080842090915290825290208054600182015460048301546005909301549192909160ff9091169084565b6109b2604051610732906123a3565b6109ce5760405162461bcd60e51b815260040161075c9061280d565b604051637ce3489b60e01b815282906001600160a01b03821690637ce3489b90610850908590600401612435565b6000610a1b604051610a0d9061238b565b604051809103902083610d24565b92915050565b60005460ff165b90565b610a336117f4565b610a3e600082610790565b610a496000336107d8565b50565b610a5461181b565b60ff86166000908152600a60205260409020543414610a855760405162461bcd60e51b815260040161075c90612654565b6000858152600760205260409020546001600160a01b031680610aba5760405162461bcd60e51b815260040161075c906126f0565b60ff871660009081526006602052604090819020805467ffffffffffffffff19811660016001600160401b03928316019182161790915590516338995da960e01b815282906001600160a01b038216906338995da990610b28908b908d90879033908e908e906004016124e0565b600060405180830381600087803b158015610b4257600080fd5b505af1158015610b56573d6000803e3d6000fd5b50505050816001600160401b0316888a60ff167fdbb69440df8433824a026ef190652f29929eb64b4d1d5d2a69be8afe3e6eaed860405160405180910390a4505050505050505050565b610ba86117f4565b604051636ce5768960e11b815284906001600160a01b0382169063d9caed1290610bda908790879087906004016123d2565b600060405180830381600087803b158015610bf457600080fd5b505af1158015610c08573d6000803e3d6000fd5b505050505050505050565b600960209081526000938452604080852082529284528284209052825290205460ff1681565b60045481565b610c476117f4565b610c4f61183e565b565b6007602052600090815260409020546001600160a01b031681565b610c7b6040516107329061236b565b610c975760405162461bcd60e51b815260040161075c90612725565b604051631764b06b60e21b815283906001600160a01b03821690635d92c1ac90610cc790869086906004016123f6565b600060405180830381600087803b158015610ce157600080fd5b505af1158015610cf5573d6000803e3d6000fd5b5050505050505050565b6000828152600160205260408120610d1d908363ffffffff61188d16565b9392505050565b6000828152600160205260408120610d1d908363ffffffff61189916565b604051610d4e9061238b565b604051809103902081565b60055481565b610d676117f4565b610d84604051610d769061238b565b604051809103902082610d24565b610da05760405162461bcd60e51b815260040161075c9061261d565b610dbd604051610daf9061238b565b6040518091039020826115f0565b6040516001600160a01b038216907f10e1f7ce9fd7d1b90a66d13a2ab3cb8dd7f29f3f8d520b143b063ccfbab6906b90600090a25060048054600019019055565b600081565b600a6020526000908152604090205481565b610e1d611c65565b68ffffffffffffffffff60ff8516600885811b68ffffffffffffffff001691909117918216600090815260209182526040808220868352835290819020815160c08101835281548152600182015481850152600282018054845181870281018701865281815292959394860193830182828015610ec357602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610ea5575b5050505050815260200160038201805480602002602001604051908101604052809291908181526020018280548015610f2557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610f07575b5050509183525050600482015460209091019060ff166002811115610f4657fe5b6002811115610f5157fe5b81526020016005820154815250509150509392505050565b610f716117f4565b60005b8581101561087e576000858583818110610f8a57fe5b9050602002016020810190610f9f9190611dbe565b9050610fde81898985818110610fb157fe5b9050602002016020810190610fc69190611dbe565b868686818110610fd257fe5b905060200201356118ae565b50600101610f74565b60025460ff1681565b610ff8611909565b61100061181b565b60008381526007602090815260408083205490516001600160a01b0390911692916110319184918791879101612306565b60408051601f19818403018152918152815160209283012068ffffffffffffffff0060088a811b9190911660ff8c161768ffffffffffffffffff8116600090815291855283822083835285528382208a83526007909552929020549093509091906001600160a01b03166110b75760405162461bcd60e51b815260040161075c90612925565b600481015460019060ff1660028111156110cd57fe5b11156110eb5760405162461bcd60e51b815260040161075c906129e2565b68ffffffffffffffffff82166000908152600960209081526040808320868452825280832033845290915290205460ff16156111395760405162461bcd60e51b815260040161075c906125c0565b600481015460ff16600281111561114c57fe5b6112d0576005805460019081019091556040805160c08101825289815260208101869052815183815280830183529092918301918160200160208202803683375050508152604080516000808252602080830184528085019290925260018385018190524360609095019490945268ffffffffffffffffff871681526008825282812088825282528290208451815584820151938101939093559083015180516111fc9260028501920190611c9d565b5060608201518051611218916003840191602090910190611c9d565b50608082015160048201805460ff1916600183600281111561123657fe5b021790555060a08201518160050155905050338160020160008154811061125957fe5b600091825260209091200180546001600160a01b0319166001600160a01b03929092169190911790556001886001600160401b03168a60ff167f803c5a12f6bde629cea32e63d4b92d1b560816a6fb72e939d3c89e1cab6504178a876040516112c3929190612486565b60405180910390a461131b565b806001015483146112f35760405162461bcd60e51b815260040161075c906128fa565b600281018054600181018255600091825260209091200180546001600160a01b031916331790555b68ffffffffffffffffff8216600090815260096020908152604080832086845282528083203384529091529020805460ff19166001179055600481015460ff16600281111561136657fe5b886001600160401b03168a60ff167f25f8daaa4635a7729927ba3f5b3d59cc3320aca7c32c9db4e7ca7b95743436408a6040516113a39190612435565b60405180910390a4600354600282015410610c0857806001015483146113db5760405162461bcd60e51b815260040161075c90612684565b6004818101805460ff1916600217905581546000818152600760205260409081902054905163712467f960e11b81526001600160a01b0390911692839263e248cff29261142c928c918c91016124bd565b600060405180830381600087803b15801561144657600080fd5b505af115801561145a573d6000803e3d6000fd5b50505050600482015460ff16600281111561147157fe5b896001600160401b03168b60ff167f803c5a12f6bde629cea32e63d4b92d1b560816a6fb72e939d3c89e1cab650417856000015486600101546040516114b8929190612486565b60405180910390a450505050505050505050565b6000818152600160205260408120610a1b90611934565b6114f26040516107329061236b565b61150e5760405162461bcd60e51b815260040161075c90612725565b6000828152600760205260409081902080546001600160a01b0319166001600160a01b0386169081179091559051635c7d1b9b60e11b815284919063b8fa373690610cc7908690869060040161243e565b6115676117f4565b611576604051610d769061238b565b156115935760405162461bcd60e51b815260040161075c906127d6565b6115b06040516115a29061238b565b604051809103902082610790565b6040516001600160a01b038216907f03580ee9f53a62b7cb409a2cb56f9be87747dd15017afc5cef6eef321e4fb2c590600090a250600480546001019055565b60008281526001602052604090206002015461160e9061051c611712565b6108105760405162461bcd60e51b815260040161075c9061275c565b60035481565b61163f6040516107329061236b565b61165b5760405162461bcd60e51b815260040161075c90612725565b6000848152600760205260409081902080546001600160a01b0319166001600160a01b0388169081179091559051635dd40c2d60e11b815286919063bba8185a906116b0908890889088908890600401612455565b600060405180830381600087803b1580156116ca57600080fd5b505af11580156116de573d6000803e3d6000fd5b50505050505050505050565b604051610d4e906123a3565b604051610d4e9061236b565b61170a6117f4565b610c4f61193f565b3390565b6000828152600160205260409020611734908263ffffffff61198116565b156107d457611741611712565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526001602052604090206117a3908263ffffffff61199616565b156107d4576117b0611712565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b6117ff600033610d24565b610c4f5760405162461bcd60e51b815260040161075c90612879565b60005460ff1615610c4f5760405162461bcd60e51b815260040161075c906127ac565b61184661181b565b6000805460ff191660011790556040517f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258906118839033906123be565b60405180910390a1565b6000610d1d83836119ab565b6000610d1d836001600160a01b0384166119f0565b6119048363a9059cbb60e01b84846040516024016118cd929190612411565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611a08565b505050565b6119186040516107329061238b565b610c4f5760405162461bcd60e51b815260040161075c90612844565b6000610a1b82611af3565b611947611af7565b6000805460ff191690556040517f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa906118839033906123be565b6000610d1d836001600160a01b038416611b19565b6000610d1d836001600160a01b038416611b63565b815460009082106119ce5760405162461bcd60e51b815260040161075c9061252f565b8260000182815481106119dd57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b611a1a826001600160a01b0316611c29565b611a365760405162461bcd60e51b815260040161075c9061295c565b60006060836001600160a01b031683604051611a529190612332565b6000604051808303816000865af19150503d8060008114611a8f576040519150601f19603f3d011682016040523d82523d6000602084013e611a94565b606091505b509150915081611ab65760405162461bcd60e51b815260040161075c906126bb565b805115611aed5780806020019051810190611ad19190612071565b611aed5760405162461bcd60e51b815260040161075c906128b0565b50505050565b5490565b60005460ff16610c4f5760405162461bcd60e51b815260040161075c906125ef565b6000611b2583836119f0565b611b5b57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610a1b565b506000610a1b565b60008181526001830160205260408120548015611c1f5783546000198083019190810190600090879083908110611b9657fe5b9060005260206000200154905080876000018481548110611bb357fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611be357fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610a1b565b6000915050610a1b565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611c5d57508115155b949350505050565b6040805160c0810182526000808252602082018190526060928201839052828201929092529060808201908152602001600081525090565b828054828255906000526020600020908101928215611cf2579160200282015b82811115611cf257825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190611cbd565b50611cfe929150611d02565b5090565b610a2891905b80821115611cfe5780546001600160a01b0319168155600101611d08565b60008083601f840112611d37578182fd5b5081356001600160401b03811115611d4d578182fd5b6020830191508360208083028501011115611d6757600080fd5b9250929050565b60008083601f840112611d7f578182fd5b5081356001600160401b03811115611d95578182fd5b602083019150836020828501011115611d6757600080fd5b803560ff81168114610a1b57600080fd5b600060208284031215611dcf578081fd5b8135610d1d81612abe565b60008060408385031215611dec578081fd5b8235611df781612abe565b91506020830135611e0781612abe565b809150509250929050565b60008060008060808587031215611e27578182fd5b8435611e3281612abe565b93506020850135611e4281612abe565b92506040850135611e5281612abe565b9396929550929360600135925050565b600080600060608486031215611e76578283fd5b8335611e8181612abe565b92506020840135611e9181612abe565b91506040840135611ea181612ad3565b809150509250925092565b600080600060608486031215611ec0578283fd5b8335611ecb81612abe565b9250602084013591506040840135611ea181612abe565b600080600080600060a08688031215611ef9578081fd5b8535611f0481612abe565b9450602086013593506040860135611f1b81612abe565b92506060860135611f2b81612ae1565b91506080860135611f3b81612ae1565b809150509295509295909350565b60008060408385031215611f5b578182fd5b8235611f6681612abe565b946020939093013593505050565b60008060008060008060608789031215611f8c578081fd5b86356001600160401b0380821115611fa2578283fd5b611fae8a838b01611d26565b90985096506020890135915080821115611fc6578283fd5b611fd28a838b01611d26565b90965094506040890135915080821115611fea578283fd5b50611ff789828a01611d26565b979a9699509497509295939492505050565b6000806000806040858703121561201e578182fd5b84356001600160401b0380821115612034578384fd5b61204088838901611d26565b90965094506020870135915080821115612058578384fd5b5061206587828801611d26565b95989497509550505050565b600060208284031215612082578081fd5b8151610d1d81612ad3565b60006020828403121561209e578081fd5b5035919050565b600080604083850312156120b7578182fd5b823591506020830135611e0781612abe565b600080604083850312156120db578182fd5b50508035926020909101359150565b600080604083850312156120fc578182fd5b8235611f6681612af7565b60008060006060848603121561211b578081fd5b8335611ecb81612af7565b600060208284031215612137578081fd5b610d1d8383611dad565b60008060008060008060808789031215612159578384fd5b6121638888611dad565b95506020870135945060408701356001600160401b0380821115612185578586fd5b6121918a838b01611d6e565b909650945060608901359150808211156121a9578384fd5b50611ff789828a01611d6e565b600080604083850312156121c8578182fd5b611f668484611dad565b6000806000606084860312156121e6578081fd5b6121f08585611dad565b925060208401356001600160401b038116811461220b578182fd5b929592945050506040919091013590565b600080600080600060808688031215612233578283fd5b853560ff81168114612243578384fd5b945060208601356001600160401b03808216821461225f578485fd5b909450604087013593506060870135908082111561227b578283fd5b5061228888828901611d6e565b969995985093965092949392505050565b6000815180845260208085019450808401835b838110156122d15781516001600160a01b0316875295820195908201906001016122ac565b509495945050505050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b60006bffffffffffffffffffffffff198560601b16825282846014840137910160140190815292915050565b60008251815b818110156123525760208186018101518583015201612338565b818111156123605782828501525b509190910192915050565b735245534f555243455f5345545445525f524f4c4560601b815260140190565b6b52454c415945525f524f4c4560a01b8152600c0190565b6e4645455f5345545445525f524f4c4560881b8152600f0190565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b039290921682521515602082015260400190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b90815260200190565b9182526001600160a01b0316602082015260400190565b9384526001600160a01b039290921660208401526001600160e01b0319908116604084015216606082015260800190565b918252602082015260400190565b84815260208101849052608081016124ab84612ab4565b60408201939093526060015292915050565b6000848252604060208301526124d76040830184866122dc565b95945050505050565b86815260ff861660208201526001600160401b03851660408201526001600160a01b038416606082015260a06080820181905260009061252390830184866122dc565b98975050505050505050565b60208082526022908201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b6020808252602f908201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60408201526e0818591b5a5b881d1bc819dc985b9d608a1b606082015260800190565b6020808252601590820152741c995b185e595c88185b1c9958591e481d9bdd1959605a1b604082015260600190565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b6020808252601f908201527f6164647220646f65736e277420686176652072656c6179657220726f6c652100604082015260600190565b602080825260169082015275125b98dbdc9c9958dd08199959481cdd5c1c1b1a595960521b604082015260600190565b6020808252601b908201527f6461746120646f65736e2774206d617463682064617461686173680000000000604082015260600190565b6020808252818101527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604082015260600190565b6020808252818101527f7265736f757263654944206e6f74206d617070656420746f2068616e646c6572604082015260600190565b6020808252601d908201527f73656e646572206973206e6f74207265736f7572636520736574746572000000604082015260600190565b60208082526030908201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60408201526f2061646d696e20746f207265766f6b6560801b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252601e908201527f6164647220616c7265616479206861732072656c6179657220726f6c65210000604082015260600190565b60208082526018908201527f73656e646572206973206e6f7420666565207365747465720000000000000000604082015260600190565b6020808252818101527f73656e64657220646f65736e277420686176652072656c6179657220726f6c65604082015260600190565b6020808252601e908201527f73656e64657220646f65736e277420686176652061646d696e20726f6c650000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601190820152700c8c2e8c2d0c2e6d040dad2e6dac2e8c6d607b1b604082015260600190565b60208082526019908201527f6e6f2068616e646c657220666f72207265736f75726365494400000000000000604082015260600190565b6020808252601f908201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604082015260600190565b6020808252602f908201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560408201526e103937b632b9903337b91039b2b63360891b606082015260800190565b60208082526019908201527f70726f706f73616c20616c726561647920657865637574656400000000000000604082015260600190565b6000602082528251602083015260208301516040830152604083015160c06060840152612a4960e0840182612299565b6060850151848203601f190160808601529150612a668183612299565b60808601519250612a7683612ab4565b8260a086015260a086015160c086015280935050505092915050565b6001600160401b0391909116815260200190565b60ff91909116815260200190565b60038110610a4957fe5b6001600160a01b0381168114610a4957600080fd5b8015158114610a4957600080fd5b6001600160e01b031981168114610a4957600080fd5b68ffffffffffffffffff81168114610a4957600080fdfea2646970667358221220b6f2cf5ee9577c2f5c0078992abdf5b5e3c8aba17863f0b3fe8690ec254f846864736f6c63430006040033

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

00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000040000000000000000000000000cc35215953725637c433404c01546c49a0ba6a1000000000000000000000000c5e370bf1f1013d913df3acfd5a79d2af8bc88ba0000000000000000000000004f4d8d40eaa65b2dbe7cf9f6e7fb0c807e1ed6540000000000000000000000001e6a269fe265c44eb18ab6633c3137be48e8c898

-----Decoded View---------------
Arg [0] : chainID (uint8): 2
Arg [1] : initialRelayers (address[]): 0x0cc35215953725637c433404C01546c49A0ba6A1,0xC5e370bF1F1013D913dF3AcFd5A79d2aF8BC88bA,0x4f4d8D40EAa65b2dbE7cF9f6E7fb0c807e1Ed654,0x1e6a269fE265c44Eb18AB6633C3137be48E8C898
Arg [2] : initialRelayerThreshold (uint256): 1

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [4] : 0000000000000000000000000cc35215953725637c433404c01546c49a0ba6a1
Arg [5] : 000000000000000000000000c5e370bf1f1013d913df3acfd5a79d2af8bc88ba
Arg [6] : 0000000000000000000000004f4d8d40eaa65b2dbe7cf9f6e7fb0c807e1ed654
Arg [7] : 0000000000000000000000001e6a269fe265c44eb18ab6633c3137be48e8c898


Deployed Bytecode Sourcemap

38809:17163:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;49641:134:0;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;49641:134:0;;;;;;;;:::i;:::-;;15834:114;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;15834:114:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;16210:227;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;16210:227:0;;;;;;;;:::i;17419:209::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;17419:209:0;;;;;;;;:::i;49997:228::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;49997:228:0;;;;;;;;:::i;55430:215::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;55430:215:0;;;;;;;;:::i;39369:46::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;39369:46:0;;;;;;;;:::i;:::-;;;;;;;;44608:179;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;44608:179:0;;;;;;;;:::i;39595:65::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;39595:65:0;;;;;;;;:::i;:::-;;;;;;;;;;;49783:206;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;49783:206:0;;;;;;;;:::i;43176:121::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;43176:121:0;;;;;;;;:::i;:::-;;;;;;;;31902:78;;5:9:-1;2:2;;;27:1;24;17:12;2:2;31902:78:0;;;:::i;43555:173::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;43555:173:0;;;;;;;;:::i;51490:688::-;;;;;;;;;:::i;50602:312::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;50602:312:0;;;;;;;;:::i;39747:90::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;39747:90:0;;;;;;;;:::i;38947:29::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;38947:29:0;;;:::i;43922:77::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;43922:77:0;;;:::i;39460:62::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;39460:62:0;;;;;;;;:::i;:::-;;;;;;;;48360:237;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;48360:237:0;;;;;;;;:::i;15507:138::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;15507:138:0;;;;;;;;:::i;14468:139::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;14468:139:0;;;;;;;;:::i;40655:64::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;40655:64:0;;;:::i;38983:30::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;38983:30:0;;;:::i;45699:295::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;45699:295:0;;;;;;;;:::i;13636:49::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;13636:49:0;;;:::i;39886:38::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;39886:38:0;;;;;;;;:::i;49193:261::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;49193:261:0;;;;;;;;:::i;:::-;;;;;;;;55653:316;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;55653:316:0;;;;;;;;:::i;38878:23::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;38878:23:0;;;:::i;:::-;;;;;;;;52843:2189;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;52843:2189:0;;;;;;;;:::i;14781:127::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;14781:127:0;;;;;;;;:::i;46545:311::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;46545:311:0;;;;;;;;:::i;45096:289::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;45096:289:0;;;;;;;;:::i;16682:230::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;16682:230:0;;;;;;;;:::i;38908:32::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;38908:32:0;;;:::i;47414:478::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;47414:478:0;;;;;;;;:::i;40726:70::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;40726:70:0;;;:::i;40803:80::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;40803:80:0;;;:::i;44195:81::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;44195:81:0;;;:::i;49641:134::-;41176:36;40768:28;;;;;;;;;;;;;;41201:10;41176:7;:36::i;:::-;41168:73;;;;-1:-1:-1;;;41168:73:0;;;;;;;;;;;;;;;;;49733:25:::1;::::0;;::::1;;::::0;;;:5:::1;:25;::::0;;;;:34;49641:134::o;15834:114::-;15891:7;15918:12;;;:6;:12;;;;;:22;;;;15834:114::o;16210:227::-;16302:12;;;;:6;:12;;;;;:22;;;16294:45;;16326:12;:10;:12::i;16294:45::-;16286:105;;;;-1:-1:-1;;;16286:105:0;;;;;;;;;16404:25;16415:4;16421:7;16404:10;:25::i;:::-;16210:227;;:::o;17419:209::-;17517:12;:10;:12::i;:::-;-1:-1:-1;;;;;17506:23:0;:7;-1:-1:-1;;;;;17506:23:0;;17498:83;;;;-1:-1:-1;;;17498:83:0;;;;;;;;;17594:26;17606:4;17612:7;17594:11;:26::i;49997:228::-;40924:12;:10;:12::i;:::-;50171:46:::1;::::0;-1:-1:-1;;;50171:46:0;;50145:14;;-1:-1:-1;;;;;50171:29:0;::::1;::::0;::::1;::::0;:46:::1;::::0;50201:15;;50171:46:::1;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;50171:46:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;50171:46:0;;;;40947:1;49997:228:::0;;:::o;55430:215::-;40924:12;:10;:12::i;:::-;55547:6:::1;55542:96;55559:16:::0;;::::1;55542:96;;;55597:5;;55603:1;55597:8;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;55597:17:0::1;:29;55615:7;;55623:1;55615:10;;;;;;;;;;;;;55597:29;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;-1:-1:::0;55577:3:0::1;;55542:96;;;;55430:215:::0;;;;:::o;39369:46::-;;;;;;;;;;;;-1:-1:-1;;;;;39369:46:0;;:::o;44608:179::-;40924:12;:10;:12::i;:::-;44694:17:::1;:32:::0;;;44742:37:::1;::::0;44714:12;;44742:37:::1;::::0;;;::::1;44608:179:::0;:::o;39595:65::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;49783:206::-;41176:36;40768:28;;;;;;41176:36;41168:73;;;;-1:-1:-1;;;41168:73:0;;;;;;;;;49948:33:::1;::::0;-1:-1:-1;;;49948:33:0;;49922:14;;-1:-1:-1;;;;;49948:21:0;::::1;::::0;::::1;::::0;:33:::1;::::0;49970:10;;49948:33:::1;;;;43176:121:::0;43235:4;43259:30;40694:25;;;;;;;;;;;;;;43281:7;43259;:30::i;:::-;43252:37;43176:121;-1:-1:-1;;43176:121:0:o;31902:78::-;31941:4;31965:7;;;31902:78;;:::o;43555:173::-;40924:12;:10;:12::i;:::-;43626:39:::1;13681:4;43656:8:::0;43626:9:::1;:39::i;:::-;43676:44;13681:4;43709:10;43676:12;:44::i;:::-;43555:173:::0;:::o;51490:688::-;32211:16;:14;:16::i;:::-;51662:25:::1;::::0;::::1;;::::0;;;:5:::1;:25;::::0;;;;;51649:9:::1;:38;51641:73;;;;-1:-1:-1::0;;;51641:73:0::1;;;;;;;;;51727:15;51745:39:::0;;;:27:::1;:39;::::0;;;;;-1:-1:-1;;;;;51745:39:0::1;51803:21:::0;51795:66:::1;;;;-1:-1:-1::0;;;51795:66:0::1;;;;;;;;;51898:34;::::0;::::1;51874:19;51898:34:::0;;;:14:::1;:34;::::0;;;;;;51896:36;;-1:-1:-1;;51896:36:0;::::1;::::0;-1:-1:-1;;;;;51896:36:0;;::::1;;::::0;;::::1;;::::0;;;52013:86;;-1:-1:-1;;;52013:86:0;;51994:7;;-1:-1:-1;;;;;52013:22:0;::::1;::::0;::::1;::::0;:86:::1;::::0;52036:10;;51898:34;;51896:36;;52082:10:::1;::::0;52094:4;;;;52013:86:::1;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;52013:86:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;52013:86:0;;;;52157:12;-1:-1:-1::0;;;;;52117:53:0::1;52145:10;52125:18;52117:53;;;;;;;;;;;;32238:1;;;51490:688:::0;;;;;;:::o;50602:312::-;40924:12;:10;:12::i;:::-;50848:58:::1;::::0;-1:-1:-1;;;50848:58:0;;50822:14;;-1:-1:-1;;;;;50848:16:0;::::1;::::0;::::1;::::0;:58:::1;::::0;50865:12;;50879:9;;50890:15;;50848:58:::1;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;50848:58:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;50848:58:0;;;;40947:1;50602:312:::0;;;;:::o;39747:90::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;38947:29::-;;;;:::o;43922:77::-;40924:12;:10;:12::i;:::-;43983:8:::1;:6;:8::i;:::-;43922:77::o:0;39460:62::-;;;;;;;;;;;;-1:-1:-1;;;;;39460:62:0;;:::o;48360:237::-;41318:41;40850:33;;;;;;41318:41;41310:83;;;;-1:-1:-1;;;41310:83:0;;;;;;;;;48546:43:::1;::::0;-1:-1:-1;;;48546:43:0;;48520:14;;-1:-1:-1;;;;;48546:19:0;::::1;::::0;::::1;::::0;:43:::1;::::0;48566:12;;48580:8;;48546:43:::1;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;48546:43:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;48546:43:0;;;;41404:1;48360:237:::0;;;:::o;15507:138::-;15580:7;15607:12;;;:6;:12;;;;;:30;;15631:5;15607:30;:23;:30;:::i;:::-;15600:37;15507:138;-1:-1:-1;;;15507:138:0:o;14468:139::-;14537:4;14561:12;;;:6;:12;;;;;:38;;14591:7;14561:38;:29;:38;:::i;40655:64::-;40694:25;;;;;;;;;;;;;;40655:64;:::o;38983:30::-;;;;:::o;45699:295::-;40924:12;:10;:12::i;:::-;45789:37:::1;40694:25;;;;;;;;;;;;;;45811:14;45789:7;:37::i;:::-;45781:81;;;;-1:-1:-1::0;;;45781:81:0::1;;;;;;;;;45873:40;40694:25;;;;;;;;;;;;;;45898:14;45873:10;:40::i;:::-;45929:30;::::0;-1:-1:-1;;;;;45929:30:0;::::1;::::0;::::1;::::0;;;::::1;-1:-1:-1::0;45970:14:0::1;:16:::0;;-1:-1:-1;;45970:16:0;;;45699:295::o;13636:49::-;13681:4;13636:49;:::o;39886:38::-;;;;;;;;;;;;;:::o;49193:261::-;49297:15;;:::i;:::-;49346:25;49375:21;;;49370:1;49346:25;;;;;49345:51;;;;49414:22;;;49325:17;49414:22;;;;;;;;;;;:32;;;;;;;;;49407:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49414:32;;49407:39;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;49407:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;49407:39:0;;;;;;;;;;;;;;;;-1:-1:-1;;;49407:39:0;;;-1:-1:-1;;49407:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49193:261;;;;;:::o;55653:316::-;40924:12;:10;:12::i;:::-;55798:6:::1;55793:169;55810:16:::0;;::::1;55793:169;;;55848:12;55870:10;;55881:1;55870:13;;;;;;;;;;;;;;;;;;;;;;55848:36;;55899:51;55922:5;55929;;55935:1;55929:8;;;;;;;;;;;;;;;;;;;;;;55939:7;;55947:1;55939:10;;;;;;;;;;;;;55899:22;:51::i;:::-;-1:-1:-1::0;55828:3:0::1;;55793:169;;38878:23:::0;;;;;;:::o;52843:2189::-;41089:15;:13;:15::i;:::-;32211:16:::1;:14;:16::i;:::-;52989:15:::2;53007:39:::0;;;:27:::2;:39;::::0;;;;;;;;53086:31;;-1:-1:-1;;;;;53007:39:0;;::::2;::::0;52989:15;53086:31:::2;::::0;53007:39;;53112:4;;;;53086:31:::2;;;;;::::0;;-1:-1:-1;;26:21;;::::2;22:32:::0;6:49;;53086:31:0;;;53076:42;;49:4:-1::2;53076:42:0::0;;::::2;::::0;53152:25;53176:1:::2;53152:25:::0;;;;;;;53181:15:::2;::::0;::::2;53151:45;53152:25;53235:22:::0;::::2;53131:17;53235:22:::0;;;;;;;;;:32;;;;;;;;53288:39;;;:27:::2;:39:::0;;;;;;;53076:42;;-1:-1:-1;53151:45:0;;53235:32;-1:-1:-1;;;;;53288:39:0::2;53280:91;;;;-1:-1:-1::0;;;53280:91:0::2;;;;;;;;;53395:16;::::0;::::2;::::0;53416:1:::2;::::0;53395:16:::2;;53390:22;::::0;::::2;;;;;;:27;;53382:65;;;;-1:-1:-1::0;;;53382:65:0::2;;;;;;;;;53467:31;::::0;::::2;;::::0;;;:19:::2;:31;::::0;;;;;;;:41;;;;;;;;53509:10:::2;53467:53:::0;;;;;;;;::::2;;53466:54;53458:88;;;;-1:-1:-1::0;;;53458:88:0::2;;;;;;;;;53568:16;::::0;::::2;::::0;::::2;;53563:22;::::0;::::2;;;;;;53559:724;;53609:15;53607:17:::0;;::::2;::::0;;::::2;::::0;;;53674:302:::2;::::0;;::::2;::::0;::::2;::::0;;;;;::::2;::::0;::::2;::::0;;;53796:16;;;;;;;::::2;::::0;;53674:302;;;;;;53796:16:::2;;;29:2:-1;21:6;17:15;125:4;109:14;101:6;88:42;-1:-1:::0;;;53674:302:0;;53842:16:::2;::::0;;53856:1:::2;53842:16:::0;;;53674:302:::2;53842:16:::0;;::::2;::::0;;53674:302;;::::2;::::0;;;;53887:21:::2;53674:302:::0;;;;;;53944:12:::2;53674:302:::0;;;;;;;;53639:22:::2;::::0;::::2;::::0;;:10:::2;:22:::0;;;;;:32;;;;;;;;:337;;;;;;::::2;::::0;;;::::2;::::0;;;;;;::::2;::::0;;;::::2;::::0;::::2;::::0;::::2;::::0;::::2;::::0;::::2;:::i;:::-;-1:-1:-1::0;53639:337:0::2;::::0;::::2;::::0;;;::::2;::::0;::::2;::::0;::::2;::::0;::::2;::::0;;::::2;::::0;::::2;:::i;:::-;-1:-1:-1::0;53639:337:0::2;::::0;::::2;::::0;::::2;::::0;::::2;::::0;;-1:-1:-1;;53639:337:0::2;::::0;;::::2;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;54017:10;53993:8;:18;;54012:1;53993:21;;;;;;;;;::::0;;;::::2;::::0;;;::::2;:34:::0;;-1:-1:-1;;;;;;53993:34:0::2;-1:-1:-1::0;;;;;53993:34:0;;;::::2;::::0;;;::::2;::::0;;-1:-1:-1;54070:12:0::2;-1:-1:-1::0;;;;;54047:81:0::2;54061:7;54047:81;;;54107:10;54119:8;54047:81;;;;;;;;;;;;;;;;53559:724;;;54181:8;:18;;;54169:8;:30;54161:60;;;;-1:-1:-1::0;;;54161:60:0::2;;;;;;;;;54236:18;::::0;::::2;27:10:-1::0;;39:1:::2;23:18:::0;::::2;45:23:::0;;-1:-1;54236:35:0;;;::::2;::::0;;;::::2;::::0;;-1:-1:-1;;;;;;54236:35:0::2;54260:10;54236:35;::::0;;53559:724:::2;54303:31;::::0;::::2;;::::0;;;:19:::2;:31;::::0;;;;;;;:41;;;;;;;;54345:10:::2;54303:53:::0;;;;;;;:60;;-1:-1:-1;;54303:60:0::2;54359:4;54303:60;::::0;;54415:16:::2;::::0;::::2;::::0;54303:60:::2;54415:16;54379:65;::::0;::::2;;;;;;54401:12;-1:-1:-1::0;;;;;54379:65:0::2;54392:7;54379:65;;;54433:10;54379:65;;;;;;;;;;;;;;;54541:17;::::0;54512:18:::2;::::0;::::2;:25:::0;:46:::2;54508:517;;54595:8;:18;;;54583:8;:30;54575:70;;;;-1:-1:-1::0;;;54575:70:0::2;;;;;;;;;54662:16;::::0;;::::2;:42:::0;;-1:-1:-1;;54662:42:0::2;54681:23;54662:42;::::0;;54798:20;;-1:-1:-1;54770:49:0;;;:27:::2;:49;::::0;;;;;;;54837:58;;-1:-1:-1;;;54837:58:0;;-1:-1:-1;;;;;54770:49:0;;::::2;::::0;;;54837:30:::2;::::0;:58:::2;::::0;54890:4;;;;54837:58:::2;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::2;2:2;54837:58:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;-1:-1:::0;;;;54954:16:0::2;::::0;::::2;::::0;::::2;;54917:96;::::0;::::2;;;;;;54940:12;-1:-1:-1::0;;;;;54917:96:0::2;54931:7;54917:96;;;54972:8;:20;;;54994:8;:18;;;54917:96;;;;;;;;;;;;;;;;54508:517;32238:1;;;;52843:2189:::0;;;;;:::o;14781:127::-;14844:7;14871:12;;;:6;:12;;;;;:29;;:27;:29::i;46545:311::-;41318:41;40850:33;;;;;;41318:41;41310:83;;;;-1:-1:-1;;;41310:83:0;;;;;;;;;46676:39:::1;::::0;;;:27:::1;:39;::::0;;;;;;:56;;-1:-1:-1;;;;;;46676:56:0::1;-1:-1:-1::0;;;;;46676:56:0;::::1;::::0;;::::1;::::0;;;46803:45;;-1:-1:-1;;;46803:45:0;;46676:56;;;46803:19:::1;::::0;:45:::1;::::0;46676:39;;46835:12;;46803:45:::1;;;;45096:289:::0;40924:12;:10;:12::i;:::-;45184:37:::1;40694:25;;;;;;45184:37;45183:38;45175:81;;;;-1:-1:-1::0;;;45175:81:0::1;;;;;;;;;45267:39;40694:25;;;;;;;;;;;;;;45291:14;45267:9;:39::i;:::-;45322:28;::::0;-1:-1:-1;;;;;45322:28:0;::::1;::::0;::::1;::::0;;;::::1;-1:-1:-1::0;45361:14:0::1;:16:::0;;::::1;;::::0;;45096:289::o;16682:230::-;16775:12;;;;:6;:12;;;;;:22;;;16767:45;;16799:12;:10;:12::i;16767:45::-;16759:106;;;;-1:-1:-1;;;16759:106:0;;;;;;;;38908:32;;;;:::o;47414:478::-;41318:41;40850:33;;;;;;41318:41;41310:83;;;;-1:-1:-1;;;41310:83:0;;;;;;;;;47661:39:::1;::::0;;;:27:::1;:39;::::0;;;;;;:56;;-1:-1:-1;;;;;;47661:56:0::1;-1:-1:-1::0;;;;;47661:56:0;::::1;::::0;;::::1;::::0;;;47796:88;;-1:-1:-1;;;47796:88:0;;47661:56;;;47796:19:::1;::::0;:88:::1;::::0;47661:39;;47828:15;;47845:18;;47865;;47796:88:::1;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;47796:88:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;47796:88:0;;;;41404:1;47414:478:::0;;;;;:::o;40726:70::-;40768:28;;;;;;40803:80;40850:33;;;;;;44195:81;40924:12;:10;:12::i;:::-;44258:10:::1;:8;:10::i;11581:106::-:0;11669:10;11581:106;:::o;18539:188::-;18613:12;;;;:6;:12;;;;;:33;;18638:7;18613:33;:24;:33;:::i;:::-;18609:111;;;18695:12;:10;:12::i;:::-;-1:-1:-1;;;;;18668:40:0;18686:7;-1:-1:-1;;;;;18668:40:0;18680:4;18668:40;;;;;;;;;;18539:188;;:::o;18735:192::-;18810:12;;;;:6;:12;;;;;:36;;18838:7;18810:36;:27;:36;:::i;:::-;18806:114;;;18895:12;:10;:12::i;:::-;-1:-1:-1;;;;;18868:40:0;18886:7;-1:-1:-1;;;;;18868:40:0;18880:4;18868:40;;;;;;;;;;18735:192;;:::o;41624:136::-;41678:39;13681:4;41706:10;41678:7;:39::i;:::-;41670:82;;;;-1:-1:-1;;;41670:82:0;;;;;;;;32255:95;32314:7;;;;32313:8;32305:37;;;;-1:-1:-1;;;32305:37:0;;;;;;;;32858:116;32211:16;:14;:16::i;:::-;32918:7:::1;:14:::0;;-1:-1:-1;;32918:14:0::1;32928:4;32918:14;::::0;;32948:18:::1;::::0;::::1;::::0;::::1;::::0;32955:10:::1;::::0;32948:18:::1;;;;;;;;;;32858:116::o:0;6294:149::-;6368:7;6411:22;6415:3;6427:5;6411:3;:22::i;5589:158::-;5669:4;5693:46;5703:3;-1:-1:-1;;;;;5723:14:0;;5693:9;:46::i;27770:177::-;27853:86;27873:5;27903:23;;;27928:2;27932:5;27880:58;;;;;;;;;;;;;;-1:-1:-1;;26:21;;;22:32;6:49;;27880:58:0;;;49:4:-1;25:18;;61:17;;-1:-1;;;;;182:15;-1:-1;;;;;;27880:58:0;;;179:29:-1;;;;160:49;;;27853:19:0;:86::i;:::-;27770:177;;;:::o;41768:135::-;41825:33;40694:25;;;;;;41825:33;41817:78;;;;-1:-1:-1;;;41817:78:0;;;;;;;;5833:117;5896:7;5923:19;5931:3;5923:7;:19::i;33115:118::-;32578:13;:11;:13::i;:::-;33184:5:::1;33174:15:::0;;-1:-1:-1;;33174:15:0::1;::::0;;33205:20:::1;::::0;::::1;::::0;::::1;::::0;33214:10:::1;::::0;33205:20:::1;;5035:143:::0;5105:4;5129:41;5134:3;-1:-1:-1;;;;;5154:14:0;;5129:4;:41::i;5354:149::-;5427:4;5451:44;5459:3;-1:-1:-1;;;;;5479:14:0;;5451:7;:44::i;4577:204::-;4672:18;;4644:7;;4672:26;-1:-1:-1;4664:73:0;;;;-1:-1:-1;;;4664:73:0;;;;;;;;;4755:3;:11;;4767:5;4755:18;;;;;;;;;;;;;;;;4748:25;;4577:204;;;;:::o;3909:129::-;3982:4;4006:19;;;:12;;;;;:19;;;;;;:24;;;3909:129::o;29814:1115::-;30419:27;30427:5;-1:-1:-1;;;;;30419:25:0;;:27::i;:::-;30411:71;;;;-1:-1:-1;;;30411:71:0;;;;;;;;;30556:12;30570:23;30605:5;-1:-1:-1;;;;;30597:19:0;30617:4;30597:25;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;30555:67:0;;;;30641:7;30633:52;;;;-1:-1:-1;;;30633:52:0;;;;;;;;;30702:17;;:21;30698:224;;30844:10;30833:30;;;;;;;;;;;;;;30825:85;;;;-1:-1:-1;;;30825:85:0;;;;;;;;;29814:1115;;;;:::o;4124:109::-;4207:18;;4124:109::o;32619:95::-;32674:7;;;;32666:40;;;;-1:-1:-1;;;32666:40:0;;;;;;;;1689:414;1752:4;1774:21;1784:3;1789:5;1774:9;:21::i;:::-;1769:327;;-1:-1:-1;27:10;;39:1;23:18;;;45:23;;1812:11:0;:23;;;;;;;;;;;;;1995:18;;1973:19;;;:12;;;:19;;;;;;:40;;;;2028:11;;1769:327;-1:-1:-1;2079:5:0;2072:12;;2279:1544;2345:4;2484:19;;;:12;;;:19;;;;;;2520:15;;2516:1300;;2955:18;;-1:-1:-1;;2906:14:0;;;;2955:22;;;;2882:21;;2955:3;;:22;;3242;;;;;;;;;;;;;;3222:42;;3388:9;3359:3;:11;;3371:13;3359:26;;;;;;;;;;;;;;;;;;;:38;;;;3465:23;;;3507:1;3465:12;;;:23;;;;;;3491:17;;;3465:43;;3617:17;;3465:3;;3617:17;;;;;;;;;;;;;;;;;;;;;;3712:3;:12;;:19;3725:5;3712:19;;;;;;;;;;;3705:26;;;3755:4;3748:11;;;;;;;;2516:1300;3799:5;3792:12;;;;;8819:619;8879:4;9347:20;;9190:66;9387:23;;;;;;:42;;-1:-1:-1;9414:15:0;;;9387:42;9379:51;8819:619;-1:-1:-1;;;;8819:619:0:o;38809:17163::-;;;;;;;;;-1:-1:-1;38809:17163:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;38809:17163:0;-1:-1:-1;;;;;38809:17163:0;;;;;;;;;;;-1:-1:-1;38809:17163:0;;;;;;;-1:-1:-1;38809:17163:0;;;-1:-1:-1;38809:17163:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;-1:-1:-1;;;;;;38809:17163:0;;;;;;;313:352:-1;;;443:3;436:4;428:6;424:17;420:27;410:2;;-1:-1;;451:12;410:2;-1:-1;481:20;;-1:-1;;;;;510:30;;507:2;;;-1:-1;;543:12;507:2;587:4;579:6;575:17;563:29;;638:3;587:4;;622:6;618:17;579:6;604:32;;601:41;598:2;;;655:1;;645:12;598:2;403:262;;;;;;1997:336;;;2111:3;2104:4;2096:6;2092:17;2088:27;2078:2;;-1:-1;;2119:12;2078:2;-1:-1;2149:20;;-1:-1;;;;;2178:30;;2175:2;;;-1:-1;;2211:12;2175:2;2255:4;2247:6;2243:17;2231:29;;2306:3;2255:4;2286:17;2247:6;2272:32;;2269:41;2266:2;;;2323:1;;2313:12;2748:126;2813:20;;46565:4;46554:16;;49118:33;;49108:2;;49165:1;;49155:12;2881:241;;2985:2;2973:9;2964:7;2960:23;2956:32;2953:2;;;-1:-1;;2991:12;2953:2;85:6;72:20;97:33;124:5;97:33;;3393:366;;;3514:2;3502:9;3493:7;3489:23;3485:32;3482:2;;;-1:-1;;3520:12;3482:2;85:6;72:20;97:33;124:5;97:33;;;3572:63;-1:-1;3672:2;3711:22;;72:20;97:33;72:20;97:33;;;3680:63;;;;3476:283;;;;;;3766:617;;;;;3921:3;3909:9;3900:7;3896:23;3892:33;3889:2;;;-1:-1;;3928:12;3889:2;85:6;72:20;97:33;124:5;97:33;;;3980:63;-1:-1;4080:2;4119:22;;72:20;97:33;72:20;97:33;;;4088:63;-1:-1;4188:2;4227:22;;72:20;97:33;72:20;97:33;;;3883:500;;;;-1:-1;4196:63;;4296:2;4335:22;2408:20;;-1:-1;;3883:500;4390:485;;;;4525:2;4513:9;4504:7;4500:23;4496:32;4493:2;;;-1:-1;;4531:12;4493:2;85:6;72:20;97:33;124:5;97:33;;;4583:63;-1:-1;4683:2;4722:22;;72:20;97:33;72:20;97:33;;;4691:63;-1:-1;4791:2;4827:22;;1509:20;1534:30;1509:20;1534:30;;;4799:60;;;;4487:388;;;;;;4882:491;;;;5020:2;5008:9;4999:7;4995:23;4991:32;4988:2;;;-1:-1;;5026:12;4988:2;85:6;72:20;97:33;124:5;97:33;;;5078:63;-1:-1;5178:2;5217:22;;1778:20;;-1:-1;5286:2;5325:22;;72:20;97:33;72:20;97:33;;5380:739;;;;;;5550:3;5538:9;5529:7;5525:23;5521:33;5518:2;;;-1:-1;;5557:12;5518:2;85:6;72:20;97:33;124:5;97:33;;;5609:63;-1:-1;5709:2;5748:22;;1778:20;;-1:-1;5817:2;5856:22;;72:20;97:33;72:20;97:33;;;5825:63;-1:-1;5925:2;5963:22;;1914:20;1939:32;1914:20;1939:32;;;5933:62;-1:-1;6032:3;6071:22;;1914:20;1939:32;1914:20;1939:32;;;6041:62;;;;5512:607;;;;;;;;;6126:366;;;6247:2;6235:9;6226:7;6222:23;6218:32;6215:2;;;-1:-1;;6253:12;6215:2;85:6;72:20;97:33;124:5;97:33;;;6305:63;6405:2;6444:22;;;;2408:20;;-1:-1;;;6209:283;6499:959;;;;;;;6742:2;6730:9;6721:7;6717:23;6713:32;6710:2;;;-1:-1;;6748:12;6710:2;6806:17;6793:31;-1:-1;;;;;6844:18;6836:6;6833:30;6830:2;;;-1:-1;;6866:12;6830:2;6904:80;6976:7;6967:6;6956:9;6952:22;6904:80;;;6894:90;;-1:-1;6894:90;-1:-1;7049:2;7034:18;;7021:32;;-1:-1;7062:30;;;7059:2;;;-1:-1;;7095:12;7059:2;7133:80;7205:7;7196:6;7185:9;7181:22;7133:80;;;7123:90;;-1:-1;7123:90;-1:-1;7278:2;7263:18;;7250:32;;-1:-1;7291:30;;;7288:2;;;-1:-1;;7324:12;7288:2;;7362:80;7434:7;7425:6;7414:9;7410:22;7362:80;;;6704:754;;;;-1:-1;6704:754;;-1:-1;6704:754;;7352:90;;6704:754;-1:-1;;;6704:754;7465:694;;;;;7664:2;7652:9;7643:7;7639:23;7635:32;7632:2;;;-1:-1;;7670:12;7632:2;7728:17;7715:31;-1:-1;;;;;7766:18;7758:6;7755:30;7752:2;;;-1:-1;;7788:12;7752:2;7826:88;7906:7;7897:6;7886:9;7882:22;7826:88;;;7816:98;;-1:-1;7816:98;-1:-1;7979:2;7964:18;;7951:32;;-1:-1;7992:30;;;7989:2;;;-1:-1;;8025:12;7989:2;;8063:80;8135:7;8126:6;8115:9;8111:22;8063:80;;;7626:533;;;;-1:-1;8053:90;-1:-1;;;;7626:533;8166:257;;8278:2;8266:9;8257:7;8253:23;8249:32;8246:2;;;-1:-1;;8284:12;8246:2;1657:6;1651:13;1669:30;1693:5;1669:30;;8430:241;;8534:2;8522:9;8513:7;8509:23;8505:32;8502:2;;;-1:-1;;8540:12;8502:2;-1:-1;1778:20;;8496:175;-1:-1;8496:175;8678:366;;;8799:2;8787:9;8778:7;8774:23;8770:32;8767:2;;;-1:-1;;8805:12;8767:2;1791:6;1778:20;8857:63;;8957:2;9000:9;8996:22;72:20;97:33;124:5;97:33;;9051:366;;;9172:2;9160:9;9151:7;9147:23;9143:32;9140:2;;;-1:-1;;9178:12;9140:2;-1:-1;;1778:20;;;9330:2;9369:22;;;2408:20;;-1:-1;9134:283;9672:364;;;9792:2;9780:9;9771:7;9767:23;9763:32;9760:2;;;-1:-1;;9798:12;9760:2;2692:6;2679:20;2704:32;2730:5;2704:32;;10043:489;;;;10180:2;10168:9;10159:7;10155:23;10151:32;10148:2;;;-1:-1;;10186:12;10148:2;2692:6;2679:20;2704:32;2730:5;2704:32;;10539:237;;10641:2;10629:9;10620:7;10616:23;10612:32;10609:2;;;-1:-1;;10647:12;10609:2;10709:51;10752:7;10728:22;10709:51;;10783:861;;;;;;;10974:3;10962:9;10953:7;10949:23;10945:33;10942:2;;;-1:-1;;10981:12;10942:2;11043:51;11086:7;11062:22;11043:51;;;11033:61;;11131:2;11174:9;11170:22;1778:20;11139:63;;11267:2;11256:9;11252:18;11239:32;-1:-1;;;;;11291:18;11283:6;11280:30;11277:2;;;-1:-1;;11313:12;11277:2;11351:64;11407:7;11398:6;11387:9;11383:22;11351:64;;;11341:74;;-1:-1;11341:74;-1:-1;11480:2;11465:18;;11452:32;;-1:-1;11493:30;;;11490:2;;;-1:-1;;11526:12;11490:2;;11564:64;11620:7;11611:6;11600:9;11596:22;11564:64;;11651:362;;;11770:2;11758:9;11749:7;11745:23;11741:32;11738:2;;;-1:-1;;11776:12;11738:2;11838:51;11881:7;11857:22;11838:51;;12020:485;;;;12155:2;12143:9;12134:7;12130:23;12126:32;12123:2;;;-1:-1;;12161:12;12123:2;12223:51;12266:7;12242:22;12223:51;;;12213:61;;12311:2;12353:9;12349:22;2544:20;-1:-1;;;;;48902:5;46347:30;48878:5;48875:34;48865:2;;-1:-1;;48913:12;48865:2;12117:388;;12319:62;;-1:-1;;;12418:2;12457:22;;;;1778:20;;12117:388;12512:735;;;;;;12683:3;12671:9;12662:7;12658:23;12654:33;12651:2;;;-1:-1;;12690:12;12651:2;2826:6;2813:20;46565:4;49144:5;46554:16;49121:5;49118:33;49108:2;;-1:-1;;49155:12;49108:2;12742:61;-1:-1;12840:2;12878:22;;2544:20;-1:-1;;;;;46347:30;;;48875:34;;48865:2;;-1:-1;;48913:12;48865:2;12848:62;;-1:-1;12947:2;12986:22;;1778:20;;-1:-1;13083:2;13068:18;;13055:32;;13096:30;;;13093:2;;;-1:-1;;13129:12;13093:2;;13167:64;13223:7;13214:6;13203:9;13199:22;13167:64;;;12645:602;;;;-1:-1;12645:602;;-1:-1;13157:74;;;12645:602;-1:-1;;;12645:602;14005:654;;14180:5;44295:12;44696:6;44691:3;44684:19;44733:4;;44728:3;44724:14;14192:83;;44733:4;14342:5;44153:14;-1:-1;14381:256;14406:6;14403:1;14400:13;14381:256;;;14467:13;;-1:-1;;;;;46141:54;13646:37;;13408:14;;;;44549;;;;521:18;14421:9;14381:256;;;-1:-1;14643:10;;14115:544;-1:-1;;;;;14115:544;15148:297;;44696:6;44691:3;44684:19;47194:6;47189:3;44733:4;44728:3;44724:14;47171:30;-1:-1;44733:4;47241:6;44728:3;47232:16;;47225:27;44733:4;47825:7;;47829:2;15431:6;47809:14;47805:28;44728:3;15400:39;;15393:46;;15248:197;;;;;;27099:421;;47916:14;;46145:5;47920:2;47916:14;;13911:3;13904:58;47194:6;47189:3;27371:2;27366:3;27362:12;47171:30;47232:16;;27371:2;47232:16;47225:27;;;47232:16;27262:258;-1:-1;;27262:258;27527:262;;15954:5;44295:12;-1:-1;47339:101;47353:6;47350:1;47347:13;47339:101;;;16098:4;47420:11;;;;;47414:18;47401:11;;;47394:39;47368:10;47339:101;;;47455:6;47452:1;47449:13;47446:2;;;-1:-1;47511:6;47506:3;47502:16;47495:27;47446:2;-1:-1;16129:16;;;;;27652:137;-1:-1;;27652:137;27796:372;-1:-1;;;19197:43;;19181:2;19259:12;;27976:192;28175:372;-1:-1;;;23041:35;;23025:2;23095:12;;28355:192;28554:372;-1:-1;;;23724:38;;23708:2;23781:12;;28734:192;28933:213;-1:-1;;;;;46141:54;;;;13646:37;;29051:2;29036:18;;29022:124;29389:435;-1:-1;;;;;46141:54;;;13646:37;;46141:54;;;;29727:2;29712:18;;13646:37;29810:2;29795:18;;14839:37;;;;29563:2;29548:18;;29534:290;29831:312;-1:-1;;;;;46141:54;;;;13646:37;;45672:13;45665:21;30129:2;30114:18;;14732:34;29971:2;29956:18;;29942:201;30150:324;-1:-1;;;;;46141:54;;;;13646:37;;30460:2;30445:18;;14839:37;30296:2;30281:18;;30267:207;30481:201;45672:13;;45665:21;14732:34;;30593:2;30578:18;;30564:118;30689:213;14839:37;;;30807:2;30792:18;;30778:124;30909:324;14839:37;;;-1:-1;;;;;46141:54;31219:2;31204:18;;13646:37;31055:2;31040:18;;31026:207;31240:539;14839:37;;;-1:-1;;;;;46141:54;;;;31603:2;31588:18;;13646:37;-1:-1;;;;;;45838:78;;;31684:2;31669:18;;15077:36;45838:78;31765:2;31750:18;;15077:36;31438:3;31423:19;;31409:370;31786:324;14839:37;;;32096:2;32081:18;;14839:37;31932:2;31917:18;;31903:207;32117:581;14839:37;;;32501:2;32486:18;;14839:37;;;32336:3;32321:19;;46015:52;46061:5;46015:52;;;32601:2;32586:18;;16235:67;;;;32684:2;32669:18;14839:37;32307:391;;-1:-1;;32307:391;32705:428;;14869:5;14846:3;14839:37;32879:2;32997;32986:9;32982:18;32975:48;33037:86;32879:2;32868:9;32864:18;33109:6;33101;33037:86;;;33029:94;32850:283;-1:-1;;;;;32850:283;33140:767;14839:37;;;46565:4;46554:16;;33561:2;33546:18;;27052:35;-1:-1;;;;;46347:30;;33642:2;33627:18;;26937:36;-1:-1;;;;;46141:54;;33733:2;33718:18;;13515:58;46152:42;33770:3;33755:19;;33748:49;;;33140:767;;33811:86;;33385:19;;33883:6;33875;33811:86;;;33803:94;33371:536;-1:-1;;;;;;;;33371:536;33914:407;34105:2;34119:47;;;16706:2;34090:18;;;44684:19;16742:34;44724:14;;;16722:55;-1:-1;;;16797:12;;;16790:26;16835:12;;;34076:245;34328:407;34519:2;34533:47;;;17086:2;34504:18;;;44684:19;17122:34;44724:14;;;17102:55;-1:-1;;;17177:12;;;17170:39;17228:12;;;34490:245;34742:407;34933:2;34947:47;;;17479:2;34918:18;;;44684:19;-1:-1;;;44724:14;;;17495:44;17558:12;;;34904:245;35156:407;35347:2;35361:47;;;17809:2;35332:18;;;44684:19;-1:-1;;;44724:14;;;17825:43;17887:12;;;35318:245;35570:407;35761:2;35775:47;;;18138:2;35746:18;;;44684:19;18174:33;44724:14;;;18154:54;18227:12;;;35732:245;35984:407;36175:2;36189:47;;;18478:2;36160:18;;;44684:19;-1:-1;;;44724:14;;;18494:45;18558:12;;;36146:245;36398:407;36589:2;36603:47;;;18809:2;36574:18;;;44684:19;18845:29;44724:14;;;18825:50;18894:12;;;36560:245;36812:407;37003:2;37017:47;;;36988:18;;;44684:19;19546:34;44724:14;;;19526:55;19600:12;;;36974:245;37226:407;37417:2;37431:47;;;37402:18;;;44684:19;19887:34;44724:14;;;19867:55;19941:12;;;37388:245;37640:407;37831:2;37845:47;;;20192:2;37816:18;;;44684:19;20228:31;44724:14;;;20208:52;20279:12;;;37802:245;38054:407;38245:2;38259:47;;;20530:2;38230:18;;;44684:19;20566:34;44724:14;;;20546:55;-1:-1;;;20621:12;;;20614:40;20673:12;;;38216:245;38468:407;38659:2;38673:47;;;20924:2;38644:18;;;44684:19;-1:-1;;;44724:14;;;20940:39;20998:12;;;38630:245;38882:407;39073:2;39087:47;;;21249:2;39058:18;;;44684:19;21285:32;44724:14;;;21265:53;21337:12;;;39044:245;39296:407;39487:2;39501:47;;;21588:2;39472:18;;;44684:19;21624:26;44724:14;;;21604:47;21670:12;;;39458:245;39710:407;39901:2;39915:47;;;39886:18;;;44684:19;21957:34;44724:14;;;21937:55;22011:12;;;39872:245;40124:407;40315:2;40329:47;;;22262:2;40300:18;;;44684:19;22298:32;44724:14;;;22278:53;22350:12;;;40286:245;40538:407;40729:2;40743:47;;;22601:2;40714:18;;;44684:19;22637:34;44724:14;;;22617:55;-1:-1;;;22692:12;;;22685:34;22738:12;;;40700:245;40952:407;41143:2;41157:47;;;23346:2;41128:18;;;44684:19;-1:-1;;;44724:14;;;23362:40;23421:12;;;41114:245;41366:407;41557:2;41571:47;;;24032:2;41542:18;;;44684:19;24068:27;44724:14;;;24048:48;24115:12;;;41528:245;41780:407;41971:2;41985:47;;;24366:2;41956:18;;;44684:19;24402:33;44724:14;;;24382:54;24455:12;;;41942:245;42194:407;42385:2;42399:47;;;24706:2;42370:18;;;44684:19;24742:34;44724:14;;;24722:55;-1:-1;;;24797:12;;;24790:39;24848:12;;;42356:245;42608:407;42799:2;42813:47;;;25099:2;42784:18;;;44684:19;25135:27;44724:14;;;25115:48;25182:12;;;42770:245;43022:365;;43192:2;43213:17;43206:47;25495:16;25489:23;43192:2;43181:9;43177:18;14839:37;43192:2;25658:5;25654:16;25648:23;25725:14;43181:9;25725:14;14839:37;25725:14;25817:5;25813:16;25807:23;25416:4;25850:14;43181:9;25850:14;25843:38;25896:99;25407:14;43181:9;25407:14;25976:12;25896:99;;;25850:14;26073:16;;26067:23;26126:14;;;-1:-1;;26126:14;26110;;;26103:38;26067:23;-1:-1;26156:99;26130:4;26067:23;26156:99;;;26110:14;26336:5;26332:16;26326:23;26306:43;;46015:52;46061:5;46015:52;;;46814:43;26420:14;43181:9;26420:14;16235:67;26420:14;26517:5;26513:16;26507:23;25416:4;43181:9;26584:14;14839:37;43259:118;;;;;;43163:224;;;;;43614:209;-1:-1;;;;;46347:30;;;;26937:36;;43730:2;43715:18;;43701:122;43830:205;46565:4;46554:16;;;;27052:35;;43944:2;43929:18;;43915:120;47948:110;48036:1;48029:5;48026:12;48016:2;;48042:9;48065:117;-1:-1;;;;;46141:54;;48124:35;;48114:2;;48173:1;;48163:12;48329:111;48410:5;45672:13;45665:21;48388:5;48385:32;48375:2;;48431:1;;48421:12;48571:115;-1:-1;;;;;;45838:78;;48629:34;;48619:2;;48677:1;;48667:12;48939:115;46461:20;49024:5;46450:32;49000:5;48997:34;48987:2;;49045:1;;49035:12

Swarm Source

ipfs://b6f2cf5ee9577c2f5c0078992abdf5b5e3c8aba17863f0b3fe8690ec254f8468

Block Transaction Gas Used Reward
view all blocks ##produced##

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.