ETH Price: $3,188.87 (+2.77%)

Contract

0x816b108c0ed83528aB465c172a4B50B5E152CF22
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...189538252024-01-07 7:46:23314 days ago1704613583IN
0x816b108c...5E152CF22
0 ETH0.0012858727.75954941
Set Approval For...162796512022-12-28 0:25:35689 days ago1672187135IN
0x816b108c...5E152CF22
0 ETH0.0009004919.43986595
Set Approval For...162781252022-12-27 19:18:47689 days ago1672168727IN
0x816b108c...5E152CF22
0 ETH0.0010455422.57123969
Set Approval For...157841662022-10-19 19:13:11758 days ago1666206791IN
0x816b108c...5E152CF22
0 ETH0.0021202145.77125644
Transfer From150165682022-06-24 4:43:58876 days ago1656045838IN
0x816b108c...5E152CF22
0 ETH0.0021805737.77398427
Set Approval For...149696262022-06-15 21:14:21884 days ago1655327661IN
0x816b108c...5E152CF22
0 ETH0.0025556955.17241193
Set Approval For...147047312022-05-03 12:47:03928 days ago1651582023IN
0x816b108c...5E152CF22
0 ETH0.0022659948.82979664
Transfer From146712532022-04-28 6:25:59933 days ago1651127159IN
0x816b108c...5E152CF22
0 ETH0.002136337.00699779
Transfer From146359872022-04-22 17:22:33938 days ago1650648153IN
0x816b108c...5E152CF22
0 ETH0.0030957853.6280109
Transfer From145966502022-04-16 13:36:32944 days ago1650116192IN
0x816b108c...5E152CF22
0 ETH0.0013318923.07222848
Withdraw145035552022-04-02 0:19:27959 days ago1648858767IN
0x816b108c...5E152CF22
0.000001 ETH0.0015243849.90795801
Claim145017122022-04-01 17:28:45959 days ago1648834125IN
0x816b108c...5E152CF22
0.25 ETH0.0158554394.15901144
Mint145013002022-04-01 15:57:02959 days ago1648828622IN
0x816b108c...5E152CF22
0 ETH0.09927772100.09873744
Claim145012602022-04-01 15:48:45959 days ago1648828125IN
0x816b108c...5E152CF22
0.25 ETH0.02117379125.74261268
Mint143746112022-03-12 22:20:43979 days ago1647123643IN
0x816b108c...5E152CF22
0 ETH0.0195790619.68643171
Set Approval For...143593622022-03-10 13:33:14981 days ago1646919194IN
0x816b108c...5E152CF22
0 ETH0.0015712233.85812974
Set Approval For...143220712022-03-04 18:13:22987 days ago1646417602IN
0x816b108c...5E152CF22
0 ETH0.0035483476.46296708
Set Approval For...143018262022-03-01 15:01:28990 days ago1646146888IN
0x816b108c...5E152CF22
0 ETH0.0032807570.69678594
Transfer From142700012022-02-24 16:59:08995 days ago1645721948IN
0x816b108c...5E152CF22
0 ETH0.0046238480.09853229
Transfer From142002742022-02-13 21:38:161006 days ago1644788296IN
0x816b108c...5E152CF22
0 ETH0.0048950484.796463
Transfer From141351742022-02-03 20:23:491016 days ago1643919829IN
0x816b108c...5E152CF22
0 ETH0.00566863139.52880829
Transfer From141351112022-02-03 20:10:491016 days ago1643919049IN
0x816b108c...5E152CF22
0 ETH0.00942166150.68162451
Withdraw140449712022-01-20 21:44:081030 days ago1642715048IN
0x816b108c...5E152CF22
0.0001 ETH0.00604192197.8105214
Mint140125622022-01-15 21:39:081035 days ago1642282748IN
0x816b108c...5E152CF22
0 ETH0.11024251110.86301422
Claim139605772022-01-07 20:53:081043 days ago1641588788IN
0x816b108c...5E152CF22
0.25 ETH0.03047877181.00109844
View all transactions

Latest 6 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
145035552022-04-02 0:19:27959 days ago1648858767
0x816b108c...5E152CF22
0.500001 ETH
140449712022-01-20 21:44:081030 days ago1642715048
0x816b108c...5E152CF22
0.2501 ETH
139486502022-01-06 0:14:051045 days ago1641428045
0x816b108c...5E152CF22
7.751 ETH
139079552021-12-30 17:11:471051 days ago1640884307
0x816b108c...5E152CF22
2.001 ETH
137900412021-12-12 11:33:251070 days ago1639308805
0x816b108c...5E152CF22
5.001 ETH
137846322021-12-11 15:20:081070 days ago1639236008
0x816b108c...5E152CF22
0.251 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
VectorField

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 300 runs

Other Settings:
default evmVersion
File 1 of 16 : VectorField.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "base64-sol/base64.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";

contract VectorField is ERC721URIStorage, VRFConsumerBase, Ownable {
    uint256 public tokenCounter;
    uint256 public constant MAX_SUPPLY = 300;
    uint256 public constant PRICE = .25 ether;
    
    mapping(bytes32 => address) public requestIdToSender;
    mapping(uint256 => uint256) public tokenIdToRandomNumber;
    mapping(bytes32 => uint256) public requestIdToTokenId;
    bytes32 internal keyHash;
    uint256 internal fee;
    uint256 public height;
    uint256 public price;
    uint256 public width;
    string[] public colors;

    constructor(address _VRFCoordinator, address _LinkToken, bytes32 _keyhash, uint256 _fee) 
    VRFConsumerBase(_VRFCoordinator, _LinkToken)
    ERC721("Vector Field", "VCFD")
    {
        keyHash = _keyhash;
        fee = _fee;
        tokenCounter = 1;
        price = PRICE;
        height = 2000;
        width = 1500;
        colors = [
"#FAFAFA",
"#F5F5F5",
"#EEEEEE",
"#E0E0E0",
"#BDBDBD",
"#9E9E9E",
"#757575",
"#616161",
"#424242",
"#212121",
"#ECEFF1",
"#CFD8DC",
"#B0BEC5",
"#90A4AE",
"#78909C",
"#607D8B",
"#546E7A",
"#455A64",
"#37474F",
"#263238",
"#b71c1c",
"#DB3A3D",
"#E1C1A7",
"#D88C73",
"#D0C1AB"
];
    }
    
       
 function withdraw() public payable onlyOwner {
        payable(owner()).transfer(address(this).balance);
    }
   
    function Claim() public payable returns (bytes32 requestId) {
        require(msg.value >= price, "Please send more ETH");
        require(tokenCounter <= MAX_SUPPLY, "All Fields have been minted");
        requestId = requestRandomness(keyHash, fee);
        requestIdToSender[requestId] = msg.sender;
        uint256 tokenId = tokenCounter; 
        requestIdToTokenId[requestId] = tokenId;
        tokenCounter = tokenCounter + 1;
        
    }

    

    function Mint(uint256 tokenId) public {
        
        require(bytes(tokenURI(tokenId)).length <= 0, "tokenURI is already set!"); 
        require(tokenCounter > tokenId, "TokenId has not been minted yet!");
        require(tokenIdToRandomNumber[tokenId] > 0, "Need to wait for the Chainlink node to respond!");
        uint256 randomNumber = tokenIdToRandomNumber[tokenId];
        string memory svg = generateSVG(randomNumber);
        string memory TokenID = uint2str(tokenId);
        string memory imageURI = svgToImageURI(svg);
        _setTokenURI(tokenId, formatTokenURI(imageURI, TokenID));
        
    }

    function fulfillRandomness(bytes32 requestId, uint256 randomNumber) internal override {
        address nftOwner = requestIdToSender[requestId];
        uint256 tokenId = requestIdToTokenId[requestId];
        _safeMint(nftOwner, tokenId);
        tokenIdToRandomNumber[tokenId] = randomNumber;
        
    }

    function generateSVG(uint256 _randomness) public view returns (string memory finalSvg) {

       uint256 bgopacity = uint256(keccak256(abi.encode(_randomness + 1))) % 6;
        finalSvg = string(abi.encodePacked("<svg xmlns='http://www.w3.org/2000/svg' height='", uint2str(height), "' width='", uint2str(width), "' fill='none' viewBox='500 100 1500 2000'><path d='M500 100h1500v2000H0z' fill= '#f4ebe2'/><path d='M500 100h1500v2000H0z'"));
        string memory color = colors[_randomness % colors.length];
        
        finalSvg = string(abi.encodePacked(finalSvg, " fill='", color, "' opacity='.", uint2str(bgopacity), "'/>"));
        
        for(uint i = 0; i < 3; i++) {
           
            string memory pathSvg = generatePath(uint256(keccak256(abi.encode(_randomness, i))));
            finalSvg = string(abi.encodePacked(finalSvg, pathSvg));
        }
        finalSvg = string(abi.encodePacked(finalSvg, "</svg>"));
    }

    function generatePath(uint256 _randomness) public view returns(string memory pathSvg) {
        
        uint256 x = uint256(keccak256(abi.encode(_randomness, height * 2 + 1))) % width;
        uint256 y = uint256(keccak256(abi.encode(_randomness, width + 1))) % height;
        uint256 w = uint256(keccak256(abi.encode(_randomness, width + 3))) % width;
        uint256 h = uint256(keccak256(abi.encode(_randomness, height * 3 + 1))) % height;
        uint256 opacity = uint256(keccak256(abi.encode(_randomness + 2))) % 9;

        pathSvg = string(abi.encodePacked( "<rect x='", uint2str(x), "' y= '", uint2str(y),"' width= '", uint2str(w), "' height='", uint2str(h), "' opacity='.", uint2str(opacity), "'"));

        string memory color = colors[_randomness % colors.length];
        pathSvg = string(abi.encodePacked(pathSvg, " fill='", color,"'/>"));
    }

      
    // From: https://stackoverflow.com/a/65707309/11969592
    function uint2str(uint _i) internal pure returns (string memory _uintAsString) {
        if (_i == 0) {
            return "0";
        }
        uint j = _i;
        uint len;
        while (j != 0) {
            len++;
            j /= 10;
        }
        bytes memory bstr = new bytes(len);
        uint k = len;
        while (_i != 0) {
            k = k-1;
            uint8 temp = (48 + uint8(_i - _i / 10 * 10));
            bytes1 b1 = bytes1(temp);
            bstr[k] = b1;
            _i /= 10;
        }
        return string(bstr);
    }




    
    function svgToImageURI(string memory svg) public pure returns (string memory) {
        
        string memory baseURL = "data:image/svg+xml;base64,";
        string memory svgBase64Encoded = Base64.encode(bytes(string(abi.encodePacked(svg))));
        return string(abi.encodePacked(baseURL,svgBase64Encoded));
    }

    function formatTokenURI(string memory imageURI, string memory TokenID) public pure returns (string memory) {
        return string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    Base64.encode(
                        bytes(
                            abi.encodePacked(
                                '{"name":"Field #',TokenID,'", "description":"300 Vector Fields randomly generated and stored on the Ethereum blockchain", "attributes":"", "image":"',imageURI,'"}'
                            )
                        )
                    )
                )
            );
    }

    }

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 16 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

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

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @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 override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

File 4 of 16 : base64.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0;

/// @title Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides functions for encoding/decoding base64
library Base64 {
    string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    bytes  internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000"
                                            hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000"
                                            hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000"
                                            hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000";

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return '';

        // load the table into memory
        string memory table = TABLE_ENCODE;

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((data.length + 2) / 3);

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 3 bytes at a time
            for {} lt(dataPtr, endPtr) {}
            {
                // read 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // write 4 characters
                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(        input,  0x3F))))
                resultPtr := add(resultPtr, 1)
            }

            // padding with '='
            switch mod(mload(data), 3)
            case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) }
            case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) }
        }

        return result;
    }

    function decode(string memory _data) internal pure returns (bytes memory) {
        bytes memory data = bytes(_data);

        if (data.length == 0) return new bytes(0);
        require(data.length % 4 == 0, "invalid base64 decoder input");

        // load the table into memory
        bytes memory table = TABLE_DECODE;

        // every 4 characters represent 3 bytes
        uint256 decodedLen = (data.length / 4) * 3;

        // add some extra buffer at the end required for the writing
        bytes memory result = new bytes(decodedLen + 32);

        assembly {
            // padding with '='
            let lastBytes := mload(add(data, mload(data)))
            if eq(and(lastBytes, 0xFF), 0x3d) {
                decodedLen := sub(decodedLen, 1)
                if eq(and(lastBytes, 0xFFFF), 0x3d3d) {
                    decodedLen := sub(decodedLen, 1)
                }
            }

            // set the actual output length
            mstore(result, decodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 4 characters at a time
            for {} lt(dataPtr, endPtr) {}
            {
               // read 4 characters
               dataPtr := add(dataPtr, 4)
               let input := mload(dataPtr)

               // write 3 bytes
               let output := add(
                   add(
                       shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)),
                       shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))),
                   add(
                       shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)),
                               and(mload(add(tablePtr, and(        input , 0xFF))), 0xFF)
                    )
                )
                mstore(resultPtr, shl(232, output))
                resultPtr := add(resultPtr, 3)
            }
        }

        return result;
    }
}

File 5 of 16 : VRFConsumerBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./interfaces/LinkTokenInterface.sol";

import "./VRFRequestIDBase.sol";

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

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

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

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

  LinkTokenInterface immutable internal LINK;
  address immutable private vrfCoordinator;

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

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

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

File 6 of 16 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 7 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 8 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 10 of 16 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 11 of 16 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 16 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 13 of 16 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 14 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 15 of 16 : LinkTokenInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface LinkTokenInterface {

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

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

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

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

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

  function increaseApproval(
    address spender,
    uint256 subtractedValue
  ) external;

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

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

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

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

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

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

}

File 16 of 16 : VRFRequestIDBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract VRFRequestIDBase {

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_VRFCoordinator","type":"address"},{"internalType":"address","name":"_LinkToken","type":"address"},{"internalType":"bytes32","name":"_keyhash","type":"bytes32"},{"internalType":"uint256","name":"_fee","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"Claim","outputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"colors","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"imageURI","type":"string"},{"internalType":"string","name":"TokenID","type":"string"}],"name":"formatTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_randomness","type":"uint256"}],"name":"generatePath","outputs":[{"internalType":"string","name":"pathSvg","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_randomness","type":"uint256"}],"name":"generateSVG","outputs":[{"internalType":"string","name":"finalSvg","type":"string"}],"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":"height","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"requestIdToSender","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"requestIdToTokenId","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"string","name":"svg","type":"string"}],"name":"svgToImageURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToRandomNumber","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":[{"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":"width","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

60c06040523480156200001157600080fd5b50604051620038b9380380620038b9833981016040819052620000349162000602565b604080518082018252600c81526b159958dd1bdc88119a595b1960a21b6020808301918252835180850190945260048452631590d19160e21b90840152815187938793929091620000889160009162000479565b5080516200009e90600190602084019062000479565b5050506001600160601b0319606092831b811660a052911b16608052620000ce620000c862000423565b62000427565b600d829055600e81905560016009556703782dace9d900006010556107d0600f556105dc601155604080516103608101825260076103208201818152662346414641464160c81b610340840152825282518084018452818152662346354635463560c81b6020828101919091528084019190915283518085018552828152662345454545454560c81b818301528385015283518085018552828152660234530453045360cc1b818301526060840152835180850185528281526608d0911091109160ca1b81830152608084015283518085018552828152662339453945394560c81b8183015260a084015283518085018552828152662337353735373560c81b8183015260c084015283518085018552828152662336313631363160c81b8183015260e08401528351808501855282815266119a191a191a1960c91b8183015261010084015283518085018552828152662332313231323160c81b8183015261012084015283518085018552828152662345434546463160c81b8183015261014084015283518085018552828152662343464438444360c81b8183015261016084015283518085018552828152662342304245433560c81b8183015261018084015283518085018552828152662339304134414560c81b818301526101a084015283518085018552828152662337383930394360c81b818301526101c08401528351808501855282815266119b181ba21c2160c91b818301526101e084015283518085018552828152662335343645374160c81b81830152610200840152835180850185528281526608cd0d4d504d8d60ca1b81830152610220840152835180850185528281526611999b9a1b9a2360c91b818301526102408401528351808501855282815266046646c666466760cb1b8183015261026084015283518085018552828152662362373163316360c81b81830152610280840152835180850185528281526608d1108cd04cd160ca1b818301526102a084015283518085018552828152662345314331413760c81b818301526102c084015283518085018552828152662344383843373360c81b818301526102e084015283518085019094529083526611a2182198a0a160c91b908301526103008101919091526200041890601290601962000508565b505050505062000686565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620004879062000649565b90600052602060002090601f016020900481019282620004ab5760008555620004f6565b82601f10620004c657805160ff1916838001178555620004f6565b82800160010185558215620004f6579182015b82811115620004f6578251825591602001919060010190620004d9565b506200050492915062000568565b5090565b8280548282559060005260206000209081019282156200055a579160200282015b828111156200055a57825180516200054991849160209091019062000479565b509160200191906001019062000529565b50620005049291506200057f565b5b8082111562000504576000815560010162000569565b8082111562000504576000620005968282620005a0565b506001016200057f565b508054620005ae9062000649565b6000825580601f10620005c25750620005e2565b601f016020900490600052602060002090810190620005e2919062000568565b50565b80516001600160a01b0381168114620005fd57600080fd5b919050565b6000806000806080858703121562000618578384fd5b6200062385620005e5565b93506200063360208601620005e5565b6040860151606090960151949790965092505050565b6002810460018216806200065e57607f821691505b602082108114156200068057634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c60a05160601c613200620006b9600039600081816110910152611a09015260006119da01526132006000f3fe6080604052600436106101f95760003560e01c80636dcee4ca1161010d5780639ededf77116100a0578063bd11f69d1161006f578063bd11f69d1461054a578063c87b56dd1461056a578063d082e3811461058a578063e985e9c51461059f578063f2fde38b146105bf576101f9565b80639ededf77146104e0578063a035b1fe146104f5578063a22cb4651461050a578063b88d4fde1461052a576101f9565b80638da5cb5b116100dc5780638da5cb5b1461047657806394985ddd1461048b57806395d89b41146104ab5780639c1cd795146104c0576101f9565b80636dcee4ca1461040c57806370a082311461042c578063715018a61461044c5780638d859f3e14610461576101f9565b806323b872dd1161019057806333af59891161015f57806333af5989146103845780633ccfd60b146103a457806342842e0e146103ac57806356029272146103cc5780636352211e146103ec576101f9565b806323b872dd1461032757806330d871c6146103475780633158952e1461036757806332cb6b0c1461036f576101f9565b8063095ea7b3116101cc578063095ea7b3146102a55780630ef26743146102c5578063219c0eee146102e757806322881f8814610307576101f9565b806301ffc9a7146101fe57806306fdde03146102345780630788370314610256578063081812fc14610278575b600080fd5b34801561020a57600080fd5b5061021e610219366004612337565b6105df565b60405161022b9190612957565b60405180910390f35b34801561024057600080fd5b50610249610627565b60405161022b919061298f565b34801561026257600080fd5b506102766102713660046122fe565b6106b9565b005b34801561028457600080fd5b506102986102933660046122fe565b610787565b60405161022b91906128d6565b3480156102b157600080fd5b506102766102c03660046122b9565b6107ca565b3480156102d157600080fd5b506102da610862565b60405161022b9190612962565b3480156102f357600080fd5b506102986103023660046122fe565b610868565b34801561031357600080fd5b506102da6103223660046122fe565b610883565b34801561033357600080fd5b506102766103423660046121cf565b610895565b34801561035357600080fd5b5061024961036236600461236f565b6108cd565b6102da610960565b34801561037b57600080fd5b506102da6109fa565b34801561039057600080fd5b5061024961039f3660046122fe565b610a00565b610276610ccb565b3480156103b857600080fd5b506102766103c73660046121cf565b610d4d565b3480156103d857600080fd5b506102496103e73660046123a2565b610d68565b3480156103f857600080fd5b506102986104073660046122fe565b610da7565b34801561041857600080fd5b506102496104273660046122fe565b610ddc565b34801561043857600080fd5b506102da610447366004612183565b610fdc565b34801561045857600080fd5b50610276611020565b34801561046d57600080fd5b506102da61106b565b34801561048257600080fd5b50610298611077565b34801561049757600080fd5b506102766104a6366004612316565b611086565b3480156104b757600080fd5b506102496110dc565b3480156104cc57600080fd5b506102da6104db3660046122fe565b6110eb565b3480156104ec57600080fd5b506102da6110fd565b34801561050157600080fd5b506102da611103565b34801561051657600080fd5b50610276610525366004612283565b611109565b34801561053657600080fd5b5061027661054536600461220a565b6111d7565b34801561055657600080fd5b506102496105653660046122fe565b611216565b34801561057657600080fd5b506102496105853660046122fe565b6112c2565b34801561059657600080fd5b506102da6113e3565b3480156105ab57600080fd5b5061021e6105ba36600461219d565b6113e9565b3480156105cb57600080fd5b506102766105da366004612183565b611417565b60006001600160e01b031982166380ac58cd60e01b148061061057506001600160e01b03198216635b5e139f60e01b145b8061061f575061061f82611485565b90505b919050565b606060008054610636906130ba565b80601f0160208091040260200160405190810160405280929190818152602001828054610662906130ba565b80156106af5780601f10610684576101008083540402835291602001916106af565b820191906000526020600020905b81548152906001019060200180831161069257829003601f168201915b5050505050905090565b60006106c4826112c2565b5111156106ec5760405162461bcd60e51b81526004016106e390612b3b565b60405180910390fd5b806009541161070d5760405162461bcd60e51b81526004016106e390612cfc565b6000818152600b60205260409020546107385760405162461bcd60e51b81526004016106e390612a71565b6000818152600b60205260408120549061075182610ddc565b9050600061075e8461149e565b9050600061076b836108cd565b90506107808561077b8385610d68565b6115e4565b5050505050565b600061079282611628565b6107ae5760405162461bcd60e51b81526004016106e390612dee565b506000908152600460205260409020546001600160a01b031690565b60006107d582610da7565b9050806001600160a01b0316836001600160a01b031614156108095760405162461bcd60e51b81526004016106e390612f3e565b806001600160a01b031661081b611645565b6001600160a01b031614806108375750610837816105ba611645565b6108535760405162461bcd60e51b81526004016106e390612bbe565b61085d8383611649565b505050565b600f5481565b600a602052600090815260409020546001600160a01b031681565b600c6020526000908152604090205481565b6108a66108a0611645565b826116b7565b6108c25760405162461bcd60e51b81526004016106e390612f7f565b61085d838383611734565b606060006040518060400160405280601a81526020017f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000815250905060006109338460405160200161091f919061244a565b604051602081830303815290604052611861565b90508181604051602001610948929190612466565b60405160208183030381529060405292505050919050565b60006010543410156109845760405162461bcd60e51b81526004016106e390612fd0565b61012c60095411156109a85760405162461bcd60e51b81526004016106e390612d31565b6109b6600d54600e546119d6565b6000818152600a6020908152604080832080546001600160a01b03191633179055600954600c9092529091208190559091506109f3816001613007565b6009555090565b61012c81565b6060600060115483600f546002610a179190613058565b610a22906001613007565b604051602001610a3392919061243c565b6040516020818303038152906040528051906020012060001c610a569190613110565b90506000600f54846011546001610a6d9190613007565b604051602001610a7e92919061243c565b6040516020818303038152906040528051906020012060001c610aa19190613110565b60115490915060009085610ab6826003613007565b604051602001610ac792919061243c565b6040516020818303038152906040528051906020012060001c610aea9190613110565b600f5490915060009086610aff826003613058565b610b0a906001613007565b604051602001610b1b92919061243c565b6040516020818303038152906040528051906020012060001c610b3e9190613110565b905060006009610b4f886002613007565b604051602001610b5f9190612962565b6040516020818303038152906040528051906020012060001c610b829190613110565b9050610b8d8561149e565b610b968561149e565b610b9f8561149e565b610ba88561149e565b610bb18561149e565b604051602001610bc5959493929190612591565b60408051601f1981840301815291905260128054919750600091610be9908a613110565b81548110610c0757634e487b7160e01b600052603260045260246000fd5b906000526020600020018054610c1c906130ba565b80601f0160208091040260200160405190810160405280929190818152602001828054610c48906130ba565b8015610c955780601f10610c6a57610100808354040283529160200191610c95565b820191906000526020600020905b815481529060010190602001808311610c7857829003601f168201915b505050505090508681604051602001610caf929190612515565b6040516020818303038152906040529650505050505050919050565b610cd3611645565b6001600160a01b0316610ce4611077565b6001600160a01b031614610d0a5760405162461bcd60e51b81526004016106e390612e3a565b610d12611077565b6001600160a01b03166108fc479081150290604051600060405180830381858888f19350505050158015610d4a573d6000803e3d6000fd5b50565b61085d838383604051806020016040528060008152506111d7565b6060610d80828460405160200161091f92919061279b565b604051602001610d909190612891565b604051602081830303815290604052905092915050565b6000818152600260205260408120546001600160a01b03168061061f5760405162461bcd60e51b81526004016106e390612c65565b606060006006610ded846001613007565b604051602001610dfd9190612962565b6040516020818303038152906040528051906020012060001c610e209190613110565b9050610e2d600f5461149e565b610e3860115461149e565b604051602001610e49929190612679565b60408051601f1981840301815291905260128054919350600091610e6d9086613110565b81548110610e8b57634e487b7160e01b600052603260045260246000fd5b906000526020600020018054610ea0906130ba565b80601f0160208091040260200160405190810160405280929190818152602001828054610ecc906130ba565b8015610f195780601f10610eee57610100808354040283529160200191610f19565b820191906000526020600020905b815481529060010190602001808311610efc57829003601f168201915b505050505090508281610f2b8461149e565b604051602001610f3d93929190612495565b604051602081830303815290604052925060005b6003811015610fca576000610f908683604051602001610f7292919061243c565b6040516020818303038152906040528051906020012060001c610a00565b90508481604051602001610fa5929190612466565b6040516020818303038152906040529450508080610fc2906130f5565b915050610f51565b50826040516020016109489190612567565b60006001600160a01b0382166110045760405162461bcd60e51b81526004016106e390612c1b565b506001600160a01b031660009081526003602052604090205490565b611028611645565b6001600160a01b0316611039611077565b6001600160a01b03161461105f5760405162461bcd60e51b81526004016106e390612e3a565b6110696000611b11565b565b6703782dace9d9000081565b6008546001600160a01b031690565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110ce5760405162461bcd60e51b81526004016106e390612f07565b6110d88282611b63565b5050565b606060018054610636906130ba565b600b6020526000908152604090205481565b60115481565b60105481565b611111611645565b6001600160a01b0316826001600160a01b031614156111425760405162461bcd60e51b81526004016106e390612b04565b806005600061114f611645565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611193611645565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516111cb9190612957565b60405180910390a35050565b6111e86111e2611645565b836116b7565b6112045760405162461bcd60e51b81526004016106e390612f7f565b61121084848484611baa565b50505050565b6012818154811061122657600080fd5b906000526020600020016000915090508054611241906130ba565b80601f016020809104026020016040519081016040528092919081815260200182805461126d906130ba565b80156112ba5780601f1061128f576101008083540402835291602001916112ba565b820191906000526020600020905b81548152906001019060200180831161129d57829003601f168201915b505050505081565b60606112cd82611628565b6112e95760405162461bcd60e51b81526004016106e390612d9d565b60008281526006602052604081208054611302906130ba565b80601f016020809104026020016040519081016040528092919081815260200182805461132e906130ba565b801561137b5780601f106113505761010080835404028352916020019161137b565b820191906000526020600020905b81548152906001019060200180831161135e57829003601f168201915b50505050509050600061138c611bdd565b90508051600014156113a057509050610622565b8151156113d25780826040516020016113ba929190612466565b60405160208183030381529060405292505050610622565b6113db84611bef565b949350505050565b60095481565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61141f611645565b6001600160a01b0316611430611077565b6001600160a01b0316146114565760405162461bcd60e51b81526004016106e390612e3a565b6001600160a01b03811661147c5760405162461bcd60e51b81526004016106e3906129f4565b610d4a81611b11565b6001600160e01b031981166301ffc9a760e01b14919050565b6060816114c357506040805180820190915260018152600360fc1b6020820152610622565b8160005b81156114ed57806114d7816130f5565b91506114e69050600a83613044565b91506114c7565b60008167ffffffffffffffff81111561151657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611540576020820181803683370190505b509050815b85156115db57611556600182613077565b90506000611565600a88613044565b61157090600a613058565b61157a9088613077565b61158590603061301f565b905060008160f81b9050808484815181106115b057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506115d2600a89613044565b97505050611545565b50949350505050565b6115ed82611628565b6116095760405162461bcd60e51b81526004016106e390612cae565b6000828152600660209081526040909120825161085d92840190612044565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061167e82610da7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006116c282611628565b6116de5760405162461bcd60e51b81526004016106e390612b72565b60006116e983610da7565b9050806001600160a01b0316846001600160a01b031614806117245750836001600160a01b031661171984610787565b6001600160a01b0316145b806113db57506113db81856113e9565b826001600160a01b031661174782610da7565b6001600160a01b03161461176d5760405162461bcd60e51b81526004016106e390612e6f565b6001600160a01b0382166117935760405162461bcd60e51b81526004016106e390612ac0565b61179e83838361085d565b6117a9600082611649565b6001600160a01b03831660009081526003602052604081208054600192906117d2908490613077565b90915550506001600160a01b0382166000908152600360205260408120805460019290611800908490613007565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60608151600014156118825750604080516020810190915260008152610622565b600060405180606001604052806040815260200161318b60409139905060006003845160026118b19190613007565b6118bb9190613044565b6118c6906004613058565b905060006118d5826020613007565b67ffffffffffffffff8111156118fb57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611925576020820181803683370190505b509050818152600183018586518101602084015b81831015611991576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101611939565b6003895106600181146119ab57600281146119bc576119c8565b613d3d60f01b6001198301526119c8565b603d60f81b6000198301525b509398975050505050505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f000000000000000000000000000000000000000000000000000000000000000084866000604051602001611a3d92919061243c565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401611a6a93929190612926565b602060405180830381600087803b158015611a8457600080fd5b505af1158015611a98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611abc91906122e2565b50600083815260076020526040812054611adb90859083903090611c72565b600085815260076020526040902054909150611af8906001613007565b6000858152600760205260409020556113db8482611cac565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000828152600a6020908152604080832054600c909252909120546001600160a01b0390911690611b948282611cdf565b6000908152600b60205260409020919091555050565b611bb5848484611734565b611bc184848484611cf9565b6112105760405162461bcd60e51b81526004016106e3906129a2565b60408051602081019091526000815290565b6060611bfa82611628565b611c165760405162461bcd60e51b81526004016106e390612eb8565b6000611c20611bdd565b90506000815111611c405760405180602001604052806000815250611c6b565b80611c4a84611e11565b604051602001611c5b929190612466565b6040516020818303038152906040525b9392505050565b600084848484604051602001611c8b949392919061296b565b60408051601f19818403018152919052805160209091012095945050505050565b60008282604051602001611cc192919061243c565b60405160208183030381529060405280519060200120905092915050565b6110d8828260405180602001604052806000815250611f2c565b6000611d0d846001600160a01b0316611f5f565b15611e0957836001600160a01b031663150b7a02611d29611645565b8786866040518563ffffffff1660e01b8152600401611d4b94939291906128ea565b602060405180830381600087803b158015611d6557600080fd5b505af1925050508015611d95575060408051601f3d908101601f19168201909252611d9291810190612353565b60015b611def573d808015611dc3576040519150601f19603f3d011682016040523d82523d6000602084013e611dc8565b606091505b508051611de75760405162461bcd60e51b81526004016106e3906129a2565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506113db565b5060016113db565b606081611e3657506040805180820190915260018152600360fc1b6020820152610622565b8160005b8115611e605780611e4a816130f5565b9150611e599050600a83613044565b9150611e3a565b60008167ffffffffffffffff811115611e8957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611eb3576020820181803683370190505b5090505b84156113db57611ec8600183613077565b9150611ed5600a86613110565b611ee0906030613007565b60f81b818381518110611f0357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611f25600a86613044565b9450611eb7565b611f368383611f65565b611f436000848484611cf9565b61085d5760405162461bcd60e51b81526004016106e3906129a2565b3b151590565b6001600160a01b038216611f8b5760405162461bcd60e51b81526004016106e390612d68565b611f9481611628565b15611fb15760405162461bcd60e51b81526004016106e390612a3a565b611fbd6000838361085d565b6001600160a01b0382166000908152600360205260408120805460019290611fe6908490613007565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612050906130ba565b90600052602060002090601f01602090048101928261207257600085556120b8565b82601f1061208b57805160ff19168380011785556120b8565b828001600101855582156120b8579182015b828111156120b857825182559160200191906001019061209d565b506120c49291506120c8565b5090565b5b808211156120c457600081556001016120c9565b600067ffffffffffffffff808411156120f8576120f8613150565b604051601f8501601f19168101602001828111828210171561211c5761211c613150565b60405284815291508183850186101561213457600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b038116811461062257600080fd5b600082601f830112612174578081fd5b611c6b838335602085016120dd565b600060208284031215612194578081fd5b611c6b8261214d565b600080604083850312156121af578081fd5b6121b88361214d565b91506121c66020840161214d565b90509250929050565b6000806000606084860312156121e3578081fd5b6121ec8461214d565b92506121fa6020850161214d565b9150604084013590509250925092565b6000806000806080858703121561221f578081fd5b6122288561214d565b93506122366020860161214d565b925060408501359150606085013567ffffffffffffffff811115612258578182fd5b8501601f81018713612268578182fd5b612277878235602084016120dd565b91505092959194509250565b60008060408385031215612295578182fd5b61229e8361214d565b915060208301356122ae81613166565b809150509250929050565b600080604083850312156122cb578182fd5b6122d48361214d565b946020939093013593505050565b6000602082840312156122f3578081fd5b8151611c6b81613166565b60006020828403121561230f578081fd5b5035919050565b60008060408385031215612328578182fd5b50508035926020909101359150565b600060208284031215612348578081fd5b8135611c6b81613174565b600060208284031215612364578081fd5b8151611c6b81613174565b600060208284031215612380578081fd5b813567ffffffffffffffff811115612396578182fd5b6113db84828501612164565b600080604083850312156123b4578182fd5b823567ffffffffffffffff808211156123cb578384fd5b6123d786838701612164565b935060208501359150808211156123ec578283fd5b506123f985828601612164565b9150509250929050565b6000815180845261241b81602086016020860161308e565b601f01601f19169290920160200192915050565b602760f81b815260010190565b918252602082015260400190565b6000825161245c81846020870161308e565b9190910192915050565b6000835161247881846020880161308e565b83519083019061248c81836020880161308e565b01949350505050565b600084516124a781846020890161308e565b662066696c6c3d2760c81b90830190815284516124cb81600784016020890161308e565b6b139037b830b1b4ba3c9e939760a11b6007929091019182015283516124f881601384016020880161308e565b6213979f60e91b6013929091019182015260160195945050505050565b6000835161252781846020880161308e565b662066696c6c3d2760c81b908301908152835161254b81600784016020880161308e565b6213979f60e91b60079290910191820152600a01949350505050565b6000825161257981846020870161308e565b651e17b9bb339f60d11b920191825250600601919050565b6000683c7265637420783d2760b81b825286516125b5816009850160208b0161308e565b652720793d202760d01b60099184019182015286516125db81600f840160208b0161308e565b69272077696474683d202760b01b600f92909101918201528551612606816019840160208a0161308e565b6927206865696768743d2760b01b60199290910191820152845161263181602384016020890161308e565b6b139037b830b1b4ba3c9e939760a11b60239290910191820152835161265e81602f84016020880161308e565b61266c602f8284010161242f565b9998505050505050505050565b60007f3c73766720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f323082526f30302f73766727206865696768743d2760801b602083015283516126ca81603085016020880161308e565b68272077696474683d2760b81b60309184019182015283516126f381603984016020880161308e565b7f272066696c6c3d276e6f6e65272076696577426f783d27353030203130302031603992909101918201527f3530302032303030273e3c7061746820643d274d35303020313030683135303060598201527f763230303048307a272066696c6c3d202723663465626532272f3e3c7061746860798201527f20643d274d353030203130306831353030763230303048307a27000000000000609982015260b301949350505050565b6f7b226e616d65223a224669656c64202360801b815282516000906127c781601085016020880161308e565b7f222c20226465736372697074696f6e223a2233303020566563746f72204669656010918401918201527f6c64732072616e646f6d6c792067656e65726174656420616e642073746f726560308201527f64206f6e2074686520457468657265756d20626c6f636b636861696e222c202260508201527f61747472696275746573223a22222c2022696d616765223a22000000000000006070820152835161287681608984016020880161308e565b61227d60f01b60899290910191820152608b01949350505050565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000825282516128c981601d85016020870161308e565b91909101601d0192915050565b6001600160a01b0391909116815260200190565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261291c6080830184612403565b9695505050505050565b60006001600160a01b03851682528360208301526060604083015261294e6060830184612403565b95945050505050565b901515815260200190565b90815260200190565b93845260208401929092526001600160a01b03166040830152606082015260800190565b600060208252611c6b6020830184612403565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252602f908201527f4e65656420746f207761697420666f722074686520436861696e6c696e6b206e60408201526e6f646520746f20726573706f6e642160881b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b60208082526018908201527f746f6b656e55524920697320616c726561647920736574210000000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252602e908201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60408201526d32bc34b9ba32b73a103a37b5b2b760911b606082015260800190565b6020808252818101527f546f6b656e496420686173206e6f74206265656e206d696e7465642079657421604082015260600190565b6020808252601b908201527f416c6c204669656c64732068617665206265656e206d696e7465640000000000604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526031908201527f45524337323155524953746f726167653a2055524920717565727920666f72206040820152703737b732bc34b9ba32b73a103a37b5b2b760791b606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b6020808252601f908201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526014908201527f506c656173652073656e64206d6f726520455448000000000000000000000000604082015260600190565b6000821982111561301a5761301a613124565b500190565b600060ff821660ff84168060ff0382111561303c5761303c613124565b019392505050565b6000826130535761305361313a565b500490565b600081600019048311821515161561307257613072613124565b500290565b60008282101561308957613089613124565b500390565b60005b838110156130a9578181015183820152602001613091565b838111156112105750506000910152565b6002810460018216806130ce57607f821691505b602082108114156130ef57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561310957613109613124565b5060010190565b60008261311f5761311f61313a565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114610d4a57600080fd5b6001600160e01b031981168114610d4a57600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212209cfebecaaa9535011160c8fce9fc35f88558464e3ceb916dac5365638c8f586a64736f6c63430008000033000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec80000

Deployed Bytecode

0x6080604052600436106101f95760003560e01c80636dcee4ca1161010d5780639ededf77116100a0578063bd11f69d1161006f578063bd11f69d1461054a578063c87b56dd1461056a578063d082e3811461058a578063e985e9c51461059f578063f2fde38b146105bf576101f9565b80639ededf77146104e0578063a035b1fe146104f5578063a22cb4651461050a578063b88d4fde1461052a576101f9565b80638da5cb5b116100dc5780638da5cb5b1461047657806394985ddd1461048b57806395d89b41146104ab5780639c1cd795146104c0576101f9565b80636dcee4ca1461040c57806370a082311461042c578063715018a61461044c5780638d859f3e14610461576101f9565b806323b872dd1161019057806333af59891161015f57806333af5989146103845780633ccfd60b146103a457806342842e0e146103ac57806356029272146103cc5780636352211e146103ec576101f9565b806323b872dd1461032757806330d871c6146103475780633158952e1461036757806332cb6b0c1461036f576101f9565b8063095ea7b3116101cc578063095ea7b3146102a55780630ef26743146102c5578063219c0eee146102e757806322881f8814610307576101f9565b806301ffc9a7146101fe57806306fdde03146102345780630788370314610256578063081812fc14610278575b600080fd5b34801561020a57600080fd5b5061021e610219366004612337565b6105df565b60405161022b9190612957565b60405180910390f35b34801561024057600080fd5b50610249610627565b60405161022b919061298f565b34801561026257600080fd5b506102766102713660046122fe565b6106b9565b005b34801561028457600080fd5b506102986102933660046122fe565b610787565b60405161022b91906128d6565b3480156102b157600080fd5b506102766102c03660046122b9565b6107ca565b3480156102d157600080fd5b506102da610862565b60405161022b9190612962565b3480156102f357600080fd5b506102986103023660046122fe565b610868565b34801561031357600080fd5b506102da6103223660046122fe565b610883565b34801561033357600080fd5b506102766103423660046121cf565b610895565b34801561035357600080fd5b5061024961036236600461236f565b6108cd565b6102da610960565b34801561037b57600080fd5b506102da6109fa565b34801561039057600080fd5b5061024961039f3660046122fe565b610a00565b610276610ccb565b3480156103b857600080fd5b506102766103c73660046121cf565b610d4d565b3480156103d857600080fd5b506102496103e73660046123a2565b610d68565b3480156103f857600080fd5b506102986104073660046122fe565b610da7565b34801561041857600080fd5b506102496104273660046122fe565b610ddc565b34801561043857600080fd5b506102da610447366004612183565b610fdc565b34801561045857600080fd5b50610276611020565b34801561046d57600080fd5b506102da61106b565b34801561048257600080fd5b50610298611077565b34801561049757600080fd5b506102766104a6366004612316565b611086565b3480156104b757600080fd5b506102496110dc565b3480156104cc57600080fd5b506102da6104db3660046122fe565b6110eb565b3480156104ec57600080fd5b506102da6110fd565b34801561050157600080fd5b506102da611103565b34801561051657600080fd5b50610276610525366004612283565b611109565b34801561053657600080fd5b5061027661054536600461220a565b6111d7565b34801561055657600080fd5b506102496105653660046122fe565b611216565b34801561057657600080fd5b506102496105853660046122fe565b6112c2565b34801561059657600080fd5b506102da6113e3565b3480156105ab57600080fd5b5061021e6105ba36600461219d565b6113e9565b3480156105cb57600080fd5b506102766105da366004612183565b611417565b60006001600160e01b031982166380ac58cd60e01b148061061057506001600160e01b03198216635b5e139f60e01b145b8061061f575061061f82611485565b90505b919050565b606060008054610636906130ba565b80601f0160208091040260200160405190810160405280929190818152602001828054610662906130ba565b80156106af5780601f10610684576101008083540402835291602001916106af565b820191906000526020600020905b81548152906001019060200180831161069257829003601f168201915b5050505050905090565b60006106c4826112c2565b5111156106ec5760405162461bcd60e51b81526004016106e390612b3b565b60405180910390fd5b806009541161070d5760405162461bcd60e51b81526004016106e390612cfc565b6000818152600b60205260409020546107385760405162461bcd60e51b81526004016106e390612a71565b6000818152600b60205260408120549061075182610ddc565b9050600061075e8461149e565b9050600061076b836108cd565b90506107808561077b8385610d68565b6115e4565b5050505050565b600061079282611628565b6107ae5760405162461bcd60e51b81526004016106e390612dee565b506000908152600460205260409020546001600160a01b031690565b60006107d582610da7565b9050806001600160a01b0316836001600160a01b031614156108095760405162461bcd60e51b81526004016106e390612f3e565b806001600160a01b031661081b611645565b6001600160a01b031614806108375750610837816105ba611645565b6108535760405162461bcd60e51b81526004016106e390612bbe565b61085d8383611649565b505050565b600f5481565b600a602052600090815260409020546001600160a01b031681565b600c6020526000908152604090205481565b6108a66108a0611645565b826116b7565b6108c25760405162461bcd60e51b81526004016106e390612f7f565b61085d838383611734565b606060006040518060400160405280601a81526020017f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000815250905060006109338460405160200161091f919061244a565b604051602081830303815290604052611861565b90508181604051602001610948929190612466565b60405160208183030381529060405292505050919050565b60006010543410156109845760405162461bcd60e51b81526004016106e390612fd0565b61012c60095411156109a85760405162461bcd60e51b81526004016106e390612d31565b6109b6600d54600e546119d6565b6000818152600a6020908152604080832080546001600160a01b03191633179055600954600c9092529091208190559091506109f3816001613007565b6009555090565b61012c81565b6060600060115483600f546002610a179190613058565b610a22906001613007565b604051602001610a3392919061243c565b6040516020818303038152906040528051906020012060001c610a569190613110565b90506000600f54846011546001610a6d9190613007565b604051602001610a7e92919061243c565b6040516020818303038152906040528051906020012060001c610aa19190613110565b60115490915060009085610ab6826003613007565b604051602001610ac792919061243c565b6040516020818303038152906040528051906020012060001c610aea9190613110565b600f5490915060009086610aff826003613058565b610b0a906001613007565b604051602001610b1b92919061243c565b6040516020818303038152906040528051906020012060001c610b3e9190613110565b905060006009610b4f886002613007565b604051602001610b5f9190612962565b6040516020818303038152906040528051906020012060001c610b829190613110565b9050610b8d8561149e565b610b968561149e565b610b9f8561149e565b610ba88561149e565b610bb18561149e565b604051602001610bc5959493929190612591565b60408051601f1981840301815291905260128054919750600091610be9908a613110565b81548110610c0757634e487b7160e01b600052603260045260246000fd5b906000526020600020018054610c1c906130ba565b80601f0160208091040260200160405190810160405280929190818152602001828054610c48906130ba565b8015610c955780601f10610c6a57610100808354040283529160200191610c95565b820191906000526020600020905b815481529060010190602001808311610c7857829003601f168201915b505050505090508681604051602001610caf929190612515565b6040516020818303038152906040529650505050505050919050565b610cd3611645565b6001600160a01b0316610ce4611077565b6001600160a01b031614610d0a5760405162461bcd60e51b81526004016106e390612e3a565b610d12611077565b6001600160a01b03166108fc479081150290604051600060405180830381858888f19350505050158015610d4a573d6000803e3d6000fd5b50565b61085d838383604051806020016040528060008152506111d7565b6060610d80828460405160200161091f92919061279b565b604051602001610d909190612891565b604051602081830303815290604052905092915050565b6000818152600260205260408120546001600160a01b03168061061f5760405162461bcd60e51b81526004016106e390612c65565b606060006006610ded846001613007565b604051602001610dfd9190612962565b6040516020818303038152906040528051906020012060001c610e209190613110565b9050610e2d600f5461149e565b610e3860115461149e565b604051602001610e49929190612679565b60408051601f1981840301815291905260128054919350600091610e6d9086613110565b81548110610e8b57634e487b7160e01b600052603260045260246000fd5b906000526020600020018054610ea0906130ba565b80601f0160208091040260200160405190810160405280929190818152602001828054610ecc906130ba565b8015610f195780601f10610eee57610100808354040283529160200191610f19565b820191906000526020600020905b815481529060010190602001808311610efc57829003601f168201915b505050505090508281610f2b8461149e565b604051602001610f3d93929190612495565b604051602081830303815290604052925060005b6003811015610fca576000610f908683604051602001610f7292919061243c565b6040516020818303038152906040528051906020012060001c610a00565b90508481604051602001610fa5929190612466565b6040516020818303038152906040529450508080610fc2906130f5565b915050610f51565b50826040516020016109489190612567565b60006001600160a01b0382166110045760405162461bcd60e51b81526004016106e390612c1b565b506001600160a01b031660009081526003602052604090205490565b611028611645565b6001600160a01b0316611039611077565b6001600160a01b03161461105f5760405162461bcd60e51b81526004016106e390612e3a565b6110696000611b11565b565b6703782dace9d9000081565b6008546001600160a01b031690565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795216146110ce5760405162461bcd60e51b81526004016106e390612f07565b6110d88282611b63565b5050565b606060018054610636906130ba565b600b6020526000908152604090205481565b60115481565b60105481565b611111611645565b6001600160a01b0316826001600160a01b031614156111425760405162461bcd60e51b81526004016106e390612b04565b806005600061114f611645565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611193611645565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516111cb9190612957565b60405180910390a35050565b6111e86111e2611645565b836116b7565b6112045760405162461bcd60e51b81526004016106e390612f7f565b61121084848484611baa565b50505050565b6012818154811061122657600080fd5b906000526020600020016000915090508054611241906130ba565b80601f016020809104026020016040519081016040528092919081815260200182805461126d906130ba565b80156112ba5780601f1061128f576101008083540402835291602001916112ba565b820191906000526020600020905b81548152906001019060200180831161129d57829003601f168201915b505050505081565b60606112cd82611628565b6112e95760405162461bcd60e51b81526004016106e390612d9d565b60008281526006602052604081208054611302906130ba565b80601f016020809104026020016040519081016040528092919081815260200182805461132e906130ba565b801561137b5780601f106113505761010080835404028352916020019161137b565b820191906000526020600020905b81548152906001019060200180831161135e57829003601f168201915b50505050509050600061138c611bdd565b90508051600014156113a057509050610622565b8151156113d25780826040516020016113ba929190612466565b60405160208183030381529060405292505050610622565b6113db84611bef565b949350505050565b60095481565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61141f611645565b6001600160a01b0316611430611077565b6001600160a01b0316146114565760405162461bcd60e51b81526004016106e390612e3a565b6001600160a01b03811661147c5760405162461bcd60e51b81526004016106e3906129f4565b610d4a81611b11565b6001600160e01b031981166301ffc9a760e01b14919050565b6060816114c357506040805180820190915260018152600360fc1b6020820152610622565b8160005b81156114ed57806114d7816130f5565b91506114e69050600a83613044565b91506114c7565b60008167ffffffffffffffff81111561151657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611540576020820181803683370190505b509050815b85156115db57611556600182613077565b90506000611565600a88613044565b61157090600a613058565b61157a9088613077565b61158590603061301f565b905060008160f81b9050808484815181106115b057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506115d2600a89613044565b97505050611545565b50949350505050565b6115ed82611628565b6116095760405162461bcd60e51b81526004016106e390612cae565b6000828152600660209081526040909120825161085d92840190612044565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061167e82610da7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006116c282611628565b6116de5760405162461bcd60e51b81526004016106e390612b72565b60006116e983610da7565b9050806001600160a01b0316846001600160a01b031614806117245750836001600160a01b031661171984610787565b6001600160a01b0316145b806113db57506113db81856113e9565b826001600160a01b031661174782610da7565b6001600160a01b03161461176d5760405162461bcd60e51b81526004016106e390612e6f565b6001600160a01b0382166117935760405162461bcd60e51b81526004016106e390612ac0565b61179e83838361085d565b6117a9600082611649565b6001600160a01b03831660009081526003602052604081208054600192906117d2908490613077565b90915550506001600160a01b0382166000908152600360205260408120805460019290611800908490613007565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60608151600014156118825750604080516020810190915260008152610622565b600060405180606001604052806040815260200161318b60409139905060006003845160026118b19190613007565b6118bb9190613044565b6118c6906004613058565b905060006118d5826020613007565b67ffffffffffffffff8111156118fb57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611925576020820181803683370190505b509050818152600183018586518101602084015b81831015611991576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101611939565b6003895106600181146119ab57600281146119bc576119c8565b613d3d60f01b6001198301526119c8565b603d60f81b6000198301525b509398975050505050505050565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795284866000604051602001611a3d92919061243c565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401611a6a93929190612926565b602060405180830381600087803b158015611a8457600080fd5b505af1158015611a98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611abc91906122e2565b50600083815260076020526040812054611adb90859083903090611c72565b600085815260076020526040902054909150611af8906001613007565b6000858152600760205260409020556113db8482611cac565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000828152600a6020908152604080832054600c909252909120546001600160a01b0390911690611b948282611cdf565b6000908152600b60205260409020919091555050565b611bb5848484611734565b611bc184848484611cf9565b6112105760405162461bcd60e51b81526004016106e3906129a2565b60408051602081019091526000815290565b6060611bfa82611628565b611c165760405162461bcd60e51b81526004016106e390612eb8565b6000611c20611bdd565b90506000815111611c405760405180602001604052806000815250611c6b565b80611c4a84611e11565b604051602001611c5b929190612466565b6040516020818303038152906040525b9392505050565b600084848484604051602001611c8b949392919061296b565b60408051601f19818403018152919052805160209091012095945050505050565b60008282604051602001611cc192919061243c565b60405160208183030381529060405280519060200120905092915050565b6110d8828260405180602001604052806000815250611f2c565b6000611d0d846001600160a01b0316611f5f565b15611e0957836001600160a01b031663150b7a02611d29611645565b8786866040518563ffffffff1660e01b8152600401611d4b94939291906128ea565b602060405180830381600087803b158015611d6557600080fd5b505af1925050508015611d95575060408051601f3d908101601f19168201909252611d9291810190612353565b60015b611def573d808015611dc3576040519150601f19603f3d011682016040523d82523d6000602084013e611dc8565b606091505b508051611de75760405162461bcd60e51b81526004016106e3906129a2565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506113db565b5060016113db565b606081611e3657506040805180820190915260018152600360fc1b6020820152610622565b8160005b8115611e605780611e4a816130f5565b9150611e599050600a83613044565b9150611e3a565b60008167ffffffffffffffff811115611e8957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611eb3576020820181803683370190505b5090505b84156113db57611ec8600183613077565b9150611ed5600a86613110565b611ee0906030613007565b60f81b818381518110611f0357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611f25600a86613044565b9450611eb7565b611f368383611f65565b611f436000848484611cf9565b61085d5760405162461bcd60e51b81526004016106e3906129a2565b3b151590565b6001600160a01b038216611f8b5760405162461bcd60e51b81526004016106e390612d68565b611f9481611628565b15611fb15760405162461bcd60e51b81526004016106e390612a3a565b611fbd6000838361085d565b6001600160a01b0382166000908152600360205260408120805460019290611fe6908490613007565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612050906130ba565b90600052602060002090601f01602090048101928261207257600085556120b8565b82601f1061208b57805160ff19168380011785556120b8565b828001600101855582156120b8579182015b828111156120b857825182559160200191906001019061209d565b506120c49291506120c8565b5090565b5b808211156120c457600081556001016120c9565b600067ffffffffffffffff808411156120f8576120f8613150565b604051601f8501601f19168101602001828111828210171561211c5761211c613150565b60405284815291508183850186101561213457600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b038116811461062257600080fd5b600082601f830112612174578081fd5b611c6b838335602085016120dd565b600060208284031215612194578081fd5b611c6b8261214d565b600080604083850312156121af578081fd5b6121b88361214d565b91506121c66020840161214d565b90509250929050565b6000806000606084860312156121e3578081fd5b6121ec8461214d565b92506121fa6020850161214d565b9150604084013590509250925092565b6000806000806080858703121561221f578081fd5b6122288561214d565b93506122366020860161214d565b925060408501359150606085013567ffffffffffffffff811115612258578182fd5b8501601f81018713612268578182fd5b612277878235602084016120dd565b91505092959194509250565b60008060408385031215612295578182fd5b61229e8361214d565b915060208301356122ae81613166565b809150509250929050565b600080604083850312156122cb578182fd5b6122d48361214d565b946020939093013593505050565b6000602082840312156122f3578081fd5b8151611c6b81613166565b60006020828403121561230f578081fd5b5035919050565b60008060408385031215612328578182fd5b50508035926020909101359150565b600060208284031215612348578081fd5b8135611c6b81613174565b600060208284031215612364578081fd5b8151611c6b81613174565b600060208284031215612380578081fd5b813567ffffffffffffffff811115612396578182fd5b6113db84828501612164565b600080604083850312156123b4578182fd5b823567ffffffffffffffff808211156123cb578384fd5b6123d786838701612164565b935060208501359150808211156123ec578283fd5b506123f985828601612164565b9150509250929050565b6000815180845261241b81602086016020860161308e565b601f01601f19169290920160200192915050565b602760f81b815260010190565b918252602082015260400190565b6000825161245c81846020870161308e565b9190910192915050565b6000835161247881846020880161308e565b83519083019061248c81836020880161308e565b01949350505050565b600084516124a781846020890161308e565b662066696c6c3d2760c81b90830190815284516124cb81600784016020890161308e565b6b139037b830b1b4ba3c9e939760a11b6007929091019182015283516124f881601384016020880161308e565b6213979f60e91b6013929091019182015260160195945050505050565b6000835161252781846020880161308e565b662066696c6c3d2760c81b908301908152835161254b81600784016020880161308e565b6213979f60e91b60079290910191820152600a01949350505050565b6000825161257981846020870161308e565b651e17b9bb339f60d11b920191825250600601919050565b6000683c7265637420783d2760b81b825286516125b5816009850160208b0161308e565b652720793d202760d01b60099184019182015286516125db81600f840160208b0161308e565b69272077696474683d202760b01b600f92909101918201528551612606816019840160208a0161308e565b6927206865696768743d2760b01b60199290910191820152845161263181602384016020890161308e565b6b139037b830b1b4ba3c9e939760a11b60239290910191820152835161265e81602f84016020880161308e565b61266c602f8284010161242f565b9998505050505050505050565b60007f3c73766720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f323082526f30302f73766727206865696768743d2760801b602083015283516126ca81603085016020880161308e565b68272077696474683d2760b81b60309184019182015283516126f381603984016020880161308e565b7f272066696c6c3d276e6f6e65272076696577426f783d27353030203130302031603992909101918201527f3530302032303030273e3c7061746820643d274d35303020313030683135303060598201527f763230303048307a272066696c6c3d202723663465626532272f3e3c7061746860798201527f20643d274d353030203130306831353030763230303048307a27000000000000609982015260b301949350505050565b6f7b226e616d65223a224669656c64202360801b815282516000906127c781601085016020880161308e565b7f222c20226465736372697074696f6e223a2233303020566563746f72204669656010918401918201527f6c64732072616e646f6d6c792067656e65726174656420616e642073746f726560308201527f64206f6e2074686520457468657265756d20626c6f636b636861696e222c202260508201527f61747472696275746573223a22222c2022696d616765223a22000000000000006070820152835161287681608984016020880161308e565b61227d60f01b60899290910191820152608b01949350505050565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000825282516128c981601d85016020870161308e565b91909101601d0192915050565b6001600160a01b0391909116815260200190565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261291c6080830184612403565b9695505050505050565b60006001600160a01b03851682528360208301526060604083015261294e6060830184612403565b95945050505050565b901515815260200190565b90815260200190565b93845260208401929092526001600160a01b03166040830152606082015260800190565b600060208252611c6b6020830184612403565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252602f908201527f4e65656420746f207761697420666f722074686520436861696e6c696e6b206e60408201526e6f646520746f20726573706f6e642160881b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b60208082526018908201527f746f6b656e55524920697320616c726561647920736574210000000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252602e908201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60408201526d32bc34b9ba32b73a103a37b5b2b760911b606082015260800190565b6020808252818101527f546f6b656e496420686173206e6f74206265656e206d696e7465642079657421604082015260600190565b6020808252601b908201527f416c6c204669656c64732068617665206265656e206d696e7465640000000000604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526031908201527f45524337323155524953746f726167653a2055524920717565727920666f72206040820152703737b732bc34b9ba32b73a103a37b5b2b760791b606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b6020808252601f908201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526014908201527f506c656173652073656e64206d6f726520455448000000000000000000000000604082015260600190565b6000821982111561301a5761301a613124565b500190565b600060ff821660ff84168060ff0382111561303c5761303c613124565b019392505050565b6000826130535761305361313a565b500490565b600081600019048311821515161561307257613072613124565b500290565b60008282101561308957613089613124565b500390565b60005b838110156130a9578181015183820152602001613091565b838111156112105750506000910152565b6002810460018216806130ce57607f821691505b602082108114156130ef57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561310957613109613124565b5060010190565b60008261311f5761311f61313a565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114610d4a57600080fd5b6001600160e01b031981168114610d4a57600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212209cfebecaaa9535011160c8fce9fc35f88558464e3ceb916dac5365638c8f586a64736f6c63430008000033

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

000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec80000

-----Decoded View---------------
Arg [0] : _VRFCoordinator (address): 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952
Arg [1] : _LinkToken (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [2] : _keyhash (bytes32): 0xaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [3] : _fee (uint256): 2000000000000000000

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [1] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [2] : aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [3] : 0000000000000000000000000000000000000000000000001bc16d674ec80000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.