Contract 0xC2Bc5fD13Ce64efD249234C870D64569155609cd 2

 
Txn Hash
Block
From
To
Value [Txn Fee]
0x3a94d052ae68318b121c6a76e26afe5d72eeed8221871a68af15cbd87df3d5b721953332021-10-13 20:34:073 days 3 hrs ago0xda25ee226e534d868f0dd8a459536b03fee9079b IN  0xc2bc5fd13ce64efd249234c870d64569155609cd0 ETH0.000898288768 ETH
0x4015c92dd60d8a8a64c43ab30b06941d71d38de390ad59ef7445a9ca4fbc79f121943062021-10-13 20:02:073 days 3 hrs ago0xda25ee226e534d868f0dd8a459536b03fee9079b IN  0xc2bc5fd13ce64efd249234c870d64569155609cd0 ETH0.000899511489 ETH
0x78f8ce18fbc7464642433b07543d6ca21bd246071ff20a1e72c0eb3a4b17a9c021900142021-10-13 16:39:133 days 7 hrs ago0xda25ee226e534d868f0dd8a459536b03fee9079b IN  Contract Creation0 ETH0.062416747522 ETH
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CustomGatewayArbERC20

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at arbiscan.io on 2021-10-13
*/

// Sources flattened with hardhat v2.6.5 https://hardhat.org

// File contracts/tokenbridge/libraries/arb-bridge-eth/contracts/libraries/ICloneable.sol

// SPDX-License-Identifier: Apache-2.0

/*
 * Copyright 2019, Offchain Labs, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

pragma solidity ^0.6.11;

interface ICloneable {
    function isMaster() external view returns (bool);
}


// File contracts/tokenbridge/libraries/arb-bridge-eth/contracts/libraries/Cloneable.sol



/*
 * Copyright 2019-2020, Offchain Labs, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

pragma solidity ^0.6.11;

contract Cloneable is ICloneable {
    string private constant NOT_CLONE = "NOT_CLONE";

    bool private isMasterCopy;

    constructor() public {
        isMasterCopy = true;
    }

    function isMaster() external view override returns (bool) {
        return isMasterCopy;
    }

    function safeSelfDestruct(address payable dest) internal {
        require(!isMasterCopy, NOT_CLONE);
        selfdestruct(dest);
    }
}


// File @openzeppelin/contracts-upgradeable/utils/[email protected]



pragma solidity >=0.6.2 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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


// File @openzeppelin/contracts-upgradeable/proxy/[email protected]



// solhint-disable-next-line compiler-version
pragma solidity >=0.4.24 <0.8.0;

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {

    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /// @dev Returns true if and only if the function is running in the constructor
    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}


// File @openzeppelin/contracts-upgradeable/utils/[email protected]



pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract ContextUpgradeable is Initializable {
    function __Context_init() internal initializer {
        __Context_init_unchained();
    }

    function __Context_init_unchained() internal initializer {
    }
    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;
    }
    uint256[50] private __gap;
}


// File @openzeppelin/contracts-upgradeable/token/ERC20/[email protected]



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20Upgradeable {
    /**
     * @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-upgradeable/math/[email protected]



pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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


// File @openzeppelin/contracts-upgradeable/token/ERC20/[email protected]



pragma solidity >=0.6.0 <0.8.0;




/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable {
    using SafeMathUpgradeable for uint256;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

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

    function __ERC20_init_unchained(string memory name_, string memory symbol_) internal initializer {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual returns (uint8) {
        return _decimals;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal virtual {
        _decimals = decimals_;
    }

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


// File @openzeppelin/contracts-upgradeable/drafts/[email protected]



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20PermitUpgradeable {
    /**
     * @dev Sets `value` as the allowance of `spender` over `owner`'s tokens,
     * given `owner`'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for `permit`, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}


// File @openzeppelin/contracts-upgradeable/cryptography/[email protected]



pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

        return signer;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * replicates the behavior of the
     * https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign[`eth_sign`]
     * JSON-RPC method.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }
}


// File @openzeppelin/contracts-upgradeable/utils/[email protected]



pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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


// File @openzeppelin/contracts-upgradeable/drafts/[email protected]



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712Upgradeable is Initializable {
    /* solhint-disable var-name-mixedcase */
    bytes32 private _HASHED_NAME;
    bytes32 private _HASHED_VERSION;
    bytes32 private constant _TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");
    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    function __EIP712_init(string memory name, string memory version) internal initializer {
        __EIP712_init_unchained(name, version);
    }

    function __EIP712_init_unchained(string memory name, string memory version) internal initializer {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        return _buildDomainSeparator(_TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash());
    }

    function _buildDomainSeparator(bytes32 typeHash, bytes32 name, bytes32 version) private view returns (bytes32) {
        return keccak256(
            abi.encode(
                typeHash,
                name,
                version,
                _getChainId(),
                address(this)
            )
        );
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", _domainSeparatorV4(), structHash));
    }

    function _getChainId() private view returns (uint256 chainId) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        // solhint-disable-next-line no-inline-assembly
        assembly {
            chainId := chainid()
        }
    }

    /**
     * @dev The hash of the name parameter for the EIP712 domain.
     *
     * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs
     * are a concern.
     */
    function _EIP712NameHash() internal virtual view returns (bytes32) {
        return _HASHED_NAME;
    }

    /**
     * @dev The hash of the version parameter for the EIP712 domain.
     *
     * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs
     * are a concern.
     */
    function _EIP712VersionHash() internal virtual view returns (bytes32) {
        return _HASHED_VERSION;
    }
    uint256[50] private __gap;
}


// File @openzeppelin/contracts-upgradeable/drafts/[email protected]



pragma solidity >=0.6.5 <0.8.0;






/**
 * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * _Available since v3.4._
 */
abstract contract ERC20PermitUpgradeable is Initializable, ERC20Upgradeable, IERC20PermitUpgradeable, EIP712Upgradeable {
    using CountersUpgradeable for CountersUpgradeable.Counter;

    mapping (address => CountersUpgradeable.Counter) private _nonces;

    // solhint-disable-next-line var-name-mixedcase
    bytes32 private _PERMIT_TYPEHASH;

    /**
     * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`.
     *
     * It's a good idea to use the same `name` that is defined as the ERC20 token name.
     */
    function __ERC20Permit_init(string memory name) internal initializer {
        __Context_init_unchained();
        __EIP712_init_unchained(name, "1");
        __ERC20Permit_init_unchained(name);
    }

    function __ERC20Permit_init_unchained(string memory name) internal initializer {
        _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
    }

    /**
     * @dev See {IERC20Permit-permit}.
     */
    function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public virtual override {
        // solhint-disable-next-line not-rely-on-time
        require(block.timestamp <= deadline, "ERC20Permit: expired deadline");

        bytes32 structHash = keccak256(
            abi.encode(
                _PERMIT_TYPEHASH,
                owner,
                spender,
                value,
                _nonces[owner].current(),
                deadline
            )
        );

        bytes32 hash = _hashTypedDataV4(structHash);

        address signer = ECDSAUpgradeable.recover(hash, v, r, s);
        require(signer == owner, "ERC20Permit: invalid signature");

        _nonces[owner].increment();
        _approve(owner, spender, value);
    }

    /**
     * @dev See {IERC20Permit-nonces}.
     */
    function nonces(address owner) public view override returns (uint256) {
        return _nonces[owner].current();
    }

    /**
     * @dev See {IERC20Permit-DOMAIN_SEPARATOR}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view override returns (bytes32) {
        return _domainSeparatorV4();
    }
    uint256[49] private __gap;
}


// File contracts/tokenbridge/libraries/ITransferAndCall.sol


pragma solidity >0.6.0 <0.8.0;

interface ITransferAndCall is IERC20Upgradeable {
    function transferAndCall(
        address to,
        uint256 value,
        bytes memory data
    ) external returns (bool success);

    event Transfer(address indexed from, address indexed to, uint256 value, bytes data);
}

/**
 * @notice note that implementation of ITransferAndCallReceiver is not expected to return a success bool
 */
interface ITransferAndCallReceiver {
    function onTokenTransfer(
        address _sender,
        uint256 _value,
        bytes memory _data
    ) external;
}


// File contracts/tokenbridge/libraries/TransferAndCallToken.sol


pragma solidity >0.6.0 <0.8.0;


// Implementation from https://github.com/smartcontractkit/LinkToken/blob/master/contracts/v0.6/TransferAndCallToken.sol
/**
 * @notice based on Implementation from https://github.com/smartcontractkit/LinkToken/blob/master/contracts/v0.6/ERC677Token.sol
 * The implementation doesn't return a bool on onTokenTransfer. This is similar to the proposed 677 standard, but still incompatible - thus we don't refer to it as such.
 */
abstract contract TransferAndCallToken is ERC20Upgradeable, ITransferAndCall {
    /**
     * @dev transfer token to a contract address with additional data if the recipient is a contact.
     * @param _to The address to transfer to.
     * @param _value The amount to be transferred.
     * @param _data The extra data to be passed to the receiving contract.
     */
    function transferAndCall(
        address _to,
        uint256 _value,
        bytes memory _data
    ) public virtual override returns (bool success) {
        super.transfer(_to, _value);
        emit Transfer(msg.sender, _to, _value, _data);
        if (isContract(_to)) {
            contractFallback(_to, _value, _data);
        }
        return true;
    }

    // PRIVATE

    function contractFallback(
        address _to,
        uint256 _value,
        bytes memory _data
    ) private {
        ITransferAndCallReceiver receiver = ITransferAndCallReceiver(_to);
        receiver.onTokenTransfer(msg.sender, _value, _data);
    }

    function isContract(address _addr) private view returns (bool hasCode) {
        uint256 length;
        assembly {
            length := extcodesize(_addr)
        }
        return length > 0;
    }
}


// File contracts/tokenbridge/libraries/aeERC20.sol



/*
 * Copyright 2020, Offchain Labs, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

pragma solidity ^0.6.11;


/// @title Arbitrum extended ERC20
/// @notice The recommended ERC20 implementation for Layer 2 tokens
/// @dev This implements the ERC20 standard with transferAndCall extenstion/affordances
contract aeERC20 is ERC20PermitUpgradeable, TransferAndCallToken {
    using AddressUpgradeable for address;

    constructor() public initializer {
        // this is expected to be used as the logic contract behind a proxy
        // override the constructor if you don't wish to use the initialize method
    }

    function _initialize(
        string memory name_,
        string memory symbol_,
        uint8 decimals_
    ) internal initializer {
        __ERC20Permit_init(name_);
        __ERC20_init(name_, symbol_);
        _setupDecimals(decimals_);
    }
}


// File contracts/tokenbridge/libraries/arb-bridge-eth/contracts/libraries/BytesLib.sol



/*
 * @title Solidity Bytes Arrays Utils
 * @author Gonçalo Sá <[email protected]>
 *
 * @dev Bytes tightly packed arrays utility library for ethereum contracts written in Solidity.
 *      The library lets you concatenate, slice and type cast bytes arrays both in memory and storage.
 */

pragma solidity ^0.6.11;

/* solhint-disable no-inline-assembly */
library BytesLib {
    function toAddress(bytes memory _bytes, uint256 _start) internal pure returns (address) {
        require(_bytes.length >= (_start + 20), "Read out of bounds");
        address tempAddress;

        assembly {
            tempAddress := div(mload(add(add(_bytes, 0x20), _start)), 0x1000000000000000000000000)
        }

        return tempAddress;
    }

    function toUint8(bytes memory _bytes, uint256 _start) internal pure returns (uint8) {
        require(_bytes.length >= (_start + 1), "Read out of bounds");
        uint8 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x1), _start))
        }

        return tempUint;
    }

    function toUint(bytes memory _bytes, uint256 _start) internal pure returns (uint256) {
        require(_bytes.length >= (_start + 32), "Read out of bounds");
        uint256 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x20), _start))
        }

        return tempUint;
    }

    function toBytes32(bytes memory _bytes, uint256 _start) internal pure returns (bytes32) {
        require(_bytes.length >= (_start + 32), "Read out of bounds");
        bytes32 tempBytes32;

        assembly {
            tempBytes32 := mload(add(add(_bytes, 0x20), _start))
        }

        return tempBytes32;
    }
}
/* solhint-enable no-inline-assembly */


// File contracts/tokenbridge/libraries/arb-bridge-eth/contracts/libraries/DebugPrint.sol



/*
 * Copyright 2019, Offchain Labs, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

pragma solidity ^0.6.11;

library DebugPrint {
    function char(bytes1 b) private pure returns (bytes1 c) {
        if (uint8(b) < 10) {
            return bytes1(uint8(b) + 0x30);
        } else {
            return bytes1(uint8(b) + 0x57);
        }
    }

    function bytes32string(bytes32 b32) internal pure returns (string memory out) {
        bytes memory s = new bytes(64);

        for (uint256 i = 0; i < 32; i++) {
            bytes1 b = bytes1(b32[i]);
            bytes1 hi = bytes1(uint8(b) / 16);
            bytes1 lo = bytes1(uint8(b) - 16 * uint8(hi));
            s[i * 2] = char(hi);
            s[i * 2 + 1] = char(lo);
        }

        out = string(s);
    }

    // Taken from https://github.com/oraclize/ethereum-api/blob/master/oraclizeAPI_0.5.sol
    function uint2str(uint256 _iParam) internal pure returns (string memory _uintAsString) {
        uint256 _i = _iParam;
        if (_i == 0) {
            return "0";
        }
        uint256 j = _i;
        uint256 len;
        while (j != 0) {
            len++;
            j /= 10;
        }
        bytes memory bstr = new bytes(len);
        uint256 k = len - 1;
        while (_i != 0) {
            bstr[k--] = bytes1(uint8(48 + (_i % 10)));
            _i /= 10;
        }
        return string(bstr);
    }
}


// File contracts/tokenbridge/libraries/BytesParser.sol



/*
 * Copyright 2020, Offchain Labs, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

pragma solidity ^0.6.11;


library BytesParserWithDefault {
    using BytesLib for bytes;

    function toUint8(bytes memory input, uint8 defaultValue) internal pure returns (uint8) {
        if (input.length == 0) {
            return defaultValue;
        } else {
            // TODO: try catch to handle error
            return abi.decode(input, (uint8));
        }
    }

    function toString(bytes memory input, string memory defaultValue)
        internal
        pure
        returns (string memory)
    {
        if (input.length == 0) {
            return defaultValue;
        } else if (input.length == 32) {
            return DebugPrint.bytes32string(input.toBytes32(0));
        } else {
            // TODO: try catch to handle error
            return abi.decode(input, (string));
        }
    }
}


// File contracts/tokenbridge/arbitrum/IArbToken.sol



/*
 * Copyright 2020, Offchain Labs, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * @title Minimum expected interface for L2 token that interacts with the L2 token bridge (this is the interface necessary
 * for a custom token that interacts with the bridge, see TestArbCustomToken.sol for an example implementation).
 */
pragma solidity ^0.6.11;

interface IArbToken {
    /**
     * @notice should increase token supply by amount, and should (probably) only be callable by the L1 bridge.
     */
    function bridgeMint(address account, uint256 amount) external;

    /**
     * @notice should decrease token supply by amount, and should (probably) only be callable by the L1 bridge.
     */
    function bridgeBurn(address account, uint256 amount) external;

    /**
     * @return address of layer 1 token
     */
    function l1Address() external view returns (address);
}


// File contracts/tokenbridge/libraries/L2GatewayToken.sol



/*
 * Copyright 2020, Offchain Labs, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

pragma solidity ^0.6.11;



/**
 * @title Standard (i.e., non-custom) contract used as a base for different L2 Gateways
 */
abstract contract L2GatewayToken is aeERC20, IArbToken {
    address public l2Gateway;
    address public override l1Address;

    modifier onlyGateway() {
        require(msg.sender == l2Gateway, "ONLY_GATEWAY");
        _;
    }

    /**
     * @notice initialize the token
     * @dev the L2 bridge assumes this does not fail or revert
     * @param name_ ERC20 token name
     * @param symbol_ ERC20 token symbol
     * @param decimals_ ERC20 decimals
     * @param l2Gateway_ L2 gateway this token communicates with
     * @param l1Counterpart_ L1 address of ERC20
     */
    function _initialize(
        string memory name_,
        string memory symbol_,
        uint8 decimals_,
        address l2Gateway_,
        address l1Counterpart_
    ) internal virtual {
        require(l2Gateway_ != address(0), "INVALID_GATEWAY");
        require(l2Gateway == address(0), "ALREADY_INIT");
        l2Gateway = l2Gateway_;
        l1Address = l1Counterpart_;

        aeERC20._initialize(name_, symbol_, decimals_);
    }

    /**
     * @notice Mint tokens on L2. Callable path is L1Gateway depositToken (which handles L1 escrow), which triggers L2Gateway, which calls this
     * @param account recipient of tokens
     * @param amount amount of tokens minted
     */
    function bridgeMint(address account, uint256 amount) external virtual override onlyGateway {
        _mint(account, amount);
    }

    /**
     * @notice Burn tokens on L2.
     * @dev only the token bridge can call this
     * @param account owner of tokens
     * @param amount amount of tokens burnt
     */
    function bridgeBurn(address account, uint256 amount) external virtual override onlyGateway {
        _burn(account, amount);
    }
}


// File contracts/tokenbridge/arbitrum/CustomGatewayArbERC20.sol



/*
 * Copyright 2020, Offchain Labs, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

pragma solidity ^0.6.11;




/**
 * @title Standard (i.e., non-custom) contract deployed by L2Gateway.sol as L2 ERC20. Includes standard ERC20 interface plus additional methods for deposits/withdraws
 */
contract CustomGatewayArbERC20 is IArbToken, L2GatewayToken, Cloneable {
    /**
     * @notice initialize the token
     * @dev the L2 bridge assumes this does not fail or revert
     * @param _l1Address L1 address of ERC20
     * @param _data encoded symbol/name/decimal data for initial deploy
     */
    function bridgeInit(address _l2Gateway, address _l1Address, bytes memory _data) public virtual {
        (bytes memory name_, bytes memory symbol_, bytes memory decimals_) = abi.decode(
            _data,
            (bytes, bytes, bytes)
        );
        // what if decode reverts? shouldn't as this is encoded by L1 contract

        L2GatewayToken._initialize(
            BytesParserWithDefault.toString(name_, ""),
            BytesParserWithDefault.toString(symbol_, ""),
            BytesParserWithDefault.toUint8(decimals_, 18),
            _l2Gateway, // _l2Gateway,
            _l1Address // _l1Counterpart
        );
    }
}

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"bridgeBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_l2Gateway","type":"address"},{"internalType":"address","name":"_l1Address","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"bridgeInit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"bridgeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isMaster","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"l1Address","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"l2Gateway","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"transferAndCall","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50600054610100900460ff16806200002e57506200002e620000d3565b806200003d575060005460ff16155b6200007a5760405162461bcd60e51b815260040180806020018281038252602e815260200180620023e3602e913960400191505060405180910390fd5b600054610100900460ff16158015620000a6576000805460ff1961ff0019909116610100171660011790555b8015620000b9576000805461ff00191690555b5060cd805460ff60a01b1916600160a01b179055620000f7565b6000620000eb30620000f160201b62000e8a1760201c565b15905090565b3b151590565b6122dc80620001076000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c806374f4f547116100b8578063a457c2d71161007c578063a457c2d71461042e578063a9059cbb1461045a578063c2eeeebd14610486578063cb866f771461048e578063d505accf1461054b578063dd62ed3e1461059c57610137565b806374f4f547146103825780637ecebe00146103b05780638c2a993e146103d65780638fa74a0e1461040257806395d89b411461042657610137565b80633644e515116100ff5780633644e51514610267578063395093511461026f5780634000aea01461029b5780636f791d291461035457806370a082311461035c57610137565b806306fdde031461013c578063095ea7b3146101b957806318160ddd146101f957806323b872dd14610213578063313ce56714610249575b600080fd5b6101446105ca565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561017e578181015183820152602001610166565b50505050905090810190601f1680156101ab5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101e5600480360360408110156101cf57600080fd5b506001600160a01b038135169060200135610660565b604080519115158252519081900360200190f35b61020161067e565b60408051918252519081900360200190f35b6101e56004803603606081101561022957600080fd5b506001600160a01b03813581169160208101359091169060400135610684565b61025161070b565b6040805160ff9092168252519081900360200190f35b610201610714565b6101e56004803603604081101561028557600080fd5b506001600160a01b038135169060200135610723565b6101e5600480360360608110156102b157600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156102e057600080fd5b8201836020820111156102f257600080fd5b803590602001918460018302840111600160201b8311171561031357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610771945050505050565b6101e561084c565b6102016004803603602081101561037257600080fd5b50356001600160a01b031661085c565b6103ae6004803603604081101561039857600080fd5b506001600160a01b03813516906020013561087b565b005b610201600480360360208110156103c657600080fd5b50356001600160a01b03166108d7565b6103ae600480360360408110156103ec57600080fd5b506001600160a01b0381351690602001356108f8565b61040a610950565b604080516001600160a01b039092168252519081900360200190f35b61014461095f565b6101e56004803603604081101561044457600080fd5b506001600160a01b0381351690602001356109c0565b6101e56004803603604081101561047057600080fd5b506001600160a01b038135169060200135610a28565b61040a610a3c565b6103ae600480360360608110156104a457600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156104d757600080fd5b8201836020820111156104e957600080fd5b803590602001918460018302840111600160201b8311171561050a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610a4b945050505050565b6103ae600480360360e081101561056157600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135610cbc565b610201600480360360408110156105b257600080fd5b506001600160a01b0381358116916020013516610e5f565b60368054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106565780601f1061062b57610100808354040283529160200191610656565b820191906000526020600020905b81548152906001019060200180831161063957829003601f168201915b5050505050905090565b600061067461066d610e90565b8484610e94565b5060015b92915050565b60355490565b6000610691848484610f80565b6107018461069d610e90565b6106fc856040518060600160405280602881526020016121f0602891396001600160a01b038a166000908152603460205260408120906106db610e90565b6001600160a01b0316815260208101919091526040016000205491906110dd565b610e94565b5060019392505050565b60385460ff1690565b600061071e611174565b905090565b6000610674610730610e90565b846106fc8560346000610741610e90565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906111af565b600061077d8484610a28565b50836001600160a01b0316336001600160a01b03167fe19260aff97b920c7df27010903aeb9c8d2be5d310a2c67824cf3f15396e4c1685856040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156107f85781810151838201526020016107e0565b50505050905090810190601f1680156108255780820380516001836020036101000a031916815260200191505b50935050505060405180910390a361083c84610e8a565b1561070157610701848484611210565b60cd54600160a01b900460ff1690565b6001600160a01b0381166000908152603360205260409020545b919050565b60cc546001600160a01b031633146108c9576040805162461bcd60e51b815260206004820152600c60248201526b4f4e4c595f4741544557415960a01b604482015290519081900360640190fd5b6108d382826112ea565b5050565b6001600160a01b0381166000908152609960205260408120610678906113e6565b60cc546001600160a01b03163314610946576040805162461bcd60e51b815260206004820152600c60248201526b4f4e4c595f4741544557415960a01b604482015290519081900360640190fd5b6108d382826113ea565b60cc546001600160a01b031681565b60378054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106565780601f1061062b57610100808354040283529160200191610656565b60006106746109cd610e90565b846106fc8560405180606001604052806025815260200161228260259139603460006109f7610e90565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906110dd565b6000610674610a35610e90565b8484610f80565b60cd546001600160a01b031681565b6060806060838060200190516060811015610a6557600080fd5b8101908080516040519392919084600160201b821115610a8457600080fd5b908301906020820185811115610a9957600080fd5b8251600160201b811182820188101715610ab257600080fd5b82525081516020918201929091019080838360005b83811015610adf578181015183820152602001610ac7565b50505050905090810190601f168015610b0c5780820380516001836020036101000a031916815260200191505b5060405260200180516040519392919084600160201b821115610b2e57600080fd5b908301906020820185811115610b4357600080fd5b8251600160201b811182820188101715610b5c57600080fd5b82525081516020918201929091019080838360005b83811015610b89578181015183820152602001610b71565b50505050905090810190601f168015610bb65780820380516001836020036101000a031916815260200191505b5060405260200180516040519392919084600160201b821115610bd857600080fd5b908301906020820185811115610bed57600080fd5b8251600160201b811182820188101715610c0657600080fd5b82525081516020918201929091019080838360005b83811015610c33578181015183820152602001610c1b565b50505050905090810190601f168015610c605780820380516001836020036101000a031916815260200191505b50604052505050925092509250610cb4610c8984604051806020016040528060008152506114dc565b610ca284604051806020016040528060008152506114dc565b610cad8460126115dd565b898961160e565b505050505050565b83421115610d11576040805162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015290519081900360640190fd5b6000609a54888888610d46609960008e6001600160a01b03166001600160a01b031681526020019081526020016000206113e6565b8960405160200180878152602001866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200182815260200196505050505050506040516020818303038152906040528051906020012090506000610daf826116ea565b90506000610dbf82878787611736565b9050896001600160a01b0316816001600160a01b031614610e27576040805162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015290519081900360640190fd5b6001600160a01b038a166000908152609960205260409020610e48906118b4565b610e538a8a8a610e94565b50505050505050505050565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b3b151590565b3390565b6001600160a01b038316610ed95760405162461bcd60e51b815260040180806020018281038252602481526020018061225e6024913960400191505060405180910390fd5b6001600160a01b038216610f1e5760405162461bcd60e51b81526004018080602001828103825260228152602001806121366022913960400191505060405180910390fd5b6001600160a01b03808416600081815260346020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610fc55760405162461bcd60e51b81526004018080602001828103825260258152602001806122396025913960400191505060405180910390fd5b6001600160a01b03821661100a5760405162461bcd60e51b81526004018080602001828103825260238152602001806120f16023913960400191505060405180910390fd5b6110158383836118bd565b61105281604051806060016040528060268152602001612158602691396001600160a01b03861660009081526033602052604090205491906110dd565b6001600160a01b03808516600090815260336020526040808220939093559084168152205461108190826111af565b6001600160a01b0380841660008181526033602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561116c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611131578181015183820152602001611119565b50505050905090810190601f16801561115e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600061071e7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6111a26118c2565b6111aa6118c8565b6118ce565b600082820183811015611209576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b604051635260769b60e11b815233600482018181526024830185905260606044840190815284516064850152845187946001600160a01b0386169463a4c0ed369490938993899360840190602085019080838360005b8381101561127e578181015183820152602001611266565b50505050905090810190601f1680156112ab5780820380516001836020036101000a031916815260200191505b50945050505050600060405180830381600087803b1580156112cc57600080fd5b505af11580156112e0573d6000803e3d6000fd5b5050505050505050565b6001600160a01b03821661132f5760405162461bcd60e51b81526004018080602001828103825260218152602001806122186021913960400191505060405180910390fd5b61133b826000836118bd565b61137881604051806060016040528060228152602001612114602291396001600160a01b03851660009081526033602052604090205491906110dd565b6001600160a01b03831660009081526033602052604090205560355461139e9082611930565b6035556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b5490565b6001600160a01b038216611445576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611451600083836118bd565b60355461145e90826111af565b6035556001600160a01b03821660009081526033602052604090205461148490826111af565b6001600160a01b03831660008181526033602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60608251600014156114ef575080610678565b8251602014156115135761150c61150784600061198d565b6119e6565b9050610678565b82806020019051602081101561152857600080fd5b8101908080516040519392919084600160201b82111561154757600080fd5b90830190602082018581111561155c57600080fd5b8251600160201b81118282018810171561157557600080fd5b82525081516020918201929091019080838360005b838110156115a257818101518382015260200161158a565b50505050905090810190601f1680156115cf5780820380516001836020036101000a031916815260200191505b506040525050509050610678565b60008251600014156115f0575080610678565b82806020019051602081101561160557600080fd5b50519050610678565b6001600160a01b03821661165b576040805162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4741544557415960881b604482015290519081900360640190fd5b60cc546001600160a01b0316156116a8576040805162461bcd60e51b815260206004820152600c60248201526b1053149150511657d253925560a21b604482015290519081900360640190fd5b60cc80546001600160a01b038085166001600160a01b03199283161790925560cd8054928416929091169190911790556116e3858585611ab5565b5050505050565b60006116f4611174565b82604051602001808061190160f01b81525060020183815260200182815260200192505050604051602081830303815290604052805190602001209050919050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156117975760405162461bcd60e51b815260040180806020018281038252602281526020018061217e6022913960400191505060405180910390fd5b8360ff16601b14806117ac57508360ff16601c145b6117e75760405162461bcd60e51b81526004018080602001828103825260228152602001806121ce6022913960400191505060405180910390fd5b600060018686868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015611843573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166118ab576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b95945050505050565b80546001019055565b505050565b60655490565b60665490565b60008383836118db611b76565b3060405160200180868152602001858152602001848152602001838152602001826001600160a01b03168152602001955050505050506040516020818303038152906040528051906020012090509392505050565b600082821115611987576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600081602001835110156119dd576040805162461bcd60e51b815260206004820152601260248201527152656164206f7574206f6620626f756e647360701b604482015290519081900360640190fd5b50016020015190565b60408051818152606081810183529182919060208201818036833701905050905060005b6020811015611aae576000848260208110611a2157fe5b1a60f881811b9250601080830480831b9360ff9091169091029003901b611a4782611b7a565b858560020281518110611a5657fe5b60200101906001600160f81b031916908160001a905350611a7681611b7a565b858560020260010181518110611a8857fe5b60200101906001600160f81b031916908160001a9053505060019092019150611a0a9050565b5092915050565b600054610100900460ff1680611ace5750611ace611bab565b80611adc575060005460ff16155b611b175760405162461bcd60e51b815260040180806020018281038252602e8152602001806121a0602e913960400191505060405180910390fd5b600054610100900460ff16158015611b42576000805460ff1961ff0019909116610100171660011790555b611b4b84611bbc565b611b558484611c92565b611b5e82611d47565b8015611b70576000805461ff00191690555b50505050565b4690565b6000600a60f883901c1015611b9a578160f81c60300160f81b9050610876565b8160f81c60570160f81b9050610876565b6000611bb630610e8a565b15905090565b600054610100900460ff1680611bd55750611bd5611bab565b80611be3575060005460ff16155b611c1e5760405162461bcd60e51b815260040180806020018281038252602e8152602001806121a0602e913960400191505060405180910390fd5b600054610100900460ff16158015611c49576000805460ff1961ff0019909116610100171660011790555b611c51611d5d565b611c7482604051806040016040528060018152602001603160f81b815250611dff565b611c7d82611ebf565b80156108d3576000805461ff00191690555050565b600054610100900460ff1680611cab5750611cab611bab565b80611cb9575060005460ff16155b611cf45760405162461bcd60e51b815260040180806020018281038252602e8152602001806121a0602e913960400191505060405180910390fd5b600054610100900460ff16158015611d1f576000805460ff1961ff0019909116610100171660011790555b611d27611d5d565b611d318383611f85565b80156118bd576000805461ff0019169055505050565b6038805460ff191660ff92909216919091179055565b600054610100900460ff1680611d765750611d76611bab565b80611d84575060005460ff16155b611dbf5760405162461bcd60e51b815260040180806020018281038252602e8152602001806121a0602e913960400191505060405180910390fd5b600054610100900460ff16158015611dea576000805460ff1961ff0019909116610100171660011790555b8015611dfc576000805461ff00191690555b50565b600054610100900460ff1680611e185750611e18611bab565b80611e26575060005460ff16155b611e615760405162461bcd60e51b815260040180806020018281038252602e8152602001806121a0602e913960400191505060405180910390fd5b600054610100900460ff16158015611e8c576000805460ff1961ff0019909116610100171660011790555b825160208085019190912083519184019190912060659190915560665580156118bd576000805461ff0019169055505050565b600054610100900460ff1680611ed85750611ed8611bab565b80611ee6575060005460ff16155b611f215760405162461bcd60e51b815260040180806020018281038252602e8152602001806121a0602e913960400191505060405180910390fd5b600054610100900460ff16158015611f4c576000805460ff1961ff0019909116610100171660011790555b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9609a5580156108d3576000805461ff00191690555050565b600054610100900460ff1680611f9e5750611f9e611bab565b80611fac575060005460ff16155b611fe75760405162461bcd60e51b815260040180806020018281038252602e8152602001806121a0602e913960400191505060405180910390fd5b600054610100900460ff16158015612012576000805460ff1961ff0019909116610100171660011790555b825161202590603690602086019061205d565b50815161203990603790602085019061205d565b506038805460ff1916601217905580156118bd576000805461ff0019169055505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061209e57805160ff19168380011785556120cb565b828001600101855582156120cb579182015b828111156120cb5782518255916020019190600101906120b0565b506120d79291506120db565b5090565b5b808211156120d757600081556001016120dc56fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545434453413a20696e76616c6964207369676e6174757265202773272076616c7565496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a656445434453413a20696e76616c6964207369676e6174757265202776272076616c756545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220c28fff700f21b952fb5d4dd294df607161273ad736e785276d29fc59c40d071864736f6c634300060c0033496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564

Deployed ByteCode Sourcemap

64942:968:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25429:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27575:169;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;27575:169:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;26528:108;;;:::i;:::-;;;;;;;;;;;;;;;;28226:321;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28226:321:0;;;;;;;;;;;;;;;;;:::i;26372:91::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;50313:115;;;:::i;28956:218::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28956:218:0;;;;;;;;:::i;52066:373::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;52066:373:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;52066:373:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;52066:373:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52066:373:0;;-1:-1:-1;52066:373:0;;-1:-1:-1;;;;;52066:373:0:i;1879:96::-;;;:::i;26699:127::-;;;;;;;;;;;;;;;;-1:-1:-1;26699:127:0;-1:-1:-1;;;;;26699:127:0;;:::i;63897:132::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;63897:132:0;;;;;;;;:::i;:::-;;50063:120;;;;;;;;;;;;;;;;-1:-1:-1;50063:120:0;-1:-1:-1;;;;;50063:120:0;;:::i;63571:132::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;63571:132:0;;;;;;;;:::i;62319:24::-;;;:::i;:::-;;;;-1:-1:-1;;;;;62319:24:0;;;;;;;;;;;;;;25639:95;;;:::i;29677:269::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;29677:269:0;;;;;;;;:::i;27039:175::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;27039:175:0;;;;;;;;:::i;62350:33::-;;;:::i;65258:649::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;65258:649:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;65258:649:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;65258:649:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;65258:649:0;;-1:-1:-1;65258:649:0;;-1:-1:-1;;;;;65258:649:0:i;49170:827::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;49170:827:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;27277:151::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;27277:151:0;;;;;;;;;;:::i;25429:91::-;25507:5;25500:12;;;;;;;;-1:-1:-1;;25500:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25474:13;;25500:12;;25507:5;;25500:12;;25507:5;25500:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25429:91;:::o;27575:169::-;27658:4;27675:39;27684:12;:10;:12::i;:::-;27698:7;27707:6;27675:8;:39::i;:::-;-1:-1:-1;27732:4:0;27575:169;;;;;:::o;26528:108::-;26616:12;;26528:108;:::o;28226:321::-;28332:4;28349:36;28359:6;28367:9;28378:6;28349:9;:36::i;:::-;28396:121;28405:6;28413:12;:10;:12::i;:::-;28427:89;28465:6;28427:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;28427:19:0;;;;;;:11;:19;;;;;;28447:12;:10;:12::i;:::-;-1:-1:-1;;;;;28427:33:0;;;;;;;;;;;;-1:-1:-1;28427:33:0;;;:89;:37;:89::i;:::-;28396:8;:121::i;:::-;-1:-1:-1;28535:4:0;28226:321;;;;;:::o;26372:91::-;26446:9;;;;26372:91;:::o;50313:115::-;50373:7;50400:20;:18;:20::i;:::-;50393:27;;50313:115;:::o;28956:218::-;29044:4;29061:83;29070:12;:10;:12::i;:::-;29084:7;29093:50;29132:10;29093:11;:25;29105:12;:10;:12::i;:::-;-1:-1:-1;;;;;29093:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;29093:25:0;;;:34;;;;;;;;;;;:38;:50::i;52066:373::-;52207:12;52232:27;52247:3;52252:6;52232:14;:27::i;:::-;;52296:3;-1:-1:-1;;;;;52275:40:0;52284:10;-1:-1:-1;;;;;52275:40:0;;52301:6;52309:5;52275:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52330:15;52341:3;52330:10;:15::i;:::-;52326:84;;;52362:36;52379:3;52384:6;52392:5;52362:16;:36::i;1879:96::-;1955:12;;-1:-1:-1;;;1955:12:0;;;;;1879:96::o;26699:127::-;-1:-1:-1;;;;;26800:18:0;;26773:7;26800:18;;;:9;:18;;;;;;26699:127;;;;:::o;63897:132::-;62448:9;;-1:-1:-1;;;;;62448:9:0;62434:10;:23;62426:48;;;;;-1:-1:-1;;;62426:48:0;;;;;;;;;;;;-1:-1:-1;;;62426:48:0;;;;;;;;;;;;;;;63999:22:::1;64005:7;64014:6;63999:5;:22::i;:::-;63897:132:::0;;:::o;50063:120::-;-1:-1:-1;;;;;50151:14:0;;50124:7;50151:14;;;:7;:14;;;;;:24;;:22;:24::i;63571:132::-;62448:9;;-1:-1:-1;;;;;62448:9:0;62434:10;:23;62426:48;;;;;-1:-1:-1;;;62426:48:0;;;;;;;;;;;;-1:-1:-1;;;62426:48:0;;;;;;;;;;;;;;;63673:22:::1;63679:7;63688:6;63673:5;:22::i;62319:24::-:0;;;-1:-1:-1;;;;;62319:24:0;;:::o;25639:95::-;25719:7;25712:14;;;;;;;;-1:-1:-1;;25712:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25686:13;;25712:14;;25719:7;;25712:14;;25719:7;25712:14;;;;;;;;;;;;;;;;;;;;;;;;29677:269;29770:4;29787:129;29796:12;:10;:12::i;:::-;29810:7;29819:96;29858:15;29819:96;;;;;;;;;;;;;;;;;:11;:25;29831:12;:10;:12::i;:::-;-1:-1:-1;;;;;29819:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;29819:25:0;;;:34;;;;;;;;;;;:96;:38;:96::i;27039:175::-;27125:4;27142:42;27152:12;:10;:12::i;:::-;27166:9;27177:6;27142:9;:42::i;62350:33::-;;;-1:-1:-1;;;;;62350:33:0;;:::o;65258:649::-;65365:18;65385:20;65407:22;65458:5;65433:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;65433:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;65433:77:0;;;;;;-1:-1:-1;65433:77:0;;;;;;;;;;-1:-1:-1;65433:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;65433:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;65433:77:0;;;;;;-1:-1:-1;65433:77:0;;;;;;;;;;-1:-1:-1;65433:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;65433:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;65433:77:0;;;;;;-1:-1:-1;65433:77:0;;;;;;;;;;-1:-1:-1;65433:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65364:146;;;;;;65603:296;65644:42;65676:5;65644:42;;;;;;;;;;;;:31;:42::i;:::-;65701:44;65733:7;65701:44;;;;;;;;;;;;:31;:44::i;:::-;65760:45;65791:9;65802:2;65760:30;:45::i;:::-;65820:10;65860;65603:26;:296::i;:::-;65258:649;;;;;;:::o;49170:827::-;49399:8;49380:15;:27;;49372:69;;;;;-1:-1:-1;;;49372:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;49454:18;49528:16;;49563:5;49587:7;49613:5;49637:24;:7;:14;49645:5;-1:-1:-1;;;;;49637:14:0;-1:-1:-1;;;;;49637:14:0;;;;;;;;;;;;:22;:24::i;:::-;49680:8;49499:204;;;;;;;;;;;-1:-1:-1;;;;;49499:204:0;;;;;;-1:-1:-1;;;;;49499:204:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49475:239;;;;;;49454:260;;49727:12;49742:28;49759:10;49742:16;:28::i;:::-;49727:43;;49783:14;49800:39;49825:4;49831:1;49834;49837;49800:24;:39::i;:::-;49783:56;;49868:5;-1:-1:-1;;;;;49858:15:0;:6;-1:-1:-1;;;;;49858:15:0;;49850:58;;;;;-1:-1:-1;;;49850:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;49921:14:0;;;;;;:7;:14;;;;;:26;;:24;:26::i;:::-;49958:31;49967:5;49974:7;49983:5;49958:8;:31::i;:::-;49170:827;;;;;;;;;;:::o;27277:151::-;-1:-1:-1;;;;;27393:18:0;;;27366:7;27393:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;27277:151::o;2944:422::-;3311:20;3350:8;;;2944:422::o;12204:106::-;12292:10;12204:106;:::o;32824:346::-;-1:-1:-1;;;;;32926:19:0;;32918:68;;;;-1:-1:-1;;;32918:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33005:21:0;;32997:68;;;;-1:-1:-1;;;32997:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33078:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;33130:32;;;;;;;;;;;;;;;;;32824:346;;;:::o;30436:539::-;-1:-1:-1;;;;;30542:20:0;;30534:70;;;;-1:-1:-1;;;30534:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;30623:23:0;;30615:71;;;;-1:-1:-1;;;30615:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30699:47;30720:6;30728:9;30739:6;30699:20;:47::i;:::-;30779:71;30801:6;30779:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;30779:17:0;;;;;;:9;:17;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;30759:17:0;;;;;;;:9;:17;;;;;;:91;;;;30884:20;;;;;;;:32;;30909:6;30884:24;:32::i;:::-;-1:-1:-1;;;;;30861:20:0;;;;;;;:9;:20;;;;;;;;;:55;;;;30932:35;;;;;;;30861:20;;30932:35;;;;;;;;;;;;;30436:539;;;:::o;21109:166::-;21195:7;21231:12;21223:6;;;;21215:29;;;;-1:-1:-1;;;21215:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;21262:5:0;;;21109:166::o;45009:162::-;45062:7;45089:74;43744:95;45123:17;:15;:17::i;:::-;45142:20;:18;:20::i;:::-;45089:21;:74::i;18282:179::-;18340:7;18372:5;;;18396:6;;;;18388:46;;;;;-1:-1:-1;;;18388:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;18452:1;18282:179;-1:-1:-1;;;18282:179:0:o;52465:263::-;52669:51;;-1:-1:-1;;;52669:51:0;;52694:10;52669:51;;;;;;;;;;;;;;;;;;;;;;;;;;;52654:3;;-1:-1:-1;;;;;52669:24:0;;;;;52694:10;;52706:6;;52714:5;;52669:51;;;;;;;;;;52593:33;52669:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52465:263;;;;:::o;31968:418::-;-1:-1:-1;;;;;32052:21:0;;32044:67;;;;-1:-1:-1;;;32044:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32124:49;32145:7;32162:1;32166:6;32124:20;:49::i;:::-;32207:68;32230:6;32207:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;32207:18:0;;;;;;:9;:18;;;;;;;:68;:22;:68::i;:::-;-1:-1:-1;;;;;32186:18:0;;;;;;:9;:18;;;;;:89;32301:12;;:24;;32318:6;32301:16;:24::i;:::-;32286:12;:39;32341:37;;;;;;;;32367:1;;-1:-1:-1;;;;;32341:37:0;;;;;;;;;;;;31968:418;;:::o;41813:114::-;41905:14;;41813:114::o;31257:378::-;-1:-1:-1;;;;;31341:21:0;;31333:65;;;;;-1:-1:-1;;;31333:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;31411:49;31440:1;31444:7;31453:6;31411:20;:49::i;:::-;31488:12;;:24;;31505:6;31488:16;:24::i;:::-;31473:12;:39;-1:-1:-1;;;;;31544:18:0;;;;;;:9;:18;;;;;;:30;;31567:6;31544:22;:30::i;:::-;-1:-1:-1;;;;;31523:18:0;;;;;;:9;:18;;;;;;;;:51;;;;31590:37;;;;;;;31523:18;;;;31590:37;;;;;;;;;;31257:378;;:::o;59479:446::-;59595:13;59630:5;:12;59646:1;59630:17;59626:292;;;-1:-1:-1;59671:12:0;59664:19;;59626:292;59705:5;:12;59721:2;59705:18;59701:217;;;59747:44;59772:18;:5;59788:1;59772:15;:18::i;:::-;59747:24;:44::i;:::-;59740:51;;;;59701:217;59890:5;59879:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;59879:27:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;59879:27:0;;;;;;-1:-1:-1;59879:27:0;;;;;;;;;;-1:-1:-1;59879:27:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59872:34;;;;59183:288;59263:5;59285;:12;59301:1;59285:17;59281:183;;;-1:-1:-1;59326:12:0;59319:19;;59281:183;59437:5;59426:26;;;;;;;;;;;;;;;-1:-1:-1;59426:26:0;;-1:-1:-1;59419:33:0;;62857:454;-1:-1:-1;;;;;63071:24:0;;63063:52;;;;;-1:-1:-1;;;63063:52:0;;;;;;;;;;;;-1:-1:-1;;;63063:52:0;;;;;;;;;;;;;;;63134:9;;-1:-1:-1;;;;;63134:9:0;:23;63126:48;;;;;-1:-1:-1;;;63126:48:0;;;;;;;;;;;;-1:-1:-1;;;63126:48:0;;;;;;;;;;;;;;;63185:9;:22;;-1:-1:-1;;;;;63185:22:0;;;-1:-1:-1;;;;;;63185:22:0;;;;;;;63218:9;:26;;;;;;;;;;;;;;;63257:46;63277:5;63284:7;63293:9;63257:19;:46::i;:::-;62857:454;;;;;:::o;46158:185::-;46235:7;46301:20;:18;:20::i;:::-;46323:10;46272:62;;;;;;-1:-1:-1;;;46272:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46262:73;;;;;;46255:80;;46158:185;;;:::o;38655:1432::-;38740:7;39665:66;39651:80;;;39643:127;;;;-1:-1:-1;;;39643:127:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39789:1;:7;;39794:2;39789:7;:18;;;;39800:1;:7;;39805:2;39800:7;39789:18;39781:65;;;;-1:-1:-1;;;39781:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39944:14;39961:24;39971:4;39977:1;39980;39983;39961:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;39961:24:0;;-1:-1:-1;;39961:24:0;;;-1:-1:-1;;;;;;;40004:20:0;;39996:57;;;;;-1:-1:-1;;;39996:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;40073:6;38655:1432;-1:-1:-1;;;;;38655:1432:0:o;41935:181::-;42089:19;;42107:1;42089:19;;;41935:181::o;34203:92::-;;;;:::o;46921:105::-;47006:12;;46921:105;:::o;47273:111::-;47361:15;;47273:111;:::o;45179:337::-;45281:7;45361:8;45388:4;45411:7;45437:13;:11;:13::i;:::-;45477:4;45332:165;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;45332:165:0;;;;;;;;;;;;;;;;;;;;;;;;45308:200;;;;;;45301:207;;45179:337;;;;;:::o;18744:158::-;18802:7;18835:1;18830;:6;;18822:49;;;;;-1:-1:-1;;;18822:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;18889:5:0;;;18744:158::o;55954:328::-;56033:7;56079:6;56088:2;56079:11;56061:6;:13;:30;;56053:61;;;;;-1:-1:-1;;;56053:61:0;;;;;;;;;;;;-1:-1:-1;;;56053:61:0;;;;;;;;;;;;;;;-1:-1:-1;56202:30:0;56218:4;56202:30;56196:37;;55954:328::o;57324:432::-;57440:2;57430:13;;;;;57383:17;57430:13;;;;;57383:17;;;57430:13;;;;;;;;;;;-1:-1:-1;57430:13:0;57413:30;;57461:9;57456:265;57480:2;57476:1;:6;57456:265;;;57504:8;57522:3;57526:1;57522:6;;;;;;;;;;;;;-1:-1:-1;57574:2:0;57563:13;;;57556:21;;;;57627:9;;;;57622:14;;;57611:25;;57604:33;;57663:8;57556:21;57663:4;:8::i;:::-;57652:1;57654;57658;57654:5;57652:8;;;;;;;;;;;:19;-1:-1:-1;;;;;57652:19:0;;;;;;;;;57701:8;57706:2;57701:4;:8::i;:::-;57686:1;57688;57692;57688:5;57696:1;57688:9;57686:12;;;;;;;;;;;:23;-1:-1:-1;;;;;57686:23:0;;;;;;;;-1:-1:-1;;57484:3:0;;;;;-1:-1:-1;57456:265:0;;-1:-1:-1;57456:265:0;;-1:-1:-1;57746:1:0;57324:432;-1:-1:-1;;57324:432:0:o;54180:256::-;10750:13;;;;;;;;:33;;;10767:16;:14;:16::i;:::-;10750:50;;;-1:-1:-1;10788:12:0;;;;10787:13;10750:50;10742:109;;;;-1:-1:-1;;;10742:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10864:19;10887:13;;;;;;10886:14;10911:101;;;;10946:13;:20;;-1:-1:-1;;;;10946:20:0;;;;;10981:19;10962:4;10981:19;;;10911:101;54328:25:::1;54347:5;54328:18;:25::i;:::-;54364:28;54377:5;54384:7;54364:12;:28::i;:::-;54403:25;54418:9;54403:14;:25::i;:::-;11042:14:::0;11038:68;;;11089:5;11073:21;;-1:-1:-1;;11073:21:0;;;11038:68;54180:256;;;;:::o;46351:326::-;46650:9;;46624:46::o;57103:213::-;57149:8;57185:2;57174:8;;;;:13;57170:139;;;57224:1;57218:8;;57229:4;57218:15;57211:23;;57204:30;;;;57170:139;57287:1;57281:8;;57292:4;57281:15;57274:23;;57267:30;;;;11206:125;11254:4;11279:44;11317:4;11279:29;:44::i;:::-;11278:45;11271:52;;11206:125;:::o;48680:204::-;10750:13;;;;;;;;:33;;;10767:16;:14;:16::i;:::-;10750:50;;;-1:-1:-1;10788:12:0;;;;10787:13;10750:50;10742:109;;;;-1:-1:-1;;;10742:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10864:19;10887:13;;;;;;10886:14;10911:101;;;;10946:13;:20;;-1:-1:-1;;;;10946:20:0;;;;;10981:19;10962:4;10981:19;;;10911:101;48760:26:::1;:24;:26::i;:::-;48797:34;48821:4;48797:34;;;;;;;;;;;;;-1:-1:-1::0;;;48797:34:0::1;;::::0;:23:::1;:34::i;:::-;48842;48871:4;48842:28;:34::i;:::-;11042:14:::0;11038:68;;;11089:5;11073:21;;-1:-1:-1;;11073:21:0;;;48680:204;;:::o;24988:181::-;10750:13;;;;;;;;:33;;;10767:16;:14;:16::i;:::-;10750:50;;;-1:-1:-1;10788:12:0;;;;10787:13;10750:50;10742:109;;;;-1:-1:-1;;;10742:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10864:19;10887:13;;;;;;10886:14;10911:101;;;;10946:13;:20;;-1:-1:-1;;;;10946:20:0;;;;;10981:19;10962:4;10981:19;;;10911:101;25086:26:::1;:24;:26::i;:::-;25123:38;25146:5;25153:7;25123:22;:38::i;:::-;11042:14:::0;11038:68;;;11089:5;11073:21;;-1:-1:-1;;11073:21:0;;;24988:181;;;:::o;33502:98::-;33571:9;:21;;-1:-1:-1;;33571:21:0;;;;;;;;;;;;33502:98::o;12133:65::-;10750:13;;;;;;;;:33;;;10767:16;:14;:16::i;:::-;10750:50;;;-1:-1:-1;10788:12:0;;;;10787:13;10750:50;10742:109;;;;-1:-1:-1;;;10742:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10864:19;10887:13;;;;;;10886:14;10911:101;;;;10946:13;:20;;-1:-1:-1;;;;10946:20:0;;;;;10981:19;10962:4;10981:19;;;10911:101;11042:14;11038:68;;;11089:5;11073:21;;-1:-1:-1;;11073:21:0;;;11038:68;12133:65;:::o;44621:297::-;10750:13;;;;;;;;:33;;;10767:16;:14;:16::i;:::-;10750:50;;;-1:-1:-1;10788:12:0;;;;10787:13;10750:50;10742:109;;;;-1:-1:-1;;;10742:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10864:19;10887:13;;;;;;10886:14;10911:101;;;;10946:13;:20;;-1:-1:-1;;;;10946:20:0;;;;;10981:19;10962:4;10981:19;;;10911:101;44750:22;;::::1;::::0;;::::1;::::0;;;;44807:25;;;;::::1;::::0;;;;44843:12:::1;:25:::0;;;;44879:15:::1;:31:::0;11038:68;;;;11089:5;11073:21;;-1:-1:-1;;11073:21:0;;;44621:297;;;:::o;48892:212::-;10750:13;;;;;;;;:33;;;10767:16;:14;:16::i;:::-;10750:50;;;-1:-1:-1;10788:12:0;;;;10787:13;10750:50;10742:109;;;;-1:-1:-1;;;10742:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10864:19;10887:13;;;;;;10886:14;10911:101;;;;10946:13;:20;;-1:-1:-1;;;;10946:20:0;;;;;10981:19;10962:4;10981:19;;;10911:101;49001:95:::1;48982:16;:114:::0;11038:68;;;;11089:5;11073:21;;-1:-1:-1;;11073:21:0;;;48892:212;;:::o;25177:182::-;10750:13;;;;;;;;:33;;;10767:16;:14;:16::i;:::-;10750:50;;;-1:-1:-1;10788:12:0;;;;10787:13;10750:50;10742:109;;;;-1:-1:-1;;;10742:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10864:19;10887:13;;;;;;10886:14;10911:101;;;;10946:13;:20;;-1:-1:-1;;;;10946:20:0;;;;;10981:19;10962:4;10981:19;;;10911:101;25285:13;;::::1;::::0;:5:::1;::::0;:13:::1;::::0;::::1;::::0;::::1;:::i;:::-;-1:-1:-1::0;25309:17:0;;::::1;::::0;:7:::1;::::0;:17:::1;::::0;::::1;::::0;::::1;:::i;:::-;-1:-1:-1::0;25337:9:0::1;:14:::0;;-1:-1:-1;;25337:14:0::1;25349:2;25337:14;::::0;;11038:68;;;;11089:5;11073:21;;-1:-1:-1;;11073:21:0;;;25177:182;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;

Swarm Source

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