Contract 0x7825e833D495F3d1c28872415a4aee339D26AC88 2

 
Txn Hash Method
Block
From
To
Value
0x6cd7d0c02532eb276ceedc4b0ea32f2cfe99d9470e2e888442e51b3bd5ab4850Transfer133001842021-09-26 7:46:231 hr 42 mins agoKuCoin 3 IN  pTokens TLOS: TLOS Token0 Ether0.008197802365121.84786286
0xfa2b671ceca89914fedc1806cfecb1de45482afc3110beff9c267dd88cecb1ebTransfer132999212021-09-26 6:46:332 hrs 42 mins ago0x57f99c9f17088fa8e0125991650dbb8505ea4c88 IN  pTokens TLOS: TLOS Token0 Ether0.002771552595 44.359746404
0xe1d81af747a4b3881f13b719a8fc62f0b3de1ab9eb25bb0d57bfbdbdad0a841bTransfer132994632021-09-26 5:08:224 hrs 20 mins ago0x2ea59edff480707e38066614bc54319d688928b2 IN  pTokens TLOS: TLOS Token0 Ether0.00308495668
0x7e0faaa6204af0eb779ff35ceefc94fa90c4b3bff59a436ab3dc1f50d3cdc071Transfer132993312021-09-26 4:36:024 hrs 53 mins ago0xb72ec0587d8e777bd281ebf1849398040c291ad9 IN  pTokens TLOS: TLOS Token0 Ether0.00300037628344.603985365
0x133f0af8e3aed7b99ffab5e0d99b227b092d63c916f5bc7be930aec4751d65adApprove132992822021-09-26 4:24:285 hrs 4 mins ago0x8c4b37b7353bdc617556e46f8c922e03c11ad98f IN  pTokens TLOS: TLOS Token0 Ether0.00191205546 39.214410882
0xf693ccf50738024b6d922be0d962c45d9715e033e473c45a4ed4ac3782521c63Approve132992222021-09-26 4:11:015 hrs 18 mins ago0xa6e8fd731e545bff3b40206670def1d783678b13 IN  pTokens TLOS: TLOS Token0 Ether0.002345577562 48.105530514
0x85723d981f1418e114fdfa8b1981671c9e2c71b28cd1af0cca9d4addccea4cbcTransfer132986232021-09-26 1:55:557 hrs 33 mins agoKuCoin 3 IN  pTokens TLOS: TLOS Token0 Ether0.00414901306961.668768409
0xa7cef48c9252a189380134fc3da9d801840917b795b9b57cea1ea4df24c2767eTransfer132986232021-09-26 1:55:557 hrs 33 mins agoKuCoin 3 IN  pTokens TLOS: TLOS Token0 Ether0.00414827304461.668768409
0x546a2363c57874aa04b653bf1738d353530e4594ad064ac418699489473c426fTransfer132986202021-09-26 1:55:477 hrs 33 mins ago0xd6216fc19db775df9774a6e33526131da7d19a2c IN  pTokens TLOS: TLOS Token0 Ether0.002394355693 47.739122583
0x9bd98e7064fa99f8626c8b988a3c1ca0bcae6e3febd3052192d6f8b432780a7dTransfer132985092021-09-26 1:27:588 hrs 1 min agoKuCoin 3 IN  pTokens TLOS: TLOS Token0 Ether0.00296042907344.010124924
0xfb04840413e17168ed447adccefe540461c6573a587dccfd0cb86eb628aad69dApprove132982552021-09-26 0:30:118 hrs 58 mins ago0xecd1d4841dd6ae8afdb7da4f4d7e23b7866d9f53 IN  pTokens TLOS: TLOS Token0 Ether0.002359935648.4
0xda135655a3a7472d6fad8fab8e643ea9aad935cb01c8050e3662ad261b6c0f37Mint132972612021-09-25 20:57:4912 hrs 31 mins ago0x39b496b411ad47604f64cca6c325516d7a42eb68 IN  pTokens TLOS: TLOS Token0 Ether0.00336562851.5
0xccc046e917e1810bd2d3b47f819b8856af1a20359016b89b21729ed978d1d1f0Mint132972612021-09-25 20:57:4912 hrs 31 mins ago0x39b496b411ad47604f64cca6c325516d7a42eb68 IN  pTokens TLOS: TLOS Token0 Ether0.00336624651.5
0x05bc26e3ac54232c9d8db9863ce8718696fcc1b0efed20315ef2304e5d3d8a69Mint132972612021-09-25 20:57:4912 hrs 31 mins ago0x39b496b411ad47604f64cca6c325516d7a42eb68 IN  pTokens TLOS: TLOS Token0 Ether0.00248312451.5
0x618187dc626b652bd57fe3dcfe05ec5be64c3d82d662fdd0242d4a97e9006fe5Mint132972612021-09-25 20:57:4912 hrs 31 mins ago0x39b496b411ad47604f64cca6c325516d7a42eb68 IN  pTokens TLOS: TLOS Token0 Ether0.0026131240
0x1f0e1bde4daf50453d72c1eb848439d7c1167104e8e9df8bf2700af38c16a02aTransfer132972032021-09-25 20:45:3112 hrs 43 mins agoGate.io IN  pTokens TLOS: TLOS Token0 Ether0.00375178798955.774569847
0x2825d6617cd9815433e3e5d9eb520f75e4d9db16691459b31413d440765c1df7Mint132971632021-09-25 20:35:1612 hrs 53 mins ago0x39b496b411ad47604f64cca6c325516d7a42eb68 IN  pTokens TLOS: TLOS Token0 Ether0.0019291240
0xa8033f11b655fe41bc975efd6ec2df1d63589aac20f2f1dd637b03b6a128467fMint132971612021-09-25 20:34:5212 hrs 54 mins ago0x39b496b411ad47604f64cca6c325516d7a42eb68 IN  pTokens TLOS: TLOS Token0 Ether0.0031363248
0xc71a61f0d1bec540c2b2c6cfb6602b5b9c396e29a64cc28dba5bd201f1537c08Mint132971362021-09-25 20:29:2312 hrs 59 mins ago0x39b496b411ad47604f64cca6c325516d7a42eb68 IN  pTokens TLOS: TLOS Token0 Ether0.0031363248
0xb64b0ae2117ddf2914b2f99d7461e2241c00707b73830ce811e2efc370b0e959Transfer132965402021-09-25 18:12:2715 hrs 16 mins agoKuCoin 3 IN  pTokens TLOS: TLOS Token0 Ether0.00518048377
0xd3e9089ad20588f3ab365a0c19286bb4a2aff70f733e84a44d18cbef0b9a2125Approve132955672021-09-25 14:42:5118 hrs 46 mins ago0x1af7cfef771c7b1a6cdf7eef2b4faf3a098522ca IN  pTokens TLOS: TLOS Token0 Ether0.002844659207 58.341213064
0x82b9e6deaa4e96c1bcac7eae6cf479d3671859096db845c81604f1c4708b575dRedeem132952052021-09-25 13:20:2120 hrs 8 mins ago0xb18a721ae9c14a1f7feed578574490cc650431a8 IN  pTokens TLOS: TLOS Token0 Ether0.001803092471 40.494362338
0x890a5e7c0e6b962c282202d539133f4ac210a29dbc12d6717dd33af1c3f22bd1Mint132950572021-09-25 12:49:3020 hrs 39 mins ago0x39b496b411ad47604f64cca6c325516d7a42eb68 IN  pTokens TLOS: TLOS Token0 Ether0.0054232283
0x0519fb6544cec6bfd121cbc0b4ed9b5b6efe7d9577338b04dd32aab0ba28e252Transfer132946482021-09-25 11:18:2922 hrs 10 mins agoKuCoin 3 IN  pTokens TLOS: TLOS Token0 Ether0.00265798459852.982729656
0xc7a0dd7ea7eabe32b334f66c18dfeeb7441f8c74a171d7039441fd0ff11f0de5Transfer132937702021-09-25 8:08:111 day 1 hr ago0x8c386b02e972301fd72100e37a48458832915323 IN  pTokens TLOS: TLOS Token0 Ether0.00308577268
[ Download CSV Export 

OVERVIEW

pNetwork enables cross-chain movement of assets and data.

View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PToken

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-02-18
*/

/**
 *Submitted for verification at Etherscan.io on 2021-02-02
*/

/**
 *Submitted for verification at Etherscan.io on 2020-07-29
*/

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

pragma solidity ^0.5.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

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

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

// File: @openzeppelin/contracts/token/ERC777/IERC777.sol

pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC777Token standard as defined in the EIP.
 *
 * This contract uses the
 * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 registry standard] to let
 * token holders and recipients react to token movements by using setting implementers
 * for the associated interfaces in said registry. See {IERC1820Registry} and
 * {ERC1820Implementer}.
 */
interface IERC777 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the smallest part of the token that is not divisible. This
     * means all token operations (creation, movement and destruction) must have
     * amounts that are a multiple of this number.
     *
     * For most token contracts, this value will equal 1.
     */
    function granularity() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * If send or receive hooks are registered for the caller and `recipient`,
     * the corresponding functions will be called with `data` and empty
     * `operatorData`. See {IERC777Sender} and {IERC777Recipient}.
     *
     * Emits a {Sent} event.
     *
     * Requirements
     *
     * - the caller must have at least `amount` tokens.
     * - `recipient` cannot be the zero address.
     * - if `recipient` is a contract, it must implement the {IERC777Recipient}
     * interface.
     */
    function send(address recipient, uint256 amount, bytes calldata data) external;

    /**
     * @dev Destroys `amount` tokens from the caller's account, reducing the
     * total supply.
     *
     * If a send hook is registered for the caller, the corresponding function
     * will be called with `data` and empty `operatorData`. See {IERC777Sender}.
     *
     * Emits a {Burned} event.
     *
     * Requirements
     *
     * - the caller must have at least `amount` tokens.
     */
    function burn(uint256 amount, bytes calldata data) external;

    /**
     * @dev Returns true if an account is an operator of `tokenHolder`.
     * Operators can send and burn tokens on behalf of their owners. All
     * accounts are their own operator.
     *
     * See {operatorSend} and {operatorBurn}.
     */
    function isOperatorFor(address operator, address tokenHolder) external view returns (bool);

    /**
     * @dev Make an account an operator of the caller.
     *
     * See {isOperatorFor}.
     *
     * Emits an {AuthorizedOperator} event.
     *
     * Requirements
     *
     * - `operator` cannot be calling address.
     */
    function authorizeOperator(address operator) external;

    /**
     * @dev Make an account an operator of the caller.
     *
     * See {isOperatorFor} and {defaultOperators}.
     *
     * Emits a {RevokedOperator} event.
     *
     * Requirements
     *
     * - `operator` cannot be calling address.
     */
    function revokeOperator(address operator) external;

    /**
     * @dev Returns the list of default operators. These accounts are operators
     * for all token holders, even if {authorizeOperator} was never called on
     * them.
     *
     * This list is immutable, but individual holders may revoke these via
     * {revokeOperator}, in which case {isOperatorFor} will return false.
     */
    function defaultOperators() external view returns (address[] memory);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient`. The caller must
     * be an operator of `sender`.
     *
     * If send or receive hooks are registered for `sender` and `recipient`,
     * the corresponding functions will be called with `data` and
     * `operatorData`. See {IERC777Sender} and {IERC777Recipient}.
     *
     * Emits a {Sent} event.
     *
     * Requirements
     *
     * - `sender` cannot be the zero address.
     * - `sender` must have at least `amount` tokens.
     * - the caller must be an operator for `sender`.
     * - `recipient` cannot be the zero address.
     * - if `recipient` is a contract, it must implement the {IERC777Recipient}
     * interface.
     */
    function operatorSend(
        address sender,
        address recipient,
        uint256 amount,
        bytes calldata data,
        bytes calldata operatorData
    ) external;

    /**
     * @dev Destoys `amount` tokens from `account`, reducing the total supply.
     * The caller must be an operator of `account`.
     *
     * If a send hook is registered for `account`, the corresponding function
     * will be called with `data` and `operatorData`. See {IERC777Sender}.
     *
     * Emits a {Burned} event.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     * - the caller must be an operator for `account`.
     */
    function operatorBurn(
        address account,
        uint256 amount,
        bytes calldata data,
        bytes calldata operatorData
    ) external;

    event Sent(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256 amount,
        bytes data,
        bytes operatorData
    );

    event Minted(address indexed operator, address indexed to, uint256 amount, bytes data, bytes operatorData);

    event Burned(address indexed operator, address indexed from, uint256 amount, bytes data, bytes operatorData);

    event AuthorizedOperator(address indexed operator, address indexed tokenHolder);

    event RevokedOperator(address indexed operator, address indexed tokenHolder);
}

// File: @openzeppelin/contracts/token/ERC777/IERC777Recipient.sol

pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC777TokensRecipient standard as defined in the EIP.
 *
 * Accounts can be notified of {IERC777} tokens being sent to them by having a
 * contract implement this interface (contract holders can be their own
 * implementer) and registering it on the
 * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry].
 *
 * See {IERC1820Registry} and {ERC1820Implementer}.
 */
interface IERC777Recipient {
    /**
     * @dev Called by an {IERC777} token contract whenever tokens are being
     * moved or created into a registered account (`to`). The type of operation
     * is conveyed by `from` being the zero address or not.
     *
     * This call occurs _after_ the token contract's state is updated, so
     * {IERC777-balanceOf}, etc., can be used to query the post-operation state.
     *
     * This function may revert to prevent the operation from being executed.
     */
    function tokensReceived(
        address operator,
        address from,
        address to,
        uint256 amount,
        bytes calldata userData,
        bytes calldata operatorData
    ) external;
}

// File: @openzeppelin/contracts/token/ERC777/IERC777Sender.sol

pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC777TokensSender standard as defined in the EIP.
 *
 * {IERC777} Token holders can be notified of operations performed on their
 * tokens by having a contract implement this interface (contract holders can be
 *  their own implementer) and registering it on the
 * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry].
 *
 * See {IERC1820Registry} and {ERC1820Implementer}.
 */
interface IERC777Sender {
    /**
     * @dev Called by an {IERC777} token contract whenever a registered holder's
     * (`from`) tokens are about to be moved or destroyed. The type of operation
     * is conveyed by `to` being the zero address or not.
     *
     * This call occurs _before_ the token contract's state is updated, so
     * {IERC777-balanceOf}, etc., can be used to query the pre-operation state.
     *
     * This function may revert to prevent the operation from being executed.
     */
    function tokensToSend(
        address operator,
        address from,
        address to,
        uint256 amount,
        bytes calldata userData,
        bytes calldata operatorData
    ) external;
}

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

pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

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

pragma solidity ^0.5.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

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

        return c;
    }

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

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

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

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

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

pragma solidity ^0.5.5;

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

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }

    /**
     * @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].
     *
     * _Available since v2.4.0._
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

// File: @openzeppelin/contracts/introspection/IERC1820Registry.sol

pragma solidity ^0.5.0;

/**
 * @dev Interface of the global ERC1820 Registry, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1820[EIP]. Accounts may register
 * implementers for interfaces in this registry, as well as query support.
 *
 * Implementers may be shared by multiple accounts, and can also implement more
 * than a single interface for each account. Contracts can implement interfaces
 * for themselves, but externally-owned accounts (EOA) must delegate this to a
 * contract.
 *
 * {IERC165} interfaces can also be queried via the registry.
 *
 * For an in-depth explanation and source code analysis, see the EIP text.
 */
interface IERC1820Registry {
    /**
     * @dev Sets `newManager` as the manager for `account`. A manager of an
     * account is able to set interface implementers for it.
     *
     * By default, each account is its own manager. Passing a value of `0x0` in
     * `newManager` will reset the manager to this initial state.
     *
     * Emits a {ManagerChanged} event.
     *
     * Requirements:
     *
     * - the caller must be the current manager for `account`.
     */
    function setManager(address account, address newManager) external;

    /**
     * @dev Returns the manager for `account`.
     *
     * See {setManager}.
     */
    function getManager(address account) external view returns (address);

    /**
     * @dev Sets the `implementer` contract as `account`'s implementer for
     * `interfaceHash`.
     *
     * `account` being the zero address is an alias for the caller's address.
     * The zero address can also be used in `implementer` to remove an old one.
     *
     * See {interfaceHash} to learn how these are created.
     *
     * Emits an {InterfaceImplementerSet} event.
     *
     * Requirements:
     *
     * - the caller must be the current manager for `account`.
     * - `interfaceHash` must not be an {IERC165} interface id (i.e. it must not
     * end in 28 zeroes).
     * - `implementer` must implement {IERC1820Implementer} and return true when
     * queried for support, unless `implementer` is the caller. See
     * {IERC1820Implementer-canImplementInterfaceForAddress}.
     */
    function setInterfaceImplementer(address account, bytes32 interfaceHash, address implementer) external;

    /**
     * @dev Returns the implementer of `interfaceHash` for `account`. If no such
     * implementer is registered, returns the zero address.
     *
     * If `interfaceHash` is an {IERC165} interface id (i.e. it ends with 28
     * zeroes), `account` will be queried for support of it.
     *
     * `account` being the zero address is an alias for the caller's address.
     */
    function getInterfaceImplementer(address account, bytes32 interfaceHash) external view returns (address);

    /**
     * @dev Returns the interface hash for an `interfaceName`, as defined in the
     * corresponding
     * https://eips.ethereum.org/EIPS/eip-1820#interface-name[section of the EIP].
     */
    function interfaceHash(string calldata interfaceName) external pure returns (bytes32);

    /**
     *  @notice Updates the cache with whether the contract implements an ERC165 interface or not.
     *  @param account Address of the contract for which to update the cache.
     *  @param interfaceId ERC165 interface for which to update the cache.
     */
    function updateERC165Cache(address account, bytes4 interfaceId) external;

    /**
     *  @notice Checks whether a contract implements an ERC165 interface or not.
     *  If the result is not cached a direct lookup on the contract address is performed.
     *  If the result is not cached or the cached value is out-of-date, the cache MUST be updated manually by calling
     *  {updateERC165Cache} with the contract address.
     *  @param account Address of the contract to check.
     *  @param interfaceId ERC165 interface to check.
     *  @return True if `account` implements `interfaceId`, false otherwise.
     */
    function implementsERC165Interface(address account, bytes4 interfaceId) external view returns (bool);

    /**
     *  @notice Checks whether a contract implements an ERC165 interface or not without using nor updating the cache.
     *  @param account Address of the contract to check.
     *  @param interfaceId ERC165 interface to check.
     *  @return True if `account` implements `interfaceId`, false otherwise.
     */
    function implementsERC165InterfaceNoCache(address account, bytes4 interfaceId) external view returns (bool);

    event InterfaceImplementerSet(address indexed account, bytes32 indexed interfaceHash, address indexed implementer);

    event ManagerChanged(address indexed account, address indexed newManager);
}

// File: @openzeppelin/contracts/token/ERC777/ERC777.sol

pragma solidity ^0.5.0;









/**
 * @dev Implementation of the {IERC777} 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}.
 *
 * Support for ERC20 is included in this contract, as specified by the EIP: both
 * the ERC777 and ERC20 interfaces can be safely used when interacting with it.
 * Both {IERC777-Sent} and {IERC20-Transfer} events are emitted on token
 * movements.
 *
 * Additionally, the {IERC777-granularity} value is hard-coded to `1`, meaning that there
 * are no special restrictions in the amount of tokens that created, moved, or
 * destroyed. This makes integration with ERC20 applications seamless.
 */
contract ERC777 is Context, IERC777, IERC20 {
    using SafeMath for uint256;
    using Address for address;

    IERC1820Registry constant internal ERC1820_REGISTRY = IERC1820Registry(0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24);

    mapping(address => uint256) private _balances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    // We inline the result of the following hashes because Solidity doesn't resolve them at compile time.
    // See https://github.com/ethereum/solidity/issues/4024.

    // keccak256("ERC777TokensSender")
    bytes32 constant private TOKENS_SENDER_INTERFACE_HASH =
        0x29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe895;

    // keccak256("ERC777TokensRecipient")
    bytes32 constant private TOKENS_RECIPIENT_INTERFACE_HASH =
        0xb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b;

    // This isn't ever read from - it's only used to respond to the defaultOperators query.
    address[] private _defaultOperatorsArray;

    // Immutable, but accounts may revoke them (tracked in __revokedDefaultOperators).
    mapping(address => bool) private _defaultOperators;

    // For each account, a mapping of its operators and revoked default operators.
    mapping(address => mapping(address => bool)) private _operators;
    mapping(address => mapping(address => bool)) private _revokedDefaultOperators;

    // ERC20-allowances
    mapping (address => mapping (address => uint256)) private _allowances;

    /**
     * @dev `defaultOperators` may be an empty array.
     */
    constructor(
        string memory name,
        string memory symbol,
        address[] memory defaultOperators
    ) public {
        _name = name;
        _symbol = symbol;

        _defaultOperatorsArray = defaultOperators;
        for (uint256 i = 0; i < _defaultOperatorsArray.length; i++) {
            _defaultOperators[_defaultOperatorsArray[i]] = true;
        }

        // register interfaces
        ERC1820_REGISTRY.setInterfaceImplementer(address(this), keccak256("ERC777Token"), address(this));
        ERC1820_REGISTRY.setInterfaceImplementer(address(this), keccak256("ERC20Token"), address(this));
    }

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

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

    /**
     * @dev See {ERC20Detailed-decimals}.
     *
     * Always returns 18, as per the
     * [ERC777 EIP](https://eips.ethereum.org/EIPS/eip-777#backward-compatibility).
     */
    function decimals() public pure returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC777-granularity}.
     *
     * This implementation always returns `1`.
     */
    function granularity() public view returns (uint256) {
        return 1;
    }

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

    /**
     * @dev Returns the amount of tokens owned by an account (`tokenHolder`).
     */
    function balanceOf(address tokenHolder) public view returns (uint256) {
        return _balances[tokenHolder];
    }

    /**
     * @dev See {IERC777-send}.
     *
     * Also emits a {IERC20-Transfer} event for ERC20 compatibility.
     */
    function send(address recipient, uint256 amount, bytes memory data) public {
        _send(_msgSender(), _msgSender(), recipient, amount, data, "", true);
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Unlike `send`, `recipient` is _not_ required to implement the {IERC777Recipient}
     * interface if it is a contract.
     *
     * Also emits a {Sent} event.
     */
    function transfer(address recipient, uint256 amount) public returns (bool) {
        require(recipient != address(0), "ERC777: transfer to the zero address");

        address from = _msgSender();

        _callTokensToSend(from, from, recipient, amount, "", "");

        _move(from, from, recipient, amount, "", "");

        _callTokensReceived(from, from, recipient, amount, "", "", false);

        return true;
    }

    /**
     * @dev See {IERC777-burn}.
     *
     * Also emits a {IERC20-Transfer} event for ERC20 compatibility.
     */
    function burn(uint256 amount, bytes memory data) public {
        _burn(_msgSender(), _msgSender(), amount, data, "");
    }

    /**
     * @dev See {IERC777-isOperatorFor}.
     */
    function isOperatorFor(
        address operator,
        address tokenHolder
    ) public view returns (bool) {
        return operator == tokenHolder ||
            (_defaultOperators[operator] && !_revokedDefaultOperators[tokenHolder][operator]) ||
            _operators[tokenHolder][operator];
    }

    /**
     * @dev See {IERC777-authorizeOperator}.
     */
    function authorizeOperator(address operator) public {
        require(_msgSender() != operator, "ERC777: authorizing self as operator");

        if (_defaultOperators[operator]) {
            delete _revokedDefaultOperators[_msgSender()][operator];
        } else {
            _operators[_msgSender()][operator] = true;
        }

        emit AuthorizedOperator(operator, _msgSender());
    }

    /**
     * @dev See {IERC777-revokeOperator}.
     */
    function revokeOperator(address operator) public {
        require(operator != _msgSender(), "ERC777: revoking self as operator");

        if (_defaultOperators[operator]) {
            _revokedDefaultOperators[_msgSender()][operator] = true;
        } else {
            delete _operators[_msgSender()][operator];
        }

        emit RevokedOperator(operator, _msgSender());
    }

    /**
     * @dev See {IERC777-defaultOperators}.
     */
    function defaultOperators() public view returns (address[] memory) {
        return _defaultOperatorsArray;
    }

    /**
     * @dev See {IERC777-operatorSend}.
     *
     * Emits {Sent} and {IERC20-Transfer} events.
     */
    function operatorSend(
        address sender,
        address recipient,
        uint256 amount,
        bytes memory data,
        bytes memory operatorData
    )
    public
    {
        require(isOperatorFor(_msgSender(), sender), "ERC777: caller is not an operator for holder");
        _send(_msgSender(), sender, recipient, amount, data, operatorData, true);
    }

    /**
     * @dev See {IERC777-operatorBurn}.
     *
     * Emits {Burned} and {IERC20-Transfer} events.
     */
    function operatorBurn(address account, uint256 amount, bytes memory data, bytes memory operatorData) public {
        require(isOperatorFor(_msgSender(), account), "ERC777: caller is not an operator for holder");
        _burn(_msgSender(), account, amount, data, operatorData);
    }

    /**
     * @dev See {IERC20-allowance}.
     *
     * Note that operator and allowance concepts are orthogonal: operators may
     * not have allowance, and accounts with allowance may not be operators
     * themselves.
     */
    function allowance(address holder, address spender) public view returns (uint256) {
        return _allowances[holder][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Note that accounts cannot have allowance issued by their operators.
     */
    function approve(address spender, uint256 value) public returns (bool) {
        address holder = _msgSender();
        _approve(holder, spender, value);
        return true;
    }

   /**
    * @dev See {IERC20-transferFrom}.
    *
    * Note that operator and allowance concepts are orthogonal: operators cannot
    * call `transferFrom` (unless they have allowance), and accounts with
    * allowance cannot call `operatorSend` (unless they are operators).
    *
    * Emits {Sent}, {IERC20-Transfer} and {IERC20-Approval} events.
    */
    function transferFrom(address holder, address recipient, uint256 amount) public returns (bool) {
        require(recipient != address(0), "ERC777: transfer to the zero address");
        require(holder != address(0), "ERC777: transfer from the zero address");

        address spender = _msgSender();

        _callTokensToSend(spender, holder, recipient, amount, "", "");

        _move(spender, holder, recipient, amount, "", "");
        _approve(holder, spender, _allowances[holder][spender].sub(amount, "ERC777: transfer amount exceeds allowance"));

        _callTokensReceived(spender, holder, recipient, amount, "", "", false);

        return true;
    }

    /**
     * @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * If a send hook is registered for `account`, the corresponding function
     * will be called with `operator`, `data` and `operatorData`.
     *
     * See {IERC777Sender} and {IERC777Recipient}.
     *
     * Emits {Minted} and {IERC20-Transfer} events.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - if `account` is a contract, it must implement the {IERC777Recipient}
     * interface.
     */
    function _mint(
        address operator,
        address account,
        uint256 amount,
        bytes memory userData,
        bytes memory operatorData
    )
    internal
    {
        require(account != address(0), "ERC777: mint to the zero address");

        // Update state variables
        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);

        _callTokensReceived(operator, address(0), account, amount, userData, operatorData, true);

        emit Minted(operator, account, amount, userData, operatorData);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Send tokens
     * @param operator address operator requesting the transfer
     * @param from address token holder address
     * @param to address recipient address
     * @param amount uint256 amount of tokens to transfer
     * @param userData bytes extra information provided by the token holder (if any)
     * @param operatorData bytes extra information provided by the operator (if any)
     * @param requireReceptionAck if true, contract recipients are required to implement ERC777TokensRecipient
     */
    function _send(
        address operator,
        address from,
        address to,
        uint256 amount,
        bytes memory userData,
        bytes memory operatorData,
        bool requireReceptionAck
    )
        internal
    {
        require(operator != address(0), "ERC777: operator is the zero address");
        require(from != address(0), "ERC777: send from the zero address");
        require(to != address(0), "ERC777: send to the zero address");

        _callTokensToSend(operator, from, to, amount, userData, operatorData);

        _move(operator, from, to, amount, userData, operatorData);

        _callTokensReceived(operator, from, to, amount, userData, operatorData, requireReceptionAck);
    }

    /**
     * @dev Burn tokens
     * @param operator address operator requesting the operation
     * @param from address token holder address
     * @param amount uint256 amount of tokens to burn
     * @param data bytes extra information provided by the token holder
     * @param operatorData bytes extra information provided by the operator (if any)
     */
    function _burn(
        address operator,
        address from,
        uint256 amount,
        bytes memory data,
        bytes memory operatorData
    )
        internal
    {
        require(from != address(0), "ERC777: burn from the zero address");

        _callTokensToSend(operator, from, address(0), amount, data, operatorData);

        // Update state variables
        _balances[from] = _balances[from].sub(amount, "ERC777: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);

        emit Burned(operator, from, amount, data, operatorData);
        emit Transfer(from, address(0), amount);
    }

    function _move(
        address operator,
        address from,
        address to,
        uint256 amount,
        bytes memory userData,
        bytes memory operatorData
    )
        private
    {
        _balances[from] = _balances[from].sub(amount, "ERC777: transfer amount exceeds balance");
        _balances[to] = _balances[to].add(amount);

        emit Sent(operator, from, to, amount, userData, operatorData);
        emit Transfer(from, to, amount);
    }

    /**
     * @dev See {ERC20-_approve}.
     *
     * Note that accounts cannot have allowance issued by their operators.
     */
    function _approve(address holder, address spender, uint256 value) internal {
        require(holder != address(0), "ERC777: approve from the zero address");
        require(spender != address(0), "ERC777: approve to the zero address");

        _allowances[holder][spender] = value;
        emit Approval(holder, spender, value);
    }

    /**
     * @dev Call from.tokensToSend() if the interface is registered
     * @param operator address operator requesting the transfer
     * @param from address token holder address
     * @param to address recipient address
     * @param amount uint256 amount of tokens to transfer
     * @param userData bytes extra information provided by the token holder (if any)
     * @param operatorData bytes extra information provided by the operator (if any)
     */
    function _callTokensToSend(
        address operator,
        address from,
        address to,
        uint256 amount,
        bytes memory userData,
        bytes memory operatorData
    )
        internal
    {
        address implementer = ERC1820_REGISTRY.getInterfaceImplementer(from, TOKENS_SENDER_INTERFACE_HASH);
        if (implementer != address(0)) {
            IERC777Sender(implementer).tokensToSend(operator, from, to, amount, userData, operatorData);
        }
    }

    /**
     * @dev Call to.tokensReceived() if the interface is registered. Reverts if the recipient is a contract but
     * tokensReceived() was not registered for the recipient
     * @param operator address operator requesting the transfer
     * @param from address token holder address
     * @param to address recipient address
     * @param amount uint256 amount of tokens to transfer
     * @param userData bytes extra information provided by the token holder (if any)
     * @param operatorData bytes extra information provided by the operator (if any)
     * @param requireReceptionAck if true, contract recipients are required to implement ERC777TokensRecipient
     */
    function _callTokensReceived(
        address operator,
        address from,
        address to,
        uint256 amount,
        bytes memory userData,
        bytes memory operatorData,
        bool requireReceptionAck
    )
        internal
    {
        address implementer = ERC1820_REGISTRY.getInterfaceImplementer(to, TOKENS_RECIPIENT_INTERFACE_HASH);
        if (implementer != address(0)) {
            IERC777Recipient(implementer).tokensReceived(operator, from, to, amount, userData, operatorData);
        } else if (requireReceptionAck) {
            require(!to.isContract(), "ERC777: token recipient contract has no implementer for ERC777TokensRecipient");
        }
    }
}

// File: contracts/AbstractOwnable.sol

pragma solidity ^0.5.0;

contract AbstractOwnable {
  /**
   * @dev Returns the address of the current owner.
   */
  function owner() internal view returns (address);

  /**
   * @dev Throws if called by any account other than the owner.
   */
  modifier onlyOwner() {
    require(isOwner(), "Caller is not the owner");
    _;
  }

  /**
   * @dev Returns true if the caller is the current owner.
   */
  function isOwner() internal view returns (bool) {
    return msg.sender == owner();
  }

}

// File: @openzeppelin/contracts/cryptography/ECDSA.sol

pragma solidity ^0.5.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 ECDSA {
    /**
     * @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.
     *
     * NOTE: This call _does not revert_ if the signature is invalid, or
     * if the signer is otherwise unable to be retrieved. In those scenarios,
     * the zero address is returned.
     *
     * 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) {
            return (address(0));
        }

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

        // 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.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return address(0);
        }

        if (v != 27 && v != 28) {
            return address(0);
        }

        // If the signature is valid (and not malleable), return the signer address
        return ecrecover(hash, v, r, s);
    }

    /**
     * @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/GSN/IRelayRecipient.sol

pragma solidity ^0.5.0;

/**
 * @dev Base interface for a contract that will be called via the GSN from {IRelayHub}.
 *
 * TIP: You don't need to write an implementation yourself! Inherit from {GSNRecipient} instead.
 */
interface IRelayRecipient {
    /**
     * @dev Returns the address of the {IRelayHub} instance this recipient interacts with.
     */
    function getHubAddr() external view returns (address);

    /**
     * @dev Called by {IRelayHub} to validate if this recipient accepts being charged for a relayed call. Note that the
     * recipient will be charged regardless of the execution result of the relayed call (i.e. if it reverts or not).
     *
     * The relay request was originated by `from` and will be served by `relay`. `encodedFunction` is the relayed call
     * calldata, so its first four bytes are the function selector. The relayed call will be forwarded `gasLimit` gas,
     * and the transaction executed with a gas price of at least `gasPrice`. `relay`'s fee is `transactionFee`, and the
     * recipient will be charged at most `maxPossibleCharge` (in wei). `nonce` is the sender's (`from`) nonce for
     * replay attack protection in {IRelayHub}, and `approvalData` is a optional parameter that can be used to hold a signature
     * over all or some of the previous values.
     *
     * Returns a tuple, where the first value is used to indicate approval (0) or rejection (custom non-zero error code,
     * values 1 to 10 are reserved) and the second one is data to be passed to the other {IRelayRecipient} functions.
     *
     * {acceptRelayedCall} is called with 50k gas: if it runs out during execution, the request will be considered
     * rejected. A regular revert will also trigger a rejection.
     */
    function acceptRelayedCall(
        address relay,
        address from,
        bytes calldata encodedFunction,
        uint256 transactionFee,
        uint256 gasPrice,
        uint256 gasLimit,
        uint256 nonce,
        bytes calldata approvalData,
        uint256 maxPossibleCharge
    )
        external
        view
        returns (uint256, bytes memory);

    /**
     * @dev Called by {IRelayHub} on approved relay call requests, before the relayed call is executed. This allows to e.g.
     * pre-charge the sender of the transaction.
     *
     * `context` is the second value returned in the tuple by {acceptRelayedCall}.
     *
     * Returns a value to be passed to {postRelayedCall}.
     *
     * {preRelayedCall} is called with 100k gas: if it runs out during exection or otherwise reverts, the relayed call
     * will not be executed, but the recipient will still be charged for the transaction's cost.
     */
    function preRelayedCall(bytes calldata context) external returns (bytes32);

    /**
     * @dev Called by {IRelayHub} on approved relay call requests, after the relayed call is executed. This allows to e.g.
     * charge the user for the relayed call costs, return any overcharges from {preRelayedCall}, or perform
     * contract-specific bookkeeping.
     *
     * `context` is the second value returned in the tuple by {acceptRelayedCall}. `success` is the execution status of
     * the relayed call. `actualCharge` is an estimate of how much the recipient will be charged for the transaction,
     * not including any gas used by {postRelayedCall} itself. `preRetVal` is {preRelayedCall}'s return value.
     *
     *
     * {postRelayedCall} is called with 100k gas: if it runs out during execution or otherwise reverts, the relayed call
     * and the call to {preRelayedCall} will be reverted retroactively, but the recipient will still be charged for the
     * transaction's cost.
     */
    function postRelayedCall(bytes calldata context, bool success, uint256 actualCharge, bytes32 preRetVal) external;
}

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

pragma solidity ^0.5.0;

/**
 * @dev Interface for `RelayHub`, the core contract of the GSN. Users should not need to interact with this contract
 * directly.
 *
 * See the https://github.com/OpenZeppelin/openzeppelin-gsn-helpers[OpenZeppelin GSN helpers] for more information on
 * how to deploy an instance of `RelayHub` on your local test network.
 */
interface IRelayHub {
    // Relay management

    /**
     * @dev Adds stake to a relay and sets its `unstakeDelay`. If the relay does not exist, it is created, and the caller
     * of this function becomes its owner. If the relay already exists, only the owner can call this function. A relay
     * cannot be its own owner.
     *
     * All Ether in this function call will be added to the relay's stake.
     * Its unstake delay will be assigned to `unstakeDelay`, but the new value must be greater or equal to the current one.
     *
     * Emits a {Staked} event.
     */
    function stake(address relayaddr, uint256 unstakeDelay) external payable;

    /**
     * @dev Emitted when a relay's stake or unstakeDelay are increased
     */
    event Staked(address indexed relay, uint256 stake, uint256 unstakeDelay);

    /**
     * @dev Registers the caller as a relay.
     * The relay must be staked for, and not be a contract (i.e. this function must be called directly from an EOA).
     *
     * This function can be called multiple times, emitting new {RelayAdded} events. Note that the received
     * `transactionFee` is not enforced by {relayCall}.
     *
     * Emits a {RelayAdded} event.
     */
    function registerRelay(uint256 transactionFee, string calldata url) external;

    /**
     * @dev Emitted when a relay is registered or re-registerd. Looking at these events (and filtering out
     * {RelayRemoved} events) lets a client discover the list of available relays.
     */
    event RelayAdded(address indexed relay, address indexed owner, uint256 transactionFee, uint256 stake, uint256 unstakeDelay, string url);

    /**
     * @dev Removes (deregisters) a relay. Unregistered (but staked for) relays can also be removed.
     *
     * Can only be called by the owner of the relay. After the relay's `unstakeDelay` has elapsed, {unstake} will be
     * callable.
     *
     * Emits a {RelayRemoved} event.
     */
    function removeRelayByOwner(address relay) external;

    /**
     * @dev Emitted when a relay is removed (deregistered). `unstakeTime` is the time when unstake will be callable.
     */
    event RelayRemoved(address indexed relay, uint256 unstakeTime);

    /** Deletes the relay from the system, and gives back its stake to the owner.
     *
     * Can only be called by the relay owner, after `unstakeDelay` has elapsed since {removeRelayByOwner} was called.
     *
     * Emits an {Unstaked} event.
     */
    function unstake(address relay) external;

    /**
     * @dev Emitted when a relay is unstaked for, including the returned stake.
     */
    event Unstaked(address indexed relay, uint256 stake);

    // States a relay can be in
    enum RelayState {
        Unknown, // The relay is unknown to the system: it has never been staked for
        Staked, // The relay has been staked for, but it is not yet active
        Registered, // The relay has registered itself, and is active (can relay calls)
        Removed    // The relay has been removed by its owner and can no longer relay calls. It must wait for its unstakeDelay to elapse before it can unstake
    }

    /**
     * @dev Returns a relay's status. Note that relays can be deleted when unstaked or penalized, causing this function
     * to return an empty entry.
     */
    function getRelay(address relay) external view returns (uint256 totalStake, uint256 unstakeDelay, uint256 unstakeTime, address payable owner, RelayState state);

    // Balance management

    /**
     * @dev Deposits Ether for a contract, so that it can receive (and pay for) relayed transactions.
     *
     * Unused balance can only be withdrawn by the contract itself, by calling {withdraw}.
     *
     * Emits a {Deposited} event.
     */
    function depositFor(address target) external payable;

    /**
     * @dev Emitted when {depositFor} is called, including the amount and account that was funded.
     */
    event Deposited(address indexed recipient, address indexed from, uint256 amount);

    /**
     * @dev Returns an account's deposits. These can be either a contracts's funds, or a relay owner's revenue.
     */
    function balanceOf(address target) external view returns (uint256);

    /**
     * Withdraws from an account's balance, sending it back to it. Relay owners call this to retrieve their revenue, and
     * contracts can use it to reduce their funding.
     *
     * Emits a {Withdrawn} event.
     */
    function withdraw(uint256 amount, address payable dest) external;

    /**
     * @dev Emitted when an account withdraws funds from `RelayHub`.
     */
    event Withdrawn(address indexed account, address indexed dest, uint256 amount);

    // Relaying

    /**
     * @dev Checks if the `RelayHub` will accept a relayed operation.
     * Multiple things must be true for this to happen:
     *  - all arguments must be signed for by the sender (`from`)
     *  - the sender's nonce must be the current one
     *  - the recipient must accept this transaction (via {acceptRelayedCall})
     *
     * Returns a `PreconditionCheck` value (`OK` when the transaction can be relayed), or a recipient-specific error
     * code if it returns one in {acceptRelayedCall}.
     */
    function canRelay(
        address relay,
        address from,
        address to,
        bytes calldata encodedFunction,
        uint256 transactionFee,
        uint256 gasPrice,
        uint256 gasLimit,
        uint256 nonce,
        bytes calldata signature,
        bytes calldata approvalData
    ) external view returns (uint256 status, bytes memory recipientContext);

    // Preconditions for relaying, checked by canRelay and returned as the corresponding numeric values.
    enum PreconditionCheck {
        OK,                         // All checks passed, the call can be relayed
        WrongSignature,             // The transaction to relay is not signed by requested sender
        WrongNonce,                 // The provided nonce has already been used by the sender
        AcceptRelayedCallReverted,  // The recipient rejected this call via acceptRelayedCall
        InvalidRecipientStatusCode  // The recipient returned an invalid (reserved) status code
    }

    /**
     * @dev Relays a transaction.
     *
     * For this to succeed, multiple conditions must be met:
     *  - {canRelay} must `return PreconditionCheck.OK`
     *  - the sender must be a registered relay
     *  - the transaction's gas price must be larger or equal to the one that was requested by the sender
     *  - the transaction must have enough gas to not run out of gas if all internal transactions (calls to the
     * recipient) use all gas available to them
     *  - the recipient must have enough balance to pay the relay for the worst-case scenario (i.e. when all gas is
     * spent)
     *
     * If all conditions are met, the call will be relayed and the recipient charged. {preRelayedCall}, the encoded
     * function and {postRelayedCall} will be called in that order.
     *
     * Parameters:
     *  - `from`: the client originating the request
     *  - `to`: the target {IRelayRecipient} contract
     *  - `encodedFunction`: the function call to relay, including data
     *  - `transactionFee`: fee (%) the relay takes over actual gas cost
     *  - `gasPrice`: gas price the client is willing to pay
     *  - `gasLimit`: gas to forward when calling the encoded function
     *  - `nonce`: client's nonce
     *  - `signature`: client's signature over all previous params, plus the relay and RelayHub addresses
     *  - `approvalData`: dapp-specific data forwared to {acceptRelayedCall}. This value is *not* verified by the
     * `RelayHub`, but it still can be used for e.g. a signature.
     *
     * Emits a {TransactionRelayed} event.
     */
    function relayCall(
        address from,
        address to,
        bytes calldata encodedFunction,
        uint256 transactionFee,
        uint256 gasPrice,
        uint256 gasLimit,
        uint256 nonce,
        bytes calldata signature,
        bytes calldata approvalData
    ) external;

    /**
     * @dev Emitted when an attempt to relay a call failed.
     *
     * This can happen due to incorrect {relayCall} arguments, or the recipient not accepting the relayed call. The
     * actual relayed call was not executed, and the recipient not charged.
     *
     * The `reason` parameter contains an error code: values 1-10 correspond to `PreconditionCheck` entries, and values
     * over 10 are custom recipient error codes returned from {acceptRelayedCall}.
     */
    event CanRelayFailed(address indexed relay, address indexed from, address indexed to, bytes4 selector, uint256 reason);

    /**
     * @dev Emitted when a transaction is relayed. 
     * Useful when monitoring a relay's operation and relayed calls to a contract
     *
     * Note that the actual encoded function might be reverted: this is indicated in the `status` parameter.
     *
     * `charge` is the Ether value deducted from the recipient's balance, paid to the relay's owner.
     */
    event TransactionRelayed(address indexed relay, address indexed from, address indexed to, bytes4 selector, RelayCallStatus status, uint256 charge);

    // Reason error codes for the TransactionRelayed event
    enum RelayCallStatus {
        OK,                      // The transaction was successfully relayed and execution successful - never included in the event
        RelayedCallFailed,       // The transaction was relayed, but the relayed call failed
        PreRelayedFailed,        // The transaction was not relayed due to preRelatedCall reverting
        PostRelayedFailed,       // The transaction was relayed and reverted due to postRelatedCall reverting
        RecipientBalanceChanged  // The transaction was relayed and reverted due to the recipient's balance changing
    }

    /**
     * @dev Returns how much gas should be forwarded to a call to {relayCall}, in order to relay a transaction that will
     * spend up to `relayedCallStipend` gas.
     */
    function requiredGas(uint256 relayedCallStipend) external view returns (uint256);

    /**
     * @dev Returns the maximum recipient charge, given the amount of gas forwarded, gas price and relay fee.
     */
    function maxPossibleCharge(uint256 relayedCallStipend, uint256 gasPrice, uint256 transactionFee) external view returns (uint256);

     // Relay penalization. 
     // Any account can penalize relays, removing them from the system immediately, and rewarding the
    // reporter with half of the relay's stake. The other half is burned so that, even if the relay penalizes itself, it
    // still loses half of its stake.

    /**
     * @dev Penalize a relay that signed two transactions using the same nonce (making only the first one valid) and
     * different data (gas price, gas limit, etc. may be different).
     *
     * The (unsigned) transaction data and signature for both transactions must be provided.
     */
    function penalizeRepeatedNonce(bytes calldata unsignedTx1, bytes calldata signature1, bytes calldata unsignedTx2, bytes calldata signature2) external;

    /**
     * @dev Penalize a relay that sent a transaction that didn't target `RelayHub`'s {registerRelay} or {relayCall}.
     */
    function penalizeIllegalTransaction(bytes calldata unsignedTx, bytes calldata signature) external;

    /**
     * @dev Emitted when a relay is penalized.
     */
    event Penalized(address indexed relay, address sender, uint256 amount);

    /**
     * @dev Returns an account's nonce in `RelayHub`.
     */
    function getNonce(address from) external view returns (uint256);
}

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

pragma solidity ^0.5.0;




/**
 * @dev Base GSN recipient contract: includes the {IRelayRecipient} interface
 * and enables GSN support on all contracts in the inheritance tree.
 *
 * TIP: This contract is abstract. The functions {IRelayRecipient-acceptRelayedCall},
 *  {_preRelayedCall}, and {_postRelayedCall} are not implemented and must be
 * provided by derived contracts. See the
 * xref:ROOT:gsn-strategies.adoc#gsn-strategies[GSN strategies] for more
 * information on how to use the pre-built {GSNRecipientSignature} and
 * {GSNRecipientERC20Fee}, or how to write your own.
 */
contract GSNRecipient is IRelayRecipient, Context {
    // Default RelayHub address, deployed on mainnet and all testnets at the same address
    address private _relayHub = 0xD216153c06E857cD7f72665E0aF1d7D82172F494;

    uint256 constant private RELAYED_CALL_ACCEPTED = 0;
    uint256 constant private RELAYED_CALL_REJECTED = 11;

    // How much gas is forwarded to postRelayedCall
    uint256 constant internal POST_RELAYED_CALL_MAX_GAS = 100000;

    /**
     * @dev Emitted when a contract changes its {IRelayHub} contract to a new one.
     */
    event RelayHubChanged(address indexed oldRelayHub, address indexed newRelayHub);

    /**
     * @dev Returns the address of the {IRelayHub} contract for this recipient.
     */
    function getHubAddr() public view returns (address) {
        return _relayHub;
    }

    /**
     * @dev Switches to a new {IRelayHub} instance. This method is added for future-proofing: there's no reason to not
     * use the default instance.
     *
     * IMPORTANT: After upgrading, the {GSNRecipient} will no longer be able to receive relayed calls from the old
     * {IRelayHub} instance. Additionally, all funds should be previously withdrawn via {_withdrawDeposits}.
     */
    function _upgradeRelayHub(address newRelayHub) internal {
        address currentRelayHub = _relayHub;
        require(newRelayHub != address(0), "GSNRecipient: new RelayHub is the zero address");
        require(newRelayHub != currentRelayHub, "GSNRecipient: new RelayHub is the current one");

        emit RelayHubChanged(currentRelayHub, newRelayHub);

        _relayHub = newRelayHub;
    }

    /**
     * @dev Returns the version string of the {IRelayHub} for which this recipient implementation was built. If
     * {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version.
     */
    // This function is view for future-proofing, it may require reading from
    // storage in the future.
    function relayHubVersion() public view returns (string memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return "1.0.0";
    }

    /**
     * @dev Withdraws the recipient's deposits in `RelayHub`.
     *
     * Derived contracts should expose this in an external interface with proper access control.
     */
    function _withdrawDeposits(uint256 amount, address payable payee) internal {
        IRelayHub(_relayHub).withdraw(amount, payee);
    }

    // Overrides for Context's functions: when called from RelayHub, sender and
    // data require some pre-processing: the actual sender is stored at the end
    // of the call data, which in turns means it needs to be removed from it
    // when handling said data.

    /**
     * @dev Replacement for msg.sender. Returns the actual sender of a transaction: msg.sender for regular transactions,
     * and the end-user for GSN relayed calls (where msg.sender is actually `RelayHub`).
     *
     * IMPORTANT: Contracts derived from {GSNRecipient} should never use `msg.sender`, and use {_msgSender} instead.
     */
    function _msgSender() internal view returns (address payable) {
        if (msg.sender != _relayHub) {
            return msg.sender;
        } else {
            return _getRelayedCallSender();
        }
    }

    /**
     * @dev Replacement for msg.data. Returns the actual calldata of a transaction: msg.data for regular transactions,
     * and a reduced version for GSN relayed calls (where msg.data contains additional information).
     *
     * IMPORTANT: Contracts derived from {GSNRecipient} should never use `msg.data`, and use {_msgData} instead.
     */
    function _msgData() internal view returns (bytes memory) {
        if (msg.sender != _relayHub) {
            return msg.data;
        } else {
            return _getRelayedCallData();
        }
    }

    // Base implementations for pre and post relayedCall: only RelayHub can invoke them, and data is forwarded to the
    // internal hook.

    /**
     * @dev See `IRelayRecipient.preRelayedCall`.
     *
     * This function should not be overriden directly, use `_preRelayedCall` instead.
     *
     * * Requirements:
     *
     * - the caller must be the `RelayHub` contract.
     */
    function preRelayedCall(bytes calldata context) external returns (bytes32) {
        require(msg.sender == getHubAddr(), "GSNRecipient: caller is not RelayHub");
        return _preRelayedCall(context);
    }

    /**
     * @dev See `IRelayRecipient.preRelayedCall`.
     *
     * Called by `GSNRecipient.preRelayedCall`, which asserts the caller is the `RelayHub` contract. Derived contracts
     * must implement this function with any relayed-call preprocessing they may wish to do.
     *
     */
    function _preRelayedCall(bytes memory context) internal returns (bytes32);

    /**
     * @dev See `IRelayRecipient.postRelayedCall`.
     *
     * This function should not be overriden directly, use `_postRelayedCall` instead.
     *
     * * Requirements:
     *
     * - the caller must be the `RelayHub` contract.
     */
    function postRelayedCall(bytes calldata context, bool success, uint256 actualCharge, bytes32 preRetVal) external {
        require(msg.sender == getHubAddr(), "GSNRecipient: caller is not RelayHub");
        _postRelayedCall(context, success, actualCharge, preRetVal);
    }

    /**
     * @dev See `IRelayRecipient.postRelayedCall`.
     *
     * Called by `GSNRecipient.postRelayedCall`, which asserts the caller is the `RelayHub` contract. Derived contracts
     * must implement this function with any relayed-call postprocessing they may wish to do.
     *
     */
    function _postRelayedCall(bytes memory context, bool success, uint256 actualCharge, bytes32 preRetVal) internal;

    /**
     * @dev Return this in acceptRelayedCall to proceed with the execution of a relayed call. Note that this contract
     * will be charged a fee by RelayHub
     */
    function _approveRelayedCall() internal pure returns (uint256, bytes memory) {
        return _approveRelayedCall("");
    }

    /**
     * @dev See `GSNRecipient._approveRelayedCall`.
     *
     * This overload forwards `context` to _preRelayedCall and _postRelayedCall.
     */
    function _approveRelayedCall(bytes memory context) internal pure returns (uint256, bytes memory) {
        return (RELAYED_CALL_ACCEPTED, context);
    }

    /**
     * @dev Return this in acceptRelayedCall to impede execution of a relayed call. No fees will be charged.
     */
    function _rejectRelayedCall(uint256 errorCode) internal pure returns (uint256, bytes memory) {
        return (RELAYED_CALL_REJECTED + errorCode, "");
    }

    /*
     * @dev Calculates how much RelayHub will charge a recipient for using `gas` at a `gasPrice`, given a relayer's
     * `serviceFee`.
     */
    function _computeCharge(uint256 gas, uint256 gasPrice, uint256 serviceFee) internal pure returns (uint256) {
        // The fee is expressed as a percentage. E.g. a value of 40 stands for a 40% fee, so the recipient will be
        // charged for 1.4 times the spent amount.
        return (gas * gasPrice * (100 + serviceFee)) / 100;
    }

    function _getRelayedCallSender() private pure returns (address payable result) {
        // We need to read 20 bytes (an address) located at array index msg.data.length - 20. In memory, the array
        // is prefixed with a 32-byte length value, so we first add 32 to get the memory read index. However, doing
        // so would leave the address in the upper 20 bytes of the 32-byte word, which is inconvenient and would
        // require bit shifting. We therefore subtract 12 from the read index so the address lands on the lower 20
        // bytes. This can always be done due to the 32-byte prefix.

        // The final memory read index is msg.data.length - 20 + 32 - 12 = msg.data.length. Using inline assembly is the
        // easiest/most-efficient way to perform this operation.

        // These fields are not accessible from assembly
        bytes memory array = msg.data;
        uint256 index = msg.data.length;

        // solhint-disable-next-line no-inline-assembly
        assembly {
            // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
            result := and(mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff)
        }
        return result;
    }

    function _getRelayedCallData() private pure returns (bytes memory) {
        // RelayHub appends the sender address at the end of the calldata, so in order to retrieve the actual msg.data,
        // we must strip the last 20 bytes (length of an address type) from it.

        uint256 actualDataLength = msg.data.length - 20;
        bytes memory actualData = new bytes(actualDataLength);

        for (uint256 i = 0; i < actualDataLength; ++i) {
            actualData[i] = msg.data[i];
        }

        return actualData;
    }
}

// File: contracts/ERC777GSN.sol

pragma solidity ^0.5.0;





contract ERC777GSN is AbstractOwnable, GSNRecipient, ERC777 {
  using ECDSA for bytes32;
  uint256 constant GSN_RATE_UNIT = 10**18;

  enum GSNErrorCodes {
    INVALID_SIGNER,
    INSUFFICIENT_BALANCE
  }

  address public gsnTrustedSigner;
  address public gsnFeeTarget;
  uint256 public gsnExtraGas = 40000; // the gas cost of _postRelayedCall()

  constructor(
    address _gsnTrustedSigner,
    address _gsnFeeTarget
  )
    public
  {
    require(_gsnTrustedSigner != address(0), "trusted signer is the zero address");
    gsnTrustedSigner = _gsnTrustedSigner;
    require(_gsnFeeTarget != address(0), "fee target is the zero address");
    gsnFeeTarget = _gsnFeeTarget;
  }

  function _msgSender() internal view returns (address payable) {
    return GSNRecipient._msgSender();
  }

  function _msgData() internal view returns (bytes memory) {
    return GSNRecipient._msgData();
  }


  function setTrustedSigner(address _gsnTrustedSigner) public onlyOwner {
    require(_gsnTrustedSigner != address(0), "trusted signer is the zero address");
    gsnTrustedSigner = _gsnTrustedSigner;
  }

  function setFeeTarget(address _gsnFeeTarget) public onlyOwner {
    require(_gsnFeeTarget != address(0), "fee target is the zero address");
    gsnFeeTarget = _gsnFeeTarget;
  }

  function setGSNExtraGas(uint _gsnExtraGas) public onlyOwner {
    gsnExtraGas = _gsnExtraGas;
  }


  /**
 * @dev Ensures that only transactions with a trusted signature can be relayed through the GSN.
 */
  function acceptRelayedCall(
    address relay,
    address from,
    bytes memory encodedFunction,
    uint256 transactionFee,
    uint256 gasPrice,
    uint256 gasLimit,
    uint256 nonce,
    bytes memory approvalData,
    uint256 /* maxPossibleCharge */
  )
    public
    view
    returns (uint256, bytes memory)
  {
    (uint256 feeRate, bytes memory signature) = abi.decode(approvalData, (uint, bytes));
    bytes memory blob = abi.encodePacked(
      feeRate,
      relay,
      from,
      encodedFunction,
      transactionFee,
      gasPrice,
      gasLimit,
      nonce, // Prevents replays on RelayHub
      getHubAddr(), // Prevents replays in multiple RelayHubs
      address(this) // Prevents replays in multiple recipients
    );
    if (keccak256(blob).toEthSignedMessageHash().recover(signature) == gsnTrustedSigner) {
      return _approveRelayedCall(abi.encode(feeRate, from, transactionFee, gasPrice));
    } else {
      return _rejectRelayedCall(uint256(GSNErrorCodes.INVALID_SIGNER));
    }
  }

  function _preRelayedCall(bytes memory context) internal returns (bytes32) {}

  function _postRelayedCall(bytes memory context, bool, uint256 actualCharge, bytes32) internal {
    (uint256 feeRate, address from, uint256 transactionFee, uint256 gasPrice) =
      abi.decode(context, (uint256, address, uint256, uint256));

    // actualCharge is an _estimated_ charge, which assumes postRelayedCall will use all available gas.
    // This implementation's gas cost can be roughly estimated as 10k gas, for the two SSTORE operations in an
    // ERC20 transfer.
    uint256 overestimation = _computeCharge(POST_RELAYED_CALL_MAX_GAS.sub(gsnExtraGas), gasPrice, transactionFee);
    uint fee = actualCharge.sub(overestimation).mul(feeRate).div(GSN_RATE_UNIT);

    if (fee > 0) {
      _send(_msgSender(), from, gsnFeeTarget, fee, "", "", false);
    }
  }
}

// File: contracts/ERC777WithAdminOperator.sol

pragma solidity ^0.5.0;


contract ERC777WithAdminOperator is ERC777 {

  address public adminOperator;

  event AdminOperatorChange(address oldOperator, address newOperator);
  event AdminTransferInvoked(address operator);

  constructor(address _adminOperator) public {
    adminOperator = _adminOperator;
  }

  /**
 * @dev Similar to {IERC777-operatorSend}.
 *
 * Emits {Sent} and {IERC20-Transfer} events.
 */
  function adminTransfer(
    address sender,
    address recipient,
    uint256 amount,
    bytes memory data,
    bytes memory operatorData
  )
  public
  {
    require(_msgSender() == adminOperator, "caller is not the admin operator");
    _send(adminOperator, sender, recipient, amount, data, operatorData, false);
    emit AdminTransferInvoked(adminOperator);
  }

  /**
   * @dev Only the actual admin operator can change the address
   */
  function setAdminOperator(address adminOperator_) public {
    require(msg.sender == adminOperator, "Only the actual admin operator can change the address");
    emit AdminOperatorChange(adminOperator, adminOperator_);
    adminOperator = adminOperator_;
  }


}

// File: contracts/ERC777OptionalAckOnMint.sol

pragma solidity ^0.5.0;


contract ERC777OptionalAckOnMint is ERC777 {
  bytes32 constant private TOKENS_RECIPIENT_INTERFACE_HASH =
    0xb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b;

  /**
 * @dev Call to.tokensReceived() if the interface is registered. Reverts if the recipient is a contract but
 * tokensReceived() was not registered for the recipient
 * @param operator address operator requesting the transfer
 * @param from address token holder address
 * @param to address recipient address
 * @param amount uint256 amount of tokens to transfer
 * @param userData bytes extra information provided by the token holder (if any)
 * @param operatorData bytes extra information provided by the operator (if any)
 * @param requireReceptionAck if true, contract recipients are required to implement ERC777TokensRecipient
 */
  function _callTokensReceived(
    address operator,
    address from,
    address to,
    uint256 amount,
    bytes memory userData,
    bytes memory operatorData,
    bool requireReceptionAck
  )
    internal
  {
    address implementer = ERC1820_REGISTRY.getInterfaceImplementer(to, TOKENS_RECIPIENT_INTERFACE_HASH);
    if (implementer != address(0)) {
      IERC777Recipient(implementer).tokensReceived(operator, from, to, amount, userData, operatorData);
    } else if (requireReceptionAck && from != address(0)) {
      require(!to.isContract(), "ERC777: token recipient contract has no implementer for ERC777TokensRecipient");
    }
  }
}

// File: contracts/pToken.sol

pragma solidity ^0.5.0;






contract PToken is
    AbstractOwnable,
    ERC777,
    ERC777OptionalAckOnMint,
    ERC777GSN,
    ERC777WithAdminOperator
{

    address public pNetwork;

    event Redeem(
        address indexed redeemer,
        uint256 value,
        string underlyingAssetRecipient
    );

    constructor(
        string memory tokenName,
        string memory tokenSymbol,
        address[] memory defaultOperators
    )
        ERC777(tokenName, tokenSymbol, defaultOperators)
        ERC777GSN(msg.sender, msg.sender)
        ERC777WithAdminOperator(msg.sender)
        public
    {
        pNetwork = _msgSender();
    }

    function owner() internal view returns (address) {
        return pNetwork;
    }

    function changePNetwork(
        address newPNetwork
    )
        external
    {
        require(
            _msgSender() == pNetwork,
            "Only the pNetwork can change the `pNetwork` account!"
        );
        require(
            newPNetwork != address(0),
            "pNetwork cannot be the zero address!"
        );
        pNetwork = newPNetwork;
    }

    function mint(
        address recipient,
        uint256 value
    )
        external
        returns (bool)
    {
        mint(recipient, value, "", "");
        return true;
    }

    function mint(
        address recipient,
        uint256 value,
        bytes memory userData,
        bytes memory operatorData
    )
        public
        returns (bool)
    {
        require(
            _msgSender() == pNetwork,
            "Only the pNetwork can mint tokens!"
        );
        require(
            recipient != address(0),
            "pToken: Cannot mint to the zero address!"
        );
        _mint(pNetwork, recipient, value, userData, operatorData);
        return true;
    }

    function redeem(
        uint256 amount,
        string calldata underlyingAssetRecipient
    )
        external
        returns (bool)
    {
        redeem(amount, "", underlyingAssetRecipient);
        return true;
    }

    function redeem(
        uint256 amount,
        bytes memory data,
        string memory underlyingAssetRecipient
    )
        public
    {
        _burn(_msgSender(), _msgSender(), amount, data, "");
        emit Redeem(msg.sender, amount, underlyingAssetRecipient);
    }

    function operatorRedeem(
        address account,
        uint256 amount,
        bytes calldata data,
        bytes calldata operatorData,
        string calldata underlyingAssetRecipient
    )
        external
    {
        require(
            isOperatorFor(_msgSender(), account),
            "ERC777: caller is not an operator for holder"
        );
        _burn(_msgSender(), account, amount, data, operatorData);
        emit Redeem(account, amount, underlyingAssetRecipient);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"tokenName","type":"string"},{"internalType":"string","name":"tokenSymbol","type":"string"},{"internalType":"address[]","name":"defaultOperators","type":"address[]"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOperator","type":"address"},{"indexed":false,"internalType":"address","name":"newOperator","type":"address"}],"name":"AdminOperatorChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"operator","type":"address"}],"name":"AdminTransferInvoked","type":"event"},{"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":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"tokenHolder","type":"address"}],"name":"AuthorizedOperator","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"redeemer","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"string","name":"underlyingAssetRecipient","type":"string"}],"name":"Redeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldRelayHub","type":"address"},{"indexed":true,"internalType":"address","name":"newRelayHub","type":"address"}],"name":"RelayHubChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"tokenHolder","type":"address"}],"name":"RevokedOperator","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"Sent","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"},{"constant":true,"inputs":[{"internalType":"address","name":"relay","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"bytes","name":"encodedFunction","type":"bytes"},{"internalType":"uint256","name":"transactionFee","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"uint256","name":"gasLimit","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"approvalData","type":"bytes"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"acceptRelayedCall","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"adminOperator","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"adminTransfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"authorizeOperator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"tokenHolder","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newPNetwork","type":"address"}],"name":"changePNetwork","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"defaultOperators","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getHubAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"granularity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"gsnExtraGas","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"gsnFeeTarget","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"gsnTrustedSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"tokenHolder","type":"address"}],"name":"isOperatorFor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"userData","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"operatorBurn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"},{"internalType":"string","name":"underlyingAssetRecipient","type":"string"}],"name":"operatorRedeem","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"operatorSend","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"pNetwork","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes","name":"context","type":"bytes"},{"internalType":"bool","name":"success","type":"bool"},{"internalType":"uint256","name":"actualCharge","type":"uint256"},{"internalType":"bytes32","name":"preRetVal","type":"bytes32"}],"name":"postRelayedCall","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes","name":"context","type":"bytes"}],"name":"preRelayedCall","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"underlyingAssetRecipient","type":"string"}],"name":"redeem","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"string","name":"underlyingAssetRecipient","type":"string"}],"name":"redeem","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"relayHubVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"revokeOperator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"send","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"adminOperator_","type":"address"}],"name":"setAdminOperator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_gsnFeeTarget","type":"address"}],"name":"setFeeTarget","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_gsnExtraGas","type":"uint256"}],"name":"setGSNExtraGas","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_gsnTrustedSigner","type":"address"}],"name":"setTrustedSigner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]

6080604052600080546001600160a01b03191673d216153c06e857cd7f72665e0af1d7d82172f494179055619c40600c553480156200003d57600080fd5b506040516200443238038062004432833981810160405260608110156200006357600080fd5b81019080805160405193929190846401000000008211156200008457600080fd5b9083019060208201858111156200009a57600080fd5b8251640100000000811182820188101715620000b557600080fd5b82525081516020918201929091019080838360005b83811015620000e4578181015183820152602001620000ca565b50505050905090810190601f168015620001125780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200013657600080fd5b9083019060208201858111156200014c57600080fd5b82516401000000008111828201881017156200016757600080fd5b82525081516020918201929091019080838360005b83811015620001965781810151838201526020016200017c565b50505050905090810190601f168015620001c45780820380516001836020036101000a031916815260200191505b5060405260200180516040519392919084640100000000821115620001e857600080fd5b908301906020820185811115620001fe57600080fd5b82518660208202830111640100000000821117156200021c57600080fd5b82525081516020918201928201910280838360005b838110156200024b57818101518382015260200162000231565b5050505090500160405250505033333385858582600390805190602001906200027692919062000601565b5081516200028c90600490602085019062000601565b508051620002a290600590602084019062000686565b5060005b600554811015620003025760016006600060058481548110620002c557fe5b6000918252602080832091909101546001600160a01b031683528201929092526040019020805460ff1916911515919091179055600101620002a6565b50604080516a22a9219b9b9baa37b5b2b760a91b8152815190819003600b0181206329965a1d60e01b82523060048301819052602483019190915260448201529051731820a4b7618bde71dce8cdc73aab6c95905fad24916329965a1d91606480830192600092919082900301818387803b1580156200038157600080fd5b505af115801562000396573d6000803e3d6000fd5b5050604080516922a92199182a37b5b2b760b11b8152815190819003600a0181206329965a1d60e01b82523060048301819052602483019190915260448201529051731820a4b7618bde71dce8cdc73aab6c95905fad2493506329965a1d9250606480830192600092919082900301818387803b1580156200041757600080fd5b505af11580156200042c573d6000803e3d6000fd5b50505050506001600160a01b038416151591506200047e90505760405162461bcd60e51b8152600401808060200182810382526022815260200180620044106022913960400191505060405180910390fd5b600a80546001600160a01b0319166001600160a01b03848116919091179091558116620004f2576040805162461bcd60e51b815260206004820152601e60248201527f6665652074617267657420697320746865207a65726f20616464726573730000604482015290519081900360640190fd5b600b80546001600160a01b039283166001600160a01b031991821617909155600d80549490921693169290921790915550620005366001600160e01b036200056016565b600e80546001600160a01b0319166001600160a01b03929092169190911790555062000730915050565b6000620005776200057d60201b620036c71760201c565b90505b90565b600080546001600160a01b03163314620005995750336200057a565b620005ac6001600160e01b03620005b416565b90506200057a565b600060606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031692915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200064457805160ff191683800117855562000674565b8280016001018555821562000674579182015b828111156200067457825182559160200191906001019062000657565b5062000682929150620006ec565b5090565b828054828255906000526020600020908101928215620006de579160200282015b82811115620006de57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620006a7565b506200068292915062000709565b6200057a91905b80821115620006825760008155600101620006f3565b6200057a91905b80821115620006825780546001600160a01b031916815560010162000710565b613cd080620007406000396000f3fe608060405234801561001057600080fd5b506004361061023d5760003560e01c80639bd9bbc61161013b578063dc3ca1bf116100b8578063fad8b32a1161007c578063fad8b32a14610fc9578063fc673c4f14610fef578063fc8767541461112d578063fd4add6614611135578063fe9d93031461115b5761023d565b8063dc3ca1bf14610db3578063dcdc7dd014610dd9578063dd62ed3e14610f17578063e06e0e2214610f45578063e900a49114610fc15761023d565b8063ca16814e116100ff578063ca16814e14610c3d578063cbe1f06c14610c45578063ce67c00314610c4d578063d95b637114610d7d578063dab0252714610dab5761023d565b80639bd9bbc6146109ea5780639bf8d82f14610aa3578063a9059cbb14610ac0578063ad61ccd514610aec578063bcc33e9d14610af45761023d565b806340c10f19116101c957806374e861d61161018d57806374e861d61461074e57806380274db71461077257806383947ea0146107e0578063959b8c3f146109bc57806395d89b41146109e25761023d565b806340c10f1914610585578063556f0dc7146105b157806356a1c701146105b957806362ad1b83146105df57806370a08231146107285761023d565b80631e9cee74116102105780631e9cee741461037157806323b872dd1461049657806324b76fd5146104cc578063313ce56714610541578063394f02311461055f5761023d565b806306e485381461024257806306fdde031461029a578063095ea7b31461031757806318160ddd14610357575b600080fd5b61024a611206565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561028657818101518382015260200161026e565b505050509050019250505060405180910390f35b6102a2611269565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102dc5781810151838201526020016102c4565b50505050905090810190601f1680156103095780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103436004803603604081101561032d57600080fd5b506001600160a01b0381351690602001356112f6565b604080519115158252519081900360200190f35b61035f61131a565b60408051918252519081900360200190f35b610494600480360360a081101561038757600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156103b657600080fd5b8201836020820111156103c857600080fd5b803590602001918460018302840111600160201b831117156103e957600080fd5b919390929091602081019035600160201b81111561040657600080fd5b82018360208201111561041857600080fd5b803590602001918460018302840111600160201b8311171561043957600080fd5b919390929091602081019035600160201b81111561045657600080fd5b82018360208201111561046857600080fd5b803590602001918460018302840111600160201b8311171561048957600080fd5b509092509050611320565b005b610343600480360360608110156104ac57600080fd5b506001600160a01b03813581169160208101359091169060400135611465565b610343600480360360408110156104e257600080fd5b81359190810190604081016020820135600160201b81111561050357600080fd5b82018360208201111561051557600080fd5b803590602001918460018302840111600160201b8311171561053657600080fd5b5090925090506115e8565b610549611644565b6040805160ff9092168252519081900360200190f35b6104946004803603602081101561057557600080fd5b50356001600160a01b0316611649565b6103436004803603604081101561059b57600080fd5b506001600160a01b0381351690602001356116fc565b61035f611728565b610494600480360360208110156105cf57600080fd5b50356001600160a01b031661172d565b610494600480360360a08110156105f557600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b81111561062f57600080fd5b82018360208201111561064157600080fd5b803590602001918460018302840111600160201b8311171561066257600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b8111156106b457600080fd5b8201836020820111156106c657600080fd5b803590602001918460018302840111600160201b831117156106e757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506117e7945050505050565b61035f6004803603602081101561073e57600080fd5b50356001600160a01b0316611851565b61075661186c565b604080516001600160a01b039092168252519081900360200190f35b61035f6004803603602081101561078857600080fd5b810190602081018135600160201b8111156107a257600080fd5b8201836020820111156107b457600080fd5b803590602001918460018302840111600160201b831117156107d557600080fd5b50909250905061187b565b61093d60048036036101208110156107f757600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561082a57600080fd5b82018360208201111561083c57600080fd5b803590602001918460018302840111600160201b8311171561085d57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b8111156108c757600080fd5b8201836020820111156108d957600080fd5b803590602001918460018302840111600160201b831117156108fa57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550509135925061191a915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610980578181015183820152602001610968565b50505050905090810190601f1680156109ad5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b610494600480360360208110156109d257600080fd5b50356001600160a01b0316611b8b565b6102a2611cd7565b61049460048036036060811015610a0057600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b811115610a2f57600080fd5b820183602082011115610a4157600080fd5b803590602001918460018302840111600160201b83111715610a6257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611d38945050505050565b61049460048036036020811015610ab957600080fd5b5035611d6a565b61034360048036036040811015610ad657600080fd5b506001600160a01b038135169060200135611dc2565b6102a2611e9b565b610494600480360360a0811015610b0a57600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b811115610b4457600080fd5b820183602082011115610b5657600080fd5b803590602001918460018302840111600160201b83111715610b7757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b811115610bc957600080fd5b820183602082011115610bdb57600080fd5b803590602001918460018302840111600160201b83111715610bfc57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611eba945050505050565b610756611f8b565b61035f611f9a565b61049460048036036060811015610c6357600080fd5b81359190810190604081016020820135600160201b811115610c8457600080fd5b820183602082011115610c9657600080fd5b803590602001918460018302840111600160201b83111715610cb757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b811115610d0957600080fd5b820183602082011115610d1b57600080fd5b803590602001918460018302840111600160201b83111715610d3c57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611fa0945050505050565b61034360048036036040811015610d9357600080fd5b506001600160a01b038135811691602001351661207a565b61075661211b565b61049460048036036020811015610dc957600080fd5b50356001600160a01b031661212a565b61034360048036036080811015610def57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b811115610e1e57600080fd5b820183602082011115610e3057600080fd5b803590602001918460018302840111600160201b83111715610e5157600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b811115610ea357600080fd5b820183602082011115610eb557600080fd5b803590602001918460018302840111600160201b83111715610ed657600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506121fa945050505050565b61035f60048036036040811015610f2d57600080fd5b506001600160a01b03813581169160200135166122b4565b61049460048036036080811015610f5b57600080fd5b810190602081018135600160201b811115610f7557600080fd5b820183602082011115610f8757600080fd5b803590602001918460018302840111600160201b83111715610fa857600080fd5b91935091508035151590602081013590604001356122df565b61075661237a565b61049460048036036020811015610fdf57600080fd5b50356001600160a01b0316612389565b6104946004803603608081101561100557600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561103457600080fd5b82018360208201111561104657600080fd5b803590602001918460018302840111600160201b8311171561106757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b8111156110b957600080fd5b8201836020820111156110cb57600080fd5b803590602001918460018302840111600160201b831117156110ec57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506124d5945050505050565b61075661253b565b6104946004803603602081101561114b57600080fd5b50356001600160a01b031661254a565b6104946004803603604081101561117157600080fd5b81359190810190604081016020820135600160201b81111561119257600080fd5b8201836020820111156111a457600080fd5b803590602001918460018302840111600160201b831117156111c557600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061260a945050505050565b6060600580548060200260200160405190810160405280929190818152602001828054801561125e57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611240575b505050505090505b90565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561125e5780601f106112ca5761010080835404028352916020019161125e565b820191906000526020600020905b8154815290600101906020018083116112d857509395945050505050565b600080611301612638565b905061130e818585612647565b60019150505b92915050565b60025490565b61133161132b612638565b8961207a565b61136c5760405162461bcd60e51b815260040180806020018281038252602c815260200180613bdb602c913960400191505060405180910390fd5b6113e9611377612638565b898989898080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8d018190048102820181019092528b815292508b91508a908190840183828082843760009201919091525061273392505050565b876001600160a01b03167f78e6c3f67f57c26578f2487b930b70d844bcc8dd8f4d629fb4af81252ab5aa6588848460405180848152602001806020018281038252848482818152602001925080828437600083820152604051601f909101601f1916909201829003965090945050505050a25050505050505050565b60006001600160a01b0383166114ac5760405162461bcd60e51b8152600401808060200182810382526024815260200180613b936024913960400191505060405180910390fd5b6001600160a01b0384166114f15760405162461bcd60e51b8152600401808060200182810382526026815260200180613c306026913960400191505060405180910390fd5b60006114fb612638565b9050611529818686866040518060200160405280600081525060405180602001604052806000815250612960565b611555818686866040518060200160405280600081525060405180602001604052806000815250612ba8565b6115af85826115aa86604051806060016040528060298152602001613c07602991396001600160a01b03808c166000908152600960209081526040808320938b1683529290522054919063ffffffff612dc216565b612647565b6115dd8186868660405180602001604052806000815250604051806020016040528060008152506000612e59565b506001949350505050565b600061163a846040518060200160405280600081525085858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611fa092505050565b5060019392505050565b601290565b600d546001600160a01b031633146116925760405162461bcd60e51b8152600401808060200182810382526035815260200180613b116035913960400191505060405180910390fd5b600d54604080516001600160a01b039283168152918316602083015280517fe8fdc5340d9288e129a7c6af86dc4002f708091280d69f89583f7e6349c0a8d69281900390910190a1600d80546001600160a01b0319166001600160a01b0392909216919091179055565b600061163a838360405180602001604052806000815250604051806020016040528060008152506121fa565b600190565b61173561310d565b611780576040805162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b604482015290519081900360640190fd5b6001600160a01b0381166117c55760405162461bcd60e51b81526004018080602001828103825260228152602001806139c56022913960400191505060405180910390fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6117f86117f2612638565b8661207a565b6118335760405162461bcd60e51b815260040180806020018281038252602c815260200180613bdb602c913960400191505060405180910390fd5b61184a61183e612638565b86868686866001613130565b5050505050565b6001600160a01b031660009081526001602052604090205490565b6000546001600160a01b031690565b600061188561186c565b6001600160a01b0316336001600160a01b0316146118d45760405162461bcd60e51b8152600401808060200182810382526024815260200180613bb76024913960400191505060405180910390fd5b61191383838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061324092505050565b9392505050565b600060606000606085806020019051604081101561193757600080fd5b815160208301805160405192949293830192919084600160201b82111561195d57600080fd5b90830190602082018581111561197257600080fd5b8251600160201b81118282018810171561198b57600080fd5b82525081516020918201929091019080838360005b838110156119b85781810151838201526020016119a0565b50505050905090810190601f1680156119e55780820380516001836020036101000a031916815260200191505b50604052505050915091506060828e8e8e8e8e8e8e611a0261186c565b30604051602001808b81526020018a6001600160a01b03166001600160a01b031660601b8152601401896001600160a01b03166001600160a01b031660601b815260140188805190602001908083835b60208310611a715780518252601f199092019160209182019101611a52565b51815160209384036101000a6000190180199092169116179052920198895250878101969096525060408087019490945260608087019390935290821b6bffffffffffffffffffffffff199081166080870152911b1660948401528051808403608801815260a89093019052600a548251918301919091209196506001600160a01b03169450611b159350869250611b099150613246565b9063ffffffff61329716565b6001600160a01b03161415611b735760408051602081018590526001600160a01b038f1681830152606081018d905260808082018d90528251808303909101815260a0909101909152611b6790613385565b94509450505050611b7d565b611b67600061338a565b995099975050505050505050565b806001600160a01b0316611b9d612638565b6001600160a01b03161415611be35760405162461bcd60e51b8152600401808060200182810382526024815260200180613a096024913960400191505060405180910390fd5b6001600160a01b03811660009081526006602052604090205460ff1615611c465760086000611c10612638565b6001600160a01b03908116825260208083019390935260409182016000908120918516815292529020805460ff19169055611c8d565b600160076000611c54612638565b6001600160a01b03908116825260208083019390935260409182016000908120918616815292529020805460ff19169115159190911790555b611c95612638565b6001600160a01b0316816001600160a01b03167ff4caeb2d6ca8932a215a353d0703c326ec2d81fc68170f320eb2ab49e9df61f960405160405180910390a350565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561125e5780601f106112ca5761010080835404028352916020019161125e565b611d65611d43612638565b611d4b612638565b858585604051806020016040528060008152506001613130565b505050565b611d7261310d565b611dbd576040805162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b604482015290519081900360640190fd5b600c55565b60006001600160a01b038316611e095760405162461bcd60e51b8152600401808060200182810382526024815260200180613b936024913960400191505060405180910390fd5b6000611e13612638565b9050611e41818286866040518060200160405280600081525060405180602001604052806000815250612960565b611e6d818286866040518060200160405280600081525060405180602001604052806000815250612ba8565b61130e8182868660405180602001604052806000815250604051806020016040528060008152506000612e59565b6040805180820190915260058152640312e302e360dc1b602082015290565b600d546001600160a01b0316611ece612638565b6001600160a01b031614611f29576040805162461bcd60e51b815260206004820181905260248201527f63616c6c6572206973206e6f74207468652061646d696e206f70657261746f72604482015290519081900360640190fd5b600d54611f45906001600160a01b031686868686866000613130565b600d54604080516001600160a01b039092168252517fb22a57ba0314fafe219dc14abcf1f22e86e6e82d599c0c31177a2d7c2e1b17e19181900360200190a15050505050565b600e546001600160a01b031681565b600c5481565b611fca611fab612638565b611fb3612638565b858560405180602001604052806000815250612733565b336001600160a01b03167f78e6c3f67f57c26578f2487b930b70d844bcc8dd8f4d629fb4af81252ab5aa6584836040518083815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561203a578181015183820152602001612022565b50505050905090810190601f1680156120675780820380516001836020036101000a031916815260200191505b50935050505060405180910390a2505050565b6000816001600160a01b0316836001600160a01b031614806120e557506001600160a01b03831660009081526006602052604090205460ff1680156120e557506001600160a01b0380831660009081526008602090815260408083209387168352929052205460ff16155b806119135750506001600160a01b0390811660009081526007602090815260408083209490931682529290925290205460ff1690565b600b546001600160a01b031681565b61213261310d565b61217d576040805162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba103a34329037bbb732b960491b604482015290519081900360640190fd5b6001600160a01b0381166121d8576040805162461bcd60e51b815260206004820152601e60248201527f6665652074617267657420697320746865207a65726f20616464726573730000604482015290519081900360640190fd5b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b600e546000906001600160a01b0316612211612638565b6001600160a01b0316146122565760405162461bcd60e51b8152600401808060200182810382526022815260200180613a556022913960400191505060405180910390fd5b6001600160a01b03851661229b5760405162461bcd60e51b8152600401808060200182810382526028815260200180613a2d6028913960400191505060405180910390fd5b600e546115dd906001600160a01b0316868686866133a2565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205490565b6122e761186c565b6001600160a01b0316336001600160a01b0316146123365760405162461bcd60e51b8152600401808060200182810382526024815260200180613bb76024913960400191505060405180910390fd5b61184a85858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508792508691508590506135da565b600d546001600160a01b031681565b612391612638565b6001600160a01b0316816001600160a01b031614156123e15760405162461bcd60e51b8152600401808060200182810382526021815260200180613a776021913960400191505060405180910390fd5b6001600160a01b03811660009081526006602052604090205460ff161561244d57600160086000612410612638565b6001600160a01b03908116825260208083019390935260409182016000908120918616815292529020805460ff191691151591909117905561248b565b60076000612459612638565b6001600160a01b03908116825260208083019390935260409182016000908120918516815292529020805460ff191690555b612493612638565b6001600160a01b0316816001600160a01b03167f50546e66e5f44d728365dc3908c63bc5cfeeab470722c1677e3073a6ac294aa160405160405180910390a350565b6124e66124e0612638565b8561207a565b6125215760405162461bcd60e51b815260040180806020018281038252602c815260200180613bdb602c913960400191505060405180910390fd5b61253561252c612638565b85858585612733565b50505050565b600a546001600160a01b031681565b600e546001600160a01b031661255e612638565b6001600160a01b0316146125a35760405162461bcd60e51b8152600401808060200182810382526034815260200180613abc6034913960400191505060405180910390fd5b6001600160a01b0381166125e85760405162461bcd60e51b81526004018080602001828103825260248152602001806139336024913960400191505060405180910390fd5b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b612634612615612638565b61261d612638565b848460405180602001604052806000815250612733565b5050565b60006126426136c7565b905090565b6001600160a01b03831661268c5760405162461bcd60e51b81526004018080602001828103825260258152602001806139576025913960400191505060405180910390fd5b6001600160a01b0382166126d15760405162461bcd60e51b8152600401808060200182810382526023815260200180613c796023913960400191505060405180910390fd5b6001600160a01b03808416600081815260096020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0384166127785760405162461bcd60e51b81526004018080602001828103825260228152602001806139e76022913960400191505060405180910390fd5b61278785856000868686612960565b6127ca83604051806060016040528060238152602001613c56602391396001600160a01b038716600090815260016020526040902054919063ffffffff612dc216565b6001600160a01b0385166000908152600160205260409020556002546127f6908463ffffffff6136f016565b600281905550836001600160a01b0316856001600160a01b03167fa78a9be3a7b862d26933ad85fb11d80ef66b8f972d7cbba06621d583943a4098858585604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561287b578181015183820152602001612863565b50505050905090810190601f1680156128a85780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156128db5781810151838201526020016128c3565b50505050905090810190601f1680156129085780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a36040805184815290516000916001600160a01b038716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050505050565b6040805163555ddc6560e11b81526001600160a01b03871660048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89560248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b1580156129e457600080fd5b505afa1580156129f8573d6000803e3d6000fd5b505050506040513d6020811015612a0e57600080fd5b505190506001600160a01b03811615612b9f57806001600160a01b03166375ab97828888888888886040518763ffffffff1660e01b815260040180876001600160a01b03166001600160a01b03168152602001866001600160a01b03166001600160a01b03168152602001856001600160a01b03166001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015612ad4578181015183820152602001612abc565b50505050905090810190601f168015612b015780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015612b34578181015183820152602001612b1c565b50505050905090810190601f168015612b615780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b158015612b8657600080fd5b505af1158015612b9a573d6000803e3d6000fd5b505050505b50505050505050565b612beb8360405180606001604052806027815260200161399e602791396001600160a01b038816600090815260016020526040902054919063ffffffff612dc216565b6001600160a01b038087166000908152600160205260408082209390935590861681522054612c20908463ffffffff61373216565b60016000866001600160a01b03166001600160a01b0316815260200190815260200160002081905550836001600160a01b0316856001600160a01b0316876001600160a01b03167f06b541ddaa720db2b10a4d0cdac39b8d360425fc073085fac19bc82614677987868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015612cd2578181015183820152602001612cba565b50505050905090810190601f168015612cff5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015612d32578181015183820152602001612d1a565b50505050905090810190601f168015612d5f5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a4836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a3505050505050565b60008184841115612e515760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612e16578181015183820152602001612dfe565b50505050905090810190601f168015612e435780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6040805163555ddc6560e11b81526001600160a01b03871660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b158015612edd57600080fd5b505afa158015612ef1573d6000803e3d6000fd5b505050506040513d6020811015612f0757600080fd5b505190506001600160a01b0381161561309b57806001600160a01b03166223de298989898989896040518763ffffffff1660e01b815260040180876001600160a01b03166001600160a01b03168152602001866001600160a01b03166001600160a01b03168152602001856001600160a01b03166001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015612fcc578181015183820152602001612fb4565b50505050905090810190601f168015612ff95780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b8381101561302c578181015183820152602001613014565b50505050905090810190601f1680156130595780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b15801561307e57600080fd5b505af1158015613092573d6000803e3d6000fd5b50505050613103565b8180156130b057506001600160a01b03871615155b15613103576130c7866001600160a01b031661378c565b156131035760405162461bcd60e51b815260040180806020018281038252604d815260200180613b46604d913960600191505060405180910390fd5b5050505050505050565b60006131176137c8565b6001600160a01b0316336001600160a01b031614905090565b6001600160a01b0387166131755760405162461bcd60e51b8152600401808060200182810382526024815260200180613a986024913960400191505060405180910390fd5b6001600160a01b0386166131ba5760405162461bcd60e51b815260040180806020018281038252602281526020018061397c6022913960400191505060405180910390fd5b6001600160a01b038516613215576040805162461bcd60e51b815260206004820181905260248201527f4552433737373a2073656e6420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b613223878787878787612960565b613231878787878787612ba8565b612b9f87878787878787612e59565b50600090565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b600081516041146132aa57506000611314565b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156132f05760009350505050611314565b8060ff16601b1415801561330857508060ff16601c14155b156133195760009350505050611314565b6040805160008152602080820180845289905260ff8416828401526060820186905260808201859052915160019260a0808401939192601f1981019281900390910190855afa158015613370573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b600091565b604080516020810190915260008152600b9190910191565b6001600160a01b0384166133fd576040805162461bcd60e51b815260206004820181905260248201527f4552433737373a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b600254613410908463ffffffff61373216565b6002556001600160a01b03841660009081526001602052604090205461343c908463ffffffff61373216565b60016000866001600160a01b03166001600160a01b0316815260200190815260200160002081905550613476856000868686866001612e59565b836001600160a01b0316856001600160a01b03167f2fe5be0146f74c5bce36c0b80911af6c7d86ff27e89d5cfa61fc681327954e5d858585604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b838110156134f55781810151838201526020016134dd565b50505050905090810190601f1680156135225780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b8381101561355557818101518382015260200161353d565b50505050905090810190601f1680156135825780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a36040805184815290516001600160a01b038616916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050505050565b6000806000808780602001905160808110156135f557600080fd5b50805160208201516040830151606090930151600c549297509095509193509091506000906136399061363290620186a09063ffffffff6136f016565b83856137d7565b90506000613675670de0b6b3a76400006136698861365d8c8763ffffffff6136f016565b9063ffffffff6137e516565b9063ffffffff61383e16565b905080156136bb576136bb613688612638565b600b546040805160208082018352600080835283519182019093528281528a936001600160a01b03169287929190613130565b50505050505050505050565b600080546001600160a01b031633146136e1575033611266565b6136e9613880565b9050611266565b600061191383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612dc2565b600082820183811015611913576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906137c057508115155b949350505050565b600e546001600160a01b031690565b606490810191909202020490565b6000826137f457506000611314565b8282028284828161380157fe5b04146119135760405162461bcd60e51b8152600401808060200182810382526021815260200180613af06021913960400191505060405180910390fd5b600061191383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506138cd565b600060606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031692915050565b6000818361391c5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612e16578181015183820152602001612dfe565b50600083858161392857fe5b049594505050505056fe704e6574776f726b2063616e6e6f7420626520746865207a65726f2061646472657373214552433737373a20617070726f76652066726f6d20746865207a65726f20616464726573734552433737373a2073656e642066726f6d20746865207a65726f20616464726573734552433737373a207472616e7366657220616d6f756e7420657863656564732062616c616e636574727573746564207369676e657220697320746865207a65726f20616464726573734552433737373a206275726e2066726f6d20746865207a65726f20616464726573734552433737373a20617574686f72697a696e672073656c66206173206f70657261746f7270546f6b656e3a2043616e6e6f74206d696e7420746f20746865207a65726f2061646472657373214f6e6c792074686520704e6574776f726b2063616e206d696e7420746f6b656e73214552433737373a207265766f6b696e672073656c66206173206f70657261746f724552433737373a206f70657261746f7220697320746865207a65726f20616464726573734f6e6c792074686520704e6574776f726b2063616e206368616e6765207468652060704e6574776f726b60206163636f756e7421536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f6e6c79207468652061637475616c2061646d696e206f70657261746f722063616e206368616e67652074686520616464726573734552433737373a20746f6b656e20726563697069656e7420636f6e747261637420686173206e6f20696d706c656d656e74657220666f7220455243373737546f6b656e73526563697069656e744552433737373a207472616e7366657220746f20746865207a65726f206164647265737347534e526563697069656e743a2063616c6c6572206973206e6f742052656c61794875624552433737373a2063616c6c6572206973206e6f7420616e206f70657261746f7220666f7220686f6c6465724552433737373a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654552433737373a207472616e736665722066726f6d20746865207a65726f20616464726573734552433737373a206275726e20616d6f756e7420657863656564732062616c616e63654552433737373a20617070726f766520746f20746865207a65726f2061646472657373a265627a7a72315820fbe306e7c214aa13e3f43b430286eb40c7b5a4d2f4d4da34e271557b809c078364736f6c6343000511003274727573746564207369676e657220697320746865207a65726f2061646472657373000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000c70546f6b656e7320544c4f5300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004544c4f53000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000c70546f6b656e7320544c4f5300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004544c4f53000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : tokenName (string): pTokens TLOS
Arg [1] : tokenSymbol (string): TLOS

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [4] : 70546f6b656e7320544c4f530000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 544c4f5300000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000000


Deployed ByteCode Sourcemap

80162:2906:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;80162:2906:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33420:115;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;33420:115:0;;;;;;;;;;;;;;;;;29702:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;29702:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34987:184;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;34987:184:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;30477:91;;;:::i;:::-;;;;;;;;;;;;;;;;82560:505;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;82560:505:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;82560:505:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;82560:505:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;82560:505:0;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;82560:505:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;82560:505:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;82560:505:0;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;82560:505:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;82560:505:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;82560:505:0;;-1:-1:-1;82560:505:0;-1:-1:-1;82560:505:0;:::i;:::-;;35547:677;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;35547:677:0;;;;;;;;;;;;;;;;;:::i;82029:231::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;82029:231:0;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;82029:231:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;82029:231:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;82029:231:0;;-1:-1:-1;82029:231:0;-1:-1:-1;82029:231:0;:::i;30133:76::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;78236:262;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;78236:262:0;-1:-1:-1;;;;;78236:262:0;;:::i;81295:191::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;81295:191:0;;;;;;;;:::i;30331:80::-;;;:::i;74744:204::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;74744:204:0;-1:-1:-1;;;;;74744:204:0;;:::i;33661:382::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;33661:382:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;33661:382:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;33661:382:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;33661:382:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;33661:382:0;;;;;;;;-1:-1:-1;33661:382:0;;-1:-1:-1;;;;;5:28;;2:2;;;46:1;43;36:12;2:2;33661:382:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;33661:382:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;33661:382:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;33661:382:0;;-1:-1:-1;33661:382:0;;-1:-1:-1;;;;;33661:382:0:i;30673:118::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;30673:118:0;-1:-1:-1;;;;;30673:118:0;;:::i;65246:87::-;;;:::i;:::-;;;;-1:-1:-1;;;;;65246:87:0;;;;;;;;;;;;;;68909:211;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;68909:211:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;68909:211:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;68909:211:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;68909:211:0;;-1:-1:-1;68909:211:0;-1:-1:-1;68909:211:0;:::i;75356:1051::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;75356:1051:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;75356:1051:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;75356:1051:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;75356:1051:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;75356:1051:0;;;;;;;;;;;;;;;-1:-1:-1;75356:1051:0;;;;;-1:-1:-1;75356:1051:0;;-1:-1:-1;75356:1051:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;75356:1051:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;75356:1051:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;75356:1051:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;75356:1051:0;;-1:-1:-1;;75356:1051:0;;;-1:-1:-1;75356:1051:0;;-1:-1:-1;;75356:1051:0:i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;75356:1051:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32479:405;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;32479:405:0;-1:-1:-1;;;;;32479:405:0;;:::i;29846:87::-;;;:::i;30928:162::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;30928:162:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;30928:162:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;30928:162:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;30928:162:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;30928:162:0;;-1:-1:-1;30928:162:0;;-1:-1:-1;;;;;30928:162:0:i;75140:99::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;75140:99:0;;:::i;31331:434::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;31331:434:0;;;;;;;;:::i;66504:230::-;;;:::i;77773:378::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;77773:378:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;77773:378:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;77773:378:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;77773:378:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;77773:378:0;;;;;;;;-1:-1:-1;77773:378:0;;-1:-1:-1;;;;;5:28;;2:2;;;46:1;43;36:12;2:2;77773:378:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;77773:378:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;77773:378:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;77773:378:0;;-1:-1:-1;77773:378:0;;-1:-1:-1;;;;;77773:378:0:i;80301:23::-;;;:::i;74100:34::-;;;:::i;82268:284::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;82268:284:0;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;82268:284:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;82268:284:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;82268:284:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;82268:284:0;;;;;;;;-1:-1:-1;82268:284:0;;-1:-1:-1;;;;;5:28;;2:2;;;46:1;43;36:12;2:2;82268:284:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;82268:284:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;82268:284:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;82268:284:0;;-1:-1:-1;82268:284:0;;-1:-1:-1;;;;;82268:284:0:i;32096:311::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;32096:311:0;;;;;;;;;;:::i;74068:27::-;;;:::i;74954:180::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;74954:180:0;-1:-1:-1;;;;;74954:180:0;;:::i;81494:527::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;81494:527:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;81494:527:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;81494:527:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;81494:527:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;81494:527:0;;;;;;;;-1:-1:-1;81494:527:0;;-1:-1:-1;;;;;5:28;;2:2;;;46:1;43;36:12;2:2;81494:527:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;81494:527:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;81494:527:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;81494:527:0;;-1:-1:-1;81494:527:0;;-1:-1:-1;;;;;81494:527:0:i;34706:136::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;34706:136:0;;;;;;;;;;:::i;69769:277::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;69769:277:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;69769:277:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;69769:277:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;69769:277:0;;-1:-1:-1;69769:277:0;-1:-1:-1;69769:277:0;;;;;;;;;;;;;;:::i;77416:28::-;;;:::i;32953:396::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;32953:396:0;-1:-1:-1;;;;;32953:396:0;;:::i;34171:287::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;34171:287:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;34171:287:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;34171:287:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;34171:287:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;34171:287:0;;;;;;;;-1:-1:-1;34171:287:0;;-1:-1:-1;;;;;5:28;;2:2;;;46:1;43;36:12;2:2;34171:287:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;34171:287:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;34171:287:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;34171:287:0;;-1:-1:-1;34171:287:0;;-1:-1:-1;;;;;34171:287:0:i;74032:31::-;;;:::i;80903:384::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;80903:384:0;-1:-1:-1;;;;;80903:384:0;;:::i;31902:126::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;31902:126:0;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;31902:126:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;31902:126:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;31902:126:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;31902:126:0;;-1:-1:-1;31902:126:0;;-1:-1:-1;;;;;31902:126:0:i;33420:115::-;33469:16;33505:22;33498:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33498:29:0;;;;;;;;;;;;;;;;;;;;;;;33420:115;;:::o;29702:83::-;29772:5;29765:12;;;;;;;;-1:-1:-1;;29765:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29739:13;;29765:12;;29772:5;;29765:12;;29772:5;29765:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29765:12:0;;29702:83;-1:-1:-1;;;;;29702:83:0:o;34987:184::-;35052:4;35069:14;35086:12;:10;:12::i;:::-;35069:29;;35109:32;35118:6;35126:7;35135:5;35109:8;:32::i;:::-;35159:4;35152:11;;;34987:184;;;;;:::o;30477:91::-;30548:12;;30477:91;:::o;82560:505::-;82817:36;82831:12;:10;:12::i;:::-;82845:7;82817:13;:36::i;:::-;82795:130;;;;-1:-1:-1;;;82795:130:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82936:56;82942:12;:10;:12::i;:::-;82956:7;82965:6;82973:4;;82936:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;;82936:56:0;;;;137:4:-1;82936:56:0;;;;;;;;;;;;;;;;;;-1:-1:-1;82979:12:0;;-1:-1:-1;82979:12:0;;;;82936:56;;82979:12;;;;82936:56;1:33:-1;99:1;81:16;;74:27;;;;-1:-1;82936:5:0;;-1:-1:-1;;;82936:56:0:i;:::-;83015:7;-1:-1:-1;;;;;83008:49:0;;83024:6;83032:24;;83008:49;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;;74:27;83008:49:0;;137:4:-1;117:14;;;-1:-1;;113:30;157:16;;;83008:49:0;;;;-1:-1:-1;83008:49:0;;-1:-1:-1;;;;;83008:49:0;82560:505;;;;;;;;:::o;35547:677::-;35636:4;-1:-1:-1;;;;;35661:23:0;;35653:72;;;;-1:-1:-1;;;35653:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;35744:20:0;;35736:71;;;;-1:-1:-1;;;35736:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35820:15;35838:12;:10;:12::i;:::-;35820:30;;35863:61;35881:7;35890:6;35898:9;35909:6;35863:61;;;;;;;;;;;;;;;;;;;;;;;;:17;:61::i;:::-;35937:49;35943:7;35952:6;35960:9;35971:6;35937:49;;;;;;;;;;;;;;;;;;;;;;;;:5;:49::i;:::-;35997:112;36006:6;36014:7;36023:85;36056:6;36023:85;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;36023:19:0;;;;;;;:11;:19;;;;;;;;:28;;;;;;;;;;;:85;;:32;:85;:::i;:::-;35997:8;:112::i;:::-;36122:70;36142:7;36151:6;36159:9;36170:6;36122:70;;;;;;;;;;;;;;;;;;;;;;;;36186:5;36122:19;:70::i;:::-;-1:-1:-1;36212:4:0;;35547:677;-1:-1:-1;;;;35547:677:0:o;82029:231::-;82164:4;82186:44;82193:6;82186:44;;;;;;;;;;;;82205:24;;82186:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;82186:6:0;;-1:-1:-1;;;82186:44:0:i;:::-;-1:-1:-1;82248:4:0;82029:231;;;;;:::o;30133:76::-;30199:2;30133:76;:::o;78236:262::-;78322:13;;-1:-1:-1;;;;;78322:13:0;78308:10;:27;78300:93;;;;-1:-1:-1;;;78300:93:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78425:13;;78405:50;;;-1:-1:-1;;;;;78425:13:0;;;78405:50;;;;;;;;;;;;;;;;;;;;;78462:13;:30;;-1:-1:-1;;;;;;78462:30:0;-1:-1:-1;;;;;78462:30:0;;;;;;;;;;78236:262::o;81295:191::-;81404:4;81426:30;81431:9;81442:5;81426:30;;;;;;;;;;;;;;;;;;;;;;;;:4;:30::i;30331:80::-;30402:1;30331:80;:::o;74744:204::-;43495:9;:7;:9::i;:::-;43487:45;;;;;-1:-1:-1;;;43487:45:0;;;;;;;;;;;;-1:-1:-1;;;43487:45:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;74829:31:0;;74821:78;;;;-1:-1:-1;;;74821:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74906:16;:36;;-1:-1:-1;;;;;;74906:36:0;-1:-1:-1;;;;;74906:36:0;;;;;;;;;;74744:204::o;33661:382::-;33868:35;33882:12;:10;:12::i;:::-;33896:6;33868:13;:35::i;:::-;33860:92;;;;-1:-1:-1;;;33860:92:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33963:72;33969:12;:10;:12::i;:::-;33983:6;33991:9;34002:6;34010:4;34016:12;34030:4;33963:5;:72::i;:::-;33661:382;;;;;:::o;30673:118::-;-1:-1:-1;;;;;30761:22:0;30734:7;30761:22;;;:9;:22;;;;;;;30673:118::o;65246:87::-;65289:7;65316:9;-1:-1:-1;;;;;65316:9:0;65246:87;:::o;68909:211::-;68975:7;69017:12;:10;:12::i;:::-;-1:-1:-1;;;;;69003:26:0;:10;-1:-1:-1;;;;;69003:26:0;;68995:75;;;;-1:-1:-1;;;68995:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69088:24;69104:7;;69088:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;69088:15:0;;-1:-1:-1;;;69088:24:0:i;:::-;69081:31;68909:211;-1:-1:-1;;;68909:211:0:o;75356:1051::-;75663:7;75672:12;75697:15;75714:22;75751:12;75740:39;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;75740:39:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11:20;;8:2;;;44:1;41;34:12;8:2;62:21;;;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;213:10;;-1:-1;;;244:29;;285:43;;;282:58;-1:-1;233:115;230:2;;;361:1;358;351:12;230:2;372:25;;-1:-1;75740:39:0;;420:4:-1;411:14;;;;75740:39:0;;;;;411:14:-1;75740:39:0;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;75740:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75696:83;;;;75786:17;75831:7;75847:5;75861:4;75874:15;75898:14;75921:8;75938;75955:5;76001:12;:10;:12::i;:::-;76072:4;75806:321;;;;;;;;;;;-1:-1:-1;;;;;75806:321:0;-1:-1:-1;;;;;75806:321:0;;;;;;;;-1:-1:-1;;;;;75806:321:0;-1:-1:-1;;;;;75806:321:0;;;;;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;75806:321:0;;;;;-1:-1:-1;75806:321:0;;;;;;;-1:-1:-1;75806:321:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;75806:321:0;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;6:49;;75806:321:0;;;;;;76201:16;;76138:15;;;;;;;;;75806:321;;-1:-1:-1;;;;;;76201:16:0;;-1:-1:-1;76138:59:0;;-1:-1:-1;76187:9:0;;-1:-1:-1;76138:40:0;;-1:-1:-1;76138:38:0;:40::i;:::-;:48;:59;:48;:59;:::i;:::-;-1:-1:-1;;;;;76138:79:0;;76134:268;;;76255:51;;;;;;;;;-1:-1:-1;;;;;76255:51:0;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;76255:51:0;;;;;;;76235:72;;:19;:72::i;:::-;76228:79;;;;;;;;;76134:268;76337:57;76364:28;76337:18;:57::i;75356:1051::-;;;;;;;;;;;;;:::o;32479:405::-;32566:8;-1:-1:-1;;;;;32550:24:0;:12;:10;:12::i;:::-;-1:-1:-1;;;;;32550:24:0;;;32542:73;;;;-1:-1:-1;;;32542:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;32632:27:0;;;;;;:17;:27;;;;;;;;32628:189;;;32683:24;:38;32708:12;:10;:12::i;:::-;-1:-1:-1;;;;;32683:38:0;;;;;;;;;;;;;;;;;-1:-1:-1;32683:38:0;;;:48;;;;;;;;;32676:55;;-1:-1:-1;;32676:55:0;;;32628:189;;;32801:4;32764:10;:24;32775:12;:10;:12::i;:::-;-1:-1:-1;;;;;32764:24:0;;;;;;;;;;;;;;;;;-1:-1:-1;32764:24:0;;;:34;;;;;;;;;:41;;-1:-1:-1;;32764:41:0;;;;;;;;;;32628:189;32863:12;:10;:12::i;:::-;-1:-1:-1;;;;;32834:42:0;32853:8;-1:-1:-1;;;;;32834:42:0;;;;;;;;;;;32479:405;:::o;29846:87::-;29918:7;29911:14;;;;;;;;-1:-1:-1;;29911:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29885:13;;29911:14;;29918:7;;29911:14;;29918:7;29911:14;;;;;;;;;;;;;;;;;;;;;;;;30928:162;31014:68;31020:12;:10;:12::i;:::-;31034;:10;:12::i;:::-;31048:9;31059:6;31067:4;31014:68;;;;;;;;;;;;31077:4;31014:5;:68::i;:::-;30928:162;;;:::o;75140:99::-;43495:9;:7;:9::i;:::-;43487:45;;;;;-1:-1:-1;;;43487:45:0;;;;;;;;;;;;-1:-1:-1;;;43487:45:0;;;;;;;;;;;;;;;75207:11;:26;75140:99::o;31331:434::-;31400:4;-1:-1:-1;;;;;31425:23:0;;31417:72;;;;-1:-1:-1;;;31417:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31502:12;31517;:10;:12::i;:::-;31502:27;;31542:56;31560:4;31566;31572:9;31583:6;31542:56;;;;;;;;;;;;;;;;;;;;;;;;:17;:56::i;:::-;31611:44;31617:4;31623;31629:9;31640:6;31611:44;;;;;;;;;;;;;;;;;;;;;;;;:5;:44::i;:::-;31668:65;31688:4;31694;31700:9;31711:6;31668:65;;;;;;;;;;;;;;;;;;;;;;;;31727:5;31668:19;:65::i;66504:230::-;66712:14;;;;;;;;;;;;-1:-1:-1;;;66712:14:0;;;;66504:230;:::o;77773:378::-;77967:13;;-1:-1:-1;;;;;77967:13:0;77951:12;:10;:12::i;:::-;-1:-1:-1;;;;;77951:29:0;;77943:74;;;;;-1:-1:-1;;;77943:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78030:13;;78024:74;;-1:-1:-1;;;;;78030:13:0;78045:6;78053:9;78064:6;78072:4;78078:12;78030:13;78024:5;:74::i;:::-;78131:13;;78110:35;;;-1:-1:-1;;;;;78131:13:0;;;78110:35;;;;;;;;;;;;77773:378;;;;;:::o;80301:23::-;;;-1:-1:-1;;;;;80301:23:0;;:::o;74100:34::-;;;;:::o;82268:284::-;82425:51;82431:12;:10;:12::i;:::-;82445;:10;:12::i;:::-;82459:6;82467:4;82425:51;;;;;;;;;;;;:5;:51::i;:::-;82499:10;-1:-1:-1;;;;;82492:52:0;;82511:6;82519:24;82492:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;82492:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82268:284;;;:::o;32096:311::-;32204:4;32240:11;-1:-1:-1;;;;;32228:23:0;:8;-1:-1:-1;;;;;32228:23:0;;:121;;;-1:-1:-1;;;;;;32269:27:0;;;;;;:17;:27;;;;;;;;:79;;;;-1:-1:-1;;;;;;32301:37:0;;;;;;;:24;:37;;;;;;;;:47;;;;;;;;;;;;32300:48;32269:79;32228:171;;;-1:-1:-1;;;;;;;32366:23:0;;;;;;;:10;:23;;;;;;;;:33;;;;;;;;;;;;;;;;32096:311::o;74068:27::-;;;-1:-1:-1;;;;;74068:27:0;;:::o;74954:180::-;43495:9;:7;:9::i;:::-;43487:45;;;;;-1:-1:-1;;;43487:45:0;;;;;;;;;;;;-1:-1:-1;;;43487:45:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;75031:27:0;;75023:70;;;;;-1:-1:-1;;;75023:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;75100:12;:28;;-1:-1:-1;;;;;;75100:28:0;-1:-1:-1;;;;;75100:28:0;;;;;;;;;;74954:180::o;81494:527::-;81729:8;;81669:4;;-1:-1:-1;;;;;81729:8:0;81713:12;:10;:12::i;:::-;-1:-1:-1;;;;;81713:24:0;;81691:108;;;;-1:-1:-1;;;81691:108:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;81832:23:0;;81810:113;;;;-1:-1:-1;;;81810:113:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81940:8;;81934:57;;-1:-1:-1;;;;;81940:8:0;81950:9;81961:5;81968:8;81978:12;81934:5;:57::i;34706:136::-;-1:-1:-1;;;;;34806:19:0;;;34779:7;34806:19;;;:11;:19;;;;;;;;:28;;;;;;;;;;;;;34706:136::o;69769:277::-;69915:12;:10;:12::i;:::-;-1:-1:-1;;;;;69901:26:0;:10;-1:-1:-1;;;;;69901:26:0;;69893:75;;;;-1:-1:-1;;;69893:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69979:59;69996:7;;69979:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;70005:7:0;;-1:-1:-1;70014:12:0;;-1:-1:-1;70028:9:0;;-1:-1:-1;69979:16:0;:59::i;77416:28::-;;;-1:-1:-1;;;;;77416:28:0;;:::o;32953:396::-;33033:12;:10;:12::i;:::-;-1:-1:-1;;;;;33021:24:0;:8;-1:-1:-1;;;;;33021:24:0;;;33013:70;;;;-1:-1:-1;;;33013:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33100:27:0;;;;;;:17;:27;;;;;;;;33096:189;;;33195:4;33144:24;:38;33169:12;:10;:12::i;:::-;-1:-1:-1;;;;;33144:38:0;;;;;;;;;;;;;;;;;-1:-1:-1;33144:38:0;;;:48;;;;;;;;;:55;;-1:-1:-1;;33144:55:0;;;;;;;;;;33096:189;;;33239:10;:24;33250:12;:10;:12::i;:::-;-1:-1:-1;;;;;33239:24:0;;;;;;;;;;;;;;;;;-1:-1:-1;33239:24:0;;;:34;;;;;;;;;33232:41;;-1:-1:-1;;33232:41:0;;;33096:189;33328:12;:10;:12::i;:::-;-1:-1:-1;;;;;33302:39:0;33318:8;-1:-1:-1;;;;;33302:39:0;;;;;;;;;;;32953:396;:::o;34171:287::-;34298:36;34312:12;:10;:12::i;:::-;34326:7;34298:13;:36::i;:::-;34290:93;;;;-1:-1:-1;;;34290:93:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34394:56;34400:12;:10;:12::i;:::-;34414:7;34423:6;34431:4;34437:12;34394:5;:56::i;:::-;34171:287;;;;:::o;74032:31::-;;;-1:-1:-1;;;;;74032:31:0;;:::o;80903:384::-;81036:8;;-1:-1:-1;;;;;81036:8:0;81020:12;:10;:12::i;:::-;-1:-1:-1;;;;;81020:24:0;;80998:126;;;;-1:-1:-1;;;80998:126:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;81157:25:0;;81135:111;;;;-1:-1:-1;;;81135:111:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81257:8;:22;;-1:-1:-1;;;;;;81257:22:0;-1:-1:-1;;;;;81257:22:0;;;;;;;;;;80903:384::o;31902:126::-;31969:51;31975:12;:10;:12::i;:::-;31989;:10;:12::i;:::-;32003:6;32011:4;31969:51;;;;;;;;;;;;:5;:51::i;:::-;31902:126;;:::o;74523:107::-;74568:15;74599:25;:23;:25::i;:::-;74592:32;;74523:107;:::o;40424:341::-;-1:-1:-1;;;;;40518:20:0;;40510:70;;;;-1:-1:-1;;;40510:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;40599:21:0;;40591:69;;;;-1:-1:-1;;;40591:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;40673:19:0;;;;;;;:11;:19;;;;;;;;:28;;;;;;;;;;;;;:36;;;40725:32;;;;;;;;;;;;;;;;;40424:341;;;:::o;39134:654::-;-1:-1:-1;;;;;39337:18:0;;39329:65;;;;-1:-1:-1;;;39329:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39407:73;39425:8;39435:4;39449:1;39453:6;39461:4;39467:12;39407:17;:73::i;:::-;39546:66;39566:6;39546:66;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;39546:15:0;;;;;;:9;:15;;;;;;;:66;;:19;:66;:::i;:::-;-1:-1:-1;;;;;39528:15:0;;;;;;:9;:15;;;;;:84;39638:12;;:24;;39655:6;39638:24;:16;:24;:::i;:::-;39623:12;:39;;;;39697:4;-1:-1:-1;;;;;39680:50:0;39687:8;-1:-1:-1;;;;;39680:50:0;;39703:6;39711:4;39717:12;39680:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;39680:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39680:50:0;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;39680:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39746:34;;;;;;;;39769:1;;-1:-1:-1;;;;;39746:34:0;;;;;;;;;;;;39134:654;;;;;:::o;41249:497::-;41503:76;;;-1:-1:-1;;;41503:76:0;;-1:-1:-1;;;;;41503:76:0;;;;;;28040:66;41503:76;;;;;;41481:19;;27562:42;;41503:40;;:76;;;;;;;;;;;;;;;27562:42;41503:76;;;5:2:-1;;;;30:1;27;20:12;5:2;41503:76:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;41503:76:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;41503:76:0;;-1:-1:-1;;;;;;41594:25:0;;;41590:149;;41650:11;-1:-1:-1;;;;;41636:39:0;;41676:8;41686:4;41692:2;41696:6;41704:8;41714:12;41636:91;;;;;;;;;;;;;-1:-1:-1;;;;;41636:91:0;-1:-1:-1;;;;;41636:91:0;;;;;;-1:-1:-1;;;;;41636:91:0;-1:-1:-1;;;;;41636:91:0;;;;;;-1:-1:-1;;;;;41636:91:0;-1:-1:-1;;;;;41636:91:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;41636:91:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41636:91:0;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;41636:91:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;41636:91:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;41636:91:0;;;;41590:149;41249:497;;;;;;;:::o;39796:483::-;40033:70;40053:6;40033:70;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;40033:15:0;;;;;;:9;:15;;;;;;;:70;;:19;:70;:::i;:::-;-1:-1:-1;;;;;40015:15:0;;;;;;;:9;:15;;;;;;:88;;;;40130:13;;;;;;;:25;;40148:6;40130:25;:17;:25;:::i;:::-;40114:9;:13;40124:2;-1:-1:-1;;;;;40114:13:0;-1:-1:-1;;;;;40114:13:0;;;;;;;;;;;;:41;;;;40194:2;-1:-1:-1;;;;;40173:56:0;40188:4;-1:-1:-1;;;;;40173:56:0;40178:8;-1:-1:-1;;;;;40173:56:0;;40198:6;40206:8;40216:12;40173:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;40173:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40173:56:0;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;40173:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40260:2;-1:-1:-1;;;;;40245:26:0;40254:4;-1:-1:-1;;;;;40245:26:0;;40264:6;40245:26;;;;;;;;;;;;;;;;;;39796:483;;;;;;:::o;14887:192::-;14973:7;15009:12;15001:6;;;;14993:29;;;;-1:-1:-1;;;14993:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;14993:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;15045:5:0;;;14887:192::o;79425:660::-;79676:77;;;-1:-1:-1;;;79676:77:0;;-1:-1:-1;;;;;79676:77:0;;;;;;78700:66;79676:77;;;;;;79654:19;;27562:42;;79676:40;;:77;;;;;;;;;;;;;;;27562:42;79676:77;;;5:2:-1;;;;30:1;27;20:12;5:2;79676:77:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;79676:77:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;79676:77:0;;-1:-1:-1;;;;;;79764:25:0;;;79760:320;;79817:11;-1:-1:-1;;;;;79800:44:0;;79845:8;79855:4;79861:2;79865:6;79873:8;79883:12;79800:96;;;;;;;;;;;;;-1:-1:-1;;;;;79800:96:0;-1:-1:-1;;;;;79800:96:0;;;;;;-1:-1:-1;;;;;79800:96:0;-1:-1:-1;;;;;79800:96:0;;;;;;-1:-1:-1;;;;;79800:96:0;-1:-1:-1;;;;;79800:96:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;79800:96:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;79800:96:0;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;79800:96:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;79800:96:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;79800:96:0;;;;79760:320;;;79914:19;:41;;;;-1:-1:-1;;;;;;79937:18:0;;;;79914:41;79910:170;;;79975:15;:2;-1:-1:-1;;;;;79975:13:0;;:15::i;:::-;79974:16;79966:106;;;;-1:-1:-1;;;79966:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79425:660;;;;;;;;:::o;43626:89::-;43668:4;43702:7;:5;:7::i;:::-;-1:-1:-1;;;;;43688:21:0;:10;-1:-1:-1;;;;;43688:21:0;;43681:28;;43626:89;:::o;38015:739::-;-1:-1:-1;;;;;38278:22:0;;38270:71;;;;-1:-1:-1;;;38270:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;38360:18:0;;38352:65;;;;-1:-1:-1;;;38352:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;38436:16:0;;38428:61;;;;;-1:-1:-1;;;38428:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38502:69;38520:8;38530:4;38536:2;38540:6;38548:8;38558:12;38502:17;:69::i;:::-;38584:57;38590:8;38600:4;38606:2;38610:6;38618:8;38628:12;38584:5;:57::i;:::-;38654:92;38674:8;38684:4;38690:2;38694:6;38702:8;38712:12;38726:19;38654;:92::i;76413:76::-;-1:-1:-1;76478:7:0;;76413:76::o;47240:269::-;47442:58;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;47442:58:0;;;;;;;47432:69;;;;;;47240:269::o;45036:1930::-;45114:7;45177:9;:16;45197:2;45177:22;45173:74;;-1:-1:-1;45232:1:0;45216:19;;45173:74;45608:4;45593:20;;45587:27;45654:4;45639:20;;45633:27;45708:4;45693:20;;45687:27;45316:9;45679:36;46638:66;46625:79;;46621:129;;;46736:1;46721:17;;;;;;;46621:129;46766:1;:7;;46771:2;46766:7;;:18;;;;;46777:1;:7;;46782:2;46777:7;;46766:18;46762:68;;;46816:1;46801:17;;;;;;;46762:68;46934:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;46934:24:0;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;46934:24:0;;-1:-1:-1;;46934:24:0;;;45036:1930;-1:-1:-1;;;;;;;45036:1930:0:o;70950:155::-;71024:7;;70950:155::o;71241:158::-;71345:46;;;;;;;;;-1:-1:-1;71345:46:0;;64824:2;71353:33;;;;;71241:158::o;36813:650::-;-1:-1:-1;;;;;37019:21:0;;37011:66;;;;;-1:-1:-1;;;37011:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37140:12;;:24;;37157:6;37140:24;:16;:24;:::i;:::-;37125:12;:39;-1:-1:-1;;;;;37196:18:0;;;;;;:9;:18;;;;;;:30;;37219:6;37196:30;:22;:30;:::i;:::-;37175:9;:18;37185:7;-1:-1:-1;;;;;37175:18:0;-1:-1:-1;;;;;37175:18:0;;;;;;;;;;;;:51;;;;37239:88;37259:8;37277:1;37281:7;37290:6;37298:8;37308:12;37322:4;37239:19;:88::i;:::-;37362:7;-1:-1:-1;;;;;37345:57:0;37352:8;-1:-1:-1;;;;;37345:57:0;;37371:6;37379:8;37389:12;37345:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;37345:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37345:57:0;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;37345:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37418:37;;;;;;;;-1:-1:-1;;;;;37418:37:0;;;37435:1;;37418:37;;;;;;;;;36813:650;;;;;:::o;76495:785::-;76597:15;76614:12;76628:22;76652:16;76690:7;76679:57;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;76679:57:0;;;;;;;;;;;;;;;77056:11;;76679:57;;-1:-1:-1;76679:57:0;;-1:-1:-1;76679:57:0;;-1:-1:-1;76679:57:0;;-1:-1:-1;76986:22:0;;77011:84;;77026:42;;64942:6;;77026:42;:29;:42;:::i;:::-;77070:8;77080:14;77011;:84::i;:::-;76986:109;-1:-1:-1;77102:8:0;77113:64;73941:6;77113:45;77150:7;77113:32;:12;76986:109;77113:32;:16;:32;:::i;:::-;:36;:45;:36;:45;:::i;:::-;:49;:64;:49;:64;:::i;:::-;77102:75;-1:-1:-1;77190:7:0;;77186:89;;77208:59;77214:12;:10;:12::i;:::-;77234;;77208:59;;;;;;;;;77234:12;77208:59;;;;;;;;;;;;;;77228:4;;-1:-1:-1;;;;;77234:12:0;;77248:3;;77208:59;;:5;:59::i;:::-;76495:785;;;;;;;;;;:::o;67706:216::-;67751:15;67797:9;;-1:-1:-1;;;;;67797:9:0;67783:10;:23;67779:136;;-1:-1:-1;67830:10:0;67823:17;;67779:136;67880:23;:21;:23::i;:::-;67873:30;;;;14414:136;14472:7;14499:43;14503:1;14506;14499:43;;;;;;;;;;;;;;;;;:3;:43::i;13958:181::-;14016:7;14048:5;;;14072:6;;;;14064:46;;;;;-1:-1:-1;;;14064:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;19318:619;19378:4;19846:20;;19689:66;19886:23;;;;;;:42;;-1:-1:-1;19913:15:0;;;19886:42;19878:51;19318:619;-1:-1:-1;;;;19318:619:0:o;80812:83::-;80879:8;;-1:-1:-1;;;;;80879:8:0;80812:83;:::o;71563:344::-;71896:3;71875:16;;;71857:14;;;;:35;71856:43;;71563:344::o;15330:471::-;15388:7;15633:6;15629:47;;-1:-1:-1;15663:1:0;15656:8;;15629:47;15700:5;;;15704:1;15700;:5;:1;15724:5;;;;;:10;15716:56;;;;-1:-1:-1;;;15716:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16269:132;16327:7;16354:39;16358:1;16361;16354:39;;;;;;;;;;;;;;;;;:3;:39::i;71915:1270::-;71970:22;72788:18;72809:8;;72788:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;;;;72844:8:0;73080:17;73074:24;-1:-1:-1;;;;;73070:73:0;;71915:1270;-1:-1:-1;;71915:1270:0:o;16931:345::-;17017:7;17119:12;17112:5;17104:28;;;;-1:-1:-1;;;17104:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;17104:28:0;;17143:9;17159:1;17155;:5;;;;;;;16931:345;-1:-1:-1;;;;;16931:345:0:o

Swarm Source

bzzr://fbe306e7c214aa13e3f43b430286eb40c7b5a4d2f4d4da34e271557b809c0783
Block Transaction Difficulty Gas Used Reward
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.