POL Price: $0.218314 (-0.00%)
 

Overview

POL Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 POL

POL Value

$0.00

Token Holdings

Multichain Info

1 address found via
Transaction Hash
Method
Block
From
To
Get Rand Num4Loo...253262872022-02-25 15:44:061152 days ago1645803846IN
0x3D0d1183...0B37a273D
0 POL0.0026761690.21000051
Get Rand Num4Loo...253262752022-02-25 15:43:421152 days ago1645803822IN
0x3D0d1183...0B37a273D
0 POL0.0009531332.1287927
Withdraw Matic252976362022-02-24 18:02:341153 days ago1645725754IN
0x3D0d1183...0B37a273D
0 POL0.001017133.41246532
Withdraw Link252976152022-02-24 18:01:521153 days ago1645725712IN
0x3D0d1183...0B37a273D
0 POL0.003695100
Get Rand Num4Loo...252698972022-02-23 20:45:431154 days ago1645649143IN
0x3D0d1183...0B37a273D
0 POL0.0055381333.41196728
Get Rand Num4Loo...252404682022-02-22 21:08:461155 days ago1645564126IN
0x3D0d1183...0B37a273D
0 POL0.0154150292.99999975
Get Rand Num4Loo...252033622022-02-21 18:55:221156 days ago1645469722IN
0x3D0d1183...0B37a273D
0 POL0.0163061598.37622728
Open Loot Box251933092022-02-21 12:45:091156 days ago1645447509IN
0x3D0d1183...0B37a273D
0 POL0.0022670690.04130731
Open Loot Box251655472022-02-20 19:41:151157 days ago1645386075IN
0x3D0d1183...0B37a273D
0 POL0.0022742390.3264
Get Rand Num4Loo...251654962022-02-20 19:39:011157 days ago1645385941IN
0x3D0d1183...0B37a273D
0 POL0.0149525790.21
Get Rand Num4Loo...250830922022-02-18 13:43:491159 days ago1645191829IN
0x3D0d1183...0B37a273D
0 POL0.0149525790.20999999
Get Rand Num4Loo...250821542022-02-18 13:04:121159 days ago1645189452IN
0x3D0d1183...0B37a273D
0 POL0.0053126432.05157029
Open Loot Box250463332022-02-17 11:22:561160 days ago1645096976IN
0x3D0d1183...0B37a273D
0 POL0.0022750590.40206001
Open Loot Box250462992022-02-17 11:21:481160 days ago1645096908IN
0x3D0d1183...0B37a273D
0 POL0.0022803890.57039541
Get Rand Num4Loo...250456542022-02-17 10:57:111160 days ago1645095431IN
0x3D0d1183...0B37a273D
0 POL0.0149525790.21
Get Rand Num4Loo...249894582022-02-16 0:11:111162 days ago1644970271IN
0x3D0d1183...0B37a273D
0 POL0.0149525790.20999999
Open Loot Box249524482022-02-15 1:34:401163 days ago1644888880IN
0x3D0d1183...0B37a273D
0 POL0.0037767150
Get Rand Num4Loo...248809072022-02-13 5:26:121165 days ago1644729972IN
0x3D0d1183...0B37a273D
0 POL0.0149525790.21000001
Open Loot Box247720222022-02-10 10:29:571167 days ago1644488997IN
0x3D0d1183...0B37a273D
0 POL0.00453204180
Open Loot Box247719822022-02-10 10:28:371167 days ago1644488917IN
0x3D0d1183...0B37a273D
0 POL0.0037767150
Open Loot Box247578182022-02-10 1:58:351168 days ago1644458315IN
0x3D0d1183...0B37a273D
0 POL0.0037767150
Get Rand Num4Loo...247251312022-02-09 6:33:231169 days ago1644388403IN
0x3D0d1183...0B37a273D
0 POL0.01682525101.5079736
Get Rand Num4Loo...246325032022-02-06 22:13:141171 days ago1644185594IN
0x3D0d1183...0B37a273D
0 POL0.0159076195.97179994
Get Rand Num4Loo...246091032022-02-06 7:36:151172 days ago1644132975IN
0x3D0d1183...0B37a273D
0 POL0.0149177790.00000008
Get Rand Num4Loo...245498962022-02-04 18:20:561173 days ago1643998856IN
0x3D0d1183...0B37a273D
0 POL0.0149525790.20999991
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
252976362022-02-24 18:02:341153 days ago1645725754
0x3D0d1183...0B37a273D
4.9 POL
223834292021-12-11 4:21:081229 days ago1639196468
0x3D0d1183...0B37a273D
0.1 POL
223834292021-12-11 4:21:081229 days ago1639196468
0x3D0d1183...0B37a273D
0.1 POL
223834292021-12-11 4:21:081229 days ago1639196468
0x3D0d1183...0B37a273D
0.1 POL
223834292021-12-11 4:21:081229 days ago1639196468
0x3D0d1183...0B37a273D
0.1 POL
223834292021-12-11 4:21:081229 days ago1639196468
0x3D0d1183...0B37a273D
0.1 POL
223834292021-12-11 4:21:081229 days ago1639196468
0x3D0d1183...0B37a273D
0.1 POL
223834292021-12-11 4:21:081229 days ago1639196468
0x3D0d1183...0B37a273D
0.1 POL
223834292021-12-11 4:21:081229 days ago1639196468
0x3D0d1183...0B37a273D
0.1 POL
223834292021-12-11 4:21:081229 days ago1639196468
0x3D0d1183...0B37a273D
0.1 POL
223834292021-12-11 4:21:081229 days ago1639196468
0x3D0d1183...0B37a273D
0.1 POL
223834292021-12-11 4:21:081229 days ago1639196468
0x3D0d1183...0B37a273D
0.1 POL
223834292021-12-11 4:21:081229 days ago1639196468
0x3D0d1183...0B37a273D
0.1 POL
223834292021-12-11 4:21:081229 days ago1639196468
0x3D0d1183...0B37a273D
0.1 POL
223834292021-12-11 4:21:081229 days ago1639196468
0x3D0d1183...0B37a273D
0.1 POL
223834292021-12-11 4:21:081229 days ago1639196468
0x3D0d1183...0B37a273D
0.1 POL
223834292021-12-11 4:21:081229 days ago1639196468
0x3D0d1183...0B37a273D
0.1 POL
223834292021-12-11 4:21:081229 days ago1639196468
0x3D0d1183...0B37a273D
0.1 POL
223834292021-12-11 4:21:081229 days ago1639196468
0x3D0d1183...0B37a273D
0.1 POL
223834292021-12-11 4:21:081229 days ago1639196468
0x3D0d1183...0B37a273D
0.1 POL
223834292021-12-11 4:21:081229 days ago1639196468
0x3D0d1183...0B37a273D
0.1 POL
223834292021-12-11 4:21:081229 days ago1639196468
0x3D0d1183...0B37a273D
0.1 POL
223834292021-12-11 4:21:081229 days ago1639196468
0x3D0d1183...0B37a273D
0.1 POL
223834292021-12-11 4:21:081229 days ago1639196468
0x3D0d1183...0B37a273D
0.1 POL
223834292021-12-11 4:21:081229 days ago1639196468
0x3D0d1183...0B37a273D
0.1 POL
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GFCGenesisLootBox

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-12-08
*/

// File: contracts/VRFRequestIDBase.sol


pragma solidity ^0.8.0;

contract VRFRequestIDBase {

  /**
   * @notice returns the seed which is actually input to the VRF coordinator
   *
   * @dev To prevent repetition of VRF output due to repetition of the
   * @dev user-supplied seed, that seed is combined in a hash with the
   * @dev user-specific nonce, and the address of the consuming contract. The
   * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in
   * @dev the final seed, but the nonce does protect against repetition in
   * @dev requests which are included in a single block.
   *
   * @param _userSeed VRF seed input provided by user
   * @param _requester Address of the requesting contract
   * @param _nonce User-specific nonce at the time of the request
   */
  function makeVRFInputSeed(
    bytes32 _keyHash,
    uint256 _userSeed,
    address _requester,
    uint256 _nonce
  )
    internal
    pure
    returns (
      uint256
    )
  {
    return uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce)));
  }

  /**
   * @notice Returns the id for this request
   * @param _keyHash The serviceAgreement ID to be used for this request
   * @param _vRFInputSeed The seed to be passed directly to the VRF
   * @return The id for this request
   *
   * @dev Note that _vRFInputSeed is not the seed passed by the consuming
   * @dev contract, but the one generated by makeVRFInputSeed
   */
  function makeRequestId(
    bytes32 _keyHash,
    uint256 _vRFInputSeed
  )
    internal
    pure
    returns (
      bytes32
    )
  {
    return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed));
  }
}
// File: contracts/LinkTokenInterface.sol


pragma solidity ^0.8.0;

interface LinkTokenInterface {

  function allowance(
    address owner,
    address spender
  )
    external
    view
    returns (
      uint256 remaining
    );

  function approve(
    address spender,
    uint256 value
  )
    external
    returns (
      bool success
    );

  function balanceOf(
    address owner
  )
    external
    view
    returns (
      uint256 balance
    );

  function decimals()
    external
    view
    returns (
      uint8 decimalPlaces
    );

  function decreaseApproval(
    address spender,
    uint256 addedValue
  )
    external
    returns (
      bool success
    );

  function increaseApproval(
    address spender,
    uint256 subtractedValue
  ) external;

  function name()
    external
    view
    returns (
      string memory tokenName
    );

  function symbol()
    external
    view
    returns (
      string memory tokenSymbol
    );

  function totalSupply()
    external
    view
    returns (
      uint256 totalTokensIssued
    );

  function transfer(
    address to,
    uint256 value
  )
    external
    returns (
      bool success
    );

  function transferAndCall(
    address to,
    uint256 value,
    bytes calldata data
  )
    external
    returns (
      bool success
    );

  function transferFrom(
    address from,
    address to,
    uint256 value
  )
    external
    returns (
      bool success
    );

}

// File: contracts/VRFConsumerBase.sol


pragma solidity ^0.8.0;



/** ****************************************************************************
 * @notice Interface for contracts using VRF randomness
 * *****************************************************************************
 * @dev PURPOSE
 *
 * @dev Reggie the Random Oracle (not his real job) wants to provide randomness
 * @dev to Vera the verifier in such a way that Vera can be sure he's not
 * @dev making his output up to suit himself. Reggie provides Vera a public key
 * @dev to which he knows the secret key. Each time Vera provides a seed to
 * @dev Reggie, he gives back a value which is computed completely
 * @dev deterministically from the seed and the secret key.
 *
 * @dev Reggie provides a proof by which Vera can verify that the output was
 * @dev correctly computed once Reggie tells it to her, but without that proof,
 * @dev the output is indistinguishable to her from a uniform random sample
 * @dev from the output space.
 *
 * @dev The purpose of this contract is to make it easy for unrelated contracts
 * @dev to talk to Vera the verifier about the work Reggie is doing, to provide
 * @dev simple access to a verifiable source of randomness.
 * *****************************************************************************
 * @dev USAGE
 *
 * @dev Calling contracts must inherit from VRFConsumerBase, and can
 * @dev initialize VRFConsumerBase's attributes in their constructor as
 * @dev shown:
 *
 * @dev   contract VRFConsumer {
 * @dev     constuctor(<other arguments>, address _vrfCoordinator, address _link)
 * @dev       VRFConsumerBase(_vrfCoordinator, _link) public {
 * @dev         <initialization with other arguments goes here>
 * @dev       }
 * @dev   }
 *
 * @dev The oracle will have given you an ID for the VRF keypair they have
 * @dev committed to (let's call it keyHash), and have told you the minimum LINK
 * @dev price for VRF service. Make sure your contract has sufficient LINK, and
 * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you
 * @dev want to generate randomness from.
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomness method.
 *
 * @dev The randomness argument to fulfillRandomness is the actual random value
 * @dev generated from your seed.
 *
 * @dev The requestId argument is generated from the keyHash and the seed by
 * @dev makeRequestId(keyHash, seed). If your contract could have concurrent
 * @dev requests open, you can use the requestId to track which seed is
 * @dev associated with which randomness. See VRFRequestIDBase.sol for more
 * @dev details. (See "SECURITY CONSIDERATIONS" for principles to keep in mind,
 * @dev if your contract could have multiple requests in flight simultaneously.)
 *
 * @dev Colliding `requestId`s are cryptographically impossible as long as seeds
 * @dev differ. (Which is critical to making unpredictable randomness! See the
 * @dev next section.)
 *
 * *****************************************************************************
 * @dev SECURITY CONSIDERATIONS
 *
 * @dev A method with the ability to call your fulfillRandomness method directly
 * @dev could spoof a VRF response with any random value, so it's critical that
 * @dev it cannot be directly called by anything other than this base contract
 * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method).
 *
 * @dev For your users to trust that your contract's random behavior is free
 * @dev from malicious interference, it's best if you can write it so that all
 * @dev behaviors implied by a VRF response are executed *during* your
 * @dev fulfillRandomness method. If your contract must store the response (or
 * @dev anything derived from it) and use it later, you must ensure that any
 * @dev user-significant behavior which depends on that stored value cannot be
 * @dev manipulated by a subsequent VRF request.
 *
 * @dev Similarly, both miners and the VRF oracle itself have some influence
 * @dev over the order in which VRF responses appear on the blockchain, so if
 * @dev your contract could have multiple VRF requests in flight simultaneously,
 * @dev you must ensure that the order in which the VRF responses arrive cannot
 * @dev be used to manipulate your contract's user-significant behavior.
 *
 * @dev Since the ultimate input to the VRF is mixed with the block hash of the
 * @dev block in which the request is made, user-provided seeds have no impact
 * @dev on its economic security properties. They are only included for API
 * @dev compatability with previous versions of this contract.
 *
 * @dev Since the block hash of the block which contains the requestRandomness
 * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful
 * @dev miner could, in principle, fork the blockchain to evict the block
 * @dev containing the request, forcing the request to be included in a
 * @dev different block with a different hash, and therefore a different input
 * @dev to the VRF. However, such an attack would incur a substantial economic
 * @dev cost. This cost scales with the number of blocks the VRF oracle waits
 * @dev until it calls responds to a request.
 */
abstract contract VRFConsumerBase is VRFRequestIDBase {

  /**
   * @notice fulfillRandomness handles the VRF response. Your contract must
   * @notice implement it. See "SECURITY CONSIDERATIONS" above for important
   * @notice principles to keep in mind when implementing your fulfillRandomness
   * @notice method.
   *
   * @dev VRFConsumerBase expects its subcontracts to have a method with this
   * @dev signature, and will call it once it has verified the proof
   * @dev associated with the randomness. (It is triggered via a call to
   * @dev rawFulfillRandomness, below.)
   *
   * @param requestId The Id initially returned by requestRandomness
   * @param randomness the VRF output
   */
  function fulfillRandomness(
    bytes32 requestId,
    uint256 randomness
  )
    internal
    virtual;

  /**
   * @dev In order to keep backwards compatibility we have kept the user
   * seed field around. We remove the use of it because given that the blockhash
   * enters later, it overrides whatever randomness the used seed provides.
   * Given that it adds no security, and can easily lead to misunderstandings,
   * we have removed it from usage and can now provide a simpler API.
   */
  uint256 constant private USER_SEED_PLACEHOLDER = 0;

  /**
   * @notice requestRandomness initiates a request for VRF output given _seed
   *
   * @dev The fulfillRandomness method receives the output, once it's provided
   * @dev by the Oracle, and verified by the vrfCoordinator.
   *
   * @dev The _keyHash must already be registered with the VRFCoordinator, and
   * @dev the _fee must exceed the fee specified during registration of the
   * @dev _keyHash.
   *
   * @dev The _seed parameter is vestigial, and is kept only for API
   * @dev compatibility with older versions. It can't *hurt* to mix in some of
   * @dev your own randomness, here, but it's not necessary because the VRF
   * @dev oracle will mix the hash of the block containing your request into the
   * @dev VRF seed it ultimately uses.
   *
   * @param _keyHash ID of public key against which randomness is generated
   * @param _fee The amount of LINK to send with the request
   *
   * @return requestId unique ID for this request
   *
   * @dev The returned requestId can be used to distinguish responses to
   * @dev concurrent requests. It is passed as the first argument to
   * @dev fulfillRandomness.
   */
  function requestRandomness(
    bytes32 _keyHash,
    uint256 _fee
  )
    internal
    returns (
      bytes32 requestId
    )
  {
    LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, USER_SEED_PLACEHOLDER));
    // This is the seed passed to VRFCoordinator. The oracle will mix this with
    // the hash of the block containing this request to obtain the seed/input
    // which is finally passed to the VRF cryptographic machinery.
    uint256 vRFSeed  = makeVRFInputSeed(_keyHash, USER_SEED_PLACEHOLDER, address(this), nonces[_keyHash]);
    // nonces[_keyHash] must stay in sync with
    // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above
    // successful LINK.transferAndCall (in VRFCoordinator.randomnessRequest).
    // This provides protection against the user repeating their input seed,
    // which would result in a predictable/duplicate output, if multiple such
    // requests appeared in the same block.
    nonces[_keyHash] = nonces[_keyHash] + 1;
    return makeRequestId(_keyHash, vRFSeed);
  }

  LinkTokenInterface immutable internal LINK;
  address immutable private vrfCoordinator;

  // Nonces for each VRF key from which randomness has been requested.
  //
  // Must stay in sync with VRFCoordinator[_keyHash][this]
  mapping(bytes32 /* keyHash */ => uint256 /* nonce */) private nonces;

  /**
   * @param _vrfCoordinator address of VRFCoordinator contract
   * @param _link address of LINK token contract
   *
   * @dev https://docs.chain.link/docs/link-token-contracts
   */
  constructor(
    address _vrfCoordinator,
    address _link
  ) {
    vrfCoordinator = _vrfCoordinator;
    LINK = LinkTokenInterface(_link);
  }

  // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
  // proof. rawFulfillRandomness then calls fulfillRandomness, after validating
  // the origin of the call
  function rawFulfillRandomness(
    bytes32 requestId,
    uint256 randomness
  )
    external
  {
    require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill");
    fulfillRandomness(requestId, randomness);
  }
}

// File: contracts/Strings.sol



pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

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

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

// File: contracts/Context.sol



pragma solidity ^0.8.0;

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

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: contracts/Pausable.sol



pragma solidity ^0.8.0;


/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

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

    bool private _paused;

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

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

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

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

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

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

// File: contracts/Ownable.sol



pragma solidity ^0.8.0;


/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: contracts/Whitelist.sol


pragma solidity ^0.8.0;


contract Whitelist is Ownable {
  // address[] private whitelisted;
  mapping(address => bool) private whitelisted;

  function addWhitelistedAddress(address addr) public onlyOwner {
    whitelisted[addr] = true;
  }

  function removeWhitelistedAddress(address addr) public onlyOwner {
    whitelisted[addr] = false;
  }

  function checkWhitelist(address addr) internal view returns (bool) {
    return msg.sender == owner() || whitelisted[addr];    
  }

  modifier isWhitelisted {
    require(checkWhitelist(msg.sender), "Only whitelisted address can call this");
    _;
  }
}
// File: contracts/Address.sol



pragma solidity ^0.8.0;

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

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: contracts/IERC165.sol



pragma solidity ^0.8.0;

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

// File: contracts/ERC165.sol



pragma solidity ^0.8.0;


/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

// File: contracts/IERC1155Receiver.sol



pragma solidity ^0.8.0;


/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

// File: contracts/IERC1155.sol



pragma solidity ^0.8.0;


/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

// File: contracts/IERC1155MetadataURI.sol



pragma solidity ^0.8.0;


/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

// File: contracts/ERC1155.sol



pragma solidity ^0.8.0;







/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC1155).interfaceId ||
            interfaceId == type(IERC1155MetadataURI).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(_msgSender() != operator, "ERC1155: setting approval status for self");

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(account != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][account] += amount;
        emit TransferSingle(operator, address(0), account, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `account`
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

        uint256 accountBalance = _balances[id][account];
        require(accountBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][account] = accountBalance - amount;
        }

        emit TransferSingle(operator, account, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 accountBalance = _balances[id][account];
            require(accountBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][account] = accountBalance - amount;
            }
        }

        emit TransferBatch(operator, account, address(0), ids, amounts);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

// File: contracts/ERC1155Pausable.sol



pragma solidity ^0.8.0;



/**
 * @dev ERC1155 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Pausable is ERC1155, Pausable {
    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        require(!paused(), "ERC1155Pausable: token transfer while paused");
    }
}

// File: contracts/GFCMysteryItem.sol


pragma solidity ^0.8.4;





contract GFCMysteryItem is ERC1155Pausable, Ownable, Whitelist {
    using Strings for uint256;

    //OpenSea's Proxy contract for ERC1155 on Polygon
    address public OPEN_SEA = 0x207Fa8Df3a17D96Ca7EA4f2893fcdCb78a304101;

    //probability arrays
    uint16[] public PROBs;

    constructor(string memory path) ERC1155(path){
      //Initialise the probabilities
      //65% chance to get the battle pass
      //35% chance to get the cosmetic item
      PROBs = [65, 35];
    }

    function devMint(address account, uint256 itemId, uint256 amount) public isWhitelisted returns (uint256){
      _mint(account, itemId, amount, "");
      return itemId;
    }

    function mintMysteryItem(address account, uint256 amount, uint256 ranNum) external isWhitelisted returns (uint256){
      uint8 itemId = itemIdGen(ranNum % 100);  
      _mint(account, itemId, amount, "");
      return itemId;
    }

    /**
     * determine itemId according to the random number input
     */
    function itemIdGen(uint256 _randinput) internal view returns (uint8)
    {
        uint16 currentLowerBound = 0;
        for (uint8 i = 0; i < PROBs.length; i++) {
          uint16 thisPercentage = PROBs[i];
          if (
              _randinput >= currentLowerBound &&
              _randinput < currentLowerBound + thisPercentage
          ) return i;
          currentLowerBound = currentLowerBound + thisPercentage;
        }
        return 1;
    }

    function setProbability(uint16[] calldata array) public onlyOwner{
      PROBs = array;
    }

    function setOpenSea(address addr) public onlyOwner {
      OPEN_SEA = addr;
    }

    function setURI(string memory newURI) public onlyOwner {
      _setURI(newURI);
    }

    function name() external pure returns (string memory) {
        return "GFCGenesisMysteryItems";
    }

    function symbol() external pure returns (string memory) {
        return "GFCGMI";
    }

    function uri(uint256 tokenId) public view override returns (string memory) {
      string memory baseURI = ERC1155.uri(tokenId);
      return string(abi.encodePacked(baseURI, Strings.toString(tokenId)));
    }

    /**
     * Override isApprovedForAll to auto-approve OS's proxy contract
     */
    function isApprovedForAll(
        address _owner,
        address _operator
    ) public override view returns (bool isOperator) {
        // if OpenSea's ERC1155 Proxy Address is detected, auto-return true
       if (_operator == OPEN_SEA) {
            return true;
        }
        // otherwise, use the default ERC1155.isApprovedForAll()
        return ERC1155.isApprovedForAll(_owner, _operator);
    }

    /**
     * Pause trading on this collection
     * Implemented for taking snapshot
     */
    function pause() public isWhitelisted {
        super._pause();
    }

    /**
     * Unpause trading on this collection
     */
    function unpause() public isWhitelisted {
        super._unpause();
    }

        /*
    * Override burn and burnBatch function to allow for whitelisted addresses to call on these two functions
    */
    function burn(address account, uint256 id, uint256 value) public isWhitelisted {
      _burn(account, id, value);
    }

    function burnBatch(address account, uint256[] memory ids, uint256[] memory values) public isWhitelisted {
      _burnBatch(account, ids, values);
    }
}
// File: contracts/BYOPillGFC.sol


pragma solidity ^0.8.4;




contract BYOPillGFC is ERC1155, Ownable {
    using Strings for uint256;

    address private GFCAdmin;
    uint256 private pillCount;

    mapping(uint256 => bool) public validPillIDs;
    
    string private baseURI;

    constructor(string memory _baseURI) ERC1155(_baseURI) {
        baseURI = _baseURI;
        addConsumablePills(5);
    }

    function setURI(string memory newuri) public onlyOwner {
        _setURI(newuri);
    }

    function updateGFCAddress(address _gfcAddress) public onlyOwner {
        GFCAdmin = _gfcAddress;
    }

    function addConsumablePills (uint _count) public onlyOwner {
        for (uint256 index = 0; index < _count; index++) {
            validPillIDs[pillCount] = true;
            pillCount++;
        }
    }

    function mint(address account, uint256 id, uint256 amount) public onlyOwner
    {
        require (validPillIDs[id], "Minting unavailable pill ID.");
        _mint(account, id, amount, "");
    }

    function mintBatch(address to, uint256[] memory ids, uint256[] memory amounts) public onlyOwner
    {
        for (uint256 index = 0; index < ids.length; index++) {
            require (validPillIDs[ids[index]], "Minting unavailable pill ID.");
        }
        _mintBatch(to, ids, amounts, "");
    }

    function randomMint(address account, uint256 amount, uint256 randNum) public onlyAdmins returns (uint256)
    {
        uint256 rndId = simpleRandom(randNum, pillCount);
        require (validPillIDs[rndId], "Minting unavailable pill ID.");
        _mint(account, rndId, amount, "");
        return rndId;
    }

    function uri(uint256 _id) public view override returns (string memory) {
        require(validPillIDs[_id], "URI requested for invalid pill id.");    
        return string(abi.encodePacked(baseURI, _id.toString()));
    }   

    /*
        Helper functions
    */    

    function simpleRandom(uint256 randNum, uint max) internal pure returns (uint) {
        return randNum % max;
    }  
    
    /*
        Modifiers
    */   

    modifier onlyAdmins {
      require(msg.sender == GFCAdmin 
      || msg.sender == owner());
      _;
    }

}   
// File: contracts/ERC1155Burnable.sol



pragma solidity ^0.8.0;


/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burn(account, id, value);
    }

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burnBatch(account, ids, values);
    }
}

// File: contracts/GFCGenesisWeapon.sol


pragma solidity ^0.8.4;





contract GFCGenesisWeapon is ERC1155Burnable, Ownable, Whitelist {
    using Strings for uint256;

    //OpenSea's Proxy contract for ERC1155 on Polygon
    address public OPEN_SEA = 0x207Fa8Df3a17D96Ca7EA4f2893fcdCb78a304101;

    //probability arrays
    uint16[][2] public PROBs;

    //arrays of total number of melee weapons in each tier
    uint16[] public meleeWeaponCount;

    //arrays of total number of ranged weapons in each tier
    uint16[] public rangedWeaponCount;

    constructor(string memory path) ERC1155(path){
      //Initialise the probabilities
      //Probability for Tiers with Tier 1 keys
      PROBs[0] = [0, 0, 44, 35, 15, 6];
      //Probability for Tiers with Tier 2/3 keys
      PROBs[1] = [0, 45, 30, 18, 6, 1];

      //Initalise the total number of weapons
      meleeWeaponCount =    [0, 3, 2, 1, 2, 1];
      rangedWeaponCount =   [0, 2, 4, 11, 5, 6];
    }

    function mintWeapon(address account, uint256 weaponId, uint256 amount) public isWhitelisted returns (uint256){
      _mint(account, weaponId, amount, "");
      return weaponId;
    }

    function MintTier1KeyMeleeWeapon(address account, uint256 amount, uint256 ranNum) external isWhitelisted returns (uint256){
      uint256[] memory ranNums = expand(ranNum, 2);
      uint8 weaponTier = rarityGen(ranNums[0] % 100, 0);
      uint256 weaponType = ranNums[1] % meleeWeaponCount[weaponTier];
      uint256 weaponId = 1*10000 + weaponTier*1000 + weaponType; 
      _mint(account, weaponId, amount, "");
      return weaponId;
    }

    function MintTier1KeyRangedWeapon(address account, uint256 amount, uint256 ranNum) external isWhitelisted returns (uint256){
      uint256[] memory ranNums = expand(ranNum, 2);
      uint8 weaponTier = rarityGen(ranNums[0] % 100, 0);
      uint256 weaponType = ranNums[1] % rangedWeaponCount[weaponTier];
      uint256 weaponId = 1*20000 + weaponTier*1000 + weaponType;
      _mint(account, weaponId, amount, "");
      return weaponId;
    }

    function MintTier2KeyRangedWeapon(address account, uint256 amount, uint256 ranNum) external isWhitelisted returns (uint256){
      uint256[] memory ranNums = expand(ranNum, 2);
      uint8 weaponTier = rarityGen(ranNums[0] % 100, 1);
      uint256 weaponType = ranNums[1] % rangedWeaponCount[weaponTier];
      uint256 weaponId = 1*20000 + weaponTier*1000 + weaponType;
      _mint(account, weaponId, amount, "");
      return weaponId;
    }

    function MintTier3KeyMeleeWeapon(address account, uint256 amount, uint256 ranNum) external isWhitelisted returns (uint256){
      uint256[] memory ranNums = expand(ranNum, 2);
      uint8 weaponTier = rarityGen(ranNums[0] % 100, 1);
      uint256 weaponType = ranNums[1] % meleeWeaponCount[weaponTier];
      uint256 weaponId = 1*10000 + weaponTier*1000 + weaponType;
      _mint(account, weaponId, amount, "");
      return weaponId;
    }

    function expand(uint256 randomValue, uint256 n) public pure returns (uint256[] memory expandedValues) {
      expandedValues = new uint256[](n);
      for (uint256 i = 0; i < n; i++) {
          expandedValues[i] = uint256(keccak256(abi.encode(randomValue, i)));
      }
      return expandedValues;
    }

    /**
     * @dev Converts a digit from 0 - 10000 into its corresponding rarity based on the given rarity tier.
     * @param _randinput The input from 0 - 10000 to use for rarity gen.
     */
    function rarityGen(uint256 _randinput, uint256 number) internal view returns (uint8)
    {
        uint16 currentLowerBound = 0;
        for (uint8 i = 0; i < PROBs[number].length; i++) {
          uint16 thisPercentage = PROBs[number][i];
          if(thisPercentage == 0){
            continue;
          }
          if (
              _randinput >= currentLowerBound &&
              _randinput < currentLowerBound + thisPercentage
          ) return i;
          currentLowerBound = currentLowerBound + thisPercentage;
        }
        return 1;
    }

    function setProbability(uint256 index, uint16[] calldata array) public onlyOwner{
      PROBs[index] = array;
    }

    function setMeleeCount(uint16[] calldata array) public onlyOwner{
      meleeWeaponCount = array;
    }

    function setRangedCount(uint16[] calldata array) public onlyOwner{
      rangedWeaponCount = array;
    }

    function setOpenSea(address addr) public onlyOwner {
      OPEN_SEA = addr;
    }

    function setURI(string memory newURI) public onlyOwner {
      _setURI(newURI);
    }

    function name() external pure returns (string memory) {
        return "GFCGenesisWeapon";
    }

    function symbol() external pure returns (string memory) {
        return "GFCGW";
    }

    function uri(uint256 tokenId) public view override returns (string memory) {
      string memory baseURI = ERC1155.uri(tokenId);
      return string(abi.encodePacked(baseURI, Strings.toString(tokenId)));
    }

    /**
     * Override isApprovedForAll to auto-approve OS's proxy contract
     */
    function isApprovedForAll(
        address _owner,
        address _operator
    ) public override view returns (bool isOperator) {
        // if OpenSea's ERC1155 Proxy Address is detected, auto-return true
       if (_operator == OPEN_SEA) {
            return true;
        }
        // otherwise, use the default ERC1155.isApprovedForAll()
        return ERC1155.isApprovedForAll(_owner, _operator);
    }

    /*
    * Override burn and burnBatch function to allow for whitelisted addresses to call on these two functions
    */
    function burn(address account, uint256 id, uint256 value) public override isWhitelisted {
      _burn(account, id, value);
    }

    function burnBatch(address account, uint256[] memory ids, uint256[] memory values) public override isWhitelisted {
      _burnBatch(account, ids, values);
    }
}
// File: contracts/GFCGenesisKey_Polygon.sol


pragma solidity ^0.8.4;






contract GFCGenesisKeyPoly is ERC1155Burnable, Ownable, Whitelist, VRFConsumerBase{
    using Strings for uint256;
    
    uint256 private constant ROLL_IN_PROGRESS = 42;

    //Number of KEYS
    uint256 public TOTAL_KEYS;

    //constant for VRF function
    bytes32 internal keyHash;
    uint256 internal fee;

    //probability arrays
    uint16[] PROBs;

    //number of addresses in the airdrop address array
    uint256 public SEED_NOUNCE;
    
    //OpenSea's Proxy contract for ERC1155 on Polygon
    address public OPEN_SEA = 0x207Fa8Df3a17D96Ca7EA4f2893fcdCb78a304101;
    
    mapping(bytes32 => address) private s_rollers;
    mapping(address => uint256) private s_results;

    event DiceRolled(bytes32 indexed requestId, address indexed roller);
    event DiceLanded(bytes32 indexed requestId, uint256 indexed result);

    constructor(string memory path) ERC1155(path) 
        VRFConsumerBase(
                0x8C7382F9D8f56b33781fE506E897a4F1e2d17255, 
                0x326C977E6efc84E512bB9C30f76E30c160eD06FB
        ) 
    {
        keyHash = 0x6e75b569a01ef56d18cab6a8e71e6600d6ce853834d4a5748b720d06f878b3a4;
        fee = 1 * 10 ** 14; //0.0001 Link as fee on Polygon
        
        //Initialise the probabilities
        //Probability for getting different tier keys
        //tokenId 1:tier 1, 2:tier 2, 3:tier 3
        PROBs = [0, 2000, 4000, 4000];
    }

    function getRanNum4Airdrop() public onlyOwner {
        require(LINK.balanceOf(address(this)) >= fee, "Not enough LINK to pay fee");
        require(s_results[msg.sender] == 0, "Already rolled");
        bytes32 requestId = requestRandomness(keyHash, fee);
        s_rollers[requestId] = msg.sender;
        s_results[msg.sender] = ROLL_IN_PROGRESS;
        emit DiceRolled(requestId, msg.sender);
    }

    /** 
     * Requests randomness 
     */
    function airdrop1155(address[] calldata addrs, uint256[] calldata amount) public onlyOwner {
        uint256 randNum = getResult(msg.sender);
        for(uint256 i; i < addrs.length; i++){
            uint256[] memory randomNums = expand(randNum, amount[i], TOTAL_KEYS);
            TOTAL_KEYS += amount[i];
            for(uint256 j = 0; j < randomNums.length; j++) {
                _mint(addrs[i], rarityGen(randomNums[j]), 1, "");
            }
        }
    }

    /**
     * Callback function used by VRF Coordinator
     */
    function fulfillRandomness(bytes32 requestId, uint256 randomness) internal override {
        s_results[s_rollers[requestId]] = randomness;
        emit DiceLanded(requestId, randomness);
    }

    /**
     * @dev Converts a digit from 0 - 10000 into its corresponding rarity based on the given rarity tier.
     * @param _randinput The input from 0 - 10000 to use for rarity gen.
     */
    function rarityGen(uint256 _randinput) internal view returns (uint8)
    {
        uint16 currentLowerBound = 0;
        for (uint8 i = 1; i < PROBs.length; i++) {
            uint16 thisPercentage = PROBs[i];
            if (
                _randinput >= currentLowerBound &&
                _randinput < currentLowerBound + thisPercentage
            ) return i;
            currentLowerBound = currentLowerBound + thisPercentage;
        }
        return 3;
    }

    function expand(uint256 randomValue, uint256 n, uint256 seed) public pure returns (uint256[] memory expandedValues) {
        expandedValues = new uint256[](n);
        for (uint256 i = 0; i < n; i++) {
            expandedValues[i] = uint256(keccak256(abi.encode(randomValue, seed+i))) % 10000;
        }
        return expandedValues;
    }

    /*
     * Only the owner can do these things
     */
    function setURI(string memory newURI) public onlyOwner {
      _setURI(newURI);
    }
    
    function setOpenSea(address addr) public onlyOwner {
      OPEN_SEA = addr;
    }
    
    /*
     * Override burn and burnBatch function to allow for whitelisted addresses to call on these two functions
     */
    function burn(address account, uint256 id, uint256 value) public override isWhitelisted {
        _burn(account, id, value);
    }

    function burnBatch(address account, uint256[] memory ids, uint256[] memory values) public override isWhitelisted {
        _burnBatch(account, ids, values);
    }

    //VIEW FUNCTIONS
    function uri(uint256 tokenId) public view override returns (string memory) {
        string memory baseURI = ERC1155.uri(tokenId);
        return string(abi.encodePacked(baseURI, Strings.toString(tokenId)));
    }

    function tokenURI(uint256 tokenId) public view returns (string memory)
    {
        return uri(tokenId);
    }

    function name() external pure returns (string memory) {
        return "GFCGenesisKey";
    }

    function symbol() external pure returns (string memory) {
        return "GFCGK";
    }
    
    /**
     * @notice Get the random number if VRF callback on the fulfillRandomness function
     * @param addr address
     * @return the random number generated by chainlink VRF
     */
    function getResult(address addr) public view returns (uint256) {
        require(s_results[addr] != 0, "Dice not rolled");
        require(s_results[addr] != ROLL_IN_PROGRESS, "Roll in progress");
        return s_results[addr];
    }
    
    /**
     * Override isApprovedForAll to auto-approve OS's proxy contract
     */
    function isApprovedForAll(
        address _owner,
        address _operator
    ) public override view returns (bool isOperator) {
        // if OpenSea's ERC1155 Proxy Address is detected, auto-return true
       if (_operator == OPEN_SEA) {
            return true;
        }
        // otherwise, use the default ERC1155.isApprovedForAll()
        return ERC1155.isApprovedForAll(_owner, _operator);
    }
}
// File: contracts/LootBox.sol


pragma solidity ^0.8.4;










contract GFCGenesisLootBox is Ownable, Whitelist, VRFConsumerBase{
    using Strings for uint256;

    GFCGenesisKeyPoly public genesisKey;
    GFCGenesisWeapon public genesisWeapon;
    BYOPillGFC public byoPill;
    GFCMysteryItem public mysteryItem;
    
    uint256 private constant ROLL_IN_PROGRESS = 42;

    //Number of burnt keys
    uint256 public BURNT_KEYS;

    //constant for VRF function
    bytes32 internal keyHash;
    uint256 internal fee;

    //In case we need to pause opening
    bool paused;
    
    mapping(bytes32 => address) private s_rollers;
    mapping(address => uint256) private s_results;

    event DiceRolled(bytes32 indexed requestId, address indexed roller);
    event DiceLanded(bytes32 indexed requestId, uint256 indexed result);
    event WeaponMinted(uint256 indexed transactionId, uint256 weaponId, uint256 amount);
    event BYOPillMinted(uint256 indexed transactionId, uint256 pillId, uint256 amount);
    event MysterItemMinted(uint256 indexed transactionId, uint256 ItemId, uint256 amount);
    event LootBoxesOpened(uint256 indexed transactionId);

    constructor()
        VRFConsumerBase(
                0x3d2341ADb2D31f1c5530cDC622016af293177AE0, 
                0xb0897686c545045aFc77CF20eC7A532E3120E0F1
        ) 
    {
        keyHash = 0xf86195cf7690c55907b2b611ebb7343a6f649bff128701cc542f0569e2c549da;
        fee = 1 * 10 ** 14; //0.0001 Link as fee on Polygon

        //fill in the addresses for the corresponding contract addresses before deployment
        genesisKey = GFCGenesisKeyPoly(address(0x3702f4C46785BbD947d59A2516ac1ea30F2BAbF2));
        genesisWeapon = GFCGenesisWeapon(address(0xCbc964dd716F07b4965B4526E30541a66F414ccF));
        byoPill = BYOPillGFC(address(0x4d0FE2499BA787BFeE5db635d9f00d35AAED26D8));
        mysteryItem = GFCMysteryItem(address(0xFd24D200C6715f3C0a2DdF8a8b128952eFed7724));
    }

    /** 
     * Requests randomness 
     */
    function getRandNum4LootBox() public {
        require(LINK.balanceOf(address(this)) >= fee, "Not enough LINK to pay fee");
        require(s_results[msg.sender] == 0, "Already rolled");
        bytes32 requestId = requestRandomness(keyHash, fee);
        s_rollers[requestId] = msg.sender;
        s_results[msg.sender] = ROLL_IN_PROGRESS;
        emit DiceRolled(requestId, msg.sender);
    }

    function openLootBox(uint256 transactionId, uint256 tier, uint256 amount) public{
        require(!paused, "The contract have been paused");
        require(tier > 0 && tier < 4, "invalid tier input (must be 1,2 or 3)");
        require(genesisKey.balanceOf(msg.sender, tier) >= amount, "You don't have enough keys to open this many loot boxes");
        genesisKey.burn(msg.sender, tier, amount);
        uint256 randNum = getResult(msg.sender);
        uint256[] memory randomNums = expand(randNum, amount, BURNT_KEYS);
        BURNT_KEYS += amount;
        if(tier == 1) {
            openTier1LootBox(transactionId, amount, randomNums);
        }else if(tier == 2) {
            openTier2LootBox(transactionId, amount, randomNums);
        }else if(tier == 3) {
            openTier3LootBox(transactionId, amount, randomNums);
        }
        //Reset the random number for next time
        s_results[msg.sender] = 0;
    }

    function openTier1LootBox(uint256 transactionId, uint256 amount, uint256[] memory randomNums) internal{
        for(uint256 j = 0; j < amount; j++) {
            uint256 weaponId = genesisWeapon.MintTier1KeyMeleeWeapon(msg.sender, 1, randomNums[j]);
            emit WeaponMinted(transactionId, weaponId, 1);
            weaponId = genesisWeapon.MintTier1KeyRangedWeapon(msg.sender, 1, randomNums[j]);
            emit WeaponMinted(transactionId, weaponId, 1);
            mintByoPill(transactionId, randomNums[j]);
            if(randomNums[j]%10000 <= 4000) {
                uint256 itemId = mysteryItem.mintMysteryItem(msg.sender, 1, randomNums[j]);
                emit MysterItemMinted(transactionId, itemId, 1);
            }
        }
        emit LootBoxesOpened(transactionId);
    }

    function openTier2LootBox(uint256 transactionId, uint256 amount, uint256[] memory randomNums) internal{
        for(uint256 j = 0; j < amount; j++) {
            uint256 weaponId = genesisWeapon.MintTier2KeyRangedWeapon(msg.sender, 1, randomNums[j]);
            emit WeaponMinted(transactionId, weaponId, 1);
            mintByoPill(transactionId, randomNums[j]);
        }
        emit LootBoxesOpened(transactionId);
    }

    function openTier3LootBox(uint256 transactionId, uint256 amount, uint256[] memory randomNums) internal{
        for(uint256 j = 0; j < amount; j++) {
            uint256 weaponId = genesisWeapon.MintTier3KeyMeleeWeapon(msg.sender, 1, randomNums[j]);
            emit WeaponMinted(transactionId, weaponId, 1);
            mintByoPill(transactionId, randomNums[j]);
        }
        emit LootBoxesOpened(transactionId);
    }

    function mintByoPill(uint256 transactionId, uint256 randNum) internal{
        uint256 pillId = byoPill.randomMint(msg.sender, 1, randNum);
        emit BYOPillMinted(transactionId, pillId, 1);
    }

    function setGenesisKey(address _genesisKey) external onlyOwner {
		genesisKey = GFCGenesisKeyPoly(_genesisKey);
	}

    function setGenesisWeapon(address _weapon) external onlyOwner {
		genesisWeapon = GFCGenesisWeapon(_weapon);
	}

    function setBYOPill(address _pill) external onlyOwner {
		byoPill = BYOPillGFC(_pill);
	}

    function setMysteryItem(address _item) external onlyOwner {
		mysteryItem = GFCMysteryItem(_item);
	}

    function togglePaused() public onlyOwner {
        paused = !paused;
    }

    function receiveMatic() public payable {}

    function airdropMatic(address[] calldata addrs, uint256 amount) public onlyOwner {
        for(uint256 i; i < addrs.length; i++){
            payable(addrs[i]).transfer(amount);
        }
    }

    function withdrawLink() public onlyOwner {
        require(LINK.transfer(msg.sender, LINK.balanceOf(address(this))), "Unable to withdraw LINK");
    }

    function withdrawMatic() public onlyOwner {
        require(payable(msg.sender).send(address(this).balance), "Unable to withdraw MATIC");
    }

    /**
     * Callback function used by VRF Coordinator
     */
    function fulfillRandomness(bytes32 requestId, uint256 randomness) internal override {
        s_results[s_rollers[requestId]] = randomness;
        emit DiceLanded(requestId, randomness);
    }

    function expand(uint256 randomValue, uint256 n, uint256 seed) public pure returns (uint256[] memory expandedValues) {
        expandedValues = new uint256[](n);
        for (uint256 i = 0; i < n; i++) {
            expandedValues[i] = uint256(keccak256(abi.encode(randomValue, seed+i))) % 10000;
        }
        return expandedValues;
    }
    
    /**
     * @notice Get the random number if VRF callback on the fulfillRandomness function
     * @return the random number generated by chainlink VRF
     */
    function getResult(address addr) public view returns (uint256) {
        require(s_results[addr] != 0, "Dice not rolled");
        require(s_results[addr] != ROLL_IN_PROGRESS, "Roll in progress");
        return s_results[addr];
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"transactionId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"pillId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BYOPillMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"requestId","type":"bytes32"},{"indexed":true,"internalType":"uint256","name":"result","type":"uint256"}],"name":"DiceLanded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"requestId","type":"bytes32"},{"indexed":true,"internalType":"address","name":"roller","type":"address"}],"name":"DiceRolled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"transactionId","type":"uint256"}],"name":"LootBoxesOpened","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"transactionId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ItemId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MysterItemMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"transactionId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"weaponId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WeaponMinted","type":"event"},{"inputs":[],"name":"BURNT_KEYS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"addWhitelistedAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addrs","type":"address[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"airdropMatic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"byoPill","outputs":[{"internalType":"contract BYOPillGFC","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"randomValue","type":"uint256"},{"internalType":"uint256","name":"n","type":"uint256"},{"internalType":"uint256","name":"seed","type":"uint256"}],"name":"expand","outputs":[{"internalType":"uint256[]","name":"expandedValues","type":"uint256[]"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"genesisKey","outputs":[{"internalType":"contract GFCGenesisKeyPoly","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"genesisWeapon","outputs":[{"internalType":"contract GFCGenesisWeapon","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRandNum4LootBox","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getResult","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mysteryItem","outputs":[{"internalType":"contract GFCMysteryItem","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"transactionId","type":"uint256"},{"internalType":"uint256","name":"tier","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"openLootBox","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"receiveMatic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"removeWhitelistedAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pill","type":"address"}],"name":"setBYOPill","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_genesisKey","type":"address"}],"name":"setGenesisKey","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_weapon","type":"address"}],"name":"setGenesisWeapon","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_item","type":"address"}],"name":"setMysteryItem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawLink","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawMatic","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040523480156200001157600080fd5b50733d2341adb2d31f1c5530cdc622016af293177ae073b0897686c545045afc77cf20ec7a532e3120e0f16200005c620000506200025d60201b60201c565b6200026560201b60201c565b8173ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505050507ff86195cf7690c55907b2b611ebb7343a6f649bff128701cc542f0569e2c549da60001b600881905550655af3107a4000600981905550733702f4c46785bbd947d59a2516ac1ea30f2babf2600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073cbc964dd716f07b4965b4526e30541a66f414ccf600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550734d0fe2499ba787bfee5db635d9f00d35aaed26d8600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073fd24d200c6715f3c0a2ddf8a8b128952efed7724600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000329565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60805160601c60a05160601c61345a620003716000396000818161113101526122e5015260008181610f9b01528181610fd8015281816114f901526122a9015261345a6000f3fe60806040526004361061014b5760003560e01c80638dc654a2116100b6578063d383662f1161006f578063d383662f146103fb578063ddaa13de14610424578063e942f9bd1461044f578063ef11208714610466578063f2fde38b14610491578063fef67700146104ba5761014b565b80638dc654a21461031357806394985ddd1461032a578063a47e057514610353578063a70dff621461037e578063b521930a146103a7578063c0292d41146103d25761014b565b806336566f061161010857806336566f061461023d578063446a37e014610254578063530cd5ab14610291578063715018a6146102ba578063810074c6146102d15780638da5cb5b146102e85761014b565b8063034e68ab14610150578063069c362e1461017b578063084e02a4146101855780631c2d6933146101ae57806329975b43146101eb5780632a70a9c414610214575b600080fd5b34801561015c57600080fd5b506101656104e3565b6040516101729190612c4c565b60405180910390f35b610183610509565b005b34801561019157600080fd5b506101ac60048036038101906101a7919061261f565b61050b565b005b3480156101ba57600080fd5b506101d560048036038101906101d0919061272e565b6105cb565b6040516101e29190612ba1565b60405180910390f35b3480156101f757600080fd5b50610212600480360381019061020d919061261f565b6106ed565b005b34801561022057600080fd5b5061023b6004803603810190610236919061272e565b6107c3565b005b34801561024957600080fd5b50610252610aad565b005b34801561026057600080fd5b5061027b6004803603810190610276919061261f565b610b55565b6040516102889190612e1d565b60405180910390f35b34801561029d57600080fd5b506102b860048036038101906102b3919061261f565b610ca3565b005b3480156102c657600080fd5b506102cf610d7a565b005b3480156102dd57600080fd5b506102e6610e02565b005b3480156102f457600080fd5b506102fd610ef4565b60405161030a9190612ab1565b60405180910390f35b34801561031f57600080fd5b50610328610f1d565b005b34801561033657600080fd5b50610351600480360381019061034c91906126c9565b61112f565b005b34801561035f57600080fd5b506103686111cb565b6040516103759190612c82565b60405180910390f35b34801561038a57600080fd5b506103a560048036038101906103a09190612648565b6111f1565b005b3480156103b357600080fd5b506103bc611328565b6040516103c99190612c31565b60405180910390f35b3480156103de57600080fd5b506103f960048036038101906103f4919061261f565b61134e565b005b34801561040757600080fd5b50610422600480360381019061041d919061261f565b61140e565b005b34801561043057600080fd5b506104396114ce565b6040516104469190612c67565b60405180910390f35b34801561045b57600080fd5b506104646114f4565b005b34801561047257600080fd5b5061047b611753565b6040516104889190612e1d565b60405180910390f35b34801561049d57600080fd5b506104b860048036038101906104b3919061261f565b611759565b005b3480156104c657600080fd5b506104e160048036038101906104dc919061261f565b611851565b005b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b565b610513611911565b73ffffffffffffffffffffffffffffffffffffffff16610531610ef4565b73ffffffffffffffffffffffffffffffffffffffff1614610587576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057e90612d7d565b60405180910390fd5b80600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60608267ffffffffffffffff81111561060d577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561063b5781602001602082028036833780820191505090505b50905060005b838110156106e5576127108582856106599190612ef0565b60405160200161066a929190612e61565b6040516020818303038152906040528051906020012060001c61068d91906130ca565b8282815181106106c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080806106dd9061306d565b915050610641565b509392505050565b6106f5611911565b73ffffffffffffffffffffffffffffffffffffffff16610713610ef4565b73ffffffffffffffffffffffffffffffffffffffff1614610769576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161076090612d7d565b60405180910390fd5b60018060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600a60009054906101000a900460ff1615610813576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080a90612d5d565b60405180910390fd5b6000821180156108235750600482105b610862576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161085990612cbd565b60405180910390fd5b80600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e33856040518363ffffffff1660e01b81526004016108bf929190612b03565b60206040518083038186803b1580156108d757600080fd5b505afa1580156108eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090f9190612705565b1015610950576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094790612c9d565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f5298aca3384846040518463ffffffff1660e01b81526004016109af93929190612b6a565b600060405180830381600087803b1580156109c957600080fd5b505af11580156109dd573d6000803e3d6000fd5b5050505060006109ec33610b55565b905060006109fd82846007546105cb565b90508260076000828254610a119190612ef0565b925050819055506001841415610a3157610a2c858483611919565b610a61565b6002841415610a4a57610a45858483611d9e565b610a60565b6003841415610a5f57610a5e858483611f6b565b5b5b5b6000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050505050565b610ab5611911565b73ffffffffffffffffffffffffffffffffffffffff16610ad3610ef4565b73ffffffffffffffffffffffffffffffffffffffff1614610b29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2090612d7d565b60405180910390fd5b600a60009054906101000a900460ff1615600a60006101000a81548160ff021916908315150217905550565b600080600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541415610bd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd090612d3d565b60405180910390fd5b602a600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541415610c5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5390612d1d565b60405180910390fd5b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610cab611911565b73ffffffffffffffffffffffffffffffffffffffff16610cc9610ef4565b73ffffffffffffffffffffffffffffffffffffffff1614610d1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1690612d7d565b60405180910390fd5b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b610d82611911565b73ffffffffffffffffffffffffffffffffffffffff16610da0610ef4565b73ffffffffffffffffffffffffffffffffffffffff1614610df6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ded90612d7d565b60405180910390fd5b610e006000612138565b565b610e0a611911565b73ffffffffffffffffffffffffffffffffffffffff16610e28610ef4565b73ffffffffffffffffffffffffffffffffffffffff1614610e7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7590612d7d565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050610ef2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee990612d9d565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610f25611911565b73ffffffffffffffffffffffffffffffffffffffff16610f43610ef4565b73ffffffffffffffffffffffffffffffffffffffff1614610f99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9090612d7d565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb337f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161102f9190612ab1565b60206040518083038186803b15801561104757600080fd5b505afa15801561105b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061107f9190612705565b6040518363ffffffff1660e01b815260040161109c929190612b03565b602060405180830381600087803b1580156110b657600080fd5b505af11580156110ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ee91906126a0565b61112d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112490612cdd565b60405180910390fd5b565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146111bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b490612dbd565b60405180910390fd5b6111c782826121fc565b5050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6111f9611911565b73ffffffffffffffffffffffffffffffffffffffff16611217610ef4565b73ffffffffffffffffffffffffffffffffffffffff161461126d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126490612d7d565b60405180910390fd5b60005b83839050811015611322578383828181106112b4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020160208101906112c9919061261f565b73ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f1935050505015801561130e573d6000803e3d6000fd5b50808061131a9061306d565b915050611270565b50505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611356611911565b73ffffffffffffffffffffffffffffffffffffffff16611374610ef4565b73ffffffffffffffffffffffffffffffffffffffff16146113ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c190612d7d565b60405180910390fd5b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611416611911565b73ffffffffffffffffffffffffffffffffffffffff16611434610ef4565b73ffffffffffffffffffffffffffffffffffffffff161461148a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148190612d7d565b60405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6009547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016115509190612ab1565b60206040518083038186803b15801561156857600080fd5b505afa15801561157c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115a09190612705565b10156115e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d890612ddd565b60405180910390fd5b6000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414611663576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165a90612dfd565b60405180910390fd5b60006116736008546009546122a5565b905033600b600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602a600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff16817f923de4fc4aece24a78a9e4ca3009c571a742f81ac2c004a229224b0fd1883bdd60405160405180910390a350565b60075481565b611761611911565b73ffffffffffffffffffffffffffffffffffffffff1661177f610ef4565b73ffffffffffffffffffffffffffffffffffffffff16146117d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117cc90612d7d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611845576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183c90612cfd565b60405180910390fd5b61184e81612138565b50565b611859611911565b73ffffffffffffffffffffffffffffffffffffffff16611877610ef4565b73ffffffffffffffffffffffffffffffffffffffff16146118cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c490612d7d565b60405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600033905090565b60005b82811015611d6b576000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633938537f3360018686815181106119a0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b81526004016119c693929190612acc565b602060405180830381600087803b1580156119e057600080fd5b505af11580156119f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a189190612705565b9050847fd9b150285fb6dc8f0f6ea63c3dc3438a63c1f187191d8eec88dc98dd60f7ffc7826001604051611a4d929190612e38565b60405180910390a2600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166382d0e6c1336001868681518110611acf577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b8152600401611af593929190612acc565b602060405180830381600087803b158015611b0f57600080fd5b505af1158015611b23573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b479190612705565b9050847fd9b150285fb6dc8f0f6ea63c3dc3438a63c1f187191d8eec88dc98dd60f7ffc7826001604051611b7c929190612e38565b60405180910390a2611bce85848481518110611bc1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151612407565b610fa0612710848481518110611c0d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151611c1f91906130ca565b11611d57576000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639721747e336001878781518110611ca0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b8152600401611cc693929190612acc565b602060405180830381600087803b158015611ce057600080fd5b505af1158015611cf4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d189190612705565b9050857f95bfa5fd4b69c5938d6d7ef7a8504cb24d135559e901eb4a392e9fcc68089fdf826001604051611d4d929190612e38565b60405180910390a2505b508080611d639061306d565b91505061191c565b50827f9592d59d11cf8d2b8334460aa47eed02a2790dc972217e66a56a8615e9ff354760405160405180910390a2505050565b60005b82811015611f38576000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637f2f40ca336001868681518110611e25577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b8152600401611e4b93929190612acc565b602060405180830381600087803b158015611e6557600080fd5b505af1158015611e79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e9d9190612705565b9050847fd9b150285fb6dc8f0f6ea63c3dc3438a63c1f187191d8eec88dc98dd60f7ffc7826001604051611ed2929190612e38565b60405180910390a2611f2485848481518110611f17577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151612407565b508080611f309061306d565b915050611da1565b50827f9592d59d11cf8d2b8334460aa47eed02a2790dc972217e66a56a8615e9ff354760405160405180910390a2505050565b60005b82811015612105576000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e2f198bb336001868681518110611ff2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b815260040161201893929190612acc565b602060405180830381600087803b15801561203257600080fd5b505af1158015612046573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061206a9190612705565b9050847fd9b150285fb6dc8f0f6ea63c3dc3438a63c1f187191d8eec88dc98dd60f7ffc782600160405161209f929190612e38565b60405180910390a26120f1858484815181106120e4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151612407565b5080806120fd9061306d565b915050611f6e565b50827f9592d59d11cf8d2b8334460aa47eed02a2790dc972217e66a56a8615e9ff354760405160405180910390a2505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80600c6000600b600086815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080827f909dd726737b7ffa4ae9d137e9edebe8a74a9c2910a4b60e8112f93ab217083760405160405180910390a35050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16634000aea07f000000000000000000000000000000000000000000000000000000000000000084866000604051602001612319929190612bc3565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161234693929190612b2c565b602060405180830381600087803b15801561236057600080fd5b505af1158015612374573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061239891906126a0565b5060006123bb8460003060026000898152602001908152602001600020546124fd565b9050600160026000868152602001908152602001600020546123dd9190612ef0565b60026000868152602001908152602001600020819055506123fe8482612539565b91505092915050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634e1bf3bb336001856040518463ffffffff1660e01b815260040161246993929190612acc565b602060405180830381600087803b15801561248357600080fd5b505af1158015612497573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124bb9190612705565b9050827f4e148f32a9d84b2127827d63770b5f94493ed52fcc1fe77757c6d9289446017e8260016040516124f0929190612e38565b60405180910390a2505050565b6000848484846040516020016125169493929190612bec565b6040516020818303038152906040528051906020012060001c9050949350505050565b6000828260405160200161254e929190612a85565b60405160208183030381529060405280519060200120905092915050565b60008135905061257b816133c8565b92915050565b60008083601f84011261259357600080fd5b8235905067ffffffffffffffff8111156125ac57600080fd5b6020830191508360208202830111156125c457600080fd5b9250929050565b6000815190506125da816133df565b92915050565b6000813590506125ef816133f6565b92915050565b6000813590506126048161340d565b92915050565b6000815190506126198161340d565b92915050565b60006020828403121561263157600080fd5b600061263f8482850161256c565b91505092915050565b60008060006040848603121561265d57600080fd5b600084013567ffffffffffffffff81111561267757600080fd5b61268386828701612581565b93509350506020612696868287016125f5565b9150509250925092565b6000602082840312156126b257600080fd5b60006126c0848285016125cb565b91505092915050565b600080604083850312156126dc57600080fd5b60006126ea858286016125e0565b92505060206126fb858286016125f5565b9150509250929050565b60006020828403121561271757600080fd5b60006127258482850161260a565b91505092915050565b60008060006060848603121561274357600080fd5b6000612751868287016125f5565b9350506020612762868287016125f5565b9250506040612773868287016125f5565b9150509250925092565b60006127898383612a50565b60208301905092915050565b61279e81612f46565b82525050565b60006127af82612e9a565b6127b98185612ebd565b93506127c483612e8a565b8060005b838110156127f55781516127dc888261277d565b97506127e783612eb0565b9250506001810190506127c8565b5085935050505092915050565b61280b81612f64565b82525050565b61282261281d82612f64565b6130b6565b82525050565b600061283382612ea5565b61283d8185612ece565b935061284d81856020860161303a565b61285681613159565b840191505092915050565b61286a81612f98565b82525050565b61287981612fbc565b82525050565b61288881612fe0565b82525050565b61289781613004565b82525050565b6128a681613028565b82525050565b60006128b9603783612edf565b91506128c48261316a565b604082019050919050565b60006128dc602583612edf565b91506128e7826131b9565b604082019050919050565b60006128ff601783612edf565b915061290a82613208565b602082019050919050565b6000612922602683612edf565b915061292d82613231565b604082019050919050565b6000612945601083612edf565b915061295082613280565b602082019050919050565b6000612968600f83612edf565b9150612973826132a9565b602082019050919050565b600061298b601d83612edf565b9150612996826132d2565b602082019050919050565b60006129ae602083612edf565b91506129b9826132fb565b602082019050919050565b60006129d1601883612edf565b91506129dc82613324565b602082019050919050565b60006129f4601f83612edf565b91506129ff8261334d565b602082019050919050565b6000612a17601a83612edf565b9150612a2282613376565b602082019050919050565b6000612a3a600e83612edf565b9150612a458261339f565b602082019050919050565b612a5981612f8e565b82525050565b612a6881612f8e565b82525050565b612a7f612a7a82612f8e565b6130c0565b82525050565b6000612a918285612811565b602082019150612aa18284612a6e565b6020820191508190509392505050565b6000602082019050612ac66000830184612795565b92915050565b6000606082019050612ae16000830186612795565b612aee602083018561289d565b612afb6040830184612a5f565b949350505050565b6000604082019050612b186000830185612795565b612b256020830184612a5f565b9392505050565b6000606082019050612b416000830186612795565b612b4e6020830185612a5f565b8181036040830152612b608184612828565b9050949350505050565b6000606082019050612b7f6000830186612795565b612b8c6020830185612a5f565b612b996040830184612a5f565b949350505050565b60006020820190508181036000830152612bbb81846127a4565b905092915050565b6000604082019050612bd86000830185612802565b612be56020830184612a5f565b9392505050565b6000608082019050612c016000830187612802565b612c0e6020830186612a5f565b612c1b6040830185612795565b612c286060830184612a5f565b95945050505050565b6000602082019050612c466000830184612861565b92915050565b6000602082019050612c616000830184612870565b92915050565b6000602082019050612c7c600083018461287f565b92915050565b6000602082019050612c97600083018461288e565b92915050565b60006020820190508181036000830152612cb6816128ac565b9050919050565b60006020820190508181036000830152612cd6816128cf565b9050919050565b60006020820190508181036000830152612cf6816128f2565b9050919050565b60006020820190508181036000830152612d1681612915565b9050919050565b60006020820190508181036000830152612d3681612938565b9050919050565b60006020820190508181036000830152612d568161295b565b9050919050565b60006020820190508181036000830152612d768161297e565b9050919050565b60006020820190508181036000830152612d96816129a1565b9050919050565b60006020820190508181036000830152612db6816129c4565b9050919050565b60006020820190508181036000830152612dd6816129e7565b9050919050565b60006020820190508181036000830152612df681612a0a565b9050919050565b60006020820190508181036000830152612e1681612a2d565b9050919050565b6000602082019050612e326000830184612a5f565b92915050565b6000604082019050612e4d6000830185612a5f565b612e5a602083018461289d565b9392505050565b6000604082019050612e766000830185612a5f565b612e836020830184612a5f565b9392505050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b6000612efb82612f8e565b9150612f0683612f8e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612f3b57612f3a6130fb565b5b828201905092915050565b6000612f5182612f6e565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000612fa382612faa565b9050919050565b6000612fb582612f6e565b9050919050565b6000612fc782612fce565b9050919050565b6000612fd982612f6e565b9050919050565b6000612feb82612ff2565b9050919050565b6000612ffd82612f6e565b9050919050565b600061300f82613016565b9050919050565b600061302182612f6e565b9050919050565b600061303382612f8e565b9050919050565b60005b8381101561305857808201518184015260208101905061303d565b83811115613067576000848401525b50505050565b600061307882612f8e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156130ab576130aa6130fb565b5b600182019050919050565b6000819050919050565b6000819050919050565b60006130d582612f8e565b91506130e083612f8e565b9250826130f0576130ef61312a565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000601f19601f8301169050919050565b7f596f7520646f6e2774206861766520656e6f756768206b65797320746f206f7060008201527f656e2074686973206d616e79206c6f6f7420626f786573000000000000000000602082015250565b7f696e76616c6964207469657220696e70757420286d75737420626520312c322060008201527f6f72203329000000000000000000000000000000000000000000000000000000602082015250565b7f556e61626c6520746f207769746864726177204c494e4b000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f526f6c6c20696e2070726f677265737300000000000000000000000000000000600082015250565b7f44696365206e6f7420726f6c6c65640000000000000000000000000000000000600082015250565b7f54686520636f6e74726163742068617665206265656e20706175736564000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f556e61626c6520746f207769746864726177204d415449430000000000000000600082015250565b7f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00600082015250565b7f4e6f7420656e6f756768204c494e4b20746f2070617920666565000000000000600082015250565b7f416c726561647920726f6c6c6564000000000000000000000000000000000000600082015250565b6133d181612f46565b81146133dc57600080fd5b50565b6133e881612f58565b81146133f357600080fd5b50565b6133ff81612f64565b811461340a57600080fd5b50565b61341681612f8e565b811461342157600080fd5b5056fea2646970667358221220bbf58d1f557ea47695e07fff7d00708682d671a373135416516f7d1558fcb17464736f6c63430008040033

Deployed Bytecode

0x60806040526004361061014b5760003560e01c80638dc654a2116100b6578063d383662f1161006f578063d383662f146103fb578063ddaa13de14610424578063e942f9bd1461044f578063ef11208714610466578063f2fde38b14610491578063fef67700146104ba5761014b565b80638dc654a21461031357806394985ddd1461032a578063a47e057514610353578063a70dff621461037e578063b521930a146103a7578063c0292d41146103d25761014b565b806336566f061161010857806336566f061461023d578063446a37e014610254578063530cd5ab14610291578063715018a6146102ba578063810074c6146102d15780638da5cb5b146102e85761014b565b8063034e68ab14610150578063069c362e1461017b578063084e02a4146101855780631c2d6933146101ae57806329975b43146101eb5780632a70a9c414610214575b600080fd5b34801561015c57600080fd5b506101656104e3565b6040516101729190612c4c565b60405180910390f35b610183610509565b005b34801561019157600080fd5b506101ac60048036038101906101a7919061261f565b61050b565b005b3480156101ba57600080fd5b506101d560048036038101906101d0919061272e565b6105cb565b6040516101e29190612ba1565b60405180910390f35b3480156101f757600080fd5b50610212600480360381019061020d919061261f565b6106ed565b005b34801561022057600080fd5b5061023b6004803603810190610236919061272e565b6107c3565b005b34801561024957600080fd5b50610252610aad565b005b34801561026057600080fd5b5061027b6004803603810190610276919061261f565b610b55565b6040516102889190612e1d565b60405180910390f35b34801561029d57600080fd5b506102b860048036038101906102b3919061261f565b610ca3565b005b3480156102c657600080fd5b506102cf610d7a565b005b3480156102dd57600080fd5b506102e6610e02565b005b3480156102f457600080fd5b506102fd610ef4565b60405161030a9190612ab1565b60405180910390f35b34801561031f57600080fd5b50610328610f1d565b005b34801561033657600080fd5b50610351600480360381019061034c91906126c9565b61112f565b005b34801561035f57600080fd5b506103686111cb565b6040516103759190612c82565b60405180910390f35b34801561038a57600080fd5b506103a560048036038101906103a09190612648565b6111f1565b005b3480156103b357600080fd5b506103bc611328565b6040516103c99190612c31565b60405180910390f35b3480156103de57600080fd5b506103f960048036038101906103f4919061261f565b61134e565b005b34801561040757600080fd5b50610422600480360381019061041d919061261f565b61140e565b005b34801561043057600080fd5b506104396114ce565b6040516104469190612c67565b60405180910390f35b34801561045b57600080fd5b506104646114f4565b005b34801561047257600080fd5b5061047b611753565b6040516104889190612e1d565b60405180910390f35b34801561049d57600080fd5b506104b860048036038101906104b3919061261f565b611759565b005b3480156104c657600080fd5b506104e160048036038101906104dc919061261f565b611851565b005b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b565b610513611911565b73ffffffffffffffffffffffffffffffffffffffff16610531610ef4565b73ffffffffffffffffffffffffffffffffffffffff1614610587576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057e90612d7d565b60405180910390fd5b80600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60608267ffffffffffffffff81111561060d577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561063b5781602001602082028036833780820191505090505b50905060005b838110156106e5576127108582856106599190612ef0565b60405160200161066a929190612e61565b6040516020818303038152906040528051906020012060001c61068d91906130ca565b8282815181106106c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080806106dd9061306d565b915050610641565b509392505050565b6106f5611911565b73ffffffffffffffffffffffffffffffffffffffff16610713610ef4565b73ffffffffffffffffffffffffffffffffffffffff1614610769576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161076090612d7d565b60405180910390fd5b60018060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600a60009054906101000a900460ff1615610813576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080a90612d5d565b60405180910390fd5b6000821180156108235750600482105b610862576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161085990612cbd565b60405180910390fd5b80600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e33856040518363ffffffff1660e01b81526004016108bf929190612b03565b60206040518083038186803b1580156108d757600080fd5b505afa1580156108eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090f9190612705565b1015610950576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094790612c9d565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f5298aca3384846040518463ffffffff1660e01b81526004016109af93929190612b6a565b600060405180830381600087803b1580156109c957600080fd5b505af11580156109dd573d6000803e3d6000fd5b5050505060006109ec33610b55565b905060006109fd82846007546105cb565b90508260076000828254610a119190612ef0565b925050819055506001841415610a3157610a2c858483611919565b610a61565b6002841415610a4a57610a45858483611d9e565b610a60565b6003841415610a5f57610a5e858483611f6b565b5b5b5b6000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050505050565b610ab5611911565b73ffffffffffffffffffffffffffffffffffffffff16610ad3610ef4565b73ffffffffffffffffffffffffffffffffffffffff1614610b29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2090612d7d565b60405180910390fd5b600a60009054906101000a900460ff1615600a60006101000a81548160ff021916908315150217905550565b600080600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541415610bd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd090612d3d565b60405180910390fd5b602a600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541415610c5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5390612d1d565b60405180910390fd5b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610cab611911565b73ffffffffffffffffffffffffffffffffffffffff16610cc9610ef4565b73ffffffffffffffffffffffffffffffffffffffff1614610d1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1690612d7d565b60405180910390fd5b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b610d82611911565b73ffffffffffffffffffffffffffffffffffffffff16610da0610ef4565b73ffffffffffffffffffffffffffffffffffffffff1614610df6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ded90612d7d565b60405180910390fd5b610e006000612138565b565b610e0a611911565b73ffffffffffffffffffffffffffffffffffffffff16610e28610ef4565b73ffffffffffffffffffffffffffffffffffffffff1614610e7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7590612d7d565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050610ef2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee990612d9d565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610f25611911565b73ffffffffffffffffffffffffffffffffffffffff16610f43610ef4565b73ffffffffffffffffffffffffffffffffffffffff1614610f99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9090612d7d565b60405180910390fd5b7f000000000000000000000000b0897686c545045afc77cf20ec7a532e3120e0f173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb337f000000000000000000000000b0897686c545045afc77cf20ec7a532e3120e0f173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161102f9190612ab1565b60206040518083038186803b15801561104757600080fd5b505afa15801561105b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061107f9190612705565b6040518363ffffffff1660e01b815260040161109c929190612b03565b602060405180830381600087803b1580156110b657600080fd5b505af11580156110ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ee91906126a0565b61112d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112490612cdd565b60405180910390fd5b565b7f0000000000000000000000003d2341adb2d31f1c5530cdc622016af293177ae073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146111bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b490612dbd565b60405180910390fd5b6111c782826121fc565b5050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6111f9611911565b73ffffffffffffffffffffffffffffffffffffffff16611217610ef4565b73ffffffffffffffffffffffffffffffffffffffff161461126d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126490612d7d565b60405180910390fd5b60005b83839050811015611322578383828181106112b4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020160208101906112c9919061261f565b73ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f1935050505015801561130e573d6000803e3d6000fd5b50808061131a9061306d565b915050611270565b50505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611356611911565b73ffffffffffffffffffffffffffffffffffffffff16611374610ef4565b73ffffffffffffffffffffffffffffffffffffffff16146113ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c190612d7d565b60405180910390fd5b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611416611911565b73ffffffffffffffffffffffffffffffffffffffff16611434610ef4565b73ffffffffffffffffffffffffffffffffffffffff161461148a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148190612d7d565b60405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6009547f000000000000000000000000b0897686c545045afc77cf20ec7a532e3120e0f173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016115509190612ab1565b60206040518083038186803b15801561156857600080fd5b505afa15801561157c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115a09190612705565b10156115e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d890612ddd565b60405180910390fd5b6000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414611663576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165a90612dfd565b60405180910390fd5b60006116736008546009546122a5565b905033600b600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602a600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff16817f923de4fc4aece24a78a9e4ca3009c571a742f81ac2c004a229224b0fd1883bdd60405160405180910390a350565b60075481565b611761611911565b73ffffffffffffffffffffffffffffffffffffffff1661177f610ef4565b73ffffffffffffffffffffffffffffffffffffffff16146117d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117cc90612d7d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611845576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183c90612cfd565b60405180910390fd5b61184e81612138565b50565b611859611911565b73ffffffffffffffffffffffffffffffffffffffff16611877610ef4565b73ffffffffffffffffffffffffffffffffffffffff16146118cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c490612d7d565b60405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600033905090565b60005b82811015611d6b576000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633938537f3360018686815181106119a0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b81526004016119c693929190612acc565b602060405180830381600087803b1580156119e057600080fd5b505af11580156119f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a189190612705565b9050847fd9b150285fb6dc8f0f6ea63c3dc3438a63c1f187191d8eec88dc98dd60f7ffc7826001604051611a4d929190612e38565b60405180910390a2600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166382d0e6c1336001868681518110611acf577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b8152600401611af593929190612acc565b602060405180830381600087803b158015611b0f57600080fd5b505af1158015611b23573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b479190612705565b9050847fd9b150285fb6dc8f0f6ea63c3dc3438a63c1f187191d8eec88dc98dd60f7ffc7826001604051611b7c929190612e38565b60405180910390a2611bce85848481518110611bc1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151612407565b610fa0612710848481518110611c0d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151611c1f91906130ca565b11611d57576000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639721747e336001878781518110611ca0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b8152600401611cc693929190612acc565b602060405180830381600087803b158015611ce057600080fd5b505af1158015611cf4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d189190612705565b9050857f95bfa5fd4b69c5938d6d7ef7a8504cb24d135559e901eb4a392e9fcc68089fdf826001604051611d4d929190612e38565b60405180910390a2505b508080611d639061306d565b91505061191c565b50827f9592d59d11cf8d2b8334460aa47eed02a2790dc972217e66a56a8615e9ff354760405160405180910390a2505050565b60005b82811015611f38576000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637f2f40ca336001868681518110611e25577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b8152600401611e4b93929190612acc565b602060405180830381600087803b158015611e6557600080fd5b505af1158015611e79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e9d9190612705565b9050847fd9b150285fb6dc8f0f6ea63c3dc3438a63c1f187191d8eec88dc98dd60f7ffc7826001604051611ed2929190612e38565b60405180910390a2611f2485848481518110611f17577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151612407565b508080611f309061306d565b915050611da1565b50827f9592d59d11cf8d2b8334460aa47eed02a2790dc972217e66a56a8615e9ff354760405160405180910390a2505050565b60005b82811015612105576000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e2f198bb336001868681518110611ff2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b815260040161201893929190612acc565b602060405180830381600087803b15801561203257600080fd5b505af1158015612046573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061206a9190612705565b9050847fd9b150285fb6dc8f0f6ea63c3dc3438a63c1f187191d8eec88dc98dd60f7ffc782600160405161209f929190612e38565b60405180910390a26120f1858484815181106120e4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151612407565b5080806120fd9061306d565b915050611f6e565b50827f9592d59d11cf8d2b8334460aa47eed02a2790dc972217e66a56a8615e9ff354760405160405180910390a2505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80600c6000600b600086815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080827f909dd726737b7ffa4ae9d137e9edebe8a74a9c2910a4b60e8112f93ab217083760405160405180910390a35050565b60007f000000000000000000000000b0897686c545045afc77cf20ec7a532e3120e0f173ffffffffffffffffffffffffffffffffffffffff16634000aea07f0000000000000000000000003d2341adb2d31f1c5530cdc622016af293177ae084866000604051602001612319929190612bc3565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161234693929190612b2c565b602060405180830381600087803b15801561236057600080fd5b505af1158015612374573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061239891906126a0565b5060006123bb8460003060026000898152602001908152602001600020546124fd565b9050600160026000868152602001908152602001600020546123dd9190612ef0565b60026000868152602001908152602001600020819055506123fe8482612539565b91505092915050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634e1bf3bb336001856040518463ffffffff1660e01b815260040161246993929190612acc565b602060405180830381600087803b15801561248357600080fd5b505af1158015612497573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124bb9190612705565b9050827f4e148f32a9d84b2127827d63770b5f94493ed52fcc1fe77757c6d9289446017e8260016040516124f0929190612e38565b60405180910390a2505050565b6000848484846040516020016125169493929190612bec565b6040516020818303038152906040528051906020012060001c9050949350505050565b6000828260405160200161254e929190612a85565b60405160208183030381529060405280519060200120905092915050565b60008135905061257b816133c8565b92915050565b60008083601f84011261259357600080fd5b8235905067ffffffffffffffff8111156125ac57600080fd5b6020830191508360208202830111156125c457600080fd5b9250929050565b6000815190506125da816133df565b92915050565b6000813590506125ef816133f6565b92915050565b6000813590506126048161340d565b92915050565b6000815190506126198161340d565b92915050565b60006020828403121561263157600080fd5b600061263f8482850161256c565b91505092915050565b60008060006040848603121561265d57600080fd5b600084013567ffffffffffffffff81111561267757600080fd5b61268386828701612581565b93509350506020612696868287016125f5565b9150509250925092565b6000602082840312156126b257600080fd5b60006126c0848285016125cb565b91505092915050565b600080604083850312156126dc57600080fd5b60006126ea858286016125e0565b92505060206126fb858286016125f5565b9150509250929050565b60006020828403121561271757600080fd5b60006127258482850161260a565b91505092915050565b60008060006060848603121561274357600080fd5b6000612751868287016125f5565b9350506020612762868287016125f5565b9250506040612773868287016125f5565b9150509250925092565b60006127898383612a50565b60208301905092915050565b61279e81612f46565b82525050565b60006127af82612e9a565b6127b98185612ebd565b93506127c483612e8a565b8060005b838110156127f55781516127dc888261277d565b97506127e783612eb0565b9250506001810190506127c8565b5085935050505092915050565b61280b81612f64565b82525050565b61282261281d82612f64565b6130b6565b82525050565b600061283382612ea5565b61283d8185612ece565b935061284d81856020860161303a565b61285681613159565b840191505092915050565b61286a81612f98565b82525050565b61287981612fbc565b82525050565b61288881612fe0565b82525050565b61289781613004565b82525050565b6128a681613028565b82525050565b60006128b9603783612edf565b91506128c48261316a565b604082019050919050565b60006128dc602583612edf565b91506128e7826131b9565b604082019050919050565b60006128ff601783612edf565b915061290a82613208565b602082019050919050565b6000612922602683612edf565b915061292d82613231565b604082019050919050565b6000612945601083612edf565b915061295082613280565b602082019050919050565b6000612968600f83612edf565b9150612973826132a9565b602082019050919050565b600061298b601d83612edf565b9150612996826132d2565b602082019050919050565b60006129ae602083612edf565b91506129b9826132fb565b602082019050919050565b60006129d1601883612edf565b91506129dc82613324565b602082019050919050565b60006129f4601f83612edf565b91506129ff8261334d565b602082019050919050565b6000612a17601a83612edf565b9150612a2282613376565b602082019050919050565b6000612a3a600e83612edf565b9150612a458261339f565b602082019050919050565b612a5981612f8e565b82525050565b612a6881612f8e565b82525050565b612a7f612a7a82612f8e565b6130c0565b82525050565b6000612a918285612811565b602082019150612aa18284612a6e565b6020820191508190509392505050565b6000602082019050612ac66000830184612795565b92915050565b6000606082019050612ae16000830186612795565b612aee602083018561289d565b612afb6040830184612a5f565b949350505050565b6000604082019050612b186000830185612795565b612b256020830184612a5f565b9392505050565b6000606082019050612b416000830186612795565b612b4e6020830185612a5f565b8181036040830152612b608184612828565b9050949350505050565b6000606082019050612b7f6000830186612795565b612b8c6020830185612a5f565b612b996040830184612a5f565b949350505050565b60006020820190508181036000830152612bbb81846127a4565b905092915050565b6000604082019050612bd86000830185612802565b612be56020830184612a5f565b9392505050565b6000608082019050612c016000830187612802565b612c0e6020830186612a5f565b612c1b6040830185612795565b612c286060830184612a5f565b95945050505050565b6000602082019050612c466000830184612861565b92915050565b6000602082019050612c616000830184612870565b92915050565b6000602082019050612c7c600083018461287f565b92915050565b6000602082019050612c97600083018461288e565b92915050565b60006020820190508181036000830152612cb6816128ac565b9050919050565b60006020820190508181036000830152612cd6816128cf565b9050919050565b60006020820190508181036000830152612cf6816128f2565b9050919050565b60006020820190508181036000830152612d1681612915565b9050919050565b60006020820190508181036000830152612d3681612938565b9050919050565b60006020820190508181036000830152612d568161295b565b9050919050565b60006020820190508181036000830152612d768161297e565b9050919050565b60006020820190508181036000830152612d96816129a1565b9050919050565b60006020820190508181036000830152612db6816129c4565b9050919050565b60006020820190508181036000830152612dd6816129e7565b9050919050565b60006020820190508181036000830152612df681612a0a565b9050919050565b60006020820190508181036000830152612e1681612a2d565b9050919050565b6000602082019050612e326000830184612a5f565b92915050565b6000604082019050612e4d6000830185612a5f565b612e5a602083018461289d565b9392505050565b6000604082019050612e766000830185612a5f565b612e836020830184612a5f565b9392505050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b6000612efb82612f8e565b9150612f0683612f8e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612f3b57612f3a6130fb565b5b828201905092915050565b6000612f5182612f6e565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000612fa382612faa565b9050919050565b6000612fb582612f6e565b9050919050565b6000612fc782612fce565b9050919050565b6000612fd982612f6e565b9050919050565b6000612feb82612ff2565b9050919050565b6000612ffd82612f6e565b9050919050565b600061300f82613016565b9050919050565b600061302182612f6e565b9050919050565b600061303382612f8e565b9050919050565b60005b8381101561305857808201518184015260208101905061303d565b83811115613067576000848401525b50505050565b600061307882612f8e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156130ab576130aa6130fb565b5b600182019050919050565b6000819050919050565b6000819050919050565b60006130d582612f8e565b91506130e083612f8e565b9250826130f0576130ef61312a565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000601f19601f8301169050919050565b7f596f7520646f6e2774206861766520656e6f756768206b65797320746f206f7060008201527f656e2074686973206d616e79206c6f6f7420626f786573000000000000000000602082015250565b7f696e76616c6964207469657220696e70757420286d75737420626520312c322060008201527f6f72203329000000000000000000000000000000000000000000000000000000602082015250565b7f556e61626c6520746f207769746864726177204c494e4b000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f526f6c6c20696e2070726f677265737300000000000000000000000000000000600082015250565b7f44696365206e6f7420726f6c6c65640000000000000000000000000000000000600082015250565b7f54686520636f6e74726163742068617665206265656e20706175736564000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f556e61626c6520746f207769746864726177204d415449430000000000000000600082015250565b7f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00600082015250565b7f4e6f7420656e6f756768204c494e4b20746f2070617920666565000000000000600082015250565b7f416c726561647920726f6c6c6564000000000000000000000000000000000000600082015250565b6133d181612f46565b81146133dc57600080fd5b50565b6133e881612f58565b81146133f357600080fd5b50565b6133ff81612f64565b811461340a57600080fd5b50565b61341681612f8e565b811461342157600080fd5b5056fea2646970667358221220bbf58d1f557ea47695e07fff7d00708682d671a373135416516f7d1558fcb17464736f6c63430008040033

Deployed Bytecode Sourcemap

73447:7393:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73553:35;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;79233:41;;;:::i;:::-;;78939:91;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;80072:348;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;20856:99;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;75837:946;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;79149:76;;;;;;;;;;;;;:::i;:::-;;80599:238;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;20961:103;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;20037:94;;;;;;;;;;;;;:::i;:::-;;79647:145;;;;;;;;;;;;;:::i;:::-;;19386:87;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;79487:152;;;;;;;;;;;;;:::i;:::-;;13063:233;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;73671:33;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;79282:197;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;73639:25;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;79038:103;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;78694:116;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;73595:37;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;75428:401;;;;;;;;;;;;;:::i;:::-;;73800:25;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;20286:192;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;78818:113;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;73553:35;;;;;;;;;;;;;:::o;79233:41::-;:::o;78939:91::-;19617:12;:10;:12::i;:::-;19606:23;;:7;:5;:7::i;:::-;:23;;;19598:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;79019:5:::1;78998:7;;:27;;;;;;;;;;;;;;;;;;78939:91:::0;:::o;80072:348::-;80155:31;80230:1;80216:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80199:33;;80248:9;80243:138;80267:1;80263;:5;80243:138;;;80364:5;80339:11;80357:1;80352:4;:6;;;;:::i;:::-;80328:31;;;;;;;;;:::i;:::-;;;;;;;;;;;;;80318:42;;;;;;80310:51;;:59;;;;:::i;:::-;80290:14;80305:1;80290:17;;;;;;;;;;;;;;;;;;;;;:79;;;;;80270:3;;;;;:::i;:::-;;;;80243:138;;;;80072:348;;;;;:::o;20856:99::-;19617:12;:10;:12::i;:::-;19606:23;;:7;:5;:7::i;:::-;:23;;;19598:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;20945:4:::1;20925:11:::0;:17:::1;20937:4;20925:17;;;;;;;;;;;;;;;;:24;;;;;;;;;;;;;;;;;;20856:99:::0;:::o;75837:946::-;75937:6;;;;;;;;;;;75936:7;75928:49;;;;;;;;;;;;:::i;:::-;;;;;;;;;76003:1;75996:4;:8;:20;;;;;76015:1;76008:4;:8;75996:20;75988:70;;;;;;;;;;;;:::i;:::-;;;;;;;;;76119:6;76077:10;;;;;;;;;;;:20;;;76098:10;76110:4;76077:38;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:48;;76069:116;;;;;;;;;;;;:::i;:::-;;;;;;;;;76196:10;;;;;;;;;;;:15;;;76212:10;76224:4;76230:6;76196:41;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76248:15;76266:21;76276:10;76266:9;:21::i;:::-;76248:39;;76298:27;76328:35;76335:7;76344:6;76352:10;;76328:6;:35::i;:::-;76298:65;;76388:6;76374:10;;:20;;;;;;;:::i;:::-;;;;;;;;76416:1;76408:4;:9;76405:286;;;76434:51;76451:13;76466:6;76474:10;76434:16;:51::i;:::-;76405:286;;;76513:1;76505:4;:9;76502:189;;;76531:51;76548:13;76563:6;76571:10;76531:16;:51::i;:::-;76502:189;;;76610:1;76602:4;:9;76599:92;;;76628:51;76645:13;76660:6;76668:10;76628:16;:51::i;:::-;76599:92;76502:189;76405:286;76774:1;76750:9;:21;76760:10;76750:21;;;;;;;;;;;;;;;:25;;;;75837:946;;;;;:::o;79149:76::-;19617:12;:10;:12::i;:::-;19606:23;;:7;:5;:7::i;:::-;:23;;;19598:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;79211:6:::1;;;;;;;;;;;79210:7;79201:6;;:16;;;;;;;;;;;;;;;;;;79149:76::o:0;80599:238::-;80653:7;80700:1;80681:9;:15;80691:4;80681:15;;;;;;;;;;;;;;;;:20;;80673:48;;;;;;;;;;;;:::i;:::-;;;;;;;;;73761:2;80740:9;:15;80750:4;80740:15;;;;;;;;;;;;;;;;:35;;80732:64;;;;;;;;;;;;:::i;:::-;;;;;;;;;80814:9;:15;80824:4;80814:15;;;;;;;;;;;;;;;;80807:22;;80599:238;;;:::o;20961:103::-;19617:12;:10;:12::i;:::-;19606:23;;:7;:5;:7::i;:::-;:23;;;19598:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;21053:5:::1;21033:11;:17;21045:4;21033:17;;;;;;;;;;;;;;;;:25;;;;;;;;;;;;;;;;;;20961:103:::0;:::o;20037:94::-;19617:12;:10;:12::i;:::-;19606:23;;:7;:5;:7::i;:::-;:23;;;19598:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;20102:21:::1;20120:1;20102:9;:21::i;:::-;20037:94::o:0;79647:145::-;19617:12;:10;:12::i;:::-;19606:23;;:7;:5;:7::i;:::-;:23;;;19598:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;79716:10:::1;79708:24;;:47;79733:21;79708:47;;;;;;;;;;;;;;;;;;;;;;;79700:84;;;;;;;;;;;;:::i;:::-;;;;;;;;;79647:145::o:0;19386:87::-;19432:7;19459:6;;;;;;;;;;;19452:13;;19386:87;:::o;79487:152::-;19617:12;:10;:12::i;:::-;19606:23;;:7;:5;:7::i;:::-;:23;;;19598:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;79547:4:::1;:13;;;79561:10;79573:4;:14;;;79596:4;79573:29;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;79547:56;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;79539:92;;;;;;;;;;;;:::i;:::-;;;;;;;;;79487:152::o:0;13063:233::-;13193:14;13179:28;;:10;:28;;;13171:72;;;;;;;;;;;;:::i;:::-;;;;;;;;;13250:40;13268:9;13279:10;13250:17;:40::i;:::-;13063:233;;:::o;73671:33::-;;;;;;;;;;;;;:::o;79282:197::-;19617:12;:10;:12::i;:::-;19606:23;;:7;:5;:7::i;:::-;:23;;;19598:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;79378:9:::1;79374:98;79393:5;;:12;;79389:1;:16;79374:98;;;79434:5;;79440:1;79434:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;79426:26;;:34;79453:6;79426:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;79407:3;;;;;:::i;:::-;;;;79374:98;;;;79282:197:::0;;;:::o;73639:25::-;;;;;;;;;;;;;:::o;79038:103::-;19617:12;:10;:12::i;:::-;19606:23;;:7;:5;:7::i;:::-;:23;;;19598:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;79130:5:::1;79101:11;;:35;;;;;;;;;;;;;;;;;;79038:103:::0;:::o;78694:116::-;19617:12;:10;:12::i;:::-;19606:23;;:7;:5;:7::i;:::-;:23;;;19598:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;78793:11:::1;78762:10;;:43;;;;;;;;;;;;;;;;;;78694:116:::0;:::o;73595:37::-;;;;;;;;;;;;;:::o;75428:401::-;75517:3;;75484:4;:14;;;75507:4;75484:29;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:36;;75476:75;;;;;;;;;;;;:::i;:::-;;;;;;;;;75595:1;75570:9;:21;75580:10;75570:21;;;;;;;;;;;;;;;;:26;75562:53;;;;;;;;;;;;:::i;:::-;;;;;;;;;75626:17;75646:31;75664:7;;75673:3;;75646:17;:31::i;:::-;75626:51;;75711:10;75688:9;:20;75698:9;75688:20;;;;;;;;;;;;:33;;;;;;;;;;;;;;;;;;73761:2;75732:9;:21;75742:10;75732:21;;;;;;;;;;;;;;;:40;;;;75810:10;75788:33;;75799:9;75788:33;;;;;;;;;;75428:401;:::o;73800:25::-;;;;:::o;20286:192::-;19617:12;:10;:12::i;:::-;19606:23;;:7;:5;:7::i;:::-;:23;;;19598:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;20395:1:::1;20375:22;;:8;:22;;;;20367:73;;;;;;;;;;;;:::i;:::-;;;;;;;;;20451:19;20461:8;20451:9;:19::i;:::-;20286:192:::0;:::o;78818:113::-;19617:12;:10;:12::i;:::-;19606:23;;:7;:5;:7::i;:::-;:23;;;19598:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;78918:7:::1;78885:13;;:41;;;;;;;;;;;;;;;;;;78818:113:::0;:::o;15958:98::-;16011:7;16038:10;16031:17;;15958:98;:::o;76791:806::-;76908:9;76904:640;76927:6;76923:1;:10;76904:640;;;76955:16;76974:13;;;;;;;;;;;:37;;;77012:10;77024:1;77027:10;77038:1;77027:13;;;;;;;;;;;;;;;;;;;;;;76974:67;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;76955:86;;77074:13;77061:40;77089:8;77099:1;77061:40;;;;;;;:::i;:::-;;;;;;;;77127:13;;;;;;;;;;;:38;;;77166:10;77178:1;77181:10;77192:1;77181:13;;;;;;;;;;;;;;;;;;;;;;77127:68;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;77116:79;;77228:13;77215:40;77243:8;77253:1;77215:40;;;;;;;:::i;:::-;;;;;;;;77270:41;77282:13;77297:10;77308:1;77297:13;;;;;;;;;;;;;;;;;;;;;;77270:11;:41::i;:::-;77352:4;77343:5;77329:10;77340:1;77329:13;;;;;;;;;;;;;;;;;;;;;;:19;;;;:::i;:::-;:27;77326:207;;77377:14;77394:11;;;;;;;;;;;:27;;;77422:10;77434:1;77437:10;77448:1;77437:13;;;;;;;;;;;;;;;;;;;;;;77394:57;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;77377:74;;77492:13;77475:42;77507:6;77515:1;77475:42;;;;;;;:::i;:::-;;;;;;;;77326:207;;76904:640;76935:3;;;;;:::i;:::-;;;;76904:640;;;;77575:13;77559:30;;;;;;;;;;76791:806;;;:::o;77605:432::-;77722:9;77718:266;77741:6;77737:1;:10;77718:266;;;77769:16;77788:13;;;;;;;;;;;:38;;;77827:10;77839:1;77842:10;77853:1;77842:13;;;;;;;;;;;;;;;;;;;;;;77788:68;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;77769:87;;77889:13;77876:40;77904:8;77914:1;77876:40;;;;;;;:::i;:::-;;;;;;;;77931:41;77943:13;77958:10;77969:1;77958:13;;;;;;;;;;;;;;;;;;;;;;77931:11;:41::i;:::-;77718:266;77749:3;;;;;:::i;:::-;;;;77718:266;;;;78015:13;77999:30;;;;;;;;;;77605:432;;;:::o;78045:431::-;78162:9;78158:265;78181:6;78177:1;:10;78158:265;;;78209:16;78228:13;;;;;;;;;;;:37;;;78266:10;78278:1;78281:10;78292:1;78281:13;;;;;;;;;;;;;;;;;;;;;;78228:67;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;78209:86;;78328:13;78315:40;78343:8;78353:1;78315:40;;;;;;;:::i;:::-;;;;;;;;78370:41;78382:13;78397:10;78408:1;78397:13;;;;;;;;;;;;;;;;;;;;;;78370:11;:41::i;:::-;78158:265;78189:3;;;;;:::i;:::-;;;;78158:265;;;;78454:13;78438:30;;;;;;;;;;78045:431;;;:::o;20486:173::-;20542:16;20561:6;;;;;;;;;;;20542:25;;20587:8;20578:6;;:17;;;;;;;;;;;;;;;;;;20642:8;20611:40;;20632:8;20611:40;;;;;;;;;;;;20486:173;;:::o;79868:196::-;79997:10;79963:9;:31;79973:9;:20;79983:9;79973:20;;;;;;;;;;;;;;;;;;;;;79963:31;;;;;;;;;;;;;;;:44;;;;80045:10;80034:9;80023:33;;;;;;;;;;79868:196;;:::o;11127:1077::-;11237:17;11272:4;:20;;;11293:14;11309:4;11326:8;9957:1;11315:43;;;;;;;;;:::i;:::-;;;;;;;;;;;;;11272:87;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;11594:15;11613:82;11630:8;9957:1;11671:4;11678:6;:16;11685:8;11678:16;;;;;;;;;;;;11613;:82::i;:::-;11594:101;;12151:1;12132:6;:16;12139:8;12132:16;;;;;;;;;;;;:20;;;;:::i;:::-;12113:6;:16;12120:8;12113:16;;;;;;;;;;;:39;;;;12166:32;12180:8;12190:7;12166:13;:32::i;:::-;12159:39;;;11127:1077;;;;:::o;78484:202::-;78564:14;78581:7;;;;;;;;;;;:18;;;78600:10;78612:1;78615:7;78581:42;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;78564:59;;78653:13;78639:39;78668:6;78676:1;78639:39;;;;;;;:::i;:::-;;;;;;;;78484:202;;;:::o;828:279::-;998:7;1059:8;1069:9;1080:10;1092:6;1048:51;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;1038:62;;;;;;1030:71;;1023:78;;828:279;;;;;;:::o;1498:215::-;1623:7;1682:8;1692:13;1665:41;;;;;;;;;:::i;:::-;;;;;;;;;;;;;1655:52;;;;;;1648:59;;1498:215;;;;:::o;7:139:1:-;53:5;91:6;78:20;69:29;;107:33;134:5;107:33;:::i;:::-;59:87;;;;:::o;169:367::-;242:8;252:6;302:3;295:4;287:6;283:17;279:27;269:2;;320:1;317;310:12;269:2;356:6;343:20;333:30;;386:18;378:6;375:30;372:2;;;418:1;415;408:12;372:2;455:4;447:6;443:17;431:29;;509:3;501:4;493:6;489:17;479:8;475:32;472:41;469:2;;;526:1;523;516:12;469:2;259:277;;;;;:::o;542:137::-;596:5;627:6;621:13;612:22;;643:30;667:5;643:30;:::i;:::-;602:77;;;;:::o;685:139::-;731:5;769:6;756:20;747:29;;785:33;812:5;785:33;:::i;:::-;737:87;;;;:::o;830:139::-;876:5;914:6;901:20;892:29;;930:33;957:5;930:33;:::i;:::-;882:87;;;;:::o;975:143::-;1032:5;1063:6;1057:13;1048:22;;1079:33;1106:5;1079:33;:::i;:::-;1038:80;;;;:::o;1124:262::-;1183:6;1232:2;1220:9;1211:7;1207:23;1203:32;1200:2;;;1248:1;1245;1238:12;1200:2;1291:1;1316:53;1361:7;1352:6;1341:9;1337:22;1316:53;:::i;:::-;1306:63;;1262:117;1190:196;;;;:::o;1392:570::-;1487:6;1495;1503;1552:2;1540:9;1531:7;1527:23;1523:32;1520:2;;;1568:1;1565;1558:12;1520:2;1639:1;1628:9;1624:17;1611:31;1669:18;1661:6;1658:30;1655:2;;;1701:1;1698;1691:12;1655:2;1737:80;1809:7;1800:6;1789:9;1785:22;1737:80;:::i;:::-;1719:98;;;;1582:245;1866:2;1892:53;1937:7;1928:6;1917:9;1913:22;1892:53;:::i;:::-;1882:63;;1837:118;1510:452;;;;;:::o;1968:278::-;2035:6;2084:2;2072:9;2063:7;2059:23;2055:32;2052:2;;;2100:1;2097;2090:12;2052:2;2143:1;2168:61;2221:7;2212:6;2201:9;2197:22;2168:61;:::i;:::-;2158:71;;2114:125;2042:204;;;;:::o;2252:407::-;2320:6;2328;2377:2;2365:9;2356:7;2352:23;2348:32;2345:2;;;2393:1;2390;2383:12;2345:2;2436:1;2461:53;2506:7;2497:6;2486:9;2482:22;2461:53;:::i;:::-;2451:63;;2407:117;2563:2;2589:53;2634:7;2625:6;2614:9;2610:22;2589:53;:::i;:::-;2579:63;;2534:118;2335:324;;;;;:::o;2665:284::-;2735:6;2784:2;2772:9;2763:7;2759:23;2755:32;2752:2;;;2800:1;2797;2790:12;2752:2;2843:1;2868:64;2924:7;2915:6;2904:9;2900:22;2868:64;:::i;:::-;2858:74;;2814:128;2742:207;;;;:::o;2955:552::-;3032:6;3040;3048;3097:2;3085:9;3076:7;3072:23;3068:32;3065:2;;;3113:1;3110;3103:12;3065:2;3156:1;3181:53;3226:7;3217:6;3206:9;3202:22;3181:53;:::i;:::-;3171:63;;3127:117;3283:2;3309:53;3354:7;3345:6;3334:9;3330:22;3309:53;:::i;:::-;3299:63;;3254:118;3411:2;3437:53;3482:7;3473:6;3462:9;3458:22;3437:53;:::i;:::-;3427:63;;3382:118;3055:452;;;;;:::o;3513:179::-;3582:10;3603:46;3645:3;3637:6;3603:46;:::i;:::-;3681:4;3676:3;3672:14;3658:28;;3593:99;;;;:::o;3698:118::-;3785:24;3803:5;3785:24;:::i;:::-;3780:3;3773:37;3763:53;;:::o;3852:732::-;3971:3;4000:54;4048:5;4000:54;:::i;:::-;4070:86;4149:6;4144:3;4070:86;:::i;:::-;4063:93;;4180:56;4230:5;4180:56;:::i;:::-;4259:7;4290:1;4275:284;4300:6;4297:1;4294:13;4275:284;;;4376:6;4370:13;4403:63;4462:3;4447:13;4403:63;:::i;:::-;4396:70;;4489:60;4542:6;4489:60;:::i;:::-;4479:70;;4335:224;4322:1;4319;4315:9;4310:14;;4275:284;;;4279:14;4575:3;4568:10;;3976:608;;;;;;;:::o;4590:118::-;4677:24;4695:5;4677:24;:::i;:::-;4672:3;4665:37;4655:53;;:::o;4714:157::-;4819:45;4839:24;4857:5;4839:24;:::i;:::-;4819:45;:::i;:::-;4814:3;4807:58;4797:74;;:::o;4877:360::-;4963:3;4991:38;5023:5;4991:38;:::i;:::-;5045:70;5108:6;5103:3;5045:70;:::i;:::-;5038:77;;5124:52;5169:6;5164:3;5157:4;5150:5;5146:16;5124:52;:::i;:::-;5201:29;5223:6;5201:29;:::i;:::-;5196:3;5192:39;5185:46;;4967:270;;;;;:::o;5243:169::-;5349:56;5399:5;5349:56;:::i;:::-;5344:3;5337:69;5327:85;;:::o;5418:183::-;5531:63;5588:5;5531:63;:::i;:::-;5526:3;5519:76;5509:92;;:::o;5607:181::-;5719:62;5775:5;5719:62;:::i;:::-;5714:3;5707:75;5697:91;;:::o;5794:177::-;5904:60;5958:5;5904:60;:::i;:::-;5899:3;5892:73;5882:89;;:::o;5977:147::-;6072:45;6111:5;6072:45;:::i;:::-;6067:3;6060:58;6050:74;;:::o;6130:366::-;6272:3;6293:67;6357:2;6352:3;6293:67;:::i;:::-;6286:74;;6369:93;6458:3;6369:93;:::i;:::-;6487:2;6482:3;6478:12;6471:19;;6276:220;;;:::o;6502:366::-;6644:3;6665:67;6729:2;6724:3;6665:67;:::i;:::-;6658:74;;6741:93;6830:3;6741:93;:::i;:::-;6859:2;6854:3;6850:12;6843:19;;6648:220;;;:::o;6874:366::-;7016:3;7037:67;7101:2;7096:3;7037:67;:::i;:::-;7030:74;;7113:93;7202:3;7113:93;:::i;:::-;7231:2;7226:3;7222:12;7215:19;;7020:220;;;:::o;7246:366::-;7388:3;7409:67;7473:2;7468:3;7409:67;:::i;:::-;7402:74;;7485:93;7574:3;7485:93;:::i;:::-;7603:2;7598:3;7594:12;7587:19;;7392:220;;;:::o;7618:366::-;7760:3;7781:67;7845:2;7840:3;7781:67;:::i;:::-;7774:74;;7857:93;7946:3;7857:93;:::i;:::-;7975:2;7970:3;7966:12;7959:19;;7764:220;;;:::o;7990:366::-;8132:3;8153:67;8217:2;8212:3;8153:67;:::i;:::-;8146:74;;8229:93;8318:3;8229:93;:::i;:::-;8347:2;8342:3;8338:12;8331:19;;8136:220;;;:::o;8362:366::-;8504:3;8525:67;8589:2;8584:3;8525:67;:::i;:::-;8518:74;;8601:93;8690:3;8601:93;:::i;:::-;8719:2;8714:3;8710:12;8703:19;;8508:220;;;:::o;8734:366::-;8876:3;8897:67;8961:2;8956:3;8897:67;:::i;:::-;8890:74;;8973:93;9062:3;8973:93;:::i;:::-;9091:2;9086:3;9082:12;9075:19;;8880:220;;;:::o;9106:366::-;9248:3;9269:67;9333:2;9328:3;9269:67;:::i;:::-;9262:74;;9345:93;9434:3;9345:93;:::i;:::-;9463:2;9458:3;9454:12;9447:19;;9252:220;;;:::o;9478:366::-;9620:3;9641:67;9705:2;9700:3;9641:67;:::i;:::-;9634:74;;9717:93;9806:3;9717:93;:::i;:::-;9835:2;9830:3;9826:12;9819:19;;9624:220;;;:::o;9850:366::-;9992:3;10013:67;10077:2;10072:3;10013:67;:::i;:::-;10006:74;;10089:93;10178:3;10089:93;:::i;:::-;10207:2;10202:3;10198:12;10191:19;;9996:220;;;:::o;10222:366::-;10364:3;10385:67;10449:2;10444:3;10385:67;:::i;:::-;10378:74;;10461:93;10550:3;10461:93;:::i;:::-;10579:2;10574:3;10570:12;10563:19;;10368:220;;;:::o;10594:108::-;10671:24;10689:5;10671:24;:::i;:::-;10666:3;10659:37;10649:53;;:::o;10708:118::-;10795:24;10813:5;10795:24;:::i;:::-;10790:3;10783:37;10773:53;;:::o;10832:157::-;10937:45;10957:24;10975:5;10957:24;:::i;:::-;10937:45;:::i;:::-;10932:3;10925:58;10915:74;;:::o;10995:397::-;11135:3;11150:75;11221:3;11212:6;11150:75;:::i;:::-;11250:2;11245:3;11241:12;11234:19;;11263:75;11334:3;11325:6;11263:75;:::i;:::-;11363:2;11358:3;11354:12;11347:19;;11383:3;11376:10;;11139:253;;;;;:::o;11398:222::-;11491:4;11529:2;11518:9;11514:18;11506:26;;11542:71;11610:1;11599:9;11595:17;11586:6;11542:71;:::i;:::-;11496:124;;;;:::o;11626:458::-;11783:4;11821:2;11810:9;11806:18;11798:26;;11834:71;11902:1;11891:9;11887:17;11878:6;11834:71;:::i;:::-;11915:80;11991:2;11980:9;11976:18;11967:6;11915:80;:::i;:::-;12005:72;12073:2;12062:9;12058:18;12049:6;12005:72;:::i;:::-;11788:296;;;;;;:::o;12090:332::-;12211:4;12249:2;12238:9;12234:18;12226:26;;12262:71;12330:1;12319:9;12315:17;12306:6;12262:71;:::i;:::-;12343:72;12411:2;12400:9;12396:18;12387:6;12343:72;:::i;:::-;12216:206;;;;;:::o;12428:529::-;12595:4;12633:2;12622:9;12618:18;12610:26;;12646:71;12714:1;12703:9;12699:17;12690:6;12646:71;:::i;:::-;12727:72;12795:2;12784:9;12780:18;12771:6;12727:72;:::i;:::-;12846:9;12840:4;12836:20;12831:2;12820:9;12816:18;12809:48;12874:76;12945:4;12936:6;12874:76;:::i;:::-;12866:84;;12600:357;;;;;;:::o;12963:442::-;13112:4;13150:2;13139:9;13135:18;13127:26;;13163:71;13231:1;13220:9;13216:17;13207:6;13163:71;:::i;:::-;13244:72;13312:2;13301:9;13297:18;13288:6;13244:72;:::i;:::-;13326;13394:2;13383:9;13379:18;13370:6;13326:72;:::i;:::-;13117:288;;;;;;:::o;13411:373::-;13554:4;13592:2;13581:9;13577:18;13569:26;;13641:9;13635:4;13631:20;13627:1;13616:9;13612:17;13605:47;13669:108;13772:4;13763:6;13669:108;:::i;:::-;13661:116;;13559:225;;;;:::o;13790:332::-;13911:4;13949:2;13938:9;13934:18;13926:26;;13962:71;14030:1;14019:9;14015:17;14006:6;13962:71;:::i;:::-;14043:72;14111:2;14100:9;14096:18;14087:6;14043:72;:::i;:::-;13916:206;;;;;:::o;14128:553::-;14305:4;14343:3;14332:9;14328:19;14320:27;;14357:71;14425:1;14414:9;14410:17;14401:6;14357:71;:::i;:::-;14438:72;14506:2;14495:9;14491:18;14482:6;14438:72;:::i;:::-;14520;14588:2;14577:9;14573:18;14564:6;14520:72;:::i;:::-;14602;14670:2;14659:9;14655:18;14646:6;14602:72;:::i;:::-;14310:371;;;;;;;:::o;14687:260::-;14799:4;14837:2;14826:9;14822:18;14814:26;;14850:90;14937:1;14926:9;14922:17;14913:6;14850:90;:::i;:::-;14804:143;;;;:::o;14953:274::-;15072:4;15110:2;15099:9;15095:18;15087:26;;15123:97;15217:1;15206:9;15202:17;15193:6;15123:97;:::i;:::-;15077:150;;;;:::o;15233:272::-;15351:4;15389:2;15378:9;15374:18;15366:26;;15402:96;15495:1;15484:9;15480:17;15471:6;15402:96;:::i;:::-;15356:149;;;;:::o;15511:268::-;15627:4;15665:2;15654:9;15650:18;15642:26;;15678:94;15769:1;15758:9;15754:17;15745:6;15678:94;:::i;:::-;15632:147;;;;:::o;15785:419::-;15951:4;15989:2;15978:9;15974:18;15966:26;;16038:9;16032:4;16028:20;16024:1;16013:9;16009:17;16002:47;16066:131;16192:4;16066:131;:::i;:::-;16058:139;;15956:248;;;:::o;16210:419::-;16376:4;16414:2;16403:9;16399:18;16391:26;;16463:9;16457:4;16453:20;16449:1;16438:9;16434:17;16427:47;16491:131;16617:4;16491:131;:::i;:::-;16483:139;;16381:248;;;:::o;16635:419::-;16801:4;16839:2;16828:9;16824:18;16816:26;;16888:9;16882:4;16878:20;16874:1;16863:9;16859:17;16852:47;16916:131;17042:4;16916:131;:::i;:::-;16908:139;;16806:248;;;:::o;17060:419::-;17226:4;17264:2;17253:9;17249:18;17241:26;;17313:9;17307:4;17303:20;17299:1;17288:9;17284:17;17277:47;17341:131;17467:4;17341:131;:::i;:::-;17333:139;;17231:248;;;:::o;17485:419::-;17651:4;17689:2;17678:9;17674:18;17666:26;;17738:9;17732:4;17728:20;17724:1;17713:9;17709:17;17702:47;17766:131;17892:4;17766:131;:::i;:::-;17758:139;;17656:248;;;:::o;17910:419::-;18076:4;18114:2;18103:9;18099:18;18091:26;;18163:9;18157:4;18153:20;18149:1;18138:9;18134:17;18127:47;18191:131;18317:4;18191:131;:::i;:::-;18183:139;;18081:248;;;:::o;18335:419::-;18501:4;18539:2;18528:9;18524:18;18516:26;;18588:9;18582:4;18578:20;18574:1;18563:9;18559:17;18552:47;18616:131;18742:4;18616:131;:::i;:::-;18608:139;;18506:248;;;:::o;18760:419::-;18926:4;18964:2;18953:9;18949:18;18941:26;;19013:9;19007:4;19003:20;18999:1;18988:9;18984:17;18977:47;19041:131;19167:4;19041:131;:::i;:::-;19033:139;;18931:248;;;:::o;19185:419::-;19351:4;19389:2;19378:9;19374:18;19366:26;;19438:9;19432:4;19428:20;19424:1;19413:9;19409:17;19402:47;19466:131;19592:4;19466:131;:::i;:::-;19458:139;;19356:248;;;:::o;19610:419::-;19776:4;19814:2;19803:9;19799:18;19791:26;;19863:9;19857:4;19853:20;19849:1;19838:9;19834:17;19827:47;19891:131;20017:4;19891:131;:::i;:::-;19883:139;;19781:248;;;:::o;20035:419::-;20201:4;20239:2;20228:9;20224:18;20216:26;;20288:9;20282:4;20278:20;20274:1;20263:9;20259:17;20252:47;20316:131;20442:4;20316:131;:::i;:::-;20308:139;;20206:248;;;:::o;20460:419::-;20626:4;20664:2;20653:9;20649:18;20641:26;;20713:9;20707:4;20703:20;20699:1;20688:9;20684:17;20677:47;20741:131;20867:4;20741:131;:::i;:::-;20733:139;;20631:248;;;:::o;20885:222::-;20978:4;21016:2;21005:9;21001:18;20993:26;;21029:71;21097:1;21086:9;21082:17;21073:6;21029:71;:::i;:::-;20983:124;;;;:::o;21113:348::-;21242:4;21280:2;21269:9;21265:18;21257:26;;21293:71;21361:1;21350:9;21346:17;21337:6;21293:71;:::i;:::-;21374:80;21450:2;21439:9;21435:18;21426:6;21374:80;:::i;:::-;21247:214;;;;;:::o;21467:332::-;21588:4;21626:2;21615:9;21611:18;21603:26;;21639:71;21707:1;21696:9;21692:17;21683:6;21639:71;:::i;:::-;21720:72;21788:2;21777:9;21773:18;21764:6;21720:72;:::i;:::-;21593:206;;;;;:::o;21805:132::-;21872:4;21895:3;21887:11;;21925:4;21920:3;21916:14;21908:22;;21877:60;;;:::o;21943:114::-;22010:6;22044:5;22038:12;22028:22;;22017:40;;;:::o;22063:98::-;22114:6;22148:5;22142:12;22132:22;;22121:40;;;:::o;22167:113::-;22237:4;22269;22264:3;22260:14;22252:22;;22242:38;;;:::o;22286:184::-;22385:11;22419:6;22414:3;22407:19;22459:4;22454:3;22450:14;22435:29;;22397:73;;;;:::o;22476:168::-;22559:11;22593:6;22588:3;22581:19;22633:4;22628:3;22624:14;22609:29;;22571:73;;;;:::o;22650:169::-;22734:11;22768:6;22763:3;22756:19;22808:4;22803:3;22799:14;22784:29;;22746:73;;;;:::o;22825:305::-;22865:3;22884:20;22902:1;22884:20;:::i;:::-;22879:25;;22918:20;22936:1;22918:20;:::i;:::-;22913:25;;23072:1;23004:66;23000:74;22997:1;22994:81;22991:2;;;23078:18;;:::i;:::-;22991:2;23122:1;23119;23115:9;23108:16;;22869:261;;;;:::o;23136:96::-;23173:7;23202:24;23220:5;23202:24;:::i;:::-;23191:35;;23181:51;;;:::o;23238:90::-;23272:7;23315:5;23308:13;23301:21;23290:32;;23280:48;;;:::o;23334:77::-;23371:7;23400:5;23389:16;;23379:32;;;:::o;23417:126::-;23454:7;23494:42;23487:5;23483:54;23472:65;;23462:81;;;:::o;23549:77::-;23586:7;23615:5;23604:16;;23594:32;;;:::o;23632:164::-;23701:9;23734:56;23784:5;23734:56;:::i;:::-;23721:69;;23711:85;;;:::o;23802:132::-;23871:9;23904:24;23922:5;23904:24;:::i;:::-;23891:37;;23881:53;;;:::o;23940:178::-;24016:9;24049:63;24106:5;24049:63;:::i;:::-;24036:76;;24026:92;;;:::o;24124:139::-;24200:9;24233:24;24251:5;24233:24;:::i;:::-;24220:37;;24210:53;;;:::o;24269:176::-;24344:9;24377:62;24433:5;24377:62;:::i;:::-;24364:75;;24354:91;;;:::o;24451:138::-;24526:9;24559:24;24577:5;24559:24;:::i;:::-;24546:37;;24536:53;;;:::o;24595:172::-;24668:9;24701:60;24755:5;24701:60;:::i;:::-;24688:73;;24678:89;;;:::o;24773:136::-;24846:9;24879:24;24897:5;24879:24;:::i;:::-;24866:37;;24856:53;;;:::o;24915:121::-;24973:9;25006:24;25024:5;25006:24;:::i;:::-;24993:37;;24983:53;;;:::o;25042:307::-;25110:1;25120:113;25134:6;25131:1;25128:13;25120:113;;;25219:1;25214:3;25210:11;25204:18;25200:1;25195:3;25191:11;25184:39;25156:2;25153:1;25149:10;25144:15;;25120:113;;;25251:6;25248:1;25245:13;25242:2;;;25331:1;25322:6;25317:3;25313:16;25306:27;25242:2;25091:258;;;;:::o;25355:233::-;25394:3;25417:24;25435:5;25417:24;:::i;:::-;25408:33;;25463:66;25456:5;25453:77;25450:2;;;25533:18;;:::i;:::-;25450:2;25580:1;25573:5;25569:13;25562:20;;25398:190;;;:::o;25594:79::-;25633:7;25662:5;25651:16;;25641:32;;;:::o;25679:79::-;25718:7;25747:5;25736:16;;25726:32;;;:::o;25764:176::-;25796:1;25813:20;25831:1;25813:20;:::i;:::-;25808:25;;25847:20;25865:1;25847:20;:::i;:::-;25842:25;;25886:1;25876:2;;25891:18;;:::i;:::-;25876:2;25932:1;25929;25925:9;25920:14;;25798:142;;;;:::o;25946:180::-;25994:77;25991:1;25984:88;26091:4;26088:1;26081:15;26115:4;26112:1;26105:15;26132:180;26180:77;26177:1;26170:88;26277:4;26274:1;26267:15;26301:4;26298:1;26291:15;26318:102;26359:6;26410:2;26406:7;26401:2;26394:5;26390:14;26386:28;26376:38;;26366:54;;;:::o;26426:242::-;26566:34;26562:1;26554:6;26550:14;26543:58;26635:25;26630:2;26622:6;26618:15;26611:50;26532:136;:::o;26674:224::-;26814:34;26810:1;26802:6;26798:14;26791:58;26883:7;26878:2;26870:6;26866:15;26859:32;26780:118;:::o;26904:173::-;27044:25;27040:1;27032:6;27028:14;27021:49;27010:67;:::o;27083:225::-;27223:34;27219:1;27211:6;27207:14;27200:58;27292:8;27287:2;27279:6;27275:15;27268:33;27189:119;:::o;27314:166::-;27454:18;27450:1;27442:6;27438:14;27431:42;27420:60;:::o;27486:165::-;27626:17;27622:1;27614:6;27610:14;27603:41;27592:59;:::o;27657:179::-;27797:31;27793:1;27785:6;27781:14;27774:55;27763:73;:::o;27842:182::-;27982:34;27978:1;27970:6;27966:14;27959:58;27948:76;:::o;28030:174::-;28170:26;28166:1;28158:6;28154:14;28147:50;28136:68;:::o;28210:181::-;28350:33;28346:1;28338:6;28334:14;28327:57;28316:75;:::o;28397:176::-;28537:28;28533:1;28525:6;28521:14;28514:52;28503:70;:::o;28579:164::-;28719:16;28715:1;28707:6;28703:14;28696:40;28685:58;:::o;28749:122::-;28822:24;28840:5;28822:24;:::i;:::-;28815:5;28812:35;28802:2;;28861:1;28858;28851:12;28802:2;28792:79;:::o;28877:116::-;28947:21;28962:5;28947:21;:::i;:::-;28940:5;28937:32;28927:2;;28983:1;28980;28973:12;28927:2;28917:76;:::o;28999:122::-;29072:24;29090:5;29072:24;:::i;:::-;29065:5;29062:35;29052:2;;29111:1;29108;29101:12;29052:2;29042:79;:::o;29127:122::-;29200:24;29218:5;29200:24;:::i;:::-;29193:5;29190:35;29180:2;;29239:1;29236;29229:12;29180:2;29170:79;:::o

Swarm Source

ipfs://bbf58d1f557ea47695e07fff7d00708682d671a373135416516f7d1558fcb174

Block Transaction Gas Used Reward
view all blocks produced

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

Validator Index Block Amount
View All Withdrawals

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

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