ETH Price: $3,411.08 (+3.52%)

Token

BlootDrip (BDRIP)
 

Overview

Max Total Supply

2,447 BDRIP

Holders

99

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
barn.harv.eth
0x996e1d4ce3e1e558889832832004B2466153adbe
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
BlootDripFactory

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 21 : BlootDripFactory.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import '@openzeppelin/contracts/access/Ownable.sol';
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import './AbstractERC1155Factory.sol';
import "@openzeppelin/contracts/utils/Counters.sol";

/*
* @title ERC1155 token for BlootDrip, including giveaways for Bloot holders with Chainlink VRF
*
* @author Niftydude
*/
contract BlootDripFactory is VRFConsumerBase, Ownable, AbstractERC1155Factory {
    using Counters for Counters.Counter;
    Counters.Counter private counter;     
    Counters.Counter public drawCounter;     

    bytes32 internal keyHash;
    uint256 internal fee;
    uint256 public randomResult;
    uint256 public lastDraw;

    mapping(uint256 => bool) public isMintingClosed;
    mapping(uint256 => string) public ipfsHashes;

    IERC721Enumerable public blootContract;

    event Winners(uint256 randomResult, uint256[] expandedResult);
    event Claimed(uint index, address indexed account, uint amount);

    constructor(
        address _vrfCoordinator,
        address _linkToken,
        bytes32 _keyHash,
        uint256 _fee,
        address _blootContract,
        string memory _name, 
        string memory _symbol
    ) VRFConsumerBase(_vrfCoordinator, _linkToken) ERC1155("ipfs://"){
        keyHash = _keyHash;
        fee = _fee;
        blootContract = IERC721Enumerable(_blootContract);
        name_ = _name;
        symbol_ = _symbol;        
    }

    function closeMinting(uint256 variant) external onlyOwner {
        require(counter.current() > variant, "closeMinting: nonexistent token");        

        isMintingClosed[variant] = true;
    }

    function addVariant(uint256 supply, string memory _ipfsMetadataHash) external onlyOwner {
        ipfsHashes[counter.current()] = _ipfsMetadataHash;
        
        if(supply > 0) {
            _mint(msg.sender, counter.current(), supply, "");
        }
        counter.increment();
    }  

    function increaseSupply(uint256 variant, uint256 additionalSupply) external onlyOwner {
        require(counter.current() > variant, "increaseSupply: nonexistent token");        
        require(!isMintingClosed[variant], "increaseSupply: Minting for variant is closed");
        require(additionalSupply > 0, "increaseSupply: must be bigger than 0");

        _mint(msg.sender, variant, additionalSupply, "");
    }        

    function editMetadata(uint256 variant, string memory _ipfsMetadataHash) external onlyOwner {
        require(counter.current() > variant, "EditMetadata: nonexistent token");

        ipfsHashes[variant] = _ipfsMetadataHash;
    }  

    function pickWinners(uint256 numWinners, uint256 variantId) external onlyOwner {
        require(counter.current() > variantId, "pickWinners: nonexistent token");        
        require(!isMintingClosed[variantId], "pickWinners: Minting for variant is closed");
        require(drawCounter.current() > lastDraw, "pickWinners: new VRF result not received yet");

        uint256[] memory expandedValues = new uint256[](numWinners);

        for (uint256 i = 0; i < numWinners; i++) {
            expandedValues[i] = (uint256(keccak256(abi.encode(randomResult, i))) % 8008) + 1;
            _mint(blootContract.ownerOf(expandedValues[i]), variantId, 1, "");
        }

        lastDraw += 1;
        emit Winners(randomResult, expandedValues);
    }

    function withdrawLink() external onlyOwner {
        LINK.transfer(owner(), LINK.balanceOf(address(this)));
    }

    function getRandomNumber() external onlyOwner returns (bytes32 requestId) {
        require(
            LINK.balanceOf(address(this)) >= fee,
            "Not enough LINK - fill contract with faucet"
        );
        return requestRandomness(keyHash, fee);
    }

    function uri(uint256 _id) public view override returns (string memory) {
            require(totalSupply(_id) > 0, "URI: nonexistent token");
            
            return string(abi.encodePacked(super.uri(_id), ipfsHashes[_id]));
    }       

    /**
     * Callback function used by VRF Coordinator
     */
    function fulfillRandomness(bytes32, uint256 randomness) internal override {
        randomResult = randomness;

        drawCounter.increment();        
    }
}

File 2 of 21 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @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 3 of 21 : VRFConsumerBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./interfaces/LinkTokenInterface.sol";

import "./VRFRequestIDBase.sol";

/** ****************************************************************************
 * @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 4 of 21 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 5 of 21 : AbstractERC1155Factory.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Pausable.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol';

abstract contract AbstractERC1155Factory is ERC1155Supply, ERC1155Burnable, Ownable {
    
    string public name_;
    string public symbol_;   

    function setURI(string memory baseURI) external onlyOwner {
        _setURI(baseURI);
    }    

    function name() public view returns (string memory) {
        return name_;
    }

    function symbol() public view returns (string memory) {
        return symbol_;
    }          

    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._mint(account, id, amount, data);
    }

    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._mintBatch(to, ids, amounts, data);
    }

    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._burn(account, id, amount);
    }

    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._burnBatch(account, ids, amounts);
    }  
}

File 6 of 21 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

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

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 7 of 21 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with 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 8 of 21 : LinkTokenInterface.sol
// SPDX-License-Identifier: MIT
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 9 of 21 : VRFRequestIDBase.sol
// SPDX-License-Identifier: MIT
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 10 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 11 of 21 : IERC165.sol
// SPDX-License-Identifier: MIT

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 12 of 21 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @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 13 of 21 : ERC1155Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC1155.sol";
import "../../../security/Pausable.sol";

/**
 * @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 14 of 21 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates weither any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Supply.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_mint}.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual override {
        super._mint(account, id, amount, data);
        _totalSupply[id] += amount;
    }

    /**
     * @dev See {ERC1155-_mintBatch}.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._mintBatch(to, ids, amounts, data);
        for (uint256 i = 0; i < ids.length; ++i) {
            _totalSupply[ids[i]] += amounts[i];
        }
    }

    /**
     * @dev See {ERC1155-_burn}.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual override {
        super._burn(account, id, amount);
        _totalSupply[id] -= amount;
    }

    /**
     * @dev See {ERC1155-_burnBatch}.
     */
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual override {
        super._burnBatch(account, ids, amounts);
        for (uint256 i = 0; i < ids.length; ++i) {
            _totalSupply[ids[i]] -= amounts[i];
        }
    }
}

File 15 of 21 : ERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

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

    /**
     * @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 16 of 21 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @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 17 of 21 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @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 18 of 21 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @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 19 of 21 : Address.sol
// SPDX-License-Identifier: MIT

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 20 of 21 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @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 21 of 21 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_vrfCoordinator","type":"address"},{"internalType":"address","name":"_linkToken","type":"address"},{"internalType":"bytes32","name":"_keyHash","type":"bytes32"},{"internalType":"uint256","name":"_fee","type":"uint256"},{"internalType":"address","name":"_blootContract","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","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":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"randomResult","type":"uint256"},{"indexed":false,"internalType":"uint256[]","name":"expandedResult","type":"uint256[]"}],"name":"Winners","type":"event"},{"inputs":[{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"string","name":"_ipfsMetadataHash","type":"string"}],"name":"addVariant","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blootContract","outputs":[{"internalType":"contract IERC721Enumerable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"variant","type":"uint256"}],"name":"closeMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"drawCounter","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"variant","type":"uint256"},{"internalType":"string","name":"_ipfsMetadataHash","type":"string"}],"name":"editMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRandomNumber","outputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"variant","type":"uint256"},{"internalType":"uint256","name":"additionalSupply","type":"uint256"}],"name":"increaseSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ipfsHashes","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isMintingClosed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastDraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name_","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numWinners","type":"uint256"},{"internalType":"uint256","name":"variantId","type":"uint256"}],"name":"pickWinners","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"randomResult","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol_","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawLink","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040523480156200001157600080fd5b50604051620033c6380380620033c68339810160408190526200003491620002c2565b604080518082019091526007815266697066733a2f2f60c81b60208201526001600160601b0319606089811b821660a05288901b166080526200007781620000e1565b506200008333620000fa565b600a859055600b849055601080546001600160a01b0319166001600160a01b0385161790558151620000bd9060069060208501906200014c565b508051620000d39060079060208401906200014c565b5050505050505050620003c8565b8051620000f69060039060208401906200014c565b5050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200015a9062000375565b90600052602060002090601f0160209004810192826200017e5760008555620001c9565b82601f106200019957805160ff1916838001178555620001c9565b82800160010185558215620001c9579182015b82811115620001c9578251825591602001919060010190620001ac565b50620001d7929150620001db565b5090565b5b80821115620001d75760008155600101620001dc565b80516001600160a01b03811681146200020a57600080fd5b919050565b600082601f83011262000220578081fd5b81516001600160401b03808211156200023d576200023d620003b2565b604051601f8301601f19908116603f01168101908282118183101715620002685762000268620003b2565b8160405283815260209250868385880101111562000284578485fd5b8491505b83821015620002a7578582018301518183018401529082019062000288565b83821115620002b857848385830101525b9695505050505050565b600080600080600080600060e0888a031215620002dd578283fd5b620002e888620001f2565b9650620002f860208901620001f2565b955060408801519450606088015193506200031660808901620001f2565b60a08901519093506001600160401b038082111562000333578384fd5b620003418b838c016200020f565b935060c08a015191508082111562000357578283fd5b50620003668a828b016200020f565b91505092959891949750929550565b600181811c908216806200038a57607f821691505b60208210811415620003ac57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160601c612fb66200041060003960008181610ced0152611952015260008181610b8e01528181610be20152818161129d01526119230152612fb66000f3fe608060405234801561001057600080fd5b50600436106102055760003560e01c80638da5cb5b1161011a578063af17dea6116100ad578063e985e9c51161007c578063e985e9c514610448578063e9e7e59914610484578063f242432a14610497578063f2fde38b146104aa578063f5298aca146104bd57600080fd5b8063af17dea614610410578063bd85b03914610418578063dbdff2c114610438578063e2b9e1861461044057600080fd5b806395d89b41116100e957806395d89b41146103cf57806398071fa5146103d7578063a22cb465146103ea578063a4de2f5c146103fd57600080fd5b80638da5cb5b146103995780638dc654a2146103aa57806392b5ba0b146103b257806394985ddd146103bc57600080fd5b806342619f661161019d578063610cc8991161016c578063610cc8991461032d578063628d35c9146103585780636b20c4541461036b578063715018a61461037e57806383219a8a1461038657600080fd5b806342619f66146102d95780634e1273f4146102e25780634f558e79146103025780635dd577ec1461032457600080fd5b80630e89341c116101d95780630e89341c1461027d57806324c29f94146102905780632eb2c2d6146102b357806331cf9b34146102c657600080fd5b8062fdd58e1461020a57806301ffc9a71461023057806302fe53051461025357806306fdde0314610268575b600080fd5b61021d6102183660046126a9565b6104d0565b6040519081526020015b60405180910390f35b61024361023e366004612812565b610569565b6040519015158152602001610227565b61026661026136600461284a565b6105bb565b005b6102706105f1565b6040516102279190612b08565b61027061028b36600461287d565b610683565b61024361029e36600461287d565b600e6020526000908152604090205460ff1681565b6102666102c13660046124f8565b61071a565b6102666102d43660046128ad565b6107b1565b61021d600c5481565b6102f56102f0366004612708565b610846565b6040516102279190612ad0565b61024361031036600461287d565b600090815260046020526040902054151590565b61021d600d5481565b601054610340906001600160a01b031681565b6040516001600160a01b039091168152602001610227565b61026661036636600461287d565b6109a8565b610266610379366004612609565b610a44565b610266610a8c565b6102666103943660046128ad565b610ac2565b6005546001600160a01b0316610340565b610266610b62565b60095461021d9081565b6102666103ca3660046127f1565b610ce2565b610270610d64565b6102666103e53660046127f1565b610d73565b6102666103f836600461267c565b6110da565b61027061040b36600461287d565b6111b1565b61027061124b565b61021d61042636600461287d565b60009081526004602052604090205490565b61021d611258565b610270611395565b6102436104563660046124c0565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6102666104923660046127f1565b6113a2565b6102666104a53660046125a2565b61151b565b6102666104b8366004612481565b611560565b6102666104cb3660046126d4565b6115f8565b60006001600160a01b0383166105415760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061059a57506001600160e01b031982166303a24d0760e21b145b806105b557506301ffc9a760e01b6001600160e01b03198316145b92915050565b6005546001600160a01b031633146105e55760405162461bcd60e51b815260040161053890612cc2565b6105ee8161163b565b50565b60606006805461060090612dd7565b80601f016020809104026020016040519081016040528092919081815260200182805461062c90612dd7565b80156106795780601f1061064e57610100808354040283529160200191610679565b820191906000526020600020905b81548152906001019060200180831161065c57829003601f168201915b5050505050905090565b600081815260046020526040812054606091106106db5760405162461bcd60e51b81526020600482015260166024820152752aa9249d103737b732bc34b9ba32b73a103a37b5b2b760511b6044820152606401610538565b6106e48261164e565b6000838152600f602090815260409182902091516107049392910161294e565b6040516020818303038152906040529050919050565b6001600160a01b03851633148061073657506107368533610456565b61079d5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610538565b6107aa85858585856116e2565b5050505050565b6005546001600160a01b031633146107db5760405162461bcd60e51b815260040161053890612cc2565b80600f60006107e960085490565b8152602001908152602001600020908051906020019061080a929190612305565b508115610834576108343361081e60085490565b846040518060200160405280600081525061189d565b610842600880546001019055565b5050565b606081518351146108ab5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610538565b6000835167ffffffffffffffff8111156108d557634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156108fe578160200160208202803683370190505b50905060005b84518110156109a05761096585828151811061093057634e487b7160e01b600052603260045260246000fd5b602002602001015185838151811061095857634e487b7160e01b600052603260045260246000fd5b60200260200101516104d0565b82828151811061098557634e487b7160e01b600052603260045260246000fd5b602090810291909101015261099981612e3f565b9050610904565b509392505050565b6005546001600160a01b031633146109d25760405162461bcd60e51b815260040161053890612cc2565b806109dc60085490565b11610a295760405162461bcd60e51b815260206004820152601f60248201527f636c6f73654d696e74696e673a206e6f6e6578697374656e7420746f6b656e006044820152606401610538565b6000908152600e60205260409020805460ff19166001179055565b6001600160a01b038316331480610a605750610a608333610456565b610a7c5760405162461bcd60e51b815260040161053890612ba7565b610a878383836118af565b505050565b6005546001600160a01b03163314610ab65760405162461bcd60e51b815260040161053890612cc2565b610ac060006118ba565b565b6005546001600160a01b03163314610aec5760405162461bcd60e51b815260040161053890612cc2565b81610af660085490565b11610b435760405162461bcd60e51b815260206004820152601f60248201527f456469744d657461646174613a206e6f6e6578697374656e7420746f6b656e006044820152606401610538565b6000828152600f602090815260409091208251610a8792840190612305565b6005546001600160a01b03163314610b8c5760405162461bcd60e51b815260040161053890612cc2565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb610bcd6005546001600160a01b031690565b6040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b158015610c2c57600080fd5b505afa158015610c40573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c649190612895565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015610caa57600080fd5b505af1158015610cbe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ee91906127d5565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610d5a5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610538565b610842828261190c565b60606007805461060090612dd7565b6005546001600160a01b03163314610d9d5760405162461bcd60e51b815260040161053890612cc2565b80610da760085490565b11610df45760405162461bcd60e51b815260206004820152601e60248201527f7069636b57696e6e6572733a206e6f6e6578697374656e7420746f6b656e00006044820152606401610538565b6000818152600e602052604090205460ff1615610e665760405162461bcd60e51b815260206004820152602a60248201527f7069636b57696e6e6572733a204d696e74696e6720666f722076617269616e74604482015269081a5cc818db1bdcd95960b21b6064820152608401610538565b600d5460095411610ece5760405162461bcd60e51b815260206004820152602c60248201527f7069636b57696e6e6572733a206e65772056524620726573756c74206e6f742060448201526b1c9958d95a5d9959081e595d60a21b6064820152608401610538565b60008267ffffffffffffffff811115610ef757634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610f20578160200160208202803683370190505b50905060005b8381101561108157611f48600c5482604051602001610f4f929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c610f729190612e5a565b610f7d906001612d7c565b828281518110610f9d57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152601054825161106f916001600160a01b031690636352211e90859085908110610fe157634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161100791815260200190565b60206040518083038186803b15801561101f57600080fd5b505afa158015611033573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105791906124a4565b8460016040518060200160405280600081525061189d565b8061107981612e3f565b915050610f26565b506001600d60008282546110959190612d7c565b9091555050600c546040517f8c35431baa7f35d761d5bbfd2611610b35915a3c91cb5a606d498686115ee16a916110cd918490612d3f565b60405180910390a1505050565b336001600160a01b03831614156111455760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610538565b3360008181526002602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600f60205260009081526040902080546111ca90612dd7565b80601f01602080910402602001604051908101604052809291908181526020018280546111f690612dd7565b80156112435780601f1061121857610100808354040283529160200191611243565b820191906000526020600020905b81548152906001019060200180831161122657829003601f168201915b505050505081565b600780546111ca90612dd7565b6005546000906001600160a01b031633146112855760405162461bcd60e51b815260040161053890612cc2565b600b546040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156112e757600080fd5b505afa1580156112fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061131f9190612895565b10156113815760405162461bcd60e51b815260206004820152602b60248201527f4e6f7420656e6f756768204c494e4b202d2066696c6c20636f6e74726163742060448201526a1dda5d1a0819985d58d95d60aa1b6064820152608401610538565b61138f600a54600b5461191f565b90505b90565b600680546111ca90612dd7565b6005546001600160a01b031633146113cc5760405162461bcd60e51b815260040161053890612cc2565b816113d660085490565b1161142d5760405162461bcd60e51b815260206004820152602160248201527f696e637265617365537570706c793a206e6f6e6578697374656e7420746f6b656044820152603760f91b6064820152608401610538565b6000828152600e602052604090205460ff16156114a25760405162461bcd60e51b815260206004820152602d60248201527f696e637265617365537570706c793a204d696e74696e6720666f72207661726960448201526c185b9d081a5cc818db1bdcd959609a1b6064820152608401610538565b600081116115005760405162461bcd60e51b815260206004820152602560248201527f696e637265617365537570706c793a206d757374206265206269676765722074604482015264068616e20360dc1b6064820152608401610538565b6108423383836040518060200160405280600081525061189d565b6001600160a01b03851633148061153757506115378533610456565b6115535760405162461bcd60e51b815260040161053890612ba7565b6107aa8585858585611aa9565b6005546001600160a01b0316331461158a5760405162461bcd60e51b815260040161053890612cc2565b6001600160a01b0381166115ef5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610538565b6105ee816118ba565b6001600160a01b03831633148061161457506116148333610456565b6116305760405162461bcd60e51b815260040161053890612ba7565b610a87838383611bd3565b8051610842906003906020840190612305565b60606003805461165d90612dd7565b80601f016020809104026020016040519081016040528092919081815260200182805461168990612dd7565b80156116d65780601f106116ab576101008083540402835291602001916116d6565b820191906000526020600020905b8154815290600101906020018083116116b957829003601f168201915b50505050509050919050565b81518351146117035760405162461bcd60e51b815260040161053890612cf7565b6001600160a01b0384166117295760405162461bcd60e51b815260040161053890612bf0565b3360005b845181101561182f57600085828151811061175857634e487b7160e01b600052603260045260246000fd5b60200260200101519050600085838151811061178457634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008481526001835260408082206001600160a01b038e1683529093529190912054909150818110156117d55760405162461bcd60e51b815260040161053890612c78565b60008381526001602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611814908490612d7c565b925050819055505050508061182890612e3f565b905061172d565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161187f929190612ae3565b60405180910390a4611895818787878787611bde565b505050505050565b6118a984848484611d49565b50505050565b610a87838383611d7e565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600c819055610842600980546001019055565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f00000000000000000000000000000000000000000000000000000000000000008486600060405160200161198f929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016119bc93929190612aa0565b602060405180830381600087803b1580156119d657600080fd5b505af11580156119ea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a0e91906127d5565b5060008381526020818152604080832054815180840188905280830185905230606082015260808082018390528351808303909101815260a090910190925281519183019190912086845292909152611a68906001612d7c565b60008581526020818152604091829020929092558051808301879052808201849052815180820383018152606090910190915280519101205b949350505050565b6001600160a01b038416611acf5760405162461bcd60e51b815260040161053890612bf0565b33611ae8818787611adf88611e1c565b6107aa88611e1c565b60008481526001602090815260408083206001600160a01b038a16845290915290205483811015611b2b5760405162461bcd60e51b815260040161053890612c78565b60008581526001602090815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611b6a908490612d7c565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611bca828888888888611e75565b50505050505050565b610a87838383611f3f565b6001600160a01b0384163b156118955760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611c2290899089908890889088906004016129fd565b602060405180830381600087803b158015611c3c57600080fd5b505af1925050508015611c6c575060408051601f3d908101601f19168201909252611c699181019061282e565b60015b611d1957611c78612ea6565b806308c379a01415611cb25750611c8d612ebd565b80611c985750611cb4565b8060405162461bcd60e51b81526004016105389190612b08565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610538565b6001600160e01b0319811663bc197c8160e01b14611bca5760405162461bcd60e51b815260040161053890612b1b565b611d5584848484611f72565b60008381526004602052604081208054849290611d73908490612d7c565b909155505050505050565b611d8983838361206e565b60005b82518110156118a957818181518110611db557634e487b7160e01b600052603260045260246000fd5b602002602001015160046000858481518110611de157634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254611e069190612d94565b90915550611e15905081612e3f565b9050611d8c565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611e6457634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b156118955760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611eb99089908990889088908890600401612a5b565b602060405180830381600087803b158015611ed357600080fd5b505af1925050508015611f03575060408051601f3d908101601f19168201909252611f009181019061282e565b60015b611f0f57611c78612ea6565b6001600160e01b0319811663f23a6e6160e01b14611bca5760405162461bcd60e51b815260040161053890612b1b565b611f4a838383612209565b60008281526004602052604081208054839290611f68908490612d94565b9091555050505050565b6001600160a01b038416611fd25760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610538565b33611fe381600087611adf88611e1c565b60008481526001602090815260408083206001600160a01b038916845290915281208054859290612015908490612d7c565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6291015b60405180910390a45050505050565b6001600160a01b0383166120945760405162461bcd60e51b815260040161053890612c35565b80518251146120b55760405162461bcd60e51b815260040161053890612cf7565b604080516020810190915260009081905233905b83518110156121aa5760008482815181106120f457634e487b7160e01b600052603260045260246000fd5b60200260200101519050600084838151811061212057634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008481526001835260408082206001600160a01b038c1683529093529190912054909150818110156121715760405162461bcd60e51b815260040161053890612b63565b60009283526001602090815260408085206001600160a01b038b16865290915290922091039055806121a281612e3f565b9150506120c9565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516121fb929190612ae3565b60405180910390a450505050565b6001600160a01b03831661222f5760405162461bcd60e51b815260040161053890612c35565b3361225f8185600061224087611e1c565b61224987611e1c565b5050604080516020810190915260009052505050565b60008381526001602090815260408083206001600160a01b0388168452909152902054828110156122a25760405162461bcd60e51b815260040161053890612b63565b60008481526001602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910161205f565b82805461231190612dd7565b90600052602060002090601f0160209004810192826123335760008555612379565b82601f1061234c57805160ff1916838001178555612379565b82800160010185558215612379579182015b8281111561237957825182559160200191906001019061235e565b50612385929150612389565b5090565b5b80821115612385576000815560010161238a565b600082601f8301126123ae578081fd5b813560206123bb82612d58565b6040516123c88282612e12565b8381528281019150858301600585901b870184018810156123e7578586fd5b855b85811015612405578135845292840192908401906001016123e9565b5090979650505050505050565b600082601f830112612422578081fd5b813567ffffffffffffffff81111561243c5761243c612e90565b604051612453601f8301601f191660200182612e12565b818152846020838601011115612467578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215612492578081fd5b813561249d81612f47565b9392505050565b6000602082840312156124b5578081fd5b815161249d81612f47565b600080604083850312156124d2578081fd5b82356124dd81612f47565b915060208301356124ed81612f47565b809150509250929050565b600080600080600060a0868803121561250f578081fd5b853561251a81612f47565b9450602086013561252a81612f47565b9350604086013567ffffffffffffffff80821115612546578283fd5b61255289838a0161239e565b94506060880135915080821115612567578283fd5b61257389838a0161239e565b93506080880135915080821115612588578283fd5b5061259588828901612412565b9150509295509295909350565b600080600080600060a086880312156125b9578081fd5b85356125c481612f47565b945060208601356125d481612f47565b93506040860135925060608601359150608086013567ffffffffffffffff8111156125fd578182fd5b61259588828901612412565b60008060006060848603121561261d578283fd5b833561262881612f47565b9250602084013567ffffffffffffffff80821115612644578384fd5b6126508783880161239e565b93506040860135915080821115612665578283fd5b506126728682870161239e565b9150509250925092565b6000806040838503121561268e578182fd5b823561269981612f47565b915060208301356124ed81612f5c565b600080604083850312156126bb578182fd5b82356126c681612f47565b946020939093013593505050565b6000806000606084860312156126e8578081fd5b83356126f381612f47565b95602085013595506040909401359392505050565b6000806040838503121561271a578182fd5b823567ffffffffffffffff80821115612731578384fd5b818501915085601f830112612744578384fd5b8135602061275182612d58565b60405161275e8282612e12565b8381528281019150858301600585901b870184018b101561277d578889fd5b8896505b848710156127a857803561279481612f47565b835260019690960195918301918301612781565b50965050860135925050808211156127be578283fd5b506127cb8582860161239e565b9150509250929050565b6000602082840312156127e6578081fd5b815161249d81612f5c565b60008060408385031215612803578182fd5b50508035926020909101359150565b600060208284031215612823578081fd5b813561249d81612f6a565b60006020828403121561283f578081fd5b815161249d81612f6a565b60006020828403121561285b578081fd5b813567ffffffffffffffff811115612871578182fd5b611aa184828501612412565b60006020828403121561288e578081fd5b5035919050565b6000602082840312156128a6578081fd5b5051919050565b600080604083850312156128bf578182fd5b82359150602083013567ffffffffffffffff8111156128dc578182fd5b6127cb85828601612412565b6000815180845260208085019450808401835b83811015612917578151875295820195908201906001016128fb565b509495945050505050565b6000815180845261293a816020860160208601612dab565b601f01601f19169290920160200192915050565b6000835160206129618285838901612dab565b8454918401918390600181811c908083168061297e57607f831692505b85831081141561299c57634e487b7160e01b88526022600452602488fd5b8080156129b057600181146129c1576129ed565b60ff198516885283880195506129ed565b60008b815260209020895b858110156129e55781548a8201529084019088016129cc565b505083880195505b50939a9950505050505050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612a29908301866128e8565b8281036060840152612a3b81866128e8565b90508281036080840152612a4f8185612922565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612a9590830184612922565b979650505050505050565b60018060a01b0384168152826020820152606060408201526000612ac76060830184612922565b95945050505050565b60208152600061249d60208301846128e8565b604081526000612af660408301856128e8565b8281036020840152612ac781856128e8565b60208152600061249d6020830184612922565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b828152604060208201526000611aa160408301846128e8565b600067ffffffffffffffff821115612d7257612d72612e90565b5060051b60200190565b60008219821115612d8f57612d8f612e7a565b500190565b600082821015612da657612da6612e7a565b500390565b60005b83811015612dc6578181015183820152602001612dae565b838111156118a95750506000910152565b600181811c90821680612deb57607f821691505b60208210811415612e0c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f1916810167ffffffffffffffff81118282101715612e3857612e38612e90565b6040525050565b6000600019821415612e5357612e53612e7a565b5060010190565b600082612e7557634e487b7160e01b81526012600452602481fd5b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d111561139257600481823e5160e01c90565b600060443d1015612ecb5790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715612efb57505050505090565b8285019150815181811115612f135750505050505090565b843d8701016020828501011115612f2d5750505050505090565b612f3c60208286010187612e12565b509095945050505050565b6001600160a01b03811681146105ee57600080fd5b80151581146105ee57600080fd5b6001600160e01b0319811681146105ee57600080fdfea2646970667358221220ac70008190f547c3002b4740b2de7dad747aa841c16ccd0aad04fc125957630664736f6c63430008040033000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec800000000000000000000000000004f8730e0b32b04beaa5757e5aea3aef970e5b61300000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000009426c6f6f7444726970000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054244524950000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102055760003560e01c80638da5cb5b1161011a578063af17dea6116100ad578063e985e9c51161007c578063e985e9c514610448578063e9e7e59914610484578063f242432a14610497578063f2fde38b146104aa578063f5298aca146104bd57600080fd5b8063af17dea614610410578063bd85b03914610418578063dbdff2c114610438578063e2b9e1861461044057600080fd5b806395d89b41116100e957806395d89b41146103cf57806398071fa5146103d7578063a22cb465146103ea578063a4de2f5c146103fd57600080fd5b80638da5cb5b146103995780638dc654a2146103aa57806392b5ba0b146103b257806394985ddd146103bc57600080fd5b806342619f661161019d578063610cc8991161016c578063610cc8991461032d578063628d35c9146103585780636b20c4541461036b578063715018a61461037e57806383219a8a1461038657600080fd5b806342619f66146102d95780634e1273f4146102e25780634f558e79146103025780635dd577ec1461032457600080fd5b80630e89341c116101d95780630e89341c1461027d57806324c29f94146102905780632eb2c2d6146102b357806331cf9b34146102c657600080fd5b8062fdd58e1461020a57806301ffc9a71461023057806302fe53051461025357806306fdde0314610268575b600080fd5b61021d6102183660046126a9565b6104d0565b6040519081526020015b60405180910390f35b61024361023e366004612812565b610569565b6040519015158152602001610227565b61026661026136600461284a565b6105bb565b005b6102706105f1565b6040516102279190612b08565b61027061028b36600461287d565b610683565b61024361029e36600461287d565b600e6020526000908152604090205460ff1681565b6102666102c13660046124f8565b61071a565b6102666102d43660046128ad565b6107b1565b61021d600c5481565b6102f56102f0366004612708565b610846565b6040516102279190612ad0565b61024361031036600461287d565b600090815260046020526040902054151590565b61021d600d5481565b601054610340906001600160a01b031681565b6040516001600160a01b039091168152602001610227565b61026661036636600461287d565b6109a8565b610266610379366004612609565b610a44565b610266610a8c565b6102666103943660046128ad565b610ac2565b6005546001600160a01b0316610340565b610266610b62565b60095461021d9081565b6102666103ca3660046127f1565b610ce2565b610270610d64565b6102666103e53660046127f1565b610d73565b6102666103f836600461267c565b6110da565b61027061040b36600461287d565b6111b1565b61027061124b565b61021d61042636600461287d565b60009081526004602052604090205490565b61021d611258565b610270611395565b6102436104563660046124c0565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6102666104923660046127f1565b6113a2565b6102666104a53660046125a2565b61151b565b6102666104b8366004612481565b611560565b6102666104cb3660046126d4565b6115f8565b60006001600160a01b0383166105415760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061059a57506001600160e01b031982166303a24d0760e21b145b806105b557506301ffc9a760e01b6001600160e01b03198316145b92915050565b6005546001600160a01b031633146105e55760405162461bcd60e51b815260040161053890612cc2565b6105ee8161163b565b50565b60606006805461060090612dd7565b80601f016020809104026020016040519081016040528092919081815260200182805461062c90612dd7565b80156106795780601f1061064e57610100808354040283529160200191610679565b820191906000526020600020905b81548152906001019060200180831161065c57829003601f168201915b5050505050905090565b600081815260046020526040812054606091106106db5760405162461bcd60e51b81526020600482015260166024820152752aa9249d103737b732bc34b9ba32b73a103a37b5b2b760511b6044820152606401610538565b6106e48261164e565b6000838152600f602090815260409182902091516107049392910161294e565b6040516020818303038152906040529050919050565b6001600160a01b03851633148061073657506107368533610456565b61079d5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610538565b6107aa85858585856116e2565b5050505050565b6005546001600160a01b031633146107db5760405162461bcd60e51b815260040161053890612cc2565b80600f60006107e960085490565b8152602001908152602001600020908051906020019061080a929190612305565b508115610834576108343361081e60085490565b846040518060200160405280600081525061189d565b610842600880546001019055565b5050565b606081518351146108ab5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610538565b6000835167ffffffffffffffff8111156108d557634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156108fe578160200160208202803683370190505b50905060005b84518110156109a05761096585828151811061093057634e487b7160e01b600052603260045260246000fd5b602002602001015185838151811061095857634e487b7160e01b600052603260045260246000fd5b60200260200101516104d0565b82828151811061098557634e487b7160e01b600052603260045260246000fd5b602090810291909101015261099981612e3f565b9050610904565b509392505050565b6005546001600160a01b031633146109d25760405162461bcd60e51b815260040161053890612cc2565b806109dc60085490565b11610a295760405162461bcd60e51b815260206004820152601f60248201527f636c6f73654d696e74696e673a206e6f6e6578697374656e7420746f6b656e006044820152606401610538565b6000908152600e60205260409020805460ff19166001179055565b6001600160a01b038316331480610a605750610a608333610456565b610a7c5760405162461bcd60e51b815260040161053890612ba7565b610a878383836118af565b505050565b6005546001600160a01b03163314610ab65760405162461bcd60e51b815260040161053890612cc2565b610ac060006118ba565b565b6005546001600160a01b03163314610aec5760405162461bcd60e51b815260040161053890612cc2565b81610af660085490565b11610b435760405162461bcd60e51b815260206004820152601f60248201527f456469744d657461646174613a206e6f6e6578697374656e7420746f6b656e006044820152606401610538565b6000828152600f602090815260409091208251610a8792840190612305565b6005546001600160a01b03163314610b8c5760405162461bcd60e51b815260040161053890612cc2565b7f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b031663a9059cbb610bcd6005546001600160a01b031690565b6040516370a0823160e01b81523060048201527f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316906370a082319060240160206040518083038186803b158015610c2c57600080fd5b505afa158015610c40573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c649190612895565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015610caa57600080fd5b505af1158015610cbe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ee91906127d5565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79521614610d5a5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610538565b610842828261190c565b60606007805461060090612dd7565b6005546001600160a01b03163314610d9d5760405162461bcd60e51b815260040161053890612cc2565b80610da760085490565b11610df45760405162461bcd60e51b815260206004820152601e60248201527f7069636b57696e6e6572733a206e6f6e6578697374656e7420746f6b656e00006044820152606401610538565b6000818152600e602052604090205460ff1615610e665760405162461bcd60e51b815260206004820152602a60248201527f7069636b57696e6e6572733a204d696e74696e6720666f722076617269616e74604482015269081a5cc818db1bdcd95960b21b6064820152608401610538565b600d5460095411610ece5760405162461bcd60e51b815260206004820152602c60248201527f7069636b57696e6e6572733a206e65772056524620726573756c74206e6f742060448201526b1c9958d95a5d9959081e595d60a21b6064820152608401610538565b60008267ffffffffffffffff811115610ef757634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610f20578160200160208202803683370190505b50905060005b8381101561108157611f48600c5482604051602001610f4f929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c610f729190612e5a565b610f7d906001612d7c565b828281518110610f9d57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152601054825161106f916001600160a01b031690636352211e90859085908110610fe157634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161100791815260200190565b60206040518083038186803b15801561101f57600080fd5b505afa158015611033573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105791906124a4565b8460016040518060200160405280600081525061189d565b8061107981612e3f565b915050610f26565b506001600d60008282546110959190612d7c565b9091555050600c546040517f8c35431baa7f35d761d5bbfd2611610b35915a3c91cb5a606d498686115ee16a916110cd918490612d3f565b60405180910390a1505050565b336001600160a01b03831614156111455760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610538565b3360008181526002602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600f60205260009081526040902080546111ca90612dd7565b80601f01602080910402602001604051908101604052809291908181526020018280546111f690612dd7565b80156112435780601f1061121857610100808354040283529160200191611243565b820191906000526020600020905b81548152906001019060200180831161122657829003601f168201915b505050505081565b600780546111ca90612dd7565b6005546000906001600160a01b031633146112855760405162461bcd60e51b815260040161053890612cc2565b600b546040516370a0823160e01b81523060048201527f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316906370a082319060240160206040518083038186803b1580156112e757600080fd5b505afa1580156112fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061131f9190612895565b10156113815760405162461bcd60e51b815260206004820152602b60248201527f4e6f7420656e6f756768204c494e4b202d2066696c6c20636f6e74726163742060448201526a1dda5d1a0819985d58d95d60aa1b6064820152608401610538565b61138f600a54600b5461191f565b90505b90565b600680546111ca90612dd7565b6005546001600160a01b031633146113cc5760405162461bcd60e51b815260040161053890612cc2565b816113d660085490565b1161142d5760405162461bcd60e51b815260206004820152602160248201527f696e637265617365537570706c793a206e6f6e6578697374656e7420746f6b656044820152603760f91b6064820152608401610538565b6000828152600e602052604090205460ff16156114a25760405162461bcd60e51b815260206004820152602d60248201527f696e637265617365537570706c793a204d696e74696e6720666f72207661726960448201526c185b9d081a5cc818db1bdcd959609a1b6064820152608401610538565b600081116115005760405162461bcd60e51b815260206004820152602560248201527f696e637265617365537570706c793a206d757374206265206269676765722074604482015264068616e20360dc1b6064820152608401610538565b6108423383836040518060200160405280600081525061189d565b6001600160a01b03851633148061153757506115378533610456565b6115535760405162461bcd60e51b815260040161053890612ba7565b6107aa8585858585611aa9565b6005546001600160a01b0316331461158a5760405162461bcd60e51b815260040161053890612cc2565b6001600160a01b0381166115ef5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610538565b6105ee816118ba565b6001600160a01b03831633148061161457506116148333610456565b6116305760405162461bcd60e51b815260040161053890612ba7565b610a87838383611bd3565b8051610842906003906020840190612305565b60606003805461165d90612dd7565b80601f016020809104026020016040519081016040528092919081815260200182805461168990612dd7565b80156116d65780601f106116ab576101008083540402835291602001916116d6565b820191906000526020600020905b8154815290600101906020018083116116b957829003601f168201915b50505050509050919050565b81518351146117035760405162461bcd60e51b815260040161053890612cf7565b6001600160a01b0384166117295760405162461bcd60e51b815260040161053890612bf0565b3360005b845181101561182f57600085828151811061175857634e487b7160e01b600052603260045260246000fd5b60200260200101519050600085838151811061178457634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008481526001835260408082206001600160a01b038e1683529093529190912054909150818110156117d55760405162461bcd60e51b815260040161053890612c78565b60008381526001602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611814908490612d7c565b925050819055505050508061182890612e3f565b905061172d565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161187f929190612ae3565b60405180910390a4611895818787878787611bde565b505050505050565b6118a984848484611d49565b50505050565b610a87838383611d7e565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600c819055610842600980546001019055565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79528486600060405160200161198f929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016119bc93929190612aa0565b602060405180830381600087803b1580156119d657600080fd5b505af11580156119ea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a0e91906127d5565b5060008381526020818152604080832054815180840188905280830185905230606082015260808082018390528351808303909101815260a090910190925281519183019190912086845292909152611a68906001612d7c565b60008581526020818152604091829020929092558051808301879052808201849052815180820383018152606090910190915280519101205b949350505050565b6001600160a01b038416611acf5760405162461bcd60e51b815260040161053890612bf0565b33611ae8818787611adf88611e1c565b6107aa88611e1c565b60008481526001602090815260408083206001600160a01b038a16845290915290205483811015611b2b5760405162461bcd60e51b815260040161053890612c78565b60008581526001602090815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611b6a908490612d7c565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611bca828888888888611e75565b50505050505050565b610a87838383611f3f565b6001600160a01b0384163b156118955760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611c2290899089908890889088906004016129fd565b602060405180830381600087803b158015611c3c57600080fd5b505af1925050508015611c6c575060408051601f3d908101601f19168201909252611c699181019061282e565b60015b611d1957611c78612ea6565b806308c379a01415611cb25750611c8d612ebd565b80611c985750611cb4565b8060405162461bcd60e51b81526004016105389190612b08565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610538565b6001600160e01b0319811663bc197c8160e01b14611bca5760405162461bcd60e51b815260040161053890612b1b565b611d5584848484611f72565b60008381526004602052604081208054849290611d73908490612d7c565b909155505050505050565b611d8983838361206e565b60005b82518110156118a957818181518110611db557634e487b7160e01b600052603260045260246000fd5b602002602001015160046000858481518110611de157634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254611e069190612d94565b90915550611e15905081612e3f565b9050611d8c565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611e6457634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b156118955760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611eb99089908990889088908890600401612a5b565b602060405180830381600087803b158015611ed357600080fd5b505af1925050508015611f03575060408051601f3d908101601f19168201909252611f009181019061282e565b60015b611f0f57611c78612ea6565b6001600160e01b0319811663f23a6e6160e01b14611bca5760405162461bcd60e51b815260040161053890612b1b565b611f4a838383612209565b60008281526004602052604081208054839290611f68908490612d94565b9091555050505050565b6001600160a01b038416611fd25760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610538565b33611fe381600087611adf88611e1c565b60008481526001602090815260408083206001600160a01b038916845290915281208054859290612015908490612d7c565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6291015b60405180910390a45050505050565b6001600160a01b0383166120945760405162461bcd60e51b815260040161053890612c35565b80518251146120b55760405162461bcd60e51b815260040161053890612cf7565b604080516020810190915260009081905233905b83518110156121aa5760008482815181106120f457634e487b7160e01b600052603260045260246000fd5b60200260200101519050600084838151811061212057634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008481526001835260408082206001600160a01b038c1683529093529190912054909150818110156121715760405162461bcd60e51b815260040161053890612b63565b60009283526001602090815260408085206001600160a01b038b16865290915290922091039055806121a281612e3f565b9150506120c9565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516121fb929190612ae3565b60405180910390a450505050565b6001600160a01b03831661222f5760405162461bcd60e51b815260040161053890612c35565b3361225f8185600061224087611e1c565b61224987611e1c565b5050604080516020810190915260009052505050565b60008381526001602090815260408083206001600160a01b0388168452909152902054828110156122a25760405162461bcd60e51b815260040161053890612b63565b60008481526001602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910161205f565b82805461231190612dd7565b90600052602060002090601f0160209004810192826123335760008555612379565b82601f1061234c57805160ff1916838001178555612379565b82800160010185558215612379579182015b8281111561237957825182559160200191906001019061235e565b50612385929150612389565b5090565b5b80821115612385576000815560010161238a565b600082601f8301126123ae578081fd5b813560206123bb82612d58565b6040516123c88282612e12565b8381528281019150858301600585901b870184018810156123e7578586fd5b855b85811015612405578135845292840192908401906001016123e9565b5090979650505050505050565b600082601f830112612422578081fd5b813567ffffffffffffffff81111561243c5761243c612e90565b604051612453601f8301601f191660200182612e12565b818152846020838601011115612467578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215612492578081fd5b813561249d81612f47565b9392505050565b6000602082840312156124b5578081fd5b815161249d81612f47565b600080604083850312156124d2578081fd5b82356124dd81612f47565b915060208301356124ed81612f47565b809150509250929050565b600080600080600060a0868803121561250f578081fd5b853561251a81612f47565b9450602086013561252a81612f47565b9350604086013567ffffffffffffffff80821115612546578283fd5b61255289838a0161239e565b94506060880135915080821115612567578283fd5b61257389838a0161239e565b93506080880135915080821115612588578283fd5b5061259588828901612412565b9150509295509295909350565b600080600080600060a086880312156125b9578081fd5b85356125c481612f47565b945060208601356125d481612f47565b93506040860135925060608601359150608086013567ffffffffffffffff8111156125fd578182fd5b61259588828901612412565b60008060006060848603121561261d578283fd5b833561262881612f47565b9250602084013567ffffffffffffffff80821115612644578384fd5b6126508783880161239e565b93506040860135915080821115612665578283fd5b506126728682870161239e565b9150509250925092565b6000806040838503121561268e578182fd5b823561269981612f47565b915060208301356124ed81612f5c565b600080604083850312156126bb578182fd5b82356126c681612f47565b946020939093013593505050565b6000806000606084860312156126e8578081fd5b83356126f381612f47565b95602085013595506040909401359392505050565b6000806040838503121561271a578182fd5b823567ffffffffffffffff80821115612731578384fd5b818501915085601f830112612744578384fd5b8135602061275182612d58565b60405161275e8282612e12565b8381528281019150858301600585901b870184018b101561277d578889fd5b8896505b848710156127a857803561279481612f47565b835260019690960195918301918301612781565b50965050860135925050808211156127be578283fd5b506127cb8582860161239e565b9150509250929050565b6000602082840312156127e6578081fd5b815161249d81612f5c565b60008060408385031215612803578182fd5b50508035926020909101359150565b600060208284031215612823578081fd5b813561249d81612f6a565b60006020828403121561283f578081fd5b815161249d81612f6a565b60006020828403121561285b578081fd5b813567ffffffffffffffff811115612871578182fd5b611aa184828501612412565b60006020828403121561288e578081fd5b5035919050565b6000602082840312156128a6578081fd5b5051919050565b600080604083850312156128bf578182fd5b82359150602083013567ffffffffffffffff8111156128dc578182fd5b6127cb85828601612412565b6000815180845260208085019450808401835b83811015612917578151875295820195908201906001016128fb565b509495945050505050565b6000815180845261293a816020860160208601612dab565b601f01601f19169290920160200192915050565b6000835160206129618285838901612dab565b8454918401918390600181811c908083168061297e57607f831692505b85831081141561299c57634e487b7160e01b88526022600452602488fd5b8080156129b057600181146129c1576129ed565b60ff198516885283880195506129ed565b60008b815260209020895b858110156129e55781548a8201529084019088016129cc565b505083880195505b50939a9950505050505050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612a29908301866128e8565b8281036060840152612a3b81866128e8565b90508281036080840152612a4f8185612922565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612a9590830184612922565b979650505050505050565b60018060a01b0384168152826020820152606060408201526000612ac76060830184612922565b95945050505050565b60208152600061249d60208301846128e8565b604081526000612af660408301856128e8565b8281036020840152612ac781856128e8565b60208152600061249d6020830184612922565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b828152604060208201526000611aa160408301846128e8565b600067ffffffffffffffff821115612d7257612d72612e90565b5060051b60200190565b60008219821115612d8f57612d8f612e7a565b500190565b600082821015612da657612da6612e7a565b500390565b60005b83811015612dc6578181015183820152602001612dae565b838111156118a95750506000910152565b600181811c90821680612deb57607f821691505b60208210811415612e0c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f1916810167ffffffffffffffff81118282101715612e3857612e38612e90565b6040525050565b6000600019821415612e5357612e53612e7a565b5060010190565b600082612e7557634e487b7160e01b81526012600452602481fd5b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d111561139257600481823e5160e01c90565b600060443d1015612ecb5790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715612efb57505050505090565b8285019150815181811115612f135750505050505090565b843d8701016020828501011115612f2d5750505050505090565b612f3c60208286010187612e12565b509095945050505050565b6001600160a01b03811681146105ee57600080fd5b80151581146105ee57600080fd5b6001600160e01b0319811681146105ee57600080fdfea2646970667358221220ac70008190f547c3002b4740b2de7dad747aa841c16ccd0aad04fc125957630664736f6c63430008040033

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

000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec800000000000000000000000000004f8730e0b32b04beaa5757e5aea3aef970e5b61300000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000009426c6f6f7444726970000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054244524950000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _vrfCoordinator (address): 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952
Arg [1] : _linkToken (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [2] : _keyHash (bytes32): 0xaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [3] : _fee (uint256): 2000000000000000000
Arg [4] : _blootContract (address): 0x4F8730E0b32B04beaa5757e5aea3aeF970E5B613
Arg [5] : _name (string): BlootDrip
Arg [6] : _symbol (string): BDRIP

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [1] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [2] : aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [3] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
Arg [4] : 0000000000000000000000004f8730e0b32b04beaa5757e5aea3aef970e5b613
Arg [5] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [8] : 426c6f6f74447269700000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [10] : 4244524950000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.