ETH Price: $1,986.98 (-4.15%)

Contract

0x4e8E2A120423aD588f96914a7d68f3e7f9d5149f
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

1 address found via
Transaction Hash
Method
Block
From
To
Set Approval For...244504162026-02-13 21:02:2321 days ago1771016543IN
0x4e8E2A12...7f9d5149f
0 ETH0.000095652.04886973
Set Approval For...243928072026-02-05 19:46:2329 days ago1770320783IN
0x4e8E2A12...7f9d5149f
0 ETH0.000073732.96626471
Set Approval For...241360712026-01-01 0:03:4764 days ago1767225827IN
0x4e8E2A12...7f9d5149f
0 ETH0.000095192.03864208
Set Approval For...241275882025-12-30 19:38:4766 days ago1767123527IN
0x4e8E2A12...7f9d5149f
0 ETH0.000007030.15051246
Set Approval For...240287252025-12-17 0:23:2379 days ago1765931003IN
0x4e8E2A12...7f9d5149f
0 ETH0.000011080.23746184
Set Approval For...238162902025-11-17 3:43:35109 days ago1763351015IN
0x4e8E2A12...7f9d5149f
0 ETH0.000100512.15247485
Set Approval For...238093112025-11-16 4:19:11110 days ago1763266751IN
0x4e8E2A12...7f9d5149f
0 ETH0.000001910.07705785
Set Approval For...238078372025-11-15 23:22:47111 days ago1763248967IN
0x4e8E2A12...7f9d5149f
0 ETH0.000045570.97621235
Set Approval For...238077712025-11-15 23:09:35111 days ago1763248175IN
0x4e8E2A12...7f9d5149f
0 ETH0.000044630.95601325
Set Approval For...235669992025-10-13 6:26:35144 days ago1760336795IN
0x4e8E2A12...7f9d5149f
0 ETH0.000040031.61126244
Set Approval For...234258812025-09-23 12:58:47164 days ago1758632327IN
0x4e8E2A12...7f9d5149f
0 ETH0.000018530.39712299
Safe Transfer Fr...231674672025-08-18 10:51:47200 days ago1755514307IN
0x4e8E2A12...7f9d5149f
0 ETH0.000198572.23878457
Set Approval For...231494972025-08-15 22:42:35203 days ago1755297755IN
0x4e8E2A12...7f9d5149f
0 ETH0.00010882.33062197
Set Approval For...231077282025-08-10 2:38:47208 days ago1754793527IN
0x4e8E2A12...7f9d5149f
0 ETH0.000108432.32272456
Set Approval For...230667592025-08-04 9:18:47214 days ago1754299127IN
0x4e8E2A12...7f9d5149f
0 ETH0.000009710.20813585
Set Approval For...223397672025-04-24 15:30:11316 days ago1745508611IN
0x4e8E2A12...7f9d5149f
0 ETH0.0010410722.3
Set Approval For...222692062025-04-14 19:06:11326 days ago1744657571IN
0x4e8E2A12...7f9d5149f
0 ETH0.000071041.52179641
Set Approval For...222092532025-04-06 10:23:59334 days ago1743935039IN
0x4e8E2A12...7f9d5149f
0 ETH0.000021410.86158702
Set Approval For...220286682025-03-12 5:22:35359 days ago1741756955IN
0x4e8E2A12...7f9d5149f
0 ETH0.000047891.02588637
Set Approval For...220048022025-03-08 21:21:47363 days ago1741468907IN
0x4e8E2A12...7f9d5149f
0 ETH0.000046721.00086251
Set Approval For...218502172025-02-15 7:02:47384 days ago1739602967IN
0x4e8E2A12...7f9d5149f
0 ETH0.000063181.35344171
Set Approval For...217272332025-01-29 2:35:11401 days ago1738118111IN
0x4e8E2A12...7f9d5149f
0 ETH0.000062592.51819352
Set Approval For...215387962025-01-02 19:11:23428 days ago1735845083IN
0x4e8E2A12...7f9d5149f
0 ETH0.0003330713.39965116
Set Approval For...215379152025-01-02 16:14:47428 days ago1735834487IN
0x4e8E2A12...7f9d5149f
0 ETH0.0003271113.1980928
Set Approval For...215373852025-01-02 14:28:47428 days ago1735828127IN
0x4e8E2A12...7f9d5149f
0 ETH0.0006928314.8367852
View all transactions

Latest 7 internal transactions

Advanced mode:
Parent Transaction Hash Method Block
From
To
-144774452022-03-28 22:47:141439 days ago1648507634
0x4e8E2A12...7f9d5149f
10.035927 ETH
-144774332022-03-28 22:42:231439 days ago1648507343
0x4e8E2A12...7f9d5149f
0.101373 ETH
-139351182022-01-03 22:10:371523 days ago1641247837
0x4e8E2A12...7f9d5149f
0.777 ETH
-139351072022-01-03 22:07:581523 days ago1641247678
0x4e8E2A12...7f9d5149f
1.777 ETH
-139351042022-01-03 22:07:291523 days ago1641247649
0x4e8E2A12...7f9d5149f
0.777 ETH
-134524232021-10-20 4:14:221598 days ago1634703262
0x4e8E2A12...7f9d5149f
217 ETH
-134524182021-10-20 4:12:561598 days ago1634703176
0x4e8E2A12...7f9d5149f
1 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Affirmations

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/////////////////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                                     //
//                            OIIIIIIIIII77                                                            //
//                         IIIIIIIII???IIIII77                   NI777777777777$                       //
//                      IIIII?????????????I?7III             O77777777IIIIII77777777                   //
//                     7IIIIIIIII7I?????????III7I          I7777IIIIIIIIIIIIIIIII77777$                //
//                         N8ZIIIIIIII7I??I??II7II       7777IIIIIIIIIIIIIIIIIIIIIIII7777              //
//                                   I77IIIIIIII77I     777IIIIIIIIIIIIIIIIIIIIIIIII777777D            //
//                                       7777IIII77    777IIIIIIIIII7777777777III777777777$7           //
//                      O7III7I77I777      7I7III777  777IIIIII777777777777777777777777777$$$          //
//                 IIIIIIIIIIIIII77IIII77I  N77III77 777IIII77777$              N$77$77$7777$$D        //
//              ?7IIII???????????????III7II77 77II77777II7777I                       8$$$7$77$$N       //
//            IIII???????????????IIIIIIIIII77777IIII7II7777                              $$$$$$$       //
//          N7II??????????????II7III7I7777777IIIIIIIII777                                   7$$$$      //
//         $II???????????I7IIIIIIIIZO888Z7I7777IIIIIII77777777777777777777D                   O$$$     //
//        $II?????????I7IIII8            777777IIIIIIII777IIIIIIIII777777777$$7                 Z$     //     
//       8II???????IIII?          $7777777777IIIIIIIIIIIIIIIIIIIIIIIIII777777$$77$Z                    //
//       7I?????III77         I7777777IIIIIII77777II777777IIIIIIIIIII7777777777777$$$                  //
//      III???IIII        OI7777IIIIIIIIIII777I$77I777$7777777IIIIIII77777777777777$$$7                //
//      7I??IIII        I7I7IIIIIIIIIIIII777Z 777II777$$$  7$777777777777777777777777$$$8              //
//     IIIIII7       OII7I?IIIIIIIIIII7777  $777II777777$$D    777777777777777777777777$$7             //
//     IIIII        7IIIIIIIIIIIIIIII777   777IIII77$$777$$N      $77$777777777777777777$$$            //
//     III        I77IIIIIIIIIIIIII777    777IIII777$$7777$$        8$77$7777777777777777$$7           //
//     I$        II7?IIIIIIIIIIII777$    777IIIII77 $$$777$$$          $$$$777777777777777$$           //
//              77IIIIIIIIIIIIII777     777IIIII777  $$$777$$$           77$$77777777777777$$          //
//             7IIIIIIIIIIIIII777      777IIIIII778  D$$7777$$$            7$$$777777777777$$O         //
//            II7IIIIIIIIIIII777      777IIIIIII77    $$$$$$$$$D             $$$77777777777$$$         //
//           DI7IIIIIIIIIII7778      N77IIIIIII777    8$$$$$$$$$              N$$$7777777777$$         //
//           77IIIIIIIIIII777        777IIIIIII777     $$$7I77$$$               Z$$$77777777$$N        //
//           77IIIIIIIIII777        877IIIIIIII77Z     Z$$$$$$$$$                 $$$7777777$$$        //
//          NI7IIIIIIIII777         777IIIIIIII77       Z$$$$$$$$$                 8$$$$777$$$$        //
//          877IIIIIIII777          77IIIIIIIII77       Z$$$$$$$$$                   $$$777$$$$        //
//          O77IIIIIII77O          O77IIIIIIIII77       Z$$$$$$$$$$                   $$$7$$$$$        //
//          D77IIIIII777           777IIIIIIIII77        $$IIIII$$Z                    8Z$$7$$Z        //
//           77IIIII777            777IIIIIIII777        $$$$7$$$$ZZ                     $$$$$         //
//           77IIII777             777IIIIIII7777        $Z$$$$$$$ZZ                      $$$$         //
//           777II777              7777IIIII777$7Z       ZZZ$$$$$$ZZZ                      $$$         //
//           D77II77               N777III77777777       DZZ$$$$$$$ZZ                       $$         //
//            77I777                77III77777777$        ZZ$$$$II$ZZ                                  //
//            O7777                 7777777777777$        ZZ$$$$IZ$ZZZ                                 //
//             7778                  77777777777$$        ZZZZZZ$ZZZZZ                                 //
//              77                   Z7777777777$77       ZZZZZZZZZZZZ                                 //
//              Z$                    77777777777$$       ZZZZZZZZZZZZ8                                //
//                                     7777777777$$       ZZZIII$ZZZZZZ                                //
//                                      777777777$$$      ZZZZZZZZZZZZZ                                //
//                                        $$$77777$$      ZZZZZZZZZZZZZ                                //
//                                         N7$$$77$$$     ZZZZZZZZZ$ZZZ                                //
//                                            7$$$$$$     ZZZZZZIIIZZZZN                               //
//                                                O$$$    OZZZZZZZZZZZZ8                               //
//                                                        OZZZZZZZZZZZOO                               //
//                                                        OZZZZZZZZZZOOO                               //
//                                                        OOOZZZZZZZZOOO                               //
//                                                        OOOIIIOOZZOOOO                               //
//                                                        OOOOOOOOOOOOOO                               //
//                                                        OOOOOOOOOOOOOO                               //
//                                                        OOOOOOOOOOOOOO                               //
//                                                       NOOOOOOOIIOOOOO                               //
//                                                       OOOOOOOOOOOOOO8                               //
//                                                       OOOOOOOOOOOOOOD                               //
//                                                       OOOOOOOOOOOOOO                                //
//                                                        OOOOOOOOOOOO8                                //
//                                                            D8O8D                                    //
//  nft affirmations                                                                                                   //
/////////////////////////////////////////////////////////////////////////////////////////////////////////                                                                                                     
contract Affirmations is ERC721Enumerable, Ownable, VRFConsumerBase {

    using SafeMath for uint256;
    using Strings for uint256;

    string public _baseTokenURI;

    bytes32 internal keyHash;
    uint256 internal fee;

    bool public saleStarted = false;
    bool public whitelistStarted = false;
    bool public eight88Started = false;
    bool public mintStartIndexDrawn = false;

    ERC1155 eight88contract = ERC1155(0x36d30B3b85255473D27dd0F7fD8F35e36a9d6F06);

    uint256 public mintStartIndex;
    uint256 private price = 77700000000000000; // 0.0777 ETH

    uint256 public totalAffirmations = 10000;
    uint256 public maxAffirmationsPerMint = 7;

    string public provenanceHash = ""; // example

    event randomStartingIndexDrawn(uint256 mintStartIndex);

    address vrfCoordinator = 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952;
    address linkToken = 0x514910771AF9Ca656af840dff83E8264EcF986CA;
    uint linkFee = 2 * 10 ** 18;

    constructor() ERC721("NFT Affirmations", "AMINT") VRFConsumerBase(vrfCoordinator, linkToken) {
        keyHash = 0xAA77729D3466CA35AE8D28B3BBAC7CC36A5031EFDC430821C02BC31A238AF445;
        fee = linkFee;
    }
    
    function setBaseURI(string memory baseURI) public onlyOwner {
        _baseTokenURI = baseURI;
    }

    function tokenURI(uint256 tokenId) override view public returns (string memory) {
        uint256 chosenURI = (tokenId + mintStartIndex) % totalAffirmations;
        return bytes(_baseTokenURI).length > 0 ? string(abi.encodePacked(_baseTokenURI, chosenURI.toString(), ".json")) : "";
    }
    
    function startSale() public onlyOwner {
        require(mintStartIndexDrawn, "Must draw random number.");
        saleStarted = true;
    }
    
    function pauseSale() public onlyOwner {
        saleStarted = false;
    }

    function startWhitelist() public onlyOwner {
        require(mintStartIndexDrawn, "Must draw random number.");
        whitelistStarted = true;
    }
    
    function stopWhitelist() public onlyOwner {
        whitelistStarted = false;
    }

    function start888() public onlyOwner {
        require(mintStartIndexDrawn, "Must draw random number.");
        eight88Started = true;
    }
    
    function stop888() public onlyOwner {
        eight88Started = false;
    }

    function mintGifts(uint256[] memory numberOfMints, address[] memory _mintTo) public onlyOwner {
        require(mintStartIndexDrawn, "Sale hasn't started");

        for (uint i = 0; i < numberOfMints.length; i++) {
            require(totalSupply().add(numberOfMints[i]) <= totalAffirmations, 'Not enough affirmations left');

            for(uint j = 0; j < numberOfMints[i]; j++) {
                uint mintNum = totalSupply() + 1;
                if (mintNum < totalAffirmations) {
                    _safeMint(_mintTo[i], mintNum);
                }
            }
        }
    }

    function manifest(uint256 numberOfMints) public payable {
        require(mintStartIndexDrawn, "Sale hasn't started");

        uint256 newMintCount = totalSupply().add(numberOfMints);
        uint256 myBalance = balanceOf(msg.sender).add(numberOfMints);

        if (whitelistStarted) {
            require(newMintCount <= 1111, "Whitelist period has sold out");
            require(myBalance <= 1, 'Maximum 1 affirmation during presale');
        } else if (eight88Started) {
            require(eight88contract.balanceOf(msg.sender, 888) > 0);
            require(newMintCount <= (1111 + 888), "Whitelist period has sold out");
            require(myBalance <= 1, 'Maximum 1 affirmation during presale');
        }
        else require(saleStarted, "Sale hasn't started");

        require(numberOfMints > 0 && numberOfMints <= maxAffirmationsPerMint, 'Can mint up to 7 affirmations at a time');
        require(myBalance <= 33, 'Maximum 33 affirmations per wallet');
        require(newMintCount <= totalAffirmations, 'Not enough affirmations left');
        require(msg.value == price.mul(numberOfMints), 'Need 0.0777 ETH per affirmation');

        for (uint i = 0; i < numberOfMints; i++) {
            uint mintNum = totalSupply() + 1;
            if (mintNum < totalAffirmations) {
                _safeMint(msg.sender, mintNum);
            }
        }
    }
   
    /** 
     * Requests randomness from Chainlink
     */
    function getRandomStartIndex() public onlyOwner returns (bytes32 requestId) {
        require(!mintStartIndexDrawn , "RNG ALREADY DRAWN");
        require(LINK.balanceOf(address(this)) >= fee, "Not enough LINK");
        return requestRandomness(keyHash, fee);
    }

    /**
     * Callback function used by VRF Coordinator
     */
    function fulfillRandomness(bytes32 requestId, uint256 randomness) internal override {
        mintStartIndex = randomness % totalAffirmations;
        if (mintStartIndex == 0) {
            mintStartIndex = 1;
        }

        emit randomStartingIndexDrawn(mintStartIndex);

        mintStartIndexDrawn = true;
    }

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

    function withdraw(address _to, uint amount) public onlyOwner {
        payable(_to).call{value:amount, gas:200000}("");
    }

    // COMMENT THIS FUNCTION ON PRODUCTION. ONLY FOR TESTING
    
    function testStartIndex(uint256 index) public onlyOwner {
        mintStartIndex = index;
        mintStartIndexDrawn = true;
    }

    function changeMaxNumber(uint256 totalAff) public onlyOwner {
        totalAffirmations = totalAff;
    }
    
}

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

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

        return array;
    }
}

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

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

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

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

}

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

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

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

// 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 21 : 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);
}

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

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

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

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

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

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

Contract Security Audit

Contract ABI

API
[{"inputs":[],"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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"mintStartIndex","type":"uint256"}],"name":"randomStartingIndexDrawn","type":"event"},{"inputs":[],"name":"_baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"uint256","name":"totalAff","type":"uint256"}],"name":"changeMaxNumber","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"eight88Started","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":"getRandomStartIndex","outputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"}],"stateMutability":"nonpayable","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":[{"internalType":"uint256","name":"numberOfMints","type":"uint256"}],"name":"manifest","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"maxAffirmationsPerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"numberOfMints","type":"uint256[]"},{"internalType":"address[]","name":"_mintTo","type":"address[]"}],"name":"mintGifts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintStartIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintStartIndexDrawn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"provenanceHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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":[],"name":"saleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"start888","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stop888","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopWhitelist","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":"index","type":"uint256"}],"name":"testStartIndex","outputs":[],"stateMutability":"nonpayable","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":"totalAffirmations","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":[],"name":"whitelistStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawLink","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040526000600f60006101000a81548160ff0219169083151502179055506000600f60016101000a81548160ff0219169083151502179055506000600f60026101000a81548160ff0219169083151502179055506000600f60036101000a81548160ff0219169083151502179055507336d30b3b85255473d27dd0f7fd8f35e36a9d6f06600f60046101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506701140bbd030c4000601155612710601255600760135560405180602001604052806000815250601490805190602001906200010392919062000445565b5073f0d54349addcf704f77ae15b96510dea15cb7952601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073514910771af9ca656af840dff83e8264ecf986ca601660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550671bc16d674ec80000601755348015620001c757600080fd5b50601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518060400160405280601081526020017f4e46542041666669726d6174696f6e73000000000000000000000000000000008152506040518060400160405280600581526020017f414d494e5400000000000000000000000000000000000000000000000000000081525081600090805190602001906200029292919062000445565b508060019080519060200190620002ab92919062000445565b505050620002ce620002c26200037760201b60201c565b6200037f60201b60201c565b8173ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505050507faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af44560001b600d81905550601754600e819055506200055a565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200045390620004f5565b90600052602060002090601f016020900481019282620004775760008555620004c3565b82601f106200049257805160ff1916838001178555620004c3565b82800160010185558215620004c3579182015b82811115620004c2578251825591602001919060010190620004a5565b5b509050620004d29190620004d6565b5090565b5b80821115620004f1576000816000905550600101620004d7565b5090565b600060028204905060018216806200050e57607f821691505b602082108114156200052557620005246200052b565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60805160601c60a05160601c615af6620005a260003960008181611b190152612fc5015260008181611970015281816119ad015281816120cb0152612f890152615af66000f3fe60806040526004361061025c5760003560e01c8063715018a611610144578063b88d4fde116100b6578063cfc86f7b1161007a578063cfc86f7b14610855578063d492b56514610880578063e562011a146108ab578063e985e9c5146108d4578063f2fde38b14610911578063f3fef3a31461093a5761025c565b8063b88d4fde1461076e578063c2b61a8814610797578063c6ab67a3146107c2578063c87b56dd146107ed578063cd1a957d1461082a5761025c565b80639123fff4116101085780639123fff41461069857806394985ddd146106c357806395d89b41146106ec578063a22cb46514610717578063b66a0e5d14610740578063b7315d27146107575761025c565b8063715018a6146106115780637f19c412146106285780638af31f3b1461063f5780638da5cb5b146106565780638dc654a2146106815761025c565b8063333cd5c1116101dd57806355f804b3116101a157806355f804b3146104fc5780635bbd8cc0146105255780635c474f9e146105415780636352211e1461056c5780636e18adb0146105a957806370a08231146105d45761025c565b8063333cd5c11461043d578063339159d31461045457806342842e0e1461047f5780634f6ccce7146104a857806355367ba9146104e55761025c565b806316cf00ab1161022457806316cf00ab1461035857806318160ddd146103815780631f14ce93146103ac57806323b872dd146103d75780632f745c59146104005761025c565b806301ffc9a71461026157806306fdde031461029e578063078e5de3146102c9578063081812fc146102f2578063095ea7b31461032f575b600080fd5b34801561026d57600080fd5b5061028860048036038101906102839190614190565b610963565b60405161029591906149b4565b60405180910390f35b3480156102aa57600080fd5b506102b36109dd565b6040516102c09190614a58565b60405180910390f35b3480156102d557600080fd5b506102f060048036038101906102eb9190614223565b610a6f565b005b3480156102fe57600080fd5b5061031960048036038101906103149190614223565b610af5565b60405161032691906148bd565b60405180910390f35b34801561033b57600080fd5b5061035660048036038101906103519190614083565b610b7a565b005b34801561036457600080fd5b5061037f600480360381019061037a9190614223565b610c92565b005b34801561038d57600080fd5b50610396610d33565b6040516103a39190614e1a565b60405180910390f35b3480156103b857600080fd5b506103c1610d40565b6040516103ce9190614e1a565b60405180910390f35b3480156103e357600080fd5b506103fe60048036038101906103f99190613f7d565b610d46565b005b34801561040c57600080fd5b5061042760048036038101906104229190614083565b610da6565b6040516104349190614e1a565b60405180910390f35b34801561044957600080fd5b50610452610e4b565b005b34801561046057600080fd5b50610469610ee4565b60405161047691906149b4565b60405180910390f35b34801561048b57600080fd5b506104a660048036038101906104a19190613f7d565b610ef7565b005b3480156104b457600080fd5b506104cf60048036038101906104ca9190614223565b610f17565b6040516104dc9190614e1a565b60405180910390f35b3480156104f157600080fd5b506104fa610fae565b005b34801561050857600080fd5b50610523600480360381019061051e91906141e2565b611047565b005b61053f600480360381019061053a9190614223565b6110dd565b005b34801561054d57600080fd5b5061055661153c565b60405161056391906149b4565b60405180910390f35b34801561057857600080fd5b50610593600480360381019061058e9190614223565b61154f565b6040516105a091906148bd565b60405180910390f35b3480156105b557600080fd5b506105be611601565b6040516105cb9190614e1a565b60405180910390f35b3480156105e057600080fd5b506105fb60048036038101906105f69190613f18565b611607565b6040516106089190614e1a565b60405180910390f35b34801561061d57600080fd5b506106266116bf565b005b34801561063457600080fd5b5061063d611747565b005b34801561064b57600080fd5b5061065461182f565b005b34801561066257600080fd5b5061066b6118c8565b60405161067891906148bd565b60405180910390f35b34801561068d57600080fd5b506106966118f2565b005b3480156106a457600080fd5b506106ad611b04565b6040516106ba91906149b4565b60405180910390f35b3480156106cf57600080fd5b506106ea60048036038101906106e59190614154565b611b17565b005b3480156106f857600080fd5b50610701611bb3565b60405161070e9190614a58565b60405180910390f35b34801561072357600080fd5b5061073e60048036038101906107399190614047565b611c45565b005b34801561074c57600080fd5b50610755611dc6565b005b34801561076357600080fd5b5061076c611eae565b005b34801561077a57600080fd5b5061079560048036038101906107909190613fcc565b611f96565b005b3480156107a357600080fd5b506107ac611ff8565b6040516107b991906149cf565b60405180910390f35b3480156107ce57600080fd5b506107d76121c6565b6040516107e49190614a58565b60405180910390f35b3480156107f957600080fd5b50610814600480360381019061080f9190614223565b612254565b6040516108219190614a58565b60405180910390f35b34801561083657600080fd5b5061083f6122d4565b60405161084c91906149b4565b60405180910390f35b34801561086157600080fd5b5061086a6122e7565b6040516108779190614a58565b60405180910390f35b34801561088c57600080fd5b50610895612375565b6040516108a29190614e1a565b60405180910390f35b3480156108b757600080fd5b506108d260048036038101906108cd91906140bf565b61237b565b005b3480156108e057600080fd5b506108fb60048036038101906108f69190613f41565b6125d5565b60405161090891906149b4565b60405180910390f35b34801561091d57600080fd5b5061093860048036038101906109339190613f18565b612669565b005b34801561094657600080fd5b50610961600480360381019061095c9190614083565b612761565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109d657506109d582612850565b5b9050919050565b6060600080546109ec9061515e565b80601f0160208091040260200160405190810160405280929190818152602001828054610a189061515e565b8015610a655780601f10610a3a57610100808354040283529160200191610a65565b820191906000526020600020905b815481529060010190602001808311610a4857829003601f168201915b5050505050905090565b610a77612932565b73ffffffffffffffffffffffffffffffffffffffff16610a956118c8565b73ffffffffffffffffffffffffffffffffffffffff1614610aeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae290614cda565b60405180910390fd5b8060128190555050565b6000610b008261293a565b610b3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3690614c7a565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b858261154f565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610bf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bed90614d5a565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c15612932565b73ffffffffffffffffffffffffffffffffffffffff161480610c445750610c4381610c3e612932565b6125d5565b5b610c83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7a90614bba565b60405180910390fd5b610c8d83836129a6565b505050565b610c9a612932565b73ffffffffffffffffffffffffffffffffffffffff16610cb86118c8565b73ffffffffffffffffffffffffffffffffffffffff1614610d0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0590614cda565b60405180910390fd5b806010819055506001600f60036101000a81548160ff02191690831515021790555050565b6000600880549050905090565b60125481565b610d57610d51612932565b82612a5f565b610d96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8d90614d9a565b60405180910390fd5b610da1838383612b3d565b505050565b6000610db183611607565b8210610df2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de990614a7a565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610e53612932565b73ffffffffffffffffffffffffffffffffffffffff16610e716118c8565b73ffffffffffffffffffffffffffffffffffffffff1614610ec7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ebe90614cda565b60405180910390fd5b6000600f60016101000a81548160ff021916908315150217905550565b600f60019054906101000a900460ff1681565b610f1283838360405180602001604052806000815250611f96565b505050565b6000610f21610d33565b8210610f62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5990614dba565b60405180910390fd5b60088281548110610f9c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b610fb6612932565b73ffffffffffffffffffffffffffffffffffffffff16610fd46118c8565b73ffffffffffffffffffffffffffffffffffffffff161461102a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102190614cda565b60405180910390fd5b6000600f60006101000a81548160ff021916908315150217905550565b61104f612932565b73ffffffffffffffffffffffffffffffffffffffff1661106d6118c8565b73ffffffffffffffffffffffffffffffffffffffff16146110c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ba90614cda565b60405180910390fd5b80600c90805190602001906110d9929190613bd1565b5050565b600f60039054906101000a900460ff1661112c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112390614dda565b60405180910390fd5b60006111488261113a610d33565b612d9990919063ffffffff16565b905060006111678361115933611607565b612d9990919063ffffffff16565b9050600f60019054906101000a900460ff161561120c576104578211156111c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ba90614c9a565b60405180910390fd5b6001811115611207576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111fe90614d1a565b60405180910390fd5b6113ba565b600f60029054906101000a900460ff1615611369576000600f60049054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e336103786040518363ffffffff1660e01b8152600401611281929190614924565b60206040518083038186803b15801561129957600080fd5b505afa1580156112ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112d1919061424c565b116112db57600080fd5b6107cf821115611320576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131790614c9a565b60405180910390fd5b6001811115611364576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135b90614d1a565b60405180910390fd5b6113b9565b600f60009054906101000a900460ff166113b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113af90614dda565b60405180910390fd5b5b5b6000831180156113cc57506013548311155b61140b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140290614cba565b60405180910390fd5b602181111561144f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144690614c1a565b60405180910390fd5b601254821115611494576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148b90614dfa565b60405180910390fd5b6114a983601154612daf90919063ffffffff16565b34146114ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e190614aba565b60405180910390fd5b60005b838110156115365760006001611501610d33565b61150b9190614f77565b9050601254811015611522576115213382612dc5565b5b50808061152e906151c1565b9150506114ed565b50505050565b600f60009054906101000a900460ff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156115f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ef90614bfa565b60405180910390fd5b80915050919050565b60135481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611678576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166f90614bda565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6116c7612932565b73ffffffffffffffffffffffffffffffffffffffff166116e56118c8565b73ffffffffffffffffffffffffffffffffffffffff161461173b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173290614cda565b60405180910390fd5b6117456000612de3565b565b61174f612932565b73ffffffffffffffffffffffffffffffffffffffff1661176d6118c8565b73ffffffffffffffffffffffffffffffffffffffff16146117c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ba90614cda565b60405180910390fd5b600f60039054906101000a900460ff16611812576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180990614d7a565b60405180910390fd5b6001600f60016101000a81548160ff021916908315150217905550565b611837612932565b73ffffffffffffffffffffffffffffffffffffffff166118556118c8565b73ffffffffffffffffffffffffffffffffffffffff16146118ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118a290614cda565b60405180910390fd5b6000600f60026101000a81548160ff021916908315150217905550565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6118fa612932565b73ffffffffffffffffffffffffffffffffffffffff166119186118c8565b73ffffffffffffffffffffffffffffffffffffffff161461196e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196590614cda565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb337f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611a0491906148bd565b60206040518083038186803b158015611a1c57600080fd5b505afa158015611a30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a54919061424c565b6040518363ffffffff1660e01b8152600401611a7192919061494d565b602060405180830381600087803b158015611a8b57600080fd5b505af1158015611a9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac3919061412b565b611b02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af990614c5a565b60405180910390fd5b565b600f60029054906101000a900460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611ba5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9c90614d3a565b60405180910390fd5b611baf8282612ea9565b5050565b606060018054611bc29061515e565b80601f0160208091040260200160405190810160405280929190818152602001828054611bee9061515e565b8015611c3b5780601f10611c1057610100808354040283529160200191611c3b565b820191906000526020600020905b815481529060010190602001808311611c1e57829003601f168201915b5050505050905090565b611c4d612932565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611cbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb290614b3a565b60405180910390fd5b8060056000611cc8612932565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611d75612932565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611dba91906149b4565b60405180910390a35050565b611dce612932565b73ffffffffffffffffffffffffffffffffffffffff16611dec6118c8565b73ffffffffffffffffffffffffffffffffffffffff1614611e42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3990614cda565b60405180910390fd5b600f60039054906101000a900460ff16611e91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8890614d7a565b60405180910390fd5b6001600f60006101000a81548160ff021916908315150217905550565b611eb6612932565b73ffffffffffffffffffffffffffffffffffffffff16611ed46118c8565b73ffffffffffffffffffffffffffffffffffffffff1614611f2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2190614cda565b60405180910390fd5b600f60039054906101000a900460ff16611f79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7090614d7a565b60405180910390fd5b6001600f60026101000a81548160ff021916908315150217905550565b611fa7611fa1612932565b83612a5f565b611fe6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fdd90614d9a565b60405180910390fd5b611ff284848484612f29565b50505050565b6000612002612932565b73ffffffffffffffffffffffffffffffffffffffff166120206118c8565b73ffffffffffffffffffffffffffffffffffffffff1614612076576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206d90614cda565b60405180910390fd5b600f60039054906101000a900460ff16156120c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120bd90614b7a565b60405180910390fd5b600e547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161212291906148bd565b60206040518083038186803b15801561213a57600080fd5b505afa15801561214e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612172919061424c565b10156121b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121aa90614b9a565b60405180910390fd5b6121c1600d54600e54612f85565b905090565b601480546121d39061515e565b80601f01602080910402602001604051908101604052809291908181526020018280546121ff9061515e565b801561224c5780601f106122215761010080835404028352916020019161224c565b820191906000526020600020905b81548152906001019060200180831161222f57829003601f168201915b505050505081565b60606000601254601054846122699190614f77565b612273919061521e565b90506000600c80546122849061515e565b9050116122a057604051806020016040528060008152506122cc565b600c6122ab826130e7565b6040516020016122bc929190614879565b6040516020818303038152906040525b915050919050565b600f60039054906101000a900460ff1681565b600c80546122f49061515e565b80601f01602080910402602001604051908101604052809291908181526020018280546123209061515e565b801561236d5780601f106123425761010080835404028352916020019161236d565b820191906000526020600020905b81548152906001019060200180831161235057829003601f168201915b505050505081565b60105481565b612383612932565b73ffffffffffffffffffffffffffffffffffffffff166123a16118c8565b73ffffffffffffffffffffffffffffffffffffffff16146123f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ee90614cda565b60405180910390fd5b600f60039054906101000a900460ff16612446576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243d90614dda565b60405180910390fd5b60005b82518110156125d0576012546124af848381518110612491577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516124a1610d33565b612d9990919063ffffffff16565b11156124f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e790614dfa565b60405180910390fd5b60005b83828151811061252c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101518110156125bc5760006001612547610d33565b6125519190614f77565b90506012548110156125a8576125a7848481518110612599577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015182612dc5565b5b5080806125b4906151c1565b9150506124f3565b5080806125c8906151c1565b915050612449565b505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612671612932565b73ffffffffffffffffffffffffffffffffffffffff1661268f6118c8565b73ffffffffffffffffffffffffffffffffffffffff16146126e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126dc90614cda565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612755576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161274c90614ada565b60405180910390fd5b61275e81612de3565b50565b612769612932565b73ffffffffffffffffffffffffffffffffffffffff166127876118c8565b73ffffffffffffffffffffffffffffffffffffffff16146127dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127d490614cda565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff168162030d4090604051612806906148a8565b600060405180830381858888f193505050503d8060008114612844576040519150601f19603f3d011682016040523d82523d6000602084013e612849565b606091505b5050505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061291b57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061292b575061292a82613294565b5b9050919050565b600033905090565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612a198361154f565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612a6a8261293a565b612aa9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aa090614b5a565b60405180910390fd5b6000612ab48361154f565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612b2357508373ffffffffffffffffffffffffffffffffffffffff16612b0b84610af5565b73ffffffffffffffffffffffffffffffffffffffff16145b80612b345750612b3381856125d5565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612b5d8261154f565b73ffffffffffffffffffffffffffffffffffffffff1614612bb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612baa90614cfa565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612c23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c1a90614b1a565b60405180910390fd5b612c2e8383836132fe565b612c396000826129a6565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c899190615058565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ce09190614f77565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008183612da79190614f77565b905092915050565b60008183612dbd9190614ffe565b905092915050565b612ddf828260405180602001604052806000815250613412565b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60125481612eb7919061521e565b60108190555060006010541415612ed15760016010819055505b7f325e9ea9802b4be9466292a1c744577edd9a7ce855eeb6dd5513b3a9728b0658601054604051612f029190614e1a565b60405180910390a16001600f60036101000a81548160ff0219169083151502179055505050565b612f34848484612b3d565b612f408484848461346d565b612f7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f7690614a9a565b60405180910390fd5b50505050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16634000aea07f000000000000000000000000000000000000000000000000000000000000000084866000604051602001612ff99291906149ea565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161302693929190614976565b602060405180830381600087803b15801561304057600080fd5b505af1158015613054573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613078919061412b565b50600061309b84600030600b600089815260200190815260200160002054613604565b90506001600b6000868152602001908152602001600020546130bd9190614f77565b600b6000868152602001908152602001600020819055506130de8482613640565b91505092915050565b6060600082141561312f576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061328f565b600082905060005b6000821461316157808061314a906151c1565b915050600a8261315a9190614fcd565b9150613137565b60008167ffffffffffffffff8111156131a3577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156131d55781602001600182028036833780820191505090505b5090505b60008514613288576001826131ee9190615058565b9150600a856131fd919061521e565b60306132099190614f77565b60f81b818381518110613245577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856132819190614fcd565b94506131d9565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b613309838383613673565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561334c5761334781613678565b61338b565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461338a5761338983826136c1565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156133ce576133c98161382e565b61340d565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461340c5761340b8282613971565b5b5b505050565b61341c83836139f0565b613429600084848461346d565b613468576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161345f90614a9a565b60405180910390fd5b505050565b600061348e8473ffffffffffffffffffffffffffffffffffffffff16613bbe565b156135f7578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026134b7612932565b8786866040518563ffffffff1660e01b81526004016134d994939291906148d8565b602060405180830381600087803b1580156134f357600080fd5b505af192505050801561352457506040513d601f19601f8201168201806040525081019061352191906141b9565b60015b6135a7573d8060008114613554576040519150601f19603f3d011682016040523d82523d6000602084013e613559565b606091505b5060008151141561359f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161359690614a9a565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506135fc565b600190505b949350505050565b60008484848460405160200161361d9493929190614a13565b6040516020818303038152906040528051906020012060001c9050949350505050565b6000828260405160200161365592919061484d565b60405160208183030381529060405280519060200120905092915050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016136ce84611607565b6136d89190615058565b90506000600760008481526020019081526020016000205490508181146137bd576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506138429190615058565b9050600060096000848152602001908152602001600020549050600060088381548110613898577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080600883815481106138e0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613955577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061397c83611607565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613a60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a5790614c3a565b60405180910390fd5b613a698161293a565b15613aa9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613aa090614afa565b60405180910390fd5b613ab5600083836132fe565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613b059190614f77565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b828054613bdd9061515e565b90600052602060002090601f016020900481019282613bff5760008555613c46565b82601f10613c1857805160ff1916838001178555613c46565b82800160010185558215613c46579182015b82811115613c45578251825591602001919060010190613c2a565b5b509050613c539190613c57565b5090565b5b80821115613c70576000816000905550600101613c58565b5090565b6000613c87613c8284614e5a565b614e35565b90508083825260208201905082856020860282011115613ca657600080fd5b60005b85811015613cd65781613cbc8882613dc8565b845260208401935060208301925050600181019050613ca9565b5050509392505050565b6000613cf3613cee84614e86565b614e35565b90508083825260208201905082856020860282011115613d1257600080fd5b60005b85811015613d425781613d288882613eee565b845260208401935060208301925050600181019050613d15565b5050509392505050565b6000613d5f613d5a84614eb2565b614e35565b905082815260208101848484011115613d7757600080fd5b613d8284828561511c565b509392505050565b6000613d9d613d9884614ee3565b614e35565b905082815260208101848484011115613db557600080fd5b613dc084828561511c565b509392505050565b600081359050613dd781615a4d565b92915050565b600082601f830112613dee57600080fd5b8135613dfe848260208601613c74565b91505092915050565b600082601f830112613e1857600080fd5b8135613e28848260208601613ce0565b91505092915050565b600081359050613e4081615a64565b92915050565b600081519050613e5581615a64565b92915050565b600081359050613e6a81615a7b565b92915050565b600081359050613e7f81615a92565b92915050565b600081519050613e9481615a92565b92915050565b600082601f830112613eab57600080fd5b8135613ebb848260208601613d4c565b91505092915050565b600082601f830112613ed557600080fd5b8135613ee5848260208601613d8a565b91505092915050565b600081359050613efd81615aa9565b92915050565b600081519050613f1281615aa9565b92915050565b600060208284031215613f2a57600080fd5b6000613f3884828501613dc8565b91505092915050565b60008060408385031215613f5457600080fd5b6000613f6285828601613dc8565b9250506020613f7385828601613dc8565b9150509250929050565b600080600060608486031215613f9257600080fd5b6000613fa086828701613dc8565b9350506020613fb186828701613dc8565b9250506040613fc286828701613eee565b9150509250925092565b60008060008060808587031215613fe257600080fd5b6000613ff087828801613dc8565b945050602061400187828801613dc8565b935050604061401287828801613eee565b925050606085013567ffffffffffffffff81111561402f57600080fd5b61403b87828801613e9a565b91505092959194509250565b6000806040838503121561405a57600080fd5b600061406885828601613dc8565b925050602061407985828601613e31565b9150509250929050565b6000806040838503121561409657600080fd5b60006140a485828601613dc8565b92505060206140b585828601613eee565b9150509250929050565b600080604083850312156140d257600080fd5b600083013567ffffffffffffffff8111156140ec57600080fd5b6140f885828601613e07565b925050602083013567ffffffffffffffff81111561411557600080fd5b61412185828601613ddd565b9150509250929050565b60006020828403121561413d57600080fd5b600061414b84828501613e46565b91505092915050565b6000806040838503121561416757600080fd5b600061417585828601613e5b565b925050602061418685828601613eee565b9150509250929050565b6000602082840312156141a257600080fd5b60006141b084828501613e70565b91505092915050565b6000602082840312156141cb57600080fd5b60006141d984828501613e85565b91505092915050565b6000602082840312156141f457600080fd5b600082013567ffffffffffffffff81111561420e57600080fd5b61421a84828501613ec4565b91505092915050565b60006020828403121561423557600080fd5b600061424384828501613eee565b91505092915050565b60006020828403121561425e57600080fd5b600061426c84828501613f03565b91505092915050565b61427e8161508c565b82525050565b61428d8161509e565b82525050565b61429c816150aa565b82525050565b6142b36142ae826150aa565b61520a565b82525050565b60006142c482614f29565b6142ce8185614f3f565b93506142de81856020860161512b565b6142e78161530b565b840191505092915050565b6142fb8161510a565b82525050565b600061430c82614f34565b6143168185614f5b565b935061432681856020860161512b565b61432f8161530b565b840191505092915050565b600061434582614f34565b61434f8185614f6c565b935061435f81856020860161512b565b80840191505092915050565b600081546143788161515e565b6143828186614f6c565b9450600182166000811461439d57600181146143ae576143e1565b60ff198316865281860193506143e1565b6143b785614f14565b60005b838110156143d9578154818901526001820191506020810190506143ba565b838801955050505b50505092915050565b60006143f7602b83614f5b565b91506144028261531c565b604082019050919050565b600061441a603283614f5b565b91506144258261536b565b604082019050919050565b600061443d601f83614f5b565b9150614448826153ba565b602082019050919050565b6000614460602683614f5b565b915061446b826153e3565b604082019050919050565b6000614483601c83614f5b565b915061448e82615432565b602082019050919050565b60006144a6602483614f5b565b91506144b18261545b565b604082019050919050565b60006144c9601983614f5b565b91506144d4826154aa565b602082019050919050565b60006144ec602c83614f5b565b91506144f7826154d3565b604082019050919050565b600061450f601183614f5b565b915061451a82615522565b602082019050919050565b6000614532600f83614f5b565b915061453d8261554b565b602082019050919050565b6000614555603883614f5b565b915061456082615574565b604082019050919050565b6000614578602a83614f5b565b9150614583826155c3565b604082019050919050565b600061459b602983614f5b565b91506145a682615612565b604082019050919050565b60006145be602283614f5b565b91506145c982615661565b604082019050919050565b60006145e1602083614f5b565b91506145ec826156b0565b602082019050919050565b6000614604601283614f5b565b915061460f826156d9565b602082019050919050565b6000614627602c83614f5b565b915061463282615702565b604082019050919050565b600061464a600583614f6c565b915061465582615751565b600582019050919050565b600061466d601d83614f5b565b91506146788261577a565b602082019050919050565b6000614690602783614f5b565b915061469b826157a3565b604082019050919050565b60006146b3602083614f5b565b91506146be826157f2565b602082019050919050565b60006146d6602983614f5b565b91506146e18261581b565b604082019050919050565b60006146f9602483614f5b565b91506147048261586a565b604082019050919050565b600061471c601f83614f5b565b9150614727826158b9565b602082019050919050565b600061473f602183614f5b565b915061474a826158e2565b604082019050919050565b6000614762601883614f5b565b915061476d82615931565b602082019050919050565b6000614785600083614f50565b91506147908261595a565b600082019050919050565b60006147a8603183614f5b565b91506147b38261595d565b604082019050919050565b60006147cb602c83614f5b565b91506147d6826159ac565b604082019050919050565b60006147ee601383614f5b565b91506147f9826159fb565b602082019050919050565b6000614811601c83614f5b565b915061481c82615a24565b602082019050919050565b61483081615100565b82525050565b61484761484282615100565b615214565b82525050565b600061485982856142a2565b6020820191506148698284614836565b6020820191508190509392505050565b6000614885828561436b565b9150614891828461433a565b915061489c8261463d565b91508190509392505050565b60006148b382614778565b9150819050919050565b60006020820190506148d26000830184614275565b92915050565b60006080820190506148ed6000830187614275565b6148fa6020830186614275565b6149076040830185614827565b818103606083015261491981846142b9565b905095945050505050565b60006040820190506149396000830185614275565b61494660208301846142f2565b9392505050565b60006040820190506149626000830185614275565b61496f6020830184614827565b9392505050565b600060608201905061498b6000830186614275565b6149986020830185614827565b81810360408301526149aa81846142b9565b9050949350505050565b60006020820190506149c96000830184614284565b92915050565b60006020820190506149e46000830184614293565b92915050565b60006040820190506149ff6000830185614293565b614a0c6020830184614827565b9392505050565b6000608082019050614a286000830187614293565b614a356020830186614827565b614a426040830185614275565b614a4f6060830184614827565b95945050505050565b60006020820190508181036000830152614a728184614301565b905092915050565b60006020820190508181036000830152614a93816143ea565b9050919050565b60006020820190508181036000830152614ab38161440d565b9050919050565b60006020820190508181036000830152614ad381614430565b9050919050565b60006020820190508181036000830152614af381614453565b9050919050565b60006020820190508181036000830152614b1381614476565b9050919050565b60006020820190508181036000830152614b3381614499565b9050919050565b60006020820190508181036000830152614b53816144bc565b9050919050565b60006020820190508181036000830152614b73816144df565b9050919050565b60006020820190508181036000830152614b9381614502565b9050919050565b60006020820190508181036000830152614bb381614525565b9050919050565b60006020820190508181036000830152614bd381614548565b9050919050565b60006020820190508181036000830152614bf38161456b565b9050919050565b60006020820190508181036000830152614c138161458e565b9050919050565b60006020820190508181036000830152614c33816145b1565b9050919050565b60006020820190508181036000830152614c53816145d4565b9050919050565b60006020820190508181036000830152614c73816145f7565b9050919050565b60006020820190508181036000830152614c938161461a565b9050919050565b60006020820190508181036000830152614cb381614660565b9050919050565b60006020820190508181036000830152614cd381614683565b9050919050565b60006020820190508181036000830152614cf3816146a6565b9050919050565b60006020820190508181036000830152614d13816146c9565b9050919050565b60006020820190508181036000830152614d33816146ec565b9050919050565b60006020820190508181036000830152614d538161470f565b9050919050565b60006020820190508181036000830152614d7381614732565b9050919050565b60006020820190508181036000830152614d9381614755565b9050919050565b60006020820190508181036000830152614db38161479b565b9050919050565b60006020820190508181036000830152614dd3816147be565b9050919050565b60006020820190508181036000830152614df3816147e1565b9050919050565b60006020820190508181036000830152614e1381614804565b9050919050565b6000602082019050614e2f6000830184614827565b92915050565b6000614e3f614e50565b9050614e4b8282615190565b919050565b6000604051905090565b600067ffffffffffffffff821115614e7557614e746152dc565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614ea157614ea06152dc565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614ecd57614ecc6152dc565b5b614ed68261530b565b9050602081019050919050565b600067ffffffffffffffff821115614efe57614efd6152dc565b5b614f078261530b565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614f8282615100565b9150614f8d83615100565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614fc257614fc161524f565b5b828201905092915050565b6000614fd882615100565b9150614fe383615100565b925082614ff357614ff261527e565b5b828204905092915050565b600061500982615100565b915061501483615100565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561504d5761504c61524f565b5b828202905092915050565b600061506382615100565b915061506e83615100565b9250828210156150815761508061524f565b5b828203905092915050565b6000615097826150e0565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061511582615100565b9050919050565b82818337600083830152505050565b60005b8381101561514957808201518184015260208101905061512e565b83811115615158576000848401525b50505050565b6000600282049050600182168061517657607f821691505b6020821081141561518a576151896152ad565b5b50919050565b6151998261530b565b810181811067ffffffffffffffff821117156151b8576151b76152dc565b5b80604052505050565b60006151cc82615100565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156151ff576151fe61524f565b5b600182019050919050565b6000819050919050565b6000819050919050565b600061522982615100565b915061523483615100565b9250826152445761524361527e565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4e65656420302e3037373720455448207065722061666669726d6174696f6e00600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f524e4720414c524541445920445241574e000000000000000000000000000000600082015250565b7f4e6f7420656e6f756768204c494e4b0000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4d6178696d756d2033332061666669726d6174696f6e73207065722077616c6c60008201527f6574000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f556e61626c6520746f207472616e736665720000000000000000000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f57686974656c69737420706572696f642068617320736f6c64206f7574000000600082015250565b7f43616e206d696e7420757020746f20372061666669726d6174696f6e7320617460008201527f20612074696d6500000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4d6178696d756d20312061666669726d6174696f6e20647572696e672070726560008201527f73616c6500000000000000000000000000000000000000000000000000000000602082015250565b7f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4d75737420647261772072616e646f6d206e756d6265722e0000000000000000600082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f53616c65206861736e2774207374617274656400000000000000000000000000600082015250565b7f4e6f7420656e6f7567682061666669726d6174696f6e73206c65667400000000600082015250565b615a568161508c565b8114615a6157600080fd5b50565b615a6d8161509e565b8114615a7857600080fd5b50565b615a84816150aa565b8114615a8f57600080fd5b50565b615a9b816150b4565b8114615aa657600080fd5b50565b615ab281615100565b8114615abd57600080fd5b5056fea26469706673582212202162a11e028c04285c4ae3d2cba728afdb253089d00a3817c2aa88ce61485c4d64736f6c63430008040033

Deployed Bytecode

0x60806040526004361061025c5760003560e01c8063715018a611610144578063b88d4fde116100b6578063cfc86f7b1161007a578063cfc86f7b14610855578063d492b56514610880578063e562011a146108ab578063e985e9c5146108d4578063f2fde38b14610911578063f3fef3a31461093a5761025c565b8063b88d4fde1461076e578063c2b61a8814610797578063c6ab67a3146107c2578063c87b56dd146107ed578063cd1a957d1461082a5761025c565b80639123fff4116101085780639123fff41461069857806394985ddd146106c357806395d89b41146106ec578063a22cb46514610717578063b66a0e5d14610740578063b7315d27146107575761025c565b8063715018a6146106115780637f19c412146106285780638af31f3b1461063f5780638da5cb5b146106565780638dc654a2146106815761025c565b8063333cd5c1116101dd57806355f804b3116101a157806355f804b3146104fc5780635bbd8cc0146105255780635c474f9e146105415780636352211e1461056c5780636e18adb0146105a957806370a08231146105d45761025c565b8063333cd5c11461043d578063339159d31461045457806342842e0e1461047f5780634f6ccce7146104a857806355367ba9146104e55761025c565b806316cf00ab1161022457806316cf00ab1461035857806318160ddd146103815780631f14ce93146103ac57806323b872dd146103d75780632f745c59146104005761025c565b806301ffc9a71461026157806306fdde031461029e578063078e5de3146102c9578063081812fc146102f2578063095ea7b31461032f575b600080fd5b34801561026d57600080fd5b5061028860048036038101906102839190614190565b610963565b60405161029591906149b4565b60405180910390f35b3480156102aa57600080fd5b506102b36109dd565b6040516102c09190614a58565b60405180910390f35b3480156102d557600080fd5b506102f060048036038101906102eb9190614223565b610a6f565b005b3480156102fe57600080fd5b5061031960048036038101906103149190614223565b610af5565b60405161032691906148bd565b60405180910390f35b34801561033b57600080fd5b5061035660048036038101906103519190614083565b610b7a565b005b34801561036457600080fd5b5061037f600480360381019061037a9190614223565b610c92565b005b34801561038d57600080fd5b50610396610d33565b6040516103a39190614e1a565b60405180910390f35b3480156103b857600080fd5b506103c1610d40565b6040516103ce9190614e1a565b60405180910390f35b3480156103e357600080fd5b506103fe60048036038101906103f99190613f7d565b610d46565b005b34801561040c57600080fd5b5061042760048036038101906104229190614083565b610da6565b6040516104349190614e1a565b60405180910390f35b34801561044957600080fd5b50610452610e4b565b005b34801561046057600080fd5b50610469610ee4565b60405161047691906149b4565b60405180910390f35b34801561048b57600080fd5b506104a660048036038101906104a19190613f7d565b610ef7565b005b3480156104b457600080fd5b506104cf60048036038101906104ca9190614223565b610f17565b6040516104dc9190614e1a565b60405180910390f35b3480156104f157600080fd5b506104fa610fae565b005b34801561050857600080fd5b50610523600480360381019061051e91906141e2565b611047565b005b61053f600480360381019061053a9190614223565b6110dd565b005b34801561054d57600080fd5b5061055661153c565b60405161056391906149b4565b60405180910390f35b34801561057857600080fd5b50610593600480360381019061058e9190614223565b61154f565b6040516105a091906148bd565b60405180910390f35b3480156105b557600080fd5b506105be611601565b6040516105cb9190614e1a565b60405180910390f35b3480156105e057600080fd5b506105fb60048036038101906105f69190613f18565b611607565b6040516106089190614e1a565b60405180910390f35b34801561061d57600080fd5b506106266116bf565b005b34801561063457600080fd5b5061063d611747565b005b34801561064b57600080fd5b5061065461182f565b005b34801561066257600080fd5b5061066b6118c8565b60405161067891906148bd565b60405180910390f35b34801561068d57600080fd5b506106966118f2565b005b3480156106a457600080fd5b506106ad611b04565b6040516106ba91906149b4565b60405180910390f35b3480156106cf57600080fd5b506106ea60048036038101906106e59190614154565b611b17565b005b3480156106f857600080fd5b50610701611bb3565b60405161070e9190614a58565b60405180910390f35b34801561072357600080fd5b5061073e60048036038101906107399190614047565b611c45565b005b34801561074c57600080fd5b50610755611dc6565b005b34801561076357600080fd5b5061076c611eae565b005b34801561077a57600080fd5b5061079560048036038101906107909190613fcc565b611f96565b005b3480156107a357600080fd5b506107ac611ff8565b6040516107b991906149cf565b60405180910390f35b3480156107ce57600080fd5b506107d76121c6565b6040516107e49190614a58565b60405180910390f35b3480156107f957600080fd5b50610814600480360381019061080f9190614223565b612254565b6040516108219190614a58565b60405180910390f35b34801561083657600080fd5b5061083f6122d4565b60405161084c91906149b4565b60405180910390f35b34801561086157600080fd5b5061086a6122e7565b6040516108779190614a58565b60405180910390f35b34801561088c57600080fd5b50610895612375565b6040516108a29190614e1a565b60405180910390f35b3480156108b757600080fd5b506108d260048036038101906108cd91906140bf565b61237b565b005b3480156108e057600080fd5b506108fb60048036038101906108f69190613f41565b6125d5565b60405161090891906149b4565b60405180910390f35b34801561091d57600080fd5b5061093860048036038101906109339190613f18565b612669565b005b34801561094657600080fd5b50610961600480360381019061095c9190614083565b612761565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109d657506109d582612850565b5b9050919050565b6060600080546109ec9061515e565b80601f0160208091040260200160405190810160405280929190818152602001828054610a189061515e565b8015610a655780601f10610a3a57610100808354040283529160200191610a65565b820191906000526020600020905b815481529060010190602001808311610a4857829003601f168201915b5050505050905090565b610a77612932565b73ffffffffffffffffffffffffffffffffffffffff16610a956118c8565b73ffffffffffffffffffffffffffffffffffffffff1614610aeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae290614cda565b60405180910390fd5b8060128190555050565b6000610b008261293a565b610b3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3690614c7a565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b858261154f565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610bf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bed90614d5a565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c15612932565b73ffffffffffffffffffffffffffffffffffffffff161480610c445750610c4381610c3e612932565b6125d5565b5b610c83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7a90614bba565b60405180910390fd5b610c8d83836129a6565b505050565b610c9a612932565b73ffffffffffffffffffffffffffffffffffffffff16610cb86118c8565b73ffffffffffffffffffffffffffffffffffffffff1614610d0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0590614cda565b60405180910390fd5b806010819055506001600f60036101000a81548160ff02191690831515021790555050565b6000600880549050905090565b60125481565b610d57610d51612932565b82612a5f565b610d96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8d90614d9a565b60405180910390fd5b610da1838383612b3d565b505050565b6000610db183611607565b8210610df2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de990614a7a565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610e53612932565b73ffffffffffffffffffffffffffffffffffffffff16610e716118c8565b73ffffffffffffffffffffffffffffffffffffffff1614610ec7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ebe90614cda565b60405180910390fd5b6000600f60016101000a81548160ff021916908315150217905550565b600f60019054906101000a900460ff1681565b610f1283838360405180602001604052806000815250611f96565b505050565b6000610f21610d33565b8210610f62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5990614dba565b60405180910390fd5b60088281548110610f9c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b610fb6612932565b73ffffffffffffffffffffffffffffffffffffffff16610fd46118c8565b73ffffffffffffffffffffffffffffffffffffffff161461102a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102190614cda565b60405180910390fd5b6000600f60006101000a81548160ff021916908315150217905550565b61104f612932565b73ffffffffffffffffffffffffffffffffffffffff1661106d6118c8565b73ffffffffffffffffffffffffffffffffffffffff16146110c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ba90614cda565b60405180910390fd5b80600c90805190602001906110d9929190613bd1565b5050565b600f60039054906101000a900460ff1661112c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112390614dda565b60405180910390fd5b60006111488261113a610d33565b612d9990919063ffffffff16565b905060006111678361115933611607565b612d9990919063ffffffff16565b9050600f60019054906101000a900460ff161561120c576104578211156111c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ba90614c9a565b60405180910390fd5b6001811115611207576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111fe90614d1a565b60405180910390fd5b6113ba565b600f60029054906101000a900460ff1615611369576000600f60049054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e336103786040518363ffffffff1660e01b8152600401611281929190614924565b60206040518083038186803b15801561129957600080fd5b505afa1580156112ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112d1919061424c565b116112db57600080fd5b6107cf821115611320576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131790614c9a565b60405180910390fd5b6001811115611364576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135b90614d1a565b60405180910390fd5b6113b9565b600f60009054906101000a900460ff166113b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113af90614dda565b60405180910390fd5b5b5b6000831180156113cc57506013548311155b61140b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140290614cba565b60405180910390fd5b602181111561144f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144690614c1a565b60405180910390fd5b601254821115611494576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148b90614dfa565b60405180910390fd5b6114a983601154612daf90919063ffffffff16565b34146114ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e190614aba565b60405180910390fd5b60005b838110156115365760006001611501610d33565b61150b9190614f77565b9050601254811015611522576115213382612dc5565b5b50808061152e906151c1565b9150506114ed565b50505050565b600f60009054906101000a900460ff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156115f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ef90614bfa565b60405180910390fd5b80915050919050565b60135481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611678576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166f90614bda565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6116c7612932565b73ffffffffffffffffffffffffffffffffffffffff166116e56118c8565b73ffffffffffffffffffffffffffffffffffffffff161461173b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173290614cda565b60405180910390fd5b6117456000612de3565b565b61174f612932565b73ffffffffffffffffffffffffffffffffffffffff1661176d6118c8565b73ffffffffffffffffffffffffffffffffffffffff16146117c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ba90614cda565b60405180910390fd5b600f60039054906101000a900460ff16611812576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180990614d7a565b60405180910390fd5b6001600f60016101000a81548160ff021916908315150217905550565b611837612932565b73ffffffffffffffffffffffffffffffffffffffff166118556118c8565b73ffffffffffffffffffffffffffffffffffffffff16146118ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118a290614cda565b60405180910390fd5b6000600f60026101000a81548160ff021916908315150217905550565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6118fa612932565b73ffffffffffffffffffffffffffffffffffffffff166119186118c8565b73ffffffffffffffffffffffffffffffffffffffff161461196e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196590614cda565b60405180910390fd5b7f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca73ffffffffffffffffffffffffffffffffffffffff1663a9059cbb337f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611a0491906148bd565b60206040518083038186803b158015611a1c57600080fd5b505afa158015611a30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a54919061424c565b6040518363ffffffff1660e01b8152600401611a7192919061494d565b602060405180830381600087803b158015611a8b57600080fd5b505af1158015611a9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac3919061412b565b611b02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af990614c5a565b60405180910390fd5b565b600f60029054906101000a900460ff1681565b7f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611ba5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9c90614d3a565b60405180910390fd5b611baf8282612ea9565b5050565b606060018054611bc29061515e565b80601f0160208091040260200160405190810160405280929190818152602001828054611bee9061515e565b8015611c3b5780601f10611c1057610100808354040283529160200191611c3b565b820191906000526020600020905b815481529060010190602001808311611c1e57829003601f168201915b5050505050905090565b611c4d612932565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611cbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb290614b3a565b60405180910390fd5b8060056000611cc8612932565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611d75612932565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611dba91906149b4565b60405180910390a35050565b611dce612932565b73ffffffffffffffffffffffffffffffffffffffff16611dec6118c8565b73ffffffffffffffffffffffffffffffffffffffff1614611e42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3990614cda565b60405180910390fd5b600f60039054906101000a900460ff16611e91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8890614d7a565b60405180910390fd5b6001600f60006101000a81548160ff021916908315150217905550565b611eb6612932565b73ffffffffffffffffffffffffffffffffffffffff16611ed46118c8565b73ffffffffffffffffffffffffffffffffffffffff1614611f2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2190614cda565b60405180910390fd5b600f60039054906101000a900460ff16611f79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7090614d7a565b60405180910390fd5b6001600f60026101000a81548160ff021916908315150217905550565b611fa7611fa1612932565b83612a5f565b611fe6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fdd90614d9a565b60405180910390fd5b611ff284848484612f29565b50505050565b6000612002612932565b73ffffffffffffffffffffffffffffffffffffffff166120206118c8565b73ffffffffffffffffffffffffffffffffffffffff1614612076576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206d90614cda565b60405180910390fd5b600f60039054906101000a900460ff16156120c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120bd90614b7a565b60405180910390fd5b600e547f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161212291906148bd565b60206040518083038186803b15801561213a57600080fd5b505afa15801561214e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612172919061424c565b10156121b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121aa90614b9a565b60405180910390fd5b6121c1600d54600e54612f85565b905090565b601480546121d39061515e565b80601f01602080910402602001604051908101604052809291908181526020018280546121ff9061515e565b801561224c5780601f106122215761010080835404028352916020019161224c565b820191906000526020600020905b81548152906001019060200180831161222f57829003601f168201915b505050505081565b60606000601254601054846122699190614f77565b612273919061521e565b90506000600c80546122849061515e565b9050116122a057604051806020016040528060008152506122cc565b600c6122ab826130e7565b6040516020016122bc929190614879565b6040516020818303038152906040525b915050919050565b600f60039054906101000a900460ff1681565b600c80546122f49061515e565b80601f01602080910402602001604051908101604052809291908181526020018280546123209061515e565b801561236d5780601f106123425761010080835404028352916020019161236d565b820191906000526020600020905b81548152906001019060200180831161235057829003601f168201915b505050505081565b60105481565b612383612932565b73ffffffffffffffffffffffffffffffffffffffff166123a16118c8565b73ffffffffffffffffffffffffffffffffffffffff16146123f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ee90614cda565b60405180910390fd5b600f60039054906101000a900460ff16612446576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243d90614dda565b60405180910390fd5b60005b82518110156125d0576012546124af848381518110612491577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516124a1610d33565b612d9990919063ffffffff16565b11156124f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e790614dfa565b60405180910390fd5b60005b83828151811061252c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101518110156125bc5760006001612547610d33565b6125519190614f77565b90506012548110156125a8576125a7848481518110612599577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015182612dc5565b5b5080806125b4906151c1565b9150506124f3565b5080806125c8906151c1565b915050612449565b505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612671612932565b73ffffffffffffffffffffffffffffffffffffffff1661268f6118c8565b73ffffffffffffffffffffffffffffffffffffffff16146126e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126dc90614cda565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612755576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161274c90614ada565b60405180910390fd5b61275e81612de3565b50565b612769612932565b73ffffffffffffffffffffffffffffffffffffffff166127876118c8565b73ffffffffffffffffffffffffffffffffffffffff16146127dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127d490614cda565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff168162030d4090604051612806906148a8565b600060405180830381858888f193505050503d8060008114612844576040519150601f19603f3d011682016040523d82523d6000602084013e612849565b606091505b5050505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061291b57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061292b575061292a82613294565b5b9050919050565b600033905090565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612a198361154f565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612a6a8261293a565b612aa9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aa090614b5a565b60405180910390fd5b6000612ab48361154f565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612b2357508373ffffffffffffffffffffffffffffffffffffffff16612b0b84610af5565b73ffffffffffffffffffffffffffffffffffffffff16145b80612b345750612b3381856125d5565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612b5d8261154f565b73ffffffffffffffffffffffffffffffffffffffff1614612bb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612baa90614cfa565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612c23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c1a90614b1a565b60405180910390fd5b612c2e8383836132fe565b612c396000826129a6565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c899190615058565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ce09190614f77565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008183612da79190614f77565b905092915050565b60008183612dbd9190614ffe565b905092915050565b612ddf828260405180602001604052806000815250613412565b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60125481612eb7919061521e565b60108190555060006010541415612ed15760016010819055505b7f325e9ea9802b4be9466292a1c744577edd9a7ce855eeb6dd5513b3a9728b0658601054604051612f029190614e1a565b60405180910390a16001600f60036101000a81548160ff0219169083151502179055505050565b612f34848484612b3d565b612f408484848461346d565b612f7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f7690614a9a565b60405180910390fd5b50505050565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca73ffffffffffffffffffffffffffffffffffffffff16634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795284866000604051602001612ff99291906149ea565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161302693929190614976565b602060405180830381600087803b15801561304057600080fd5b505af1158015613054573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613078919061412b565b50600061309b84600030600b600089815260200190815260200160002054613604565b90506001600b6000868152602001908152602001600020546130bd9190614f77565b600b6000868152602001908152602001600020819055506130de8482613640565b91505092915050565b6060600082141561312f576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061328f565b600082905060005b6000821461316157808061314a906151c1565b915050600a8261315a9190614fcd565b9150613137565b60008167ffffffffffffffff8111156131a3577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156131d55781602001600182028036833780820191505090505b5090505b60008514613288576001826131ee9190615058565b9150600a856131fd919061521e565b60306132099190614f77565b60f81b818381518110613245577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856132819190614fcd565b94506131d9565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b613309838383613673565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561334c5761334781613678565b61338b565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461338a5761338983826136c1565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156133ce576133c98161382e565b61340d565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461340c5761340b8282613971565b5b5b505050565b61341c83836139f0565b613429600084848461346d565b613468576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161345f90614a9a565b60405180910390fd5b505050565b600061348e8473ffffffffffffffffffffffffffffffffffffffff16613bbe565b156135f7578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026134b7612932565b8786866040518563ffffffff1660e01b81526004016134d994939291906148d8565b602060405180830381600087803b1580156134f357600080fd5b505af192505050801561352457506040513d601f19601f8201168201806040525081019061352191906141b9565b60015b6135a7573d8060008114613554576040519150601f19603f3d011682016040523d82523d6000602084013e613559565b606091505b5060008151141561359f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161359690614a9a565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506135fc565b600190505b949350505050565b60008484848460405160200161361d9493929190614a13565b6040516020818303038152906040528051906020012060001c9050949350505050565b6000828260405160200161365592919061484d565b60405160208183030381529060405280519060200120905092915050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016136ce84611607565b6136d89190615058565b90506000600760008481526020019081526020016000205490508181146137bd576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506138429190615058565b9050600060096000848152602001908152602001600020549050600060088381548110613898577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080600883815481106138e0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613955577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061397c83611607565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613a60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a5790614c3a565b60405180910390fd5b613a698161293a565b15613aa9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613aa090614afa565b60405180910390fd5b613ab5600083836132fe565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613b059190614f77565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b828054613bdd9061515e565b90600052602060002090601f016020900481019282613bff5760008555613c46565b82601f10613c1857805160ff1916838001178555613c46565b82800160010185558215613c46579182015b82811115613c45578251825591602001919060010190613c2a565b5b509050613c539190613c57565b5090565b5b80821115613c70576000816000905550600101613c58565b5090565b6000613c87613c8284614e5a565b614e35565b90508083825260208201905082856020860282011115613ca657600080fd5b60005b85811015613cd65781613cbc8882613dc8565b845260208401935060208301925050600181019050613ca9565b5050509392505050565b6000613cf3613cee84614e86565b614e35565b90508083825260208201905082856020860282011115613d1257600080fd5b60005b85811015613d425781613d288882613eee565b845260208401935060208301925050600181019050613d15565b5050509392505050565b6000613d5f613d5a84614eb2565b614e35565b905082815260208101848484011115613d7757600080fd5b613d8284828561511c565b509392505050565b6000613d9d613d9884614ee3565b614e35565b905082815260208101848484011115613db557600080fd5b613dc084828561511c565b509392505050565b600081359050613dd781615a4d565b92915050565b600082601f830112613dee57600080fd5b8135613dfe848260208601613c74565b91505092915050565b600082601f830112613e1857600080fd5b8135613e28848260208601613ce0565b91505092915050565b600081359050613e4081615a64565b92915050565b600081519050613e5581615a64565b92915050565b600081359050613e6a81615a7b565b92915050565b600081359050613e7f81615a92565b92915050565b600081519050613e9481615a92565b92915050565b600082601f830112613eab57600080fd5b8135613ebb848260208601613d4c565b91505092915050565b600082601f830112613ed557600080fd5b8135613ee5848260208601613d8a565b91505092915050565b600081359050613efd81615aa9565b92915050565b600081519050613f1281615aa9565b92915050565b600060208284031215613f2a57600080fd5b6000613f3884828501613dc8565b91505092915050565b60008060408385031215613f5457600080fd5b6000613f6285828601613dc8565b9250506020613f7385828601613dc8565b9150509250929050565b600080600060608486031215613f9257600080fd5b6000613fa086828701613dc8565b9350506020613fb186828701613dc8565b9250506040613fc286828701613eee565b9150509250925092565b60008060008060808587031215613fe257600080fd5b6000613ff087828801613dc8565b945050602061400187828801613dc8565b935050604061401287828801613eee565b925050606085013567ffffffffffffffff81111561402f57600080fd5b61403b87828801613e9a565b91505092959194509250565b6000806040838503121561405a57600080fd5b600061406885828601613dc8565b925050602061407985828601613e31565b9150509250929050565b6000806040838503121561409657600080fd5b60006140a485828601613dc8565b92505060206140b585828601613eee565b9150509250929050565b600080604083850312156140d257600080fd5b600083013567ffffffffffffffff8111156140ec57600080fd5b6140f885828601613e07565b925050602083013567ffffffffffffffff81111561411557600080fd5b61412185828601613ddd565b9150509250929050565b60006020828403121561413d57600080fd5b600061414b84828501613e46565b91505092915050565b6000806040838503121561416757600080fd5b600061417585828601613e5b565b925050602061418685828601613eee565b9150509250929050565b6000602082840312156141a257600080fd5b60006141b084828501613e70565b91505092915050565b6000602082840312156141cb57600080fd5b60006141d984828501613e85565b91505092915050565b6000602082840312156141f457600080fd5b600082013567ffffffffffffffff81111561420e57600080fd5b61421a84828501613ec4565b91505092915050565b60006020828403121561423557600080fd5b600061424384828501613eee565b91505092915050565b60006020828403121561425e57600080fd5b600061426c84828501613f03565b91505092915050565b61427e8161508c565b82525050565b61428d8161509e565b82525050565b61429c816150aa565b82525050565b6142b36142ae826150aa565b61520a565b82525050565b60006142c482614f29565b6142ce8185614f3f565b93506142de81856020860161512b565b6142e78161530b565b840191505092915050565b6142fb8161510a565b82525050565b600061430c82614f34565b6143168185614f5b565b935061432681856020860161512b565b61432f8161530b565b840191505092915050565b600061434582614f34565b61434f8185614f6c565b935061435f81856020860161512b565b80840191505092915050565b600081546143788161515e565b6143828186614f6c565b9450600182166000811461439d57600181146143ae576143e1565b60ff198316865281860193506143e1565b6143b785614f14565b60005b838110156143d9578154818901526001820191506020810190506143ba565b838801955050505b50505092915050565b60006143f7602b83614f5b565b91506144028261531c565b604082019050919050565b600061441a603283614f5b565b91506144258261536b565b604082019050919050565b600061443d601f83614f5b565b9150614448826153ba565b602082019050919050565b6000614460602683614f5b565b915061446b826153e3565b604082019050919050565b6000614483601c83614f5b565b915061448e82615432565b602082019050919050565b60006144a6602483614f5b565b91506144b18261545b565b604082019050919050565b60006144c9601983614f5b565b91506144d4826154aa565b602082019050919050565b60006144ec602c83614f5b565b91506144f7826154d3565b604082019050919050565b600061450f601183614f5b565b915061451a82615522565b602082019050919050565b6000614532600f83614f5b565b915061453d8261554b565b602082019050919050565b6000614555603883614f5b565b915061456082615574565b604082019050919050565b6000614578602a83614f5b565b9150614583826155c3565b604082019050919050565b600061459b602983614f5b565b91506145a682615612565b604082019050919050565b60006145be602283614f5b565b91506145c982615661565b604082019050919050565b60006145e1602083614f5b565b91506145ec826156b0565b602082019050919050565b6000614604601283614f5b565b915061460f826156d9565b602082019050919050565b6000614627602c83614f5b565b915061463282615702565b604082019050919050565b600061464a600583614f6c565b915061465582615751565b600582019050919050565b600061466d601d83614f5b565b91506146788261577a565b602082019050919050565b6000614690602783614f5b565b915061469b826157a3565b604082019050919050565b60006146b3602083614f5b565b91506146be826157f2565b602082019050919050565b60006146d6602983614f5b565b91506146e18261581b565b604082019050919050565b60006146f9602483614f5b565b91506147048261586a565b604082019050919050565b600061471c601f83614f5b565b9150614727826158b9565b602082019050919050565b600061473f602183614f5b565b915061474a826158e2565b604082019050919050565b6000614762601883614f5b565b915061476d82615931565b602082019050919050565b6000614785600083614f50565b91506147908261595a565b600082019050919050565b60006147a8603183614f5b565b91506147b38261595d565b604082019050919050565b60006147cb602c83614f5b565b91506147d6826159ac565b604082019050919050565b60006147ee601383614f5b565b91506147f9826159fb565b602082019050919050565b6000614811601c83614f5b565b915061481c82615a24565b602082019050919050565b61483081615100565b82525050565b61484761484282615100565b615214565b82525050565b600061485982856142a2565b6020820191506148698284614836565b6020820191508190509392505050565b6000614885828561436b565b9150614891828461433a565b915061489c8261463d565b91508190509392505050565b60006148b382614778565b9150819050919050565b60006020820190506148d26000830184614275565b92915050565b60006080820190506148ed6000830187614275565b6148fa6020830186614275565b6149076040830185614827565b818103606083015261491981846142b9565b905095945050505050565b60006040820190506149396000830185614275565b61494660208301846142f2565b9392505050565b60006040820190506149626000830185614275565b61496f6020830184614827565b9392505050565b600060608201905061498b6000830186614275565b6149986020830185614827565b81810360408301526149aa81846142b9565b9050949350505050565b60006020820190506149c96000830184614284565b92915050565b60006020820190506149e46000830184614293565b92915050565b60006040820190506149ff6000830185614293565b614a0c6020830184614827565b9392505050565b6000608082019050614a286000830187614293565b614a356020830186614827565b614a426040830185614275565b614a4f6060830184614827565b95945050505050565b60006020820190508181036000830152614a728184614301565b905092915050565b60006020820190508181036000830152614a93816143ea565b9050919050565b60006020820190508181036000830152614ab38161440d565b9050919050565b60006020820190508181036000830152614ad381614430565b9050919050565b60006020820190508181036000830152614af381614453565b9050919050565b60006020820190508181036000830152614b1381614476565b9050919050565b60006020820190508181036000830152614b3381614499565b9050919050565b60006020820190508181036000830152614b53816144bc565b9050919050565b60006020820190508181036000830152614b73816144df565b9050919050565b60006020820190508181036000830152614b9381614502565b9050919050565b60006020820190508181036000830152614bb381614525565b9050919050565b60006020820190508181036000830152614bd381614548565b9050919050565b60006020820190508181036000830152614bf38161456b565b9050919050565b60006020820190508181036000830152614c138161458e565b9050919050565b60006020820190508181036000830152614c33816145b1565b9050919050565b60006020820190508181036000830152614c53816145d4565b9050919050565b60006020820190508181036000830152614c73816145f7565b9050919050565b60006020820190508181036000830152614c938161461a565b9050919050565b60006020820190508181036000830152614cb381614660565b9050919050565b60006020820190508181036000830152614cd381614683565b9050919050565b60006020820190508181036000830152614cf3816146a6565b9050919050565b60006020820190508181036000830152614d13816146c9565b9050919050565b60006020820190508181036000830152614d33816146ec565b9050919050565b60006020820190508181036000830152614d538161470f565b9050919050565b60006020820190508181036000830152614d7381614732565b9050919050565b60006020820190508181036000830152614d9381614755565b9050919050565b60006020820190508181036000830152614db38161479b565b9050919050565b60006020820190508181036000830152614dd3816147be565b9050919050565b60006020820190508181036000830152614df3816147e1565b9050919050565b60006020820190508181036000830152614e1381614804565b9050919050565b6000602082019050614e2f6000830184614827565b92915050565b6000614e3f614e50565b9050614e4b8282615190565b919050565b6000604051905090565b600067ffffffffffffffff821115614e7557614e746152dc565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614ea157614ea06152dc565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614ecd57614ecc6152dc565b5b614ed68261530b565b9050602081019050919050565b600067ffffffffffffffff821115614efe57614efd6152dc565b5b614f078261530b565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614f8282615100565b9150614f8d83615100565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614fc257614fc161524f565b5b828201905092915050565b6000614fd882615100565b9150614fe383615100565b925082614ff357614ff261527e565b5b828204905092915050565b600061500982615100565b915061501483615100565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561504d5761504c61524f565b5b828202905092915050565b600061506382615100565b915061506e83615100565b9250828210156150815761508061524f565b5b828203905092915050565b6000615097826150e0565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061511582615100565b9050919050565b82818337600083830152505050565b60005b8381101561514957808201518184015260208101905061512e565b83811115615158576000848401525b50505050565b6000600282049050600182168061517657607f821691505b6020821081141561518a576151896152ad565b5b50919050565b6151998261530b565b810181811067ffffffffffffffff821117156151b8576151b76152dc565b5b80604052505050565b60006151cc82615100565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156151ff576151fe61524f565b5b600182019050919050565b6000819050919050565b6000819050919050565b600061522982615100565b915061523483615100565b9250826152445761524361527e565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4e65656420302e3037373720455448207065722061666669726d6174696f6e00600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f524e4720414c524541445920445241574e000000000000000000000000000000600082015250565b7f4e6f7420656e6f756768204c494e4b0000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4d6178696d756d2033332061666669726d6174696f6e73207065722077616c6c60008201527f6574000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f556e61626c6520746f207472616e736665720000000000000000000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f57686974656c69737420706572696f642068617320736f6c64206f7574000000600082015250565b7f43616e206d696e7420757020746f20372061666669726d6174696f6e7320617460008201527f20612074696d6500000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4d6178696d756d20312061666669726d6174696f6e20647572696e672070726560008201527f73616c6500000000000000000000000000000000000000000000000000000000602082015250565b7f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4d75737420647261772072616e646f6d206e756d6265722e0000000000000000600082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f53616c65206861736e2774207374617274656400000000000000000000000000600082015250565b7f4e6f7420656e6f7567682061666669726d6174696f6e73206c65667400000000600082015250565b615a568161508c565b8114615a6157600080fd5b50565b615a6d8161509e565b8114615a7857600080fd5b50565b615a84816150aa565b8114615a8f57600080fd5b50565b615a9b816150b4565b8114615aa657600080fd5b50565b615ab281615100565b8114615abd57600080fd5b5056fea26469706673582212202162a11e028c04285c4ae3d2cba728afdb253089d00a3817c2aa88ce61485c4d64736f6c63430008040033

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
0x4e8E2A120423aD588f96914a7d68f3e7f9d5149f
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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