ETH Price: $2,440.36 (+3.50%)

Token

Bears vs Bulls (BVB)
 

Overview

Max Total Supply

447 BVB

Holders

170

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 BVB
0x522a46c88ff0b227b0ff4f1f9a7cfba090094850
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:
BearsVsBulls

Compiler Version
v0.8.1+commit.df193b15

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : BearsVsBulls.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.7.0 <0.9.0;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import '@openzeppelin/contracts/utils/math/SafeMath.sol';
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";

contract BearsVsBulls is ERC721Enumerable, Ownable, VRFConsumerBase {
  using Strings for uint256;
  using SafeMath for uint256;
  using MerkleProof for bytes32[];

  string public baseURI;
  string public bullBaseURI;
  string public wolfBaseURI;
  bool public paused = true;
  bool public revealed = false;
  bool public onlyWhitelisted = false;
  bool public freeWolf = true;
  uint16 public maxSupply = 10000;
  uint16 public maxMintAmount = 15;
  uint16 public bearCount;
  uint16 public bullCount;
  uint256 public bearCost = 0.042 ether;
  uint256 public bullCost = 0.069 ether;
  uint256 public randomResult;
  uint256 internal fee;
  uint256[] public _bearTokens;
  uint256[] public _bullTokens;
  address[5] public teamAddresses;
  mapping(address => uint256) public addressMintedBalance;
  mapping(uint256 => uint256) private _typeIndex;
  bytes32 internal keyHash;
  bytes32 internal whitelistMerkleRoot;

  constructor( string memory _initBaseURI, string memory _initBullBaseURI, string memory _initWolfBaseURI ) 
    ERC721('Bears vs Bulls', 'BVB') 
    VRFConsumerBase(
            0xf0d54349aDdcf704F77AE15b96510dEA15cb7952, // VRF Coordinator
            0x514910771AF9Ca656af840dff83E8264EcF986CA  // LINK Token
    ) {
    string[3] memory uris = [_initBaseURI, _initBullBaseURI, _initWolfBaseURI];
    setBaseURIs( uris );
    keyHash = 0xAA77729D3466CA35AE8D28B3BBAC7CC36A5031EFDC430821C02BC31A238AF445;
    fee = 2 * 10 ** 18; // 2 LINK
  }

  // internal
  function _baseURI() internal view virtual override returns (string memory) {
    return baseURI;
  }
  
  // public
  // Mint - if not during presale, send empty [] as proof  
  function mint(uint16 _bearMintAmount, uint16 _bullMintAmount, bytes32[] memory proof) public payable {
    require(!paused, "Minting paused");
    uint256 supply = totalSupply();
    uint16 _mintAmount = _bearMintAmount + _bullMintAmount;
    require(_mintAmount > 0, "Mint at least 1 NFT");
    require(_mintAmount <= maxMintAmount, "Max mint amount per transaction exceeded");
    require(supply + _mintAmount <= maxSupply, "Max NFT limit exceeded");
    
    uint256 mintValue = (_bearMintAmount * bearCost) + (_bullMintAmount * bullCost);
    if (msg.sender != owner()) {
        if(onlyWhitelisted == true) {
            require(isAddressWhitelisted(proof, msg.sender), "User is not on the Whitelist");
            require(addressMintedBalance[msg.sender] + _mintAmount <= 3, "Max NFT per address exceeded");
        }
        require(msg.value >= mintValue, "Insufficient funds");
    }
    
    // Mint Bears
    if (_bearMintAmount > 0) {
      for (uint256 i = 1; i <= _bearMintAmount; i++) {
          _safeMint(msg.sender, supply + i);
          _typeIndex[supply + i] = 1;
          _bearTokens.push(supply + i);
      }
      bearCount += _bearMintAmount;
      addressMintedBalance[msg.sender] += _bearMintAmount;
      supply += _bearMintAmount;
    }
    
    // Mint Bulls
    if (_bullMintAmount > 0) {
      for (uint256 i = 1; i <= _bullMintAmount; i++) {
        _safeMint(msg.sender, supply + i);
        _typeIndex[supply + i] = 2;
        _bullTokens.push(supply + i);
      }
      bullCount += _bullMintAmount;
      addressMintedBalance[msg.sender] += _bullMintAmount;
      supply += _bullMintAmount;
    }
    
    // Buy 3, get 1 wolf free...
    if (freeWolf == true && _mintAmount % 3 == 0) {
        uint256 loops = _mintAmount / 3;
        for (uint256 i = 1; i <= loops; i++) {
            _safeMint(msg.sender, supply + i);
            _typeIndex[supply + i] = 3;
            _bearTokens.push(supply + i);
            _bullTokens.push(supply + i);
        }
    }
  }
  
  function totalBearSupply() public view returns (uint256) {
    return bearCount;
  }

  function totalBullSupply() public view returns (uint256) {
    return bullCount;
  }

  function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
    require(
      _exists(tokenId),
      "ERC721Metadata: URI query for nonexistent token"
    );
    
    if (!revealed) {
        return "https://www.bearsvsbulls.com/prereveal.json";
    }

    // default to bear
    string memory currentBaseURI = _baseURI();
    
    if  ( _typeIndex[tokenId] == 2 ) {
        // it's a bull - switch base URI
        currentBaseURI = bullBaseURI;
    } else if ( _typeIndex[tokenId] == 3 ) {
        // it's a wolf - switch base URI
        currentBaseURI = wolfBaseURI;
    }
    return bytes(currentBaseURI).length > 0
        ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), ".json"))
        : "";
  }

  function isAddressWhitelisted(bytes32[] memory proof, address _address) public view returns (bool) {
    return proof.verify(whitelistMerkleRoot, keccak256(abi.encodePacked(_address)));
  }

  //only owner
  function setWhitelistMerkleRoot(bytes32 _whitelistMerkleRoot) public onlyOwner {
    whitelistMerkleRoot = _whitelistMerkleRoot;
  }
    
  function getRandomNumber() public onlyOwner() returns (bytes32 requestId) {
    require(LINK.balanceOf(address(this)) >= fee, "Not enough LINK");
    return requestRandomness(keyHash, fee);
  }

  function fulfillRandomness(bytes32 requestId, uint256 randomness) internal override {
    randomResult = randomness;
  }
  
  function selectWinner(uint256 _type) public view onlyOwner() returns (uint256) {
    uint256 totalNum = bearCount;
    if (_type == 2) {
        totalNum = bullCount;
    }
    uint256 randomNum = (randomResult % totalNum);
      
    if (_type == 2) {
        return _bullTokens[randomNum];
    }
    return _bearTokens[randomNum];
  }
  
  function weeklyDraw(uint256 _type) public payable onlyOwner() {
    require(totalSupply() >= 1000, "Draws not started");
    uint256 winnerToken = selectWinner(_type);
      
    address winner = ownerOf(_bearTokens[winnerToken]);
    uint256 prize = bearCost;
    if (_type == 2) {
        winner = ownerOf(_bullTokens[winnerToken]);
        prize = bullCost;
    }
    
    uint256 jackpot = prize;
    if (totalSupply() >= 2500 && totalSupply() < 5000) {
        jackpot = (prize * 5) / 2;
    } else if (totalSupply() >= 5000 && totalSupply() < 7500) {
        jackpot = prize * 5;
    } else if (totalSupply() >= 7500 && totalSupply() < 10000) {
        jackpot = (prize * 15) / 2;
    } else if (totalSupply() == maxSupply) {
        jackpot = prize * 10;
    }
    
    (bool sendPrize, ) = payable(winner).call{value: jackpot}("");

    require(sendPrize, "ERR");
  }
  
  function setCosts(uint256[2] calldata _newCost) public onlyOwner() {
    bearCost = _newCost[0];
    bullCost = _newCost[1];
  }

  function setmaxMintAmount(uint16 _newmaxMintAmount) public onlyOwner() {
    maxMintAmount = _newmaxMintAmount;
  }
  
  function setmaxSupply(uint16 _newmaxSupply) public onlyOwner() {
    maxSupply = _newmaxSupply;
  }

  function setBaseURIs(string[3] memory _newBaseURIs) public onlyOwner {
    baseURI = _newBaseURIs[0];
    bullBaseURI = _newBaseURIs[1];
    wolfBaseURI = _newBaseURIs[2];
  }

  function pause(bool _state) public onlyOwner {
    paused = _state;
  }
  
  function reveal(bool _state) public onlyOwner {
    revealed = _state;
  }
  
  function setOnlyWhitelisted(bool _state) public onlyOwner {
    onlyWhitelisted = _state;
  }
  
  function setFreeWolf(bool _state) public onlyOwner {
    freeWolf = _state;
  }
  
  function setTeamAddresses(address[2] calldata _members) public onlyOwner {
    delete teamAddresses;
    teamAddresses = _members;
  }
 
  function withdraw() public payable onlyOwner {
    uint256 _onePercent = address(this).balance.div(100);
    address team1 = 0xA4724c7393E2D361E394fDf9f7F5D6BCF644d04A;
    address team2 = 0xe2872d388f73982fb7B4016965194c46604ff09a;
    address team5 = 0xa361b780537304d99D5A7C7e53DBbA50Ee9B761E;
    (bool team1Success, ) = payable(team1).call{value: _onePercent.mul(59)}("");
    (bool team2Success, ) = payable(team2).call{value: _onePercent.mul(3)}("");
    (bool team3Success, ) = payable(teamAddresses[0]).call{value: _onePercent.mul(1)}("");
    (bool team4Success, ) = payable(teamAddresses[1]).call{value: _onePercent.mul(2)}("");
    (bool team5Success, ) = payable(team5).call{value: _onePercent.mul(20)}("");

    require(team1Success, "ERR1");
    require(team2Success, "ERR2");
    require(team3Success, "ERR3");
    require(team4Success, "ERR4");
    require(team5Success, "ERR5");
  }
}

File 2 of 18 : 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 3 of 18 : MerkleProof.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        bytes32 computedHash = leaf;

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

File 4 of 18 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

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

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

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

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

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

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

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

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

File 5 of 18 : 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 6 of 18 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

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

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

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

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 7 of 18 : 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 8 of 18 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @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.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

File 9 of 18 : 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 10 of 18 : 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 11 of 18 : 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 12 of 18 : 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 13 of 18 : 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 14 of 18 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 15 of 18 : 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 16 of 18 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 17 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 18 of 18 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_initBaseURI","type":"string"},{"internalType":"string","name":"_initBullBaseURI","type":"string"},{"internalType":"string","name":"_initWolfBaseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","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":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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_bearTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_bullTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMintedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bearCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bearCount","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bullBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bullCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bullCount","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeWolf","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRandomNumber","outputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"address","name":"_address","type":"address"}],"name":"isAddressWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_bearMintAmount","type":"uint16"},{"internalType":"uint16","name":"_bullMintAmount","type":"uint16"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onlyWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"bool","name":"_state","type":"bool"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_type","type":"uint256"}],"name":"selectWinner","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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[3]","name":"_newBaseURIs","type":"string[3]"}],"name":"setBaseURIs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[2]","name":"_newCost","type":"uint256[2]"}],"name":"setCosts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setFreeWolf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setOnlyWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[2]","name":"_members","type":"address[2]"}],"name":"setTeamAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_whitelistMerkleRoot","type":"bytes32"}],"name":"setWhitelistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_newmaxMintAmount","type":"uint16"}],"name":"setmaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_newmaxSupply","type":"uint16"}],"name":"setmaxSupply","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"teamAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBearSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBullSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_type","type":"uint256"}],"name":"weeklyDraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"wolfBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60c0604052600f80546301000000600160ff199092169190911763ffffff0019161761ffff60201b1916652710000000001761ffff60301b1916660f000000000000179055669536c70891000060105566f52322698080006011553480156200006757600080fd5b50604051620044d8380380620044d88339810160408190526200008a916200040f565b604080518082018252600e81526d42656172732076732042756c6c7360901b602080830191825283518085019094526003845262212b2160e91b90840152815173f0d54349addcf704f77ae15b96510dea15cb79529373514910771af9ca656af840dff83e8264ecf986ca939290916200010791600091620002b6565b5080516200011d906001906020840190620002b6565b5050506200013a62000134620001b160201b60201c565b620001b5565b6001600160601b0319606092831b811660a05290821b16608052604080519182018152848252602082018490528101829052620001778162000207565b50507faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445601d555050671bc16d674ec8000060135562000524565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b62000211620001b1565b6001600160a01b031662000224620002a7565b6001600160a01b031614620002565760405162461bcd60e51b81526004016200024d906200049c565b60405180910390fd5b805180516200026e91600c91602090910190620002b6565b5060208082015180516200028792600d920190620002b6565b5060408101518051620002a391600e91602090910190620002b6565b5050565b600a546001600160a01b031690565b828054620002c490620004d1565b90600052602060002090601f016020900481019282620002e8576000855562000333565b82601f106200030357805160ff191683800117855562000333565b8280016001018555821562000333579182015b828111156200033357825182559160200191906001019062000316565b506200034192915062000345565b5090565b5b8082111562000341576000815560010162000346565b600082601f8301126200036d578081fd5b81516001600160401b03808211156200038a576200038a6200050e565b604051601f8301601f19908116603f01168101908282118183101715620003b557620003b56200050e565b81604052838152602092508683858801011115620003d1578485fd5b8491505b83821015620003f45785820183015181830184015290820190620003d5565b838211156200040557848385830101525b9695505050505050565b60008060006060848603121562000424578283fd5b83516001600160401b03808211156200043b578485fd5b62000449878388016200035c565b945060208601519150808211156200045f578384fd5b6200046d878388016200035c565b9350604086015191508082111562000483578283fd5b5062000492868287016200035c565b9150509250925092565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600281046001821680620004e657607f821691505b602082108114156200050857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160601c613f7a6200055e60003960008181611a1a015261282a01526000818161210001526127fb0152613f7a6000f3fe60806040526004361061036b5760003560e01c80636024d761116101c6578063a22cb465116100f7578063d5abeb0111610095578063e35672de1161006f578063e35672de14610923578063e985e9c514610943578063f2fde38b14610963578063fa098512146109835761036b565b8063d5abeb01146108e4578063dbdff2c1146108f9578063dd32ed4a1461090e5761036b565b8063b5f1da1d116100d1578063b5f1da1d14610864578063b88d4fde14610884578063bd32fb66146108a4578063c87b56dd146108c45761036b565b8063a22cb4651461081c578063b232fab51461083c578063b4793721146108515761036b565b80639087aa6e11610164578063940cd05b1161013e578063940cd05b146107b257806394985ddd146107d257806395d89b41146107f25780639c70b512146108075761036b565b80639087aa6e1461075d57806390ede4cb1461077d57806393a45eee1461079d5761036b565b806370a08231116101a057806370a08231146106f3578063715018a6146107135780637fb62b25146107285780638da5cb5b146107485761036b565b80636024d7611461069e5780636352211e146106be5780636c0360eb146106de5761036b565b806327357acb116102a057806342842e0e1161023e578063516d60bc11610218578063516d60bc1461063f57806351830227146106545780635c975abb146106695780635ee1a1b81461067e5761036b565b806342842e0e146105df5780634c524be4146105ff5780634f6ccce71461061f5761036b565b80633c9527641161027a5780633c9527641461058d5780633ccfd60b146105ad57806340400b22146105b557806342619f66146105ca5761036b565b806327357acb146105435780632f745c591461055857806339a10804146105785761036b565b806312f6672b1161030d578063239c70ae116102e7578063239c70ae146104c157806323b872dd146104e35780632419217e1461050357806325d4cb42146105235761036b565b806312f6672b1461046a57806318160ddd1461047f57806318cae269146104a15761036b565b8063081812fc11610349578063081812fc146103ea578063089567e814610417578063095ea7b31461042a5780630996896b1461044a5761036b565b806301ffc9a71461037057806302329a29146103a657806306fdde03146103c8575b600080fd5b34801561037c57600080fd5b5061039061038b366004613346565b610998565b60405161039d9190613526565b60405180910390f35b3480156103b257600080fd5b506103c66103c13660046132d5565b6109c5565b005b3480156103d457600080fd5b506103dd610a20565b60405161039d919061355e565b3480156103f657600080fd5b5061040a61040536600461330d565b610ab2565b60405161039d91906134a5565b6103c6610425366004613398565b610af5565b34801561043657600080fd5b506103c66104453660046131be565b610f9b565b34801561045657600080fd5b50610390610465366004613202565b611033565b34801561047657600080fd5b5061039061107b565b34801561048b57600080fd5b5061049461108b565b60405161039d9190613531565b3480156104ad57600080fd5b506104946104bc366004613088565b611091565b3480156104cd57600080fd5b506104d66110a3565b60405161039d9190613d13565b3480156104ef57600080fd5b506103c66104fe3660046130d4565b6110b4565b34801561050f57600080fd5b5061040a61051e36600461330d565b6110ec565b34801561052f57600080fd5b5061049461053e36600461330d565b61110c565b34801561054f57600080fd5b5061049461112d565b34801561056457600080fd5b506104946105733660046131be565b611133565b34801561058457600080fd5b50610494611185565b34801561059957600080fd5b506103c66105a83660046132d5565b611196565b6103c66111f1565b3480156105c157600080fd5b506103dd61152a565b3480156105d657600080fd5b506104946115b8565b3480156105eb57600080fd5b506103c66105fa3660046130d4565b6115be565b34801561060b57600080fd5b5061049461061a36600461330d565b6115d9565b34801561062b57600080fd5b5061049461063a36600461330d565b6116c6565b34801561064b57600080fd5b506104d6611721565b34801561066057600080fd5b50610390611732565b34801561067557600080fd5b50610390611740565b34801561068a57600080fd5b506103c661069936600461337e565b611749565b3480156106aa57600080fd5b506104946106b936600461330d565b6117ac565b3480156106ca57600080fd5b5061040a6106d936600461330d565b6117bc565b3480156106ea57600080fd5b506103dd6117f1565b3480156106ff57600080fd5b5061049461070e366004613088565b6117fe565b34801561071f57600080fd5b506103c6611842565b34801561073457600080fd5b506103c66107433660046131e7565b61188d565b34801561075457600080fd5b5061040a6118da565b34801561076957600080fd5b506103c66107783660046131e7565b6118e9565b34801561078957600080fd5b506103c661079836600461337e565b611945565b3480156107a957600080fd5b506103dd6119a9565b3480156107be57600080fd5b506103c66107cd3660046132d5565b6119b6565b3480156107de57600080fd5b506103c66107ed366004613325565b611a0f565b3480156107fe57600080fd5b506103dd611a61565b34801561081357600080fd5b50610390611a70565b34801561082857600080fd5b506103c6610837366004613188565b611a7f565b34801561084857600080fd5b50610494611b4d565b6103c661085f36600461330d565b611b53565b34801561087057600080fd5b506103c661087f366004613245565b611d89565b34801561089057600080fd5b506103c661089f36600461310f565b611e0f565b3480156108b057600080fd5b506103c66108bf36600461330d565b611e4e565b3480156108d057600080fd5b506103dd6108df36600461330d565b611e92565b3480156108f057600080fd5b506104d6612093565b34801561090557600080fd5b506104946120a5565b34801561091a57600080fd5b506104946121b6565b34801561092f57600080fd5b506103c661093e3660046132d5565b6121c7565b34801561094f57600080fd5b5061039061095e3660046130a2565b612224565b34801561096f57600080fd5b506103c661097e366004613088565b612252565b34801561098f57600080fd5b506104d66122c3565b60006001600160e01b0319821663780e9d6360e01b14806109bd57506109bd826122d4565b90505b919050565b6109cd612314565b6001600160a01b03166109de6118da565b6001600160a01b031614610a0d5760405162461bcd60e51b8152600401610a0490613a2e565b60405180910390fd5b600f805460ff1916911515919091179055565b606060008054610a2f90613e28565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5b90613e28565b8015610aa85780601f10610a7d57610100808354040283529160200191610aa8565b820191906000526020600020905b815481529060010190602001808311610a8b57829003601f168201915b5050505050905090565b6000610abd82612318565b610ad95760405162461bcd60e51b8152600401610a04906139e2565b506000908152600460205260409020546001600160a01b031690565b600f5460ff1615610b185760405162461bcd60e51b8152600401610a049061360e565b6000610b2261108b565b90506000610b308486613d53565b905060008161ffff1611610b565760405162461bcd60e51b8152600401610a04906136fb565b600f5461ffff600160301b90910481169082161115610b875760405162461bcd60e51b8152600401610a04906136b3565b600f5461ffff640100000000909104811690610ba590831684613d79565b1115610bc35760405162461bcd60e51b8152600401610a049061397d565b60006011548561ffff16610bd79190613dc6565b601054610be89061ffff8916613dc6565b610bf29190613d79565b9050610bfc6118da565b6001600160a01b0316336001600160a01b031614610cb057600f5462010000900460ff16151560011415610c9057610c348433611033565b610c505760405162461bcd60e51b8152600401610a0490613ca0565b336000908152601b6020526040902054600390610c729061ffff851690613d79565b1115610c905760405162461bcd60e51b8152600401610a0490613afb565b80341015610cb05760405162461bcd60e51b8152600401610a049061381a565b61ffff861615610dba5760015b8661ffff168111610d3057610cdb33610cd68387613d79565b612335565b6001601c6000610ceb8488613d79565b81526020810191909152604001600020556014610d088286613d79565b8154600181018355600092835260209092209091015580610d2881613e63565b915050610cbd565b5085600f60088282829054906101000a900461ffff16610d509190613d53565b92506101000a81548161ffff021916908361ffff1602179055508561ffff16601b6000336001600160a01b03166001600160a01b031681526020019081526020016000206000828254610da39190613d79565b90915550610db7905061ffff871684613d79565b92505b61ffff851615610ebf5760015b8561ffff168111610e3557610de033610cd68387613d79565b6002601c6000610df08488613d79565b81526020810191909152604001600020556015610e0d8286613d79565b8154600181018355600092835260209092209091015580610e2d81613e63565b915050610dc7565b5084600f600a8282829054906101000a900461ffff16610e559190613d53565b92506101000a81548161ffff021916908361ffff1602179055508461ffff16601b6000336001600160a01b03166001600160a01b031681526020019081526020016000206000828254610ea89190613d79565b90915550610ebc905061ffff861684613d79565b92505b600f546301000000900460ff1615156001148015610ee95750610ee3600383613e7e565b61ffff16155b15610f93576000610efb600384613d91565b61ffff16905060015b818111610f9057610f1933610cd68388613d79565b6003601c6000610f298489613d79565b81526020810191909152604001600020556014610f468287613d79565b815460018101835560009283526020909220909101556015610f688287613d79565b8154600181018355600092835260209092209091015580610f8881613e63565b915050610f04565b50505b505050505050565b6000610fa6826117bc565b9050806001600160a01b0316836001600160a01b03161415610fda5760405162461bcd60e51b8152600401610a0490613b86565b806001600160a01b0316610fec612314565b6001600160a01b0316148061100857506110088161095e612314565b6110245760405162461bcd60e51b8152600401610a049061388d565b61102e838361234f565b505050565b6000611072601e548360405160200161104c9190613438565b60405160208183030381529060405280519060200120856123bd9092919063ffffffff16565b90505b92915050565b600f546301000000900460ff1681565b60085490565b601b6020526000908152604090205481565b600f54600160301b900461ffff1681565b6110c56110bf612314565b82612478565b6110e15760405162461bcd60e51b8152600401610a0490613be5565b61102e8383836124fd565b601681600581106110fc57600080fd5b01546001600160a01b0316905081565b6015818154811061111c57600080fd5b600091825260209091200154905081565b60115481565b600061113e836117fe565b821061115c5760405162461bcd60e51b8152600401610a0490613571565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600f54600160401b900461ffff1690565b61119e612314565b6001600160a01b03166111af6118da565b6001600160a01b0316146111d55760405162461bcd60e51b8152600401610a0490613a2e565b600f8054911515620100000262ff000019909216919091179055565b6111f9612314565b6001600160a01b031661120a6118da565b6001600160a01b0316146112305760405162461bcd60e51b8152600401610a0490613a2e565b600061123d47606461262a565b905073a4724c7393e2d361e394fdf9f7f5d6bcf644d04a73e2872d388f73982fb7b4016965194c46604ff09a73a361b780537304d99d5a7c7e53dbba50ee9b761e60008361128c86603b612636565b604051611298906134a2565b60006040518083038185875af1925050503d80600081146112d5576040519150601f19603f3d011682016040523d82523d6000602084013e6112da565b606091505b50909150600090506001600160a01b0384166112f7876003612636565b604051611303906134a2565b60006040518083038185875af1925050503d8060008114611340576040519150601f19603f3d011682016040523d82523d6000602084013e611345565b606091505b50506016549091506000906001600160a01b0316611364886001612636565b604051611370906134a2565b60006040518083038185875af1925050503d80600081146113ad576040519150601f19603f3d011682016040523d82523d6000602084013e6113b2565b606091505b50506017549091506000906001600160a01b03166113d1896002612636565b6040516113dd906134a2565b60006040518083038185875af1925050503d806000811461141a576040519150601f19603f3d011682016040523d82523d6000602084013e61141f565b606091505b50909150600090506001600160a01b03861661143c8a6014612636565b604051611448906134a2565b60006040518083038185875af1925050503d8060008114611485576040519150601f19603f3d011682016040523d82523d6000602084013e61148a565b606091505b50509050846114ab5760405162461bcd60e51b8152600401610a0490613bc7565b836114c85760405162461bcd60e51b8152600401610a049061386f565b826114e55760405162461bcd60e51b8152600401610a0490613cf5565b816115025760405162461bcd60e51b8152600401610a0490613cd7565b8061151f5760405162461bcd60e51b8152600401610a0490613c36565b505050505050505050565b600d805461153790613e28565b80601f016020809104026020016040519081016040528092919081815260200182805461156390613e28565b80156115b05780601f10611585576101008083540402835291602001916115b0565b820191906000526020600020905b81548152906001019060200180831161159357829003601f168201915b505050505081565b60125481565b61102e83838360405180602001604052806000815250611e0f565b60006115e3612314565b6001600160a01b03166115f46118da565b6001600160a01b03161461161a5760405162461bcd60e51b8152600401610a0490613a2e565b600f54600160401b900461ffff1660028314156116415750600f54600160501b900461ffff165b6000816012546116519190613e9f565b90508360021415611691576015818154811061167d57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154925050506109c0565b601481815481106116b257634e487b7160e01b600052603260045260246000fd5b906000526020600020015492505050919050565b60006116d061108b565b82106116ee5760405162461bcd60e51b8152600401610a0490613c54565b6008828154811061170f57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600f54600160501b900461ffff1681565b600f54610100900460ff1681565b600f5460ff1681565b611751612314565b6001600160a01b03166117626118da565b6001600160a01b0316146117885760405162461bcd60e51b8152600401610a0490613a2e565b600f805461ffff9092166401000000000265ffff0000000019909216919091179055565b6014818154811061111c57600080fd5b6000818152600260205260408120546001600160a01b0316806109bd5760405162461bcd60e51b8152600401610a0490613934565b600c805461153790613e28565b60006001600160a01b0382166118265760405162461bcd60e51b8152600401610a04906138ea565b506001600160a01b031660009081526003602052604090205490565b61184a612314565b6001600160a01b031661185b6118da565b6001600160a01b0316146118815760405162461bcd60e51b8152600401610a0490613a2e565b61188b6000612642565b565b611895612314565b6001600160a01b03166118a66118da565b6001600160a01b0316146118cc5760405162461bcd60e51b8152600401610a0490613a2e565b803560105560200135601155565b600a546001600160a01b031690565b6118f1612314565b6001600160a01b03166119026118da565b6001600160a01b0316146119285760405162461bcd60e51b8152600401610a0490613a2e565b61193460166000612e72565b6119416016826002612e95565b5050565b61194d612314565b6001600160a01b031661195e6118da565b6001600160a01b0316146119845760405162461bcd60e51b8152600401610a0490613a2e565b600f805461ffff909216600160301b0267ffff00000000000019909216919091179055565b600e805461153790613e28565b6119be612314565b6001600160a01b03166119cf6118da565b6001600160a01b0316146119f55760405162461bcd60e51b8152600401610a0490613a2e565b600f80549115156101000261ff0019909216919091179055565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614611a575760405162461bcd60e51b8152600401610a0490613b32565b6119418282612694565b606060018054610a2f90613e28565b600f5462010000900460ff1681565b611a87612314565b6001600160a01b0316826001600160a01b03161415611ab85760405162461bcd60e51b8152600401610a049061376c565b8060056000611ac5612314565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611b09612314565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b419190613526565b60405180910390a35050565b60105481565b611b5b612314565b6001600160a01b0316611b6c6118da565b6001600160a01b031614611b925760405162461bcd60e51b8152600401610a0490613a2e565b6103e8611b9d61108b565b1015611bbb5760405162461bcd60e51b8152600401610a04906137a3565b6000611bc6826115d9565b90506000611bfe60148381548110611bee57634e487b7160e01b600052603260045260246000fd5b90600052602060002001546117bc565b6010549091506002841415611c3957611c3160158481548110611bee57634e487b7160e01b600052603260045260246000fd5b915060115490505b806109c4611c4561108b565b10158015611c5b5750611388611c5961108b565b105b15611c7e576002611c6d836005613dc6565b611c779190613db2565b9050611d0d565b611388611c8961108b565b10158015611c9f5750611d4c611c9d61108b565b105b15611caf57611c77826005613dc6565b611d4c611cba61108b565b10158015611cd05750612710611cce61108b565b105b15611ce2576002611c6d83600f613dc6565b600f54640100000000900461ffff16611cf961108b565b1415611d0d57611d0a82600a613dc6565b90505b6000836001600160a01b031682604051611d26906134a2565b60006040518083038185875af1925050503d8060008114611d63576040519150601f19603f3d011682016040523d82523d6000602084013e611d68565b606091505b5050905080610f935760405162461bcd60e51b8152600401610a0490613b69565b611d91612314565b6001600160a01b0316611da26118da565b6001600160a01b031614611dc85760405162461bcd60e51b8152600401610a0490613a2e565b80518051611dde91600c91602090910190612eeb565b506020808201518051611df592600d920190612eeb565b506040810151805161194191600e91602090910190612eeb565b611e20611e1a612314565b83612478565b611e3c5760405162461bcd60e51b8152600401610a0490613be5565b611e488484848461269a565b50505050565b611e56612314565b6001600160a01b0316611e676118da565b6001600160a01b031614611e8d5760405162461bcd60e51b8152600401610a0490613a2e565b601e55565b6060611e9d82612318565b611eb95760405162461bcd60e51b8152600401610a0490613aac565b600f54610100900460ff16611ee8576040518060600160405280602b8152602001613f1a602b913990506109c0565b6000611ef26126cd565b6000848152601c602052604090205490915060021415611f9e57600d8054611f1990613e28565b80601f0160208091040260200160405190810160405280929190818152602001828054611f4590613e28565b8015611f925780601f10611f6757610100808354040283529160200191611f92565b820191906000526020600020905b815481529060010190602001808311611f7557829003601f168201915b50505050509050612043565b6000838152601c60205260409020546003141561204357600e8054611fc290613e28565b80601f0160208091040260200160405190810160405280929190818152602001828054611fee90613e28565b801561203b5780601f106120105761010080835404028352916020019161203b565b820191906000526020600020905b81548152906001019060200180831161201e57829003601f168201915b505050505090505b6000815111612061576040518060200160405280600081525061208c565b8061206b846126dc565b60405160200161207c929190613463565b6040516020818303038152906040525b9392505050565b600f54640100000000900461ffff1681565b60006120af612314565b6001600160a01b03166120c06118da565b6001600160a01b0316146120e65760405162461bcd60e51b8152600401610a0490613a2e565b6013546040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a08231906121359030906004016134a5565b60206040518083038186803b15801561214d57600080fd5b505afa158015612161573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061218591906133f4565b10156121a35760405162461bcd60e51b8152600401610a0490613846565b6121b1601d546013546127f7565b905090565b600f54600160501b900461ffff1690565b6121cf612314565b6001600160a01b03166121e06118da565b6001600160a01b0316146122065760405162461bcd60e51b8152600401610a0490613a2e565b600f805491151563010000000263ff00000019909216919091179055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61225a612314565b6001600160a01b031661226b6118da565b6001600160a01b0316146122915760405162461bcd60e51b8152600401610a0490613a2e565b6001600160a01b0381166122b75760405162461bcd60e51b8152600401610a0490613636565b6122c081612642565b50565b600f54600160401b900461ffff1681565b60006001600160e01b031982166380ac58cd60e01b148061230557506001600160e01b03198216635b5e139f60e01b145b806109bd57506109bd82612932565b3390565b6000908152600260205260409020546001600160a01b0316151590565b61194182826040518060200160405280600081525061294b565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612384826117bc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081815b855181101561246d5760008682815181106123ed57634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161242e578281604051602001612411929190613455565b60405160208183030381529060405280519060200120925061245a565b8083604051602001612441929190613455565b6040516020818303038152906040528051906020012092505b508061246581613e63565b9150506123c2565b509092149392505050565b600061248382612318565b61249f5760405162461bcd60e51b8152600401610a04906137ce565b60006124aa836117bc565b9050806001600160a01b0316846001600160a01b031614806124e55750836001600160a01b03166124da84610ab2565b6001600160a01b0316145b806124f557506124f58185612224565b949350505050565b826001600160a01b0316612510826117bc565b6001600160a01b0316146125365760405162461bcd60e51b8152600401610a0490613a63565b6001600160a01b03821661255c5760405162461bcd60e51b8152600401610a0490613728565b61256783838361297e565b61257260008261234f565b6001600160a01b038316600090815260036020526040812080546001929061259b908490613de5565b90915550506001600160a01b03821660009081526003602052604081208054600192906125c9908490613d79565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006110728284613db2565b60006110728284613dc6565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60125550565b6126a58484846124fd565b6126b184848484612a07565b611e485760405162461bcd60e51b8152600401610a04906135bc565b6060600c8054610a2f90613e28565b60608161270157506040805180820190915260018152600360fc1b60208201526109c0565b8160005b811561272b578061271581613e63565b91506127249050600a83613db2565b9150612705565b60008167ffffffffffffffff81111561275457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561277e576020820181803683370190505b5090505b84156124f557612793600183613de5565b91506127a0600a86613e9f565b6127ab906030613d79565b60f81b8183815181106127ce57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506127f0600a86613db2565b9450612782565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f00000000000000000000000000000000000000000000000000000000000000008486600060405160200161285e929190613455565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161288b939291906134f6565b602060405180830381600087803b1580156128a557600080fd5b505af11580156128b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128dd91906132f1565b506000838152600b60205260408120546128fc90859083903090612b22565b6000858152600b6020526040902054909150612919906001613d79565b6000858152600b60205260409020556124f58482612b5c565b6001600160e01b031981166301ffc9a760e01b14919050565b6129558383612b8f565b6129626000848484612a07565b61102e5760405162461bcd60e51b8152600401610a04906135bc565b61298983838361102e565b6001600160a01b0383166129a5576129a081612c6e565b6129c8565b816001600160a01b0316836001600160a01b0316146129c8576129c88382612cb2565b6001600160a01b0382166129e4576129df81612d4f565b61102e565b826001600160a01b0316826001600160a01b03161461102e5761102e8282612e28565b6000612a1b846001600160a01b0316612e6c565b15612b1757836001600160a01b031663150b7a02612a37612314565b8786866040518563ffffffff1660e01b8152600401612a5994939291906134b9565b602060405180830381600087803b158015612a7357600080fd5b505af1925050508015612aa3575060408051601f3d908101601f19168201909252612aa091810190613362565b60015b612afd573d808015612ad1576040519150601f19603f3d011682016040523d82523d6000602084013e612ad6565b606091505b508051612af55760405162461bcd60e51b8152600401610a04906135bc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506124f5565b506001949350505050565b600084848484604051602001612b3b949392919061353a565b60408051601f19818403018152919052805160209091012095945050505050565b60008282604051602001612b71929190613455565b60405160208183030381529060405280519060200120905092915050565b6001600160a01b038216612bb55760405162461bcd60e51b8152600401610a04906139ad565b612bbe81612318565b15612bdb5760405162461bcd60e51b8152600401610a049061367c565b612be76000838361297e565b6001600160a01b0382166000908152600360205260408120805460019290612c10908490613d79565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b60006001612cbf846117fe565b612cc99190613de5565b600083815260076020526040902054909150808214612d1c576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612d6190600190613de5565b60008381526009602052604081205460088054939450909284908110612d9757634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110612dc657634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612e0c57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612e33836117fe565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b3b151590565b506000815560010160008155600101600081556001016000815560010160009055565b8260058101928215612edb579160200282015b82811115612edb5781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190612ea8565b50612ee7929150612f5f565b5090565b828054612ef790613e28565b90600052602060002090601f016020900481019282612f195760008555612edb565b82601f10612f3257805160ff1916838001178555612edb565b82800160010185558215612edb579182015b82811115612edb578251825591602001919060010190612f44565b5b80821115612ee75760008155600101612f60565b600067ffffffffffffffff831115612f8e57612f8e613edf565b612fa1601f8401601f1916602001613d22565b9050828152838383011115612fb557600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b03811681146109c057600080fd5b806040810183101561107557600080fd5b600082601f830112613004578081fd5b8135602067ffffffffffffffff82111561302057613020613edf565b80820261302e828201613d22565b838152828101908684018388018501891015613048578687fd5b8693505b8584101561306a57803583526001939093019291840191840161304c565b50979650505050505050565b803561ffff811681146109c057600080fd5b600060208284031215613099578081fd5b61107282612fcc565b600080604083850312156130b4578081fd5b6130bd83612fcc565b91506130cb60208401612fcc565b90509250929050565b6000806000606084860312156130e8578081fd5b6130f184612fcc565b92506130ff60208501612fcc565b9150604084013590509250925092565b60008060008060808587031215613124578081fd5b61312d85612fcc565b935061313b60208601612fcc565b925060408501359150606085013567ffffffffffffffff81111561315d578182fd5b8501601f8101871361316d578182fd5b61317c87823560208401612f74565b91505092959194509250565b6000806040838503121561319a578182fd5b6131a383612fcc565b915060208301356131b381613ef5565b809150509250929050565b600080604083850312156131d0578182fd5b6131d983612fcc565b946020939093013593505050565b6000604082840312156131f8578081fd5b6110728383612fe3565b60008060408385031215613214578182fd5b823567ffffffffffffffff81111561322a578283fd5b61323685828601612ff4565b9250506130cb60208401612fcc565b60006020808385031215613257578182fd5b823567ffffffffffffffff81111561326d578283fd5b8301601f808201861361327e578384fd5b6132886060613d22565b8083865b60038110156132c757813586018a868201126132a6578889fd5b6132b48b82358a8401612f74565b855250928601929086019060010161328c565b509098975050505050505050565b6000602082840312156132e6578081fd5b813561208c81613ef5565b600060208284031215613302578081fd5b815161208c81613ef5565b60006020828403121561331e578081fd5b5035919050565b60008060408385031215613337578182fd5b50508035926020909101359150565b600060208284031215613357578081fd5b813561208c81613f03565b600060208284031215613373578081fd5b815161208c81613f03565b60006020828403121561338f578081fd5b61107282613076565b6000806000606084860312156133ac578081fd5b6133b584613076565b92506133c360208501613076565b9150604084013567ffffffffffffffff8111156133de578182fd5b6133ea86828701612ff4565b9150509250925092565b600060208284031215613405578081fd5b5051919050565b60008151808452613424816020860160208601613dfc565b601f01601f19169290920160200192915050565b60609190911b6bffffffffffffffffffffffff1916815260140190565b918252602082015260400190565b60008351613475818460208801613dfc565b835190830190613489818360208801613dfc565b64173539b7b760d91b9101908152600501949350505050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906134ec9083018461340c565b9695505050505050565b600060018060a01b03851682528360208301526060604083015261351d606083018461340c565b95945050505050565b901515815260200190565b90815260200190565b93845260208401929092526001600160a01b03166040830152606082015260800190565b600060208252611072602083018461340c565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600e908201526d135a5b9d1a5b99c81c185d5cd95960921b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526028908201527f4d6178206d696e7420616d6f756e7420706572207472616e73616374696f6e20604082015267195e18d95959195960c21b606082015260800190565b602080825260139082015272135a5b9d08185d081b19585cdd080c48139195606a1b604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b602080825260119082015270111c985ddcc81b9bdd081cdd185c9d1959607a1b604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b602080825260129082015271496e73756666696369656e742066756e647360701b604082015260600190565b6020808252600f908201526e4e6f7420656e6f756768204c494e4b60881b604082015260600190565b60208082526004908201526322a9291960e11b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b60208082526016908201527513585e08139195081b1a5b5a5d08195e18d95959195960521b604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b6020808252601c908201527f4d6178204e465420706572206164647265737320657863656564656400000000604082015260600190565b6020808252601f908201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00604082015260600190565b60208082526003908201526222a92960e91b604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252600490820152634552523160e01b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600490820152634552523560e01b604082015260600190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252601c908201527f55736572206973206e6f74206f6e207468652057686974656c69737400000000604082015260600190565b6020808252600490820152631154948d60e21b604082015260600190565b6020808252600490820152634552523360e01b604082015260600190565b61ffff91909116815260200190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613d4b57613d4b613edf565b604052919050565b600061ffff808316818516808303821115613d7057613d70613eb3565b01949350505050565b60008219821115613d8c57613d8c613eb3565b500190565b600061ffff80841680613da657613da6613ec9565b92169190910492915050565b600082613dc157613dc1613ec9565b500490565b6000816000190483118215151615613de057613de0613eb3565b500290565b600082821015613df757613df7613eb3565b500390565b60005b83811015613e17578181015183820152602001613dff565b83811115611e485750506000910152565b600281046001821680613e3c57607f821691505b60208210811415613e5d57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613e7757613e77613eb3565b5060010190565b600061ffff80841680613e9357613e93613ec9565b92169190910692915050565b600082613eae57613eae613ec9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b80151581146122c057600080fd5b6001600160e01b0319811681146122c057600080fdfe68747470733a2f2f7777772e6265617273767362756c6c732e636f6d2f70726572657665616c2e6a736f6ea2646970667358221220f079e9ea76efd0b082f1d8360bfe616bd7124f36b83781a0f70ab98140707f3d64736f6c634300080100330000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061036b5760003560e01c80636024d761116101c6578063a22cb465116100f7578063d5abeb0111610095578063e35672de1161006f578063e35672de14610923578063e985e9c514610943578063f2fde38b14610963578063fa098512146109835761036b565b8063d5abeb01146108e4578063dbdff2c1146108f9578063dd32ed4a1461090e5761036b565b8063b5f1da1d116100d1578063b5f1da1d14610864578063b88d4fde14610884578063bd32fb66146108a4578063c87b56dd146108c45761036b565b8063a22cb4651461081c578063b232fab51461083c578063b4793721146108515761036b565b80639087aa6e11610164578063940cd05b1161013e578063940cd05b146107b257806394985ddd146107d257806395d89b41146107f25780639c70b512146108075761036b565b80639087aa6e1461075d57806390ede4cb1461077d57806393a45eee1461079d5761036b565b806370a08231116101a057806370a08231146106f3578063715018a6146107135780637fb62b25146107285780638da5cb5b146107485761036b565b80636024d7611461069e5780636352211e146106be5780636c0360eb146106de5761036b565b806327357acb116102a057806342842e0e1161023e578063516d60bc11610218578063516d60bc1461063f57806351830227146106545780635c975abb146106695780635ee1a1b81461067e5761036b565b806342842e0e146105df5780634c524be4146105ff5780634f6ccce71461061f5761036b565b80633c9527641161027a5780633c9527641461058d5780633ccfd60b146105ad57806340400b22146105b557806342619f66146105ca5761036b565b806327357acb146105435780632f745c591461055857806339a10804146105785761036b565b806312f6672b1161030d578063239c70ae116102e7578063239c70ae146104c157806323b872dd146104e35780632419217e1461050357806325d4cb42146105235761036b565b806312f6672b1461046a57806318160ddd1461047f57806318cae269146104a15761036b565b8063081812fc11610349578063081812fc146103ea578063089567e814610417578063095ea7b31461042a5780630996896b1461044a5761036b565b806301ffc9a71461037057806302329a29146103a657806306fdde03146103c8575b600080fd5b34801561037c57600080fd5b5061039061038b366004613346565b610998565b60405161039d9190613526565b60405180910390f35b3480156103b257600080fd5b506103c66103c13660046132d5565b6109c5565b005b3480156103d457600080fd5b506103dd610a20565b60405161039d919061355e565b3480156103f657600080fd5b5061040a61040536600461330d565b610ab2565b60405161039d91906134a5565b6103c6610425366004613398565b610af5565b34801561043657600080fd5b506103c66104453660046131be565b610f9b565b34801561045657600080fd5b50610390610465366004613202565b611033565b34801561047657600080fd5b5061039061107b565b34801561048b57600080fd5b5061049461108b565b60405161039d9190613531565b3480156104ad57600080fd5b506104946104bc366004613088565b611091565b3480156104cd57600080fd5b506104d66110a3565b60405161039d9190613d13565b3480156104ef57600080fd5b506103c66104fe3660046130d4565b6110b4565b34801561050f57600080fd5b5061040a61051e36600461330d565b6110ec565b34801561052f57600080fd5b5061049461053e36600461330d565b61110c565b34801561054f57600080fd5b5061049461112d565b34801561056457600080fd5b506104946105733660046131be565b611133565b34801561058457600080fd5b50610494611185565b34801561059957600080fd5b506103c66105a83660046132d5565b611196565b6103c66111f1565b3480156105c157600080fd5b506103dd61152a565b3480156105d657600080fd5b506104946115b8565b3480156105eb57600080fd5b506103c66105fa3660046130d4565b6115be565b34801561060b57600080fd5b5061049461061a36600461330d565b6115d9565b34801561062b57600080fd5b5061049461063a36600461330d565b6116c6565b34801561064b57600080fd5b506104d6611721565b34801561066057600080fd5b50610390611732565b34801561067557600080fd5b50610390611740565b34801561068a57600080fd5b506103c661069936600461337e565b611749565b3480156106aa57600080fd5b506104946106b936600461330d565b6117ac565b3480156106ca57600080fd5b5061040a6106d936600461330d565b6117bc565b3480156106ea57600080fd5b506103dd6117f1565b3480156106ff57600080fd5b5061049461070e366004613088565b6117fe565b34801561071f57600080fd5b506103c6611842565b34801561073457600080fd5b506103c66107433660046131e7565b61188d565b34801561075457600080fd5b5061040a6118da565b34801561076957600080fd5b506103c66107783660046131e7565b6118e9565b34801561078957600080fd5b506103c661079836600461337e565b611945565b3480156107a957600080fd5b506103dd6119a9565b3480156107be57600080fd5b506103c66107cd3660046132d5565b6119b6565b3480156107de57600080fd5b506103c66107ed366004613325565b611a0f565b3480156107fe57600080fd5b506103dd611a61565b34801561081357600080fd5b50610390611a70565b34801561082857600080fd5b506103c6610837366004613188565b611a7f565b34801561084857600080fd5b50610494611b4d565b6103c661085f36600461330d565b611b53565b34801561087057600080fd5b506103c661087f366004613245565b611d89565b34801561089057600080fd5b506103c661089f36600461310f565b611e0f565b3480156108b057600080fd5b506103c66108bf36600461330d565b611e4e565b3480156108d057600080fd5b506103dd6108df36600461330d565b611e92565b3480156108f057600080fd5b506104d6612093565b34801561090557600080fd5b506104946120a5565b34801561091a57600080fd5b506104946121b6565b34801561092f57600080fd5b506103c661093e3660046132d5565b6121c7565b34801561094f57600080fd5b5061039061095e3660046130a2565b612224565b34801561096f57600080fd5b506103c661097e366004613088565b612252565b34801561098f57600080fd5b506104d66122c3565b60006001600160e01b0319821663780e9d6360e01b14806109bd57506109bd826122d4565b90505b919050565b6109cd612314565b6001600160a01b03166109de6118da565b6001600160a01b031614610a0d5760405162461bcd60e51b8152600401610a0490613a2e565b60405180910390fd5b600f805460ff1916911515919091179055565b606060008054610a2f90613e28565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5b90613e28565b8015610aa85780601f10610a7d57610100808354040283529160200191610aa8565b820191906000526020600020905b815481529060010190602001808311610a8b57829003601f168201915b5050505050905090565b6000610abd82612318565b610ad95760405162461bcd60e51b8152600401610a04906139e2565b506000908152600460205260409020546001600160a01b031690565b600f5460ff1615610b185760405162461bcd60e51b8152600401610a049061360e565b6000610b2261108b565b90506000610b308486613d53565b905060008161ffff1611610b565760405162461bcd60e51b8152600401610a04906136fb565b600f5461ffff600160301b90910481169082161115610b875760405162461bcd60e51b8152600401610a04906136b3565b600f5461ffff640100000000909104811690610ba590831684613d79565b1115610bc35760405162461bcd60e51b8152600401610a049061397d565b60006011548561ffff16610bd79190613dc6565b601054610be89061ffff8916613dc6565b610bf29190613d79565b9050610bfc6118da565b6001600160a01b0316336001600160a01b031614610cb057600f5462010000900460ff16151560011415610c9057610c348433611033565b610c505760405162461bcd60e51b8152600401610a0490613ca0565b336000908152601b6020526040902054600390610c729061ffff851690613d79565b1115610c905760405162461bcd60e51b8152600401610a0490613afb565b80341015610cb05760405162461bcd60e51b8152600401610a049061381a565b61ffff861615610dba5760015b8661ffff168111610d3057610cdb33610cd68387613d79565b612335565b6001601c6000610ceb8488613d79565b81526020810191909152604001600020556014610d088286613d79565b8154600181018355600092835260209092209091015580610d2881613e63565b915050610cbd565b5085600f60088282829054906101000a900461ffff16610d509190613d53565b92506101000a81548161ffff021916908361ffff1602179055508561ffff16601b6000336001600160a01b03166001600160a01b031681526020019081526020016000206000828254610da39190613d79565b90915550610db7905061ffff871684613d79565b92505b61ffff851615610ebf5760015b8561ffff168111610e3557610de033610cd68387613d79565b6002601c6000610df08488613d79565b81526020810191909152604001600020556015610e0d8286613d79565b8154600181018355600092835260209092209091015580610e2d81613e63565b915050610dc7565b5084600f600a8282829054906101000a900461ffff16610e559190613d53565b92506101000a81548161ffff021916908361ffff1602179055508461ffff16601b6000336001600160a01b03166001600160a01b031681526020019081526020016000206000828254610ea89190613d79565b90915550610ebc905061ffff861684613d79565b92505b600f546301000000900460ff1615156001148015610ee95750610ee3600383613e7e565b61ffff16155b15610f93576000610efb600384613d91565b61ffff16905060015b818111610f9057610f1933610cd68388613d79565b6003601c6000610f298489613d79565b81526020810191909152604001600020556014610f468287613d79565b815460018101835560009283526020909220909101556015610f688287613d79565b8154600181018355600092835260209092209091015580610f8881613e63565b915050610f04565b50505b505050505050565b6000610fa6826117bc565b9050806001600160a01b0316836001600160a01b03161415610fda5760405162461bcd60e51b8152600401610a0490613b86565b806001600160a01b0316610fec612314565b6001600160a01b0316148061100857506110088161095e612314565b6110245760405162461bcd60e51b8152600401610a049061388d565b61102e838361234f565b505050565b6000611072601e548360405160200161104c9190613438565b60405160208183030381529060405280519060200120856123bd9092919063ffffffff16565b90505b92915050565b600f546301000000900460ff1681565b60085490565b601b6020526000908152604090205481565b600f54600160301b900461ffff1681565b6110c56110bf612314565b82612478565b6110e15760405162461bcd60e51b8152600401610a0490613be5565b61102e8383836124fd565b601681600581106110fc57600080fd5b01546001600160a01b0316905081565b6015818154811061111c57600080fd5b600091825260209091200154905081565b60115481565b600061113e836117fe565b821061115c5760405162461bcd60e51b8152600401610a0490613571565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600f54600160401b900461ffff1690565b61119e612314565b6001600160a01b03166111af6118da565b6001600160a01b0316146111d55760405162461bcd60e51b8152600401610a0490613a2e565b600f8054911515620100000262ff000019909216919091179055565b6111f9612314565b6001600160a01b031661120a6118da565b6001600160a01b0316146112305760405162461bcd60e51b8152600401610a0490613a2e565b600061123d47606461262a565b905073a4724c7393e2d361e394fdf9f7f5d6bcf644d04a73e2872d388f73982fb7b4016965194c46604ff09a73a361b780537304d99d5a7c7e53dbba50ee9b761e60008361128c86603b612636565b604051611298906134a2565b60006040518083038185875af1925050503d80600081146112d5576040519150601f19603f3d011682016040523d82523d6000602084013e6112da565b606091505b50909150600090506001600160a01b0384166112f7876003612636565b604051611303906134a2565b60006040518083038185875af1925050503d8060008114611340576040519150601f19603f3d011682016040523d82523d6000602084013e611345565b606091505b50506016549091506000906001600160a01b0316611364886001612636565b604051611370906134a2565b60006040518083038185875af1925050503d80600081146113ad576040519150601f19603f3d011682016040523d82523d6000602084013e6113b2565b606091505b50506017549091506000906001600160a01b03166113d1896002612636565b6040516113dd906134a2565b60006040518083038185875af1925050503d806000811461141a576040519150601f19603f3d011682016040523d82523d6000602084013e61141f565b606091505b50909150600090506001600160a01b03861661143c8a6014612636565b604051611448906134a2565b60006040518083038185875af1925050503d8060008114611485576040519150601f19603f3d011682016040523d82523d6000602084013e61148a565b606091505b50509050846114ab5760405162461bcd60e51b8152600401610a0490613bc7565b836114c85760405162461bcd60e51b8152600401610a049061386f565b826114e55760405162461bcd60e51b8152600401610a0490613cf5565b816115025760405162461bcd60e51b8152600401610a0490613cd7565b8061151f5760405162461bcd60e51b8152600401610a0490613c36565b505050505050505050565b600d805461153790613e28565b80601f016020809104026020016040519081016040528092919081815260200182805461156390613e28565b80156115b05780601f10611585576101008083540402835291602001916115b0565b820191906000526020600020905b81548152906001019060200180831161159357829003601f168201915b505050505081565b60125481565b61102e83838360405180602001604052806000815250611e0f565b60006115e3612314565b6001600160a01b03166115f46118da565b6001600160a01b03161461161a5760405162461bcd60e51b8152600401610a0490613a2e565b600f54600160401b900461ffff1660028314156116415750600f54600160501b900461ffff165b6000816012546116519190613e9f565b90508360021415611691576015818154811061167d57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154925050506109c0565b601481815481106116b257634e487b7160e01b600052603260045260246000fd5b906000526020600020015492505050919050565b60006116d061108b565b82106116ee5760405162461bcd60e51b8152600401610a0490613c54565b6008828154811061170f57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600f54600160501b900461ffff1681565b600f54610100900460ff1681565b600f5460ff1681565b611751612314565b6001600160a01b03166117626118da565b6001600160a01b0316146117885760405162461bcd60e51b8152600401610a0490613a2e565b600f805461ffff9092166401000000000265ffff0000000019909216919091179055565b6014818154811061111c57600080fd5b6000818152600260205260408120546001600160a01b0316806109bd5760405162461bcd60e51b8152600401610a0490613934565b600c805461153790613e28565b60006001600160a01b0382166118265760405162461bcd60e51b8152600401610a04906138ea565b506001600160a01b031660009081526003602052604090205490565b61184a612314565b6001600160a01b031661185b6118da565b6001600160a01b0316146118815760405162461bcd60e51b8152600401610a0490613a2e565b61188b6000612642565b565b611895612314565b6001600160a01b03166118a66118da565b6001600160a01b0316146118cc5760405162461bcd60e51b8152600401610a0490613a2e565b803560105560200135601155565b600a546001600160a01b031690565b6118f1612314565b6001600160a01b03166119026118da565b6001600160a01b0316146119285760405162461bcd60e51b8152600401610a0490613a2e565b61193460166000612e72565b6119416016826002612e95565b5050565b61194d612314565b6001600160a01b031661195e6118da565b6001600160a01b0316146119845760405162461bcd60e51b8152600401610a0490613a2e565b600f805461ffff909216600160301b0267ffff00000000000019909216919091179055565b600e805461153790613e28565b6119be612314565b6001600160a01b03166119cf6118da565b6001600160a01b0316146119f55760405162461bcd60e51b8152600401610a0490613a2e565b600f80549115156101000261ff0019909216919091179055565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79521614611a575760405162461bcd60e51b8152600401610a0490613b32565b6119418282612694565b606060018054610a2f90613e28565b600f5462010000900460ff1681565b611a87612314565b6001600160a01b0316826001600160a01b03161415611ab85760405162461bcd60e51b8152600401610a049061376c565b8060056000611ac5612314565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611b09612314565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b419190613526565b60405180910390a35050565b60105481565b611b5b612314565b6001600160a01b0316611b6c6118da565b6001600160a01b031614611b925760405162461bcd60e51b8152600401610a0490613a2e565b6103e8611b9d61108b565b1015611bbb5760405162461bcd60e51b8152600401610a04906137a3565b6000611bc6826115d9565b90506000611bfe60148381548110611bee57634e487b7160e01b600052603260045260246000fd5b90600052602060002001546117bc565b6010549091506002841415611c3957611c3160158481548110611bee57634e487b7160e01b600052603260045260246000fd5b915060115490505b806109c4611c4561108b565b10158015611c5b5750611388611c5961108b565b105b15611c7e576002611c6d836005613dc6565b611c779190613db2565b9050611d0d565b611388611c8961108b565b10158015611c9f5750611d4c611c9d61108b565b105b15611caf57611c77826005613dc6565b611d4c611cba61108b565b10158015611cd05750612710611cce61108b565b105b15611ce2576002611c6d83600f613dc6565b600f54640100000000900461ffff16611cf961108b565b1415611d0d57611d0a82600a613dc6565b90505b6000836001600160a01b031682604051611d26906134a2565b60006040518083038185875af1925050503d8060008114611d63576040519150601f19603f3d011682016040523d82523d6000602084013e611d68565b606091505b5050905080610f935760405162461bcd60e51b8152600401610a0490613b69565b611d91612314565b6001600160a01b0316611da26118da565b6001600160a01b031614611dc85760405162461bcd60e51b8152600401610a0490613a2e565b80518051611dde91600c91602090910190612eeb565b506020808201518051611df592600d920190612eeb565b506040810151805161194191600e91602090910190612eeb565b611e20611e1a612314565b83612478565b611e3c5760405162461bcd60e51b8152600401610a0490613be5565b611e488484848461269a565b50505050565b611e56612314565b6001600160a01b0316611e676118da565b6001600160a01b031614611e8d5760405162461bcd60e51b8152600401610a0490613a2e565b601e55565b6060611e9d82612318565b611eb95760405162461bcd60e51b8152600401610a0490613aac565b600f54610100900460ff16611ee8576040518060600160405280602b8152602001613f1a602b913990506109c0565b6000611ef26126cd565b6000848152601c602052604090205490915060021415611f9e57600d8054611f1990613e28565b80601f0160208091040260200160405190810160405280929190818152602001828054611f4590613e28565b8015611f925780601f10611f6757610100808354040283529160200191611f92565b820191906000526020600020905b815481529060010190602001808311611f7557829003601f168201915b50505050509050612043565b6000838152601c60205260409020546003141561204357600e8054611fc290613e28565b80601f0160208091040260200160405190810160405280929190818152602001828054611fee90613e28565b801561203b5780601f106120105761010080835404028352916020019161203b565b820191906000526020600020905b81548152906001019060200180831161201e57829003601f168201915b505050505090505b6000815111612061576040518060200160405280600081525061208c565b8061206b846126dc565b60405160200161207c929190613463565b6040516020818303038152906040525b9392505050565b600f54640100000000900461ffff1681565b60006120af612314565b6001600160a01b03166120c06118da565b6001600160a01b0316146120e65760405162461bcd60e51b8152600401610a0490613a2e565b6013546040516370a0823160e01b81526001600160a01b037f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca16906370a08231906121359030906004016134a5565b60206040518083038186803b15801561214d57600080fd5b505afa158015612161573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061218591906133f4565b10156121a35760405162461bcd60e51b8152600401610a0490613846565b6121b1601d546013546127f7565b905090565b600f54600160501b900461ffff1690565b6121cf612314565b6001600160a01b03166121e06118da565b6001600160a01b0316146122065760405162461bcd60e51b8152600401610a0490613a2e565b600f805491151563010000000263ff00000019909216919091179055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61225a612314565b6001600160a01b031661226b6118da565b6001600160a01b0316146122915760405162461bcd60e51b8152600401610a0490613a2e565b6001600160a01b0381166122b75760405162461bcd60e51b8152600401610a0490613636565b6122c081612642565b50565b600f54600160401b900461ffff1681565b60006001600160e01b031982166380ac58cd60e01b148061230557506001600160e01b03198216635b5e139f60e01b145b806109bd57506109bd82612932565b3390565b6000908152600260205260409020546001600160a01b0316151590565b61194182826040518060200160405280600081525061294b565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612384826117bc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081815b855181101561246d5760008682815181106123ed57634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161242e578281604051602001612411929190613455565b60405160208183030381529060405280519060200120925061245a565b8083604051602001612441929190613455565b6040516020818303038152906040528051906020012092505b508061246581613e63565b9150506123c2565b509092149392505050565b600061248382612318565b61249f5760405162461bcd60e51b8152600401610a04906137ce565b60006124aa836117bc565b9050806001600160a01b0316846001600160a01b031614806124e55750836001600160a01b03166124da84610ab2565b6001600160a01b0316145b806124f557506124f58185612224565b949350505050565b826001600160a01b0316612510826117bc565b6001600160a01b0316146125365760405162461bcd60e51b8152600401610a0490613a63565b6001600160a01b03821661255c5760405162461bcd60e51b8152600401610a0490613728565b61256783838361297e565b61257260008261234f565b6001600160a01b038316600090815260036020526040812080546001929061259b908490613de5565b90915550506001600160a01b03821660009081526003602052604081208054600192906125c9908490613d79565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006110728284613db2565b60006110728284613dc6565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60125550565b6126a58484846124fd565b6126b184848484612a07565b611e485760405162461bcd60e51b8152600401610a04906135bc565b6060600c8054610a2f90613e28565b60608161270157506040805180820190915260018152600360fc1b60208201526109c0565b8160005b811561272b578061271581613e63565b91506127249050600a83613db2565b9150612705565b60008167ffffffffffffffff81111561275457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561277e576020820181803683370190505b5090505b84156124f557612793600183613de5565b91506127a0600a86613e9f565b6127ab906030613d79565b60f81b8183815181106127ce57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506127f0600a86613db2565b9450612782565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79528486600060405160200161285e929190613455565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161288b939291906134f6565b602060405180830381600087803b1580156128a557600080fd5b505af11580156128b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128dd91906132f1565b506000838152600b60205260408120546128fc90859083903090612b22565b6000858152600b6020526040902054909150612919906001613d79565b6000858152600b60205260409020556124f58482612b5c565b6001600160e01b031981166301ffc9a760e01b14919050565b6129558383612b8f565b6129626000848484612a07565b61102e5760405162461bcd60e51b8152600401610a04906135bc565b61298983838361102e565b6001600160a01b0383166129a5576129a081612c6e565b6129c8565b816001600160a01b0316836001600160a01b0316146129c8576129c88382612cb2565b6001600160a01b0382166129e4576129df81612d4f565b61102e565b826001600160a01b0316826001600160a01b03161461102e5761102e8282612e28565b6000612a1b846001600160a01b0316612e6c565b15612b1757836001600160a01b031663150b7a02612a37612314565b8786866040518563ffffffff1660e01b8152600401612a5994939291906134b9565b602060405180830381600087803b158015612a7357600080fd5b505af1925050508015612aa3575060408051601f3d908101601f19168201909252612aa091810190613362565b60015b612afd573d808015612ad1576040519150601f19603f3d011682016040523d82523d6000602084013e612ad6565b606091505b508051612af55760405162461bcd60e51b8152600401610a04906135bc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506124f5565b506001949350505050565b600084848484604051602001612b3b949392919061353a565b60408051601f19818403018152919052805160209091012095945050505050565b60008282604051602001612b71929190613455565b60405160208183030381529060405280519060200120905092915050565b6001600160a01b038216612bb55760405162461bcd60e51b8152600401610a04906139ad565b612bbe81612318565b15612bdb5760405162461bcd60e51b8152600401610a049061367c565b612be76000838361297e565b6001600160a01b0382166000908152600360205260408120805460019290612c10908490613d79565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b60006001612cbf846117fe565b612cc99190613de5565b600083815260076020526040902054909150808214612d1c576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612d6190600190613de5565b60008381526009602052604081205460088054939450909284908110612d9757634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110612dc657634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612e0c57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612e33836117fe565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b3b151590565b506000815560010160008155600101600081556001016000815560010160009055565b8260058101928215612edb579160200282015b82811115612edb5781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190612ea8565b50612ee7929150612f5f565b5090565b828054612ef790613e28565b90600052602060002090601f016020900481019282612f195760008555612edb565b82601f10612f3257805160ff1916838001178555612edb565b82800160010185558215612edb579182015b82811115612edb578251825591602001919060010190612f44565b5b80821115612ee75760008155600101612f60565b600067ffffffffffffffff831115612f8e57612f8e613edf565b612fa1601f8401601f1916602001613d22565b9050828152838383011115612fb557600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b03811681146109c057600080fd5b806040810183101561107557600080fd5b600082601f830112613004578081fd5b8135602067ffffffffffffffff82111561302057613020613edf565b80820261302e828201613d22565b838152828101908684018388018501891015613048578687fd5b8693505b8584101561306a57803583526001939093019291840191840161304c565b50979650505050505050565b803561ffff811681146109c057600080fd5b600060208284031215613099578081fd5b61107282612fcc565b600080604083850312156130b4578081fd5b6130bd83612fcc565b91506130cb60208401612fcc565b90509250929050565b6000806000606084860312156130e8578081fd5b6130f184612fcc565b92506130ff60208501612fcc565b9150604084013590509250925092565b60008060008060808587031215613124578081fd5b61312d85612fcc565b935061313b60208601612fcc565b925060408501359150606085013567ffffffffffffffff81111561315d578182fd5b8501601f8101871361316d578182fd5b61317c87823560208401612f74565b91505092959194509250565b6000806040838503121561319a578182fd5b6131a383612fcc565b915060208301356131b381613ef5565b809150509250929050565b600080604083850312156131d0578182fd5b6131d983612fcc565b946020939093013593505050565b6000604082840312156131f8578081fd5b6110728383612fe3565b60008060408385031215613214578182fd5b823567ffffffffffffffff81111561322a578283fd5b61323685828601612ff4565b9250506130cb60208401612fcc565b60006020808385031215613257578182fd5b823567ffffffffffffffff81111561326d578283fd5b8301601f808201861361327e578384fd5b6132886060613d22565b8083865b60038110156132c757813586018a868201126132a6578889fd5b6132b48b82358a8401612f74565b855250928601929086019060010161328c565b509098975050505050505050565b6000602082840312156132e6578081fd5b813561208c81613ef5565b600060208284031215613302578081fd5b815161208c81613ef5565b60006020828403121561331e578081fd5b5035919050565b60008060408385031215613337578182fd5b50508035926020909101359150565b600060208284031215613357578081fd5b813561208c81613f03565b600060208284031215613373578081fd5b815161208c81613f03565b60006020828403121561338f578081fd5b61107282613076565b6000806000606084860312156133ac578081fd5b6133b584613076565b92506133c360208501613076565b9150604084013567ffffffffffffffff8111156133de578182fd5b6133ea86828701612ff4565b9150509250925092565b600060208284031215613405578081fd5b5051919050565b60008151808452613424816020860160208601613dfc565b601f01601f19169290920160200192915050565b60609190911b6bffffffffffffffffffffffff1916815260140190565b918252602082015260400190565b60008351613475818460208801613dfc565b835190830190613489818360208801613dfc565b64173539b7b760d91b9101908152600501949350505050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906134ec9083018461340c565b9695505050505050565b600060018060a01b03851682528360208301526060604083015261351d606083018461340c565b95945050505050565b901515815260200190565b90815260200190565b93845260208401929092526001600160a01b03166040830152606082015260800190565b600060208252611072602083018461340c565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600e908201526d135a5b9d1a5b99c81c185d5cd95960921b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526028908201527f4d6178206d696e7420616d6f756e7420706572207472616e73616374696f6e20604082015267195e18d95959195960c21b606082015260800190565b602080825260139082015272135a5b9d08185d081b19585cdd080c48139195606a1b604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b602080825260119082015270111c985ddcc81b9bdd081cdd185c9d1959607a1b604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b602080825260129082015271496e73756666696369656e742066756e647360701b604082015260600190565b6020808252600f908201526e4e6f7420656e6f756768204c494e4b60881b604082015260600190565b60208082526004908201526322a9291960e11b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b60208082526016908201527513585e08139195081b1a5b5a5d08195e18d95959195960521b604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b6020808252601c908201527f4d6178204e465420706572206164647265737320657863656564656400000000604082015260600190565b6020808252601f908201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00604082015260600190565b60208082526003908201526222a92960e91b604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252600490820152634552523160e01b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600490820152634552523560e01b604082015260600190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252601c908201527f55736572206973206e6f74206f6e207468652057686974656c69737400000000604082015260600190565b6020808252600490820152631154948d60e21b604082015260600190565b6020808252600490820152634552523360e01b604082015260600190565b61ffff91909116815260200190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613d4b57613d4b613edf565b604052919050565b600061ffff808316818516808303821115613d7057613d70613eb3565b01949350505050565b60008219821115613d8c57613d8c613eb3565b500190565b600061ffff80841680613da657613da6613ec9565b92169190910492915050565b600082613dc157613dc1613ec9565b500490565b6000816000190483118215151615613de057613de0613eb3565b500290565b600082821015613df757613df7613eb3565b500390565b60005b83811015613e17578181015183820152602001613dff565b83811115611e485750506000910152565b600281046001821680613e3c57607f821691505b60208210811415613e5d57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613e7757613e77613eb3565b5060010190565b600061ffff80841680613e9357613e93613ec9565b92169190910692915050565b600082613eae57613eae613ec9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b80151581146122c057600080fd5b6001600160e01b0319811681146122c057600080fdfe68747470733a2f2f7777772e6265617273767362756c6c732e636f6d2f70726572657665616c2e6a736f6ea2646970667358221220f079e9ea76efd0b082f1d8360bfe616bd7124f36b83781a0f70ab98140707f3d64736f6c63430008010033

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

0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _initBaseURI (string):
Arg [1] : _initBullBaseURI (string):
Arg [2] : _initWolfBaseURI (string):

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000000


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.